Scripts/resources/[ps]/ps-objectspawner/html/index.js

12 lines
70 KiB
JavaScript
Raw Normal View History

2024-12-29 20:28:24 +00:00
var Ei=Object.defineProperty;var Qt=Object.getOwnPropertySymbols;var Fi=Object.prototype.hasOwnProperty,Vi=Object.prototype.propertyIsEnumerable;var Zt=(n,e,t)=>e in n?Ei(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Mt=(n,e)=>{for(var t in e||(e={}))Fi.call(e,t)&&Zt(n,t,e[t]);if(Qt)for(var t of Qt(e))Vi.call(e,t)&&Zt(n,t,e[t]);return n};const Ni=function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const r of s.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function t(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerpolicy&&(s.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?s.credentials="include":l.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(l){if(l.ep)return;l.ep=!0;const s=t(l);fetch(l.href,s)}};Ni();function Y(){}const Kn=n=>n;function _t(n,e){for(const t in e)n[t]=e[t];return n}function Yn(n){return n()}function xt(){return Object.create(null)}function ke(n){n.forEach(Yn)}function gt(n){return typeof n=="function"}function ce(n,e){return n!=n?e==e:n!==e||n&&typeof n=="object"||typeof n=="function"}function Di(n){return Object.keys(n).length===0}function Bi(n,...e){if(n==null)return Y;const t=n.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function ut(n,e,t){n.$$.on_destroy.push(Bi(e,t))}function Pi(n,e,t,i){if(n){const l=Xn(n,e,t,i);return n[0](l)}}function Xn(n,e,t,i){return n[1]&&i?_t(t.ctx.slice(),n[1](i(e))):t.ctx}function Gi(n,e,t,i){if(n[2]&&i){const l=n[2](i(t));if(e.dirty===void 0)return l;if(typeof l=="object"){const s=[],r=Math.max(e.dirty.length,l.length);for(let o=0;o<r;o+=1)s[o]=e.dirty[o]|l[o];return s}return e.dirty|l}return e.dirty}function zi(n,e,t,i,l,s){if(l){const r=Xn(e,t,i,s);n.p(r,l)}}function Ri(n){if(n.ctx.length>32){const e=[],t=n.ctx.length/32;for(let i=0;i<t;i++)e[i]=-1;return e}return-1}function Wi(n,e,t){return n.set(t),e}function Ui(n){return n&&gt(n.destroy)?n.destroy:Y}const Qn=typeof window!="undefined";let qi=Qn?()=>window.performance.now():()=>Date.now(),Pt=Qn?n=>requestAnimationFrame(n):Y;const Ue=new Set;function Zn(n){Ue.forEach(e=>{e.c(n)||(Ue.delete(e),e.f())}),Ue.size!==0&&Pt(Zn)}function Ji(n){let e;return Ue.size===0&&Pt(Zn),{promise:new Promise(t=>{Ue.add(e={c:n,f:t})}),abort(){Ue.delete(e)}}}function I(n,e){n.appendChild(e)}function xn(n){if(!n)return document;const e=n.getRootNode?n.getRootNode():n.ownerDocument;return e&&e.host?e:n.ownerDocument}function Ki(n){const e=T("style");return Yi(xn(n),e),e.sheet}function Yi(n,e){I(n.head||n,e)}function G(n,e,t){n.insertBefore(e,t||null)}function N(n){n.parentNode.removeChild(n)}function Ze(n,e){for(let t=0;t<n.length;t+=1)n[t]&&n[t].d(e)}function T(n){return document.createElement(n)}function xe(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function se(n){return document.createTextNode(n)}function J(){return se(" ")}function be(){return se("")}function K(n,e,t,i){return n.addEventListener(e,t,i),()=>n.removeEventListener(e,t,i)}function Xi(n){return function(e){return e.preventDefault(),n.call(this,e)}}function y(n,e,t){t==null?n.removeAttribute(e):n.getAttribute(e)!==t&&n.setAttribute(e,t)}function $t(n,e){const t=Object.getOwnPropertyDescriptors(n.__proto__);for(const i in e)e[i]==null?n.removeAttribute(i):i==="style"?n.style.cssText=e[i]:i==="__value"?n.value=n[i]=e[i]:t[i]&&t[i].set?n[i]=e[i]:y(n,i,e[i])}function Et(n,e,t){e in n?n[e]=typeof n[e]=="boolean"&&t===""?!0:t:y(n,e,t)}function $n(n){return n===""?null:+n}function Qi(n){return Array.from(n.childNodes)}function Ce(n,e){e=""+e,n.wholeText!==e&&(n.data=e)}function qe(n,e){n.value=e==null?"":e}function Re(n,e,t,i){t===null?n.style.removeProperty(e):n.style.setProperty(e,t,i?"important":"")}let tt;function Zi(){if(tt===void 0){tt=!1;try{typeof window!="undefined"&&window.par
`;for(let L=0;L<=1;L+=u){const F=e+(t-e)*s(L);f+=L*100+`%{${r(F,1-F)}}
`}const g=f+`100% {${r(t,1-t)}}
}`,a=`__svelte_${el(g)}_${o}`,h=xn(n),{stylesheet:_,rules:w}=ft.get(h)||tl(h,n);w[a]||(w[a]=!0,_.insertRule(`@keyframes ${a} ${g}`,_.cssRules.length));const m=n.style.animation||"";return n.style.animation=`${m?`${m}, `:""}${a} ${i}ms linear ${l}ms 1 both`,ct+=1,a}function nl(n,e){const t=(n.style.animation||"").split(", "),i=t.filter(e?s=>s.indexOf(e)<0:s=>s.indexOf("__svelte")===-1),l=t.length-i.length;l&&(n.style.animation=i.join(", "),ct-=l,ct||il())}function il(){Pt(()=>{ct||(ft.forEach(n=>{const{stylesheet:e}=n;let t=e.cssRules.length;for(;t--;)e.deleteRule(t);n.rules={}}),ft.clear())})}let $e;function Qe(n){$e=n}function bt(){if(!$e)throw new Error("Function called outside component initialization");return $e}function ti(n){bt().$$.before_update.push(n)}function wt(n){bt().$$.on_mount.push(n)}function ll(n){bt().$$.on_destroy.push(n)}function Gt(){const n=bt();return(e,t,{cancelable:i=!1}={})=>{const l=n.$$.callbacks[e];if(l){const s=ei(e,t,{cancelable:i});return l.slice().forEach(r=>{r.call(n,s)}),!s.defaultPrevented}return!0}}function ni(n,e){const t=n.$$.callbacks[e.type];t&&t.slice().forEach(i=>i.call(this,e))}const Xe=[],pe=[],lt=[],Ft=[],ii=Promise.resolve();let Vt=!1;function li(){Vt||(Vt=!0,ii.then(ri))}function rt(){return li(),ii}function Je(n){lt.push(n)}function Nt(n){Ft.push(n)}const At=new Set;let nt=0;function ri(){const n=$e;do{for(;nt<Xe.length;){const e=Xe[nt];nt++,Qe(e),rl(e.$$)}for(Qe(null),Xe.length=0,nt=0;pe.length;)pe.pop()();for(let e=0;e<lt.length;e+=1){const t=lt[e];At.has(t)||(At.add(t),t())}lt.length=0}while(Xe.length);for(;Ft.length;)Ft.pop()();Vt=!1,At.clear(),Qe(n)}function rl(n){if(n.fragment!==null){n.update(),ke(n.before_update);const e=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(Je)}}let Ye;function sl(){return Ye||(Ye=Promise.resolve(),Ye.then(()=>{Ye=null})),Ye}function Tt(n,e,t){n.dispatchEvent(ei(`${e?"intro":"outro"}${t}`))}const st=new Set;let je;function ne(){je={r:0,c:[],p:je}}function ie(){je.r||ke(je.c),je=je.p}function O(n,e){n&&n.i&&(st.delete(n),n.i(e))}function E(n,e,t,i){if(n&&n.o){if(st.has(n))return;st.add(n),je.c.push(()=>{st.delete(n),i&&(t&&n.d(1),i())}),n.o(e)}}const ol={duration:0};function tn(n,e,t,i){let l=e(n,t),s=i?0:1,r=null,o=null,u=null;function f(){u&&nl(n,u)}function g(h,_){const w=h.b-s;return _*=Math.abs(w),{a:s,b:h.b,d:w,duration:_,start:h.start,end:h.start+_,group:h.group}}function a(h){const{delay:_=0,duration:w=300,easing:m=Kn,tick:L=Y,css:F}=l||ol,j={start:qi()+_,b:h};h||(j.group=je,je.r+=1),r||o?o=j:(F&&(f(),u=en(n,s,h,w,_,m,F)),h&&L(0,1),r=g(j,w),Je(()=>Tt(n,h,"start")),Ji(H=>{if(o&&H>o.start&&(r=g(o,w),o=null,Tt(n,r.b,"start"),F&&(f(),u=en(n,s,r.b,r.duration,0,m,l.css))),r){if(H>=r.end)L(s=r.b,1-s),Tt(n,r.b,"end"),o||(r.b?f():--r.group.r||ke(r.group.c)),r=null;else if(H>=r.start){const d=H-r.start;s=r.a+r.d*m(d/r.duration),L(s,1-s)}}return!!(r||o)}))}return{run(h){gt(l)?sl().then(()=>{l=l(),a(h)}):a(h)},end(){f(),r=o=null}}}function ul(n,e){n.d(1),e.delete(n.key)}function fl(n,e){E(n,1,1,()=>{e.delete(n.key)})}function si(n,e,t,i,l,s,r,o,u,f,g,a){let h=n.length,_=s.length,w=h;const m={};for(;w--;)m[n[w].key]=w;const L=[],F=new Map,j=new Map;for(w=_;w--;){const p=a(l,s,w),B=t(p);let M=r.get(B);M?i&&M.p(p,e):(M=f(B,p),M.c()),F.set(B,L[w]=M),B in m&&j.set(B,Math.abs(w-m[B]))}const H=new Set,d=new Set;function k(p){O(p,1),p.m(o,g),r.set(p.key,p),g=p.first,_--}for(;h&&_;){const p=L[_-1],B=n[h-1],M=p.key,z=B.key;p===B?(g=p.first,h--,_--):F.has(z)?!r.has(M)||H.has(M)?k(p):d.has(z)?h--:j.get(M)>j.get(z)?(d.add(M),k(p)):(H.add(z),h--):(u(B,r),h--)}for(;h--;){const p=n[h];F.has(p.key)||u(p,r)}for(;_;)k(L[_-1]);return L}function zt(n,e){const t={},i={},l={$$scope:1};let s=n.length;for(;s--;){const r=n[s],o=e[s];if(o){for(const u in r)u in o||(i[u]=1);for(const u in o)l[u]||(t[u]=o[u],l[u]=1);n[s]=o}else for(const u in r)l[u]=1}for(const r in i)r in t||(t[r]=void 0);return t}function oi(n){return typeof n=="object"&&n!==null?n:{}}function at(n,e,t){const i=n.$$.props[e];i!==void 0&&(n.$$.bound[i]=t,t(n.$$.ctx[i]))}fu
l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z`),y(e,"width","100%"),y(e,"height","100%"),y(e,"viewBox","-2 -2 50 50"),y(e,"focusable","false"),y(e,"aria-hidden","true"),y(e,"role","presentation")},m(i,l){G(i,e,l),I(e,t)},p:Y,i:Y,o:Y,d(i){i&&N(e)}}}class Rl extends he{constructor(e){super(),de(this,e,null,zl,ce,{})}}function Wl(n,e,t){let i;return function(){let s=this,r=arguments,o=function(){i=null,t||n.apply(s,r)},u=t&&!i;clearTimeout(i),i=setTimeout(o,e),u&&n.apply(s,r)}}function _n(n,e,t){const i=n.slice();return i[103]=e[t],i}function gn(n){let e,t,i,l,s;return{c(){e=T("span"),t=se(n[33]),i=J(),l=T("span"),s=se(n[32]),y(e,"id","aria-selection"),y(l,"id","aria-context")},m(r,o){G(r,e,o),I(e,t),G(r,i,o),G(r,l,o),I(l,s)},p(r,o){o[1]&4&&Ce(t,r[33]),o[1]&2&&Ce(s,r[32])},d(r){r&&N(e),r&&N(i),r&&N(l)}}}function bn(n){let e,t,i;const l=[n[18]];var s=n[17];function r(o){let u={};for(let f=0;f<l.length;f+=1)u=_t(u,l[f]);return{props:u}}return s&&(e=new s(r())),{c(){e&&x(e.$$.fragment),t=be()},m(o,u){e&&Q(e,o,u),G(o,t,u),i=!0},p(o,u){const f=u[0]&262144?zt(l,[oi(o[18])]):{};if(s!==(s=o[17])){if(e){ne();const g=e;E(g.$$.fragment,1,0,()=>{Z(g,1)}),ie()}s?(e=new s(r()),x(e.$$.fragment),O(e.$$.fragment,1),Q(e,t.parentNode,t)):e=null}else s&&e.$set(f)},i(o){i||(e&&O(e.$$.fragment,o),i=!0)},o(o){e&&E(e.$$.fragment,o),i=!1},d(o){o&&N(t),e&&Z(e,o)}}}function wn(n){let e,t,i;var l=n[26];function s(r){return{props:{value:r[2],getSelectionLabel:r[12],activeValue:r[30],isDisabled:r[9],multiFullItemClearable:r[8]}}}return l&&(e=new l(s(n)),e.$on("multiItemClear",n[38]),e.$on("focus",n[40])),{c(){e&&x(e.$$.fragment),t=be()},m(r,o){e&&Q(e,r,o),G(r,t,o),i=!0},p(r,o){const u={};if(o[0]&4&&(u.value=r[2]),o[0]&4096&&(u.getSelectionLabel=r[12]),o[0]&1073741824&&(u.activeValue=r[30]),o[0]&512&&(u.isDisabled=r[9]),o[0]&256&&(u.multiFullItemClearable=r[8]),l!==(l=r[26])){if(e){ne();const f=e;E(f.$$.fragment,1,0,()=>{Z(f,1)}),ie()}l?(e=new l(s(r)),e.$on("multiItemClear",r[38]),e.$on("focus",r[40]),x(e.$$.fragment),O(e.$$.fragment,1),Q(e,t.parentNode,t)):e=null}else l&&e.$set(u)},i(r){i||(e&&O(e.$$.fragment,r),i=!0)},o(r){e&&E(e.$$.fragment,r),i=!1},d(r){r&&N(t),e&&Z(e,r)}}}function vn(n){let e,t,i,l,s;var r=n[25];function o(u){return{props:{item:u[2],getSelectionLabel:u[12]}}}return r&&(t=new r(o(n))),{c(){e=T("div"),t&&x(t.$$.fragment),y(e,"class","selectedItem svelte-o7a0bj")},m(u,f){G(u,e,f),t&&Q(t,e,null),i=!0,l||(s=K(e,"focus",n[40]),l=!0)},p(u,f){const g={};if(f[0]&4&&(g.item=u[2]),f[0]&4096&&(g.getSelectionLabel=u[12]),r!==(r=u[25])){if(t){ne();const a=t;E(a.$$.fragment,1,0,()=>{Z(a,1)}),ie()}r?(t=new r(o(u)),x(t.$$.fragment),O(t.$$.fragment,1),Q(t,e,null)):t=null}else r&&t.$set(g)},i(u){i||(t&&O(t.$$.fragment,u),i=!0)},o(u){t&&E(t.$$.fragment,u),i=!1},d(u){u&&N(e),t&&Z(t),l=!1,s()}}}function yn(n){let e,t,i,l,s;var r=n[23];function o(u){return{}}return r&&(t=new r(o())),{c(){e=T("div"),t&&x(t.$$.fragment),y(e,"class","clearSelect svelte-o7a0bj"),y(e,"aria-hidden","true")},m(u,f){G(u,e,f),t&&Q(t,e,null),i=!0,l||(s=K(e,"click",Xi(n[27])),l=!0)},p(u,f){if(r!==(r=u[23])){if(t){ne();const g=t;E(g.$$.fragment,1,0,()=>{Z(g,1)}),ie()}r?(t=new r(o()),x(t.$$.fragment),O(t.$$.fragment,1),Q(t,e,null)):t=null}},i(u){i||(t&&O(t.$$.fragment,u),i=!0)},o(u){t&&E(t.$$.fragment,u),i=!1},d(u){u&&N(e),t&&Z(t),l=!1,s()}}}function pn(n){let e;function t(s,r){return s[22]?ql:Ul}let i=t(n),l=i(n);return{c(){e=T("div"),l.c(),y(e,"class","indicator svelte-o7a0bj"),y(e,"aria-hidden","true")},m(s,r){G(s,e,r),l.m(e,null)},p(s,r){i===(i=t(s))&&l?l.p(s,r):(l.d(1),l=i(s),l&&(l.c(),l.m(e,null)))},d(s){s&&N(e),l.d()}}}function Ul(n){let e,t;return{c(){e=xe("svg"),t=xe("path"),y(t,"d",`M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747
3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0
1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502
0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0
0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z`),y(e,"width","100%"),y(e,"height","100%"),y(e,"viewBox","0 0 20 20"),y(e,"focusable","false"),y(e,"aria-hidden","true"),y(e,"class","svelte-o7a0bj")},m(i,l){G(i,e,l),I(e,t)},p:Y,d(i){i&&N(e)}}}function ql(n){let e,t;return{c(){e=new $i(!1),t=be(),e.a=t},m(i,l){e.m(n[22],i,l),G(i,t,l)},p(i,l){l[0]&4194304&&e.p(i[22])},d(i){i&&N(t),i&&e.d()}}}function kn(n){let e;return{c(){e=T("div"),e.innerHTML='<svg class="spinner_icon svelte-o7a0bj" viewBox="25 25 50 50"><circle class="spinner_path svelte-o7a0bj" cx="50" cy="50" r="20" fill="none" stroke="currentColor" stroke-width="5" stroke-miterlimit="10"></circle></svg>',y(e,"class","spinner svelte-o7a0bj")},m(t,i){G(t,e,i)},d(t){t&&N(e)}}}function In(n){let e,t,i,l;const s=[n[34]];function r(f){n[84](f)}var o=n[24];function u(f){let g={};for(let a=0;a<s.length;a+=1)g=_t(g,s[a]);return f[28]!==void 0&&(g.hoverItemIndex=f[28]),{props:g}}return o&&(e=new o(u(n)),pe.push(()=>at(e,"hoverItemIndex",r)),e.$on("itemSelected",n[43]),e.$on("itemCreated",n[44]),e.$on("closeList",n[45])),{c(){e&&x(e.$$.fragment),i=be()},m(f,g){e&&Q(e,f,g),G(f,i,g),l=!0},p(f,g){const a=g[1]&8?zt(s,[oi(f[34])]):{};if(!t&&g[0]&268435456&&(t=!0,a.hoverItemIndex=f[28],Nt(()=>t=!1)),o!==(o=f[24])){if(e){ne();const h=e;E(h.$$.fragment,1,0,()=>{Z(h,1)}),ie()}o?(e=new o(u(f)),pe.push(()=>at(e,"hoverItemIndex",r)),e.$on("itemSelected",f[43]),e.$on("itemCreated",f[44]),e.$on("closeList",f[45]),x(e.$$.fragment),O(e.$$.fragment,1),Q(e,i.parentNode,i)):e=null}else o&&e.$set(a)},i(f){l||(e&&O(e.$$.fragment,f),l=!0)},o(f){e&&E(e.$$.fragment,f),l=!1},d(f){f&&N(i),e&&Z(e,f)}}}function Ln(n){let e,t,i;return{c(){e=T("input"),y(e,"name",t=n[16].name),y(e,"type","hidden"),e.value=i=n[2]?n[12](n[2]):null,y(e,"class","svelte-o7a0bj")},m(l,s){G(l,e,s)},p(l,s){s[0]&65536&&t!==(t=l[16].name)&&y(e,"name",t),s[0]&4100&&i!==(i=l[2]?l[12](l[2]):null)&&(e.value=i)},d(l){l&&N(e)}}}function Sn(n){let e,t=n[2],i=[];for(let l=0;l<t.length;l+=1)i[l]=Cn(_n(n,t,l));return{c(){for(let l=0;l<i.length;l+=1)i[l].c();e=be()},m(l,s){for(let r=0;r<i.length;r+=1)i[r].m(l,s);G(l,e,s)},p(l,s){if(s[0]&69636){t=l[2];let r;for(r=0;r<t.length;r+=1){const o=_n(l,t,r);i[r]?i[r].p(o,s):(i[r]=Cn(o),i[r].c(),i[r].m(e.parentNode,e))}for(;r<i.length;r+=1)i[r].d(1);i.length=t.length}},d(l){Ze(i,l),l&&N(e)}}}function Cn(n){let e,t,i;return{c(){e=T("input"),y(e,"name",t=n[16].name),y(e,"type","hidden"),e.value=i=n[103]?n[12](n[103]):null,y(e,"class","svelte-o7a0bj")},m(l,s){G(l,e,s)},p(l,s){s[0]&65536&&t!==(t=l[16].name)&&y(e,"name",t),s[0]&4100&&i!==(i=l[103]?l[12](l[103]):null)&&(e.value=i)},d(l){l&&N(e)}}}function Jl(n){let e,t,i,l,s,r,o,u,f,g,a,h,_,w,m,L,F,j,H=n[1]&&gn(n),d=n[17]&&bn(n),k=n[35]&&wn(n),p=[{readOnly:o=!n[13]},n[31],{placeholder:n[36]},{style:n[14]},{disabled:n[9]}],B={};for(let b=0;b<p.length;b+=1)B=_t(B,p[b]);let M=!n[7]&&n[29]&&vn(n),z=n[37]&&yn(n),C=!n[37]&&(n[20]||n[19]&&!n[2]||!n[13]&&!n[9]&&!n[4]&&(n[29]&&!n[15]||!n[29]))&&pn(n),U=n[4]&&kn(),D=n[5]&&In(n),W=(!n[7]||n[7]&&!n[35])&&Ln(n),S=n[7]&&n[35]&&Sn(n);return{c(){e=T("div"),t=T("span"),H&&H.c(),i=J(),d&&d.c(),l=J(),k&&k.c(),s=J(),r=T("input"),u=J(),M&&M.c(),f=J(),z&&z.c(),g=J(),C&&C.c(),a=J(),U&&U.c(),h=J(),D&&D.c(),_=J(),W&&W.c(),w=J(),S&&S.c(),y(t,"aria-live","polite"),y(t,"aria-atomic","false"),y(t,"aria-relevant","additions text"),y(t,"class","a11yText svelte-o7a0bj"),$t(r,B),ye(r,"svelte-o7a0bj",!0),y(e,"class",m="selectContainer "+n[21]+" svelte-o7a0bj"),y(e,"style",n[11]),ye(e,"hasError",n[10]),ye(e,"multiSelect",n[7]),ye(e,"disabled",n[9]),ye(e,"focused",n[1])},m(b,A){G(b,e,A),I(e,t),H&&H.m(t,null),I(e,i),d&&d.m(e,null),I(e,l),k&&k.m(e,null),I(e,s),I(e,r),r.autofocus&&r.focus(),n[82](r),qe(r,n[3]),I(e,u),M&&M.m(e,null),I(e,f),z&&z.m(e,null),I(e,g),C&&C.m(e,null),I(e,a),U&&U.m(e,null),I(e,h),D&&D.m(e,null),I(e,_),W&&W.m(e,null),I(e,w),S&&S.m(e,null),n[85](e),L=!0,F||(j=[K(window,"click",n[41]),K(window,"focusin",n[41]),K(window,"keydown",n[39]),K(r,"focus",n[40]),K(r,"input",n[83]),K(e,"click",n[42])],F=!0)},p(b,A){b[1]?H?H.p(
<div><p class="text-xl font-bold">Object</p></div>
<div><p class="text-xl font-bold">Cords (x,y,z)</p></div>`,i=J(),l=T("div");for(let m=0;m<s.length;m+=1)s[m].c();o=J(),u=T("div"),x(f.$$.fragment),g=J(),x(a.$$.fragment),y(t,"class","grid grid-cols-3"),y(l,"class","block h-82 overflow-y-auto bg-[#292929] select-none"),y(u,"class","flex flex-row justify-between mt-4"),y(e,"class","min-h-94 flex flex-col gap-2 text-center")},m(m,L){G(m,e,L),I(e,t),I(e,i),I(e,l);for(let F=0;F<s.length;F+=1)s[F].m(l,null);I(e,o),I(e,u),Q(f,u,null),I(u,g),Q(a,u,null),h=!0},p(m,[L]){L&11&&(_=m[1],s=si(s,L,w,1,m,_,r,l,ul,An,null,Mn))},i(m){h||(O(f.$$.fragment,m),O(a.$$.fragment,m),h=!0)},o(m){E(f.$$.fragment,m),E(a.$$.fragment,m),h=!1},d(m){m&&N(e);for(let L=0;L<s.length;L+=1)s[L].d();Z(f),Z(a)}}}function sr(n,e,t){let i,{spawnedObjectList:l}=Ee;ut(n,l,_=>t(1,i=_));let s=0,r=null;function o(_){r=_,t(0,s=_.id)}function u(){dt("delete",{id:r.id}),Wi(l,i=i.filter(_=>_.id!==s),i)}function f(){dt("tpTo",{coords:r.coords})}return[s,i,l,o,u,f,_=>o(_),()=>u(),()=>f()]}class or extends he{constructor(e){super(),de(this,e,sr,rr,ce,{})}}function ur(n,e,t,i){var l,s=(l=i)==null||typeof l=="number"||typeof l=="boolean"?i:t(i),r=e.get(s);return r===void 0&&(r=n.call(this,i),e.set(s,r)),r}function fr(n,e,t){var i=Array.prototype.slice.call(arguments,3),l=t(i),s=e.get(l);return s===void 0&&(s=n.apply(this,i),e.set(l,s)),s}function cr(n,e){return function(t,i,l,s,r){return l.bind(i,t,s,r)}(n,this,n.length===1?ur:fr,e.cache.create(),e.serializer)}const ar=JSON.stringify;function ot(){this.cache=Object.create(null)}ot.prototype.has=function(n){return n in this.cache},ot.prototype.get=function(n){return this.cache[n]},ot.prototype.set=function(n,e){this.cache[n]=e};var dr={create:function(){return new ot}};const hr=(n,e={})=>{var R,ue;let{bounds:t,axis:i="both",gpuAcceleration:l=!0,applyUserSelectHack:s=!0,disabled:r=!1,ignoreMultitouch:o=!1,grid:u,position:f,cancel:g,handle:a,defaultClass:h="neodrag",defaultClassDragging:_="neodrag-dragging",defaultClassDragged:w="neodrag-dragged",defaultPosition:m={x:0,y:0},onDragStart:L,onDrag:F,onDragEnd:j}=e;const H=new Promise(requestAnimationFrame);let d,k,p=!1,B=0,M=0,z=0,C=0,U=0,D=0,{x:W,y:S}=f?{x:(R=f==null?void 0:f.x)!=null?R:0,y:(ue=f==null?void 0:f.y)!=null?ue:0}:m;jt(W,S,n,l);let b,A,ee,le,ae="",Oe=!!f;const Me=document.body.style,oe=n.classList,Fe=(P,me)=>{const _e={offsetX:B,offsetY:M,domRect:n.getBoundingClientRect()};n.dispatchEvent(new CustomEvent(P,{detail:_e})),me==null||me(_e)},ge=addEventListener;ge("touchstart",He,!1),ge("touchend",we,!1),ge("touchmove",v,!1),ge("mousedown",He,!1),ge("mouseup",we,!1),ge("mousemove",v,!1),n.style.touchAction="none";const Ve=()=>{let P=n.offsetWidth/A.width;return isNaN(P)&&(P=1),P};function He(P){if(r||o&&P.type==="touchstart"&&P.touches.length>1)return;if(oe.add(h),ee=function(q,re){if(!q)return re;if(q instanceof HTMLElement||Array.isArray(q))return q;const te=re.querySelectorAll(q);if(te===null)throw new Error("Selector passed for `handle` option should be child of the element on which the action is applied");return Array.from(te.values())}(a,n),le=function(q,re){if(!q)return;if(q instanceof HTMLElement||Array.isArray(q))return q;const te=re.querySelectorAll(q);if(te===null)throw new Error("Selector passed for `cancel` option should be child of the element on which the action is applied");return Array.from(te.values())}(g,n),d=/(both|x)/.test(i),k=/(both|y)/.test(i),t!==void 0&&(b=function(q,re){if(q instanceof HTMLElement)return q.getBoundingClientRect();if(typeof q=="object"){const{top:Ie=0,left:Le=0,right:Se=0,bottom:Ne=0}=q;return{top:Ie,right:window.innerWidth-Se,bottom:window.innerHeight-Ne,left:Le}}if(q==="parent")return re.parentNode.getBoundingClientRect();const te=document.querySelector(q);if(te===null)throw new Error("The selector provided for bound doesn't exists in the document.");return te.getBoundingClientRect()}(t,n)),A=n.getBoundingClientRect(),En(a)&&En(g)&&a===g)throw new Error("`handle` selector can't be same as `cancel` selector");if(Dn(le,ee))throw new Error("Element being dragged can't be a chi