!function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('.atk-auth-plugin-dialog-wrap{display:flex;align-items:center;justify-content:center;flex-direction:column;height:100%}.atk-auth-plugin-dialog-wrap .atk-skip-btn{cursor:pointer;margin:10px auto 0;display:flex;justify-content:center;place-items:center;height:40px;padding:0 20px;font-size:16px;border-radius:50px;color:var(--at-color-font)}.atk-auth-plugin-dialog-wrap .atk-skip-btn:hover{opacity:.9}.atk-auth-plugin-dialog{overflow:hidden;transform:translateY(0) scale(1);animation:atkLoginDialogShowAnim .3s ease-in-out;will-change:transform,opacity,width,height;transition-property:transform,opacity,width,height;transition-duration:.2s;transition-timing-function:cubic-bezier(.25,.1,.25,1);display:flex;flex-direction:column;width:360px;max-height:500px;background:var(--at-color-bg);border-radius:18px}@keyframes atkLoginDialogShowAnim{0%{opacity:0;transform:translateY(15px) scale(1.02)}to{opacity:1;transform:translateY(0) scale(1)}}.atk-auth-plugin-dialog .atk-auth-dialog-title{display:flex;justify-content:space-between;place-items:center;padding:25px 25px 0;font-size:20px;font-weight:500;color:var(--at-color-font)}.atk-auth-plugin-dialog .atk-auth-dialog-title .atk-text{margin:0 10px}.atk-auth-plugin-dialog .atk-auth-dialog-title .atk-icon{display:flex;justify-content:center;place-items:center;height:40px;width:40px;border-radius:50%}.atk-auth-plugin-dialog .atk-auth-dialog-title .atk-icon:hover{background:var(--at-color-bg-grey)}.atk-auth-plugin-dialog .atk-view-wrap{max-height:calc(100% - 65px);overflow-y:auto}.atk-auth-plugin-dialog .atk-methods-page .atk-methods{padding:12px 20px 20px}.atk-auth-plugin-dialog .atk-methods-page .atk-methods .atk-method-item{display:flex;align-items:center;padding:15px 25px;cursor:pointer;border-radius:10px}.atk-auth-plugin-dialog .atk-methods-page .atk-methods .atk-method-item:hover{background:var(--at-color-bg-grey)}.atk-auth-plugin-dialog .atk-methods-page .atk-methods .atk-method-item .atk-method-icon{width:40px;height:40px;margin-right:20px;background-repeat:no-repeat;background-size:contain;background-position:center}.atk-auth-plugin-dialog .atk-methods-page .atk-methods .atk-method-item .atk-method-text{font-size:16px;font-weight:500;color:var(--at-color-font)}.atk-auth-plugin-dialog .atk-form{padding:20px 30px}.atk-auth-plugin-dialog .atk-form .atk-form-bottom{padding:5px 0;text-align:center;font-size:14px}.atk-auth-plugin-dialog .atk-form .atk-form-bottom .atk-link{cursor:pointer;text-align:center;color:var(--at-color-main)}.atk-auth-plugin-dialog .atk-form .atk-form-bottom .atk-link:hover{text-decoration:underline}.atk-auth-plugin-dialog .atk-form input{width:100%;padding:10px 20px;margin:5px 0;font-size:16px;border-radius:10px;border:1px solid var(--at-color-bg-grey);background:var(--at-color-bg-grey);color:var(--at-color-font);transition:border-color .2s;outline:none}.atk-auth-plugin-dialog .atk-form input:focus{border-color:var(--at-color-primary)}.atk-auth-plugin-dialog .atk-form button[type=submit]{width:100%;padding:10px 20px;margin:10px 0;font-size:16px;border-radius:10px;background:var(--at-color-main);color:var(--at-color-bg);cursor:pointer;transition:background .2s;border:0}.atk-auth-plugin-dialog .atk-form button[type=submit]:hover{opacity:.9}.atk-auth-plugin-dialog .atk-form .atk-input-grp{position:relative}.atk-auth-plugin-dialog .atk-form .atk-input-grp>input{padding-right:115px}.atk-auth-plugin-dialog .atk-form .atk-input-grp-btn{position:absolute;right:0;top:50%;transform:translateY(-50%);padding:10px 15px;font-size:14px;color:var(--at-color-main);cursor:pointer}.atk-auth-plugin-dialog[data-dialog-name=merge]{background-size:100% auto;background-position:center top;background-repeat:no-repeat;background-image:url(\'data:image/svg+xml,\')}.atk-auth-plugin-dialog[data-dialog-name=merge] .atk-auth-dialog-title{padding-top:50px;color:#361e6a}.atk-auth-plugin-dialog[data-dialog-name=merge] .atk-text:first-of-type{color:#472a84}.atk-auth-plugin-dialog .atk-merge-confirm-page{padding:15px 35px 30px}.atk-auth-plugin-dialog .atk-merge-confirm-page .atk-text{font-size:16px;color:var(--at-color-font);margin-bottom:20px}.atk-auth-plugin-dialog .atk-merge-confirm-page .atk-usernames{display:flex;flex-direction:column;color:var(--at-color-font);margin-bottom:20px}.atk-auth-plugin-dialog .atk-merge-confirm-page .atk-usernames .atk-item{border-radius:10px;padding:10px 15px;margin:5px 0;display:flex;justify-content:space-between;place-items:center;cursor:pointer;border:1px solid var(--at-color-border)}.atk-auth-plugin-dialog .atk-merge-confirm-page .atk-usernames .atk-item.active{background:var(--at-color-bg-grey)}.atk-auth-plugin-dialog .atk-merge-confirm-page .atk-usernames .atk-item .atk-username{flex:auto;text-align:center}.atk-auth-plugin-dialog .atk-merge-confirm-page .atk-dialog-footer{display:flex;justify-content:space-between;place-items:center;margin-top:20px}.atk-auth-plugin-dialog .atk-merge-confirm-page .atk-dialog-footer .atk-btn{padding:10px 20px;font-size:16px;border-radius:10px;cursor:pointer}.atk-auth-plugin-dialog .atk-merge-confirm-page .atk-dialog-footer .atk-btn:hover{opacity:.9}.atk-auth-plugin-dialog .atk-merge-confirm-page .atk-dialog-footer .atk-btn.atk-btn-no{background:var(--at-color-bg-grey);color:var(--at-color-font)}.atk-auth-plugin-dialog .atk-merge-confirm-page .atk-dialog-footer .atk-btn.atk-btn-yes{background:var(--at-color-main);color:var(--at-color-bg)}.atk-auth-plugin-dialog .atk-merge-confirm-page .atk-dialog-footer .atk-btn.atk-btn-yes.disabled{opacity:.5;cursor:not-allowed}.atk-main-editor .atk-editor-user-wrap{margin-top:10px}.atk-main-editor .atk-editor-user-wrap .atk-editor-user{display:inline-flex;flex-direction:row;place-items:center;cursor:pointer;border-radius:3px;padding:0 10px}.atk-main-editor .atk-editor-user-wrap .atk-editor-user .atk-user-btn{display:flex;place-items:center;justify-content:center;padding:5px;border-radius:3px}.atk-main-editor .atk-editor-user-wrap .atk-editor-user .atk-user-btn:hover{background:var(--at-color-bg-grey-transl)}.atk-main-editor .atk-editor-user-wrap .atk-editor-user .atk-user-btn:not(:last-child){margin-right:5px}.atk-main-editor .atk-editor-user-wrap .atk-editor-user .atk-user-profile-btn{padding-left:12px;padding-right:12px}.atk-main-editor .atk-editor-user-wrap .atk-editor-user .atk-name{color:var(--at-color-font)}.atk-main-editor .atk-editor-user-wrap .atk-editor-user .atk-avatar{width:20px;height:20px;border-radius:50%;margin-right:15px;background-position:center;background-size:cover;background-color:#d5d5d5}.atk-main-editor .atk-editor-user-wrap .atk-editor-user .atk-logout{height:100%;color:var(--at-color-font);font-size:1.3em;display:flex;place-items:center;justify-content:center}')),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}}(); !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["artalk-plugin-auth"]=e["artalk-plugin-auth"]||{})}(this,(function(e){"use strict";var t,n=Object.defineProperty,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s=(e,t)=>{var n={};for(var i in e)o.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&r)for(var i of r(e))t.indexOf(i)<0&&l.call(e,i)&&(n[i]=e[i]);return n},a=(e,t,n)=>new Promise(((r,o)=>{var l=e=>{try{s(n.next(e))}catch(t){o(t)}},i=e=>{try{s(n.throw(e))}catch(t){o(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(l,i);s((n=n.apply(e,t)).next())}));const c=Symbol("solid-proxy"),u=Symbol("solid-track"),d={equals:(e,t)=>e===t};let f=N;const g=1,p=2,h={owned:null,cleanups:null,context:null,owner:null},v={};var m=null;let y=null,b=null,k=null,w=null,$=0;function A(e,t){const n=b,r=m,o=0===e.length,l=void 0===t?r:t,i=o?h:{owned:null,cleanups:null,context:l?l.context:null,owner:l},s=o?e:()=>e((()=>B((()=>K(i)))));m=i,b=null;try{return M(s,!0)}finally{b=n,m=r}}function x(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},d,t):d).equals||void 0};return[_.bind(n),e=>("function"==typeof e&&(e=e(n.value)),L(n,e))]}function C(e,t,n){D(I(e,t,!0,g))}function S(e,t,n){D(I(e,t,!1,g))}function O(e,t,n){f=H;const r=I(e,t,!1,g);r.user=!0,w?w.push(r):D(r)}function P(e,t,n){n=n?Object.assign({},d,n):d;const r=I(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,D(r),_.bind(r)}function j(e,t,n){let r,o,l;2===arguments.length&&"object"==typeof t||1===arguments.length?(r=!0,o=e,l={}):(r=e,o=t,l={});let i=null,s=v,a=!1,c="initialValue"in l,u="function"==typeof r&&P(r);const d=new Set,[f,g]=(l.storage||x)(l.initialValue),[p,h]=x(void 0),[m,y]=x(void 0,{equals:!1}),[k,w]=x(c?"ready":"unresolved");function $(e,t,n,r){return i===e&&(i=null,void 0!==r&&(c=!0),e!==s&&t!==s||!l.onHydrated||queueMicrotask((()=>l.onHydrated(r,{value:t}))),s=v,function(e,t){M((()=>{void 0===t&&g((()=>e)),w(void 0!==t?"errored":c?"ready":"unresolved"),h(t);for(const e of d.keys())e.decrement();d.clear()}),!1)}(t,n)),t}function A(){const e=undefined,t=f(),n=p();if(void 0!==n&&!i)throw n;return b&&!b.user&&e&&C((()=>{m(),i&&(e.resolved||d.has(e)||(e.increment(),d.add(e)))})),t}function S(e=!0){if(!1!==e&&a)return;a=!1;const t=u?u():r;if(null==t||!1===t)return void $(i,B(f));const n=s!==v?s:B((()=>o(t,{value:f(),refetching:e})));return(l=n)&&"object"==typeof l&&"then"in l?(i=n,"value"in n?("success"===n.status?$(i,n.value,void 0,t):$(i,void 0,void 0,t),n):(a=!0,queueMicrotask((()=>a=!1)),M((()=>{w(c?"refreshing":"pending"),y()}),!1),n.then((e=>$(n,e,void 0,t)),(e=>$(n,void 0,R(e),t))))):($(i,n,void 0,t),n);var l}return Object.defineProperties(A,{state:{get:()=>k()},error:{get:()=>p()},loading:{get(){const e=k();return"pending"===e||"refreshing"===e}},latest:{get(){if(!c)return A();const e=p();if(e&&!i)throw e;return f()}}}),u?C((()=>S(!1))):S(!1),[A,{refetch:S,mutate:g}]}function B(e){if(null===b)return e();const t=b;b=null;try{return e()}finally{b=t}}function T(e){return null===m||(null===m.cleanups?m.cleanups=[e]:m.cleanups.push(e)),e}function E(){return b}function _(){if(this.sources&&this.state)if(this.state===g)D(this);else{const e=k;k=null,M((()=>V(this)),!1),k=e}if(b){const e=this.observers?this.observers.length:0;b.sources?(b.sources.push(this),b.sourceSlots.push(e)):(b.sources=[this],b.sourceSlots=[e]),this.observers?(this.observers.push(b),this.observerSlots.push(b.sources.length-1)):(this.observers=[b],this.observerSlots=[b.sources.length-1])}return this.value}function L(e,t,n){let r=e.value;return e.comparator&&e.comparator(r,t)||(e.value=t,e.observers&&e.observers.length&&M((()=>{for(let t=0;t1e6)throw k=[],new Error}),!1)),t}function D(e){if(!e.fn)return;K(e);const t=$;!function(e,t,n){let r;const o=m,l=b;b=m=e;try{r=e.fn(t)}catch(i){return e.pure&&(e.state=g,e.owned&&e.owned.forEach(K),e.owned=null),e.updatedAt=n+1,z(i)}finally{b=l,m=o}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?L(e,r):e.value=r,e.updatedAt=n)}(e,e.value,t)}function I(e,t,n,r=g,o){const l={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:m,context:m?m.context:null,pure:n};return null===m||m!==h&&(m.owned?m.owned.push(l):m.owned=[l]),l}function q(e){if(0===e.state)return;if(e.state===p)return V(e);if(e.suspense&&B(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<$);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if((e=t[n]).state===g)D(e);else if(e.state===p){const n=k;k=null,M((()=>V(e,t[0])),!1),k=n}}function M(e,t){if(k)return e();let n=!1;t||(k=[]),w?n=!0:w=[],$++;try{const t=e();return function(e){k&&(N(k),k=null);if(e)return;const t=w;w=null,t.length&&M((()=>f(t)),!1)}(n),t}catch(r){n||(w=null),k=null,z(r)}}function N(e){for(let t=0;t=0;t--)K(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function R(e){return e instanceof Error?e:new Error("string"==typeof e?e:"Unknown error",{cause:e})}function z(e,t=m){throw R(e)}const F=Symbol("fallback");function G(e){for(let t=0;te(t||{})))}function Z(e){const t="fallback"in e&&{fallback:()=>e.fallback};return P(function(e,t,n={}){let r=[],o=[],l=[],i=0,s=t.length>1?[]:null;return T((()=>G(l))),()=>{let a,c,d=e()||[];return d[u],B((()=>{let e,t,u,g,p,h,v,m,y,b=d.length;if(0===b)0!==i&&(G(l),l=[],r=[],o=[],i=0,s&&(s=[])),n.fallback&&(r=[F],o[0]=A((e=>(l[0]=e,n.fallback()))),i=1);else if(0===i){for(o=new Array(b),c=0;c=h&&m>=h&&r[v]===d[m];v--,m--)u[m]=o[v],g[m]=l[v],s&&(p[m]=s[v]);for(e=new Map,t=new Array(m+1),c=m;c>=h;c--)y=d[c],a=e.get(y),t[c]=void 0===a?-1:a,e.set(y,c);for(a=h;a<=v;a++)y=r[a],c=e.get(y),void 0!==c&&-1!==c?(u[c]=o[a],g[c]=l[a],s&&(p[c]=s[a]),c=t[c],e.set(y,c)):l[a]();for(c=h;ce.each),e.children,t||void 0))}function W(e){const t=e.keyed,n=P((()=>e.when),void 0,{equals:(e,n)=>t?e===n:!e==!n});return P((()=>{const r=n();if(r){const o=e.children;return"function"==typeof o&&o.length>0?B((()=>o(t?r:()=>{if(!B(n))throw`Stale read from <${"Show"}>.`;return e.when}))):o}return e.fallback}),void 0,void 0)}const X="_$DX_DELEGATE";function J(e,t,n,r={}){let o;return A((r=>{o=r,t===document?e():re(t,e(),t.firstChild?null:void 0,n)}),r.owner),()=>{o(),t.textContent=""}}function Q(e,t,n){let r;const o=()=>(r||(r=(()=>{const t=document.createElement("template");return t.innerHTML=e,t.content.firstChild})())).cloneNode(!0);return o.cloneNode=o,o}function ee(e,t=window.document){const n=t[X]||(t[X]=new Set);for(let r=0,o=e.length;rle(e,t(),r,n)),r)}function oe(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>n||document});n;){const r=n[t];if(r&&!n.disabled){const o=n[`${t}Data`];if(void 0!==o?r.call(n,o,e):r.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function le(e,t,n,r,o){for(;"function"==typeof n;)n=n();if(t===n)return n;const l=typeof t,i=void 0!==r;if(e=i&&n[0]&&n[0].parentNode||e,"string"===l||"number"===l)if("number"===l&&(t=t.toString()),i){let o=n[0];o&&3===o.nodeType?o.data!==t&&(o.data=t):o=document.createTextNode(t),n=ae(e,n,r,o)}else n=""!==n&&"string"==typeof n?e.firstChild.data=t:e.textContent=t;else if(null==t||"boolean"===l)n=ae(e,n,r);else{if("function"===l)return S((()=>{let o=t();for(;"function"==typeof o;)o=o();n=le(e,o,n,r)})),()=>n;if(Array.isArray(t)){const l=[],s=n&&Array.isArray(n);if(ie(l,t,n,o))return S((()=>n=le(e,l,n,r,!0))),()=>n;if(0===l.length){if(n=ae(e,n,r),i)return n}else s?0===n.length?se(e,l,r):function(e,t,n){let r=n.length,o=t.length,l=r,i=0,s=0,a=t[o-1].nextSibling,c=null;for(;ir-s){const o=t[i];for(;s=0;l--){const i=t[l];if(o!==i){const t=i.parentNode===e;r||l?t&&i.remove():t?e.replaceChild(o,i):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}var ce=Q('
'),ue=Q('
');const de=e=>{const{title:t,showBackBtn:n,onBack:r,onClose:o}=e;return i=ce(),s=i.firstChild,a=s.nextSibling,re(i,(l=P((()=>!!(null==n?void 0:n()))),()=>{return l()&&(ne(e=ue(),"click",r),e);var e}),s),re(s,t),a.$$click=()=>o(),i;var l,i,s,a};ee(["click"]);var fe=Q('
');const ge=e=>{const t=e,{showBackBtn:n,onBack:r,onClose:o,title:l}=t,i=s(t,["showBackBtn","onBack","onClose","title"]);return a=fe(),c=a.firstChild,u=c.firstChild,re(c,Y(de,{title:l,showBackBtn:n,onBack:r,onClose:o}),u),re(u,(()=>{var e;return null==(e=i.children)?void 0:e.call(i)})),re(a,(()=>{var e;return null==(e=i.extras)?void 0:e.call(i)}),null),S((()=>te(c,"data-dialog-name",e.name))),a;var a,c,u};let pe=null,he=null;const ve=()=>{pe&&clearInterval(pe),he&&window.removeEventListener("message",he)},me=(e,t)=>{const{user:n,token:r}=t;e.get("user").update({nick:n.name,email:n.email,link:n.link,isAdmin:n.is_admin,token:r})},ye=(e,t)=>{e.get("user").update({token:t}),e.getApi().user.getUser().then((t=>{const{user:n}=t.data;e.get("user").update({nick:n.name,email:n.email,link:n.link,isAdmin:n.is_admin})}))};var be=Q("
"),ke=Q("
"),we=Q("
");const $e=e=>{const{ctx:t,methods:n}=e;e.changeTitle(t.$t("signIn"));const r=n=>{n.onClick?n.onClick():n.link&&(()=>{a(this,null,(function*(){const r=/^(http|https):\/\//.test(n.link)?n.link:`${t.getConf().server}${n.link}`,{token:o}=yield((e,t)=>{ve();const n=(window.innerWidth-1020)/2,r=(window.innerHeight-618)/2,o=window.open(t,"_blank",`width=1020,height=618,left=${n},top=${r},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return new Promise(((e,t)=>{pe=setInterval((()=>{if(null==o?void 0:o.closed)return ve(),void t(new Error("Login canceled"));null==o||o.postMessage({type:"ATK_LOGIN"},"*")}),1e3),he=({data:t})=>{"ATK_AUTH_CALLBACK"===t.type&&t.payload&&(ve(),null==o||o.close(),e({token:t.payload}))},window.addEventListener("message",he)}))})(0,r);ye(t,o),e.onComplete()}))})()};O((()=>{var e;if(1===(null==(e=n())?void 0:e.length)){const e=n()[0];r(e)}}));const o=(re(l=be(),Y(Z,{get each(){return n()},children:e=>{return t=ke(),n=t.firstChild,o=n.nextSibling,t.$$click=()=>r(e),re(o,(()=>e.label)),S((r=>{var o=e.name,l=`url('${e.icon}')`;return o!==r.e&&te(t,"data-method",r.e=o),l!==r.t&&(null!=(r.t=l)?n.style.setProperty("background-image",l):n.style.removeProperty("background-image")),r}),{e:void 0,t:void 0}),t;var t,n,o}})),l);var l,i;return re(i=we(),o),i};ee(["click"]);const Ae=Symbol("store-raw"),xe=Symbol("store-node"),Ce=Symbol("store-has"),Se=Symbol("store-self");function Oe(e){let t=e[c];if(!t&&(Object.defineProperty(e,c,{value:t=new Proxy(e,_e)}),!Array.isArray(e))){const n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let o=0,l=n.length;ot===Ae||t===c||t===u||t===xe||t===Ce||"__proto__"===t||(E()&&Te(Be(e,Ce),t)(),t in e),set:()=>!0,deleteProperty:()=>!0,ownKeys:function(e){return Ee(e),Reflect.ownKeys(e)},getOwnPropertyDescriptor:function(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return n&&!n.get&&n.configurable&&t!==c&&t!==xe?(delete n.value,delete n.writable,n.get=()=>e[c][t],n):n}};function Le(e,t,n,r=!1){if(!r&&e[t]===n)return;const o=e[t],l=e.length;void 0===n?(delete e[t],e[Ce]&&e[Ce][t]&&void 0!==o&&e[Ce][t].$()):(e[t]=n,e[Ce]&&e[Ce][t]&&void 0===o&&e[Ce][t].$());let i,s=Be(e,xe);if((i=Te(s,t,o))&&i.$((()=>n)),Array.isArray(e)&&e.length!==l){for(let t=e.length;t1){r=t.shift();const l=typeof r,i=Array.isArray(e);if(Array.isArray(r)){for(let o=0;o1)return void Ie(e[r],t,[r].concat(n));o=e[r],n=[r].concat(n)}let l=t[0];"function"==typeof l&&(l=l(o,n),l===o)||void 0===r&&null==l||(l=je(l),void 0===r||Pe(o)&&Pe(l)&&!Array.isArray(l)?De(o,l):Le(e,r,l))}function qe(...[e,t]){const n=je(e||{}),r=Array.isArray(n);return[Oe(n),function(...e){M((()=>{r&&1===e.length?function(e,t){if("function"==typeof t&&(t=t(e)),t=je(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n