@apps-in-toss/web-framework 2.9.0 → 2.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -137211,7 +137211,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
137211
137211
  var import_analytics = _$$_REQUIRE(_dependencyMap[4], "@apps-in-toss/analytics");
137212
137212
  var import_native_modules10 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
137213
137213
  var import_react_native27 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
137214
- var import_tds_react_native11 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
137214
+ var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
137215
137215
  var import_react_native28 = _$$_REQUIRE(_dependencyMap[8], "react-native");
137216
137216
  var import_react_native2 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
137217
137217
  var import_react = _$$_REQUIRE(_dependencyMap[9], "react");
@@ -137325,7 +137325,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
137325
137325
  return context;
137326
137326
  }
137327
137327
  var import_native_modules9 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
137328
- var import_react16 = _$$_REQUIRE(_dependencyMap[9], "react");
137328
+ var import_react17 = _$$_REQUIRE(_dependencyMap[9], "react");
137329
137329
  var import_react_native26 = _$$_REQUIRE(_dependencyMap[8], "react-native");
137330
137330
  var import_native_modules4 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
137331
137331
  var import_react_native9 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
@@ -137815,7 +137815,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
137815
137815
  }, [handler]);
137816
137816
  }
137817
137817
  var import_react_native13 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
137818
+ var import_react13 = _$$_REQUIRE(_dependencyMap[9], "react");
137819
+ var import_tds_react_native5 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
137820
+ var import_es_hangul2 = _$$_REQUIRE(_dependencyMap[11], "es-hangul");
137818
137821
  var import_react12 = _$$_REQUIRE(_dependencyMap[9], "react");
137822
+ function useCloseConfirm() {
137823
+ var _getAppsInTossGlobals = getAppsInTossGlobals(),
137824
+ brandDisplayName = _getAppsInTossGlobals.brandDisplayName;
137825
+ var _ref19 = (0, import_tds_react_native5.useDialog)(),
137826
+ openConfirm = _ref19.openConfirm;
137827
+ return (0, import_react12.useCallback)(function () {
137828
+ var _ref20 = _asyncToGenerator(function* ({
137829
+ onEntered
137830
+ }) {
137831
+ return yield openConfirm({
137832
+ title: `${(0, import_es_hangul2.josa)(brandDisplayName, "\uC744/\uB97C")} \uC885\uB8CC\uD560\uAE4C\uC694?`,
137833
+ leftButton: "\uB2EB\uAE30",
137834
+ rightButton: "\uC885\uB8CC\uD558\uAE30",
137835
+ closeOnDimmerClick: true,
137836
+ onEntered
137837
+ });
137838
+ });
137839
+ return function (_x3) {
137840
+ return _ref20.apply(this, arguments);
137841
+ };
137842
+ }(), [brandDisplayName, openConfirm]);
137843
+ }
137819
137844
  var EventEmitter = function () {
137820
137845
  function EventEmitter() {
137821
137846
  _classCallCheck(this, EventEmitter);
@@ -137867,8 +137892,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
137867
137892
  var import_react_native12 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
137868
137893
  var NAVI_BAR_IMPRESSION_SCHEMA_ID = 1596837;
137869
137894
  var NAVI_BAR_IMPRESSION_LOG_NAME = "appsintoss_app_visit__common_module::impression__navigation_bar";
137895
+ var CLOSE_POPUP_SHOW_SCHEMA_ID = 1644490;
137896
+ var CLOSE_POPUP_SHOW_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app";
137870
137897
  var CLOSE_BUTTON_CLICK_SCHEMA_ID = 1596831;
137871
137898
  var CLOSE_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_close";
137899
+ var CLOSE_POPUP_CTA_CLICK_SCHEMA_ID = 1644492;
137900
+ var CLOSE_POPUP_CTA_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::popup__close_app::click__cta";
137872
137901
  var HOME_BUTTON_CLICK_SCHEMA_ID = 1596839;
137873
137902
  var HOME_BUTTON_CLICK_LOG_NAME = "appsintoss_app_visit__common_module::click__icon_home";
137874
137903
  function useNavigationBarLogging() {
@@ -137911,8 +137940,32 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
137911
137940
  }
137912
137941
  });
137913
137942
  };
137943
+ var logClosePopupShow = () => {
137944
+ sendLog({
137945
+ log_name: CLOSE_POPUP_SHOW_LOG_NAME,
137946
+ log_type: "popup",
137947
+ params: {
137948
+ ...baseParams,
137949
+ schema_id: CLOSE_POPUP_SHOW_SCHEMA_ID
137950
+ }
137951
+ });
137952
+ };
137953
+ var logClosePopupCtaClick = confirm => {
137954
+ sendLog({
137955
+ log_name: CLOSE_POPUP_CTA_CLICK_LOG_NAME,
137956
+ log_type: "event",
137957
+ params: {
137958
+ ...baseParams,
137959
+ close_yn: confirm ? "Y" : "N",
137960
+ schema_id: CLOSE_POPUP_CTA_CLICK_SCHEMA_ID,
137961
+ event_type: "click"
137962
+ }
137963
+ });
137964
+ };
137914
137965
  return {
137915
137966
  navBarImpression: logNavBarImpression,
137967
+ closePopupShow: logClosePopupShow,
137968
+ closePopupCtaClick: logClosePopupCtaClick,
137916
137969
  closeButtonClick: logCloseButtonClick,
137917
137970
  homeButtonClick: logHomeButtonClick
137918
137971
  };
@@ -137921,41 +137974,63 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
137921
137974
  var backEventContext = (0, import_react_native13.useBackEventContext)();
137922
137975
  var logging = useNavigationBarLogging();
137923
137976
  var navigation = (0, import_react_native13.useNavigation)();
