PageSourceSearch

https://static.toss.im/frontend/new.toss.im/toss-im-new/_next/static/chunks/8388113c-2aa408f82205491d.js

js toss.im collected 2026-09-24 08:32:42 UTC 45,833 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="96341721-96cc-4811-a455-37784063f5db",e._sentryDebugIdIdentifier="sentry-dbid-96341721-96cc-4811-a455-37784063f5db")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9680],{199:(e,t,n)=>{n.d(t,{$V:()=>eS,IB:()=>em,SL:()=>eL,Tg:()=>e_,U0:()=>eC,i7:()=>eM,n3:()=>ep});var r=n(32961),i=n(37302),s=n(20688),l=n(85368),o=n(80222),a=n(90830),u=(e=>(e.LDAP_NAME="LDAP_NAME",e.BIZ_USER_NO="BIZ_USER_NO",e.PLACE_USER_NO="PLACE_USER_NO",e))(u||{}),c=class{logger;plugins=[];constructor({logger:e}){this.logger=e}async install(e){this.plugins.push(e),this.sort();try{await e.install(this.logger)}catch(t){console.error("Failed to install plugin",e,t)}}findByConstructor(e){return this.plugins.find(t=>t instanceof e)}async uninstall(e){if(!this.plugins.includes(e))return void console.warn("Attempted to uninstall a plugin that was not properly registered");try{await e.uninstall()}catch(t){console.error("Failed to uninstall plugin",e,t)}finally{this.remove(e)}}getAll(){return[...this.plugins]}getAllByBuildPriority(){return[...this.plugins].sort((e,t)=>e.buildPriority-t.buildPriority)}getAllByExportPriority(){return[...this.plugins].sort((e,t)=>e.exportPriority-t.exportPriority)}async uninstallAll(){let e=this.getAll().map(e=>this.uninstall(e));await Promise.all(e)}async installMany(e){let t=e.map(e=>this.install(e));await Promise.all(t)}remove(e){this.plugins=this.plugins.filter(t=>t!==e)}sort(){this.plugins.sort((e,t)=>e.priority-t.priority)}},g=new Set(["UL","OL","NAV","MENU","THEAD","TBODY","TFOOT","SELECT","DATALIST","DL"]),h=new Set(["list","menu","menubar","tablist","tree","treegrid","radiogroup","group","rowgroup"]),d=new Set(["LI","TR","TH","DT","DD","OPTION"]),f=new Set(["listitem","menuitem","menuitemcheckbox","menuitemradio","tab","treeitem","gridcell","columnheader","rowheader","row","option","radio"]),m=new Set(["SECTION","ARTICLE","HEADER","FOOTER","ASIDE","NAV","MAIN","H1","H2","H3","H4","H5","H6"]),p=new Set(["MAIN","NAV","HEADER","FOOTER","ASIDE","FORM","SECTION","ARTICLE"]),b=(e,t,n)=>{if(!n)return!0;if(e.classList.length!==t.classList.length)return!1;for(let n=0,r=e.classList.length;n<r;++n){let r=e.classList.item(n);if(null!=r&&!t.classList.contains(r))return!1}return!0};function v(e){let t={...e},n={};for(let e in t)if(null!=t[e]){if("object"==typeof t[e]&&!Array.isArray(t[e])){n[e]=v(t[e]);continue}n[e]=t[e]}for(let e of Object.getOwnPropertySymbols(t))null!=t[e]&&(n[e]=t[e]);return n}function y(e){return e>=48&&e<=57}function E(e,t,n){let i=function(e){let t=e.getAttribute(r.jC);if(null==t)return null;let[n,i]=t.split(":");return null==n||null==i?null:{target:n,mode:i}}(e);return null!=i&&("all"===i.target||i.target===t)&&i.mode===n}function w(e){let t=5381;for(let n=0,r=e.length;n<r;++n)t=(t<<5)+t^e.charCodeAt(n);return(t>>>0).toString(36)}function L(e){return!e||function(e){let t=e.length;if(t<4)return!1;for(let r=0;r<=t-4;r++){if(58!==e.charCodeAt(r)||114!==e.charCodeAt(r+1))continue;let i=r+2,s=!1;for(;i<t;i++){var n;if(!(y(n=e.charCodeAt(i))||n>=97&&n<=122))break;s=!0}if(s&&i<t&&58===e.charCodeAt(i))return!0}return!1}(e)||function(e){let t=e.length;if(t<3||118!==e.charCodeAt(0)||45!==e.charCodeAt(1))return!1;let n=2,r=!1;for(;n<t;n++){if(!y(e.charCodeAt(n)))return!1;r=!0}return r}(e)||function(e){if(36!==e.length||45!==e.charCodeAt(8)||45!==e.charCodeAt(13)||45!==e.charCodeAt(18)||45!==e.charCodeAt(23))return!1;for(let t=0;t<36;t++){if(8===t||13===t||18===t||23===t)continue;let n=e.charCodeAt(t),r=n>=65&&n<=70;if(!(y(n)||n>=97&&n<=102)&&!r)return!1}return!0}(e)?null:e}var A=e=>p.has(e.tagName)||L(e.id)||e.getAttribute("name")||e.getAttribute("aria-label");function C(e){return!!e&&(g.has(e.tagName)||h.has(e.getAttribute("role")||""))}function S(e){var t,n;if(e.hasAttribute(r.W9))return!0;let i=(e.getAttribute("role")||"").toLowerCase();if("none"===i||"presentation"===i)return!0;let s=e.tagName;return!("DIV"!==s&&"SPAN"!==s||e.hasAttribute("role")||e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")||e.hasAttribute("aria-describedby")||e.hasAttribute("aria-controls")||e.hasAttribute("contenteditable")||e instanceof HTMLElement&&e.tabIndex>=0)&&!!(1===e.children.length||(t=e?.parentElement?.getAttribute("role"),n=e.children[0]?.getAttribute("role"),t&&n&&(t===n||"list"===t&&"listitem"===n||"menu"===t&&"menuitem"===n||"menubar"===t&&"menuitem"===n||"tablist"===t&&"tab"===n||"tree"===t&&"treeitem"===n||"treegrid"===t&&"gridcell"===n||"radiogroup"===t&&"radio"===n||"group"===t&&"option"===n||"rowgroup"===t&&"row"===n)))}function _(e,t){let n=e?.parentElement;for(;n&&n!==t;){if(!S(n))return n;n=n.parentElement}return null}function x(e,t){if(!e||!t||!e.hasAttribute(t))return null;let n=e.getAttribute(t);if(!n)return null;let r=document.querySelector(`#${CSS.escape(n)}`);return r||null}var I={includeLandmarks:!0,maxLandmarks:4,includeClassNameInPath:!1};function $(e,t,n={}){let i={...I,...n},s=function(e){if(null==e)return{};let t=L(e.id)||"",n=(0,r.J2)(function(e){let t=(0,r.D$)(e,"aria-label")||(0,r.D$)(e,"aria-description")||(0,r.D$)(e,"alt")||(0,r.D$)(e,"title")||(0,r.D$)(e,"name")||"";if(""!==t.trim())return t;let n=(0,r.hH)(e);return null!=n?n:null}(e));var i={tag:e.tagName.toLowerCase(),role:(0,r.J2)(e.getAttribute("role")||e.role),name:(0,r.J2)(e.name),type:(0,r.J2)(e.type),href:e.href?(0,r.J2)(e.href):"",aria:n,txt:(0,r.J2)(e.innerText||e.textContent||""),id:t};let s={};for(let e in i)i[e]&&(s[e]=i[e]);return s}(e),l=function(e){let t=e.txt||e.aria||e.name||e.href||e.type||e.role||"unknown";return`${e.tag} '${t}'`}(s),o=Object.keys(s).filter(e=>!i.attributesToRemove?.includes(e)&&!!s[e]).map(e=>`${e}:${s[e]}`);
1if(e.hasAttribute(r.Cs))return{id:`v1_${e.getAttribute(r.Cs)}`,elementInfo:s,canonical:o.join("|"),label:l,manualLog:!0};if(s.id){let e=o.join("|");return{id:`v1_${w(`${e}|${s.id}`)}`,elementInfo:s,canonical:e,label:l}}let a=function(e,t,n=!0,i=4){let s,l,o=[],a=e;for(;a&&a!==t;){if(E(a,"click","all"))return{preventLog:!0};null==s&&null!=a&&a.hasAttribute(r.id)&&(s=a.getAttribute(r.id)||void 0),o.push(a),a=a.parentElement}let u=[],c=[],g=[],h=[],p=!1;for(let e=o.length-1;e>=0;--e){let s=o[e],a=e===o.length-1;e>0&&(0,r.T_)(s)&&null==l&&(l=s);let v=(0,r.Bp)(s);if(null!=v){let e=`[role="${v.role}"]`;u.push(e)}if(!a&&h.length<i&&A(s)){let e=L(s.id),t=e?`#${e}`:"",n=s.getAttribute("name"),i=n?`[name="${n}"]`:"",l=s.getAttribute("aria-label"),o=l?`[aria-label="${(0,r.J2)(l)}"]`:"";h.push(`${s.tagName.toLowerCase()}${t}${i}${o}`)}let y=function(e,t=document.documentElement,n=!0,i=!1){if(null==e||e.hasAttribute(r.W9))return -1;let s=_(e,t);if(!s)return -1;if(n){let t=e.getAttribute("role")||"";if(d.has(e.tagName)||f.has(t)){let t=e.parentElement,n=!1;for(;t&&t!==document.documentElement;){if(m.has(t.tagName)&&(n=!0),C(t)){if(n)break;return -1}t=t.parentElement}if(!n)return -1}}if(C(s))return -1;let l=((e,t)=>{let n=e.parentElement;if(!n||!S(n))return -1;for(;n.parentElement&&S(n.parentElement);)n=n.parentElement;let r=n.parentElement;if(!r||C(r))return -1;let i=e.parentElement;for(;i&&i.parentElement!==r;)i=i.parentElement;if(!i)return -1;let s=e.tagName.toLowerCase(),l=0,o=-1;for(let n=r.firstElementChild;null!=n;n=n.nextElementSibling){if(n===i){o=l,l++;continue}if(t){let t=0,r=n.getElementsByTagName(s);for(let n=0,i=r.length;n<i;++n)if(b(r[n],e,!0)&&++t>1)return -1;if(1!==t)return -1}else if(1!==n.getElementsByTagName(s).length)return -1;l++}return l>1?o:-1})(e,i);if(l>=0)return l;let o=e.tagName,a=0,u=-1;for(let t=s.firstElementChild;null!=t;
1t=t.nextElementSibling)t.tagName===o&&b(t,e,i)&&(t===e&&(u=a),a++);return a>1?u:-1}(s,t,a,n),E=s.tagName.toLowerCase();if(n){let e=function(e){let t=e.classList;if(!t||0===t.length)return"";let n="";for(let e=0,r=t.length;e<r;++e){let r=t.item(e);r&&(n+=`.${r}`)}return n}(s);e&&(E+=e)}S(s)||(p=!1),C(s)&&(p=!0),null!=v&&(E+=`[role="${v.role}"]`),!(y>=1)||p||s&&(d.has(s.tagName)||f.has(s.getAttribute("role")||""))||(E+=`:nth-of-type(${y+1})`),g.push(E),("DIV"!==s.tagName&&"SPAN"!==s.tagName||null!=v)&&c.push(E)}return{a11yPath:{count:u.length,selector:u.join(" ")},semanticPath:{count:c.length,selector:c.join(" ")},path:{count:g.length,selector:g.join(" > ")},landmarks:h,container:s,dialog:l}}(e,t,i.includeClassNameInPath,i.maxLandmarks);if(a.preventLog)return{id:"",elementInfo:{},canonical:"",label:"",container:a.container};let{a11yPath:u,semanticPath:c,path:g,landmarks:h,container:p,dialog:v}=a,y=function(e,t,n=2e3){for(let i of t){let t;if(!i||i.count<3)continue;try{t=document.querySelectorAll(i.selector)}catch{continue}let s=t.length;if(0===s||s>n)continue;let l=(function(e){if(e<=0)return[];if(e<=9)return Array(e).fill(0).map((e,t)=>t);let t=Math.floor(e/2);return[0,1,2,t-1,t,t+1,e-3,e-2,e-1]})(s).map(n=>(function(e){if(!e)return"null";let t=e.tagName.toLowerCase(),n=(e.getAttribute("role")||e.role||"").toLowerCase(),i=L(e.id)||"",s=e.getAttribute("name")||"",l=(0,r.J2)(e.getAttribute("aria-label"))||"";return`${t}|${n}|${i}|${s}|${l}`})(_(t[n],e)));if(l.length>0&&function(e){if(e.length<=1)return!0;let t=e[0];for(let n=1;n<e.length;++n)if(e[n]!==t)return!1;return!0}(l))return i.selector}return t[t.length-1]?.selector??""}(document.documentElement,[u,c,g]),x=function(e){let t=e.closest("form");if(!t)return null;let n=t.getAttribute("aria-label");if(n)return(0,r.J2)(n);let i=t.getAttribute("name");if(i)return i;let s=t.querySelector("h1, h2, h3, h4, h5, h6");if(s?.textContent)return(0,r.J2)(s.textContent);let l=t.getAttribute("aria-labelledby");if(l){let e=document.getElementById(l);if(e?.textContent)return(0,r.J2)(e.textContent)}let o=t.querySelector("legend");return o?.textContent?(0,r.J2)(o.textContent):Array.from(t.querySelectorAll("input[name], select[name], textarea[name]")).slice(0,3).map(e=>e.getAttribute("name")).filter(Boolean).join("-")||null}(e);x&&o.push(`form:${x}`),i.includeLandmarks&&h.length>0&&o.push(`anc:${h.slice(0,i.maxLandmarks).join(">")}`);let k=o.join("|");return{id:`v1_${w(`${k}|${y}`)}`,elementInfo:s,canonical:k,label:l,path:y,container:p,dialogFingerprint:null!=v?$(v,t):void 0}}function k(e,t){if(!e.id)return{};let n=e.dialogFingerprint;return{fingerprint:e.canonical,fingerprint_id:e.id,fingerprint_path:e.path,fingerprint_label:t||e.label,fingerprint_container:e.container,fingerprint_dialog:null!=n?`el:${n.elementInfo.role||n.elementInfo.tag}|id:${n.id}`:void 0}}var D=new WeakMap;function P(e){return null==e?{}:D.get(e)??{}}function T(e,t){if(null!=t)return void D.set(t,e);let n=null;return t=>{null!=t?(D.set(t,e),n=t):null!=n&&(D.delete(n),n=null)}}function R(e,t,{filterRoleInfo:n,filterLog:i,...s}={}){let l=[],o={};for(let a=e;null!=a&&a!==t;a=a.parentElement){if(null!=i&&!i(a))return null;if(a instanceof HTMLElement){let e=(0,r.Bp)(a,s);null!=e&&(null==n||n(e))&&l.unshift(e)}o={...P(a),...o}}if(l.length>0){let e=l.map((e,t)=>`${e.role}(a11y.${t})`).join("-");return{[r.I9]:e,[r.xR]:!1,a11y:l,...o}}return null}var N=["button","searchbox","slider","spinbutton","switch","tab","treeitem","checkbox","link","menuitem","menuitemcheckbox","menuitemradio","option","progressbar","radio","checkbox","textbox","combobox"],B=class extends r.j8{constructor(e={}){super(),this.pluginOptions=e}priority=-1/0;onInstall(e){e.accessRootElement(e=>{this.shouldListenEvent("pointerdown")&&e.addEventListener("pointerdown",this.clickHandler,{capture:!0}),this.shouldListenEvent("keydown")&&e.addEventListener("keydown",this.keydownHandler,{capture:!0}),this.shouldListenEvent("default")&&e.addEventListener(this.logger.ClickLoggingEvent.type,this.observeHandler)})}onUninstall(){this.logger.accessRootElement(e=>{this.shouldListenEvent("pointerdown")&&e.removeEventListener("pointerdown",this.clickHandler,{capture:!0}),this.shouldListenEvent("keydown")&&e.removeEventListener("keydown",this.keydownHandler,{capture:!0}),this.shouldListenEvent("default")&&e.removeEventListener(this.logger.ClickLoggingEvent.type,this.observeHandler)})}shouldListenEvent(e){return null==this.pluginOptions.preventEvent||!this.pluginOptions.preventEvent.some(t=>t===e)}sendLog(e){this.logger.sendLog("event","click",e)}observeHandler=e=>{if(e.stopPropagation(),this.logger.ClickLoggingEvent.is(e)){let{params:t,rootElement:n}=e.detail;e.currentTarget===n&&this.sendLog(t)}};clickHandler=e=>{let t=e.target instanceof Node?e.target:null,n=e.currentTarget instanceof HTMLElement?e.currentTarget:null;if(null==t||null==n)return;let r=this.makeLogData(t,n);
1null!=r&&t.dispatchEvent(this.logger.ClickLoggingEvent.create({params:r,rootElement:n}))};keydownHandler=e=>{if(!(e instanceof KeyboardEvent))return;let{key:t,target:n}=e;(" "===t||"Enter"===t)&&this.shouldKeyTriggerClick(t,n)&&this.clickHandler(e)};shouldKeyTriggerClick(e,t){if(!(t instanceof HTMLElement))return!1;let n=t.tagName.toLowerCase();if("textarea"===n||"select"===n)return!1;let r=t.getAttribute("role");return"a"===n?"Enter"===e:"input"===n?!["text","password","email","search","tel","url","number","date","time","datetime-local","month","week"].includes(t.type?.toLowerCase()??"text"):!!("button"===n||null!=r&&""!==r&&["button","tab","switch","checkbox","radio","menuitem","menuitemcheckbox","menuitemradio","option"].includes(r)||t.hasAttribute("tabindex"))}makeLogData(e,t){if(!(e instanceof Element)||E(e,"click","current")||this.logger.isWithinNestedLoggerRoot(e))return null;let n=e,i=e.closest("label")?.getAttribute("for");if(null!=i&&(n=t.querySelector(`#${CSS.escape(i)}`)),null==n||(0,r.pj)(n))return null;let s=!1;return R(n,t,{filterRoleInfo:e=>!!(!0===s||N.includes(e.role))&&(s=!0,!0),filterLog:e=>!E(e,"click","all")})}},O=class extends r.j8{priority=-1/0;paramGetters=new Map;activeAttemptId=0;beginScreenAttempt(){this.activeAttemptId+=1,setTimeout(()=>{this.logger.accessRootElement(e=>{e.dispatchEvent(this.logger.ScreenImpressionLoggingEvent.create({}))})},0)}rebindParamGetter(e){let t=this.paramGetters.get(e);null!=t&&(t.attemptId=this.activeAttemptId)}registerParamGetter(e,t){return this.paramGetters.set(e,{attemptId:this.activeAttemptId,getter:t}),()=>{this.paramGetters.delete(e)}}onBeforeLog(e){if("screen"!==e[r.dR])return e;let t={...e};for(let{attemptId:n,getter:i}of this.paramGetters.values()){if(n!==this.activeAttemptId)continue;let s=i();if(s===r.x7)return{...e,[r.yV]:!0};null!=s&&Object.assign(t,s)}return t}},j=class extends r.j8{priority=1/0;onInstall(){(0,r.S$)()||this.logger.sendScreenLog({navigation_type:"initial"})}},M="@toss/sessionId",H="@toss/browserId";function F(){if((0,r.S$)())return(0,s.Ak)();try{let e=window.localStorage.getItem(H);if(e)return e;let t=(0,s.Ak)();return window.localStorage.setItem(H,t),t}catch{return(0,s.Ak)()}}var W={get:e=>(0,r.S$)()?null:new URLSearchParams(window.location.search).get(e),create(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))null!=r&&t.set(n,String(r));let n=t.toString();return n?`?${n}`:""}},q="@toss/currentMediaSource",U={get(e){if((0,r.S$)()||!window.sessionStorage)return null;try{return window.sessionStorage.getItem(e)}catch{return null}},set(e,t){if(!(0,r.S$)()&&window.sessionStorage)try{window.sessionStorage.setItem(e,t)}catch{}}},z=class extends r.j8{uaParser=new l.O((0,r.S$)()?"server":navigator.userAgent);defaultParams={desktop_a11y_logger_version:"12.2.0",user_agent:(0,r.S$)()?"server":navigator.userAgent,user_agent_browser:this.formatUserAgentAttributes(this.uaParser.getBrowser().name,this.uaParser.getBrowser().version),user_agent_os:this.formatUserAgentAttributes(this.uaParser.getOS().name,this.uaParser.getOS().version),user_agent_vendor:this.formatUserAgentAttributes(this.uaParser.getDevice().vendor,this.uaParser.getDevice().model),browser_name:this.uaParser.getBrowser().name,session_id:function(){if((0,r.S$)())return(0,s.Ak)();try{let e=window.sessionStorage.getItem(M);if(e)return e;let t=(0,s.Ak)();return window.sessionStorage.setItem(M,t),t}catch{return(0,s.Ak)()}}(),media_source:function(){let e=W.get("mediaSource");return null!=e?(U.set(q,e),e):U.get(q)??void 0}(),web_origin:(0,r.S$)()?"server":window.location.origin,referrer:W.get("referrer")??void 0};async onBeforeLog(e){return this.mergeOptions(e)}formatUserAgentAttributes(e="unknown",t){return t?`${e} (${t})`:e}mergeOptions(e){let t={...e};for(let e in this.defaultParams)null!=this.defaultParams[e]&&(t[e]=this.defaultParams[e]);return t}};async function Q(e){return"function"==typeof e?await e():e}r.j8;var J=class extends r.j8{constructor(e){super(),this.userDispatcher=e}user=null;async onInstall(){this.user=await Q(this.userDispatcher)}async setUser(e){this.user=await Q(e)}get userParams(){return null!=this.user?{_user_id:this.user.id,_user_t
1ype:this.user.type}:{}}async onBeforeLog(e){return{...e,...this.userParams}}},V=class extends r.j8{constructor(e){super(),this.exporter=e,null!=e.buildLogData&&(this.buildLogData=(t,n)=>e.buildLogData(t,n)),null!=e.beforeExport&&(this.beforeExport=t=>e.beforeExport(t))}async export(e,t){this.exporter.export(e,t)}},G=class extends r.j8{priority=-1/0;onBeforeLog(e){let t=new URL(window.location.href),n=t.pathname;return{...e,pathname:n,query_params:Object.fromEntries(t.searchParams.entries()),url_search_params:function(e){if(e&&""!==e&&!(e.length<1))return e.slice(1)}(t.search)}}},K=class extends B{options;constructor(e={}){super(),this.options={fallbackToA11y:!0,...e}}makeLogData(e,t){if(!(e instanceof Element)||E(e,"click","current")||this.logger.isWithinNestedLoggerRoot(e))return null;let n=this.findNearestClickableElement(e,t);if(null==n)return null;let i=n;if(!n.hasAttribute(r.Cs)){let e=function(e,t){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement||e instanceof HTMLButtonElement){let n=e.labels;if(null!=n){for(let e of Array.from(n))if(e.hasAttribute(r.Cs)&&t.contains(e))return e}}return null}(n,t);if(null!=e){if(E(e,"click","current"))return null;n=e}}if(!n.hasAttribute(r.Cs)){let e=function(e){if(null==e)return null;let t=x(e,"for");if(t)return t;let n=x(e,"aria-labelledby");if(n)return n;let r=x(e,"aria-describedby");if(r)return r;if(e.hasAttribute("id")){let t=document.querySelector(`[aria-controls="${e.getAttribute("id")}"]`);if(t)return t;let n=document.querySelector(`[aria-owns="${e.getAttribute("id")}"]`);if(n)return n}return null}(n);if(null!=e){if(E(e,"click","current"))return null;n=e}}if(null==n||(0,r.pj)(n))return null;if("LABEL"===n.tagName){let e=n.getAttribute("for"),t=e?document.getElementById(e):n.querySelector("input, button, a, select, textarea");if(null!=t&&(0,r.pj)(t))return null}try{let e=$(n,document.body,this.options.fingerprintOptions);if(!e.id||"manual"===this.options.mode&&!e.manualLog)return null;let s=this.extractLabel(n),l=this.options.fallbackToA11y?R(n,t,{useLegacyRowCheck:!0}):{},o=this.extractDOMAttributes(i,t),a=n!==i?this.extractDOMAttributes(n,t):null,u=o.customEventName??a?.customEventName??null,c=o.isGlobalEvent||(a?.isGlobalEvent??!1),g=null!=a?{...a.loggingParams,...o.loggingParams}:o.loggingParams;return v({...g,[r.I9]:u??`el:${e.elementInfo.role||e.elementInfo.tag}|id:${e.id}`,[r.xR]:!!this.options.showA11yNames&&l?.[r.I9],[r.wC]:c,...k(e,s),fingerprint_active:(0,r.X7)(n)})}catch(n){if(console.warn(`[${r.bH}] Fingerprinting failed, falling back to a11y`,n),"manual"===this.options.mode)return null;if(this.options.fallbackToA11y)return super.makeLogData(e,t);return null}}extractLabel(e){if(this.options.customLabelExtractor){let t=this.options.customLabelExtractor(e);if(t)return t}return(0,r.Ef)(e)}findNearestClickableElement(e,t){if("LABEL"===e.tagName&&!e.getAttribute("for")&&!e.hasAttribute(r.Cs)){let t=e.querySelector("input, button, a, select, textarea");if(t)return t}for(let n=e;null!=n&&n!==t;n=n.parentElement)if((0,r.tg)(n))return n;return null}extractDOMAttributes(e,t){let n=null,i=!1,s={};for(let l=e;null!=l&&l!==t;l=l.parentElement){if(null==n&&l.hasAttribute(r.OF)&&(n=l.getAttribute(r.OF)),!i&&l.hasAttribute(r.s3)){let e=l.getAttribute(r.s3);i=""===e||"true"===e}s={...P(l),...s}}return{customEventName:n,isGlobalEvent:i,loggingParams:s}}},Z=class extends r.j8{priority=1/0;options;constructor(e={}){super(),this.options=this.options={fallbackToA11y:!0,...e}}onInstall(e){e.accessRootElement(e=>{e.addEventListener(this.logger.EnhancedImpressionLoggingEvent.type,this.impressionHandler)})}onUninstall(){this.logger.accessRootElement(e=>{e.removeEventListener(this.logger.EnhancedImpressionLoggingEvent.type,this.impressionHandler)})}impressionHandler=e=>{if(e.stopPropagation(),this.logger.EnhancedImpressionLoggingEvent.is(e)){let t=e.target instanceof Node?e.target:null,n=e.currentTarget instanceof HTMLElement?e.currentTarget:null;if(null==t||null==n||t instanceof Element&&this.logger.isWithinNestedLoggerRoot(t))return;let i=e.detail??{},s=i.params??{},l="string"==typeof s.fingerprint_id||"string"==typeof s[r.I9],o=this.makeLogData(t,n,{allowManual:l});null!=o&&this.sendLog({...o,...i.params??{}})}};makeLogData(e,t,n){if(!(e instanceof HTMLElement))return null;try{let i=$(e,document.body,this.options.fingerprintOptions);if("manual"===this.options.mode&&!i.manualLog&&!n?.allowManual)return null;let s=this.extractLabel(e),l=this.options.fallbackToA11y?R(e,t,{useLegacyRowCheck:!0}):{},{customEventName:o,isGlobalEvent:a,loggingParams:u}=this.extractDOMAttributes(e,t);return v({...u,[r.I9]:o??`el:${i.elementInfo.role||i.elementInfo.tag}|id:${i.id}`,[r.xR]:!!this.options.showA11yNames&&l?.[r.I9],[r.wC]:a,...k(i,s)})}catch(e){return console.warn(`[${r.bH}] Impression fingerprinting failed`,e),null}}extractLabel(e){if(this.options.customLabelExtractor){let t=this.options.customLabelExtractor(e);
1if(t)return t}return(0,r.Ef)(e)}extractDOMAttributes(e,t){let n=null,i=!1,s={};for(let l=e;null!=l&&l!==t;l=l.parentElement){if(null==n&&l.hasAttribute(r.OF)&&(n=l.getAttribute(r.OF)),!i&&l.hasAttribute(r.s3)){let e=l.getAttribute(r.s3);i=""===e||"true"===e}s={...P(l),...s}}return{customEventName:n,isGlobalEvent:i,loggingParams:s}}sendLog(e){this.logger.sendLog("event","impression",e)}};function X(e,t){let{element:n,params:r={}}=t;E(n,"impression","current")||n.dispatchEvent(e.EnhancedImpressionLoggingEvent.create({params:r,rootElement:t.rootElement}))}var Y=["alert","alertdialog","dialog"],ee=class extends r.j8{priority=-1/0;mutationObserver;options;observedElements=new WeakSet;rootElement;constructor(e={}){super(),this.options={fallbackToA11y:!0,...e}}onInstall(e){e.accessRootElement(e=>{this.rootElement=e,this.mutationObserver=new MutationObserver(t=>{t.forEach(t=>{switch(t.type){case"childList":t.addedNodes.length>0&&t.addedNodes.forEach(t=>{if(t instanceof HTMLElement)for(let n of new Set(function*(e){((0,r.oS)(e).some(e=>Y.includes(e))||"assertive"===e.getAttribute("aria-live"))&&(yield e);let t=(0,r.O0)(e);for(let e of Y){let n=t[e];null!=n&&(yield*n)}yield*e.querySelectorAll('[aria-live="assertive"]')}(t)))this.handleImpressionElement(n,e)});break;case"attributes":"aria-live"===t.attributeName&&t.target instanceof HTMLElement&&"assertive"===t.target.getAttribute("aria-live")&&this.handleImpressionElement(t.target,e)}})}),this.mutationObserver.observe(e,{childList:!0,subtree:!0,attributes:!0})})}onUninstall(){this.mutationObserver?.disconnect()}handleImpressionElement(e,t){if(this.observedElements.has(e)||E(e,"impression","current")||null!=e.closest("[data-radix-popper-content-wrapper]"))return;this.observedElements.add(e);let n=this.generateFingerprintParams(e);null!=n&&X(this.logger,{element:e,params:n,rootElement:t})}generateFingerprintParams(e){try{let t=$(e,document.body,this.options.fingerprintOptions);if("manual"===this.options.mode&&!t.manualLog)return;let n=this.extractLabel(e),{customEventName:i,isGlobalEvent:s,loggingParams:l}=this.extractDOMAttributes(e);return{...l,[r.I9]:i??`el:${t.elementInfo.role||t.elementInfo.tag}|id:${t.id}`,[r.wC]:s,...k(t,n)}}catch(e){if(console.warn(`[${r.bH}] Impression fingerprinting failed`,e),!this.options.fallbackToA11y)return;return{}}}extractLabel(e){if(this.options.customLabelExtractor){let t=this.options.customLabelExtractor(e);if(t)return t}return(0,r.Ef)(e)}extractDOMAttributes(e){let t=this.rootElement;if(!t)return{customEventName:null,isGlobalEvent:!1,loggingParams:{}};let n=null,i=!1,s={};for(let l=e;null!=l&&l!==t;l=l.parentElement){if(null==n&&l.hasAttribute(r.OF)&&(n=l.getAttribute(r.OF)),!i&&l.hasAttribute(r.s3)){let e=l.getAttribute(r.s3);i=""===e||"true"===e}s={...P(l),...s}}return{customEventName:n,isGlobalEvent:i,loggingParams:s}}},et=e=>e.replace(/[\\'\0\n\r\t]/g,""),en=e=>null==e||"number"==typeof e||"boolean"==typeof e?e:"string"==typeof e?et(e):Array.isArray(e)?e.map(en):"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,en(t)])):e,er=class extends r.j8{priority=1/0;onBeforeLog(e){return this.sanitizeParams(e)}sanitizeParams(e){let t={};for(let n in e){let r=e[n];t[n]=en(r)}for(let n of Object.getOwnPropertySymbols(e))t[n]=en(e[n]);return t}sanitizeArray(e){return e.map(e=>"string"==typeof e?et(e):Array.isArray(e)?this.sanitizeArray(e):e&&"object"==typeof e?this.sanitizeParams(e):e)}};function ei(e,t){return e&&"string"==typeof e&&e.length>t?e.slice(0,t):e}r.j8;r.j8;r.j8,"undefined"!=typeof TextEncoder&&new TextEncoder;var es=class{constructor(e,t={}){this.endpoint=e,this.options={batchSize:20,debounceTime:1e3,maxQueueSize:500,maxRetries:3,retryDelay:1e3,onBatchError:(e,t)=>{console.error("[BeaconBatchQueue] Failed to send batch:",e,t)},...t},this.setupEventListeners()}options;queue=[];debounceTimer;isProcessing=!1;enqueue(e){return this.queue.push({logData:e,timestamp:Date.now(),retryCount:0}),this.scheduleFlush(),(this.queue.length>=this.options.batchSize||this.queue.length>=this.options.maxQueueSize)&&this.flushImmediately(),!0}getQueueSize(){return this.queue.length}async forceFlush(){for(;this.queue.length>0;)await this.flush()}clearQueue(){this.queue=[]}destroy(){this.cancelDebounce(),this.removeEventListeners(),this.flushSync()}async flush(){if(this.isProcessing||0===this.queue.length)return;this.isProcessing=!0;let e=this.queue.splice(0,this.options.batchSize),t=e.map(e=>e.logData),[n]=await function(e){if(e instanceof Promise)return e.then(e=>[null,e]).catch(e=>e instanceof Error?[e,null]:[{message:"알 수 없는 오류가 발생했습니다"},null]);try{return[null,e]}catch(e){if(e instanceof Error)return[e,null];return[{message:"알 수 없는 오류가 발생했습니다"},null]}}(this.sendBatch(t));n&&this.handleSendError(n,e),this.isProcessing=!1,this.queue.length>=this.options.batchSize&&setTimeout(()=>this.flush(),0)}async sendBatch(e){if("undefined"!=typeof navigator&&"sendBeacon"in navigator&&!navigator.sendBeacon(this.endpoint,new Blob([JSON.stringify({eventList:e})],{type:"application/json"})))throw Error("Failed to send beacon")}handleSendError(e,t){let n=t.map(e=>({...e,retryCount:e.retryCount+1})).filter(e=>e.retryCount<this.options.maxRetries);n.length>0&&setTimeout(()=>{this.queue.unshift(...n)},"function"==typeof this.options.retryDelay?this.options.retryDelay(n[0].retryCount):this.options.retryDelay*n[0].retryCount);let r=t.filter(e=>e.retryCount+1>=this.options.maxRetries);r.length>0&&this.options.onBatchError(e,r.map(e=>e.logData))}scheduleFlush(){this.cancelDebounce(),this.debounceTimer=setTimeout(()=>{this.flush()},this.options.debounceTime)}flushImmediately(){this.cancelDebounce(),this.flush()}cancelDebounce(){this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=void 0)}setupEventListeners(){"undefined"!=typeof window&&(window.addEventListener("beforeunload",this.handleBeforeUnload),window.addEventListener("pagehide",this.handlePageHide))}removeEventListeners(){"undefined"!=typeof window&&(window.removeEventListener("beforeunload",this.handleBeforeUnload),window.removeEventListener("pagehide",this.handlePageHide))}handleBeforeUnload=()=>{this.flushSync()};handlePageHide=()=>{this.flushSync()};flushSync(){if(0===this.queue.length)return;let e=this.queue.map(e=>e.logData);this.sendBatch(e),this.queue=[]}};function el(e,t="_",n=""){return Object.entries(e).reduce((e,[r,i])=>{let s=n?`${n}${t}${r}`:r;return"object"==typeof i&&null!==i?Object.assign(e,el(i,t,s)):null!=i&&(e[s]=i),e},{})}var eo=class{name="debug";export({logType:e,eventType:t,params:n},i){if(null==i)return console.log(`[${r.bH}] prevent log`,{logType:e,eventType:t,params:n}),!1;let s=null!=i.schema_id?`schema:${i.schema_id}`:i.log_name;return console.groupCollapsed(`[${r.bH}] ${s}`),console.table(el(i)),console.groupEnd(),!0}},ea={threshold:10,windowMs:1e3},eu=class{endpoint;batchQueue;debugExporter;logFloodWarningOptions;logTimestamps=[];hasWarnedInCurrentWindow=!1;constructor(e,t){this.endpoint=e,this.logFloodWarningOptions=t.logFloodWarning,t.debug?this.debugExporter=new eo:null!=t.batching&&(this.batchQueue=new es(e,t.batching))}export(e,t){return(null!=this.logFloodWarningOptions&&this.checkLogFlood(),null!=this.debugExporter)?this.debugExporter.export(e,t):null!=t&&(null!=this.batchQueue?this.batchQueue.enqueue(t):globalThis.navigator.sendBeacon(this.endpoint,new Blob([JSON.stringify({eventList:[t]})],{type:"application/json"})))}checkLogFlood(){let e=Date.now(),{threshold:t,windowMs:n}=this.logFloodWarningOptions;this.logTimestamps.push(e);let r=e-n;for(;this.logTimestamps.length>0&&this.logTimestamps[0]<r;)this.logTimestamps.shift();this.logTimestamps.length>t&&!this.hasWarnedInCurrentWindow&&(console.warn(`[Dagger] ${n}ms \uB0B4\uC5D0 ${this.logTimestamps.length}\uAC1C\uC758 \uB85C\uADF8\uAC00 \uBC1C\uC0DD\uD588\uC5B4\uC694 (\uC784\uACC4\uAC12: ${t}). \uB85C\uADF8\uAC00 \uACFC\uB3C4\uD558\uAC8C \uBC1C\uC0DD\uD558\uACE0 \uC788\uB294\uC9C0 \uD655\uC778\uD574 \uC8FC\uC138\uC694.`),this.hasWarnedInCurrentWindow=!0,setTimeout(()=>{this.hasWarnedInCurrentWindow=!1},n))}getQueueSize(){return this.batchQueue?.getQueueSize()??0}async forceFlush(){return this.batchQueue?.forceFlush()??Promise.resolve()}clearQueue(){this.batchQueue?.clearQueue()}destroy(){this.batchQueue?.destroy()}};function ec(e,t={}){return{type:e,create:function(n){return new CustomEvent(e,{...t,detail:n})},is:function(t){return t instanceof CustomEvent&&t.type===e}}}var eg=ec(`${r.bH}::log_dispatch_event`,{bubbles:!0}),eh=ec("desktop-logger-v2::log_dispatch_event",{bubbles:!0}),ed=class{constructor(e={}){this.options=e}name="event_dispatch";export({logType:e,eventType:t,params:n},r){return null!=r&&(null!=r.schema_id?document.dispatchEvent(eh.create({logType:e,eventType:t,params:n,raw:r,__serviceName__:this.options.serviceName})):document.dispatchEvent(eg.create({logType:e,eventType:t,params:n,raw:r,__serviceName__:this.options.serviceName})),!0)}},ef=(0,a.createContext)(null);function em({children:e,logger:t}){return(0,o.jsx)(ef.Provider,{value:t,children:e})}function ep(){let e=(0,a.useContext)(ef);return null==e?null:"current"in e?e:{current:e}}var eb=(0,a.createContext)({});function ev({value:e,children:t}){return(0,o.jsx)(eb.Provider,{value:e,children:t})}function ey(e){return e.props?.ref??e.ref}function eE(e,t){return n=>{t(n),null!=e&&("function"==typeof e?e(n):"object"==typeof e&&"current"in e&&(e.current=n))}}function ew({children:e,capture:t,params:n,enabled:i=!0,global:s=!1,group:l=!1,container:o,label:u,id:c,schemaId:g,logType:h,eventType:d}){let f=a.Children.only(e),m=ep(),p=(0,a.useContext)(eb),b=(0,a.useRef)(null),y=(0,a.useMemo)(()=>null!=n?T(n):null,[n]);if(!i)return f;if(null!=g){let e=h??"event",i=d??"custom",l=async(...l)=>{if(await m?.current?.sendLog(g,{logType:e,eventType:i,element:b.current??void 0,params:{...p,...n,action_type:i,...s?{[r.wC]:!0}:{}}}),f.props&&"function"==typeof f.props[t])return f.props[t](...l)};return(0,a.cloneElement)(f,{[t]:l,ref:eE(ey(f),e=>{b.current=e instanceof HTMLElement?e:null})})}let E=function({global:e=!1,group:t=!1,container:n,label:i,id:s,params:l}){let o=v({[r.s3]:e?`${e}`:null,[r.W9]:t?`${t}`:null,[r.id]:n||null,[r.EP]:i||null,[r.Cs]:s||null,"aria-label":i||null});return null==l?o:{...o,ref:T(l)}}({global:s,group:l,container:o,label:u,id:c}),w=(...e)=>{if(f.props&&"function"==typeof f.props[t])return f.props[t](...e)};return null==y?(0,a.cloneElement)(f,{...E,[t]:w}):(0,a.cloneElement)(f,{...E,[t]:w,ref:eE(ey(f),e=>{(null==e||e instanceof HTMLElement)&&y(e)})})}function eL(e){return"schemaId"in e&&null!=e.schemaId?(0,o.jsx)(ew,{...e,capture:"onClick",eventType:e.eventType??"click"}):(0,o.jsx)(ew,{...e,capture:"onClick"})}var eA=new WeakSet;function eC({children:e,schemaId:t,params:n={},log:r=!0,withReferrer:i=!0,enable:s=!0}){let l=ep(),u=(0,a.useRef)(!1),c=(0,a.useMemo)(()=>i&&"undefined"!=typeof window?new URLSearchParams(window.location.search).get("referrer")??void 0:void 0,[i]),g=(0,a.useMemo)(()=>({referrer:c,...n}),[c,n]),h=(0,a.useRef)(g);h.current=g;let d=(0,a.useMemo)(()=>({...g,screen_schema_id:t}),[t,g]),f=(0,a.useCallback)(e=>{r&&s&&l?.current?.sendLog(t,{logType:"screen",params:{...h.current,log_type:"screen",navigation_type:e}})},[s,l,t,r]),m=(0,a.useCallback)(()=>
1{if(!r||!s)return;let e=l?.current??null,t=null!=e&&!eA.has(e);null!=e&&eA.add(e),f(t?"initial":"move")},[s,f,l,r]);(0,a.useEffect)(()=>{"undefined"!=typeof document&&"visible"===document.visibilityState&&(u.current||(u.current=!0,m()))},[m]);var p=(0,a.useCallback)(()=>{if(!u.current){u.current=!0,m();return}f("refocus")},[f,m]);let b=(0,a.useRef)(p);b.current=p;let v=(0,a.useRef)(0);return(0,a.useEffect)(()=>{if("undefined"==typeof document||"undefined"==typeof window)return;let e=()=>{if("visible"!==document.visibilityState)return;let e=Date.now();e-v.current<1e3||(v.current=e,b.current())};return document.addEventListener("visibilitychange",e),window.addEventListener("focus",e),()=>{document.removeEventListener("visibilitychange",e),window.removeEventListener("focus",e)}},[]),(0,o.jsx)(ev,{value:d,children:e})}var eS=({ref:e,rootMargin:t="0px",areaThreshold:n=0,loggerParams:i,id:s,schemaId:l,onImpression:o,enabled:u=!0})=>{let[c,g]=(0,a.useState)(!1),h=ep(),d=(0,a.useRef)(i);d.current=i;let f=(0,a.useRef)(o);f.current=o,function(e){let t=(0,a.useCallback)(()=>{e(document.visibilityState)},[e]);(0,a.useEffect)(()=>(document.addEventListener("visibilitychange",t),()=>{document.removeEventListener("visibilitychange",t)}),[t])}(e=>{"hidden"===e&&g(!1)}),(0,a.useEffect)(()=>{if("undefined"==typeof IntersectionObserver)return;let i=e.current;if(null==i||c||!u)return;let o=h?.current;if(null==o)return;let a=new IntersectionObserver(([e])=>{if(e?.isIntersecting){let t={[r.I9]:s,fingerprint_id:s,...d.current};if(null!=l){o.sendLog(l,{logType:"event",eventType:"impression",element:e.target instanceof HTMLElement?e.target:void 0,params:{...t,action_type:"impression"}}),f.current?.(),g(!0);return}let n={element:e.target,params:t,rootElement:o.getRootElement()??e_.UNSAFE_getDefaultRootElement()};!function(e,t){let{element:n,params:r={}}=t;E(n,"impression","current")||n.dispatchEvent(e.ImpressionLoggingEvent.create({params:r,rootElement:t.rootElement}))}(o,n),X(o,n),f.current?.(),g(!0)}},{rootMargin:t,threshold:n});return a.observe(i),()=>{a.unobserve(i),a.disconnect()}},[e,n,t,c,h,s,l,u])};r.j8;var e_=class e{static instanceRegistry=new WeakMap;static _resetInstanceRegistry(){e.instanceRegistry=new WeakMap}instanceId;type="a11y";hasEmittedScreenLog=!1;hasPendingNavigationScreenLog=!1;dispatchScreenLog=e=>{this.hasPendingNavigationScreenLog=!1,this.internalSendLog("screen",void 0,e).then(e=>{e&&(this.hasEmittedScreenLog=!0)})};debouncedSendScreenLog=(0,i.s)(e=>this.dispatchScreenLog(e),1e3);handleScreenReentry=()=>{!(0,r.S$)()&&"visible"===document.visibilityState&&this.hasEmittedScreenLog&&(this.hasPendingNavigationScreenLog||this.sendScreenLog({navigation_type:"refocus"}))};ImpressionLoggingEvent;EnhancedImpressionLoggingEvent;ClickLoggingEvent;ScreenImpressionLoggingEvent;webDeviceIdPromise;webDeviceId;_pluginManager;service;company;root;constructor({webDeviceIdPromise:t,service:n,company:i,root:l,plugins:o=[],type:a}){let u=l??this.getRootElement();if(null!=u){let t=e.instanceRegistry.get(u);if(null!=t)return t}this.instanceId=(0,s.Ak)(),this.webDeviceIdPromise=t,this.service="string"==typeof n?n:n.name,this.company=i,this.root=l,this.type=a??"a11y",this.ImpressionLoggingEvent=ec(`${r.bH}::impression::${this.instanceId}`,{bubbles:!0}),this.EnhancedImpressionLoggingEvent=ec(`${r.bH}::impression::${this.instanceId}::enhanced`,{bubbles:!0}),this.ClickLoggingEvent=ec(`${r.bH}::click::${this.instanceId}`,{bubbles:!0}),this.ScreenImpressionLoggingEvent=ec(`${r.bH}::screen_impression::${this.instanceId}`,{bubbles:!0}),this._pluginManager=new c({logger:this}),this._pluginManager.installMany(o),null!=u&&(e.instanceRegistry.set(u,this),u.setAttribute(r.fF,this.type)),(0,r.S$)()||(document.addEventListener("visibilitychange",this.handleScreenReentry),window.addEventListener("focus",this.handleScreenReentry))}get plugins(){return this._pluginManager}sendScreenLog(e){let t=e?.navigation_type;"move"===t&&this.getScreenImpressionPlugin()?.beginScreenAttempt(),null!=t&&"refocus"!==t&&(this.hasPendingNavigationScreenLog=!0),this.debouncedSendScreenLog(e)}uninstall(){(0,r.S$)()||(document.removeEventListener("visibilitychange",this.handleScreenReentry),window.removeEventListener("focus",this.handleScreenReentry));let t=this.getRootElement();null!=t&&e.instanceRegistry.get(t)===this&&e.instanceRegistry.delete(t),this._pluginManager.uninstallAll()}accessRootElement(e){let t=this.getRootElement();null!=t&&e(t)}getRootElement(){return(0,r.S$)()?null:this.root??e.UNSAFE_getDefaultRootElement()}static UNSAFE_getDefaultRootElement(){return document.body}isWithinNestedLoggerRoot(e){let t=this.getRootElement();if(null==t)return!1;for(let n=e;null!=n&&n!==t;n=n.parentElement)if(n.hasAttribute(r.fF))return!0;return!1}async sendLog(e,t,n){if("object"==typeof t&&null!=t){let{logType:n,eventType:i,params:s={},element:l}=t,o=null!=l?function(e,t){try{let t=$(e,document.body,void 0);return k(t)}catch(e){return console.warn(`[${r.bH}] Manual log fingerprinting failed`,e),{}}}(l):null,a=null!=o?{...o,...s}:s,u="number"==typeof e?{...a,schema_id:e,[r.a8]:!0}:{...a,log_name:e};await this.internalSendLog(n,i,u);return}await this.internalSendLog(e,t,n??{})}async internalSendLog(e,t,n={}){null==this.webDeviceId&&(this.webDeviceId=await this.webDeviceIdPromise);let i=await this.processOnBeforeLog({...n,[r.dR]:e});if(null==i)return!1;delete i[r.dR];let s={logType:e,eventType:t,params:i,service:this.service,company:this.company,deviceId:this.webDeviceId,instanceId:this.instanceId},l=await this.processBuildLogData(s);if(null==l)return!1;let o=await this.processBeforeExport(l);return await this.processOnExport({logType:e,eventType:t,params:i},o),!0}
1async sendCustomLog(e,t={},n={}){let i={...t,[r.Bm]:"custom",[r.I9]:e};return n.global&&(i[r.wC]=!0),this.internalSendLog("event","custom",i)}async sendDebugLog(e,t="debug",n={}){let i={...n,[r.Bm]:"debug",[r.I9]:e,[r.xR]:!1};return this.internalSendLog("debug",t,i)}getScreenImpressionPlugin(){return this._pluginManager.findByConstructor(O)??null}async setUser(e){let t=this._pluginManager.findByConstructor(J);t?.setUser(e)}async processOnBeforeLog(e){for(let t of this._pluginManager.getAll()){if(null==t.onBeforeLog)continue;let n=t.active;if(!1!==n&&(await t.waitReady(),!1!==(n=t.active)&&!0===(e=await t.onBeforeLog(e))[r.yV]))return null}return e}async processOnExport(e,t){for(let n of this._pluginManager.getAll()){if(null==n.export)continue;let r=n.active;!1!==r&&(await n.waitReady(),!1!==(r=n.active)&&await n.export(e,t))}}async processBuildLogData(e){let t=this._pluginManager.getAllByBuildPriority(),n=null,r=!1;for(let i of t){if(null==i.buildLogData)continue;r=!0;let t=i.active;if(!1!==t&&(await i.waitReady(),!1!==(t=i.active)&&null==(n=await i.buildLogData(e,n))))return null}return r?n:null}async processBeforeExport(e){let t=this._pluginManager.getAllByExportPriority(),n=e;for(let e of t){if(null==e.beforeExport)continue;let t=e.active;!1!==t&&(await e.waitReady(),!1!==(t=e.active)&&(n=e.beforeExport(n)))}return n}},ex=class extends eu{name="tossCore";constructor(e){super(function(e){let t=e.isVDI??(!(0,r.S$)()&&window.location.host.endsWith("toss.bz")),{env:n,scope:i}=e;if("external"===i&&t)throw Error("external scope는 VDI에서 사용할 수 없습니다.");let s=W.create({type:"auto"});switch(i){case"external":{let e=`/api-public/v3/app-event-receiver/apps/web/events${s}`;switch(n){case"live":case"staging":return`https://api-public.toss.im${e}`;case"alpha":return`https://api-public-alpha.toss.im${e}`;default:throw Error(`Invalid env: ${n}`)}}case"internal":{let e=`/api-public/v3/apps/web/events${s}`;if("alpha"===n)return`https://app-event-receiver.alpha-i.toss.bz${e}`;if(t)switch(n){case"live":return`https://app-event-receiver.i.toss.bz${e}`;case"staging":return`https://app-event-receiver.staging-i.toss.bz${e}`;default:throw Error(`Invalid env: ${n}`)}return`https://app-event-receiver.toss.team${e}`}default:throw Error(`Invalid scope: ${i}`)}}(e),e)}buildLogData(e){let{logType:t,eventType:n,params:i,service:o,company:a,deviceId:u}=e,c=new l.O((0,r.S$)()?"server":navigator.userAgent).getOS();if(!0===i[r.a8]){let{schema_id:e,log_name:r,log_time:l,log_version:g,popup_name:h,locale:d,value:f,...m}=el(i);return{user_no:0,ga_no:0,log_id:(0,s.Ak)(),company:a,device_id:u,schema_id:e,service:o,log_type:t,event_type:n,os:c.name,os_version:c.version,timestamp:Date.now(),log_version:2,...null!=l?{log_time:l}:{},...null!=h?{popup_name:h}:{},...null!=d?{locale:d}:{},...null!=f?{value:f}:{},params:m}}let g=i[r.I9],h=i[r.Bm]??n,d=null==g?void 0:`${g}:${h}`,f=!0===i[r.wC]?void 0:i[r.ss],m=i[r.xR],p=this.buildLogName(o,f,d,h,t),b=el(i),v=i[r.ss];if(null!=v&&(b.screen_name=v),!1!==m&&"custom"!==n){let e=null==m?void 0:`${m}:${h}`;b.a11y_log_name=this.buildLogName(o,f,e,h,t)}return{user_no:0,ga_no:0,log_id:(0,s.Ak)(),company:a,device_id:u,service:o,log_type:t,event_type:n,event_name:d,log_name:p,os:c.name,os_version:c.version,timestamp:Date.now(),params:b}}beforeExport(e){let t={...e};return null!=t.event_name&&(t.event_name=ei(String(t.event_name),180)),null!=t.log_name&&(t.log_name=ei(String(t.log_name),180)),t.params?.a11y_log_name!=null&&(t.params={...t.params},t.params.a11y_log_name=ei(String(t.params.a11y_log_name),250)),t}buildLogName(e,t,n,r,i){return`${e}${null==t?"":`__${t}`}::${null==n?r??i:n}`}},eI=/^(.*?(?:로|길|대로)\s*\d{1,5}(?:-\d{1,5}
1)?)\s+(.+)$/,e$=/^(.*?(?:동|리|가)\s*\d{1,5}(?:-\d{1,5})?)\s+(.+)$/,ek=/010-?\d{4}-?\d{4}(?=[^\d]|$)/g,eD=/0(2|3[1-3]|4[1-3]|5[4-5]|6[1-3])-?\d{3,4}-?\d{4}(?=[^\d]|$)/g,eP=/(^|\s)(\d{6}-\d{7})(?=[^\d]|$)/g,eT=/(^|\D)(\d{4}(?:-|\.)\d{2}(?:-|\.)\d{2})(?!\d)/g,eR=/(^|\D)(\d{2}(?:-|\.)\d{2}(?:-|\.)\d{2})(?!\d)/g;function eN(e){return t=>{let n,r=new RegExp(e.source,e.flags),i=t;for(;null!==(n=r.exec(t));){let e=n[2];if(!e){r.lastIndex+=1;continue}i=i.split(e).join("*".repeat(e.length))}return i}}var eB=class extends r.j8{priority=1/0;maskingRules;constructor(e={}){super();let{maskDates:t=!0}=e;this.maskingRules=[ek,eD,eN(eP),...t?[eN(eT),eN(eR)]:[],eO]}onBeforeLog(e){return function e(t,n){let r={};for(let i of Object.keys(t)){let s=t[i];if("object"==typeof s&&null!==s)r[i]=e(s,n);else if("string"==typeof s){let e=s;for(let t of n)if("function"==typeof t)e=t(e);else{let n,r=new RegExp(t.source,t.flags);for(;null!==(n=r.exec(e));){let t=n[0];if(0===t.length)break;e=e.split(t).join("*".repeat(t.length))}}r[i]=e}else r[i]=s}return Object.assign(t,r)}(e,this.maskingRules)}addMaskingRule(e){"string"==typeof e?this.maskingRules.push(RegExp(e,"g")):this.maskingRules.push(e)}};function eO(e){if(!e||!e.trim())return e;let t=e.match(eI);if(null!=t)return`${t[1]} ***`;let n=e.match(e$);return null!=n?`${n[1]} ***`:e}async function ej(e){let t=function(e){let t="wgslog",n=`https://business-accounts.toss.im/${t}`,r=`https://staging-business-accounts.toss.im/${t}`,i=`https://alpha-business-accounts.toss.im/${t}`;return"live"===e?n:"staging"===e?r:i}(e),n=await globalThis.fetch(t,{method:"POST",credentials:"include"}).then(e=>e.json());return n?.success?.sessionId&&"string"==typeof n.success.sessionId?n.success.sessionId:(console.warn(`[${r.bH}] \uB3C4\uBA54\uC778 \uC138\uC158 \uBC1C\uBC88\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4, browserId() \uD3F4\uBC31\uC744 \uC0AC\uC6A9\uD569\uB2C8\uB2E4`),F())}var eM=class e{constructor(){}static create(t,n=[]){return e.createWithPlugins(t,[...e.defaultPlugins({user:t.user,exporter:t.exporter,env:t.env,mode:t.mode??"manual",service:t.service,showA11yNames:t.showA11yNames??!0}),...n,new er])}static createWithPlugins(e,t){let n=Promise.resolve(e.useCrossDomainSession?ej(e.env):F());return{service:e.service.name,company:e.company??"web_desktop",root:e.root,plugins:t,webDeviceIdPromise:n,type:"fingerprint"}}static defaultPlugins({user:t,exporter:n,env:r,mode:i,service:s,showA11yNames:l}){return[...e.defaultProcessorPlugins(t),...e.defaultLoggingPlugins({mode:i,showA11yNames:l}),...e.defaultExporterPlugins({exporter:n,env:r,service:s})]}static defaultProcessorPlugins(e){return[new z,new J(e)]}static defaultLoggingPlugins({mode:e="manual",showA11yNames:t}){let n={includeClassNameInPath:!1,attributesToRemove:["txt","href"]};return[new G,new eB({maskDates:"manual"!==e}),..."auto"===e?[new O,new j]:[],new K({fingerprintOptions:n,mode:e,showA11yNames:t}),new ee({fingerprintOptions:n,mode:e}),new Z({fingerprintOptions:n,mode:e,showA11yNames:t})]}static defaultExporterPlugins({exporter:e,env:t,service:n}){return[new V("name"in e?e:new ex({env:t,scope:e.scope,isVDI:e.isVDI,debug:!1,logFloodWarning:ea})),new V(new ed({serviceName:n.koreanName}))]}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.