n8n-editor-ui
Version:
Workflow Editor UI for n8n
10 lines • 52.7 kB
JavaScript
(function(){try{var e=typeof window<`u`?window:d===void 0?typeof globalThis<`u`?globalThis:typeof self<`u`?self:{}:d;e.SENTRY_RELEASE={id:`n8n@2.16.1`}}catch{}})();try{(function(){var e=typeof window<`u`?window:d===void 0?typeof globalThis<`u`?globalThis:typeof self<`u`?self:{}:d,t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`557f0119-58c7-4696-851e-647b85d66539`,e._sentryDebugIdIdentifier=`sentry-dbid-557f0119-58c7-4696-851e-647b85d66539`)})()}catch{}import{r as e}from"./chunk-CACdhNlC.js";import{At as t,Bt as n,En as r,Et as i,Ft as a,L as o,Mt as s,Nt as c,R as l,S as u,Tn as d,Tt as f,Vt as p,W as m,gt as h,jt as g,kt as _,zt as v}from"./vue.runtime.esm-bundler-C3C09Zii.js";import"./_MapCache-CP9ToMjk.js";import{C as y,S as b,i as x,r as S}from"./empty-BNY-5QlZ.js";import{Po as C,Ra as w,Va as ee,qi as T}from"./constants-DuQbSl-q.js";r();var E,D=e=>E=e,O=()=>o()&&l(te)||E,te=Symbol();function ne(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var re;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(re||={});var ie=typeof window<`u`,ae=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof d==`object`&&d.global===d?d:typeof globalThis==`object`?globalThis:{HTMLElement:null};function oe(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function se(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){fe(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function ce(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function le(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=document.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var ue=typeof navigator==`object`?navigator:{userAgent:``},de=/Macintosh/.test(ue.userAgent)&&/AppleWebKit/.test(ue.userAgent)&&!/Safari/.test(ue.userAgent),fe=ie?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!de?pe:`msSaveOrOpenBlob`in ue?me:he:()=>{};function pe(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?le(r):ce(r.href)?se(e,t,n):(r.target=`_blank`,le(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){le(r)},0))}function me(e,t=`download`,n){if(typeof e==`string`)if(ce(e))se(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){le(t)})}else navigator.msSaveOrOpenBlob(oe(e,n),t)}function he(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return se(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(ae.HTMLElement))||`safari`in ae,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||de)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:ge}=Object;function _e(){let e=f(!0),t=e.run(()=>a({})),n=[],r=[],i=g({install(e){D(i),i._a=e,e.provide(te,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var ve=()=>{};function ye(e,t,n,r=ve){e.push(t);let a=()=>{let n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!n&&i()&&s(a),a}function k(e,...t){e.slice().forEach(e=>{e(...t)})}var be=e=>e(),xe=Symbol(),Se=Symbol();function Ce(e,n){e instanceof Map&&n instanceof Map?n.forEach((t,n)=>e.set(n,t)):e instanceof Set&&n instanceof Set&&n.forEach(e.add,e);for(let r in n){if(!n.hasOwnProperty(r))continue;let i=n[r],a=e[r];ne(a)&&ne(i)&&e.hasOwnProperty(r)&&!t(i)&&!_(i)?e[r]=Ce(a,i):e[r]=i}return e}var we=Symbol();function Te(e){return!ne(e)||!e.hasOwnProperty(we)}var{assign:A}=Object;function Ee(e){return!!(t(e)&&e.effect)}function De(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),A(p(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=g(u(()=>{D(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=Oe(e,l,t,n,r,!0),c}function Oe(e,n,r={},i,o,s){let l,u=A({actions:{}},r),d={deep:!0},p,g,y=[],b=[],x=i.state.value[e];!s&&!x&&(i.state.value[e]={}),a({});let S;function C(t){let n;p=g=!1,typeof t==`function`?(t(i.state.value[e]),n={type:re.patchFunction,storeId:e,events:void 0}):(Ce(i.state.value[e],t),n={type:re.patchObject,payload:t,storeId:e,events:void 0});let r=S=Symbol();m().then(()=>{S===r&&(p=!0)}),g=!0,k(y,n,i.state.value[e])}let w=s?function(){let{state:e}=r,t=e?e():{};this.$patch(e=>{A(e,t)})}:ve;function ee(){l.stop(),y=[],b=[],i._s.delete(e)}let T=(t,n=``)=>{if(xe in t)return t[Se]=n,t;let r=function(){D(i);let n=Array.from(arguments),a=[],o=[];function s(e){a.push(e)}function c(e){o.push(e)}k(b,{args:n,name:r[Se],store:E,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:E,n)}catch(e){throw k(o,e),e}return l instanceof Promise?l.then(e=>(k(a,e),e)).catch(e=>(k(o,e),Promise.reject(e))):(k(a,l),l)};return r[xe]=!0,r[Se]=n,r},E=c({_p:i,$id:e,$onAction:ye.bind(null,b),$patch:C,$reset:w,$subscribe(t,n={}){let r=ye(y,t,n.detached,()=>a()),a=l.run(()=>h(()=>i.state.value[e],r=>{(n.flush===`sync`?g:p)&&t({storeId:e,type:re.direct,events:void 0},r)},A({},d,n)));return r},$dispose:ee});i._s.set(e,E);let O=(i._a&&i._a.runWithContext||be)(()=>i._e.run(()=>(l=f()).run(()=>n({action:T}))));for(let n in O){let r=O[n];t(r)&&!Ee(r)||_(r)?s||(x&&Te(r)&&(t(r)?r.value=x[n]:Ce(r,x[n])),i.state.value[e][n]=r):typeof r==`function`&&(O[n]=T(r,n),u.actions[n]=r)}return A(E,O),A(v(E),O),Object.defineProperty(E,`$state`,{get:()=>i.state.value[e],set:e=>{C(t=>{A(t,e)})}}),i._p.forEach(e=>{A(E,l.run(()=>e({store:E,app:i._a,pinia:i,options:u})))}),x&&s&&r.hydrate&&r.hydrate(E.$state,x),p=!0,g=!0,E}function ke(e,t,n){let r,i,a=typeof t==`function`;typeof e==`string`?(r=e,i=a?n:t):(i=e,r=e.id);function s(e,n){let s=o();return e||=s?l(te,null):null,e&&D(e),e=E,e._s.has(r)||(a?Oe(r,t,i,e):De(r,i,e)),e._s.get(r)}return s.$id=r,s}function Ae(e){{e=v(e);let r={};for(let i in e){let a=e[i];(t(a)||_(a))&&(r[i]=n(e,i))}return r}}var je=function(e){e.mixin({beforeCreate(){let e=this.$options;if(e.pinia){let t=e.pinia;if(!this._provided){let e={};Object.defineProperty(this,`_provided`,{get:()=>e,set:t=>Object.assign(e,t)})}this._provided[te]=t,this.$pinia||=t,t._a=this,ie&&D(t)}else !this.$pinia&&e.parent&&e.parent.$pinia&&(this.$pinia=e.parent.$pinia)},destroyed(){delete this._pStores}})},Me=`n8n-browserId`,Ne=`https://api.npms.io/v2/`,Pe=`n8n-instance-id`,Fe=`n8n-version`,Ie=`PartialExecutionToolExecutor`,Le={milliseconds:{toHours:1/(3600*1e3),toMinutes:1/(60*1e3),toSeconds:1/1e3},seconds:{toMilliseconds:1e3},minutes:{toMilliseconds:60*1e3},hours:{toMilliseconds:3600*1e3,toSeconds:3600},days:{toSeconds:1440*60,toMilliseconds:1440*60*1e3}};5*Le.seconds.toMilliseconds,3*Le.minutes.toMilliseconds;var Re=1*Le.minutes.toMilliseconds,ze=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`;function Be(e,t){if(!e)throw Error(t??`Assertion failed`)}function Ve(e,t){return function(){return e.apply(t,arguments)}}r(),b();var{toString:He}=Object.prototype,{getPrototypeOf:Ue}=Object,{iterator:j,toStringTag:We}=Symbol,M=(e=>t=>{let n=He.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),N=e=>(e=e.toLowerCase(),t=>M(t)===e),Ge=e=>t=>typeof t===e,{isArray:P}=Array,F=Ge(`undefined`);function I(e){return e!==null&&!F(e)&&e.constructor!==null&&!F(e.constructor)&&L(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Ke=N(`ArrayBuffer`);function qe(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Ke(e.buffer),t}var Je=Ge(`string`),L=Ge(`function`),Ye=Ge(`number`),R=e=>typeof e==`object`&&!!e,Xe=e=>e===!0||e===!1,Ze=e=>{if(M(e)!==`object`)return!1;let t=Ue(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(We in e)&&!(j in e)},Qe=e=>{if(!R(e)||I(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},$e=N(`Date`),et=N(`File`),tt=e=>!!(e&&e.uri!==void 0),nt=e=>e&&e.getParts!==void 0,rt=N(`Blob`),it=N(`FileList`),at=e=>R(e)&&L(e.pipe);function ot(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:d===void 0?{}:d}var st=ot(),ct=st.FormData===void 0?void 0:st.FormData,lt=e=>{let t;return e&&(ct&&e instanceof ct||L(e.append)&&((t=M(e))===`formdata`||t===`object`&&L(e.toString)&&e.toString()===`[object FormData]`))},ut=N(`URLSearchParams`),[dt,ft,pt,mt]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(N),ht=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function z(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),P(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(I(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function gt(e,t){if(I(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var B=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:d,_t=e=>!F(e)&&e!==B;function vt(){let{caseless:e,skipUndefined:t}=_t(this)&&this||{},n={},r=(r,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=e&>(n,i)||i;Ze(n[a])&&Ze(r)?n[a]=vt(n[a],r):Ze(r)?n[a]=vt({},r):P(r)?n[a]=r.slice():(!t||!F(r))&&(n[a]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&z(arguments[e],r);return n}var yt=(e,t,n,{allOwnKeys:r}={})=>(z(t,(t,r)=>{n&&L(t)?Object.defineProperty(e,r,{value:Ve(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),bt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,`constructor`,{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,`super`,{value:t.prototype}),n&&Object.assign(e.prototype,n)},St=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Ue(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ct=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},wt=e=>{if(!e)return null;if(P(e))return e;let t=e.length;if(!Ye(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},Tt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&Ue(Uint8Array)),Et=(e,t)=>{let n=(e&&e[j]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Dt=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ot=N(`HTMLFormElement`),kt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),At=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),jt=N(`RegExp`),Mt=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};z(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Nt=e=>{Mt(e,(t,n)=>{if(L(e)&&[`arguments`,`caller`,`callee`].indexOf(n)!==-1)return!1;let r=e[n];if(L(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},Pt=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return P(e)?r(e):r(String(e).split(t)),n},Ft=()=>{},It=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Lt(e){return!!(e&&L(e.append)&&e[We]===`FormData`&&e[j])}var Rt=e=>{let t=Array(10),n=(e,r)=>{if(R(e)){if(t.indexOf(e)>=0)return;if(I(e))return e;if(!(`toJSON`in e)){t[r]=e;let i=P(e)?[]:{};return z(e,(e,t)=>{let a=n(e,r+1);!F(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},zt=N(`AsyncFunction`),Bt=e=>e&&(R(e)||L(e))&&L(e.then)&&L(e.catch),Vt=((e,t)=>e?setImmediate:t?((e,t)=>(B.addEventListener(`message`,({source:n,data:r})=>{n===B&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),B.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,L(B.postMessage)),V={isArray:P,isArrayBuffer:Ke,isBuffer:I,isFormData:lt,isArrayBufferView:qe,isString:Je,isNumber:Ye,isBoolean:Xe,isObject:R,isPlainObject:Ze,isEmptyObject:Qe,isReadableStream:dt,isRequest:ft,isResponse:pt,isHeaders:mt,isUndefined:F,isDate:$e,isFile:et,isReactNativeBlob:tt,isReactNative:nt,isBlob:rt,isRegExp:jt,isFunction:L,isStream:at,isURLSearchParams:ut,isTypedArray:Tt,isFileList:it,forEach:z,merge:vt,extend:yt,trim:ht,stripBOM:bt,inherits:xt,toFlatObject:St,kindOf:M,kindOfTest:N,endsWith:Ct,toArray:wt,forEachEntry:Et,matchAll:Dt,isHTMLForm:Ot,hasOwnProperty:At,hasOwnProp:At,reduceDescriptors:Mt,freezeMethods:Nt,toObjectSet:Pt,toCamelCase:kt,noop:Ft,toFiniteNumber:It,findKey:gt,global:B,isContextDefined:_t,isSpecCompliantForm:Lt,toJSONObject:Rt,isAsyncFn:zt,isThenable:Bt,setImmediate:Vt,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(B):y!==void 0&&y.nextTick||Vt,isIterable:e=>e!=null&&L(e[j])},H=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,`message`,{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.status}}};H.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,H.ERR_BAD_OPTION=`ERR_BAD_OPTION`,H.ECONNABORTED=`ECONNABORTED`,H.ETIMEDOUT=`ETIMEDOUT`,H.ERR_NETWORK=`ERR_NETWORK`,H.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,H.ERR_DEPRECATED=`ERR_DEPRECATED`,H.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,H.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,H.ERR_CANCELED=`ERR_CANCELED`,H.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,H.ERR_INVALID_URL=`ERR_INVALID_URL`,x();function Ht(e){return V.isPlainObject(e)||V.isArray(e)}function Ut(e){return V.endsWith(e,`[]`)?e.slice(0,-2):e}function Wt(e,t,n){return e?e.concat(t).map(function(e,t){return e=Ut(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function Gt(e){return V.isArray(e)&&!e.some(Ht)}var Kt=V.toFlatObject(V,{},null,function(e){return/^is[A-Z]/.test(e)});function qt(e,t,n){if(!V.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!V.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||l,a=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<`u`&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(i))throw TypeError(`visitor must be a function`);function c(e){if(e===null)return``;if(V.isDate(e))return e.toISOString();if(V.isBoolean(e))return e.toString();if(!s&&V.isBlob(e))throw new H(`Blob is not supported. Use a Buffer instead.`);return V.isArrayBuffer(e)||V.isTypedArray(e)?s&&typeof Blob==`function`?new Blob([e]):S.from(e):e}function l(e,n,i){let s=e;if(V.isReactNative(t)&&V.isReactNativeBlob(e))return t.append(Wt(i,n,a),c(e)),!1;if(e&&!i&&typeof e==`object`){if(V.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(V.isArray(e)&&Gt(e)||(V.isFileList(e)||V.endsWith(n,`[]`))&&(s=V.toArray(e)))return n=Ut(n),s.forEach(function(e,r){!(V.isUndefined(e)||e===null)&&t.append(o===!0?Wt([n],r,a):o===null?n:n+`[]`,c(e))}),!1}return Ht(e)?!0:(t.append(Wt(i,n,a),c(e)),!1)}let u=[],d=Object.assign(Kt,{defaultVisitor:l,convertValue:c,isVisitable:Ht});function f(e,n){if(!V.isUndefined(e)){if(u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),V.forEach(e,function(e,r){(!(V.isUndefined(e)||e===null)&&i.call(t,e,V.isString(r)?r.trim():r,n,d))===!0&&f(e,n?n.concat(r):[r])}),u.pop()}}if(!V.isObject(e))throw TypeError(`data must be an object`);return f(e),t}function Jt(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`,"%00":`\0`};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Yt(e,t){this._pairs=[],e&&qt(e,this,t)}var Xt=Yt.prototype;Xt.append=function(e,t){this._pairs.push([e,t])},Xt.toString=function(e){let t=e?function(t){return e.call(this,t,Jt)}:Jt;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function Zt(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Qt(e,t,n){if(!t)return e;let r=n&&n.encode||Zt,i=V.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(o=a?a(t,i):V.isURLSearchParams(t)?t.toString():new Yt(t,i).toString(r),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var $t=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){V.forEach(this.handlers,function(t){t!==null&&e(t)})}},en={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},tn={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:Yt,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},nn=e({hasBrowserEnv:()=>rn,hasStandardBrowserEnv:()=>on,hasStandardBrowserWebWorkerEnv:()=>sn,navigator:()=>an,origin:()=>cn}),rn=typeof window<`u`&&typeof document<`u`,an=typeof navigator==`object`&&navigator||void 0,on=rn&&(!an||[`ReactNative`,`NativeScript`,`NS`].indexOf(an.product)<0),sn=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,cn=rn&&window.location.href||`http://localhost`,U={...nn,...tn};function ln(e,t){return qt(e,new U.classes.URLSearchParams,{visitor:function(e,t,n,r){return U.isNode&&V.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function un(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function dn(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function fn(e){function t(e,n,r,i){let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&V.isArray(r)?r.length:a,s?(V.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!V.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&V.isArray(r[a])&&(r[a]=dn(r[a])),!o)}if(V.isFormData(e)&&V.isFunction(e.entries)){let n={};return V.forEachEntry(e,(e,r)=>{t(un(e),r,n,0)}),n}return null}function pn(e,t,n){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var W={transitional:en,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=V.isObject(e);if(i&&V.isHTMLForm(e)&&(e=new FormData(e)),V.isFormData(e))return r?JSON.stringify(fn(e)):e;if(V.isArrayBuffer(e)||V.isBuffer(e)||V.isStream(e)||V.isFile(e)||V.isBlob(e)||V.isReadableStream(e))return e;if(V.isArrayBufferView(e))return e.buffer;if(V.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return ln(e,this.formSerializer).toString();if((a=V.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let t=this.env&&this.env.FormData;return qt(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType(`application/json`,!1),pn(e)):e}],transformResponse:[function(e){let t=this.transitional||W.transitional,n=t&&t.forcedJSONParsing,r=this.responseType===`json`;if(V.isResponse(e)||V.isReadableStream(e))return e;if(e&&V.isString(e)&&(n&&!this.responseType||r)){let n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n)throw e.name===`SyntaxError`?H.from(e,H.ERR_BAD_RESPONSE,this,null,this.response):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:U.classes.FormData,Blob:U.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};V.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`],e=>{W.headers[e]={}});var mn=V.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),hn=e=>{let t={},n,r,i;return e&&e.split(`
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&mn[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t},gn=Symbol(`internals`),_n=e=>!/[\r\n]/.test(e);function vn(e,t){if(!(e===!1||e==null)){if(V.isArray(e)){e.forEach(e=>vn(e,t));return}if(!_n(String(e)))throw Error(`Invalid character in header content ["${t}"]`)}}function G(e){return e&&String(e).trim().toLowerCase()}function yn(e){let t=e.length;for(;t>0;){let n=e.charCodeAt(t-1);if(n!==10&&n!==13)break;--t}return t===e.length?e:e.slice(0,t)}function bn(e){return e===!1||e==null?e:V.isArray(e)?e.map(bn):yn(String(e))}function xn(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var Sn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Cn(e,t,n,r,i){if(V.isFunction(r))return r.call(this,t,n);if(i&&(t=n),V.isString(t)){if(V.isString(r))return t.indexOf(r)!==-1;if(V.isRegExp(r))return r.test(t)}}function wn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Tn(e,t){let n=V.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var K=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=G(t);if(!i)throw Error(`header name must be a non-empty string`);let a=V.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(vn(e,t),r[a||t]=bn(e))}let a=(e,t)=>V.forEach(e,(e,n)=>i(e,n,t));if(V.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(V.isString(e)&&(e=e.trim())&&!Sn(e))a(hn(e),t);else if(V.isObject(e)&&V.isIterable(e)){let n={},r,i;for(let t of e){if(!V.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?V.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=G(e),e){let n=V.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return xn(e);if(V.isFunction(t))return t.call(this,e,n);if(V.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=G(e),e){let n=V.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Cn(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=G(e),e){let i=V.findKey(n,e);i&&(!t||Cn(n,n[i],i,t))&&(delete n[i],r=!0)}}return V.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||Cn(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return V.forEach(this,(r,i)=>{let a=V.findKey(n,i);if(a){t[a]=bn(r),delete t[i];return}let o=e?wn(i):String(i).trim();o!==i&&delete t[i],t[o]=bn(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return V.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&V.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
`)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[gn]=this[gn]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=G(e);t[r]||(Tn(n,e),t[r]=!0)}return V.isArray(e)?e.forEach(r):r(e),this}};K.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),V.reduceDescriptors(K.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),V.freezeMethods(K);function En(e,t){let n=this||W,r=t||n,i=K.from(r.headers),a=r.data;return V.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Dn(e){return!!(e&&e.__CANCEL__)}var q=class extends H{constructor(e,t,n){super(e??`canceled`,H.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function On(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new H(`Request failed with status code `+n.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function kn(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||``}function An(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function jn(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var Mn=(e,t,n=3)=>{let r=0,i=An(50,250);return jn(n=>{let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=a-r,c=i(s),l=a<=o;r=a,e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o&&l?(o-a)/c:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},Nn=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Pn=e=>(...t)=>V.asap(()=>e(...t)),Fn=U.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,U.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(U.origin),U.navigator&&/(msie|trident)/i.test(U.navigator.userAgent)):()=>!0,In=U.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];V.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),V.isString(r)&&s.push(`path=${r}`),V.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),V.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|; )`+e+`=([^;]*)`));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function Ln(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function Rn(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function zn(e,t,n){let r=!Ln(t);return e&&(r||n==0)?Rn(e,t):t}var Bn=e=>e instanceof K?{...e}:e;function J(e,t){t||={};let n={};function r(e,t,n,r){return V.isPlainObject(e)&&V.isPlainObject(t)?V.merge.call({caseless:r},e,t):V.isPlainObject(t)?V.merge({},t):V.isArray(t)?t.slice():t}function i(e,t,n,i){if(!V.isUndefined(t))return r(e,t,n,i);if(!V.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!V.isUndefined(t))return r(void 0,t)}function o(e,t){if(!V.isUndefined(t))return r(void 0,t);if(!V.isUndefined(e))return r(void 0,e)}function s(n,i,a){if(a in t)return r(n,i);if(a in e)return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(Bn(e),Bn(t),n,!0)};return V.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=V.hasOwnProp(c,r)?c[r]:i,o=a(e[r],t[r],r);V.isUndefined(o)&&a!==s||(n[r]=o)}),n}var Vn=e=>{let t=J({},e),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=K.from(o),t.url=Qt(zn(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set(`Authorization`,`Basic `+btoa((s.username||``)+`:`+(s.password?unescape(encodeURIComponent(s.password)):``))),V.isFormData(n)){if(U.hasStandardBrowserEnv||U.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(V.isFunction(n.getHeaders)){let e=n.getHeaders(),t=[`content-type`,`content-length`];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)})}}if(U.hasStandardBrowserEnv&&(r&&V.isFunction(r)&&(r=r(t)),r||r!==!1&&Fn(t.url))){let e=i&&a&&In.read(a);e&&o.set(i,e)}return t},Hn=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=Vn(e),i=r.data,a=K.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=K.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());On(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf(`file:`)===0)||setTimeout(g)},h.onabort=function(){h&&=(n(new H(`Request aborted`,H.ECONNABORTED,e,h)),null)},h.onerror=function(t){let r=new H(t&&t.message?t.message:`Network Error`,H.ERR_NETWORK,e,h);r.event=t||null,n(r),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||en;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new H(t,i.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,e,h)),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&V.forEach(a.toJSON(),function(e,t){h.setRequestHeader(t,e)}),V.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=Mn(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=Mn(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new q(null,e,h):t),h.abort(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=kn(r.url);if(_&&U.protocols.indexOf(_)===-1){n(new H(`Unsupported protocol `+_+`:`,H.ERR_BAD_REQUEST,e));return}h.send(i||null)})},Un=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController,r,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof H?t:new q(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new H(`timeout of ${t}ms exceeded`,H.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>V.asap(o),s}},Wn=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Gn=async function*(e,t){for await(let n of Kn(e))yield*Wn(n,t)},Kn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},qn=(e,t,n,r)=>{let i=Gn(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},Jn=64*1024,{isFunction:Yn}=V,Xn=(({Request:e,Response:t})=>({Request:e,Response:t}))(V.global),{ReadableStream:Zn,TextEncoder:Qn}=V.global,$n=(e,...t)=>{try{return!!e(...t)}catch{return!1}},er=e=>{e=V.merge.call({skipUndefined:!0},Xn,e);let{fetch:t,Request:n,Response:r}=e,i=t?Yn(t):typeof fetch==`function`,a=Yn(n),o=Yn(r);if(!i)return!1;let s=i&&Yn(Zn),c=i&&(typeof Qn==`function`?(e=>t=>e.encode(t))(new Qn):async e=>new Uint8Array(await new n(e).arrayBuffer())),l=a&&s&&$n(()=>{let e=!1,t=new Zn,r=new n(U.origin,{body:t,method:`POST`,get duplex(){return e=!0,`half`}}).headers.has(`Content-Type`);return t.cancel(),e&&!r}),u=o&&s&&$n(()=>V.isReadableStream(new r(``).body)),d={stream:u&&(e=>e.body)};i&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new H(`Response type '${e}' is not supported`,H.ERR_NOT_SUPPORT,n)})});let f=async e=>{if(e==null)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e))return(await new n(U.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(V.isArrayBufferView(e)||V.isArrayBuffer(e))return e.byteLength;if(V.isURLSearchParams(e)&&(e+=``),V.isString(e))return(await c(e)).byteLength},p=async(e,t)=>V.toFiniteNumber(e.getContentLength())??f(t);return async e=>{let{url:i,method:o,data:s,signal:c,cancelToken:f,timeout:m,onDownloadProgress:h,onUploadProgress:g,responseType:_,headers:v,withCredentials:y=`same-origin`,fetchOptions:b}=Vn(e),x=t||fetch;_=_?(_+``).toLowerCase():`text`;let S=Un([c,f&&f.toAbortSignal()],m),C=null,w=S&&S.unsubscribe&&(()=>{S.unsubscribe()}),ee;try{if(g&&l&&o!==`get`&&o!==`head`&&(ee=await p(v,s))!==0){let e=new n(i,{method:`POST`,body:s,duplex:`half`}),t;if(V.isFormData(s)&&(t=e.headers.get(`content-type`))&&v.setContentType(t),e.body){let[t,n]=Nn(ee,Mn(Pn(g)));s=qn(e.body,Jn,t,n)}}V.isString(y)||(y=y?`include`:`omit`);let t=a&&`credentials`in n.prototype,c={...b,signal:S,method:o.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:`half`,credentials:t?y:void 0};C=a&&new n(i,c);let f=await(a?x(C,b):x(i,c)),m=u&&(_===`stream`||_===`response`);if(u&&(h||m&&w)){let e={};[`status`,`statusText`,`headers`].forEach(t=>{e[t]=f[t]});let t=V.toFiniteNumber(f.headers.get(`content-length`)),[n,i]=h&&Nn(t,Mn(Pn(h),!0))||[];f=new r(qn(f.body,Jn,n,()=>{i&&i(),w&&w()}),e)}_||=`text`;let T=await d[V.findKey(d,_)||`text`](f,e);return!m&&w&&w(),await new Promise((t,n)=>{On(t,n,{data:T,headers:K.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:C})})}catch(t){throw w&&w(),t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new H(`Network Error`,H.ERR_NETWORK,e,C,t&&t.response),{cause:t.cause||t}):H.from(t,t&&t.code,e,C,t&&t.response)}}},tr=new Map,nr=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=tr;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:er(t)),l=c;return c};nr();var rr={http:null,xhr:Hn,fetch:{get:nr}};V.forEach(rr,(e,t)=>{if(e){try{Object.defineProperty(e,`name`,{value:t})}catch{}Object.defineProperty(e,`adapterName`,{value:t})}});var ir=e=>`- ${e}`,ar=e=>V.isFunction(e)||e===null||e===!1;function or(e,t){e=V.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!ar(r)&&(i=rr[(n=String(r)).toLowerCase()],i===void 0))throw new H(`Unknown adapter '${n}'`);if(i&&(V.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new H(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
`+e.map(ir).join(`
`):` `+ir(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var sr={getAdapter:or,adapters:rr};function cr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new q(null,e)}function lr(e){return cr(e),e.headers=K.from(e.headers),e.data=En.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),sr.getAdapter(e.adapter||W.adapter,e)(e).then(function(t){return cr(e),t.data=En.call(e,e.transformResponse,t),t.headers=K.from(t.headers),t},function(t){return Dn(t)||(cr(e),t&&t.response&&(t.response.data=En.call(e,e.transformResponse,t.response),t.response.headers=K.from(t.response.headers))),Promise.reject(t)})}var ur=`1.15.0`,dr={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{dr[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var fr={};dr.transitional=function(e,t,n){function r(e,t){return`[Axios v`+ur+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new H(r(i,` has been removed`+(t?` in `+t:``)),H.ERR_DEPRECATED);return t&&!fr[i]&&(fr[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},dr.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function pr(e,t,n){if(typeof e!=`object`)throw new H(`options must be an object`,H.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=t[a];if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new H(`option `+a+` must be `+n,H.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new H(`Unknown option `+a,H.ERR_BAD_OPTION)}}var mr={assertOptions:pr,validators:dr},Y=mr.validators,X=class{constructor(e){this.defaults=e||{},this.interceptors={request:new $t,response:new $t}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return``;let e=t.stack.indexOf(`
`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(`
`),r=t===-1?-1:n.indexOf(`
`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=`
`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=J(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&mr.assertOptions(n,{silentJSONParsing:Y.transitional(Y.boolean),forcedJSONParsing:Y.transitional(Y.boolean),clarifyTimeoutError:Y.transitional(Y.boolean),legacyInterceptorReqResOrdering:Y.transitional(Y.boolean)},!1),r!=null&&(V.isFunction(r)?t.paramsSerializer={serialize:r}:mr.assertOptions(r,{encode:Y.function,serialize:Y.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),mr.assertOptions(t,{baseUrl:Y.spelling(`baseURL`),withXsrfToken:Y.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&V.merge(i.common,i[t.method]);i&&V.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],e=>{delete i[e]}),t.headers=K.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||en;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[lr.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=lr.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=J(this.defaults,e),Qt(zn(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};V.forEach([`delete`,`get`,`head`,`options`],function(e){X.prototype[e]=function(t,n){return this.request(J(n||{},{method:e,url:t,data:(n||{}).data}))}}),V.forEach([`post`,`put`,`patch`],function(e){function t(t){return function(n,r,i){return this.request(J(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}X.prototype[e]=t(),X.prototype[e+`Form`]=t(!0)});var hr=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new q(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function gr(e){return function(t){return e.apply(null,t)}}function _r(e){return V.isObject(e)&&e.isAxiosError===!0}var vr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(vr).forEach(([e,t])=>{vr[t]=e});function yr(e){let t=new X(e),n=Ve(X.prototype.request,t);return V.extend(n,X.prototype,t,{allOwnKeys:!0}),V.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return yr(J(e,t))},n}var Z=yr(W);Z.Axios=X,Z.CanceledError=q,Z.CancelToken=hr,Z.isCancel=Dn,Z.VERSION=ur,Z.toFormData=qt,Z.AxiosError=H,Z.Cancel=Z.CanceledError,Z.all=function(e){return Promise.all(e)},Z.spread=gr,Z.isAxiosError=_r,Z.mergeConfig=J,Z.AxiosHeaders=K,Z.formToJSON=e=>fn(V.isHTMLForm(e)?new FormData(e):e),Z.getAdapter=sr.getAdapter,Z.HttpStatusCode=vr,Z.default=Z;var{Axios:br,AxiosError:xr,CanceledError:Sr,isCancel:Cr,CancelToken:wr,VERSION:Tr,all:Er,Cancel:Dr,isAxiosError:Or,spread:kr,toFormData:Ar,AxiosHeaders:jr,HttpStatusCode:Mr,formToJSON:Nr,getAdapter:Pr,mergeConfig:Fr}=Z,Ir=()=>{let e=localStorage.getItem(Me);return e||(e=crypto.randomUUID(),localStorage.setItem(Me,e)),e},Lr=`⧉⇋⇋➽⌑⧉§§
`,Rr=class extends C{constructor(){super(`MFA is required to access this resource. Please set up MFA in your user settings.`),this.name=`MfaRequiredError`}},Q=class extends C{httpStatusCode;errorCode;serverStackTrace;meta;hint;constructor(e,t={}){super(e),this.name=`ResponseError`;let{errorCode:n,httpStatusCode:r,stack:i,meta:a,hint:o}=t;n&&(this.errorCode=n),r&&(this.httpStatusCode=r),i&&(this.serverStackTrace=i),a&&(this.meta=a),o&&(this.hint=o)}},zr=e=>Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Array.isArray(e[t])?e[t].map(e=>`${t}[]=${encodeURIComponent(e)}`).join(`&`):(typeof e[t]==`object`&&(e[t]=JSON.stringify(e[t])),`${t}=${encodeURIComponent(e[t])}`)).join(`&`);async function $(e){let{method:t,baseURL:n,endpoint:r,headers:i,data:a}=e,o={method:t,url:r,baseURL:n,headers:i??{}};n.startsWith(`/`)&&(o.headers[`browser-id`]=Ir()),!n.includes(`api.n8n.io`)&&!n.includes(`n8n.cloud`)&&(o.withCredentials=o.withCredentials??!0),[`POST`,`PATCH`,`PUT`].includes(t)?o.data=a:a&&(o.params=a,o.paramsSerializer=zr);try{return(await Z.request(o)).data}catch(e){if(e.message===`Network Error`)throw new Q(`Can't connect to n8n.`,{errorCode:999});let t=e.response?.data;throw t?.mfaRequired===!0?new Rr:t?.message===void 0?e:t.name===`NodeApiError`?(t.httpStatusCode=e.response.status,t):new Q(t.message,{errorCode:t.code,httpStatusCode:e.response.status,stack:t.stack,meta:t.meta,hint:t.hint})}}async function Br(e,t,n,r){return await $({method:t,baseURL:e.baseUrl,endpoint:n,headers:{"push-ref":e.pushRef},data:r})}async function Vr(e,t,n,r){return(await $({method:t,baseURL:e.baseUrl,endpoint:n,headers:{"push-ref":e.pushRef},data:r})).data}async function Hr(e,t,n,r){return await $({method:`GET`,baseURL:e,endpoint:t,headers:r,data:n})}async function Ur(e,t,n,r){return await $({method:`POST`,baseURL:e,endpoint:t,headers:r,data:n})}async function Wr(e,t,n,r){return await $({method:`PATCH`,baseURL:e,endpoint:t,headers:r,data:n})}async function Gr(e,t,n,r,i,a,o=Lr,s){let c=e=>{c=void 0,a?.(e)},l={headers:{"browser-id":Ir(),"Content-Type":`application/json`},method:`POST`,credentials:`include`,body:JSON.stringify(n),signal:s};try{let n=await fetch(`${e.baseUrl}${t}`,l);if(n.body){let e=n.body.getReader(),t=new TextDecoder(`utf-8`),a=``;async function s(){let{done:l,value:u}=await e.read();if(l){n.ok?i?.():c?.(new Q(n.statusText,{httpStatusCode:n.status}));return}let d=t.decode(u);a+=d;let f=a.split(o);a=``;for(let e of f)if(e){let t;try{t=w(e,{errorMessage:`Invalid json`})}catch{a+=e;continue}try{if(n.ok)r?.(t);else{let e=`message`in t?t.message:n.statusText;c?.(new Q(String(e),{httpStatusCode:n.status}))}}catch(e){e instanceof Error&&c?.(e)}}await s()}await s()}else c&&c(Error(n.statusText))}catch(e){Be(e instanceof Error),c?.(e)}}var Kr={COMMUNITY_NODES:`communityNodes`,ROOT:`root`,SETTINGS:`settings`,UI:`ui`,USERS:`users`,WORKFLOWS:`workflows`,WORKFLOWS_LIST:`workflowsList`,WORKFLOWS_V2:`workflowsV2`,WORKFLOWS_EE:`workflowsEE`,WORKFLOW_DOCUMENTS:`workflowDocuments`,EXECUTIONS:`executions`,NDV:`ndv`,TEMPLATES:`templates`,NODE_TYPES:`nodeTypes`,CREDENTIALS:`credentials`,TAGS:`tags`,ANNOTATION_TAGS:`annotationTags`,VERSIONS:`versions`,NODE_CREATOR:`nodeCreator`,WEBHOOKS:`webhooks`,HISTORY:`history`,CLOUD_PLAN:`cloudPlan`,RBAC:`rbac`,PUSH:`push`,COLLABORATION:`collaboration`,ASSISTANT:`assistant`,BUILDER:`builder`,CHAT_PANEL:`chatPanel`,CHAT_PANEL_STATE:`chatPanelState`,BECOME_TEMPLATE_CREATOR:`becomeTemplateCreator`,PROJECTS:`projects`,API_KEYS:`apiKeys`,EVALUATION:`evaluation`,FOLDERS:`folders`,MODULES:`modules`,FOCUS_PANEL:`focusPanel`,WORKFLOW_STATE:`workflowState`,AI_TEMPLATES_STARTER_COLLECTION:`aiTemplatesStarterCollection`,PERSONALIZED_TEMPLATES:`personalizedTemplates`,EXPERIMENT_READY_TO_RUN_WORKFLOWS:`readyToRunWorkflows`,EXPERIMENT_READY_TO_RUN_WORKFLOWS_V2:`readyToRunWorkflowsV2`,EXPERIMENT_TEMPLATE_RECO_V2:`templateRecoV2`,PERSONALIZED_TEMPLATES_V3:`personalizedTemplatesV3`,READY_TO_RUN:`readyToRun`,TEMPLATES_DATA_QUALITY:`templatesDataQuality`,BANNERS:`banners`,CONSENT:`consent`,CHAT_HUB:`chatHub`,CHAT_HUB_PANEL:`chatHubPanel`,EXPERIMENT_EMPTY_STATE_BUILDER_PROMPT:`emptyStateBuilderPrompt`,EXPERIMENT_CREDENTIALS_APP_SELECTION:`credentialsAppSelection`,SETUP_PANEL:`setupPanel`,FOCUSED_NODES:`focusedNodes`};function qr(e){return`n8n:config:${e}`}function Jr(e){let t=qr(e);try{let e=document.querySelector(`meta[name="${t}"]`);if(!e)return null;let n=e.getAttribute(`content`);return n?atob(n):null}catch(e){return console.warn(`Failed to read n8n config for "${t}":`,e),null}}function Yr(e){let t=Jr(e);if(!t)return null;try{return JSON.parse(t)}catch(t){return console.warn(`Failed to parse n8n config for "${qr(e)}":`,t),null}}var{VUE_APP_URL_BASE_API:Xr}={},Zr=ke(Kr.ROOT,()=>{let e=a({baseUrl:Xr??window.BASE_PATH,restEndpoint:Jr(`rest-endpoint`)??`rest`,defaultLocale:`en`,endpointForm:`form`,endpointFormTest:`form-test`,endpointFormWaiting:`form-waiting`,endpointMcp:`mcp`,endpointMcpTest:`mcp-test`,endpointWebhook:`webhook`,endpointWebhookTest:`webhook-test`,endpointWebhookWaiting:`webhook-waiting`,timezone:`America/New_York`,executionTimeout:-1,maxExecutionTimeout:2**53-1,versionCli:`0.0.0`,oauthCallbackUrls:{},n8nMetadata:{},pushRef:(()=>{let e=`n8n-client-id`,t=sessionStorage.getItem(e);if(t)return t;let n=ee(10).toLowerCase();return sessionStorage.setItem(e,n),n})(),urlBaseWebhook:`h