Ports "تکمیل پروفایل" end to end (D22). API - POST customer/me/complete-profile — three required document ids, the customer taken from the token, verification step set to the reference's LIVE value (approved outright; its `= 1` line is commented out at :83 in favour of `= 2` at :85). Both SMS messages byte-identical and non-blocking per D20. - POST customer/me/documents — the reference let the app upload through the same file/create the admin used, inside its auth:api-customer group (routes/api.php:95); the target's copy is admin-guarded, so the page could not have uploaded at all. Reuses AdminUploadsService unchanged, so both paths share one size limit, MIME whitelist and naming scheme (UPL-01). - PROFILE_ADMIN_MOBILES replaces the reference's four hardcoded personal numbers; blank means nobody is notified and the upload still succeeds. Three reference behaviours deliberately NOT ported, all in ISSUES.md: - SEC-14: `$customer->update($request->all())` mass-assigned the whole request body, letting the app write its own credit limit, making charge, gold debt, active flag or mobile. Replaced with a three-field whitelist. - SEC-15: four real personal mobiles hardcoded in the source. - APP-03: refresh()'s unterminated setInterval page reload. Apps (both, template+script byte-identical, per-app styling only) - CompleteProfileView + SingleImageUploader - route /complete_profile, redirecting home once the documents are in, as the reference's guard did (router/index.ts:266) - the entry point on the profile screen, shown only while they are missing (profile.vue:96-102) Also (D23): JWT_CUSTOMER_SECRET now warns loudly at boot when unset. It falls back to JWT_SECRET, which signs app and admin tokens with the same key and leaves the `typ` check as the only barrier — and an expert's app token carries their AdminUser id in `sub`. Warn rather than refuse to boot (D19, lowest risk); DELIVERY.md lists it as the first pre-release step (REL-03). Verified: build 5/5 · jest 45/45 · complete-profile 38/38 (new) · expert login 36/36 · apps smoke 43/43 · admin smoke 43/43 · B2B scan 34 ok/0 broken · typecheck clean on all four apps. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2 lines
20 KiB
JavaScript
2 lines
20 KiB
JavaScript
import{K as Ke,d as ae,O as qe,o as We,v as Ie,b as j,w,S as oe,i as F,a1 as Ve}from"./Spinner.vue_vue_type_style_index_0_lang-Q7UPdMbi.js";import{W as Xe,H as Ye,R as se,a as Je,Q as Qe,d as Ze,h as Se,g as ke,V as P}from"./index-0lMAZRQB.js";var Ce=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(i,a){return i[0]===r?(n=a,!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),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(r,n){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,i=e(n,r);~i&&n.splice(i,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 i=0,a=this.__entries__;i<a.length;i++){var o=a[i];r.call(n,o[1],o[0])}},t}()}(),J=typeof window<"u"&&typeof document<"u"&&window.document===document,L=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),et=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(L):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),tt=2;function rt(e,t){var r=!1,n=!1,i=0;function a(){r&&(r=!1,e()),n&&s()}function o(){et(a)}function s(){var u=Date.now();if(r){if(u-i<tt)return;n=!0}else r=!0,n=!1,setTimeout(o,t);i=u}return s}var nt=20,it=["top","right","bottom","left","width","height","size","weight"],at=typeof MutationObserver<"u",ot=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=rt(this.refresh.bind(this),nt)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!J||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),at?(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,i=it.some(function(a){return!!~n.indexOf(a)});i&&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<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},I=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||L},$e=K(0,0,0,0);function G(e){return parseFloat(e)||0}function ue(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,i){var a=e["border-"+i+"-width"];return n+G(a)},0)}function st(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var a=i[n],o=e["padding-"+a];r[a]=G(o)}return r}function ut(e){var t=e.getBBox();return K(0,0,t.width,t.height)}function ft(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return $e;var n=I(e).getComputedStyle(e),i=st(n),a=i.left+i.right,o=i.top+i.bottom,s=G(n.width),u=G(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=ue(n,"left","right")+a),Math.round(u+o)!==r&&(u-=ue(n,"top","bottom")+o)),!lt(e)){var f=Math.round(s+a)-t,d=Math.round(u+o)-r;Math.abs(f)!==1&&(s-=f),Math.abs(d)!==1&&(u-=d)}return K(i.left,i.top,s,u)}var ct=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof I(e).SVGGraphicsElement}:function(e){return e instanceof I(e).SVGElement&&typeof e.getBBox=="function"}}();function lt(e){return e===I(e).document.documentElement}function dt(e){return J?ct(e)?ut(e):ft(e):$e}function ht(e){var t=e.x,r=e.y,n=e.width,i=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(a.prototype);return Fe(o,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),o}function K(e,t,r,n){return{x:e,y:t,width:r,height:n}}var pt=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=K(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=dt(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),vt=function(){function e(t,r){var n=ht(r);Fe(this,{target:t,contentRect:n})}return e}(),_t=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Ce,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=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.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,i,a,o){try{var s=e[a](o),u=s.value}catch(f){return void r(f)}s.done?t(u):Promise.resolve(u).then(n,i)}function kn(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(u){fe(a,n,i,o,s,"next",u)}function s(u){fe(a,n,i,o,s,"throw",u)}o(void 0)})}}function ei(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,i=e;if(Array.isArray(e)&&(i=Ke(e)[0]),!i)return null;var a=Xe(i,t,n);return a.props=r?ae(ae({},a.props),t):a.props,qe(We(a.props.class)!=="object","class must be string"),a}function mt(){this.__data__=[],this.size=0}function Me(e,t){return e===t||e!==e&&t!==t}function q(e,t){for(var r=e.length;r--;)if(Me(e[r][0],t))return r;return-1}var yt=Array.prototype,bt=yt.splice;function wt(e){var t=this.__data__,r=q(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=q(t,e);return r<0?void 0:t[r][1]}function At(e){return q(this.__data__,e)>-1}function Tt(e,t){var r=this.__data__,n=q(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();++t<r;){var n=e[t];this.set(n[0],n[1])}}g.prototype.clear=mt;g.prototype.delete=wt;g.prototype.get=Ot;g.prototype.has=At;g.prototype.set=Tt;function Et(){this.__data__=new g,this.size=0}function xt(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Pt(e){return this.__data__.get(e)}function It(e){return this.__data__.has(e)}var St="[object AsyncFunction]",Ct="[object Function]",Ft="[object GeneratorFunction]",$t="[object Proxy]";function De(e){if(!Ie(e))return!1;var t=j(e);return t==Ct||t==Ft||t==St||t==$t}var V=w["__core-js_shared__"],ce=function(){var e=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Rt(e){return!!ce&&ce in e}var jt=Function.prototype,Mt=jt.toString;function E(e){if(e!=null){try{return Mt.call(e)}catch{}try{return e+""}catch{}}return""}var Dt=/[\\^$.*+?()[\]{}|]/g,zt=/^\[object .+?Constructor\]$/,Lt=Function.prototype,Gt=Object.prototype,Bt=Lt.toString,Ht=Gt.hasOwnProperty,Nt=RegExp("^"+Bt.call(Ht).replace(Dt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ut(e){if(!Ie(e)||Rt(e))return!1;var t=De(e)?Nt:zt;return t.test(E(e))}function Kt(e,t){return e==null?void 0:e[t]}function S(e,t){var r=Kt(e,t);return Ut(r)?r:void 0}var $=S(w,"Map"),R=S(Object,"create");function qt(){this.__data__=R?R(null):{},this.size=0}function Wt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Vt="__lodash_hash_undefined__",Xt=Object.prototype,Yt=Xt.hasOwnProperty;function Jt(e){var t=this.__data__;if(R){var r=t[e];return r===Vt?void 0:r}return Yt.call(t,e)?t[e]:void 0}var Qt=Object.prototype,Zt=Qt.hasOwnProperty;function kt(e){var t=this.__data__;return R?t[e]!==void 0:Zt.call(t,e)}var er="__lodash_hash_undefined__";function tr(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=R&&t===void 0?er:t,this}function T(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}T.prototype.clear=qt;T.prototype.delete=Wt;T.prototype.get=Jt;T.prototype.has=kt;T.prototype.set=tr;function rr(){this.size=0,this.__data__={hash:new T,map:new($||g),string:new T}}function nr(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function W(e,t){var r=e.__data__;return nr(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ir(e){var t=W(this,e).delete(e);return this.size-=t?1:0,t}function ar(e){return W(this,e).get(e)}function or(e){return W(this,e).has(e)}function sr(e,t){var r=W(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function x(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}x.prototype.clear=rr;x.prototype.delete=ir;x.prototype.get=ar;x.prototype.has=or;x.prototype.set=sr;var ur=200;function fr(e,t){var r=this.__data__;if(r instanceof g){var n=r.__data__;if(!$||n.length<ur-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new x(n)}return r.set(e,t),this.size=r.size,this}function b(e){var t=this.__data__=new g(e);this.size=t.size}b.prototype.clear=Et;b.prototype.delete=xt;b.prototype.get=Pt;b.prototype.has=It;b.prototype.set=fr;var cr="__lodash_hash_undefined__";function lr(e){return this.__data__.set(e,cr),this}function dr(e){return this.__data__.has(e)}function B(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new x;++t<r;)this.add(e[t])}B.prototype.add=B.prototype.push=lr;B.prototype.has=dr;function hr(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function pr(e,t){return e.has(t)}var vr=1,_r=2;function ze(e,t,r,n,i,a){var o=r&vr,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var f=a.get(e),d=a.get(t);if(f&&d)return f==t&&d==e;var h=-1,l=!0,_=r&_r?new B:void 0;for(a.set(e,t),a.set(t,e);++h<s;){var p=e[h],v=t[h];if(n)var m=o?n(v,p,h,t,e,a):n(p,v,h,e,t,a);if(m!==void 0){if(m)continue;l=!1;break}if(_){if(!hr(t,function(O,A){if(!pr(_,A)&&(p===O||i(p,O,r,n,a)))return _.push(A)})){l=!1;break}}else if(!(p===v||i(p,v,r,n,a))){l=!1;break}}return a.delete(e),a.delete(t),l}var le=w.Uint8Array;function gr(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function mr(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var yr=1,br=2,wr="[object Boolean]",Or="[object Date]",Ar="[object Error]",Tr="[object Map]",Er="[object Number]",xr="[object RegExp]",Pr="[object Set]",Ir="[object String]",Sr="[object Symbol]",Cr="[object ArrayBuffer]",Fr="[object DataView]",de=oe?oe.prototype:void 0,X=de?de.valueOf:void 0;function $r(e,t,r,n,i,a,o){switch(r){case Fr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Cr:return!(e.byteLength!=t.byteLength||!a(new le(e),new le(t)));case wr:case Or:case Er:return Me(+e,+t);case Ar:return e.name==t.name&&e.message==t.message;case xr:case Ir:return e==t+"";case Tr:var s=gr;case Pr:var u=n&yr;if(s||(s=mr),e.size!=t.size&&!u)return!1;var f=o.get(e);if(f)return f==t;n|=br,o.set(e,t);var d=ze(s(e),s(t),n,i,a,o);return o.delete(e),d;case Sr:if(X)return X.call(e)==X.call(t)}return!1}function Rr(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var H=Array.isArray;function jr(e,t,r){var n=t(e);return H(e)?n:Rr(n,r(e))}function Mr(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}function Dr(){return[]}var zr=Object.prototype,Lr=zr.propertyIsEnumerable,he=Object.getOwnPropertySymbols,Gr=he?function(e){return e==null?[]:(e=Object(e),Mr(he(e),function(t){return Lr.call(e,t)}))}:Dr;function Br(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Hr="[object Arguments]";function pe(e){return F(e)&&j(e)==Hr}var Le=Object.prototype,Nr=Le.hasOwnProperty,Ur=Le.propertyIsEnumerable,Kr=pe(function(){return arguments}())?pe:function(e){return F(e)&&Nr.call(e,"callee")&&!Ur.call(e,"callee")};function qr(){return!1}var Ge=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ve=Ge&&typeof module=="object"&&module&&!module.nodeType&&module,Wr=ve&&ve.exports===Ge,_e=Wr?w.Buffer:void 0,Vr=_e?_e.isBuffer:void 0,Q=Vr||qr,Xr=9007199254740991,Yr=/^(?:0|[1-9]\d*)$/;function Jr(e,t){var r=typeof e;return t=t??Xr,!!t&&(r=="number"||r!="symbol"&&Yr.test(e))&&e>-1&&e%1==0&&e<t}var Qr=9007199254740991;function Be(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Qr}var Zr="[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]",mn="[object Int32Array]",yn="[object Uint8Array]",bn="[object Uint8ClampedArray]",wn="[object Uint16Array]",On="[object Uint32Array]",c={};c[pn]=c[vn]=c[_n]=c[gn]=c[mn]=c[yn]=c[bn]=c[wn]=c[On]=!0;c[Zr]=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,Y=En&&Ve.process,ge=function(){try{var e=C&&C.require&&C.require("util").types;return e||Y&&Y.binding&&Y.binding("util")}catch{}}(),me=ge&&ge.isTypedArray,Ne=me?Tn(me):An,xn=Object.prototype,Pn=xn.hasOwnProperty;function In(e,t){var r=H(e),n=!r&&Kr(e),i=!r&&!n&&Q(e),a=!r&&!n&&!i&&Ne(e),o=r||n||i||a,s=o?Br(e.length,String):[],u=s.length;for(var f in e)(t||Pn.call(e,f))&&!(o&&(f=="length"||i&&(f=="offset"||f=="parent")||a&&(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 ye(e){return jr(e,Dn,Gr)}var zn=1,Ln=Object.prototype,Gn=Ln.hasOwnProperty;function Bn(e,t,r,n,i,a){var o=r&zn,s=ye(e),u=s.length,f=ye(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 _=a.get(e),p=a.get(t);if(_&&p)return _==t&&p==e;var v=!0;a.set(e,t),a.set(t,e);for(var m=o;++h<u;){l=s[h];var O=e[l],A=t[l];if(n)var ie=o?n(A,O,l,t,e,a):n(O,A,l,e,t,a);if(!(ie===void 0?O===A||i(O,A,r,n,a):ie)){v=!1;break}m||(m=l=="constructor")}if(v&&!m){var M=e.constructor,D=t.constructor;M!=D&&"constructor"in e&&"constructor"in t&&!(typeof M=="function"&&M instanceof M&&typeof D=="function"&&D instanceof D)&&(v=!1)}return a.delete(e),a.delete(t),v}var Z=S(w,"DataView"),k=S(w,"Promise"),ee=S(w,"Set"),te=S(w,"WeakMap"),be="[object Map]",Hn="[object Object]",we="[object Promise]",Oe="[object Set]",Ae="[object WeakMap]",Te="[object DataView]",Nn=E(Z),Un=E($),Kn=E(k),qn=E(ee),Wn=E(te),y=j;(Z&&y(new Z(new ArrayBuffer(1)))!=Te||$&&y(new $)!=be||k&&y(k.resolve())!=we||ee&&y(new ee)!=Oe||te&&y(new te)!=Ae)&&(y=function(e){var t=j(e),r=t==Hn?e.constructor:void 0,n=r?E(r):"";if(n)switch(n){case Nn:return Te;case Un:return be;case Kn:return we;case qn:return Oe;case Wn:return Ae}return t});var Vn=1,Ee="[object Arguments]",xe="[object Array]",z="[object Object]",Xn=Object.prototype,Pe=Xn.hasOwnProperty;function Yn(e,t,r,n,i,a){var o=H(e),s=H(t),u=o?xe:y(e),f=s?xe:y(t);u=u==Ee?z:u,f=f==Ee?z:f;var d=u==z,h=f==z,l=u==f;if(l&&Q(e)){if(!Q(t))return!1;o=!0,d=!1}if(l&&!d)return a||(a=new b),o||Ne(e)?ze(e,t,r,n,i,a):$r(e,t,u,r,n,i,a);if(!(r&Vn)){var _=d&&Pe.call(e,"__wrapped__"),p=h&&Pe.call(t,"__wrapped__");if(_||p){var v=_?e.value():e,m=p?t.value():t;return a||(a=new b),i(v,m,r,n,a)}}return l?(a||(a=new b),Bn(e,t,r,n,i,a)):!1}function Ue(e,t,r,n,i){return e===t?!0:e==null||t==null||!F(e)&&!F(t)?e!==e&&t!==t:Yn(e,t,r,n,Ue,i)}function ti(e,t){return Ue(e,t)}var N=Symbol("ContextProps"),U=Symbol("InternalContextProps"),ri=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Se(function(){return!0}),n=ke(new Map),i=function(s,u){n.value.set(s,u),n.value=new Map(n.value)},a=function(s){n.value.delete(s),n.value=new Map(n.value)};Ye([r,n],function(){}),P(N,t),P(U,{addFormItemField:i,removeFormItemField:a})},re={id:Se(function(){}),onFieldBlur:function(){},onFieldChange:function(){},clearValidate:function(){}},ne={addFormItemField:function(){},removeFormItemField:function(){}},ni=function(){var t=se(U,ne),r=Symbol("FormItemFieldKey"),n=Qe();return t.addFormItemField(r,n.type),Je(function(){t.removeFormItemField(r)}),P(U,ne),P(N,re),se(N,re)};const ii=Ze({compatConfig:{MODE:3},name:"AFormItemRest",setup:function(t,r){var n=r.slots;return P(U,ne),P(N,re),function(){var i;return(i=n.default)===null||i===void 0?void 0:i.call(n)}}});export{ni as A,ei as B,ii as F,x as M,b as S,le as U,kn as _,H as a,Be as b,Jr as c,Kr 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,y as p,Tn as q,ge as r,Dr as s,Q as t,ye as u,Ue as v,ri as w,B as x,pr as y,ti as z};
|