/*!
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
@license Proprietary

This software is the confidential and proprietary property of Lenovo SSG BASD.
You shall not disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement.

--- Build Info ---
Version: 1.1.1
Build Time: 2026/2/26 17:21:00
Build Commit: 81e556ed827e2f043668506dae6fae8dbb9ef395
*/
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={isValidating:!1,isTouched:!1,isBlurred:!1,isDirty:!1,isPristine:!0,isValid:!0,isDefaultValue:!0,errors:[],errorMap:{},errorSourceMap:{}};exports.defaultFieldMeta=e,exports.metaHelper=function(t){function r(e,t){return`${e}[${t}]`}function a(e,a,s,n){const i=[r(e,a)];switch(s){case"swap":i.push(r(e,n));break;case"move":{const[t,s]=[Math.min(a,n),Math.max(a,n)];for(let a=t;a<=s;a++)i.push(r(e,a));break}default:{const s=t.getFieldValue(e),n=Array.isArray(s)?s.length:0;for(let t=a+1;t<n;t++)i.push(r(e,t));break}}return Object.keys(t.fieldInfo).filter(e=>i.some(t=>e.startsWith(t)))}function s(e,r){("up"===r?e:[...e].reverse()).forEach(e=>{const a=function(e,t){return e.replace(/\[(\d+)\]/,(e,r)=>{const a=parseInt(r,10);return`[${"up"===t?a+1:Math.max(0,a-1)}]`})}(e.toString(),r),s=t.getFieldMeta(a);s?t.setFieldMeta(e,s):t.setFieldMeta(e,n())})}const n=()=>e;return{handleArrayMove:function(e,n,i){const o=a(e,n,"move",i),l=Math.min(n,i),c=Math.max(n,i);for(let t=l;t<=c;t++)o.push(r(e,t));const u=Object.keys(t.fieldInfo).reduce((a,s)=>(s.startsWith(r(e,n))&&a.set(s,t.getFieldMeta(s)),a),new Map);s(o,n<i?"up":"down"),Object.keys(t.fieldInfo).filter(t=>t.startsWith(r(e,i))).forEach(a=>{const s=a.replace(r(e,i),r(e,n)),o=u.get(s);o&&t.setFieldMeta(a,o)})},handleArrayRemove:function(e,t){s(a(e,t,"remove"),"up")},handleArraySwap:function(e,s,n){a(e,s,"swap",n).forEach(a=>{if(!a.toString().startsWith(r(e,s)))return;const i=a.toString().replace(r(e,s),r(e,n)),[o,l]=[t.getFieldMeta(a),t.getFieldMeta(i)];o&&t.setFieldMeta(i,o),l&&t.setFieldMeta(a,l)})},handleArrayInsert:function(e,i){const o=a(e,i,"insert");s(o,"down"),o.forEach(a=>{a.toString().startsWith(r(e,i))&&t.setFieldMeta(a,n())})}}};