!function(){var e,t,n,r,o,a,i,s,u={3778:function(e,t,n){var r={"./abTestConstants.js":"5131","./batchRequestsConstants.js":"6385","./callBackTypes.js":"6654","./creatorTypes.js":"6801","./deviceTypes.js":"227","./httpStatusCodes.js":"2237","./keyCode.js":"6520","./keys.js":"9553","./localStorageNames.js":"9805","./performanceMarkLabels.js":"2805","./presenceTypes.js":"3498","./thumbnailResponseStatuses.js":"1256","./thumbnailStatusStyleMap.js":"3296","./thumbnailStyleConstants.js":"9427","./urlConstants.js":"168"};function o(e){return n(a(e))}function a(e){if(!n.o(r,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=3778},9192:function(e,t,n){var r={"./alphanumericInputDirective.js":"7319","./autoResizeDirective.js":"1390","./blurDirective.js":"611","./clickOutsideDirective.js":"5757","./contextMenuDirective.js":"1744","./copyToClipboard.js":"1472","./enterEscapeShiftDirective.js":"9470","./focusDirective.js":"4179","./focusMeDirective.js":"1919","./formValidationDirective.js":"8617","./hoverPopoverDirective.js":"9615","./imageRetryDirective.js":"316","./inputMaxLength.js":"4288","./keyPressEnterDirective.js":"4336","./keyPressEscapeDirective.js":"3095","./matchFieldDirective.js":"6006","./numbersOnlyDirective.js":"4402","./onFinishRenderDirective.js":"5539","./pairedNameDirective.js":"1306","./phoneDirective.js":"9191","./stickToTopDirective.js":"2024","./switcherDirective.js":"2916","./toggleLoadingDirective.js":"8996"};function o(e){return n(a(e))}function a(e){if(!n.o(r,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=9192},8980:function(e,t,n){var r={"./abbreviate.js":"4962","./camelCase.js":"8893","./capitalize.js":"2052","./escapeHtml.js":"7966","./firstLetter.js":"5173","./formatCharacterCount.js":"264","./formatString.js":"3770","./getPercentage.js":"9345","./htmlToPlainText.js":"6444","./isEmpty.js":"4625","./orderList.js":"781","./parseInt.js":"5189","./parseTimeStamp.js":"217","./positive.js":"559","./quoteText.js":"3019","./reverse.js":"9973","./seoUrl.js":"1264","./startsWith.js":"8977"};function o(e){return n(a(e))}function a(e){if(!n.o(r,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=8980},8099:function(e,t,n){var r={"./abTestService.js":"2128","./abpService.js":"5175","./batchRequestsService.js":"7367","./cacheService.js":"4724","./chatDispatchService.js":"8039","./errorMessageService.js":"8547","./eventStreamService.js":"4289","./eventTrackerService.js":"1322","./googleAnalyticsEventsService.js":"8384","./httpService.js":"2476","./hybridService.js":"9413","./imagesService.js":"6718","./localStorageService.js":"4184","./numericCodeService.js":"3298","./performanceService.js":"4297","./playGameService.js":"642","./realtimeService.js":"1255","./regexService.js":"2536","./retryService.js":"5134","./urlService.js":"415","./userService.js":"5623","./usersPresenceService.js":"8132"};function o(e){return n(a(e))}function a(e){if(!n.o(r,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=8099},5334:function(e,t,n){var r={"./directives/templates/pairedName.html":"4416"};function o(e){return n(a(e))}function a(e){if(!n.o(r,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=5334},4416:function(e){e.exports=' @ '},3680:function(e,t,n){"use strict";var r=n(7993),o=n.n(r),a=n(2862),i=n(3988),s=n(7693),u=n(6277),c=n(6152);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var d="Generic Challenge:",p="rblx-challenge-id",h="rblx-challenge-type",v="rblx-challenge-metadata",y="x-retry-attempt",m=o().module("angularJsUtilities",["angularjsUtilitiesTemplates"]).config(["$httpProvider","$templateRequestProvider",function(e,t){t.httpOptions({isTemplateRequest:!0}),e.interceptors.push(["$q","$injector",function(e,t){return{responseError:function(n){var r=n.headers(),o=r[p],a=r[h],i=r[v],s=void 0!==o||void 0!==a||void 0!==i;if(void 0!==o&&void 0!==a&&void 0!==i){if(window.Roblox.AccountIntegrityChallengeService)return window.Roblox.AccountIntegrityChallengeService.Generic.interceptChallenge({retryRequest:function(e,r){return n.config.headers[p]=e,n.config.headers[h]=a,n.config.headers[v]=r,t.get("$http")(n.config)},containerId:"generic-challenge-container",challengeId:o,challengeTypeRaw:a,challengeMetadataJsonBase64:i}).catch(function(t){return e.reject("object"===f(t)&&Object.prototype.hasOwnProperty.call(t,"data")?t:{data:t})});console.error(d,"Got challenge but challenge component not available")}else s&&console.error(d,"Got only partial challenge headers");return e.reject(n)}}}]);var n=o().element("#http-retry-data"),r=n&&n.data("http-retry-base-timeout")?n.data("http-retry-base-timeout"):1e3,m=n&&n.data("http-retry-max-timeout")?n.data("http-retry-max-timeout"):8e3,g=n&&n.data("http-retry-max-times")?n.data("http-retry-max-times"):3,b={post:!0,delete:!0,patch:!0,put:!0};e.interceptors.push(["$q","$injector",function(e,t){return{request:function(e){var t=e.method.toLowerCase(),n=a.LP();return b[t]&&n&&(e.headers[a.YA]=n),e},responseError:function(n){var r=n.status,o=t.get("$http");if(403===r&&n.headers(a.YA)){var i=n.headers(a.YA);if(i)return a.o4(i),o(n.config)}return e.reject(n)}}}]),e.interceptors.push(["$q","$injector","$log","retryService",function(e,t,n,a){var i=function(o){var i=t.get("$timeout"),s=o.config;if(u.EJ.addRetryAttemptHeader()){var c=s.headers;c[y]?c[y]+=1:c[y]=1}if(a.isExponentialBackOffEnabled){s.exponentialBackOff||(s.exponentialBackOff=a.exponentialBackOff());var l=s.exponentialBackOff,f=l.StartNewAttempt();return(n.debug(" exponential back off -- GetAttemptCount ".concat(l.GetAttemptCount())),l.GetAttemptCount()0&&t.exponentialBackOff.Reset()}return e},responseError:function(t){return 403!==t.status&&o().isDefined(t.config)&&t.config.retryable?i(t):e.reject(t)}}}]),e.interceptors.push(["$q","$injector",function(){return{request:function(e){var t=(0,i.Eq)(e.url,e.data,e.withCredentials);return e.url=t,i.p2&&0>e.url.indexOf("rbxcdn.com")&&0>e.url.indexOf("s3.amazonaws.com")&&(e.withCredentials=!0),e}}}]),e.interceptors.push(["$q","$injector",function(e){return{request:function(e){var t=e.method,n=e.url,r=e.headers;if(s.O$&&s.Nu.isApiSiteAvailableForTracing(n)){var o,a={tags:{isDuplicate:(null===(o=e.isDuplicate)||void 0===o?void 0:o.toString())||"false"}},i=s.WH.createAndGetSpan(s.jg.operationNames.httpRequest,a);s.pJ.setXHRRequestTags(i,{component:"angularjs",method:t,url:n}),s.TD.setXHRRequestLogs(i);var u=s.f3.httpRequestCarrier(i);Object.keys(u).forEach(function(e){r[e]=u[e]}),e.tracerConfig={headerCarriers:u,requestSpan:i}}return e},response:function(e){var t=e.status,n=e.config,r=n.url,o=n.tracerConfig;if(o&&s.Nu.isApiSiteAvailableForTracing(r)){var a=o.requestSpan;s.pJ.setXHRResponseTags(a,{status:t}),s.TD.setXHRResponseSuccessLogs(a),s.WH.finalizeSpan(a)}return e},responseError:function(t){var n=t.status,r=t.config,o=r.url,a=r.tracerConfig;if(a&&s.Nu.isApiSiteAvailableForTracing(o)){var i=a.requestSpan;s.pJ.setXHRResponseErrorTags(i,{status:n}),s.TD.setXHRResponseErrorLogs(i),s.WH.finalizeSpan(i)}return e.reject(t)}}}]),e.interceptors.push(["$injector","$log",function(e,t){return{request:function(n){var r=n.url,o=n.isDuplicate;if((0,u.md)(r,o)){var a=function(e){for(var t=1;t-1},a={backspace:"Backspace",tab:"Tab",enter:"Enter",escape:o()?"Esc":"Escape",delete:o()?"Del":"Delete",alt:"Alt",capsLock:"CapsLock",control:"Control",numLock:"NumLock",scrollLock:"ScrollLock",shift:"Shift",space:o()?"Spacebar":" ",arrowDown:o()?"Down":"ArrowDown",arrowLeft:o()?"Left":"ArrowLeft",arrowRight:o()?"Right":"ArrowRight",arrowUp:o()?"Up":"ArrowUp",end:"End",home:"Home",pageDown:"PageDown",pageUp:"PageUp",insert:"Insert",f1:"F1",f2:"F2",f3:"F3",f4:"F4",f5:"F5",f6:"F6",f7:"F7",f8:"F8",f9:"F9",f10:"F10",f11:"F11",f12:"F12"},i=65;i<=90;i+=1)a[String.fromCharCode(i)]=String.fromCharCode(i),a[String.fromCharCode(i).toLowerCase()]=String.fromCharCode(i).toLowerCase();r.Z.constant("keys",a),t.default=a},9805:function(e,t,n){"use strict";n.r(t);var r=n(3680),o=window.Roblox.CurrentUser,a={friendsDict:o?"Roblox.FriendsDict.UserId".concat(o.userId):"Roblox.FriendsDict.UserId0"};r.Z.constant("localStorageNames",a),t.default=a},2805:function(e,t,n){"use strict";n.r(t);var r=n(3680),o={chat:{chatPageDataLoaded:"chat_pageData_loaded",chatConversationsLoading:"chat_conversations_loading",chatConversationsLoaded:"chat_conversations_loaded",chatSignalRInitializing:"chat_signalR_initializing",chatSignalRSucceeded:"chat_signalR_succeeded"}};r.Z.constant("performanceMarkLabels",o),t.default=o},3498:function(e,t,n){"use strict";n.r(t);var r=n(3680),o={offline:{status:0,className:""},online:{status:1,className:"icon-online"},ingame:{status:2,className:"icon-game"},instudio:{status:3,className:"icon-studio"}};r.Z.constant("presenceTypes",o),t.default=o},1256:function(e,t,n){"use strict";n.r(t);var r=n(3680),o={completed:"Completed",inReview:"InReview",pending:"Pending",blocked:"Blocked",error:"Error"};r.Z.constant("thumbnailResponseStatuses",o),t.default=o},3296:function(e,t,n){"use strict";n.r(t);var r=n(3680),o={Error:"icon-error",InReview:"icon-in-review",Blocked:"icon-blocked",Pending:"icon-pending"};r.Z.constant("thumbnailStatusStyleMap",o),t.default=o},9427:function(e,t,n){"use strict";n.r(t);var r=n(3680),o={sm:"sm",md:"md",lg:"lg",group:{sm:"thumbnail-status-placeholder-sm",md:"thumbnail-status-placeholder-md",lg:"thumbnail-status-placeholder-lg"}};r.Z.constant("thumbnailStyleConstants",o),t.default=o},168:function(e,t,n){"use strict";n.r(t);var r=n(3680),o={urlQueryStringPrefix:"?",urlQueryParameterSeparator:"&",hashSign:"#"};r.Z.constant("urlConstants",o),t.default=o},7319:function(e,t,n){"use strict";function r(){return{require:"ngModel",restrict:"A",link:function(e,t,n,r){r.$parsers.push(function(e){if(void 0==e)return"";var t=e.replace(/[^0-9a-zA-Z]/g,"");return t!==e&&(r.$setViewValue(t),r.$render()),t})}}}n.r(t),n(3680).Z.directive("alphanumericInput",r),t.default=r},1390:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e){return{restrict:"A",link:function(t,n,r){for(var o in t.attrs={rows:1,maxLines:999},t.attrs)r[o]&&(t.attrs[o]=parseInt(r[o]));t.getOffset=function(){for(var t=e.getComputedStyle(n[0],null),r=["paddingTop","paddingBottom"],o=0,a=0;at.maxAllowedHeight?(n[0].style.overflowY="scroll",e=t.maxAllowedHeight):(n[0].style.overflowY="hidden",n[0].style.height="auto",e=n[0].scrollHeight,r=!0),n[0].style.height=e+"px",r},t.offset=t.getOffset(),t.lineHeight=parseInt(n.css("line-height").replace("px","")),t.maxAllowedHeight=t.lineHeight*t.attrs.maxLines-t.offset,t.$watch(r.ngModel,function(){t.autoResize()},!0)}}}o.$inject=["$window"],r.Z.directive("autoResize",o),t.default=o},611:function(e,t,n){"use strict";function r(){return function(e,t,n){t[0].addEventListener("blur",function(){e.$evalAsync(function(){e.$eval(n.blurModel)})},!0)}}n.r(t),n(3680).Z.directive("blurModel",r),t.default=r},5757:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e,t){return{restrict:"A",link:function(n,r,o){var a=t(o.clickOutside),i=function(e){r[0]!==e.target&&0===r.find(e.target).length&&n.$apply(function(){a(n,{})})};e.on("click",i),n.$on("$destroy",function(){e.off("click",i)})}}}o.$inject=["$document","$parse"],r.Z.directive("clickOutside",o),t.default=o},1744:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e){return function(t,n,r){var o=e(r.contextMenu);n.bind("contextmenu",function(e){t.$apply(function(){o(t,{$event:e})})})}}o.$inject=["$parse"],r.Z.directive("contextMenu",o),t.default=o},1472:function(e,t,n){"use strict";function r(){return{restrict:"A",link:function(e,t,n){t.click(function(){var e=n.copyTarget;angular.element(e).select(),document.execCommand("Copy")})}}}n.r(t),n(3680).Z.directive("copyToClipboard",r),t.default=r},9470:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e){return{restrict:"A",link:function(t,n,r){n.bind("keydown keypress",function(n){(n.keyCode||n.which)!==e.enter||n.shiftKey||(n.preventDefault(),t.$apply(function(){t.$eval(r.enterEscapeShift)}))})}}}o.$inject=["keyCode"],r.Z.directive("enterEscapeShift",o),t.default=o},4179:function(e,t,n){"use strict";function r(){return function(e,t,n){t[0].addEventListener("focus",function(){e.$evalAsync(function(){e.$eval(n.focusModel)})},!0)}}n.r(t),n(3680).Z.directive("focusModel",r),t.default=r},1919:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e){return{scope:{trigger:"@focusMe"},link:function(t,n,r){t.$watch(function(){return r.focusMe},function(t){t&&e(function(){"true"===t&&n[0].focus()},0)})}}}o.$inject=["$timeout"],r.Z.directive("focusMe",o),t.default=o},8617:function(e,t,n){"use strict";function r(){return{require:["^form","ngModel"],restrict:"A",link:function(e,t,n,r){e.$watch(function(){return r[1].$viewValue},function(e){var t=window.Roblox.FormEvents;if(void 0!==t){var n=r[0],o=r[1];if(o.$dirty&&o.$invalid){var a=[];angular.forEach(o.$error,function(e,t){!0===e&&a.push(t)});var i=o.redactedInput?"[Redacted]":e;t.SendValidationFailed(n.$name,o.$name,i,a.join(","))}}})}}}n.r(t),n(3680).Z.directive("formValidation",r),t.default=r},9615:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e,t){return{restrict:"A",replace:!0,scope:{hoverPopoverParams:"="},link:function(e,n,r){var o=e.hoverPopoverParams.hoverPopoverSelector,a=e.hoverPopoverParams.triggerSelector;function i(e){var t=angular.element(a);return t.find(e)&&t.find(e).length>0}e.hoverPopoverParams.isDisabled||(n.on("hover",function(){e.$apply(function(){e.hoverPopoverParams.isOpen=!0,angular.element(o).on("mouseleave",function(t){e.hoverPopoverParams.isOpen&&!i(angular.element(t.relatedTarget))&&e.$apply(function(){e.hoverPopoverParams.isOpen=!1})})})}),angular.element(a).on("mouseleave",function(t){if(e.hoverPopoverParams.isOpen){var n,r,a,s=angular.element(t.relatedTarget);n=s,r=!1,(a=angular.element(o)).find(n)&&a.find(n).length>0&&(r=!0),r||i(s)||e.$apply(function(){e.hoverPopoverParams.isOpen=!1})}}),t.on("HoverPopover.EnableClose",function(){e.hoverPopoverParams.isOpen&&e.$apply(function(){e.hoverPopoverParams.isOpen=!1})}))}}}o.$inject=["$log","$document"],r.Z.directive("hoverPopover",o),t.default=o},316:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e,t){return{restrict:"A",scope:{thumbnail:"="},link:function(n,r,o){var a=function(n){if(n&&!n.Final){var r=new Date().getTime();e.getImageUrl(n,function(e,a){var i=window.Roblox.ThumbnailMetrics;if(a){var s=new Date().getTime();i.logFinalThumbnailTime(s-r)}else i.ThumbnailMetrics.logThumbnailTimeout();o.resetSrc?e&&(n.Url=e):o.src&&o.src.length>0||o.disablePlaceholder?(o.$set("src",e),t.debug("got final, setting src")):o.lazyImg&&(o.$set("lazyImg",e),t.debug("got final, setting lazyimg"))},0)}};a(n.thumbnail);var i=n.$watch(function(){return n.thumbnail},function(e){e&&a(e)});n.$on("$destroy",function(){i&&i()})}}}o.$inject=["robloxImagesService","$log"],r.Z.directive("imageRetry",o),t.default=o},4288:function(e,t,n){"use strict";function r(){return{require:"ngModel",link:function(e,t,n,r){var o=Number(n.inputMaxLength);r.$parsers.push(function(e){if(e.length>o){var t=e.substring(0,o);return r.$setViewValue(t),r.$render(),t}return e})}}}n.r(t),n(3680).Z.directive("inputMaxLength",r),t.default=r},4336:function(e,t,n){"use strict";function r(){return function(e,t,n){t.bind("keydown keypress",function(t){13===t.which&&(e.$apply(function(){e.$eval(n.keyPressEnter)}),t.preventDefault())})}}n.r(t),n(3680).Z.directive("keyPressEnter",r),t.default=r},3095:function(e,t,n){"use strict";function r(){return function(e,t,n){t.bind("keydown keypress",function(t){27===t.which&&(e.$apply(function(){e.$eval(n.keyPressEscape)}),t.preventDefault())})}}n.r(t),n(3680).Z.directive("keyPressEscape",r),t.default=r},6006:function(e,t,n){"use strict";function r(){return{require:"ngModel",link:function(e,t,n,r){e.$watch(n.matchField,function(e){void 0!==r.$viewValue&&""!==r.$viewValue&&r.$setValidity("matchField",e===r.$viewValue)}),r.$validators.matchField=function(t){return t===e.$eval(n.matchField)}}}}n.r(t),n(3680).Z.directive("matchField",r),t.default=r},4402:function(e,t,n){"use strict";function r(){return{require:"ngModel",link:function(e,t,n,r){r.$parsers.push(function(e){if(void 0==e)return"";var t=e.replace(/[^0-9]/g,"");return t!==e&&(r.$setViewValue(t),r.$render()),t})}}}n.r(t),n(3680).Z.directive("numbersOnly",r),t.default=r},5539:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e){return{restrict:"A",link:function(t,n,r){!0===t.$last&&e(function(){t.$emit(r.onFinishRender)})}}}o.$inject=["$timeout"],r.Z.directive("onFinishRender",o),t.default=o},1306:function(e,t,n){"use strict";function r(){return{restrict:"A",scope:{displayName:"@",userName:"@"},templateUrl:"paired-name"}}n.r(t),n(3680).Z.directive("pairedName",r),t.default=r},9191:function(e,t,n){"use strict";function r(){return{require:"ngModel",link:function(e,t,n,r){r.$parsers.push(function(e){if(void 0==e)return"";var t=e.replace(/[^0-9-+()]/g,"");return t!==e&&(r.$setViewValue(t),r.$render()),t})}}}n.r(t),n(3680).Z.directive("phone",r),t.default=r},2024:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e){return{restrict:"A",scope:{isElementAtTop:"="},link:function(t,n){var r=n[0].getBoundingClientRect().top;angular.element(e).bind("scroll",function(){var n=e.pageYOffset;!t.isElementAtTop&&n>=r?(t.isElementAtTop=!0,t.$apply()):t.isElementAtTop&&n<=r&&(t.isElementAtTop=!1,t.$apply())})}}}o.$inject=["$window"],r.Z.directive("stickToTop",o),t.default=o},2916:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e){return{restrict:"A",controller:["$scope",function(e){e.switcher={},e.switcher.games={currPage:0,itemsCount:0},e.switcher.groups={currPage:0,itemsCount:0}}],scope:{currpage:"=",itemscount:"="},link:function(e,t,n){var r=null;e.currpage=0,t.find(".switcher-item")&&t.find(".switcher-item").length>0&&(e.itemscount=t.find(".switcher-item").length),t.find(".carousel-control").on("click",function(n){e.$apply(function(){"next"==angular.element(n.currentTarget).attr("data-switch")?e.currpage+1<=e.itemscount-1?e.currpage+=1:e.currpage=0:e.currpage-1>=0?e.currpage-=1:e.currpage=e.itemscount-1}),(r=t.find(".switcher-item[data-index="+e.currpage+"] img")).attr("src")||r.attr("src",r.attr("data-src"))})}}}o.$inject=["$log"],r.Z.directive("switcher",o),t.default=o},8996:function(e,t,n){"use strict";function r(){return{restrict:"A",link:function(e,t,n){var r=n.isInline,o=angular.element('
');t.after(o),o.hide();var a=e.$watch(n.isLoading,function(e,n){if(e!==n){if(e){var r=t[0].offsetHeight,a=t[0].offsetWidth;o.css("height",r+"px"),o.css("width",a+"px"),t.hide(),o.show()}else t.show(),o.hide()}},!0);e.$on("$destroy",function(){a&&a()})}}}n.r(t),n(3680).Z.directive("toggleLoading",r),t.default=r},4962:function(e,t,n){"use strict";n.r(t);var r=n(3680),o=function(e){if("number"!=typeof e)throw"'number' is not a number";return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},a=function(e){if("number"!=typeof e)throw"'number' is not a number";if(e<=0)return"0";if(e<1e3)return e;if(e<1e6){var t=Math.round(e/1e3*10)/10;return t>=1e3?Math.round(t/1e3*10)/10+"M":t+"K"}if(e<1e9){var t=Math.round(e/1e6*10)/10;return t>=1e3?Math.round(t/1e3*10)/10+"B":t+"M"}return Math.round(e/1e9*10)/10+"B"},i=function(e){if("number"!=typeof e)throw"'number' is not a number";if(0==e)return"0";if(e<1e4)return o(e);var t="B+",n=9;e<1e6?(t="K+",n=3):e<1e9&&(t="M+",n=6);var r=e.toString();return r.substring(0,r.length-n)+t};r.Z.filter("abbreviate",function(){return function(e,t){return"number"==typeof e?1===t?a(e):i(e):e}}),t.default=a},8893:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e){return function(e){return e.replace(/^([A-Z])|[\s-_]+(\w)/g,function(e,t,n,r){return n?n.toUpperCase():t.toLowerCase()})}}o.$inject=["$filter"],r.Z.filter("camelCase",o),t.default=o},2052:function(e,t,n){"use strict";function r(){return function(e){if(null!=e){for(var t=e.split(" "),n=[],r=0;r"'\\/]/g,function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"/":return"/";default:return e}})},o=n(3680),a=function(){return r};o.Z.filter("escapeHtml",a);var i=a},5173:function(e,t,n){"use strict";function r(){return function(e){return null!=e?e.substring(0,1).toLowerCase():""}}n.r(t),n(3680).Z.filter("firstLetter",r),t.default=r},264:function(e,t,n){"use strict";function r(){return function(e,t){return e+"/"+t}}n.r(t),n(3680).Z.filter("formatCharacterCount",r),t.default=r},3770:function(e,t,n){"use strict";function r(){return function(e){if(arguments&&arguments.length>1){var t=arguments[0],n=arguments[1];for(var r in n){var o=n[r],a=RegExp("{"+r+"(:.*?)?\\??}");t=t.replace(a,o)}return t}return e}}n.r(t),n(3680).Z.filter("formatString",r),t.default=r},9345:function(e,t,n){"use strict";function r(){return function(e,t){var n=0;return!isNaN(e)&&!isNaN(t)&&(n=0===e?0:0===t?100:Math.floor(e/(e+t)*100))>100&&(n=100),n+"%"}}n.r(t),n(3680).Z.filter("getPercentage",r),t.default=r},6444:function(e,t,n){"use strict";function r(){return function(e){return String(e).replace(/<[^>]+>/gm,"")}}n.r(t),n(3680).Z.filter("htmlToPlaintext",r),t.default=r},4625:function(e,t,n){"use strict";function r(){return function(e,t,n){return""===n||null==n?t:e}}n.r(t),n(3680).Z.filter("isEmpty",r),t.default=r},781:function(e,t,n){"use strict";function r(){return function(e,t){var n=[];for(var r in t)n.push(e[t[r]]);return n}}n.r(t),n(3680).Z.filter("orderList",r),t.default=r},5189:function(e,t,n){"use strict";n.r(t),n(3680).Z.filter("parseInt",function(){return function(e,t){var n=parseInt(e,t||10);return Number.isNaN(n)?e:n}}),t.default=parseInt},217:function(e,t,n){"use strict";function r(){return function(e){return e?"string"==typeof e&&e.search("Date")>-1?parseInt(e.slice(6,-2)):new Date(e):null}}n.r(t),n(3680).Z.filter("parseTimeStamp",r),t.default=r},559:function(e,t,n){"use strict";function r(){return function(e){return e?Math.abs(e):0}}n.r(t),n(3680).Z.filter("positive",r),t.default=r},3019:function(e,t,n){"use strict";function r(){return function(e){return'"'.concat(e,'"')}}n.r(t),n(3680).Z.filter("quoteText",r),t.default=r},9973:function(e,t,n){"use strict";function r(){return function(e){if(e&&e.length>0)return e.slice().reverse()}}n.r(t),n(3680).Z.filter("reverse",r),t.default=r},1264:function(e,t,n){"use strict";function r(){return function(e,t,n){"string"!=typeof n&&(n="");var r="/"+e+"/"+t+"/"+(n.replace(/'/g,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").replace(/^(COM\d|LPT\d|AUX|PRT|NUL|CON|BIN)$/i,"")||"unnamed"),o=window.Roblox.Endpoints;return o?o.getAbsoluteUrl(r):r}}n.r(t),n(3680).Z.filter("seoUrl",r),t.default=r},8977:function(e,t,n){"use strict";function r(){return function(e,t,n){var r=[];if(e)for(var o=0;o0&&r!==t.errors.unretriableFailure){var n,s=(n=e.retryAttempts,o.getFailureCooldown?o.getFailureCooldown(n):t.defaultCooldown);u=u>0?Math.min(u,s):s,++e.retryAttempts<=o.maxRetryAttempts?(e.queueAfter=c+s,i.unshift(e)):e.reject(t.errors.maxAttemptsReached)}else e.reject(r)}),u>0&&setTimeout(n,u+o.processBatchWaitTime),s=!1,n()},c=function(e,t){a[e]=t,o.getItemExpiration&&setTimeout(function(){delete a[e]},o.getItemExpiration(e))},l=function(){if(!s){for(var e=[],r={},f=[],d=new Date().getTime();e.length0;){var p=i.shift();if(p.queueAfter>d){r[p.key]=p,f.push(p);continue}a.hasOwnProperty(p.key)?p.resolve(a[p.key]):r.hasOwnProperty(p.key)?f.push(p):(r[p.key]=p,e.push(p))}if(f.forEach(function(e){i.push(e)}),!(e.length<=0)){s=!0;var h=[];e.forEach(function(e){h.push(e.item)}),n(h).then(function(n){for(var r in n)n.hasOwnProperty(r)&&c(r,n[r]);u(e,l,t.errors.processFailure)},function(t){u(e,l,t)})}}};return{invalidateItem:function(e){delete a[r(e)]},queueItem:function(t){return e(function(e,n){i.push({key:r(t),item:t,retryAttempts:0,queueAfter:0,resolve:e,reject:n}),setTimeout(l,o.processBatchWaitTime)})}}}}}o.$inject=["$q","batchRequestsConstants"],r.Z.factory("batchRequestsService",o),t.default=o},4724:function(e,t,n){"use strict";function r(){return{createPaginationCache:function(e){var t={};return{getPage:function(n,r){return t[n]?t[n].slice((r-1)*e,r*e):[]},getLength:function(e){return t[e]?t[e].length:0},append:function(e,n){t[e]||(t[e]=[]),t[e]=t[e].concat(n)},removePage:function(n,r){t[n]&&t[n].splice((r-1)*e,e)},removeAtIndex:function(n,r,o){t[n]&&t[n].splice((r-1)*e+o,1)},clear:function(e){t[e]=[]}}},buildKey:function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+="&"+n+"="+e[n]);return t}}}n.r(t),n(3680).Z.factory("cacheService",r),t.default=r},8039:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e,t,n){return{startChat:function(n,r){var o=window.Roblox.DeviceMeta,a=o&&new o;if(a&&a.isAndroidApp&&r.androidApp.hybridRequired){var i={userIds:[]};i.userIds.push(n),e.startChatConversation(i)}else a&&a.isIosApp&&r.iOSApp.hybridRequired?e.startWebChatConversation(n):a&&a.isUWPApp&&r.uwpApp.hybridRequired?e.startWebChatConversation(n):a&&a.isWin32App&&r.win32App.hybridRequired?e.startWebChatConversation(n):a&&a.isUniversalApp&&r.universalApp.hybridRequired?e.startWebChatConversation(n):t.triggerHandler("Roblox.Chat.StartChat",{userId:n})},buildPermissionVerifier:function(e){return{androidApp:{isEnabled:e.inAndroidApp,hybridRequired:!0},iOSApp:{isEnabled:e.iniOSApp,hybridRequired:!0},uwpApp:{isEnabled:e.inUWPApp,hybridRequired:!1},win32App:{isEnabled:e.inWin32App,hybridRequired:!0},universalApp:{isEnabled:e.inUniversalApp,hybridRequired:!0}}}}}o.$inject=["hybridService","$document","$log"],r.Z.factory("chatDispatchService",o),t.default=o},8547:function(e,t,n){"use strict";function r(){return this.createErrorMapper=function(e,t){var n={defaultError:t};return angular.extend(n,e),n.getErrorMessage=function(e){return this[e]||this.defaultError},n.getErrorMessageFromResponse=function(e){var t="defaultError";return e&&e.errors&&e.errors[0]&&e.errors[0].hasOwnProperty("code")&&(t=e.errors[0].code),n.getErrorMessage(t)},n},this}n.r(t),n(3680).Z.factory("errorMessageService",r),t.default=r},4289:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e){function t(){return window.Roblox.EventStream}return{targetTypes:t()?{DEFAULT:window.Roblox.EventStream.TargetTypes.DEFAULT,WWW:window.Roblox.EventStream.TargetTypes.WWW,STUDIO:window.Roblox.EventStream.TargetTypes.STUDIO,DIAGNOSTIC:window.Roblox.EventStream.TargetTypes.DIAGNOSTIC}:{DEFAULT:0,WWW:1,STUDIO:2,DIAGNOSTIC:3},eventNames:{global:{ajaxPageLoad:"ajaxPageLoad",modalAction:"modalAction",buttonAction:"buttonAction"},notificationStream:{openFromNewIntro:"nsOpenFromNewIntro",openContent:"nsOpenContent",openCTA:"nsOpenCTAShown",refreshCTA:"nsRefreshCTAShown",acceptFriendRequest:"nsAcceptFriendRequest",ignoreFriendRequest:"nsIgnoreFriendRequest",viewAllFriendRequests:"nsViewAllFriendRequests",chat:"nsChat",goToProfilePage:"nsGoToProfilePage",goToSettingPage:"nsGoToSettingPage",launchExperience:"nsLaunchExperience",openMetaActions:"nsOpenMetaActions",closeMetaActions:"nsCloseMetaActions",follow:"nsFollow",unfollow:"nsUnfollow",report:"nsReport",pageChanged:"nsPageChanged",goToGameDetails:"nsGoToGameDetails",viewDeveloperMetrics:"nsViewDevMetrics",goToMessages:"nsGoToMessages",goToGroupPage:"nsGoToGroup",notificationRetrieved:"nsNotificationRetrieved",notificationsBundleCreated:"nsNotificationBundleCreated"},account:{sendVerificationEmail:"sendVerificationEmail",addEmail:"addEmail",addPhone:"addPhone",verifyPhone:"verifyPhone",updateTheme:"updateTheme"}},context:{seen:"seen",click:"click",fetched:"fetched",inApp:"inApp"},modalActions:{shown:"shown",dismissed:"dismissed",buttonClicked:"buttonClicked"},sendEventWithTarget:function(e,n,r,o){var a=window.Roblox.EventStream;t()&&a.SendEventWithTarget&&(o=o||this.targetTypes.WWW,a.SendEventWithTarget(e,n,r,o))},sendGamePlayEvent:function(e,t,n,r){var o=window.Roblox.GamePlayEvents;o&&o.SendGamePlayIntent&&o.SendGamePlayIntent(e,t,n,r)},sendModalShownEvent:function(e,t){var n={aType:this.modalActions.shown};t&&(n=angular.extend(n,t)),this.sendEventWithTarget(this.eventNames.global.modalAction,e,n)},sendModalDismissedEvent:function(e,t){var n={aType:this.modalActions.dismissed};t&&(n=angular.extend(n,t)),this.sendEventWithTarget(this.eventNames.global.modalAction,e,n)},sendModalEvent:function(e,t,n){var r={aType:t};n&&(r=angular.extend(r,n)),this.sendEventWithTarget(this.eventNames.global.modalAction,e,r)}}}o.$inject=["$log"],r.Z.factory("eventStreamService",o),t.default=o},1322:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e){return{fireEvent:function(e){null!=EventTracker&&EventTracker.fireEvent&&EventTracker.fireEvent(e)}}}o.$inject=["$log"],r.Z.factory("eventTrackerService",o),t.default=o},8384:function(e,t,n){"use strict";function r(){return{eventCategories:{JSErrors:"JSErrors"},eventActions:{Chat:"Chat",ChatEmbedded:"ChatEmbedded"},getUserAgent:function(){return navigator&&navigator.userAgent?navigator.userAgent:""},fireEvent:function(e,t,n,r){var o,a,i=(o=r,(a=[]).push(e),a.push(t),a.push(n),isNaN(o)||(o=Math.floor(o),a.push(o)),a);GoogleAnalyticsEvents&&GoogleAnalyticsEvents.FireEvent(i)},viewVirtual:function(e){GoogleAnalyticsEvents&&GoogleAnalyticsEvents.ViewVirtual(e)}}}n.r(t),n(3680).Z.factory("googleAnalyticsEventsService",r),t.default=r},2476:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e,t,n,r){var o={get:"GET",post:"POST",delete:"DELETE",patch:"PATCH"},a={default:0,subdomain:1};function i(e,t){return t.withCredentials&&(e.withCredentials=t.withCredentials),t.retryable&&(e.retryable=t.retryable),t.noCache&&(e.headers={"Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:0}),t.noPragma&&e.headers.Pragma&&delete e.headers.Pragma,t.headers&&(e.headers=angular.extend(e.headers||{},t.headers||{})),t.withFile&&(e.transformRequest=function(e){var t=new FormData;return angular.forEach(e,function(e,n){t.append(n,e)}),t},e.headers=angular.extend(e.headers||{},{"Content-Type":void 0})),function(e,t){if(e.cacheBusting){e.cacheBusting.type,a.subdomain;var r=n&&n.location?n.location.host:window.location.host,o="";r.indexOf(".")>=0&&(o="?subdomain=".concat(r.split(".")[0])),t.url+=o}}(t,e),t.timeout&&(e.timeout=t.timeout),t.tracerConfig&&(e.tracerConfig=t.tracerConfig),e}function s(n){var o=t.defer();return e(n).then(function(e){var t=e.data;"null"===t&&(t=null),o.resolve(t)},function(e){var t=e.data;r.debug("Error: unable to send ".concat(n.url," request.")),o.reject(t)}),o.promise}var u=function(e){var t=[];return e&&e.errors&&e.errors.forEach(function(e){e.code&&t.push(e.code)}),t},c=function(e,t){var n=u(e)[0]||0;return t?t[n]||0:n};return{methods:o,cacheBustingType:a,httpGet:function(t,n,r){if(!t)return!1;var a,u=i({method:o.get,url:t.url,params:n},t);return r?e(u):s(u)},httpPost:function(t,n,r){if(!t)return!1;var a,u=i({method:o.post,url:t.url,data:n},t);return r?e(u):s(u)},httpDelete:function(e,t){var n;return!!e&&s(i({method:o.delete,url:e.url,data:t},e))},httpPatch:function(e,t){var n;return!!e&&s(i({method:o.patch,url:e.url,data:t},e))},getApiErrorCodes:u,getPrimaryApiErrorCode:c,getApiErrorCodeHandler:function(e,t){return function(n){e(c(n,t))}},buildBatchPromises:function(e,n,r,o,a){r||(r=50);for(var i=[],s=0,u=n.slice(s,r);u.length>0;){var c={};(c[o]=u,"POST"===a)?i.push(this.httpPost(e,c)):i.push(this.httpGet(e,c)),s++,u=n.slice(s*r,s*r+r)}return t.all(i)}}}o.$inject=["$http","$q","$window","$log"],r.Z.factory("httpService",o),t.default=o},9413:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e){function t(){var e=window.Roblox.Hybrid;return e&&e.Bridge}return{startChatConversation:function(e,n){var r=window.Roblox.Hybrid;t()&&r.Chat&&(angular.isUndefined(n)&&(n=function(){}),r.Chat.startChatConversation(e,n))},startWebChatConversation:function(e,n){var r=window.Roblox.Hybrid;t()&&r.Navigation&&(angular.isUndefined(n)&&(n=function(){}),r.Navigation.startWebChatConversation(e,n))},navigateToFeature:function(e,n){var r=window.Roblox.Hybrid;t()&&r.Navigation&&(angular.isUndefined(n)&&(n=function(){}),r.Navigation.navigateToFeature(e,n))},openUserProfile:function(e,n){var r=window.Roblox.Hybrid;t()&&r.Navigation&&(angular.isUndefined(n)&&(n=function(){}),r.Navigation.openUserProfile(e,n))},close:function(e){var n=window.Roblox.Hybrid;t()&&n.Overlay&&(angular.isUndefined(e)&&(e=function(){}),n.Overlay.close(e))},launchGame:function(e,n){var r=window.Roblox.Hybrid;t()&&r.Game&&(angular.isUndefined(n)&&(n=function(){}),r.Game.launchGame(e,n))}}}o.$inject=["$log"],r.Z.factory("hybridService",o),t.default=o},6718:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e,t,n,r){var o=angular.element("#image-retry-data"),a=o.length>0&&Number(o.data("image-retry-timer"))||1500,i=o.length>0&&Number(o.data("image-retry-max-times"))||10;return{setRetryTimer:function(e){a=e},setMaxTry:function(e){i=e},getImageUrl:function o(s,u,c,l){if(!s.RetryUrl)return!1;var f={url:s.RetryUrl,withCredentials:!0};n.httpGet(f,null).then(function(n){return function(n,s,u,c,l){if(r.isExponentialBackOffEnabled){l||(l=r.exponentialBackOff());var f=l.StartNewAttempt();if((c=l.GetAttemptCount())>=i||n.Final)return l.Reset(),u(n.Url,n.Final);n.RetryUrl=s.RetryUrl,e(function(){o(n,u,c,l)},f)}else{if(t.log(" --- old image retry logic count ---"+c),c>=i||n.Final)return c=0,u(n.Url,n.Final);c++,n.RetryUrl=s.RetryUrl,e(function(){o(n,u,c)},a)}return!1}(n,s,u,c,l)},function(e,n){return t.debug("Errors from http call: "+n),!1})}}}o.$inject=["$timeout","$log","httpService","retryService"],r.Z.factory("robloxImagesService",o),t.default=o},4184:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e){return{getUserKey:function(e){return"user_"+e},storage:function(){return Roblox&&Roblox.LocalStorage?Roblox.LocalStorage.isAvailable():localStorage},getLength:function(){return this.storage()?localStorage.length:0},getKey:function(e){return this.storage()?localStorage.key(e):""},setLocalStorage:function(e,t){this.storage()&&localStorage.setItem(e,JSON.stringify(t))},getLocalStorage:function(e){if(this.storage())return JSON.parse(localStorage.getItem(e))},listenLocalStorage:function(e){this.storage()&&angular.isDefined(e)&&(window.addEventListener?window.addEventListener("storage",e,!1):window.attachEvent("onstorage",e))},removeLocalStorage:function(e){this.storage()&&localStorage.removeItem(e)},saveDataByTimeStamp:function(e,t){var n=new Date().getTime(),r=this.getLocalStorage(e);r||(r={}),r.data=t,r.timeStamp=n,this.setLocalStorage(e,r)},fetchNonExpiredCachedData:function(e,t){var n=new Date().getTime(),r=this.getLocalStorage(e);return r&&r.timeStamp&&n-r.timeStamp<(t=t||3e4)?r:null}}}o.$inject=["$log"],r.Z.factory("localStorageService",o),t.default=o},3298:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e){return{checkCode:function(t,n){return e.debug(t,n),t&&t.length===n&&/^\d+$/.test(t)}}}o.$inject=["$log"],r.Z.factory("numericCodeService",o),t.default=o},4297:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e){return{logSinglePerformanceMark:function(e){var t=window.Roblox.Performance;window.Roblox.Performance&&t.logSinglePerformanceMark(e)}}}o.$inject=["$log"],r.Z.factory("performanceService",o),t.default=o},642:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return M}}),(c=f||(f={})).Strict="strict",c.Lax="lax",c.None="none",(l=d||(d={})).PagingParametersChanged="Paging parameters were changed",l.GetItemsFailure="Unable to get items",l.InvalidPageNumber="Invalid page number";var r,o,a,i,s,u,c,l,f,d,p,h,v,y,m,g,b,_=d;(r=p||(p={}))[r.Initialized=0]="Initialized",r[r.Idle=1]="Idle",r[r.Loading=2]="Loading";var w=p,S=function(){function e(e){this.pageSize=e,this.cache={}}return e.prototype.getPage=function(e,t){var n=this.cache[e];return n?n.slice((t-1)*this.pageSize,t*this.pageSize):[]},e.prototype.getLength=function(e){var t=this.cache[e];return t?t.length:0},e.prototype.append=function(e,t){this.cache[e]||(this.cache[e]=[]),this.cache[e]=this.cache[e].concat(t)},e.prototype.removeAfterIndex=function(e,t){this.cache[e]&&(this.cache[e]=this.cache[e].slice(0,t))},e.prototype.removeAtIndex=function(e,t,n){this.cache[e]&&this.cache[e].splice((t-1)*this.pageSize+n,1)},e.prototype.clear=function(e){delete this.cache[e]},e.prototype.setPageSize=function(e){this.pageSize=e},e}(),O=function(){return(O=Object.assign||function(e){for(var t,n=1,r=arguments.length;nthis.currentPageNumber*this.pageSize||"string"==typeof(null===(e=this.pagingParameters)||void 0===e?void 0:e.cursor)},e.prototype.canLoadNextPage=function(){return this.hasNextPage()&&!this.isBusy()},e.prototype.canLoadPreviousPage=function(){return!this.isBusy()&&this.currentPageNumber>1},e.prototype.canLoadFirstPage=function(){return!this.isBusy()},e.prototype.canReloadCurrentPage=function(){return!this.isBusy()},e.prototype.setPagingParametersAndLoadFirstPage=function(e){this.status=w.Loading;var t=this.getCacheKey();return this.cache.clear(t),void 0!==e.pageSize&&(this.cache.setPageSize(e.pageSize),this.pageSize=e.pageSize),void 0!==e.loadPageSize&&(this.loadPageSize=e.loadPageSize),this.currentPageNumber=1,this.indexCursors={},this.firstPagePagingParameters=O({},e),this.pagingParameters=O({},e),this.setNextPageCursor(""),this.loadPage(1)},e.prototype.reloadCurrentPage=function(){if(1===this.currentPageNumber)return this.loadFirstPage();var e=this.getCacheKey(),t=0,n=this.indexCursors,r=this.currentPageNumber*(this.pageSize-1);Object.keys(n).forEach(function(e){var o=Number(e);o>r?delete n[o]:t=Math.max(o,t)});var o=Math.floor(r/this.loadPageSize)*this.loadPageSize;return this.cache.removeAfterIndex(e,o),this.setNextPageCursor(n[t]||""),this.loadPage(this.currentPageNumber)},e.prototype.getCurrentPage=function(){return this.loadPage(this.currentPageNumber)},e.prototype.loadNextPage=function(){return this.loadPage(this.currentPageNumber+1)},e.prototype.loadPreviousPage=function(){return this.loadPage(this.currentPageNumber-1)},e.prototype.loadFirstPage=function(){return this.setPagingParametersAndLoadFirstPage(this.firstPagePagingParameters)},e.prototype.loadPage=function(e,t){var n=this;void 0===t&&(this.initId+=1);var r=null!=t?t:this.initId;return new Promise(function(t,o){var a=function(e){n.initId===r?(n.status=w.Idle,o(e)):o(_.PagingParametersChanged)},i=function(a){n.initId===r?(n.status=w.Idle,n.currentPageNumber=e,t(a)):o(_.PagingParametersChanged)};if(e<1){a(_.InvalidPageNumber);return}var s=n.getCacheKey(),u=n.cache.getPage(s,e);if(u.length===n.pageSize){i(u);return}if("string"!=typeof n.pagingParameters.cursor){if(u.length<=0&&e>1){a(_.InvalidPageNumber);return}i(u);return}n.status=w.Loading,n.loadNextPageIntoCache(s,r).then(function(){n.loadPage(e,r).then(i).catch(a)}).catch(a)})},e.prototype.canRemoveItem=function(){return!this.isBusy()},e.prototype.removeItemAtIndex=function(e){var t=this.getCacheKey();return(this.cache.removeAtIndex(t,this.currentPageNumber,e),this.canReloadCurrentPage())?this.getCurrentPage():this.loadPage(this.currentPageNumber-1)},e.prototype.getCacheKey=function(){return JSON.stringify(this.firstPagePagingParameters)},e.prototype.setNextPageCursor=function(e){this.pagingParameters=O(O({},this.pagingParameters),{cursor:e})},e.prototype.loadNextPageIntoCache=function(e,t){var n=this;return new Promise(function(r,o){n.indexCursors[n.cache.getLength(e)]=n.pagingParameters.cursor;var a=Object.keys(n.indexCursors).length;n.getItems(O(O({},n.pagingParameters),{count:n.loadPageSize,pageNumber:a})).then(function(a){t===n.initId?(n.setNextPageCursor(a.nextPageCursor),n.cache.append(e,a.items),r()):o(_.PagingParametersChanged)}).catch(function(){t===n.initId?o(_.GetItemsFailure):o(_.PagingParametersChanged)})})}})(),(o=h||(h={})).Asc="Asc",o.Desc="Desc",new Intl.DateTimeFormat(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0});var T=[{year:"numeric",month:"short",day:"numeric"},{hour:"numeric",minute:"numeric",hour12:!0}],P={filteredOutPartType:"literal",defaultDelimiter:" | ",partOneDefault:"month",partTwoDefault:"day",partThreeDefault:"year"};(function(){function e(e){this.locale=e}e.prototype.getShortDate=function(e){return this.getCustomDateTime(e)},e.prototype.getFullDate=function(e,t){return void 0===t&&(t=P.defaultDelimiter),this.getCustomDateTime(e,T[0])+t+this.getCustomDateTime(e,T[1])},e.prototype.getOrderedDateParts=function(e){var t,n=new Intl.DateTimeFormat(this.locale,e);try{t=n.formatToParts(new Date)}catch(e){t=[{type:P.partOneDefault},{type:P.partTwoDefault},{type:P.partThreeDefault}]}return t.filter(function(e){return e.type!==P.filteredOutPartType})},e.prototype.getCustomDateTime=function(e,t){void 0===e&&(e=new Date);var n=e;("string"==typeof e||"number"==typeof e)&&(n=new Date(e));var r=new Intl.DateTimeFormat(this.locale,t);try{return r.format(n)}catch(e){return""}}})(),function(){function e(){var e=this;this.promise=new Promise(function(t,n){e.resolveSelf=t,e.rejectSelf=n})}e.prototype.resolve=function(e){this.resolveSelf(e)},e.prototype.reject=function(e){this.rejectSelf(e)},e.prototype.then=function(e,t){return this.promise.then(e,t)}}(),(a=v||(v={}))[a.Windows=0]="Windows",a[a.macOS=1]="macOS",a[a.Linux=2]="Linux",a[a.Unix=3]="Unix",a[a.iOS=4]="iOS",a[a.Android=5]="Android",a[a.Unknown=6]="Unknown",(i=y||(y={})).Unidentified="Unidentified",i.Alt="Alt",i.AltGraph="AltGraph",i.CapsLock="CapsLock",i.Control="Control",i.Fn="Fn",i.FnLock="FnLock",i.Hyper="Hyper",i.Meta="Meta",i.NumLock="NumLock",i.ScrollLock="ScrollLock",i.Shift="Shift",i.Super="Super",i.Symbol="Symbol",i.SymbolLock="SymbolLock",i.Enter="Enter",i.Tab="Tab",i.ArrowDown="ArrowDown",i.ArrowLeft="ArrowLeft",i.ArrowRight="ArrowRight",i.ArrowUp="ArrowUp",i.End="End",i.Home="Home",i.PageDown="PageDown",i.PageUp="PageUp",i.Backspace="Backspace",i.Clear="Clear",i.Copy="Copy",i.CrSel="CrSel",i.Cut="Cut",i.Delete="Delete",i.EraseEof="EraseEof",i.ExSel="ExSel",i.Insert="Insert",i.Paste="Paste",i.Redo="Redo",i.Undo="Undo",i.Accept="Accept",i.Again="Again",i.Attn="Attn",i.Cancel="Cancel",i.ContextMenu="ContextMenu",i.Escape="Escape",i.Execute="Execute",i.Find="Find",i.Finish="Finish",i.Help="Help",i.Pause="Pause",i.Play="Play",i.Props="Props",i.Select="Select",i.ZoomIn="ZoomIn",i.ZoomOut="ZoomOut",i.BrightnessDown="BrightnessDown",i.BrightnessUp="BrightnessUp",i.Eject="Eject",i.LogOff="LogOff",i.Power="Power",i.PowerOff="PowerOff",i.PrintScreen="PrintScreen",i.Hibernate="Hibernate",i.Standby="Standby",i.WakeUp="WakeUp",i.AllCandidates="AllCandidates",i.Alphanumeric="Alphanumeric",i.CodeInput="CodeInput",i.Compose="Compose",i.Convert="Convert",i.Dead="Dead",i.FinalMode="FinalMode",i.GroupFirst="GroupFirst",i.GroupLast="GroupLast",i.GroupNext="GroupNext",i.GroupPrevious="GroupPrevious",i.ModeChange="ModeChange",i.NextCandidate="NextCandidate",i.NonConvert="NonConvert",i.PreviousCandidate="PreviousCandidate",i.Process="Process",i.SingleCandidate="SingleCandidate",i.HangulMode="HangulMode",i.HanjaMode="HanjaMode",i.JunjaMode="JunjaMode",i.Eisu="Eisu",i.Hankaku="Hankaku",i.Hiragana="Hiragana",i.HiraganaKatakana="HiraganaKatakana",i.KanaMode="KanaMode",i.KanjiMode="KanjiMode",i.Katakana="Katakana",i.Romaji="Romaji",i.Zenkaku="Zenkaku",i.ZenkakuHanaku="ZenkakuHanaku",i.F1="F1",i.F2="F2",i.F3="F3",i.F4="F4",i.F5="F5",i.F6="F6",i.F7="F7",i.F8="F8",i.F9="F9",i.F10="F10",i.F11="F11",i.F12="F12",i.F13="F13",i.F14="F14",i.F15="F15",i.F16="F16",i.F17="F17",i.F18="F18",i.F19="F19",i.F20="F20",i.Soft1="Soft1",i.Soft2="Soft2",i.Soft3="Soft3",i.Soft4="Soft4",i.AppSwitch="AppSwitch",i.Call="Call",i.Camera="Camera",i.CameraFocus="CameraFocus",i.EndCall="EndCall",i.GoBack="GoBack",i.GoHome="GoHome",i.HeadsetHook="HeadsetHook",i.LastNumberRedial="LastNumberRedial",i.Notification="Notification",i.MannerMode="MannerMode",i.VoiceDial="VoiceDial",i.ChannelDown="ChannelDown",i.ChannelUp="ChannelUp",i.MediaFastForward="MediaFastForward",i.MediaPause="MediaPause",i.MediaPlay="MediaPlay",i.MediaPlayPause="MediaPlayPause",i.MediaRecord="MediaRecord",i.MediaRewind="MediaRewind",i.MediaStop="MediaStop",i.MediaTrackNext="MediaTrackNext",i.MediaTrackPrevious="MediaTrackPrevious",i.AudioBalanceLeft="AudioBalanceLeft",i.AudioBalanceRight="AudioBalanceRight",i.AudioBassDown="AudioBassDown",i.AudioBassBoostDown="AudioBassBoostDown",i.AudioBassBoostToggle="AudioBassBoostToggle",i.AudioBassBoostUp="AudioBassBoostUp",i.AudioBassUp="AudioBassUp",i.AudioFaderFront="AudioFaderFront",i.AudioFaderRear="AudioFaderRear",i.AudioSurroundModeNext="AudioSurroundModeNext",i.AudioTrebleDown="AudioTrebleDown",i.AudioTrebleUp="AudioTrebleUp",i.AudioVolumeDown="AudioVolumeDown",i.AudioVolumeMute="AudioVolumeMute",i.AudioVolumeUp="AudioVolumeUp",i.MicrophoneToggle="MicrophoneToggle",i.MicrophoneVolumeDown="MicrophoneVolumeDown",i.MicrophoneVolumeMute="MicrophoneVolumeMute",i.MicrophoneVolumeUp="MicrophoneVolumeUp",i.TV="TV",i.TV3DMode="TV3DMode",i.TVAntennaCable="TVAntennaCable",i.TVAudioDescription="TVAudioDescription",i.TVAudioDescriptionMixDown="TVAudioDescriptionMixDown",i.TVAudioDescriptionMixUp="TVAudioDescriptionMixUp",i.TVContentsMenu="TVContentsMenu",i.TVDataService="TVDataService",i.TVInput="TVInput",i.TVInputComponent1="TVInputComponent1",i.TVInputComponent2="TVInputComponent2",i.TVInputComposite1="TVInputComposite1",i.TVInputComposite2="TVInputComposite2",i.TVInputHDMI1="TVInputHDMI1",i.TVInputHDMI2="TVInputHDMI2",i.TVInputHDMI3="TVInputHDMI3",i.TVInputHDMI4="TVInputHDMI4",i.TVInputVGA1="TVInputVGA1",i.TVMediaContext="TVMediaContext",i.TVNetwork="TVNetwork",i.TVNumberEntry="TVNumberEntry",i.TVPower="TVPower",i.TVRadioService="TVRadioService",i.TVSatellite="TVSatellite",i.TVSatelliteBS="TVSatelliteBS",i.TVSatelliteCS="TVSatelliteCS",i.TVSatelliteToggle="TVSatelliteToggle",i.TVTerrestrialAnalog="TVTerrestrialAnalog",i.TVTerrestrialDigital="TVTerrestrialDigital",i.TVTimer="TVTimer",i.AVRInput="AVRInput",i.AVRPower="AVRPower",i.ColorF0Red="ColorF0Red",i.ColorF1Green="ColorF1Green",i.ColorF2Yellow="ColorF2Yellow",i.ColorF3Blue="ColorF3Blue",i.ColorF4Grey="ColorF4Grey",i.ColorF5Brown="ColorF5Brown",i.ClosedCaptionToggle="ClosedCaptionToggle",i.Dimmer="Dimmer",i.DisplaySwap="DisplaySwap",i.DVR="DVR",i.Exit="Exit",i.FavoriteClear0="FavoriteClear0",i.FavoriteClear1="FavoriteClear1",i.FavoriteClear2="FavoriteClear2",i.FavoriteClear3="FavoriteClear3",i.FavoriteRecall0="FavoriteRecall0",i.FavoriteRecall1="FavoriteRecall1",i.FavoriteRecall2="FavoriteRecall2",i.FavoriteRecall3="FavoriteRecall3",i.FavoriteStore0="FavoriteStore0",i.FavoriteStore1="FavoriteStore1",i.FavoriteStore2="FavoriteStore2",i.FavoriteStore3="FavoriteStore3",i.Guide="Guide",i.GuideNextDay="GuideNextDay",i.GuidePreviousDay="GuidePreviousDay",i.Info="Info",i.InstantReplay="InstantReplay",i.Link="Link",i.ListProgram="ListProgram",i.LiveContent="LiveContent",i.Lock="Lock",i.MediaApps="MediaApps",i.MediaAudioTrack="MediaAudioTrack",i.MediaLast="MediaLast",i.MediaSkipBackward="MediaSkipBackward",i.MediaSkipForward="MediaSkipForward",i.MediaStepBackward="MediaStepBackward",i.MediaStepForward="MediaStepForward",i.MediaTopMenu="MediaTopMenu",i.NavigateIn="NavigateIn",i.NavigateNext="NavigateNext",i.NavigateOut="NavigateOut",i.NavigatePrevious="NavigatePrevious",i.NextFavoriteChannel="NextFavoriteChannel",i.NextUserProfile="NextUserProfile",i.OnDemand="OnDemand",i.Pairing="Pairing",i.PinPDown="PinPDown",i.PinPMove="PinPMove",i.PinPToggle="PinPToggle",i.PinPUp="PinPUp",i.PlaySpeedDown="PlaySpeedDown",i.PlaySpeedReset="PlaySpeedReset",i.PlaySpeedUp="PlaySpeedUp",i.RandomToggle="RandomToggle",i.RcLowBattery="RcLowBattery",i.RecordSpeedNext="RecordSpeedNext",i.RfBypass="RfBypass",i.ScanChannelsToggle="ScanChannelsToggle",i.ScreenModeNext="ScreenModeNext",i.Settings="Settings",i.SplitScreenToggle="SplitScreenToggle",i.STBInput="STBInput",i.STBPower="STBPower",i.Subtitle="Subtitle",i.Teletext="Teletext",i.VideoModeNext="VideoModeNext",i.Wink="Wink",i.ZoomToggle="ZoomToggle",i.SpeechCorrectionList="SpeechCorrectionList",i.SpeechInputToggle="SpeechInputToggle",i.Close="Close",i.New="New",i.Open="Open",i.Print="Print",i.Save="Save",i.SpellCheck="SpellCheck",i.MailForward="MailForward",i.MailReply="MailReply",i.MailSend="MailSend",i.LaunchCalculator="LaunchCalculator",i.LaunchCalendar="LaunchCalendar",i.LaunchContacts="LaunchContacts",i.LaunchMail="LaunchMail",i.LaunchMediaPlayer="LaunchMediaPlayer",i.LaunchMusicPlayer="LaunchMusicPlayer",i.LaunchMyComputer="LaunchMyComputer",i.LaunchPhone="LaunchPhone",i.LaunchScreenSaver="LaunchScreenSaver",i.LaunchSpreadsheet="LaunchSpreadsheet",i.LaunchWebBrowser="LaunchWebBrowser",i.LaunchWebCam="LaunchWebCam",i.LaunchWordProcessor="LaunchWordProcessor",i.LaunchApplication1="LaunchApplication1",i.LaunchApplication2="LaunchApplication2",i.LaunchApplication3="LaunchApplication3",i.LaunchApplication4="LaunchApplication4",i.LaunchApplication5="LaunchApplication5",i.LaunchApplication6="LaunchApplication6",i.LaunchApplication7="LaunchApplication7",i.LaunchApplication8="LaunchApplication8",i.LaunchApplication9="LaunchApplication9",i.LaunchApplication10="LaunchApplication10",i.LaunchApplication11="LaunchApplication11",i.LaunchApplication12="LaunchApplication12",i.LaunchApplication13="LaunchApplication13",i.LaunchApplication14="LaunchApplication14",i.LaunchApplication15="LaunchApplication15",i.LaunchApplication16="LaunchApplication16",i.BrowserBack="BrowserBack",i.BrowserFavorites="BrowserFavorites",i.BrowserForward="BrowserForward",i.BrowserHome="BrowserHome",i.BrowserRefresh="BrowserRefresh",i.BrowserSearch="BrowserSearch",i.BrowserStop="BrowserStop",i.Decimal="Decimal",i.Key11="Key11",i.Key12="Key12",i.Multiply="Multiply",i.Add="Add",i.Divide="Divide",i.Subtract="Subtract",i.Separator="Separator",(s=m||(m={})).CONNECT="CONNECT",s.DELETE="DELETE",s.GET="GET",s.HEAD="HEAD",s.OPTIONS="OPTIONS",s.PATCH="PATCH",s.POST="POST",s.PUT="PUT",s.TRACE="TRACE",(function(e,t){this.locale=e,this.currency=t}).prototype.getCustomNumber=function(e,t){try{return new Intl.NumberFormat(this.locale,t).format(e)}catch(t){return e}},(u=g||(g={})).processFailure="processFailure",u.unretriableFailure="unretriableFailure",u.maxAttemptsReached="maxAttemptsReached";var I=function(e,t){return function(n){return Math.min(t,Math.pow(2,n-1)*e)}},k=function(){function e(){this.completeItems=new Map,this.requestQueue=[],this.active=!1}return e.prototype.handleBatchResult=function(e,t,n,r){var o=this,a=0,i=new Date().getTime();t.forEach(function(e){if(o.completeItems.has(e.key))e.resolve(o.completeItems.get(e.key));else if(r.maxRetryAttempts&&r.maxRetryAttempts>0&&n!==g.unretriableFailure){var t,s=(t=e.retryAttempts,r.getFailureCooldown?r.getFailureCooldown(t):1e3);a=a>0?Math.min(a,s):s,e.retryAttempts+1<=r.maxRetryAttempts?(e.retryAttempts+=1,e.queueAfter=i+s,o.requestQueue.unshift(e)):e.reject(g.maxAttemptsReached)}else e.reject(n)});var s=250;r&&r.processBatchWaitTime&&(s=r.processBatchWaitTime),a>0&&setTimeout(function(){return o.processQueue(e,r)},a+s),this.active=!1,this.processQueue(e,r)},e.prototype.processQueue=function(e,t){var n,r=this;if(!this.active){for(var o=[],a=new Map,i=[],s=new Date().getTime();o.length0;){var u=this.requestQueue.shift();u&&(u.queueAfter>s?(a.set(u.key,u),i.push(u)):this.completeItems.has(u.key)?u.resolve(this.completeItems.get(u.key)):a.has(u.key)?i.push(u):(a.set(u.key,u),o.push(u)))}(n=this.requestQueue).push.apply(n,i),!(o.length<=0)&&(this.active=!0,e(o).then(function(n){Object.keys(n).forEach(function(e){r.saveCompleteItem(e,n[e],t)}),r.handleBatchResult(e,o,g.processFailure,t)},function(n){r.handleBatchResult(e,o,n,t)}))}},e.prototype.saveCompleteItem=function(e,t,n){var r=this;this.completeItems.set(e,t),n.getItemExpiration&&setTimeout(function(){r.completeItems.delete(e)},n.getItemExpiration(e))},e.prototype.queueItem=function(e,t,n,r){var o=this;return new Promise(function(a,i){o.requestQueue.push({key:n(e),itemId:e,retryAttempts:0,queueAfter:0,startTime:new Date,resolve:a,reject:i}),setTimeout(function(){return o.processQueue(t,r)},r.processBatchWaitTime)})},e.prototype.invalidateItem=function(e,t){this.completeItems.delete(t(e))},e}(),A=function(){return(A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&void 0!==arguments[1]?arguments[1]:0,n=(E[e[t+0]]+E[e[t+1]]+E[e[t+2]]+E[e[t+3]]+"-"+E[e[t+4]]+E[e[t+5]]+"-"+E[e[t+6]]+E[e[t+7]]+"-"+E[e[t+8]]+E[e[t+9]]+"-"+E[e[t+10]]+E[e[t+11]]+E[e[t+12]]+E[e[t+13]]+E[e[t+14]]+E[e[t+15]]).toLowerCase();if(!("string"==typeof n&&R.test(n)))throw TypeError("Stringified UUID is invalid");return n},C=function(e,t,n){var r=(e=e||{}).random||(e.rng||function(){if(!b&&!(b="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return b(x)})();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return j(r)},L=n(3680);function N(e,t){function n(e){var n=e.eventName,r=e.ctx,o=e.properties;t.sendEventWithTarget(n,r,o)}function r(e,n,r){t.sendGamePlayEvent(e,n,void 0,r)}return{launchGame:function(e,t){var o=window.Roblox.GameLauncher;if(o){var a,i,s,u,c=o.isJoinAttemptIdEnabled()?C():void 0;o.isJoinAttemptIdEnabled()&&(t.properties.joinAttemptId=c);var l=e.rootPlaceId,f=e.placeId,d=e.gameInstanceId,p=e.playerId,h=e.privateServerLinkCode;l&&p?(t.properties.playerId=p,n(t),r(t.gamePlayIntentEventCtx,l,c),a=t.gamePlayIntentEventCtx,window.Roblox.GameLauncher.followPlayerIntoGame(p,c,a)):f===l&&d?(t.properties.gameInstanceId=d,n(t),r(t.gamePlayIntentEventCtx,l,c),i=t.gamePlayIntentEventCtx,window.Roblox.GameLauncher.joinGameInstance(f,d,!0,!0,c,i)):h?(n(t),r(t.gamePlayIntentEventCtx,f,c),s=t.gamePlayIntentEventCtx,window.Roblox.GameLauncher.joinPrivateGame(f,null,h,c,s)):(n(t),r(t.gamePlayIntentEventCtx,f,c),u=t.gamePlayIntentEventCtx,window.Roblox.GameLauncher.joinMultiplayerGame(f,!0,!1,c,u))}},buildPlayGameProperties:function(e,t,n,r,o){return{rootPlaceId:e,placeId:t,gameInstanceId:n,playerId:r,privateServerLinkCode:o}}}}N.$inject=["$log","eventStreamService"],L.Z.factory("playGameService",N);var M=N},1255:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e){function t(){return window.Roblox.RealTime}return{realTimeTypes:{friendshipNotifications:"FriendshipNotifications",presenceNotifications:"PresenceNotifications",gameCloseNotifications:"GameCloseNotifications",userThemeTypeChangeNotification:"UserThemeTypeChangeNotification"},notificationTypes:{friendshipNotifications:{friendshipDestroyed:"FriendshipDestroyed",friendshipCreated:"FriendshipCreated",friendshipDeclined:"FriendshipDeclined",friendshipRequested:"FriendshipRequested"},presenceNotifications:{presenceOffline:"UserOffline",presenceOnline:"UserOnline"},gameCloseNotifications:{close:"Close"},userThemeTypeChangeNotification:{themeUpdate:"ThemeUpdate"}},isRealTimeValid:t,getRealTimeClient:function(){var e=window.Roblox.RealTime;return t()?e.Factory.GetClient():null},listenToNotification:function(n,r){t()&&angular.isDefined(r)&&this.getRealTimeClient().Subscribe(n,function(t){e.debug("--------- this is "+n+" subscription -----------"+t.Type),t&&t.Type&&r[t.Type]&&r[t.Type](t)})}}}o.$inject=["$log"],r.Z.factory("realtimeService",o),t.default=o},2536:function(e,t,n){"use strict";function r(){return{getEmailRegex:function(){return Promise.resolve({Regex:"^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$"})}}}n.r(t),n(3680).Z.factory("regexService",r),t.default=r},5134:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e){function t(){var e=window.Roblox.Utilities;return!!e&&!!e.ExponentialBackoff&&!!e.ExponentialBackoffSpecification}return{isExponentialBackOffEnabled:t(),exponentialBackOff:function(){if(!t())return null;var e=window.Roblox.Utilities,n=new e.ExponentialBackoffSpecification({firstAttemptDelay:2e3,firstAttemptRandomnessFactor:3,subsequentDelayBase:1e4,subsequentDelayRandomnessFactor:.5,maximumDelayBase:3e5});return new e.ExponentialBackoff(n)}}}o.$inject=["$log"],r.Z.factory("retryService",o),t.default=o},415:function(e,t,n){"use strict";function r(){var e;function t(t){var n={};return void 0===t&&(t=window.location.search),t&&t.indexOf("?")>-1&&(t.substr(1).split("&").forEach(function(e){var t=e.split("=");n[t[0].toLowerCase()]=t[1]?decodeURIComponent(t[1]):null}),e=n),n}return{getAbsoluteUrl:function(e){var t=window.Roblox.Endpoints;return t?t.getAbsoluteUrl(e):e},getJsonFromQueryString:t,getParam:function(n){return e||t(),n=n.toLowerCase(),e&&e[n]?e[n]:void 0},getGameDetailReferralUrls:function(){return{home:"/games/refer?SortName={sortName}&PlaceId={placeId}&Position={position}&PageType=Home&LocalTimestamp={localTimestamp}&TotalInSort={totalInSort}&SortPosition={sortPosition}&PageId={pageId}",groupDetail:"/games/refer?PlaceId={placeId}&PageType=GroupDetail&LocalTimestamp={localTimestamp}",chat:"/games/refer?SortName={sortName}&PlaceId={placeId}&PageType=Chat"}}}}n.r(t),n(3680).Z.factory("urlService",r),t.default=r},5623:function(e,t,n){"use strict";n.r(t);var r=n(3680);function o(e,t){var n=window.Roblox.EnvironmentUrls.presenceApi+"/v1/presence/users";return{getUserAvatar:function(n){var r={url:t.getAbsoluteUrl("/thumbnail/avatar-headshots"),withCredentials:!0,retryable:!0};return e.httpGet(r,{userIds:n})},getUserPresence:function(r){var o={url:t.getAbsoluteUrl(n),withCredentials:!0,retryable:!0};return e.httpPost(o,{userIds:r})}}}o.$inject=["httpService","urlService"],r.Z.factory("userService",o),t.default=o},8132:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return uz}});var r,o,a,i,s,u,c,l,f,d,p,h,v,y,m,g,b,_,w,S,O,T=function(){var e,t=document.querySelector('meta[name="user-data"]');return null!==(e=null==t?void 0:t.dataset)&&void 0!==e?e:null},P=function(){var e,t,n,r=T();if(null==r)return null;var o=null==r.userid?null:Number.parseInt(r.userid,10);return{isAuthenticated:!0,id:Number.isNaN(o)?null:o,name:null!==(e=r.name)&&void 0!==e?e:null,displayName:null!==(t=r.displayname)&&void 0!==t?t:null,created:null!==(n=r.created)&&void 0!==n?n:null,isUnder13:"true"===r.isunder13,isPremiumUser:"true"===r.ispremiumuser}},I=n(8528),k=function(e,t){return(k=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function A(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}k(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var x=function(){return(x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]=200&&a.status<300)return[2,a];throw new Q(a,"Response from ".concat(a.url," returned an error code ").concat(a.status))}})})},e.prototype.createFetchParams=function(e,t){return R(this,void 0,void 0,function(){var n,r,o,a,i,s,u,c=this;return E(this,function(l){var f,d;switch(l.label){case 0:return n=this.configuration.basePath+e.path,void 0!==e.query&&0!==Object.keys(e.query).length&&(n+="?"+this.configuration.queryParamsStringify(e.query)),Object.keys(r=Object.assign({},this.configuration.headers,e.headers)).forEach(function(e){return void 0===r[e]?delete r[e]:{}}),o="function"==typeof t?t:function(){return R(c,void 0,void 0,function(){return E(this,function(e){return[2,t]})})},a={method:e.method,headers:r,body:e.body,credentials:this.configuration.credentials},s=[x({},a)],[4,o({init:a,context:e})];case 1:return i=x.apply(void 0,s.concat([l.sent()])),u=x(x({},i),{body:(f=i.body,"undefined"!=typeof FormData&&f instanceof FormData||i.body instanceof URLSearchParams||(d=i.body,"undefined"!=typeof Blob&&d instanceof Blob)?i.body:JSON.stringify(i.body))}),[2,{url:n,init:u}]}})})},e.prototype.clone=function(){var e=new this.constructor(this.configuration);return e.middleware=this.middleware.slice(),e},e.jsonRegex=RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$","i"),e}(),Q=function(e){function t(t,n){var r=e.call(this,n)||this;return r.response=t,r.name="ResponseError",r}return A(t,e),t}(Error),ee=function(e){function t(t,n){var r=e.call(this,n)||this;return r.cause=t,r.name="FetchError",r}return A(t,e),t}(Error),et=function(e){function t(t,n){var r=e.call(this,n)||this;return r.field=t,r.name="RequiredError",r}return A(t,e),t}(Error);function en(e,t){return null!=e[t]}var er=function(){function e(e,t){void 0===t&&(t=function(e){return e}),this.raw=e,this.transformer=t}return e.prototype.value=function(){return R(this,void 0,void 0,function(){var e;return E(this,function(t){switch(t.label){case 0:return e=this.transformer,[4,this.raw.json()];case 1:return[2,e.apply(this,[t.sent()])]}})})},e}(),eo=((function(e){this.raw=e}).prototype.value=function(){return R(this,void 0,void 0,function(){return E(this,function(e){return[2,void 0]})})},(function(e){this.raw=e}).prototype.value=function(){return R(this,void 0,void 0,function(){return E(this,function(e){switch(e.label){case 0:return[4,this.raw.blob()];case 1:return[2,e.sent()]}})})},(function(e){this.raw=e}).prototype.value=function(){return R(this,void 0,void 0,function(){return E(this,function(e){switch(e.label){case 0:return[4,this.raw.text()];case 1:return[2,e.sent()]}})})},new L),ea=new $,ei=[function(e){return!0===e.enableSentry?new W:void 0},function(e){return e.robloxSiteDomain&&e.enableBoundAuthToken?new Z(e.robloxSiteDomain,e.boundAuthTokenLoadTimeout,e.boundAuthTokenDataTimeout):void 0},function(e){return e.robloxSiteDomain?new D(e.robloxSiteDomain,e.genericChallengeMiddlewareType):void 0},function(e){return e.unifiedLogger?new K(e.unifiedLogger):void 0},function(){return eo},function(){return ea}],es=function(e){function t(t){void 0===t&&(t={});var n=x({},t),r=n.middleware||[];return r.unshift.apply(r,ei.map(function(e){return e(n)}).filter(function(e){return void 0!==e})),n.middleware=r,e.call(this,n)||this}return A(t,e),t}(J),eu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),t.prototype._continueRaw=function(e,t){return R(this,void 0,void 0,function(){var n,r;return E(this,function(o){switch(o.label){case 0:if(null===e.continueRequest||void 0===e.continueRequest)throw new et("continueRequest","Required parameter requestParameters.continueRequest was null or undefined when calling _continue.");return n={},(r={})["Content-Type"]="application/json",[4,this.request({path:"/v1/continue",method:"POST",headers:r,query:n,body:function(e){if(void 0!==e)return null===e?null:{challengeID:e.challengeID,challengeMetadata:e.challengeMetadata,challengeType:e.challengeType}}(e.continueRequest)},t)];case 1:return[2,new er(o.sent(),function(e){var t,n;return null==(t=e)?t:{challengeId:en(t,"challengeId")?t.challengeId:void 0,challengeMetadata:en(t,"challengeMetadata")?t.challengeMetadata:void 0,challengeType:en(t,"challengeType")?t.challengeType:void 0}})]}})})},t.prototype._continue=function(e,t){return R(this,void 0,void 0,function(){return E(this,function(n){switch(n.label){case 0:return[4,this._continueRaw(e,t)];case 1:return[4,n.sent().value()];case 2:return[2,n.sent()]}})})},t.prototype.getXboxTokenRaw=function(e){return R(this,void 0,void 0,function(){var t,n;return E(this,function(r){switch(r.label){case 0:return t={},n={},[4,this.request({path:"/v1/xboxToken",method:"GET",headers:n,query:t},e)];case 1:return[2,new er(r.sent(),function(e){var t,n;return null==(t=e)?t:{token:en(t,"token")?t.token:void 0}})]}})})},t.prototype.getXboxToken=function(e){return R(this,void 0,void 0,function(){return E(this,function(t){switch(t.label){case 0:return[4,this.getXboxTokenRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}})})},t.prototype.handleHealthCheckRaw=function(e){return R(this,void 0,void 0,function(){var t,n;return E(this,function(r){switch(r.label){case 0:return t={},n={},[4,this.request({path:"/health",method:"GET",headers:n,query:t},e)];case 1:return[2,new er(r.sent())]}})})},t.prototype.handleHealthCheck=function(e){return R(this,void 0,void 0,function(){return E(this,function(t){switch(t.label){case 0:return[4,this.handleHealthCheckRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}})})},t}(Y),ec=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return A(t,e),t.prototype.challengeInitSessionRaw=function(e,t){return R(this,void 0,void 0,function(){var n,r;return E(this,function(o){switch(o.label){case 0:return n={},(r={})["Content-Type"]="application/json-patch+json",void 0!==e.robloxApiKey&&null!==e.robloxApiKey&&(r["Roblox-Api-Key"]=String(e.robloxApiKey)),[4,this.request({path:"/v1/initSession",method:"POST",headers:r,query:n,body:function(e){if(void 0!==e)return null===e?null:{challengeId:e.challengeId,userId:e.userId,timestamp:e.timestamp,scriptLocation:e.scriptLocation}}(e.challengeInitSessionRequest)},t)];case 1:return[2,new er(o.sent(),function(e){var t,n;return null==(t=e)?t:{content:en(t,"content")?t.content:void 0,expectedNumCalls:en(t,"expectedNumCalls")?t.expectedNumCalls:void 0,expectedSymbols:en(t,"expectedSymbols")?t.expectedSymbols:void 0}})]}})})},t.prototype.challengeInitSession=function(e,t){return void 0===e&&(e={}),R(this,void 0,void 0,function(){return E(this,function(n){switch(n.label){case 0:return[4,this.challengeInitSessionRaw(e,t)];case 1:return[4,n.sent().value()];case 2:return[2,n.sent()]}})})},t.prototype.challengeRedeemSessionRaw=function(e,t){return R(this,void 0,void 0,function(){var n,r;return E(this,function(o){switch(o.label){case 0:return n={},(r={})["Content-Type"]="application/json-patch+json",void 0!==e.robloxApiKey&&null!==e.robloxApiKey&&(r["Roblox-Api-Key"]=String(e.robloxApiKey)),[4,this.request({path:"/v1/redeemSession",method:"POST",headers:r,query:n,body:function(e){if(void 0!==e)return null===e?null:{userId:e.userId,challengeId:e.challengeId}}(e.challengeRedeemSessionRequest)},t)];case 1:return[2,new er(o.sent())]}})})},t.prototype.challengeRedeemSession=function(e,t){return void 0===e&&(e={}),R(this,void 0,void 0,function(){return E(this,function(n){switch(n.label){case 0:return[4,this.challengeRedeemSessionRaw(e,t)];case 1:return[4,n.sent().value()];case 2:return[2,n.sent()]}})})},t.prototype.challengeSubmitRaw=function(e,t){return R(this,void 0,void 0,function(){var n,r;return E(this,function(o){switch(o.label){case 0:return n={},(r={})["Content-Type"]="application/json-patch+json",[4,this.request({path:"/v1/submit",method:"POST",headers:r,query:n,body:function(e){if(void 0!==e)return null===e?null:{userId:e.userId,challengeId:e.challengeId,payload:e.payload,payloadV2:e.payloadV2}}(e.challengeSubmitRequest)},t)];case 1:return[2,new er(o.sent())]}})})},t.prototype.challengeSubmit=function(e,t){return void 0===e&&(e={}),R(this,void 0,void 0,function(){return E(this,function(n){switch(n.label){case 0:return[4,this.challengeSubmitRaw(e,t)];case 1:return[4,n.sent().value()];case 2:return[2,n.sent()]}})})},t.prototype.challengeUploadRaw=function(e,t){return R(this,void 0,void 0,function(){var n,r;return E(this,function(o){switch(o.label){case 0:return n={},(r={})["Content-Type"]="application/json-patch+json",void 0!==e.robloxApiKey&&null!==e.robloxApiKey&&(r["Roblox-Api-Key"]=String(e.robloxApiKey)),[4,this.request({path:"/v1/upload",method:"POST",headers:r,query:n,body:function(e){if(void 0!==e)return null===e?null:{userId:e.userId,timestamp:e.timestamp,fileBase64:e.fileBase64}}(e.challengeUploadRequest)},t)];case 1:return[2,new er(o.sent(),function(e){var t,n;return null==(t=e)?t:{scriptLocation:en(t,"scriptLocation")?t.scriptLocation:void 0}})]}})})},t.prototype.challengeUpload=function(e,t){return void 0===e&&(e={}),R(this,void 0,void 0,function(){return E(this,function(n){switch(n.label){case 0:return[4,this.challengeUploadRaw(e,t)];case 1:return[4,n.sent().value()];case 2:return[2,n.sent()]}})})},t}(Y);function el(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]=e}:e;return function(){var e=Array.from(arguments);return n(arguments)?t.apply(this,e):function(n){return t.apply(void 0,tm([n],e,!1))}}},tP=function(e){return{_tag:"Left",left:e}},tI=function(e){return{_tag:"Right",right:e}},tk={_tag:"None"},tA=function(e){return{_tag:"Some",value:e}},tx=function(e){return"None"===e._tag},tR=function(e){return"Left"===e._tag},tE=function(e,t){try{return tI(e())}catch(e){return tP(t(e))}},tG=function(e,t){return tb(e,tj(t))},tj=function(e){return function(t){return function(){return Promise.resolve().then(t).then(e)}}},tC=function(e){return function(){return Promise.resolve(e)}},tL=tT(2,function(e,t){return function(){return Promise.resolve().then(e).then(function(e){return t(e)()})}}),tN="Task",tM=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0?t(e):tB}},tH="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},tZ={};!function(e){var t=tH&&tH.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o1?e(t[1],t[0]):function(n){return e(n)(t[0])}}},e.flow=o,e.tuple=function(){for(var e=[],t=0;t=e}:e;return function(){var e=Array.from(arguments);return r(arguments)?n.apply(this,e):function(r){return n.apply(void 0,t([r],e,!1))}}}}(tZ);var tK,t$,tW=["sitetest1","sitetest2","sitetest3"],tJ=function(){var e=tW.filter(function(e){return window.location.hostname.includes(e)});return e.length>0?"https://apis.".concat(e[0],".robloxlabs.com"):"https://apis.roblox.com"},tX=function(e){return Object.values(tv).includes(e)},tY=Object.freeze({__proto__:null,isSupportedByGrasshopper:tX}),tQ="Generic Challenge:";(r=tK||(tK={})).assertEqual=function(e){return e},r.assertIs=function(e){},r.assertNever=function(e){throw Error()},r.arrayToEnum=function(e){var t={},n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var s=a.value;t[s]=s}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}return t},r.getValidEnumValues=function(e){var t=r.objectKeys(e).filter(function(t){return"number"!=typeof e[e[t]]}),n={},o=!0,a=!1,i=void 0;try{for(var s,u=t[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var c=s.value;n[c]=e[c]}}catch(e){a=!0,i=e}finally{try{o||null==u.return||u.return()}finally{if(a)throw i}}return r.objectValues(n)},r.objectValues=function(e){return r.objectKeys(e).map(function(t){return e[t]})},r.objectKeys="function"==typeof Object.keys?function(e){return Object.keys(e)}:function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},r.find=function(e,t){var n=!0,r=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done);n=!0){var s=a.value;if(t(s))return s}}catch(e){r=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(r)throw o}}},r.isInteger="function"==typeof Number.isInteger?function(e){return Number.isInteger(e)}:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},r.joinValues=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" | ";return e.map(function(e){return"string"==typeof e?"'".concat(e,"'"):e}).join(t)},r.jsonStringifyReplacer=function(e,t){return"bigint"==(void 0===t?"undefined":eI(t))?t.toString():t},(t$||(t$={})).mergeShapes=function(e,t){return ew({},e,t)};var t0=tK.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),t1=function(e){switch(void 0===e?"undefined":eI(e)){case"undefined":return t0.undefined;case"string":return t0.string;case"number":return isNaN(e)?t0.nan:t0.number;case"boolean":return t0.boolean;case"function":return t0.function;case"bigint":return t0.bigint;case"symbol":return t0.symbol;case"object":return Array.isArray(e)?t0.array:null===e?t0.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?t0.promise:"undefined"!=typeof Map&&e instanceof Map?t0.map:"undefined"!=typeof Set&&e instanceof Set?t0.set:"undefined"!=typeof Date&&e instanceof Date?t0.date:t0.object;default:return t0.unknown}},t2=tK.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),t3=function(e){function t(e){eh(this,t),(n=ep(this,t)).issues=[],n.addIssue=function(e){n.issues=eP(n.issues).concat([e])},n.addIssues=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];n.issues=eP(n.issues).concat(eP(e))};var n,r=(this instanceof t?this.constructor:void 0).prototype;return Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r,n.name="ZodError",n.issues=e,n}return e_(t,e),em(t,[{key:"errors",get:function(){return this.issues}},{key:"format",value:function(e){var t=e||function(e){return e.message},n={_errors:[]},r=function(e){var o=!0,a=!1,i=void 0;try{for(var s,u=e.issues[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var c=s.value;if("invalid_union"===c.code)c.unionErrors.map(r);else if("invalid_return_type"===c.code)r(c.returnTypeError);else if("invalid_arguments"===c.code)r(c.argumentsError);else if(0===c.path.length)n._errors.push(t(c));else for(var l=n,f=0;f0&&void 0!==arguments[0]?arguments[0]:function(e){return e.message},t={},n=[],r=!0,o=!1,a=void 0;try{for(var i,s=this.issues[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var u=i.value;u.path.length>0?(t[u.path[0]]=t[u.path[0]]||[],t[u.path[0]].push(e(u))):n.push(e(u))}}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return{formErrors:n,fieldErrors:t}}},{key:"formErrors",get:function(){return this.flatten()}}],[{key:"assert",value:function(e){if(!(e instanceof t))throw Error("Not a ZodError: ".concat(e))}}]),t}(eA(Error));t3.create=function(e){return new t3(e)};var t4=function(e,t){var n;switch(e.code){case t2.invalid_type:n=e.received===t0.undefined?"Required":"Expected ".concat(e.expected,", received ").concat(e.received);break;case t2.invalid_literal:n="Invalid literal value, expected ".concat(JSON.stringify(e.expected,tK.jsonStringifyReplacer));break;case t2.unrecognized_keys:n="Unrecognized key(s) in object: ".concat(tK.joinValues(e.keys,", "));break;case t2.invalid_union:n="Invalid input";break;case t2.invalid_union_discriminator:n="Invalid discriminator value. Expected ".concat(tK.joinValues(e.options));break;case t2.invalid_enum_value:n="Invalid enum value. Expected ".concat(tK.joinValues(e.options),", received '").concat(e.received,"'");break;case t2.invalid_arguments:n="Invalid function arguments";break;case t2.invalid_return_type:n="Invalid function return type";break;case t2.invalid_date:n="Invalid date";break;case t2.invalid_string:"object"==eI(e.validation)?"includes"in e.validation?(n='Invalid input: must include "'.concat(e.validation.includes,'"'),"number"==typeof e.validation.position&&(n="".concat(n," at one or more positions greater than or equal to ").concat(e.validation.position))):"startsWith"in e.validation?n='Invalid input: must start with "'.concat(e.validation.startsWith,'"'):"endsWith"in e.validation?n='Invalid input: must end with "'.concat(e.validation.endsWith,'"'):tK.assertNever(e.validation):n="regex"!==e.validation?"Invalid ".concat(e.validation):"Invalid";break;case t2.too_small:n="array"===e.type?"Array must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"more than"," ").concat(e.minimum," element(s)"):"string"===e.type?"String must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"over"," ").concat(e.minimum," character(s)"):"number"===e.type?"Number must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(e.minimum):"date"===e.type?"Date must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(new Date(Number(e.minimum))):"Invalid input";break;case t2.too_big:n="array"===e.type?"Array must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"less than"," ").concat(e.maximum," element(s)"):"string"===e.type?"String must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"under"," ").concat(e.maximum," character(s)"):"number"===e.type?"Number must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum):"bigint"===e.type?"BigInt must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum):"date"===e.type?"Date must be ".concat(e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"," ").concat(new Date(Number(e.maximum))):"Invalid input";break;case t2.custom:n="Invalid input";break;case t2.invalid_intersection_types:n="Intersection results could not be merged";break;case t2.not_multiple_of:n="Number must be a multiple of ".concat(e.multipleOf);break;case t2.not_finite:n="Number must be finite";break;default:n=t.defaultError,tK.assertNever(e)}return{message:n}},t6=function(e){var t=e.data,n=e.path,r=e.errorMaps,o=e.issueData,a=eP(n).concat(eP(o.path||[])),i=eS(ew({},o),{path:a});if(void 0!==o.message)return eS(ew({},o),{path:a,message:o.message});var s="",u=r.filter(function(e){return!!e}).slice().reverse(),c=!0,l=!1,f=void 0;try{for(var d,p=u[Symbol.iterator]();!(c=(d=p.next()).done);c=!0)s=(0,d.value)(i,{data:t,defaultError:s}).message}catch(e){l=!0,f=e}finally{try{c||null==p.return||p.return()}finally{if(l)throw f}}return eS(ew({},o),{path:a,message:s})};function t5(e,t){var n=t6({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,t4,t4==t4?void 0:t4].filter(function(e){return!!e})});e.common.issues.push(n)}var t8=function(){function e(){eh(this,e),this.value="valid"}return em(e,[{key:"dirty",value:function(){"valid"===this.value&&(this.value="dirty")}},{key:"abort",value:function(){"aborted"!==this.value&&(this.value="aborted")}}],[{key:"mergeArray",value:function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var u=i.value;if("aborted"===u.status)return t9;"dirty"===u.status&&e.dirty(),n.push(u.value)}}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return{status:e.value,value:n}}},{key:"mergeObjectAsync",value:function(t,n){return ed(function(){var r,o,a,i,s,u,c,l,f,d;return eR(this,function(p){switch(p.label){case 0:r=[],o=!0,a=!1,i=void 0,p.label=1;case 1:p.trys.push([1,7,8,9]),s=n[Symbol.iterator](),p.label=2;case 2:if(o=(u=s.next()).done)return[3,6];return[4,(c=u.value).key];case 3:return l=p.sent(),[4,c.value];case 4:f=p.sent(),r.push({key:l,value:f}),p.label=5;case 5:return o=!0,[3,2];case 6:return[3,9];case 7:return d=p.sent(),a=!0,i=d,[3,9];case 8:try{o||null==s.return||s.return()}finally{if(a)throw i}return[7];case 9:return[2,e.mergeObjectSync(t,r)]}})})()}},{key:"mergeObjectSync",value:function(e,t){var n={},r=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var u=i.value,c=u.key,l=u.value;if("aborted"===c.status||"aborted"===l.status)return t9;"dirty"===c.status&&e.dirty(),"dirty"===l.status&&e.dirty(),"__proto__"!==c.value&&(void 0!==l.value||u.alwaysSet)&&(n[c.value]=l.value)}}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return{status:e.value,value:n}}}]),e}(),t9=Object.freeze({status:"aborted"}),t7=function(e){return{status:"dirty",value:e}},ne=function(e){return{status:"valid",value:e}},nt=function(e){return"aborted"===e.status},nn=function(e){return"dirty"===e.status},nr=function(e){return"valid"===e.status},no=function(e){return"undefined"!=typeof Promise&&e instanceof Promise};function na(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function ni(e,t,n,r,o){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}"function"==typeof SuppressedError&&SuppressedError,(o=g||(g={})).errToObj=function(e){return"string"==typeof e?{message:e}:e||{}},o.toString=function(e){return"string"==typeof e?e:null==e?void 0:e.message};var ns=function(){function e(t,n,r,o){eh(this,e),this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}return em(e,[{key:"path",get:function(){var e,t;return this._cachedPath.length||(this._key instanceof Array?(e=this._cachedPath).push.apply(e,eP(this._path).concat(eP(this._key))):(t=this._cachedPath).push.apply(t,eP(this._path).concat([this._key]))),this._cachedPath}}]),e}(),nu=function(e,t){if(nr(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;var n=new t3(e.common.issues);return this._error=n,this._error}}};function nc(e){if(!e)return{};var t=e.errorMap,n=e.invalid_type_error,r=e.required_error,o=e.description;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:o}:{errorMap:function(t,o){var a,i,s=e.message;return"invalid_enum_value"===t.code?{message:null!=s?s:o.defaultError}:void 0===o.data?{message:null!==(a=null!=s?s:r)&&void 0!==a?a:o.defaultError}:"invalid_type"!==t.code?{message:o.defaultError}:{message:null!==(i=null!=s?s:n)&&void 0!==i?i:o.defaultError}},description:o}}var nl=function(){function e(t){var n=this;eh(this,e),this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:function(e){return n["~validate"](e)}}}return em(e,[{key:"description",get:function(){return this._def.description}},{key:"_getType",value:function(e){return t1(e.data)}},{key:"_getOrReturnCtx",value:function(e,t){return t||{common:e.parent.common,data:e.data,parsedType:t1(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}},{key:"_processInputParams",value:function(e){return{status:new t8,ctx:{common:e.parent.common,data:e.data,parsedType:t1(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}},{key:"_parseSync",value:function(e){var t=this._parse(e);if(no(t))throw Error("Synchronous parse encountered promise.");return t}},{key:"_parseAsync",value:function(e){return Promise.resolve(this._parse(e))}},{key:"parse",value:function(e,t){var n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}},{key:"safeParse",value:function(e,t){var n,r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:t1(e)},o=this._parseSync({data:e,path:r.path,parent:r});return nu(r,o)}},{key:"~validate",value:function(e){var t,n,r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:t1(e)};if(!this["~standard"].async)try{var o=this._parseSync({data:e,path:[],parent:r});return nr(o)?{value:o.value}:{issues:r.common.issues}}catch(e){(null===(n=null===(t=null==e?void 0:e.message)||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.includes("encountered"))&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:r}).then(function(e){return nr(e)?{value:e.value}:{issues:r.common.issues}})}},{key:"parseAsync",value:function(e,t){var n=this;return ed(function(){var r;return eR(this,function(o){switch(o.label){case 0:return[4,n.safeParseAsync(e,t)];case 1:if((r=o.sent()).success)return[2,r.data];throw r.error}})})()}},{key:"safeParseAsync",value:function(e,t){var n=this;return ed(function(){var r,o,a;return eR(this,function(i){switch(i.label){case 0:return r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:n._def.errorMap,parent:null,data:e,parsedType:t1(e)},[4,no(o=n._parse({data:e,path:r.path,parent:r}))?o:Promise.resolve(o)];case 1:return a=i.sent(),[2,nu(r,a)]}})})()}},{key:"refine",value:function(e,t){return this._refinement(function(n,r){var o=e(n),a=function(){return r.addIssue(ew({code:t2.custom},"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(n):t))};return"undefined"!=typeof Promise&&o instanceof Promise?o.then(function(e){return!!e||(a(),!1)}):!!o||(a(),!1)})}},{key:"refinement",value:function(e,t){return this._refinement(function(n,r){return!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1)})}},{key:"_refinement",value:function(e){return new nQ({schema:this,typeName:S.ZodEffects,effect:{type:"refinement",refinement:e}})}},{key:"superRefine",value:function(e){return this._refinement(e)}},{key:"optional",value:function(){return n0.create(this,this._def)}},{key:"nullable",value:function(){return n1.create(this,this._def)}},{key:"nullish",value:function(){return this.nullable().optional()}},{key:"array",value:function(){return nD.create(this)}},{key:"promise",value:function(){return nY.create(this,this._def)}},{key:"or",value:function(e){return nB.create([this,e],this._def)}},{key:"and",value:function(e){return nz.create(this,e,this._def)}},{key:"transform",value:function(e){return new nQ(eS(ew({},nc(this._def)),{schema:this,typeName:S.ZodEffects,effect:{type:"transform",transform:e}}))}},{key:"default",value:function(e){return new n2(eS(ew({},nc(this._def)),{innerType:this,defaultValue:"function"==typeof e?e:function(){return e},typeName:S.ZodDefault}))}},{key:"brand",value:function(){return new n6(ew({typeName:S.ZodBranded,type:this},nc(this._def)))}},{key:"catch",value:function(e){return new n3(eS(ew({},nc(this._def)),{innerType:this,catchValue:"function"==typeof e?e:function(){return e},typeName:S.ZodCatch}))}},{key:"describe",value:function(e){return new this.constructor(eS(ew({},this._def),{description:e}))}},{key:"pipe",value:function(e){return n5.create(this,e)}},{key:"readonly",value:function(){return n8.create(this)}},{key:"isOptional",value:function(){return this.safeParse(void 0).success}},{key:"isNullable",value:function(){return this.safeParse(null).success}}]),e}(),nf=/^c[^\s-]{8,}$/i,nd=/^[0-9a-z]+$/,np=/^[0-9A-HJKMNP-TV-Z]{26}$/i,nh=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,nv=/^[a-z0-9_-]{21}$/i,ny=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,nm=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ng=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,nb=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,n_=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,nw=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,nS=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,nO=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,nT=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nP="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",nI=new RegExp("^".concat(nP,"$"));function nk(e){var t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t="".concat(t,"\\.\\d{").concat(e.precision,"}"):null==e.precision&&(t="".concat(t,"(\\.\\d+)?")),t}var nA=function(e){function t(){return eh(this,t),ep(this,t,arguments)}return e_(t,e),em(t,[{key:"_parse",value:function(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==t0.string){var t,n,r=this._getOrReturnCtx(e);return t5(r,{code:t2.invalid_type,expected:t0.string,received:r.parsedType}),t9}var o=new t8,a=!0,i=!1,s=void 0;try{for(var u,c,l=this._def.checks[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f,d,p=c.value;if("min"===p.kind)e.data.lengthp.value&&(u=this._getOrReturnCtx(e,u),t5(u,{code:t2.too_big,maximum:p.value,type:"string",inclusive:!0,exact:!1,message:p.message}),o.dirty());else if("length"===p.kind){var h=e.data.length>p.value,v=e.data.lengthe)&&(e=i.value)}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}return e}},{key:"maxLength",get:function(){var e=null,t=!0,n=!1,r=void 0;try{for(var o,a=this._def.checks[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;"max"===i.kind&&(null===e||i.valuec.value:e.data>=c.value)&&(i=this._getOrReturnCtx(e,i),t5(i,{code:t2.too_big,maximum:c.value,type:"number",inclusive:c.inclusive,exact:!1,message:c.message}),n.dirty()):"multipleOf"===c.kind?0!==function(e,t){var n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r;return parseInt(e.toFixed(o).replace(".",""))%parseInt(t.toFixed(o).replace(".",""))/Math.pow(10,o)}(e.data,c.value)&&(i=this._getOrReturnCtx(e,i),t5(i,{code:t2.not_multiple_of,multipleOf:c.value,message:c.message}),n.dirty()):"finite"===c.kind?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),t5(i,{code:t2.not_finite,message:c.message}),n.dirty()):tK.assertNever(c)}}catch(e){o=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return{status:n.value,value:e.data}}},{key:"gte",value:function(e,t){return this.setLimit("min",e,!0,g.toString(t))}},{key:"gt",value:function(e,t){return this.setLimit("min",e,!1,g.toString(t))}},{key:"lte",value:function(e,t){return this.setLimit("max",e,!0,g.toString(t))}},{key:"lt",value:function(e,t){return this.setLimit("max",e,!1,g.toString(t))}},{key:"setLimit",value:function(e,n,r,o){return new t(eS(ew({},this._def),{checks:eP(this._def.checks).concat([{kind:e,value:n,inclusive:r,message:g.toString(o)}])}))}},{key:"_addCheck",value:function(e){return new t(eS(ew({},this._def),{checks:eP(this._def.checks).concat([e])}))}},{key:"int",value:function(e){return this._addCheck({kind:"int",message:g.toString(e)})}},{key:"positive",value:function(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:g.toString(e)})}},{key:"negative",value:function(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:g.toString(e)})}},{key:"nonpositive",value:function(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:g.toString(e)})}},{key:"nonnegative",value:function(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:g.toString(e)})}},{key:"multipleOf",value:function(e,t){return this._addCheck({kind:"multipleOf",value:e,message:g.toString(t)})}},{key:"finite",value:function(e){return this._addCheck({kind:"finite",message:g.toString(e)})}},{key:"safe",value:function(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:g.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:g.toString(e)})}},{key:"minValue",get:function(){var e=null,t=!0,n=!1,r=void 0;try{for(var o,a=this._def.checks[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;"min"===i.kind&&(null===e||i.value>e)&&(e=i.value)}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}return e}},{key:"maxValue",get:function(){var e=null,t=!0,n=!1,r=void 0;try{for(var o,a=this._def.checks[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;"max"===i.kind&&(null===e||i.valuet)&&(t=s.value):"max"===s.kind&&(null===e||s.valueu.value:e.data>=u.value)&&(a=this._getOrReturnCtx(e,a),t5(a,{code:t2.too_big,type:"bigint",maximum:u.value,inclusive:u.inclusive,message:u.message}),t.dirty()):"multipleOf"===u.kind?e.data%u.value!==BigInt(0)&&(a=this._getOrReturnCtx(e,a),t5(a,{code:t2.not_multiple_of,multipleOf:u.value,message:u.message}),t.dirty()):tK.assertNever(u)}}catch(e){r=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw o}}return{status:t.value,value:e.data}}},{key:"_getInvalidInput",value:function(e){var t=this._getOrReturnCtx(e);return t5(t,{code:t2.invalid_type,expected:t0.bigint,received:t.parsedType}),t9}},{key:"gte",value:function(e,t){return this.setLimit("min",e,!0,g.toString(t))}},{key:"gt",value:function(e,t){return this.setLimit("min",e,!1,g.toString(t))}},{key:"lte",value:function(e,t){return this.setLimit("max",e,!0,g.toString(t))}},{key:"lt",value:function(e,t){return this.setLimit("max",e,!1,g.toString(t))}},{key:"setLimit",value:function(e,n,r,o){return new t(eS(ew({},this._def),{checks:eP(this._def.checks).concat([{kind:e,value:n,inclusive:r,message:g.toString(o)}])}))}},{key:"_addCheck",value:function(e){return new t(eS(ew({},this._def),{checks:eP(this._def.checks).concat([e])}))}},{key:"positive",value:function(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:g.toString(e)})}},{key:"negative",value:function(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:g.toString(e)})}},{key:"nonpositive",value:function(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:g.toString(e)})}},{key:"nonnegative",value:function(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:g.toString(e)})}},{key:"multipleOf",value:function(e,t){return this._addCheck({kind:"multipleOf",value:e,message:g.toString(t)})}},{key:"minValue",get:function(){var e=null,t=!0,n=!1,r=void 0;try{for(var o,a=this._def.checks[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;"min"===i.kind&&(null===e||i.value>e)&&(e=i.value)}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}return e}},{key:"maxValue",get:function(){var e=null,t=!0,n=!1,r=void 0;try{for(var o,a=this._def.checks[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;"max"===i.kind&&(null===e||i.valuec.value&&(i=this._getOrReturnCtx(e,i),t5(i,{code:t2.too_big,message:c.message,inclusive:!0,exact:!1,maximum:c.value,type:"date"}),n.dirty()):tK.assertNever(c)}}catch(e){o=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return{status:n.value,value:new Date(e.data.getTime())}}},{key:"_addCheck",value:function(e){return new t(eS(ew({},this._def),{checks:eP(this._def.checks).concat([e])}))}},{key:"min",value:function(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:g.toString(t)})}},{key:"max",value:function(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:g.toString(t)})}},{key:"minDate",get:function(){var e=null,t=!0,n=!1,r=void 0;try{for(var o,a=this._def.checks[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;"min"===i.kind&&(null===e||i.value>e)&&(e=i.value)}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}return null!=e?new Date(e):null}},{key:"maxDate",get:function(){var e=null,t=!0,n=!1,r=void 0;try{for(var o,a=this._def.checks[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;"max"===i.kind&&(null===e||i.valueo.exactLength.value,i=n.data.lengtho.maxLength.value&&(t5(n,{code:t2.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all(eP(n.data).map(function(e,t){return o.type._parseAsync(new ns(n,e,n.path,t))})).then(function(e){return t8.mergeArray(r,e)});var s=eP(n.data).map(function(e,t){return o.type._parseSync(new ns(n,e,n.path,t))});return t8.mergeArray(r,s)}},{key:"element",get:function(){return this._def.type}},{key:"min",value:function(e,n){return new t(eS(ew({},this._def),{minLength:{value:e,message:g.toString(n)}}))}},{key:"max",value:function(e,n){return new t(eS(ew({},this._def),{maxLength:{value:e,message:g.toString(n)}}))}},{key:"length",value:function(e,n){return new t(eS(ew({},this._def),{exactLength:{value:e,message:g.toString(n)}}))}},{key:"nonempty",value:function(e){return this.min(1,e)}}]),t}(nl);nD.create=function(e,t){return new nD(ew({type:e,minLength:null,maxLength:null,exactLength:null,typeName:S.ZodArray},nc(t)))};var nF=function(e){function t(){var e;return eh(this,t),e=ep(this,t,arguments),e._cached=null,e.nonstrict=e.passthrough,e.augment=e.extend,e}return e_(t,e),em(t,[{key:"_getCached",value:function(){if(null!==this._cached)return this._cached;var e=this._def.shape(),t=tK.objectKeys(e);return this._cached={shape:e,keys:t}}},{key:"_parse",value:function(e){if(this._getType(e)!==t0.object){var t=this._getOrReturnCtx(e);return t5(t,{code:t2.invalid_type,expected:t0.object,received:t.parsedType}),t9}var n=this._processInputParams(e),r=n.status,o=n.ctx,a=this._getCached(),i=a.shape,s=a.keys,u=[];if(!(this._def.catchall instanceof nq&&"strip"===this._def.unknownKeys))for(var c in o.data)s.includes(c)||u.push(c);var l=[],f=!0,d=!1,p=void 0;try{for(var h,v=s[Symbol.iterator]();!(f=(h=v.next()).done);f=!0){var y=h.value,m=i[y],g=o.data[y];l.push({key:{status:"valid",value:y},value:m._parse(new ns(o,g,o.path,y)),alwaysSet:y in o.data})}}catch(e){d=!0,p=e}finally{try{f||null==v.return||v.return()}finally{if(d)throw p}}if(this._def.catchall instanceof nq){var b=this._def.unknownKeys,_=!0,w=!1,S=void 0;if("passthrough"===b)try{for(var O,T=u[Symbol.iterator]();!(_=(O=T.next()).done);_=!0){var P=O.value;l.push({key:{status:"valid",value:P},value:{status:"valid",value:o.data[P]}})}}catch(e){w=!0,S=e}finally{try{_||null==T.return||T.return()}finally{if(w)throw S}}else if("strict"===b)u.length>0&&(t5(o,{code:t2.unrecognized_keys,keys:u}),r.dirty());else if("strip"!==b)throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{var I=this._def.catchall,k=!0,A=!1,x=void 0;try{for(var R,E=u[Symbol.iterator]();!(k=(R=E.next()).done);k=!0){var G=R.value,j=o.data[G];l.push({key:{status:"valid",value:G},value:I._parse(new ns(o,j,o.path,G)),alwaysSet:G in o.data})}}catch(e){A=!0,x=e}finally{try{k||null==E.return||E.return()}finally{if(A)throw x}}}return o.common.async?Promise.resolve().then(ed(function(){var e,t,n,r,o,a,i,s,u,c;return eR(this,function(f){switch(f.label){case 0:e=[],t=!0,n=!1,r=void 0,f.label=1;case 1:f.trys.push([1,7,8,9]),o=l[Symbol.iterator](),f.label=2;case 2:if(t=(a=o.next()).done)return[3,6];return[4,(i=a.value).key];case 3:return s=f.sent(),[4,i.value];case 4:u=f.sent(),e.push({key:s,value:u,alwaysSet:i.alwaysSet}),f.label=5;case 5:return t=!0,[3,2];case 6:return[3,9];case 7:return c=f.sent(),n=!0,r=c,[3,9];case 8:try{t||null==o.return||o.return()}finally{if(n)throw r}return[7];case 9:return[2,e]}})})).then(function(e){return t8.mergeObjectSync(r,e)}):t8.mergeObjectSync(r,l)}},{key:"shape",get:function(){return this._def.shape()}},{key:"strict",value:function(e){var n=this;return g.errToObj,new t(ew(eS(ew({},this._def),{unknownKeys:"strict"}),void 0!==e?{errorMap:function(t,r){var o,a,i,s,u=null!==(i=null===(a=(o=n._def).errorMap)||void 0===a?void 0:a.call(o,t,r).message)&&void 0!==i?i:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=g.errToObj(e).message)&&void 0!==s?s:u}:{message:u}}}:{}))}},{key:"strip",value:function(){return new t(eS(ew({},this._def),{unknownKeys:"strip"}))}},{key:"passthrough",value:function(){return new t(eS(ew({},this._def),{unknownKeys:"passthrough"}))}},{key:"extend",value:function(e){var n=this;return new t(eS(ew({},this._def),{shape:function(){return ew({},n._def.shape(),e)}}))}},{key:"merge",value:function(e){var n=this;return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:function(){return ew({},n._def.shape(),e._def.shape())},typeName:S.ZodObject})}},{key:"setKey",value:function(e,t){return this.augment(eg({},e,t))}},{key:"catchall",value:function(e){return new t(eS(ew({},this._def),{catchall:e}))}},{key:"pick",value:function(e){var n=this,r={};return tK.objectKeys(e).forEach(function(t){e[t]&&n.shape[t]&&(r[t]=n.shape[t])}),new t(eS(ew({},this._def),{shape:function(){return r}}))}},{key:"omit",value:function(e){var n=this,r={};return tK.objectKeys(this.shape).forEach(function(t){e[t]||(r[t]=n.shape[t])}),new t(eS(ew({},this._def),{shape:function(){return r}}))}},{key:"deepPartial",value:function(){return function e(t){if(t instanceof nF){var n={};for(var r in t.shape){var o=t.shape[r];n[r]=n0.create(e(o))}return new nF(eS(ew({},t._def),{shape:function(){return n}}))}return t instanceof nD?new nD(eS(ew({},t._def),{type:e(t.element)})):t instanceof n0?n0.create(e(t.unwrap())):t instanceof n1?n1.create(e(t.unwrap())):t instanceof nV?nV.create(t.items.map(function(t){return e(t)})):t}(this)}},{key:"partial",value:function(e){var n=this,r={};return tK.objectKeys(this.shape).forEach(function(t){var o=n.shape[t];e&&!e[t]?r[t]=o:r[t]=o.optional()}),new t(eS(ew({},this._def),{shape:function(){return r}}))}},{key:"required",value:function(e){var n=this,r={};return tK.objectKeys(this.shape).forEach(function(t){if(e&&!e[t])r[t]=n.shape[t];else{for(var o=n.shape[t];o instanceof n0;)o=o._def.innerType;r[t]=o}}),new t(eS(ew({},this._def),{shape:function(){return r}}))}},{key:"keyof",value:function(){return nW(tK.objectKeys(this.shape))}}]),t}(nl);nF.create=function(e,t){return new nF(ew({shape:function(){return e},unknownKeys:"strip",catchall:nq.create(),typeName:S.ZodObject},nc(t)))},nF.strictCreate=function(e,t){return new nF(ew({shape:function(){return e},unknownKeys:"strict",catchall:nq.create(),typeName:S.ZodObject},nc(t)))},nF.lazycreate=function(e,t){return new nF(ew({shape:e,unknownKeys:"strip",catchall:nq.create(),typeName:S.ZodObject},nc(t)))};var nB=function(e){function t(){return eh(this,t),ep(this,t,arguments)}return e_(t,e),em(t,[{key:"_parse",value:function(e){var t=this._processInputParams(e).ctx,n=this._def.options;if(t.common.async)return Promise.all(n.map((s=ed(function(e){var n,r;return eR(this,function(o){switch(o.label){case 0:return n=eS(ew({},t),{common:eS(ew({},t.common),{issues:[]}),parent:null}),r={},[4,e._parseAsync({data:t.data,path:t.path,parent:n})];case 1:return[2,(r.result=o.sent(),r.ctx=n,r)]}})}),function(e){return s.apply(this,arguments)}))).then(function(e){var n=!0,r=!1,o=void 0;try{for(var a,i,s=e[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var u=i.value;if("valid"===u.result.status)return u.result}}catch(e){r=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw o}}var c=!0,l=!1,f=void 0;try{for(var d,p=e[Symbol.iterator]();!(c=(d=p.next()).done);c=!0){var h=d.value;if("dirty"===h.result.status)return(a=t.common.issues).push.apply(a,eP(h.ctx.common.issues)),h.result}}catch(e){l=!0,f=e}finally{try{c||null==p.return||p.return()}finally{if(l)throw f}}var v=e.map(function(e){return new t3(e.ctx.common.issues)});return t5(t,{code:t2.invalid_union,unionErrors:v}),t9});var r=[],o=!0,a=!1,i=void 0;try{for(var s,u,c,l,f=n[Symbol.iterator]();!(o=(l=f.next()).done);o=!0){var d=l.value,p=eS(ew({},t),{common:eS(ew({},t.common),{issues:[]}),parent:null}),h=d._parseSync({data:t.data,path:t.path,parent:p});if("valid"===h.status)return h;"dirty"!==h.status||c||(c={result:h,ctx:p}),p.common.issues.length&&r.push(p.common.issues)}}catch(e){a=!0,i=e}finally{try{o||null==f.return||f.return()}finally{if(a)throw i}}if(c)return(u=t.common.issues).push.apply(u,eP(c.ctx.common.issues)),c.result;var v=r.map(function(e){return new t3(e)});return t5(t,{code:t2.invalid_union,unionErrors:v}),t9}},{key:"options",get:function(){return this._def.options}}]),t}(nl);nB.create=function(e,t){return new nB(ew({options:e,typeName:S.ZodUnion},nc(t)))};var nz=function(e){function t(){return eh(this,t),ep(this,t,arguments)}return e_(t,e),em(t,[{key:"_parse",value:function(e){var t=this._processInputParams(e),n=t.status,r=t.ctx,o=function(e,t){if(nt(e)||nt(t))return t9;var o=function e(t,n){var r=t1(t),o=t1(n);if(t===n)return{valid:!0,data:t};if(r===t0.object&&o===t0.object){var a=tK.objectKeys(n),i=tK.objectKeys(t).filter(function(e){return -1!==a.indexOf(e)}),s=ew({},t,n),u=!0,c=!1,l=void 0;try{for(var f,d=i[Symbol.iterator]();!(u=(f=d.next()).done);u=!0){var p=f.value,h=e(t[p],n[p]);if(!h.valid)return{valid:!1};s[p]=h.data}}catch(e){c=!0,l=e}finally{try{u||null==d.return||d.return()}finally{if(c)throw l}}return{valid:!0,data:s}}if(r===t0.array&&o===t0.array){if(t.length!==n.length)return{valid:!1};for(var v=[],y=0;ythis._def.items.length&&(t5(o,{code:t2.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());var a=eP(o.data).map(function(e,n){var r=t._def.items[n]||t._def.rest;return r?r._parse(new ns(o,e,o.path,n)):null}).filter(function(e){return!!e});return o.common.async?Promise.all(a).then(function(e){return t8.mergeArray(r,e)}):t8.mergeArray(r,a)}},{key:"items",get:function(){return this._def.items}},{key:"rest",value:function(e){return new t(eS(ew({},this._def),{rest:e}))}}]),t}(nl);nV.create=function(e,t){if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new nV(ew({items:e,typeName:S.ZodTuple,rest:null},nc(t)))};var nH=function(e){function t(){return eh(this,t),ep(this,t,arguments)}return e_(t,e),em(t,[{key:"keySchema",get:function(){return this._def.keyType}},{key:"valueSchema",get:function(){return this._def.valueType}},{key:"_parse",value:function(e){var t=this._processInputParams(e),n=t.status,r=t.ctx;if(r.parsedType!==t0.map)return t5(r,{code:t2.invalid_type,expected:t0.map,received:r.parsedType}),t9;var o=this._def.keyType,a=this._def.valueType,i=eP(r.data.entries()).map(function(e,t){var n=eT(e,2),i=n[0],s=n[1];return{key:o._parse(new ns(r,i,r.path,[t,"key"])),value:a._parse(new ns(r,s,r.path,[t,"value"]))}});if(r.common.async){var s=new Map;return Promise.resolve().then(ed(function(){var e,t,r,o,a,u,c,l,f;return eR(this,function(d){switch(d.label){case 0:e=!0,t=!1,r=void 0,d.label=1;case 1:d.trys.push([1,7,8,9]),o=i[Symbol.iterator](),d.label=2;case 2:if(e=(a=o.next()).done)return[3,6];return[4,(u=a.value).key];case 3:return c=d.sent(),[4,u.value];case 4:if(l=d.sent(),"aborted"===c.status||"aborted"===l.status)return[2,t9];"dirty"!==c.status&&"dirty"!==l.status||n.dirty(),s.set(c.value,l.value),d.label=5;case 5:return e=!0,[3,2];case 6:return[3,9];case 7:return f=d.sent(),t=!0,r=f,[3,9];case 8:try{e||null==o.return||o.return()}finally{if(t)throw r}return[7];case 9:return[2,{status:n.value,value:s}]}})}))}var u=new Map,c=!0,l=!1,f=void 0;try{for(var d,p=i[Symbol.iterator]();!(c=(d=p.next()).done);c=!0){var h=d.value,v=h.key,y=h.value;if("aborted"===v.status||"aborted"===y.status)return t9;"dirty"!==v.status&&"dirty"!==y.status||n.dirty(),u.set(v.value,y.value)}}catch(e){l=!0,f=e}finally{try{c||null==p.return||p.return()}finally{if(l)throw f}}return{status:n.value,value:u}}}]),t}(nl);nH.create=function(e,t,n){return new nH(ew({valueType:t,keyType:e,typeName:S.ZodMap},nc(n)))};var nZ=function(e){function t(){return eh(this,t),ep(this,t,arguments)}return e_(t,e),em(t,[{key:"_parse",value:function(e){var t=this._processInputParams(e),n=t.status,r=t.ctx;if(r.parsedType!==t0.set)return t5(r,{code:t2.invalid_type,expected:t0.set,received:r.parsedType}),t9;var o=this._def;null!==o.minSize&&r.data.sizeo.maxSize.value&&(t5(r,{code:t2.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());var a=this._def.valueType;function i(e){var t=new Set,r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var u=i.value;if("aborted"===u.status)return t9;"dirty"===u.status&&n.dirty(),t.add(u.value)}}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return{status:n.value,value:t}}var s=eP(r.data.values()).map(function(e,t){return a._parse(new ns(r,e,r.path,t))});return r.common.async?Promise.all(s).then(function(e){return i(e)}):i(s)}},{key:"min",value:function(e,n){return new t(eS(ew({},this._def),{minSize:{value:e,message:g.toString(n)}}))}},{key:"max",value:function(e,n){return new t(eS(ew({},this._def),{maxSize:{value:e,message:g.toString(n)}}))}},{key:"size",value:function(e,t){return this.min(e,t).max(e,t)}},{key:"nonempty",value:function(e){return this.min(1,e)}}]),t}(nl);nZ.create=function(e,t){return new nZ(ew({valueType:e,minSize:null,maxSize:null,typeName:S.ZodSet},nc(t)))};var nK=function(e){function t(){return eh(this,t),ep(this,t,arguments)}return e_(t,e),em(t,[{key:"schema",get:function(){return this._def.getter()}},{key:"_parse",value:function(e){var t=this._processInputParams(e).ctx;return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}]),t}(nl);nK.create=function(e,t){return new nK(ew({getter:e,typeName:S.ZodLazy},nc(t)))};var n$=function(e){function t(){return eh(this,t),ep(this,t,arguments)}return e_(t,e),em(t,[{key:"_parse",value:function(e){if(e.data!==this._def.value){var t=this._getOrReturnCtx(e);return t5(t,{received:t.data,code:t2.invalid_literal,expected:this._def.value}),t9}return{status:"valid",value:e.data}}},{key:"value",get:function(){return this._def.value}}]),t}(nl);function nW(e,t){return new nJ(ew({values:e,typeName:S.ZodEnum},nc(t)))}n$.create=function(e,t){return new n$(ew({value:e,typeName:S.ZodLiteral},nc(t)))};var nJ=function(e){function t(){var e;return eh(this,t),e=ep(this,t,arguments),b.set(e,void 0),e}return e_(t,e),em(t,[{key:"_parse",value:function(e){if("string"!=typeof e.data){var t=this._getOrReturnCtx(e),n=this._def.values;return t5(t,{expected:tK.joinValues(n),received:t.parsedType,code:t2.invalid_type}),t9}if(na(this,b,"f")||ni(this,b,new Set(this._def.values),"f"),!na(this,b,"f").has(e.data)){var r=this._getOrReturnCtx(e),o=this._def.values;return t5(r,{received:r.data,code:t2.invalid_enum_value,options:o}),t9}return ne(e.data)}},{key:"options",get:function(){return this._def.values}},{key:"enum",get:function(){var e={},t=!0,n=!1,r=void 0;try{for(var o,a=this._def.values[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;e[i]=i}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}return e}},{key:"Values",get:function(){var e={},t=!0,n=!1,r=void 0;try{for(var o,a=this._def.values[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;e[i]=i}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}return e}},{key:"Enum",get:function(){var e={},t=!0,n=!1,r=void 0;try{for(var o,a=this._def.values[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var i=o.value;e[i]=i}}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}return e}},{key:"extract",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._def;return t.create(e,ew({},this._def,n))}},{key:"exclude",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._def;return t.create(this.options.filter(function(t){return!e.includes(t)}),ew({},this._def,n))}}]),t}(nl);b=new WeakMap,nJ.create=nW;var nX=function(e){function t(){var e;return eh(this,t),e=ep(this,t,arguments),_.set(e,void 0),e}return e_(t,e),em(t,[{key:"_parse",value:function(e){var t=tK.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==t0.string&&n.parsedType!==t0.number){var r=tK.objectValues(t);return t5(n,{expected:tK.joinValues(r),received:n.parsedType,code:t2.invalid_type}),t9}if(na(this,_,"f")||ni(this,_,new Set(tK.getValidEnumValues(this._def.values)),"f"),!na(this,_,"f").has(e.data)){var o=tK.objectValues(t);return t5(n,{received:n.data,code:t2.invalid_enum_value,options:o}),t9}return ne(e.data)}},{key:"enum",get:function(){return this._def.values}}]),t}(nl);_=new WeakMap,nX.create=function(e,t){return new nX(ew({values:e,typeName:S.ZodNativeEnum},nc(t)))};var nY=function(e){function t(){return eh(this,t),ep(this,t,arguments)}return e_(t,e),em(t,[{key:"unwrap",value:function(){return this._def.type}},{key:"_parse",value:function(e){var t=this,n=this._processInputParams(e).ctx;return n.parsedType!==t0.promise&&!1===n.common.async?(t5(n,{code:t2.invalid_type,expected:t0.promise,received:n.parsedType}),t9):ne((n.parsedType===t0.promise?n.data:Promise.resolve(n.data)).then(function(e){return t._def.type.parseAsync(e,{path:n.path,errorMap:n.common.contextualErrorMap})}))}}]),t}(nl);nY.create=function(e,t){return new nY(ew({type:e,typeName:S.ZodPromise},nc(t)))};var nQ=function(e){function t(){return eh(this,t),ep(this,t,arguments)}return e_(t,e),em(t,[{key:"innerType",value:function(){return this._def.schema}},{key:"sourceType",value:function(){return this._def.schema._def.typeName===S.ZodEffects?this._def.schema.sourceType():this._def.schema}},{key:"_parse",value:function(e){var t=this._processInputParams(e),n=t.status,r=t.ctx,o=this._def.effect||null,a={addIssue:function(e){t5(r,e),e.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),"preprocess"===o.type){var i,s=o.transform(r.data,a),u=this;if(r.common.async)return Promise.resolve(s).then((i=ed(function(e){var t;return eR(this,function(o){switch(o.label){case 0:if("aborted"===n.value)return[2,t9];return[4,u._def.schema._parseAsync({data:e,path:r.path,parent:r})];case 1:return[2,"aborted"===(t=o.sent()).status?t9:"dirty"===t.status||"dirty"===n.value?t7(t.value):t]}})}),function(e){return i.apply(this,arguments)}));if("aborted"===n.value)return t9;var c=this._def.schema._parseSync({data:s,path:r.path,parent:r});return"aborted"===c.status?t9:"dirty"===c.status||"dirty"===n.value?t7(c.value):c}if("refinement"===o.type){var l=function(e){var t=o.refinement(e,a);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===r.common.async){var f=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===f.status?t9:("dirty"===f.status&&n.dirty(),l(f.value),{status:n.value,value:f.value})}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(function(e){return"aborted"===e.status?t9:("dirty"===e.status&&n.dirty(),l(e.value).then(function(){return{status:n.value,value:e.value}}))})}if("transform"===o.type){if(!1===r.common.async){var d=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!nr(d))return d;var p=o.transform(d.value,a);if(p instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:p}}return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(function(e){return nr(e)?Promise.resolve(o.transform(e.value,a)).then(function(e){return{status:n.value,value:e}}):e})}tK.assertNever(o)}}]),t}(nl);nQ.create=function(e,t,n){return new nQ(ew({schema:e,typeName:S.ZodEffects,effect:t},nc(n)))},nQ.createWithPreprocess=function(e,t,n){return new nQ(ew({schema:t,effect:{type:"preprocess",transform:e},typeName:S.ZodEffects},nc(n)))};var n0=function(e){function t(){return eh(this,t),ep(this,t,arguments)}return e_(t,e),em(t,[{key:"_parse",value:function(e){return this._getType(e)===t0.undefined?ne(void 0):this._def.innerType._parse(e)}},{key:"unwrap",value:function(){return this._def.innerType}}]),t}(nl);n0.create=function(e,t){return new n0(ew({innerType:e,typeName:S.ZodOptional},nc(t)))};var n1=function(e){function t(){return eh(this,t),ep(this,t,arguments)}return e_(t,e),em(t,[{key:"_parse",value:function(e){return this._getType(e)===t0.null?ne(null):this._def.innerType._parse(e)}},{key:"unwrap",value:function(){return this._def.innerType}}]),t}(nl);n1.create=function(e,t){return new n1(ew({innerType:e,typeName:S.ZodNullable},nc(t)))};var n2=function(e){function t(){return eh(this,t),ep(this,t,arguments)}return e_(t,e),em(t,[{key:"_parse",value:function(e){var t=this._processInputParams(e).ctx,n=t.data;return t.parsedType===t0.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}},{key:"removeDefault",value:function(){return this._def.innerType}}]),t}(nl);n2.create=function(e,t){return new n2(ew({innerType:e,typeName:S.ZodDefault,defaultValue:"function"==typeof t.default?t.default:function(){return t.default}},nc(t)))};var n3=function(e){function t(){return eh(this,t),ep(this,t,arguments)}return e_(t,e),em(t,[{key:"_parse",value:function(e){var t=this,n=this._processInputParams(e).ctx,r=eS(ew({},n),{common:eS(ew({},n.common),{issues:[]})}),o=this._def.innerType._parse({data:r.data,path:r.path,parent:ew({},r)});return no(o)?o.then(function(e){return{status:"valid",value:"valid"===e.status?e.value:t._def.catchValue({get error(){return new t3(r.common.issues)},input:r.data})}}):{status:"valid",value:"valid"===o.status?o.value:this._def.catchValue({get error(){return new t3(r.common.issues)},input:r.data})}}},{key:"removeCatch",value:function(){return this._def.innerType}}]),t}(nl);n3.create=function(e,t){return new n3(ew({innerType:e,typeName:S.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:function(){return t.catch}},nc(t)))};var n4=function(e){function t(){return eh(this,t),ep(this,t,arguments)}return e_(t,e),em(t,[{key:"_parse",value:function(e){if(this._getType(e)!==t0.nan){var t=this._getOrReturnCtx(e);return t5(t,{code:t2.invalid_type,expected:t0.nan,received:t.parsedType}),t9}return{status:"valid",value:e.data}}}]),t}(nl);n4.create=function(e){return new n4(ew({typeName:S.ZodNaN},nc(e)))};var n6=function(e){function t(){return eh(this,t),ep(this,t,arguments)}return e_(t,e),em(t,[{key:"_parse",value:function(e){var t=this._processInputParams(e).ctx,n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}},{key:"unwrap",value:function(){return this._def.type}}]),t}(nl),n5=function(e){function t(){return eh(this,t),ep(this,t,arguments)}return e_(t,e),em(t,[{key:"_parse",value:function(e){var t=this._processInputParams(e),n=t.status,r=t.ctx;if(r.common.async){var o=this;return ed(function(){var e;return eR(this,function(t){switch(t.label){case 0:return[4,o._def.in._parseAsync({data:r.data,path:r.path,parent:r})];case 1:return[2,"aborted"===(e=t.sent()).status?t9:"dirty"===e.status?(n.dirty(),t7(e.value)):o._def.out._parseAsync({data:e.value,path:r.path,parent:r})]}})})()}var a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===a.status?t9:"dirty"===a.status?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}],[{key:"create",value:function(e,n){return new t({in:e,out:n,typeName:S.ZodPipeline})}}]),t}(nl),n8=function(e){function t(){return eh(this,t),ep(this,t,arguments)}return e_(t,e),em(t,[{key:"_parse",value:function(e){var t=this._def.innerType._parse(e),n=function(e){return nr(e)&&(e.value=Object.freeze(e.value)),e};return no(t)?t.then(function(e){return n(e)}):n(t)}},{key:"unwrap",value:function(){return this._def.innerType}}]),t}(nl);n8.create=function(e,t){return new n8(ew({innerType:e,typeName:S.ZodReadonly},nc(t)))},nF.lazycreate,(a=S||(S={})).ZodString="ZodString",a.ZodNumber="ZodNumber",a.ZodNaN="ZodNaN",a.ZodBigInt="ZodBigInt",a.ZodBoolean="ZodBoolean",a.ZodDate="ZodDate",a.ZodSymbol="ZodSymbol",a.ZodUndefined="ZodUndefined",a.ZodNull="ZodNull",a.ZodAny="ZodAny",a.ZodUnknown="ZodUnknown",a.ZodNever="ZodNever",a.ZodVoid="ZodVoid",a.ZodArray="ZodArray",a.ZodObject="ZodObject",a.ZodUnion="ZodUnion",a.ZodDiscriminatedUnion="ZodDiscriminatedUnion",a.ZodIntersection="ZodIntersection",a.ZodTuple="ZodTuple",a.ZodRecord="ZodRecord",a.ZodMap="ZodMap",a.ZodSet="ZodSet",a.ZodFunction="ZodFunction",a.ZodLazy="ZodLazy",a.ZodLiteral="ZodLiteral",a.ZodEnum="ZodEnum",a.ZodEffects="ZodEffects",a.ZodNativeEnum="ZodNativeEnum",a.ZodOptional="ZodOptional",a.ZodNullable="ZodNullable",a.ZodDefault="ZodDefault",a.ZodCatch="ZodCatch",a.ZodPromise="ZodPromise",a.ZodBranded="ZodBranded",a.ZodPipeline="ZodPipeline",a.ZodReadonly="ZodReadonly";var n9=nA.create;nx.create,n4.create,nR.create;var n7=nE.create;nG.create,nj.create,nC.create,nL.create,nN.create,nM.create,nq.create,nU.create;var re=nD.create,rt=nF.create;nF.strictCreate,nB.create,nz.create,nV.create,nH.create,nZ.create,nK.create,n$.create,nJ.create,nX.create,nY.create,nQ.create,n0.create,n1.create,nQ.createWithPreprocess,n5.create;var rn=rt({sharedParameters:rt({shouldAnalyze:n7().optional(),useContinueMode:n7().optional(),genericChallengeId:n9().optional()}).optional()}),rr=rt({userId:n9(),challengeId:n9(),contentInlineBase64:n9(),expectedSymbols:re(n9())}).and(rn),ro=((O={})[tv.UNKNOWN]=rt({}),O[tv.CHEF]=rr,O),ra=function(e,t,n){if(""===e||""===n||""===t)return tk;var r,o=tZ.pipe(function(e){try{return tA(e())}catch(e){return tk}}(function(){return atob(n)}),(r=function(){return n},function(e){return tx(e)?r():e.value}));if(!Object.values(tv).includes(t))return tk;var a=tE(function(){return JSON.parse(o)},function(){return null});if(tR(a))return tk;var i=ro[t].safeParse(a.right);return i.success?tA({challengeId:e,challengeType:t,challengeMetadata:a.right}):(console.error(tQ,i.error),tk)},ri=new ec(new es({basePath:"".concat(tJ(),"/rotating-client-service"),genericChallengeMiddlewareType:"native",credentials:"include"})),rs=function(e){var t=e.challengeBaseProperties,n=e.challengeSpecificProperties;return eN(void 0,void 0,void 0,function(){return eM(this,function(e){return[2,tZ.pipe(tD(function(){switch(n.challengeType){case tv.CHEF:var e,r,o,a,i,s,u,c=n.challengeMetadata;return r=(e=eL(eL(eL({},t),c),{onChallengeInvalidated:function(e){return t.onChallengeInvalidated(eL({},e))},onChallengeCompleted:function(e){return t.onChallengeCompleted(eL({},e))}})).userId,o=e.challengeId,a=e.contentInlineBase64,i=e.expectedSymbols,s=e.onChallengeCompleted,u=e.onChallengeInvalidated,eN(void 0,void 0,void 0,function(){var e,t,n;return eM(this,function(c){return tR(e=tE(function(){return atob(a)},function(e){return e}))?(u({challengeType:tv.CHEF,errorCode:e3.ErrorCode.FAILED_PREP,errorMessage:"Could not prep the cook successfully: ".concat(e.left)}),[2,Promise.resolve(!1)]):i.reduce(function(e,t){return e||!(t in window)},!1)?(u({challengeType:tv.CHEF,errorCode:e3.ErrorCode.FAILED_MIREPOIX,errorMessage:"Burnt the mirepoix :/."}),[2,Promise.resolve(!1)]):((t=document.createElement("script")).innerHTML=e.right,document.body.append(t),n=window,[2,tZ.pipe(tV(function(e){var t=n[e];return tD(function(){return t({userId:r,challengeId:o,expectedSymbol:e,rcsClient:ri})},function(e){return e})})(i),tF(function(e){return u({challengeType:tv.CHEF,errorCode:e3.ErrorCode.FAILED_SIMMER,errorMessage:"Simmer was too short!"}),Promise.resolve(!1)},function(){return s({challengeType:tv.CHEF,metadata:{userId:r,challengeId:o}}),Promise.resolve(!0)}),tU(function(e){return tC(e)}))()])})});case tv.UNKNOWN:return Promise.resolve(!0);default:return Promise.resolve(!1)}},function(e){return console.error(tQ,"Failed to render challenge due to: ".concat(JSON.stringify(e))),e}),tU(function(){return tC(!1)}))()]})})},ru=function(e){var t=e.containerId,n=e.challengeTypeRaw,r="".concat(t,"-").concat(n);if(null===document.getElementById(r)){var o=document.createElement("div");o.id=r,document.body.appendChild(o)}return r},rc=new eu(new es({basePath:"".concat(tJ(),"/challenge"),genericChallengeMiddlewareType:"native",credentials:"include"})),rl=function(e){var t=e.challengeBaseProperties,n=e.challengeSpecificProperties,r=n.challengeMetadata.sharedParameters,o=t.onChallengeCompleted;return function(e){return eN(void 0,void 0,void 0,function(){var a,i;return eM(this,function(s){switch(s.label){case 0:return a=tD(function(){return rc._continue({continueRequest:{challengeID:(null==r?void 0:r.genericChallengeId)||n.challengeId,challengeType:e.challengeType,challengeMetadata:JSON.stringify(e.metadata)}})},function(e){return e instanceof Error?e.message:JSON.stringify(e)}),i=function(r){return eN(void 0,void 0,void 0,function(){var a,i,s,u,c,l,f;return eM(this,function(d){switch(d.label){case 0:return r.challengeType?tX(r.challengeType)?tx(a=ra(null!==(c=r.challengeId)&&void 0!==c?c:"",r.challengeType,null!==(l=r.challengeMetadata)&&void 0!==l?l:""))?(t.onChallengeInvalidated({challengeType:n.challengeType,errorCode:tf.UNKNOWN,errorMessage:""}),[2]):(i=rl({challengeBaseProperties:t,challengeSpecificProperties:a.value}),ru({containerId:t.containerId,challengeTypeRaw:null!==(f=r.challengeType)&&void 0!==f?f:""}),[4,rs({challengeBaseProperties:eL(eL({},t),{onChallengeCompleted:i}),challengeSpecificProperties:eL({},a.value)})]):(t.legacyGenericRender?t.legacyGenericRender({challengeBaseProperties:t,challengeSpecificProperties:{challengeId:null!==(s=r.challengeId)&&void 0!==s?s:"",challengeType:r.challengeType,challengeMetadata:JSON.parse(null!==(u=r.challengeMetadata)&&void 0!==u?u:"")}}):(console.warn("[new middleware] legacy challenge type found but no fallback registered!"),t.onChallengeInvalidated({challengeType:r.challengeType,errorCode:tf.UNKNOWN,errorMessage:"Subsequent challenges failed!"})),[2]):(o(e),[2]);case 1:return d.sent()||t.onChallengeInvalidated({challengeType:n.challengeType,errorCode:tf.UNKNOWN,errorMessage:"Subsequent challenges failed!"}),[2]}})})},[4,tZ.pipe(a,tF(function(e){return t.onChallengeInvalidated({challengeType:n.challengeType,errorCode:tf.UNKNOWN,errorMessage:"Unable to continue challenge due to: ".concat(e)})},function(e){return i(e)}))()];case 1:return s.sent(),[2]}})})}},rf=function(e){var t=e.retryRequest,n=e.containerId,r=e.challengeId,o=e.challengeTypeRaw,a=e.challengeMetadataJsonBase64,i=e.legacyGenericRender;return eN(void 0,void 0,void 0,function(){var e,s,u,c,l,f;return eM(this,function(d){switch(d.label){case 0:return tx(e=ra(r,o,a))?[2,Promise.reject(new ty({kind:tl.UNKNOWN,data:{}}))]:(s=ru({containerId:n,challengeTypeRaw:o}),l=new Promise(function(e,t){u=e,c=t}),[4,rs({challengeBaseProperties:eL(eL({},f={containerId:s,renderInline:!1,onChallengeCompleted:function(e){tD(function(){return eN(void 0,void 0,void 0,function(){return eM(this,function(n){return[2,u(t(r,btoa(JSON.stringify(e.metadata))))]})})},function(e){return c(e)})()},onChallengeInvalidated:function(e){return c(new ty({kind:tl.INVALIDATED,data:e}))},onModalChallengeAbandoned:function(){return c(new ty({kind:tl.ABANDONED,data:{challengeType:e.value}}))},legacyGenericRender:i}),{onChallengeCompleted:rl({challengeBaseProperties:f,challengeSpecificProperties:e.value})}),challengeSpecificProperties:e.value})]);case 1:return d.sent()||f.onChallengeInvalidated({challengeType:e.value.challengeType,errorCode:tf.UNKNOWN,errorMessage:"Failed to render initial challenge"}),[2,l]}})})},rd=n(8950),rp=n.n(rd),rh=n(2862),rv=n(3988),ry=n(7693),rm=((i={})[i.ok=200]="ok",i[i.accepted=202]="accepted",i[i.movedPermanently=301]="movedPermanently",i[i.badRequest=400]="badRequest",i[i.unauthorized=401]="unauthorized",i[i.forbidden=403]="forbidden",i[i.notFound=404]="notFound",i[i.methodNotAllowed=405]="methodNotAllowed",i[i.conflict=409]="conflict",i[i.payloadTooLarge=413]="payloadTooLarge",i[i.tooManyAttempts=429]="tooManyAttempts",i[i.serverError=500]="serverError",i[i.serviceUnavailable=503]="serviceUnavailable",i),rg=((s={}).GET="get",s.HEAD="head",s.POST="post",s.PUT="put",s.DELETE="delete",s.OPTIONS="options",s.PATCH="patch",s),rb=n(6277);function r_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&void 0!==arguments[1]?arguments[1]:rJ,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rp();rz(this,e),rH(this,"basePath",void 0),rH(this,"axios",void 0),rH(this,"configuration",void 0),this.basePath=r,this.axios=o,t&&(this.configuration=t,this.basePath=null!==(n=t.basePath)&&void 0!==n?n:this.basePath)},rQ=function(e){function t(e,n){var r,o,a,i,s,u;return rz(this,t),o=t,a=[n],o=rZ(o),rH((i=this,r=(s=rW()?Reflect.construct(o,a||[],rZ(this).constructor):o.apply(this,a))&&("object"==((u=s)&&"undefined"!=typeof Symbol&&u.constructor===Symbol?"symbol":typeof u)||"function"==typeof s)?s:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i)),"field",void 0),rH(r,"name",void 0),r.field=e,r.name="RequiredError",r}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rK(e,t)}(t,e),t}(r$(Error));function r0(e,t,n,r,o,a,i){try{var s=e[a](i),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,o)}function r1(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){r0(a,r,o,i,s,"next",e)}function s(e){r0(a,r,o,i,s,"throw",e)}i(void 0)})}}function r2(e,t,n){var r,o,a;return t=r5(t),r=e,(o=ot()?Reflect.construct(t,n||[],r5(e).constructor):t.apply(e,n))&&("object"==((a=o)&&"undefined"!=typeof Symbol&&a.constructor===Symbol?"symbol":typeof a)||"function"==typeof o)?o:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)}function r3(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function r4(e,t){for(var n=0;n0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]4&&void 0!==p[4]?p[4]:{},null==t)throw new rQ("assetId","Required parameter assetId was null or undefined when calling v1AssetsAssetIdBundlesGet.");return i="/v1/assets/{assetId}/bundles".replace("{assetId}",encodeURIComponent(String(t))),s=I.parse(i,!0),e&&(u=e.baseOptions),c=r9({method:"GET"},u,a),l={},f={},void 0!==n&&(f.sortOrder=n),void 0!==r&&(f.limit=r),void 0!==o&&(f.cursor=o),s.query=r9({},s.query,f,a.query),delete s.search,d=u&&u.headers?u.headers:{},c.headers=r9({},l,d,a.headers),[2,{url:I.format(s),options:c}]})}),function(e,n,r,o){return t.apply(this,arguments)}),v1BundlesBundleIdDetailsGet:(n=r1(function(t){var n,r,o,a,i,s,u,c,l=arguments;return on(this,function(f){if(n=l.length>1&&void 0!==l[1]?l[1]:{},null==t)throw new rQ("bundleId","Required parameter bundleId was null or undefined when calling v1BundlesBundleIdDetailsGet.");return r="/v1/bundles/{bundleId}/details".replace("{bundleId}",encodeURIComponent(String(t))),o=I.parse(r,!0),e&&(a=e.baseOptions),i=r9({method:"GET"},a,n),s={},u={},o.query=r9({},o.query,u,n.query),delete o.search,c=a&&a.headers?a.headers:{},i.headers=r9({},s,c,n.headers),[2,{url:I.format(o),options:i}]})}),function(e){return n.apply(this,arguments)}),v1BundlesBundleIdRecommendationsGet:(r=r1(function(t,n){var r,o,a,i,s,u,c,l,f=arguments;return on(this,function(d){if(r=f.length>2&&void 0!==f[2]?f[2]:{},null==t)throw new rQ("bundleId","Required parameter bundleId was null or undefined when calling v1BundlesBundleIdRecommendationsGet.");return o="/v1/bundles/{bundleId}/recommendations".replace("{bundleId}",encodeURIComponent(String(t))),a=I.parse(o,!0),e&&(i=e.baseOptions),s=r9({method:"GET"},i,r),u={},c={},void 0!==n&&(c.numItems=n),a.query=r9({},a.query,c,r.query),delete a.search,l=i&&i.headers?i.headers:{},s.headers=r9({},u,l,r.headers),[2,{url:I.format(a),options:s}]})}),function(e,t){return r.apply(this,arguments)}),v1BundlesBundleIdUnpackPost:(o=r1(function(t){var n,r,o,a,i,s,u,c,l=arguments;return on(this,function(f){if(n=l.length>1&&void 0!==l[1]?l[1]:{},null==t)throw new rQ("bundleId","Required parameter bundleId was null or undefined when calling v1BundlesBundleIdUnpackPost.");return r="/v1/bundles/{bundleId}/unpack".replace("{bundleId}",encodeURIComponent(String(t))),o=I.parse(r,!0),e&&(a=e.baseOptions),i=r9({method:"POST"},a,n),s={},u={},o.query=r9({},o.query,u,n.query),delete o.search,c=a&&a.headers?a.headers:{},i.headers=r9({},s,c,n.headers),[2,{url:I.format(o),options:i}]})}),function(e){return o.apply(this,arguments)}),v1BundlesDetailsGet:(a=r1(function(t){var n,r,o,a,i,s,u,c,l=arguments;return on(this,function(f){if(n=l.length>1&&void 0!==l[1]?l[1]:{},null==t)throw new rQ("bundleIds","Required parameter bundleIds was null or undefined when calling v1BundlesDetailsGet.");return r="/v1/bundles/details",o=I.parse(r,!0),e&&(a=e.baseOptions),i=r9({method:"GET"},a,n),s={},u={},t&&(u.bundleIds=t.join(rX.csv)),o.query=r9({},o.query,u,n.query),delete o.search,c=a&&a.headers?a.headers:{},i.headers=r9({},s,c,n.headers),[2,{url:I.format(o),options:i}]})}),function(e){return a.apply(this,arguments)}),v1UsersUserIdBundlesBundleTypeGet:(i=r1(function(t,n,r,o,a){var i,s,u,c,l,f,d,p,h=arguments;return on(this,function(v){if(i=h.length>5&&void 0!==h[5]?h[5]:{},null==t)throw new rQ("userId","Required parameter userId was null or undefined when calling v1UsersUserIdBundlesBundleTypeGet.");if(null==n)throw new rQ("bundleType","Required parameter bundleType was null or undefined when calling v1UsersUserIdBundlesBundleTypeGet.");return s="/v1/users/{userId}/bundles/{bundleType}".replace("{userId}",encodeURIComponent(String(t))).replace("{bundleType}",encodeURIComponent(String(n))),u=I.parse(s,!0),e&&(c=e.baseOptions),l=r9({method:"GET"},c,i),f={},d={},void 0!==r&&(d.limit=r),void 0!==o&&(d.cursor=o),void 0!==a&&(d.sortOrder=a),u.query=r9({},u.query,d,i.query),delete u.search,p=c&&c.headers?c.headers:{},l.headers=r9({},f,p,i.headers),[2,{url:I.format(u),options:l}]})}),function(e,t,n,r,o){return i.apply(this,arguments)}),v1UsersUserIdBundlesGet:(s=r1(function(t,n,r,o){var a,i,s,u,c,l,f,d,p=arguments;return on(this,function(h){if(a=p.length>4&&void 0!==p[4]?p[4]:{},null==t)throw new rQ("userId","Required parameter userId was null or undefined when calling v1UsersUserIdBundlesGet.");return i="/v1/users/{userId}/bundles".replace("{userId}",encodeURIComponent(String(t))),s=I.parse(i,!0),e&&(u=e.baseOptions),c=r9({method:"GET"},u,a),l={},f={},void 0!==n&&(f.sortOrder=n),void 0!==r&&(f.limit=r),void 0!==o&&(f.cursor=o),s.query=r9({},s.query,f,a.query),delete s.search,d=u&&u.headers?u.headers:{},c.headers=r9({},l,d,a.headers),[2,{url:I.format(s),options:c}]})}),function(e,t,n,r){return s.apply(this,arguments)})}},oo=function(e){return{v1AssetsAssetIdBundlesGet:function(t,n,r,o,a){return r1(function(){var i;return on(this,function(s){switch(s.label){case 0:return[4,or(e).v1AssetsAssetIdBundlesGet(t,n,r,o,a)];case 1:return i=s.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rJ,n=r7(r9({},i.options),{url:t+i.url});return e.request(n)}]}})})()},v1BundlesBundleIdDetailsGet:function(t,n){return r1(function(){var r;return on(this,function(o){switch(o.label){case 0:return[4,or(e).v1BundlesBundleIdDetailsGet(t,n)];case 1:return r=o.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rJ,n=r7(r9({},r.options),{url:t+r.url});return e.request(n)}]}})})()},v1BundlesBundleIdRecommendationsGet:function(t,n,r){return r1(function(){var o;return on(this,function(a){switch(a.label){case 0:return[4,or(e).v1BundlesBundleIdRecommendationsGet(t,n,r)];case 1:return o=a.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rJ,n=r7(r9({},o.options),{url:t+o.url});return e.request(n)}]}})})()},v1BundlesBundleIdUnpackPost:function(t,n){return r1(function(){var r;return on(this,function(o){switch(o.label){case 0:return[4,or(e).v1BundlesBundleIdUnpackPost(t,n)];case 1:return r=o.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rJ,n=r7(r9({},r.options),{url:t+r.url});return e.request(n)}]}})})()},v1BundlesDetailsGet:function(t,n){return r1(function(){var r;return on(this,function(o){switch(o.label){case 0:return[4,or(e).v1BundlesDetailsGet(t,n)];case 1:return r=o.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rJ,n=r7(r9({},r.options),{url:t+r.url});return e.request(n)}]}})})()},v1UsersUserIdBundlesBundleTypeGet:function(t,n,r,o,a,i){return r1(function(){var s;return on(this,function(u){switch(u.label){case 0:return[4,or(e).v1UsersUserIdBundlesBundleTypeGet(t,n,r,o,a,i)];case 1:return s=u.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rJ,n=r7(r9({},s.options),{url:t+s.url});return e.request(n)}]}})})()},v1UsersUserIdBundlesGet:function(t,n,r,o,a){return r1(function(){var i;return on(this,function(s){switch(s.label){case 0:return[4,or(e).v1UsersUserIdBundlesGet(t,n,r,o,a)];case 1:return i=s.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rJ,n=r7(r9({},i.options),{url:t+i.url});return e.request(n)}]}})})()}}},oa=function(e){function t(){return r3(this,t),r2(this,t,arguments)}return r8(t,e),r6(t,[{key:"v1AssetsAssetIdBundlesGet",value:function(e,t,n,r,o){var a=this;return oo(this.configuration).v1AssetsAssetIdBundlesGet(e,t,n,r,o).then(function(e){return e(a.axios,a.basePath)})}},{key:"v1BundlesBundleIdDetailsGet",value:function(e,t){var n=this;return oo(this.configuration).v1BundlesBundleIdDetailsGet(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v1BundlesBundleIdRecommendationsGet",value:function(e,t,n){var r=this;return oo(this.configuration).v1BundlesBundleIdRecommendationsGet(e,t,n).then(function(e){return e(r.axios,r.basePath)})}},{key:"v1BundlesBundleIdUnpackPost",value:function(e,t){var n=this;return oo(this.configuration).v1BundlesBundleIdUnpackPost(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v1BundlesDetailsGet",value:function(e,t){var n=this;return oo(this.configuration).v1BundlesDetailsGet(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v1UsersUserIdBundlesBundleTypeGet",value:function(e,t,n,r,o,a){var i=this;return oo(this.configuration).v1UsersUserIdBundlesBundleTypeGet(e,t,n,r,o,a).then(function(e){return e(i.axios,i.basePath)})}},{key:"v1UsersUserIdBundlesGet",value:function(e,t,n,r,o){var a=this;return oo(this.configuration).v1UsersUserIdBundlesGet(e,t,n,r,o).then(function(e){return e(a.axios,a.basePath)})}}]),t}(rY),oi=function(e){var t,n;return{v1CatalogItemsDetailsPost:(t=r1(function(t){var n,r,o,a,i,s,u,c,l,f=arguments;return on(this,function(d){if(n=f.length>1&&void 0!==f[1]?f[1]:{},null==t)throw new rQ("model","Required parameter model was null or undefined when calling v1CatalogItemsDetailsPost.");return r="/v1/catalog/items/details",o=I.parse(r,!0),e&&(a=e.baseOptions),i=r9({method:"POST"},a,n),u={},(s={})["Content-Type"]="application/json",o.query=r9({},o.query,u,n.query),delete o.search,c=a&&a.headers?a.headers:{},i.headers=r9({},s,c,n.headers),l="string"!=typeof t||"application/json"===i.headers["Content-Type"],i.data=l?JSON.stringify(void 0!==t?t:{}):t||"",[2,{url:I.format(o),options:i}]})}),function(e){return t.apply(this,arguments)}),v1CatalogItemsItemIdDetailsGet:(n=r1(function(t,n){var r,o,a,i,s,u,c,l,f=arguments;return on(this,function(d){if(r=f.length>2&&void 0!==f[2]?f[2]:{},null==t)throw new rQ("itemId","Required parameter itemId was null or undefined when calling v1CatalogItemsItemIdDetailsGet.");if(null==n)throw new rQ("itemType","Required parameter itemType was null or undefined when calling v1CatalogItemsItemIdDetailsGet.");return o="/v1/catalog/items/{itemId}/details".replace("{itemId}",encodeURIComponent(String(t))),a=I.parse(o,!0),e&&(i=e.baseOptions),s=r9({method:"GET"},i,r),u={},c={},void 0!==n&&(c.itemType=n),a.query=r9({},a.query,c,r.query),delete a.search,l=i&&i.headers?i.headers:{},s.headers=r9({},u,l,r.headers),[2,{url:I.format(a),options:s}]})}),function(e,t){return n.apply(this,arguments)}),v1CatalogMetadataGet:r1(function(){var t,n,r,o,a,i,s,u,c=arguments;return on(this,function(l){return t=c.length>0&&void 0!==c[0]?c[0]:{},n="/v1/catalog/metadata",r=I.parse(n,!0),e&&(o=e.baseOptions),a=r9({method:"GET"},o,t),i={},s={},r.query=r9({},r.query,s,t.query),delete r.search,u=o&&o.headers?o.headers:{},a.headers=r9({},i,u,t.headers),[2,{url:I.format(r),options:a}]})}),v1CatalogSortsGet:r1(function(){var t,n,r,o,a,i,s,u,c=arguments;return on(this,function(l){return t=c.length>0&&void 0!==c[0]?c[0]:{},n="/v1/catalog/sorts",r=I.parse(n,!0),e&&(o=e.baseOptions),a=r9({method:"GET"},o,t),i={},s={},r.query=r9({},r.query,s,t.query),delete r.search,u=o&&o.headers?o.headers:{},a.headers=r9({},i,u,t.headers),[2,{url:I.format(r),options:a}]})})}},os=function(e){return{v1CatalogItemsDetailsPost:function(t,n){return r1(function(){var r;return on(this,function(o){switch(o.label){case 0:return[4,oi(e).v1CatalogItemsDetailsPost(t,n)];case 1:return r=o.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rJ,n=r7(r9({},r.options),{url:t+r.url});return e.request(n)}]}})})()},v1CatalogItemsItemIdDetailsGet:function(t,n,r){return r1(function(){var o;return on(this,function(a){switch(a.label){case 0:return[4,oi(e).v1CatalogItemsItemIdDetailsGet(t,n,r)];case 1:return o=a.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rJ,n=r7(r9({},o.options),{url:t+o.url});return e.request(n)}]}})})()},v1CatalogMetadataGet:function(t){return r1(function(){var n;return on(this,function(r){switch(r.label){case 0:return[4,oi(e).v1CatalogMetadataGet(t)];case 1:return n=r.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rJ,r=r7(r9({},n.options),{url:t+n.url});return e.request(r)}]}})})()},v1CatalogSortsGet:function(t){return r1(function(){var n;return on(this,function(r){switch(r.label){case 0:return[4,oi(e).v1CatalogSortsGet(t)];case 1:return n=r.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rJ,r=r7(r9({},n.options),{url:t+n.url});return e.request(r)}]}})})()}}},ou=function(e){function t(){return r3(this,t),r2(this,t,arguments)}return r8(t,e),r6(t,[{key:"v1CatalogItemsDetailsPost",value:function(e,t){var n=this;return os(this.configuration).v1CatalogItemsDetailsPost(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v1CatalogItemsItemIdDetailsGet",value:function(e,t,n){var r=this;return os(this.configuration).v1CatalogItemsItemIdDetailsGet(e,t,n).then(function(e){return e(r.axios,r.basePath)})}},{key:"v1CatalogMetadataGet",value:function(e){var t=this;return os(this.configuration).v1CatalogMetadataGet(e).then(function(e){return e(t.axios,t.basePath)})}},{key:"v1CatalogSortsGet",value:function(e){var t=this;return os(this.configuration).v1CatalogSortsGet(e).then(function(e){return e(t.axios,t.basePath)})}}]),t}(rY),oc=function(e){var t,n;return{v1RecommendationsAssetAssetTypeIdGet:(t=r1(function(t,n,r){var o,a,i,s,u,c,l,f,d=arguments;return on(this,function(p){if(o=d.length>3&&void 0!==d[3]?d[3]:{},null==t)throw new rQ("assetTypeId","Required parameter assetTypeId was null or undefined when calling v1RecommendationsAssetAssetTypeIdGet.");return a="/v1/recommendations/asset/{assetTypeId}".replace("{assetTypeId}",encodeURIComponent(String(t))),i=I.parse(a,!0),e&&(s=e.baseOptions),u=r9({method:"GET"},s,o),c={},l={},void 0!==n&&(l.numItems=n),void 0!==r&&(l.contextAssetId=r),i.query=r9({},i.query,l,o.query),delete i.search,f=s&&s.headers?s.headers:{},u.headers=r9({},c,f,o.headers),[2,{url:I.format(i),options:u}]})}),function(e,n,r){return t.apply(this,arguments)}),v1RecommendationsMetadataGet:(n=r1(function(t){var n,r,o,a,i,s,u,c,l=arguments;return on(this,function(f){return n=l.length>1&&void 0!==l[1]?l[1]:{},r="/v1/recommendations/metadata",o=I.parse(r,!0),e&&(a=e.baseOptions),i=r9({method:"GET"},a,n),s={},u={},void 0!==t&&(u.page=t),o.query=r9({},o.query,u,n.query),delete o.search,c=a&&a.headers?a.headers:{},i.headers=r9({},s,c,n.headers),[2,{url:I.format(o),options:i}]})}),function(e){return n.apply(this,arguments)})}},ol=function(e){return{v1RecommendationsAssetAssetTypeIdGet:function(t,n,r,o){return r1(function(){var a;return on(this,function(i){switch(i.label){case 0:return[4,oc(e).v1RecommendationsAssetAssetTypeIdGet(t,n,r,o)];case 1:return a=i.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rJ,n=r7(r9({},a.options),{url:t+a.url});return e.request(n)}]}})})()},v1RecommendationsMetadataGet:function(t,n){return r1(function(){var r;return on(this,function(o){switch(o.label){case 0:return[4,oc(e).v1RecommendationsMetadataGet(t,n)];case 1:return r=o.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rJ,n=r7(r9({},r.options),{url:t+r.url});return e.request(n)}]}})})()}}},of=function(e){function t(){return r3(this,t),r2(this,t,arguments)}return r8(t,e),r6(t,[{key:"v1RecommendationsAssetAssetTypeIdGet",value:function(e,t,n,r){var o=this;return ol(this.configuration).v1RecommendationsAssetAssetTypeIdGet(e,t,n,r).then(function(e){return e(o.axios,o.basePath)})}},{key:"v1RecommendationsMetadataGet",value:function(e,t){var n=this;return ol(this.configuration).v1RecommendationsMetadataGet(e,t).then(function(e){return e(n.axios,n.basePath)})}}]),t}(rY);function od(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function op(e,t,n){return(op=og()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&oy(o,n.prototype),o}).apply(null,arguments)}function oh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ov(e){return(ov=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oy(e,t){return(oy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function om(e){var t="function"==typeof Map?new Map:void 0;return(om=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return op(e,arguments,ov(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),oy(n,e)})(e)}function og(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(og=function(){return!!e})()}new oa,new ou,new of;var ob=rB.gameInternationalizationApi.replace(/\/+$/,""),o_=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rp();od(this,e),oh(this,"basePath",void 0),oh(this,"axios",void 0),oh(this,"configuration",void 0),this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)},ow=function(e){function t(e,n){var r,o,a,i,s,u;return od(this,t),o=t,a=[n],o=ov(o),oh((i=this,r=(s=og()?Reflect.construct(o,a||[],ov(this).constructor):o.apply(this,a))&&("object"==((u=s)&&"undefined"!=typeof Symbol&&u.constructor===Symbol?"symbol":typeof u)||"function"==typeof s)?s:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i)),"field",void 0),oh(r,"name",void 0),r.field=e,r.name="RequiredError",r}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oy(e,t)}(t,e),t}(om(Error));function oS(e,t,n,r,o,a,i){try{var s=e[a](i),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,o)}function oO(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){oS(a,r,o,i,s,"next",e)}function s(e){oS(a,r,o,i,s,"throw",e)}i(void 0)})}}function oT(e,t,n){var r,o,a;return t=oA(t),r=e,(o=oj()?Reflect.construct(t,n||[],oA(e).constructor):t.apply(e,n))&&("object"==((a=o)&&"undefined"!=typeof Symbol&&a.constructor===Symbol?"symbol":typeof a)||"function"==typeof o)?o:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)}function oP(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function oI(e,t){for(var n=0;n0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]2&&void 0!==d[2]?d[2]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1AutolocalizationGamesGameIdAutolocalizationtablePatch.");if(null==n)throw new ow("request","Required parameter request was null or undefined when calling v1AutolocalizationGamesGameIdAutolocalizationtablePatch.");return o="/v1/autolocalization/games/{gameId}/autolocalizationtable".replace("{gameId}",encodeURIComponent(String(t))),a=I.parse(o,!0),e&&(i=e.baseOptions),s=oR({method:"PATCH"},i,r),c={},(u={})["Content-Type"]="application/json",a.query=oR({},a.query,c,r.query),delete a.search,l=i&&i.headers?i.headers:{},s.headers=oR({},u,l,r.headers),f="string"!=typeof n||"application/json"===s.headers["Content-Type"],s.data=f?JSON.stringify(void 0!==n?n:{}):n||"",[2,{url:I.format(a),options:s}]})}),function(e,n){return t.apply(this,arguments)}),v1AutolocalizationGamesGameIdAutolocalizationtablePost:(n=oO(function(t){var n,r,o,a,i,s,u,c,l=arguments;return oC(this,function(f){if(n=l.length>1&&void 0!==l[1]?l[1]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1AutolocalizationGamesGameIdAutolocalizationtablePost.");return r="/v1/autolocalization/games/{gameId}/autolocalizationtable".replace("{gameId}",encodeURIComponent(String(t))),o=I.parse(r,!0),e&&(a=e.baseOptions),i=oR({method:"POST"},a,n),s={},u={},o.query=oR({},o.query,u,n.query),delete o.search,c=a&&a.headers?a.headers:{},i.headers=oR({},s,c,n.headers),[2,{url:I.format(o),options:i}]})}),function(e){return n.apply(this,arguments)}),v1AutolocalizationGamesGameIdAutoscrapeCleanupRequestPost:(r=oO(function(t,n){var r,o,a,i,s,u,c,l,f,d=arguments;return oC(this,function(p){if(r=d.length>2&&void 0!==d[2]?d[2]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1AutolocalizationGamesGameIdAutoscrapeCleanupRequestPost.");if(null==n)throw new ow("request","Required parameter request was null or undefined when calling v1AutolocalizationGamesGameIdAutoscrapeCleanupRequestPost.");return o="/v1/autolocalization/games/{gameId}/autoscrape-cleanup-request".replace("{gameId}",encodeURIComponent(String(t))),a=I.parse(o,!0),e&&(i=e.baseOptions),s=oR({method:"POST"},i,r),c={},(u={})["Content-Type"]="application/json",a.query=oR({},a.query,c,r.query),delete a.search,l=i&&i.headers?i.headers:{},s.headers=oR({},u,l,r.headers),f="string"!=typeof n||"application/json"===s.headers["Content-Type"],s.data=f?JSON.stringify(void 0!==n?n:{}):n||"",[2,{url:I.format(a),options:s}]})}),function(e,t){return r.apply(this,arguments)}),v1AutolocalizationGamesGameIdGet:(o=oO(function(t){var n,r,o,a,i,s,u,c,l=arguments;return oC(this,function(f){if(n=l.length>1&&void 0!==l[1]?l[1]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1AutolocalizationGamesGameIdGet.");return r="/v1/autolocalization/games/{gameId}".replace("{gameId}",encodeURIComponent(String(t))),o=I.parse(r,!0),e&&(a=e.baseOptions),i=oR({method:"GET"},a,n),s={},u={},o.query=oR({},o.query,u,n.query),delete o.search,c=a&&a.headers?a.headers:{},i.headers=oR({},s,c,n.headers),[2,{url:I.format(o),options:i}]})}),function(e){return o.apply(this,arguments)}),v1AutolocalizationGamesGameIdPatch:(a=oO(function(t,n){var r,o,a,i,s,u,c,l,f,d=arguments;return oC(this,function(p){if(r=d.length>2&&void 0!==d[2]?d[2]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1AutolocalizationGamesGameIdPatch.");if(null==n)throw new ow("request","Required parameter request was null or undefined when calling v1AutolocalizationGamesGameIdPatch.");return o="/v1/autolocalization/games/{gameId}".replace("{gameId}",encodeURIComponent(String(t))),a=I.parse(o,!0),e&&(i=e.baseOptions),s=oR({method:"PATCH"},i,r),c={},(u={})["Content-Type"]="application/json",a.query=oR({},a.query,c,r.query),delete a.search,l=i&&i.headers?i.headers:{},s.headers=oR({},u,l,r.headers),f="string"!=typeof n||"application/json"===s.headers["Content-Type"],s.data=f?JSON.stringify(void 0!==n?n:{}):n||"",[2,{url:I.format(a),options:s}]})}),function(e,t){return a.apply(this,arguments)}),v1AutolocalizationGamesGameIdSettingsPatch:(i=oO(function(t,n){var r,o,a,i,s,u,c,l,f,d=arguments;return oC(this,function(p){if(r=d.length>2&&void 0!==d[2]?d[2]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1AutolocalizationGamesGameIdSettingsPatch.");if(null==n)throw new ow("request","Required parameter request was null or undefined when calling v1AutolocalizationGamesGameIdSettingsPatch.");return o="/v1/autolocalization/games/{gameId}/settings".replace("{gameId}",encodeURIComponent(String(t))),a=I.parse(o,!0),e&&(i=e.baseOptions),s=oR({method:"PATCH"},i,r),c={},(u={})["Content-Type"]="application/json",a.query=oR({},a.query,c,r.query),delete a.search,l=i&&i.headers?i.headers:{},s.headers=oR({},u,l,r.headers),f="string"!=typeof n||"application/json"===s.headers["Content-Type"],s.data=f?JSON.stringify(void 0!==n?n:{}):n||"",[2,{url:I.format(a),options:s}]})}),function(e,t){return i.apply(this,arguments)}),v1AutolocalizationMetadataGet:oO(function(){var t,n,r,o,a,i,s,u,c=arguments;return oC(this,function(l){return t=c.length>0&&void 0!==c[0]?c[0]:{},n="/v1/autolocalization/metadata",r=I.parse(n,!0),e&&(o=e.baseOptions),a=oR({method:"GET"},o,t),i={},s={},r.query=oR({},r.query,s,t.query),delete r.search,u=o&&o.headers?o.headers:{},a.headers=oR({},i,u,t.headers),[2,{url:I.format(r),options:a}]})})}},oN=function(e){return{v1AutolocalizationGamesGameIdAutolocalizationtablePatch:function(t,n,r){return oO(function(){var o;return oC(this,function(a){switch(a.label){case 0:return[4,oL(e).v1AutolocalizationGamesGameIdAutolocalizationtablePatch(t,n,r)];case 1:return o=a.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},o.options),{url:t+o.url});return e.request(n)}]}})})()},v1AutolocalizationGamesGameIdAutolocalizationtablePost:function(t,n){return oO(function(){var r;return oC(this,function(o){switch(o.label){case 0:return[4,oL(e).v1AutolocalizationGamesGameIdAutolocalizationtablePost(t,n)];case 1:return r=o.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},r.options),{url:t+r.url});return e.request(n)}]}})})()},v1AutolocalizationGamesGameIdAutoscrapeCleanupRequestPost:function(t,n,r){return oO(function(){var o;return oC(this,function(a){switch(a.label){case 0:return[4,oL(e).v1AutolocalizationGamesGameIdAutoscrapeCleanupRequestPost(t,n,r)];case 1:return o=a.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},o.options),{url:t+o.url});return e.request(n)}]}})})()},v1AutolocalizationGamesGameIdGet:function(t,n){return oO(function(){var r;return oC(this,function(o){switch(o.label){case 0:return[4,oL(e).v1AutolocalizationGamesGameIdGet(t,n)];case 1:return r=o.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},r.options),{url:t+r.url});return e.request(n)}]}})})()},v1AutolocalizationGamesGameIdPatch:function(t,n,r){return oO(function(){var o;return oC(this,function(a){switch(a.label){case 0:return[4,oL(e).v1AutolocalizationGamesGameIdPatch(t,n,r)];case 1:return o=a.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},o.options),{url:t+o.url});return e.request(n)}]}})})()},v1AutolocalizationGamesGameIdSettingsPatch:function(t,n,r){return oO(function(){var o;return oC(this,function(a){switch(a.label){case 0:return[4,oL(e).v1AutolocalizationGamesGameIdSettingsPatch(t,n,r)];case 1:return o=a.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},o.options),{url:t+o.url});return e.request(n)}]}})})()},v1AutolocalizationMetadataGet:function(t){return oO(function(){var n;return oC(this,function(r){switch(r.label){case 0:return[4,oL(e).v1AutolocalizationMetadataGet(t)];case 1:return n=r.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,r=oE(oR({},n.options),{url:t+n.url});return e.request(r)}]}})})()}}},oM=function(e){function t(){return oP(this,t),oT(this,t,arguments)}return ox(t,e),ok(t,[{key:"v1AutolocalizationGamesGameIdAutolocalizationtablePatch",value:function(e,t,n){var r=this;return oN(this.configuration).v1AutolocalizationGamesGameIdAutolocalizationtablePatch(e,t,n).then(function(e){return e(r.axios,r.basePath)})}},{key:"v1AutolocalizationGamesGameIdAutolocalizationtablePost",value:function(e,t){var n=this;return oN(this.configuration).v1AutolocalizationGamesGameIdAutolocalizationtablePost(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v1AutolocalizationGamesGameIdAutoscrapeCleanupRequestPost",value:function(e,t,n){var r=this;return oN(this.configuration).v1AutolocalizationGamesGameIdAutoscrapeCleanupRequestPost(e,t,n).then(function(e){return e(r.axios,r.basePath)})}},{key:"v1AutolocalizationGamesGameIdGet",value:function(e,t){var n=this;return oN(this.configuration).v1AutolocalizationGamesGameIdGet(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v1AutolocalizationGamesGameIdPatch",value:function(e,t,n){var r=this;return oN(this.configuration).v1AutolocalizationGamesGameIdPatch(e,t,n).then(function(e){return e(r.axios,r.basePath)})}},{key:"v1AutolocalizationGamesGameIdSettingsPatch",value:function(e,t,n){var r=this;return oN(this.configuration).v1AutolocalizationGamesGameIdSettingsPatch(e,t,n).then(function(e){return e(r.axios,r.basePath)})}},{key:"v1AutolocalizationMetadataGet",value:function(e){var t=this;return oN(this.configuration).v1AutolocalizationMetadataGet(e).then(function(e){return e(t.axios,t.basePath)})}}]),t}(o_),oq=function(e){var t,n,r;return{v1AutomaticTranslationGamesGameIdFeatureStatusGet:(t=oO(function(t){var n,r,o,a,i,s,u,c,l=arguments;return oC(this,function(f){if(n=l.length>1&&void 0!==l[1]?l[1]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1AutomaticTranslationGamesGameIdFeatureStatusGet.");return r="/v1/automatic-translation/games/{gameId}/feature-status".replace("{gameId}",encodeURIComponent(String(t))),o=I.parse(r,!0),e&&(a=e.baseOptions),i=oR({method:"GET"},a,n),s={},u={},o.query=oR({},o.query,u,n.query),delete o.search,c=a&&a.headers?a.headers:{},i.headers=oR({},s,c,n.headers),[2,{url:I.format(o),options:i}]})}),function(e){return t.apply(this,arguments)}),v1AutomaticTranslationGamesGameIdQuotaGet:(n=oO(function(t){var n,r,o,a,i,s,u,c,l=arguments;return oC(this,function(f){if(n=l.length>1&&void 0!==l[1]?l[1]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1AutomaticTranslationGamesGameIdQuotaGet.");return r="/v1/automatic-translation/games/{gameId}/quota".replace("{gameId}",encodeURIComponent(String(t))),o=I.parse(r,!0),e&&(a=e.baseOptions),i=oR({method:"GET"},a,n),s={},u={},o.query=oR({},o.query,u,n.query),delete o.search,c=a&&a.headers?a.headers:{},i.headers=oR({},s,c,n.headers),[2,{url:I.format(o),options:i}]})}),function(e){return n.apply(this,arguments)}),v1AutomaticTranslationLanguagesLanguageCodeTargetLanguagesGet:(r=oO(function(t,n){var r,o,a,i,s,u,c,l,f=arguments;return oC(this,function(d){if(r=f.length>2&&void 0!==f[2]?f[2]:{},null==t)throw new ow("languageCode","Required parameter languageCode was null or undefined when calling v1AutomaticTranslationLanguagesLanguageCodeTargetLanguagesGet.");return o="/v1/automatic-translation/languages/{languageCode}/target-languages".replace("{languageCode}",encodeURIComponent(String(t))),a=I.parse(o,!0),e&&(i=e.baseOptions),s=oR({method:"GET"},i,r),u={},c={},n&&(c.targetLanguages=n),a.query=oR({},a.query,c,r.query),delete a.search,l=i&&i.headers?i.headers:{},s.headers=oR({},u,l,r.headers),[2,{url:I.format(a),options:s}]})}),function(e,t){return r.apply(this,arguments)})}},oU=function(e){return{v1AutomaticTranslationGamesGameIdFeatureStatusGet:function(t,n){return oO(function(){var r;return oC(this,function(o){switch(o.label){case 0:return[4,oq(e).v1AutomaticTranslationGamesGameIdFeatureStatusGet(t,n)];case 1:return r=o.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},r.options),{url:t+r.url});return e.request(n)}]}})})()},v1AutomaticTranslationGamesGameIdQuotaGet:function(t,n){return oO(function(){var r;return oC(this,function(o){switch(o.label){case 0:return[4,oq(e).v1AutomaticTranslationGamesGameIdQuotaGet(t,n)];case 1:return r=o.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},r.options),{url:t+r.url});return e.request(n)}]}})})()},v1AutomaticTranslationLanguagesLanguageCodeTargetLanguagesGet:function(t,n,r){return oO(function(){var o;return oC(this,function(a){switch(a.label){case 0:return[4,oq(e).v1AutomaticTranslationLanguagesLanguageCodeTargetLanguagesGet(t,n,r)];case 1:return o=a.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},o.options),{url:t+o.url});return e.request(n)}]}})})()}}},oD=function(e){function t(){return oP(this,t),oT(this,t,arguments)}return ox(t,e),ok(t,[{key:"v1AutomaticTranslationGamesGameIdFeatureStatusGet",value:function(e,t){var n=this;return oU(this.configuration).v1AutomaticTranslationGamesGameIdFeatureStatusGet(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v1AutomaticTranslationGamesGameIdQuotaGet",value:function(e,t){var n=this;return oU(this.configuration).v1AutomaticTranslationGamesGameIdQuotaGet(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v1AutomaticTranslationLanguagesLanguageCodeTargetLanguagesGet",value:function(e,t,n){var r=this;return oU(this.configuration).v1AutomaticTranslationLanguagesLanguageCodeTargetLanguagesGet(e,t,n).then(function(e){return e(r.axios,r.basePath)})}}]),t}(o_),oF=function(e){var t,n;return{v1GameLocalizationStatusGameIdTranslationCountsGet:(t=oO(function(t){var n,r,o,a,i,s,u,c,l=arguments;return oC(this,function(f){if(n=l.length>1&&void 0!==l[1]?l[1]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1GameLocalizationStatusGameIdTranslationCountsGet.");return r="/v1/game-localization-status/{gameId}/translation-counts".replace("{gameId}",encodeURIComponent(String(t))),o=I.parse(r,!0),e&&(a=e.baseOptions),i=oR({method:"GET"},a,n),s={},u={},o.query=oR({},o.query,u,n.query),delete o.search,c=a&&a.headers?a.headers:{},i.headers=oR({},s,c,n.headers),[2,{url:I.format(o),options:i}]})}),function(e){return t.apply(this,arguments)}),v1GameLocalizationStatusTranslationCountsForLanguageOrLocaleGet:(n=oO(function(t,n,r){var o,a,i,s,u,c,l,f,d=arguments;return oC(this,function(p){if(o=d.length>3&&void 0!==d[3]?d[3]:{},null==t)throw new ow("gameIds","Required parameter gameIds was null or undefined when calling v1GameLocalizationStatusTranslationCountsForLanguageOrLocaleGet.");if(null==n)throw new ow("languageOrLocaleCode","Required parameter languageOrLocaleCode was null or undefined when calling v1GameLocalizationStatusTranslationCountsForLanguageOrLocaleGet.");if(null==r)throw new ow("languageOrLocaleType","Required parameter languageOrLocaleType was null or undefined when calling v1GameLocalizationStatusTranslationCountsForLanguageOrLocaleGet.");return a="/v1/game-localization-status/translation-counts-for-language-or-locale",i=I.parse(a,!0),e&&(s=e.baseOptions),u=oR({method:"GET"},s,o),c={},l={},t&&(l.gameIds=t),void 0!==n&&(l.languageOrLocaleCode=n),void 0!==r&&(l.languageOrLocaleType=r),i.query=oR({},i.query,l,o.query),delete i.search,f=s&&s.headers?s.headers:{},u.headers=oR({},c,f,o.headers),[2,{url:I.format(i),options:u}]})}),function(e,t,r){return n.apply(this,arguments)})}},oB=function(e){return{v1GameLocalizationStatusGameIdTranslationCountsGet:function(t,n){return oO(function(){var r;return oC(this,function(o){switch(o.label){case 0:return[4,oF(e).v1GameLocalizationStatusGameIdTranslationCountsGet(t,n)];case 1:return r=o.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},r.options),{url:t+r.url});return e.request(n)}]}})})()},v1GameLocalizationStatusTranslationCountsForLanguageOrLocaleGet:function(t,n,r,o){return oO(function(){var a;return oC(this,function(i){switch(i.label){case 0:return[4,oF(e).v1GameLocalizationStatusTranslationCountsForLanguageOrLocaleGet(t,n,r,o)];case 1:return a=i.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},a.options),{url:t+a.url});return e.request(n)}]}})})()}}},oz=function(e){function t(){return oP(this,t),oT(this,t,arguments)}return ox(t,e),ok(t,[{key:"v1GameLocalizationStatusGameIdTranslationCountsGet",value:function(e,t){var n=this;return oB(this.configuration).v1GameLocalizationStatusGameIdTranslationCountsGet(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v1GameLocalizationStatusTranslationCountsForLanguageOrLocaleGet",value:function(e,t,n,r){var o=this;return oB(this.configuration).v1GameLocalizationStatusTranslationCountsForLanguageOrLocaleGet(e,t,n,r).then(function(e){return e(o.axios,o.basePath)})}}]),t}(o_),oV=function(e){var t,n,r,o,a,i,s,u,c;return{v1LocalizationtableAvailableLanguagesGet:oO(function(){var t,n,r,o,a,i,s,u,c=arguments;return oC(this,function(l){return t=c.length>0&&void 0!==c[0]?c[0]:{},n="/v1/localizationtable/available-languages",r=I.parse(n,!0),e&&(o=e.baseOptions),a=oR({method:"GET"},o,t),i={},s={},r.query=oR({},r.query,s,t.query),delete r.search,u=o&&o.headers?o.headers:{},a.headers=oR({},i,u,t.headers),[2,{url:I.format(r),options:a}]})}),v1LocalizationtableGamesGameIdAssetsGenerationRequestPost:(t=oO(function(t){var n,r,o,a,i,s,u,c,l=arguments;return oC(this,function(f){if(n=l.length>1&&void 0!==l[1]?l[1]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1LocalizationtableGamesGameIdAssetsGenerationRequestPost.");return r="/v1/localizationtable/games/{gameId}/assets-generation-request".replace("{gameId}",encodeURIComponent(String(t))),o=I.parse(r,!0),e&&(a=e.baseOptions),i=oR({method:"POST"},a,n),s={},u={},o.query=oR({},o.query,u,n.query),delete o.search,c=a&&a.headers?a.headers:{},i.headers=oR({},s,c,n.headers),[2,{url:I.format(o),options:i}]})}),function(e){return t.apply(this,arguments)}),v1LocalizationtableGametablesGameIdPatch:(n=oO(function(t,n){var r,o,a,i,s,u,c,l,f,d=arguments;return oC(this,function(p){if(r=d.length>2&&void 0!==d[2]?d[2]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1LocalizationtableGametablesGameIdPatch.");if(null==n)throw new ow("request","Required parameter request was null or undefined when calling v1LocalizationtableGametablesGameIdPatch.");return o="/v1/localizationtable/gametables/{gameId}".replace("{gameId}",encodeURIComponent(String(t))),a=I.parse(o,!0),e&&(i=e.baseOptions),s=oR({method:"PATCH"},i,r),c={},(u={})["Content-Type"]="application/json",a.query=oR({},a.query,c,r.query),delete a.search,l=i&&i.headers?i.headers:{},s.headers=oR({},u,l,r.headers),f="string"!=typeof n||"application/json"===s.headers["Content-Type"],s.data=f?JSON.stringify(void 0!==n?n:{}):n||"",[2,{url:I.format(a),options:s}]})}),function(e,t){return n.apply(this,arguments)}),v1LocalizationtableTablesGet:(r=oO(function(t){var n,r,o,a,i,s,u,c,l=arguments;return oC(this,function(f){if(n=l.length>1&&void 0!==l[1]?l[1]:{},null==t)throw new ow("assetId","Required parameter assetId was null or undefined when calling v1LocalizationtableTablesGet.");return r="/v1/localizationtable/tables",o=I.parse(r,!0),e&&(a=e.baseOptions),i=oR({method:"GET"},a,n),s={},u={},void 0!==t&&(u.assetId=t),o.query=oR({},o.query,u,n.query),delete o.search,c=a&&a.headers?a.headers:{},i.headers=oR({},s,c,n.headers),[2,{url:I.format(o),options:i}]})}),function(e){return r.apply(this,arguments)}),v1LocalizationtableTablesPost:(o=oO(function(t){var n,r,o,a,i,s,u,c,l,f=arguments;return oC(this,function(d){if(n=f.length>1&&void 0!==f[1]?f[1]:{},null==t)throw new ow("request","Required parameter request was null or undefined when calling v1LocalizationtableTablesPost.");return r="/v1/localizationtable/tables",o=I.parse(r,!0),e&&(a=e.baseOptions),i=oR({method:"POST"},a,n),u={},(s={})["Content-Type"]="application/json",o.query=oR({},o.query,u,n.query),delete o.search,c=a&&a.headers?a.headers:{},i.headers=oR({},s,c,n.headers),l="string"!=typeof t||"application/json"===i.headers["Content-Type"],i.data=l?JSON.stringify(void 0!==t?t:{}):t||"",[2,{url:I.format(o),options:i}]})}),function(e){return o.apply(this,arguments)}),v1LocalizationtableTablesTableIdEntriesGet:(a=oO(function(t,n,r){var o,a,i,s,u,c,l,f,d=arguments;return oC(this,function(p){if(o=d.length>3&&void 0!==d[3]?d[3]:{},null==t)throw new ow("tableId","Required parameter tableId was null or undefined when calling v1LocalizationtableTablesTableIdEntriesGet.");return a="/v1/localizationtable/tables/{tableId}/entries".replace("{tableId}",encodeURIComponent(String(t))),i=I.parse(a,!0),e&&(s=e.baseOptions),u=oR({method:"GET"},s,o),c={},l={},void 0!==n&&(l.cursor=n),void 0!==r&&(l.gameId=r),i.query=oR({},i.query,l,o.query),delete i.search,f=s&&s.headers?s.headers:{},u.headers=oR({},c,f,o.headers),[2,{url:I.format(i),options:u}]})}),function(e,t,n){return a.apply(this,arguments)}),v1LocalizationtableTablesTableIdEntriesTranslationHistoryPost:(i=oO(function(t,n,r){var o,a,i,s,u,c,l,f,d,p=arguments;return oC(this,function(h){if(o=p.length>3&&void 0!==p[3]?p[3]:{},null==t)throw new ow("tableId","Required parameter tableId was null or undefined when calling v1LocalizationtableTablesTableIdEntriesTranslationHistoryPost.");if(null==n)throw new ow("request","Required parameter request was null or undefined when calling v1LocalizationtableTablesTableIdEntriesTranslationHistoryPost.");return a="/v1/localizationtable/tables/{tableId}/entries/translation-history".replace("{tableId}",encodeURIComponent(String(t))),i=I.parse(a,!0),e&&(s=e.baseOptions),u=oR({method:"POST"},s,o),c={},l={},void 0!==r&&(l.gameId=r),c["Content-Type"]="application/json",i.query=oR({},i.query,l,o.query),delete i.search,f=s&&s.headers?s.headers:{},u.headers=oR({},c,f,o.headers),d="string"!=typeof n||"application/json"===u.headers["Content-Type"],u.data=d?JSON.stringify(void 0!==n?n:{}):n||"",[2,{url:I.format(i),options:u}]})}),function(e,t,n){return i.apply(this,arguments)}),v1LocalizationtableTablesTableIdEntryCountGet:(s=oO(function(t,n){var r,o,a,i,s,u,c,l,f=arguments;return oC(this,function(d){if(r=f.length>2&&void 0!==f[2]?f[2]:{},null==t)throw new ow("tableId","Required parameter tableId was null or undefined when calling v1LocalizationtableTablesTableIdEntryCountGet.");return o="/v1/localizationtable/tables/{tableId}/entry-count".replace("{tableId}",encodeURIComponent(String(t))),a=I.parse(o,!0),e&&(i=e.baseOptions),s=oR({method:"GET"},i,r),u={},c={},void 0!==n&&(c.gameId=n),a.query=oR({},a.query,c,r.query),delete a.search,l=i&&i.headers?i.headers:{},s.headers=oR({},u,l,r.headers),[2,{url:I.format(a),options:s}]})}),function(e,t){return s.apply(this,arguments)}),v1LocalizationtableTablesTableIdGet:(u=oO(function(t){var n,r,o,a,i,s,u,c,l=arguments;return oC(this,function(f){if(n=l.length>1&&void 0!==l[1]?l[1]:{},null==t)throw new ow("tableId","Required parameter tableId was null or undefined when calling v1LocalizationtableTablesTableIdGet.");return r="/v1/localizationtable/tables/{tableId}".replace("{tableId}",encodeURIComponent(String(t))),o=I.parse(r,!0),e&&(a=e.baseOptions),i=oR({method:"GET"},a,n),s={},u={},o.query=oR({},o.query,u,n.query),delete o.search,c=a&&a.headers?a.headers:{},i.headers=oR({},s,c,n.headers),[2,{url:I.format(o),options:i}]})}),function(e){return u.apply(this,arguments)}),v1LocalizationtableTablesTableIdPatch:(c=oO(function(t,n,r){var o,a,i,s,u,c,l,f,d,p=arguments;return oC(this,function(h){if(o=p.length>3&&void 0!==p[3]?p[3]:{},null==t)throw new ow("tableId","Required parameter tableId was null or undefined when calling v1LocalizationtableTablesTableIdPatch.");if(null==n)throw new ow("request","Required parameter request was null or undefined when calling v1LocalizationtableTablesTableIdPatch.");return a="/v1/localizationtable/tables/{tableId}".replace("{tableId}",encodeURIComponent(String(t))),i=I.parse(a,!0),e&&(s=e.baseOptions),u=oR({method:"PATCH"},s,o),c={},l={},void 0!==r&&(l.gameId=r),c["Content-Type"]="application/json",i.query=oR({},i.query,l,o.query),delete i.search,f=s&&s.headers?s.headers:{},u.headers=oR({},c,f,o.headers),d="string"!=typeof n||"application/json"===u.headers["Content-Type"],u.data=d?JSON.stringify(void 0!==n?n:{}):n||"",[2,{url:I.format(i),options:u}]})}),function(e,t,n){return c.apply(this,arguments)})}},oH=function(e){return{v1LocalizationtableAvailableLanguagesGet:function(t){return oO(function(){var n;return oC(this,function(r){switch(r.label){case 0:return[4,oV(e).v1LocalizationtableAvailableLanguagesGet(t)];case 1:return n=r.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,r=oE(oR({},n.options),{url:t+n.url});return e.request(r)}]}})})()},v1LocalizationtableGamesGameIdAssetsGenerationRequestPost:function(t,n){return oO(function(){var r;return oC(this,function(o){switch(o.label){case 0:return[4,oV(e).v1LocalizationtableGamesGameIdAssetsGenerationRequestPost(t,n)];case 1:return r=o.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},r.options),{url:t+r.url});return e.request(n)}]}})})()},v1LocalizationtableGametablesGameIdPatch:function(t,n,r){return oO(function(){var o;return oC(this,function(a){switch(a.label){case 0:return[4,oV(e).v1LocalizationtableGametablesGameIdPatch(t,n,r)];case 1:return o=a.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},o.options),{url:t+o.url});return e.request(n)}]}})})()},v1LocalizationtableTablesGet:function(t,n){return oO(function(){var r;return oC(this,function(o){switch(o.label){case 0:return[4,oV(e).v1LocalizationtableTablesGet(t,n)];case 1:return r=o.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},r.options),{url:t+r.url});return e.request(n)}]}})})()},v1LocalizationtableTablesPost:function(t,n){return oO(function(){var r;return oC(this,function(o){switch(o.label){case 0:return[4,oV(e).v1LocalizationtableTablesPost(t,n)];case 1:return r=o.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},r.options),{url:t+r.url});return e.request(n)}]}})})()},v1LocalizationtableTablesTableIdEntriesGet:function(t,n,r,o){return oO(function(){var a;return oC(this,function(i){switch(i.label){case 0:return[4,oV(e).v1LocalizationtableTablesTableIdEntriesGet(t,n,r,o)];case 1:return a=i.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},a.options),{url:t+a.url});return e.request(n)}]}})})()},v1LocalizationtableTablesTableIdEntriesTranslationHistoryPost:function(t,n,r,o){return oO(function(){var a;return oC(this,function(i){switch(i.label){case 0:return[4,oV(e).v1LocalizationtableTablesTableIdEntriesTranslationHistoryPost(t,n,r,o)];case 1:return a=i.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},a.options),{url:t+a.url});return e.request(n)}]}})})()},v1LocalizationtableTablesTableIdEntryCountGet:function(t,n,r){return oO(function(){var o;return oC(this,function(a){switch(a.label){case 0:return[4,oV(e).v1LocalizationtableTablesTableIdEntryCountGet(t,n,r)];case 1:return o=a.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},o.options),{url:t+o.url});return e.request(n)}]}})})()},v1LocalizationtableTablesTableIdGet:function(t,n){return oO(function(){var r;return oC(this,function(o){switch(o.label){case 0:return[4,oV(e).v1LocalizationtableTablesTableIdGet(t,n)];case 1:return r=o.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},r.options),{url:t+r.url});return e.request(n)}]}})})()},v1LocalizationtableTablesTableIdPatch:function(t,n,r,o){return oO(function(){var a;return oC(this,function(i){switch(i.label){case 0:return[4,oV(e).v1LocalizationtableTablesTableIdPatch(t,n,r,o)];case 1:return a=i.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},a.options),{url:t+a.url});return e.request(n)}]}})})()}}},oZ=function(e){function t(){return oP(this,t),oT(this,t,arguments)}return ox(t,e),ok(t,[{key:"v1LocalizationtableAvailableLanguagesGet",value:function(e){var t=this;return oH(this.configuration).v1LocalizationtableAvailableLanguagesGet(e).then(function(e){return e(t.axios,t.basePath)})}},{key:"v1LocalizationtableGamesGameIdAssetsGenerationRequestPost",value:function(e,t){var n=this;return oH(this.configuration).v1LocalizationtableGamesGameIdAssetsGenerationRequestPost(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v1LocalizationtableGametablesGameIdPatch",value:function(e,t,n){var r=this;return oH(this.configuration).v1LocalizationtableGametablesGameIdPatch(e,t,n).then(function(e){return e(r.axios,r.basePath)})}},{key:"v1LocalizationtableTablesGet",value:function(e,t){var n=this;return oH(this.configuration).v1LocalizationtableTablesGet(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v1LocalizationtableTablesPost",value:function(e,t){var n=this;return oH(this.configuration).v1LocalizationtableTablesPost(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v1LocalizationtableTablesTableIdEntriesGet",value:function(e,t,n,r){var o=this;return oH(this.configuration).v1LocalizationtableTablesTableIdEntriesGet(e,t,n,r).then(function(e){return e(o.axios,o.basePath)})}},{key:"v1LocalizationtableTablesTableIdEntriesTranslationHistoryPost",value:function(e,t,n,r){var o=this;return oH(this.configuration).v1LocalizationtableTablesTableIdEntriesTranslationHistoryPost(e,t,n,r).then(function(e){return e(o.axios,o.basePath)})}},{key:"v1LocalizationtableTablesTableIdEntryCountGet",value:function(e,t,n){var r=this;return oH(this.configuration).v1LocalizationtableTablesTableIdEntryCountGet(e,t,n).then(function(e){return e(r.axios,r.basePath)})}},{key:"v1LocalizationtableTablesTableIdGet",value:function(e,t){var n=this;return oH(this.configuration).v1LocalizationtableTablesTableIdGet(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v1LocalizationtableTablesTableIdPatch",value:function(e,t,n,r){var o=this;return oH(this.configuration).v1LocalizationtableTablesTableIdPatch(e,t,n,r).then(function(e){return e(o.axios,o.basePath)})}}]),t}(o_),oK=function(e){var t,n;return{v1SourceLanguageGamesGameIdGet:(t=oO(function(t){var n,r,o,a,i,s,u,c,l=arguments;return oC(this,function(f){if(n=l.length>1&&void 0!==l[1]?l[1]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1SourceLanguageGamesGameIdGet.");return r="/v1/source-language/games/{gameId}".replace("{gameId}",encodeURIComponent(String(t))),o=I.parse(r,!0),e&&(a=e.baseOptions),i=oR({method:"GET"},a,n),s={},u={},o.query=oR({},o.query,u,n.query),delete o.search,c=a&&a.headers?a.headers:{},i.headers=oR({},s,c,n.headers),[2,{url:I.format(o),options:i}]})}),function(e){return t.apply(this,arguments)}),v1SourceLanguageGamesGameIdPatch:(n=oO(function(t,n){var r,o,a,i,s,u,c,l,f=arguments;return oC(this,function(d){if(r=f.length>2&&void 0!==f[2]?f[2]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1SourceLanguageGamesGameIdPatch.");if(null==n)throw new ow("languageCode","Required parameter languageCode was null or undefined when calling v1SourceLanguageGamesGameIdPatch.");return o="/v1/source-language/games/{gameId}".replace("{gameId}",encodeURIComponent(String(t))),a=I.parse(o,!0),e&&(i=e.baseOptions),s=oR({method:"PATCH"},i,r),u={},c={},void 0!==n&&(c.languageCode=n),a.query=oR({},a.query,c,r.query),delete a.search,l=i&&i.headers?i.headers:{},s.headers=oR({},u,l,r.headers),[2,{url:I.format(a),options:s}]})}),function(e,t){return n.apply(this,arguments)})}},o$=function(e){return{v1SourceLanguageGamesGameIdGet:function(t,n){return oO(function(){var r;return oC(this,function(o){switch(o.label){case 0:return[4,oK(e).v1SourceLanguageGamesGameIdGet(t,n)];case 1:return r=o.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},r.options),{url:t+r.url});return e.request(n)}]}})})()},v1SourceLanguageGamesGameIdPatch:function(t,n,r){return oO(function(){var o;return oC(this,function(a){switch(a.label){case 0:return[4,oK(e).v1SourceLanguageGamesGameIdPatch(t,n,r)];case 1:return o=a.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},o.options),{url:t+o.url});return e.request(n)}]}})})()}}},oW=function(e){function t(){return oP(this,t),oT(this,t,arguments)}return ox(t,e),ok(t,[{key:"v1SourceLanguageGamesGameIdGet",value:function(e,t){var n=this;return o$(this.configuration).v1SourceLanguageGamesGameIdGet(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v1SourceLanguageGamesGameIdPatch",value:function(e,t,n){var r=this;return o$(this.configuration).v1SourceLanguageGamesGameIdPatch(e,t,n).then(function(e){return e(r.axios,r.basePath)})}}]),t}(o_),oJ=function(e){var t,n,r,o,a,i;return{v1SupportedLanguagesGamesGameIdAutomaticTranslationStatusGet:(t=oO(function(t){var n,r,o,a,i,s,u,c,l=arguments;return oC(this,function(f){if(n=l.length>1&&void 0!==l[1]?l[1]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1SupportedLanguagesGamesGameIdAutomaticTranslationStatusGet.");return r="/v1/supported-languages/games/{gameId}/automatic-translation-status".replace("{gameId}",encodeURIComponent(String(t))),o=I.parse(r,!0),e&&(a=e.baseOptions),i=oR({method:"GET"},a,n),s={},u={},o.query=oR({},o.query,u,n.query),delete o.search,c=a&&a.headers?a.headers:{},i.headers=oR({},s,c,n.headers),[2,{url:I.format(o),options:i}]})}),function(e){return t.apply(this,arguments)}),v1SupportedLanguagesGamesGameIdGet:(n=oO(function(t){var n,r,o,a,i,s,u,c,l=arguments;return oC(this,function(f){if(n=l.length>1&&void 0!==l[1]?l[1]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1SupportedLanguagesGamesGameIdGet.");return r="/v1/supported-languages/games/{gameId}".replace("{gameId}",encodeURIComponent(String(t))),o=I.parse(r,!0),e&&(a=e.baseOptions),i=oR({method:"GET"},a,n),s={},u={},o.query=oR({},o.query,u,n.query),delete o.search,c=a&&a.headers?a.headers:{},i.headers=oR({},s,c,n.headers),[2,{url:I.format(o),options:i}]})}),function(e){return n.apply(this,arguments)}),v1SupportedLanguagesGamesGameIdLanguagesLanguageCodeAutomaticTranslationStatusPatch:(r=oO(function(t,n,r){var o,a,i,s,u,c,l,f,d,p=arguments;return oC(this,function(h){if(o=p.length>3&&void 0!==p[3]?p[3]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1SupportedLanguagesGamesGameIdLanguagesLanguageCodeAutomaticTranslationStatusPatch.");if(null==n)throw new ow("languageCode","Required parameter languageCode was null or undefined when calling v1SupportedLanguagesGamesGameIdLanguagesLanguageCodeAutomaticTranslationStatusPatch.");if(null==r)throw new ow("enableAutomaticTranslation","Required parameter enableAutomaticTranslation was null or undefined when calling v1SupportedLanguagesGamesGameIdLanguagesLanguageCodeAutomaticTranslationStatusPatch.");return a="/v1/supported-languages/games/{gameId}/languages/{languageCode}/automatic-translation-status".replace("{gameId}",encodeURIComponent(String(t))).replace("{languageCode}",encodeURIComponent(String(n))),i=I.parse(a,!0),e&&(s=e.baseOptions),u=oR({method:"PATCH"},s,o),l={},(c={})["Content-Type"]="application/json",i.query=oR({},i.query,l,o.query),delete i.search,f=s&&s.headers?s.headers:{},u.headers=oR({},c,f,o.headers),d="string"!=typeof r||"application/json"===u.headers["Content-Type"],u.data=d?JSON.stringify(void 0!==r?r:{}):r||"",[2,{url:I.format(i),options:u}]})}),function(e,t,n){return r.apply(this,arguments)}),v1SupportedLanguagesGamesGameIdLanguagesLanguageCodeUniverseDisplayInfoAutomaticTranslationSettingsPatch:(o=oO(function(t,n,r){var o,a,i,s,u,c,l,f,d,p=arguments;return oC(this,function(h){if(o=p.length>3&&void 0!==p[3]?p[3]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1SupportedLanguagesGamesGameIdLanguagesLanguageCodeUniverseDisplayInfoAutomaticTranslationSettingsPatch.");if(null==n)throw new ow("languageCode","Required parameter languageCode was null or undefined when calling v1SupportedLanguagesGamesGameIdLanguagesLanguageCodeUniverseDisplayInfoAutomaticTranslationSettingsPatch.");if(null==r)throw new ow("enableUniverseDisplayInfoAutomaticTranslation","Required parameter enableUniverseDisplayInfoAutomaticTranslation was null or undefined when calling v1SupportedLanguagesGamesGameIdLanguagesLanguageCodeUniverseDisplayInfoAutomaticTranslationSettingsPatch.");return a="/v1/supported-languages/games/{gameId}/languages/{languageCode}/universe-display-info-automatic-translation-settings".replace("{gameId}",encodeURIComponent(String(t))).replace("{languageCode}",encodeURIComponent(String(n))),i=I.parse(a,!0),e&&(s=e.baseOptions),u=oR({method:"PATCH"},s,o),l={},(c={})["Content-Type"]="application/json",i.query=oR({},i.query,l,o.query),delete i.search,f=s&&s.headers?s.headers:{},u.headers=oR({},c,f,o.headers),d="string"!=typeof r||"application/json"===u.headers["Content-Type"],u.data=d?JSON.stringify(void 0!==r?r:{}):r||"",[2,{url:I.format(i),options:u}]})}),function(e,t,n){return o.apply(this,arguments)}),v1SupportedLanguagesGamesGameIdPatch:(a=oO(function(t,n){var r,o,a,i,s,u,c,l,f,d=arguments;return oC(this,function(p){if(r=d.length>2&&void 0!==d[2]?d[2]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1SupportedLanguagesGamesGameIdPatch.");if(null==n)throw new ow("languages","Required parameter languages was null or undefined when calling v1SupportedLanguagesGamesGameIdPatch.");return o="/v1/supported-languages/games/{gameId}".replace("{gameId}",encodeURIComponent(String(t))),a=I.parse(o,!0),e&&(i=e.baseOptions),s=oR({method:"PATCH"},i,r),c={},(u={})["Content-Type"]="application/json",a.query=oR({},a.query,c,r.query),delete a.search,l=i&&i.headers?i.headers:{},s.headers=oR({},u,l,r.headers),f="string"!=typeof n||"application/json"===s.headers["Content-Type"],s.data=f?JSON.stringify(void 0!==n?n:{}):n||"",[2,{url:I.format(a),options:s}]})}),function(e,t){return a.apply(this,arguments)}),v1SupportedLanguagesGamesGameIdUniverseDisplayInfoAutomaticTranslationSettingsGet:(i=oO(function(t){var n,r,o,a,i,s,u,c,l=arguments;return oC(this,function(f){if(n=l.length>1&&void 0!==l[1]?l[1]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1SupportedLanguagesGamesGameIdUniverseDisplayInfoAutomaticTranslationSettingsGet.");return r="/v1/supported-languages/games/{gameId}/universe-display-info-automatic-translation-settings".replace("{gameId}",encodeURIComponent(String(t))),o=I.parse(r,!0),e&&(a=e.baseOptions),i=oR({method:"GET"},a,n),s={},u={},o.query=oR({},o.query,u,n.query),delete o.search,c=a&&a.headers?a.headers:{},i.headers=oR({},s,c,n.headers),[2,{url:I.format(o),options:i}]})}),function(e){return i.apply(this,arguments)}),v1SupportedLanguagesMetadataGet:oO(function(){var t,n,r,o,a,i,s,u,c=arguments;return oC(this,function(l){return t=c.length>0&&void 0!==c[0]?c[0]:{},n="/v1/supported-languages/metadata",r=I.parse(n,!0),e&&(o=e.baseOptions),a=oR({method:"GET"},o,t),i={},s={},r.query=oR({},r.query,s,t.query),delete r.search,u=o&&o.headers?o.headers:{},a.headers=oR({},i,u,t.headers),[2,{url:I.format(r),options:a}]})})}},oX=function(e){return{v1SupportedLanguagesGamesGameIdAutomaticTranslationStatusGet:function(t,n){return oO(function(){var r;return oC(this,function(o){switch(o.label){case 0:return[4,oJ(e).v1SupportedLanguagesGamesGameIdAutomaticTranslationStatusGet(t,n)];case 1:return r=o.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},r.options),{url:t+r.url});return e.request(n)}]}})})()},v1SupportedLanguagesGamesGameIdGet:function(t,n){return oO(function(){var r;return oC(this,function(o){switch(o.label){case 0:return[4,oJ(e).v1SupportedLanguagesGamesGameIdGet(t,n)];case 1:return r=o.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},r.options),{url:t+r.url});return e.request(n)}]}})})()},v1SupportedLanguagesGamesGameIdLanguagesLanguageCodeAutomaticTranslationStatusPatch:function(t,n,r,o){return oO(function(){var a;return oC(this,function(i){switch(i.label){case 0:return[4,oJ(e).v1SupportedLanguagesGamesGameIdLanguagesLanguageCodeAutomaticTranslationStatusPatch(t,n,r,o)];case 1:return a=i.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},a.options),{url:t+a.url});return e.request(n)}]}})})()},v1SupportedLanguagesGamesGameIdLanguagesLanguageCodeUniverseDisplayInfoAutomaticTranslationSettingsPatch:function(t,n,r,o){return oO(function(){var a;return oC(this,function(i){switch(i.label){case 0:return[4,oJ(e).v1SupportedLanguagesGamesGameIdLanguagesLanguageCodeUniverseDisplayInfoAutomaticTranslationSettingsPatch(t,n,r,o)];case 1:return a=i.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},a.options),{url:t+a.url});return e.request(n)}]}})})()},v1SupportedLanguagesGamesGameIdPatch:function(t,n,r){return oO(function(){var o;return oC(this,function(a){switch(a.label){case 0:return[4,oJ(e).v1SupportedLanguagesGamesGameIdPatch(t,n,r)];case 1:return o=a.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},o.options),{url:t+o.url});return e.request(n)}]}})})()},v1SupportedLanguagesGamesGameIdUniverseDisplayInfoAutomaticTranslationSettingsGet:function(t,n){return oO(function(){var r;return oC(this,function(o){switch(o.label){case 0:return[4,oJ(e).v1SupportedLanguagesGamesGameIdUniverseDisplayInfoAutomaticTranslationSettingsGet(t,n)];case 1:return r=o.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},r.options),{url:t+r.url});return e.request(n)}]}})})()},v1SupportedLanguagesMetadataGet:function(t){return oO(function(){var n;return oC(this,function(r){switch(r.label){case 0:return[4,oJ(e).v1SupportedLanguagesMetadataGet(t)];case 1:return n=r.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,r=oE(oR({},n.options),{url:t+n.url});return e.request(r)}]}})})()}}},oY=function(e){function t(){return oP(this,t),oT(this,t,arguments)}return ox(t,e),ok(t,[{key:"v1SupportedLanguagesGamesGameIdAutomaticTranslationStatusGet",value:function(e,t){var n=this;return oX(this.configuration).v1SupportedLanguagesGamesGameIdAutomaticTranslationStatusGet(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v1SupportedLanguagesGamesGameIdGet",value:function(e,t){var n=this;return oX(this.configuration).v1SupportedLanguagesGamesGameIdGet(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v1SupportedLanguagesGamesGameIdLanguagesLanguageCodeAutomaticTranslationStatusPatch",value:function(e,t,n,r){var o=this;return oX(this.configuration).v1SupportedLanguagesGamesGameIdLanguagesLanguageCodeAutomaticTranslationStatusPatch(e,t,n,r).then(function(e){return e(o.axios,o.basePath)})}},{key:"v1SupportedLanguagesGamesGameIdLanguagesLanguageCodeUniverseDisplayInfoAutomaticTranslationSettingsPatch",value:function(e,t,n,r){var o=this;return oX(this.configuration).v1SupportedLanguagesGamesGameIdLanguagesLanguageCodeUniverseDisplayInfoAutomaticTranslationSettingsPatch(e,t,n,r).then(function(e){return e(o.axios,o.basePath)})}},{key:"v1SupportedLanguagesGamesGameIdPatch",value:function(e,t,n){var r=this;return oX(this.configuration).v1SupportedLanguagesGamesGameIdPatch(e,t,n).then(function(e){return e(r.axios,r.basePath)})}},{key:"v1SupportedLanguagesGamesGameIdUniverseDisplayInfoAutomaticTranslationSettingsGet",value:function(e,t){var n=this;return oX(this.configuration).v1SupportedLanguagesGamesGameIdUniverseDisplayInfoAutomaticTranslationSettingsGet(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v1SupportedLanguagesMetadataGet",value:function(e){var t=this;return oX(this.configuration).v1SupportedLanguagesMetadataGet(e).then(function(e){return e(t.axios,t.basePath)})}}]),t}(o_),oQ=function(e){var t,n;return{v1TranslationAnalyticsGamesGameIdDownloadTranslationAnalyticsReportGet:(t=oO(function(t,n,r,o,a){var i,s,u,c,l,f,d,p,h=arguments;return oC(this,function(v){if(i=h.length>5&&void 0!==h[5]?h[5]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1TranslationAnalyticsGamesGameIdDownloadTranslationAnalyticsReportGet.");if(null==n)throw new ow("startDateTime","Required parameter startDateTime was null or undefined when calling v1TranslationAnalyticsGamesGameIdDownloadTranslationAnalyticsReportGet.");if(null==r)throw new ow("endDateTime","Required parameter endDateTime was null or undefined when calling v1TranslationAnalyticsGamesGameIdDownloadTranslationAnalyticsReportGet.");if(null==o)throw new ow("reportType","Required parameter reportType was null or undefined when calling v1TranslationAnalyticsGamesGameIdDownloadTranslationAnalyticsReportGet.");if(null==a)throw new ow("reportSubjectTargetId","Required parameter reportSubjectTargetId was null or undefined when calling v1TranslationAnalyticsGamesGameIdDownloadTranslationAnalyticsReportGet.");return s="/v1/translation-analytics/games/{gameId}/download-translation-analytics-report".replace("{gameId}",encodeURIComponent(String(t))),u=I.parse(s,!0),e&&(c=e.baseOptions),l=oR({method:"GET"},c,i),f={},d={},void 0!==n&&(d.startDateTime=n),void 0!==r&&(d.endDateTime=r),void 0!==o&&(d.reportType=o),void 0!==a&&(d.reportSubjectTargetId=a),u.query=oR({},u.query,d,i.query),delete u.search,p=c&&c.headers?c.headers:{},l.headers=oR({},f,p,i.headers),[2,{url:I.format(u),options:l}]})}),function(e,n,r,o,a){return t.apply(this,arguments)}),v1TranslationAnalyticsGamesGameIdRequestTranslationAnalyticsReportPost:(n=oO(function(t,n){var r,o,a,i,s,u,c,l,f,d=arguments;return oC(this,function(p){if(r=d.length>2&&void 0!==d[2]?d[2]:{},null==t)throw new ow("gameId","Required parameter gameId was null or undefined when calling v1TranslationAnalyticsGamesGameIdRequestTranslationAnalyticsReportPost.");if(null==n)throw new ow("request","Required parameter request was null or undefined when calling v1TranslationAnalyticsGamesGameIdRequestTranslationAnalyticsReportPost.");return o="/v1/translation-analytics/games/{gameId}/request-translation-analytics-report".replace("{gameId}",encodeURIComponent(String(t))),a=I.parse(o,!0),e&&(i=e.baseOptions),s=oR({method:"POST"},i,r),c={},(u={})["Content-Type"]="application/json",a.query=oR({},a.query,c,r.query),delete a.search,l=i&&i.headers?i.headers:{},s.headers=oR({},u,l,r.headers),f="string"!=typeof n||"application/json"===s.headers["Content-Type"],s.data=f?JSON.stringify(void 0!==n?n:{}):n||"",[2,{url:I.format(a),options:s}]})}),function(e,t){return n.apply(this,arguments)}),v1TranslationAnalyticsMetadataGet:oO(function(){var t,n,r,o,a,i,s,u,c=arguments;return oC(this,function(l){return t=c.length>0&&void 0!==c[0]?c[0]:{},n="/v1/translation-analytics/metadata",r=I.parse(n,!0),e&&(o=e.baseOptions),a=oR({method:"GET"},o,t),i={},s={},r.query=oR({},r.query,s,t.query),delete r.search,u=o&&o.headers?o.headers:{},a.headers=oR({},i,u,t.headers),[2,{url:I.format(r),options:a}]})})}},o0=function(e){return{v1TranslationAnalyticsGamesGameIdDownloadTranslationAnalyticsReportGet:function(t,n,r,o,a,i){return oO(function(){var s;return oC(this,function(u){switch(u.label){case 0:return[4,oQ(e).v1TranslationAnalyticsGamesGameIdDownloadTranslationAnalyticsReportGet(t,n,r,o,a,i)];case 1:return s=u.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},s.options),{url:t+s.url});return e.request(n)}]}})})()},v1TranslationAnalyticsGamesGameIdRequestTranslationAnalyticsReportPost:function(t,n,r){return oO(function(){var o;return oC(this,function(a){switch(a.label){case 0:return[4,oQ(e).v1TranslationAnalyticsGamesGameIdRequestTranslationAnalyticsReportPost(t,n,r)];case 1:return o=a.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,n=oE(oR({},o.options),{url:t+o.url});return e.request(n)}]}})})()},v1TranslationAnalyticsMetadataGet:function(t){return oO(function(){var n;return oC(this,function(r){switch(r.label){case 0:return[4,oQ(e).v1TranslationAnalyticsMetadataGet(t)];case 1:return n=r.sent(),[2,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ob,r=oE(oR({},n.options),{url:t+n.url});return e.request(r)}]}})})()}}},o1=function(e){function t(){return oP(this,t),oT(this,t,arguments)}return ox(t,e),ok(t,[{key:"v1TranslationAnalyticsGamesGameIdDownloadTranslationAnalyticsReportGet",value:function(e,t,n,r,o,a){var i=this;return o0(this.configuration).v1TranslationAnalyticsGamesGameIdDownloadTranslationAnalyticsReportGet(e,t,n,r,o,a).then(function(e){return e(i.axios,i.basePath)})}},{key:"v1TranslationAnalyticsGamesGameIdRequestTranslationAnalyticsReportPost",value:function(e,t,n){var r=this;return o0(this.configuration).v1TranslationAnalyticsGamesGameIdRequestTranslationAnalyticsReportPost(e,t,n).then(function(e){return e(r.axios,r.basePath)})}},{key:"v1TranslationAnalyticsMetadataGet",value:function(e){var t=this;return o0(this.configuration).v1TranslationAnalyticsMetadataGet(e).then(function(e){return e(t.axios,t.basePath)})}}]),t}(o_);function o2(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function o3(e,t,n){return(o3=o9()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&o5(o,n.prototype),o}).apply(null,arguments)}function o4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o6(e){return(o6=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o5(e,t){return(o5=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o8(e){var t="function"==typeof Map?new Map:void 0;return(o8=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return o3(e,arguments,o6(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),o5(n,e)})(e)}function o9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(o9=function(){return!!e})()}var o7=rB.localizationTablesApi.replace(/\/+$/,""),ae=function(e){function t(e,n){var r,o,a,i,s,u;return o2(this,t),o=t,a=[n],o=o6(o),o4((i=this,r=(s=o9()?Reflect.construct(o,a||[],o6(this).constructor):o.apply(this,a))&&("object"==((u=s)&&"undefined"!=typeof Symbol&&u.constructor===Symbol?"symbol":typeof u)||"function"==typeof s)?s:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i)),"field",void 0),o4(r,"name",void 0),r.field=e,r.name="RequiredError",r}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o5(e,t)}(t,e),t}(o8(Error)),at="https://example.com",an=function(e,t,n){if(null==n)throw new ae(t,"Required parameter ".concat(t," was null or undefined when calling ").concat(e,"."))},ar=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,u=(o=function(e){for(var t=1;t0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]1&&void 0!==u[1]?u[1]:{},an("v1AutoLocalizationTableGamesGameIdAssetsGenerationRequestPost","gameId",t),r=new URL("/v1/auto-localization-table/games/{gameId}/assets-generation-request".replace("{gameId}",encodeURIComponent(String(t))),at),e&&(o=e.baseOptions),a=al({method:"POST"},o,n),i={},ar(r,{},n.query),s=o&&o.headers?o.headers:{},a.headers=al({},i,s,n.headers),[2,{url:aa(r),options:a}]})}),function(e){return t.apply(this,arguments)}),v1AutoLocalizationTableGamesGameIdAutoScrapeCleanupRequestPost:(n=au(function(t,n){var r,o,a,i,s,u,c,l=arguments;return ap(this,function(f){return r=l.length>2&&void 0!==l[2]?l[2]:{},an("v1AutoLocalizationTableGamesGameIdAutoScrapeCleanupRequestPost","gameId",t),an("v1AutoLocalizationTableGamesGameIdAutoScrapeCleanupRequestPost","request",n),o=new URL("/v1/auto-localization-table/games/{gameId}/auto-scrape-cleanup-request".replace("{gameId}",encodeURIComponent(String(t))),at),e&&(a=e.baseOptions),i=al({method:"POST"},a,r),u={},(s={})["Content-Type"]="application/json",ar(o,u,r.query),c=a&&a.headers?a.headers:{},i.headers=al({},s,c,r.headers),i.data=ao(n,i,e),[2,{url:aa(o),options:i}]})}),function(e,t){return n.apply(this,arguments)}),v1AutoLocalizationTableGamesGameIdPatch:(r=au(function(t,n,r){var o,a,i,s,u,c,l,f=arguments;return ap(this,function(d){return o=f.length>3&&void 0!==f[3]?f[3]:{},an("v1AutoLocalizationTableGamesGameIdPatch","gameId",t),an("v1AutoLocalizationTableGamesGameIdPatch","request",n),a=new URL("/v1/auto-localization-table/games/{gameId}".replace("{gameId}",encodeURIComponent(String(t))),at),e&&(i=e.baseOptions),s=al({method:"PATCH"},i,o),u={},c={},null!=r&&(u["Roblox-Game-Id"]=String(r)),u["Content-Type"]="application/json",ar(a,c,o.query),l=i&&i.headers?i.headers:{},s.headers=al({},u,l,o.headers),s.data=ao(n,s,e),[2,{url:aa(a),options:s}]})}),function(e,t,n){return r.apply(this,arguments)})}},av=function(e){var t=ah(e);return{v1AutoLocalizationTableGamesGameIdAssetsGenerationRequestPost:function(n,r){return au(function(){return ap(this,function(o){switch(o.label){case 0:return[4,t.v1AutoLocalizationTableGamesGameIdAssetsGenerationRequestPost(n,r)];case 1:return[2,ai(o.sent(),rp(),o7,e)]}})})()},v1AutoLocalizationTableGamesGameIdAutoScrapeCleanupRequestPost:function(n,r,o){return au(function(){return ap(this,function(a){switch(a.label){case 0:return[4,t.v1AutoLocalizationTableGamesGameIdAutoScrapeCleanupRequestPost(n,r,o)];case 1:return[2,ai(a.sent(),rp(),o7,e)]}})})()},v1AutoLocalizationTableGamesGameIdPatch:function(n,r,o,a){return au(function(){return ap(this,function(i){switch(i.label){case 0:return[4,t.v1AutoLocalizationTableGamesGameIdPatch(n,r,o,a)];case 1:return[2,ai(i.sent(),rp(),o7,e)]}})})()}}},ay=function(e){var t;function n(){var e,t,r,o,a;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),e=n,t=arguments,e=ac(e),r=this,(o=ad()?Reflect.construct(e,t||[],ac(this).constructor):e.apply(this,t))&&("object"==((a=o)&&"undefined"!=typeof Symbol&&a.constructor===Symbol?"symbol":typeof a)||"function"==typeof o)?o:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&af(e,t)}(n,e),t=[{key:"v1AutoLocalizationTableGamesGameIdAssetsGenerationRequestPost",value:function(e,t){var n=this;return av(this.configuration).v1AutoLocalizationTableGamesGameIdAssetsGenerationRequestPost(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v1AutoLocalizationTableGamesGameIdAutoScrapeCleanupRequestPost",value:function(e,t,n){var r=this;return av(this.configuration).v1AutoLocalizationTableGamesGameIdAutoScrapeCleanupRequestPost(e,t,n).then(function(e){return e(r.axios,r.basePath)})}},{key:"v1AutoLocalizationTableGamesGameIdPatch",value:function(e,t,n,r){var o=this;return av(this.configuration).v1AutoLocalizationTableGamesGameIdPatch(e,t,n,r).then(function(e){return e(o.axios,o.basePath)})}}],function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:o7,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rp();o2(this,e),o4(this,"basePath",void 0),o4(this,"axios",void 0),o4(this,"configuration",void 0),this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)});function am(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function ag(e,t,n){return(ag=aO()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&aw(o,n.prototype),o}).apply(null,arguments)}function ab(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a_(e){return(a_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function aw(e,t){return(aw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function aS(e){var t="function"==typeof Map?new Map:void 0;return(aS=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return ag(e,arguments,a_(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),aw(n,e)})(e)}function aO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(aO=function(){return!!e})()}new oM,new ay,new oD;var aT=rB.gameInternationalizationApi.replace(/\/+$/,""),aP=function(e){function t(e,n){var r,o,a,i,s,u;return am(this,t),o=t,a=[n],o=a_(o),ab((i=this,r=(s=aO()?Reflect.construct(o,a||[],a_(this).constructor):o.apply(this,a))&&("object"==((u=s)&&"undefined"!=typeof Symbol&&u.constructor===Symbol?"symbol":typeof u)||"function"==typeof s)?s:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i)),"field",void 0),ab(r,"name",void 0),r.field=e,r.name="RequiredError",r}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&aw(e,t)}(t,e),t}(aS(Error));function aI(e,t,n,r,o,a,i){try{var s=e[a](i),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,o)}function ak(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){aI(a,r,o,i,s,"next",e)}function s(e){aI(a,r,o,i,s,"throw",e)}i(void 0)})}}function aA(e){return(aA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ax(e){for(var t=1;t0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]1&&void 0!==l[1]?l[1]:{},null==t)throw new aP("gameId","Required parameter gameId was null or undefined when calling v2SupportedLanguagesGamesGameIdGet.");return r="/v2/supported-languages/games/{gameId}".replace("{gameId}",encodeURIComponent(String(t))),o=I.parse(r,!0),e&&(a=e.baseOptions),i=ax({method:"GET"},a,n),s={},u={},o.query=ax({},o.query,u,n.query),delete o.search,c=a&&a.headers?a.headers:{},i.headers=ax({},s,c,n.headers),[2,{url:I.format(o),options:i}]})}),function(e){return t.apply(this,arguments)})}},aC=function(e){var t;function n(){var e,t,r,o,a;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),e=n,t=arguments,e=aA(e),r=this,(o=aE()?Reflect.construct(e,t||[],aA(this).constructor):e.apply(this,t))&&("object"==((a=o)&&"undefined"!=typeof Symbol&&a.constructor===Symbol?"symbol":typeof a)||"function"==typeof o)?o:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&aR(e,t)}(n,e),t=[{key:"v2SupportedLanguagesGamesGameIdGet",value:function(e,t){var n,r=this;return(n=this.configuration,{v2SupportedLanguagesGamesGameIdGet:function(e,t){return ak(function(){var r;return aG(this,function(o){switch(o.label){case 0:return[4,aj(n).v2SupportedLanguagesGamesGameIdGet(e,t)];case 1:return r=o.sent(),[2,function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aT,a=(e=ax({},r.options),t=t={url:o+r.url},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e);return n.request(a)}]}})})()}}).v2SupportedLanguagesGamesGameIdGet(e,t).then(function(e){return e(r.axios,r.basePath)})}}],function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:aT,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rp();am(this,e),ab(this,"basePath",void 0),ab(this,"axios",void 0),ab(this,"configuration",void 0),this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)});function aL(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function aN(e,t,n){return(aN=aF()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&aU(o,n.prototype),o}).apply(null,arguments)}function aM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aq(e){return(aq=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function aU(e,t){return(aU=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function aD(e){var t="function"==typeof Map?new Map:void 0;return(aD=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return aN(e,arguments,aq(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),aU(n,e)})(e)}function aF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(aF=function(){return!!e})()}new oY,new aC,new oZ,new oW;var aB=rB.thumbnailsApi.replace(/\/+$/,""),az={csv:","},aV=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aB,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rp();aL(this,e),aM(this,"basePath",void 0),aM(this,"axios",void 0),aM(this,"configuration",void 0),this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)},aH=function(e){function t(e,n){var r,o,a,i,s,u;return aL(this,t),o=t,a=[n],o=aq(o),aM((i=this,r=(s=aF()?Reflect.construct(o,a||[],aq(this).constructor):o.apply(this,a))&&("object"==((u=s)&&"undefined"!=typeof Symbol&&u.constructor===Symbol?"symbol":typeof u)||"function"==typeof s)?s:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i)),"field",void 0),aM(r,"name",void 0),r.field=e,r.name="RequiredError",r}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&aU(e,t)}(t,e),t}(aD(Error)),aZ="https://example.com",aK=function(e,t,n){if(null==n)throw new aH(t,"Required parameter ".concat(t," was null or undefined when calling ").concat(e,"."))},a$=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,u=(o=function(e){for(var t=1;t0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]5&&void 0!==p[5]?p[5]:{},aK("v1AssetsGet","assetIds",t),s=new URL("/v1/assets",aZ),e&&(u=e.baseOptions),c=a5({method:"GET"},u,i),l={},f={},t&&(f.assetIds=t.join(az.csv)),void 0!==n&&(f.returnPolicy=n),void 0!==r&&(f.size=r),void 0!==o&&(f.format=o),void 0!==a&&(f.isCircular=a),a$(s,f,i.query),d=u&&u.headers?u.headers:{},c.headers=a5({},l,d,i.headers),[2,{url:aJ(s),options:c}]})}),function(e,n,r,o,a){return t.apply(this,arguments)}),v1AssetsThumbnail3dGet:(n=aQ(function(t){var n,r,o,a,i,s,u,c=arguments;return a7(this,function(l){return n=c.length>1&&void 0!==c[1]?c[1]:{},aK("v1AssetsThumbnail3dGet","assetId",t),r=new URL("/v1/assets-thumbnail-3d",aZ),e&&(o=e.baseOptions),a=a5({method:"GET"},o,n),i={},s={},void 0!==t&&(s.assetId=t),a$(r,s,n.query),u=o&&o.headers?o.headers:{},a.headers=a5({},i,u,n.headers),[2,{url:aJ(r),options:a}]})}),function(e){return n.apply(this,arguments)})}},it=function(e){var t=ie(e);return{v1AssetsGet:function(n,r,o,a,i,s){return aQ(function(){return a7(this,function(u){switch(u.label){case 0:return[4,t.v1AssetsGet(n,r,o,a,i,s)];case 1:return[2,aX(u.sent(),rp(),aB,e)]}})})()},v1AssetsThumbnail3dGet:function(n,r){return aQ(function(){return a7(this,function(o){switch(o.label){case 0:return[4,t.v1AssetsThumbnail3dGet(n,r)];case 1:return[2,aX(o.sent(),rp(),aB,e)]}})})()}}},ir=function(e){function t(){return a1(this,t),a0(this,t,arguments)}return a6(t,e),a3(t,[{key:"v1AssetsGet",value:function(e,t,n,r,o,a){var i=this;return it(this.configuration).v1AssetsGet(e,t,n,r,o,a).then(function(e){return e(i.axios,i.basePath)})}},{key:"v1AssetsThumbnail3dGet",value:function(e,t){var n=this;return it(this.configuration).v1AssetsThumbnail3dGet(e,t).then(function(e){return e(n.axios,n.basePath)})}}]),t}(aV),io=function(e){var t,n,r,o;return{v1UsersAvatar3dGet:(t=aQ(function(t){var n,r,o,a,i,s,u,c=arguments;return a7(this,function(l){return n=c.length>1&&void 0!==c[1]?c[1]:{},aK("v1UsersAvatar3dGet","userId",t),r=new URL("/v1/users/avatar-3d",aZ),e&&(o=e.baseOptions),a=a5({method:"GET"},o,n),i={},s={},void 0!==t&&(s.userId=t),a$(r,s,n.query),u=o&&o.headers?o.headers:{},a.headers=a5({},i,u,n.headers),[2,{url:aJ(r),options:a}]})}),function(e){return t.apply(this,arguments)}),v1UsersAvatarBustGet:(n=aQ(function(t,n,r,o){var a,i,s,u,c,l,f,d=arguments;return a7(this,function(p){return a=d.length>4&&void 0!==d[4]?d[4]:{},aK("v1UsersAvatarBustGet","userIds",t),i=new URL("/v1/users/avatar-bust",aZ),e&&(s=e.baseOptions),u=a5({method:"GET"},s,a),c={},l={},t&&(l.userIds=t.join(az.csv)),void 0!==n&&(l.size=n),void 0!==r&&(l.format=r),void 0!==o&&(l.isCircular=o),a$(i,l,a.query),f=s&&s.headers?s.headers:{},u.headers=a5({},c,f,a.headers),[2,{url:aJ(i),options:u}]})}),function(e,t,r,o){return n.apply(this,arguments)}),v1UsersAvatarGet:(r=aQ(function(t,n,r,o){var a,i,s,u,c,l,f,d=arguments;return a7(this,function(p){return a=d.length>4&&void 0!==d[4]?d[4]:{},aK("v1UsersAvatarGet","userIds",t),i=new URL("/v1/users/avatar",aZ),e&&(s=e.baseOptions),u=a5({method:"GET"},s,a),c={},l={},t&&(l.userIds=t.join(az.csv)),void 0!==n&&(l.size=n),void 0!==r&&(l.format=r),void 0!==o&&(l.isCircular=o),a$(i,l,a.query),f=s&&s.headers?s.headers:{},u.headers=a5({},c,f,a.headers),[2,{url:aJ(i),options:u}]})}),function(e,t,n,o){return r.apply(this,arguments)}),v1UsersAvatarHeadshotGet:(o=aQ(function(t,n,r,o){var a,i,s,u,c,l,f,d=arguments;return a7(this,function(p){return a=d.length>4&&void 0!==d[4]?d[4]:{},aK("v1UsersAvatarHeadshotGet","userIds",t),i=new URL("/v1/users/avatar-headshot",aZ),e&&(s=e.baseOptions),u=a5({method:"GET"},s,a),c={},l={},t&&(l.userIds=t.join(az.csv)),void 0!==n&&(l.size=n),void 0!==r&&(l.format=r),void 0!==o&&(l.isCircular=o),a$(i,l,a.query),f=s&&s.headers?s.headers:{},u.headers=a5({},c,f,a.headers),[2,{url:aJ(i),options:u}]})}),function(e,t,n,r){return o.apply(this,arguments)})}},ia=function(e){var t=io(e);return{v1UsersAvatar3dGet:function(n,r){return aQ(function(){return a7(this,function(o){switch(o.label){case 0:return[4,t.v1UsersAvatar3dGet(n,r)];case 1:return[2,aX(o.sent(),rp(),aB,e)]}})})()},v1UsersAvatarBustGet:function(n,r,o,a,i){return aQ(function(){return a7(this,function(s){switch(s.label){case 0:return[4,t.v1UsersAvatarBustGet(n,r,o,a,i)];case 1:return[2,aX(s.sent(),rp(),aB,e)]}})})()},v1UsersAvatarGet:function(n,r,o,a,i){return aQ(function(){return a7(this,function(s){switch(s.label){case 0:return[4,t.v1UsersAvatarGet(n,r,o,a,i)];case 1:return[2,aX(s.sent(),rp(),aB,e)]}})})()},v1UsersAvatarHeadshotGet:function(n,r,o,a,i){return aQ(function(){return a7(this,function(s){switch(s.label){case 0:return[4,t.v1UsersAvatarHeadshotGet(n,r,o,a,i)];case 1:return[2,aX(s.sent(),rp(),aB,e)]}})})()}}},ii=function(e){function t(){return a1(this,t),a0(this,t,arguments)}return a6(t,e),a3(t,[{key:"v1UsersAvatar3dGet",value:function(e,t){var n=this;return ia(this.configuration).v1UsersAvatar3dGet(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v1UsersAvatarBustGet",value:function(e,t,n,r,o){var a=this;return ia(this.configuration).v1UsersAvatarBustGet(e,t,n,r,o).then(function(e){return e(a.axios,a.basePath)})}},{key:"v1UsersAvatarGet",value:function(e,t,n,r,o){var a=this;return ia(this.configuration).v1UsersAvatarGet(e,t,n,r,o).then(function(e){return e(a.axios,a.basePath)})}},{key:"v1UsersAvatarHeadshotGet",value:function(e,t,n,r,o){var a=this;return ia(this.configuration).v1UsersAvatarHeadshotGet(e,t,n,r,o).then(function(e){return e(a.axios,a.basePath)})}}]),t}(aV),is=function(e){var t;return{v1BadgesIconsGet:(t=aQ(function(t,n,r,o){var a,i,s,u,c,l,f,d=arguments;return a7(this,function(p){return a=d.length>4&&void 0!==d[4]?d[4]:{},aK("v1BadgesIconsGet","badgeIds",t),i=new URL("/v1/badges/icons",aZ),e&&(s=e.baseOptions),u=a5({method:"GET"},s,a),c={},l={},t&&(l.badgeIds=t.join(az.csv)),void 0!==n&&(l.size=n),void 0!==r&&(l.format=r),void 0!==o&&(l.isCircular=o),a$(i,l,a.query),f=s&&s.headers?s.headers:{},u.headers=a5({},c,f,a.headers),[2,{url:aJ(i),options:u}]})}),function(e,n,r,o){return t.apply(this,arguments)})}},iu=function(e){var t=is(e);return{v1BadgesIconsGet:function(n,r,o,a,i){return aQ(function(){return a7(this,function(s){switch(s.label){case 0:return[4,t.v1BadgesIconsGet(n,r,o,a,i)];case 1:return[2,aX(s.sent(),rp(),aB,e)]}})})()}}},ic=function(e){function t(){return a1(this,t),a0(this,t,arguments)}return a6(t,e),a3(t,[{key:"v1BadgesIconsGet",value:function(e,t,n,r,o){var a=this;return iu(this.configuration).v1BadgesIconsGet(e,t,n,r,o).then(function(e){return e(a.axios,a.basePath)})}}]),t}(aV),il=function(e){var t;return{v1BatchPost:(t=aQ(function(t){var n,r,o,a,i,s,u,c=arguments;return a7(this,function(l){return n=c.length>1&&void 0!==c[1]?c[1]:{},aK("v1BatchPost","requests",t),r=new URL("/v1/batch",aZ),e&&(o=e.baseOptions),a=a5({method:"POST"},o,n),s={},(i={})["Content-Type"]="application/json",a$(r,s,n.query),u=o&&o.headers?o.headers:{},a.headers=a5({},i,u,n.headers),a.data=aW(t,a,e),[2,{url:aJ(r),options:a}]})}),function(e){return t.apply(this,arguments)})}},id=function(e){var t=il(e);return{v1BatchPost:function(n,r){return aQ(function(){return a7(this,function(o){switch(o.label){case 0:return[4,t.v1BatchPost(n,r)];case 1:return[2,aX(o.sent(),rp(),aB,e)]}})})()}}},ip=function(e){function t(){return a1(this,t),a0(this,t,arguments)}return a6(t,e),a3(t,[{key:"v1BatchPost",value:function(e,t){var n=this;return id(this.configuration).v1BatchPost(e,t).then(function(e){return e(n.axios,n.basePath)})}}]),t}(aV),ih=function(e){var t;return{v1BundlesThumbnailsGet:(t=aQ(function(t,n,r,o){var a,i,s,u,c,l,f,d=arguments;return a7(this,function(p){return a=d.length>4&&void 0!==d[4]?d[4]:{},aK("v1BundlesThumbnailsGet","bundleIds",t),i=new URL("/v1/bundles/thumbnails",aZ),e&&(s=e.baseOptions),u=a5({method:"GET"},s,a),c={},l={},t&&(l.bundleIds=t.join(az.csv)),void 0!==n&&(l.size=n),void 0!==r&&(l.format=r),void 0!==o&&(l.isCircular=o),a$(i,l,a.query),f=s&&s.headers?s.headers:{},u.headers=a5({},c,f,a.headers),[2,{url:aJ(i),options:u}]})}),function(e,n,r,o){return t.apply(this,arguments)})}},iv=function(e){var t=ih(e);return{v1BundlesThumbnailsGet:function(n,r,o,a,i){return aQ(function(){return a7(this,function(s){switch(s.label){case 0:return[4,t.v1BundlesThumbnailsGet(n,r,o,a,i)];case 1:return[2,aX(s.sent(),rp(),aB,e)]}})})()}}},iy=function(e){function t(){return a1(this,t),a0(this,t,arguments)}return a6(t,e),a3(t,[{key:"v1BundlesThumbnailsGet",value:function(e,t,n,r,o){var a=this;return iv(this.configuration).v1BundlesThumbnailsGet(e,t,n,r,o).then(function(e){return e(a.axios,a.basePath)})}}]),t}(aV),im=function(e){var t;return{v1DeveloperProductsIconsGet:(t=aQ(function(t,n,r,o){var a,i,s,u,c,l,f,d=arguments;return a7(this,function(p){return a=d.length>4&&void 0!==d[4]?d[4]:{},aK("v1DeveloperProductsIconsGet","developerProductIds",t),i=new URL("/v1/developer-products/icons",aZ),e&&(s=e.baseOptions),u=a5({method:"GET"},s,a),c={},l={},t&&(l.developerProductIds=t.join(az.csv)),void 0!==n&&(l.size=n),void 0!==r&&(l.format=r),void 0!==o&&(l.isCircular=o),a$(i,l,a.query),f=s&&s.headers?s.headers:{},u.headers=a5({},c,f,a.headers),[2,{url:aJ(i),options:u}]})}),function(e,n,r,o){return t.apply(this,arguments)})}},ig=function(e){var t=im(e);return{v1DeveloperProductsIconsGet:function(n,r,o,a,i){return aQ(function(){return a7(this,function(s){switch(s.label){case 0:return[4,t.v1DeveloperProductsIconsGet(n,r,o,a,i)];case 1:return[2,aX(s.sent(),rp(),aB,e)]}})})()}}},ib=function(e){function t(){return a1(this,t),a0(this,t,arguments)}return a6(t,e),a3(t,[{key:"v1DeveloperProductsIconsGet",value:function(e,t,n,r,o){var a=this;return ig(this.configuration).v1DeveloperProductsIconsGet(e,t,n,r,o).then(function(e){return e(a.axios,a.basePath)})}}]),t}(aV),i_=function(e){var t;return{v1GamePassesGet:(t=aQ(function(t,n,r,o){var a,i,s,u,c,l,f,d=arguments;return a7(this,function(p){return a=d.length>4&&void 0!==d[4]?d[4]:{},aK("v1GamePassesGet","gamePassIds",t),i=new URL("/v1/game-passes",aZ),e&&(s=e.baseOptions),u=a5({method:"GET"},s,a),c={},l={},t&&(l.gamePassIds=t.join(az.csv)),void 0!==n&&(l.size=n),void 0!==r&&(l.format=r),void 0!==o&&(l.isCircular=o),a$(i,l,a.query),f=s&&s.headers?s.headers:{},u.headers=a5({},c,f,a.headers),[2,{url:aJ(i),options:u}]})}),function(e,n,r,o){return t.apply(this,arguments)})}},iw=function(e){var t=i_(e);return{v1GamePassesGet:function(n,r,o,a,i){return aQ(function(){return a7(this,function(s){switch(s.label){case 0:return[4,t.v1GamePassesGet(n,r,o,a,i)];case 1:return[2,aX(s.sent(),rp(),aB,e)]}})})()}}},iS=function(e){function t(){return a1(this,t),a0(this,t,arguments)}return a6(t,e),a3(t,[{key:"v1GamePassesGet",value:function(e,t,n,r,o){var a=this;return iw(this.configuration).v1GamePassesGet(e,t,n,r,o).then(function(e){return e(a.axios,a.basePath)})}}]),t}(aV),iO=function(e){var t,n,r;return{v1GamesIconsGet:(t=aQ(function(t,n,r,o,a){var i,s,u,c,l,f,d,p=arguments;return a7(this,function(h){return i=p.length>5&&void 0!==p[5]?p[5]:{},aK("v1GamesIconsGet","universeIds",t),s=new URL("/v1/games/icons",aZ),e&&(u=e.baseOptions),c=a5({method:"GET"},u,i),l={},f={},t&&(f.universeIds=t.join(az.csv)),void 0!==n&&(f.returnPolicy=n),void 0!==r&&(f.size=r),void 0!==o&&(f.format=o),void 0!==a&&(f.isCircular=a),a$(s,f,i.query),d=u&&u.headers?u.headers:{},c.headers=a5({},l,d,i.headers),[2,{url:aJ(s),options:c}]})}),function(e,n,r,o,a){return t.apply(this,arguments)}),v1GamesMultigetThumbnailsGet:(n=aQ(function(t,n,r,o,a,i){var s,u,c,l,f,d,p,h=arguments;return a7(this,function(v){return s=h.length>6&&void 0!==h[6]?h[6]:{},aK("v1GamesMultigetThumbnailsGet","universeIds",t),u=new URL("/v1/games/multiget/thumbnails",aZ),e&&(c=e.baseOptions),l=a5({method:"GET"},c,s),f={},d={},t&&(d.universeIds=t.join(az.csv)),void 0!==n&&(d.countPerUniverse=n),void 0!==r&&(d.defaults=r),void 0!==o&&(d.size=o),void 0!==a&&(d.format=a),void 0!==i&&(d.isCircular=i),a$(u,d,s.query),p=c&&c.headers?c.headers:{},l.headers=a5({},f,p,s.headers),[2,{url:aJ(u),options:l}]})}),function(e,t,r,o,a,i){return n.apply(this,arguments)}),v1GamesUniverseIdThumbnailsGet:(r=aQ(function(t,n,r,o,a){var i,s,u,c,l,f,d,p=arguments;return a7(this,function(h){return i=p.length>5&&void 0!==p[5]?p[5]:{},aK("v1GamesUniverseIdThumbnailsGet","universeId",t),aK("v1GamesUniverseIdThumbnailsGet","thumbnailIds",n),s=new URL("/v1/games/{universeId}/thumbnails".replace("{universeId}",encodeURIComponent(String(t))),aZ),e&&(u=e.baseOptions),c=a5({method:"GET"},u,i),l={},f={},n&&(f.thumbnailIds=n.join(az.csv)),void 0!==r&&(f.size=r),void 0!==o&&(f.format=o),void 0!==a&&(f.isCircular=a),a$(s,f,i.query),d=u&&u.headers?u.headers:{},c.headers=a5({},l,d,i.headers),[2,{url:aJ(s),options:c}]})}),function(e,t,n,o,a){return r.apply(this,arguments)})}},iT=function(e){var t=iO(e);return{v1GamesIconsGet:function(n,r,o,a,i,s){return aQ(function(){return a7(this,function(u){switch(u.label){case 0:return[4,t.v1GamesIconsGet(n,r,o,a,i,s)];case 1:return[2,aX(u.sent(),rp(),aB,e)]}})})()},v1GamesMultigetThumbnailsGet:function(n,r,o,a,i,s,u){return aQ(function(){return a7(this,function(c){switch(c.label){case 0:return[4,t.v1GamesMultigetThumbnailsGet(n,r,o,a,i,s,u)];case 1:return[2,aX(c.sent(),rp(),aB,e)]}})})()},v1GamesUniverseIdThumbnailsGet:function(n,r,o,a,i,s){return aQ(function(){return a7(this,function(u){switch(u.label){case 0:return[4,t.v1GamesUniverseIdThumbnailsGet(n,r,o,a,i,s)];case 1:return[2,aX(u.sent(),rp(),aB,e)]}})})()}}},iP=function(e){function t(){return a1(this,t),a0(this,t,arguments)}return a6(t,e),a3(t,[{key:"v1GamesIconsGet",value:function(e,t,n,r,o,a){var i=this;return iT(this.configuration).v1GamesIconsGet(e,t,n,r,o,a).then(function(e){return e(i.axios,i.basePath)})}},{key:"v1GamesMultigetThumbnailsGet",value:function(e,t,n,r,o,a,i){var s=this;return iT(this.configuration).v1GamesMultigetThumbnailsGet(e,t,n,r,o,a,i).then(function(e){return e(s.axios,s.basePath)})}},{key:"v1GamesUniverseIdThumbnailsGet",value:function(e,t,n,r,o,a){var i=this;return iT(this.configuration).v1GamesUniverseIdThumbnailsGet(e,t,n,r,o,a).then(function(e){return e(i.axios,i.basePath)})}}]),t}(aV),iI=function(e){var t;return{v1GroupsIconsGet:(t=aQ(function(t,n,r,o){var a,i,s,u,c,l,f,d=arguments;return a7(this,function(p){return a=d.length>4&&void 0!==d[4]?d[4]:{},aK("v1GroupsIconsGet","groupIds",t),i=new URL("/v1/groups/icons",aZ),e&&(s=e.baseOptions),u=a5({method:"GET"},s,a),c={},l={},t&&(l.groupIds=t.join(az.csv)),void 0!==n&&(l.size=n),void 0!==r&&(l.format=r),void 0!==o&&(l.isCircular=o),a$(i,l,a.query),f=s&&s.headers?s.headers:{},u.headers=a5({},c,f,a.headers),[2,{url:aJ(i),options:u}]})}),function(e,n,r,o){return t.apply(this,arguments)})}},ik=function(e){var t=iI(e);return{v1GroupsIconsGet:function(n,r,o,a,i){return aQ(function(){return a7(this,function(s){switch(s.label){case 0:return[4,t.v1GroupsIconsGet(n,r,o,a,i)];case 1:return[2,aX(s.sent(),rp(),aB,e)]}})})()}}},iA=function(e){function t(){return a1(this,t),a0(this,t,arguments)}return a6(t,e),a3(t,[{key:"v1GroupsIconsGet",value:function(e,t,n,r,o){var a=this;return ik(this.configuration).v1GroupsIconsGet(e,t,n,r,o).then(function(e){return e(a.axios,a.basePath)})}}]),t}(aV),ix=function(e){var t;return{v1UsersOutfitsGet:(t=aQ(function(t,n,r,o){var a,i,s,u,c,l,f,d=arguments;return a7(this,function(p){return a=d.length>4&&void 0!==d[4]?d[4]:{},aK("v1UsersOutfitsGet","userOutfitIds",t),i=new URL("/v1/users/outfits",aZ),e&&(s=e.baseOptions),u=a5({method:"GET"},s,a),c={},l={},t&&(l.userOutfitIds=t.join(az.csv)),void 0!==n&&(l.size=n),void 0!==r&&(l.format=r),void 0!==o&&(l.isCircular=o),a$(i,l,a.query),f=s&&s.headers?s.headers:{},u.headers=a5({},c,f,a.headers),[2,{url:aJ(i),options:u}]})}),function(e,n,r,o){return t.apply(this,arguments)})}},iR=function(e){var t=ix(e);return{v1UsersOutfitsGet:function(n,r,o,a,i){return aQ(function(){return a7(this,function(s){switch(s.label){case 0:return[4,t.v1UsersOutfitsGet(n,r,o,a,i)];case 1:return[2,aX(s.sent(),rp(),aB,e)]}})})()}}},iE=function(e){function t(){return a1(this,t),a0(this,t,arguments)}return a6(t,e),a3(t,[{key:"v1UsersOutfitsGet",value:function(e,t,n,r,o){var a=this;return iR(this.configuration).v1UsersOutfitsGet(e,t,n,r,o).then(function(e){return e(a.axios,a.basePath)})}}]),t}(aV);new iP,new iS;var iG=((c=iG||{}).PlaceHolder="PlaceHolder",c.AutoGenerated="AutoGenerated",c.ForceAutoGenerated="ForceAutoGenerated",c),ij=((l=ij||{}).Large="150x150",l.Default="50x50",l),iC=((f=iC||{}).width768="768x432",f.width576="576x324",f.width480="480x270",f.width384="384x216",f.width256="256x144",f),iL=((d=iL||{}).Png="Png",d);function iN(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function iM(e,t,n){return(iM=iB()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&iD(o,n.prototype),o}).apply(null,arguments)}function iq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iU(e){return(iU=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function iD(e,t){return(iD=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function iF(e){var t="function"==typeof Map?new Map:void 0;return(iF=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return iM(e,arguments,iU(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),iD(n,e)})(e)}function iB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(iB=function(){return!!e})()}new o1;var iz=rB.gamesApi.replace(/\/+$/,""),iV={csv:","},iH=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iz,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rp();iN(this,e),iq(this,"basePath",void 0),iq(this,"axios",void 0),iq(this,"configuration",void 0),this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)},iZ=function(e){function t(e,n){var r,o,a,i,s,u;return iN(this,t),o=t,a=[n],o=iU(o),iq((i=this,r=(s=iB()?Reflect.construct(o,a||[],iU(this).constructor):o.apply(this,a))&&("object"==((u=s)&&"undefined"!=typeof Symbol&&u.constructor===Symbol?"symbol":typeof u)||"function"==typeof s)?s:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i)),"field",void 0),iq(r,"name",void 0),r.field=e,r.name="RequiredError",r}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&iD(e,t)}(t,e),t}(iF(Error));function iK(e,t,n){var r,o,a;return t=iX(t),r=e,(o=i2()?Reflect.construct(t,n||[],iX(e).constructor):t.apply(e,n))&&("object"==((a=o)&&"undefined"!=typeof Symbol&&a.constructor===Symbol?"symbol":typeof a)||"function"==typeof o)?o:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)}function i$(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function iW(e,t){for(var n=0;n4&&void 0!==arguments[4]?arguments[4]:{};if(null==e)throw new iZ("universeId","Required parameter universeId was null or undefined when calling v1GamesUniverseIdGamePassesGet.");var s="/v1/games/{universeId}/game-passes".replace("{universeId}",encodeURIComponent(String(e))),u=I.parse(s,!0);a&&(o=a.baseOptions);var c=iQ({method:"GET"},o,i),l={};return void 0!==t&&(l.sortOrder=t),void 0!==n&&(l.limit=n),void 0!==r&&(l.cursor=r),u.query=iQ({},u.query,l,i.query),delete u.search,c.headers=iQ({},{},i.headers),{url:I.format(u),options:c}}}).v1GamesUniverseIdGamePassesGet(e,t,n,r,o);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iz,n=i0(iQ({},i.options),{url:t+i.url});return e.request(n)}}}).v1GamesUniverseIdGamePassesGet(e,t,n,r,o)(this.axios,this.basePath)}}]),t}(iH),i4=function(e){return{v1GamesGameThumbnailGet:function(t,n,r){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(null==t)throw new iZ("imageToken","Required parameter imageToken was null or undefined when calling v1GamesGameThumbnailGet.");var i=I.parse("/v1/games/game-thumbnail",!0);e&&(o=e.baseOptions);var s=iQ({method:"GET"},o,a),u={};return void 0!==t&&(u.imageToken=t),void 0!==n&&(u.height=n),void 0!==r&&(u.width=r),i.query=iQ({},i.query,u,a.query),delete i.search,s.headers=iQ({},{},a.headers),{url:I.format(i),options:s}},v1GamesGameThumbnailsGet:function(t,n,r){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(null==t)throw new iZ("imageTokens","Required parameter imageTokens was null or undefined when calling v1GamesGameThumbnailsGet.");var i=I.parse("/v1/games/game-thumbnails",!0);e&&(o=e.baseOptions);var s=iQ({method:"GET"},o,a),u={};return t&&(u.imageTokens=t),void 0!==n&&(u.height=n),void 0!==r&&(u.width=r),i.query=iQ({},i.query,u,a.query),delete i.search,s.headers=iQ({},{},a.headers),{url:I.format(i),options:s}},v1GamesGamesProductInfoGet:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t)throw new iZ("universeIds","Required parameter universeIds was null or undefined when calling v1GamesGamesProductInfoGet.");var o=I.parse("/v1/games/games-product-info",!0);e&&(n=e.baseOptions);var a=iQ({method:"GET"},n,r),i={};return t&&(i.universeIds=t.join(iV.csv)),o.query=iQ({},o.query,i,r.query),delete o.search,a.headers=iQ({},{},r.headers),{url:I.format(o),options:a}},v1GamesGet:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t)throw new iZ("universeIds","Required parameter universeIds was null or undefined when calling v1GamesGet.");var o=I.parse("/v1/games",!0);e&&(n=e.baseOptions);var a=iQ({method:"GET"},n,r),i={};return t&&(i.universeIds=t.join(iV.csv)),o.query=iQ({},o.query,i,r.query),delete o.search,a.headers=iQ({},{},r.headers),{url:I.format(o),options:a}},v1GamesListGet:function(t,n,r,o,a,i,s,u,c,l,f,d,p,h,v){var y,m=arguments.length>15&&void 0!==arguments[15]?arguments[15]:{},g=I.parse("/v1/games/list",!0);e&&(y=e.baseOptions);var b=iQ({method:"GET"},y,m),_={};return void 0!==t&&(_["model.sortToken"]=t),void 0!==n&&(_["model.gameFilter"]=n),void 0!==r&&(_["model.timeFilter"]=r),void 0!==o&&(_["model.genreFilter"]=o),void 0!==a&&(_["model.exclusiveStartId"]=a),void 0!==i&&(_["model.sortOrder"]=i),void 0!==s&&(_["model.gameSetTargetId"]=s),void 0!==u&&(_["model.keyword"]=u),void 0!==c&&(_["model.startRows"]=c),void 0!==l&&(_["model.maxRows"]=l),void 0!==f&&(_["model.isKeywordSuggestionEnabled"]=f),void 0!==d&&(_["model.contextCountryRegionId"]=d),void 0!==p&&(_["model.contextUniverseId"]=p),void 0!==h&&(_["model.pageId"]=h),void 0!==v&&(_["model.sortPosition"]=v),g.query=iQ({},g.query,_,m.query),delete g.search,b.headers=iQ({},{},m.headers),{url:I.format(g),options:b}},v1GamesMultigetPlaceDetailsGet:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t)throw new iZ("placeIds","Required parameter placeIds was null or undefined when calling v1GamesMultigetPlaceDetailsGet.");var o=I.parse("/v1/games/multiget-place-details",!0);e&&(n=e.baseOptions);var a=iQ({method:"GET"},n,r),i={};return t&&(i.placeIds=t),o.query=iQ({},o.query,i,r.query),delete o.search,a.headers=iQ({},{},r.headers),{url:I.format(o),options:a}},v1GamesMultigetPlayabilityStatusGet:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t)throw new iZ("universeIds","Required parameter universeIds was null or undefined when calling v1GamesMultigetPlayabilityStatusGet.");var o=I.parse("/v1/games/multiget-playability-status",!0);e&&(n=e.baseOptions);var a=iQ({method:"GET"},n,r),i={};return t&&(i.universeIds=t.join(iV.csv)),o.query=iQ({},o.query,i,r.query),delete o.search,a.headers=iQ({},{},r.headers),{url:I.format(o),options:a}},v1GamesPlaceIdServersServerTypeGet:function(t,n,r,o,a){var i,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(null==t)throw new iZ("placeId","Required parameter placeId was null or undefined when calling v1GamesPlaceIdServersServerTypeGet.");if(null==n)throw new iZ("serverType","Required parameter serverType was null or undefined when calling v1GamesPlaceIdServersServerTypeGet.");var u="/v1/games/{placeId}/servers/{serverType}".replace("{placeId}",encodeURIComponent(String(t))).replace("{serverType}",encodeURIComponent(String(n))),c=I.parse(u,!0);e&&(i=e.baseOptions);var l=iQ({method:"GET"},i,s),f={};return void 0!==r&&(f.sortOrder=r),void 0!==o&&(f.limit=o),void 0!==a&&(f.cursor=a),c.query=iQ({},c.query,f,s.query),delete c.search,l.headers=iQ({},{},s.headers),{url:I.format(c),options:l}},v1GamesPlacesPlaceIdMetadataPost:function(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==t)throw new iZ("placeId","Required parameter placeId was null or undefined when calling v1GamesPlacesPlaceIdMetadataPost.");if(null==n)throw new iZ("request","Required parameter request was null or undefined when calling v1GamesPlacesPlaceIdMetadataPost.");var a="/v1/games/places/{placeId}/metadata".replace("{placeId}",encodeURIComponent(String(t))),i=I.parse(a,!0);e&&(r=e.baseOptions);var s=iQ({method:"POST"},r,o),u={};return u["Content-Type"]="application/json",i.query=iQ({},i.query,{},o.query),delete i.search,s.headers=iQ({},u,o.headers),s.data=JSON.stringify(void 0!==n?n:{}),{url:I.format(i),options:s}},v1GamesRecommendationsAlgorithmAlgorithmNameGet:function(t,n,r){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(null==t)throw new iZ("algorithmName","Required parameter algorithmName was null or undefined when calling v1GamesRecommendationsAlgorithmAlgorithmNameGet.");var i="/v1/games/recommendations/algorithm/{algorithmName}".replace("{algorithmName}",encodeURIComponent(String(t))),s=I.parse(i,!0);e&&(o=e.baseOptions);var u=iQ({method:"GET"},o,a),c={};return void 0!==n&&(c["model.paginationKey"]=n),void 0!==r&&(c["model.maxRows"]=r),s.query=iQ({},s.query,c,a.query),delete s.search,u.headers=iQ({},{},a.headers),{url:I.format(s),options:u}},v1GamesRecommendationsGameUniverseIdGet:function(t,n,r){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(null==t)throw new iZ("universeId","Required parameter universeId was null or undefined when calling v1GamesRecommendationsGameUniverseIdGet.");var i="/v1/games/recommendations/game/{universeId}".replace("{universeId}",encodeURIComponent(String(t))),s=I.parse(i,!0);e&&(o=e.baseOptions);var u=iQ({method:"GET"},o,a),c={};return void 0!==n&&(c["model.paginationKey"]=n),void 0!==r&&(c["model.maxRows"]=r),s.query=iQ({},s.query,c,a.query),delete s.search,u.headers=iQ({},{},a.headers),{url:I.format(s),options:u}},v1GamesSortsGet:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=I.parse("/v1/games/sorts",!0);e&&(n=e.baseOptions);var a=iQ({method:"GET"},n,r),i={};return void 0!==t&&(i["model.gameSortsContext"]=t),o.query=iQ({},o.query,i,r.query),delete o.search,a.headers=iQ({},{},r.headers),{url:I.format(o),options:a}},v1GamesUniverseIdIconGet:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t)throw new iZ("universeId","Required parameter universeId was null or undefined when calling v1GamesUniverseIdIconGet.");var o="/v1/games/{universeId}/icon".replace("{universeId}",encodeURIComponent(String(t))),a=I.parse(o,!0);e&&(n=e.baseOptions);var i=iQ({method:"GET"},n,r);return a.query=iQ({},a.query,{},r.query),delete a.search,i.headers=iQ({},{},r.headers),{url:I.format(a),options:i}},v1GamesUniverseIdMediaGet:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t)throw new iZ("universeId","Required parameter universeId was null or undefined when calling v1GamesUniverseIdMediaGet.");var o="/v1/games/{universeId}/media".replace("{universeId}",encodeURIComponent(String(t))),a=I.parse(o,!0);e&&(n=e.baseOptions);var i=iQ({method:"GET"},n,r);return a.query=iQ({},a.query,{},r.query),delete a.search,i.headers=iQ({},{},r.headers),{url:I.format(a),options:i}}}},i6=function(e){return{v1GamesGameThumbnailGet:function(t,n,r,o){var a=i4(e).v1GamesGameThumbnailGet(t,n,r,o);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iz,n=i0(iQ({},a.options),{url:t+a.url});return e.request(n)}},v1GamesGameThumbnailsGet:function(t,n,r,o){var a=i4(e).v1GamesGameThumbnailsGet(t,n,r,o);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iz,n=i0(iQ({},a.options),{url:t+a.url});return e.request(n)}},v1GamesGamesProductInfoGet:function(t,n){var r=i4(e).v1GamesGamesProductInfoGet(t,n);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iz,n=i0(iQ({},r.options),{url:t+r.url});return e.request(n)}},v1GamesGet:function(t,n){var r=i4(e).v1GamesGet(t,n);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iz,n=i0(iQ({},r.options),{url:t+r.url});return e.request(n)}},v1GamesListGet:function(t,n,r,o,a,i,s,u,c,l,f,d,p,h,v,y){var m=i4(e).v1GamesListGet(t,n,r,o,a,i,s,u,c,l,f,d,p,h,v,y);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iz,n=i0(iQ({},m.options),{url:t+m.url});return e.request(n)}},v1GamesMultigetPlaceDetailsGet:function(t,n){var r=i4(e).v1GamesMultigetPlaceDetailsGet(t,n);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iz,n=i0(iQ({},r.options),{url:t+r.url});return e.request(n)}},v1GamesMultigetPlayabilityStatusGet:function(t,n){var r=i4(e).v1GamesMultigetPlayabilityStatusGet(t,n);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iz,n=i0(iQ({},r.options),{url:t+r.url});return e.request(n)}},v1GamesPlaceIdServersServerTypeGet:function(t,n,r,o,a,i){var s=i4(e).v1GamesPlaceIdServersServerTypeGet(t,n,r,o,a,i);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iz,n=i0(iQ({},s.options),{url:t+s.url});return e.request(n)}},v1GamesPlacesPlaceIdMetadataPost:function(t,n,r){var o=i4(e).v1GamesPlacesPlaceIdMetadataPost(t,n,r);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iz,n=i0(iQ({},o.options),{url:t+o.url});return e.request(n)}},v1GamesRecommendationsAlgorithmAlgorithmNameGet:function(t,n,r,o){var a=i4(e).v1GamesRecommendationsAlgorithmAlgorithmNameGet(t,n,r,o);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iz,n=i0(iQ({},a.options),{url:t+a.url});return e.request(n)}},v1GamesRecommendationsGameUniverseIdGet:function(t,n,r,o){var a=i4(e).v1GamesRecommendationsGameUniverseIdGet(t,n,r,o);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iz,n=i0(iQ({},a.options),{url:t+a.url});return e.request(n)}},v1GamesSortsGet:function(t,n){var r=i4(e).v1GamesSortsGet(t,n);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iz,n=i0(iQ({},r.options),{url:t+r.url});return e.request(n)}},v1GamesUniverseIdIconGet:function(t,n){var r=i4(e).v1GamesUniverseIdIconGet(t,n);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iz,n=i0(iQ({},r.options),{url:t+r.url});return e.request(n)}},v1GamesUniverseIdMediaGet:function(t,n){var r=i4(e).v1GamesUniverseIdMediaGet(t,n);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:iz,n=i0(iQ({},r.options),{url:t+r.url});return e.request(n)}}}},i5=function(e){function t(){return i$(this,t),iK(this,t,arguments)}return iY(t,e),iJ(t,[{key:"v1GamesGameThumbnailGet",value:function(e,t,n,r){return i6(this.configuration).v1GamesGameThumbnailGet(e,t,n,r)(this.axios,this.basePath)}},{key:"v1GamesGameThumbnailsGet",value:function(e,t,n,r){return i6(this.configuration).v1GamesGameThumbnailsGet(e,t,n,r)(this.axios,this.basePath)}},{key:"v1GamesGamesProductInfoGet",value:function(e,t){return i6(this.configuration).v1GamesGamesProductInfoGet(e,t)(this.axios,this.basePath)}},{key:"v1GamesGet",value:function(e,t){return i6(this.configuration).v1GamesGet(e,t)(this.axios,this.basePath)}},{key:"v1GamesListGet",value:function(e,t,n,r,o,a,i,s,u,c,l,f,d,p,h,v){return i6(this.configuration).v1GamesListGet(e,t,n,r,o,a,i,s,u,c,l,f,d,p,h,v)(this.axios,this.basePath)}},{key:"v1GamesMultigetPlaceDetailsGet",value:function(e,t){return i6(this.configuration).v1GamesMultigetPlaceDetailsGet(e,t)(this.axios,this.basePath)}},{key:"v1GamesMultigetPlayabilityStatusGet",value:function(e,t){return i6(this.configuration).v1GamesMultigetPlayabilityStatusGet(e,t)(this.axios,this.basePath)}},{key:"v1GamesPlaceIdServersServerTypeGet",value:function(e,t,n,r,o,a){return i6(this.configuration).v1GamesPlaceIdServersServerTypeGet(e,t,n,r,o,a)(this.axios,this.basePath)}},{key:"v1GamesPlacesPlaceIdMetadataPost",value:function(e,t,n){return i6(this.configuration).v1GamesPlacesPlaceIdMetadataPost(e,t,n)(this.axios,this.basePath)}},{key:"v1GamesRecommendationsAlgorithmAlgorithmNameGet",value:function(e,t,n,r){return i6(this.configuration).v1GamesRecommendationsAlgorithmAlgorithmNameGet(e,t,n,r)(this.axios,this.basePath)}},{key:"v1GamesRecommendationsGameUniverseIdGet",value:function(e,t,n,r){return i6(this.configuration).v1GamesRecommendationsGameUniverseIdGet(e,t,n,r)(this.axios,this.basePath)}},{key:"v1GamesSortsGet",value:function(e,t){return i6(this.configuration).v1GamesSortsGet(e,t)(this.axios,this.basePath)}},{key:"v1GamesUniverseIdIconGet",value:function(e,t){return i6(this.configuration).v1GamesUniverseIdIconGet(e,t)(this.axios,this.basePath)}},{key:"v1GamesUniverseIdMediaGet",value:function(e,t){return i6(this.configuration).v1GamesUniverseIdMediaGet(e,t)(this.axios,this.basePath)}}]),t}(iH);function i8(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function i9(e,t,n){return(i9=sr()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&st(o,n.prototype),o}).apply(null,arguments)}function i7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function st(e,t){return(st=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sn(e){var t="function"==typeof Map?new Map:void 0;return(sn=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return i9(e,arguments,se(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),st(n,e)})(e)}function sr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(sr=function(){return!!e})()}var so=rB.gamesApi.replace(/\/+$/,""),sa=function(e){function t(e,n){var r,o,a,i,s,u;return i8(this,t),o=t,a=[n],o=se(o),i7((i=this,r=(s=sr()?Reflect.construct(o,a||[],se(this).constructor):o.apply(this,a))&&("object"==((u=s)&&"undefined"!=typeof Symbol&&u.constructor===Symbol?"symbol":typeof u)||"function"==typeof s)?s:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i)),"field",void 0),i7(r,"name",void 0),r.field=e,r.name="RequiredError",r}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&st(e,t)}(t,e),t}(sn(Error)),si="https://example.com",ss=function(e,t,n){if(null==n)throw new sa(t,"Required parameter ".concat(t," was null or undefined when calling ").concat(e,"."))},su=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,u=(o=function(e){for(var t=1;t0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]1&&void 0!==u[1]?u[1]:{},ss("v2GamesUniverseIdMediaGet","universeId",t),r=new URL("/v2/games/{universeId}/media".replace("{universeId}",encodeURIComponent(String(t))),si),e&&(o=e.baseOptions),a=sh({method:"GET"},o,n),i={},su(r,{},n.query),s=o&&o.headers?o.headers:{},a.headers=sh({},i,s,n.headers),[2,{url:sc(r),options:a}]})}),function(e){return t.apply(this,arguments)}),v2GroupsGroupIdGamesGet:(n=sd(function(t,n,r,o,a){var i,s,u,c,l,f,d,p=arguments;return sm(this,function(h){return i=p.length>5&&void 0!==p[5]?p[5]:{},ss("v2GroupsGroupIdGamesGet","groupId",t),s=new URL("/v2/groups/{groupId}/games".replace("{groupId}",encodeURIComponent(String(t))),si),e&&(u=e.baseOptions),c=sh({method:"GET"},u,i),l={},f={},void 0!==n&&(f.accessFilter=n),void 0!==r&&(f.sortOrder=r),void 0!==o&&(f.limit=o),void 0!==a&&(f.cursor=a),su(s,f,i.query),d=u&&u.headers?u.headers:{},c.headers=sh({},l,d,i.headers),[2,{url:sc(s),options:c}]})}),function(e,t,r,o,a){return n.apply(this,arguments)}),v2GroupsGroupIdGamesV2Get:(r=sd(function(t,n,r,o,a){var i,s,u,c,l,f,d,p=arguments;return sm(this,function(h){return i=p.length>5&&void 0!==p[5]?p[5]:{},ss("v2GroupsGroupIdGamesV2Get","groupId",t),s=new URL("/v2/groups/{groupId}/gamesV2".replace("{groupId}",encodeURIComponent(String(t))),si),e&&(u=e.baseOptions),c=sh({method:"GET"},u,i),l={},f={},void 0!==n&&(f.accessFilter=n),void 0!==r&&(f.sortOrder=r),void 0!==o&&(f.limit=o),void 0!==a&&(f.cursor=a),su(s,f,i.query),d=u&&u.headers?u.headers:{},c.headers=sh({},l,d,i.headers),[2,{url:sc(s),options:c}]})}),function(e,t,n,o,a){return r.apply(this,arguments)}),v2UsersUserIdFavoriteGamesGet:(o=sd(function(t,n,r,o,a){var i,s,u,c,l,f,d,p=arguments;return sm(this,function(h){return i=p.length>5&&void 0!==p[5]?p[5]:{},ss("v2UsersUserIdFavoriteGamesGet","userId",t),s=new URL("/v2/users/{userId}/favorite/games".replace("{userId}",encodeURIComponent(String(t))),si),e&&(u=e.baseOptions),c=sh({method:"GET"},u,i),l={},f={},void 0!==n&&(f.accessFilter=n),void 0!==r&&(f.sortOrder=r),void 0!==o&&(f.limit=o),void 0!==a&&(f.cursor=a),su(s,f,i.query),d=u&&u.headers?u.headers:{},c.headers=sh({},l,d,i.headers),[2,{url:sc(s),options:c}]})}),function(e,t,n,r,a){return o.apply(this,arguments)}),v2UsersUserIdGamesGet:(a=sd(function(t,n,r,o,a){var i,s,u,c,l,f,d,p=arguments;return sm(this,function(h){return i=p.length>5&&void 0!==p[5]?p[5]:{},ss("v2UsersUserIdGamesGet","userId",t),s=new URL("/v2/users/{userId}/games".replace("{userId}",encodeURIComponent(String(t))),si),e&&(u=e.baseOptions),c=sh({method:"GET"},u,i),l={},f={},void 0!==n&&(f.accessFilter=n),void 0!==r&&(f.sortOrder=r),void 0!==o&&(f.limit=o),void 0!==a&&(f.cursor=a),su(s,f,i.query),d=u&&u.headers?u.headers:{},c.headers=sh({},l,d,i.headers),[2,{url:sc(s),options:c}]})}),function(e,t,n,r,o){return a.apply(this,arguments)})}},sb=function(e){var t=sg(e);return{v2GamesUniverseIdMediaGet:function(n,r){return sd(function(){return sm(this,function(o){switch(o.label){case 0:return[4,t.v2GamesUniverseIdMediaGet(n,r)];case 1:return[2,sl(o.sent(),rp(),so,e)]}})})()},v2GroupsGroupIdGamesGet:function(n,r,o,a,i,s){return sd(function(){return sm(this,function(u){switch(u.label){case 0:return[4,t.v2GroupsGroupIdGamesGet(n,r,o,a,i,s)];case 1:return[2,sl(u.sent(),rp(),so,e)]}})})()},v2GroupsGroupIdGamesV2Get:function(n,r,o,a,i,s){return sd(function(){return sm(this,function(u){switch(u.label){case 0:return[4,t.v2GroupsGroupIdGamesV2Get(n,r,o,a,i,s)];case 1:return[2,sl(u.sent(),rp(),so,e)]}})})()},v2UsersUserIdFavoriteGamesGet:function(n,r,o,a,i,s){return sd(function(){return sm(this,function(u){switch(u.label){case 0:return[4,t.v2UsersUserIdFavoriteGamesGet(n,r,o,a,i,s)];case 1:return[2,sl(u.sent(),rp(),so,e)]}})})()},v2UsersUserIdGamesGet:function(n,r,o,a,i,s){return sd(function(){return sm(this,function(u){switch(u.label){case 0:return[4,t.v2UsersUserIdGamesGet(n,r,o,a,i,s)];case 1:return[2,sl(u.sent(),rp(),so,e)]}})})()}}},s_=function(e){var t;function n(){var e,t,r,o,a;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),e=n,t=arguments,e=sp(e),r=this,(o=sy()?Reflect.construct(e,t||[],sp(this).constructor):e.apply(this,t))&&("object"==((a=o)&&"undefined"!=typeof Symbol&&a.constructor===Symbol?"symbol":typeof a)||"function"==typeof o)?o:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sv(e,t)}(n,e),t=[{key:"v2GamesUniverseIdMediaGet",value:function(e,t){var n=this;return sb(this.configuration).v2GamesUniverseIdMediaGet(e,t).then(function(e){return e(n.axios,n.basePath)})}},{key:"v2GroupsGroupIdGamesGet",value:function(e,t,n,r,o,a){var i=this;return sb(this.configuration).v2GroupsGroupIdGamesGet(e,t,n,r,o,a).then(function(e){return e(i.axios,i.basePath)})}},{key:"v2GroupsGroupIdGamesV2Get",value:function(e,t,n,r,o,a){var i=this;return sb(this.configuration).v2GroupsGroupIdGamesV2Get(e,t,n,r,o,a).then(function(e){return e(i.axios,i.basePath)})}},{key:"v2UsersUserIdFavoriteGamesGet",value:function(e,t,n,r,o,a){var i=this;return sb(this.configuration).v2UsersUserIdFavoriteGamesGet(e,t,n,r,o,a).then(function(e){return e(i.axios,i.basePath)})}},{key:"v2UsersUserIdGamesGet",value:function(e,t,n,r,o,a){var i=this;return sb(this.configuration).v2UsersUserIdGamesGet(e,t,n,r,o,a).then(function(e){return e(i.axios,i.basePath)})}}],function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:so,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rp();i8(this,e),i7(this,"basePath",void 0),i7(this,"axios",void 0),i7(this,"configuration",void 0),this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)});function sw(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function sS(e,t,n){return(sS=sk()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&sP(o,n.prototype),o}).apply(null,arguments)}function sO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sT(e){return(sT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function sP(e,t){return(sP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sI(e){var t="function"==typeof Map?new Map:void 0;return(sI=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return sS(e,arguments,sT(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),sP(n,e)})(e)}function sk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(sk=function(){return!!e})()}new i5,new s_,new i3,n(330);var sA=rB.inventoryApi.replace(/\/+$/,""),sx=function(e){function t(e,n){var r,o,a,i,s,u;return sw(this,t),o=t,a=[n],o=sT(o),sO((i=this,r=(s=sk()?Reflect.construct(o,a||[],sT(this).constructor):o.apply(this,a))&&("object"==((u=s)&&"undefined"!=typeof Symbol&&u.constructor===Symbol?"symbol":typeof u)||"function"==typeof s)?s:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i)),"field",void 0),sO(r,"name",void 0),r.field=e,r.name="RequiredError",r}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sP(e,t)}(t,e),t}(sI(Error));function sR(e){return(sR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function sE(e){for(var t=1;t4&&void 0!==arguments[4]?arguments[4]:{};if(null==t)throw new sx("assetId","Required parameter assetId was null or undefined when calling v2AssetsAssetIdOwnersGet.");var s="/v2/assets/{assetId}/owners".replace("{assetId}",encodeURIComponent(String(t))),u=I.parse(s,!0);e&&(a=e.baseOptions);var c=sE({method:"GET"},a,i),l={};return void 0!==n&&(l.sortOrder=n),void 0!==r&&(l.limit=r),void 0!==o&&(l.cursor=o),u.query=sE({},u.query,l,i.query),delete u.search,c.headers=sE({},{},i.headers),{url:I.format(u),options:c}},v2RecommendationsAssetTypeIdGet:function(t,n,r,o,a){var i,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(null==t)throw new sx("assetTypeId","Required parameter assetTypeId was null or undefined when calling v2RecommendationsAssetTypeIdGet.");var u="/v2/recommendations/{assetTypeId}".replace("{assetTypeId}",encodeURIComponent(String(t))),c=I.parse(u,!0);e&&(i=e.baseOptions);var l=sE({method:"GET"},i,s),f={};return void 0!==n&&(f.numItems=n),void 0!==r&&(f.contextAssetId=r),void 0!==o&&(f.thumbWidth=o),void 0!==a&&(f.thumbHeight=a),c.query=sE({},c.query,f,s.query),delete c.search,l.headers=sE({},{},s.headers),{url:I.format(c),options:l}}}},sN=function(e){return{v2AssetsAssetIdOwnersGet:function(t,n,r,o,a){var i=sL(e).v2AssetsAssetIdOwnersGet(t,n,r,o,a);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sA,n=sG(sE({},i.options),{url:t+i.url});return e.request(n)}},v2RecommendationsAssetTypeIdGet:function(t,n,r,o,a,i){var s=sL(e).v2RecommendationsAssetTypeIdGet(t,n,r,o,a,i);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sA,n=sG(sE({},s.options),{url:t+s.url});return e.request(n)}}}};function sM(e){return(sM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}new(function(e){var t;function n(){var e,t,r,o,a;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),e=n,t=arguments,e=sR(e),r=this,(o=sC()?Reflect.construct(e,t||[],sR(this).constructor):e.apply(this,t))&&("object"==((a=o)&&"undefined"!=typeof Symbol&&a.constructor===Symbol?"symbol":typeof a)||"function"==typeof o)?o:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sj(e,t)}(n,e),t=[{key:"v2AssetsAssetIdOwnersGet",value:function(e,t,n,r,o){return sN(this.configuration).v2AssetsAssetIdOwnersGet(e,t,n,r,o)(this.axios,this.basePath)}},{key:"v2RecommendationsAssetTypeIdGet",value:function(e,t,n,r,o,a){return sN(this.configuration).v2RecommendationsAssetTypeIdGet(e,t,n,r,o,a)(this.axios,this.basePath)}}],function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:sA,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rp();sw(this,e),sO(this,"basePath",void 0),sO(this,"axios",void 0),sO(this,"configuration",void 0),this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}));var sq=window.Roblox.LocalStorage,sU=new(p=function e(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e)},h=[{key:"getUserKey",value:function(e){return"user_".concat(e)}},{key:"storage",value:function(){return sq?sq.isAvailable():localStorage}},{key:"getLength",value:function(){return this.storage()?localStorage.length:0}},{key:"getKey",value:function(e){return this.storage()?localStorage.key(e):""}},{key:"setLocalStorage",value:function(e,t){this.storage()&&localStorage.setItem(e,JSON.stringify(t))}},{key:"getLocalStorage",value:function(e){if(this.storage())return JSON.parse(localStorage.getItem(e))}},{key:"listenLocalStorage",value:function(e){this.storage()&&void 0!==e&&(window.addEventListener?window.addEventListener("storage",e,!1):window.attachEvent("onstorage",e))}},{key:"removeLocalStorage",value:function(e){this.storage()&&localStorage.removeItem(e)}},{key:"saveDataByTimeStamp",value:function(e,t){var n,r=new Date().getTime(),o=null!==(n=this.getLocalStorage(e))&&void 0!==n?n:{};o.data=t,o.timeStamp=r,this.setLocalStorage(e,o)}},{key:"fetchNonExpiredCachedData",value:function(e,t){var n=new Date().getTime(),r=this.getLocalStorage(e);if(r&&r.timeStamp){if(n-r.timeStamp<(t||3e4))return r;this.removeLocalStorage(e)}return null}}],function(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},r=I.parse("/v1/locales",!0);e&&(t=e.baseOptions);var o=sJ({method:"GET"},t,n);return r.query=sJ({},r.query,{},n.query),delete r.search,o.headers=sJ({},{},n.headers),{url:I.format(r),options:o}},v1LocalesSetUserSupportedLocalePost:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t)throw new s$("userRequest","Required parameter userRequest was null or undefined when calling v1LocalesSetUserSupportedLocalePost.");var o=I.parse("/v1/locales/set-user-supported-locale",!0);e&&(n=e.baseOptions);var a=sJ({method:"POST"},n,r),i={};return i["Content-Type"]="application/json",o.query=sJ({},o.query,{},r.query),delete o.search,a.headers=sJ({},i,r.headers),a.data=JSON.stringify(void 0!==t?t:{}),{url:I.format(o),options:a}},v1LocalesSupportedLocalesGet:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=I.parse("/v1/locales/supported-locales",!0);e&&(t=e.baseOptions);var o=sJ({method:"GET"},t,n);return r.query=sJ({},r.query,{},n.query),delete r.search,o.headers=sJ({},{},n.headers),{url:I.format(r),options:o}},v1LocalesUserLocaleGet:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=I.parse("/v1/locales/user-locale",!0);e&&(t=e.baseOptions);var o=sJ({method:"GET"},t,n);return r.query=sJ({},r.query,{},n.query),delete r.search,o.headers=sJ({},{},n.headers),{url:I.format(r),options:o}},v1LocalesUserLocalizationLocusSupportedLocalesGet:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=I.parse("/v1/locales/user-localization-locus-supported-locales",!0);e&&(t=e.baseOptions);var o=sJ({method:"GET"},t,n);return r.query=sJ({},r.query,{},n.query),delete r.search,o.headers=sJ({},{},n.headers),{url:I.format(r),options:o}}}},s1=function(e){return{v1LocalesGet:function(t){var n=s0(e).v1LocalesGet(t);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sK,r=sX(sJ({},n.options),{url:t+n.url});return e.request(r)}},v1LocalesSetUserSupportedLocalePost:function(t,n){var r=s0(e).v1LocalesSetUserSupportedLocalePost(t,n);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sK,n=sX(sJ({},r.options),{url:t+r.url});return e.request(n)}},v1LocalesSupportedLocalesGet:function(t){var n=s0(e).v1LocalesSupportedLocalesGet(t);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sK,r=sX(sJ({},n.options),{url:t+n.url});return e.request(r)}},v1LocalesUserLocaleGet:function(t){var n=s0(e).v1LocalesUserLocaleGet(t);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sK,r=sX(sJ({},n.options),{url:t+n.url});return e.request(r)}},v1LocalesUserLocalizationLocusSupportedLocalesGet:function(t){var n=s0(e).v1LocalesUserLocalizationLocusSupportedLocalesGet(t);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:sK,r=sX(sJ({},n.options),{url:t+n.url});return e.request(r)}}}},s2=new(function(e){var t;function n(){var e,t,r,o,a;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),e=n,t=arguments,e=sW(e),r=this,(o=sQ()?Reflect.construct(e,t||[],sW(this).constructor):e.apply(this,t))&&("object"==((a=o)&&"undefined"!=typeof Symbol&&a.constructor===Symbol?"symbol":typeof a)||"function"==typeof o)?o:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sY(e,t)}(n,e),t=[{key:"v1LocalesGet",value:function(e){return s1(this.configuration).v1LocalesGet(e)(this.axios,this.basePath)}},{key:"v1LocalesSetUserSupportedLocalePost",value:function(e,t){return s1(this.configuration).v1LocalesSetUserSupportedLocalePost(e,t)(this.axios,this.basePath)}},{key:"v1LocalesSupportedLocalesGet",value:function(e){return s1(this.configuration).v1LocalesSupportedLocalesGet(e)(this.axios,this.basePath)}},{key:"v1LocalesUserLocaleGet",value:function(e){return s1(this.configuration).v1LocalesUserLocaleGet(e)(this.axios,this.basePath)}},{key:"v1LocalesUserLocalizationLocusSupportedLocalesGet",value:function(e){return s1(this.configuration).v1LocalesUserLocalizationLocusSupportedLocalesGet(e)(this.axios,this.basePath)}}],function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:sK,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rp();sD(this,e),sB(this,"basePath",void 0),sB(this,"axios",void 0),sB(this,"configuration",void 0),this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}));function s3(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s4(e,t,n){return(s4=s7()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s8(o,n.prototype),o}).apply(null,arguments)}function s6(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s5(e){return(s5=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s8(e,t){return(s8=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s9(e){var t="function"==typeof Map?new Map:void 0;return(s9=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return s4(e,arguments,s5(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s8(n,e)})(e)}function s7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s7=function(){return!!e})()}new ir,new iy,new ii,new iA,new ic,new ib,new iE,new ip,new oz;var ue=rB.translationRolesApi.replace(/\/+$/,""),ut=function(e){function t(e,n){var r,o,a,i,s,u;return s3(this,t),o=t,a=[n],o=s5(o),s6((i=this,r=(s=s7()?Reflect.construct(o,a||[],s5(this).constructor):o.apply(this,a))&&("object"==((u=s)&&"undefined"!=typeof Symbol&&u.constructor===Symbol?"symbol":typeof u)||"function"==typeof s)?s:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i)),"field",void 0),s6(r,"name",void 0),r.field=e,r.name="RequiredError",r}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s8(e,t)}(t,e),t}(s9(Error));function un(e){return(un=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ur(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};if(null==t)throw new ut("gameId","Required parameter gameId was null or undefined when calling v1GameLocalizationRolesGamesGameIdCurrentUserRolesGet.");var o="/v1/game-localization-roles/games/{gameId}/current-user/roles".replace("{gameId}",encodeURIComponent(String(t))),a=I.parse(o,!0);e&&(n=e.baseOptions);var i=ur({method:"GET"},n,r);return a.query=ur({},a.query,{},r.query),delete a.search,i.headers=ur({},{},r.headers),{url:I.format(a),options:i}},v1GameLocalizationRolesGamesGameIdPatch:function(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==t)throw new ut("gameId","Required parameter gameId was null or undefined when calling v1GameLocalizationRolesGamesGameIdPatch.");if(null==n)throw new ut("request","Required parameter request was null or undefined when calling v1GameLocalizationRolesGamesGameIdPatch.");var a="/v1/game-localization-roles/games/{gameId}".replace("{gameId}",encodeURIComponent(String(t))),i=I.parse(a,!0);e&&(r=e.baseOptions);var s=ur({method:"PATCH"},r,o),u={};return u["Content-Type"]="application/json",i.query=ur({},i.query,{},o.query),delete i.search,s.headers=ur({},u,o.headers),s.data=JSON.stringify(void 0!==n?n:{}),{url:I.format(i),options:s}},v1GameLocalizationRolesGamesGameIdRolesRoleAssigneesGet:function(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==t)throw new ut("gameId","Required parameter gameId was null or undefined when calling v1GameLocalizationRolesGamesGameIdRolesRoleAssigneesGet.");if(null==n)throw new ut("role","Required parameter role was null or undefined when calling v1GameLocalizationRolesGamesGameIdRolesRoleAssigneesGet.");var a="/v1/game-localization-roles/games/{gameId}/roles/{role}/assignees".replace("{gameId}",encodeURIComponent(String(t))).replace("{role}",encodeURIComponent(String(n))),i=I.parse(a,!0);e&&(r=e.baseOptions);var s=ur({method:"GET"},r,o);return i.query=ur({},i.query,{},o.query),delete i.search,s.headers=ur({},{},o.headers),{url:I.format(i),options:s}},v1GameLocalizationRolesRolesRoleCurrentUserGet:function(t,n,r,o){var a,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(null==t)throw new ut("role","Required parameter role was null or undefined when calling v1GameLocalizationRolesRolesRoleCurrentUserGet.");var s="/v1/game-localization-roles/roles/{role}/current-user".replace("{role}",encodeURIComponent(String(t))),u=I.parse(s,!0);e&&(a=e.baseOptions);var c=ur({method:"GET"},a,i),l={};return void 0!==n&&(l.exclusiveStartKey=n),void 0!==r&&(l.pageSize=r),void 0!==o&&o>0&&(l.groupId=o),u.query=ur({},u.query,l,i.query),delete u.search,c.headers=ur({},{},i.headers),{url:I.format(u),options:c}}}},uu=function(e){return{v1GameLocalizationRolesGamesGameIdCurrentUserRolesGet:function(t,n){var r=us(e).v1GameLocalizationRolesGamesGameIdCurrentUserRolesGet(t,n);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue,n=uo(ur({},r.options),{url:t+r.url});return e.request(n)}},v1GameLocalizationRolesGamesGameIdPatch:function(t,n,r){var o=us(e).v1GameLocalizationRolesGamesGameIdPatch(t,n,r);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue,n=uo(ur({},o.options),{url:t+o.url});return e.request(n)}},v1GameLocalizationRolesGamesGameIdRolesRoleAssigneesGet:function(t,n,r){var o=us(e).v1GameLocalizationRolesGamesGameIdRolesRoleAssigneesGet(t,n,r);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue,n=uo(ur({},o.options),{url:t+o.url});return e.request(n)}},v1GameLocalizationRolesRolesRoleCurrentUserGet:function(t,n,r,o,a){var i=us(e).v1GameLocalizationRolesRolesRoleCurrentUserGet(t,n,r,o,a);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rp(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue,n=uo(ur({},i.options),{url:t+i.url});return e.request(n)}}}},uc=(new(function(e){var t;function n(){var e,t,r,o,a;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n),e=n,t=arguments,e=un(e),r=this,(o=ui()?Reflect.construct(e,t||[],un(this).constructor):e.apply(this,t))&&("object"==((a=o)&&"undefined"!=typeof Symbol&&a.constructor===Symbol?"symbol":typeof a)||"function"==typeof o)?o:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ua(e,t)}(n,e),t=[{key:"v1GameLocalizationRolesGamesGameIdCurrentUserRolesGet",value:function(e,t){return uu(this.configuration).v1GameLocalizationRolesGamesGameIdCurrentUserRolesGet(e,t)(this.axios,this.basePath)}},{key:"v1GameLocalizationRolesGamesGameIdPatch",value:function(e,t,n){return uu(this.configuration).v1GameLocalizationRolesGamesGameIdPatch(e,t,n)(this.axios,this.basePath)}},{key:"v1GameLocalizationRolesGamesGameIdRolesRoleAssigneesGet",value:function(e,t,n){return uu(this.configuration).v1GameLocalizationRolesGamesGameIdRolesRoleAssigneesGet(e,t,n)(this.axios,this.basePath)}},{key:"v1GameLocalizationRolesRolesRoleCurrentUserGet",value:function(e,t,n,r,o){return uu(this.configuration).v1GameLocalizationRolesRolesRoleCurrentUserGet(e,t,n,r,o)(this.axios,this.basePath)}}],function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:ue,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rp();s3(this,e),s6(this,"basePath",void 0),s6(this,"axios",void 0),s6(this,"configuration",void 0),this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)})),{useCache:!1,expirationWindowMS:3e4}),ul=((v={}).processFailure="processFailure",v.unretriableFailure="unretriableFailure",v.maxAttemptsReached="maxAttemptsReached",v),uf=function(e,t){return function(n){return Math.min(t,Math.pow(2,n-1)*e)}};function ud(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var up=function(){var e;function t(e,n){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,t),ud(this,"store",new Map),ud(this,"useCache",void 0),ud(this,"expirationWindowMS",void 0),ud(this,"storeKeyPrefix",void 0),this.useCache=null!=e&&e,this.expirationWindowMS=null!=n?n:3e4,this.storeKeyPrefix="".concat("CacheStore:BatchRequestProcessor:",":")}return e=[{key:"getCacheKey",value:function(e){return"".concat(this.storeKeyPrefix).concat(e)}},{key:"has",value:function(e,t){var n,r,o=this.getCacheKey(e);return(null!==(n=null==t?void 0:t.useCache)&&void 0!==n?n:this.useCache)&&localStorage?!!sU.fetchNonExpiredCachedData(o,null!==(r=null==t?void 0:t.expirationWindowMS)&&void 0!==r?r:this.expirationWindowMS):this.store.has(o)}},{key:"set",value:function(e,t,n){var r,o=this.getCacheKey(e);(null!==(r=null==n?void 0:n.useCache)&&void 0!==r?r:this.useCache)&&localStorage&&sU.saveDataByTimeStamp(o,t),this.store.set(o,t)}},{key:"get",value:function(e,t){var n,r=t.useCache,o=t.expirationWindowMS,a=this.getCacheKey(e);return(r||this.useCache)&&localStorage?null===(n=sU.fetchNonExpiredCachedData(a,null!=o?o:this.expirationWindowMS))||void 0===n?void 0:n.data:this.store.get(a)}},{key:"delete",value:function(e){var t=this.getCacheKey(e);localStorage&&sU.removeLocalStorage(t),this.store.delete(t)}},{key:"clear",value:function(){if(this.store.clear(),localStorage){for(var e=[],t=0;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?Math.min(o,i):i,++e.retryAttempts<=r.maxRetryAttempts?(e.queueAfter=a+i,r.requestQueue.unshift(e)):e.reject(ul.maxAttemptsReached)}else console.debug(t,e),e.reject(t)}),this.processEndTime=Date.now(),this.debug&&console.debug("".concat(this.processorId,": process queue ended"),{duration:null!=this.processStartTime?this.processEndTime-this.processStartTime:void 0,requestQueue:this.requestQueue,minimumCooldown:o,processBatchWaitTime:this.processBatchWaitTime}),o>0&&setTimeout(function(){r.processQueue()},o+(null!==(n=this.processBatchWaitTime)&&void 0!==n?n:0)),this.concurrentRequestCount+=1,this.processQueue()}},{key:"processQueue",value:function(){var e,t=this;if(0!==this.concurrentRequestCount&&!this.isQueueActive){this.processStartTime=Date.now();var n=[],r=new Map,o=[],a=new Date().getTime();for(this.isQueueActive=!0;n.length0;){var i=this.requestQueue.shift();if(i.queueAfter>a)r.set(i.key,i),o.push(i);else if(this.completeItems.has(i.key,i.cacheProperties)){var s=new Date().getTime();i.resolve(uy({},this.completeItems.get(i.key,i.cacheProperties),{performance:{duration:s-i.startTime.getTime()}}))}else r.has(i.key)?o.push(i):(r.set(i.key,i),n.push(i))}(e=this.requestQueue).push.apply(e,function(e){if(Array.isArray(e))return uh(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||um(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),this.isQueueActive=!1,!(n.length<=0)&&(this.concurrentRequestCount-=1,this.processQueue(),this.debug&&console.debug("".concat(this.processorId,": process queue start"),{timeSinceLastStart:this.processEndTime?this.processStartTime-this.processEndTime:0,startTime:this.processStartTime,requestQueue:this.requestQueue,batch:n.map(function(e){return e.key})}),this.itemsProcessor(n).then(function(e){Object.entries(e).forEach(function(e){var n=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,s=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(a.push(n.value),a.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(s)throw r}}return a}}(e,2)||um(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=n[0],a=n[1],i=r.get(o);t.saveCompleteItem(o,a,null==i?void 0:i.cacheProperties)}),t.handleBatchResult(n,ul.processFailure)},function(e){t.handleBatchResult(n,e)}))}}},{key:"saveCompleteItem",value:function(e,t,n){var r=this;this.completeItems.set(e,t,null!=n?n:this.cacheProperties),this.getItemExpiration&&setTimeout(function(){r.completeItems.delete(e)},this.getItemExpiration(e))}},{key:"queueItem",value:function(e,t,n){var r=this;return new Promise(function(o,a){var i;r.requestQueue.push({key:null!=t?t:r.itemsSerializer(e),itemId:e,data:e,retryAttempts:0,queueAfter:0,startTime:new Date,cacheProperties:null!==(i=null!=n?n:r.cacheProperties)&&void 0!==i?i:{},resolve:o,reject:a}),setTimeout(function(){r.processQueue()},r.processBatchWaitTime)})}},{key:"invalidateItem",value:function(e,t){var n=null!=t?t:this.itemsSerializer(e);this.completeItems.delete(n)}},{key:"clearCache",value:function(){this.completeItems.clear()}}],function(e,t){for(var n=0;n0){var r=!0,o=!1,a=void 0;try{for(var i,s=t.userPresences[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var u=i.value;e[u.userId].presence=u}}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}}return e},uk=function(e,t){var n="".concat(u_,"/v1/users/").concat(t,"/").concat(e);return e===uO.Requests&&(n="".concat(u_,"/v1/my/friends/requests")),{url:n,retryable:!0,withCredentials:!0}},uA=function(e){var t=e.cursor,n=e.sortOrder,r=e.userSort,o=e.limit,a=e.fetchMutualFriends,i={};return t&&Object.assign(i,{cursor:t}),n&&Object.assign(i,{sortOrder:n}),r&&Object.assign(i,{userSort:r}),o&&Object.assign(i,{limit:o}),a&&Object.assign(i,{fetchMutualFriends:a}),i},ux=new ub().createRequestProcessor(function(e){var t=e.map(function(e){return e.data.userId});return rN({url:"".concat(uS,"/v1/users"),retryable:!0,withCredentials:!0},{userIds:t,excludeBannedUsers:!0}).then(function(e){var t=e.data.data,n={},r=!0,o=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var u=i.value;n[u.id]=u}}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n})},function(e){return e.userId.toString()},{batchSize:100,processBatchWaitTime:1e3});function uR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},a.forEach(["delete","get","head"],function(e){c.headers[e]={}}),a.forEach(["post","put","patch"],function(e){c.headers[e]=a.merge(s)}),e.exports=c},3737:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=Array(arguments.length),r=0;r=0)&&("set-cookie"===t?i[t]=(i[t]?i[t]:[]).concat([n]):i[t]=i[t]?i[t]+", "+n:n)}),i}},7782:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1197:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(3737),a=n(3364),i=Object.prototype.toString;function s(e){return"[object Array]"===i.call(e)}function u(e){return null!==e&&"object"===r(e)}function c(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!=e){if("object"!==r(e)&&(e=[e]),s(e))for(var n=0,o=e.length;n-1?o(n):n}},7121:function(e,t,n){"use strict";var r=n(9683),o=n(1599),a=n(6294),i=n(877),s=o("%Function.prototype.apply%"),u=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(u,s),l=n(4235),f=o("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new i("a function is required");var t=c(r,u,arguments);return a(t,1+f(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(r,s,arguments)};l?l(e.exports,"apply",{value:d}):e.exports.apply=d},3343:function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n="%[a-f0-9]{2}",r=RegExp("("+n+")|([^%]+?)","gi"),o=RegExp("("+n+")+","gi");e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected `encodedURI` to be of type `string`, got `"+t(e)+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=o.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var a=function(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(r)||[],n=1;n3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,f=arguments.length>6&&arguments[6],d=!!s&&s(e,t);if(o)o(e,t,{configurable:null===l&&d?d.configurable:!l,enumerable:null===u&&d?d.enumerable:!u,value:n,writable:null===c&&d?d.writable:!c});else if(!f&&(u||c||l))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=n}},4235:function(e,t,n){"use strict";var r=n(1599)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r},3942:function(e){"use strict";e.exports=EvalError},6909:function(e){"use strict";e.exports=Error},2547:function(e){"use strict";e.exports=RangeError},5235:function(e){"use strict";e.exports=ReferenceError},6033:function(e){"use strict";e.exports=SyntaxError},877:function(e){"use strict";e.exports=TypeError},5844:function(e){"use strict";e.exports=URIError},4491:function(e){"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),a=0;a1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===G(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=L(e),r=n.length>0?n[0]:"",o=N("%"+r+"%",t),a=o.name,i=o.value,s=!1,u=o.alias;u&&(r=u[0],x(n,A([0,1],u)));for(var f=1,d=!0;f=n.length){var m=h(i,p);i=(d=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:i[p]}else d=k(i,p),i=i[p];d&&!s&&(S[a]=i)}}return i}},8215:function(e,t,n){"use strict";var r=n(1599)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},99:function(e,t,n){"use strict";var r=n(4235),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},2836:function(e){"use strict";var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(t instanceof n)}},1341:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o="undefined"!=typeof Symbol&&Symbol,a=n(3979);e.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"===r(o("foo"))&&"symbol"===r(Symbol("bar"))&&a()}},3979:function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===t(Symbol.iterator))return!0;var e={},n=Symbol("test"),r=Object(n);if("string"==typeof n||"[object Symbol]"!==Object.prototype.toString.call(n)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(n in e[n]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,n);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},9442:function(e,t,n){"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,a=n(9683);e.exports=a.call(r,o)},3364:function(e){/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},8196:function(e,t,n){e.exports=n(7784)},7784:function(e,t,n){var r,o;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e=n.nmd(e),r=window,o=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&"object"==a(e)&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,(function(t){return e[t]}).bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e)for(var n in e)hasOwnProperty.call(e,n)&&t(e[n],n)},e.exports=t.default},function(e,t,n){"use strict";e.exports={Platform:n(29),ThriftTransport:n(34),thrift:n(35),crouton_thrift:n(36)}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0});var o=n(22);t.BinaryCarrier=o.default;var a=n(23);t.Tags=a;var i=n(8),s=n(13);t.Reference=s.default;var u=n(4);t.Span=u.default;var c=n(10);t.SpanContext=c.default;var l=n(9);t.Tracer=l.Tracer;var f=n(24);t.MockTracer=f.MockTracer,r(n(27)),r(n(12)),r(n(11)),i.initialize()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toString=function(e){return""+e},t.toNumber=function(e){return Number(e)},t.toBoolean=function(e){return!!e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),o=function(){function e(){}return e.prototype.context=function(){return this._context()},e.prototype.tracer=function(){return this._tracer()},e.prototype.setOperationName=function(e){return this._setOperationName(e),this},e.prototype.setBaggageItem=function(e,t){return this._setBaggageItem(e,t),this},e.prototype.getBaggageItem=function(e){return this._getBaggageItem(e)},e.prototype.setTag=function(e,t){var n;return this._addTags(((n={})[e]=t,n)),this},e.prototype.addTags=function(e){return this._addTags(e),this},e.prototype.log=function(e,t){return this._log(e,t),this},e.prototype.logEvent=function(e,t){return this._log({event:e,payload:t})},e.prototype.finish=function(e){this._finish(e)},e.prototype._context=function(){return r.spanContext},e.prototype._tracer=function(){return r.tracer},e.prototype._setOperationName=function(e){},e.prototype._setBaggageItem=function(e,t){},e.prototype._getBaggageItem=function(e){},e.prototype._addTags=function(e){},e.prototype._log=function(e,t){},e.prototype._finish=function(e){},e}();t.Span=o,t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n1){var i=e+"="+encodeURIComponent(t)+(n?"; expires="+new Date(+new Date+1e3*n).toUTCString():"")+(r?"; path="+r:"")+(o?"; domain="+o:"")+(a?"; secure":"");return document.cookie=i,i}return decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}:function(){return null},isBrowser:r}},function(e,t,n){"use strict";var r,o;r={},(o={}).KeyValue=function(e){if(this.Key=null,this.Value=null,e){if(void 0===e.Key)throw new r.TProtocolException(r.TProtocolExceptionType.UNKNOWN,"Required field Key is unset!");if(this.Key=e.Key,void 0===e.Value)throw new r.TProtocolException(r.TProtocolExceptionType.UNKNOWN,"Required field Value is unset!");this.Value=e.Value}},o.KeyValue.prototype={},o.KeyValue.prototype.read=!1,o.KeyValue.prototype.write=!1,o.NamedCounter=function(e){if(this.Name=null,this.Value=null,e){if(void 0===e.Name)throw new r.TProtocolException(r.TProtocolExceptionType.UNKNOWN,"Required field Name is unset!");if(this.Name=e.Name,void 0===e.Value)throw new r.TProtocolException(r.TProtocolExceptionType.UNKNOWN,"Required field Value is unset!");this.Value=e.Value}},o.NamedCounter.prototype={},o.NamedCounter.prototype.read=!1,o.NamedCounter.prototype.write=!1,o.Runtime=function(e){this.guid=null,this.start_micros=null,this.group_name=null,this.attrs=null,e&&(void 0!==e.guid&&(this.guid=e.guid),void 0!==e.start_micros&&(this.start_micros=e.start_micros),void 0!==e.group_name&&(this.group_name=e.group_name),void 0!==e.attrs&&(this.attrs=e.attrs))},o.Runtime.prototype={},o.Runtime.prototype.read=!1,o.Runtime.prototype.write=!1,o.LogRecord=function(e){this.timestamp_micros=null,this.fields=null,this.runtime_guid=null,this.span_guid=null,this.stable_name=null,this.message=null,this.level=null,this.thread_id=null,this.filename=null,this.line_number=null,this.stack_frames=null,this.payload_json=null,this.error_flag=null,e&&(void 0!==e.timestamp_micros&&(this.timestamp_micros=e.timestamp_micros),void 0!==e.fields&&(this.fields=e.fields),void 0!==e.runtime_guid&&(this.runtime_guid=e.runtime_guid),void 0!==e.span_guid&&(this.span_guid=e.span_guid),void 0!==e.stable_name&&(this.stable_name=e.stable_name),void 0!==e.message&&(this.message=e.message),void 0!==e.level&&(this.level=e.level),void 0!==e.thread_id&&(this.thread_id=e.thread_id),void 0!==e.filename&&(this.filename=e.filename),void 0!==e.line_number&&(this.line_number=e.line_number),void 0!==e.stack_frames&&(this.stack_frames=e.stack_frames),void 0!==e.payload_json&&(this.payload_json=e.payload_json),void 0!==e.error_flag&&(this.error_flag=e.error_flag))},o.LogRecord.prototype={},o.LogRecord.prototype.read=!1,o.LogRecord.prototype.write=!1,o.TraceJoinId=function(e){if(this.TraceKey=null,this.Value=null,e){if(void 0===e.TraceKey)throw new r.TProtocolException(r.TProtocolExceptionType.UNKNOWN,"Required field TraceKey is unset!");if(this.TraceKey=e.TraceKey,void 0===e.Value)throw new r.TProtocolException(r.TProtocolExceptionType.UNKNOWN,"Required field Value is unset!");this.Value=e.Value}},o.TraceJoinId.prototype={},o.TraceJoinId.prototype.read=!1,o.TraceJoinId.prototype.write=!1,o.SpanRecord=function(e){this.span_guid=null,this.trace_guid=null,this.runtime_guid=null,this.span_name=null,this.join_ids=null,this.oldest_micros=null,this.youngest_micros=null,this.attributes=null,this.error_flag=null,this.log_records=null,e&&(void 0!==e.span_guid&&(this.span_guid=e.span_guid),void 0!==e.trace_guid&&(this.trace_guid=e.trace_guid),void 0!==e.runtime_guid&&(this.runtime_guid=e.runtime_guid),void 0!==e.span_name&&(this.span_name=e.span_name),void 0!==e.join_ids&&(this.join_ids=e.join_ids),void 0!==e.oldest_micros&&(this.oldest_micros=e.oldest_micros),void 0!==e.youngest_micros&&(this.youngest_micros=e.youngest_micros),void 0!==e.attributes&&(this.attributes=e.attributes),void 0!==e.error_flag&&(this.error_flag=e.error_flag),void 0!==e.log_records&&(this.log_records=e.log_records))},o.SpanRecord.prototype={},o.SpanRecord.prototype.read=!1,o.SpanRecord.prototype.write=!1,o.Auth=function(e){this.access_token=null,e&&void 0!==e.access_token&&(this.access_token=e.access_token)},o.Auth.prototype={},o.Auth.prototype.read=!1,o.Auth.prototype.write=!1,o.Timing=function(e){this.receive_micros=null,this.transmit_micros=null,e&&(void 0!==e.receive_micros&&(this.receive_micros=e.receive_micros),void 0!==e.transmit_micros&&(this.transmit_micros=e.transmit_micros))},o.Timing.prototype={},o.Timing.prototype.read=!1,o.Timing.prototype.write=!1,o.SampleCount=function(e){this.oldest_micros=null,this.youngest_micros=null,this.count=null,e&&(void 0!==e.oldest_micros&&(this.oldest_micros=e.oldest_micros),void 0!==e.youngest_micros&&(this.youngest_micros=e.youngest_micros),void 0!==e.count&&(this.count=e.count))},o.SampleCount.prototype={},o.SampleCount.prototype.read=!1,o.SampleCount.prototype.write=!1,o.MetricsSample=function(e){if(this.name=null,this.int64_value=null,this.double_value=null,e){if(void 0===e.name)throw new r.TProtocolException(r.TProtocolExceptionType.UNKNOWN,"Required field name is unset!");this.name=e.name,void 0!==e.int64_value&&(this.int64_value=e.int64_value),void 0!==e.double_value&&(this.double_value=e.double_value)}},o.MetricsSample.prototype={},o.MetricsSample.prototype.read=!1,o.MetricsSample.prototype.write=!1,o.Metrics=function(e){this.counts=null,this.gauges=null,e&&(void 0!==e.counts&&(this.counts=e.counts),void 0!==e.gauges&&(this.gauges=e.gauges))},o.Metrics.prototype={},o.Metrics.prototype.read=!1,o.Metrics.prototype.write=!1,o.ReportRequest=function(e){this.runtime=null,this.span_records=null,this.log_records=null,this.timestamp_offset_micros=null,this.oldest_micros=null,this.youngest_micros=null,this.counters=null,this.internal_logs=null,this.internal_metrics=null,e&&(void 0!==e.runtime&&(this.runtime=e.runtime),void 0!==e.span_records&&(this.span_records=e.span_records),void 0!==e.log_records&&(this.log_records=e.log_records),void 0!==e.timestamp_offset_micros&&(this.timestamp_offset_micros=e.timestamp_offset_micros),void 0!==e.oldest_micros&&(this.oldest_micros=e.oldest_micros),void 0!==e.youngest_micros&&(this.youngest_micros=e.youngest_micros),void 0!==e.counters&&(this.counters=e.counters),void 0!==e.internal_logs&&(this.internal_logs=e.internal_logs),void 0!==e.internal_metrics&&(this.internal_metrics=e.internal_metrics))},o.ReportRequest.prototype={},o.ReportRequest.prototype.read=!1,o.ReportRequest.prototype.write=!1,o.Command=function(e){this.disable=null,e&&void 0!==e.disable&&(this.disable=e.disable)},o.Command.prototype={},o.Command.prototype.read=!1,o.Command.prototype.write=!1,o.ReportResponse=function(e){this.commands=null,this.timing=null,e&&(void 0!==e.commands&&(this.commands=e.commands),void 0!==e.timing&&(this.timing=e.timing))},o.ReportResponse.prototype={},o.ReportResponse.prototype.read=!1,o.ReportResponse.prototype.write=!1,e.exports.crouton_thrift=o,e.exports.Thrift={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n=3){var o="",i=0;(0,l.default)(n,function(e,t){o+=" "+JSON.stringify(t)+": "+JSON.stringify(e.newValue)+"\n",i++}),i>0&&this._debug("Options modified:\n"+o)}this.emit("options",n,this._options,this)}},{key:"_setOptionInternal",value:function(e,t,n,r){var o=r.name,i=n[o],s=a(i);if(void 0!==i){switch(r.type){case"any":break;case"bool":if(!0!==i&&!1!==i)return void this._error("Invalid boolean option '"+o+"' '"+i+"'");break;case"function":if("function"!=typeof i)return void this._error("Invalid function option '"+o+"' '"+i+"'");break;case"int":if("number"!==s||Math.floor(i)!==i)return void this._error("Invalid int option '"+o+"' '"+i+"'");if(void 0!==r.min&&void 0!==r.max&&!(i>=r.min&&i<=r.max))return void this._error("Option '"+o+"' out of range '"+i+"' is not between "+r.min+" and "+r.max);break;case"string":switch(s){case"string":break;case"number":i=w.toString(i);break;default:return void this._error("Invalid string option "+o+" "+i)}break;case"array":if("[object Array]"!==Object.prototype.toString.call(i))return void this._error("Invalid type for array option "+o+": found '"+s+"'");break;default:return void this._error("Unknown option type '"+r.type+"'")}var u=this._options[o];if(void 0===u)throw Error("Attempt to set unknown option "+o);"object"===s||u!==i?(e[o]={oldValue:u,newValue:i},this._options[o]=i):t[o]=!0}}},{key:"_initReportingDataIfNeeded",value:function(e){var t=this;if(null===this._auth){this._runtimeGUID=this._platform.runtimeGUID(this._options.component_name),this._auth=new d.default(this._options.access_token);var n={};(0,l.default)(this._options.tags,function(e,r){"string"==typeof e?n[r]=e:t._error("Tracer tag value is not a string: key="+r)}),n["lightstep.tracer_version"]=T.version;var r=this._platform.tracerTags();(0,l.default)(r,function(e,t){n[t]=e}),this._runtime=new p.default(this._runtimeGUID,this._startMicros,this._options.component_name,n),this._info("Initializing reporting data",{component_name:this._options.component_name,access_token:this._auth.getAccessToken()}),this.emit("reporting_initialized")}else{if(!this._runtime)return this._error("Inconsistent state: auth initialized without runtime.");if(e.access_token)throw Error("Cannot change access_token after it has been set.");if(e.component_name)throw Error("Cannot change component_name after it has been set.");if(e.collector_host)throw Error("Cannot change collector_host after the connection is established");if(e.collector_port)throw Error("Cannot change collector_port after the connection is established");if(e.collector_path)throw Error("Cannot change collector_path after the connection is established");if(e.collector_encryption)throw Error("Cannot change collector_encryption after the connection is established")}}},{key:"getLogFieldKeyHardLimit",value:function(){return this._options.log_field_key_hard_limit}},{key:"getLogFieldValueHardLimit",value:function(){return this._options.log_field_value_hard_limit}},{key:"addPlatformPlugins",value:function(e){var t=this,n=this._platform.plugins(e);(0,l.default)(n,function(e){t.addPlugin(e)})}},{key:"addPlugin",value:function(e){var t=e.name();this._plugins[t]||(this._plugins[t]=e,e.addOptions(this))}},{key:"startPlugins",value:function(){var e=this;(0,l.default)(this._plugins,function(t,n){e._plugins[n].start(e)})}},{key:"addActiveRootSpan",value:function(e){this._activeRootSpanSet[e._guid]=e,this._setActiveRootSpanToYoungest()}},{key:"removeActiveRootSpan",value:function(e){delete this._activeRootSpanSet[e._guid],this._setActiveRootSpanToYoungest()}},{key:"_setActiveRootSpanToYoungest",value:function(){var e=this;this._activeRootSpan=null,(0,l.default)(this._activeRootSpanSet,function(t){(!e._activeRootSpan||t._beginMicros>e._activeRootSpan._beginMicros)&&(e._activeRootSpan=t)})}},{key:"_objectToUint8Array",value:function(e){var t=void 0;try{t=encodeURIComponent(JSON.stringify(e))}catch(e){return this._error("Could not binary encode carrier data."),null}for(var n=new ArrayBuffer(t.length),r=new Uint8Array(n),o=0;o=0&&a<=255))return this._error("Unexpected character code"),null;r[o]=a}return r}},{key:"_uint8ArrayToObject",value:function(e){if(!e)return this._error("Array is null"),null;for(var t="",n=0;n0||this._internalLogs.length>0)return!1;var e=!0;return(0,l.default)(this._counters,function(t){t>0&&(e=!1)}),e}},{key:"_addSpanRecord",value:function(e){this._internalAddSpanRecord(e),this.emit("span_added",e)}},{key:"_internalAddSpanRecord",value:function(e){if(e){if(this._spanRecords.length>=this._options.max_span_records){var t=Math.floor(this._spanRecords.length*Math.random());this._spanRecords[t]=e,this._counters["spans.dropped"]++}else this._spanRecords.push(e)}else this._error("Attempt to add null record to buffer")}},{key:"_restoreRecords",value:function(e,t,n){var r=this;(0,l.default)(e,function(e){r._internalAddSpanRecord(e)});var o=this._internalLogs;this._internalLogs=[];var a=t.concat(o);(0,l.default)(a,function(e){r._pushInternalLog(e)}),(0,l.default)(n,function(e,t){t in r._counters?r._counters[t]+=e:r._error("Bad counter name: "+t)})}},{key:"_clearSpanRecordsIfMaxErrors",value:function(){var e=this.options().clear_span_buffer_consecutive_errors;if(!(null===e||this._reportErrorStreak0||(e._info("Final flush before exit."),e._flushReport(!1,!0,function(t){t&&e._warn("Final report before exit failed",{error:t,unflushed_spans:e._spanRecords.length,buffer_youngest_micros:e._reportYoungestMicros})}))})}}},{key:"_startReportingLoop",value:function(){var e=this;if(this._options.disabled)this._info("Not starting reporting loop: instrumentation is disabled.");else if(this._options.disable_reporting_loop)this._info("Not starting reporting loop: reporting loop is disabled.");else if(null!==this._auth){if(this._reportingLoopActive)this._info("Reporting loop already started!");else{this._info("Starting reporting loop:",this._runtime),this._reportingLoopActive=!0;var t=0;this._platform.onBeforeExit(function(){t++>0||e._stopReportingLoop()});var n=function(){e._enqueueNextReport(function(t){e._reportingLoopActive&&n()})},r=Math.floor(Math.random()*this._options.delay_initial_report_millis);P.detachedTimeout(function(){n()},r)}}}},{key:"_stopReportingLoop",value:function(){this._debug("Stopping reporting loop"),this._reportingLoopActive=!1,clearTimeout(this._reportTimer),this._reportTimer=null}},{key:"_enqueueNextReport",value:function(e){var t=this;if(!this._reportTimer){var n=this._options.max_reporting_interval_millis;0===this._reportErrorStreak&&this._useClockState&&!this._clockState.isReady()&&(n=Math.min(S.CLOCK_STATE_REFRESH_INTERVAL_MS,n));var r=Math.floor(Math.max(0,(.5*Math.random()-.25+1)*((1+Math.min(7,Math.max(0,this._reportErrorStreak)))*n)));this._debug("Delaying next flush for "+r+"ms"),this._reportTimer=P.detachedTimeout(function(){t._reportTimer=null,t._flushReport(!1,!1,e)},r)}}},{key:"_flushReport",value:function(e,t,n){var r=this;n=n||function(e){};var o=this._clockState.isReady(),a=this._clockState.offsetMicros();this._debug("time correction state",{offset_micros:a,active_samples:this._clockState.activeSampleCount(),ready:o});var i=this._spanRecords,s=this._counters,u=this._internalLogs;if(!this._useClockState||e||o||t){if(this._buffersAreEmpty())return this._debug("Skipping empty report"),n(null);this._clearBuffers(),this._debug("Flushing report ("+i.length+" spans)")}else this._debug("Flushing empty report to prime clock state"),i=[],s={},u=[];this._transport.ensureConnection(this._options),console.assert(null!==this._runtimeGUID,"No runtime GUID for Tracer");var c=this._useClockState?a:0,l=this._platform.nowMicros(),f=new h.default(this._runtime,this._reportYoungestMicros,l,i,u,s,c);this.emit("prereport",f);var d,p=this._platform.nowMicros();this._options.meta_event_reporting&&!this._first_report_has_run&&(this._first_report_has_run=!0,this.startSpan(S.LS_META_TRACER_CREATE,{tags:(g(d={},S.LS_META_EVENT_KEY,!0),g(d,S.LS_META_TRACER_GUID_KEY,this._runtimeGUID),d)}).finish()),this._transport.report(t,this._auth,f,function(e,o){var a=r._platform.nowMicros(),i=(l-f.oldest_micros)/1e6;if(e){r._reportErrorStreak++;var s=void 0;s=e.message?""+e.message:""+e,r._warn("Error in report: "+s,{last_report_seconds_ago:i}),r._restoreRecords(f.getSpanRecords(),f.getInternalLogs(),f.getCounters()),r._counters["reports.errors.send"]++,r._clearSpanRecordsIfMaxErrors(),r.emit("report_error",e,{error:e,streak:r._reportErrorStreak,detached:t})}else r.verbosity()>=4&&r._debug("Report flushed for last "+i+" seconds",{spans_reported:f.getSpanRecords().length}),r._reportErrorStreak=0,r._reportYoungestMicros=l,o?(o.timing&&o.timing.receive_micros&&o.timing.transmit_micros?r._clockState.addSample(p,o.timing.receive_micros,o.timing.transmit_micros,a):o.receiveTimestamp&&o.transmitTimestamp?r._clockState.addSample(p,1e6*o.receiveTimestamp.seconds+o.receiveTimestamp.nanos/1e3,1e6*o.transmitTimestamp.seconds+o.transmitTimestamp.nanos/1e3,a):r._useClockState=!1,o.errors&&o.errors.length>0?r._warn("Errors in report",o.errors):o.errorsList&&o.errorsList.length>0&&r._warn("Errors in report",o.errorsList),o.commandsList&&o.commandsList.length>0&&o.commandsList[0].devMode&&!0!==r.options().disable_meta_event_reporting&&(r.options().meta_event_reporting=!0)):r._useClockState=!1,r.emit("report",f,o);return n(e)})}},{key:"stats",value:function(){return{counters:this._counters}}},{key:"_debug",value:function(e,t){4>this.verbosity()||this._options.logger("debug",e,t)}},{key:"_info",value:function(e,t){3>this.verbosity()||this._options.logger("info",e,t)}},{key:"_warn",value:function(e,t){this._counters["internal.warnings"]++,3>this.verbosity()||this._options.logger("warn",e,t)}},{key:"_error",value:function(e,t){this._counters["internal.errors"]++;var n=this.log().level(S.LOG_ERROR).message(e).payload(t).record();this._pushInternalLog(n);var r=this.verbosity();if(0!==r){var o=Date.now();if(1===r){if(o0){var a=this._skippedVisibleErrors+" errors masked since last logged error. Increase 'verbosity' option to see all errors.";this._options.logger("error",a,t)}}this._options.logger("error",e,t),this._lastVisibleErrorMillis=o,this._skippedVisibleErrors=0}}},{key:"_printToConsole",value:function(e,t,n){var r="log",o="[LightStep:INFO] "+t;"debug"===e?(r="log",o="[LightStep:DEBUG] "+t):"info"===e?(r="log",o="[LightStep:INFO] "+t):"warn"===e?(r="warn",o="[LightStep:WARN] "+t):"error"===e&&(r="error",o="[LightStep:ERROR] "+t),this._options.silent||(void 0!==n?console[r](o,n):console[r](o))}},{key:"_pushInternalLog",value:function(e){e&&(this._internalLogs.length>=20?(e.message="MAX_INTERNAL_LOGS limit hit. Last error: "+e.message,this._internalLogs[this._internalLogs.length-1]=e):this._internalLogs.push(e))}}]),t}();t.default=k,e.exports=t.default},function(e,t,n){"use strict";var r="function"!=typeof Object.create&&"~";function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){}a.prototype._events=void 0,a.prototype.listeners=function(e,t){var n=this._events&&this._events[r?r+e:e];if(t)return!!n;if(!n)return[];if(n.fn)return[n.fn];for(var o=0,a=n.length,i=Array(a);o0&&this._endMicros>0?Math.floor((this._beginMicros+this._endMicros)/2):this._tracerImp._platform.nowMicros(),s.LIGHTSTEP_APP_URL_PREFIX+"/"+encodeURIComponent(this._tracerImp.options().access_token)+"/trace?span_guid="+encodeURIComponent(this.guid())+"&at_micros="+e}},{key:"getTags",value:function(){return this._tags}},{key:"end",value:function(e){if(!this._ended){var t;this._ended=!0,void 0!==e&&this.setEndMicros(Math.floor(1e3*e)),0===this._endMicros&&this.setEndMicros(this._tracerImp._platform.nowMicros()),f.default.shouldSendMetaSpan(this._tracer().options(),this.getTags())&&this._tracerImp.startSpan(s.LS_META_SP_FINISH,{tags:(h(t={},s.LS_META_EVENT_KEY,!0),h(t,s.LS_META_TRACE_KEY,this.traceGUID()),h(t,s.LS_META_SPAN_KEY,this.guid()),t)}).finish(),this._tracerImp._addSpanRecord(this)}}},{key:"_toThrift",value:function(){var e=this,t=[];(0,u.default)(this._tags,function(e,n){t.push(new c.crouton_thrift.KeyValue({Key:i.toString(n),Value:i.toString(e)}))});var n=[];return(0,u.default)(this._log_records,function(t){var r=t.toThrift();e._tracerImp._counters["logs.keys.over_limit"]+=t.getNumKeysOverLimit(),e._tracerImp._counters["logs.values.over_limit"]+=t.getNumValuesOverLimit(),n.push(r)}),new c.crouton_thrift.SpanRecord({span_guid:this.guid(),trace_guid:this.traceGUID(),runtime_guid:this._tracerImp.guid(),span_name:this._operationName,oldest_micros:this._beginMicros,youngest_micros:this._endMicros,attributes:t,error_flag:this._errorFlag,log_records:n})}}]),t}();t.default=v,e.exports=t.default},function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;n0?e[e.length-1]:null}();e.exports={parseScriptElementOptions:r.isBrowser()?function(e,t){if(o){var n=o.dataset,r=n.access_token;"string"==typeof r&&r.length>0&&(e.access_token=r);var a=n.component_name;"string"==typeof a&&a.length>0&&(e.component_name=a);var i=n.collector_host;"string"==typeof i&&i.length>0&&(e.collector_host=i);var s=n.collector_port;s&&(e.collector_port=parseInt(s,10));var u=n.collector_path;"string"==typeof u&&u.length>0&&(e.collector_path=u);var c=n.collector_encryption;c&&(e.collector_encryption=c);var l=n.enable;"string"==typeof l&&("true"===l?e.enable=!0:"false"===l&&(e.enable=!1));var f=n.verbosity;"string"==typeof f&&(e.verbosity=parseInt(f,10));var d=n.init_global_tracer;"string"==typeof d&&("true"===d?t.init_global_tracer=!0:"false"===d&&(t.init_global_tracer=!1)),"string"==typeof n.xhr_instrumentation&&"true"===n.xhr_instrumentation&&(e.xhr_instrumentation=!0),"string"==typeof n.instrument_page_load&&"true"===n.instrument_page_load&&(e.instrument_page_load=!0)}}:function(e,t){},parseURLQueryOptions:r.isBrowser()?function(e){var t=function(e){var t={},n=window.location.href.indexOf("?");if(n<0)return t;var r=window.location.href.slice(n+1);r.indexOf("#")>=0&&(r=r.slice(0,r.indexOf("#")));for(var o=r.replace(/\+/,"%20").split("&"),a=0;a0?t:null}());var h=void 0===a||a;h&&this.addEventListener("readystatechange",function(){if(0===this.readyState)f.log({readyState:0,event:"unsent"});else if(1===this.readyState)f.log({readyState:1,event:"sending"});else if(2===this.readyState)f.log({readyState:2,event:"headers received",method:n,url:o,openPayload:p,headers:u(this)}),f.addTags(d);else if(3===this.readyState)f.log({readyState:3,event:"loading"});else if(4===this.readyState){var e=this.responseType;f.log({readyState:4,url:o,method:n,headers:u(this),status:this.status,statusText:this.statusText,responseType:e}),t.removeActiveRootSpan(f),f.finish()}else f.log({readyState:this.readyState})});var v=s.open.apply(this,arguments);return h||(t.removeActiveRootSpan(f),f.finish()),v}}},{key:"_instrumentSend",value:function(){var e=this,t=this._tracer;return function(){var n=this;if(!e._shouldTrace(t,this,this.__tracer_url))return s.send.apply(this,arguments);var r=this.__tracer_span;if(!r)return s.send.apply(this,arguments);var o=Array.prototype.slice.call(arguments),a=void 0;if(1===o.length){o[0]&&o[0].length&&(a=o[0].length);try{o=JSON.parse(o[0])}catch(e){}}var u=void 0===a?"":", data length="+a;if(r.log({event:"send",data_length:u}),e._shouldAddHeadersToRequest(t,this.__tracer_url)){var c={};t.inject(r.context(),i.FORMAT_HTTP_HEADERS,c),Object.keys(c).forEach(function(e){s.setRequestHeader.call(n,e,c[e])})}return s.send.apply(this,arguments)}}},{key:"_shouldTrace",value:function(e,t,n){if(!e||!n)return!1;var r=e.options();return!r.disabled&&!this._internalExclusions.some(function(e){return e.test(n)})&&!r.xhr_url_exclusion_patterns.some(function(e){return e.test(n)})&&!!r.xhr_url_inclusion_patterns.some(function(e){return e.test(n)})}},{key:"_shouldAddHeadersToRequest",value:function(e,t){if(!e||!t)return!1;var n=e.options();return!n.disabled&&!n.xhr_url_header_exclusion_patterns.some(function(e){return e.test(t)})&&!!n.xhr_url_header_inclusion_patterns.some(function(e){return e.test(t)})}}]),e}();e.exports=new c},function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;n0?t:null}()),e._shouldAddHeadersToRequest(t,a.url)){var d={};t.inject(c.context(),i.FORMAT_HTTP_HEADERS,d),Object.keys(d).forEach(function(e){a.headers.get(e)||a.headers.set(e,d[e])})}return c.log({event:"sending",method:a.method,url:a.url,openPayload:f}),c.addTags(f),s(a).then(function(e){return e.ok||c.addTags({error:!0}),c.log({method:a.method,headers:function(e){for(var t={},n=e.headers.entries(),r=0;rthis._logFieldKeyHardLimit&&(this._keysOverLimit+=1,t=t.substr(0,this._logFieldKeyHardLimit)+"..."),t}},{key:"getFieldValue",value:function(e){var t=null;if(e instanceof Error)try{t=JSON.stringify(e,Object.getOwnPropertyNames(e))}catch(e){t="Could not encode value. Exception: "+e}else if(e instanceof Object)try{t=JSON.stringify(e,null," ")}catch(e){t="Could not encode value. Exception: "+e}else t=s.toString(e);return t.length>this._logFieldValueHardLimit&&(this._valuesOverLimit+=1,t=t.substr(0,this._logFieldValueHardLimit)+"..."),t}}]),e}();t.default=u,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;nthis._nowMicros()-36e8&&(this._samples=n.samples.slice(-8)),this.update()}return o(e,[{key:"addSample",value:function(e,t,n,r){var o=Number.MAX_VALUE,a=0;e>0&&t>0&&n>0&&r>0&&(o=r-e-(n-t),a=(t-e+(n-r))/2),8===this._samples.length&&this._samples.shift(),this._samples.push({delayMicros:o,offsetMicros:a}),this._currentOffsetAge++,this._localStoreSet({timestamp_micros:this._nowMicros(),samples:this._samples}),this.update()}},{key:"update",value:function(){var e=Number.MAX_VALUE,t=0;if((0,a.default)(this._samples,function(n){n.delayMicros7||Math.abs(this._currentOffsetMicros-t)<3*n)&&(this._currentOffsetMicros=t,this._currentOffsetAge=0)}}},{key:"offsetMicros",value:function(){return Math.floor(this._currentOffsetMicros)}},{key:"isReady",value:function(){return this._samples.length>3}},{key:"activeSampleCount",value:function(){return this._samples.length}}]),e}();e.exports=i},function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;n=a.LOG_ERROR&&this.error(!0),this}},{key:"span",value:function(e){return void 0!==e&&(this._record.span_guid=i.toString(e)),this}},{key:"name",value:function(e){return this._record.stable_name=i.toString(e),this}},{key:"error",value:function(e){return this._record.error_flag=i.toBoolean(e),this}},{key:"payload",value:function(e){return void 0!==e&&(this._record.payload_json=this._encodePayload(e)),this}},{key:"_encodePayload",value:function(e){var t=null;try{t=JSON.stringify(e)}catch(e){return}return t}}]),e}();e.exports=s},function(e,t,n){"use strict";var r,o=function(){function e(e,t){for(var n=0;n=8.0.0"},scripts:{test:"rm -f test/results/*.json && node node_modules/mocha/bin/mocha -c test/unittest_node.js",version:"make build && git add -A dist"},license:"MIT",repository:{type:"git",url:"http://github.com/lightstep/lightstep-tracer-javascript.git"},dependencies:{async:"1.5.0",eventemitter3:"1.1.1",hex2dec:"1.0.1",opentracing:"^0.14.4","source-map-support":"0.3.3",thrift:"0.13.0"},devDependencies:{"babel-cli":"6.14.0","babel-core":"^6.26.3","babel-loader":"7","babel-plugin-add-module-exports":"^1.0.0","babel-plugin-check-es2015-constants":"6.7.2","babel-plugin-syntax-object-rest-spread":"^6.13.0","babel-plugin-transform-es2015-arrow-functions":"6.5.2","babel-plugin-transform-es2015-block-scoped-functions":"6.6.5","babel-plugin-transform-es2015-block-scoping":"^6.26.0","babel-plugin-transform-es2015-classes":"6.6.5","babel-plugin-transform-es2015-computed-properties":"6.6.5","babel-plugin-transform-es2015-destructuring":"6.6.5","babel-plugin-transform-es2015-duplicate-keys":"6.6.4","babel-plugin-transform-es2015-literals":"6.5.0","babel-plugin-transform-es2015-modules-commonjs":"6.7.4","babel-plugin-transform-es2015-object-super":"6.6.5","babel-plugin-transform-es2015-parameters":"6.7.0","babel-plugin-transform-es2015-spread":"^6.6.5","babel-plugin-transform-es2015-sticky-regex":"6.5.0","babel-plugin-transform-es2015-template-literals":"6.6.5","babel-plugin-transform-es2015-unicode-regex":"6.5.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-polyfill":"6.3.14","babel-preset-es2015":"6.3.13",chai:"3.4.1",clone:"1.0.2",colors:"1.1.2",eslint:"^6.8.0","eslint-config-airbnb":"^18.0.1","eslint-plugin-import":"^2.20.0","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-react":"^7.18.0",express:"^4.16.3","fetch-mock":"^9.2.1",istanbul:"^0.4.5",mocha:"^5.2.0",shelljs:"0.5.3",sinon:"^9.0.1","sprintf-js":"1.0.3",underscore:"1.8.3","watch-trigger":"0.0.5",webpack:"^4.25.1","webpack-cli":"^3.1.2"}}},function(e,t,n){"use strict";var r=function(){function e(e,t){for(var n=0;n-1e3&&e<1e3||O.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-k(-e):k(e);if(r!==e){var o=String(r),a=b.call(t,o.length+1);return _.call(o,n,"$&_")+"."+_.call(_.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(t,n,"$&_")}var N=n(8725),M=N.custom,q=B(M)?M:null;function U(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function D(e){return"[object Array]"===H(e)&&(!G||!("object"===r(e)&&G in e))}function F(e){return"[object RegExp]"===H(e)&&(!G||!("object"===r(e)&&G in e))}function B(e){if(E)return e&&"object"===r(e)&&e instanceof Symbol;if("symbol"===r(e))return!0;if(!e||"object"!==r(e)||!R)return!1;try{return R.call(e),!0}catch(e){}return!1}e.exports=function e(t,o,a,u){var c,y,w,O,k,x=o||{};if(V(x,"quoteStyle")&&"single"!==x.quoteStyle&&"double"!==x.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if(V(x,"maxStringLength")&&("number"==typeof x.maxStringLength?x.maxStringLength<0&&x.maxStringLength!==1/0:null!==x.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var M=!V(x,"customInspect")||x.customInspect;if("boolean"!=typeof M&&"symbol"!==M)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(x,"indent")&&null!==x.indent&&" "!==x.indent&&!(parseInt(x.indent,10)===x.indent&&x.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(x,"numericSeparator")&&"boolean"!=typeof x.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var z=x.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength;return e(b.call(t,0,n.maxStringLength),n)+("... "+r)+" more character"+(r>1?"s":"")}return U(_.call(_.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",n)}(t,x);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var Q=String(t);return z?L(t,Q):Q}if((void 0===t?"undefined":t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)=="bigint"){var ee=String(t)+"n";return z?L(t,ee):ee}var et=void 0===x.depth?5:x.depth;if(void 0===a&&(a=0),a>=et&&et>0&&"object"===r(t))return D(t)?"[Array]":"[Object]";var en=function(e,t){var n;if(" "===e.indent)n=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;n=P.call(Array(e.indent+1)," ")}return{base:n,prev:P.call(Array(t+1),n)}}(x,a);if(void 0===u)u=[];else if(Z(u,t)>=0)return"[Circular]";function er(t,n,r){if(n&&(u=I.call(u)).push(n),r){var o={depth:x.depth};return V(x,"quoteStyle")&&(o.quoteStyle=x.quoteStyle),e(t,o,a+1,u)}return e(t,x,a+1,u)}if("function"==typeof t&&!F(t)){var eo=function(e){if(e.name)return e.name;var t=g.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ea=Y(t,er);return"[Function"+(eo?": "+eo:" (anonymous)")+"]"+(ea.length>0?" { "+P.call(ea,", ")+" }":"")}if(B(t)){var ei=E?_.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):R.call(t);return"object"!==r(t)||E?ei:$(ei)}if((es=t)&&"object"===r(es)&&("undefined"!=typeof HTMLElement&&es instanceof HTMLElement||"string"==typeof es.nodeName&&"function"==typeof es.getAttribute)){for(var es,eu,ec="<"+S.call(String(t.nodeName)),el=t.attributes||[],ef=0;ef"}if(D(t)){if(0===t.length)return"[]";var ed=Y(t,er);return en&&!function(e){for(var t=0;t=0)return!1;return!0}(ed)?"["+X(ed,en)+"]":"[ "+P.call(ed,", ")+" ]"}if("[object Error]"===H(c=t)&&(!G||!("object"===r(c)&&G in c))){var ep=Y(t,er);return"cause"in Error.prototype||!("cause"in t)||j.call(t,"cause")?0===ep.length?"["+String(t)+"]":"{ ["+String(t)+"] "+P.call(ep,", ")+" }":"{ ["+String(t)+"] "+P.call(T.call("[cause]: "+er(t.cause),ep),", ")+" }"}if("object"===r(t)&&M){if(q&&"function"==typeof t[q]&&N)return N(t,{depth:et-a});if("symbol"!==M&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!==r(e))return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var eh=[];return s&&s.call(t,function(e,n){eh.push(er(n,t,!0)+" => "+er(e,t))}),J("Map",i.call(t),eh,en)}if(function(e){if(!l||!e||"object"!==r(e))return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ev=[];return f&&f.call(t,function(e){ev.push(er(e,t))}),J("Set",l.call(t),ev,en)}if(function(e){if(!d||!e||"object"!==r(e))return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return W("WeakMap");if(function(e){if(!p||!e||"object"!==r(e))return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return W("WeakSet");if(function(e){if(!h||!e||"object"!==r(e))return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return W("WeakRef");if("[object Number]"===H(y=t)&&(!G||!("object"===r(y)&&G in y)))return $(er(Number(t)));if(function(e){if(!e||"object"!==r(e)||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}(t))return $(er(A.call(t)));if("[object Boolean]"===H(w=t)&&(!G||!("object"===r(w)&&G in w)))return $(v.call(t));if("[object String]"===H(O=t)&&(!G||!("object"===r(O)&&G in O)))return $(er(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!("[object Date]"===H(k=t)&&(!G||!("object"===r(k)&&G in k)))&&!F(t)){var ey=Y(t,er),em=C?C(t)===Object.prototype:t instanceof Object||t.constructor===Object,eg=t instanceof Object?"":"null prototype",eb=!em&&G&&Object(t)===t&&G in t?b.call(H(t),8,-1):eg?"Object":"",e_=(em||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eb||eg?"["+P.call(T.call([],eb||[],eg||[]),": ")+"] ":"");return 0===ey.length?e_+"{}":en?e_+"{"+X(ey,en)+"}":e_+"{ "+P.call(ey,", ")+" }"}return String(t)};var z=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return z.call(e,t)}function H(e){return y.call(e)}function Z(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n1)for(var n=1;n= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,v=String.fromCharCode;function y(e){throw RangeError(p[e])}function m(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function g(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+m((e=e.replace(d,".")).split("."),t).join(".")}function b(e){for(var t,n,r=[],o=0,a=e.length;o=55296&&t<=56319&&o65535&&(e-=65536,t+=v(e>>>10&1023|55296),e=56320|1023&e),t+=v(e)}).join("")}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,n){var r=0;for(e=n?h(e/700):e>>1,e+=h(e/t);e>455;r+=36)e=h(e/35);return h(r+36*e/(e+38))}function O(e){var t,n,r,o,a,i,s,u,c,l,f,d=[],p=e.length,v=0,m=128,g=72;for((r=e.lastIndexOf("-"))<0&&(r=0),o=0;o=128&&y("not-basic"),d.push(e.charCodeAt(o));for(a=r>0?r+1:0;a=p&&y("invalid-input"),((c=(t=e.charCodeAt(a++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36)>=36||c>h((0x7fffffff-v)/s))&&y("overflow"),v+=c*s,!(c<(l=u<=g?1:u>=g+26?26:u-g));u+=36){s>h(0x7fffffff/(f=36-l))&&y("overflow"),s*=f}g=S(v-i,n=d.length+1,0==i),h(v/n)>0x7fffffff-m&&y("overflow"),m+=h(v/n),v%=n,d.splice(v++,0,m)}return _(d)}function T(e){var t,n,r,o,a,i,s,u,c,l,f,d,p,m,g,_=[];for(i=0,d=(e=b(e)).length,t=128,n=0,a=72;i=t&&fh((0x7fffffff-n)/(p=r+1))&&y("overflow"),n+=(s-t)*p,t=s,i=0;i0x7fffffff&&y("overflow"),f==t){for(u=n,c=36;!(u<(l=c<=a?1:c>=a+26?26:c-a));c+=36)g=u-l,m=36-l,_.push(v(w(l+g%m,0))),u=h(g/m);_.push(v(w(u,0))),a=S(n,p,r==o),n=0,++r}++n,++t}return _.join("")}if(u={version:"1.4.1",ucs2:{decode:b,encode:_},decode:O,encode:T,toASCII:function(e){return g(e,function(e){return f.test(e)?"xn--"+T(e):e})},toUnicode:function(e){return g(e,function(e){return l.test(e)?O(e.slice(4).toLowerCase()):e})}},"function"==typeof define&&"object"==r(define.amd)&&define.amd)define("punycode",function(){return u});else if(a&&i){if(e.exports==a)i.exports=u;else for(c in u)u.hasOwnProperty(c)&&(a[c]=u[c])}else o.punycode=u}(this)},9906:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},1024:function(e,t,n){"use strict";var r=n(185),o=n(3442),a=n(9906);e.exports={formats:a,parse:o,stringify:r}},3442:function(e,t,n){"use strict";var r=n(7302),o=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t){var n={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=t.parameterLimit===1/0?void 0:t.parameterLimit,l=u.split(t.delimiter,c),f=-1,d=t.charset;if(t.charsetSentinel)for(p=0;p=0;--a){var i,u=e[a];if("[]"===u&&n.parseArrays)i=n.allowEmptyArrays&&(""===o||n.strictNullHandling&&null===o)?[]:[].concat(o);else{i=n.plainObjects?Object.create(null):{};var c="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,l=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,f=parseInt(l,10);n.parseArrays||""!==l?!isNaN(f)&&u!==l&&String(f)===l&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(i=[])[f]=o:"__proto__"!==l&&(i[l]=o):i={0:o}}o=i}return o},l=function(e,t,n,r){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(a),u=s?a.slice(0,s.index):a,l=[];if(u){if(!n.plainObjects&&o.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}for(var f=0;n.depth>0&&null!==(s=i.exec(a))&&f0?A.join(",")||null:void 0}];else if(c(g))k=g;else{var C=Object.keys(A);k=b?C.sort(b):C}var L=p?n.replace(/\./g,"%2E"):n,N=s&&c(A)&&1===A.length?L+"[]":L;if(u&&c(A)&&0===A.length)return N+"[]";for(var M=0;M0?_+b:""}},7302:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(9906),a=Object.prototype.hasOwnProperty,i=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),u=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o=1024?u.slice(l,l+1024):u,d=[],p=0;p=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===o.RFC1738&&(40===h||41===h)){d[d.length]=f.charAt(p);continue}if(h<128){d[d.length]=s[h];continue}if(h<2048){d[d.length]=s[192|h>>6]+s[128|63&h];continue}if(h<55296||h>=57344){d[d.length]=s[224|h>>12]+s[128|h>>6&63]+s[128|63&h];continue}p+=1,h=65536+((1023&h)<<10|1023&f.charCodeAt(p)),d[d.length]=s[240|h>>18]+s[128|h>>12&63]+s[128|h>>6&63]+s[128|63&h]}c+=d.join("")}return c},isBuffer:function(e){return!!e&&"object"===r(e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(e.split("&"));try{for(u.s();!(s=u.n()).done;){var c=s.value;if(""!==c){var f=l(t.decode?c.replace(/\+/g," "):c,"="),p=r(f,2),v=p[0],y=p[1];y=void 0===y?null:["comma","separator"].includes(t.arrayFormat)?y:h(y,t),n(h(v,t),y,a)}}}catch(e){u.e(e)}finally{u.f()}for(var g=0,b=Object.keys(a);g0}).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var n=r(l(e,"#"),2),o=n[0],a=n[1];return Object.assign({url:o.split("?")[0]||"",query:g(y(e),t)},t&&t.parseFragmentIdentifier&&a?{fragmentIdentifier:h(a,t)}:{})},t.stringifyUrl=function(e,n){n=Object.assign({encode:!0,strict:!0},n);var r,o,a,i=v(e.url).split("?")[0]||"",s=t.extract(e.url),u=Object.assign(t.parse(s,{sort:!1}),e.query),c=t.stringify(u,n);c&&(c="?".concat(c));var l=(r=e.url,o="",-1!==(a=r.indexOf("#"))&&(o=r.slice(a)),o);return e.fragmentIdentifier&&(l="#".concat(p(e.fragmentIdentifier,n))),"".concat(i).concat(c).concat(l)},t.pick=function(e,n,r){r=Object.assign({parseFragmentIdentifier:!0},r);var o=t.parseUrl(e,r),a=o.url,i=o.query,s=o.fragmentIdentifier;return t.stringifyUrl({url:a,query:f(i,n),fragmentIdentifier:s},r)},t.exclude=function(e,n,r){var o=Array.isArray(n)?function(e){return!n.includes(e)}:function(e,t){return!n(e,t)};return t.pick(e,o,r)}},6294:function(e,t,n){"use strict";var r=n(1599),o=n(3641),a=n(99)(),i=n(8215),s=n(877),u=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&i){var l=i(e,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(c=!1)}return(r||c||!n)&&(a?o(e,"length",t,!0,!0):o(e,"length",t)),e}},6740:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(1599),a=n(9632),i=n(637),s=n(877),u=o("%WeakMap%",!0),c=o("%Map%",!0),l=a("WeakMap.prototype.get",!0),f=a("WeakMap.prototype.set",!0),d=a("WeakMap.prototype.has",!0),p=a("Map.prototype.get",!0),h=a("Map.prototype.set",!0),v=a("Map.prototype.has",!0),y=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},m=function(e,t){var n=y(e,t);return n&&n.value},g=function(e,t,n){var r=y(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}};e.exports=function(){var e,t,n,o={assert:function(e){if(!o.has(e))throw new s("Side channel does not contain "+i(e))},get:function(o){if(u&&o&&("object"===r(o)||"function"==typeof o)){if(e)return l(e,o)}else if(c){if(t)return p(t,o)}else if(n)return m(n,o)},has:function(o){if(u&&o&&("object"===r(o)||"function"==typeof o)){if(e)return d(e,o)}else if(c){if(t)return v(t,o)}else if(n)return!!y(n,o);return!1},set:function(o,a){u&&o&&("object"===r(o)||"function"==typeof o)?(e||(e=new u),f(e,o,a)):c?(t||(t=new c),h(t,o,a)):(n||(n={key:{},next:null}),g(n,o,a))}};return o}},2503:function(e){"use strict";e.exports=function(e,t){if("string"!=typeof e||"string"!=typeof t)throw TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];var n=e.indexOf(t);return -1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},7631:function(e){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())})}},8528:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(9654);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var i=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,c=["'"].concat(["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n"," "])),l=["%","/","?",";","#"].concat(c),f=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=n(1024);function g(e,t,n){if(e&&"object"===r(e)&&e instanceof a)return e;var o=new a;return o.parse(e,t,n),o}a.prototype.parse=function(e,t,n){if("string"!=typeof e)throw TypeError("Parameter 'url' must be a string, not "+r(e));var a=e.indexOf("?"),s=-1!==a&&a127?j+="x":j+=G[C];if(!j.match(d)){var N=R.slice(0,k),M=R.slice(k+1),q=G.match(p);q&&(N.push(q[1]),M.unshift(q[2])),M.length&&(b="/"+M.join(".")+b),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),x||(this.hostname=o.toASCII(this.hostname));var U=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+U,this.href+=this.host,x&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!h[S])for(var k=0,E=c.length;k0)&&n.host.split("@");T&&(n.auth=T.shift(),n.hostname=T.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,(null!==n.pathname||null!==n.search)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var P=S.slice(-1)[0],I=(n.host||e.host||S.length>1)&&("."===P||".."===P)||""===P,k=0,A=S.length;A>=0;A--)"."===(P=S[A])?S.splice(A,1):".."===P?(S.splice(A,1),k++):k&&(S.splice(A,1),k--);if(!_&&!w)for(;k--;k)S.unshift("..");_&&""!==S[0]&&(!S[0]||"/"!==S[0].charAt(0))&&S.unshift(""),I&&"/"!==S.join("/").substr(-1)&&S.push("");var x=""===S[0]||S[0]&&"/"===S[0].charAt(0);if(O){n.hostname=x?"":S.length?S.shift():"",n.host=n.hostname;var T=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");T&&(n.auth=T.shift(),n.hostname=T.shift(),n.host=n.hostname)}return(_=_||n.host&&S.length)&&!x&&S.unshift(""),S.length>0?n.pathname=S.join("/"):(n.pathname=null,n.path=null),(null!==n.pathname||null!==n.search)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},a.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=g,t.resolve=function(e,t){return g(e,!1,!0).resolve(t)},t.format=function(e){return("string"==typeof e&&(e=g(e)),e instanceof a)?e.format():a.prototype.format.call(e)}},6152:function(e,t,n){"use strict";n.d(t,{Rb:function(){return eh}});var r,o,a,i,s,u,c,l,f,d,p,h,v,y,m,g=function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o=e}:e;return function(){var e=Array.from(arguments);return n(arguments)?t.apply(this,e):function(n){return t.apply(void 0,g([n],e,!1))}}};function w(e){return function(t,n){return e.map(t,function(){return n})}}Object.prototype.hasOwnProperty;var S=function(e){return{_tag:"Left",left:e}},O=function(e){return{_tag:"Right",right:e}},T=_(2,function(e,t){return x(e)?e:t(e.right)}),P=function(e,t){return b(e,k(t))},I="Either",k=function(e){return function(t){return x(t)?t:O(e(t.right))}},A={URI:I,map:P};_(2,w(A)),w(A);var x=function(e){return"Left"===e._tag},R=n(330),E=((o={}).RequestExempt="RequestExempt",o.RequestExemptError="RequestExemptError",o.GetKeyPairFailed="GetKeyPairFailed",o.UpdateKeyPairFailed="UpdateKeyPairFailed",o.NoKeyPairFound="NoKeyPairFound",o.RequestBodyHashFailed="RequestBodyHashFailed",o.SignatureFailed="SignatureFailed",o.Unknown="Unknown",o);function G(e,t,n,r,o,a,i){try{var s=e[a](i),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,o)}function j(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function i(e){G(a,r,o,i,s,"next",e)}function s(e){G(a,r,o,i,s,"throw",e)}i(void 0)})}}function C(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0){a=e.data("token");var t=e.data("timestamp");t&&Date.parse(t)}},c=function(){return""===a&&u(),a}},3988:function(e,t,n){"use strict";n.d(t,{Bb:function(){return O},Eq:function(){return w},ky:function(){return v},p2:function(){return T}});var r,o=n(9567),a=n.n(o),i=n(8578);function s(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var u=window.location.hostname.replace(/^[\w-]+\./,""),c={"/game/report-stats":"https://assetgame.".concat(u,"/game/report-stats"),"/game/report-event":"https://assetgame.".concat(u,"/game/report-event"),"/catalog/html":"https://search.".concat(u,"/catalog/html"),"/catalog/json":"https://search.".concat(u,"/catalog/json"),"/catalog/contents":"https://search.".concat(u,"/catalog/contents"),"/catalog/items":"https://search.".concat(u,"/catalog/items"),"/asset-hash-thumbnail/image":"https://assetgame.".concat(u,"/asset-hash-thumbnail/image"),"/asset-hash-thumbnail/json":"https://assetgame.".concat(u,"/asset-hash-thumbnail/json"),"/asset-thumbnail-3d/json":"https://assetgame.".concat(u,"/asset-thumbnail-3d/json"),"/asset-thumbnail/image":"https://assetgame.".concat(u,"/asset-thumbnail/image"),"/asset-thumbnail/json":"https://assetgame.".concat(u,"/asset-thumbnail/json"),"/asset-thumbnail/url":"https://assetgame.".concat(u,"/asset-thumbnail/url"),"/asset/request-thumbnail-fix":"https://assetgame.".concat(u,"/asset/request-thumbnail-fix")},l=/^\/([A-Za-z]{2}(?:-[A-Za-z0-9]{2,3})?)(\/|$)/i,f=[".roblox.com",".robloxlabs.com",".roblox.qq.com"],d=document.querySelector('meta[name="locale-data"]'),p=null!==(r=null==d?void 0:d.dataset.urlLocale)&&void 0!==r?r:"",h=(null==d?void 0:d.dataset.overrideLanguageHeader)==="true",v=!!p,y=function(e){return/^([a-z]+:\/\/|\/\/)/.test(e)},m=function(e){var t=/\?(?!})/.exec(e);return null===t?{url:e,query:""}:{url:e.substring(0,t.index),query:e.substring(t.index)}},g=function(e){var t=e;e.startsWith("/")||(t="/".concat(e));var n=l.exec(t);if(n){var r,o=n[1];if(o&&"my"!==(r=o).toLowerCase()&&"js"!==r.toLowerCase())return{locale:o,remainingPath:t.replace(l,"/")}}return{locale:null,remainingPath:e}},b=function(e){if(!y(e))return e;var t=(0,i.en)(e),n=g(t.pathname);return p===n.locale||t.hostname!==window.location.hostname?e:(p?t.pathname="/".concat(p).concat(n.remainingPath):t.pathname=n.remainingPath,(0,i.CN)(t))},_=function(e){if((void 0===c?"undefined":s(c))==="undefined"||0===e.length)return e;if(y(e))return b(e);var t=e;if(!e.startsWith("/")){var n=window.location.pathname;t=n.slice(0,n.lastIndexOf("/")+1)+e}var r=c[t.toLowerCase()];return void 0===r&&(r="".concat(window.location.protocol,"//").concat(window.location.hostname)+t),r=b(r)},w=function(e,t,n){var r=m(e),o=r.url.toLowerCase(),i=o;return n&&"undefined"!==s(c[o.toLowerCase()])&&(i=_(o)),i.includes("{")&&a().each(t,function(e,t){var n=new RegExp("{".concat(e.toLowerCase(),"(:.*?)?\\??}"));i=i.replace(n,t)}),i+r.query},S=function(e){var t;return!!y(e)&&!((t=(0,i.en)(e).hostname)===window.location.host||f.some(function(e){return t.endsWith(e)}))},O=function(e){return h&&p&&!S(e)?"".concat(p,";q=0.01"):null},T=!0},6277:function(e,t,n){"use strict";n.d(t,{EJ:function(){return d},ZE:function(){return f},md:function(){return l}});var r,o,a,i,s=(a=Number.isNaN(o=(null==(r=document.querySelector('meta[name="request-duplication-meta-data"]'))?void 0:r.dataset.duplicationRatio)!=null?parseFloat(r.dataset.duplicationRatio):null)?0:o,i=document.querySelector('meta[name="page-retry-header-enabled"]'),{duplicationEnabled:(null==r?void 0:r.dataset.duplicationEnabled)==="true",apiSitesAllowList:(null==r?void 0:r.dataset.apiSitesAllowList)!=null?r.dataset.apiSitesAllowList:"",duplicationRatio:a,retryAttemptHeaderEnabled:(null==i?void 0:i.dataset.retryAttemptHeaderEnabled)==="True"}),u=function(e){var t=null!=e?e:window.location.hostname;return t.includes("roblox.com")||t.includes("robloxlabs.com")},c=s.apiSitesAllowList.split(","),l=function(e,t){return s.duplicationEnabled&&!t&&!!(u()&&u(e))&&c.length>0&&c.some(function(t){return t.length>0&&e.includes(t)})},f=function(){var e=s.duplicationRatio;if(null==e||e<=0)return 0;var t=Math.floor(e),n=e-t,r=t;return n>0&&Math.random()