137924
- return (0, import_react12.useMemo)(() => ({
137925
- handleBack: () => {
137926
- if (backEventContext.hasBackEvent) {
137927
- backEventContext.onBack();
137928
- } else if (navigation.canGoBack()) {
137929
- navigation.goBack();
137930
- } else {
137931
- (0, import_react_native13.closeView)();
137932
- }
137933
- },
137934
- handleHomeButtonClick: () => {
137935
- logging.homeButtonClick();
137936
- if (homeEvent.hasSubscriptions()) {
137937
- homeEvent.emit({});
137938
- } else {
137939
- navigation.navigate("/", {}, {
137940
- pop: true
137977
+ var closeConfirm = useCloseConfirm();
137978
+ var global2 = getAppsInTossGlobals();
137979
+ return (0, import_react13.useMemo)(() => {
137980
+ var close = function () {
137981
+ var _ref21 = _asyncToGenerator(function* () {
137982
+ if (global2.appType !== "game") {
137983
+ (0, import_react_native13.closeView)();
137984
+ return;
137985
+ }
137986
+ var hasConfirmed = yield closeConfirm({
137987
+ onEntered: logging.closePopupShow
137941
137988
  });
137989
+ logging.closePopupCtaClick(hasConfirmed);
137990
+ if (hasConfirmed) {
137991
+ (0, import_react_native13.closeView)();
137992
+ }
137993
+ });
137994
+ return function close() {
137995
+ return _ref21.apply(this, arguments);
137996
+ };
137997
+ }();
137998
+ return {
137999
+ handleBack: () => {
138000
+ if (backEventContext.hasBackEvent) {
138001
+ backEventContext.onBack();
138002
+ } else if (navigation.canGoBack()) {
138003
+ navigation.goBack();
138004
+ } else {
138005
+ close();
138006
+ }
138007
+ },
138008
+ handleHomeButtonClick: () => {
138009
+ logging.homeButtonClick();
138010
+ if (homeEvent.hasSubscriptions()) {
138011
+ homeEvent.emit({});
138012
+ } else {
138013
+ navigation.navigate("/", {}, {
138014
+ pop: true
138015
+ });
138016
+ }
138017
+ },
138018
+ handleCloseButtonClick: () => {
138019
+ logging.closeButtonClick();
138020
+ close();
137942
138021
  }
137943
- },
137944
- handleCloseButtonClick: () => {
137945
- logging.closeButtonClick();
137946
- (0, import_react_native13.closeView)();
137947
- }
137948
- }), [backEventContext, navigation, logging]);
138022
+ };
138023
+ }, [global2.appType, backEventContext, navigation, closeConfirm, logging]);
137949
138024
  }
137950
138025
  var import_native_modules8 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
137951
138026
  var import_react_native18 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
137952
- var import_tds_react_native7 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138027
+ var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
137953
138028
  var import_private4 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
137954
- var import_react13 = _$$_REQUIRE(_dependencyMap[9], "react");
138029
+ var import_react14 = _$$_REQUIRE(_dependencyMap[9], "react");
137955
138030
  var import_native_modules5 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
137956
138031
  var import_react_native16 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
138032
+ var import_tds_react_native7 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
137957
138033
  var import_tds_react_native6 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
137958
- var import_tds_react_native5 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
137959
138034
  var import_private3 = _$$_REQUIRE(_dependencyMap[12], "@toss/tds-react-native/private");
137960
138035
  var import_react_native15 = _$$_REQUIRE(_dependencyMap[8], "react-native");
137961
138036
  var import_react_native14 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
@@ -138038,7 +138113,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138038
138113
  var logging = useMoreButtonBottomSheetLogging();
138039
138114
  var brandPrimaryColorRGB = hexToRGB(globals.brandPrimaryColor);
138040
138115
  var iconBackgroundColor = brandPrimaryColorRGB ? `rgba(${brandPrimaryColorRGB.join(",")},0.1)` : adaptive.grey100;
138041
- return (0, import_jsx_runtime5.jsx)(import_tds_react_native5.ListRow, {
138116
+ return (0, import_jsx_runtime5.jsx)(import_tds_react_native6.ListRow, {
138042
138117
  left: (0, import_jsx_runtime5.jsx)(import_react_native15.View, {
138043
138118
  style: {
138044
138119
  width: 30,
@@ -138050,14 +138125,14 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138050
138125
  marginRight: 16,
138051
138126
  backgroundColor: iconBackgroundColor
138052
138127
  },
138053
- children: iconName ? (0, import_jsx_runtime5.jsx)(import_tds_react_native5.Asset.Icon, {
138128
+ children: iconName ? (0, import_jsx_runtime5.jsx)(import_tds_react_native6.Asset.Icon, {
138054
138129
  frameShape: {
138055
138130
  width: 20,
138056
138131
  height: 20
138057
138132
  },
138058
138133
  color: globals.brandPrimaryColor,
138059
138134
  name: iconName
138060
- }) : (0, import_jsx_runtime5.jsx)(import_tds_react_native5.Asset.Image, {
138135
+ }) : (0, import_jsx_runtime5.jsx)(import_tds_react_native6.Asset.Image, {
138061
138136
  frameShape: {
138062
138137
  width: 20,
138063
138138
  height: 20
@@ -138067,7 +138142,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138067
138142
  }
138068
138143
  })
138069
138144
  }),
138070
- contents: (0, import_jsx_runtime5.jsx)(import_tds_react_native5.ListRow.Texts, {
138145
+ contents: (0, import_jsx_runtime5.jsx)(import_tds_react_native6.ListRow.Texts, {
138071
138146
  type: "1RowTypeA",
138072
138147
  top: title,
138073
138148
  topProps: {
@@ -138103,10 +138178,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138103
138178
  }
138104
138179
  function addParamsToUrl(url, params) {
138105
138180
  var urlObj = new URL(url);
138106
- for (var _ref19 of Object.entries(params)) {
138107
- var _ref20 = _slicedToArray(_ref19, 2);
138108
- var key = _ref20[0];
138109
- var value = _ref20[1];
138181
+ for (var _ref22 of Object.entries(params)) {
138182
+ var _ref23 = _slicedToArray(_ref22, 2);
138183
+ var key = _ref23[0];
138184
+ var value = _ref23[1];
138110
138185
  urlObj.searchParams.set(key, value);
138111
138186
  }
138112
138187
  return urlObj.toString();
@@ -138120,8 +138195,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138120
138195
  function AppShareListMenu() {
138121
138196
  var initialScheme = (0, import_react_native16.getSchemeUri)();
138122
138197
  var isSandbox = (0, import_native_modules5.getOperationalEnvironment)() === "sandbox";
138123
- var _ref21 = (0, import_tds_react_native6.useDialog)(),
138124
- openConfirm = _ref21.openConfirm;
138198
+ var _ref24 = (0, import_tds_react_native7.useDialog)(),
138199
+ openConfirm = _ref24.openConfirm;
138125
138200
  var schemeForShare = addParamsToUrl(initialScheme, {
138126
138201
  referrer: SHARE_SCHEME_REFERRER
138127
138202
  });
@@ -138211,10 +138286,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138211
138286
  function useMoreButtonBottomSheet() {
138212
138287
  var globals = getAppsInTossGlobals();
138213
138288
  var adaptive = (0, import_private4.useAdaptive)();
138214
- var _ref22 = (0, import_react13.useState)([]),
138215
- _ref23 = _slicedToArray(_ref22, 2),
138216
- itemList = _ref23[0],
138217
- setItemList = _ref23[1];
138289
+ var _ref25 = (0, import_react14.useState)([]),
138290
+ _ref26 = _slicedToArray(_ref25, 2),
138291
+ itemList = _ref26[0],
138292
+ setItemList = _ref26[1];
138218
138293
  var appUpdateDialog = useAppUpdateDialog();
138219
138294
  var logging = useMoreButtonBottomSheetLogging();
138220
138295
  var overlay = (0, import_private4.useOverlay)();
@@ -138223,7 +138298,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138223
138298
  var isBottomSheetSupported = (0, import_native_modules8.isMinVersionSupported)(MIN_VERSION.BOTTOM_SHEET);
138224
138299
  var isShareListMenuSupported = (0, import_native_modules8.isMinVersionSupported)(MIN_VERSION.SHARE_LIST_MENU);
138225
138300
  var isSettingsMenuSupported = (0, import_native_modules8.isMinVersionSupported)(MIN_VERSION.SETTINGS_MENU);
138226
- (0, import_react13.useEffect)(() => {
138301
+ (0, import_react14.useEffect)(() => {
138227
138302
  if (!isBottomSheetSupported) {
138228
138303
  return;
138229
138304
  }
@@ -138235,7 +138310,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138235
138310
  });
138236
138311
  }, [isBottomSheetSupported]);
138237
138312
  var onClickHandler = function () {
138238
- var _ref24 = _asyncToGenerator(function* () {
138313
+ var _ref27 = _asyncToGenerator(function* () {
138239
138314
  logging.open();
138240
138315
  if (!isBottomSheetSupported) {
138241
138316
  yield appUpdateDialog.open({
@@ -138254,9 +138329,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138254
138329
  close();
138255
138330
  };
138256
138331
  return (0, import_jsx_runtime9.jsx)(BottomSheetImpressionArea, {
138257
- children: (0, import_jsx_runtime9.jsx)(import_tds_react_native7.BottomSheet.Root, {
138258
- header: (0, import_jsx_runtime9.jsx)(import_tds_react_native7.ListHeader, {
138259
- title: (0, import_jsx_runtime9.jsx)(import_tds_react_native7.ListHeader.TitleParagraph, {
138332
+ children: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.BottomSheet.Root, {
138333
+ header: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.ListHeader, {
138334
+ title: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.ListHeader.TitleParagraph, {
138260
138335
  color: adaptive.grey800,
138261
138336
  fontWeight: "bold",
138262
138337
  typography: "t5",
@@ -138264,7 +138339,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138264
138339
  })
138265
138340
  }),
138266
138341
  open: isOpen,
138267
- cta: (0, import_jsx_runtime9.jsx)(import_tds_react_native7.BottomSheet.CTA, {
138342
+ cta: (0, import_jsx_runtime9.jsx)(import_tds_react_native8.BottomSheet.CTA, {
138268
138343
  size: "large",
138269
138344
  type: "dark",
138270
138345
  style: "weak",
@@ -138275,7 +138350,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138275
138350
  }),
138276
138351
  onClose: handleClose,
138277
138352
  onExited: exit,
138278
- children: (0, import_jsx_runtime9.jsxs)(import_tds_react_native7.List, {
138353
+ children: (0, import_jsx_runtime9.jsxs)(import_tds_react_native8.List, {
138279
138354
  rowSeparator: "none",
138280
138355
  children: [itemList.map(item => (0, import_jsx_runtime9.jsx)(Menu, {
138281
138356
  title: item.contactItemName,
@@ -138288,7 +138363,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138288
138363
  });
138289
138364
  });
138290
138365
  return function onClickHandler() {
138291
- return _ref24.apply(this, arguments);
138366
+ return _ref27.apply(this, arguments);
138292
138367
  };
138293
138368
  }();
138294
138369
  return {
@@ -138299,7 +138374,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138299
138374
  children
138300
138375
  }) {
138301
138376
  var logging = useMoreButtonBottomSheetLogging();
138302
- (0, import_react13.useEffect)(() => {
138377
+ (0, import_react14.useEffect)(() => {
138303
138378
  logging.show();
138304
138379
  }, [logging]);
138305
138380
  return (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, {
@@ -138308,8 +138383,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138308
138383
  }
138309
138384
  var import_react_native_safe_area_context = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
138310
138385
  var import_react_native19 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
138311
- var import_tds_react_native8 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138312
- var import_react14 = _$$_REQUIRE(_dependencyMap[9], "react");
138386
+ var import_tds_react_native9 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138387
+ var import_react15 = _$$_REQUIRE(_dependencyMap[9], "react");
138313
138388
  var import_react_native20 = _$$_REQUIRE(_dependencyMap[8], "react-native");
138314
138389
  var import_jsx_runtime10 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
138315
138390
  function TopNavigation({
@@ -138319,9 +138394,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138319
138394
  }) {
138320
138395
  var insets = (0, import_react_native_safe_area_context.useSafeAreaInsets)();
138321
138396
  var navigation = (0, import_react_native19.useNavigation)();
138322
- (0, import_react14.useEffect)(() => {
138323
- var _getAppsInTossGlobals = getAppsInTossGlobals(),
138324
- navigationBar = _getAppsInTossGlobals.navigationBar;
138397
+ (0, import_react15.useEffect)(() => {
138398
+ var _getAppsInTossGlobals2 = getAppsInTossGlobals(),
138399
+ navigationBar = _getAppsInTossGlobals2.navigationBar;
138325
138400
  var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
138326
138401
  var transparent = parsedNavigationBar?.transparentBackground ?? false;
138327
138402
  var theme = parsedNavigationBar?.theme ?? "light";
@@ -138330,7 +138405,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138330
138405
  header: () => (0, import_jsx_runtime10.jsxs)(import_react_native20.View, {
138331
138406
  style: {
138332
138407
  width: "100%",
138333
- backgroundColor: transparent ? void 0 : theme === "light" ? import_tds_react_native8.colors.lightThemeBackground : import_tds_react_native8.colors.darkThemeBackground
138408
+ backgroundColor: transparent ? void 0 : theme === "light" ? import_tds_react_native9.colors.lightThemeBackground : import_tds_react_native9.colors.darkThemeBackground
138334
138409
  },
138335
138410
  pointerEvents: "box-none",
138336
138411
  children: [(0, import_jsx_runtime10.jsx)(import_react_native20.View, {
@@ -138409,7 +138484,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138409
138484
  });
138410
138485
  }
138411
138486
  var BACK_BUTTON_XML = `<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" viewBox="0 0 24 24"><path d="m20.8 20.7c-.3 0-.6-.1-.8-.4l-7.5-7.5c-.5-.5-.5-1.2 0-1.7l7.5-7.5c.5-.5 1.2-.5 1.7 0s.5 1.2 0 1.7l-6.8 6.7 6.7 6.7c.5.5.5 1.2 0 1.7-.2.2-.5.3-.8.3z" fill="__COLOR__"/></svg>`;
138412
- var import_tds_react_native9 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138487
+ var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138413
138488
  var import_react_native22 = _$$_REQUIRE(_dependencyMap[8], "react-native");
138414
138489
  var import_jsx_runtime12 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
138415
138490
  function HomeButton({
@@ -138426,10 +138501,10 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138426
138501
  height: 34,
138427
138502
  paddingLeft: 10,
138428
138503
  paddingRight: 10,
138429
- backgroundColor: theme === "light" ? import_tds_react_native9.colors.greyOpacity50 : "rgba(0, 0, 1, 0.58)",
138504
+ backgroundColor: theme === "light" ? import_tds_react_native10.colors.greyOpacity50 : "rgba(0, 0, 1, 0.58)",
138430
138505
  borderRadius: 99
138431
138506
  },
138432
- children: [children, (0, import_jsx_runtime12.jsx)(import_tds_react_native9.Icon, {
138507
+ children: [children, (0, import_jsx_runtime12.jsx)(import_tds_react_native10.Icon, {
138433
138508
  name: "icon-home-mono",
138434
138509
  size: 18
138435
138510
  })]
@@ -138471,7 +138546,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138471
138546
  })]
138472
138547
  });
138473
138548
  }
138474
- var import_tds_react_native10 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138549
+ var import_tds_react_native11 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138475
138550
  var import_react_native25 = _$$_REQUIRE(_dependencyMap[8], "react-native");
138476
138551
  var import_jsx_runtime14 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
138477
138552
  function Menu2({
@@ -138481,8 +138556,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138481
138556
  onLongPressDots,
138482
138557
  onPressClose
138483
138558
  }) {
138484
- var backgroundColor = theme === "light" ? import_tds_react_native10.colors.greyOpacity50 : "rgba(0, 0, 1, 0.58)";
138485
- var iconColor = theme === "light" ? import_tds_react_native10.colors.greyOpacity600 : "rgba(253, 253, 255, 0.75)";
138559
+ var backgroundColor = theme === "light" ? import_tds_react_native11.colors.greyOpacity50 : "rgba(0, 0, 1, 0.58)";
138560
+ var iconColor = theme === "light" ? import_tds_react_native11.colors.greyOpacity600 : "rgba(253, 253, 255, 0.75)";
138486
138561
  return (0, import_jsx_runtime14.jsxs)(import_react_native25.View, {
138487
138562
  style: {
138488
138563
  flexDirection: "row",
@@ -138501,13 +138576,13 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138501
138576
  backgroundColor
138502
138577
  },
138503
138578
  onPress: () => {
138504
- import_tds_react_native10.tdsEvent.emit("navigationAccessoryEvent", {
138579
+ import_tds_react_native11.tdsEvent.emit("navigationAccessoryEvent", {
138505
138580
  id: accessoryButton.id
138506
138581
  });
138507
138582
  accessoryButton.onPress?.();
138508
138583
  },
138509
138584
  disabled: accessoryButton.disabled,
138510
- children: (0, import_jsx_runtime14.jsx)(import_tds_react_native10.Icon, {
138585
+ children: (0, import_jsx_runtime14.jsx)(import_tds_react_native11.Icon, {
138511
138586
  name: accessoryButton.icon.name ?? "",
138512
138587
  accessibilityLabel: accessoryButton.title,
138513
138588
  color: iconColor,
@@ -138533,7 +138608,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138533
138608
  children: [(0, import_jsx_runtime14.jsx)(import_react_native25.TouchableOpacity, {
138534
138609
  onPress: onPressDots,
138535
138610
  onLongPress: onLongPressDots,
138536
- children: (0, import_jsx_runtime14.jsx)(import_tds_react_native10.Icon, {
138611
+ children: (0, import_jsx_runtime14.jsx)(import_tds_react_native11.Icon, {
138537
138612
  name: "icon-dots-mono",
138538
138613
  accessibilityLabel: "\uB354\uBCF4\uAE30",
138539
138614
  color: iconColor,
@@ -138543,11 +138618,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138543
138618
  style: {
138544
138619
  width: 1,
138545
138620
  height: 16,
138546
- backgroundColor: theme === "light" ? import_tds_react_native10.colors.greyOpacity200 : "rgba(222, 222, 255, 0.19)"
138621
+ backgroundColor: theme === "light" ? import_tds_react_native11.colors.greyOpacity200 : "rgba(222, 222, 255, 0.19)"
138547
138622
  }
138548
138623
  }), (0, import_jsx_runtime14.jsx)(import_react_native25.TouchableOpacity, {
138549
138624
  onPress: onPressClose,
138550
- children: (0, import_jsx_runtime14.jsx)(import_tds_react_native10.Icon, {
138625
+ children: (0, import_jsx_runtime14.jsx)(import_tds_react_native11.Icon, {
138551
138626
  name: "icon-appsintoss-close-mono",
138552
138627
  accessibilityLabel: "\uB2EB\uAE30",
138553
138628
  color: iconColor,
@@ -138558,15 +138633,15 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138558
138633
  })]
138559
138634
  });
138560
138635
  }
138561
- var import_react15 = _$$_REQUIRE(_dependencyMap[9], "react");
138636
+ var import_react16 = _$$_REQUIRE(_dependencyMap[9], "react");
138562
138637
  var import_jsx_runtime15 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
138563
138638
  function NavigationBarImpressionArea({
138564
138639
  children,
138565
138640
  withHomeButton
138566
138641
  }) {
138567
- var hasLogged = (0, import_react15.useRef)(false);
138642
+ var hasLogged = (0, import_react16.useRef)(false);
138568
138643
  var logging = useNavigationBarLogging();
138569
- (0, import_react15.useEffect)(() => {
138644
+ (0, import_react16.useEffect)(() => {
138570
138645
  if (hasLogged.current === false) {
138571
138646
  logging.navBarImpression({
138572
138647
  home_icon_yn: withHomeButton ? "Y" : "N"
@@ -138627,8 +138702,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138627
138702
  var navigationEvent = useNavigationEvent();
138628
138703
  var _useNavigationBarCont2 = useNavigationBarContext(),
138629
138704
  navigationRightButton = _useNavigationBarCont2.navigationRightButton;
138630
- var _getAppsInTossGlobals2 = getAppsInTossGlobals(),
138631
- navigationBar = _getAppsInTossGlobals2.navigationBar;
138705
+ var _getAppsInTossGlobals3 = getAppsInTossGlobals(),
138706
+ navigationBar = _getAppsInTossGlobals3.navigationBar;
138632
138707
  var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
138633
138708
  useHardwareBackPress(navigationEvent.handleBack);
138634
138709
  return (0, import_jsx_runtime17.jsx)(TopNavigation, {
@@ -138668,7 +138743,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138668
138743
  function GameAppContainer({
138669
138744
  children
138670
138745
  }) {
138671
- (0, import_react16.useEffect)(() => {
138746
+ (0, import_react17.useEffect)(() => {
138672
138747
  if (import_react_native26.Platform.OS === "ios") {
138673
138748
  (0, import_native_modules9.setIosSwipeGestureEnabled)({
138674
138749
  isEnabled: false
@@ -138714,7 +138789,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138714
138789
  ...initialProps
138715
138790
  }), (0, import_jsx_runtime19.jsx)(Container, {
138716
138791
  ...initialProps,
138717
- children: (0, import_jsx_runtime19.jsx)(import_tds_react_native11.TDSProvider, {
138792
+ children: (0, import_jsx_runtime19.jsx)(import_tds_react_native12.TDSProvider, {
138718
138793
  colorPreference: "light",
138719
138794
  token: {
138720
138795
  color: {
@@ -138796,32 +138871,44 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138796
138871
  var import_user_scripts = _$$_REQUIRE(_dependencyMap[18], "@apps-in-toss/user-scripts");
138797
138872
  var import_react_native_safe_area_context3 = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
138798
138873
  var import_react_native41 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
138799
- var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138800
- var import_react27 = _$$_REQUIRE(_dependencyMap[9], "react");
138874
+ var import_tds_react_native16 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138875
+ var import_react28 = _$$_REQUIRE(_dependencyMap[9], "react");
138801
138876
  var import_react_native42 = _$$_REQUIRE(_dependencyMap[8], "react-native");
138802
138877
  var import_native_modules11 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
138803
138878
  var import_react_native_webview = _$$_REQUIRE(_dependencyMap[19], "@granite-js/native/react-native-webview");
138804
- var import_react18 = _$$_REQUIRE(_dependencyMap[9], "react");
138879
+ var import_react19 = _$$_REQUIRE(_dependencyMap[9], "react");
138805
138880
  var import_react_native30 = _$$_REQUIRE(_dependencyMap[8], "react-native");
138806
138881
  var import_react_native29 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
138807
- var import_tds_react_native12 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138808
- var import_react17 = _$$_REQUIRE(_dependencyMap[9], "react");
138882
+ var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
138883
+ var import_es_hangul3 = _$$_REQUIRE(_dependencyMap[11], "es-hangul");
138884
+ var import_react18 = _$$_REQUIRE(_dependencyMap[9], "react");
138809
138885
  var import_jsx_runtime20 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
138810
138886
  function GameWebviewNavigationBar() {
138811
- var _ref25 = (0, import_tds_react_native12.useDialog)(),
138812
- openConfirm = _ref25.openConfirm;
138887
+ var _ref28 = (0, import_tds_react_native13.useDialog)(),
138888
+ openConfirm = _ref28.openConfirm;
138889
+ var global2 = getAppsInTossGlobals();
138813
138890
  var logging = useNavigationBarLogging();
138814
138891
  var _useMoreButtonBottomS3 = useMoreButtonBottomSheet(),
138815
138892
  openMoreButtonBottomSheet = _useMoreButtonBottomS3.open;
138816
138893
  var _useNavigationBarCont3 = useNavigationBarContext(),
138817
138894
  navigationRightButton = _useNavigationBarCont3.navigationRightButton;
138818
- var _getAppsInTossGlobals3 = getAppsInTossGlobals(),
138819
- navigationBar = _getAppsInTossGlobals3.navigationBar;
138895
+ var _getAppsInTossGlobals4 = getAppsInTossGlobals(),
138896
+ navigationBar = _getAppsInTossGlobals4.navigationBar;
138820
138897
  var parsedNavigationBar = navigationBar ? safeParseNavigationBar(navigationBar) : null;
138821
- var handleGameWebviewClose = (0, import_react17.useCallback)(_asyncToGenerator(function* () {
138898
+ var handleGameWebviewClose = (0, import_react18.useCallback)(_asyncToGenerator(function* () {
138822
138899
  logging.closeButtonClick();
138823
- (0, import_react_native29.closeView)();
138824
- }), [logging, openConfirm]);
138900
+ var isConfirmed = yield openConfirm({
138901
+ title: `${(0, import_es_hangul3.josa)(global2.brandDisplayName, "\uC744/\uB97C")} \uC885\uB8CC\uD560\uAE4C\uC694?`,
138902
+ leftButton: "\uB2EB\uAE30",
138903
+ rightButton: "\uC885\uB8CC\uD558\uAE30",
138904
+ closeOnDimmerClick: true,
138905
+ onEntered: logging.closePopupShow
138906
+ });
138907
+ logging.closePopupCtaClick(isConfirmed);
138908
+ if (isConfirmed) {
138909
+ (0, import_react_native29.closeView)();
138910
+ }
138911
+ }), [global2.brandDisplayName, logging, openConfirm]);
138825
138912
  return (0, import_jsx_runtime20.jsx)(TopNavigation, {
138826
138913
  right: (0, import_jsx_runtime20.jsx)(Menu2, {
138827
138914
  theme: parsedNavigationBar?.theme ?? "dark",
@@ -138832,8 +138919,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138832
138919
  });
138833
138920
  }
138834
138921
  var import_jsx_runtime21 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
138835
- var GameWebView = (0, import_react18.forwardRef)(function GameWebView2(props, ref) {
138836
- (0, import_react18.useEffect)(() => {
138922
+ var GameWebView = (0, import_react19.forwardRef)(function GameWebView2(props, ref) {
138923
+ (0, import_react19.useEffect)(() => {
138837
138924
  if (import_react_native30.Platform.OS === "ios") {
138838
138925
  (0, import_native_modules11.setIosSwipeGestureEnabled)({
138839
138926
  isEnabled: false
@@ -138859,9 +138946,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138859
138946
  });
138860
138947
  });
138861
138948
  var import_react_native_webview2 = _$$_REQUIRE(_dependencyMap[19], "@granite-js/native/react-native-webview");
138862
- var import_react20 = _$$_REQUIRE(_dependencyMap[9], "react");
138949
+ var import_react21 = _$$_REQUIRE(_dependencyMap[9], "react");
138863
138950
  var import_react_native31 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
138864
- var import_react19 = _$$_REQUIRE(_dependencyMap[9], "react");
138951
+ var import_react20 = _$$_REQUIRE(_dependencyMap[9], "react");
138865
138952
  var import_jsx_runtime22 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
138866
138953
  function PartnerWebviewNavigationBar({
138867
138954
  onBackButtonClick,
@@ -138877,7 +138964,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138877
138964
  var theme = parsedNavigationBar?.theme ?? "light";
138878
138965
  var _useNavigationBarCont4 = useNavigationBarContext(),
138879
138966
  navigationRightButton = _useNavigationBarCont4.navigationRightButton;
138880
- var handleClose = (0, import_react19.useCallback)(_asyncToGenerator(function* () {
138967
+ var handleClose = (0, import_react20.useCallback)(_asyncToGenerator(function* () {
138881
138968
  logging.closeButtonClick();
138882
138969
  (0, import_react_native31.closeView)();
138883
138970
  }), [logging]);
@@ -138911,7 +138998,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
138911
138998
  });
138912
138999
  }
138913
139000
  var import_jsx_runtime23 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
138914
- var PartnerWebView = (0, import_react20.forwardRef)(function PartnerWebViewScreen({
139001
+ var PartnerWebView = (0, import_react21.forwardRef)(function PartnerWebViewScreen({
138915
139002
  onBackButtonClick,
138916
139003
  onHomeButtonClick,
138917
139004
  ...webViewProps
@@ -139323,7 +139410,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139323
139410
  }
139324
139411
  showFullScreenAd.isSupported = import_native_modules14.GoogleAdMob.showAppsInTossAdMob.isSupported;
139325
139412
  var import_react_native34 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
139326
- function tossAdEventLog(_x3) {
139413
+ function tossAdEventLog(_x4) {
139327
139414
  return _tossAdEventLog.apply(this, arguments);
139328
139415
  }
139329
139416
  function _tossAdEventLog() {
@@ -139344,7 +139431,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139344
139431
  });
139345
139432
  return _tossAdEventLog.apply(this, arguments);
139346
139433
  }
139347
- var import_react21 = _$$_REQUIRE(_dependencyMap[9], "react");
139434
+ var import_react22 = _$$_REQUIRE(_dependencyMap[9], "react");
139348
139435
  function serializeError(error) {
139349
139436
  return JSON.stringify(error, (_, value) => {
139350
139437
  if (value instanceof Error) {
@@ -139375,12 +139462,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139375
139462
  return;
139376
139463
  }
139377
139464
  var wrappedFunc = function () {
139378
- var _ref28 = _asyncToGenerator(function* (...args2) {
139465
+ var _ref31 = _asyncToGenerator(function* (...args2) {
139379
139466
  var result = yield func(...args2);
139380
139467
  return result;
139381
139468
  });
139382
139469
  return function wrappedFunc() {
139383
- return _ref28.apply(this, arguments);
139470
+ return _ref31.apply(this, arguments);
139384
139471
  };
139385
139472
  }();
139386
139473
  wrappedFunc(...args).then(result => {
@@ -139401,12 +139488,12 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139401
139488
  asyncHandlerMap,
139402
139489
  eventListenerMap
139403
139490
  }) {
139404
- var ref = (0, import_react21.useRef)(null);
139405
- var injectedJavaScript = (0, import_react21.useMemo)(() => `window.__CONSTANT_HANDLER_MAP = ${JSON.stringify(Object.entries(constantHandlerMap).reduce((acc, [key, value]) => {
139491
+ var ref = (0, import_react22.useRef)(null);
139492
+ var injectedJavaScript = (0, import_react22.useMemo)(() => `window.__CONSTANT_HANDLER_MAP = ${JSON.stringify(Object.entries(constantHandlerMap).reduce((acc, [key, value]) => {
139406
139493
  acc[key] = typeof value === "function" ? value() : value;
139407
139494
  return acc;
139408
139495
  }, {}))};`, [constantHandlerMap]);
139409
- (0, import_react21.useEffect)(() => {
139496
+ (0, import_react22.useEffect)(() => {
139410
139497
  ref.current?.injectJavaScript(injectedJavaScript);
139411
139498
  }, [injectedJavaScript]);
139412
139499
  var createHandleOnEvent = (functionName, eventId) => response => {
@@ -139420,8 +139507,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139420
139507
  window.__GRANITE_NATIVE_EMITTER.emit('${functionName}/onError/${eventId}', ${serializedError});
139421
139508
  `);
139422
139509
  };
139423
- var $onMessage = (0, import_react21.useCallback)(function () {
139424
- var _ref29 = _asyncToGenerator(function* (e) {
139510
+ var $onMessage = (0, import_react22.useCallback)(function () {
139511
+ var _ref32 = _asyncToGenerator(function* (e) {
139425
139512
  onMessage?.(e);
139426
139513
  var data = parseNativeEventData(e.nativeEvent.data);
139427
139514
  if (typeof data !== "object" || data === null || typeof data.functionName !== "string" || typeof data.eventId !== "string" || typeof data.type !== "string" || !["addEventListener", "removeEventListener", "method"].includes(data.type)) {
@@ -139463,8 +139550,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139463
139550
  }
139464
139551
  }
139465
139552
  });
139466
- return function (_x4) {
139467
- return _ref29.apply(this, arguments);
139553
+ return function (_x5) {
139554
+ return _ref32.apply(this, arguments);
139468
139555
  };
139469
139556
  }(), [onMessage]);
139470
139557
  return {
@@ -139482,20 +139569,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139482
139569
  }
139483
139570
  }
139484
139571
  var import_react_native_safe_area_context2 = _$$_REQUIRE(_dependencyMap[13], "@granite-js/native/react-native-safe-area-context");
139485
- var import_react22 = _$$_REQUIRE(_dependencyMap[9], "react");
139572
+ var import_react23 = _$$_REQUIRE(_dependencyMap[9], "react");
139486
139573
  function useSafeAreaInsetsEvent() {
139487
139574
  var insets = (0, import_react_native_safe_area_context2.useSafeAreaInsets)();
139488
- (0, import_react22.useEffect)(() => {
139575
+ (0, import_react23.useEffect)(() => {
139489
139576
  safeAreaInsetsChange.emit(insets);
139490
139577
  }, [insets]);
139491
- (0, import_react22.useEffect)(() => {
139578
+ (0, import_react23.useEffect)(() => {
139492
139579
  return () => safeAreaInsetsChange.clearSubscriptions();
139493
139580
  }, []);
139494
139581
  return safeAreaInsetsChange;
139495
139582
  }
139496
139583
  var import_react_native35 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
139584
+ var import_tds_react_native14 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
139585
+ var import_es_hangul4 = _$$_REQUIRE(_dependencyMap[11], "es-hangul");
139586
+ var import_react25 = _$$_REQUIRE(_dependencyMap[9], "react");
139497
139587
  var import_react24 = _$$_REQUIRE(_dependencyMap[9], "react");
139498
- var import_react23 = _$$_REQUIRE(_dependencyMap[9], "react");
139499
139588
  var INITIAL_STATE = {
139500
139589
  stack: [],
139501
139590
  index: -1
@@ -139544,11 +139633,11 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139544
139633
  }
139545
139634
  }
139546
139635
  function useWebViewHistory() {
139547
- var _ref30 = (0, import_react23.useReducer)(reducer, INITIAL_STATE),
139548
- _ref31 = _slicedToArray(_ref30, 2),
139549
- state = _ref31[0],
139550
- dispatch = _ref31[1];
139551
- var onNavigationStateChange = (0, import_react23.useCallback)(({
139636
+ var _ref33 = (0, import_react24.useReducer)(reducer, INITIAL_STATE),
139637
+ _ref34 = _slicedToArray(_ref33, 2),
139638
+ state = _ref34[0],
139639
+ dispatch = _ref34[1];
139640
+ var onNavigationStateChange = (0, import_react24.useCallback)(({
139552
139641
  url,
139553
139642
  canGoForward: canGoForward2
139554
139643
  }) => {
@@ -139558,7 +139647,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139558
139647
  canGoForward: canGoForward2
139559
139648
  });
139560
139649
  }, []);
139561
- var _ref32 = (0, import_react23.useMemo)(() => {
139650
+ var _ref35 = (0, import_react24.useMemo)(() => {
139562
139651
  var canBack = state.index > 0;
139563
139652
  var canFwd = state.index >= 0 && state.index < state.stack.length - 1;
139564
139653
  return {
@@ -139566,8 +139655,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139566
139655
  canGoForward: canFwd
139567
139656
  };
139568
139657
  }, [state.index, state.stack.length]),
139569
- canGoBack = _ref32.canGoBack,
139570
- canGoForward = _ref32.canGoForward;
139658
+ canGoBack = _ref35.canGoBack,
139659
+ canGoForward = _ref35.canGoForward;
139571
139660
  return {
139572
139661
  onNavigationStateChange,
139573
139662
  hasHistory: canGoBack,
@@ -139578,19 +139667,22 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139578
139667
  var _useWebViewHistory = useWebViewHistory(),
139579
139668
  hasHistory = _useWebViewHistory.hasHistory,
139580
139669
  onNavigationStateChange = _useWebViewHistory.onNavigationStateChange;
139581
- var _ref33 = (0, import_react_native35.useBackEventState)(),
139582
- webBackHandlersRef = _ref33.handlersRef,
139583
- hasWebBackEvent = _ref33.hasBackEvent,
139584
- addWebBackEventListener = _ref33.addEventListener,
139585
- removeWebBackEventListener = _ref33.removeEventListener;
139670
+ var _ref36 = (0, import_react_native35.useBackEventState)(),
139671
+ webBackHandlersRef = _ref36.handlersRef,
139672
+ hasWebBackEvent = _ref36.hasBackEvent,
139673
+ addWebBackEventListener = _ref36.addEventListener,
139674
+ removeWebBackEventListener = _ref36.removeEventListener;
139586
139675
  var logging = useNavigationBarLogging();
139587
- var addEventListener = (0, import_react24.useCallback)(handler => {
139676
+ var _ref37 = (0, import_tds_react_native14.useDialog)(),
139677
+ openConfirm = _ref37.openConfirm;
139678
+ var global2 = getAppsInTossGlobals();
139679
+ var addEventListener = (0, import_react25.useCallback)(handler => {
139588
139680
  addWebBackEventListener(handler);
139589
139681
  }, [addWebBackEventListener]);
139590
- var removeEventListener = (0, import_react24.useCallback)(handler => {
139682
+ var removeEventListener = (0, import_react25.useCallback)(handler => {
139591
139683
  removeWebBackEventListener(handler);
139592
139684
  }, [removeWebBackEventListener]);
139593
- var handleWebBack = (0, import_react24.useCallback)(_asyncToGenerator(function* () {
139685
+ var handleWebBack = (0, import_react25.useCallback)(_asyncToGenerator(function* () {
139594
139686
  if (hasWebBackEvent) {
139595
139687
  for (var handler of webBackHandlersRef) {
139596
139688
  handler();
@@ -139600,10 +139692,24 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139600
139692
  if (hasHistory) {
139601
139693
  webViewRef.current?.injectJavaScript("window.history.back();");
139602
139694
  } else {
139603
- (0, import_react_native35.closeView)();
139695
+ if (global2.webViewType !== "game") {
139696
+ (0, import_react_native35.closeView)();
139697
+ return;
139698
+ }
139699
+ var isConfirmed = yield openConfirm({
139700
+ title: `${(0, import_es_hangul4.josa)(global2.brandDisplayName, "\uC744/\uB97C")} \uC885\uB8CC\uD560\uAE4C\uC694?`,
139701
+ leftButton: "\uB2EB\uAE30",
139702
+ rightButton: "\uC885\uB8CC\uD558\uAE30",
139703
+ closeOnDimmerClick: true,
139704
+ onEntered: logging.closePopupShow
139705
+ });
139706
+ logging.closePopupCtaClick(isConfirmed);
139707
+ if (isConfirmed) {
139708
+ (0, import_react_native35.closeView)();
139709
+ }
139604
139710
  }
139605
- }), [hasHistory, hasWebBackEvent, webBackHandlersRef, logging, webViewRef]);
139606
- var handleWebHome = (0, import_react24.useCallback)(() => {
139711
+ }), [global2.webViewType, global2.brandDisplayName, hasHistory, hasWebBackEvent, webBackHandlersRef, logging, openConfirm, webViewRef]);
139712
+ var handleWebHome = (0, import_react25.useCallback)(() => {
139607
139713
  logging.homeButtonClick();
139608
139714
  if (homeEvent.hasSubscriptions()) {
139609
139715
  homeEvent.emit({});
@@ -139616,7 +139722,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139616
139722
  })();
139617
139723
  `);
139618
139724
  }, [hasWebBackEvent, webBackHandlersRef, logging, webViewInitialURL, webViewRef]);
139619
- return (0, import_react24.useMemo)(() => ({
139725
+ return (0, import_react25.useMemo)(() => ({
139620
139726
  addEventListener,
139621
139727
  removeEventListener,
139622
139728
  handleWebBack,
@@ -139771,8 +139877,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139771
139877
  }) {
139772
139878
  var platform = (0, import_native_modules15.getPlatformOS)();
139773
139879
  var appVersion = (0, import_native_modules15.getTossAppVersion)();
139774
- var _ref35 = (0, import_react_native36.useWindowDimensions)(),
139775
- fontScale = _ref35.fontScale;
139880
+ var _ref39 = (0, import_react_native36.useWindowDimensions)(),
139881
+ fontScale = _ref39.fontScale;
139776
139882
  var platformString = platform === "ios" ? "iPhone" : "Android phone";
139777
139883
  var fontA11y = mapFontScaleToCategory(fontScale, platform);
139778
139884
  var normalizedFontScale = convertToAndroidStyleScale(fontScale, platform);
@@ -139780,18 +139886,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139780
139886
  }
139781
139887
  var import_native_modules16 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
139782
139888
  var import_react_native37 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
139783
- var import_react25 = _$$_REQUIRE(_dependencyMap[9], "react");
139889
+ var import_react26 = _$$_REQUIRE(_dependencyMap[9], "react");
139784
139890
  function useGeolocation({
139785
139891
  accuracy,
139786
139892
  distanceInterval,
139787
139893
  timeInterval
139788
139894
  }) {
139789
139895
  var isVisible = (0, import_react_native37.useVisibility)();
139790
- var _ref36 = (0, import_react25.useState)(null),
139791
- _ref37 = _slicedToArray(_ref36, 2),
139792
- location = _ref37[0],
139793
- setLocation = _ref37[1];
139794
- (0, import_react25.useEffect)(() => {
139896
+ var _ref40 = (0, import_react26.useState)(null),
139897
+ _ref41 = _slicedToArray(_ref40, 2),
139898
+ location = _ref41[0],
139899
+ setLocation = _ref41[1];
139900
+ (0, import_react26.useEffect)(() => {
139795
139901
  if (!isVisible) {
139796
139902
  return;
139797
139903
  }
@@ -139808,17 +139914,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139808
139914
  return location;
139809
139915
  }
139810
139916
  var import_react_native38 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
139811
- var import_react26 = _$$_REQUIRE(_dependencyMap[9], "react");
139917
+ var import_react27 = _$$_REQUIRE(_dependencyMap[9], "react");
139812
139918
  function useWaitForReturnNavigator() {
139813
- var callbacks = (0, import_react26.useRef)([]).current;
139919
+ var callbacks = (0, import_react27.useRef)([]).current;
139814
139920
  var navigation = (0, import_react_native38.useNavigation)();
139815
- var startNavigating = (0, import_react26.useCallback)((route, params) => {
139921
+ var startNavigating = (0, import_react27.useCallback)((route, params) => {
139816
139922
  return new Promise(resolve => {
139817
139923
  callbacks.push(resolve);
139818
139924
  navigation.navigate(route, params);
139819
139925
  });
139820
139926
  }, [callbacks, navigation]);
139821
- var handleVisibilityChange = (0, import_react26.useCallback)(state => {
139927
+ var handleVisibilityChange = (0, import_react27.useCallback)(state => {
139822
139928
  if (state === "visible" && callbacks.length > 0) {
139823
139929
  for (var callback of callbacks) {
139824
139930
  callback();
@@ -139840,9 +139946,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139840
139946
  }
139841
139947
  var import_native_modules17 = _$$_REQUIRE(_dependencyMap[5], "@apps-in-toss/native-modules");
139842
139948
  var import_react_native39 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
139843
- var import_tds_react_native13 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
139949
+ var import_tds_react_native15 = _$$_REQUIRE(_dependencyMap[7], "@toss/tds-react-native");
139844
139950
  function useHandleWebViewProcessDidTerminate(webViewRef) {
139845
- var toast = (0, import_tds_react_native13.useToast)();
139951
+ var toast = (0, import_tds_react_native15.useToast)();
139846
139952
  return () => {
139847
139953
  webViewDebugLog("AppsInTossWebViewProcessDidTerminate", {});
139848
139954
  toast.open("\uBB38\uC81C\uAC00 \uC0DD\uACA8\uC11C \uBBF8\uB2C8\uC571\uC744 \uB2E4\uC2DC \uC2DC\uC791\uD588\uC5B4\uC694.", {
@@ -139852,7 +139958,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139852
139958
  webViewRef.current?.reload();
139853
139959
  };
139854
139960
  }
139855
- function webViewMemoryDebugLog(_x5) {
139961
+ function webViewMemoryDebugLog(_x6) {
139856
139962
  return _webViewMemoryDebugLog.apply(this, arguments);
139857
139963
  }
139858
139964
  function _webViewMemoryDebugLog() {
@@ -139946,23 +140052,23 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139946
140052
  var TYPES = ["partner", "external", "game"];
139947
140053
  var WEBVIEW_TYPES = {
139948
140054
  partner: PartnerWebView,
139949
- external: import_tds_react_native14.ExternalWebViewScreen,
140055
+ external: import_tds_react_native16.ExternalWebViewScreen,
139950
140056
  game: GameWebView
139951
140057
  };
139952
140058
  function mergeSchemeQueryParamsInto(url) {
139953
140059
  var baseUrl = new URL(url);
139954
140060
  var schemeUrl = new URL((0, import_react_native41.getSchemeUri)());
139955
140061
  var resultUrl = new URL(schemeUrl.pathname, baseUrl.origin);
139956
- for (var _ref38 of baseUrl.searchParams.entries()) {
139957
- var _ref39 = _slicedToArray(_ref38, 2);
139958
- var key = _ref39[0];
139959
- var value = _ref39[1];
140062
+ for (var _ref42 of baseUrl.searchParams.entries()) {
140063
+ var _ref43 = _slicedToArray(_ref42, 2);
140064
+ var key = _ref43[0];
140065
+ var value = _ref43[1];
139960
140066
  resultUrl.searchParams.set(key, value);
139961
140067
  }
139962
- for (var _ref40 of schemeUrl.searchParams.entries()) {
139963
- var _ref41 = _slicedToArray(_ref40, 2);
139964
- var _key = _ref41[0];
139965
- var _value = _ref41[1];
140068
+ for (var _ref44 of schemeUrl.searchParams.entries()) {
140069
+ var _ref45 = _slicedToArray(_ref44, 2);
140070
+ var _key = _ref45[0];
140071
+ var _value = _ref45[1];
139966
140072
  resultUrl.searchParams.set(_key, _value);
139967
140073
  }
139968
140074
  return resultUrl;
@@ -139972,8 +140078,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139972
140078
  var devUrl = `http://${local.host}:${local.port}`;
139973
140079
  return mergeSchemeQueryParamsInto(devUrl);
139974
140080
  }
139975
- var _ref42 = (0, import_native_modules18.safeSyncPostMessage)("getWebBundleURL", {}),
139976
- rawUrl = _ref42.url;
140081
+ var _ref46 = (0, import_native_modules18.safeSyncPostMessage)("getWebBundleURL", {}),
140082
+ rawUrl = _ref46.url;
139977
140083
  var url = mergeSchemeQueryParamsInto(rawUrl);
139978
140084
  var deploymentId = env.getDeploymentId();
139979
140085
  if (deploymentId) {
@@ -139990,17 +140096,17 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
139990
140096
  if (!TYPES.includes(type)) {
139991
140097
  throw new Error(`Invalid WebView type: '${type}'`);
139992
140098
  }
139993
- var webViewRef = (0, import_react27.useRef)(null);
139994
- var url = (0, import_react27.useMemo)(() => getWebViewURL(local), [local]);
140099
+ var webViewRef = (0, import_react28.useRef)(null);
140100
+ var url = (0, import_react28.useMemo)(() => getWebViewURL(local), [local]);
139995
140101
  var webBackHandler = useWebBackHandler(url, webViewRef);
139996
140102
  var global2 = getAppsInTossGlobals();
139997
140103
  var insets = (0, import_react_native_safe_area_context3.useSafeAreaInsets)();
139998
140104
  var navigationBarContext = useNavigationBarContext();
139999
140105
  var safeAreaInsetsEvent = useSafeAreaInsetsEvent();
140000
- var _ref43 = (0, import_react27.useState)(props.allowsBackForwardNavigationGestures),
140001
- _ref44 = _slicedToArray(_ref43, 2),
140002
- allowsBackForwardNavigationGestures = _ref44[0],
140003
- setAllowsBackForwardNavigationGestures = _ref44[1];
140106
+ var _ref47 = (0, import_react28.useState)(props.allowsBackForwardNavigationGestures),
140107
+ _ref48 = _slicedToArray(_ref47, 2),
140108
+ allowsBackForwardNavigationGestures = _ref48[0],
140109
+ setAllowsBackForwardNavigationGestures = _ref48[1];
140004
140110
  var handler = useBridgeHandler({
140005
140111
  onMessage,
140006
140112
  eventListenerMap: {
@@ -140008,7 +140114,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140008
140114
  navigationAccessoryEvent: ({
140009
140115
  onEvent,
140010
140116
  onError
140011
- }) => import_tds_react_native14.tdsEvent.addEventListener("navigationAccessoryEvent", {
140117
+ }) => import_tds_react_native16.tdsEvent.addEventListener("navigationAccessoryEvent", {
140012
140118
  onEvent,
140013
140119
  onError
140014
140120
  }),
@@ -140078,19 +140184,19 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140078
140184
  return appsInTossAsyncBridges.setIosSwipeGestureEnabled(options);
140079
140185
  },
140080
140186
  addAccessoryButton: function () {
140081
- var _ref45 = _asyncToGenerator(function* (params) {
140187
+ var _ref49 = _asyncToGenerator(function* (params) {
140082
140188
  return navigationBarContext.addNavigationRightButton(params);
140083
140189
  });
140084
- return function addAccessoryButton(_x6) {
140085
- return _ref45.apply(this, arguments);
140190
+ return function addAccessoryButton(_x7) {
140191
+ return _ref49.apply(this, arguments);
140086
140192
  };
140087
140193
  }(),
140088
140194
  removeAccessoryButton: function () {
140089
- var _ref46 = _asyncToGenerator(function* () {
140195
+ var _ref50 = _asyncToGenerator(function* () {
140090
140196
  return navigationBarContext.removeNavigationRightButton();
140091
140197
  });
140092
140198
  return function removeAccessoryButton() {
140093
- return _ref46.apply(this, arguments);
140199
+ return _ref50.apply(this, arguments);
140094
140200
  };
140095
140201
  }(),
140096
140202
  requestPermission: appsInTossAsyncBridges.requestPermission,
@@ -140117,16 +140223,16 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140117
140223
  tossAdEventLog,
140118
140224
  memoryDebugLog: webViewMemoryDebugLog,
140119
140225
  debugLog: function () {
140120
- var _ref47 = _asyncToGenerator(function* (event) {
140226
+ var _ref51 = _asyncToGenerator(function* (event) {
140121
140227
  sendLog(event);
140122
140228
  });
140123
- return function debugLog(_x7) {
140124
- return _ref47.apply(this, arguments);
140229
+ return function debugLog(_x8) {
140230
+ return _ref51.apply(this, arguments);
140125
140231
  };
140126
140232
  }()
140127
140233
  }
140128
140234
  });
140129
- var headerPropForExternalWebView = (0, import_react27.useMemo)(() => {
140235
+ var headerPropForExternalWebView = (0, import_react28.useMemo)(() => {
140130
140236
  var parsedNavigationBar = global2.navigationBar != null ? safeParseNavigationBar(global2.navigationBar) : null;
140131
140237
  var initialAccessoryButton = parsedNavigationBar?.initialAccessoryButton;
140132
140238
  var withBackButton = parsedNavigationBar?.withBackButton ?? true;
@@ -140147,7 +140253,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140147
140253
  colorPreference: "light"
140148
140254
  });
140149
140255
  var refs = mergeRefs(handler.ref, webViewRef);
140150
- (0, import_react27.useEffect)(() => {
140256
+ (0, import_react28.useEffect)(() => {
140151
140257
  var callback = () => {
140152
140258
  webBackHandler.handleWebBack();
140153
140259
  return true;
@@ -140210,7 +140316,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140210
140316
  __reExport(src_exports, _$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/types"), module.exports);
140211
140317
  var import_types = _$$_REQUIRE(_dependencyMap[20], "@apps-in-toss/types");
140212
140318
  var import_react_native46 = _$$_REQUIRE(_dependencyMap[6], "@granite-js/react-native");
140213
- var import_react30 = _$$_REQUIRE(_dependencyMap[9], "react");
140319
+ var import_react31 = _$$_REQUIRE(_dependencyMap[9], "react");
140214
140320
  var import_react_native47 = _$$_REQUIRE(_dependencyMap[8], "react-native");
140215
140321
  var SDK_ID = "106";
140216
140322
  var LIST_BANNER_STYLE_ID = "1";
@@ -140397,7 +140503,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140397
140503
  function isStructurallyValidAd(ad) {
140398
140504
  return Boolean(ad && ad.creative && typeof ad.creative === "object");
140399
140505
  }
140400
- function loadAd(_x8) {
140506
+ function loadAd(_x9) {
140401
140507
  return _loadAd.apply(this, arguments);
140402
140508
  }
140403
140509
  function _loadAd() {
@@ -140583,7 +140689,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140583
140689
  globalEventDeduplicator.markTracked(this.requestId, this.creativeId, eventType);
140584
140690
  }
140585
140691
  });
140586
- function track(_x9) {
140692
+ function track(_x0) {
140587
140693
  return _track.apply(this, arguments);
140588
140694
  }
140589
140695
  return track;
@@ -140605,7 +140711,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140605
140711
  body: JSON.stringify(payload)
140606
140712
  });
140607
140713
  });
140608
- function sendTrackingRequest(_x0, _x1) {
140714
+ function sendTrackingRequest(_x1, _x10) {
140609
140715
  return _sendTrackingRequest.apply(this, arguments);
140610
140716
  }
140611
140717
  return sendTrackingRequest;
@@ -140613,7 +140719,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140613
140719
  }]);
140614
140720
  }();
140615
140721
  var import_react_native_svg2 = _$$_REQUIRE(_dependencyMap[14], "@granite-js/native/react-native-svg");
140616
- var import_react28 = _$$_REQUIRE(_dependencyMap[9], "react");
140722
+ var import_react29 = _$$_REQUIRE(_dependencyMap[9], "react");
140617
140723
  var import_react_native44 = _$$_REQUIRE(_dependencyMap[8], "react-native");
140618
140724
  var import_jsx_runtime25 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
140619
140725
  var ARROW_PATH = "m7.5 20.4c-.5-.5-.5-1.2 0-1.7l6.7-6.7-6.8-6.7c-.5-.5-.5-1.2 0-1.7s1.2-.5 1.7 0l7.5 7.5c.5.5.5 1.2 0 1.7l-7.5 7.5c-.2.3-.5.4-.8.4s-.6-.1-.8-.3z";
@@ -140632,7 +140738,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140632
140738
  paddingStyle,
140633
140739
  onPress
140634
140740
  }) {
140635
- var scale = (0, import_react28.useRef)(new import_react_native44.Animated.Value(1)).current;
140741
+ var scale = (0, import_react29.useRef)(new import_react_native44.Animated.Value(1)).current;
140636
140742
  var animateScale = toValue => {
140637
140743
  import_react_native44.Animated.timing(scale, {
140638
140744
  toValue,
@@ -140909,7 +141015,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140909
141015
  }
140910
141016
  });
140911
141017
  var import_react_native_svg3 = _$$_REQUIRE(_dependencyMap[14], "@granite-js/native/react-native-svg");
140912
- var import_react29 = _$$_REQUIRE(_dependencyMap[9], "react");
141018
+ var import_react30 = _$$_REQUIRE(_dependencyMap[9], "react");
140913
141019
  var import_react_native45 = _$$_REQUIRE(_dependencyMap[8], "react-native");
140914
141020
  var import_jsx_runtime26 = _$$_REQUIRE(_dependencyMap[10], "react/jsx-runtime");
140915
141021
  var SQUIRCLE_PATH = "M0 17.352C0 3.564 3.564 0 17.352 0H18.648C32.436 0 36 3.564 36 17.352V18.648C36 32.436 32.436 36 18.648 36H17.352C3.564 36 0 32.436 0 18.648V17.352Z";
@@ -140923,8 +141029,8 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
140923
141029
  colors: colors4,
140924
141030
  onPress
140925
141031
  }) {
140926
- var scale = (0, import_react29.useRef)(new import_react_native45.Animated.Value(1)).current;
140927
- var clipIdRef = (0, import_react29.useRef)(`clip-${Math.random().toString(36).slice(2)}`);
141032
+ var scale = (0, import_react30.useRef)(new import_react_native45.Animated.Value(1)).current;
141033
+ var clipIdRef = (0, import_react30.useRef)(`clip-${Math.random().toString(36).slice(2)}`);
140928
141034
  var animateScale = toValue => {
140929
141035
  import_react_native45.Animated.timing(scale, {
140930
141036
  toValue,
@@ -141237,27 +141343,27 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
141237
141343
  onAdImpression = props.onAdImpression,
141238
141344
  onAdFailedToRender = props.onAdFailedToRender,
141239
141345
  onNoFill = props.onNoFill;
141240
- var slotIdRef = (0, import_react30.useRef)(createSlotId());
141241
- var _ref48 = (0, import_react30.useState)(null),
141242
- _ref49 = _slicedToArray(_ref48, 2),
141243
- ad = _ref49[0],
141244
- setAd = _ref49[1];
141245
- var _ref50 = (0, import_react30.useState)(true),
141246
- _ref51 = _slicedToArray(_ref50, 2),
141247
- isAdBadgeEnabled = _ref51[0],
141248
- setIsAdBadgeEnabled = _ref51[1];
141249
- var eventTrackerRef = (0, import_react30.useRef)(null);
141250
- var eventPayloadRef = (0, import_react30.useRef)(null);
141251
- var hasRenderedRef = (0, import_react30.useRef)(false);
141252
- var hasLoggedImp1pxRef = (0, import_react30.useRef)(false);
141253
- var hasLoggedImp100pRef = (0, import_react30.useRef)(false);
141254
- var hasNotifiedViewableRef = (0, import_react30.useRef)(false);
141255
- var viewableTimerRef = (0, import_react30.useRef)(null);
141256
- var refetchIntervalMsRef = (0, import_react30.useRef)(null);
141257
- var lastImp1pxAtRef = (0, import_react30.useRef)(null);
141258
- var loadingRef = (0, import_react30.useRef)(false);
141259
- var loadRef = (0, import_react30.useRef)(null);
141260
- var callbacksRef = (0, import_react30.useRef)({
141346
+ var slotIdRef = (0, import_react31.useRef)(createSlotId());
141347
+ var _ref52 = (0, import_react31.useState)(null),
141348
+ _ref53 = _slicedToArray(_ref52, 2),
141349
+ ad = _ref53[0],
141350
+ setAd = _ref53[1];
141351
+ var _ref54 = (0, import_react31.useState)(true),
141352
+ _ref55 = _slicedToArray(_ref54, 2),
141353
+ isAdBadgeEnabled = _ref55[0],
141354
+ setIsAdBadgeEnabled = _ref55[1];
141355
+ var eventTrackerRef = (0, import_react31.useRef)(null);
141356
+ var eventPayloadRef = (0, import_react31.useRef)(null);
141357
+ var hasRenderedRef = (0, import_react31.useRef)(false);
141358
+ var hasLoggedImp1pxRef = (0, import_react31.useRef)(false);
141359
+ var hasLoggedImp100pRef = (0, import_react31.useRef)(false);
141360
+ var hasNotifiedViewableRef = (0, import_react31.useRef)(false);
141361
+ var viewableTimerRef = (0, import_react31.useRef)(null);
141362
+ var refetchIntervalMsRef = (0, import_react31.useRef)(null);
141363
+ var lastImp1pxAtRef = (0, import_react31.useRef)(null);
141364
+ var loadingRef = (0, import_react31.useRef)(false);
141365
+ var loadRef = (0, import_react31.useRef)(null);
141366
+ var callbacksRef = (0, import_react31.useRef)({
141261
141367
  onAdRendered,
141262
141368
  onAdViewable,
141263
141369
  onAdClicked,
@@ -141265,7 +141371,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
141265
141371
  onAdFailedToRender,
141266
141372
  onNoFill
141267
141373
  });
141268
- var isMountedRef = (0, import_react30.useRef)(false);
141374
+ var isMountedRef = (0, import_react31.useRef)(false);
141269
141375
  var colorScheme = (0, import_react_native47.useColorScheme)();
141270
141376
  var selectedTheme = theme ?? DEFAULT_INLINE_AD_THEME;
141271
141377
  var resolvedTheme = selectedTheme === "auto" ? colorScheme === "dark" ? "dark" : "light" : selectedTheme;
@@ -141282,7 +141388,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
141282
141388
  onAdFailedToRender,
141283
141389
  onNoFill
141284
141390
  };
141285
- (0, import_react30.useEffect)(() => {
141391
+ (0, import_react31.useEffect)(() => {
141286
141392
  isMountedRef.current = true;
141287
141393
  return () => {
141288
141394
  isMountedRef.current = false;
@@ -141292,7 +141398,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
141292
141398
  }
141293
141399
  };
141294
141400
  }, []);
141295
- (0, import_react30.useEffect)(() => {
141401
+ (0, import_react31.useEffect)(() => {
141296
141402
  var normalizedAdGroupId = normalizeAdGroupId(adGroupId);
141297
141403
  var loadAdRequest = () => {
141298
141404
  if (loadingRef.current) {
@@ -141363,7 +141469,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
141363
141469
  loadRef.current?.();
141364
141470
  }
141365
141471
  });
141366
- (0, import_react30.useEffect)(() => {
141472
+ (0, import_react31.useEffect)(() => {
141367
141473
  if (!ad || hasRenderedRef.current) {
141368
141474
  return;
141369
141475
  }
@@ -142741,6 +142847,47 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
142741
142847
  });
142742
142848
  return _appLogin.apply(this, arguments);
142743
142849
  }
142850
+ var GAME_CENTER_MIN_VERSION = {
142851
+ android: "5.221.0",
142852
+ ios: "5.221.0"
142853
+ };
142854
+ var USER_KEY_MIN_VERSION = {
142855
+ android: "5.232.0",
142856
+ ios: "5.232.0"
142857
+ };
142858
+ var PROMOTION_REWARD_MIN_VERSION = {
142859
+ android: "5.232.0",
142860
+ ios: "5.232.0"
142861
+ };
142862
+ var GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = {
142863
+ android: "5.237.0",
142864
+ ios: "5.237.0"
142865
+ };
142866
+ var GET_SERVER_TIME_MIN_VERSION = {
142867
+ android: "5.245.0",
142868
+ ios: "5.245.0"
142869
+ };
142870
+ function getAnonymousKey() {
142871
+ return _getAnonymousKey.apply(this, arguments);
142872
+ }
142873
+ function _getAnonymousKey() {
142874
+ _getAnonymousKey = _asyncToGenerator(function* () {
142875
+ var isSupported = isMinVersionSupported(USER_KEY_MIN_VERSION);
142876
+ if (!isSupported) {
142877
+ return;
142878
+ }
142879
+ try {
142880
+ var response = yield safePostMessage("getUserKeyForGame", {});
142881
+ if (response.type === "HASH") {
142882
+ return response;
142883
+ }
142884
+ return "ERROR";
142885
+ } catch {
142886
+ return "ERROR";
142887
+ }
142888
+ });
142889
+ return _getAnonymousKey.apply(this, arguments);
142890
+ }
142744
142891
  function normalizeParams(params) {
142745
142892
  return Object.fromEntries(Object.entries(params).filter(([, value]) => value !== void 0).map(([key, value]) => [key, String(value)]));
142746
142893
  }
@@ -142749,11 +142896,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
142749
142896
  }
142750
142897
  function _eventLog() {
142751
142898
  _eventLog = _asyncToGenerator(function* (params) {
142899
+ var logParams = {
142900
+ anonymous_key: yield cache("eventLog.defaultParams.anonymous_key", _asyncToGenerator(function* () {
142901
+ var result = yield getAnonymousKey();
142902
+ return typeof result === "object" ? result.hash : "NONE";
142903
+ })),
142904
+ ...params.params
142905
+ };
142752
142906
  if (MiniAppModule.getConstants().operationalEnvironment === "sandbox") {
142753
142907
  console.log("[eventLogDebug]", {
142754
142908
  log_name: params.log_name,
142755
142909
  log_type: params.log_type,
142756
- params: normalizeParams(params.params)
142910
+ params: normalizeParams(logParams)
142757
142911
  });
142758
142912
  return;
142759
142913
  }
@@ -142767,11 +142921,26 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
142767
142921
  return safePostMessage("eventLog", {
142768
142922
  log_name: params.log_name,
142769
142923
  log_type: params.log_type,
142770
- params: normalizeParams(params.params)
142924
+ params: normalizeParams(logParams)
142771
142925
  });
142772
142926
  });
142773
142927
  return _eventLog.apply(this, arguments);
142774
142928
  }
142929
+ var _cache = {};
142930
+ function cache(_x6, _x7) {
142931
+ return _cache2.apply(this, arguments);
142932
+ }
142933
+ function _cache2() {
142934
+ _cache2 = _asyncToGenerator(function* (key, fetcher) {
142935
+ if (_cache[key]) {
142936
+ return _cache[key];
142937
+ }
142938
+ var value = yield fetcher();
142939
+ _cache[key] = value;
142940
+ return value;
142941
+ });
142942
+ return _cache2.apply(this, arguments);
142943
+ }
142775
142944
  var import_types2 = _$$_REQUIRE(_dependencyMap[10], "@apps-in-toss/types");
142776
142945
  function createPermissionFunction({
142777
142946
  handler,
@@ -142805,7 +142974,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
142805
142974
  maxWidth: options?.maxWidth ?? DEFAULT_MAX_WIDTH
142806
142975
  });
142807
142976
  });
142808
- return function handler(_x6) {
142977
+ return function handler(_x8) {
142809
142978
  return _ref4.apply(this, arguments);
142810
142979
  };
142811
142980
  }(),
@@ -142826,7 +142995,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
142826
142995
  done: contacts.done
142827
142996
  };
142828
142997
  });
142829
- return function handler(_x7) {
142998
+ return function handler(_x9) {
142830
142999
  return _ref5.apply(this, arguments);
142831
143000
  };
142832
143001
  }(),
@@ -142853,7 +143022,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
142853
143022
  var _ref6 = _asyncToGenerator(function* (options) {
142854
143023
  return safePostMessage("getCurrentLocation", options);
142855
143024
  });
142856
- return function handler(_x8) {
143025
+ return function handler(_x0) {
142857
143026
  return _ref6.apply(this, arguments);
142858
143027
  };
142859
143028
  }(),
@@ -142901,7 +143070,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
142901
143070
  android: "5.240.0",
142902
143071
  ios: "5.239.0"
142903
143072
  };
142904
- function getTossShareLink(_x9, _x0) {
143073
+ function getTossShareLink(_x1, _x10) {
142905
143074
  return _getTossShareLink.apply(this, arguments);
142906
143075
  }
142907
143076
  function _getTossShareLink() {
@@ -142918,7 +143087,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
142918
143087
  });
142919
143088
  return _getTossShareLink.apply(this, arguments);
142920
143089
  }
142921
- function getTossShareLinkV1(_x1) {
143090
+ function getTossShareLinkV1(_x11) {
142922
143091
  return _getTossShareLinkV.apply(this, arguments);
142923
143092
  }
142924
143093
  function _getTossShareLinkV() {
@@ -143048,7 +143217,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143048
143217
  isProductGranted
143049
143218
  });
143050
143219
  });
143051
- return function onPurchased(_x10) {
143220
+ return function onPurchased(_x12) {
143052
143221
  return _ref7.apply(this, arguments);
143053
143222
  };
143054
143223
  }(),
@@ -143096,7 +143265,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143096
143265
  });
143097
143266
  return _getPendingOrders.apply(this, arguments);
143098
143267
  }
143099
- function getCompletedOrRefundedOrders(_x11) {
143268
+ function getCompletedOrRefundedOrders(_x13) {
143100
143269
  return _getCompletedOrRefundedOrders.apply(this, arguments);
143101
143270
  }
143102
143271
  function _getCompletedOrRefundedOrders() {
@@ -143114,7 +143283,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143114
143283
  });
143115
143284
  return _getCompletedOrRefundedOrders.apply(this, arguments);
143116
143285
  }
143117
- function completeProductGrant(_x12) {
143286
+ function completeProductGrant(_x14) {
143118
143287
  return _completeProductGrant.apply(this, arguments);
143119
143288
  }
143120
143289
  function _completeProductGrant() {
@@ -143130,7 +143299,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143130
143299
  });
143131
143300
  return _completeProductGrant.apply(this, arguments);
143132
143301
  }
143133
- function getSubscriptionInfo(_x13) {
143302
+ function getSubscriptionInfo(_x15) {
143134
143303
  return _getSubscriptionInfo.apply(this, arguments);
143135
143304
  }
143136
143305
  function _getSubscriptionInfo() {
@@ -143172,7 +143341,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143172
143341
  isProductGranted
143173
143342
  });
143174
143343
  });
143175
- return function onPurchased(_x14) {
143344
+ return function onPurchased(_x16) {
143176
143345
  return _ref8.apply(this, arguments);
143177
143346
  };
143178
143347
  }(),
@@ -143197,7 +143366,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143197
143366
  completeProductGrant,
143198
143367
  getSubscriptionInfo
143199
143368
  };
143200
- function saveBase64Data(_x15) {
143369
+ function saveBase64Data(_x17) {
143201
143370
  return _saveBase64Data.apply(this, arguments);
143202
143371
  }
143203
143372
  function _saveBase64Data() {
@@ -143214,7 +143383,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143214
143383
  });
143215
143384
  return _saveBase64Data.apply(this, arguments);
143216
143385
  }
143217
- function openPDFViewer(_x16) {
143386
+ function openPDFViewer(_x18) {
143218
143387
  return _openPDFViewer.apply(this, arguments);
143219
143388
  }
143220
143389
  function _openPDFViewer() {
@@ -143232,7 +143401,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143232
143401
  });
143233
143402
  return _openPDFViewer.apply(this, arguments);
143234
143403
  }
143235
- function fetchAlbumItems(_x17) {
143404
+ function fetchAlbumItems(_x19) {
143236
143405
  return _fetchAlbumItems.apply(this, arguments);
143237
143406
  }
143238
143407
  function _fetchAlbumItems() {
@@ -143250,7 +143419,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143250
143419
  });
143251
143420
  return _fetchAlbumItems.apply(this, arguments);
143252
143421
  }
143253
- function setDeviceOrientation(_x18) {
143422
+ function setDeviceOrientation(_x20) {
143254
143423
  return _setDeviceOrientation.apply(this, arguments);
143255
143424
  }
143256
143425
  function _setDeviceOrientation() {
@@ -143292,26 +143461,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143292
143461
  clearItems
143293
143462
  };
143294
143463
  var import_react_native7 = _$$_REQUIRE(_dependencyMap[9], "@granite-js/react-native");
143295
- var GAME_CENTER_MIN_VERSION = {
143296
- android: "5.221.0",
143297
- ios: "5.221.0"
143298
- };
143299
- var USER_KEY_MIN_VERSION = {
143300
- android: "5.232.0",
143301
- ios: "5.232.0"
143302
- };
143303
- var PROMOTION_REWARD_MIN_VERSION = {
143304
- android: "5.232.0",
143305
- ios: "5.232.0"
143306
- };
143307
- var GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = {
143308
- android: "5.237.0",
143309
- ios: "5.237.0"
143310
- };
143311
- var GET_SERVER_TIME_MIN_VERSION = {
143312
- android: "5.245.0",
143313
- ios: "5.245.0"
143314
- };
143315
143464
  function openGameCenterLeaderboard() {
143316
143465
  return _openGameCenterLeaderboard.apply(this, arguments);
143317
143466
  }
@@ -143344,7 +143493,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143344
143493
  });
143345
143494
  return _getGameCenterGameProfile.apply(this, arguments);
143346
143495
  }
143347
- function submitGameCenterLeaderBoardScore(_x19) {
143496
+ function submitGameCenterLeaderBoardScore(_x21) {
143348
143497
  return _submitGameCenterLeaderBoardScore.apply(this, arguments);
143349
143498
  }
143350
143499
  function _submitGameCenterLeaderBoardScore() {
@@ -143357,27 +143506,6 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143357
143506
  });
143358
143507
  return _submitGameCenterLeaderBoardScore.apply(this, arguments);
143359
143508
  }
143360
- function getAnonymousKey() {
143361
- return _getAnonymousKey.apply(this, arguments);
143362
- }
143363
- function _getAnonymousKey() {
143364
- _getAnonymousKey = _asyncToGenerator(function* () {
143365
- var isSupported = isMinVersionSupported(USER_KEY_MIN_VERSION);
143366
- if (!isSupported) {
143367
- return;
143368
- }
143369
- try {
143370
- var response = yield safePostMessage("getUserKeyForGame", {});
143371
- if (response.type === "HASH") {
143372
- return response;
143373
- }
143374
- return "ERROR";
143375
- } catch {
143376
- return "ERROR";
143377
- }
143378
- });
143379
- return _getAnonymousKey.apply(this, arguments);
143380
- }
143381
143509
  function getUserKeyForGame() {
143382
143510
  return _getUserKeyForGame.apply(this, arguments);
143383
143511
  }
@@ -143390,7 +143518,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143390
143518
  function isGrantPromotionRewardError(error) {
143391
143519
  return typeof error === "object" && error !== null && "code" in error && typeof error.code === "string" && "message" in error && typeof error.message === "string";
143392
143520
  }
143393
- function grantPromotionReward(_x20) {
143521
+ function grantPromotionReward(_x22) {
143394
143522
  return _grantPromotionReward.apply(this, arguments);
143395
143523
  }
143396
143524
  function _grantPromotionReward() {
@@ -143417,7 +143545,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143417
143545
  });
143418
143546
  return _grantPromotionReward.apply(this, arguments);
143419
143547
  }
143420
- function grantPromotionRewardForGame(_x21) {
143548
+ function grantPromotionRewardForGame(_x23) {
143421
143549
  return _grantPromotionRewardForGame.apply(this, arguments);
143422
143550
  }
143423
143551
  function _grantPromotionRewardForGame() {
@@ -143468,7 +143596,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143468
143596
  });
143469
143597
  return unregisterCallbacks;
143470
143598
  }
143471
- function appsInTossSignTossCert(_x22) {
143599
+ function appsInTossSignTossCert(_x24) {
143472
143600
  return _appsInTossSignTossCert.apply(this, arguments);
143473
143601
  }
143474
143602
  function _appsInTossSignTossCert() {
@@ -143505,7 +143633,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143505
143633
  return _getServerTime.apply(this, arguments);
143506
143634
  }
143507
143635
  getServerTime.isSupported = () => isMinVersionSupported(GET_SERVER_TIME_MIN_VERSION);
143508
- function getConsentedUserData(_x23) {
143636
+ function getConsentedUserData(_x25) {
143509
143637
  return _getConsentedUserData.apply(this, arguments);
143510
143638
  }
143511
143639
  function _getConsentedUserData() {
@@ -143616,7 +143744,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143616
143744
  function generateHapticFeedback(options) {
143617
143745
  return CommonModule2.generateHapticFeedback(options);
143618
143746
  }
143619
- function share(_x24) {
143747
+ function share(_x26) {
143620
143748
  return _share.apply(this, arguments);
143621
143749
  }
143622
143750
  function _share() {
@@ -143628,7 +143756,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143628
143756
  function setSecureScreen(options) {
143629
143757
  return CommonModule2.setSecureScreen(options);
143630
143758
  }
143631
- function setScreenAwakeMode(_x25) {
143759
+ function setScreenAwakeMode(_x27) {
143632
143760
  return _setScreenAwakeMode.apply(this, arguments);
143633
143761
  }
143634
143762
  function _setScreenAwakeMode() {
@@ -143640,7 +143768,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
143640
143768
  function getNetworkStatus() {
143641
143769
  return CommonModule2.getNetworkStatus();
143642
143770
  }
143643
- function setIosSwipeGestureEnabled(_x26) {
143771
+ function setIosSwipeGestureEnabled(_x28) {
143644
143772
  return _setIosSwipeGestureEnabled.apply(this, arguments);
143645
143773
  }
143646
143774
  function _setIosSwipeGestureEnabled() {
@@ -212073,7 +212201,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
212073
212201
  }
212074
212202
  });
212075
212203
  });
212076
- },2524,[2525,2533,2534,2535,2536,2537,2538,2539,2540,2541,2542,2543,2545,2546,2547,2548,2549,2550,2551,2554,2555,2556,2557,2558,2559,2560,2561,2562,2564,2565,2566,2567,2568,2569,2570,2571,2572,2573],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/async-bridges.ts");
212204
+ },2524,[2525,2533,2534,2535,2536,2537,2538,2539,2540,2541,2542,2543,2545,2546,2547,2548,2549,2550,2551,2556,2557,2558,2559,2560,2561,2562,2563,2564,2565,2566,2552,2567,2568,2569,2570,2571,2572,2573],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/async-bridges.ts");
212077
212205
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
212078
212206
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
212079
212207
  Object.defineProperty(exports, "__esModule", {
@@ -212559,8 +212687,9 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
212559
212687
  });
212560
212688
  exports.eventLog = eventLog;
212561
212689
  var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
212562
- var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[2], "./isMinVersionSupported");
212563
- var _natives = _$$_REQUIRE(_dependencyMap[3], "../../natives");
212690
+ var _getAnonymousKey = _$$_REQUIRE(_dependencyMap[2], "./getAnonymousKey");
212691
+ var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[3], "./isMinVersionSupported");
212692
+ var _natives = _$$_REQUIRE(_dependencyMap[4], "../../natives");
212564
212693
  function normalizeParams(params) {
212565
212694
  return Object.fromEntries(Object.entries(params).filter(([, value]) => value !== undefined).map(([key, value]) => [key, String(value)]));
212566
212695
  }
@@ -212569,11 +212698,18 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
212569
212698
  }
212570
212699
  function _eventLog() {
212571
212700
  _eventLog = (0, _asyncToGenerator2.default)(function* (params) {
212701
+ var logParams = {
212702
+ anonymous_key: yield cache('eventLog.defaultParams.anonymous_key', (0, _asyncToGenerator2.default)(function* () {
212703
+ var result = yield (0, _getAnonymousKey.getAnonymousKey)();
212704
+ return typeof result === 'object' ? result.hash : 'NONE';
212705
+ })),
212706
+ ...params.params
212707
+ };
212572
212708
  if (_natives.MiniAppModule.getConstants().operationalEnvironment === 'sandbox') {
212573
212709
  console.log('[eventLogDebug]', {
212574
212710
  log_name: params.log_name,
212575
212711
  log_type: params.log_type,
212576
- params: normalizeParams(params.params)
212712
+ params: normalizeParams(logParams)
212577
212713
  });
212578
212714
  return;
212579
212715
  }
@@ -212587,12 +212723,59 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
212587
212723
  return (0, _natives.safePostMessage)('eventLog', {
212588
212724
  log_name: params.log_name,
212589
212725
  log_type: params.log_type,
212590
- params: normalizeParams(params.params)
212726
+ params: normalizeParams(logParams)
212591
212727
  });
212592
212728
  });
212593
212729
  return _eventLog.apply(this, arguments);
212594
212730
  }
212595
- },2551,[1,17,2552,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/eventLog.ts");
212731
+ var _cache = {};
212732
+ function cache(_x2, _x3) {
212733
+ return _cache2.apply(this, arguments);
212734
+ }
212735
+ function _cache2() {
212736
+ _cache2 = (0, _asyncToGenerator2.default)(function* (key, fetcher) {
212737
+ if (_cache[key]) {
212738
+ return _cache[key];
212739
+ }
212740
+ var value = yield fetcher();
212741
+ _cache[key] = value;
212742
+ return value;
212743
+ });
212744
+ return _cache2.apply(this, arguments);
212745
+ }
212746
+ },2551,[1,17,2552,2553,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/eventLog.ts");
212747
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
212748
+ var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
212749
+ Object.defineProperty(exports, "__esModule", {
212750
+ value: true
212751
+ });
212752
+ exports.getAnonymousKey = getAnonymousKey;
212753
+ var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
212754
+ var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[2], "./isMinVersionSupported");
212755
+ var _natives = _$$_REQUIRE(_dependencyMap[3], "../../natives");
212756
+ var _constants = _$$_REQUIRE(_dependencyMap[4], "../constants");
212757
+ function getAnonymousKey() {
212758
+ return _getAnonymousKey.apply(this, arguments);
212759
+ }
212760
+ function _getAnonymousKey() {
212761
+ _getAnonymousKey = (0, _asyncToGenerator2.default)(function* () {
212762
+ var isSupported = (0, _isMinVersionSupported.isMinVersionSupported)(_constants.USER_KEY_MIN_VERSION);
212763
+ if (!isSupported) {
212764
+ return;
212765
+ }
212766
+ try {
212767
+ var response = yield (0, _natives.safePostMessage)('getUserKeyForGame', {});
212768
+ if (response.type === 'HASH') {
212769
+ return response;
212770
+ }
212771
+ return 'ERROR';
212772
+ } catch {
212773
+ return 'ERROR';
212774
+ }
212775
+ });
212776
+ return _getAnonymousKey.apply(this, arguments);
212777
+ }
212778
+ },2552,[1,17,2553,2527,2555],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getAnonymousKey.ts");
212596
212779
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
212597
212780
  Object.defineProperty(exports, "__esModule", {
212598
212781
  value: true
@@ -212620,7 +212803,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
212620
212803
  }
212621
212804
  return (0, _compareVersion.compareVersions)(currentVersion, minVersion) >= 0;
212622
212805
  }
212623
- },2552,[34,2527,2553],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/isMinVersionSupported.ts");
212806
+ },2553,[34,2527,2554],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/isMinVersionSupported.ts");
212624
212807
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
212625
212808
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
212626
212809
  Object.defineProperty(exports, "__esModule", {
@@ -212702,7 +212885,34 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
212702
212885
  return 0;
212703
212886
  };
212704
212887
  exports.compareVersions = compareVersions;
212705
- },2553,[1,48],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/utils/compareVersion.ts");
212888
+ },2554,[1,48],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/utils/compareVersion.ts");
212889
+ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
212890
+ Object.defineProperty(exports, "__esModule", {
212891
+ value: true
212892
+ });
212893
+ exports.USER_KEY_MIN_VERSION = exports.PROMOTION_REWARD_MIN_VERSION = exports.GET_SERVER_TIME_MIN_VERSION = exports.GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = exports.GAME_PROFILE_WEBVIEW_URL = exports.GAME_CENTER_MIN_VERSION = void 0;
212894
+ var GAME_PROFILE_WEBVIEW_URL = exports.GAME_PROFILE_WEBVIEW_URL = 'https://service.toss.im/game-center/profile';
212895
+ var GAME_CENTER_MIN_VERSION = exports.GAME_CENTER_MIN_VERSION = {
212896
+ android: '5.221.0',
212897
+ ios: '5.221.0'
212898
+ };
212899
+ var USER_KEY_MIN_VERSION = exports.USER_KEY_MIN_VERSION = {
212900
+ android: '5.232.0',
212901
+ ios: '5.232.0'
212902
+ };
212903
+ var PROMOTION_REWARD_MIN_VERSION = exports.PROMOTION_REWARD_MIN_VERSION = {
212904
+ android: '5.232.0',
212905
+ ios: '5.232.0'
212906
+ };
212907
+ var GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = exports.GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = {
212908
+ android: '5.237.0',
212909
+ ios: '5.237.0'
212910
+ };
212911
+ var GET_SERVER_TIME_MIN_VERSION = exports.GET_SERVER_TIME_MIN_VERSION = {
212912
+ android: '5.245.0',
212913
+ ios: '5.245.0'
212914
+ };
212915
+ },2555,[],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/constants.ts");
212706
212916
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
212707
212917
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
212708
212918
  Object.defineProperty(exports, "__esModule", {
@@ -212747,7 +212957,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
212747
212957
  });
212748
212958
  return _getTossShareLinkV.apply(this, arguments);
212749
212959
  }
212750
- },2554,[1,17,2552,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getTossShareLink.ts");
212960
+ },2556,[1,17,2553,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getTossShareLink.ts");
212751
212961
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
212752
212962
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
212753
212963
  Object.defineProperty(exports, "__esModule", {
@@ -212773,7 +212983,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
212773
212983
  });
212774
212984
  return _setDeviceOrientation.apply(this, arguments);
212775
212985
  }
212776
- },2555,[1,17,2552,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/setDeviceOrientation.ts");
212986
+ },2557,[1,17,2553,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/setDeviceOrientation.ts");
212777
212987
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
212778
212988
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
212779
212989
  Object.defineProperty(exports, "__esModule", {
@@ -212791,7 +213001,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
212791
213001
  });
212792
213002
  return _checkoutPayment.apply(this, arguments);
212793
213003
  }
212794
- },2556,[1,17,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/checkoutPayment.ts");
213004
+ },2558,[1,17,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/checkoutPayment.ts");
212795
213005
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
212796
213006
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
212797
213007
  Object.defineProperty(exports, "__esModule", {
@@ -212819,7 +213029,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
212819
213029
  return _requestTossPayPaysBilling.apply(this, arguments);
212820
213030
  }
212821
213031
  requestTossPayPaysBilling.isSupported = () => (0, _isMinVersionSupported.isMinVersionSupported)(MIN_VERSION);
212822
- },2557,[1,17,2552,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/requestTossPayPaysBilling.ts");
213032
+ },2559,[1,17,2553,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/requestTossPayPaysBilling.ts");
212823
213033
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
212824
213034
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
212825
213035
  Object.defineProperty(exports, "__esModule", {
@@ -212846,7 +213056,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
212846
213056
  });
212847
213057
  return _saveBase64Data.apply(this, arguments);
212848
213058
  }
212849
- },2558,[1,17,2552,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/saveBase64Data.ts");
213059
+ },2560,[1,17,2553,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/saveBase64Data.ts");
212850
213060
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
212851
213061
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
212852
213062
  Object.defineProperty(exports, "__esModule", {
@@ -212874,7 +213084,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
212874
213084
  });
212875
213085
  return _openPDFViewer.apply(this, arguments);
212876
213086
  }
212877
- },2559,[1,17,2552,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/openPDFViewer.ts");
213087
+ },2561,[1,17,2553,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/openPDFViewer.ts");
212878
213088
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
212879
213089
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
212880
213090
  Object.defineProperty(exports, "__esModule", {
@@ -212902,7 +213112,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
212902
213112
  });
212903
213113
  return _fetchAlbumItems.apply(this, arguments);
212904
213114
  }
212905
- },2560,[1,17,2552,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/fetchAlbumItems.ts");
213115
+ },2562,[1,17,2553,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/fetchAlbumItems.ts");
212906
213116
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
212907
213117
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
212908
213118
  Object.defineProperty(exports, "__esModule", {
@@ -212929,7 +213139,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
212929
213139
  });
212930
213140
  return _appsInTossSignTossCert.apply(this, arguments);
212931
213141
  }
212932
- },2561,[1,17,2552,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/appsInTossSignTossCert.ts");
213142
+ },2563,[1,17,2553,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/appsInTossSignTossCert.ts");
212933
213143
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
212934
213144
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
212935
213145
  Object.defineProperty(exports, "__esModule", {
@@ -212953,34 +213163,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
212953
213163
  });
212954
213164
  return _getGameCenterGameProfile.apply(this, arguments);
212955
213165
  }
212956
- },2562,[1,17,2552,2527,2563],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getGameCenterGameProfile.ts");
212957
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
212958
- Object.defineProperty(exports, "__esModule", {
212959
- value: true
212960
- });
212961
- exports.USER_KEY_MIN_VERSION = exports.PROMOTION_REWARD_MIN_VERSION = exports.GET_SERVER_TIME_MIN_VERSION = exports.GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = exports.GAME_PROFILE_WEBVIEW_URL = exports.GAME_CENTER_MIN_VERSION = void 0;
212962
- var GAME_PROFILE_WEBVIEW_URL = exports.GAME_PROFILE_WEBVIEW_URL = 'https://service.toss.im/game-center/profile';
212963
- var GAME_CENTER_MIN_VERSION = exports.GAME_CENTER_MIN_VERSION = {
212964
- android: '5.221.0',
212965
- ios: '5.221.0'
212966
- };
212967
- var USER_KEY_MIN_VERSION = exports.USER_KEY_MIN_VERSION = {
212968
- android: '5.232.0',
212969
- ios: '5.232.0'
212970
- };
212971
- var PROMOTION_REWARD_MIN_VERSION = exports.PROMOTION_REWARD_MIN_VERSION = {
212972
- android: '5.232.0',
212973
- ios: '5.232.0'
212974
- };
212975
- var GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = exports.GET_IS_TOSS_LOGIN_INTEGRATED_SERVICE_MIN_VERSION = {
212976
- android: '5.237.0',
212977
- ios: '5.237.0'
212978
- };
212979
- var GET_SERVER_TIME_MIN_VERSION = exports.GET_SERVER_TIME_MIN_VERSION = {
212980
- android: '5.245.0',
212981
- ios: '5.245.0'
212982
- };
212983
- },2563,[],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/constants.ts");
213166
+ },2564,[1,17,2553,2527,2555],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getGameCenterGameProfile.ts");
212984
213167
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
212985
213168
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
212986
213169
  Object.defineProperty(exports, "__esModule", {
@@ -213010,7 +213193,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
213010
213193
  });
213011
213194
  return _openGameCenterLeaderboard.apply(this, arguments);
213012
213195
  }
213013
- },2564,[1,17,2,2552,2563],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/openGameCenterLeaderboard.ts");
213196
+ },2565,[1,17,2,2553,2555],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/openGameCenterLeaderboard.ts");
213014
213197
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
213015
213198
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
213016
213199
  Object.defineProperty(exports, "__esModule", {
@@ -213034,39 +213217,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
213034
213217
  });
213035
213218
  return _submitGameCenterLeaderBoardScore.apply(this, arguments);
213036
213219
  }
213037
- },2565,[1,17,2552,2527,2563],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/submitGameCenterLeaderBoardScore.ts");
213038
- __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
213039
- var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
213040
- Object.defineProperty(exports, "__esModule", {
213041
- value: true
213042
- });
213043
- exports.getAnonymousKey = getAnonymousKey;
213044
- var _asyncToGenerator2 = _interopRequireDefault(_$$_REQUIRE(_dependencyMap[1], "@babel/runtime/helpers/asyncToGenerator"));
213045
- var _isMinVersionSupported = _$$_REQUIRE(_dependencyMap[2], "./isMinVersionSupported");
213046
- var _natives = _$$_REQUIRE(_dependencyMap[3], "../../natives");
213047
- var _constants = _$$_REQUIRE(_dependencyMap[4], "../constants");
213048
- function getAnonymousKey() {
213049
- return _getAnonymousKey.apply(this, arguments);
213050
- }
213051
- function _getAnonymousKey() {
213052
- _getAnonymousKey = (0, _asyncToGenerator2.default)(function* () {
213053
- var isSupported = (0, _isMinVersionSupported.isMinVersionSupported)(_constants.USER_KEY_MIN_VERSION);
213054
- if (!isSupported) {
213055
- return;
213056
- }
213057
- try {
213058
- var response = yield (0, _natives.safePostMessage)('getUserKeyForGame', {});
213059
- if (response.type === 'HASH') {
213060
- return response;
213061
- }
213062
- return 'ERROR';
213063
- } catch {
213064
- return 'ERROR';
213065
- }
213066
- });
213067
- return _getAnonymousKey.apply(this, arguments);
213068
- }
213069
- },2566,[1,17,2552,2527,2563],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getAnonymousKey.ts");
213220
+ },2566,[1,17,2553,2527,2555],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/submitGameCenterLeaderBoardScore.ts");
213070
213221
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
213071
213222
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
213072
213223
  Object.defineProperty(exports, "__esModule", {
@@ -213084,7 +213235,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
213084
213235
  });
213085
213236
  return _getUserKeyForGame.apply(this, arguments);
213086
213237
  }
213087
- },2567,[1,17,2566],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getUserKeyForGame.ts");
213238
+ },2567,[1,17,2552],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getUserKeyForGame.ts");
213088
213239
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
213089
213240
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
213090
213241
  Object.defineProperty(exports, "__esModule", {
@@ -213125,7 +213276,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
213125
213276
  });
213126
213277
  return _grantPromotionReward.apply(this, arguments);
213127
213278
  }
213128
- },2568,[1,17,2552,2527,2563],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/grantPromotionReward.ts");
213279
+ },2568,[1,17,2553,2527,2555],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/grantPromotionReward.ts");
213129
213280
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
213130
213281
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
213131
213282
  Object.defineProperty(exports, "__esModule", {
@@ -213168,7 +213319,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
213168
213319
  });
213169
213320
  return _getIsTossLoginIntegratedService.apply(this, arguments);
213170
213321
  }
213171
- },2570,[1,17,2552,2527,2563],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getIsTossLoginIntegratedService.ts");
213322
+ },2570,[1,17,2553,2527,2555],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getIsTossLoginIntegratedService.ts");
213172
213323
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
213173
213324
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
213174
213325
  Object.defineProperty(exports, "__esModule", {
@@ -213193,7 +213344,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
213193
213344
  return _getServerTime.apply(this, arguments);
213194
213345
  }
213195
213346
  getServerTime.isSupported = () => (0, _isMinVersionSupported.isMinVersionSupported)(_constants.GET_SERVER_TIME_MIN_VERSION);
213196
- },2571,[1,17,2552,2527,2563],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getServerTime.ts");
213347
+ },2571,[1,17,2553,2527,2555],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getServerTime.ts");
213197
213348
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
213198
213349
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
213199
213350
  Object.defineProperty(exports, "__esModule", {
@@ -213219,7 +213370,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
213219
213370
  });
213220
213371
  return _getConsentedUserData.apply(this, arguments);
213221
213372
  }
213222
- },2572,[1,17,2552,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getConsentedUserData.ts");
213373
+ },2572,[1,17,2553,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/getConsentedUserData.ts");
213223
213374
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
213224
213375
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
213225
213376
  Object.defineProperty(exports, "__esModule", {
@@ -213253,7 +213404,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
213253
213404
  return _requestReview.apply(this, arguments);
213254
213405
  }
213255
213406
  requestReview.isSupported = () => (0, _isMinVersionSupported.isMinVersionSupported)(MIN_VERSION);
213256
- },2573,[1,17,2552,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/requestReview.ts");
213407
+ },2573,[1,17,2553,2527],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/requestReview.ts");
213257
213408
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
213258
213409
  Object.defineProperty(exports, "__esModule", {
213259
213410
  value: true
@@ -214198,7 +214349,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
214198
214349
  showAppsInTossAdMob: _googleAdMobV.showAppsInTossAdMob,
214199
214350
  isAppsInTossAdMobLoaded: _googleAdMobV.isAppsInTossAdMobLoaded
214200
214351
  };
214201
- },2590,[2591,2556,2557,2550,2551,2547,2546,2545,2548,2543,2549,2580,2578,2579,2554,2593,2552,2558,2559,2560,2555,2594,2564,2562,2565,2566,2567,2568,2569,2570,2595,2561,2581,2596,2571,2572,2573,2597],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/index.ts");
214352
+ },2590,[2591,2558,2559,2550,2551,2547,2546,2545,2548,2543,2549,2580,2578,2579,2556,2593,2553,2560,2561,2562,2557,2594,2565,2564,2566,2552,2567,2568,2569,2570,2595,2563,2581,2596,2571,2572,2573,2597],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/index.ts");
214202
214353
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
214203
214354
  var _interopRequireDefault = _$$_REQUIRE(_dependencyMap[0], "@babel/runtime/helpers/interopRequireDefault");
214204
214355
  Object.defineProperty(exports, "__esModule", {
@@ -214331,7 +214482,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
214331
214482
  });
214332
214483
  }
214333
214484
  isAppsInTossAdMobLoaded.isSupported = isAppsInTossAdMobLoadedSupported;
214334
- },2591,[1,17,1287,2592,2587,2578,2552],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/ads/googleAdMobV2.ts");
214485
+ },2591,[1,17,1287,2592,2587,2578,2553],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/ads/googleAdMobV2.ts");
214335
214486
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
214336
214487
  Object.defineProperty(exports, "__esModule", {
214337
214488
  value: true
@@ -214625,7 +214776,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
214625
214776
  completeProductGrant,
214626
214777
  getSubscriptionInfo
214627
214778
  };
214628
- },2593,[1,17,1287,2552,2527,2587],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/iap.ts");
214779
+ },2593,[1,17,1287,2553,2527,2587],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/iap.ts");
214629
214780
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
214630
214781
  Object.defineProperty(exports, "__esModule", {
214631
214782
  value: true
@@ -214693,7 +214844,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
214693
214844
  });
214694
214845
  return unregisterCallbacks;
214695
214846
  }
214696
- },2595,[2587,2552],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-event-emitter/contactsViral.ts");
214847
+ },2595,[2587,2553],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-event-emitter/contactsViral.ts");
214697
214848
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
214698
214849
  Object.defineProperty(exports, "__esModule", {
214699
214850
  value: true
@@ -214737,7 +214888,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
214737
214888
  }
214738
214889
  });
214739
214890
  }
214740
- },2597,[1287,2552,2587],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/requestNotificationAgreement.ts");
214891
+ },2597,[1287,2553,2587],"../../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/MiniAppModule/native-modules/requestNotificationAgreement.ts");
214741
214892
  __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {
214742
214893
  Object.defineProperty(exports, "__esModule", {
214743
214894
  value: true
@@ -214794,7 +214945,7 @@ __d(function (global, _$$_REQUIRE, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, e
214794
214945
  }
214795
214946
  \`;document.head.appendChild(e);})();
214796
214947
  `,
214797
- m = '"use strict";(()=>{var ve=class{get _window(){return typeof window<"u"?window:{ReactNativeWebView:{postMessage:()=>{}},__GRANITE_NATIVE_EMITTER:{on:()=>()=>{}},__CONSTANT_HANDLER_MAP:{}}}postMessage(e){let t=this._window.ReactNativeWebView;if(!t)throw new Error("ReactNativeWebView is not available in browser environment");t.postMessage(JSON.stringify(e))}on(e,t){let r=this._window.__GRANITE_NATIVE_EMITTER;if(!r)throw new Error("__GRANITE_NATIVE_EMITTER is not available");return r.on(e,t)}getConstant(e){let t=this._window.__CONSTANT_HANDLER_MAP;if(t&&e in t)return t[e];throw new Error(`${e} is not a constant handler`)}},E=new ve,z=()=>Math.random().toString(36).substring(2,15),$=e=>{if(e&&e.__isError){let t=new Error(e.message);for(let[r,n]of Object.entries(e))t[r]=n;return t}return e};function d(e){return(...t)=>{let r=z(),n=[],o=()=>{for(let s of n)s()};return new Promise((s,a)=>{n.push(E.on(`${e}/resolve/${r}`,i=>{o(),s(i)})),n.push(E.on(`${e}/reject/${r}`,i=>{o(),a($(i))})),E.postMessage({type:"method",functionName:e,eventId:r,args:t})})}}function D(e){return t=>{let r=z(),n=[E.on(`${e}/onEvent/${r}`,o=>{t.onEvent(o)}),E.on(`${e}/onError/${r}`,o=>{t.onError($(o))})];return E.postMessage({type:"addEventListener",functionName:e,eventId:r,args:t.options}),()=>{E.postMessage({type:"removeEventListener",functionName:e,eventId:r}),n.forEach(o=>o())}}}function v(e){return()=>E.getConstant(e)}var he=function(){return{emit:function(t,r){for(var n=this.events[t]||[],o=0,s=n.length;o<s;o++)n[o](r)},events:{},on:function(t,r){var n=this,o,s;return((o=this.events)[s=t]||(o[s]=[])).push(r),function(){var a;n.events[t]=(a=n.events[t])===null||a===void 0?void 0:a.filter(function(i){return r!==i})}}}};typeof window<"u"&&(window.__GRANITE_NATIVE_EMITTER=he());var it=d("closeView"),dt=d("generateHapticFeedback"),ct=d("share"),ut=d("setSecureScreen"),pt=d("setScreenAwakeMode"),mt=d("getNetworkStatus"),lt=d("setIosSwipeGestureEnabled"),gt=d("openURL"),ft=d("openPermissionDialog"),vt=d("getPermission"),ht=d("requestPermission"),wt=v("setClipboardText"),Et=v("getClipboardText"),At=v("fetchContacts"),bt=v("fetchAlbumPhotos"),_t=v("getCurrentLocation"),Ct=v("openCamera"),St=d("appLogin"),It=d("eventLog"),yt=d("getTossShareLink"),Tt=d("setDeviceOrientation"),Rt=d("checkoutPayment"),Lt=d("requestTossPayPaysBilling"),Pt=d("saveBase64Data"),xt=d("openPDFViewer"),Dt=d("fetchAlbumItems"),Nt=d("appsInTossSignTossCert"),Mt=d("getGameCenterGameProfile"),Ft=d("openGameCenterLeaderboard"),Gt=d("submitGameCenterLeaderBoardScore"),Bt=d("getAnonymousKey"),kt=d("getUserKeyForGame"),Ot=d("grantPromotionReward"),Vt=d("grantPromotionRewardForGame"),Ht=d("getIsTossLoginIntegratedService"),Ut=d("getServerTime"),qt=d("getConsentedUserData"),Wt=d("requestReview"),zt=v("getLocale"),$t=v("getSchemeUri"),jt=v("getPlatformOS"),Kt=v("getOperationalEnvironment"),Jt=v("getTossAppVersion"),Xt=v("getDeviceId"),Yt=v("getGroupId"),Zt=D("contactsViral"),Qt=D("startUpdateLocation"),er=D("onVisibilityChangedByTransparentServiceWeb");var S=class extends Error{constructor({methodName:e,message:t}){super(),this.name=`${e} permission error`,this.message=t}},j=class extends S{constructor(){super({methodName:"fetchAlbumPhotos",message:"\\uC0AC\\uC9C4\\uCCA9 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},K=class extends S{constructor(){super({methodName:"fetchContacts",message:"\\uC5F0\\uB77D\\uCC98 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},J=class extends S{constructor(){super({methodName:"openCamera",message:"\\uCE74\\uBA54\\uB77C \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}};var V=class extends S{constructor(){super({methodName:"getCurrentLocation",message:"\\uC704\\uCE58 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},X=V,Y=class extends S{constructor(){super({methodName:"getClipboardText",message:"\\uD074\\uB9BD\\uBCF4\\uB4DC \\uC77D\\uAE30 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},Z=class extends S{constructor(){super({methodName:"setClipboardText",message:"\\uD074\\uB9BD\\uBCF4\\uB4DC \\uC4F0\\uAE30 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}};var we=class{get _window(){return typeof window<"u"?window:{ReactNativeWebView:{postMessage:()=>{}},__GRANITE_NATIVE_EMITTER:{on:()=>()=>{}},__CONSTANT_HANDLER_MAP:{}}}postMessage(e){let t=this._window.ReactNativeWebView;if(!t)throw new Error("ReactNativeWebView is not available in browser environment");t.postMessage(JSON.stringify(e))}on(e,t){let r=this._window.__GRANITE_NATIVE_EMITTER;if(!r)throw new Error("__GRANITE_NATIVE_EMITTER is not available");return r.on(e,t)}getConstant(e){let t=this._window.__CONSTANT_HANDLER_MAP;if(t&&e in t)return t[e];throw new Error(`${e} is not a constant handler`)}},A=new we,de=()=>Math.random().toString(36).substring(2,15),ce=e=>{if(e&&e.__isError){let t=new Error(e.message);for(let[r,n]of Object.entries(e))t[r]=n;return t}return e};function c(e){return(...t)=>{let r=de(),n=[],o=()=>{for(let s of n)s()};return new Promise((s,a)=>{n.push(A.on(`${e}/resolve/${r}`,i=>{o(),s(i)})),n.push(A.on(`${e}/reject/${r}`,i=>{o(),a(ce(i))})),A.postMessage({type:"method",functionName:e,eventId:r,args:t})})}}function b(e){return t=>{let r=de(),n=[A.on(`${e}/onEvent/${r}`,o=>{t.onEvent(o)}),A.on(`${e}/onError/${r}`,o=>{t.onError(ce(o))})];return A.postMessage({type:"addEventListener",functionName:e,eventId:r,args:t.options}),()=>{A.postMessage({type:"removeEventListener",functionName:e,eventId:r}),n.forEach(o=>o())}}}function p(e){return()=>A.getConstant(e)}var ur={getItem:c("getStorageItem"),setItem:c("setStorageItem"),removeItem:c("removeStorageItem"),clearItems:c("clearItems")},Ee=/^[v^~<>=]*?(\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+))?(?:-([\\da-z\\\\-]+(?:\\.[\\da-z\\\\-]+)*))?(?:\\+[\\da-z\\\\-]+(?:\\.[\\da-z\\\\-]+)*)?)?)?$/i,Q=e=>["*","x","X"].includes(e),ee=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},Ae=(e,t)=>typeof e==typeof t?[e,t]:[String(e),String(t)],be=(e,t)=>{if(Q(e)||Q(t))return 0;let[r,n]=Ae(ee(e),ee(t));return r>n?1:r<n?-1:0},te=e=>{if(typeof e!="string")throw new TypeError("Invalid argument: expected a string");let t=e.match(Ee);if(!t)throw new Error(`Invalid semver: \'${e}\'`);let[,r,n,o,s,a]=t;return[r,n,o,s,a]},re=(e,t)=>{let r=Math.max(e.length,t.length);for(let n=0;n<r;n++){let o=e[n]??"0",s=t[n]??"0",a=be(o,s);if(a!==0)return a}return 0},_e=(e,t)=>{let r=te(e),n=te(t),o=r.pop(),s=n.pop(),a=re(r,n);return a!==0?a:o&&s?re(o.split("."),s.split(".")):o?-1:s?1:0};function H(e){if(p("getOperationalEnvironment")()==="sandbox")return!0;let r=p("getTossAppVersion")(),o=p("getPlatformOS")()==="ios"?e.ios:e.android;return o===void 0?!1:o==="always"?!0:o==="never"?!1:_e(r,o)>=0}function ne(e){return c("processProductGrant")(e)}var pr={createOneTimePurchaseOrder:e=>{let t=H({android:"5.219.0",ios:"5.219.0"}),r=()=>{};if(!t)return r;let n=H({android:"5.231.1",ios:"5.230.0"}),{options:o,onEvent:s,onError:a}=e,i=o.sku??o.productId;return n?b("requestOneTimePurchase")({options:{sku:i},onEvent:async g=>{if(g.type==="purchased"){let u=await o.processProductGrant({orderId:g.data.orderId});await ne({orderId:g.data.orderId,isProductGranted:u}).catch(a)}else s(g)},onError:g=>{a(g)}}):(c("iapCreateOneTimePurchaseOrder")({productId:i}).then(u=>{Promise.resolve(o.processProductGrant({orderId:u.orderId})).then(()=>{s({type:"success",data:u})}).catch(f=>{a(f)})}).catch(u=>{a(u)}),r)},createSubscriptionPurchaseOrder:e=>{let t=H({android:"5.248.0",ios:"5.249.0"}),r=()=>{};if(!t)return r;let{options:n,onEvent:o,onError:s}=e,{sku:a,offerId:i,processProductGrant:l}=n;return b("requestSubscriptionPurchase")({options:{sku:a,offerId:i??null},onEvent:async u=>{if(u.type==="purchased"){let f=await l({orderId:u.data.orderId,subscriptionId:u.data.subscriptionId});await ne({orderId:u.data.orderId,isProductGranted:f}).catch(s)}else o(u)},onError:u=>{s(u)}})},getProductItemList:c("iapGetProductItemList"),getPendingOrders:c("getPendingOrders"),getCompletedOrRefundedOrders:c("getCompletedOrRefundedOrders"),completeProductGrant:c("completeProductGrant"),getSubscriptionInfo:c("getSubscriptionInfo")},mr=p("getSafeAreaInsets");var lr=p("getSafeAreaInsets");var gr={loadAppsInTossAdMob:Object.assign(b("loadAppsInTossAdMob"),{isSupported:p("loadAppsInTossAdMob_isSupported")}),showAppsInTossAdMob:Object.assign(b("showAppsInTossAdMob"),{isSupported:p("showAppsInTossAdMob_isSupported")}),isAppsInTossAdMobLoaded:Object.assign(c("isAppsInTossAdMobLoaded"),{isSupported:p("isAppsInTossAdMobLoaded_isSupported")})};var fr={getDeploymentId:p("getDeploymentId")},vr=p("deploymentId"),hr=p("brandDisplayName"),wr=p("brandIcon"),Er=p("brandPrimaryColor");var Ar={addAccessoryButton:c("addAccessoryButton"),removeAccessoryButton:c("removeAccessoryButton")},Ce=c("requestPermission"),Se=c("getPermission"),Ie=c("openPermissionDialog");function I({permission:e,handler:t,error:r}){let n=async(...o)=>{if(await Ce(e)==="denied")throw new r;return t(...o)};return n.getPermission=()=>Se(e),n.openPermissionDialog=()=>Ie(e),n}var _r=I({handler:e=>c("fetchAlbumPhotos")(e),permission:{name:"photos",access:"read"},error:j}),Sr=I({handler:e=>c("fetchContacts")(e),permission:{name:"contacts",access:"read"},error:K}),yr=I({handler:e=>c("getCurrentLocation")(e),permission:{name:"geolocation",access:"access"},error:V}),Rr=I({handler:e=>c("openCamera")(e),permission:{name:"camera",access:"access"},error:J}),Pr=I({handler:e=>c("setClipboardText")(e),permission:{name:"clipboard",access:"write"},error:Z}),Dr=I({handler:()=>c("getClipboardText")(),permission:{name:"clipboard",access:"read"},error:Y}),ye=c("getPermission"),Te=c("openPermissionDialog"),ue=e=>b("updateLocationEvent")({...e,onError:t=>{let r=new X;return t instanceof Error&&t.name===r.name?e.onError(r):e.onError(t)}});ue.getPermission=()=>ye({name:"geolocation",access:"access"});ue.openPermissionDialog=()=>Te({name:"geolocation",access:"access"});var Mr=Object.assign(b("loadFullScreenAd"),{isSupported:p("loadFullScreenAd_isSupported")}),Fr=Object.assign(b("showFullScreenAd"),{isSupported:p("showFullScreenAd_isSupported")}),P=new WeakMap;function Re(e,t){let r=P.get(e);if(r)return r;let n=t(),o=!1,s={destroy(){o||(o=!0,P.get(e)===s&&P.delete(e),n.destroy())}};return P.set(e,s),s}function Le(){P=new WeakMap}var Pe=c("openURL");function xe(e){let t=De(e);return Pe(t)}function De(e){return["http://","https://"].some(r=>e.startsWith(r))?Ne(e):e}function Ne(e){return`supertoss://web?url=${encodeURIComponent(e)}&external=true`}var oe="https://static.toss.im/ads/sdk/toss-ads-space-kit-1.3.0.js",se=15e3,N=null;function C(){if(!(typeof window>"u"))return window.TossAdsSpaceKit}function Me(){if(typeof window>"u"||typeof document>"u")return Promise.reject(new Error("Ads SDK can only be loaded in a browser environment."));let e=C();if(e)return Promise.resolve(e);if(N)return N;let t=new Promise((r,n)=>{let o=document.createElement("script"),s=()=>{o.removeEventListener("load",a),o.removeEventListener("error",i),window.clearTimeout(l),N=null},a=()=>{let g=C();if(g){s(),r(g);return}s(),n(new Error("Ads SDK script loaded but window.TossAdsSpaceKit was not exposed."))},i=()=>{s(),n(new Error(`Failed to load Ads SDK script from ${oe}.`))},l=window.setTimeout(()=>{s(),n(new Error(`Loading Ads SDK timed out after ${se}ms.`))},se);o.addEventListener("load",a),o.addEventListener("error",i),o.async=!0,o.src=oe,document.head.appendChild(o)});return N=t,t}var _=Object.assign(b("fetchTossAd"),{isSupported:p("fetchTossAd_isSupported")}),Fe=c("tossAdEventLog"),Ge=new Set(["1","2"]),pe="\\uC798\\uBABB\\uB41C \\uC694\\uCCAD\\uC774\\uC5D0\\uC694. \\uD544\\uC694\\uD55C \\uAC12\\uC774 \\uBE44\\uC5B4 \\uC788\\uC5B4\\uC694.";function M(e){return e.trim()}function q(){return new Error(pe)}function Be(){return{resultType:"FAIL",error:{reason:pe}}}function ke(e){return new Promise((t,r)=>{if(!_.isSupported()){r(new Error("fetchTossAd is not supported in this environment."));return}let n=M(e.adGroupId);if(n.length===0){r(q());return}return _({options:{...e,adGroupId:n},onEvent:t,onError:r})})}function ae(e){let t=Array.isArray(e.ads)?e.ads.filter(r=>Ge.has(String(r.styleId))):[];return{requestId:e.requestId??"",status:e.status??"OK",ads:t,ext:e.ext}}function Oe(e){return Ve(e)?e.resultType!=="SUCCESS"?e:e.success?{...e,success:ae(e.success)}:{resultType:"FAIL",error:{reason:"fetchTossAd returned SUCCESS without payload"}}:He(e)?{resultType:"SUCCESS",success:ae(e)}:{resultType:"FAIL",error:{reason:"Invalid response from fetchTossAd"}}}function Ve(e){return!!(e&&typeof e=="object"&&"resultType"in e)}function He(e){return!!(e&&typeof e=="object"&&"ads"in e)}function Ue(){return async(e,t)=>{let r=M(t.spaceUnitId);if(r.length===0)return Be();try{let n=await ke({adGroupId:r,sdkId:"108",availableStyleIds:["1","2"]});return Oe(n)}catch(n){return{resultType:"FAIL",error:{reason:n instanceof Error?n.message:"Unknown fetchTossAd error"}}}}}var L=null;function qe(e){let{callbacks:t}=e,r=()=>t?.onInitialized?.(),n=a=>{let i=a instanceof Error?a:new Error(String(a));t?.onInitializationFailed?.(i)};if(C()?.isInitialized()){r();return}if(L!=null){L.then(r).catch(n);return}let s=Me().then(a=>{if(a.isInitialized())return;let l={environment:"live",customAdFetcher:Ue(),opener:xe};a.init(l)});L=s,s.then(r).catch(n).finally(()=>{L===s&&(L=null)})}function We(e,t,r={}){let{callbacks:n}=r,o=M(e),s=a=>{let i=a instanceof Error?a:new Error(String(a));n?.onAdFailedToRender?.({slotId:"",adGroupId:o,adMetadata:{},error:{code:0,message:i.message}})};try{let a=o;if(a.length===0)throw q();let i=C();if(!i)throw new Error("[toss-ad] Call initialize() before attaching an ad.");if(!i.banner)throw new Error("[toss-ad] Loaded TossAdsSpaceKit does not support banner ads.");let l=typeof t=="string"?document.querySelector(t):t;if(!l)throw new Error(`[toss-ad] Failed to find target element: ${t}`);let g={spaceId:a,autoLoad:!0,theme:r.theme,padding:r.padding,callbacks:le(o,r.callbacks)};i.banner.createSlot(l,g)}catch(a){s(a)}}var ze="16px 20px",$e="20px",je="auto",Ke="blackAndWhite",Je="expanded",h="toss-ads-attach",ie="toss-ads-attach-style",me="data-toss-ads-attach-banner-wrapper",U=\'"Toss Product Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif\';function Xe(e){let t=e.ownerDocument;if(!t||t.getElementById(ie))return;let r=t.createElement("style");r.id=ie,r.textContent=`\n .${h},\n .${h} * {\n font-family: ${U};\n font-style: normal;\n }\n .${h} { background: #ffffff; }\n .${h}.toss-ads-tone-grey { background: #f2f4f7; }\n @media (prefers-color-scheme: dark) {\n .${h} { background: #17171c; }\n .${h}.toss-ads-tone-grey { background: #101013; }\n }\n .${h}.toss-ads-theme-light { background: #ffffff; }\n .${h}.toss-ads-theme-light.toss-ads-tone-grey { background: #f2f4f7; }\n .${h}.toss-ads-theme-dark { background: #17171c; }\n .${h}.toss-ads-theme-dark.toss-ads-tone-grey { background: #101013; }\n `;let n=t.head??t.body??t.documentElement;n&&n.appendChild(r)}function Ye(e){Array.from(e.children).forEach(t=>{t instanceof HTMLElement&&t.getAttribute(me)==="true"&&e.removeChild(t)})}function Ze(e,t,r={}){let{callbacks:n,theme:o=je,tone:s=Ke,variant:a=Je}=r,i=M(e),l=u=>{let f=u instanceof Error?u:new Error(String(u));n?.onAdFailedToRender?.({slotId:"",adGroupId:i,adMetadata:{},error:{code:0,message:f.message}})},g=le(i,n);try{let u=i;if(u.length===0)throw q();let f=C();if(!f)throw new Error("[toss-ad] Call initialize() before attaching an ad.");if(!f.banner)throw new Error("[toss-ad] Loaded TossAdsSpaceKit does not support banner ads.");let R=typeof t=="string"?document.querySelector(t):t;if(!R)throw new Error(`[toss-ad] Failed to find target element: ${t}`);return Re(R,()=>{let m=document.createElement("div");m.style.width="100%",m.style.height="100%",m.style.boxSizing="border-box",m.style.display="flex",m.style.flexDirection="column",m.style.fontFamily=U,m.style.fontStyle="normal",m.style.justifyContent="center",m.style.overflow="hidden",m.setAttribute(me,"true"),a==="card"&&(m.style.padding="0 10px");let w=document.createElement("div");w.classList.add(h),w.style.fontFamily=U,w.style.fontStyle="normal",s==="grey"&&w.classList.add("toss-ads-tone-grey"),o==="light"?w.classList.add("toss-ads-theme-light"):o==="dark"&&w.classList.add("toss-ads-theme-dark"),a==="card"&&(w.style.borderRadius="16px",w.style.overflow="hidden"),m.appendChild(w);let x=!1,W=null;try{Xe(R),Ye(R),R.appendChild(m),x=!0;let O={spaceId:u,autoLoad:!0,theme:o==="auto"?void 0:o,renderPadding:fe=>fe==="1"?ze:$e,callbacks:g};W=f.banner.createSlot(w,O)}catch(O){throw x&&m.parentNode&&m.parentNode.removeChild(m),O}return{destroy(){W?.destroy(),x&&m.parentNode&&m.parentNode.removeChild(m),x=!1}}})}catch(u){return l(u),{destroy(){}}}}function Qe(e){let t=C();t?.banner&&t.banner.destroy(e)}function et(){let e=C();e?.banner&&(e.banner.destroyAll(),Le())}function le(e,t){if(!t)return;let r=n=>{let o={...n??{}};return o.adGroupId=o.adGroupId??o.spaceId??e,delete o.spaceId,o};return{onAdRendered:n=>t.onAdRendered?.(r(n)),onAdViewable:n=>t.onAdViewable?.(r(n)),onAdClicked:n=>t.onAdClicked?.(r(n)),onAdImpression:n=>{Fe({log_name:"display_ads_all::impression__1px_banner",log_type:"event",params:{event_type:"impression",schema_id:1812034,request_id:n?.adMetadata?.requestId??""}}),t.onAdImpression?.(r(n))},onAdFailedToRender:n=>t.onAdFailedToRender?.({...r(n),error:n?.error??{code:0,message:"UNKNOWN"}}),onNoFill:n=>t.onNoFill?.(r(n))}}var Gr={initialize:Object.assign(qe,{isSupported:_.isSupported}),attach:Object.assign(We,{isSupported:_.isSupported}),attachBanner:Object.assign(Ze,{isSupported:_.isSupported}),destroy:Object.assign(Qe,{isSupported:_.isSupported}),destroyAll:Object.assign(et,{isSupported:_.isSupported})},Br=Object.assign(c("getServerTime"),{isSupported:p("getServerTime_isSupported")}),kr=Object.assign(c("requestReview"),{isSupported:p("requestReview_isSupported")});var F=class{_log=c("debugLog");log(t,r){try{this._log({log_name:`apps_in_toss_webview_${t}`,log_type:"debug",params:{...r,...this.getCommonParams()}})}catch{}}getCommonParams(){return{...this.getLocationInfo(),...this.getNavigatorInfo(),...this.getScreenInfo(),appName:window.__appsInToss.appName,deploymentId:window.__appsInToss.deploymentId,sessionId:window.__appsInToss.sessionId,isGame:window.__appsInToss.webViewType==="game",timestampMs:Date.now()}}getLocationInfo(){return{url:window.location.href,urlOrigin:window.location.origin,urlHost:window.location.hostname,urlPath:window.location.pathname,urlSearch:window.location.search}}getNavigatorInfo(){return{userAgent:navigator.userAgent,platform:navigator.platform,language:navigator.language,cookieEnabled:navigator.cookieEnabled,hardwareConcurrency:navigator.hardwareConcurrency,deviceMemory:navigator.deviceMemory?navigator.deviceMemory*1024*1024:void 0,maxTouchPoints:navigator.maxTouchPoints}}getScreenInfo(){return{screenWidth:screen.width,screenHeight:screen.height,availableScreenWidth:screen.availWidth,availableScreenHeight:screen.availHeight,devicePixelRatio:window.devicePixelRatio,colorDepth:screen.colorDepth,pixelDepth:screen.pixelDepth,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight}}};var G=class{callbacks={};on(t,r){return typeof this.callbacks[t]>"u"&&(this.callbacks[t]=[]),this.callbacks[t].push(r),()=>{this.callbacks[t]=this.callbacks[t]?.filter(n=>n!==r)??[]}}emit(t,r){this.callbacks[t]?.forEach(n=>n(r))}};window.__appsInToss={appName:p("getAppName")(),deploymentId:p("getDeploymentId")(),webViewType:p("getWebViewType")(),sessionId:Math.random().toString(36).substring(2),eventEmitter:new G,debugLogger:new F};var y=/\\.(data|wasm|framework\\.js)(?:\\.gz|\\.br|\\.unityweb)?$/;function B(e){window.fetch=new Proxy(window.fetch,{apply:e})}(()=>{if(window.__appsInToss.webViewType!=="game"||typeof caches>"u")return;let e="@apps-in-toss/caches/",t=`${e}${window.__appsInToss.deploymentId}`;window.addEventListener("load",async()=>{let r=await caches.keys();for(let n of r)n.startsWith(e)&&n!==t&&await caches.delete(n)}),B(async(r,n,o)=>{let s=new Request(o[0],o[1]);if(!y.test(s.url))return await r.call(n,s);let a=await caches.open(t),i=await a.match(s);if(i){let g=i.headers.get("ETag"),u=i.headers.get("Last-Modified");g&&s.headers.set("If-None-Match",g),u&&s.headers.set("If-Modified-Since",u);let f=await r.call(n,s);return f.status===304?(i.__revalidateResponse=f,i):(a.put(s,f.clone()),f)}let l=await r.call(n,s);return a.put(s,l.clone()),l})})();B(async(e,t,r)=>{let n=new Request(r[0],r[1]),o=Date.now();window.__appsInToss.eventEmitter.emit("fetchRequest",{request:n});try{let s=await e.call(t,n);return window.__appsInToss.eventEmitter.emit("fetchResponse",{request:n,response:s,requestAt:o}),s}catch(s){throw window.__appsInToss.eventEmitter.emit("fetchError",{request:n,requestAt:o,error:s}),s}});HTMLCanvasElement.prototype.getContext=new Proxy(HTMLCanvasElement.prototype.getContext,{apply:(e,t,r)=>{let n=e.apply(t,r);return(n instanceof WebGL2RenderingContext||n instanceof WebGLRenderingContext)&&window.__appsInToss.eventEmitter.emit("webglGetContext",{canvas:t,context:n}),n}});var ge=window.__appsInToss.debugLogger;ge.log("load_start",{});window.addEventListener("load",()=>{let e=performance.timeOrigin,t=performance.getEntriesByType?.("navigation")[0]??null,r=typeof e<"u"&&t!==null,n=r?{navigationStartAtMs:e+t.startTime,navigationRedirectStartAtMs:e+t.redirectStart,navigationRedirectEndAtMs:e+t.redirectEnd,navigationRedirectCount:t.redirectCount,navigationServiceWorkerStartAtMs:e+t.workerStart,navigationFetchStartAtMs:e+t.fetchStart,navigationDomainLookupStartAtMs:e+t.domainLookupStart,navigationDomainLookupEndAtMs:e+t.domainLookupEnd,navigationConnectStartAtMs:e+t.connectStart,navigationSecureConnectStartAtMs:e+t.secureConnectionStart,navigationConnectEndAtMs:e+t.connectEnd,navigationRequestStartAtMs:e+t.requestStart,navigationResponseStartAtMs:e+t.responseStart,navigationResponseEndAtMs:e+t.responseEnd,navigationDomInteractiveAtMs:e+t.domInteractive,navigationDomContentLoadedEventStartAtMs:e+t.domContentLoadedEventStart,navigationDomContentLoadedEventEndAtMs:e+t.domContentLoadedEventEnd,navigationDomCompleteAtMs:e+t.domComplete}:{};ge.log("load_complete",{isNavigationDebugSupported:r,...n})});function T(e,t){return parseFloat(e.toFixed(t))}(()=>{if(typeof performance.memory>"u"||typeof performance.memory.usedJSHeapSize>"u"||typeof performance.memory.totalJSHeapSize>"u"||typeof performance.memory.jsHeapSizeLimit>"u")return;function e(t){window.__appsInToss.debugLogger.log(t,{usedJSHeapSize:T(performance.memory.usedJSHeapSize/1024,2),totalJSHeapSize:T(performance.memory.totalJSHeapSize/1024,2),jsHeapSizeLimit:T(performance.memory.jsHeapSizeLimit/1024,2)})}e("memory_usage_first_0s"),setTimeout(()=>e("memory_usage_first_1s"),1e3),setTimeout(()=>e("memory_usage_first_10s"),1e4),setTimeout(()=>e("memory_usage_first_30s"),3e4),setTimeout(()=>e("memory_usage_first_60s"),6e4),setInterval(()=>e("memory_usage_every_180s"),18e4)})();(()=>{let e=window.__appsInToss.debugLogger,t=performance.timeOrigin;if(typeof t>"u"||typeof PerformanceObserver>"u")return;new PerformanceObserver(o=>{o.getEntries().forEach(a=>{a.name==="first-paint"?e.log("first_paint",{fpStartAtMs:t+a.startTime}):a.name==="first-contentful-paint"&&e.log("first_contentful_paint",{fcpStartAtMs:t+a.startTime})})}).observe({type:"paint"}),new PerformanceObserver(o=>{o.getEntries().forEach(a=>{e.log("largest_contentful_paint",{lcpStartAtMs:t+a.startTime,lcpRenderSize:a.size})})}).observe({type:"largest-contentful-paint"})})();(()=>{if(window.__appsInToss.webViewType!=="game")return;let e=window.__appsInToss.eventEmitter.on("webglGetContext",({canvas:t,context:r})=>{if(t.getAttribute("id")!=="unity-canvas")return;e();let n=r.getExtension("WEBGL_debug_renderer_info"),o=r.getParameter(r.MAX_VIEWPORT_DIMS),s={webGLRenderer:r.getParameter(r.RENDERER),webGLVendor:r.getParameter(r.VENDOR),webGLVersion:r.getParameter(r.VERSION),webGLShadingLanguageVersion:r.getParameter(r.SHADING_LANGUAGE_VERSION),webGLMaxTextureSize:r.getParameter(r.MAX_TEXTURE_SIZE),webGLMaxViewportWidth:o[0],webGLMaxViewportHeight:o[1],webGLMaxRenderbufferSize:r.getParameter(r.MAX_RENDERBUFFER_SIZE)},a=n?{webGLUnmaskedVendor:r.getParameter(n.UNMASKED_VENDOR_WEBGL),webGLUnmaskedRenderer:r.getParameter(n.UNMASKED_RENDERER_WEBGL)}:{};window.__appsInToss.debugLogger.log("unity_webgl_info",{...s,...a})})})();(()=>{if(window.__appsInToss.webViewType!=="game")return;let e=window.__appsInToss.debugLogger,t=window.__appsInToss.eventEmitter;t.on("fetchRequest",({request:n})=>{y.test(n.url)&&e.log("game_resource_download_start",{gameResourceRequestURL:n.url})});function r({request:n,requestAt:o,error:s}){e.log("game_resource_download_error",{gameResourceRequestURL:n.url,gameResourceRequestAtMs:o,gameResourceError:s instanceof Error?s.message:"Unknown Error"})}t.on("fetchResponse",async({request:n,requestAt:o,response:s})=>{if(!y.test(n.url))return;let a=await s.clone().blob().then(l=>T(l.size/1024,2)).catch(l=>(r({request:n,requestAt:o,error:l}),null));if(a===null)return;let i=Date.now();e.log("game_resource_download_end",{gameResourceRequestURL:n.url,gameResourceRequestAtMs:o,gameResourceResponseAtMs:i,gameResourceResponseSize:a,gameResourceResponseStatus:s.__revalidateResponse?.status??s.status,gameResourceDownloadDurationMs:i-o})}),t.on("fetchError",async({request:n,requestAt:o,error:s})=>{y.test(n.url)&&r({request:n,requestAt:o,error:s})})})();var k=[];function tt(){let e=0;function t(r){let n=performance.now();if(r<n-1e3){k.push(e);return}e+=1,window.requestAnimationFrame(()=>t(r))}window.requestAnimationFrame(()=>t(performance.now()))}function rt(){if(k.length===0)return;let e=k;k=[];let t=nt(e).toSorted(),r={};for(let o=0;o<=100;o+=10){let s=t[Math.floor((t.length-1)*(o/100))];s&&(r[`fpsP${o}`]=s)}let n=t.reduce((o,s)=>o+s,0);r.fpsAverage=n/t.length,window.__appsInToss.debugLogger.log("fps_every_300s",r)}function nt(e){let t=new Set(e);return Array.from(t.values())}setInterval(()=>tt(),1e3);setInterval(()=>rt(),3e5);})();\n';
214948
+ m = '"use strict";(()=>{var ve=class{get _window(){return typeof window<"u"?window:{ReactNativeWebView:{postMessage:()=>{}},__GRANITE_NATIVE_EMITTER:{on:()=>()=>{}},__CONSTANT_HANDLER_MAP:{}}}postMessage(e){let t=this._window.ReactNativeWebView;if(!t)throw new Error("ReactNativeWebView is not available in browser environment");t.postMessage(JSON.stringify(e))}on(e,t){let r=this._window.__GRANITE_NATIVE_EMITTER;if(!r)throw new Error("__GRANITE_NATIVE_EMITTER is not available");return r.on(e,t)}getConstant(e){let t=this._window.__CONSTANT_HANDLER_MAP;if(t&&e in t)return t[e];throw new Error(`${e} is not a constant handler`)}},E=new ve,z=()=>Math.random().toString(36).substring(2,15),$=e=>{if(e&&e.__isError){let t=new Error(e.message);for(let[r,n]of Object.entries(e))t[r]=n;return t}return e};function d(e){return(...t)=>{let r=z(),n=[],o=()=>{for(let s of n)s()};return new Promise((s,a)=>{n.push(E.on(`${e}/resolve/${r}`,i=>{o(),s(i)})),n.push(E.on(`${e}/reject/${r}`,i=>{o(),a($(i))})),E.postMessage({type:"method",functionName:e,eventId:r,args:t})})}}function D(e){return t=>{let r=z(),n=[E.on(`${e}/onEvent/${r}`,o=>{t.onEvent(o)}),E.on(`${e}/onError/${r}`,o=>{t.onError($(o))})];return E.postMessage({type:"addEventListener",functionName:e,eventId:r,args:t.options}),()=>{E.postMessage({type:"removeEventListener",functionName:e,eventId:r}),n.forEach(o=>o())}}}function v(e){return()=>E.getConstant(e)}var he=function(){return{emit:function(t,r){for(var n=this.events[t]||[],o=0,s=n.length;o<s;o++)n[o](r)},events:{},on:function(t,r){var n=this,o,s;return((o=this.events)[s=t]||(o[s]=[])).push(r),function(){var a;n.events[t]=(a=n.events[t])===null||a===void 0?void 0:a.filter(function(i){return r!==i})}}}};typeof window<"u"&&(window.__GRANITE_NATIVE_EMITTER=he());var it=d("closeView"),dt=d("generateHapticFeedback"),ct=d("share"),ut=d("setSecureScreen"),pt=d("setScreenAwakeMode"),mt=d("getNetworkStatus"),lt=d("setIosSwipeGestureEnabled"),gt=d("openURL"),ft=d("openPermissionDialog"),vt=d("getPermission"),ht=d("requestPermission"),wt=v("setClipboardText"),Et=v("getClipboardText"),At=v("fetchContacts"),bt=v("fetchAlbumPhotos"),_t=v("getCurrentLocation"),Ct=v("openCamera"),St=d("appLogin"),It=d("getAnonymousKey"),yt=d("eventLog"),Tt=d("getTossShareLink"),Rt=d("setDeviceOrientation"),Lt=d("checkoutPayment"),Pt=d("requestTossPayPaysBilling"),xt=d("saveBase64Data"),Dt=d("openPDFViewer"),Nt=d("fetchAlbumItems"),Mt=d("appsInTossSignTossCert"),Ft=d("getGameCenterGameProfile"),Gt=d("openGameCenterLeaderboard"),Bt=d("submitGameCenterLeaderBoardScore"),kt=d("getUserKeyForGame"),Ot=d("grantPromotionReward"),Vt=d("grantPromotionRewardForGame"),Ht=d("getIsTossLoginIntegratedService"),Ut=d("getServerTime"),qt=d("getConsentedUserData"),Wt=d("requestReview"),zt=v("getLocale"),$t=v("getSchemeUri"),jt=v("getPlatformOS"),Kt=v("getOperationalEnvironment"),Jt=v("getTossAppVersion"),Xt=v("getDeviceId"),Yt=v("getGroupId"),Zt=D("contactsViral"),Qt=D("startUpdateLocation"),er=D("onVisibilityChangedByTransparentServiceWeb");var S=class extends Error{constructor({methodName:e,message:t}){super(),this.name=`${e} permission error`,this.message=t}},j=class extends S{constructor(){super({methodName:"fetchAlbumPhotos",message:"\\uC0AC\\uC9C4\\uCCA9 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},K=class extends S{constructor(){super({methodName:"fetchContacts",message:"\\uC5F0\\uB77D\\uCC98 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},J=class extends S{constructor(){super({methodName:"openCamera",message:"\\uCE74\\uBA54\\uB77C \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}};var V=class extends S{constructor(){super({methodName:"getCurrentLocation",message:"\\uC704\\uCE58 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},X=V,Y=class extends S{constructor(){super({methodName:"getClipboardText",message:"\\uD074\\uB9BD\\uBCF4\\uB4DC \\uC77D\\uAE30 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}},Z=class extends S{constructor(){super({methodName:"setClipboardText",message:"\\uD074\\uB9BD\\uBCF4\\uB4DC \\uC4F0\\uAE30 \\uAD8C\\uD55C\\uC774 \\uAC70\\uBD80\\uB418\\uC5C8\\uC5B4\\uC694."})}};var we=class{get _window(){return typeof window<"u"?window:{ReactNativeWebView:{postMessage:()=>{}},__GRANITE_NATIVE_EMITTER:{on:()=>()=>{}},__CONSTANT_HANDLER_MAP:{}}}postMessage(e){let t=this._window.ReactNativeWebView;if(!t)throw new Error("ReactNativeWebView is not available in browser environment");t.postMessage(JSON.stringify(e))}on(e,t){let r=this._window.__GRANITE_NATIVE_EMITTER;if(!r)throw new Error("__GRANITE_NATIVE_EMITTER is not available");return r.on(e,t)}getConstant(e){let t=this._window.__CONSTANT_HANDLER_MAP;if(t&&e in t)return t[e];throw new Error(`${e} is not a constant handler`)}},A=new we,de=()=>Math.random().toString(36).substring(2,15),ce=e=>{if(e&&e.__isError){let t=new Error(e.message);for(let[r,n]of Object.entries(e))t[r]=n;return t}return e};function c(e){return(...t)=>{let r=de(),n=[],o=()=>{for(let s of n)s()};return new Promise((s,a)=>{n.push(A.on(`${e}/resolve/${r}`,i=>{o(),s(i)})),n.push(A.on(`${e}/reject/${r}`,i=>{o(),a(ce(i))})),A.postMessage({type:"method",functionName:e,eventId:r,args:t})})}}function b(e){return t=>{let r=de(),n=[A.on(`${e}/onEvent/${r}`,o=>{t.onEvent(o)}),A.on(`${e}/onError/${r}`,o=>{t.onError(ce(o))})];return A.postMessage({type:"addEventListener",functionName:e,eventId:r,args:t.options}),()=>{A.postMessage({type:"removeEventListener",functionName:e,eventId:r}),n.forEach(o=>o())}}}function p(e){return()=>A.getConstant(e)}var ur={getItem:c("getStorageItem"),setItem:c("setStorageItem"),removeItem:c("removeStorageItem"),clearItems:c("clearItems")},Ee=/^[v^~<>=]*?(\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+)(?:\\.([x*]|\\d+))?(?:-([\\da-z\\\\-]+(?:\\.[\\da-z\\\\-]+)*))?(?:\\+[\\da-z\\\\-]+(?:\\.[\\da-z\\\\-]+)*)?)?)?$/i,Q=e=>["*","x","X"].includes(e),ee=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},Ae=(e,t)=>typeof e==typeof t?[e,t]:[String(e),String(t)],be=(e,t)=>{if(Q(e)||Q(t))return 0;let[r,n]=Ae(ee(e),ee(t));return r>n?1:r<n?-1:0},te=e=>{if(typeof e!="string")throw new TypeError("Invalid argument: expected a string");let t=e.match(Ee);if(!t)throw new Error(`Invalid semver: \'${e}\'`);let[,r,n,o,s,a]=t;return[r,n,o,s,a]},re=(e,t)=>{let r=Math.max(e.length,t.length);for(let n=0;n<r;n++){let o=e[n]??"0",s=t[n]??"0",a=be(o,s);if(a!==0)return a}return 0},_e=(e,t)=>{let r=te(e),n=te(t),o=r.pop(),s=n.pop(),a=re(r,n);return a!==0?a:o&&s?re(o.split("."),s.split(".")):o?-1:s?1:0};function H(e){if(p("getOperationalEnvironment")()==="sandbox")return!0;let r=p("getTossAppVersion")(),o=p("getPlatformOS")()==="ios"?e.ios:e.android;return o===void 0?!1:o==="always"?!0:o==="never"?!1:_e(r,o)>=0}function ne(e){return c("processProductGrant")(e)}var pr={createOneTimePurchaseOrder:e=>{let t=H({android:"5.219.0",ios:"5.219.0"}),r=()=>{};if(!t)return r;let n=H({android:"5.231.1",ios:"5.230.0"}),{options:o,onEvent:s,onError:a}=e,i=o.sku??o.productId;return n?b("requestOneTimePurchase")({options:{sku:i},onEvent:async g=>{if(g.type==="purchased"){let u=await o.processProductGrant({orderId:g.data.orderId});await ne({orderId:g.data.orderId,isProductGranted:u}).catch(a)}else s(g)},onError:g=>{a(g)}}):(c("iapCreateOneTimePurchaseOrder")({productId:i}).then(u=>{Promise.resolve(o.processProductGrant({orderId:u.orderId})).then(()=>{s({type:"success",data:u})}).catch(f=>{a(f)})}).catch(u=>{a(u)}),r)},createSubscriptionPurchaseOrder:e=>{let t=H({android:"5.248.0",ios:"5.249.0"}),r=()=>{};if(!t)return r;let{options:n,onEvent:o,onError:s}=e,{sku:a,offerId:i,processProductGrant:l}=n;return b("requestSubscriptionPurchase")({options:{sku:a,offerId:i??null},onEvent:async u=>{if(u.type==="purchased"){let f=await l({orderId:u.data.orderId,subscriptionId:u.data.subscriptionId});await ne({orderId:u.data.orderId,isProductGranted:f}).catch(s)}else o(u)},onError:u=>{s(u)}})},getProductItemList:c("iapGetProductItemList"),getPendingOrders:c("getPendingOrders"),getCompletedOrRefundedOrders:c("getCompletedOrRefundedOrders"),completeProductGrant:c("completeProductGrant"),getSubscriptionInfo:c("getSubscriptionInfo")},mr=p("getSafeAreaInsets");var lr=p("getSafeAreaInsets");var gr={loadAppsInTossAdMob:Object.assign(b("loadAppsInTossAdMob"),{isSupported:p("loadAppsInTossAdMob_isSupported")}),showAppsInTossAdMob:Object.assign(b("showAppsInTossAdMob"),{isSupported:p("showAppsInTossAdMob_isSupported")}),isAppsInTossAdMobLoaded:Object.assign(c("isAppsInTossAdMobLoaded"),{isSupported:p("isAppsInTossAdMobLoaded_isSupported")})};var fr={getDeploymentId:p("getDeploymentId")},vr=p("deploymentId"),hr=p("brandDisplayName"),wr=p("brandIcon"),Er=p("brandPrimaryColor");var Ar={addAccessoryButton:c("addAccessoryButton"),removeAccessoryButton:c("removeAccessoryButton")},Ce=c("requestPermission"),Se=c("getPermission"),Ie=c("openPermissionDialog");function I({permission:e,handler:t,error:r}){let n=async(...o)=>{if(await Ce(e)==="denied")throw new r;return t(...o)};return n.getPermission=()=>Se(e),n.openPermissionDialog=()=>Ie(e),n}var _r=I({handler:e=>c("fetchAlbumPhotos")(e),permission:{name:"photos",access:"read"},error:j}),Sr=I({handler:e=>c("fetchContacts")(e),permission:{name:"contacts",access:"read"},error:K}),yr=I({handler:e=>c("getCurrentLocation")(e),permission:{name:"geolocation",access:"access"},error:V}),Rr=I({handler:e=>c("openCamera")(e),permission:{name:"camera",access:"access"},error:J}),Pr=I({handler:e=>c("setClipboardText")(e),permission:{name:"clipboard",access:"write"},error:Z}),Dr=I({handler:()=>c("getClipboardText")(),permission:{name:"clipboard",access:"read"},error:Y}),ye=c("getPermission"),Te=c("openPermissionDialog"),ue=e=>b("updateLocationEvent")({...e,onError:t=>{let r=new X;return t instanceof Error&&t.name===r.name?e.onError(r):e.onError(t)}});ue.getPermission=()=>ye({name:"geolocation",access:"access"});ue.openPermissionDialog=()=>Te({name:"geolocation",access:"access"});var Mr=Object.assign(b("loadFullScreenAd"),{isSupported:p("loadFullScreenAd_isSupported")}),Fr=Object.assign(b("showFullScreenAd"),{isSupported:p("showFullScreenAd_isSupported")}),P=new WeakMap;function Re(e,t){let r=P.get(e);if(r)return r;let n=t(),o=!1,s={destroy(){o||(o=!0,P.get(e)===s&&P.delete(e),n.destroy())}};return P.set(e,s),s}function Le(){P=new WeakMap}var Pe=c("openURL");function xe(e){let t=De(e);return Pe(t)}function De(e){return["http://","https://"].some(r=>e.startsWith(r))?Ne(e):e}function Ne(e){return`supertoss://web?url=${encodeURIComponent(e)}&external=true`}var oe="https://static.toss.im/ads/sdk/toss-ads-space-kit-1.3.0.js",se=15e3,N=null;function C(){if(!(typeof window>"u"))return window.TossAdsSpaceKit}function Me(){if(typeof window>"u"||typeof document>"u")return Promise.reject(new Error("Ads SDK can only be loaded in a browser environment."));let e=C();if(e)return Promise.resolve(e);if(N)return N;let t=new Promise((r,n)=>{let o=document.createElement("script"),s=()=>{o.removeEventListener("load",a),o.removeEventListener("error",i),window.clearTimeout(l),N=null},a=()=>{let g=C();if(g){s(),r(g);return}s(),n(new Error("Ads SDK script loaded but window.TossAdsSpaceKit was not exposed."))},i=()=>{s(),n(new Error(`Failed to load Ads SDK script from ${oe}.`))},l=window.setTimeout(()=>{s(),n(new Error(`Loading Ads SDK timed out after ${se}ms.`))},se);o.addEventListener("load",a),o.addEventListener("error",i),o.async=!0,o.src=oe,document.head.appendChild(o)});return N=t,t}var _=Object.assign(b("fetchTossAd"),{isSupported:p("fetchTossAd_isSupported")}),Fe=c("tossAdEventLog"),Ge=new Set(["1","2"]),pe="\\uC798\\uBABB\\uB41C \\uC694\\uCCAD\\uC774\\uC5D0\\uC694. \\uD544\\uC694\\uD55C \\uAC12\\uC774 \\uBE44\\uC5B4 \\uC788\\uC5B4\\uC694.";function M(e){return e.trim()}function q(){return new Error(pe)}function Be(){return{resultType:"FAIL",error:{reason:pe}}}function ke(e){return new Promise((t,r)=>{if(!_.isSupported()){r(new Error("fetchTossAd is not supported in this environment."));return}let n=M(e.adGroupId);if(n.length===0){r(q());return}return _({options:{...e,adGroupId:n},onEvent:t,onError:r})})}function ae(e){let t=Array.isArray(e.ads)?e.ads.filter(r=>Ge.has(String(r.styleId))):[];return{requestId:e.requestId??"",status:e.status??"OK",ads:t,ext:e.ext}}function Oe(e){return Ve(e)?e.resultType!=="SUCCESS"?e:e.success?{...e,success:ae(e.success)}:{resultType:"FAIL",error:{reason:"fetchTossAd returned SUCCESS without payload"}}:He(e)?{resultType:"SUCCESS",success:ae(e)}:{resultType:"FAIL",error:{reason:"Invalid response from fetchTossAd"}}}function Ve(e){return!!(e&&typeof e=="object"&&"resultType"in e)}function He(e){return!!(e&&typeof e=="object"&&"ads"in e)}function Ue(){return async(e,t)=>{let r=M(t.spaceUnitId);if(r.length===0)return Be();try{let n=await ke({adGroupId:r,sdkId:"108",availableStyleIds:["1","2"]});return Oe(n)}catch(n){return{resultType:"FAIL",error:{reason:n instanceof Error?n.message:"Unknown fetchTossAd error"}}}}}var L=null;function qe(e){let{callbacks:t}=e,r=()=>t?.onInitialized?.(),n=a=>{let i=a instanceof Error?a:new Error(String(a));t?.onInitializationFailed?.(i)};if(C()?.isInitialized()){r();return}if(L!=null){L.then(r).catch(n);return}let s=Me().then(a=>{if(a.isInitialized())return;let l={environment:"live",customAdFetcher:Ue(),opener:xe};a.init(l)});L=s,s.then(r).catch(n).finally(()=>{L===s&&(L=null)})}function We(e,t,r={}){let{callbacks:n}=r,o=M(e),s=a=>{let i=a instanceof Error?a:new Error(String(a));n?.onAdFailedToRender?.({slotId:"",adGroupId:o,adMetadata:{},error:{code:0,message:i.message}})};try{let a=o;if(a.length===0)throw q();let i=C();if(!i)throw new Error("[toss-ad] Call initialize() before attaching an ad.");if(!i.banner)throw new Error("[toss-ad] Loaded TossAdsSpaceKit does not support banner ads.");let l=typeof t=="string"?document.querySelector(t):t;if(!l)throw new Error(`[toss-ad] Failed to find target element: ${t}`);let g={spaceId:a,autoLoad:!0,theme:r.theme,padding:r.padding,callbacks:le(o,r.callbacks)};i.banner.createSlot(l,g)}catch(a){s(a)}}var ze="16px 20px",$e="20px",je="auto",Ke="blackAndWhite",Je="expanded",h="toss-ads-attach",ie="toss-ads-attach-style",me="data-toss-ads-attach-banner-wrapper",U=\'"Toss Product Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif\';function Xe(e){let t=e.ownerDocument;if(!t||t.getElementById(ie))return;let r=t.createElement("style");r.id=ie,r.textContent=`\n .${h},\n .${h} * {\n font-family: ${U};\n font-style: normal;\n }\n .${h} { background: #ffffff; }\n .${h}.toss-ads-tone-grey { background: #f2f4f7; }\n @media (prefers-color-scheme: dark) {\n .${h} { background: #17171c; }\n .${h}.toss-ads-tone-grey { background: #101013; }\n }\n .${h}.toss-ads-theme-light { background: #ffffff; }\n .${h}.toss-ads-theme-light.toss-ads-tone-grey { background: #f2f4f7; }\n .${h}.toss-ads-theme-dark { background: #17171c; }\n .${h}.toss-ads-theme-dark.toss-ads-tone-grey { background: #101013; }\n `;let n=t.head??t.body??t.documentElement;n&&n.appendChild(r)}function Ye(e){Array.from(e.children).forEach(t=>{t instanceof HTMLElement&&t.getAttribute(me)==="true"&&e.removeChild(t)})}function Ze(e,t,r={}){let{callbacks:n,theme:o=je,tone:s=Ke,variant:a=Je}=r,i=M(e),l=u=>{let f=u instanceof Error?u:new Error(String(u));n?.onAdFailedToRender?.({slotId:"",adGroupId:i,adMetadata:{},error:{code:0,message:f.message}})},g=le(i,n);try{let u=i;if(u.length===0)throw q();let f=C();if(!f)throw new Error("[toss-ad] Call initialize() before attaching an ad.");if(!f.banner)throw new Error("[toss-ad] Loaded TossAdsSpaceKit does not support banner ads.");let R=typeof t=="string"?document.querySelector(t):t;if(!R)throw new Error(`[toss-ad] Failed to find target element: ${t}`);return Re(R,()=>{let m=document.createElement("div");m.style.width="100%",m.style.height="100%",m.style.boxSizing="border-box",m.style.display="flex",m.style.flexDirection="column",m.style.fontFamily=U,m.style.fontStyle="normal",m.style.justifyContent="center",m.style.overflow="hidden",m.setAttribute(me,"true"),a==="card"&&(m.style.padding="0 10px");let w=document.createElement("div");w.classList.add(h),w.style.fontFamily=U,w.style.fontStyle="normal",s==="grey"&&w.classList.add("toss-ads-tone-grey"),o==="light"?w.classList.add("toss-ads-theme-light"):o==="dark"&&w.classList.add("toss-ads-theme-dark"),a==="card"&&(w.style.borderRadius="16px",w.style.overflow="hidden"),m.appendChild(w);let x=!1,W=null;try{Xe(R),Ye(R),R.appendChild(m),x=!0;let O={spaceId:u,autoLoad:!0,theme:o==="auto"?void 0:o,renderPadding:fe=>fe==="1"?ze:$e,callbacks:g};W=f.banner.createSlot(w,O)}catch(O){throw x&&m.parentNode&&m.parentNode.removeChild(m),O}return{destroy(){W?.destroy(),x&&m.parentNode&&m.parentNode.removeChild(m),x=!1}}})}catch(u){return l(u),{destroy(){}}}}function Qe(e){let t=C();t?.banner&&t.banner.destroy(e)}function et(){let e=C();e?.banner&&(e.banner.destroyAll(),Le())}function le(e,t){if(!t)return;let r=n=>{let o={...n??{}};return o.adGroupId=o.adGroupId??o.spaceId??e,delete o.spaceId,o};return{onAdRendered:n=>t.onAdRendered?.(r(n)),onAdViewable:n=>t.onAdViewable?.(r(n)),onAdClicked:n=>t.onAdClicked?.(r(n)),onAdImpression:n=>{Fe({log_name:"display_ads_all::impression__1px_banner",log_type:"event",params:{event_type:"impression",schema_id:1812034,request_id:n?.adMetadata?.requestId??""}}),t.onAdImpression?.(r(n))},onAdFailedToRender:n=>t.onAdFailedToRender?.({...r(n),error:n?.error??{code:0,message:"UNKNOWN"}}),onNoFill:n=>t.onNoFill?.(r(n))}}var Gr={initialize:Object.assign(qe,{isSupported:_.isSupported}),attach:Object.assign(We,{isSupported:_.isSupported}),attachBanner:Object.assign(Ze,{isSupported:_.isSupported}),destroy:Object.assign(Qe,{isSupported:_.isSupported}),destroyAll:Object.assign(et,{isSupported:_.isSupported})},Br=Object.assign(c("getServerTime"),{isSupported:p("getServerTime_isSupported")}),kr=Object.assign(c("requestReview"),{isSupported:p("requestReview_isSupported")});var F=class{_log=c("debugLog");log(t,r){try{this._log({log_name:`apps_in_toss_webview_${t}`,log_type:"debug",params:{...r,...this.getCommonParams()}})}catch{}}getCommonParams(){return{...this.getLocationInfo(),...this.getNavigatorInfo(),...this.getScreenInfo(),appName:window.__appsInToss.appName,deploymentId:window.__appsInToss.deploymentId,sessionId:window.__appsInToss.sessionId,isGame:window.__appsInToss.webViewType==="game",timestampMs:Date.now()}}getLocationInfo(){return{url:window.location.href,urlOrigin:window.location.origin,urlHost:window.location.hostname,urlPath:window.location.pathname,urlSearch:window.location.search}}getNavigatorInfo(){return{userAgent:navigator.userAgent,platform:navigator.platform,language:navigator.language,cookieEnabled:navigator.cookieEnabled,hardwareConcurrency:navigator.hardwareConcurrency,deviceMemory:navigator.deviceMemory?navigator.deviceMemory*1024*1024:void 0,maxTouchPoints:navigator.maxTouchPoints}}getScreenInfo(){return{screenWidth:screen.width,screenHeight:screen.height,availableScreenWidth:screen.availWidth,availableScreenHeight:screen.availHeight,devicePixelRatio:window.devicePixelRatio,colorDepth:screen.colorDepth,pixelDepth:screen.pixelDepth,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight}}};var G=class{callbacks={};on(t,r){return typeof this.callbacks[t]>"u"&&(this.callbacks[t]=[]),this.callbacks[t].push(r),()=>{this.callbacks[t]=this.callbacks[t]?.filter(n=>n!==r)??[]}}emit(t,r){this.callbacks[t]?.forEach(n=>n(r))}};window.__appsInToss={appName:p("getAppName")(),deploymentId:p("getDeploymentId")(),webViewType:p("getWebViewType")(),sessionId:Math.random().toString(36).substring(2),eventEmitter:new G,debugLogger:new F};var y=/\\.(data|wasm|framework\\.js)(?:\\.gz|\\.br|\\.unityweb)?$/;function B(e){window.fetch=new Proxy(window.fetch,{apply:e})}(()=>{if(window.__appsInToss.webViewType!=="game"||typeof caches>"u")return;let e="@apps-in-toss/caches/",t=`${e}${window.__appsInToss.deploymentId}`;window.addEventListener("load",async()=>{let r=await caches.keys();for(let n of r)n.startsWith(e)&&n!==t&&await caches.delete(n)}),B(async(r,n,o)=>{let s=new Request(o[0],o[1]);if(!y.test(s.url))return await r.call(n,s);let a=await caches.open(t),i=await a.match(s);if(i){let g=i.headers.get("ETag"),u=i.headers.get("Last-Modified");g&&s.headers.set("If-None-Match",g),u&&s.headers.set("If-Modified-Since",u);let f=await r.call(n,s);return f.status===304?(i.__revalidateResponse=f,i):(a.put(s,f.clone()),f)}let l=await r.call(n,s);return a.put(s,l.clone()),l})})();B(async(e,t,r)=>{let n=new Request(r[0],r[1]),o=Date.now();window.__appsInToss.eventEmitter.emit("fetchRequest",{request:n});try{let s=await e.call(t,n);return window.__appsInToss.eventEmitter.emit("fetchResponse",{request:n,response:s,requestAt:o}),s}catch(s){throw window.__appsInToss.eventEmitter.emit("fetchError",{request:n,requestAt:o,error:s}),s}});HTMLCanvasElement.prototype.getContext=new Proxy(HTMLCanvasElement.prototype.getContext,{apply:(e,t,r)=>{let n=e.apply(t,r);return(n instanceof WebGL2RenderingContext||n instanceof WebGLRenderingContext)&&window.__appsInToss.eventEmitter.emit("webglGetContext",{canvas:t,context:n}),n}});var ge=window.__appsInToss.debugLogger;ge.log("load_start",{});window.addEventListener("load",()=>{let e=performance.timeOrigin,t=performance.getEntriesByType?.("navigation")[0]??null,r=typeof e<"u"&&t!==null,n=r?{navigationStartAtMs:e+t.startTime,navigationRedirectStartAtMs:e+t.redirectStart,navigationRedirectEndAtMs:e+t.redirectEnd,navigationRedirectCount:t.redirectCount,navigationServiceWorkerStartAtMs:e+t.workerStart,navigationFetchStartAtMs:e+t.fetchStart,navigationDomainLookupStartAtMs:e+t.domainLookupStart,navigationDomainLookupEndAtMs:e+t.domainLookupEnd,navigationConnectStartAtMs:e+t.connectStart,navigationSecureConnectStartAtMs:e+t.secureConnectionStart,navigationConnectEndAtMs:e+t.connectEnd,navigationRequestStartAtMs:e+t.requestStart,navigationResponseStartAtMs:e+t.responseStart,navigationResponseEndAtMs:e+t.responseEnd,navigationDomInteractiveAtMs:e+t.domInteractive,navigationDomContentLoadedEventStartAtMs:e+t.domContentLoadedEventStart,navigationDomContentLoadedEventEndAtMs:e+t.domContentLoadedEventEnd,navigationDomCompleteAtMs:e+t.domComplete}:{};ge.log("load_complete",{isNavigationDebugSupported:r,...n})});function T(e,t){return parseFloat(e.toFixed(t))}(()=>{if(typeof performance.memory>"u"||typeof performance.memory.usedJSHeapSize>"u"||typeof performance.memory.totalJSHeapSize>"u"||typeof performance.memory.jsHeapSizeLimit>"u")return;function e(t){window.__appsInToss.debugLogger.log(t,{usedJSHeapSize:T(performance.memory.usedJSHeapSize/1024,2),totalJSHeapSize:T(performance.memory.totalJSHeapSize/1024,2),jsHeapSizeLimit:T(performance.memory.jsHeapSizeLimit/1024,2)})}e("memory_usage_first_0s"),setTimeout(()=>e("memory_usage_first_1s"),1e3),setTimeout(()=>e("memory_usage_first_10s"),1e4),setTimeout(()=>e("memory_usage_first_30s"),3e4),setTimeout(()=>e("memory_usage_first_60s"),6e4),setInterval(()=>e("memory_usage_every_180s"),18e4)})();(()=>{let e=window.__appsInToss.debugLogger,t=performance.timeOrigin;if(typeof t>"u"||typeof PerformanceObserver>"u")return;new PerformanceObserver(o=>{o.getEntries().forEach(a=>{a.name==="first-paint"?e.log("first_paint",{fpStartAtMs:t+a.startTime}):a.name==="first-contentful-paint"&&e.log("first_contentful_paint",{fcpStartAtMs:t+a.startTime})})}).observe({type:"paint"}),new PerformanceObserver(o=>{o.getEntries().forEach(a=>{e.log("largest_contentful_paint",{lcpStartAtMs:t+a.startTime,lcpRenderSize:a.size})})}).observe({type:"largest-contentful-paint"})})();(()=>{if(window.__appsInToss.webViewType!=="game")return;let e=window.__appsInToss.eventEmitter.on("webglGetContext",({canvas:t,context:r})=>{if(t.getAttribute("id")!=="unity-canvas")return;e();let n=r.getExtension("WEBGL_debug_renderer_info"),o=r.getParameter(r.MAX_VIEWPORT_DIMS),s={webGLRenderer:r.getParameter(r.RENDERER),webGLVendor:r.getParameter(r.VENDOR),webGLVersion:r.getParameter(r.VERSION),webGLShadingLanguageVersion:r.getParameter(r.SHADING_LANGUAGE_VERSION),webGLMaxTextureSize:r.getParameter(r.MAX_TEXTURE_SIZE),webGLMaxViewportWidth:o[0],webGLMaxViewportHeight:o[1],webGLMaxRenderbufferSize:r.getParameter(r.MAX_RENDERBUFFER_SIZE)},a=n?{webGLUnmaskedVendor:r.getParameter(n.UNMASKED_VENDOR_WEBGL),webGLUnmaskedRenderer:r.getParameter(n.UNMASKED_RENDERER_WEBGL)}:{};window.__appsInToss.debugLogger.log("unity_webgl_info",{...s,...a})})})();(()=>{if(window.__appsInToss.webViewType!=="game")return;let e=window.__appsInToss.debugLogger,t=window.__appsInToss.eventEmitter;t.on("fetchRequest",({request:n})=>{y.test(n.url)&&e.log("game_resource_download_start",{gameResourceRequestURL:n.url})});function r({request:n,requestAt:o,error:s}){e.log("game_resource_download_error",{gameResourceRequestURL:n.url,gameResourceRequestAtMs:o,gameResourceError:s instanceof Error?s.message:"Unknown Error"})}t.on("fetchResponse",async({request:n,requestAt:o,response:s})=>{if(!y.test(n.url))return;let a=await s.clone().blob().then(l=>T(l.size/1024,2)).catch(l=>(r({request:n,requestAt:o,error:l}),null));if(a===null)return;let i=Date.now();e.log("game_resource_download_end",{gameResourceRequestURL:n.url,gameResourceRequestAtMs:o,gameResourceResponseAtMs:i,gameResourceResponseSize:a,gameResourceResponseStatus:s.__revalidateResponse?.status??s.status,gameResourceDownloadDurationMs:i-o})}),t.on("fetchError",async({request:n,requestAt:o,error:s})=>{y.test(n.url)&&r({request:n,requestAt:o,error:s})})})();var k=[];function tt(){let e=0;function t(r){let n=performance.now();if(r<n-1e3){k.push(e);return}e+=1,window.requestAnimationFrame(()=>t(r))}window.requestAnimationFrame(()=>t(performance.now()))}function rt(){if(k.length===0)return;let e=k;k=[];let t=nt(e).toSorted(),r={};for(let o=0;o<=100;o+=10){let s=t[Math.floor((t.length-1)*(o/100))];s&&(r[`fpsP${o}`]=s)}let n=t.reduce((o,s)=>o+s,0);r.fpsAverage=n/t.length,window.__appsInToss.debugLogger.log("fps_every_300s",r)}function nt(e){let t=new Set(e);return Array.from(t.values())}setInterval(()=>tt(),1e3);setInterval(()=>rt(),3e5);})();\n';
214798
214949
  0 && (module.exports = {
214799
214950
  afterDocumentLoad,
214800
214951
  beforeDocumentLoad