n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 2.73 kB
JavaScript
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`n8n@2.13.4`}}catch{}})();try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`bc7c480f-258d-475f-905a-82f8de6fa366`,e._sentryDebugIdIdentifier=`sentry-dbid-bc7c480f-258d-475f-905a-82f8de6fa366`)})()}catch{}import{o as e,t}from"./chunk-DxpFCn6T.js";import{Ft as n}from"./vue.runtime.esm-bundler-D9KLAxvJ.js";import{c as r,f as i}from"./_MapCache-CUJwh2qp.js";import{E as a}from"./src-wni2AGA3.js";import{wl as o}from"./constants-CIP7tKq1.js";var s=t(((e,t)=>{var n=/\s/;function r(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}t.exports=r})),c=t(((e,t)=>{var n=s(),r=/^\s+/;function i(e){return e&&e.slice(0,n(e)+1).replace(r,``)}t.exports=i})),l=t(((e,t)=>{var n=c(),i=r(),o=a(),s=NaN,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt;function p(e){if(typeof e==`number`)return e;if(o(e))return s;if(i(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=i(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=n(e);var r=u.test(e);return r||d.test(e)?f(e.slice(2),r?2:8):l.test(e)?s:+e}t.exports=p})),u=t(((e,t)=>{var n=i();t.exports=function(){return n.Date.now()}})),d=t(((e,t)=>{var n=r(),i=u(),a=l(),o=`Expected a function`,s=Math.max,c=Math.min;function d(e,t,r){var l,u,d,f,p,m,h=0,g=!1,_=!1,v=!0;if(typeof e!=`function`)throw TypeError(o);t=a(t)||0,n(r)&&(g=!!r.leading,_=`maxWait`in r,d=_?s(a(r.maxWait)||0,t):d,v=`trailing`in r?!!r.trailing:v);function y(t){var n=l,r=u;return l=u=void 0,h=t,f=e.apply(r,n),f}function b(e){return h=e,p=setTimeout(C,t),g?y(e):f}function x(e){var n=e-m,r=e-h,i=t-n;return _?c(i,d-r):i}function S(e){var n=e-m,r=e-h;return m===void 0||n>=t||n<0||_&&r>=d}function C(){var e=i();if(S(e))return w(e);p=setTimeout(C,x(e))}function w(e){return p=void 0,v&&l?y(e):(l=u=void 0,f)}function T(){p!==void 0&&clearTimeout(p),h=0,l=m=u=p=void 0}function E(){return p===void 0?f:w(i())}function D(){var e=i(),n=S(e);if(l=arguments,u=this,m=e,n){if(p===void 0)return b(m);if(_)return clearTimeout(p),p=setTimeout(C,t),y(m)}return p===void 0&&(p=setTimeout(C,t)),f}return D.cancel=T,D.flush=E,D}t.exports=d})),f=e(d(),1);function p(){let e=n(new WeakMap),t=(t,n)=>{let{trailing:r,debounceTime:i}=n,a=o(i),s=e.value.get(t);return s===void 0&&(s=(0,f.default)(async(...e)=>t(...e),a,r?{trailing:r}:{leading:!0}),e.value.set(t,s)),s};return{debounce:t,callDebounced:(e,n,...r)=>t(e,n)(...r)}}export{d as n,l as r,p as t};
//# sourceMappingURL=useDebounce-CTeIt-cH.js.map