import{aO as qe,aE as Ke,a9 as ie,aS as We,aq as Ve,az as Ie,a4 as j,aA as w,at as oe,a3 as F,b9 as Ye,Y as Xe,ah as se,a as Je,aa as Ze,i as Se,h as Qe,d as ke,aw as P}from"./index-Dnn4Ov4L.js";var Ce=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(a,i){return a[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(r,n){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,a=e(n,r);~a&&n.splice(a,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,i=this.__entries__;a0},e.prototype.connect_=function(){!J||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),it?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!J||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,a=at.some(function(i){return!!~n.indexOf(i)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Fe=function(e,t){for(var r=0,n=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof I(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new pt(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof I(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new vt(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Re=typeof WeakMap<"u"?new WeakMap:new Ce,je=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=ot.getInstance(),n=new _t(t,r,this);Re.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){je.prototype[e]=function(){var t;return(t=Re.get(this))[e].apply(t,arguments)}});var Zn=function(){return typeof L.ResizeObserver<"u"?L.ResizeObserver:je}();function gt(e,t){return function(r){return e(t(r))}}function fe(e,t,r,n,a,i,o){try{var s=e[i](o),u=s.value}catch(f){return void r(f)}s.done?t(u):Promise.resolve(u).then(n,a)}function Qn(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function o(u){fe(i,n,a,o,s,"next",u)}function s(u){fe(i,n,a,o,s,"throw",u)}o(void 0)})}}function kn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=e;if(Array.isArray(e)&&(a=qe(e)[0]),!a)return null;var i=Ke(a,t,n);return i.props=r?ie(ie({},i.props),t):i.props,We(Ve(i.props.class)!=="object","class must be string"),i}function yt(){this.__data__=[],this.size=0}function Me(e,t){return e===t||e!==e&&t!==t}function K(e,t){for(var r=e.length;r--;)if(Me(e[r][0],t))return r;return-1}var mt=Array.prototype,bt=mt.splice;function wt(e){var t=this.__data__,r=K(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():bt.call(t,r,1),--this.size,!0}function Ot(e){var t=this.__data__,r=K(t,e);return r<0?void 0:t[r][1]}function At(e){return K(this.__data__,e)>-1}function Tt(e,t){var r=this.__data__,n=K(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function g(e){var t=-1,r=e==null?0:e.length;for(this.clear();++ts))return!1;var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var h=-1,l=!0,_=r&_r?new B:void 0;for(i.set(e,t),i.set(t,e);++h-1&&e%1==0&&e-1&&e%1==0&&e<=Zr}var Qr="[object Arguments]",kr="[object Array]",en="[object Boolean]",tn="[object Date]",rn="[object Error]",nn="[object Function]",an="[object Map]",on="[object Number]",sn="[object Object]",un="[object RegExp]",fn="[object Set]",cn="[object String]",ln="[object WeakMap]",dn="[object ArrayBuffer]",hn="[object DataView]",pn="[object Float32Array]",vn="[object Float64Array]",_n="[object Int8Array]",gn="[object Int16Array]",yn="[object Int32Array]",mn="[object Uint8Array]",bn="[object Uint8ClampedArray]",wn="[object Uint16Array]",On="[object Uint32Array]",c={};c[pn]=c[vn]=c[_n]=c[gn]=c[yn]=c[mn]=c[bn]=c[wn]=c[On]=!0;c[Qr]=c[kr]=c[dn]=c[en]=c[hn]=c[tn]=c[rn]=c[nn]=c[an]=c[on]=c[sn]=c[un]=c[fn]=c[cn]=c[ln]=!1;function An(e){return F(e)&&Be(e.length)&&!!c[j(e)]}function Tn(e){return function(t){return e(t)}}var He=typeof exports=="object"&&exports&&!exports.nodeType&&exports,C=He&&typeof module=="object"&&module&&!module.nodeType&&module,En=C&&C.exports===He,X=En&&Ye.process,ge=function(){try{var e=C&&C.require&&C.require("util").types;return e||X&&X.binding&&X.binding("util")}catch{}}(),ye=ge&&ge.isTypedArray,Ne=ye?Tn(ye):An,xn=Object.prototype,Pn=xn.hasOwnProperty;function In(e,t){var r=H(e),n=!r&&qr(e),a=!r&&!n&&Z(e),i=!r&&!n&&!a&&Ne(e),o=r||n||a||i,s=o?Br(e.length,String):[],u=s.length;for(var f in e)(t||Pn.call(e,f))&&!(o&&(f=="length"||a&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Jr(f,u)))&&s.push(f);return s}var Sn=Object.prototype;function Cn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Sn;return e===r}var Fn=gt(Object.keys,Object),$n=Object.prototype,Rn=$n.hasOwnProperty;function jn(e){if(!Cn(e))return Fn(e);var t=[];for(var r in Object(e))Rn.call(e,r)&&r!="constructor"&&t.push(r);return t}function Mn(e){return e!=null&&Be(e.length)&&!De(e)}function Dn(e){return Mn(e)?In(e):jn(e)}function me(e){return jr(e,Dn,Gr)}var zn=1,Ln=Object.prototype,Gn=Ln.hasOwnProperty;function Bn(e,t,r,n,a,i){var o=r&zn,s=me(e),u=s.length,f=me(t),d=f.length;if(u!=d&&!o)return!1;for(var h=u;h--;){var l=s[h];if(!(o?l in t:Gn.call(t,l)))return!1}var _=i.get(e),p=i.get(t);if(_&&p)return _==t&&p==e;var v=!0;i.set(e,t),i.set(t,e);for(var y=o;++h1&&arguments[1]!==void 0?arguments[1]:Se(function(){return!0}),n=Qe(new Map),a=function(s,u){n.value.set(s,u),n.value=new Map(n.value)},i=function(s){n.value.delete(s),n.value=new Map(n.value)};Xe([r,n],function(){}),P(N,t),P(U,{addFormItemField:a,removeFormItemField:i})},re={id:Se(function(){}),onFieldBlur:function(){},onFieldChange:function(){},clearValidate:function(){}},ne={addFormItemField:function(){},removeFormItemField:function(){}},ra=function(){var t=se(U,ne),r=Symbol("FormItemFieldKey"),n=Ze();return t.addFormItemField(r,n.type),Je(function(){t.removeFormItemField(r)}),P(U,ne),P(N,re),se(N,re)};const na=ke({compatConfig:{MODE:3},name:"AFormItemRest",setup:function(t,r){var n=r.slots;return P(U,ne),P(N,re),function(){var a;return(a=n.default)===null||a===void 0?void 0:a.call(n)}}});export{ra as A,kn as B,na as F,x as M,b as S,le as U,Qn as _,H as a,Be as b,Jr as c,qr as d,Me as e,Rr as f,S as g,Cn as h,Zn as i,Mn as j,Dn as k,In as l,Gr as m,jr as n,gt as o,m as p,Tn as q,ge as r,Dr as s,Z as t,me as u,Ue as v,ta as w,B as x,pr as y,ea as z};