This commit is contained in:
@@ -0,0 +1 @@
|
||||
var q=Object.defineProperty;var B=t=>{throw TypeError(t)};var z=(t,e,s)=>e in t?q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var Y=(t,e,s)=>z(t,typeof e!="symbol"?e+"":e,s),j=(t,e,s)=>e.has(t)||B("Cannot "+s);var n=(t,e,s)=>(j(t,e,"read from private field"),s?s.call(t):e.get(t)),v=(t,e,s)=>e.has(t)?B("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),C=(t,e,s,r)=>(j(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s);import{aG as F,aH as J,ab as I,$ as Q,_ as H,Z as K,h as x,W as V,a0 as k,aI as ee,d as te,e as se,E as re,aJ as ne,aj as ie,H as ae,B as fe,A as oe,C as U,aK as y,aL as ue,aM as ce,p as D,aN as le,aO as de,X as he,aP as _e,aQ as pe,u as ve,ay as be,aR as ge,aS as Se,w as me,aT as Pe,aU as we,aV as Ae,S as $,aW as G,aX as P}from"./nEbfNkJh.js";var d,h,l,b,w,A,O;class Re{constructor(e,s=!0){Y(this,"anchor");v(this,d,new Map);v(this,h,new Map);v(this,l,new Map);v(this,b,new Set);v(this,w,!0);v(this,A,()=>{var e=F;if(n(this,d).has(e)){var s=n(this,d).get(e),r=n(this,h).get(s);if(r)J(r),n(this,b).delete(s);else{var i=n(this,l).get(s);i&&(n(this,h).set(s,i.effect),n(this,l).delete(s),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[a,o]of n(this,d)){if(n(this,d).delete(a),a===e)break;const f=n(this,l).get(o);f&&(I(f.effect),n(this,l).delete(o))}for(const[a,o]of n(this,h)){if(a===s||n(this,b).has(a))continue;const f=()=>{if(Array.from(n(this,d).values()).includes(a)){var _=document.createDocumentFragment();k(o,_),_.append(H()),n(this,l).set(a,{effect:o,fragment:_})}else I(o);n(this,b).delete(a),n(this,h).delete(a)};n(this,w)||!r?(n(this,b).add(a),Q(o,f,!1)):f()}}});v(this,O,e=>{n(this,d).delete(e);const s=Array.from(n(this,d).values());for(const[r,i]of n(this,l))s.includes(r)||(I(i.effect),n(this,l).delete(r))});this.anchor=e,C(this,w,s)}ensure(e,s){var r=F,i=ee();if(s&&!n(this,h).has(e)&&!n(this,l).has(e))if(i){var a=document.createDocumentFragment(),o=H();a.append(o),n(this,l).set(e,{effect:K(()=>s(o)),fragment:a})}else n(this,h).set(e,K(()=>s(this.anchor)));if(n(this,d).set(r,e),i){for(const[f,u]of n(this,h))f===e?r.unskip_effect(u):r.skip_effect(u);for(const[f,u]of n(this,l))f===e?r.unskip_effect(u.effect):r.skip_effect(u.effect);r.oncommit(n(this,A)),r.ondiscard(n(this,O))}else x&&(this.anchor=V),n(this,A).call(this)}}d=new WeakMap,h=new WeakMap,l=new WeakMap,b=new WeakMap,w=new WeakMap,A=new WeakMap,O=new WeakMap;function xe(t,e,s=!1){x&&se();var r=new Re(t),i=s?re:0;function a(o,f){if(x){const p=ne(t);var u;if(p===ie?u=0:p===ae?u=!1:u=parseInt(p.substring(1)),o!==u){var _=fe();oe(_),r.anchor=_,U(!1),r.ensure(o,f),U(!0);return}}r.ensure(o,f)}te(()=>{var o=!1;e((f,u=0)=>{o=!0,a(u,f)}),o||a(!1,null)},i)}let T=!1;function Te(t){var e=T;try{return T=!1,[t(),T]}finally{T=e}}const Oe={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function ye(t,e,s){return new Proxy({props:t,exclude:e},Oe)}const Ee={get(t,e){let s=t.props.length;for(;s--;){let r=t.props[s];if(P(r)&&(r=r()),typeof r=="object"&&r!==null&&e in r)return r[e]}},set(t,e,s){let r=t.props.length;for(;r--;){let i=t.props[r];P(i)&&(i=i());const a=y(i,e);if(a&&a.set)return a.set(s),!0}return!1},getOwnPropertyDescriptor(t,e){let s=t.props.length;for(;s--;){let r=t.props[s];if(P(r)&&(r=r()),typeof r=="object"&&r!==null&&e in r){const i=y(r,e);return i&&!i.configurable&&(i.configurable=!0),i}}},has(t,e){if(e===$||e===G)return!1;for(let s of t.props)if(P(s)&&(s=s()),s!=null&&e in s)return!0;return!1},ownKeys(t){const e=[];for(let s of t.props)if(P(s)&&(s=s()),!!s){for(const r in s)e.includes(r)||e.push(r);for(const r of Object.getOwnPropertySymbols(s))e.includes(r)||e.push(r)}return e}};function Le(...t){return new Proxy({props:t},Ee)}function Me(t,e,s,r){var M;var i=!be||(s&ge)!==0,a=(s&pe)!==0,o=(s&we)!==0,f=r,u=!0,_=()=>(u&&(u=!1,f=o?ve(r):r),f),p;if(a){var W=$ in t||G in t;p=((M=y(t,e))==null?void 0:M.set)??(W&&e in t?c=>t[e]=c:void 0)}var S,L=!1;a?[S,L]=Te(()=>t[e]):S=t[e],S===void 0&&r!==void 0&&(S=_(),p&&(i&&ue(),p(S)));var g;if(i?g=()=>{var c=t[e];return c===void 0?_():(u=!0,c)}:g=()=>{var c=t[e];return c!==void 0&&(f=void 0),c===void 0?f:c},i&&(s&ce)===0)return g;if(p){var X=t.$$legacy;return(function(c,R){return arguments.length>0?((!i||!R||X||L)&&p(R?g():c),c):g()})}var E=!1,m=((s&Se)!==0?me:Pe)(()=>(E=!1,g()));a&&D(m);var Z=he;return(function(c,R){if(arguments.length>0){const N=R?D(m):i&&a?le(c):c;return de(m,N),E=!0,f!==void 0&&(f=N),c}return Ae&&E||(Z.f&_e)!==0?m.v:D(m)})}export{Re as B,xe as i,Me as p,ye as r,Le as s};
|
||||
Reference in New Issue
Block a user