v7.0.0 release

This commit is contained in:
HeuJung committed 2026-07-01 10:30:32 +09:00
1 parent 0e7fa04b03
commit c4ea9a6cd1
3582 files changed
+626189 -160151

No files matched your search

-14
View File
@@ -1,14 +0,0 @@
{
"core": {
"errors": {
"template_not_found": "No active template found",
"layout_load_failed": "Failed to load layout",
"layout_load_failed_with_id": "Failed to load layout ({layoutId})",
"component_load_failed": "Failed to load component",
"component_load_failed_with_name": "Failed to load component ({componentName})",
"translation_load_failed": "Failed to load translation file",
"translation_load_failed_with_locale": "Failed to load {locale} translation file",
"template_init_error": "An error occurred while initializing the template engine"
}
}
}
-14
View File
@@ -1,14 +0,0 @@
{
"core": {
"errors": {
"template_not_found": "활성화된 템플릿이 없습니다",
"layout_load_failed": "레이아웃을 불러오는데 실패했습니다",
"layout_load_failed_with_id": "레이아웃({layoutId})을 불러오는데 실패했습니다",
"component_load_failed": "컴포넌트를 불러오는데 실패했습니다",
"component_load_failed_with_name": "컴포넌트({componentName})를 불러오는데 실패했습니다",
"translation_load_failed": "다국어 파일을 불러오는데 실패했습니다",
"translation_load_failed_with_locale": "{locale} 다국어 파일을 불러오는데 실패했습니다",
"template_init_error": "템플릿 엔진을 초기화하는 중 오류가 발생했습니다"
}
}
}
+60 -120
View File
@@ -1,57 +1,20 @@
var M1=Object.defineProperty;var $1=(ln,sa,aa)=>sa in ln?M1(ln,sa,{enumerable:!0,configurable:!0,writable:!0,value:aa}):ln[sa]=aa;var H=(ln,sa,aa)=>$1(ln,typeof sa!="symbol"?sa+"":sa,aa);(function(ln){"use strict";function sa(r,e){for(var t=0;t<e.length;t++){const s=e[t];if(typeof s!="string"&&!Array.isArray(s)){for(const i in s)if(i!=="default"&&!(i in r)){const o=Object.getOwnPropertyDescriptor(s,i);o&&Object.defineProperty(r,i,o.get?o:{enumerable:!0,get:()=>s[i]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}function aa(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Lu={exports:{}},Ze={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Rp;function ww(){if(Rp)return Ze;Rp=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),x=Symbol.iterator;function w(R){return R===null||typeof R!="object"?null:(R=x&&R[x]||R["@@iterator"],typeof R=="function"?R:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,k={};function A(R,q,re){this.props=R,this.context=q,this.refs=k,this.updater=re||v}A.prototype.isReactComponent={},A.prototype.setState=function(R,q){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,q,"setState")},A.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function O(){}O.prototype=A.prototype;function N(R,q,re){this.props=R,this.context=q,this.refs=k,this.updater=re||v}var D=N.prototype=new O;D.constructor=N,S(D,A.prototype),D.isPureReactComponent=!0;var $=Array.isArray;function M(){}var z={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function ye(R,q,re){var xe=re.ref;return{$$typeof:r,type:R,key:q,ref:xe!==void 0?xe:null,props:re}}function we(R,q){return ye(R.type,q,R.props)}function J(R){return typeof R=="object"&&R!==null&&R.$$typeof===r}function ve(R){var q={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(re){return q[re]})}var le=/\/+/g;function de(R,q){return typeof R=="object"&&R!==null&&R.key!=null?ve(""+R.key):q.toString(36)}function je(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(M,M):(R.status="pending",R.then(function(q){R.status==="pending"&&(R.status="fulfilled",R.value=q)},function(q){R.status==="pending"&&(R.status="rejected",R.reason=q)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function W(R,q,re,xe,oe){var ke=typeof R;(ke==="undefined"||ke==="boolean")&&(R=null);var Oe=!1;if(R===null)Oe=!0;else switch(ke){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(R.$$typeof){case r:case e:Oe=!0;break;case p:return Oe=R._init,W(Oe(R._payload),q,re,xe,oe)}}if(Oe)return oe=oe(R),Oe=xe===""?"."+de(R,0):xe,$(oe)?(re="",Oe!=null&&(re=Oe.replace(le,"$&/")+"/"),W(oe,q,re,"",function(Ie){return Ie})):oe!=null&&(J(oe)&&(oe=we(oe,re+(oe.key==null||R&&R.key===oe.key?"":(""+oe.key).replace(le,"$&/")+"/")+Oe)),q.push(oe)),1;Oe=0;var De=xe===""?".":xe+":";if($(R))for(var qe=0;qe<R.length;qe++)xe=R[qe],ke=De+de(xe,qe),Oe+=W(xe,q,re,ke,oe);else if(qe=w(R),typeof qe=="function")for(R=qe.call(R),qe=0;!(xe=R.next()).done;)xe=xe.value,ke=De+de(xe,qe++),Oe+=W(xe,q,re,ke,oe);else if(ke==="object"){if(typeof R.then=="function")return W(je(R),q,re,xe,oe);throw q=String(R),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return Oe}function he(R,q,re){if(R==null)return R;var xe=[],oe=0;return W(R,xe,"","",function(ke){return q.call(re,ke,oe++)}),xe}function ee(R){if(R._status===-1){var q=R._result;q=q(),q.then(function(re){(R._status===0||R._status===-1)&&(R._status=1,R._result=re)},function(re){(R._status===0||R._status===-1)&&(R._status=2,R._result=re)}),R._status===-1&&(R._status=0,R._result=q)}if(R._status===1)return R._result.default;throw R._result}var X=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},se={map:he,forEach:function(R,q,re){he(R,function(){q.apply(this,arguments)},re)},count:function(R){var q=0;return he(R,function(){q++}),q},toArray:function(R){return he(R,function(q){return q})||[]},only:function(R){if(!J(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return Ze.Activity=y,Ze.Children=se,Ze.Component=A,Ze.Fragment=t,Ze.Profiler=i,Ze.PureComponent=N,Ze.StrictMode=s,Ze.Suspense=h,Ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,Ze.__COMPILER_RUNTIME={__proto__:null,c:function(R){return z.H.useMemoCache(R)}},Ze.cache=function(R){return function(){return R.apply(null,arguments)}},Ze.cacheSignal=function(){return null},Ze.cLine truncated
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Lp;function Sw(){return Lp||(Lp=1,(function(r){function e(W,he){var ee=W.length;W.push(he);e:for(;0<ee;){var X=ee-1>>>1,se=W[X];if(0<i(se,he))W[X]=he,W[ee]=se,ee=X;else break e}}function t(W){return W.length===0?null:W[0]}function s(W){if(W.length===0)return null;var he=W[0],ee=W.pop();if(ee!==he){W[0]=ee;e:for(var X=0,se=W.length,R=se>>>1;X<R;){var q=2*(X+1)-1,re=W[q],xe=q+1,oe=W[xe];if(0>i(re,ee))xe<se&&0>i(oe,re)?(W[X]=oe,W[xe]=ee,X=xe):(W[X]=re,W[q]=ee,X=q);else if(xe<se&&0>i(oe,ee))W[X]=oe,W[xe]=ee,X=xe;else break e}}return he}function i(W,he){var ee=W.sortIndex-he.sortIndex;return ee!==0?ee:W.id-he.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;r.unstable_now=function(){return o.now()}}else{var d=Date,g=d.now();r.unstable_now=function(){return d.now()-g}}var h=[],f=[],p=1,y=null,x=3,w=!1,v=!1,S=!1,k=!1,A=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function D(W){for(var he=t(f);he!==null;){if(he.callback===null)s(f);else if(he.startTime<=W)s(f),he.sortIndex=he.expirationTime,e(h,he);else break;he=t(f)}}function $(W){if(S=!1,D(W),!v)if(t(h)!==null)v=!0,M||(M=!0,ve());else{var he=t(f);he!==null&&je($,he.startTime-W)}}var M=!1,z=-1,K=5,ye=-1;function we(){return k?!0:!(r.unstable_now()-ye<K)}function J(){if(k=!1,M){var W=r.unstable_now();ye=W;var he=!0;try{e:{v=!1,S&&(S=!1,O(z),z=-1),w=!0;var ee=x;try{t:{for(D(W),y=t(h);y!==null&&!(y.expirationTime>W&&we());){var X=y.callback;if(typeof X=="function"){y.callback=null,x=y.priorityLevel;var se=X(y.expirationTime<=W);if(W=r.unstable_now(),typeof se=="function"){y.callback=se,D(W),he=!0;break t}y===t(h)&&s(h),D(W)}else s(h);y=t(h)}if(y!==null)he=!0;else{var R=t(f);R!==null&&je($,R.startTime-W),he=!1}}break e}finally{y=null,x=ee,w=!1}he=void 0}}finally{he?ve():M=!1}}}var ve;if(typeof N=="function")ve=function(){N(J)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,de=le.port2;le.port1.onmessage=J,ve=function(){de.postMessage(null)}}else ve=function(){A(J,0)};function je(W,he){z=A(function(){W(r.unstable_now())},he)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(W){W.callback=null},r.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<W?Math.floor(1e3/W):5},r.unstable_getCurrentPriorityLevel=function(){return x},r.unstable_next=function(W){switch(x){case 1:case 2:case 3:var he=3;break;default:he=x}var ee=x;x=he;try{return W()}finally{x=ee}},r.unstable_requestPaint=function(){k=!0},r.unstable_runWithPriority=function(W,he){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var ee=x;x=W;try{return he()}finally{x=ee}},r.unstable_scheduleCallback=function(W,he,ee){var X=r.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?X+ee:X):ee=X,W){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=ee+se,W={id:p++,callback:he,priorityLevel:W,startTime:ee,expirationTime:se,sortIndex:-1},ee>X?(W.sortIndex=ee,e(f,W),t(h)===null&&W===t(f)&&(S?(O(z),z=-1):S=!0,je($,ee-X))):(W.sortIndex=se,e(h,W),v||w||(v=!0,M||(M=!0,ve()))),W},r.unstable_shouldYield=we,r.unstable_wrapCallback=function(W){var he=x;return function(){var ee=x;x=he;try{return W.apply(this,arguments)}finally{x=ee}}}})(zu)),zu}var Mp;function Cw(){return Mp||(Mp=1,Iu.exports=Sw()),Iu.exports}var Hu={exports:{}},Nn={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var $p;function jw(){if($p)return Nn;$p=1;var r=Mu();function e(h){var f="https://react.dev/errors/"+h;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)f+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+h+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var s={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},i=Symbol.for("react.portal");function o(h,f,p){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:y==null?null:""+y,children:h,containerInfo:f,implementation:p}}var d=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(h,f){if(h==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Nn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Nn.createPortal=function(h,f){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(e(299));return o(h,f,null,p)},Nn.flushSync=function(h){var f=d.T,p=s.p;try{if(d.T=null,s.p=2,h)return h()}finally{d.T=f,s.p=p,s.d.f()}},Nn.preconnect=function(h,f){typeof h=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,s.d.C(h,f))},Nn.prefetchDNS=function(h){typeof h=="string"&&s.d.D(h)},Nn.preinit=function(h,f){if(typeof h=="string"&&f&&typeof f.as=="string"){var p=f.as,y=g(p,f.crossOrigin),x=typeof f.integrity=="string"?f.integrity:void 0,w=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;p==="style"?s.d.S(h,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:w}):p==="script"&&s.d.X(h,{crossOrigin:y,integrity:x,fetchPriority:w,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Nn.preinitModule=function(h,f){if(typeof h=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var p=g(f.as,f.crossOrigin);s.d.M(h,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&s.d.M(h)},Nn.preload=function(h,f){if(typeof h=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var p=f.as,y=g(p,f.crossOrigin);s.d.L(h,p,{crossOrigin:y,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Nn.preloadModule=function(h,f){if(typeof h=="string")if(f){var p=g(f.as,f.crossOrigin);s.d.m(h,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else s.d.m(h)},Nn.requestFormReset=function(h){s.d.r(h)},Nn.unstable_batchedUpdates=function(h,f){return h(f)},Nn.useFormState=function(h,f,p){return d.H.useFormState(h,f,p)},Nn.useFormStatus=function(){return d.H.useHostTransitionStatus()},Nn.version="19.2.0",Nn}var Ip;function zp(){if(Ip)return Hu.exports;Ip=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}return r(),Hu.exports=jw(),Hu.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Hp;function kw(){if(Hp)return io;Hp=1;var r=Cw(),e=Mu(),t=zp();function s(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function o(n){var a=n,c=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(c=a.return),n=a.return;while(n)}return a.tag===3?c:null}function d(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function g(n){if(n.tag===31){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function h(n){if(o(n)!==n)throw Error(s(188))}function f(n){var a=n.alternate;if(!a){if(a=o(n),a===null)throw Error(s(188));return a!==n?null:n}for(var c=n,u=a;;){var m=c.return;if(m===null)break;var b=m.alternate;if(b===null){if(u=m.return,u!==null){c=u;continue}break}if(m.child===b.child){for(b=m.child;b;){if(b===c)return h(m),n;if(b===u)return h(m),a;b=b.sibling}throw Error(s(188))}if(c.return!==u.return)c=m,u=b;else{for(var E=!1,L=m.child;L;){if(L===c){E=!0,c=m,u=b;break}if(L===u){E=!0,u=m,c=b;break}L=L.sibling}if(!E){for(L=b.child;L;){if(L===c){E=!0,c=b,u=m;break}if(L===u){E=!0,u=b,c=m;break}L=L.sibling}if(!E)throw Error(s(189))}}if(c.alternate!==u)throw Error(s(190))}if(c.tag!==3)throw Error(s(188));return c.stateNode.current===c?n:a}function p(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=p(n),a!==null)return a;n=n.sibling}return null}var y=Object.assign,x=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),N=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),we=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function ve(n){return n===null||typeof n!="object"?null:(n=J&&n[J]||n["@@iterator"],typeof n=="function"?n:null)}var le=Symbol.for("react.client.reference");function de(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===le?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case S:return"Fragment";case A:return"Profiler";case k:return"StrictMode";case $:return"Suspense";case M:return"SuspenseList";case ye:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case v:return"Portal";case N:return n.displayName||"Context";case O:return(n._context.displayName||"Context")+".Consumer";case D:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case z:return a=n.displayName||null,a!==null?a:de(n.type)||"Memo";case K:a=n._payload,n=n._init;try{return de(n(a))}catch{}}return null}var je=Array.isArray,W=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},X=[],se=-1;function R(n){return{current:n}}function q(n){0>se||(n.current=X[se],X[se]=null,se--)}function re(n,a){se++,X[se]=n.current,n.current=a}var xe=R(null),oe=R(null),ke=R(null),Oe=R(null);function De(n,a){switch(re(ke,a),re(oe,n),re(xe,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?Bv(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=Bv(a),n=qv(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}q(xe),re(xe,n)}function qe(){q(xe),q(oe),q(ke)}function Ie(n){n.memoizedState!==null&&re(Oe,n);var a=xe.current,c=qv(a,n.type);a!==c&&(re(oe,n),re(xe,c))}function Nt(n){oe.current===n&&(q(xe),q(oe)),Oe.current===n&&(q(Oe),Xl._currentValue=ee)}var Rt,Xt;function Mt(n){if(Rt===void 0)try{throw Error()}catch(c){var a=c.stack.trim().match(/\n( *(at )?)/);Rt=a&&a[1]||"",Xt=-1<c.stack.indexOf(`
at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Rt+n+Xt}var Qt=!1;function Et(n,a){if(!n||Qt)return"";Qt=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var be=function(){throw Error()};if(Object.defineProperty(be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(be,[])}catch(ie){var te=ie}Reflect.construct(n,[],be)}else{try{be.call()}catch(ie){te=ie}n.call(be.prototype)}}else{try{throw Error()}catch(ie){te=ie}(be=n())&&typeof be.catch=="function"&&be.catch(function(){})}}catch(ie){if(ie&&te&&typeof ie.stack=="string")return[ie.stack,te.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=u.DetermineComponentFrameRoot(),E=b[0],L=b[1];if(E&&L){var B=E.split(`
`),Z=L.split(`
`);for(m=u=0;u<B.length&&!B[u].includes("DetermineComponentFrameRoot");)u++;for(;m<Z.length&&!Z[m].includes("DetermineComponentFrameRoot");)m++;if(u===B.length||m===Z.length)for(u=B.length-1,m=Z.length-1;1<=u&&0<=m&&B[u]!==Z[m];)m--;for(;1<=u&&0<=m;u--,m--)if(B[u]!==Z[m]){if(u!==1||m!==1)do if(u--,m--,0>m||B[u]!==Z[m]){var ce=`
`+B[u].replace(" at new "," at ");return n.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",n.displayName)),ce}while(1<=u&&0<=m);break}}}finally{Qt=!1,Error.prepareStackTrace=c}return(c=n?n.displayName||n.name:"")?Mt(c):""}function Dn(n,a){switch(n.tag){case 26:case 27:case 5:return Mt(n.type);case 16:return Mt("Lazy");case 13:return n.child!==a&&a!==null?Mt("Suspense Fallback"):Mt("Suspense");case 19:return Mt("SuspenseList");case 0:case 15:return Et(n.type,!1);case 11:return Et(n.type.render,!1);case 1:return Et(n.type,!0);case 31:return Mt("Activity");default:return""}}function Ce(n){try{var a="",c=null;do a+=Dn(n,c),c=n,n=n.return;while(n);return a}catch(u){return`
Error generating stack: `+u.message+`
`+u.stack}}var Ge=Object.prototype.hasOwnProperty,at=r.unstable_scheduleCallback,pt=r.unstable_cancelCallback,bt=r.unstable_shouldYield,_t=r.unstable_requestPaint,mt=r.unstable_now,tt=r.unstable_getCurrentPriorityLevel,vn=r.unstable_ImmediatePriority,wt=r.unstable_UserBlockingPriority,Tt=r.unstable_NormalPriority,qt=r.unstable_LowPriority,Jn=r.unstable_IdlePriority,un=r.log,Rs=r.unstable_setDisableYieldValue,ds=null,V=null;function me(n){if(typeof un=="function"&&Rs(n),V&&typeof V.setStrictMode=="function")try{V.setStrictMode(ds,n)}catch{}}var ue=Math.clz32?Math.clz32:Ae,ne=Math.log,_e=Math.LN2;function Ae(n){return n>>>=0,n===0?32:31-(ne(n)/_e|0)|0}var Me=256,ze=262144,Pe=4194304;function Te(n){var a=n&42;if(a!==0)return a;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Fe(n,a,c){var u=n.pendingLanes;if(u===0)return 0;var m=0,b=n.suspendedLanes,E=n.pingedLanes;n=n.warmLanes;var L=u&134217727;return L!==0?(u=L&~b,u!==0?m=Te(u):(E&=L,E!==0?m=Te(E):c||(c=L&~n,c!==0&&(m=Te(c))))):(L=u&~b,L!==0?m=Te(L):E!==0?m=Te(E):c||(c=u&~n,c!==0&&(m=Te(c)))),m===0?0:a!==0&&a!==m&&(a&b)===0&&(b=m&-m,c=a&-a,b>=c||b===32&&(c&4194048)!==0)?a:m}function We(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function Je(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rt(){var n=Pe;return Pe<<=1,(Pe&62914560)===0&&(Pe=4194304),n}function Ue(n){for(var a=[],c=0;31>c;c++)a.push(n);return a}function Re(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function $e(n,a,c,u,m,b){var E=n.pendingLanes;n.pendingLanes=c,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=c,n.entangledLanes&=c,n.errorRecoveryDisabledLanes&=c,n.shellSuspendCounter=0;var L=n.entanglements,B=n.expirationTimes,Z=n.hiddenUpdates;for(c=E&~c;0<c;){var ce=31-ue(c),be=1<<ce;L[ce]=0,B[ce]=-1;var te=Z[ce];if(te!==null)for(Z[ce]=null,ce=0;ce<te.length;ce++){var ie=te[ce];ie!==null&&(ie.lane&=-536870913)}c&=~be}u!==0&&lt(n,u,0),b!==0&&m===0&&n.tag!==0&&(n.suspendedLanes|=b&~(E&~a))}function lt(n,a,c){n.pendingLanes|=a,n.suspendedLanes&=~a;var u=31-ue(a);n.entangledLanes|=a,n.entanglements[u]=n.entanglements[u]|1073741824|c&261930}function Dt(n,a){var c=n.entangledLanes|=a;for(n=n.entanglements;c;){var u=31-ue(c),m=1<<u;m&a|n[u]&a&&(n[u]|=a),c&=~m}}function tn(n,a){var c=a&-a;return c=(c&42)!==0?1:xn(c),(c&(n.suspendedLanes|a))!==0?0:c}function xn(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Xn(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Qn(){var n=he.p;return n!==0?n:(n=window.event,n===void 0?32:gw(n.type))}function Ws(n,a){var c=he.p;try{return he.p=n,a()}finally{he.p=c}}var zn=Math.random().toString(36).slice(2),gn="__reactFiber$"+zn,wn="__reactProps$"+zn,Hn="__reactContainer$"+zn,Jo="__reactEvents$"+zn,bh="__reactListeners$"+zn,vh="__reactHandles$"+zn,wi="__reactResources$"+zn,ga="__reactMarker$"+zn;function Xo(n){delete n[gn],delete n[wn],delete n[Jo],delete n[bh],delete n[vh]}function Ua(n){var a=n[gn];if(a)return a;for(var c=n.parentNode;c;){if(a=c[Hn]||c[gn]){if(c=a.alternate,a.child!==null||c!==null&&c.child!==null)for(n=Jv(n);n!==null;){if(c=n[gn])return c;n=Jv(n)}return a}n=c,c=n.parentNode}return null}function Ba(n){if(n=n[gn]||n[Hn]){var a=n.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return n}return null}function Tr(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(s(33))}function Ys(n){var a=n[wi];return a||(a=n[wi]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function nn(n){n[ga]=!0}var md=new Set,yd={};function ha(n,a){qa(n,a),qa(n+"Capture",a)}function qa(n,a){for(yd[n]=a,n=0;n<a.length;n++)md.add(a[n])}var Os=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\ Line truncated
`).replace(s1,"")}function Pv(n,a){return a=Hv(a),Hv(n)===a}function It(n,a,c,u,m,b){switch(c){case"children":typeof u=="string"?a==="body"||a==="textarea"&&u===""||Fa(n,u):(typeof u=="number"||typeof u=="bigint")&&a!=="body"&&Fa(n,""+u);break;case"className":Ci(n,"class",u);break;case"tabIndex":Ci(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Ci(n,c,u);break;case"style":Xs(n,u,b);break;case"data":if(a!=="object"){Ci(n,"data",u);break}case"src":case"href":if(u===""&&(a!=="a"||c!=="href")){n.removeAttribute(c);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(c);break}u=Ni(""+u),n.setAttribute(c,u);break;case"action":case"formAction":if(typeof u=="function"){n.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(c==="formAction"?(a!=="input"&&It(n,a,"name",m.name,m,null),It(n,a,"formEncType",m.formEncType,m,null),It(n,a,"formMethod",m.formMethod,m,null),It(n,a,"formTarget",m.formTarget,m,null)):(It(n,a,"encType",m.encType,m,null),It(n,a,"method",m.method,m,null),It(n,a,"target",m.target,m,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(c);break}u=Ni(""+u),n.setAttribute(c,u);break;case"onClick":u!=null&&(n.onclick=us);break;case"onScroll":u!=null&&dt("scroll",n);break;case"onScrollEnd":u!=null&&dt("scrollend",n);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(s(61));if(c=u.__html,c!=null){if(m.children!=null)throw Error(s(60));n.innerHTML=c}}break;case"multiple":n.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":n.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){n.removeAttribute("xlink:href");break}c=Ni(""+u),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(c,""+u):n.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(c,""):n.removeAttribute(c);break;case"capture":case"download":u===!0?n.setAttribute(c,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(c,u):n.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?n.setAttribute(c,u):n.removeAttribute(c);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?n.removeAttribute(c):n.setAttribute(c,u);break;case"popover":dt("beforetoggle",n),dt("toggle",n),Si(n,"popover",u);break;case"xlinkActuate":Ls(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Ls(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Ls(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Ls(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Ls(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Ls(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Ls(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Ls(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Ls(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Si(n,"is",u);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=Ch.get(c)||c,Si(n,c,u))}}function fp(n,a,c,u,m,b){switch(c){case"style":Xs(n,u,b);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(s(61));if(c=u.__html,c!=null){if(m.children!=null)throw Error(s(60));n.innerHTML=c}}break;case"children":typeof u=="string"?Fa(n,u):(typeof u=="number"||typeof u=="bigint")&&Fa(n,""+u);break;case"onScroll":u!=null&&dt("scroll",n);break;case"onScrollEnd":u!=null&&dt("scrollend",n);break;case"onClick":u!=null&&(n.onclick=us);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne Line truncated
`).forEach(function(d){i=d.indexOf(":"),t=d.substring(0,i).trim().toLowerCase(),s=d.substring(i+1).trim(),!(!t||e[t]&&HS[t])&&(t==="set-cookie"?e[t]?e[t].push(s):e[t]=[s]:e[t]=e[t]?e[t]+", "+s:s)}),e},Sm=Symbol("internals");function vo(r){return r&&String(r).trim().toLowerCase()}function gc(r){return r===!1||r==null?r:ae.isArray(r)?r.map(gc):String(r)}function US(r){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=t.exec(r);)e[s[1]]=s[2];return e}const BS=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function ng(r,e,t,s,i){if(ae.isFunction(s))return s.call(this,e,t);if(i&&(e=t),!!ae.isString(e)){if(ae.isString(s))return e.indexOf(s)!==-1;if(ae.isRegExp(s))return s.test(e)}}function qS(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,s)=>t.toUpperCase()+s)}function GS(r,e){const t=ae.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(r,s+t,{value:function(i,o,d){return this[s].call(this,e,i,o,d)},configurable:!0})})}let Ln=class{constructor(e){e&&this.set(e)}set(e,t,s){const i=this;function o(g,h,f){const p=vo(h);if(!p)throw new Error("header name must be a non-empty string");const y=ae.findKey(i,p);(!y||i[y]===void 0||f===!0||f===void 0&&i[y]!==!1)&&(i[y||h]=gc(g))}const d=(g,h)=>ae.forEach(g,(f,p)=>o(f,p,h));if(ae.isPlainObject(e)||e instanceof this.constructor)d(e,t);else if(ae.isString(e)&&(e=e.trim())&&!BS(e))d(PS(e),t);else if(ae.isObject(e)&&ae.isIterable(e)){let g={},h,f;for(const p of e){if(!ae.isArray(p))throw TypeError("Object iterator must return a key-value pair");g[f=p[0]]=(h=g[f])?ae.isArray(h)?[...h,p[1]]:[h,p[1]]:p[1]}d(g,t)}else e!=null&&o(t,e,s);return this}get(e,t){if(e=vo(e),e){const s=ae.findKey(this,e);if(s){const i=this[s];if(!t)return i;if(t===!0)return US(i);if(ae.isFunction(t))return t.call(this,i,s);if(ae.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=vo(e),e){const s=ae.findKey(this,e);return!!(s&&this[s]!==void 0&&(!t||ng(this,this[s],s,t)))}return!1}delete(e,t){const s=this;let i=!1;function o(d){if(d=vo(d),d){const g=ae.findKey(s,d);g&&(!t||ng(s,s[g],g,t))&&(delete s[g],i=!0)}}return ae.isArray(e)?e.forEach(o):o(e),i}clear(e){const t=Object.keys(this);let s=t.length,i=!1;for(;s--;){const o=t[s];(!e||ng(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const t=this,s={};return ae.forEach(this,(i,o)=>{const d=ae.findKey(s,o);if(d){t[d]=gc(i),delete t[o];return}const g=e?qS(o):String(o).trim();g!==o&&delete t[o],t[g]=gc(i),s[g]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ae.forEach(this,(s,i)=>{s!=null&&s!==!1&&(t[i]=e&&ae.isArray(s)?s.join(", "):s)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const s=new this(e);return t.forEach(i=>s.set(i)),s}static accessor(e){const s=(this[Sm]=this[Sm]={accessors:{}}).accessors,i=this.prototype;function o(d){const g=vo(d);s[g]||(GS(i,d),s[g]=!0)}return ae.isArray(e)?e.forEach(o):o(e),this}};Ln.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ae.reduceDescriptors(Ln.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(s){this[t]=s}}}),ae.freezeMethods(Ln);function sg(r,e){const t=this||bo,s=e||t,i=Ln.from(s.headers);let o=s.data;return ae.forEach(r,function(g){o=g.call(t,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function Cm(r){return!!(r&&r.__CANCEL__)}function ii(r,e,t){st.call(this,r??"canceled",st.ERR_CANCELED,e,t),this.name="CanceledError"}ae.inherits(ii,st,{__CANCEL__:!0});function jm(r,e,t){const s=t.config.validateStatus;!t.status||!s||s(t.status)?r(t):e(new st("Request failed with status code "+t.status,[st.ERR_BAD_REQUEST,st.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function FS(r){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function VS(r,e){r=r||10;const t=new Array(r),s=new Array(r);let i=0,o=0,d;return e=e!==void 0?e:1e3,function(h){const f=Date.now(),p=s[o];d||(d=f),t[i]=h,s[i]=f;let y=o,x=0;for(;y!==i;)x+=t[y++],y=y%r;if(i=(i+1)%r,i===o&&(o=(o+1)%r),f-d<e)return;const w=p&&f-p;return w?Math.round(x*1e3/w):void 0}}function KS(r,e){let t=0,s=1e3/e,i,o;const d=(f,p=Date.now())=>{t=p,i=null,o&&(clearTimeout(o),o=null),r(...f)};return[(...f)=>{const p=Date.now(),y=p-t;y>=s?d(f,p):(i=f,o||(o=setTimeout(()=>{o=null,d(i)},s-y)))},()=>i&&d(i)]}const hc=(r,e,t=3)=>{let s=0;const i=VS(50,250);return KS(o=>{const d=o.loaded,g=o.lengthComputable?o.total:void 0,h=d-s,f=i(h),p=d<=g;s=d;const y={loaded:d,total:g,progress:g?d/g:void 0,bytes:h,rate:f||void 0,estimated:f&&g&&p?(g-d)/f:void 0,event:o,lengthComputable:g!=null,[e?"download":"upload"]:!0};r(y)},t)},km=(r,e)=>{const t=r!=null;return[s=>e[0]({lengthComputable:t,total:r,loaded:s}),e[1]]},Nm=r=>(...e)=>ae.asap(()=>r(...e)),WS=En.hasStandardBrowserEnv?((r,e)=>t=>(t=new URL(t,En.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)))(new URL(En.origin),En.navigator&&/(msie|trident)/i.test(En.navigator.userAgent)):()=>!0,YS=En.hasStandardBrowserEnv?{write(r,e,t,s,i,o){const d=[r+"="+encodeURIComponent(e)];ae.isNumber(t)&&d.push("expires="+new Date(t).toGMTString()),ae.isString(s)&&d.push("path="+s),ae.isString(i)&&d.push("domain="+i),o===!0&&d.push("secure"),document.cookie=d.join("; ")},read(r){const e=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function JS(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function XS(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function Em(r,e,t){let s=!JS(e);return r&&(s||t==!1)?XS(r,e):e}const _m=r=>r instanceof Ln?{...r}:r;function wr(r,e){e=e||{};const t={};function s(f,p,y,x){return ae.isPlainObject(f)&&ae.isPlainObject(p)?ae.merge.call({caseless:x},f,p):ae.isPlainObject(p)?ae.merge({},p):ae.isArray(p)?p.slice():p}function i(f,p,y,x){if(ae.isUndefined(p)){if(!ae.isUndefined(f))return s(void 0,f,y,x)}else return s(f,p,y,x)}function o(f,p){if(!ae.isUndefined(p))return s(void 0,p)}function d(f,p){if(ae.isUndefined(p)){if(!ae.isUndefined(f))return s(void 0,f)}else return s(void 0,p)}function g(f,p,y){if(y in e)return s(f,p);if(y in r)return s(void 0,f)}const h={url:o,method:o,data:o,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:g,headers:(f,p,y)=>i(_m(f),_m(p),y,!0)};return ae.forEach(Object.keys({...r,...e}),function(p){const y=h[p]||i,x=y(r[p],e[p],p);ae.isUndefined(x)&&y!==g||(t[p]=x)}),t}const Am=r=>{const e=wr({},r);let{data:t,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:o,headers:d,auth:g}=e;if(e.headers=d=Ln.from(d),e.url=xm(Em(e.baseURL,e.url,e.allowAbsoluteUrls),r.params,r.paramsSerializer),g&&d.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):""))),ae.isFormData(t)){if(En.hasStandardBrowserEnv||En.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if(ae.isFunction(t.getHeaders)){const h=t.getHeaders(),f=["content-type","content-length"];Object.entries(h).forEach(([p,y])=>{f.includes(p.toLowerCase())&&d.set(p,y)})}}if(En.hasStandardBrowserEnv&&(s&&ae.isFunction(s)&&(s=s(e Line truncated
`+d.map($m).join(`
`):" "+$m(d[0]):"as no adapter specified";throw new st("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return i},adapters:ag};function rg(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new ii(null,r)}function zm(r){return rg(r),r.headers=Ln.from(r.headers),r.data=sg.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),Im.getAdapter(r.adapter||bo.adapter,r)(r).then(function(s){return rg(r),s.data=sg.call(r,r.transformResponse,s),s.headers=Ln.from(s.headers),s},function(s){return Cm(s)||(rg(r),s&&s.response&&(s.response.data=sg.call(r,r.transformResponse,s.response),s.response.headers=Ln.from(s.response.headers))),Promise.reject(s)})}const Hm="1.12.2",pc={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{pc[r]=function(s){return typeof s===r||"a"+(e<1?"n ":" ")+r}});const Pm={};pc.transitional=function(e,t,s){function i(o,d){return"[Axios v"+Hm+"] Transitional option '"+o+"'"+d+(s?". "+s:"")}return(o,d,g)=>{if(e===!1)throw new st(i(d," has been removed"+(t?" in "+t:"")),st.ERR_DEPRECATED);return t&&!Pm[d]&&(Pm[d]=!0,console.warn(i(d," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,d,g):!0}},pc.spelling=function(e){return(t,s)=>(console.warn(`${s} is likely a misspelling of ${e}`),!0)};function o7(r,e,t){if(typeof r!="object")throw new st("options must be an object",st.ERR_BAD_OPTION_VALUE);const s=Object.keys(r);let i=s.length;for(;i-- >0;){const o=s[i],d=e[o];if(d){const g=r[o],h=g===void 0||d(g,o,r);if(h!==!0)throw new st("option "+o+" must be "+h,st.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new st("Unknown option "+o,st.ERR_BAD_OPTION)}}const mc={assertOptions:o7,validators:pc},Us=mc.validators;let Sr=class{constructor(e){this.defaults=e||{},this.interceptors={request:new bm,response:new bm}}async request(e,t){try{return await this._request(e,t)}catch(s){if(s instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{s.stack?o&&!String(s.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+o):s.stack=o}catch{}}throw s}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=wr(this.defaults,t);const{transitional:s,paramsSerializer:i,headers:o}=t;s!==void 0&&mc.assertOptions(s,{silentJSONParsing:Us.transitional(Us.boolean),forcedJSONParsing:Us.transitional(Us.boolean),clarifyTimeoutError:Us.transitional(Us.boolean)},!1),i!=null&&(ae.isFunction(i)?t.paramsSerializer={serialize:i}:mc.assertOptions(i,{encode:Us.function,serialize:Us.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),mc.assertOptions(t,{baseUrl:Us.spelling("baseURL"),withXsrfToken:Us.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let d=o&&ae.merge(o.common,o[t.method]);o&&ae.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),t.headers=Ln.concat(d,o);const g=[];let h=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(t)===!1||(h=h&&S.synchronous,g.unshift(S.fulfilled,S.rejected))});const f=[];this.interceptors.response.forEach(function(S){f.push(S.fulfilled,S.rejected)});let p,y=0,x;if(!h){const v=[zm.bind(this),void 0];for(v.unshift(...g),v.push(...f),x=v.length,p=Promise.resolve(t);y<x;)p=p.then(v[y++],v[y++]);return p}x=g.length;let w=t;for(;y<x;){const v=g[y++],S=g[y++];try{w=v(w)}catch(k){S.call(this,k);break}}try{p=zm.call(this,w)}catch(v){return Promise.reject(v)}for(y=0,x=f.length;y<x;)p=p.then(f[y++],f[y++]);return p}getUri(e){e=wr(this.defaults,e);const t=Em(e.baseURL,e.url,e.allowAbsoluteUrls);return xm(t,e.params,e.paramsSerializer)}};ae.forEach(["delete","get","head","options"],function(e){Sr.prototype[e]=function(t,s){return this.request(wr(s||{},{method:e,url:t,data:(s||{}).data}))}}),ae.forEach(["post","put","patch"],function(e){function t(s){return function(o,d,g){return this.request(wr(g||{},{method:e,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:d}))}}Sr.prototype[e]=t(),Sr.prototype[e+"Form"]=t(!0)});let l7=class bw{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(o){t=o});const s=this;this.promise.then(i=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](i);s._listeners=null}),this.promise.then=i=>{let o;const d=new Promise(g=>{s.subscribe(g),o=g}).then(i);return d.cancel=function(){s.unsubscribe(o)},d},e(function(o,d,g){s.reason||(s.reason=new ii(o,d,g),t(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=s=>{e.abort(s)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new bw(function(i){e=i}),cancel:e}}};function c7(r){return function(t){return r.apply(null,t)}}function d7(r){return ae.isObject(r)&&r.isAxiosError===!0}const ig={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ig).forEach(([r,e])=>{ig[e]=r});function Um(r){const e=new Sr(r),t=sm(Sr.prototype.request,e);return ae.extend(t,Sr.prototype,e,{allOwnKeys:!0}),ae.extend(t,e,null,{allOwnKeys:!0}),t.create=function(i){return Um(wr(r,i))},t}const Jt=Um(bo);Jt.Axios=Sr,Jt.CanceledError=ii,Jt.CancelToken=l7,Jt.isCancel=Cm,Jt.VERSION=Hm,Jt.toFormData=uc,Jt.AxiosError=st,Jt.Cancel=Jt.CanceledError,Jt.all=function(e){return Promise.all(e)},Jt.spread=c7,Jt.isAxiosError=d7,Jt.mergeConfig=wr,Jt.AxiosHeaders=Ln,Jt.formToJSON=r=>wm(ae.isHTMLForm(r)?new FormData(r):r),Jt.getAdapter=Im.getAdapter,Jt.HttpStatusCode=ig,Jt.default=Jt Line truncated
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var qm;function h7(){if(qm)return So;qm=1;var r=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(s,i,o){var d=null;if(o!==void 0&&(d=""+o),i.key!==void 0&&(d=""+i.key),"key"in i){o={};for(var g in i)g!=="key"&&(o[g]=i[g])}else o=i;return i=o.ref,{$$typeof:r,type:s,key:d,ref:i!==void 0?i:null,props:o}}return So.Fragment=e,So.jsx=t,So.jsxs=t,So}var Gm;function f7(){return Gm||(Gm=1,dg.exports=h7()),dg.exports}var l=f7();const p7=sa({__proto__:null,default:aa(l)},[l]),ug=nt("ParentContextProvider"),Fm=j.createContext(null);let xc=null;function gg(){xc?(ug.log("[triggerModalParentUpdate] 모달 부모 컨텍스트 업데이트 트리거"),xc()):ug.warn("[triggerModalParentUpdate] Provider가 아직 마운트되지 않음")}const Vm=({children:r})=>{const[e,t]=j.useState(0),s=j.useRef(!0),i=j.useCallback(()=>{const d=window.__g7LayoutContextStack||[];return d[d.length-1]?.dataContext},[]);j.useEffect(()=>(s.current=!0,xc=()=>{s.current&&(t(d=>d+1),ug.log("[ParentContextProvider] 버전 업데이트됨"))},()=>{s.current=!1,xc=null}),[]);const o={version:e,getParentDataContext:i};return l.jsx(Fm.Provider,{value:o,children:r})};function m7(){return j.useContext(Fm)}const hg="g7.identity.redirectStash",bc=nt("IdentityGuardInterceptor");class cn{static setLauncher(e){this.launcher=e}static hasLauncher(){return this.launcher!==null}static resolveDeferred(e){const t=this.deferredResolver;if(!t){bc.warn("IdentityGuardInterceptor.resolveDeferred 호출됐지만 대기 중인 launcher 가 없습니다. 모달이 launcher 외부에서 열렸는지 확인하세요.");return}this.deferredResolver=null,t(e)}static createDeferred(){if(this.deferredResolver){const e=this.deferredResolver;this.deferredResolver=null,e({status:"cancelled"})}return new Promise(e=>{this.deferredResolver=e})}static isIdentityRequired(e,t){return e===428&&typeof t=="object"&&t!==null&&t.error_code==="identity_verification_required"}static async handle(e,t){const i=await(this.launcher??x7)(e.verification);if(i.status!=="verified")return null;const o=e.verification.return_request;if(!o)return null;const d=y7(o.url,i.token);return fetch(d,{method:o.method,headers:t?.headers??{Accept:"application/json","Content-Type":"application/json"},body:t?.body,credentials:t?.credentials??"same-origin"})}static redirectExternally(e){const t=e.redirect_url;if(!t)return bc.error("redirectExternally 호출 시 verification.redirect_url 이 없습니다. payload:",e),Promise.resolve({status:"failed",failureCode:"MISSING_REDIRECT_URL",reason:"verification.redirect_url is required for external_redirect flow"});if(typeof window<"u"){const s={return_url:window.location.href,payload:e,stashed_at:Date.now()};try{window.sessionStorage?.setItem(hg,JSON.stringify(s))}catch(i){bc.warn("sessionStorage 접근 실패 — stash 없이 redirect 합니다.",i)}window.location.href=t}return new Promise(()=>{})}static reset(){if(this.deferredResolver){const e=this.deferredResolver;this.deferredResolver=null;try{e({status:"cancelled"})}catch{}}this.launcher=null}}H(cn,"launcher",null),H(cn,"deferredResolver",null);function y7(r,e){if(!e)return r;try{const t=typeof window<"u"?window.location.origin:"http://localhost",s=new URL(r,t);return s.searchParams.set("verification_token",e),/^https?:\/\//i.test(r)?s.toString():`${s.pathname}${s.search}${s.hash}`}catch{const t=r.includes("?")?"&":"?";return`${r}${t}verification_token=${encodeURIComponent(e)}`}}const x7=async r=>{if(typeof window>"u")return{status:"cancelled"};if(r.render_hint==="external_redirect"||r.redirect_url)return cn.redirectExternally(r);const e=window.G7Core;if(!e?.dispatch)return console.error("[IdentityGuardInterceptor] defaultLauncher: G7Core 가 초기화되지 않아 본인인증 흐름을 시작할 수 없습니다."),{status:"failed",failureCode:"G7_NOT_READY"};try{await e.dispatch({handler:"toast",params:{message:"본인 확인이 필요합니다.",variant:"warning"}})}catch{}const t=window.location.href,s={return_url:t,payload:r,stashed_at:Date.now()};try{window.sessionStorage?.setItem(hg,JSON.stringify(s))}catch{}const i=`/identity/challenge?return=${encodeURIComponent(t)}`;try{await e.dispatch({handler:"navigate",params:{path:i}})}catch(o){bc.warn("navigate 실패 — window.location 으로 폴백",o),window.location.href=i}return new Promise(()=>{})},U=nt("ActionDispatcher"),Km=new Set(["navigate","navigateBack","navigateForward","replaceUrl","refresh","logout"]),b7=new Set(["redirect"]);function Kn(){try{return window.G7Core?.devTools}catch{return}}class Gt extends Error{constructor(e,t,s){super(e),this.action=t,this.originalError=s,this.name="ActionError"}}const vi=class vi{constructor(e={},t,s){H(this,"bindingEngine");H(this,"translationEngine");H(this,"translationContext");H(this,"customHandlers",new Map);H(this,"defaultContext");H(this,"globalStateUpdater");H(this,"errorHandlingSetup",!1);H(this,"debounceTimers",new Map);H(this,"pendingDebounceFlushers",new Map);H(this,"dLine truncated
var tee=Object.defineProperty;var nee=(Gn,fo,po)=>fo in Gn?tee(Gn,fo,{enumerable:!0,configurable:!0,writable:!0,value:po}):Gn[fo]=po;var ne=(Gn,fo,po)=>nee(Gn,typeof fo!="symbol"?fo+"":fo,po);(function(Gn){"use strict";function fo(n,e){for(var t=0;t<e.length;t++){const s=e[t];if(typeof s!="string"&&!Array.isArray(s)){for(const r in s)if(r!=="default"&&!(r in n)){const o=Object.getOwnPropertyDescriptor(s,r);o&&Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>s[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function po(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var kg={exports:{}},Et={};var Sv;function eT(){if(Sv)return Et;Sv=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),b=Symbol.iterator;function y(N){return N===null||typeof N!="object"?null:(N=b&&N[b]||N["@@iterator"],typeof N=="function"?N:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function _(N,V,ee){this.props=N,this.context=V,this.refs=S,this.updater=ee||v}_.prototype.isReactComponent={},_.prototype.setState=function(N,V){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,V,"setState")},_.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function A(){}A.prototype=_.prototype;function C(N,V,ee){this.props=N,this.context=V,this.refs=S,this.updater=ee||v}var j=C.prototype=new A;j.constructor=C,x(j,_.prototype),j.isPureReactComponent=!0;var E=Array.isArray;function T(){}var D={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function W(N,V,ee){var se=ee.ref;return{$$typeof:n,type:N,key:V,ref:se!==void 0?se:null,props:ee}}function z(N,V){return W(N.type,V,N.props)}function H(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function G(N){var V={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(ee){return V[ee]})}var F=/\/+/g;function Z(N,V){return typeof N=="object"&&N!==null&&N.key!=null?G(""+N.key):V.toString(36)}function Y(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(T,T):(N.status="pending",N.then(function(V){N.status==="pending"&&(N.status="fulfilled",N.value=V)},function(V){N.status==="pending"&&(N.status="rejected",N.reason=V)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function U(N,V,ee,se,re){var pe=typeof N;(pe==="undefined"||pe==="boolean")&&(N=null);var je=!1;if(N===null)je=!0;else switch(pe){case"bigint":case"string":case"number":je=!0;break;case"object":switch(N.$$typeof){case n:case e:je=!0;break;case g:return je=N._init,U(je(N._payload),V,ee,se,re)}}if(je)return re=re(N),je=se===""?"."+Z(N,0):se,E(re)?(ee="",je!=null&&(ee=je.replace(F,"$&/")+"/"),U(re,V,ee,"",function(be){return be})):re!=null&&(H(re)&&(re=z(re,ee+(re.key==null||N&&N.key===re.key?"":(""+re.key).replace(F,"$&/")+"/")+je)),V.push(re)),1;je=0;var me=se===""?".":se+":";if(E(N))for(var ce=0;ce<N.length;ce++)se=N[ce],pe=me+Z(se,ce),je+=U(se,V,ee,pe,re);else if(ce=y(N),typeof ce=="function")for(N=ce.call(N),ce=0;!(se=N.next()).done;)se=se.value,pe=me+Z(se,ce++),je+=U(se,V,ee,pe,re);else if(pe==="object"){if(typeof N.then=="function")return U(Y(N),V,ee,se,re);throw V=String(N),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return je}function B(N,V,ee){if(N==null)return N;var se=[],re=0;return U(N,se,"","",function(pe){return V.call(ee,pe,re++)}),se}function te(N){if(N._status===-1){var V=N._result;V=V(),V.then(function(ee){(N._status===0||N._status===-1)&&(N._status=1,N._result=ee)},function(ee){(N._status===0||N._status===-1)&&(N._status=2,N._result=ee)}),N._status===-1&&(N._status=0,N._result=V)}if(N._status===1)return N._result.default;throw N._result}var q=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},M={map:B,forEach:function(N,V,ee){B(N,functioLine truncated
at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
`+fe+i+De}var mt=!1;function ft(i,c){if(!i||mt)return"";mt=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(c){var ze=function(){throw Error()};if(Object.defineProperty(ze.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ze,[])}catch(Te){var Ee=Te}Reflect.construct(i,[],ze)}else{try{ze.call()}catch(Te){Ee=Te}i.call(ze.prototype)}}else{try{throw Error()}catch(Te){Ee=Te}(ze=i())&&typeof ze.catch=="function"&&ze.catch(function(){})}}catch(Te){if(Te&&Ee&&typeof Te.stack=="string")return[Te.stack,Ee.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var k=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");k&&k.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var R=m.DetermineComponentFrameRoot(),L=R[0],K=R[1];if(L&&K){var ie=L.split(`
`),Ce=K.split(`
`);for(k=m=0;m<ie.length&&!ie[m].includes("DetermineComponentFrameRoot");)m++;for(;k<Ce.length&&!Ce[k].includes("DetermineComponentFrameRoot");)k++;if(m===ie.length||k===Ce.length)for(m=ie.length-1,k=Ce.length-1;1<=m&&0<=k&&ie[m]!==Ce[k];)k--;for(;1<=m&&0<=k;m--,k--)if(ie[m]!==Ce[k]){if(m!==1||k!==1)do if(m--,k--,0>k||ie[m]!==Ce[k]){var Ne=`
`+ie[m].replace(" at new "," at ");return i.displayName&&Ne.includes("<anonymous>")&&(Ne=Ne.replace("<anonymous>",i.displayName)),Ne}while(1<=m&&0<=k);break}}}finally{mt=!1,Error.prepareStackTrace=p}return(p=i?i.displayName||i.name:"")?Fe(p):""}function xt(i,c){switch(i.tag){case 26:case 27:case 5:return Fe(i.type);case 16:return Fe("Lazy");case 13:return i.child!==c&&c!==null?Fe("Suspense Fallback"):Fe("Suspense");case 19:return Fe("SuspenseList");case 0:case 15:return ft(i.type,!1);case 11:return ft(i.type.render,!1);case 1:return ft(i.type,!0);case 31:return Fe("Activity");default:return""}}function Ot(i){try{var c="",p=null;do c+=xt(i,p),p=i,i=i.return;while(i);return c}catch(m){return`
Error generating stack: `+m.message+`
`+m.stack}}var St=Object.prototype.hasOwnProperty,kt=n.unstable_scheduleCallback,Vt=n.unstable_cancelCallback,Nt=n.unstable_shouldYield,tn=n.unstable_requestPaint,Qe=n.unstable_now,Pe=n.unstable_getCurrentPriorityLevel,et=n.unstable_ImmediatePriority,Le=n.unstable_UserBlockingPriority,He=n.unstable_NormalPriority,Ve=n.unstable_LowPriority,Je=n.unstable_IdlePriority,jt=n.log,At=n.unstable_setDisableYieldValue,Rt=null,xe=null;function We(i){if(typeof jt=="function"&&At(i),xe&&typeof xe.setStrictMode=="function")try{xe.setStrictMode(Rt,i)}catch{}}var Q=Math.clz32?Math.clz32:X,ke=Math.log,ge=Math.LN2;function X(i){return i>>>=0,i===0?32:31-(ke(i)/ge|0)|0}var he=256,_e=262144,ve=4194304;function Re(i){var c=i&42;if(c!==0)return c;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Ye(i,c,p){var m=i.pendingLanes;if(m===0)return 0;var k=0,R=i.suspendedLanes,L=i.pingedLanes;i=i.warmLanes;var K=m&134217727;return K!==0?(m=K&~R,m!==0?k=Re(m):(L&=K,L!==0?k=Re(L):p||(p=K&~i,p!==0&&(k=Re(p))))):(K=m&~R,K!==0?k=Re(K):L!==0?k=Re(L):p||(p=m&~i,p!==0&&(k=Re(p)))),k===0?0:c!==0&&c!==k&&(c&R)===0&&(R=k&-k,p=c&-c,R>=p||R===32&&(p&4194048)!==0)?c:k}function it(i,c){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&c)===0}function ot(i,c){switch(i){case 1:case 2:case 4:case 8:case 64:return c+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tt(){var i=ve;return ve<<=1,(ve&62914560)===0&&(ve=4194304),i}function at(i){for(var c=[],p=0;31>p;p++)c.push(i);return c}function nt(i,c){i.pendingLanes|=c,c!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function Xe(i,c,p,m,k,R){var L=i.pendingLanes;i.pendingLanes=p,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=p,i.entangledLanes&=p,i.errorRecoveryDisabledLanes&=p,i.shellSuspendCounter=0;var K=i.entanglements,ie=i.expirationTimes,Ce=i.hiddenUpdates;for(p=L&~p;0<p;){var Ne=31-Q(p),ze=1<<Ne;K[Ne]=0,ie[Ne]=-1;var Ee=Ce[Ne];if(Ee!==null)for(Ce[Ne]=null,Ne=0;Ne<Ee.length;Ne++){var Te=Ee[Ne];Te!==null&&(Te.lane&=-536870913)}p&=~ze}m!==0&&st(i,m,0),R!==0&&k===0&&i.tag!==0&&(i.suspendedLanes|=R&~(L&~c))}function st(i,c,p){i.pendingLanes|=c,i.suspendedLanes&=~c;var m=31-Q(c);i.entangledLanes|=c,i.entanglements[m]=i.entanglements[m]|1073741824|p&261930}function pt(i,c){var p=i.entangledLanes|=c;for(i=i.entanglements;p;){var m=31-Q(p),k=1<<m;k&c|i[m]&c&&(i[m]|=c),p&=~k}}function Lt(i,c){var p=c&-c;return p=(p&42)!==0?1:an(p),(p&(i.suspendedLanes|c))!==0?0:p}function an(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Tn(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function $n(){var i=B.p;return i!==0?i:(i=window.event,i===void 0?32:qA(i.type))}function Cs(i,c){var p=B.p;try{return B.p=i,c()}finally{B.p=p}}var Wn=Math.random().toString(36).slice(2),vn="__reactFiber$"+Wn,os="__reactProps$"+Wn,cr="__reactContainer$"+Wn,Co="__reactEvents$"+Wn,ri="__reactListeners$"+Wn,oi="__reactHandles$"+Wn,Gs="__reactResources$"+Wn,jo="__reactMarker$"+Wn;function ai(i){delete i[vn],delete i[os],delete i[Co],delete i[ri],delete i[oi]}function ro(i){var c=i[vn];if(c)return c;for(var p=i.parentNode;p;){if(c=p[cr]||p[vn]){if(p=c.alternate,c.child!==null||p!==null&&p.child!==null)for(i=RA(i);i!==null;){if(p=i[vn])return p;i=RA(i)}return c}i=p,p=i.parentNode}return null}function dr(i){if(i=i[vn]||i[cr]){var c=i.tag;if(c===5||c===6||c===13||c===31||c===26||c===27||c===3)return i}return null}function Or(i){var c=i.tag;if(c===5||c===26||c===27||c===6)return i.stateNode;throw Error(s(33))}function Is(i){var c=i[Gs];return c||(c=i[Gs]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function Nn(i){i[jo]=!0}var la=new Set,ca={};function Ys(i,c){oo(i,c),oo(i+"Capture",c)}function oo(i,c){for(ca[i]=c,i=0;i<c.length;i++)la.add(c[i])}var bl=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\Line truncated
`).replace(SQ,"")}function bA(i,c){return c=yA(c),yA(i)===c}function un(i,c,p,m,k,R){switch(p){case"children":typeof m=="string"?c==="body"||c==="textarea"&&m===""||bt(i,m):(typeof m=="number"||typeof m=="bigint")&&c!=="body"&&bt(i,""+m);break;case"className":Eo(i,"class",m);break;case"tabIndex":Eo(i,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Eo(i,p,m);break;case"style":gt(i,m,R);break;case"data":if(c!=="object"){Eo(i,"data",m);break}case"src":case"href":if(m===""&&(c!=="a"||p!=="href")){i.removeAttribute(p);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(p);break}m=sn(""+m),i.setAttribute(p,m);break;case"action":case"formAction":if(typeof m=="function"){i.setAttribute(p,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof R=="function"&&(p==="formAction"?(c!=="input"&&un(i,c,"name",k.name,k,null),un(i,c,"formEncType",k.formEncType,k,null),un(i,c,"formMethod",k.formMethod,k,null),un(i,c,"formTarget",k.formTarget,k,null)):(un(i,c,"encType",k.encType,k,null),un(i,c,"method",k.method,k,null),un(i,c,"target",k.target,k,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){i.removeAttribute(p);break}m=sn(""+m),i.setAttribute(p,m);break;case"onClick":m!=null&&(i.onclick=wn);break;case"onScroll":m!=null&&zt("scroll",i);break;case"onScrollEnd":m!=null&&zt("scrollend",i);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(s(61));if(p=m.__html,p!=null){if(k.children!=null)throw Error(s(60));i.innerHTML=p}}break;case"multiple":i.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":i.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){i.removeAttribute("xlink:href");break}p=sn(""+m),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",p);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(p,""+m):i.removeAttribute(p);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(p,""):i.removeAttribute(p);break;case"capture":case"download":m===!0?i.setAttribute(p,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?i.setAttribute(p,m):i.removeAttribute(p);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?i.setAttribute(p,m):i.removeAttribute(p);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?i.removeAttribute(p):i.setAttribute(p,m);break;case"popover":zt("beforetoggle",i),zt("toggle",i),nn(i,"popover",m);break;case"xlinkActuate":Jn(i,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Jn(i,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Jn(i,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Jn(i,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Jn(i,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Jn(i,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Jn(i,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Jn(i,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Jn(i,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":nn(i,"is",m);break;case"innerText":case"textContent":break;default:(!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")&&(p=Kt.get(p)||p,nn(i,p,m))}}function ov(i,c,p,m,k,R){switch(p){case"style":gt(i,m,R);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(s(61));if(p=m.__html,p!=null){if(k.children!=null)throw Error(s(60));i.innerHTML=p}}break;case"children":typeof m=="string"?bt(i,m):(typeof m=="number"||typeof m=="bigint")&&bt(i,""+m);break;case"onScroll":m!=null&&zt("scroll",i);break;case"onScrollEnd":m!=null&&zt("scrollend",i);break;case"onClick":m!=null&&(i.onclick=wn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne Line truncated
`).forEach(function(l){r=l.indexOf(":"),t=l.substring(0,r).trim().toLowerCase(),s=l.substring(r+1).trim(),!(!t||e[t]&&u$[t])&&(t==="set-cookie"?e[t]?e[t].push(s):e[t]=[s]:e[t]=e[t]?e[t]+", "+s:s)}),e};function p$(n){let e=0,t=n.length;for(;e<t;){const s=n.charCodeAt(e);if(s!==9&&s!==32)break;e+=1}for(;t>e;){const s=n.charCodeAt(t-1);if(s!==9&&s!==32)break;t-=1}return e===0&&t===n.length?n:n.slice(e,t)}const g$=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),h$=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Wg(n,e){return we.isArray(n)?n.map(t=>Wg(t,e)):p$(String(n).replace(e,""))}const m$=n=>Wg(n,g$),y$=n=>Wg(n,h$);function rw(n){const e=Object.create(null);return we.forEach(n.toJSON(),(t,s)=>{e[s]=y$(t)}),e}const ow=Symbol("internals");function fc(n){return n&&String(n).trim().toLowerCase()}function gu(n){return n===!1||n==null?n:we.isArray(n)?n.map(gu):m$(String(n))}function b$(n){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=t.exec(n);)e[s[1]]=s[2];return e}const x$=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Ug(n,e,t,s,r){if(we.isFunction(s))return s.call(this,e,t);if(r&&(e=t),!!we.isString(e)){if(we.isString(s))return e.indexOf(s)!==-1;if(we.isRegExp(s))return s.test(e)}}function v$(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,s)=>t.toUpperCase()+s)}function w$(n,e){const t=we.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(n,s+t,{__proto__:null,value:function(r,o,l){return this[s].call(this,e,r,o,l)},configurable:!0})})}let ws=class{constructor(e){e&&this.set(e)}set(e,t,s){const r=this;function o(d,u,f){const g=fc(u);if(!g)throw new Error("header name must be a non-empty string");const h=we.findKey(r,g);(!h||r[h]===void 0||f===!0||f===void 0&&r[h]!==!1)&&(r[h||u]=gu(d))}const l=(d,u)=>we.forEach(d,(f,g)=>o(f,g,u));if(we.isPlainObject(e)||e instanceof this.constructor)l(e,t);else if(we.isString(e)&&(e=e.trim())&&!x$(e))l(f$(e),t);else if(we.isObject(e)&&we.isIterable(e)){let d={},u,f;for(const g of e){if(!we.isArray(g))throw TypeError("Object iterator must return a key-value pair");d[f=g[0]]=(u=d[f])?we.isArray(u)?[...u,g[1]]:[u,g[1]]:g[1]}l(d,t)}else e!=null&&o(t,e,s);return this}get(e,t){if(e=fc(e),e){const s=we.findKey(this,e);if(s){const r=this[s];if(!t)return r;if(t===!0)return b$(r);if(we.isFunction(t))return t.call(this,r,s);if(we.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=fc(e),e){const s=we.findKey(this,e);return!!(s&&this[s]!==void 0&&(!t||Ug(this,this[s],s,t)))}return!1}delete(e,t){const s=this;let r=!1;function o(l){if(l=fc(l),l){const d=we.findKey(s,l);d&&(!t||Ug(s,s[d],d,t))&&(delete s[d],r=!0)}}return we.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let s=t.length,r=!1;for(;s--;){const o=t[s];(!e||Ug(this,this[o],o,e,!0))&&(delete this[o],r=!0)}return r}normalize(e){const t=this,s={};return we.forEach(this,(r,o)=>{const l=we.findKey(s,o);if(l){t[l]=gu(r),delete t[o];return}const d=e?v$(o):String(o).trim();d!==o&&delete t[o],t[d]=gu(r),s[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return we.forEach(this,(s,r)=>{s!=null&&s!==!1&&(t[r]=e&&we.isArray(s)?s.join(", "):s)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const s=new this(e);return t.forEach(r=>s.set(r)),s}static accessor(e){const s=(this[ow]=this[ow]={accessors:{}}).accessors,r=this.prototype;function o(l){const d=fc(l);s[d]||(w$(r,l),s[d]=!0)}return we.isArray(e)?e.forEach(o):o(e),this}};ws.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),we.reduceDescriptors(ws.prototype,({value:n},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(s){this[t]=s}}}),we.freezeMethods(ws);const _$="[REDACTED ****]";function S$(n){if(we.hasOwnProp(n,"toJSON"))return!0;let e=Object.getPrototypeOf(n);for(;e&&e!==Object.prototype;){if(we.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function k$(n,e){const t=new Set(e.map(o=>String(o).toLowerCase())),s=[],r=o=>{if(o===null||typeof o!="object"||we.isBuffer(o))return o;if(s.indexOf(o)!==-1)return;o instanceof ws&&(o=o.toJSON()),s.push(o);let l;if(we.isArray(o))l=[],o.forEach((d,u)=>{const f=r(d);we.isUndefined(f)||(l[u]=f)});else{if(!we.isPlainObject(o)&&S$(o))return s.pop(),o;l=Object.create(null);for(const[d,u]of Object.entries(o)){const f=t.has(d.toLowerCase())?_$:r(u);we.isUndefined(f)||(l[d]=f)}}return s.pop(),l};return r(n)}let ct=class JA extends Error{static from(e,t,s,r,o,l){const d=new JA(e.message,t||e.code,s,r,o);return d.cause=e,d.name=e.name,e.status!=null&&d.status==null&&(d.status=e.status),l&&Object.assign(d,l),d}constructor(e,t,s,r,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),s&&(this.config=s),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&we.hasOwnProp(e,"redact")?e.redact:void 0,s=we.isArray(t)&&t.length>0?k$(e,t):we.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:s,code:this.code,status:this.status}}};ct.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ct.ERR_BAD_OPTION="ERR_BAD_OPTION",ct.ECONNABORTED="ECONNABORTED",ct.ETIMEDOUT="ETIMEDOUT",ct.ECONNREFUSED="ECONNREFUSED",ct.ERR_NETWORK="ERR_NETWORK",ct.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ct.ERR_DEPRECATED="ERR_DEPRECATED",ct.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ct.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ct.ERR_CANCELED="ERR_CANCELED",ct.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ct.ERR_INVALID_URL="ERR_INVALID_URL",ct.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const C$=null;function qg(n){return we.isPlainObject(n)||we.isArray(n)}function aw(n){return we.endsWith(n,"[]")?n.slice(0,-2):n}function Fg(n,e,t){return n?n.concat(e).map(function(r,o){return r=aw(r),!t&&o?"["+r+"]":r}).join(t?".":""):e}function j$(n){return we.isArray(n)&&!n.some(qg)}const E$=we.toFlatObject(we,{},null,function(e){return/^is[A-Z]/.test(e)});function hu(n,e,t){if(!we.isObject(n))throw new TypeError("target must be an object");e=e||new FormData,t=we.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,_){return!we.isUndefined(_[S])});const s=t.metaTokens,r=t.visitor||h,o=t.dots,l=t.indexes,d=t.Blob||typeof Blob<"u"&&Blob,u=t.maxDepth===void 0?100:t.maxDepth,f=d&&we.isSpecCompliantForm(e);if(!we.isFunction(r))throw new TypeError("visitor must be a function");function g(x){if(x===null)return"";if(we.isDate(x))return x.toISOString();if(we.isBoolean(x))return x.toString();if(!f&&we.isBlob(x))throw new ct("Blob is not supported. Use a Buffer instead.");return we.isArrayBuffer(x)||we.isTypedArray(x)?f&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function h(x,S,_){let A=x;if(we.isReactNative(e)&&we.isReactNativeBlob(x))return e.append(Fg(_,S,o),g(x)),!1;if(x&&!_&&typeof x=="object"){if(we.endsWith(S,"{}"))S=s?S:S.slice(0,-2),x=JSON.stringify(x);else if(we.isArray(x)&&j$(x)||(we.isFileList(x)||we.endsWith(S,"[]"))&&(A=we.toArray(x)))return S=aw(S),A.forEach(function(j,E){!(we.isUndefined(j)||j===null)&&e.append(l===!0?Fg([S],E,o):l===null?S:S+"[]",g(j))}),!1}return qg(x)?!0:(e.append(Fg(_,S,o),g(x)),!1)}const b=[],y=Object.assign(E$,{defaultVisitor:h,convertValue:g,isVisitable:qg});function v(x,S,_=0){if(!we.isUndefined(x)){if(_>u)throw new ct("Object is too deeply nested ("+_+" levels). Max depth: "+u,ct.ERR_FORM_DATA_DEPTH_EXCEEDED);if(b.indexOf(x)!==-1)throw Error("Circular reference detected in "+S.join("."));b.push(x),we.forEach(x,function(C,j){(!(we.isUndefined(C)||C===null)&&r.call(e,C,we.isString(j)?j.trim():j,S,y))===!0&&v(C,S?S.concat(j):[j],_+1)}),b.pop()}}if(!we.isObject(n))throw new TypeError("data must be an object");return v(n),e}function iw(n){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(n).replace Line truncated
`+l.map(Sw).join(`
`):" "+Sw(l[0]):"as no adapter specified";throw new ct("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return r}const kw={getAdapter:nN,adapters:Zg};function Qg(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new gc(null,n)}function Cw(n){return Qg(n),n.headers=ws.from(n.headers),n.data=Xg.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),kw.getAdapter(n.adapter||pc.adapter,n)(n).then(function(s){Qg(n),n.response=s;try{s.data=Xg.call(n,n.transformResponse,s)}finally{delete n.response}return s.headers=ws.from(s.headers),s},function(s){if(!fw(s)&&(Qg(n),s&&s.response)){n.response=s.response;try{s.response.data=Xg.call(n,n.transformResponse,s.response)}finally{delete n.response}s.response.headers=ws.from(s.response.headers)}return Promise.reject(s)})}const bu={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{bu[n]=function(s){return typeof s===n||"a"+(e<1?"n ":" ")+n}});const jw={};bu.transitional=function(e,t,s){function r(o,l){return"[Axios v"+Jg+"] Transitional option '"+o+"'"+l+(s?". "+s:"")}return(o,l,d)=>{if(e===!1)throw new ct(r(l," has been removed"+(t?" in "+t:"")),ct.ERR_DEPRECATED);return t&&!jw[l]&&(jw[l]=!0,console.warn(r(l," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,l,d):!0}},bu.spelling=function(e){return(t,s)=>(console.warn(`${s} is likely a misspelling of ${e}`),!0)};function sN(n,e,t){if(typeof n!="object")throw new ct("options must be an object",ct.ERR_BAD_OPTION_VALUE);const s=Object.keys(n);let r=s.length;for(;r-- >0;){const o=s[r],l=Object.prototype.hasOwnProperty.call(e,o)?e[o]:void 0;if(l){const d=n[o],u=d===void 0||l(d,o,n);if(u!==!0)throw new ct("option "+o+" must be "+u,ct.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new ct("Unknown option "+o,ct.ERR_BAD_OPTION)}}const xu={assertOptions:sN,validators:bu},sr=xu.validators;let za=class{constructor(e){this.defaults=e||{},this.interceptors={request:new dw,response:new dw}}async request(e,t){try{return await this._request(e,t)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=(()=>{if(!r.stack)return"";const l=r.stack.indexOf(`
`);return l===-1?"":r.stack.slice(l+1)})();try{if(!s.stack)s.stack=o;else if(o){const l=o.indexOf(`
`),d=l===-1?-1:o.indexOf(`
`,l+1),u=d===-1?"":o.slice(d+1);String(s.stack).endsWith(u)||(s.stack+=`
`+o)}}catch{}}throw s}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Ma(this.defaults,t);const{transitional:s,paramsSerializer:r,headers:o}=t;s!==void 0&&xu.assertOptions(s,{silentJSONParsing:sr.transitional(sr.boolean),forcedJSONParsing:sr.transitional(sr.boolean),clarifyTimeoutError:sr.transitional(sr.boolean),legacyInterceptorReqResOrdering:sr.transitional(sr.boolean)},!1),r!=null&&(we.isFunction(r)?t.paramsSerializer={serialize:r}:xu.assertOptions(r,{encode:sr.function,serialize:sr.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),xu.assertOptions(t,{baseUrl:sr.spelling("baseURL"),withXsrfToken:sr.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let l=o&&we.merge(o.common,o[t.method]);o&&we.forEach(["delete","get","head","post","put","patch","query","common"],v=>{delete o[v]}),t.headers=ws.concat(l,o);const d=[];let u=!0;this.interceptors.request.forEach(function(x){if(typeof x.runWhen=="function"&&x.runWhen(t)===!1)return;u=u&&x.synchronous;const S=t.transitional||Kg;S&&S.legacyInterceptorReqResOrdering?d.unshift(x.fulfilled,x.rejected):d.push(x.fulfilled,x.rejected)});const f=[];this.interceptors.response.forEach(function(x){f.push(x.fulfilled,x.rejected)});let g,h=0,b;if(!u){const v=[Cw.bind(this),void 0];for(v.unshift(...d),v.push(...f),b=v.length,g=Promise.resolve(t);h<b;)g=g.then(v[h++],v[h++]);return g}b=d.length;let y=t;for(;h<b;){const v=d[h++],x=d[h++];try{y=v(y)}catch(S){x.call(this,S);break}}try{g=Cw.call(this,y)}catch(v){return Promise.reject(v)}for(h=0,b=f.length;h<b;)g=g.then(f[h++],f[h++]);return g}getUri(e){e=Ma(this.defaults,e);const t=mw(e.baseURL,e.url,e.allowAbsoluteUrls);return cw(t,e.params,e.paramsSerializer)}};we.forEach(["delete","get","head","options"],function(e){za.prototype[e]=function(t,s){return this.request(Ma(s||{},{method:e,url:t,data:(s||{}).data}))}}),we.forEach(["post","put","patch","query"],function(e){function t(s){return function(o,l,d){return this.request(Ma(d||{},{method:e,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:l}))}}za.prototype[e]=t(),e!=="query"&&(za.prototype[e+"Form"]=t(!0))});let rN=class ZA{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(o){t=o});const s=this;this.promise.then(r=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const l=new Promise(d=>{s.subscribe(d),o=d}).then(r);return l.cancel=function(){s.unsubscribe(o)},l},e(function(o,l,d){s.reason||(s.reason=new gc(o,l,d),t(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=s=>{e.abort(s)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ZA(function(r){e=r}),cancel:e}}};function oN(n){return function(t){return n.apply(null,t)}}function aN(n){return we.isObject(n)&&n.isAxiosError===!0}const eh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(eh).forEach(([n,e])=>{eh[e]=n});function Ew(n){const e=new za(n),t=Gv(za.prototype.request,e);return we.extend(t,za.prototype,e,{allOwnKeys:!0}),we.extend(t,e,null,{allOwnKeys:!0}),t.create=function(r){return Ew(Ma(n,r))},t}const On=Ew(pc);On.Axios=za,On.CanceledError=gc,On.CancelToken=rN Line truncated
position: fixed;
inset: 0;
background-color: rgba(0, 0, 0, 0.5);
@@ -67,7 +30,7 @@ Error generating stack: `+u.message+`
max-width: 90vw;
max-height: 90vh;
overflow: hidden;
`,e&&(s.className=e);const i=document.createElement("button");i.type="button",i.innerHTML="×",i.style.cssText=`
`,e&&(s.className=e);const r=document.createElement("button");r.type="button",r.innerHTML="×",r.style.cssText=`
position: absolute;
top: 8px;
right: 8px;
@@ -84,11 +47,11 @@ Error generating stack: `+u.message+`
justify-content: center;
color: #666;
transition: background-color 0.2s;
`,i.onmouseenter=()=>{i.style.backgroundColor="rgba(0, 0, 0, 0.2)"},i.onmouseleave=()=>{i.style.backgroundColor="rgba(0, 0, 0, 0.1)"};const o=()=>{t.parentNode&&t.parentNode.removeChild(t)};i.onclick=o;const d=g=>{g.key==="Escape"&&(o(),document.removeEventListener("keydown",d))};return document.addEventListener("keydown",d),t.onclick=g=>{g.target===t&&o()},s.appendChild(i),t.appendChild(s),document.body.appendChild(t),{overlay:t,layer:s,closeLayer:o}}getNestedProperty(e,t){return t.split(".").reduce((s,i)=>s&&s[i]!==void 0?s[i]:void 0,e)}async handleSaveToLocalStorage(e,t){const{key:s,value:i}=e;if(!s)return U.error("saveToLocalStorage: key parameter is required"),!1;try{const o=typeof i=="string"?i:JSON.stringify(i);return localStorage.setItem(s,o),U.log(`saveToLocalStorage: saved ${s}`,i),!0}catch(o){return U.error("saveToLocalStorage: failed to save",{key:s,error:o}),!1}}async handleLoadFromLocalStorage(e,t){const{key:s,target:i,stateKey:o,defaultValue:d}=e;if(!s)return U.error("loadFromLocalStorage: key parameter is required"),d;try{const g=localStorage.getItem(s);if(g===null)return U.log(`loadFromLocalStorage: no value found for ${s}, using default`),o&&t.setState&&t.setState({[o]:d}),d;let h;try{h=JSON.parse(g)}catch{h=g}return U.log(`loadFromLocalStorage: loaded ${s}`,h),o&&t.setState&&t.setState({[o]:h}),h}catch(g){return U.error("loadFromLocalStorage: failed to load",{key:s,error:g}),d}}async handleCustomAction(e,t){const s=this.customHandlers.get(e.handler);if(!s)throw new Gt(`Unknown action handler: ${e.handler}`,e);return await s(e,t)}resolveParams(e,t){if(!e)return{};const s={};for(const[i,o]of Object.entries(e))i.includes("{{")&&U.warn(`[resolveParams] setState params의 키에 표현식이 포함되어 있습니다: "${i}". 키는 해석되지 않습니다. 배열 항목 수정은 .map()/.filter() 패턴을 사용하세요.`),typeof o=="string"&&o.includes("{{")?s[i]=this.evaluateExpression(o,t):typeof o=="string"?s[i]=o:Array.isArray(o)?s[i]=o.map(d=>typeof d=="string"&&d.includes("{{")?this.evaluateExpression(d,t):d):typeof o=="object"&&o!==null&&!Array.isArray(o)&&Object.getPrototypeOf(o)!==Object.prototype&&Object.getPrototypeOf(o)!==null?s[i]=o:typeof o=="object"&&o!==null?s[i]=this.resolveParams(o,t):s[i]=o;return s}resolveValue(e,t){return t?this.bindingEngine.resolveBindings(e,t,{skipCache:!0}):e}evaluateExpressions(e,t){let s={};for(const[i,o]of Object.entries(e))if(i==="..."){let d=o;typeof o=="string"&&o.includes("{{")&&(d=this.evaluateExpression(o,t)),d&&typeof d=="object"&&!Array.isArray(d)&&(s={...s,...d})}else typeof o=="string"&&o.includes("{{")?s[i]=this.evaluateExpression(o,t):typeof o=="object"&&o!==null&&!Array.isArray(o)?s[i]=this.evaluateExpressions(o,t):s[i]=o;return s}evaluateExpressionsIfNeeded(e,t){const s={};for(const[i,o]of Object.entries(e))typeof o=="string"&&o.includes("{{")?s[i]=this.evaluateExpression(o,t):s[i]=o;return s}evaluateExpression(e,t){if(!t)return e;const s=e.match(/^\{\{(.+)\}\}$/);if(!(s&&!s[1].includes("}}")&&!s[1].includes("{{"))){let g=t;if(e.includes("_global")){const f=window.G7Core?.state?.get()?._global;f&&(g={...t,_global:f})}if(e.includes("_computed")||e.includes("$computed")){const f=window.__g7ActionContext?.computedRef?.current;f&&Object.keys(f).length>0&&(g={...g,_computed:f,$computed:f})}return this.bindingEngine.resolveBindings(e,g,{skipCache:!0})}let o=s[1].trim();o=o.replace(/\$args\.(\d+)/g,"$args[$1]");let d=t;if(o.includes("_global")){const h=window.G7Core?.state?.get()?._global;h&&(d={...t,_global:h})}if(o.includes("_computed")||o.includes("$computed")){const h=window.__g7ActionContext?.computedRef?.current;h&&Object.keys(h).length>0&&(d={...d,_computed:h,$computed:h})}o.includes("_global.modules")&&(U.log("[evaluateExpression] expression:",o),U.log("[evaluateExpression] dataContext._global:",d._global),U.log("[evaluateExpression] dataContext._global?.modules:",d._global?.modules));try{const g=this.bindingEngine.evaluateExpression(o,d);return o.includes("_global.modules")&&U.log("[evaluateExpression] result:",g),typeof g=="string"&&g.startsWith("$t:")&&this.translationEngine&&this.translationContext?this.translationEngine.resolveTranslations(g,this.translationContext,t):g}catch(g){return U.error("Expression evaluation failed:",e,g),e}}setDefaultContext(e){this.defaultContext={...this.defaultContext,...e}}setGlobalStateUpdater(e){this.globalStateUpdater=e}getGlobalStateUpdater(){return this.globalStateUpdater}async dispatchAction(e,t){const s={...this.defaultContext,...t,data:{...this.defaultContext.data,...t?.data}};if(e.confirm){let i=this.resolveValue(e.confirm,s.data);if(this.translationEngine&&this.translationContext&&i.startsWith("$t:")&&(i=this.translationEngine.resolveTranslations(i,this.translationContext,s.data)),!confirm(i))return{success:!1}}try{return await this.executeAction(e,s)}catch(i){if(U.error("dispatchAction failed:",i),e.onError){const o=i instanceof Gt&&i.originalError?{message:i.originalError.messa Line truncated
`,r.onmouseenter=()=>{r.style.backgroundColor="rgba(0, 0, 0, 0.2)"},r.onmouseleave=()=>{r.style.backgroundColor="rgba(0, 0, 0, 0.1)"};const o=()=>{t.parentNode&&t.parentNode.removeChild(t)};r.onclick=o;const l=d=>{this.isImeComposing(d)||d.key==="Escape"&&(o(),document.removeEventListener("keydown",l))};return document.addEventListener("keydown",l),t.onclick=d=>{d.target===t&&o()},s.appendChild(r),t.appendChild(s),document.body.appendChild(t),{overlay:t,layer:s,closeLayer:o}}getNestedProperty(e,t){return t.split(".").reduce((s,r)=>s&&s[r]!==void 0?s[r]:void 0,e)}async handleSaveToLocalStorage(e,t){const{key:s,value:r}=e;if(!s)return ae.error("saveToLocalStorage: key parameter is required"),!1;try{const o=typeof r=="string"?r:JSON.stringify(r);return localStorage.setItem(s,o),ae.log(`saveToLocalStorage: saved ${s}`,r),!0}catch(o){return ae.error("saveToLocalStorage: failed to save",{key:s,error:o}),!1}}async handleLoadFromLocalStorage(e,t){const{key:s,target:r,stateKey:o,defaultValue:l}=e;if(!s)return ae.error("loadFromLocalStorage: key parameter is required"),l;try{const d=localStorage.getItem(s);if(d===null)return ae.log(`loadFromLocalStorage: no value found for ${s}, using default`),o&&t.setState&&t.setState({[o]:l}),l;let u;try{u=JSON.parse(d)}catch{u=d}return ae.log(`loadFromLocalStorage: loaded ${s}`,u),o&&t.setState&&t.setState({[o]:u}),u}catch(d){return ae.error("loadFromLocalStorage: failed to load",{key:s,error:d}),l}}async handleCustomAction(e,t){const s=this.customHandlers.get(e.handler);if(!s){if(this.previewMode){ae.warn(`[Preview] Unknown action handler "${e.handler}" — skipped (preview mode)`);return}throw new Cn(`Unknown action handler: ${e.handler}`,e)}return await s(e,t)}resolveParams(e,t){if(!e)return{};const s={};for(const[r,o]of Object.entries(e))r.includes("{{")&&ae.warn(`[resolveParams] setState params의 키에 표현식이 포함되어 있습니다: "${r}". 키는 해석되지 않습니다. 배열 항목 수정은 .map()/.filter() 패턴을 사용하세요.`),typeof o=="string"&&o.includes("{{")?s[r]=this.evaluateExpression(o,t):typeof o=="string"?s[r]=o:Array.isArray(o)?s[r]=o.map(l=>typeof l=="string"&&l.includes("{{")?this.evaluateExpression(l,t):l):typeof o=="object"&&o!==null&&!Array.isArray(o)&&Object.getPrototypeOf(o)!==Object.prototype&&Object.getPrototypeOf(o)!==null?s[r]=o:typeof o=="object"&&o!==null?s[r]=this.resolveParams(o,t):s[r]=o;return s}resolveValue(e,t){return t?this.bindingEngine.resolveBindings(e,t,{skipCache:!0}):e}evaluateExpressions(e,t){let s={};for(const[r,o]of Object.entries(e))if(r==="..."){let l=o;typeof o=="string"&&o.includes("{{")&&(l=this.evaluateExpression(o,t)),l&&typeof l=="object"&&!Array.isArray(l)&&(s={...s,...l})}else typeof o=="string"&&o.includes("{{")?s[r]=this.evaluateExpression(o,t):typeof o=="object"&&o!==null&&!Array.isArray(o)?s[r]=this.evaluateExpressions(o,t):s[r]=o;return s}evaluateExpressionsIfNeeded(e,t){const s={};for(const[r,o]of Object.entries(e))typeof o=="string"&&o.includes("{{")?s[r]=this.evaluateExpression(o,t):s[r]=o;return s}evaluateExpression(e,t){if(!t)return e;const s=e.match(/^\{\{(.+)\}\}$/);if(!(s&&!s[1].includes("}}")&&!s[1].includes("{{"))){let d=t;if(e.includes("_global")){const f=window.G7Core?.state?.get()?._global;f&&(d={...t,_global:f})}if(e.includes("_computed")||e.includes("$computed")){const f=window.__g7ActionContext?.computedRef?.current;f&&Object.keys(f).length>0&&(d={...d,_computed:f,$computed:f})}return this.bindingEngine.resolveBindings(e,d,{skipCache:!0})}let o=s[1].trim();o=o.replace(/\$args\.(\d+)/g,"$args[$1]");let l=t;if(o.includes("_global")){const u=window.G7Core?.state?.get()?._global;u&&(l={...t,_global:u})}if(o.includes("_computed")||o.includes("$computed")){const u=window.__g7ActionContext?.computedRef?.current;u&&Object.keys(u).length>0&&(l={...l,_computed:u,$computed:u})}o.includes("_global.modules")&&(ae.log("[evaluateExpression] expression:",o),ae.log("[evaluateExpression] dataContext._global:",l._global),ae.log("[evaluateExpression] dataContext._global?.modules:",l._global?.modules));try{const d=this.bindingEngine.evaluateExpression(o,l);return o.includes("_global.modules")&&ae.log("[evaluateExpression] result:",d),typeof d=="string"&&d.startsWith("$t:")&&this.translationEngine&&this.translationContext?this.translationEngine.resolveTranslations(d,this.translationContext,t):d}catch(d){return ae.error("Expression evaluation failed:",e,d),e}}setDefaultContext(e){this.defaultContext={...this.defaultContext,...e}}setGlobalStateUpdater(e){this.globalStateUpdater=e}getGlobalStateUpdater(){return this.globalStateUpdater}async dispatchAction(e,t){const s={...this.defaultContext,...t,data:{...this.defaultContext.data,...t?.data}};if(e.confirm){let r=this.resolveValue(e.confirm,s.data);if(this.translationEngine&&this.translationContext&&r.startsWith("$t:")&&(r=this.translationEngine.resolveTranslations(r,this.translationContext,s.data)),!confirm(r))return{success:!1}}try{return await th Line truncated
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
`},W7={onDragStart(r){let{active:e}=r;return"Picked up draggable item "+e.id+"."},onDragOver(r){let{active:e,over:t}=r;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(r){let{active:e,over:t}=r;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(r){let{active:e}=r;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function Y7(r){let{announcements:e=W7,container:t,hiddenTextDescribedById:s,screenReaderInstructions:i=K7}=r;const{announce:o,announcement:d}=G7(),g=Eo("DndLiveRegion"),[h,f]=j.useState(!1);if(j.useEffect(()=>{f(!0)},[]),F7(j.useMemo(()=>({onDragStart(y){let{active:x}=y;o(e.onDragStart({active:x}))},onDragMove(y){let{active:x,over:w}=y;e.onDragMove&&o(e.onDragMove({active:x,over:w}))},onDragOver(y){let{active:x,over:w}=y;o(e.onDragOver({active:x,over:w}))},onDragEnd(y){let{active:x,over:w}=y;o(e.onDragEnd({active:x,over:w}))},onDragCancel(y){let{active:x,over:w}=y;o(e.onDragCancel({active:x,over:w}))}}),[o,e])),!h)return null;const p=Ke.createElement(Ke.Fragment,null,Ke.createElement(B7,{id:s,value:i.draggable}),Ke.createElement(q7,{id:g,announcement:d}));return t?Ma.createPortal(p,t):p}var dn;(function(r){r.DragStart="dragStart",r.DragMove="dragMove",r.DragEnd="dragEnd",r.DragCancel="dragCancel",r.DragOver="dragOver",r.RegisterDroppable="registerDroppable",r.SetDroppableDisabled="setDroppableDisabled",r.UnregisterDroppable="unregisterDroppable"})(dn||(dn={}));function jc(){}function cy(r,e){return j.useMemo(()=>({sensor:r,options:e??{}}),[r,e])}function J7(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return j.useMemo(()=>[...e].filter(s=>s!=null),[...e])}const js=Object.freeze({x:0,y:0});function dy(r,e){return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))}function uy(r,e){let{data:{value:t}}=r,{data:{value:s}}=e;return t-s}function X7(r,e){let{data:{value:t}}=r,{data:{value:s}}=e;return s-t}function gy(r){let{left:e,top:t,height:s,width:i}=r;return[{x:e,y:t},{x:e+i,y:t},{x:e,y:t+s},{x:e+i,y:t+s}]}function hy(r,e){if(!r||r.length===0)return null;const[t]=r;return t[e]}function fy(r,e,t){return e===void 0&&(e=r.left),t===void 0&&(t=r.top),{x:e+r.width*.5,y:t+r.height*.5}}const Q7=r=>{let{collisionRect:e,droppableRects:t,droppableContainers:s}=r;const i=fy(e,e.left,e.top),o=[];for(const d of s){const{id:g}=d,h=t.get(g);if(h){const f=dy(fy(h),i);o.push({id:g,data:{droppableContainer:d,value:f}})}}return o.sort(uy)},Z7=r=>{let{collisionRect:e,droppableRects:t,droppableContainers:s}=r;const i=gy(e),o=[];for(const d of s){const{id:g}=d,h=t.get(g);if(h){const f=gy(h),p=i.reduce((x,w,v)=>x+dy(f[v],w),0),y=Number((p/4).toFixed(4));o.push({id:g,data:{droppableContainer:d,value:y}})}}return o.sort(uy)};function eC(r,e){const t=Math.max(e.top,r.top),s=Math.max(e.left,r.left),i=Math.min(e.left+e.width,r.left+r.width),o=Math.min(e.top+e.height,r.top+r.height),d=i-s,g=o-t;if(s<i&&t<o){const h=e.width*e.height,f=r.width*r.height,p=d*g,y=p/(h+f-p);return Number(y.toFixed(4))}return 0}const tC=r=>{let{collisionRect:e,droppableRects:t,droppableContainers:s}=r;const i=[];for(const o of s){const{id:d}=o,g=t.get(d);if(g){const h=eC(g,e);h>0&&i.push({id:d,data:{droppableContainer:o,value:h}})}}return i.sort(X7)};function nC(r,e,t){return{...r,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function py(r,e){return r&&e?{x:r.left-e.left,y:r.top-e.top}:js}function sC(r){return function(t){for(var s=arguments.length,i=new Array(s>1?s-1:0),o=1;o<s;o++)i[o-1]=arguments[o];return i.reduce((d,g)=>({...d,top:d.top+r*g.y,bottom:d.bottom+r*g.y,left:d.left+r*g.x,right:d.right+r*g.x}),{...t})}}const aC=sC(1);function rC(r){if(r.startsWith("matrix3d(")){const e=r.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(r.startsWith("matrix(")){const e=r.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function iC(r,e,t){const s=rC(e);if(!s)return r;const{scaleX:i,scaleY:o,x:d,y:g}=s,h=r.left-d-(1-i)*parseFloat(t),f=r.top-g-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),p=i?r.width/i:r.width,y=o?r.height/o:r.height;return{width:p,height:y,top:f,right:h+p,bottom:f+y,left:h}}const oC={ignoreTransform:!1};function gi(r,e){e===void 0&&(e=oC);let t=r.getBoundingClientRect();if(e.ignoreTransform){const{transform:f,transformOrigin:p}=Mn(r).getComputedStyle(r);f&&(t=iC(t,f,p))}const{top:s,left:i,width:o,height:d,bottom:g,right:h}=t;return{top:s,left:i,width:o,height:d,bottom:g,right:h}}function my(r){return gi(r,{ignoreTransform:!0})}function lC(r){const e=r.innerWidth,t=r.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function cC(r,e){return e===void 0&&(e=Mn(r).getComputedStyle(r)),e.position==="fixed"}function dC(r,e){e===void 0&&(e=Mn(r).getComputedStyle(r));const t=/(auto|scroll|overlay)/;return["overflow","overflowX Line truncated
`},qN={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function FN(n){let{announcements:e=qN,container:t,hiddenTextDescribedById:s,screenReaderInstructions:r=UN}=n;const{announce:o,announcement:l}=BN(),d=wc("DndLiveRegion"),[u,f]=w.useState(!1);if(w.useEffect(()=>{f(!0)},[]),HN(w.useMemo(()=>({onDragStart(h){let{active:b}=h;o(e.onDragStart({active:b}))},onDragMove(h){let{active:b,over:y}=h;e.onDragMove&&o(e.onDragMove({active:b,over:y}))},onDragOver(h){let{active:b,over:y}=h;o(e.onDragOver({active:b,over:y}))},onDragEnd(h){let{active:b,over:y}=h;o(e.onDragEnd({active:b,over:y}))},onDragCancel(h){let{active:b,over:y}=h;o(e.onDragCancel({active:b,over:y}))}}),[o,e])),!u)return null;const g=qe.createElement(qe.Fragment,null,qe.createElement(zN,{id:s,value:r.draggable}),qe.createElement(PN,{id:d,announcement:l}));return t?Vr.createPortal(g,t):g}var Yn;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(Yn||(Yn={}));function Nu(){}function fh(n,e){return w.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function Yw(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return w.useMemo(()=>[...e].filter(s=>s!=null),[...e])}const kr=Object.freeze({x:0,y:0});function ph(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function VN(n,e){const t=$u(n);if(!t)return"0 0";const s={x:(t.x-e.left)/e.width*100,y:(t.y-e.top)/e.height*100};return s.x+"% "+s.y+"%"}function gh(n,e){let{data:{value:t}}=n,{data:{value:s}}=e;return t-s}function KN(n,e){let{data:{value:t}}=n,{data:{value:s}}=e;return s-t}function hh(n){let{left:e,top:t,height:s,width:r}=n;return[{x:e,y:t},{x:e+r,y:t},{x:e,y:t+s},{x:e+r,y:t+s}]}function Xw(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function Jw(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const GN=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:s}=n;const r=Jw(e,e.left,e.top),o=[];for(const l of s){const{id:d}=l,u=t.get(d);if(u){const f=ph(Jw(u),r);o.push({id:d,data:{droppableContainer:l,value:f}})}}return o.sort(gh)},YN=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:s}=n;const r=hh(e),o=[];for(const l of s){const{id:d}=l,u=t.get(d);if(u){const f=hh(u),g=r.reduce((b,y,v)=>b+ph(f[v],y),0),h=Number((g/4).toFixed(4));o.push({id:d,data:{droppableContainer:l,value:h}})}}return o.sort(gh)};function XN(n,e){const t=Math.max(e.top,n.top),s=Math.max(e.left,n.left),r=Math.min(e.left+e.width,n.left+n.width),o=Math.min(e.top+e.height,n.top+n.height),l=r-s,d=o-t;if(s<r&&t<o){const u=e.width*e.height,f=n.width*n.height,g=l*d,h=g/(u+f-g);return Number(h.toFixed(4))}return 0}const JN=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:s}=n;const r=[];for(const o of s){const{id:l}=o,d=t.get(l);if(d){const u=XN(d,e);u>0&&r.push({id:l,data:{droppableContainer:o,value:u}})}}return r.sort(KN)};function ZN(n,e){const{top:t,left:s,bottom:r,right:o}=e;return t<=n.y&&n.y<=r&&s<=n.x&&n.x<=o}const QN=n=>{let{droppableContainers:e,droppableRects:t,pointerCoordinates:s}=n;if(!s)return[];const r=[];for(const o of e){const{id:l}=o,d=t.get(l);if(d&&ZN(s,d)){const f=hh(d).reduce((h,b)=>h+ph(s,b),0),g=Number((f/4).toFixed(4));r.push({id:l,data:{droppableContainer:o,value:g}})}}return r.sort(gh)};function e2(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function Zw(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:kr}function t2(n){return function(t){for(var s=arguments.length,r=new Array(s>1?s-1:0),o=1;o<s;o++)r[o-1]=arguments[o];return r.reduce((l,d)=>({...l,top:l.top+n*d.y,bottom:l.bottom+n*d.y,left:l.left+n*d.x,right:l.right+n*d.x}),{...t})}}const n2=t2(1);function Qw(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function s2(n,e,t){const s=Qw(e);if(!s)return n;const{scaleX:r,scaleY:o,x:l,y:d}=s,u=n.left-l-(1-r)*parseFloat(t),f=n.top-d-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),g=r?n.width/r:n.width,h=o?n.height/o:n.height;return{width:g,height:h,top:f,right:u+g,bottom:f+h,left:u}}const r2={ignoreTransform:!1};function Fi(n,e){e===void 0&&(e=r2);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:f,t Line truncated
<div style="padding: 1rem; border: 2px dashed #ccc; background: #f9f9f9; text-align: center;">
<p style="margin: 0; color: #666;">Component not found: <strong>${e}</strong></p>
</div>
@@ -97,8 +60,8 @@ Error generating stack: `+u.message+`
<p style="margin: 0 0 0.5rem 0; color: #c62828; font-weight: bold;">Component Error: ${e}</p>
<p style="margin: 0; color: #666; font-size: 0.875rem;">${t?.message||"Unknown error"}</p>
</div>
`,s}renderErrorState(e,t){const s=t instanceof Error?t.message:String(t),i=t instanceof Es?t.code:"UNKNOWN_ERROR";e.innerHTML=`
<div class="layout-error" data-error-code="${i}" style="
`,s}renderErrorState(e,t){const s=t instanceof Error?t.message:String(t),r=t instanceof Er?t.code:"UNKNOWN_ERROR";e.innerHTML=`
<div class="layout-error" data-error-code="${r}" style="
padding: 2rem;
text-align: center;
background: #ffebee;
@@ -123,7 +86,7 @@ Error generating stack: `+u.message+`
margin: 0;
color: #999;
font-size: 0.875rem;
">오류 코드: ${i}</p>
">오류 코드: ${r}</p>
<button
onclick="window.location.reload()"
@@ -139,14 +102,8 @@ Error generating stack: `+u.message+`
"
>페이지 새로고침</button>
</div>
`,Wn.error("Error state rendered:",i,s)}getCurrentLayout(){return this.currentLayout}clear(){this.currentLayout=null,this.layoutCache.clear(),Wn.log("Layout data and cache cleared")}}const Mj=nt("TranslationContext"),qy=j.createContext(null),Lc=({children:r,translationEngine:e,translationContext:t})=>{const s=j.useMemo(()=>(o,d)=>{if(d){const g="|"+Object.entries(d).map(([h,f])=>`${h}=${f}`).join("|");return e.translate(o,t,g)}return e.translate(o,t)},[e,t]),i=j.useMemo(()=>({translationEngine:e,translationContext:t,t:s}),[e,t,s]);return l.jsx(qy.Provider,{value:i,children:r})},$j=()=>{const r=j.useContext(qy);return r||(Mj.warn("TranslationProvider 외부에서 호출되었습니다. 키를 그대로 반환합니다."),{t:e=>e,translationEngine:null,translationContext:null})},Ia=nt("SlotContext"),Ij={registerToSlot:()=>{Ia.warn("SlotContext not available: registerToSlot called outside SlotProvider")},unregisterFromSlot:()=>{Ia.warn("SlotContext not available: unregisterFromSlot called outside SlotProvider")},getSlotComponents:()=>[],subscribeToSlot:()=>()=>{},clearAllSlots:()=>{},isEnabled:!1},zj=j.createContext(Ij),$g=({children:r})=>{const e=j.useRef(new Map),t=j.useRef(new Map),s=j.useCallback(p=>{const y=t.current.get(p);y&&y.forEach(x=>{try{x()}catch(w){Ia.error(`Slot subscriber error (slotId: ${p}):`,w)}})},[]),i=j.useCallback((p,y,x)=>{if(!p||!y){Ia.warn("registerToSlot: slotId and componentId are required");return}e.current.has(p)||e.current.set(p,new Map);const w=e.current.get(p),v=w.get(y);v&&v.registrationKey===x.registrationKey||(w.set(y,x),Ia.log(`Component registered to slot: ${y} -> ${p} (order: ${x.order})`),s(p))},[s]),o=j.useCallback((p,y)=>{const x=e.current.get(p);x&&x.has(y)&&(x.delete(y),Ia.log(`Component unregistered from slot: ${y} <- ${p}`),x.size===0&&e.current.delete(p),s(p))},[s]),d=j.useCallback(p=>{const y=e.current.get(p);return y?Array.from(y.values()).sort((x,w)=>x.order-w.order):[]},[]),g=j.useCallback((p,y)=>{t.current.has(p)||t.current.set(p,new Set);const x=t.current.get(p);return x.add(y),()=>{x.delete(y),x.size===0&&t.current.delete(p)}},[]),h=j.useCallback(()=>{e.current.forEach((p,y)=>{s(y)}),e.current.clear(),t.current.clear(),Ia.log("All slots cleared")},[s]),f=j.useMemo(()=>({registerToSlot:i,unregisterFromSlot:o,getSlotComponents:d,subscribeToSlot:g,clearAllSlots:h,isEnabled:!0}),[i,o,d,g,h]);return j.useLayoutEffect(()=>{typeof window<"u"&&(window.__slotContextValue=f,Ia.log("SlotContext exposed to window.__slotContextValue"))},[f]),l.jsx(zj.Provider,{value:f,children:r})};class Ig{constructor(){this.notificationCreatedEvent=".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated"}listenForWhisper(e,t){return this.listen(".client-"+e,t)}notification(e){return this.listen(this.notificationCreatedEvent,e)}stopListeningForNotification(e){return this.stopListening(this.notificationCreatedEvent,e)}stopListeningForWhisper(e,t){return this.stopListening(".client-"+e,t)}}class Gy{constructor(e){this.namespace=e}format(e){return[".","\\"].includes(e.charAt(0))?e.substring(1):(this.namespace&&(e=this.namespace+"."+e),e.replace(/\./g,"\\"))}setNamespace(e){this.namespace=e}}function Hj(r){try{new r}catch(e){if(e instanceof Error&&e.message.includes("is not a constructor"))return!1}return!0}class zg extends Ig{constructor(e,t,s){super(),this.name=t,this.pusher=e,this.options=s,this.eventFormatter=new Gy(this.options.namespace),this.subscribe()}subscribe(){this.subscription=this.pusher.subscribe(this.name)}unsubscribe(){this.pusher.unsubscribe(this.name)}listen(e,t){return this.on(this.eventFormatter.format(e),t),this}listenToAll(e){return this.subscription.bind_global((t,s)=>{if(t.startsWith("pusher:"))return;let i=String(this.options.namespace??"").replace(/\./g,"\\"),o=t.startsWith(i)?t.substring(i.length+1):"."+t;e(o,s)}),this}stopListening(e,t){return t?this.subscription.unbind(this.eventFormatter.format(e),t):this.subscription.unbind(this.eventFormatter.format(e)),this}stopListeningToAll(e){return e?this.subscription.unbind_global(e):this.subscription.unbind_global(),this}subscribed(e){return this.on("pusher:subscription_succeeded",()=>{e()}),this}error(e){return this.on("pusher:subscription_error",t=>{e(t)}),this}on(e,t){return this.subscription.bind(e,t),this}}class Fy extends zg{whisper(e,t){return this.pusher.channels.channels[this.name].trigger(`client-${e}`,t),this}}class Pj extends zg{whisper(e,t){return this.pusher.channels.channels[this.name].trigger(`client-${e}`,t),this}}class Uj extends Fy{here(e){return this.on("pusher:subscription_succeeded",t=>{e(Object.keys(t.members).map(s=>t.members[s]))}),this}joining(e){return this.on("pusher:member_added",t=>{e(t.info)}),this}whisper(e,t){return this.pusher.channels.channels[this.name].trigger(`client-${e}`,t),this}leaving(e){return this.on("pusher:member_removed",t=>{e(t.info)}),this}}class Vy extends Ig{constructor(e,t,s){super(),this.events={},this.listeners={},this.name=t,this.socket=e,this.opti Line truncated
* Pusher JavaScript Library v8.4.0
* https://pusher.com/
*
* Copyright 2020, Pusher
* Released under the MIT licence.
*/var Xy;function Kj(){return Xy||(Xy=1,(function(r,e){(function(s,i){r.exports=i()})(window,function(){return(function(t){var s={};function i(o){if(s[o])return s[o].exports;var d=s[o]={i:o,l:!1,exports:{}};return t[o].call(d.exports,d,d.exports,i),d.l=!0,d.exports}return i.m=t,i.c=s,i.d=function(o,d,g){i.o(o,d)||Object.defineProperty(o,d,{enumerable:!0,get:g})},i.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},i.t=function(o,d){if(d&1&&(o=i(o)),d&8||d&4&&typeof o=="object"&&o&&o.__esModule)return o;var g=Object.create(null);if(i.r(g),Object.defineProperty(g,"default",{enumerable:!0,value:o}),d&2&&typeof o!="string")for(var h in o)i.d(g,h,function(f){return o[f]}.bind(null,h));return g},i.n=function(o){var d=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(d,"a",d),d},i.o=function(o,d){return Object.prototype.hasOwnProperty.call(o,d)},i.p="",i(i.s=2)})([(function(t,s,i){var o=this&&this.__extends||(function(){var S=function(k,A){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,N){O.__proto__=N}||function(O,N){for(var D in N)N.hasOwnProperty(D)&&(O[D]=N[D])},S(k,A)};return function(k,A){S(k,A);function O(){this.constructor=k}k.prototype=A===null?Object.create(A):(O.prototype=A.prototype,new O)}})();Object.defineProperty(s,"__esModule",{value:!0});var d=256,g=(function(){function S(k){k===void 0&&(k="="),this._paddingCharacter=k}return S.prototype.encodedLength=function(k){return this._paddingCharacter?(k+2)/3*4|0:(k*8+5)/6|0},S.prototype.encode=function(k){for(var A="",O=0;O<k.length-2;O+=3){var N=k[O]<<16|k[O+1]<<8|k[O+2];A+=this._encodeByte(N>>>18&63),A+=this._encodeByte(N>>>12&63),A+=this._encodeByte(N>>>6&63),A+=this._encodeByte(N>>>0&63)}var D=k.length-O;if(D>0){var N=k[O]<<16|(D===2?k[O+1]<<8:0);A+=this._encodeByte(N>>>18&63),A+=this._encodeByte(N>>>12&63),D===2?A+=this._encodeByte(N>>>6&63):A+=this._paddingCharacter||"",A+=this._paddingCharacter||""}return A},S.prototype.maxDecodedLength=function(k){return this._paddingCharacter?k/4*3|0:(k*6+7)/8|0},S.prototype.decodedLength=function(k){return this.maxDecodedLength(k.length-this._getPaddingLength(k))},S.prototype.decode=function(k){if(k.length===0)return new Uint8Array(0);for(var A=this._getPaddingLength(k),O=k.length-A,N=new Uint8Array(this.maxDecodedLength(O)),D=0,$=0,M=0,z=0,K=0,ye=0,we=0;$<O-4;$+=4)z=this._decodeChar(k.charCodeAt($+0)),K=this._decodeChar(k.charCodeAt($+1)),ye=this._decodeChar(k.charCodeAt($+2)),we=this._decodeChar(k.charCodeAt($+3)),N[D++]=z<<2|K>>>4,N[D++]=K<<4|ye>>>2,N[D++]=ye<<6|we,M|=z&d,M|=K&d,M|=ye&d,M|=we&d;if($<O-1&&(z=this._decodeChar(k.charCodeAt($)),K=this._decodeChar(k.charCodeAt($+1)),N[D++]=z<<2|K>>>4,M|=z&d,M|=K&d),$<O-2&&(ye=this._decodeChar(k.charCodeAt($+2)),N[D++]=K<<4|ye>>>2,M|=ye&d),$<O-3&&(we=this._decodeChar(k.charCodeAt($+3)),N[D++]=ye<<6|we,M|=we&d),M!==0)throw new Error("Base64Coder: incorrect characters for decoding");return N},S.prototype._encodeByte=function(k){var A=k;return A+=65,A+=25-k>>>8&6,A+=51-k>>>8&-75,A+=61-k>>>8&-15,A+=62-k>>>8&3,String.fromCharCode(A)},S.prototype._decodeChar=function(k){var A=d;return A+=(42-k&k-44)>>>8&-d+k-43+62,A+=(46-k&k-48)>>>8&-d+k-47+63,A+=(47-k&k-58)>>>8&-d+k-48+52,A+=(64-k&k-91)>>>8&-d+k-65+0,A+=(96-k&k-123)>>>8&-d+k-97+26,A},S.prototype._getPaddingLength=function(k){var A=0;if(this._paddingCharacter){for(var O=k.length-1;O>=0&&k[O]===this._paddingCharacter;O--)A++;if(k.length<4||A>2)throw new Error("Base64Coder: incorrect padding")}return A},S})();s.Coder=g;var h=new g;function f(S){return h.encode(S)}s.encode=f;function p(S){return h.decode(S)}s.decode=p;var y=(function(S){o(k,S);function k(){return S!==null&&S.apply(this,arguments)||this}return k.prototype._encodeByte=function(A){var O=A;return O+=65,O+=25-A>>>8&6,O+=51-A>>>8&-75,O+=61-A>>>8&-13,O+=62-A>>>8&49,String.fromCharCode(O)},k.prototype._decodeChar=function(A){var O=d;return O+=(44-A&A-46)>>>8&-d+A-45+62,O+=(94-A&A-96)>>>8&-d+A-95+63,O+=(47-A&A-58)>>>8&-d+A-48+52,O+=(64-A&A-91)>>>8&-d+A-65+0,O+=(96-A&A-123)>>>8&-d+A-97+26,O},k})(g);s.URLSafeCoder=y;var x=new y;function w(S){return x.encode(S)}s.encodeURLSafe=w;function v(S){return x.decode(S)}s.decodeURLSafe=v,s.encodedLength=function(S){return h.encodedLength(S)},s.maxDecodedLength=function(S){return h.maxDecodedLength(S)},s.decodedLength=function(S){return h.decodedLength(S)}}),(function(t,s,i){Object.defineProperty(s,"__esModule",{value:!0});var o="utf8: invalid string",d="utf8: invalid source encoding";function g(p){for(var y=new Uint8Array(h(p)),x=0,w=0;w<p.length;w++){var v=p.charCodeAt(w);v<128?y[x++]=v:v<2048?(y[x++]=192|v>>6,y[x++]=128|v&63):v<55296?(y[x++]=224|v>>12,y[x++]=128|v>>6&63,y[x++]=128|v&63):(w++,v=(v&1023)<<10,v|=p.charCodeAt(w)&1023,v+=65536,y[x++]=240|v>>18,y[x++]=128|v>>12&63,y[x++]=128|v>>6&63,y[x++]=128|v&63)}return y}s.encode=g;function h(p){for(var y=0,x=0Line truncated
`);return I!==-1?(this.position+=I+1,_.slice(0,I)):null}isBufferTooLong(C){return this.position===C.length&&C.length>Fa}}var ki;(function(T){T[T.CONNECTING=0]="CONNECTING",T[T.OPEN=1]="OPEN",T[T.CLOSED=3]="CLOSED"})(ki||(ki={}));var Xs=ki,sl=1;class Ch{constructor(C,_){this.hooks=C,this.session=Ei(1e3)+"/"+Va(8),this.location=jh(_),this.readyState=Xs.CONNECTING,this.openStream()}send(C){return this.sendRaw(JSON.stringify([C]))}ping(){this.hooks.sendHeartbeat(this)}close(C,_){this.onClose(C,_,!0)}sendRaw(C){if(this.readyState===Xs.OPEN)try{return Xe.createSocketRequest("POST",us(Ni(this.location,this.session))).start(C),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose(C,_,I){this.closeStream(),this.readyState=Xs.CLOSED,this.onclose&&this.onclose({code:C,reason:_,wasClean:I})}onChunk(C){if(C.status===200){this.readyState===Xs.OPEN&&this.onActivity();var _,I=C.data.slice(0,1);switch(I){case"o":_=JSON.parse(C.data.slice(1)||"{}"),this.onOpen(_);break;case"a":_=JSON.parse(C.data.slice(1)||"[]");for(var P=0;P<_.length;P++)this.onEvent(_[P]);break;case"m":_=JSON.parse(C.data.slice(1)||"null"),this.onEvent(_);break;case"h":this.hooks.onHeartbeat(this);break;case"c":_=JSON.parse(C.data.slice(1)||"[]"),this.onClose(_[0],_[1],!0);break}}}onOpen(C){this.readyState===Xs.CONNECTING?(C&&C.hostname&&(this.location.base=al(this.location.base,C.hostname)),this.readyState=Xs.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent(C){this.readyState===Xs.OPEN&&this.onmessage&&this.onmessage({data:C})}onActivity(){this.onactivity&&this.onactivity()}onError(C){this.onerror&&this.onerror(C)}openStream(){this.stream=Xe.createSocketRequest("POST",us(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",C=>{this.onChunk(C)}),this.stream.bind("finished",C=>{this.hooks.onFinished(this,C)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch(C){oe.defer(()=>{this.onError(C),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function jh(T){var C=/([^\?]*)\/*(\??.*)/.exec(T);return{base:C[1],queryString:C[2]}}function Ni(T,C){return T.base+"/"+C+"/xhr_send"}function us(T){var C=T.indexOf("?")===-1?"?":"&";return T+C+"t="+ +new Date+"&n="+sl++}function al(T,C){var _=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(T);return _[1]+C+_[3]}function Ei(T){return Xe.randomInt(T)}function Va(T){for(var C=[],_=0;_<T;_++)C.push(Ei(32).toString(32));return C.join("")}var Ka=Ch,wd={getReceiveURL:function(T,C){return T.base+"/"+C+"/xhr_streaming"+T.queryString},onHeartbeat:function(T){T.sendRaw("[]")},sendHeartbeat:function(T){T.sendRaw("[]")},onFinished:function(T,C){T.onClose(1006,"Connection interrupted ("+C+")",!1)}},rl=wd,Sd={getReceiveURL:function(T,C){return T.base+"/"+C+"/xhr"+T.queryString},onHeartbeat:function(){},sendHeartbeat:function(T){T.sendRaw("[]")},onFinished:function(T,C){C===200?T.reconnect():T.onClose(1006,"Connection interrupted ("+C+")",!1)}},Rr=Sd,Ms={getRequest:function(T){var C=Xe.getXHRAPI(),_=new C;return _.onreadystatechange=_.onprogress=function(){switch(_.readyState){case 3:_.responseText&&_.responseText.length>0&&T.onChunk(_.status,_.responseText);break;case 4:_.responseText&&_.responseText.length>0&&T.onChunk(_.status,_.responseText),T.emit("finished",_.status),T.close();break}},_},abortRequest:function(T){T.onreadystatechange=null,T.abort()}},il=Ms,Or={createStreamingSocket(T){return this.createSocket(rl,T)},createPollingSocket(T){return this.createSocket(Rr,T)},createSocket(T,C){return new Ka(T,C)},createXHR(T,C){return this.createRequest(il,T,C)},createRequest(T,C,_){return new Sh(T,C,_)}},$s=Or;$s.createXDR=function(T,C){return this.createRequest(vd,T,C)};var ol=$s,_i={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:d,DependenciesReceivers:p,getDefaultStrategy:nl,Transports:Qn,transportConnectionInitializer:Ga,HTTPFactory:ol,TimelineTransport:Rs,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(T){window.Pusher=T;var C=()=>{this.onDocumentBody(T.ready)};window.JSON?C():y.load("json2",{},C)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:we,jsonp:wt}},onDocumentBody(T){document.body?T():setTimeout(()=>{this.onDocumentBody(T)},0)},createJSONPRequest(T,C){return new qt(T,C)},createScriptRequest(T){return new Tt(T)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var T=this.getXHRAPI();return new T},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return zn},createWebSocket(T){var C=this.getWebSocketAPI();return new C(T)},createSocketRequest(T,C){if(this.isXHRSupported())return this.HTTPFactory.createXHR(T Line truncated
`,qs.error("Error state rendered:",r,s)}getCurrentLayout(){return this.currentLayout}clear(){this.currentLayout=null,this.layoutCache.clear(),qs.log("Layout data and cache cleared")}}const LD=Ht("TranslationContext"),I0=w.createContext(null),Th=({children:n,translationEngine:e,translationContext:t})=>{const s=w.useMemo(()=>(o,l)=>{if(l){const d="|"+Object.entries(l).map(([u,f])=>`${u}=${f}`).join("|");return e.translate(o,t,d)}return e.translate(o,t)},[e,t]),r=w.useMemo(()=>({translationEngine:e,translationContext:t,t:s}),[e,t,s]);return a.jsx(I0.Provider,{value:r,children:n})},Mn=()=>{const n=w.useContext(I0);return n||(LD.warn("TranslationProvider 외부에서 호출되었습니다. 키를 그대로 반환합니다."),{t:e=>e,translationEngine:null,translationContext:null})},Xo=Ht("SlotContext"),OD={registerToSlot:()=>{Xo.warn("SlotContext not available: registerToSlot called outside SlotProvider")},unregisterFromSlot:()=>{Xo.warn("SlotContext not available: unregisterFromSlot called outside SlotProvider")},getSlotComponents:()=>[],subscribeToSlot:()=>()=>{},clearAllSlots:()=>{},isEnabled:!1},MD=w.createContext(OD),$h=({children:n})=>{const e=w.useRef(new Map),t=w.useRef(new Map),s=w.useCallback(g=>{const h=t.current.get(g);h&&h.forEach(b=>{try{b()}catch(y){Xo.error(`Slot subscriber error (slotId: ${g}):`,y)}})},[]),r=w.useCallback((g,h,b)=>{if(!g||!h){Xo.warn("registerToSlot: slotId and componentId are required");return}e.current.has(g)||e.current.set(g,new Map);const y=e.current.get(g),v=y.get(h);v&&v.registrationKey===b.registrationKey||(y.set(h,b),Xo.log(`Component registered to slot: ${h} -> ${g} (order: ${b.order})`),s(g))},[s]),o=w.useCallback((g,h)=>{const b=e.current.get(g);b&&b.has(h)&&(b.delete(h),Xo.log(`Component unregistered from slot: ${h} <- ${g}`),b.size===0&&e.current.delete(g),s(g))},[s]),l=w.useCallback(g=>{const h=e.current.get(g);return h?Array.from(h.values()).sort((b,y)=>b.order-y.order):[]},[]),d=w.useCallback((g,h)=>{t.current.has(g)||t.current.set(g,new Set);const b=t.current.get(g);return b.add(h),()=>{b.delete(h),b.size===0&&t.current.delete(g)}},[]),u=w.useCallback(()=>{e.current.forEach((g,h)=>{s(h)}),e.current.clear(),t.current.clear(),Xo.log("All slots cleared")},[s]),f=w.useMemo(()=>({registerToSlot:r,unregisterFromSlot:o,getSlotComponents:l,subscribeToSlot:d,clearAllSlots:u,isEnabled:!0}),[r,o,l,d,u]);return w.useLayoutEffect(()=>{typeof window<"u"&&(window.__slotContextValue=f,Xo.log("SlotContext exposed to window.__slotContextValue"))},[f]),a.jsx(MD.Provider,{value:f,children:n})};class Nh{constructor(){this.notificationCreatedEvent=".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated"}listenForWhisper(e,t){return this.listen(".client-"+e,t)}notification(e){return this.listen(this.notificationCreatedEvent,e)}stopListeningForNotification(e){return this.stopListening(this.notificationCreatedEvent,e)}stopListeningForWhisper(e,t){return this.stopListening(".client-"+e,t)}}class L0{constructor(e){this.namespace=e}format(e){return[".","\\"].includes(e.charAt(0))?e.substring(1):(this.namespace&&(e=this.namespace+"."+e),e.replace(/\./g,"\\"))}setNamespace(e){this.namespace=e}}function zD(n){try{return Reflect.construct(String,[],n),!0}catch{return!1}}class Dh extends Nh{constructor(e,t,s){super(),this.name=t,this.pusher=e,this.options=s,this.eventFormatter=new L0(this.options.namespace),this.subscribe()}subscribe(){this.subscription=this.pusher.subscribe(this.name)}unsubscribe(){this.pusher.unsubscribe(this.name)}listen(e,t){return this.on(this.eventFormatter.format(e),t),this}listenToAll(e){return this.subscription.bind_global((t,s)=>{if(t.startsWith("pusher:"))return;let r=String(this.options.namespace??"").replace(/\./g,"\\"),o=t.startsWith(r)?t.substring(r.length+1):"."+t;e(o,s)}),this}stopListening(e,t){return t?this.subscription.unbind(this.eventFormatter.format(e),t):this.subscription.unbind(this.eventFormatter.format(e)),this}stopListeningToAll(e){return e?this.subscription.unbind_global(e):this.subscription.unbind_global(),this}subscribed(e){return this.on("pusher:subscription_succeeded",()=>{e()}),this}error(e){return this.on("pusher:subscription_error",t=>{e(t)}),this}on(e,t){return this.subscription.bind(e,t),this}}class O0 extends Dh{whisper(e,t){return this.pusher.channels.channels[this.name].trigger(`client-${e}`,t),this}}class PD extends Dh{whisper(e,t){return this.pusher.channels.channels[this.name].trigger(`client-${e}`,t),this}}class BD extends O0{here(e){return this.on("pusher:subscription_succeeded",t=>{e(Object.keys(t.members).map(s=>t.members[s]))}),this}joining(e){return this.on("pusher:member_added",t=>{e(t.info)}),this}whisper(e,t){return this.pusher.channels.channels[this.name].trigger(`client-${e}`,t),this}leaving(e){return this.on("pusher:member_removed",t=>{e(t.info)}),this}}class M0 extends Nh{constructor(e,t,s){super(),this.events={},this.listeners={},this.name=t,this.socket=e,this.options=s,this.eventFormatter=new L0(this.opti Line truncated
`);return J!==-1?(this.position+=J+1,O.slice(0,J)):null}isBufferTooLong($){return this.position===$.length&&$.length>_t}}var as;(function(P){P[P.CONNECTING=0]="CONNECTING",P[P.OPEN=1]="OPEN",P[P.CLOSED=3]="CLOSED"})(as||(as={}));const sn=as;var wn=1;class Ls{constructor($,O){this.hooks=$,this.session=Os(1e3)+"/"+fd(8),this.location=li(O),this.readyState=sn.CONNECTING,this.openStream()}send($){return this.sendRaw(JSON.stringify([$]))}ping(){this.hooks.sendHeartbeat(this)}close($,O){this.onClose($,O,!0)}sendRaw($){if(this.readyState===sn.OPEN)try{return ht.createSocketRequest("POST",is(mn(this.location,this.session))).start($),!0}catch{return!1}else return!1}reconnect(){this.closeStream(),this.openStream()}onClose($,O,J){this.closeStream(),this.readyState=sn.CLOSED,this.onclose&&this.onclose({code:$,reason:O,wasClean:J})}onChunk($){if($.status===200){this.readyState===sn.OPEN&&this.onActivity();var O,J=$.data.slice(0,1);switch(J){case"o":O=JSON.parse($.data.slice(1)||"{}"),this.onOpen(O);break;case"a":O=JSON.parse($.data.slice(1)||"[]");for(var oe=0;oe<O.length;oe++)this.onEvent(O[oe]);break;case"m":O=JSON.parse($.data.slice(1)||"null"),this.onEvent(O);break;case"h":this.hooks.onHeartbeat(this);break;case"c":O=JSON.parse($.data.slice(1)||"[]"),this.onClose(O[0],O[1],!0);break}}}onOpen($){this.readyState===sn.CONNECTING?($&&$.hostname&&(this.location.base=Ro(this.location.base,$.hostname)),this.readyState=sn.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}onEvent($){this.readyState===sn.OPEN&&this.onmessage&&this.onmessage({data:$})}onActivity(){this.onactivity&&this.onactivity()}onError($){this.onerror&&this.onerror($)}openStream(){this.stream=ht.createSocketRequest("POST",is(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",$=>{this.onChunk($)}),this.stream.bind("finished",$=>{this.hooks.onFinished(this,$)}),this.stream.bind("buffer_too_long",()=>{this.reconnect()});try{this.stream.start()}catch($){ce.defer(()=>{this.onError($),this.onClose(1006,"Could not start streaming",!1)})}}closeStream(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}function li(P){var $=/([^\?]*)\/*(\??.*)/.exec(P);return{base:$[1],queryString:$[2]}}function mn(P,$){return P.base+"/"+$+"/xhr_send"}function is(P){var $=P.indexOf("?")===-1?"?":"&";return P+$+"t="+ +new Date+"&n="+wn++}function Ro(P,$){var O=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(P);return O[1]+$+O[3]}function Os(P){return ht.randomInt(P)}function fd(P){for(var $=[],O=0;O<P;O++)$.push(Os(32).toString(32));return $.join("")}const fa=Ls;var Mr={getReceiveURL:function(P,$){return P.base+"/"+$+"/xhr_streaming"+P.queryString},onHeartbeat:function(P){P.sendRaw("[]")},sendHeartbeat:function(P){P.sendRaw("[]")},onFinished:function(P,$){P.onClose(1006,"Connection interrupted ("+$+")",!1)}};const pd=Mr;var ci={getReceiveURL:function(P,$){return P.base+"/"+$+"/xhr"+P.queryString},onHeartbeat:function(){},sendHeartbeat:function(P){P.sendRaw("[]")},onFinished:function(P,$){$===200?P.reconnect():P.onClose(1006,"Connection interrupted ("+$+")",!1)}};const ao=ci;var gd={getRequest:function(P){var $=ht.getXHRAPI(),O=new $;return O.onreadystatechange=O.onprogress=function(){switch(O.readyState){case 3:O.responseText&&O.responseText.length>0&&P.onChunk(O.status,O.responseText);break;case 4:O.responseText&&O.responseText.length>0&&P.onChunk(O.status,O.responseText),P.emit("finished",O.status),P.close();break}},O},abortRequest:function(P){P.onreadystatechange=null,P.abort()}};const _l=gd;var dp={createStreamingSocket(P){return this.createSocket(pd,P)},createPollingSocket(P){return this.createSocket(ao,P)},createSocket(P,$){return new fa(P,$)},createXHR(P,$){return this.createRequest(_l,P,$)},createRequest(P,$,O){return new Kt(P,$,O)}};const di=dp;di.createXDR=function(P,$){return this.createRequest(gt,P,$)};var up={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:g,DependenciesReceivers:v,getDefaultStrategy:bt,Transports:os,transportConnectionInitializer:Tt,HTTPFactory:di,TimelineTransport:Q,getXHRAPI(){return window.XMLHttpRequest},getWebSocketAPI(){return window.WebSocket||window.MozWebSocket},setup(P){window.Pusher=P;var $=()=>{this.onDocumentBody(P.ready)};window.JSON?$():x.load("json2",{},$)},getDocument(){return document},getProtocol(){return this.getDocument().location.protocol},getAuthorizers(){return{ajax:Z,jsonp:jt}},onDocumentBody(P){document.body?P():setTimeout(()=>{this.onDocumentBody(P)},0)},createJSONPRequest(P,$){return new Rt(P,$)},createScriptRequest(P){return new At(P)},getLocalStorage(){try{return window.localStorage}catch{return}},createXHR(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest(){var P=this.getXHRAPI();return new P},createMicrosoftXHR(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork(){return Co},createWebSocket(P){var $=this.getWebSocketAPI();return new $(P)},createSocketRequest(P,$){if(this.isXHRSup Line truncated
display: flex;
align-items: center;
justify-content: center;
@@ -217,46 +174,46 @@ Error generating stack: `+u.message+`
cursor: pointer;
transition: background-color 0.2s;
`};s.innerHTML=`
<div style="${d.container}">
<div style="${d.card}">
<div style="${l.container}">
<div style="${l.card}">
<!-- 아이콘 -->
<div style="${d.iconContainer}">
<i class="fa-solid ${t.icon}" style="${d.icon}"></i>
<div style="${l.iconContainer}">
<i class="fa-solid ${t.icon}" style="${l.icon}"></i>
</div>
<!-- 제목 -->
<h1 style="${d.title}">
<h1 style="${l.title}">
${this.escapeHtml(t.title)}
</h1>
<!-- 사용자 메시지 -->
<p style="${d.message}">
<p style="${l.message}">
${this.escapeHtml(t.message)}
</p>
<!-- 상세 메시지 (API 응답 등) -->
${t.detailMessage?`
<p style="${d.detailMessage}">
<p style="${l.detailMessage}">
${this.escapeHtml(t.detailMessage)}
</p>
`:`<div style="${d.spacer}"></div>`}
`:`<div style="${l.spacer}"></div>`}
<!-- Stack Trace (디버그 모드일 때만) -->
${i?`
<div style="${d.stackContainer}">
<p style="${d.stackTitle}">
${r?`
<div style="${l.stackContainer}">
<p style="${l.stackTitle}">
Stack Trace:
</p>
<pre style="${d.stackTrace}">${this.escapeHtml(t.stackTrace)}</pre>
<pre style="${l.stackTrace}">${this.escapeHtml(t.stackTrace)}</pre>
</div>
`:""}
<!-- 새로고침 버튼 (복구 가능할 때만) -->
${t.showReloadButton?`
<div style="${d.buttonContainer}">
<div style="${l.buttonContainer}">
<button
onclick="window.location.reload()"
style="${d.button}"
style="${l.button}"
onmouseover="this.style.backgroundColor='#1d4ed8'"
onmouseout="this.style.backgroundColor='#2563eb'"
>
@@ -267,7 +224,7 @@ Error generating stack: `+u.message+`
`:""}
</div>
</div>
`}static renderFromError(e,t,s,i=!1,o,d,g){let h,f;if(t.userMessageKey.startsWith("$t:"))if(d&&o)try{h=d.translate(t.userMessageKey,o)}catch{h=t.userMessageKey.replace("$t:","")}else h=t.userMessageKey.replace("$t:","");else h=t.userMessageKey;if(g){const p=g;p.details?.apiMessage?f=p.details.apiMessage:p.response?.data?.message&&(f=p.response.data.message)}this.render(e,{title:s,message:h,detailMessage:f,icon:t.icon,showStack:t.showStack,stackTrace:t.stack,showReloadButton:t.recoverable,debug:i})}static escapeHtml(e){if(!e)return"";const t=document.createElement("div");return t.textContent=e,t.innerHTML}}const Vt=nt("ErrorPageHandler");class nk{constructor(e){H(this,"templateId");H(this,"layoutLoader");H(this,"locale");H(this,"debug");H(this,"renderFunction");H(this,"dataSourceManager");H(this,"globalState");H(this,"errorConfig",null);H(this,"configLoaded",!1);this.templateId=e.templateId,this.layoutLoader=e.layoutLoader,this.locale=e.locale,this.debug=e.debug,this.renderFunction=e.renderFunction,this.dataSourceManager=e.dataSourceManager,this.globalState=e.globalState||{}}async loadConfig(){if(this.configLoaded)return this.errorConfig;try{const e=await fetch(`/api/templates/${this.templateId}/config.json`);if(!e.ok)return this.debug&&Vt.warn("Failed to load template config:",e.statusText),this.configLoaded=!0,null;const t=await e.json();if(!t.success||!t.data)return this.debug&&Vt.warn("Invalid template config response"),this.configLoaded=!0,null;const s=t.data;return!s.error_config||!s.error_config.layouts?(this.debug&&Vt.warn("No error_config found in template.json"),this.configLoaded=!0,null):(this.errorConfig=s.error_config,this.configLoaded=!0,this.debug&&Vt.log("Error config loaded:",this.errorConfig),this.errorConfig)}catch(e){return Vt.error("Failed to load error config:",e),this.configLoaded=!0,null}}async renderError(e,t="app"){try{const s=await this.loadConfig();if(!s)return this.debug&&Vt.warn("No error config available, cannot render error page"),!1;const i=s.layouts[e]||s.layouts[String(e)];if(!i)return this.debug&&Vt.warn(`No layout defined for error code: ${e}`),!1;this.debug&&Vt.log(`Loading error layout: ${i} for code: ${e}`);const o=await this.layoutLoader.loadLayout(this.templateId,i);if(!o)return this.debug&&Vt.error(`Failed to load error layout: ${i}`),!1;this.debug&&Vt.log("Error layout loaded:",o);let d={};const g=o.data_sources||[];if(g.length>0){this.debug&&Vt.log("Fetching data sources:",g.map(w=>w.id));const p=g.filter(w=>w.loading_strategy==="blocking"),y=g.filter(w=>!w.loading_strategy||w.loading_strategy==="progressive"),x=[...p,...y];if(x.length>0)try{d=await this.dataSourceManager.fetchDataSources(x,{},new URLSearchParams),this.debug&&Vt.log("Data sources fetched:",Object.keys(d))}catch(w){Vt.error("Failed to fetch data sources:",w)}}const h={};g.length>0&&(this.processInitOptions(g,d,h),this.debug&&Vt.log("initOptions processed:",{globalKeys:Object.keys(this.globalState),localKeys:Object.keys(h)}));const f={...d,errorCode:e,_global:{...this.globalState},_local:{...h}};return await this.renderFunction({containerId:t,layoutJson:o,dataContext:f,translationContext:{templateId:this.templateId,locale:this.locale}}),this.debug&&Vt.log(`Error page ${e} rendered successfully`),!0}catch(s){return Vt.error(`Failed to render error page ${e}:`,s),!1}}processInitOptions(e,t,s){for(const i of e){const o=t[i.id];if(!o)continue;const d=o?.data??o;if(i.initLocal){if(typeof i.initLocal=="string")s[i.initLocal]=d,Vt.log(`initLocal: ${i.id}.data -> _local.${i.initLocal}`);else if(typeof i.initLocal=="object"&&"key"in i.initLocal){const{key:g,path:h}=i.initLocal;s[g]=h?this.getValueByPath(d,h):d,Vt.log(`initLocal: ${i.id}.data${h?"."+h:""} -> _local.${g}`)}}if(i.initGlobal){const g=Array.isArray(i.initGlobal)?i.initGlobal:[i.initGlobal];for(const h of g)if(typeof h=="string")this.globalState[h]=d,Vt.log(`initGlobal: ${i.id}.data -> _global.${h}`);else if(typeof h=="object"&&h!==null&&"key"in h){const{key:f,path:p}=h;this.globalState[f]=p?this.getValueByPath(d,p):d,Vt.log(`initGlobal: ${i.id}.data${p?"."+p:""} -> _global.${f}`)}}}}getValueByPath(e,t){return t.split(".").reduce((s,i)=>s?.[i],e)}updateGlobalState(e){this.globalState={...this.globalState,...e}}updateLocale(e){this.locale=e,this.debug&&Vt.log("Locale updated:",e)}isConfigLoaded(){return this.configLoaded}async hasErrorLayout(e){const t=await this.loadConfig();return t?!!(t.layouts[e]||t.layouts[String(e)]):!1}clearConfigCache(){this.errorConfig=null,this.configLoaded=!1,this.debug&&Vt.log("Config cache cleared")}}const $n=nt("ModuleAssetLoader");class sk{constructor(){H(this,"loadedAssets",new Map);H(this,"loadingPromises",new Map)}async loadActiveExtensionAssets(e){if(!e||e.length===0){$n.log("No module assets to load");return}const t=[...e].sort((o,d)=>o.priority-d.priority);$n.log("Loading module assets:",t.map(o=>o.identifier));const s=t.filter(o=>o.css).map(o=>this.loadCSS(o.identifier,o.css)),i=t.filter(o=>o.js).map( Line truncated
`}static renderFromError(e,t,s,r=!1,o,l,d){let u,f;if(t.userMessageKey.startsWith("$t:"))if(l&&o)try{u=l.translate(t.userMessageKey,o)}catch{u=t.userMessageKey.replace("$t:","")}else u=t.userMessageKey.replace("$t:","");else u=t.userMessageKey;if(d){const g=d;g.details?.apiMessage?f=g.details.apiMessage:g.response?.data?.message&&(f=g.response.data.message)}this.render(e,{title:s,message:u,detailMessage:f,icon:t.icon,showStack:t.showStack,stackTrace:t.stack,showReloadButton:t.recoverable,debug:r})}static escapeHtml(e){if(!e)return"";const t=document.createElement("div");return t.textContent=e,t.innerHTML}}const En=Ht("ErrorPageHandler");class rI{constructor(e){ne(this,"templateId");ne(this,"layoutLoader");ne(this,"locale");ne(this,"debug");ne(this,"renderFunction");ne(this,"dataSourceManager");ne(this,"globalState");ne(this,"errorConfig",null);ne(this,"configLoaded",!1);this.templateId=e.templateId,this.layoutLoader=e.layoutLoader,this.locale=e.locale,this.debug=e.debug,this.renderFunction=e.renderFunction,this.dataSourceManager=e.dataSourceManager,this.globalState=e.globalState||{}}async loadConfig(){if(this.configLoaded)return this.errorConfig;try{const e=await fetch(`/api/templates/${this.templateId}/config.json`);if(!e.ok)return this.debug&&En.warn("Failed to load template config:",e.statusText),this.configLoaded=!0,null;const t=await e.json();if(!t.success||!t.data)return this.debug&&En.warn("Invalid template config response"),this.configLoaded=!0,null;const s=t.data;return!s.error_config||!s.error_config.layouts?(this.debug&&En.warn("No error_config found in template.json"),this.configLoaded=!0,null):(this.errorConfig=s.error_config,this.configLoaded=!0,this.debug&&En.log("Error config loaded:",this.errorConfig),this.errorConfig)}catch(e){return En.error("Failed to load error config:",e),this.configLoaded=!0,null}}async renderError(e,t="app"){try{const s=await this.loadConfig();if(!s)return this.debug&&En.warn("No error config available, cannot render error page"),!1;const r=s.layouts[e]||s.layouts[String(e)];if(!r)return this.debug&&En.warn(`No layout defined for error code: ${e}`),!1;this.debug&&En.log(`Loading error layout: ${r} for code: ${e}`);const o=await this.layoutLoader.loadLayout(this.templateId,r);if(!o)return this.debug&&En.error(`Failed to load error layout: ${r}`),!1;this.debug&&En.log("Error layout loaded:",o);let l={};const d=o.data_sources||[];if(d.length>0){this.debug&&En.log("Fetching data sources:",d.map(y=>y.id));const g=d.filter(y=>y.loading_strategy==="blocking"),h=d.filter(y=>!y.loading_strategy||y.loading_strategy==="progressive"),b=[...g,...h];if(b.length>0)try{l=await this.dataSourceManager.fetchDataSources(b,{},new URLSearchParams),this.debug&&En.log("Data sources fetched:",Object.keys(l))}catch(y){En.error("Failed to fetch data sources:",y)}}const u={};d.length>0&&(this.processInitOptions(d,l,u),this.debug&&En.log("initOptions processed:",{globalKeys:Object.keys(this.globalState),localKeys:Object.keys(u)}));const f={...l,errorCode:e,_global:{...this.globalState},_local:{...u}};return await this.renderFunction({containerId:t,layoutJson:o,dataContext:f,translationContext:{templateId:this.templateId,locale:this.locale}}),this.debug&&En.log(`Error page ${e} rendered successfully`),!0}catch(s){return En.error(`Failed to render error page ${e}:`,s),!1}}processInitOptions(e,t,s){for(const r of e){const o=t[r.id];if(!o)continue;const l=o?.data??o;if(r.initLocal){if(typeof r.initLocal=="string")s[r.initLocal]=l,En.log(`initLocal: ${r.id}.data -> _local.${r.initLocal}`);else if(typeof r.initLocal=="object"&&"key"in r.initLocal){const{key:d,path:u}=r.initLocal;s[d]=u?this.getValueByPath(l,u):l,En.log(`initLocal: ${r.id}.data${u?"."+u:""} -> _local.${d}`)}}if(r.initGlobal){const d=Array.isArray(r.initGlobal)?r.initGlobal:[r.initGlobal];for(const u of d)if(typeof u=="string")this.globalState[u]=l,En.log(`initGlobal: ${r.id}.data -> _global.${u}`);else if(typeof u=="object"&&u!==null&&"key"in u){const{key:f,path:g}=u;this.globalState[f]=g?this.getValueByPath(l,g):l,En.log(`initGlobal: ${r.id}.data${g?"."+g:""} -> _global.${f}`)}}}}getValueByPath(e,t){return t.split(".").reduce((s,r)=>s?.[r],e)}updateGlobalState(e){this.globalState={...this.globalState,...e}}updateLocale(e){this.locale=e,this.debug&&En.log("Locale updated:",e)}isConfigLoaded(){return this.configLoaded}async hasErrorLayout(e){const t=await this.loadConfig();return t?!!(t.layouts[e]||t.layouts[String(e)]):!1}clearConfigCache(){this.errorConfig=null,this.configLoaded=!1,this.debug&&En.log("Config cache cleared")}}const As=Ht("ModuleAssetLoader");class oI{constructor(){ne(this,"loadedAssets",new Map);ne(this,"loadingPromises",new Map)}async loadActiveExtensionAssets(e){if(!e||e.length===0){As.log("No module assets to load");return}const t=[...e].sort((o,l)=>o.priority-l.priority);As.log("Loading module assets:",t.map(o=>o.identifier));const s=t.filter(o=>o.css).map(o=>this.loadCSS(o.identifier,o.css)),r=t.filter(o= Line truncated
with(ctx) {
try {
return Boolean(${s});
@@ -275,7 +232,7 @@ Error generating stack: `+u.message+`
return false;
}
}
`)(t)}return!!e}catch(s){return G.warn(`Failed to evaluate script condition: ${e}`,s),!1}}showInitError(e){const t=tx(e);nx.renderFromError("app",t,"초기화 실패",this.config.debug,{templateId:this.config.templateId,locale:this.config.locale},void 0,e)}showTransitionOverlay(e,t){const s=typeof e=="boolean"?{enabled:e,style:"opaque",target:void 0,skeleton:void 0,spinner:void 0}:{enabled:e.enabled,style:e.style||"opaque",target:e.target,skeleton:e.skeleton,spinner:e.spinner,fallback_target:e.fallback_target};if(!s.enabled)return;if(this.hideTransitionOverlay(),s.style==="skeleton"&&s.skeleton?.component&&s.target&&t){this.renderSkeletonOverlay(s.target,s.skeleton,t,s.fallback_target);return}if(s.style==="spinner"&&s.target){this.renderSpinnerOverlay(s.target,s.spinner,s.fallback_target);return}const i=document.documentElement.classList.contains("dark");let o,d="";switch(s.style){case"blur":o=i?"rgba(17,24,39,0.3)":"rgba(255,255,255,0.3)",d="backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);";break;case"fade":o=i?"rgba(17,24,39,0.8)":"rgba(255,255,255,0.8)";break;case"skeleton":o=i?"rgb(17,24,39)":"rgb(249,250,251)";break;case"opaque":default:o=i?"rgb(17,24,39)":"rgb(249,250,251)";break}if(s.target){const g=`#${CSS.escape(s.target)}`,h=document.createElement("style");h.id="g7-transition-overlay",h.textContent=`${g}{position:relative;z-index:0;}${g}::after{content:'';position:absolute;inset:0;background:${o};${d}z-index:2147483647;pointer-events:none;}`,document.head.appendChild(h),this.transitionOverlayEl=h}else{const g=document.createElement("div");g.id="g7-transition-overlay",g.setAttribute("aria-hidden","true"),g.style.cssText=`position:fixed;inset:0;z-index:9999;pointer-events:none;background:${o};${d}`,document.body.appendChild(g),this.transitionOverlayEl=g}}hideTransitionOverlay(){this.transitionOverlayEl&&(this.transitionOverlayEl.remove(),this.transitionOverlayEl=null),this.hideSkeletonOverlay()}renderSkeletonOverlay(e,t,s,i){const d=vs.getInstance().getComponent(t.component);if(!d){G.log(`Skeleton component "${t.component}" not found in registry, falling back to opaque overlay`),this.showTransitionOverlay({enabled:!0,style:"opaque",target:e});return}let g=document.getElementById(e),h="target";if(!g&&i&&(g=document.getElementById(i),h="fallback"),g||(g=document.getElementById("app"),h="fullpage"),!g){G.log(`Skeleton overlay: no target found (target="#${e}", fallback="${i||"none"}"), falling back to opaque overlay`),this.showTransitionOverlay({enabled:!0,style:"opaque",target:e});return}this.hideSkeletonOverlay();const p=document.documentElement.classList.contains("dark")?"rgb(17,24,39)":"rgb(249,250,251)",y=h==="fullpage"?"app":h==="fallback"?i:e,x=`#${CSS.escape(y)}`,w=document.createElement("style");w.id="g7-skeleton-overlay-style",w.textContent=`${x}{position:relative;z-index:0;}${x}::after{content:'';position:absolute;inset:0;background:${p};z-index:2147483646;pointer-events:none;}`,document.head.appendChild(w),this.transitionOverlayEl=w;const v=document.createElement("div");if(v.id="g7-skeleton-overlay",v.setAttribute("role","status"),v.setAttribute("aria-busy","true"),v.setAttribute("aria-label","Loading..."),h==="fullpage")v.style.cssText=["position:fixed","inset:0","z-index:20","overflow:hidden","pointer-events:none",`background:${p}`].join(";")+";";else{const N=g.getBoundingClientRect(),D=window.scrollX||document.documentElement.scrollLeft,$=window.scrollY||document.documentElement.scrollTop;v.style.cssText=["position:absolute",`top:${N.top+$}px`,`left:${N.left+D}px`,`width:${N.width}px`,`height:${N.height}px`,"z-index:20","overflow:hidden","pointer-events:none",`background:${p}`].join(";")+";"}document.body.appendChild(v),this.skeletonOverlayContainer=v;const S=s.components||[];let k;if(h==="fullpage")k=S;else{const N=h==="fallback"?i:e;k=this.findComponentChildrenById(S,N)}const A=Pu.createRoot(v);this.skeletonOverlayRoot=A,Ma.flushSync(()=>{A.render(Ke.createElement(d,{components:k,options:{animation:t.animation||"pulse",iteration_count:t.iteration_count||5}}))});const O=h==="fullpage"?"fullpage (#app)":h==="fallback"?`fallback (#${i})`:`target (#${e})`;G.log(`Skeleton overlay rendered [${O}] with "${t.component}" (${k.length} components)`)}findComponentChildrenById(e,t){const s=i=>{for(const o of i){if(o.id===t)return o.children||[];if(o.children&&Array.isArray(o.children)){const d=s(o.children);if(d!==null)return d}}return null};return s(e)||e}renderSpinnerOverlay(e,t,s){let i=document.getElementById(e),o="target";if(!i&&s&&(i=document.getElementById(s),o="fallback"),i||(i=document.getElementById("app"),o="fullpage"),!i){G.log(`Spinner overlay: no target found (target="#${e}", fallback="${s||"none"}"), falling back to opaque overlay`),this.showTransitionOverlay({enabled:!0,style:"opaque",target:e});return}this.hideSkeletonOverlay();const d=o==="fullpage"?"app":o==="fallback"?s:e,g=`#${CSS.escape(d)}`,h=document.createElement("style");h.id="g7-skeleton-overla Line truncated
`)(t)}return!!e}catch(s){return le.warn(`Failed to evaluate script condition: ${e}`,s),!1}}showInitError(e){const t=V0(e);J0.renderFromError("app",t,"초기화 실패",this.config.debug,{templateId:this.config.templateId,locale:this.config.locale},void 0,e)}showTransitionOverlay(e,t){const s=typeof e=="boolean"?{enabled:e,style:"opaque",target:void 0,skeleton:void 0,spinner:void 0}:{enabled:e.enabled,style:e.style||"opaque",target:e.target,skeleton:e.skeleton,spinner:e.spinner,fallback_target:e.fallback_target};if(!s.enabled)return;if(this.hideTransitionOverlay(),s.style==="skeleton"&&s.skeleton?.component&&s.target&&t){this.renderSkeletonOverlay(s.target,s.skeleton,t,s.fallback_target);return}if(s.style==="spinner"&&s.target){this.renderSpinnerOverlay(s.target,s.spinner,s.fallback_target);return}const r=document.documentElement.classList.contains("dark");let o,l="";switch(s.style){case"blur":o=r?"rgba(17,24,39,0.3)":"rgba(255,255,255,0.3)",l="backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);";break;case"fade":o=r?"rgba(17,24,39,0.8)":"rgba(255,255,255,0.8)";break;case"skeleton":o=r?"rgb(17,24,39)":"rgb(249,250,251)";break;default:o=r?"rgb(17,24,39)":"rgb(249,250,251)";break}if(s.target){const d=`#${CSS.escape(s.target)}`,u=document.createElement("style");u.id="g7-transition-overlay",u.textContent=`${d}{position:relative;z-index:0;}${d}::after{content:'';position:absolute;inset:0;background:${o};${l}z-index:2147483647;pointer-events:none;}`,document.head.appendChild(u),this.transitionOverlayEl=u}else{const d=document.createElement("div");d.id="g7-transition-overlay",d.setAttribute("aria-hidden","true"),d.style.position="fixed",d.style.inset="0",d.style.zIndex="9999",d.style.pointerEvents="none",d.style.background=o;for(const u of l.split(";")){const f=u.indexOf(":");f!==-1&&d.style.setProperty(u.slice(0,f).trim(),u.slice(f+1).trim())}document.body.appendChild(d),this.transitionOverlayEl=d}}hideTransitionOverlay(){this.transitionOverlayEl&&(this.transitionOverlayEl.remove(),this.transitionOverlayEl=null),this.hideSkeletonOverlay()}renderSkeletonOverlay(e,t,s,r){const l=xr.getInstance().getComponent(t.component);if(!l){le.log(`Skeleton component "${t.component}" not found in registry, falling back to opaque overlay`),this.showTransitionOverlay({enabled:!0,style:"opaque",target:e});return}let d=document.getElementById(e),u="target";if(!d&&r&&(d=document.getElementById(r),u="fallback"),d||(d=document.getElementById("app"),u="fullpage"),!d){le.log(`Skeleton overlay: no target found (target="#${e}", fallback="${r||"none"}"), falling back to opaque overlay`),this.showTransitionOverlay({enabled:!0,style:"opaque",target:e});return}this.hideSkeletonOverlay();const g=document.documentElement.classList.contains("dark")?"rgb(17,24,39)":"rgb(249,250,251)",h=u==="fullpage"?"app":u==="fallback"?r:e,b=`#${CSS.escape(h)}`,y=document.createElement("style");y.id="g7-skeleton-overlay-style",y.textContent=`${b}{position:relative;z-index:0;}${b}::after{content:'';position:absolute;inset:0;background:${g};z-index:2147483646;pointer-events:none;}`,document.head.appendChild(y),this.transitionOverlayEl=y;const v=document.createElement("div");if(v.id="g7-skeleton-overlay",v.setAttribute("role","status"),v.setAttribute("aria-busy","true"),v.setAttribute("aria-label","Loading..."),u==="fullpage")v.style.cssText=["position:fixed","inset:0","z-index:20","overflow:hidden","pointer-events:none",`background:${g}`].join(";")+";";else{const C=d.getBoundingClientRect(),j=window.scrollX||document.documentElement.scrollLeft,E=window.scrollY||document.documentElement.scrollTop;v.style.cssText=["position:absolute",`top:${C.top+E}px`,`left:${C.left+j}px`,`width:${C.width}px`,`height:${C.height}px`,"z-index:20","overflow:hidden","pointer-events:none",`background:${g}`].join(";")+";"}document.body.appendChild(v),this.skeletonOverlayContainer=v;const x=s.components||[];let S;if(u==="fullpage")S=x;else{const C=u==="fallback"?r:e;S=this.findComponentChildrenById(x,C)}const _=Tg.createRoot(v);this.skeletonOverlayRoot=_,Vr.flushSync(()=>{_.render(qe.createElement(l,{components:S,options:{animation:t.animation||"pulse",iteration_count:t.iteration_count||5}}))});const A=u==="fullpage"?"fullpage (#app)":u==="fallback"?`fallback (#${r})`:`target (#${e})`;le.log(`Skeleton overlay rendered [${A}] with "${t.component}" (${S.length} components)`)}findComponentChildrenById(e,t){const s=r=>{for(const o of r){if(o.id===t)return o.children||[];if(o.children&&Array.isArray(o.children)){const l=s(o.children);if(l!==null)return l}}return null};return s(e)||e}renderSpinnerOverlay(e,t,s){let r=document.getElementById(e),o="target";if(!r&&s&&(r=document.getElementById(s),o="fallback"),r||(r=document.getElementById("app"),o="fullpage"),!r){le.log(`Spinner overlay: no target found (target="#${e}", fallback="${s||"none"}"), falling back to opaque overlay`),this.showTransitionOverlay({enabled:!0,style:"opaque",target:e});return}this.hideSkeletonOverl Line truncated
with(ctx) {
try {
return ${e};
@@ -283,13 +240,13 @@ Error generating stack: `+u.message+`
return undefined;
}
}
`)(t)}catch(s){G.warn(`Expression evaluation failed: ${e}`,s);return}}async executeInitActions(e,t={}){const{getActionDispatcher:s}=await Promise.resolve().then(()=>Ks),i=s();if(!i){G.warn("ActionDispatcher not available for init_actions");return}G.log("Executing init_actions:",e.map(g=>g.handler)),G.log("Init actions dataContext:",t),G.log("Init actions dataContext._global:",t._global);const o=e.map(g=>g.handler).filter(g=>g.includes("."));o.length>0&&await this.waitForHandlers(i,o);let d={...t};for(const g of e)try{const h={type:"click",handler:g.handler,target:g.target,params:g.params,resultTo:g.resultTo,onSuccess:g.onSuccess,onError:g.onError,if:g.if,conditions:g.conditions,auth_mode:g.auth_mode,auth_required:g.auth_required},f=i.createHandler(h,d),p=new Event("init");await f(p),G.log(`Init action executed: ${g.handler}`);const y=this.globalState;d={...d,_global:{...y},_local:y._local||d._local||{}},G.log(`Data context refreshed after ${g.handler}:`,{cartKey:d._global?.cartKey})}catch(h){G.error(`Failed to execute init action: ${g.handler}`,h)}}async waitForHandlers(e,t,s=5e3){const i=Date.now(),o=50,d=()=>t.every(g=>e.customHandlers?.has(g));if(d()){G.log("All module handlers already registered");return}return G.log("Waiting for module handlers:",t),new Promise(g=>{const h=()=>{if(d()){G.log("All module handlers now registered"),g();return}if(Date.now()-i>=s){const f=t.filter(p=>!e.customHandlers?.has(p));G.warn("Timeout waiting for handlers:",f),g();return}setTimeout(h,o)};h()})}};H(Ds,"LOCALE_STORAGE_KEY","g7_locale"),H(Ds,"CACHE_VERSION_STORAGE_KEY","g7_cache_version");let Lo=Ds;function qg(r){const e=new Lo(r);return r.websocket&&(Ic.configure(r.websocket),G.log("WebSocket 설정 완료")),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{e.init(),window.__templateApp=e}):(e.init(),window.__templateApp=e),e}typeof window<"u"&&(window.G7Core=window.G7Core||{},window.G7Core.initTemplateApp=qg,window.G7Core.dataSource={refetch:async(r,e)=>{const t=window.__templateApp;if(!t){G.warn("TemplateApp not initialized (G7Core.dataSource.refetch)");return}return t.refetchDataSource(r,e)},get:r=>{const e=window.__templateApp;if(!e){G.warn("TemplateApp not initialized (G7Core.dataSource.get)");return}return e.getDataSource(r)}});const Uc=[{id:"stale-closure",name:"Stale Closure",category:"state",symptoms:["이전 값이 전송됨","저장 시 오래된 데이터","API 호출 시 첫 값만 전송","클릭할 때마다 같은 값"],detector:r=>{const t=r.actionHistory.slice(-10).filter(s=>s.type==="apiCall");if(t.length<2)return!1;for(let s=1;s<t.length;s++){const i=JSON.stringify(t[s-1].params),o=JSON.stringify(t[s].params);if(i===o&&t[s].params)return!0}return!1},probability:.85,solution:"G7Core.state.get()._global 사용하여 최신 상태 참조",docLink:"troubleshooting-state.md#stale-closure",codeExample:`
`)(t)}catch(s){le.warn(`Expression evaluation failed: ${e}`,s);return}}async executeInitActions(e,t={}){const{getActionDispatcher:s}=await Promise.resolve().then(()=>so),r=s();if(!r){le.warn("ActionDispatcher not available for init_actions");return}le.log("Executing init_actions:",e.map(d=>d.handler)),le.log("Init actions dataContext:",t),le.log("Init actions dataContext._global:",t._global);const o=e.map(d=>d.handler).filter(d=>d.includes("."));o.length>0&&await this.waitForHandlers(r,o);let l={...t};for(const d of e)try{const u={type:"click",handler:d.handler,target:d.target,params:d.params,resultTo:d.resultTo,onSuccess:d.onSuccess,onError:d.onError,if:d.if,conditions:d.conditions,auth_mode:d.auth_mode,auth_required:d.auth_required},f=r.createHandler(u,l),g=new Event("init");await f(g),le.log(`Init action executed: ${d.handler}`);const h=this.globalState;l={...l,_global:{...h},_local:h._local||l._local||{}},le.log(`Data context refreshed after ${d.handler}:`,{cartKey:l._global?.cartKey})}catch(u){le.error(`Failed to execute init action: ${d.handler}`,u)}}async waitForHandlers(e,t,s=5e3){const r=Date.now(),o=50,l=()=>t.every(d=>e.customHandlers?.has(d));if(l()){le.log("All module handlers already registered");return}return le.log("Waiting for module handlers:",t),new Promise(d=>{const u=()=>{if(l()){le.log("All module handlers now registered"),d();return}if(Date.now()-r>=s){const f=t.filter(g=>!e.customHandlers?.has(g));le.warn("Timeout waiting for handlers:",f),d();return}setTimeout(u,o)};u()})}};ne(Lr,"LOCALE_STORAGE_KEY","g7_locale"),ne(Lr,"CACHE_VERSION_STORAGE_KEY","g7_cache_version");let Rc=Lr;function Ph(n){const e=new Rc(n);return n.websocket&&(Fu.configure(n.websocket),le.log("WebSocket 설정 완료")),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{e.init(),window.__templateApp=e}):(e.init(),window.__templateApp=e),e}typeof window<"u"&&(window.G7Core=window.G7Core||{},window.G7Core.initTemplateApp=Ph,window.G7Core.dataSource={refetch:async(n,e)=>{const t=window.__templateApp;if(!t){le.warn("TemplateApp not initialized (G7Core.dataSource.refetch)");return}return t.refetchDataSource(n,e)},get:n=>{const e=window.__templateApp;if(!e){le.warn("TemplateApp not initialized (G7Core.dataSource.get)");return}return e.getDataSource(n)}});const Yu=[{id:"stale-closure",name:"Stale Closure",category:"state",symptoms:["이전 값이 전송됨","저장 시 오래된 데이터","API 호출 시 첫 값만 전송","클릭할 때마다 같은 값"],detector:n=>{const t=n.actionHistory.slice(-10).filter(s=>s.type==="apiCall");if(t.length<2)return!1;for(let s=1;s<t.length;s++){const r=JSON.stringify(t[s-1].params),o=JSON.stringify(t[s].params);if(r===o&&t[s].params)return!0}return!1},probability:.85,solution:"G7Core.state.get()._global 사용하여 최신 상태 참조",docLink:"troubleshooting-state.md#stale-closure",codeExample:`
// ❌ 문제: 클로저가 이전 상태 캡처
"body": { "email": "{{_global.email}}" }
// ✅ 해결: 최신 상태 참조
"body": { "email": "{{G7Core.state.get()._global.email}}" }
`},{id:"sequence-merge",name:"Sequence setState 병합 충돌",category:"state",symptoms:["sequence 내 setState 일부 누락","여러 setState 중 마지막만 적용","상태 업데이트 순서 문제"],detector:r=>r.actionHistory.filter(t=>t.type==="sequence").some(t=>t.children?.filter(s=>s.type==="setState").length>1),probability:.75,solution:"currentState 추적 패턴 사용 또는 단일 setState로 병합",docLink:"troubleshooting-state.md#사례3",codeExample:`
`},{id:"sequence-merge",name:"Sequence setState 병합 충돌",category:"state",symptoms:["sequence 내 setState 일부 누락","여러 setState 중 마지막만 적용","상태 업데이트 순서 문제"],detector:n=>n.actionHistory.filter(t=>t.type==="sequence").some(t=>t.children?.filter(s=>s.type==="setState").length>1),probability:.75,solution:"currentState 추적 패턴 사용 또는 단일 setState로 병합",docLink:"troubleshooting-state.md#사례3",codeExample:`
// ❌ 문제: sequence 내 여러 setState
"actions": [
{ "handler": "setState", "params": { "a": 1 } },
@@ -300,7 +257,7 @@ Error generating stack: `+u.message+`
"actions": [
{ "handler": "setState", "params": { "a": 1, "b": 2 } }
]
`},{id:"init-actions-timing",name:"init_actions 타이밍 이슈",category:"timing",symptoms:["init_actions 값이 렌더링에 반영 안됨","초기 상태가 undefined","첫 클릭 시 초기값 손실"],detector:r=>{if(r.stateHistory.length===0)return!1;const e=r.stateHistory[0];return e?.source==="init_actions"&&Object.keys(e.next||{}).length===0},probability:.7,solution:"init_actions 후 _global 상태 병합 확인",docLink:"troubleshooting-state.md#init_actions-관련-이슈"},{id:"datakey-global-init",name:'dataKey="_global.xxx" 초기화 누락',category:"form",symptoms:["Form dataKey가 전역 상태에 바인딩 안됨","Input 값이 _global에 저장 안됨","Form 제출 시 빈 값 전송"],detector:r=>r.form.filter(t=>t.dataKey?.startsWith("_global.")).length===0?!1:!r.stateHistory.some(t=>t.source==="init_actions"),probability:.95,solution:"init_actions에서 _global 상태 초기화 필수",docLink:"troubleshooting-state.md#datakey-자동-바인딩-이슈",codeExample:`
`},{id:"init-actions-timing",name:"init_actions 타이밍 이슈",category:"timing",symptoms:["init_actions 값이 렌더링에 반영 안됨","초기 상태가 undefined","첫 클릭 시 초기값 손실"],detector:n=>{if(n.stateHistory.length===0)return!1;const e=n.stateHistory[0];return e?.source==="init_actions"&&Object.keys(e.next||{}).length===0},probability:.7,solution:"init_actions 후 _global 상태 병합 확인",docLink:"troubleshooting-state.md#init_actions-관련-이슈"},{id:"datakey-global-init",name:'dataKey="_global.xxx" 초기화 누락',category:"form",symptoms:["Form dataKey가 전역 상태에 바인딩 안됨","Input 값이 _global에 저장 안됨","Form 제출 시 빈 값 전송"],detector:n=>n.form.filter(t=>t.dataKey?.startsWith("_global.")).length===0?!1:!n.stateHistory.some(t=>t.source==="init_actions"),probability:.95,solution:"init_actions에서 _global 상태 초기화 필수",docLink:"troubleshooting-state.md#datakey-자동-바인딩-이슈",codeExample:`
// init_actions에서 초기화 필요
"init_actions": [
{
@@ -311,13 +268,13 @@ Error generating stack: `+u.message+`
}
}
]
`},{id:"cache-iteration",name:"캐시 반복 렌더링 문제",category:"cache",symptoms:["모든 행이 같은 값","iteration에서 첫 항목만 표시","DataGrid 데이터 중복"],detector:r=>(r.cacheStats.hitRate??0)>.9&&r.conditional.iterations.length>0,probability:.9,solution:"skipCache: true 추가",docLink:"troubleshooting-cache.md#사례4",codeExample:`
`},{id:"cache-iteration",name:"캐시 반복 렌더링 문제",category:"cache",symptoms:["모든 행이 같은 값","iteration에서 첫 항목만 표시","DataGrid 데이터 중복"],detector:n=>(n.cacheStats.hitRate??0)>.9&&n.conditional.iterations.length>0,probability:.9,solution:"skipCache: true 추가",docLink:"troubleshooting-cache.md#사례4",codeExample:`
// ❌ 문제: 캐시된 값이 모든 행에 적용
"cellChildren": [{ "props": { "value": "{{item.name}}" } }]
// ✅ 해결: 렌더러에서 skipCache 옵션 사용
// 또는 ActionDispatcher에서 skipCache: true로 호출
`},{id:"cache-dynamic-query",name:"동적 쿼리 파라미터 캐싱",category:"cache",symptoms:["페이지네이션이 동작 안함","필터 변경해도 같은 결과","정렬이 적용 안됨"],detector:r=>{const e=r.network.requestHistory.slice(-5);if(e.length<2)return!1;const t=e.map(s=>s.url.split("?")[0]);return new Set(t).size<t.length},probability:.85,solution:"데이터소스 params에 skipCache: true 추가",docLink:"troubleshooting-cache.md#사례2"},{id:"orphaned-listener",name:"정리되지 않은 이벤트 리스너",category:"lifecycle",symptoms:["메모리 사용량 증가","이벤트가 여러 번 실행됨","페이지 이동 후에도 이벤트 발생"],detector:r=>r.lifecycle.orphanedListeners.length>0,probability:.8,solution:"useEffect cleanup 또는 removeEventListener 추가",docLink:"troubleshooting-components.md#lifecycle"},{id:"unmount-state-update",name:"언마운트 후 상태 업데이트",category:"lifecycle",symptoms:["Cannot update state on unmounted component","비동기 작업 완료 후 에러","모달 닫힘 후 에러"],detector:r=>r.actionHistory.some(e=>e.status==="error"&&e.error?.message?.includes("unmounted")),probability:.9,solution:"AbortController 또는 isMounted 플래그 사용",docLink:"troubleshooting-state.md#unmount-update"},{id:"excessive-rerenders",name:"과도한 리렌더링",category:"performance",symptoms:["UI가 느림","스크롤 버벅임","입력 지연"],detector:r=>{for(const e of r.performance.renderCounts.values())if(e>50)return!0;return!1},probability:.75,solution:"React.memo, useMemo, useCallback 사용",docLink:"troubleshooting-components.md#performance"},{id:"binding-eval-flood",name:"바인딩 평가 과다",category:"performance",symptoms:["페이지 로드 느림","CPU 사용량 높음"],detector:r=>r.performance.bindingEvalCount>1e3,probability:.85,solution:"불필요한 {{}} 바인딩 제거, 정적 값 사용",docLink:"troubleshooting-cache.md#binding-performance"},{id:"memory-leak",name:"잠재적 메모리 누수",category:"performance",symptoms:["시간이 지남에 따라 느려짐","브라우저 탭 메모리 증가","오래 사용 시 크래시"],detector:r=>r.performance.memoryWarnings.length>0,probability:.7,solution:"클린업 함수 확인, WeakMap 사용",docLink:"troubleshooting-state.md#memory-leak"},{id:"request-timeout",name:"API 요청 타임아웃",category:"network",symptoms:["데이터가 로딩 안됨","무한 로딩 스피너","타임아웃 에러"],detector:r=>r.network.requestHistory.some(e=>e.status==="timeout"||e.duration&&e.duration>3e4),probability:.9,solution:"서버 상태 확인, 타임아웃 설정 조정",docLink:"troubleshooting-backend.md#timeout"},{id:"duplicate-requests",name:"중복 API 요청",category:"network",symptoms:["같은 요청이 여러 번 실행","네트워크 탭에 동일 요청 반복","불필요한 서버 부하"],detector:r=>{const s=r.network.requestHistory.slice(-20).map(i=>`${i.method}:${i.url}`);return s.length!==new Set(s).size},probability:.85,solution:"debounce 추가, 데이터소스 의존성 확인",docLink:"troubleshooting-cache.md#duplicate-request"},{id:"datasource-not-loading",name:"데이터소스 미로딩",category:"network",symptoms:["데이터가 undefined","빈 테이블/목록","API 호출이 안됨"],detector:r=>r.network.pendingDataSources.length>0&&r.network.activeRequests.length===0,probability:.8,solution:"데이터소스 strategy 확인, 의존성 확인",docLink:"troubleshooting-backend.md#datasource"},{id:"permission-denied",name:"레이아웃 권한 거부 (403)",category:"network",symptoms:["403 Forbidden","권한이 없습니다","레이아웃 로드 실패","페이지 접근 불가","빈 화면"],detector:r=>r.network.requestHistory.some(e=>e.statusCode===403),probability:.9,solution:"사용자 권한 확인 또는 레이아웃 permissions 설정 확인",docLink:"frontend/layout-json.md#permissions",codeExample:`
`},{id:"cache-dynamic-query",name:"동적 쿼리 파라미터 캐싱",category:"cache",symptoms:["페이지네이션이 동작 안함","필터 변경해도 같은 결과","정렬이 적용 안됨"],detector:n=>{const e=n.network.requestHistory.slice(-5);if(e.length<2)return!1;const t=e.map(s=>s.url.split("?")[0]);return new Set(t).size<t.length},probability:.85,solution:"데이터소스 params에 skipCache: true 추가",docLink:"troubleshooting-cache.md#사례2"},{id:"orphaned-listener",name:"정리되지 않은 이벤트 리스너",category:"lifecycle",symptoms:["메모리 사용량 증가","이벤트가 여러 번 실행됨","페이지 이동 후에도 이벤트 발생"],detector:n=>n.lifecycle.orphanedListeners.length>0,probability:.8,solution:"useEffect cleanup 또는 removeEventListener 추가",docLink:"troubleshooting-components.md#lifecycle"},{id:"unmount-state-update",name:"언마운트 후 상태 업데이트",category:"lifecycle",symptoms:["Cannot update state on unmounted component","비동기 작업 완료 후 에러","모달 닫힘 후 에러"],detector:n=>n.actionHistory.some(e=>e.status==="error"&&e.error?.message?.includes("unmounted")),probability:.9,solution:"AbortController 또는 isMounted 플래그 사용",docLink:"troubleshooting-state.md#unmount-update"},{id:"excessive-rerenders",name:"과도한 리렌더링",category:"performance",symptoms:["UI가 느림","스크롤 버벅임","입력 지연"],detector:n=>{for(const e of n.performance.renderCounts.values())if(e>50)return!0;return!1},probability:.75,solution:"React.memo, useMemo, useCallback 사용",docLink:"troubleshooting-components.md#performance"},{id:"binding-eval-flood",name:"바인딩 평가 과다",category:"performance",symptoms:["페이지 로드 느림","CPU 사용량 높음"],detector:n=>n.performance.bindingEvalCount>1e3,probability:.85,solution:"불필요한 {{}} 바인딩 제거, 정적 값 사용",docLink:"troubleshooting-cache.md#binding-performance"},{id:"memory-leak",name:"잠재적 메모리 누수",category:"performance",symptoms:["시간이 지남에 따라 느려짐","브라우저 탭 메모리 증가","오래 사용 시 크래시"],detector:n=>n.performance.memoryWarnings.length>0,probability:.7,solution:"클린업 함수 확인, WeakMap 사용",docLink:"troubleshooting-state.md#memory-leak"},{id:"request-timeout",name:"API 요청 타임아웃",category:"network",symptoms:["데이터가 로딩 안됨","무한 로딩 스피너","타임아웃 에러"],detector:n=>n.network.requestHistory.some(e=>e.status==="timeout"||e.duration&&e.duration>3e4),probability:.9,solution:"서버 상태 확인, 타임아웃 설정 조정",docLink:"troubleshooting-backend.md#timeout"},{id:"duplicate-requests",name:"중복 API 요청",category:"network",symptoms:["같은 요청이 여러 번 실행","네트워크 탭에 동일 요청 반복","불필요한 서버 부하"],detector:n=>{const s=n.network.requestHistory.slice(-20).map(r=>`${r.method}:${r.url}`);return s.length!==new Set(s).size},probability:.85,solution:"debounce 추가, 데이터소스 의존성 확인",docLink:"troubleshooting-cache.md#duplicate-request"},{id:"datasource-not-loading",name:"데이터소스 미로딩",category:"network",symptoms:["데이터가 undefined","빈 테이블/목록","API 호출이 안됨"],detector:n=>n.network.pendingDataSources.length>0&&n.network.activeRequests.length===0,probability:.8,solution:"데이터소스 strategy 확인, 의존성 확인",docLink:"troubleshooting-backend.md#datasource"},{id:"permission-denied",name:"레이아웃 권한 거부 (403)",category:"network",symptoms:["403 Forbidden","권한이 없습니다","레이아웃 로드 실패","페이지 접근 불가","빈 화면"],detector:n=>n.network.requestHistory.some(e=>e.statusCode===403),probability:.9,solution:"사용자 권한 확인 또는 레이아웃 permissions 설정 확인",docLink:"frontend/layout-json.md#permissions",codeExample:`
// 레이아웃 JSON의 permissions 필드 확인
{
"permissions": ["core.products.read"] // 필요 권한
@@ -327,7 +284,7 @@ Error generating stack: `+u.message+`
{
"permissions": [] // 빈 배열 = 공개 레이아웃
}
`},{id:"auth-required",name:"인증 필요 (401)",category:"network",symptoms:["401 Unauthorized","로그인 필요","토큰 만료","인증되지 않음","Unauthenticated"],detector:r=>r.network.requestHistory.some(e=>e.statusCode===401),probability:.95,solution:"로그인 상태 확인 또는 토큰 갱신 필요",docLink:"frontend/auth-system.md"},{id:"infinite-scroll-state-reset",name:"무한 스크롤 상태 미초기화",category:"state",symptoms:["삭제 후 스크롤 안됨","무한 스크롤이 멈춤","hasMore가 false로 유지","더 이상 데이터 로드 안됨"],detector:r=>{const e=r.currentState;return r.actionHistory.some(s=>s.type==="refetchDataSource")&&e?._global?.infiniteScroll?.hasMore===!1},probability:.85,solution:"refetchDataSource 전에 infiniteScroll 상태 초기화 필요",docLink:"frontend/actions-handlers.md#appendDataSource",codeExample:`
`},{id:"auth-required",name:"인증 필요 (401)",category:"network",symptoms:["401 Unauthorized","로그인 필요","토큰 만료","인증되지 않음","Unauthenticated"],detector:n=>n.network.requestHistory.some(e=>e.statusCode===401),probability:.95,solution:"로그인 상태 확인 또는 토큰 갱신 필요",docLink:"frontend/auth-system.md"},{id:"infinite-scroll-state-reset",name:"무한 스크롤 상태 미초기화",category:"state",symptoms:["삭제 후 스크롤 안됨","무한 스크롤이 멈춤","hasMore가 false로 유지","더 이상 데이터 로드 안됨"],detector:n=>{const e=n.currentState;return n.actionHistory.some(s=>s.type==="refetchDataSource")&&e?._global?.infiniteScroll?.hasMore===!1},probability:.85,solution:"refetchDataSource 전에 infiniteScroll 상태 초기화 필요",docLink:"frontend/actions-handlers.md#appendDataSource",codeExample:`
// 삭제 성공 시 상태 초기화 후 refetch
"onSuccess": [
{
@@ -343,7 +300,7 @@ Error generating stack: `+u.message+`
},
{ "handler": "refetchDataSource", "params": { "id": "list" } }
]
`},{id:"scroll-event-not-configured",name:"스크롤 이벤트 미설정",category:"lifecycle",symptoms:["스크롤해도 데이터 로드 안됨","무한 스크롤 작동 안함","스크롤 이벤트 안잡힘"],detector:r=>{const e=r.actionHistory.some(s=>s.type==="scroll"),t=r.actionHistory.some(s=>s.type==="appendDataSource");return!e&&!t&&r.actionHistory.length>5},probability:.7,solution:"scroll 이벤트 핸들러 설정 및 컨테이너 overflow 속성 확인",docLink:"frontend/actions.md#scroll-event",codeExample:`
`},{id:"scroll-event-not-configured",name:"스크롤 이벤트 미설정",category:"lifecycle",symptoms:["스크롤해도 데이터 로드 안됨","무한 스크롤 작동 안함","스크롤 이벤트 안잡힘"],detector:n=>{const e=n.actionHistory.some(s=>s.type==="scroll"),t=n.actionHistory.some(s=>s.type==="appendDataSource");return!e&&!t&&n.actionHistory.length>5},probability:.7,solution:"scroll 이벤트 핸들러 설정 및 컨테이너 overflow 속성 확인",docLink:"frontend/actions.md#scroll-event",codeExample:`
// 무한 스크롤 컨테이너 설정 예시
{
"type": "Div",
@@ -363,7 +320,7 @@ Error generating stack: `+u.message+`
]
}
}
`},{id:"append-datasource-wrong-path",name:"appendDataSource 경로 오류",category:"state",symptoms:["무한 스크롤 시 데이터 덮어씀","기존 데이터가 사라짐","데이터가 병합 안됨"],detector:r=>{const e=r.actionHistory.filter(t=>t.type==="appendDataSource");return e.length>=2&&e.some(t=>t.status==="error")},probability:.75,solution:"dataPath와 sourcePath 설정 확인, 데이터소스 dataPath가 병합 대상인지 확인",docLink:"frontend/actions-handlers.md#appendDataSource"},{id:"websocket-disconnected",name:"WebSocket 연결 끊김",category:"websocket",symptoms:["실시간 업데이트 안됨","알림이 오지 않음"],detector:r=>r.websocket.connectionState==="disconnected",probability:.9,solution:"네트워크 상태 확인, 재연결 로직 확인",docLink:"troubleshooting-backend.md#websocket"},{id:"if-condition-always-false",name:"if 조건 항상 false",category:"conditional",symptoms:["컴포넌트가 표시 안됨","조건부 영역이 비어있음"],detector:r=>r.conditional.ifConditions.some(e=>e.evaluatedValue===!1&&e.evaluationCount>5),probability:.85,solution:"if 조건식 확인, 상태값 확인",docLink:"troubleshooting-state.md#if-condition"},{id:"iteration-empty",name:"iteration 소스 비어있음",category:"conditional",symptoms:["반복 영역이 비어있음","목록이 표시 안됨"],detector:r=>r.conditional.iterations.some(e=>e.sourceLength===0),probability:.8,solution:"iteration source 표현식 확인, 데이터 로딩 확인",docLink:"troubleshooting-guide.md#iteration"},{id:"iteration-item-var",name:"iteration 변수명 오류",category:"conditional",symptoms:["반복 항목 내 바인딩 빈값","올바른 개수는 표시되나 내용 없음"],detector:r=>r.conditional.iterations.some(e=>e.itemVar==="item"||e.indexVar==="index"),probability:.95,solution:"item_var, index_var 사용 (item, index 아님)",docLink:"troubleshooting-guide.md#iteration-바인딩-문제",codeExample:`
`},{id:"append-datasource-wrong-path",name:"appendDataSource 경로 오류",category:"state",symptoms:["무한 스크롤 시 데이터 덮어씀","기존 데이터가 사라짐","데이터가 병합 안됨"],detector:n=>{const e=n.actionHistory.filter(t=>t.type==="appendDataSource");return e.length>=2&&e.some(t=>t.status==="error")},probability:.75,solution:"dataPath와 sourcePath 설정 확인, 데이터소스 dataPath가 병합 대상인지 확인",docLink:"frontend/actions-handlers.md#appendDataSource"},{id:"websocket-disconnected",name:"WebSocket 연결 끊김",category:"websocket",symptoms:["실시간 업데이트 안됨","알림이 오지 않음"],detector:n=>n.websocket.connectionState==="disconnected",probability:.9,solution:"네트워크 상태 확인, 재연결 로직 확인",docLink:"troubleshooting-backend.md#websocket"},{id:"if-condition-always-false",name:"if 조건 항상 false",category:"conditional",symptoms:["컴포넌트가 표시 안됨","조건부 영역이 비어있음"],detector:n=>n.conditional.ifConditions.some(e=>e.evaluatedValue===!1&&e.evaluationCount>5),probability:.85,solution:"if 조건식 확인, 상태값 확인",docLink:"troubleshooting-state.md#if-condition"},{id:"iteration-empty",name:"iteration 소스 비어있음",category:"conditional",symptoms:["반복 영역이 비어있음","목록이 표시 안됨"],detector:n=>n.conditional.iterations.some(e=>e.sourceLength===0),probability:.8,solution:"iteration source 표현식 확인, 데이터 로딩 확인",docLink:"troubleshooting-guide.md#iteration"},{id:"iteration-item-var",name:"iteration 변수명 오류",category:"conditional",symptoms:["반복 항목 내 바인딩 빈값","올바른 개수는 표시되나 내용 없음"],detector:n=>n.conditional.iterations.some(e=>e.itemVar==="item"||e.indexVar==="index"),probability:.95,solution:"item_var, index_var 사용 (item, index 아님)",docLink:"troubleshooting-guide.md#iteration-바인딩-문제",codeExample:`
// ❌ 잘못된 속성명
"iteration": {
"source": "{{data}}",
@@ -377,7 +334,7 @@ Error generating stack: `+u.message+`
"item_var": "file",
"index_var": "fileIdx"
}
`},{id:"form-no-datakey",name:"Form dataKey 미설정",category:"form",symptoms:["Input 값이 저장 안됨","Form 제출 시 빈 값"],detector:r=>r.form.some(e=>!e.dataKey),probability:.9,solution:"Form에 dataKey prop 추가",docLink:"troubleshooting-components.md#form-datakey"},{id:"input-no-name",name:"Input name 미설정",category:"form",symptoms:["자동 바인딩 안됨","Input 값 변경이 상태에 반영 안됨"],detector:r=>r.form.some(e=>e.inputs.some(t=>!t.name)),probability:.95,solution:"Input에 name prop 추가",docLink:"troubleshooting-components.md#input-name"},{id:"i18n-key-missing",name:"번역 키 누락",category:"i18n",symptoms:["$t:key가 그대로 표시됨","번역되지 않은 텍스트"],detector:r=>typeof document<"u"?document.body.innerHTML.includes("$t:"):!1,probability:.95,solution:"번역 파일에 키 추가",docLink:"troubleshooting-components.md#i18n"}];class sx{constructor(){H(this,"devTools");this.devTools=Ns.getInstance()}analyze(e){const t=this.buildContext(),s=[];for(const i of Uc){const o=e.some(g=>i.symptoms.some(h=>h.toLowerCase().includes(g.toLowerCase())||g.toLowerCase().includes(h.toLowerCase())));let d=!1;try{d=i.detector(t)}catch{}(o||d)&&s.push({rule:i,confidence:this.calculateConfidence(i,e,o,d),evidence:this.collectEvidence(i,t)})}return s.sort((i,o)=>o.confidence-i.confidence)}suggestFix(e){return{title:e.rule.name,description:e.rule.solution,codeExample:e.rule.codeExample,docLink:e.rule.docLink}}getCommonIssues(){const e=this.buildContext(),t=[];for(const s of Uc)try{s.detector(e)&&t.push({rule:s,count:1})}catch{}return t.sort((s,i)=>i.count-s.count).map(s=>({id:s.rule.id,name:s.rule.name,description:s.rule.solution,frequency:s.count}))}getRulesByCategory(e){return Uc.filter(t=>t.category===e)}getAllRules(){return[...Uc]}buildContext(){return{stateHistory:this.devTools.getStateHistory(),actionHistory:this.devTools.getActionHistory(),cacheStats:this.devTools.getCacheStats(),currentState:this.devTools.getState(),lifecycle:this.devTools.getLifecycleInfo(),performance:this.devTools.getPerformanceInfo(),network:this.devTools.getNetworkInfo(),conditional:this.devTools.getConditionalInfo(),form:this.devTools.getFormInfo(),websocket:this.devTools.getWebSocketInfo(),stateAtTime:e=>this.devTools.getStateAtTime(e),layoutHas:(e,t)=>this.checkLayoutHas(e,t)}}calculateConfidence(e,t,s,i){let o=e.probability;if(s){const d=t.filter(g=>e.symptoms.some(h=>h.toLowerCase().includes(g.toLowerCase())||g.toLowerCase().includes(h.toLowerCase()))).length;o+=d*.05}return i&&(o+=.1),Math.min(o,.99)}collectEvidence(e,t){const s=[];switch(e.category){case"state":t.stateHistory.length>0&&s.push(`상태 변경 이력: ${t.stateHistory.length}개`);break;case"cache":s.push(`캐시 히트율: ${((t.cacheStats.hitRate??0)*100).toFixed(1)}%`);break;case"lifecycle":t.lifecycle.orphanedListeners.length>0&&s.push(`정리되지 않은 리스너: ${t.lifecycle.orphanedListeners.length}개`);break;case"performance":s.push(`바인딩 평가 횟수: ${t.performance.bindingEvalCount}`);break;case"network":s.push(`진행 중인 요청: ${t.network.activeRequests.length}개`);break;case"form":s.push(`추적 중인 Form: ${t.form.length}개`);break}return s}checkLayoutHas(e,t){try{const i=window.G7Core?.getCurrentLayout?.();if(!i)return!1;const o=JSON.stringify(i);return o.includes(`"${e}":"${t}`)||o.includes(`"${e}": "${t}`)}catch{return!1}}}const lk=Object.freeze(Object.defineProperty({__proto__:null,DiagnosticEngine:sx},Symbol.toStringTag,{value:"Module"})),ck={dumpEndpoint:"/_boost/g7-debug/dump-state",logEndpoint:"/_boost/g7-debug/log",timeout:1e4,autoCapture:!1,autoCaptureInterval:3e4};class dk{constructor(e){H(this,"config");H(this,"devTools");H(this,"connected",!1);H(this,"autoCaptureTimer",null);H(this,"CHUNK_SIZE",2*1024*1024);H(this,"BULK_THRESHOLD",4*1024*1024);this.config={...ck,...e},this.devTools=Ns.getInstance(),this.config.autoCapture&&this.startAutoCapture()}async dumpState(e=!1){const t=`${Date.now()}_${Math.random().toString(36).substring(2,9)}`,s=Date.now(),i=this.devTools.getPerformanceInfo(),o={renderCounts:Object.fromEntries(i.renderCounts),bindingEvalCount:i.bindingEvalCount,memoryWarnings:i.memoryWarnings},d={state:()=>this.devTools.getState(),actions:()=>this.devTools.getActionHistory(),cache:()=>this.devTools.getCacheStats(),lifecycle:()=>this.devTools.getLifecycleInfo(),network:()=>this.devTools.getNetworkInfo(),expressions:()=>this.devTools.getExpressions(),forms:()=>this.devTools.getForms(),performance:()=>o,conditionals:()=>this.devTools.getConditionalInfo(),dataSources:()=>this.devTools.getDataSources(),handlers:()=>this.devTools.getHandlers(),componentEvents:()=>this.devTools.getComponentEventInfo(),stateRendering:()=>this.devTools.getStateRenderingInfo(),stateHierarchy:()=>this.devTools.getStateHierarchyInfo(),contextFlow:()=>this.devTools.getContextFlowInfo(),styleValidation:()=>this.devTools.getStyleValidationInfo(),authDebug:()=>this.devTools.getAuth Line truncated
`},{id:"form-no-datakey",name:"Form dataKey 미설정",category:"form",symptoms:["Input 값이 저장 안됨","Form 제출 시 빈 값"],detector:n=>n.form.some(e=>!e.dataKey),probability:.9,solution:"Form에 dataKey prop 추가",docLink:"troubleshooting-components.md#form-datakey"},{id:"input-no-name",name:"Input name 미설정",category:"form",symptoms:["자동 바인딩 안됨","Input 값 변경이 상태에 반영 안됨"],detector:n=>n.form.some(e=>e.inputs.some(t=>!t.name)),probability:.95,solution:"Input에 name prop 추가",docLink:"troubleshooting-components.md#input-name"},{id:"i18n-key-missing",name:"번역 키 누락",category:"i18n",symptoms:["$t:key가 그대로 표시됨","번역되지 않은 텍스트"],detector:n=>typeof document<"u"?document.body.innerHTML.includes("$t:"):!1,probability:.95,solution:"번역 파일에 키 추가",docLink:"troubleshooting-components.md#i18n"}];class Q0{constructor(){ne(this,"devTools");this.devTools=jr.getInstance()}analyze(e){const t=this.buildContext(),s=[];for(const r of Yu){const o=e.some(d=>r.symptoms.some(u=>u.toLowerCase().includes(d.toLowerCase())||d.toLowerCase().includes(u.toLowerCase())));let l=!1;try{l=r.detector(t)}catch{}(o||l)&&s.push({rule:r,confidence:this.calculateConfidence(r,e,o,l),evidence:this.collectEvidence(r,t)})}return s.sort((r,o)=>o.confidence-r.confidence)}suggestFix(e){return{title:e.rule.name,description:e.rule.solution,codeExample:e.rule.codeExample,docLink:e.rule.docLink}}getCommonIssues(){const e=this.buildContext(),t=[];for(const s of Yu)try{s.detector(e)&&t.push({rule:s,count:1})}catch{}return t.sort((s,r)=>r.count-s.count).map(s=>({id:s.rule.id,name:s.rule.name,description:s.rule.solution,frequency:s.count}))}getRulesByCategory(e){return Yu.filter(t=>t.category===e)}getAllRules(){return[...Yu]}buildContext(){return{stateHistory:this.devTools.getStateHistory(),actionHistory:this.devTools.getActionHistory(),cacheStats:this.devTools.getCacheStats(),currentState:this.devTools.getState(),lifecycle:this.devTools.getLifecycleInfo(),performance:this.devTools.getPerformanceInfo(),network:this.devTools.getNetworkInfo(),conditional:this.devTools.getConditionalInfo(),form:this.devTools.getFormInfo(),websocket:this.devTools.getWebSocketInfo(),stateAtTime:e=>this.devTools.getStateAtTime(e),layoutHas:(e,t)=>this.checkLayoutHas(e,t)}}calculateConfidence(e,t,s,r){let o=e.probability;if(s){const l=t.filter(d=>e.symptoms.some(u=>u.toLowerCase().includes(d.toLowerCase())||d.toLowerCase().includes(u.toLowerCase()))).length;o+=l*.05}return r&&(o+=.1),Math.min(o,.99)}collectEvidence(e,t){const s=[];switch(e.category){case"state":t.stateHistory.length>0&&s.push(`상태 변경 이력: ${t.stateHistory.length}개`);break;case"cache":s.push(`캐시 히트율: ${((t.cacheStats.hitRate??0)*100).toFixed(1)}%`);break;case"lifecycle":t.lifecycle.orphanedListeners.length>0&&s.push(`정리되지 않은 리스너: ${t.lifecycle.orphanedListeners.length}개`);break;case"performance":s.push(`바인딩 평가 횟수: ${t.performance.bindingEvalCount}`);break;case"network":s.push(`진행 중인 요청: ${t.network.activeRequests.length}개`);break;case"form":s.push(`추적 중인 Form: ${t.form.length}개`);break}return s}checkLayoutHas(e,t){try{const r=window.G7Core?.getCurrentLayout?.();if(!r)return!1;const o=JSON.stringify(r);return o.includes(`"${e}":"${t}`)||o.includes(`"${e}": "${t}`)}catch{return!1}}}const cI=Object.freeze(Object.defineProperty({__proto__:null,DiagnosticEngine:Q0},Symbol.toStringTag,{value:"Module"})),dI={dumpEndpoint:"/_boost/g7-debug/dump-state",logEndpoint:"/_boost/g7-debug/log",timeout:1e4,autoCapture:!1,autoCaptureInterval:3e4};class uI{constructor(e){ne(this,"config");ne(this,"devTools");ne(this,"connected",!1);ne(this,"autoCaptureTimer",null);ne(this,"CHUNK_SIZE",2*1024*1024);ne(this,"BULK_THRESHOLD",4*1024*1024);this.config={...dI,...e},this.devTools=jr.getInstance(),this.config.autoCapture&&this.startAutoCapture()}async dumpState(e=!1){const t=`${Date.now()}_${Math.random().toString(36).substring(2,9)}`,s=Date.now(),r=this.devTools.getPerformanceInfo(),o={renderCounts:Object.fromEntries(r.renderCounts),bindingEvalCount:r.bindingEvalCount,memoryWarnings:r.memoryWarnings},l={state:()=>this.devTools.getState(),actions:()=>this.devTools.getActionHistory(),cache:()=>this.devTools.getCacheStats(),lifecycle:()=>this.devTools.getLifecycleInfo(),network:()=>this.devTools.getNetworkInfo(),expressions:()=>this.devTools.getExpressions(),forms:()=>this.devTools.getForms(),performance:()=>o,conditionals:()=>this.devTools.getConditionalInfo(),dataSources:()=>this.devTools.getDataSources(),handlers:()=>this.devTools.getHandlers(),componentEvents:()=>this.devTools.getComponentEventInfo(),stateRendering:()=>this.devTools.getStateRenderingInfo(),stateHierarchy:()=>this.devTools.getStateHierarchyInfo(),contextFlow:()=>this.devTools.getContextFlowInfo(),styleValidation:()=>this.devTools.getStyleValidationInfo(),authDebug:()=>this.devTools. Line truncated
#g7-devtools-root {
/* 기본 폰트 설정 */
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
@@ -1841,31 +1798,14 @@ details[open] > .g7dt-summary::before {
.g7dt-cursor-pointer {
cursor: pointer;
}
`,gk=()=>{const r="g7-devtools-styles";if(document.getElementById(r))return;const e=document.createElement("style");e.id=r,e.textContent=uk,document.head.appendChild(e)},rx={state:"상태",actions:"액션",cache:"캐시",diagnose:"진단",performance:"성능",lifecycle:"라이프사이클",network:"네트워크",form:"Form",conditional:"조건부",expression:"표현식",handlers:"핸들러",events:"이벤트",datasources:"데이터소스",renders:"렌더링",styles:"스타일",auth:"인증",logs:"로그",layout:"레이아웃",changedetection:"변경감지",staleclosure:"Stale Closure",nestedcontext:"Context",modalscope:"모달스코프",namedactions:"Named Actions"},hk=700,fk=500,ix=400,ox=300,lx="g7-devtools-panel",Fg=r=>r===null||r===void 0?"g7dt-text-gray":typeof r=="string"?"g7dt-text-yellow":typeof r=="number"?"g7dt-text-cyan":typeof r=="boolean"?"g7dt-text-pink":Array.isArray(r)?"g7dt-text-orange":typeof r=="object"?"g7dt-text-blue":"g7dt-text-white",pk=r=>r===null?"null":r===void 0?"undefined":Array.isArray(r)?`Array(${r.length})`:typeof r=="object"?`Object(${Object.keys(r).length})`:typeof r,mk=r=>r===null?"null":r===void 0?"undefined":typeof r=="string"?r.length>50?`"${r.substring(0,50)}..."`:`"${r}"`:typeof r=="boolean"?r?"true":"false":typeof r=="number"?String(r):"",cx=()=>{try{const r=localStorage.getItem(lx);if(r)return JSON.parse(r)}catch(r){console.warn("[G7DevTools] 설정 로드 실패:",r)}return{}},dx=r=>{try{const t={...cx(),...r};localStorage.setItem(lx,JSON.stringify(t))}catch(e){console.warn("[G7DevTools] 설정 저장 실패:",e)}},fi=({keyName:r,value:e,path:t,expandedPaths:s,onToggle:i,searchTerm:o,depth:d=0})=>{const g=e!==null&&typeof e=="object",h=s.has(t),f=Array.isArray(e),p=o&&(r.toLowerCase().includes(o.toLowerCase())||typeof e=="string"&&e.toLowerCase().includes(o.toLowerCase())||typeof e=="number"&&String(e).includes(o)),y=w=>{w.stopPropagation(),g&&i(t)},x=g?Object.entries(e):[];return l.jsxs("div",{style:{marginLeft:d>0?"16px":"0"},children:[l.jsxs("div",{className:`g7dt-tree-node g7dt-flex g7dt-items-center g7dt-gap-1 ${p?"g7dt-ring-highlight":""}`,onClick:y,children:[g?l.jsx("span",{className:"g7dt-text-gray g7dt-w-4 g7dt-text-xs g7dt-select-none",style:{textAlign:"center"},children:h?"▼":"▶"}):l.jsx("span",{className:"g7dt-w-4"}),l.jsx("span",{className:"g7dt-text-purple g7dt-text-xs",children:r}),l.jsx("span",{className:"g7dt-text-gray-dark g7dt-text-xs",children:":"}),g?l.jsxs("span",{className:`g7dt-text-xs ${Fg(e)}`,children:[f?"[":"{",!h&&l.jsx("span",{className:"g7dt-text-gray",style:{margin:"0 4px"},children:pk(e)}),!h&&(f?"]":"}")]}):l.jsx("span",{className:`g7dt-text-xs ${Fg(e)}`,children:mk(e)}),!g&&l.jsxs("span",{className:"g7dt-text-gray-dark g7dt-text-xs g7dt-ml-1",children:["(",typeof e,")"]})]}),g&&h&&l.jsxs("div",{className:"g7dt-border-l",style:{marginLeft:"8px"},children:[x.map(([w,v])=>l.jsx(fi,{keyName:f?`[${w}]`:w,value:v,path:`${t}.${w}`,expandedPaths:s,onToggle:i,searchTerm:o,depth:d+1},`${t}.${w}`)),l.jsx("div",{className:"g7dt-ml-4 g7dt-text-xs",children:l.jsx("span",{className:Fg(e),children:f?"]":"}"})})]})]})},yk=({state:r,devTools:e})=>{const[t,s]=j.useState(new Set(["_global","_local","_computed","_isolated","$parent"])),[i,o]=j.useState(""),[d,g]=j.useState(!1),[h,f]=j.useState(!1),[p,y]=j.useState(null),x=j.useCallback(()=>{e&&y(e.getComputedDependencyTrackingInfo())},[e]);j.useEffect(()=>{if(h&&e){x();const M=setInterval(x,2e3);return()=>clearInterval(M)}},[h,e,x]);const w=M=>{switch(M){case"state-change":return"📊";case"prop-change":return"📥";case"dependency-change":return"🔗";case"manual":return"👆";case"initial":return"🚀";default:return"❓"}},v=j.useCallback(M=>{s(z=>{const K=new Set(z);return K.has(M)?K.delete(M):K.add(M),K})},[]),S=j.useCallback((M,z)=>{const K=[z];if(M!==null&&typeof M=="object")for(const[ye,we]of Object.entries(M))K.push(...S(we,`${z}.${ye}`));return K},[]),k=j.useCallback(()=>{if(d)s(new Set(["_global","_local","_computed","_isolated","$parent"]));else{const M=new Set;S(r._global,"_global").forEach(z=>M.add(z)),S(r._local,"_local").forEach(z=>M.add(z)),S(r._computed,"_computed").forEach(z=>M.add(z)),S(r._isolated,"_isolated").forEach(z=>M.add(z)),r.$parent&&S(r.$parent,"$parent").forEach(z=>M.add(z)),s(M)}g(!d)},[d,r,S]),A=Object.keys(r._global||{}).length,O=Object.keys(r._local||{}).length,N=Object.keys(r._computed||{}).length,D=Object.keys(r._isolated||{}).length,$=Object.keys(r.$parent||{}).length;return l.jsxs("div",{className:"g7dt-space-y-4",children:[l.jsxs("div",{className:"g7dt-flex g7dt-gap-2 g7dt-items-center g7dt-flex-shrink-0",children:[l.jsx("input",{type:"text",placeholder:"키 또는 값 검색...",value:i,onChange:M=>o(M.target.value),className:"g7dt-input g7dt-flex-1"}),l.jsx("button",{onClick:k,className:"g7dt-btn g7dt-bg-gray-700",children:d?"모두 접기":"모두 펼치기"})]}),l.jsxs("div",{className:"g7dt-flex g7dt-gap-3 g7dt-text-xs g7dt-text-gray g7dt-flex-wrap g7dt Line truncated
... (truncated)`:h}catch{return"(직렬화 불가)"}};return l.jsxs("div",{className:"g7dt-space-y-4",children:[e.activeRequests.length>0&&l.jsxs("div",{children:[l.jsxs("h3",{className:"g7dt-text-sm g7dt-font-bold g7dt-text-yellow g7dt-mb-2",children:["진행 중 (",e.activeRequests.length,")"]}),l.jsx("div",{className:"g7dt-space-y-1",children:e.activeRequests.map(d=>l.jsxs("details",{className:"g7dt-details",children:[l.jsxs("summary",{className:"g7dt-summary g7dt-pending-request",children:[l.jsx("span",{className:"g7dt-font-bold",children:d.method}),l.jsx("span",{className:"g7dt-ml-2 g7dt-text-lightgray g7dt-truncate",children:d.fullUrl||d.url})]}),l.jsxs("div",{className:"g7dt-card g7dt-mt-1 g7dt-text-xs",children:[s(d)&&l.jsxs("div",{className:"g7dt-mb-2",children:[l.jsx("div",{className:"g7dt-text-blue g7dt-font-bold g7dt-mb-1",children:"쿼리 파라미터"}),l.jsx("div",{className:"g7dt-pl-2 g7dt-border-l-2 g7dt-border-blue",children:i(d.queryParams)})]}),d.requestBody&&l.jsxs("div",{children:[l.jsx("div",{className:"g7dt-text-orange g7dt-font-bold g7dt-mb-1",children:"요청 본문"}),l.jsx("pre",{className:"g7dt-pre g7dt-text-xs",children:o(d.requestBody,2e3)})]})]})]},d.id))})]}),l.jsxs("div",{children:[l.jsx("h3",{className:"g7dt-text-sm g7dt-font-bold g7dt-mb-2",children:"요청 이력"}),l.jsx("div",{className:"g7dt-space-y-1 g7dt-scroll-list-lg",children:e.requestHistory.length===0?l.jsx("div",{className:"g7dt-empty-message",children:"요청 이력 없음"}):e.requestHistory.slice(-20).reverse().map(d=>l.jsxs("details",{className:"g7dt-details",children:[l.jsxs("summary",{className:"g7dt-summary g7dt-card g7dt-text-xs",children:[l.jsxs("div",{className:"g7dt-flex g7dt-justify-between g7dt-items-center g7dt-w-full",children:[l.jsxs("div",{children:[l.jsx("span",{className:"g7dt-font-bold",children:d.method}),l.jsx("span",{className:`g7dt-ml-2 ${t(d.status)}`,children:d.statusCode||d.status})]}),l.jsxs("span",{className:"g7dt-text-gray",children:[d.duration,"ms"]})]}),l.jsx("div",{className:"g7dt-text-gray g7dt-truncate g7dt-mt-1",children:d.fullUrl||d.url})]}),l.jsxs("div",{className:"g7dt-card g7dt-mt-1 g7dt-text-xs g7dt-ml-2 g7dt-border-l-2 g7dt-border-gray",children:[l.jsx("div",{className:"g7dt-mb-2",children:l.jsxs("div",{className:"g7dt-text-xs g7dt-space-y-1",children:[l.jsxs("div",{children:[l.jsx("span",{className:"g7dt-text-gray",children:"URL:"})," ",l.jsx("span",{className:"g7dt-text-lightgray",children:d.fullUrl||d.url})]}),l.jsxs("div",{children:[l.jsx("span",{className:"g7dt-text-gray",children:"상태:"})," ",l.jsx("span",{className:t(d.status),children:d.statusCode||d.status})]}),l.jsxs("div",{children:[l.jsx("span",{className:"g7dt-text-gray",children:"소요시간:"})," ",l.jsxs("span",{className:"g7dt-text-lightgray",children:[d.duration,"ms"]})]}),d.dataSourceId&&l.jsxs("div",{children:[l.jsx("span",{className:"g7dt-text-gray",children:"데이터소스:"})," ",l.jsx("span",{className:"g7dt-text-blue",children:d.dataSourceId})]}),d.error&&l.jsxs("div",{children:[l.jsx("span",{className:"g7dt-text-gray",children:"에러:"})," ",l.jsx("span",{className:"g7dt-text-red",children:d.error})]})]})}),s(d)&&l.jsxs("div",{className:"g7dt-mb-2",children:[l.jsx("div",{className:"g7dt-text-blue g7dt-font-bold g7dt-mb-1",children:"쿼리 파라미터"}),l.jsx("div",{className:"g7dt-pl-2 g7dt-border-l-2 g7dt-border-blue",children:i(d.queryParams)})]}),d.requestBody&&l.jsxs("div",{className:"g7dt-mb-2",children:[l.jsx("div",{className:"g7dt-text-orange g7dt-font-bold g7dt-mb-1",children:"요청 본문"}),l.jsx("pre",{className:"g7dt-pre g7dt-text-xs g7dt-max-h-40 g7dt-overflow-auto",children:o(d.requestBody,2e3)})]}),d.response!==void 0&&l.jsxs("div",{children:[l.jsx("div",{className:"g7dt-text-green g7dt-font-bold g7dt-mb-1",children:"응답 내용"}),l.jsx("pre",{className:"g7dt-pre g7dt-text-xs g7dt-max-h-60 g7dt-overflow-auto",children:o(d.response,5e3)})]})]})]},d.id))})]}),e.pendingDataSources.length>0&&l.jsxs("div",{children:[l.jsxs("h3",{className:"g7dt-text-sm g7dt-font-bold g7dt-text-blue g7dt-mb-2",children:["대기 중인 데이터소스 (",e.pendingDataSources.length,")"]}),l.jsx("div",{className:"g7dt-flex g7dt-flex-wrap g7dt-gap-2",children:e.pendingDataSources.map(d=>l.jsx("span",{className:"g7dt-tag-blue",children:d},d))})]})]})},jk=({devTools:r})=>{const e=r.getFormInfo(),[t,s]=j.useState(!1),[i,o]=j.useState(null),d=j.useCallback(()=>{o(r.getFormBindingValidationTrackingInfo())},[r]);j.useEffect(()=>{if(t){d();const f=setInterval(d,2e3);return()=>clearInterval(f)}},[t,d]);const g=f=>{switch(f){case"missing-datakey":return"🔑";case"missing-input-name":return"📝";case"context-not-propagated":return"🔗";case"sortable-context-break":return"📊";case"modal-context-isolation":return"🪟";case"duplicate-input-name":return"👯";case"value-type-mismatch":return"⚠️";case"binding-path-invalid":return"❌";default:return"❓"}},h=f=>{switch(f){case"error":return"g7dt- Line truncated
`),i=s.findIndex(d=>d.includes("api.setState"));if(i<0)return;const o=((e=s[i+1])==null?void 0:e.trim())||"";return(t=/.+ (.+) .+/.exec(o))==null?void 0:t[1]},WN=(r,e={})=>(t,s,i)=>{const{enabled:o,anonymousActionType:d,store:g,...h}=e;let f;try{f=(o??(zx?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!f)return r(t,s,i);const{connection:p,...y}=FN(g,f,h);let x=!0;i.setState=((S,k,A)=>{const O=t(S,k);if(!x)return O;const N=A===void 0?{type:d||KN(new Error().stack)||"anonymous"}:typeof A=="string"?{type:A}:A;return g===void 0?(p?.send(N,s()),O):(p?.send({...N,type:`${g}/${N.type}`},{...id(h.name),[g]:i.getState()}),O)}),i.devtools={cleanup:()=>{p&&typeof p.unsubscribe=="function"&&p.unsubscribe(),VN(h.name,g)}};const w=(...S)=>{const k=x;x=!1,t(...S),x=k},v=r(i.setState,s,i);if(y.type==="untracked"?p?.init(v):(y.stores[y.store]=i,p?.init(Object.fromEntries(Object.entries(y.stores).map(([S,k])=>[S,S===y.store?v:k.getState()])))),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let S=!1;const k=i.dispatch;i.dispatch=(...A)=>{(zx?"production":void 0)!=="production"&&A[0].type==="__setState"&&!S&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),S=!0),k(...A)}}return p.subscribe(S=>{var k;switch(S.type){case"ACTION":if(typeof S.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return ih(S.payload,A=>{if(A.type==="__setState"){if(g===void 0){w(A.state);return}Object.keys(A.state).length!==1&&console.error(`
[zustand devtools middleware] Unsupported __setState action format.
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
`);const O=A.state[g];if(O==null)return;JSON.stringify(i.getState())!==JSON.stringify(O)&&w(O);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(A)});case"DISPATCH":switch(S.payload.type){case"RESET":return w(v),g===void 0?p?.init(i.getState()):p?.init(id(h.name));case"COMMIT":if(g===void 0){p?.init(i.getState());return}return p?.init(id(h.name));case"ROLLBACK":return ih(S.state,A=>{if(g===void 0){w(A),p?.init(i.getState());return}w(A[g]),p?.init(id(h.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return ih(S.state,A=>{if(g===void 0){w(A);return}JSON.stringify(i.getState())!==JSON.stringify(A[g])&&w(A[g])});case"IMPORT_STATE":{const{nextLiftedState:A}=S.payload,O=(k=A.computedStates.slice(-1)[0])==null?void 0:k.state;if(!O)return;w(g===void 0?O:O[g]),p?.send(null,A);return}case"PAUSE_RECORDING":return x=!x}return}}),v},ih=(r,e)=>{let t;try{t=JSON.parse(r)}catch(s){console.error("[zustand devtools middleware] Could not parse the received json",s)}t!==void 0&&e(t)},YN={maxHistorySize:50};function Fo(r="component"){const e=Date.now().toString(36),t=Math.random().toString(36).substring(2,8);return`${r.toLowerCase().replace(/[^a-z0-9]/g,"_")}_${e}_${t}`}function oh(r,e){for(const t of r)if(typeof t!="string"&&(t.id===e||t.children&&oh(t.children,e)))return!0;return!1}function kr(r,e,t=null,s=[]){for(let i=0;i<r.length;i++){const o=r[i];if(typeof o!="string"){if(o.id===e)return{component:o,parentId:t,index:i,path:[...s,o.id]};if(o.children){const d=kr(o.children,e,o.id,[...s,o.id]);if(d)return d}}}return null}function Vo(r,e,t,s){return t?r.map(i=>{if(typeof i=="string")return i;if(i.id===t)switch(s){case"before":return i;case"after":return i;case"inside":case"last-child":return{...i,children:[...i.children||[],e]};case"first-child":return{...i,children:[e,...i.children||[]]};default:return i}if(i.children){const o=[];for(let h=0;h<i.children.length;h++){const f=i.children[h];typeof f!="string"&&f.id===t?s==="before"?(o.push(e),o.push(f)):s==="after"?(o.push(f),o.push(e)):o.push(f):o.push(f)}const d=Vo(o,e,t,s);if(JSON.stringify(d)!==JSON.stringify(i.children))return{...i,children:d}}return i}):[...r,e]}function od(r,e){return r.filter(t=>typeof t=="string"?!0:t.id!==e).map(t=>typeof t=="string"?t:t.children?{...t,children:od(t.children,e)}:t)}function ld(r,e,t){return r.map(s=>{if(typeof s=="string")return s;if(s.id===e){const i=t.props?{...s.props,...t.props}:s.props;return{...s,...t,props:i}}return s.children?{...s,children:ld(s.children,e,t)}:s})}function cd(r,e,t,s){const i=kr(r,e);if(!i||e===t||JN(r,e,t))return r;const o=i.component,d=od(r,e);return Vo(d,o,t,s)}function JN(r,e,t){const s=kr(r,e);if(!s)return!1;const i=s.component;return i.children?oh(i.children,t):!1}function lh(r){const e={...r,id:Fo(r.name),props:r.props?{...r.props}:void 0,data_binding:r.data_binding?{...r.data_binding}:void 0,style:r.style?{...r.style}:void 0,actions:r.actions?JSON.parse(JSON.stringify(r.actions)):void 0,iteration:r.iteration?{...r.iteration}:void 0,lifecycle:r.lifecycle?JSON.parse(JSON.stringify(r.lifecycle)):void 0,responsive:r.responsive?JSON.parse(JSON.stringify(r.responsive)):void 0};return r.children&&(e.children=r.children.map(t=>typeof t=="string"?t:lh(t))),e}function Hx(r,e){const t=kr(r,e);if(!t)return null;const s=lh(t.component);return{components:Vo(r,s,e,"after"),newId:s.id}}function ch(r,e){if(!e)return null;const t=e.split(".");let s=r;for(let i=0;i<t.length;i++){const o=t[i];if(o==="children")if(typeof s=="object"&&!Array.isArray(s)&&s.children)s=s.children;else return null;else{const d=parseInt(o,10);if(isNaN(d))return null;if(Array.isArray(s)){const g=s[d];if(!g||typeof g=="string")return null;s=g}else return null}}return typeof s=="object"&&!Array.isArray(s)&&"name"in s?s:null}function Ko(r,e){const t=ch(r,e);if(!t)return null;if(t.id)return{components:r,id:t.id};const s=Fo(t.name);return{components:Px(r,e,{id:s}),id:s}}function Px(r,e,t){if(!e)return r;const s=e.split(".");function i(o,d){const g=s[d],h=parseInt(g,10);if(isNaN(h)||h<0||h>=o.length)return o;const f=o[h];if(typeof f=="string")return o;if(d===s.length-1){const y={...f,...t,props:t.props?{...f.props,...t.props}:f.props};return[...o.slice(0,h),y,...o.slice(h+1)]}if(s[d+1]==="children"&&f.children){const y=i(f.children,d+2),x={...f,children:y};return[...o.slice(0,h),x,...o.slice(h+1)]}return o}return i(r,0)}const St=nt("EditorState"),XN={layoutData:null,originalLayoutData:null,templateId:null,templateType:null,layoutName:null,selectedComponentId:null,hoveredComponentId:null,multiSelectedIds:[],editMode:"visual",previewDevice:"desktop",customWidth:1024,previewDarkMode:!1,loadingState:"idle",error:null,history:[],historyIndex:-1,maxHistorySize:YN.maxHistorySize,componentCategories:null,handlers:[],mockDataContext:{},versions:[],currentVersionId:null,inheritanceInfo:null,overlays:[],extensionPoints:[],activePropertyTab:"props",expandedTreeNodes:[],clipboard:null,draggingComponent:null,dropTargetI Line truncated
${t?"opacity-50 cursor-not-allowed":"hover:bg-gray-100 dark:hover:bg-gray-700"}
${z?"bg-blue-50 dark:bg-blue-900/30":""}
`,style:{paddingLeft:`${8+M*16}px`},children:[l.jsx("input",{type:"checkbox",checked:z,onChange:()=>v($.identifier),disabled:t,className:"w-4 h-4 rounded border-gray-300 dark:border-gray-600 text-blue-600 focus:ring-blue-500"}),l.jsxs("span",{className:"flex-1 text-sm text-gray-900 dark:text-gray-100",children:[$.name,l.jsxs("span",{className:"ml-2 text-xs text-gray-500 dark:text-gray-400",children:["(",$.identifier,")"]})]})]}),K&&$.children?.map(ye=>N(ye,M+1))]},$.identifier)};if(d)return l.jsxs("div",{className:"p-4 text-center text-sm text-gray-500 dark:text-gray-400",children:[l.jsx("span",{className:"inline-block animate-spin mr-2",children:"⏳"}),"권한 목록 로딩 중..."]});if(h)return l.jsx("div",{className:"p-4 text-center text-sm text-red-500 dark:text-red-400",children:h});const D=Object.entries(i);return l.jsxs("div",{className:"border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-800 overflow-hidden",children:[l.jsxs("div",{className:"p-3 border-b border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-900",children:[l.jsxs("div",{className:"flex items-center justify-between mb-2",children:[l.jsxs("span",{className:"text-xs font-medium text-gray-700 dark:text-gray-300",children:["선택된 권한: ",l.jsxs("span",{className:"text-blue-600 dark:text-blue-400",children:[r.length,"개"]}),r.length===0&&l.jsx("span",{className:"text-gray-500 ml-1",children:"(공개 레이아웃)"})]}),l.jsxs("div",{className:"flex gap-2",children:[l.jsx("button",{type:"button",onClick:k,disabled:t,className:"text-xs text-blue-600 dark:text-blue-400 hover:underline disabled:opacity-50",children:"전체 선택"}),l.jsx("button",{type:"button",onClick:A,disabled:t||r.length===0,className:"text-xs text-red-600 dark:text-red-400 hover:underline disabled:opacity-50",children:"전체 해제"})]})]}),l.jsx("input",{type:"text",value:x,onChange:$=>w($.target.value),placeholder:"권한 검색...",className:"w-full px-3 py-1.5 text-sm border border-gray-300 dark:border-gray-600 rounded bg-white dark:bg-gray-700 text-gray-900 dark:text-white"})]}),l.jsx("div",{className:"max-h-64 overflow-y-auto",children:D.length===0?l.jsx("div",{className:"p-4 text-center text-sm text-gray-500 dark:text-gray-400",children:"권한이 없습니다"}):D.map(([$,M])=>{const z=O(M.permissions||[]);if(x&&z.length===0)return null;const K=p.has($);return l.jsxs("div",{className:"border-b border-gray-100 dark:border-gray-800 last:border-b-0",children:[l.jsxs("button",{type:"button",onClick:()=>S($),className:"w-full flex items-center gap-2 px-3 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors",children:[l.jsx("span",{className:"text-gray-400",children:K?"▼":"▶"}),l.jsx("span",{children:M.label}),l.jsxs("span",{className:"text-xs text-gray-500 dark:text-gray-400 ml-auto",children:[z.length,"개"]})]}),K&&l.jsx("div",{className:"pb-2",children:z.map(ye=>N(ye))})]},$)})}),r.length>0&&l.jsxs("div",{className:"p-2 border-t border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-900",children:[l.jsx("div",{className:"text-xs text-gray-600 dark:text-gray-400 mb-1",children:"선택됨:"}),l.jsxs("div",{className:"flex flex-wrap gap-1",children:[r.slice(0,5).map($=>l.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 text-xs bg-blue-100 dark:bg-blue-900/50 text-blue-700 dark:text-blue-300 rounded",title:$,children:[$,l.jsx("button",{type:"button",onClick:()=>v($),disabled:t,className:"hover:text-red-500",children:"×"})]},$)),r.length>5&&l.jsxs("span",{className:"text-xs text-gray-500",children:["+",r.length-5,"개 더..."]})]})]}),l.jsx("div",{className:"p-2 border-t border-gray-200 dark:border-gray-700 text-xs text-gray-500 dark:text-gray-400",children:"권한을 선택하지 않으면 공개 레이아웃이 됩니다. 선택된 권한은 AND 조건으로 적용됩니다."})]})},oE=nt("LayoutSettingsModal");function lE({isOpen:r,onClose:e}){const t=Se(x=>x.layoutData),s=Se(x=>x.updateLayoutMeta),i=Se(x=>x.pushHistory),[o,d]=j.useState([]),[g,h]=j.useState(!1);j.useEffect(()=>{t&&r&&(d(t.permissions||[]),h(!1))},[t,r]);const f=j.useCallback(x=>{d(x),h(!0)},[]),p=j.useCallback(()=>{t&&(oE.log("Saving layout permissions:",o),i("레이아웃 권한 변경"),s({permissions:o}),h(!1),e())},[t,o,i,s,e]),y=j.useCallback(()=>{g&&!window.confirm("변경사항이 저장되지 않습니다. 정말 닫으시겠습니까?")||e()},[g,e]);return r?l.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[l.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:y}),l.jsxs("div",{className:"relative w-full max-w-2xl mx-4 bg-white dark:bg-gray-800 rounded-lg shadow-xl max-h-[90vh] flex flex-col",children:[l.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-gray-200 dark:border-gray-700",children:[l.jsxs("div",{children:[l.jsx("h2",{className:"text-lg font-semibold Line truncated
"$switch": "{{status}}",
"$cases": {
"active": "text-green-500",
"pending": "text-yellow-500"
},
"$default": "text-gray-500"
}`})]}),l.jsxs("div",{className:"p-3 bg-cyan-50 dark:bg-cyan-900/20 rounded text-xs",children:[l.jsx("div",{className:"font-medium text-cyan-700 dark:text-cyan-300 mb-2",children:"$get 헬퍼"}),l.jsx("p",{className:"text-cyan-600 dark:text-cyan-400 mb-2",children:"동적 키를 포함한 깊은 객체 경로 접근과 폴백을 지원합니다."}),l.jsx("pre",{className:"bg-white dark:bg-gray-800 p-2 rounded font-mono overflow-x-auto text-gray-700 dark:text-gray-300",children:"{{$get(product.prices, [currency, 'formatted'], product.price_formatted)}}"})]}),l.jsxs("div",{className:"p-3 bg-purple-50 dark:bg-purple-900/20 rounded text-xs",children:[l.jsx("div",{className:"font-medium text-purple-700 dark:text-purple-300 mb-2",children:"파이프 함수"}),l.jsx("p",{className:"text-purple-600 dark:text-purple-400 mb-2",children:"체이닝 방식으로 데이터를 변환할 수 있습니다."}),l.jsxs("div",{className:"bg-white dark:bg-gray-800 p-2 rounded space-y-1 font-mono text-gray-700 dark:text-gray-300",children:[l.jsx("div",{children:"{{value | date}}"}),l.jsx("div",{children:"{{text | truncate(50)}}"}),l.jsx("div",{children:"{{name | default('Unknown')}}"}),l.jsx("div",{children:"{{items | first}}"})]})]}),l.jsxs("div",{className:"p-3 bg-green-50 dark:bg-green-900/20 rounded text-xs",children:[l.jsx("div",{className:"font-medium text-green-700 dark:text-green-300 mb-2",children:"computed 속성"}),l.jsx("p",{className:"text-green-600 dark:text-green-400 mb-2",children:"레이아웃 수준에서 재사용 가능한 계산 값을 정의합니다. 레이아웃 JSON의 최상위에 computed 섹션을 추가하세요."}),l.jsx("pre",{className:"bg-white dark:bg-gray-800 p-2 rounded font-mono overflow-x-auto text-gray-700 dark:text-gray-300",children:`// 레이아웃 JSON
{
"computed": {
"displayPrice": "{{$get(product.prices, [currency, 'formatted'])}}",
"canEdit": "{{!deleted && permissions.edit}}"
}
}
// 사용
{{$computed.displayPrice}}
{{$computed.canEdit}}`})]})]})]}),l.jsxs("div",{children:[l.jsx(hd,{title:"Raw JSON",isExpanded:t.rawJson,onToggle:()=>i("rawJson")}),t.rawJson&&l.jsx("div",{className:"mt-3",children:l.jsx("pre",{className:"p-3 bg-gray-50 dark:bg-gray-800 rounded border border-gray-200 dark:border-gray-700 text-xs text-gray-600 dark:text-gray-400 overflow-auto max-h-96",children:JSON.stringify(r,null,2)})})]})]})}const XE=[{id:"props",label:"Props",icon:"⚙️",description:"기본 속성 편집"},{id:"bindings",label:"Bindings",icon:"🔗",description:"데이터 바인딩 설정"},{id:"actions",label:"Actions",icon:"⚡",description:"이벤트 핸들러 설정"},{id:"conditions",label:"Conditions",icon:"🔀",description:"조건부/반복 렌더링"},{id:"responsive",label:"Responsive",icon:"📱",description:"반응형 오버라이드"},{id:"advanced",label:"Advanced",icon:"🔧",description:"고급 설정"}];function QE({tab:r,isActive:e,onClick:t}){return l.jsxs("button",{className:`flex items-center gap-1 px-3 py-2 text-sm font-medium border-b-2 transition-colors ${e?"border-blue-500 text-blue-600 dark:text-blue-400":"border-transparent text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-300 hover:border-gray-300 dark:hover:border-gray-600"}`,onClick:t,title:r.description,children:[l.jsx("span",{children:r.icon}),l.jsx("span",{className:"hidden lg:inline",children:r.label})]})}function ZE(){return l.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8 text-gray-500 dark:text-gray-400",children:[l.jsx("div",{className:"text-4xl mb-4",children:"👆"}),l.jsx("h3",{className:"text-lg font-medium mb-2",children:"컴포넌트를 선택하세요"}),l.jsx("p",{className:"text-sm text-center",children:"편집할 컴포넌트를 미리보기 캔버스 또는 레이아웃 트리에서 클릭하세요."})]})}function e_({component:r}){const{getMetadata:e}=Wo(),t=e(r.name);return l.jsxs("div",{className:"px-4 py-3 border-b border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-lg",children:r.type==="basic"?"📦":r.type==="composite"?"🧩":r.type==="layout"?"📐":"🔌"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("h3",{className:"text-sm font-semibold text-gray-900 dark:text-white truncate",children:r.name}),l.jsxs("p",{className:"text-xs text-gray-500 dark:text-gray-400 truncate",children:["ID: ",r.id]})]}),l.jsx("span",{className:`px-2 py-0.5 text-xs rounded ${r.type==="basic"?"bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300":r.type==="composite"?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300":r.type==="layout"?"bg-orange-100 dark:bg-orange-900 text-orange-700 dark:text-orange-300":"bg-purple-100 dark:bg-purple-900 text-purple-700 dark:text-purple-300"}`,children:r.type})]}),t?.description&&l.jsx("p",{className:"mt-2 text-xs text-gray-600 dark:text-gray-400",children:t.description})]})}function eb({className:r=""}){const[e,t]=j.useState("props"),s=Se(p=>p.layoutData),i=Se(p=>p.selectedComponentId),o=Se(p=>p.updateComponentProps),d=Se(p=>p.updateComponent),g=j.useMemo(()=>{if(!s||!i)return null;const p=y=>{for(const x of y)if(typeof x!="string"){if(x.id===i)return x;if(x.children){const w=p(x.children);if(w)return w}}return null};return p(s.components)},[s,i]),h=j.useCallback(p=>{!i||!g||(Object.keys(p).length===1&&p.props?o(i,p.props):d(i,p))},[i,g,o,d]);if(!g)return l.jsx("div",{className:`h-full bg-white dark:bg-gray-900 border-l border-gray-200 dark:border-gray-700 ${r}`,children:l.jsx(ZE,{})});const f=()=>{switch(e){case"props":return l.jsx(Jx,{component:g,onChange:h});case"bindings":return l.jsx($E,{component:g,onChange:h});case"actions":return l.jsx(HE,{component:g,onChange:h});case"conditions":return l.jsx(qE,{component:g,onChange:h});case"responsive":return l.jsx(KE,{component:g,onChange:h});case"advanced":return l.jsx(JE,{component:g,onChange:h});default:return null}};return l.jsxs("div",{className:`flex flex-col h-full bg-white dark:bg-gray-900 border-l border-gray-200 dark:border-gray-700 ${r}`,children:[l.jsx(e_,{component:g}),l.jsx("div",{className:"flex border-b border-gray-200 dark:border-gray-700 overflow-x-auto",children:XE.map(p=>l.jsx(QE,{tab:p,isActive:e===p.id,onClick:()=>t(p.id)},p.id))}),l.jsx("div",{className:"flex-1 overflow-auto",children:f()})]})}const Yo=nt("EditorOverlay");function t_({rect:r,componentId:e,onCopy:t,onDuplicate:s,onDelete:i,onMoveUp:o,onMoveDown:d}){const g=Math.max(0,r.top-36),h=window.innerWidth-r.right;return l.jsxs("div",{className:"fixed z-50 flex items-center gap-1 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-lg px-1 py-1",style:{top:g,right:Math.max(8,h)},onClick:f=>f.stopPropagation(),children:[l.jsx("button",{className:"p-1.5 text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 hover:bg-gray-100 dark:hov Line truncated
`,pI=()=>{const n="g7-devtools-styles";if(document.getElementById(n))return;const e=document.createElement("style");e.id=n,e.textContent=fI,document.head.appendChild(e)},t_={state:"상태",actions:"액션",cache:"캐시",diagnose:"진단",performance:"성능",lifecycle:"라이프사이클",network:"네트워크",form:"Form",conditional:"조건부",expression:"표현식",handlers:"핸들러",events:"이벤트",datasources:"데이터소스",renders:"렌더링",styles:"스타일",auth:"인증",logs:"로그",layout:"레이아웃",changedetection:"변경감지",staleclosure:"Stale Closure",nestedcontext:"Context",modalscope:"모달스코프",namedactions:"Named Actions"},gI=700,hI=500,n_=400,s_=300,r_="g7-devtools-panel",Hh=n=>n===null||n===void 0?"g7dt-text-gray":typeof n=="string"?"g7dt-text-yellow":typeof n=="number"?"g7dt-text-cyan":typeof n=="boolean"?"g7dt-text-pink":Array.isArray(n)?"g7dt-text-orange":typeof n=="object"?"g7dt-text-blue":"g7dt-text-white",mI=n=>n===null?"null":n===void 0?"undefined":Array.isArray(n)?`Array(${n.length})`:typeof n=="object"?`Object(${Object.keys(n).length})`:typeof n,yI=n=>n===null?"null":n===void 0?"undefined":typeof n=="string"?n.length>50?`"${n.substring(0,50)}..."`:`"${n}"`:typeof n=="boolean"?n?"true":"false":typeof n=="number"?String(n):"",o_=()=>{try{const n=localStorage.getItem(r_);if(n)return JSON.parse(n)}catch(n){console.warn("[G7DevTools] 설정 로드 실패:",n)}return{}},a_=n=>{try{const t={...o_(),...n};localStorage.setItem(r_,JSON.stringify(t))}catch(e){console.warn("[G7DevTools] 설정 저장 실패:",e)}},Ki=({keyName:n,value:e,path:t,expandedPaths:s,onToggle:r,searchTerm:o,depth:l=0})=>{const d=e!==null&&typeof e=="object",u=s.has(t),f=Array.isArray(e),g=o&&(n.toLowerCase().includes(o.toLowerCase())||typeof e=="string"&&e.toLowerCase().includes(o.toLowerCase())||typeof e=="number"&&String(e).includes(o)),h=y=>{y.stopPropagation(),d&&r(t)},b=d?Object.entries(e):[];return a.jsxs("div",{style:{marginLeft:l>0?"16px":"0"},children:[a.jsxs("div",{className:`g7dt-tree-node g7dt-flex g7dt-items-center g7dt-gap-1 ${g?"g7dt-ring-highlight":""}`,onClick:h,children:[d?a.jsx("span",{className:"g7dt-text-gray g7dt-w-4 g7dt-text-xs g7dt-select-none",style:{textAlign:"center"},children:u?"▼":"▶"}):a.jsx("span",{className:"g7dt-w-4"}),a.jsx("span",{className:"g7dt-text-purple g7dt-text-xs",children:n}),a.jsx("span",{className:"g7dt-text-gray-dark g7dt-text-xs",children:":"}),d?a.jsxs("span",{className:`g7dt-text-xs ${Hh(e)}`,children:[f?"[":"{",!u&&a.jsx("span",{className:"g7dt-text-gray",style:{margin:"0 4px"},children:mI(e)}),!u&&(f?"]":"}")]}):a.jsx("span",{className:`g7dt-text-xs ${Hh(e)}`,children:yI(e)}),!d&&a.jsxs("span",{className:"g7dt-text-gray-dark g7dt-text-xs g7dt-ml-1",children:["(",typeof e,")"]})]}),d&&u&&a.jsxs("div",{className:"g7dt-border-l",style:{marginLeft:"8px"},children:[b.map(([y,v])=>a.jsx(Ki,{keyName:f?`[${y}]`:y,value:v,path:`${t}.${y}`,expandedPaths:s,onToggle:r,searchTerm:o,depth:l+1},`${t}.${y}`)),a.jsx("div",{className:"g7dt-ml-4 g7dt-text-xs",children:a.jsx("span",{className:Hh(e),children:f?"]":"}"})})]})]})},bI=({state:n,devTools:e})=>{const[t,s]=w.useState(new Set(["_global","_local","_computed","_isolated","$parent"])),[r,o]=w.useState(""),[l,d]=w.useState(!1),[u,f]=w.useState(!1),[g,h]=w.useState(null),b=w.useCallback(()=>{e&&h(e.getComputedDependencyTrackingInfo())},[e]);w.useEffect(()=>{if(u&&e){b();const T=setInterval(b,2e3);return()=>clearInterval(T)}},[u,e,b]);const y=T=>{switch(T){case"state-change":return"📊";case"prop-change":return"📥";case"dependency-change":return"🔗";case"manual":return"👆";case"initial":return"🚀";default:return"❓"}},v=w.useCallback(T=>{s(D=>{const I=new Set(D);return I.has(T)?I.delete(T):I.add(T),I})},[]),x=w.useCallback((T,D)=>{const I=[D];if(T!==null&&typeof T=="object")for(const[W,z]of Object.entries(T))I.push(...x(z,`${D}.${W}`));return I},[]),S=w.useCallback(()=>{if(l)s(new Set(["_global","_local","_computed","_isolated","$parent"]));else{const T=new Set;x(n._global,"_global").forEach(D=>T.add(D)),x(n._local,"_local").forEach(D=>T.add(D)),x(n._computed,"_computed").forEach(D=>T.add(D)),x(n._isolated,"_isolated").forEach(D=>T.add(D)),n.$parent&&x(n.$parent,"$parent").forEach(D=>T.add(D)),s(T)}d(!l)},[l,n,x]),_=Object.keys(n._global||{}).length,A=Object.keys(n._local||{}).length,C=Object.keys(n._computed||{}).length,j=Object.keys(n._isolated||{}).length,E=Object.keys(n.$parent||{}).length;return a.jsxs("div",{className:"g7dt-space-y-4",children:[a.jsxs("div",{className:"g7dt-flex g7dt-gap-2 g7dt-items-center g7dt-flex-shrink-0",children:[a.jsx("input",{type:"text",placeholder:"키 또는 값 검색...",value:r,onChange:T=>o(T.target.value),className:"g7dt-input g7dt-flex-1"}),a.jsx("button",{onClick:S,className:"g7dt-btn g7dt-bg-gray-700",children:l?"모두 접기":"모두 펼치기"})]}),a.jsxs("div",{className:"g7dt-flex g7dt-gap-3 g7dt-text-xs g7dt-text-gray g7dt-flex-wrap g7dt-fle Line truncated
... (truncated)`:u}catch{return"(직렬화 불가)"}};return a.jsxs("div",{className:"g7dt-space-y-4",children:[e.activeRequests.length>0&&a.jsxs("div",{children:[a.jsxs("h3",{className:"g7dt-text-sm g7dt-font-bold g7dt-text-yellow g7dt-mb-2",children:["진행 중 (",e.activeRequests.length,")"]}),a.jsx("div",{className:"g7dt-space-y-1",children:e.activeRequests.map(l=>a.jsxs("details",{className:"g7dt-details",children:[a.jsxs("summary",{className:"g7dt-summary g7dt-pending-request",children:[a.jsx("span",{className:"g7dt-font-bold",children:l.method}),a.jsx("span",{className:"g7dt-ml-2 g7dt-text-lightgray g7dt-truncate",children:l.fullUrl||l.url})]}),a.jsxs("div",{className:"g7dt-card g7dt-mt-1 g7dt-text-xs",children:[s(l)&&a.jsxs("div",{className:"g7dt-mb-2",children:[a.jsx("div",{className:"g7dt-text-blue g7dt-font-bold g7dt-mb-1",children:"쿼리 파라미터"}),a.jsx("div",{className:"g7dt-pl-2 g7dt-border-l-2 g7dt-border-blue",children:r(l.queryParams)})]}),l.requestBody&&a.jsxs("div",{children:[a.jsx("div",{className:"g7dt-text-orange g7dt-font-bold g7dt-mb-1",children:"요청 본문"}),a.jsx("pre",{className:"g7dt-pre g7dt-text-xs",children:o(l.requestBody,2e3)})]})]})]},l.id))})]}),a.jsxs("div",{children:[a.jsx("h3",{className:"g7dt-text-sm g7dt-font-bold g7dt-mb-2",children:"요청 이력"}),a.jsx("div",{className:"g7dt-space-y-1 g7dt-scroll-list-lg",children:e.requestHistory.length===0?a.jsx("div",{className:"g7dt-empty-message",children:"요청 이력 없음"}):e.requestHistory.slice(-20).reverse().map(l=>a.jsxs("details",{className:"g7dt-details",children:[a.jsxs("summary",{className:"g7dt-summary g7dt-card g7dt-text-xs",children:[a.jsxs("div",{className:"g7dt-flex g7dt-justify-between g7dt-items-center g7dt-w-full",children:[a.jsxs("div",{children:[a.jsx("span",{className:"g7dt-font-bold",children:l.method}),a.jsx("span",{className:`g7dt-ml-2 ${t(l.status)}`,children:l.statusCode||l.status})]}),a.jsxs("span",{className:"g7dt-text-gray",children:[l.duration,"ms"]})]}),a.jsx("div",{className:"g7dt-text-gray g7dt-truncate g7dt-mt-1",children:l.fullUrl||l.url})]}),a.jsxs("div",{className:"g7dt-card g7dt-mt-1 g7dt-text-xs g7dt-ml-2 g7dt-border-l-2 g7dt-border-gray",children:[a.jsx("div",{className:"g7dt-mb-2",children:a.jsxs("div",{className:"g7dt-text-xs g7dt-space-y-1",children:[a.jsxs("div",{children:[a.jsx("span",{className:"g7dt-text-gray",children:"URL:"})," ",a.jsx("span",{className:"g7dt-text-lightgray",children:l.fullUrl||l.url})]}),a.jsxs("div",{children:[a.jsx("span",{className:"g7dt-text-gray",children:"상태:"})," ",a.jsx("span",{className:t(l.status),children:l.statusCode||l.status})]}),a.jsxs("div",{children:[a.jsx("span",{className:"g7dt-text-gray",children:"소요시간:"})," ",a.jsxs("span",{className:"g7dt-text-lightgray",children:[l.duration,"ms"]})]}),l.dataSourceId&&a.jsxs("div",{children:[a.jsx("span",{className:"g7dt-text-gray",children:"데이터소스:"})," ",a.jsx("span",{className:"g7dt-text-blue",children:l.dataSourceId})]}),l.error&&a.jsxs("div",{children:[a.jsx("span",{className:"g7dt-text-gray",children:"에러:"})," ",a.jsx("span",{className:"g7dt-text-red",children:l.error})]})]})}),s(l)&&a.jsxs("div",{className:"g7dt-mb-2",children:[a.jsx("div",{className:"g7dt-text-blue g7dt-font-bold g7dt-mb-1",children:"쿼리 파라미터"}),a.jsx("div",{className:"g7dt-pl-2 g7dt-border-l-2 g7dt-border-blue",children:r(l.queryParams)})]}),l.requestBody&&a.jsxs("div",{className:"g7dt-mb-2",children:[a.jsx("div",{className:"g7dt-text-orange g7dt-font-bold g7dt-mb-1",children:"요청 본문"}),a.jsx("pre",{className:"g7dt-pre g7dt-text-xs g7dt-max-h-40 g7dt-overflow-auto",children:o(l.requestBody,2e3)})]}),l.response!==void 0&&a.jsxs("div",{children:[a.jsx("div",{className:"g7dt-text-green g7dt-font-bold g7dt-mb-1",children:"응답 내용"}),a.jsx("pre",{className:"g7dt-pre g7dt-text-xs g7dt-max-h-60 g7dt-overflow-auto",children:o(l.response,5e3)})]})]})]},l.id))})]}),e.pendingDataSources.length>0&&a.jsxs("div",{children:[a.jsxs("h3",{className:"g7dt-text-sm g7dt-font-bold g7dt-text-blue g7dt-mb-2",children:["대기 중인 데이터소스 (",e.pendingDataSources.length,")"]}),a.jsx("div",{className:"g7dt-flex g7dt-flex-wrap g7dt-gap-2",children:e.pendingDataSources.map(l=>a.jsx("span",{className:"g7dt-tag-blue",children:l},l))})]})]})},CI=({devTools:n})=>{const e=n.getFormInfo(),[t,s]=w.useState(!1),[r,o]=w.useState(null),l=w.useCallback(()=>{o(n.getFormBindingValidationTrackingInfo())},[n]);w.useEffect(()=>{if(t){l();const f=setInterval(l,2e3);return()=>clearInterval(f)}},[t,l]);const d=f=>{switch(f){case"missing-datakey":return"🔑";case"missing-input-name":return"📝";case"context-not-propagated":return"🔗";case"sortable-context-break":return"📊";case"modal-context-isolation":return"🪟";case"duplicate-input-name":return"👯";case"value-type-mismatch":return"⚠️";case"binding-path-invalid":return"❌";default:return"❓"}},u=f=>{switch(f){case"error":return"g7dt- Line truncated
"keyword": "",
"page": 1
}`,shapeErrorKey:"layout_editor.json_block.must_be_object",validate:E=>{const T=Object.keys(E??{}).filter(D=>!Pm(D));return T.length?l("layout_editor.json_block.invalid_keys",{keys:T.join(", ")}):null}}):a.jsxs(a.Fragment,{children:[S.length===0?a.jsx("p",{"data-testid":`g7le-initstate-${n}-empty`,style:dH,children:l("layout_editor.initstate.no_values")}):S.map(E=>{const D=d8(_,r,E)==="inherited",I=n==="isolated"&&d[E];return a.jsx(qB,{scope:n,itemKey:E,value:s[E],inherited:D,isOrphan:!!I,onChangeValue:W=>A(E,W),onRemove:()=>C(E),t:l},E)}),a.jsxs("div",{style:rH,children:[a.jsx("input",{type:"text","data-testid":`g7le-initstate-${n}-add-name`,value:u,placeholder:l("layout_editor.initstate.value_name"),onChange:E=>{f(E.target.value),b&&y(null)},onKeyDown:E=>{E.key==="Enter"&&(E.preventDefault(),j())},"aria-invalid":b?!0:void 0,style:{...oH,...b?aH:null}}),a.jsx("select",{"data-testid":`g7le-initstate-${n}-add-kind`,value:g,onChange:E=>h(E.target.value),"aria-label":l("layout_editor.initstate.value_kind"),style:lH,children:WB.map(E=>a.jsx("option",{value:E.kind,children:l(E.labelKey)},E.kind))}),a.jsxs("button",{type:"button","data-testid":`g7le-initstate-${n}-add`,onClick:j,style:cH,children:["+ ",l("layout_editor.initstate.add_value")]})]}),b?a.jsx("p",{"data-testid":`g7le-initstate-${n}-add-error`,style:iH,children:b}):null]})]})}function qB({scope:n,itemKey:e,value:t,inherited:s,isOrphan:r,onChangeValue:o,onRemove:l,t:d}){const[u,f]=w.useState(!1);let g;try{g=JSON.stringify(t,null,2)??String(t)}catch{g=String(t)}return a.jsxs("div",{"data-testid":`g7le-initstate-${n}-item-${e}`,style:QB,children:[a.jsxs("div",{style:eH,children:[s?a.jsx("span",{"data-testid":`g7le-initstate-inherited-${e}`,style:tH,children:"🔗"}):null,a.jsx("code",{style:nH,children:e}),a.jsx("span",{style:{flex:1}}),a.jsx("button",{type:"button","data-testid":`g7le-initstate-code-${e}`,onClick:()=>f(h=>!h),style:Zm,"aria-label":d("layout_editor.value_tree.show_source"),title:d("layout_editor.value_tree.show_source"),children:"</>"}),s?a.jsx("button",{type:"button","data-testid":`g7le-initstate-revert-${e}`,onClick:l,style:Zm,children:d("layout_editor.initstate.revert")}):a.jsx("button",{type:"button","data-testid":`g7le-initstate-remove-${e}`,onClick:l,style:Zm,"aria-label":d("layout_editor.init_actions.remove"),children:"✕"})]}),u?a.jsx("pre",{"data-testid":`g7le-initstate-code-block-${e}`,style:fH,children:g}):null,a.jsx(Va,{value:t,onChange:o,t:d,path:e,scope:n}),r?a.jsxs("p",{"data-testid":`g7le-initstate-isolated-orphan-${e}`,style:sH,children:["⚠ ",d("layout_editor.initstate.isolated_orphan")]}):null]})}const FB={display:"flex",flexDirection:"column",gap:14,minWidth:0},VB={margin:0,fontSize:13,fontWeight:700,color:"#0f172a"},KB={margin:0,fontSize:11,color:"#1d4ed8",background:"#eff6ff",padding:"6px 8px",borderRadius:6},GB={display:"flex",flexDirection:"column",gap:8,padding:10,border:"1px solid #e2e8f0",borderRadius:10,minWidth:0},YB={display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},XB={fontSize:12,fontWeight:700,color:"#475569"},JB={margin:0,fontSize:11,color:"#94a3b8"},ZB={padding:"2px 8px",fontSize:11,border:"1px solid #cbd5e1",borderRadius:6,background:"#fff",color:"#475569",cursor:"pointer"},QB={display:"flex",flexDirection:"column",gap:4,padding:"6px 8px",border:"1px solid #f1f5f9",borderRadius:6,minWidth:0},eH={display:"flex",alignItems:"center",gap:6},tH={fontSize:12},nH={fontSize:12,color:"#0f172a",fontFamily:"monospace"},Zm={border:"1px solid #cbd5e1",borderRadius:6,background:"#fff",color:"#475569",cursor:"pointer",fontSize:11,padding:"2px 6px"},sH={margin:0,fontSize:11,color:"#b45309",background:"#fef3c7",padding:"4px 6px",borderRadius:6},rH={display:"flex",gap:6,alignItems:"center"},oH={padding:"4px 8px",fontSize:12,border:"1px solid #cbd5e1",borderRadius:6},aH={border:"1px solid #dc2626"},iH={margin:0,fontSize:11,color:"#dc2626"},lH={padding:"4px 8px",fontSize:12,border:"1px solid #cbd5e1",borderRadius:6,background:"#fff",color:"#0f172a"},cH={padding:"2px 10px",fontSize:11,border:"1px dashed #94a3b8",borderRadius:6,background:"#fff",color:"#475569",cursor:"pointer"},dH={margin:0,fontSize:12,color:"#94a3b8"},uH={margin:0,fontSize:11,color:"#94a3b8"},fH={margin:"2px 0",padding:"6px 8px",fontSize:11,fontFamily:"monospace",color:"#0f172a",background:"#f1f5f9",border:"1px solid #e2e8f0",borderRadius:6,whiteSpace:"pre-wrap",wordBreak:"break-all",overflowX:"auto"},pH={self:"layout_editor.error_rows.source_self",inherited:"layout_editor.error_rows.source_inherited",template:"layout_editor.error_rows.source_template",none:"layout_editor.error_rows.source_none"};function Qm({value:n,onChange:e,t,codes:s,mode:r="local",sourceOf:o,renderActionList:l,testIdPrefix:d="g7le-error-rows"}){const u=s??Object.keys(n),f=w.useCallback((h,b)=>{e({...n,[h]:b})},[n,e]),g=w.useCallback(h=>{const b={...n};delete b[h],e(b)},[n,e]);return a.jsx("div",{className:d,"data-testid":d,children:u.map(h=>{const b=n[h],y=b! Line truncated
"page": "{{query.page ?? 1}}"
}`,shapeErrorKey:"layout_editor.data_sources.error.params_object",invalidErrorKey:"layout_editor.data_sources.error.params_json",t,onChange:M=>A(N=>N&&{...N,paramsRawValue:M??{},paramsRawValid:!0}),onValidityChange:M=>A(N=>N&&{...N,paramsRawValid:M})}):a.jsxs("div",{"data-testid":"g7le-data-sources-field-params",children:[_.paramRows.length===0&&a.jsx("p",{"data-testid":"g7le-ds-params-empty",style:_9,children:t("layout_editor.data_sources.field.params_empty")}),a.jsx(kf,{value:_.paramRows.map(M=>({key:M.key,value:M.value})),onChange:M=>A({..._,paramRows:M.map(N=>({key:N.key??"",value:N.value??""}))}),keyField:"key",valueField:"value",t,candidates:u,testidPrefix:"g7le-ds-params-kv",keyPlaceholder:t("layout_editor.data_sources.field.param_key_placeholder"),valuePlaceholder:"{{query.page ?? 1}}",addLabel:t("layout_editor.data_sources.field.param_add")}),(()=>{const M=oy(_.paramRows);return Object.keys(M).length===0?null:a.jsxs("div",{style:h1,children:[a.jsxs("button",{type:"button","data-testid":"g7le-ds-params-preview-toggle","aria-expanded":E,onClick:()=>T(N=>!N),style:m1,children:[E?"▴":"▾"," ",t("layout_editor.data_sources.field.params_preview")]}),E&&a.jsx("pre",{"data-testid":"g7le-ds-params-preview",style:{...y1,marginTop:4},children:JSON.stringify(M,null,2)})]})})()]}),a.jsx("div",{style:{fontSize:11,color:"#94a3b8",marginTop:4},children:t("layout_editor.data_sources.field.params_hint")})]}),a.jsxs("div",{style:ds,children:[a.jsx("label",{style:cs,children:t("layout_editor.data_sources.field.fallback")}),_.fallbackEnabled?a.jsxs("div",{"data-testid":"g7le-data-sources-field-fallback",style:{display:"flex",flexDirection:"column",gap:6},children:[a.jsx(Va,{value:_.fallbackValue===void 0?{}:_.fallbackValue,onChange:M=>A({..._,fallbackValue:M}),t,path:"fallback",scope:"ds-fallback",renderStringLeaf:M=>a.jsx(gn,{value:M.value,onChange:M.onChange,t,candidates:u,testidPrefix:M.testidPrefix})}),(()=>{const M=_.fallbackValue===void 0?{}:_.fallbackValue;return a.jsxs("div",{style:h1,children:[a.jsxs("button",{type:"button","data-testid":"g7le-ds-fallback-preview-toggle","aria-expanded":D,onClick:()=>I(N=>!N),style:m1,children:[D?"▴":"▾"," ",t("layout_editor.data_sources.field.fallback_preview")]}),D&&a.jsx("pre",{"data-testid":"g7le-ds-fallback-preview",style:{...y1,marginTop:4},children:JSON.stringify(M,null,2)})]})})(),a.jsx("button",{type:"button","data-testid":"g7le-data-sources-field-fallback-clear",onClick:()=>A({..._,fallbackEnabled:!1,fallbackValue:void 0}),style:{..._o,padding:"2px 8px",fontSize:11,alignSelf:"flex-start",color:"#dc2626",borderColor:"#fecaca"},children:t("layout_editor.data_sources.field.fallback_clear")})]}):a.jsxs("button",{type:"button","data-testid":"g7le-data-sources-field-fallback-add",onClick:()=>A({..._,fallbackEnabled:!0,fallbackValue:{}}),style:{..._o,padding:"4px 10px",display:"block"},children:["+ ",t("layout_editor.data_sources.field.fallback_add")]})]}),_.type==="websocket"&&a.jsxs("div",{"data-testid":"g7le-ds-ws-section",style:Fc,children:[a.jsx("div",{style:Vc,children:t("layout_editor.data_sources.section.websocket")}),a.jsxs("div",{style:ds,children:[a.jsx("label",{style:cs,children:t("layout_editor.data_sources.field.channel")}),a.jsx("input",{"data-testid":"g7le-ds-ws-channel",style:Nr,value:_.channel,onChange:M=>A({..._,channel:M.target.value}),placeholder:"core.admin.dashboard"})]}),a.jsxs("div",{style:ds,children:[a.jsx("label",{style:cs,children:t("layout_editor.data_sources.field.event")}),a.jsx("input",{"data-testid":"g7le-ds-ws-event",style:Nr,value:_.event,onChange:M=>A({..._,event:M.target.value}),placeholder:"dashboard.stats.updated"})]}),a.jsxs("div",{style:ds,children:[a.jsx("label",{style:cs,children:t("layout_editor.data_sources.field.channel_type")}),a.jsx("select",{"data-testid":"g7le-ds-ws-channeltype",style:Nr,value:_.channel_type,onChange:M=>A({..._,channel_type:M.target.value}),children:y9.map(M=>a.jsx("option",{value:M,children:M},M))})]}),a.jsxs("div",{style:ds,children:[a.jsx("label",{style:cs,children:t("layout_editor.data_sources.field.target_source")}),a.jsx("input",{"data-testid":"g7le-ds-ws-target",style:Nr,value:_.target_source,onChange:M=>A({..._,target_source:M.target.value}),list:"g7le-ds-ws-target-list"}),a.jsx("datalist",{id:"g7le-ds-ws-target-list",children:x.filter(M=>M.id!==_.id).map(M=>typeof M.id=="string"?a.jsx("option",{value:M.id},M.id):null)})]}),a.jsxs("div",{style:ds,children:[a.jsx("label",{style:cs,children:t("layout_editor.data_sources.field.on_receive")}),a.jsx("div",{"data-testid":"g7le-ds-ws-onreceive",children:a.jsx(Qr,{actions:_.onReceive,onChange:M=>A({..._,onReceive:M}),t,recipes:o,candidatePools:G,chipContext:"payload",actionChipCandidates:d?.actionChipCandidates??null,testIdPrefix:"g7le-ds-onreceive-list"})})]})]}),a.jsxs("div",{style:Fc,children:[a.jsx("div",{style:Vc,children:t("layout_editor.data_sources.section.on_success")}),a.jsx("div",{"data-testid":"g7le-ds-onsuccess",children:a.jsx(Qr,{act Line truncated
`).split(`
`);return e.length>0&&e[e.length-1]===""&&e.pop(),e}const R1=4e3;function tW(n,e,t=3){const s=E1(n),r=E1(e);let o=0;const l=Math.min(s.length,r.length);for(;o<l&&s[o]===r[o];)o++;let d=0;const u=Math.min(s.length,r.length)-o;for(;d<u&&s[s.length-1-d]===r[r.length-1-d];)d++;const f=s.slice(o,s.length-d),g=r.slice(o,r.length-d);if(f.length>R1||g.length>R1)return{hunks:[],addedCount:-1,removedCount:-1,identical:!1};const h=Q9(f,g),b=eW(f,g,h),y=[];let v=o,x=o,S=0,_=0;for(let j=0;j<o;j++)y.push({kind:"context",oldLine:j+1,newLine:j+1,content:s[j]});for(const j of b)j.kind==="context"?(v++,x++,y.push({kind:"context",oldLine:v,newLine:x,content:j.content})):j.kind==="remove"?(v++,_++,y.push({kind:"remove",oldLine:v,newLine:null,content:j.content})):(x++,S++,y.push({kind:"add",oldLine:null,newLine:x,content:j.content}));for(let j=0;j<d;j++){const E=s.length-d+j,T=r.length-d+j;y.push({kind:"context",oldLine:E+1,newLine:T+1,content:s[E]})}const A=S===0&&_===0;return{hunks:nW(y,t),addedCount:S,removedCount:_,identical:A}}function nW(n,e){const t=[];for(let r=0;r<n.length;r++)n[r].kind!=="context"&&t.push(r);if(t.length===0)return[];const s=[];for(const r of t){const o=Math.max(0,r-e),l=Math.min(n.length-1,r+e),d=s[s.length-1];d&&o<=d.end+1?d.end=Math.max(d.end,l):s.push({start:o,end:l})}return s.map(r=>{const o=n.slice(r.start,r.end+1);let l=0,d=0,u=0,f=0;for(const y of o)y.oldLine!==null&&(l===0&&(l=y.oldLine),u++),y.newLine!==null&&(d===0&&(d=y.newLine),f++);const g=l||(u===0?0:1),h=d||(f===0?0:1);return{header:`@@ -${g},${u} +${h},${f} @@`,oldStart:g,oldCount:u,newStart:h,newCount:f,lines:o}})}function A1(n){return JSON.stringify(iy(n),null,2)}function iy(n){if(Array.isArray(n))return n.map(iy);if(n&&typeof n=="object"){const e=n,t={};for(const s of Object.keys(e).sort())t[s]=iy(e[s]);return t}return n}const sW={display:"flex",flexDirection:"column",height:"100%",minHeight:0},rW={display:"flex",alignItems:"center",gap:8,padding:"12px 16px",borderBottom:"1px solid #e2e8f0",background:"#f8fafc"},oW={display:"inline-flex",alignItems:"center",gap:4,padding:"4px 10px",borderRadius:6,border:"1px solid #cbd5e1",background:"#ffffff",color:"#0f172a",fontSize:12,fontWeight:600,cursor:"pointer",outline:"none"},aW={marginLeft:"auto",border:"none",background:"transparent",fontSize:16,color:"#64748b",cursor:"pointer",outline:"none"},iW={display:"flex",alignItems:"center",gap:12,padding:"8px 16px",borderBottom:"1px solid #e2e8f0",background:"#ffffff",fontSize:12,fontWeight:600},lW={flex:1,minHeight:0,overflow:"auto",background:"#ffffff",fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace',fontSize:12,lineHeight:1.5},T1={padding:"24px 12px",textAlign:"center",color:"#94a3b8",fontSize:13},cW={padding:"2px 12px",background:"#f1f5f9",color:"#64748b",borderTop:"1px solid #e2e8f0",borderBottom:"1px solid #e2e8f0",userSelect:"none"};function dW(n){return n==="add"?{row:{background:"#e6ffed"},gutter:{background:"#cdffd8",color:"#22863a"},sign:"+",signColor:"#22863a"}:n==="remove"?{row:{background:"#ffeef0"},gutter:{background:"#ffdce0",color:"#b31d28"},sign:"-",signColor:"#b31d28"}:{row:{background:"#ffffff"},gutter:{background:"#f8fafc",color:"#94a3b8"},sign:" ",signColor:"#94a3b8"}}const $1={display:"inline-block",width:44,textAlign:"right",padding:"0 6px",color:"#94a3b8",userSelect:"none",borderRight:"1px solid #e2e8f0",whiteSpace:"nowrap"};function uW({oldVersion:n,newVersion:e,oldContent:t,newContent:s,t:r,onBack:o,onClose:l}){const d=w.useMemo(()=>{const f=A1(t),g=A1(s);return tW(f,g)},[t,s]),u=d.addedCount<0;return a.jsxs("div",{className:"g7le-version-diff","data-testid":"g7le-version-diff",style:sW,children:[a.jsxs("div",{"data-modal-drag-handle":!0,style:rW,children:[a.jsxs("button",{type:"button",onClick:o,style:oW,"data-testid":"g7le-version-diff-back",children:["← ",r("layout_editor.version_history.diff_back")]}),a.jsx("span",{style:{fontSize:14,fontWeight:700},"data-testid":"g7le-version-diff-title",children:r("layout_editor.version_history.diff_title",{old:n,new:e})}),a.jsx("button",{type:"button","aria-label":r("layout_editor.version_history.close"),onClick:l,style:aW,"data-testid":"g7le-version-diff-close",children:"✕"})]}),!u&&a.jsxs("div",{style:iW,"data-testid":"g7le-version-diff-summary",children:[a.jsx("span",{style:{color:"#16a34a"},"data-testid":"g7le-version-diff-added",children:r("layout_editor.version_history.added",{count:Math.max(0,d.addedCount)})}),a.jsx("span",{style:{color:"#dc2626"},"data-testid":"g7le-version-diff-removed",children:r("layout_editor.version_history.removed",{count:Math.max(0,d.removedCount)})})]}),a.jsx("div",{style:lW,children:u?a.jsx("div",{style:T1,"data-testid":"g7le-version-diff-too-large",children:r("layout_editor.version_history.diff_too_large")}):d.identical?a.jsx("div",{style:T1,"data-testid":"g7le-version-diff-identical",children:r("layout_editor.version_history.diff_identical")}):d.hunks.map((f,g)=>a.jsxs("div",{"data-testid":`gLine truncated
`:"",n.message]})]}),a.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:8,flexWrap:"wrap"},children:[n.kind==="unauthorized"&&a.jsx("button",{type:"button","data-testid":"g7le-access-error-action-signin",onClick:l,style:My,children:e("layout_editor.access_error.action.sign_in")}),n.kind==="forbidden"&&a.jsx("button",{type:"button","data-testid":"g7le-access-error-action-home",onClick:r,style:My,children:e("layout_editor.access_error.action.go_home")}),(n.kind==="not_found"||n.kind==="server_error"||n.kind==="network"||n.kind==="unknown")&&a.jsx("button",{type:"button","data-testid":"g7le-access-error-action-retry",onClick:o,style:My,children:e("layout_editor.access_error.action.retry")}),n.kind!=="unauthorized"&&a.jsx("button",{type:"button","data-testid":"g7le-access-error-action-home-secondary",onClick:r,style:dG,children:e("layout_editor.access_error.action.go_admin_home")})]})]})]})}const My={padding:"8px 16px",background:"#2563eb",color:"#fff",border:"1px solid #1d4ed8",borderRadius:6,fontSize:13,fontWeight:600,cursor:"pointer"},dG={padding:"8px 16px",background:"#fff",color:"#475569",border:"1px solid #cbd5e1",borderRadius:6,fontSize:13,fontWeight:500,cursor:"pointer"};function uG(n){const e=window;if(typeof e>"u")return{getSnapshot:()=>({globalState:{},localState:{}}),restore:()=>{}};const t=e.G7Core||{},s={templateApp:e.__templateApp,g7CoreState:t.state,g7CoreDispatch:t.dispatch,g7CoreData:t.data,g7CoreModal:t.modal,g7CoreToast:t.toast};let r={...n.initialGlobalState??{}};r._local||(r._local={});const o=[],l=()=>{const f={globalState:{...r},localState:{...r._local??{}}};for(const g of o)try{g(r)}catch{}n.onChange?.(f)},d={},u={getGlobalState:()=>r,setGlobalState:(f,g)=>{typeof f=="function"?r=f(r):r={...r,...f},l()},onGlobalStateChange:f=>(o.push(f),()=>{const g=o.indexOf(f);g>=0&&o.splice(g,1)}),get globalState(){return r},getActionDispatcher:()=>n.actionDispatcher,getDataSource:f=>d[f]??null,setDataSource:(f,g)=>{d[f]=g},refetchDataSource:async f=>null,updateDataSourceItem:(f,g,h)=>d[f]??null,getLocale:()=>n.locale,changeLocale:f=>{},getRouter:()=>({navigate:()=>{},replace:()=>{},push:()=>{}}),updateQueryParams:()=>{}};return e.__templateApp=u,t&&typeof t.dispatch=="function"&&(t.dispatch=(f,g)=>{try{return n.actionDispatcher.executeAction(f,g??{})}catch{return}}),t&&typeof t.modal=="object"&&t.modal!==null&&(t.modal={...t.modal,open:()=>{},close:()=>{},closeAll:()=>{}}),t&&typeof t.toast=="object"&&t.toast!==null&&(t.toast={...t.toast,push:()=>{},dismiss:()=>{}}),{getSnapshot:()=>({globalState:{...r},localState:{...r._local??{}}}),restore:()=>{e.__templateApp===u&&(e.__templateApp=s.templateApp),e.G7Core&&(s.g7CoreState!==void 0&&(e.G7Core.state=s.g7CoreState),s.g7CoreDispatch!==void 0&&(e.G7Core.dispatch=s.g7CoreDispatch),s.g7CoreData!==void 0&&(e.G7Core.data=s.g7CoreData),s.g7CoreModal!==void 0&&(e.G7Core.modal=s.g7CoreModal),s.g7CoreToast!==void 0&&(e.G7Core.toast=s.g7CoreToast)),o.length=0}}}const fG=new Set(["id","userId","postId","orderId","productId","categoryId","commentId","noticeId","inquiryId","addressId","wishlistId","notificationId","roleId","menuId"]);function pG(n){if(!n)return{};const e={},t=/:([a-zA-Z_][a-zA-Z0-9_]*)/g;let s;for(;(s=t.exec(n))!==null;){const r=s[1];e[r]=gG(r)}return e}function gG(n){return fG.has(n)||/Id$|_id$/.test(n)?"1":"sample"}const hG=Ht("LayoutEditor");function Zc(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Xf(n){if(Array.isArray(n))return n.map(e=>Xf(e));if(Zc(n)){const e={};for(const[t,s]of Object.entries(n))e[t]=Xf(s);return e}return n}function h7(n,e="",t=new Set){for(const[s,r]of Object.entries(n)){const o=e?`${e}.${s}`:s;Zc(r)?h7(r,o,t):t.add(o)}return t}function m7(n,e,t,s,r,o=""){for(const[l,d]of Object.entries(e)){const u=o?`${o}.${l}`:l;if(t.has(u)){r(`[LayoutEditor] sampleGlobal key conflict: extension '${s}' override of core key '${u}' ignored`);continue}const f=n[l];Zc(d)&&Zc(f)?m7(f,d,t,s,r,u):n[l]=Xf(d)}}function zy(n){const e=n.warn??(r=>hG.warn(r)),t=Xf(n.coreSeed??{});n.isGuestOnly&&"currentUser"in t&&delete t.currentUser;const s=h7(t);for(const r of n.sources)Zc(r.sampleGlobal)&&m7(t,r.sampleGlobal,s,r.id,e);return n.isGuestOnly&&"currentUser"in t&&delete t.currentUser,t}function mG(n){const e={};if(!n||typeof n!="object"||Array.isArray(n))return e;for(const[t,s]of Object.entries(n))t.startsWith("$")&&(e[t]=s);return e}function yG(n){const e={};if(!n||typeof n!="object"||Array.isArray(n))return e;for(const[t,s]of Object.entries(n))t.startsWith("$")||(e[t]=s);return e}function bG(n){if(typeof n!="string")return null;const e=/^\s*\{\{\s*([\s\S]*?)\s*\}\}\s*$/.exec(n);if(!e)return null;let t=e[1];const s=t.indexOf("??");return s>=0&&(t=t.slice(0,s)),t=t.replace(/\?\./g,".").replace(/\s+/g,""),t===""||!/^[A-Za-z_$][A-Za-z0-9_$]*(\.[A-Za-z_$][A-Za-z0-9_$]*)*$/.test(t)?null:t.split(".")}function xG(n,e){const t=bG(e);if(!t||t.length===0)return n;let s=n;for(let l=0;l<t.length;l++){if(s==null||typeof s!="obj Line truncated
//# sourceMappingURL=template-engine.min.js.map
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"template-engine.min.js","sources":["../../../node_modules/react/cjs/react.production.js","../../../node_modules/react/index.js","../../../node_modules/scheduler/cjs/scheduler.production.js","../../../node_modules/scheduler/index.js","../../../node_modules/react-dom/cjs/react-dom.production.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/cjs/react-dom-client.production.js","../../../node_modules/react-dom/client.js","../../../resources/js/core/utils/Logger.ts","../../../resources/js/core/template-engine/ComponentRegistry.ts","../../../resources/js/core/template-engine/TranslationEngine.ts","../../../resources/js/core/template-engine/PipeRegistry.ts","../../../resources/js/core/template-engine/rawMarkers.ts","../../../resources/js/core/template-engine/DataBindingEngine.ts","../../../resources/js/core/template-engine/ResponsiveManager.ts","../../../resources/js/core/template-engine/helpers/ConditionEvaluator.ts","../../../resources/js/core/template-engine/helpers/RenderHelpers.ts","../../../node_modules/axios/lib/helpers/bind.js","../../../node_modules/axios/lib/utils.js","../../../node_modules/axios/lib/core/AxiosError.js","../../../node_modules/axios/lib/helpers/null.js","../../../node_modules/axios/lib/helpers/toFormData.js","../../../node_modules/axios/lib/helpers/AxiosURLSearchParams.js","../../../node_modules/axios/lib/helpers/buildURL.js","../../../node_modules/axios/lib/core/InterceptorManager.js","../../../node_modules/axios/lib/defaults/transitional.js","../../../node_modules/axios/lib/platform/browser/index.js","../../../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","../../../node_modules/axios/lib/platform/browser/classes/FormData.js","../../../node_modules/axios/lib/platform/browser/classes/Blob.js","../../../node_modules/axios/lib/platform/common/utils.js","../../../node_modules/axios/lib/platform/index.js","../../../node_modules/axios/lib/helpers/toURLEncodedForm.js","../../../node_modules/axios/lib/helpers/formDataToJSON.js","../../../node_modules/axios/lib/defaults/index.js","../../../node_modules/axios/lib/helpers/parseHeaders.js","../../../node_modules/axios/lib/core/AxiosHeaders.js","../../../node_modules/axios/lib/core/transformData.js","../../../node_modules/axios/lib/cancel/isCancel.js","../../../node_modules/axios/lib/cancel/CanceledError.js","../../../node_modules/axios/lib/core/settle.js","../../../node_modules/axios/lib/helpers/parseProtocol.js","../../../node_modules/axios/lib/helpers/speedometer.js","../../../node_modules/axios/lib/helpers/throttle.js","../../../node_modules/axios/lib/helpers/progressEventReducer.js","../../../node_modules/axios/lib/helpers/isURLSameOrigin.js","../../../node_modules/axios/lib/helpers/cookies.js","../../../node_modules/axios/lib/helpers/isAbsoluteURL.js","../../../node_modules/axios/lib/helpers/combineURLs.js","../../../node_modules/axios/lib/core/buildFullPath.js","../../../node_modules/axios/lib/core/mergeConfig.js","../../../node_modules/axios/lib/helpers/resolveConfig.js","../../../node_modules/axios/lib/adapters/xhr.js","../../../node_modules/axios/lib/helpers/composeSignals.js","../../../node_modules/axios/lib/helpers/trackStream.js","../../../node_modules/axios/lib/adapters/fetch.js","../../../node_modules/axios/lib/adapters/adapters.js","../../../node_modules/axios/lib/core/dispatchRequest.js","../../../node_modules/axios/lib/env/data.js","../../../node_modules/axios/lib/helpers/validator.js","../../../node_modules/axios/lib/core/Axios.js","../../../node_modules/axios/lib/cancel/CancelToken.js","../../../node_modules/axios/lib/helpers/spread.js","../../../node_modules/axios/lib/helpers/isAxiosError.js","../../../node_modules/axios/lib/helpers/HttpStatusCode.js","../../../node_modules/axios/lib/axios.js","../../../node_modules/axios/index.js","../../../resources/js/core/api/ApiClient.ts","../../../resources/js/core/auth/AuthManager.ts","../../../resources/js/core/types/ErrorHandling.ts","../../../resources/js/core/error/ErrorHandlingResolver.ts","../../../node_modules/react/cjs/react-jsx-runtime.production.js","../../../node_modules/react/jsx-runtime.js","../../../resources/js/core/template-engine/ParentContextProvider.tsx","../../../resources/js/core/identity/types.ts","../../../resources/js/core/identity/IdentityGuardInterceptor.ts","../../../resources/js/core/template-engine/ActionDispatcher.ts","../../../resources/js/core/template-engine/TransitionManager.ts","../../../resources/js/core/template-engine/TransitionContext.tsx","../../../resources/js/core/template-engine/ResponsiveContext.tsx","../../../resources/js/core/hooks/useControllableState.ts","../../../resources/js/core/template-engine/FormContext.tsx","../../../resources/js/core/template-engine/IsolatedStateContext.tsx","../../../node_modules/@dnd-kit/utilities/dist/utilities.esm.js","../../../node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js","../../../node_modules/@dnd-kit/core/dist/core.esm.jLine truncated
{"version":3,"file":"template-engine.min.js","sources":["../../../node_modules/react/cjs/react.production.js","../../../node_modules/react/index.js","../../../node_modules/scheduler/cjs/scheduler.production.js","../../../node_modules/scheduler/index.js","../../../node_modules/react-dom/cjs/react-dom.production.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/cjs/react-dom-client.production.js","../../../node_modules/react-dom/client.js","../../../resources/js/core/utils/Logger.ts","../../../resources/js/core/template-engine/ComponentRegistry.ts","../../../resources/js/core/template-engine/TranslationEngine.ts","../../../resources/js/core/template-engine/PipeRegistry.ts","../../../resources/js/core/template-engine/rawMarkers.ts","../../../resources/js/core/template-engine/DataBindingEngine.ts","../../../resources/js/core/template-engine/ResponsiveManager.ts","../../../resources/js/core/template-engine/helpers/ConditionEvaluator.ts","../../../resources/js/core/template-engine/helpers/RenderHelpers.ts","../../../node_modules/axios/lib/helpers/bind.js","../../../node_modules/axios/lib/utils.js","../../../node_modules/axios/lib/helpers/parseHeaders.js","../../../node_modules/axios/lib/helpers/sanitizeHeaderValue.js","../../../node_modules/axios/lib/core/AxiosHeaders.js","../../../node_modules/axios/lib/core/AxiosError.js","../../../node_modules/axios/lib/helpers/null.js","../../../node_modules/axios/lib/helpers/toFormData.js","../../../node_modules/axios/lib/helpers/AxiosURLSearchParams.js","../../../node_modules/axios/lib/helpers/buildURL.js","../../../node_modules/axios/lib/core/InterceptorManager.js","../../../node_modules/axios/lib/defaults/transitional.js","../../../node_modules/axios/lib/platform/browser/index.js","../../../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","../../../node_modules/axios/lib/platform/browser/classes/FormData.js","../../../node_modules/axios/lib/platform/browser/classes/Blob.js","../../../node_modules/axios/lib/platform/common/utils.js","../../../node_modules/axios/lib/platform/index.js","../../../node_modules/axios/lib/helpers/toURLEncodedForm.js","../../../node_modules/axios/lib/helpers/formDataToJSON.js","../../../node_modules/axios/lib/defaults/index.js","../../../node_modules/axios/lib/core/transformData.js","../../../node_modules/axios/lib/cancel/isCancel.js","../../../node_modules/axios/lib/cancel/CanceledError.js","../../../node_modules/axios/lib/core/settle.js","../../../node_modules/axios/lib/helpers/parseProtocol.js","../../../node_modules/axios/lib/helpers/speedometer.js","../../../node_modules/axios/lib/helpers/throttle.js","../../../node_modules/axios/lib/helpers/progressEventReducer.js","../../../node_modules/axios/lib/helpers/isURLSameOrigin.js","../../../node_modules/axios/lib/helpers/cookies.js","../../../node_modules/axios/lib/helpers/isAbsoluteURL.js","../../../node_modules/axios/lib/helpers/combineURLs.js","../../../node_modules/axios/lib/core/buildFullPath.js","../../../node_modules/axios/lib/core/mergeConfig.js","../../../node_modules/axios/lib/helpers/resolveConfig.js","../../../node_modules/axios/lib/adapters/xhr.js","../../../node_modules/axios/lib/helpers/composeSignals.js","../../../node_modules/axios/lib/helpers/trackStream.js","../../../node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js","../../../node_modules/axios/lib/env/data.js","../../../node_modules/axios/lib/adapters/fetch.js","../../../node_modules/axios/lib/adapters/adapters.js","../../../node_modules/axios/lib/core/dispatchRequest.js","../../../node_modules/axios/lib/helpers/validator.js","../../../node_modules/axios/lib/core/Axios.js","../../../node_modules/axios/lib/cancel/CancelToken.js","../../../node_modules/axios/lib/helpers/spread.js","../../../node_modules/axios/lib/helpers/isAxiosError.js","../../../node_modules/axios/lib/helpers/HttpStatusCode.js","../../../node_modules/axios/lib/axios.js","../../../node_modules/axios/index.js","../../../resources/js/core/identity/types.ts","../../../resources/js/core/identity/IdentityGuardInterceptor.ts","../../../resources/js/core/api/ApiClient.ts","../../../resources/js/core/auth/AuthManager.ts","../../../resources/js/core/types/ErrorHandling.ts","../../../resources/js/core/error/ErrorHandlingResolver.ts","../../../node_modules/react/cjs/react-jsx-runtime.production.js","../../../node_modules/react/jsx-runtime.js","../../../resources/js/core/template-engine/ParentContextProvider.tsx","../../../resources/js/core/template-engine/ActionDispatcher.ts","../../../resources/js/core/template-engine/TransitionManager.ts","../../../resources/js/core/template-engine/TransitionContext.tsx","../../../resources/js/core/template-engine/ResponsiveContext.tsx","../../../resources/js/core/hooks/useControllableState.ts","../../../resources/js/core/template-engine/FormContext.tsx","../../../resources/js/core/template-engine/IsolatedStateContext.tsx","../../../node_modules/@dnd-kit/utilities/dist/utiliLine truncated
+4 -3
View File
@@ -1,16 +1,17 @@
{
"resources/css/app.css": {
"file": "assets/app-vMwpJt-1.css",
"file": "assets/app-wg6V8t2K.css",
"src": "resources/css/app.css",
"isEntry": true,
"name": "app",
"names": [
"app.css"
]
},
"resources/js/app.js": {
"file": "assets/app-Bj43h_rG.js",
"file": "assets/app-UyRVujZY.js",
"name": "app",
"src": "resources/js/app.js",
"isEntry": true
}
}
}
+18 -3
View File
@@ -137,6 +137,21 @@ class ValidationApi
throw new Exception(lang('error_db_credentials_required'));
}
// DB 테이블 접두사 길이 검증 (Write DB 입력에만 적용)
// 접두사가 길면 자동 생성 인덱스명이 MySQL identifier 한도(64자)를 초과해
// 일부 확장 설치 시 마이그레이션이 실패하므로 연결 시도 전에 차단한다.
if (! $isReadDb) {
$tablePrefix = (string) ($input['db_prefix'] ?? '');
if (strlen($tablePrefix) > MAX_DB_PREFIX_LENGTH) {
throw new Exception(
lang('error_db_prefix_too_long', [
'max' => MAX_DB_PREFIX_LENGTH,
'current' => strlen($tablePrefix),
])
);
}
}
// 데이터베이스 연결 시도
$pdo = getDatabaseConnection($config, $isReadDb);
@@ -162,12 +177,12 @@ class ValidationApi
$message = lang('success_db_write_connected');
}
// 기존 테이블 감지 (Write DB만 수행 — 이슈 #244 대응)
// 기존 테이블 감지 (Write DB만 수행)
// 사용자가 입력한 db_prefix를 g7 시그니처에 적용하여 정확히 비교
$existingTables = null;
if (!$isReadDb) {
$tablePrefix = (string) ($input['db_prefix'] ?? 'g7_');
$existingTables = checkExistingTables($pdo, $database, $tablePrefix);
$detectPrefix = ($input['db_prefix'] ?? '') !== '' ? (string) $input['db_prefix'] : 'g7_';
$existingTables = checkExistingTables($pdo, $database, $detectPrefix);
}
// 성공 응답
+15 -4
View File
@@ -73,7 +73,7 @@ class StateManagementApi
// state.json 파일 실제 존재 여부 (getInstallationState는 부재 시 DEFAULT_INSTALLATION_STATE를 반환하므로
// isset($state['installation_status']) 로는 "기본 상태"와 "실제 파일 상태"를 구분할 수 없다)
$stateFileExists = file_exists(STATE_PATH);
$installedFlagPath = BASE_PATH . '/storage/app/g7_installed';
$installedFlagPath = BASE_PATH.'/storage/app/g7_installed';
// 현재 설치 상태 조회
$state = getInstallationState();
@@ -81,7 +81,7 @@ class StateManagementApi
// installation_status 값을 status로 매핑
$status = 'pending';
if (!$stateFileExists && file_exists($installedFlagPath)) {
if (! $stateFileExists && file_exists($installedFlagPath)) {
// state.json 삭제 + g7_installed 플래그 존재 → 설치 완료 후 정리된 상태
// 폴링이 완료 시점을 놓치면 이후 주기에서 이 분기로 completed 전환
$status = 'completed';
@@ -189,7 +189,7 @@ class StateManagementApi
// 상태 저장
$saved = saveInstallationState($state);
if (!$saved) {
if (! $saved) {
throw new Exception(lang('state_save_failed'));
}
@@ -280,7 +280,7 @@ class StateManagementApi
$state['abort_reason'] = 'User requested';
// 롤백 실패 정보 저장 (새로고침 후에도 표시용)
if (isset($rollbackResult['success']) && !$rollbackResult['success']) {
if (isset($rollbackResult['success']) && ! $rollbackResult['success']) {
$state['rollback_failure'] = [
'task' => $rollbackResult['task'] ?? null,
'message' => $rollbackResult['message'] ?? null,
@@ -356,6 +356,17 @@ require_once __DIR__.'/../includes/installer-state.php';
// 롤백 함수 로드 (reset, abort 액션에서 필요)
require_once __DIR__.'/rollback-functions.php';
// 설치 완료 후 진입 차단 (KVE-2026-1056)
// finalize 전용 가드 — `.env` 의 INSTALLER_COMPLETED=true 단독으로만 차단한다.
// 일반 가드(installer_guard_or_410)는 `g7_installed` 락 파일도 차단 사유로 삼는데,
// 그 락 파일은 마지막 task `complete_flag` 가 먼저 생성한다. 그 직후에도 본 엔드포인트의
// action=get 폴링(1초 간격)이 계속되어 `completed` 상태를 받아야 완료 화면으로 전환되므로,
// 락 파일 기준으로 차단하면 정상 설치가 "진행 중"에 고착되는 자가 차단 회귀가 발생한다.
// 완전 완료 신호인 `.env` 플래그를 기준으로 삼아 get/reset/abort 를
// 일괄 차단하면서 폴링 구간은 비파괴로 통과시킨다.
require_once __DIR__.'/_guard.php';
installer_guard_finalize_or_410();
// 다국어 로드
$currentLang = getCurrentLanguage();
$translations = loadTranslations($currentLang);
+12 -3
View File
@@ -987,7 +987,7 @@
const result = await response.json();
if (result.success) {
// Write DB 기존 테이블 감지: 인라인 상세 카드로 표시 (이슈 #244 대응)
// Write DB 기존 테이블 감지: 인라인 상세 카드로 표시
// 요구사항: 모달 대신 페이지 본문에 즉시 노출, 백업 동의 체크박스로
// 다음 단계 진행 여부 제어. 실제 삭제는 Step 5의 db_cleanup task에서 수행.
let existingCardHtml = '';
@@ -1149,7 +1149,7 @@
write: false,
read: false
},
// 기존 DB 테이블 감지 시 삭제 동의 추적 (이슈 #244)
// 기존 DB 테이블 감지 시 삭제 동의 추적
dbCleanup: {
required: false, // Write DB 테스트 결과 기존 테이블 감지 여부
consented: false, // 사용자가 백업 완료 + 삭제 동의 체크 여부
@@ -1450,6 +1450,15 @@
showFieldError(field, getLangMessage('validation_alpha_num_underscore').replace(':field', getLangMessage('fields.db_prefix')));
return false;
}
// 접두사 길이 제한 — 길면 자동 생성 인덱스명이 DB 한도(64자)를 초과한다.
// 서버 MAX_DB_PREFIX_LENGTH 와 동일한 값을 유지한다.
var maxPrefixLength = field.maxLength && field.maxLength > 0 ? field.maxLength : 6;
if (value.length > maxPrefixLength) {
showFieldError(field, getLangMessage('error_db_prefix_too_long')
.replace(':max', maxPrefixLength)
.replace(':current', value.length));
return false;
}
}
// 관리자 이름 검증
@@ -2978,7 +2987,7 @@
}
/**
* 기존 DB 테이블 경고 모달 표시 (이슈 #244 대응).
* 기존 DB 테이블 경고 모달 표시.
*
* DB 테스트 배지를 클릭하면 호출되며, 사용자에게 백업 안내 + 강제 진행 옵션을 제공합니다.
* "기존 테이블 모두 삭제 후 설치"를 선택하면 sessionStorage에 existing_db_action=drop_tables 저장.
+8
View File
@@ -74,6 +74,14 @@ if (!defined('MIN_DISK_SPACE_MB')) {
define('MIN_DISK_SPACE_MB', 500);
}
// DB 테이블 접두사 최대 길이.
// MySQL identifier 한도(64자) 안에서 자동 생성 인덱스명이 안전하도록 제한한다.
// 가장 긴 자동 생성 인덱스명(접두사 제외)이 58자이므로 58 + 6 = 64 로 정확히 한도에 맞는다.
// 7자 이상 접두사는 일부 인덱스명이 65자가 되어 마이그레이션이 실패한다.
if (!defined('MAX_DB_PREFIX_LENGTH')) {
define('MAX_DB_PREFIX_LENGTH', 6);
}
// 디렉토리 권한 설정 (8진수)
// 업계 표준 755 (WordPress/Drupal/Joomla/Laravel 공통) — 실제 통과 기준은 is_writable() && is_readable()
if (!defined('REQUIRED_DIRECTORY_PERMISSIONS')) {
+31 -1
View File
@@ -1191,7 +1191,7 @@ function getPermissionFixCommand(string $pathList, string $mode = 'ownership'):
/**
* 기존 DB 테이블 감지 (이슈 #244 대응).
* 기존 DB 테이블 감지.
*
* Write DB에 테이블이 존재하는지 확인하고, G7 시그니처 테이블과 비교하여
* 설치 진행 가능 여부를 판정합니다.
@@ -1256,3 +1256,33 @@ function checkExistingTables(PDO $pdo, string $database, string $tablePrefix = '
'severity' => $severity,
];
}
if (!function_exists('filterTablesByPrefix')) {
/**
* 기존 테이블 목록을 db_prefix 로 필터링합니다.
*
* drop_tables 동의의 의미는 "이 prefix 로 설치되는 G7 테이블을 지우고 다시 설치"이므로,
* 입력한 prefix 로 시작하는 테이블만 삭제 대상으로 선별합니다. prefix 가 없는
* 다른 애플리케이션/이전 설치의 테이블은 동일 DB 를 공유하더라도 보존합니다.
*
* 빈 prefix 는 전체 일치가 되어 모든 테이블이 삭제되는 위험이 있으므로,
* 데이터 손실 방어를 위해 빈 목록(삭제 대상 없음)을 반환합니다.
*
* @param array $tables SHOW TABLES 로 조회한 전체 테이블 목록
* @param string $prefix 사용자가 입력한 테이블 prefix (예: 'g7_')
* @return array prefix 로 시작하는 테이블만 담은 목록
*/
function filterTablesByPrefix(array $tables, string $prefix): array
{
if ($prefix === '') {
return [];
}
$prefixLength = strlen($prefix);
return array_values(array_filter(
$tables,
fn ($table) => strncmp((string) $table, $prefix, $prefixLength) === 0
));
}
}
+11 -3
View File
@@ -873,11 +873,14 @@ if (!function_exists('dependencyPrecheckSSE')) {
if (!function_exists('cleanupExistingTablesSSE')) {
/**
* 기존 DB 테이블 정리 (이슈 #244 대응).
* 기존 DB 테이블 정리.
*
* state.json의 existing_db_action 값에 따라 기존 테이블을 삭제합니다.
* - skip (또는 null): 작업 없이 건너뛰기
* - drop_tables: FOREIGN_KEY_CHECKS=0 → 모든 테이블 DROP → FOREIGN_KEY_CHECKS=1
* - drop_tables: FOREIGN_KEY_CHECKS=0 → db_prefix 로 시작하는 테이블만 DROP → FOREIGN_KEY_CHECKS=1
*
* prefix 없는 타 테이블까지 삭제하던 결함 수정. db_prefix 로 시작하는
* 테이블만 선별 삭제하며, 빈 prefix 는 데이터 손실 방어로 삭제를 수행하지 않는다.
*/
function cleanupExistingTablesSSE(): array
{
@@ -907,9 +910,14 @@ if (!function_exists('cleanupExistingTablesSSE')) {
try {
$pdo = getDatabaseConnection($config, false);
$database = $config['db_write_database'] ?? '';
$prefix = (string) ($config['db_prefix'] ?? 'g7_');
$stmt = $pdo->query('SHOW TABLES');
$tables = $stmt ? $stmt->fetchAll(PDO::FETCH_COLUMN) : [];
$allTables = $stmt ? $stmt->fetchAll(PDO::FETCH_COLUMN) : [];
// 입력한 db_prefix 로 시작하는 테이블만 삭제 대상으로 선별.
// prefix 없는 타 애플리케이션/이전 설치 테이블은 동일 DB 라도 보존한다.
$tables = filterTablesByPrefix($allTables, $prefix);
if (empty($tables)) {
sendSSEEvent('log', ['message' => lang('log_db_cleanup_empty')]);
+9 -8
View File
@@ -94,7 +94,7 @@ return [
'db_username' => 'Username',
'db_password' => 'Password',
'db_prefix' => 'Table Prefix',
'db_prefix_hint' => 'Prefix added to all table names. (e.g., g7_users, g7_posts)',
'db_prefix_hint' => 'Prefix added to all table names. (e.g., g7_users, g7_posts) Up to 6 characters.',
'db_prefix_placeholder' => 'g7_',
'test_write_db_connection' => 'Test Write DB Connection',
'test_read_db_connection' => 'Test Read DB Connection',
@@ -171,6 +171,7 @@ return [
'error_db_name_required' => 'Database name is required.',
'error_db_username_required' => 'Database username is required.',
'error_db_credentials_required' => 'Database name and username are required.',
'error_db_prefix_too_long' => 'Table prefix may be up to :max characters. (entered: :current) A long prefix makes some table index names exceed the database identifier limit.',
'error_db_privileges_insufficient' => 'Insufficient database privileges.',
'error_db_not_tested' => 'Please test the database connection first.',
'error_write_db_not_tested' => 'Please test Write DB connection first.',
@@ -594,7 +595,7 @@ Firewalls or proxies may be blocking long-lived HTTP connections.',
'dependency_missing_tooltip' => 'Please resolve dependencies first',
'dependency_precheck_failed' => 'Dependency precheck failed — return to Step 4 and select the missing modules/plugins',
// Step 3 existing database detection (issue #244)
// Step 3 existing database detection
'db_existing_g7_badge' => 'Existing G7 installation detected',
'db_existing_foreign_badge' => 'Foreign data detected',
'db_existing_mixed_badge' => 'Mixed G7 + foreign tables',
@@ -602,15 +603,15 @@ Firewalls or proxies may be blocking long-lived HTTP connections.',
'db_existing_foreign_title' => 'Foreign Data Detected',
'db_existing_mixed_title' => 'Mixed Data Detected',
'db_existing_generic_title' => 'Existing Tables Detected',
'db_existing_g7_desc' => 'The selected database already contains a G7 installation. Forcing the install will delete all existing data. Back up first.',
'db_existing_foreign_desc' => 'The selected database contains unknown tables. Forcing the install will drop all of them. Consider using another database or back up first.',
'db_existing_mixed_desc' => 'The selected database contains a mix of G7 and other tables. Forcing the install will drop all of them.',
'db_existing_generic_desc' => 'The selected database contains existing tables. Forcing the install will drop all of them.',
'db_existing_g7_desc' => 'The selected database already contains a G7 installation. Forcing the install will drop the existing G7 tables that start with the table prefix you entered. Back up first.',
'db_existing_foreign_desc' => 'The selected database contains unknown tables. Forcing the install will only drop tables that start with the table prefix you entered; tables with a different prefix are preserved. Back up first.',
'db_existing_mixed_desc' => 'The selected database contains a mix of G7 and other tables. Forcing the install will only drop tables that start with the table prefix you entered; tables with a different prefix are preserved.',
'db_existing_generic_desc' => 'The selected database contains existing tables. Forcing the install will only drop tables that start with the table prefix you entered.',
'db_existing_tables_list' => 'Detected tables (up to 20):',
'db_backup_guide' => 'Backup command example (verify host/user/database before running):',
'db_backup_confirmed' => 'I have backed up and agree that all existing tables will be dropped',
'db_backup_confirmed' => 'I have backed up and agree that existing tables starting with my table prefix will be dropped',
'error_db_cleanup_consent_required' => 'You must consent to dropping existing tables before proceeding to the next step.',
'db_force_proceed_drop' => 'Drop all existing tables and install',
'db_force_proceed_drop' => 'Drop existing tables and install',
'db_force_proceed_confirmed' => 'Force install mode (existing tables will be dropped)',
'log_db_cleanup_skipped' => 'Skipping existing table cleanup (no action)',
'log_db_cleanup_empty' => 'No existing tables. Skipping cleanup.',
+9 -8
View File
@@ -94,7 +94,7 @@ return [
'db_username' => '사용자명',
'db_password' => '비밀번호',
'db_prefix' => '테이블 접두사',
'db_prefix_hint' => '모든 테이블명 앞에 붙는 접두사입니다. (예: g7_users, g7_posts)',
'db_prefix_hint' => '모든 테이블명 앞에 붙는 접두사입니다. (예: g7_users, g7_posts) 최대 6자까지 입력할 수 있습니다.',
'db_prefix_placeholder' => 'g7_',
'test_write_db_connection' => 'Write DB 연결 테스트',
'test_read_db_connection' => 'Read DB 연결 테스트',
@@ -171,6 +171,7 @@ return [
'error_db_name_required' => '데이터베이스 이름은 필수입니다.',
'error_db_username_required' => '데이터베이스 사용자명을 입력해주세요.',
'error_db_credentials_required' => '데이터베이스명과 사용자명은 필수입니다.',
'error_db_prefix_too_long' => '테이블 접두사는 최대 :max자까지 가능합니다. (입력: :current자) 접두사가 길면 일부 테이블의 인덱스명이 데이터베이스 한도를 초과합니다.',
'error_db_privileges_insufficient' => '데이터베이스에 필요한 권한이 부족합니다.',
'error_db_not_tested' => '데이터베이스 연결 테스트를 먼저 수행해주세요.',
'error_write_db_not_tested' => 'Write DB 연결 테스트를 먼저 수행해주세요.',
@@ -594,7 +595,7 @@ ini_set(\'zlib.output_compression\', \'off\');
'dependency_missing_tooltip' => '의존성을 먼저 해결해주세요',
'dependency_precheck_failed' => '의존성 사전 검증 실패 — Step 4로 돌아가 누락된 모듈/플러그인을 선택해주세요',
// Step 3 기존 DB 감지 (이슈 #244)
// Step 3 기존 DB 감지
'db_existing_g7_badge' => '기존 그누보드7 설치 감지',
'db_existing_foreign_badge' => '다른 데이터 감지',
'db_existing_mixed_badge' => 'G7 일부 + 다른 테이블 혼재',
@@ -602,15 +603,15 @@ ini_set(\'zlib.output_compression\', \'off\');
'db_existing_foreign_title' => '다른 데이터 감지',
'db_existing_mixed_title' => '데이터 혼재 감지',
'db_existing_generic_title' => '기존 테이블 감지',
'db_existing_g7_desc' => '선택한 DB에 이미 그누보드7이 설치되어 있습니다. 강제 진행 시 기존 데이터가 모두 삭제됩니다. 반드시 백업 후 진행하세요.',
'db_existing_foreign_desc' => '선택한 DB에 알 수 없는 테이블이 존재합니다. 강제 진행 시 모든 테이블이 삭제됩니다. 다른 DB를 사용하거나 반드시 백업 후 진행하세요.',
'db_existing_mixed_desc' => '선택한 DB에 G7 일부 테이블과 다른 테이블이 혼재합니다. 강제 진행 시 모든 테이블이 삭제됩니다.',
'db_existing_generic_desc' => '선택한 DB에 기존 테이블이 존재합니다. 강제 진행 시 모든 테이블이 삭제됩니다.',
'db_existing_g7_desc' => '선택한 DB에 이미 그누보드7이 설치되어 있습니다. 강제 진행 시 입력한 테이블 접두사로 시작하는 기존 그누보드7 테이블이 삭제됩니다. 반드시 백업 후 진행하세요.',
'db_existing_foreign_desc' => '선택한 DB에 알 수 없는 테이블이 존재합니다. 강제 진행 시 입력한 테이블 접두사로 시작하는 테이블만 삭제되며, 접두사가 다른 테이블은 보존됩니다. 반드시 백업 후 진행하세요.',
'db_existing_mixed_desc' => '선택한 DB에 G7 일부 테이블과 다른 테이블이 혼재합니다. 강제 진행 시 입력한 테이블 접두사로 시작하는 테이블만 삭제되며, 접두사가 다른 테이블은 보존됩니다.',
'db_existing_generic_desc' => '선택한 DB에 기존 테이블이 존재합니다. 강제 진행 시 입력한 테이블 접두사로 시작하는 테이블만 삭제됩니다.',
'db_existing_tables_list' => '감지된 테이블 (최대 20개):',
'db_backup_guide' => '백업 명령어 예시 (호스트/사용자/데이터베이스명 확인 후 실행하세요):',
'db_backup_confirmed' => '백업을 완료했으며, 기존 테이블이 모두 삭제되는 것에 동의합니다',
'db_backup_confirmed' => '백업을 완료했으며, 입력한 접두사로 시작하는 기존 테이블이 삭제되는 것에 동의합니다',
'error_db_cleanup_consent_required' => '기존 테이블 삭제에 동의하셔야 다음 단계로 진행할 수 있습니다.',
'db_force_proceed_drop' => '기존 테이블 모두 삭제 후 설치',
'db_force_proceed_drop' => '기존 테이블 삭제 후 설치',
'db_force_proceed_confirmed' => '강제 진행 모드 (설치 시 기존 테이블 삭제)',
'log_db_cleanup_skipped' => '기존 테이블 정리 건너뛰기 (액션 없음)',
'log_db_cleanup_empty' => '기존 테이블이 없습니다. 정리 건너뛰기',
+1
View File
@@ -73,6 +73,7 @@ $dbReadHash = getDatabaseFieldHash($formData, 'db_read');
class="form-input"
placeholder="<?= htmlspecialchars(lang('db_prefix_placeholder')) ?>"
pattern="^[a-z][a-z0-9_]*$"
maxlength="<?= MAX_DB_PREFIX_LENGTH ?>"
aria-invalid="false"
aria-describedby="db_prefix-error db_prefix-hint">
<small id="db_prefix-hint" class="form-hint">