@prefecthq/prefect-ui-library
Version:
This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.
6 lines • 2.18 MB
JavaScript
(function(b,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@prefecthq/vue-compositions"),require("vue-router"),require("@prefecthq/prefect-design"),require("@prefecthq/vue-charts"),require("vee-validate")):typeof define=="function"&&define.amd?define(["exports","vue","@prefecthq/vue-compositions","vue-router","@prefecthq/prefect-design","@prefecthq/vue-charts","vee-validate"],r):(b=typeof globalThis<"u"?globalThis:b||self,r(b["prefect-ui-library"]={},b.Vue,b.vueCompositions,b.vueRouter,b.prefectDesign,b.vueCharts,b.veeValidate))})(this,function(b,r,F,_n,I,Ra,uo){"use strict";var TBe=Object.defineProperty;var xBe=(b,r,F)=>r in b?TBe(b,r,{enumerable:!0,configurable:!0,writable:!0,value:F}):b[r]=F;var B=(b,r,F)=>xBe(b,typeof r!="symbol"?r+"":r,F);const S9=Object.freeze(Object.defineProperty({__proto__:null,get ActivityChart(){return Sx},get ArtifactCard(){return _u},get ArtifactCollections(){return dF},get ArtifactCollectionsEmptyState(){return Cx},get ArtifactDataMarkdown(){return Rx},get ArtifactDataRaw(){return pF},get ArtifactDataResult(){return Ex},get ArtifactDataUnknown(){return Px},get ArtifactDataView(){return Vg},get ArtifactDescription(){return Nx},get ArtifactDetails(){return hF},get ArtifactKeyIconText(){return Dg},get ArtifactMenu(){return mF},get ArtifactTimeline(){return yF},get ArtifactTypeSelect(){return Mx},get AutomationMenu(){return gF},get BetaBadge(){return Ax},get BlockCapabilityBlockDocumentInput(){return Vx},get BlockDocumentCard(){return _F},get BlockDocumentCombobox(){return _x},get BlockDocumentInput(){return Pg},get BlockDocumentKeyValue(){return wF},get BlockDocumentMenu(){return bF},get BlockDocumentsTable(){return kF},get BlockIconText(){return om},get BlockSchemaCapabilities(){return TF},get BlockSchemaCapabilitySelect(){return xF},get BlockSchemaCreateForm(){return yx},get BlockSchemaEditForm(){return SF},get BlockTypeCard(){return RF},get BlockTypeCardLayout(){return Dx},get BlockTypeCardPreview(){return Eg},get BlockTypeList(){return gx},get BlockTypeSelect(){return Ix},get BlockTypeSnippet(){return Ig},get BlocksPageEmptyState(){return CF},get CodeBanner(){return EF},get CollectionCardPreview(){return Fx},get CollectionItemCard(){return PF},get CollectionsList(){return NF},get ColorModeSelect(){return MF},get ColorModeSelectOption(){return Og},get ConcurrencyLimitActiveRuns(){return AF},get ConcurrencyLimitDetails(){return VF},get ConcurrencyLimitMenu(){return Ug},get ConcurrencyLimitResetModal(){return vx},get ConcurrencyLimitV2Menu(){return Gx},get ConcurrencyLimitV2ResetModal(){return Hx},get ConcurrencyLimitV2Toggle(){return $x},get ConcurrencyLimitsCreateModal(){return Gg},get ConcurrencyLimitsPageEmptyState(){return Lx},get ConcurrencyLimitsTable(){return DF},get ConcurrencyLimitsV2CreateModal(){return Wx},get ConcurrencyLimitsV2EmptyState(){return Xx},get ConcurrencyLimitsV2Table(){return IF},get ConcurrencyLimitsV2UpdateModal(){return Ux},get ConcurrencyTableActiveSlots(){return zx},get ConfirmDeleteModal(){return wn},get ConfirmStateChangeModal(){return $g},get CopyOverflowMenuItem(){return ur},get CopyableWrapper(){return bu},get CronScheduleForm(){return Yx},get CumulativeTaskRunsCard(){return OF},get DashboardWorkPoolsCard(){return L3},get DateInput(){return Yd},get DateRangeInput(){return W3},get DateRangeSelect(){return yS},get DayOrDescriptionModal(){return jx},get DeploymentCombobox(){return _0},get DeploymentComboboxOption(){return w0},get DeploymentConfiguration(){return X3},get DeploymentCustomRunOverflowMenuItem(){return b0},get DeploymentDeprecatedMessage(){return U3},get DeploymentDescription(){return G3},get DeploymentDescriptionEmptyState(){return H3},get DeploymentDetails(){return z3},get DeploymentDisableToggle(){return k0},get DeploymentForm(){return Z3},get DeploymentIconText(){return ku},get DeploymentList(){return j3},get DeploymentMenu(){return Y3},get DeploymentQuickRunOverflowMenuItem(){return S0},get DeploymentRelationships(){return E0},get DeploymentScheduleCard(){return wS},get DeploymentScheduleMenu(){return bS},get DeploymentScheduleTags(){return TS},get DeploymentScheduleToggle(){return xS},get DeploymentSchedulesFieldset(){return kS},get DeploymentStatusBadge(){return P0},get DeploymentStatusIcon(){return RS},get DeploymentStatusSelect(){return ES},get DeploymentTagsInput(){return N0},get DeploymentToggle(){return _S},get DeploymentsCount(){return SS},get DeploymentsDeleteButton(){return CS},get DeploymentsPageEmptyState(){return K3},get DocumentationButton(){return _o},get DurationIconText(){return qi},get DurationInput(){return PS},get EventCard(){return M0},get EventRelatedKeyValue(){return wm},get EventResourceCombobox(){return Q3},get EventResourceIconText(){return J3},get EventResourceKeyValue(){return bm},get EventsCombobox(){return A0},get ExploreEventsButton(){return NS},get ExtraInfoModal(){return im},get ExtraInfoTooltip(){return V0},get FlowActivityChart(){return eO},get FlowCombobox(){return D0},get FlowDetails(){return tO},get FlowIconText(){return C0},get FlowList(){return nO},get FlowMenu(){return rO},get FlowPopover(){return AS},get FlowRouterLink(){return gm},get FlowRunArtifacts(){return oO},get FlowRunAutomation(){return VS},get FlowRunBreadCrumbs(){return y0},get FlowRunCancelButton(){return DS},get FlowRunCancelModal(){return B0},get FlowRunCreateForm(){return aO},get FlowRunDeployment(){return am},get FlowRunDetails(){return sO},get FlowRunFilteredList(){return iO},get FlowRunFlow(){return R0},get FlowRunGraph(){return RW},get FlowRunGraphArtifactCard(){return WR},get FlowRunGraphArtifactDrawer(){return EW},get FlowRunGraphArtifactsPopover(){return PW},get FlowRunGraphConfirmation(){return LR},get FlowRunGraphEventPopover(){return NW},get FlowRunGraphEventsPopover(){return MW},get FlowRunGraphPopover(){return Up},get FlowRunGraphSelectionPanel(){return AW},get FlowRunGraphStatePopover(){return VW},get FlowRunHistoryCard(){return DW},get FlowRunIconText(){return Qd},get FlowRunJobVariableOverridesLabeledInput(){return km},get FlowRunList(){return _f},get FlowRunListItem(){return BW},get FlowRunLogs(){return IW},get FlowRunLogsDownloadButton(){return XR},get FlowRunMenu(){return FW},get FlowRunName(){return Pw},get FlowRunParentFlowRun(){return UR},get FlowRunPopOver(){return GR},get FlowRunPopOverContent(){return g0},get FlowRunResumeButton(){return HR},get FlowRunResumeModal(){return Ew},get FlowRunRetryButton(){return $R},get FlowRunRetryModal(){return Nw},get FlowRunStartTime(){return ap},get FlowRunStateTypeTab(){return jR},get FlowRunSuspendButton(){return YR},get FlowRunSuspendModal(){return Aw},get FlowRunTagsInput(){return Mw},get FlowRunTaskRuns(){return WW},get FlowRunTimelineSubFlowRunDetails(){return KR},get FlowRunTimelineTaskDetails(){return qR},get FlowRunWorkPool(){return Jd},get FlowRunWorkQueue(){return ep},get FlowRunsBarChart(){return Eu},get FlowRunsDeleteButton(){return zR},get FlowRunsFilterGroup(){return OW},get FlowRunsPageEmptyState(){return vW},get FlowRunsScatterPlot(){return LW},get FlowRunsSort(){return ZR},get FlowsDeleteButton(){return QR},get FlowsFilterGroup(){return XW},get FlowsPageEmptyState(){return UW},get FormattedDate(){return Et},get FourZeroFour(){return GW},get IconTextCount(){return JR},get IntervalScheduleForm(){return eE},get JobVariableOverridesInput(){return F0},get JsonInput(){return Ln},get LastFlowRun(){return Vw},get LogLevelLabel(){return tE},get LogLevelSelect(){return Dw},get LogRow(){return nE},get LogoImage(){return ds},get LogsContainer(){return Bw},get LogsSort(){return Iw},get MarketingBanner(){return HW},get MiniDeploymentHistory(){return rE},get MiniFlowHistory(){return oE},get NextFlowRun(){return Fw},get NotificationDetails(){return vw},get NotificationForm(){return $W},get NotificationMenu(){return aE},get NotificationStatusSelect(){return sE},get NotificationToggle(){return iE},get NotificationsPageEmptyState(){return zW},get NotificationsTable(){return ZW},get PageHeading(){return xt},get PageHeadingAccountSettings(){return jW},get PageHeadingApiKeys(){return YW},get PageHeadingArtifact(){return KW},get PageHeadingArtifactKey(){return qW},get PageHeadingArtifacts(){return QW},get PageHeadingAutomation(){return eX},get PageHeadingBlock(){return tX},get PageHeadingBlockEdit(){return nX},get PageHeadingBlocks(){return rX},get PageHeadingBlocksCatalog(){return oX},get PageHeadingBlocksCatalogCreate(){return aX},get PageHeadingBlocksCatalogView(){return sX},get PageHeadingConcurrencyLimit(){return iX},get PageHeadingConcurrencyLimits(){return lX},get PageHeadingDeployment(){return cX},get PageHeadingDeploymentDuplicate(){return uX},get PageHeadingDeploymentEdit(){return dX},get PageHeadingDeployments(){return pX},get PageHeadingFlow(){return hX},get PageHeadingFlowCollection(){return mX},get PageHeadingFlowCollections(){return fX},get PageHeadingFlowRun(){return yX},get PageHeadingFlowRunCreate(){return gX},get PageHeadingFlowRuns(){return bX},get PageHeadingFlows(){return kX},get PageHeadingNotificationCreate(){return TX},get PageHeadingNotificationEdit(){return xX},get PageHeadingNotifications(){return SX},get PageHeadingRuns(){return CX},get PageHeadingTaskRun(){return RX},get PageHeadingVariables(){return EX},get PageHeadingWorkPool(){return PX},get PageHeadingWorkPoolCreate(){return NX},get PageHeadingWorkPoolEdit(){return MX},get PageHeadingWorkPoolQueue(){return AX},get PageHeadingWorkPoolQueueCreate(){return VX},get PageHeadingWorkPoolQueueEdit(){return DX},get PageHeadingWorkPools(){return BX},get PageHeadingWorkspaceSettings(){return IX},get ParametersTable(){return FX},get ProcessTypeBadge(){return hE},get QuickRunParametersModal(){return T0},get ResourceLink(){return OX},get ResultsCount(){return Lr},get RunMenu(){return mE},get SaveFilterModal(){return dE},get SavedFilters(){return Lw},get SavedFiltersDeleteModal(){return uE},get SavedFiltersMenu(){return pE},get ScheduleFieldset(){return vX},get ScheduleFormModal(){return Tf},get SchemaForm(){return LX},get SchemaFormFields(){return ic},get SchemaFormFieldsWithValues(){return fE},get SchemaFormInput(){return Tg},get SchemaFormProperties(){return ix},get SchemaFormProperty(){return sc},get SchemaFormPropertyAllOf(){return lx},get SchemaFormPropertyAnyOf(){return fx},get SchemaInput(){return WX},get SchemaPropertiesKeyValues(){return Fg},get SchemaPropertyKeyValue(){return Bx},get SearchInput(){return Wr},get SelectedCount(){return dc},get SeparatedList(){return Ow},get StateBadge(){return En},get StateIcon(){return Lg},get StateListItem(){return Wg},get StateNameSelect(){return md},get StateSelect(){return Zx},get StatisticKeyValue(){return ji},get SubmitButton(){return Zi},get TaskRunArtifacts(){return XX},get TaskRunDetails(){return UX},get TaskRunIconText(){return Bg},get TaskRunList(){return Xg},get TaskRunListItem(){return Ox},get TaskRunLogs(){return GX},get TaskRunMenu(){return yE},get TaskRunsDeleteButton(){return HX},get TaskRunsSort(){return gE},get TimeSpanFilter(){return $X},get TimezoneSelect(){return zg},get ToastFlowRunCreate(){return x0},get UseDeploymentSlot(){return gS},get UseFlowSlot(){return MS},get VariableCreateModal(){return Ww},get VariableEditModal(){return Xw},get VariableMenu(){return _E},get VariableTagsInput(){return kE},get VariablesDeleteButton(){return wE},get VariablesPageEmptyState(){return zX},get VariablesTable(){return ZX},get ViewModeButtonGroup(){return rm},get WorkPoolBaseJobTemplateFormSection(){return Uw},get WorkPoolCard(){return xE},get WorkPoolCombobox(){return wf},get WorkPoolCreateWizard(){return YX},get WorkPoolCreateWizardStepInformation(){return SE},get WorkPoolCreateWizardStepInfrastructureConfiguration(){return CE},get WorkPoolCreateWizardStepInfrastructureType(){return RE},get WorkPoolDetails(){return KX},get WorkPoolEditForm(){return qX},get WorkPoolIconText(){return Tu},get WorkPoolLateIndicator(){return QX},get WorkPoolList(){return EE},get WorkPoolMenu(){return JX},get WorkPoolQueueCombobox(){return I0},get WorkPoolQueueCreateForm(){return e6},get WorkPoolQueueDetails(){return t6},get WorkPoolQueueEditForm(){return n6},get WorkPoolQueueMenu(){return r6},get WorkPoolQueuePriorityLabel(){return Sf},get WorkPoolQueueStatusBadge(){return Gw},get WorkPoolQueueStatusIcon(){return sm},get WorkPoolQueueToggle(){return Hw},get WorkPoolQueueUpcomingFlowRunsList(){return a6},get WorkPoolQueuesDeleteButton(){return PE},get WorkPoolQueuesTable(){return o6},get WorkPoolStatusBadge(){return NE},get WorkPoolStatusIcon(){return _m},get WorkPoolStatusSelect(){return ME},get WorkPoolToggle(){return $w},get WorkPoolTypeSelect(){return AE},get WorkPools(){return s6},get WorkPoolsPageEmptyState(){return i6},get WorkQueueCombobox(){return VE},get WorkQueueIconText(){return Cf},get WorkQueueStatusSelect(){return DE},get WorkerStatusBadge(){return TE},get WorkersLateIndicator(){return xf},get WorkersTable(){return jX},get WorkspaceDashboardFlowRunsCard(){return l6},get WorkspaceEventDetails(){return c6},get WorkspaceEventMenu(){return u6},get WorkspaceEventsLineChart(){return d6},get WorkspaceEventsTimeline(){return p6},get WorkspaceVariableCombobox(){return bx}},Symbol.toStringTag,{value:"Module"}));function $P(t,e){return function(){return t.apply(e,arguments)}}const{toString:C9}=Object.prototype,{getPrototypeOf:vb}=Object,Zf=(t=>e=>{const n=C9.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),as=t=>(t=t.toLowerCase(),e=>Zf(e)===t),jf=t=>e=>typeof e===t,{isArray:xd}=Array,lh=jf("undefined");function R9(t){return t!==null&&!lh(t)&&t.constructor!==null&&!lh(t.constructor)&&Jo(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const zP=as("ArrayBuffer");function E9(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&zP(t.buffer),e}const P9=jf("string"),Jo=jf("function"),ZP=jf("number"),Yf=t=>t!==null&&typeof t=="object",N9=t=>t===!0||t===!1,Kf=t=>{if(Zf(t)!=="object")return!1;const e=vb(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},M9=as("Date"),A9=as("File"),V9=as("Blob"),D9=as("FileList"),B9=t=>Yf(t)&&Jo(t.pipe),I9=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Jo(t.append)&&((e=Zf(t))==="formdata"||e==="object"&&Jo(t.toString)&&t.toString()==="[object FormData]"))},F9=as("URLSearchParams"),[O9,v9,L9,W9]=["ReadableStream","Request","Response","Headers"].map(as),X9=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ch(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let o,a;if(typeof t!="object"&&(t=[t]),xd(t))for(o=0,a=t.length;o<a;o++)e.call(null,t[o],o,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),l=s.length;let c;for(o=0;o<l;o++)c=s[o],e.call(null,t[c],c,t)}}function jP(t,e){e=e.toLowerCase();const n=Object.keys(t);let o=n.length,a;for(;o-- >0;)if(a=n[o],e===a.toLowerCase())return a;return null}const jc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,YP=t=>!lh(t)&&t!==jc;function Lb(){const{caseless:t}=YP(this)&&this||{},e={},n=(o,a)=>{const s=t&&jP(e,a)||a;Kf(e[s])&&Kf(o)?e[s]=Lb(e[s],o):Kf(o)?e[s]=Lb({},o):xd(o)?e[s]=o.slice():e[s]=o};for(let o=0,a=arguments.length;o<a;o++)arguments[o]&&ch(arguments[o],n);return e}const U9=(t,e,n,{allOwnKeys:o}={})=>(ch(e,(a,s)=>{n&&Jo(a)?t[s]=$P(a,n):t[s]=a},{allOwnKeys:o}),t),G9=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),H9=(t,e,n,o)=>{t.prototype=Object.create(e.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},$9=(t,e,n,o)=>{let a,s,l;const c={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),s=a.length;s-- >0;)l=a[s],(!o||o(l,t,e))&&!c[l]&&(e[l]=t[l],c[l]=!0);t=n!==!1&&vb(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},z9=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const o=t.indexOf(e,n);return o!==-1&&o===n},Z9=t=>{if(!t)return null;if(xd(t))return t;let e=t.length;if(!ZP(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},j9=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&vb(Uint8Array)),Y9=(t,e)=>{const o=(t&&t[Symbol.iterator]).call(t);let a;for(;(a=o.next())&&!a.done;){const s=a.value;e.call(t,s[0],s[1])}},K9=(t,e)=>{let n;const o=[];for(;(n=t.exec(e))!==null;)o.push(n);return o},q9=as("HTMLFormElement"),Q9=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,a){return o.toUpperCase()+a}),KP=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),J9=as("RegExp"),qP=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),o={};ch(n,(a,s)=>{let l;(l=e(a,s,t))!==!1&&(o[s]=l||a)}),Object.defineProperties(t,o)},eG=t=>{qP(t,(e,n)=>{if(Jo(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=t[n];if(Jo(o)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},tG=(t,e)=>{const n={},o=a=>{a.forEach(s=>{n[s]=!0})};return xd(t)?o(t):o(String(t).split(e)),n},nG=()=>{},rG=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function oG(t){return!!(t&&Jo(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const aG=t=>{const e=new Array(10),n=(o,a)=>{if(Yf(o)){if(e.indexOf(o)>=0)return;if(!("toJSON"in o)){e[a]=o;const s=xd(o)?[]:{};return ch(o,(l,c)=>{const u=n(l,a+1);!lh(u)&&(s[c]=u)}),e[a]=void 0,s}}return o};return n(t,0)},sG=as("AsyncFunction"),iG=t=>t&&(Yf(t)||Jo(t))&&Jo(t.then)&&Jo(t.catch),QP=((t,e)=>t?setImmediate:e?((n,o)=>(jc.addEventListener("message",({source:a,data:s})=>{a===jc&&s===n&&o.length&&o.shift()()},!1),a=>{o.push(a),jc.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Jo(jc.postMessage)),lG=typeof queueMicrotask<"u"?queueMicrotask.bind(jc):typeof process<"u"&&process.nextTick||QP,pe={isArray:xd,isArrayBuffer:zP,isBuffer:R9,isFormData:I9,isArrayBufferView:E9,isString:P9,isNumber:ZP,isBoolean:N9,isObject:Yf,isPlainObject:Kf,isReadableStream:O9,isRequest:v9,isResponse:L9,isHeaders:W9,isUndefined:lh,isDate:M9,isFile:A9,isBlob:V9,isRegExp:J9,isFunction:Jo,isStream:B9,isURLSearchParams:F9,isTypedArray:j9,isFileList:D9,forEach:ch,merge:Lb,extend:U9,trim:X9,stripBOM:G9,inherits:H9,toFlatObject:$9,kindOf:Zf,kindOfTest:as,endsWith:z9,toArray:Z9,forEachEntry:Y9,matchAll:K9,isHTMLForm:q9,hasOwnProperty:KP,hasOwnProp:KP,reduceDescriptors:qP,freezeMethods:eG,toObjectSet:tG,toCamelCase:Q9,noop:nG,toFiniteNumber:rG,findKey:jP,global:jc,isContextDefined:YP,isSpecCompliantForm:oG,toJSONObject:aG,isAsyncFn:sG,isThenable:iG,setImmediate:QP,asap:lG};function wt(t,e,n,o,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),o&&(this.request=o),a&&(this.response=a,this.status=a.status?a.status:null)}pe.inherits(wt,Error,{toJSON:function(){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:pe.toJSONObject(this.config),code:this.code,status:this.status}}});const JP=wt.prototype,eN={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{eN[t]={value:t}}),Object.defineProperties(wt,eN),Object.defineProperty(JP,"isAxiosError",{value:!0}),wt.from=(t,e,n,o,a,s)=>{const l=Object.create(JP);return pe.toFlatObject(t,l,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),wt.call(l,t.message,e,n,o,a),l.cause=t,l.name=t.name,s&&Object.assign(l,s),l};const cG=null;function Wb(t){return pe.isPlainObject(t)||pe.isArray(t)}function tN(t){return pe.endsWith(t,"[]")?t.slice(0,-2):t}function nN(t,e,n){return t?t.concat(e).map(function(a,s){return a=tN(a),!n&&s?"["+a+"]":a}).join(n?".":""):e}function uG(t){return pe.isArray(t)&&!t.some(Wb)}const dG=pe.toFlatObject(pe,{},null,function(e){return/^is[A-Z]/.test(e)});function qf(t,e,n){if(!pe.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=pe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,w){return!pe.isUndefined(w[_])});const o=n.metaTokens,a=n.visitor||d,s=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&pe.isSpecCompliantForm(e);if(!pe.isFunction(a))throw new TypeError("visitor must be a function");function i(y){if(y===null)return"";if(pe.isDate(y))return y.toISOString();if(!u&&pe.isBlob(y))throw new wt("Blob is not supported. Use a Buffer instead.");return pe.isArrayBuffer(y)||pe.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,_,w){let k=y;if(y&&!w&&typeof y=="object"){if(pe.endsWith(_,"{}"))_=o?_:_.slice(0,-2),y=JSON.stringify(y);else if(pe.isArray(y)&&uG(y)||(pe.isFileList(y)||pe.endsWith(_,"[]"))&&(k=pe.toArray(y)))return _=tN(_),k.forEach(function(S,R){!(pe.isUndefined(S)||S===null)&&e.append(l===!0?nN([_],R,s):l===null?_:_+"[]",i(S))}),!1}return Wb(y)?!0:(e.append(nN(w,_,s),i(y)),!1)}const p=[],h=Object.assign(dG,{defaultVisitor:d,convertValue:i,isVisitable:Wb});function m(y,_){if(!pe.isUndefined(y)){if(p.indexOf(y)!==-1)throw Error("Circular reference detected in "+_.join("."));p.push(y),pe.forEach(y,function(k,C){(!(pe.isUndefined(k)||k===null)&&a.call(e,k,pe.isString(C)?C.trim():C,_,h))===!0&&m(k,_?_.concat(C):[C])}),p.pop()}}if(!pe.isObject(t))throw new TypeError("data must be an object");return m(t),e}function rN(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(o){return e[o]})}function Xb(t,e){this._pairs=[],t&&qf(t,this,e)}const oN=Xb.prototype;oN.append=function(e,n){this._pairs.push([e,n])},oN.toString=function(e){const n=e?function(o){return e.call(this,o,rN)}:rN;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function pG(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function aN(t,e,n){if(!e)return t;const o=n&&n.encode||pG;pe.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let s;if(a?s=a(e,n):s=pe.isURLSearchParams(e)?e.toString():new Xb(e,n).toString(o),s){const l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class sN{constructor(){this.handlers=[]}use(e,n,o){return this.handlers.push({fulfilled:e,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){pe.forEach(this.handlers,function(o){o!==null&&e(o)})}}const iN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hG={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Xb,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ub=typeof window<"u"&&typeof document<"u",Gb=typeof navigator=="object"&&navigator||void 0,mG=Ub&&(!Gb||["ReactNative","NativeScript","NS"].indexOf(Gb.product)<0),fG=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",yG=Ub&&window.location.href||"http://localhost",Jr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ub,hasStandardBrowserEnv:mG,hasStandardBrowserWebWorkerEnv:fG,navigator:Gb,origin:yG},Symbol.toStringTag,{value:"Module"})),...hG};function gG(t,e){return qf(t,new Jr.classes.URLSearchParams,Object.assign({visitor:function(n,o,a,s){return Jr.isNode&&pe.isBuffer(n)?(this.append(o,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function _G(t){return pe.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function wG(t){const e={},n=Object.keys(t);let o;const a=n.length;let s;for(o=0;o<a;o++)s=n[o],e[s]=t[s];return e}function lN(t){function e(n,o,a,s){let l=n[s++];if(l==="__proto__")return!0;const c=Number.isFinite(+l),u=s>=n.length;return l=!l&&pe.isArray(a)?a.length:l,u?(pe.hasOwnProp(a,l)?a[l]=[a[l],o]:a[l]=o,!c):((!a[l]||!pe.isObject(a[l]))&&(a[l]=[]),e(n,o,a[l],s)&&pe.isArray(a[l])&&(a[l]=wG(a[l])),!c)}if(pe.isFormData(t)&&pe.isFunction(t.entries)){const n={};return pe.forEachEntry(t,(o,a)=>{e(_G(o),a,n,0)}),n}return null}function bG(t,e,n){if(pe.isString(t))try{return(e||JSON.parse)(t),pe.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(t)}const uh={transitional:iN,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const o=n.getContentType()||"",a=o.indexOf("application/json")>-1,s=pe.isObject(e);if(s&&pe.isHTMLForm(e)&&(e=new FormData(e)),pe.isFormData(e))return a?JSON.stringify(lN(e)):e;if(pe.isArrayBuffer(e)||pe.isBuffer(e)||pe.isStream(e)||pe.isFile(e)||pe.isBlob(e)||pe.isReadableStream(e))return e;if(pe.isArrayBufferView(e))return e.buffer;if(pe.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return gG(e,this.formSerializer).toString();if((c=pe.isFileList(e))||o.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return qf(c?{"files[]":e}:e,u&&new u,this.formSerializer)}}return s||a?(n.setContentType("application/json",!1),bG(e)):e}],transformResponse:[function(e){const n=this.transitional||uh.transitional,o=n&&n.forcedJSONParsing,a=this.responseType==="json";if(pe.isResponse(e)||pe.isReadableStream(e))return e;if(e&&pe.isString(e)&&(o&&!this.responseType||a)){const l=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(c){if(l)throw c.name==="SyntaxError"?wt.from(c,wt.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Jr.classes.FormData,Blob:Jr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pe.forEach(["delete","get","head","post","put","patch"],t=>{uh.headers[t]={}});const kG=pe.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"]),TG=t=>{const e={};let n,o,a;return t&&t.split(`
`).forEach(function(l){a=l.indexOf(":"),n=l.substring(0,a).trim().toLowerCase(),o=l.substring(a+1).trim(),!(!n||e[n]&&kG[n])&&(n==="set-cookie"?e[n]?e[n].push(o):e[n]=[o]:e[n]=e[n]?e[n]+", "+o:o)}),e},cN=Symbol("internals");function dh(t){return t&&String(t).trim().toLowerCase()}function Qf(t){return t===!1||t==null?t:pe.isArray(t)?t.map(Qf):String(t)}function xG(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(t);)e[o[1]]=o[2];return e}const SG=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Hb(t,e,n,o,a){if(pe.isFunction(o))return o.call(this,e,n);if(a&&(e=n),!!pe.isString(e)){if(pe.isString(o))return e.indexOf(o)!==-1;if(pe.isRegExp(o))return o.test(e)}}function CG(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,o)=>n.toUpperCase()+o)}function RG(t,e){const n=pe.toCamelCase(" "+e);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+n,{value:function(a,s,l){return this[o].call(this,e,a,s,l)},configurable:!0})})}let Bo=class{constructor(e){e&&this.set(e)}set(e,n,o){const a=this;function s(c,u,i){const d=dh(u);if(!d)throw new Error("header name must be a non-empty string");const p=pe.findKey(a,d);(!p||a[p]===void 0||i===!0||i===void 0&&a[p]!==!1)&&(a[p||u]=Qf(c))}const l=(c,u)=>pe.forEach(c,(i,d)=>s(i,d,u));if(pe.isPlainObject(e)||e instanceof this.constructor)l(e,n);else if(pe.isString(e)&&(e=e.trim())&&!SG(e))l(TG(e),n);else if(pe.isHeaders(e))for(const[c,u]of e.entries())s(u,c,o);else e!=null&&s(n,e,o);return this}get(e,n){if(e=dh(e),e){const o=pe.findKey(this,e);if(o){const a=this[o];if(!n)return a;if(n===!0)return xG(a);if(pe.isFunction(n))return n.call(this,a,o);if(pe.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=dh(e),e){const o=pe.findKey(this,e);return!!(o&&this[o]!==void 0&&(!n||Hb(this,this[o],o,n)))}return!1}delete(e,n){const o=this;let a=!1;function s(l){if(l=dh(l),l){const c=pe.findKey(o,l);c&&(!n||Hb(o,o[c],c,n))&&(delete o[c],a=!0)}}return pe.isArray(e)?e.forEach(s):s(e),a}clear(e){const n=Object.keys(this);let o=n.length,a=!1;for(;o--;){const s=n[o];(!e||Hb(this,this[s],s,e,!0))&&(delete this[s],a=!0)}return a}normalize(e){const n=this,o={};return pe.forEach(this,(a,s)=>{const l=pe.findKey(o,s);if(l){n[l]=Qf(a),delete n[s];return}const c=e?CG(s):String(s).trim();c!==s&&delete n[s],n[c]=Qf(a),o[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return pe.forEach(this,(o,a)=>{o!=null&&o!==!1&&(n[a]=e&&pe.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const o=new this(e);return n.forEach(a=>o.set(a)),o}static accessor(e){const o=(this[cN]=this[cN]={accessors:{}}).accessors,a=this.prototype;function s(l){const c=dh(l);o[c]||(RG(a,l),o[c]=!0)}return pe.isArray(e)?e.forEach(s):s(e),this}};Bo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),pe.reduceDescriptors(Bo.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(o){this[n]=o}}}),pe.freezeMethods(Bo);function $b(t,e){const n=this||uh,o=e||n,a=Bo.from(o.headers);let s=o.data;return pe.forEach(t,function(c){s=c.call(n,s,a.normalize(),e?e.status:void 0)}),a.normalize(),s}function uN(t){return!!(t&&t.__CANCEL__)}function Sd(t,e,n){wt.call(this,t??"canceled",wt.ERR_CANCELED,e,n),this.name="CanceledError"}pe.inherits(Sd,wt,{__CANCEL__:!0});function dN(t,e,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?t(n):e(new wt("Request failed with status code "+n.status,[wt.ERR_BAD_REQUEST,wt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function EG(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function PG(t,e){t=t||10;const n=new Array(t),o=new Array(t);let a=0,s=0,l;return e=e!==void 0?e:1e3,function(u){const i=Date.now(),d=o[s];l||(l=i),n[a]=u,o[a]=i;let p=s,h=0;for(;p!==a;)h+=n[p++],p=p%t;if(a=(a+1)%t,a===s&&(s=(s+1)%t),i-l<e)return;const m=d&&i-d;return m?Math.round(h*1e3/m):void 0}}function NG(t,e){let n=0,o=1e3/e,a,s;const l=(i,d=Date.now())=>{n=d,a=null,s&&(clearTimeout(s),s=null),t.apply(null,i)};return[(...i)=>{const d=Date.now(),p=d-n;p>=o?l(i,d):(a=i,s||(s=setTimeout(()=>{s=null,l(a)},o-p)))},()=>a&&l(a)]}const Jf=(t,e,n=3)=>{let o=0;const a=PG(50,250);return NG(s=>{const l=s.loaded,c=s.lengthComputable?s.total:void 0,u=l-o,i=a(u),d=l<=c;o=l;const p={loaded:l,total:c,progress:c?l/c:void 0,bytes:u,rate:i||void 0,estimated:i&&c&&d?(c-l)/i:void 0,event:s,lengthComputable:c!=null,[e?"download":"upload"]:!0};t(p)},n)},pN=(t,e)=>{const n=t!=null;return[o=>e[0]({lengthComputable:n,total:t,loaded:o}),e[1]]},hN=t=>(...e)=>pe.asap(()=>t(...e)),MG=Jr.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Jr.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Jr.origin),Jr.navigator&&/(msie|trident)/i.test(Jr.navigator.userAgent)):()=>!0,AG=Jr.hasStandardBrowserEnv?{write(t,e,n,o,a,s){const l=[t+"="+encodeURIComponent(e)];pe.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),pe.isString(o)&&l.push("path="+o),pe.isString(a)&&l.push("domain="+a),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function VG(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function DG(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function mN(t,e,n){let o=!VG(e);return t&&o||n==!1?DG(t,e):e}const fN=t=>t instanceof Bo?{...t}:t;function Yc(t,e){e=e||{};const n={};function o(i,d,p,h){return pe.isPlainObject(i)&&pe.isPlainObject(d)?pe.merge.call({caseless:h},i,d):pe.isPlainObject(d)?pe.merge({},d):pe.isArray(d)?d.slice():d}function a(i,d,p,h){if(pe.isUndefined(d)){if(!pe.isUndefined(i))return o(void 0,i,p,h)}else return o(i,d,p,h)}function s(i,d){if(!pe.isUndefined(d))return o(void 0,d)}function l(i,d){if(pe.isUndefined(d)){if(!pe.isUndefined(i))return o(void 0,i)}else return o(void 0,d)}function c(i,d,p){if(p in e)return o(i,d);if(p in t)return o(void 0,i)}const u={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(i,d,p)=>a(fN(i),fN(d),p,!0)};return pe.forEach(Object.keys(Object.assign({},t,e)),function(d){const p=u[d]||a,h=p(t[d],e[d],d);pe.isUndefined(h)&&p!==c||(n[d]=h)}),n}const yN=t=>{const e=Yc({},t);let{data:n,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:s,headers:l,auth:c}=e;e.headers=l=Bo.from(l),e.url=aN(mN(e.baseURL,e.url),t.params,t.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let u;if(pe.isFormData(n)){if(Jr.hasStandardBrowserEnv||Jr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((u=l.getContentType())!==!1){const[i,...d]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];l.setContentType([i||"multipart/form-data",...d].join("; "))}}if(Jr.hasStandardBrowserEnv&&(o&&pe.isFunction(o)&&(o=o(e)),o||o!==!1&&MG(e.url))){const i=a&&s&&AG.read(s);i&&l.set(a,i)}return e},BG=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,o){const a=yN(t);let s=a.data;const l=Bo.from(a.headers).normalize();let{responseType:c,onUploadProgress:u,onDownloadProgress:i}=a,d,p,h,m,y;function _(){m&&m(),y&&y(),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener("abort",d)}let w=new XMLHttpRequest;w.open(a.method.toUpperCase(),a.url,!0),w.timeout=a.timeout;function k(){if(!w)return;const S=Bo.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),E={data:!c||c==="text"||c==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:S,config:t,request:w};dN(function(V){n(V),_()},function(V){o(V),_()},E),w=null}"onloadend"in w?w.onloadend=k:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(k)},w.onabort=function(){w&&(o(new wt("Request aborted",wt.ECONNABORTED,t,w)),w=null)},w.onerror=function(){o(new wt("Network Error",wt.ERR_NETWORK,t,w)),w=null},w.ontimeout=function(){let R=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const E=a.transitional||iN;a.timeoutErrorMessage&&(R=a.timeoutErrorMessage),o(new wt(R,E.clarifyTimeoutError?wt.ETIMEDOUT:wt.ECONNABORTED,t,w)),w=null},s===void 0&&l.setContentType(null),"setRequestHeader"in w&&pe.forEach(l.toJSON(),function(R,E){w.setRequestHeader(E,R)}),pe.isUndefined(a.withCredentials)||(w.withCredentials=!!a.withCredentials),c&&c!=="json"&&(w.responseType=a.responseType),i&&([h,y]=Jf(i,!0),w.addEventListener("progress",h)),u&&w.upload&&([p,m]=Jf(u),w.upload.addEventListener("progress",p),w.upload.addEventListener("loadend",m)),(a.cancelToken||a.signal)&&(d=S=>{w&&(o(!S||S.type?new Sd(null,t,w):S),w.abort(),w=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));const C=EG(a.url);if(C&&Jr.protocols.indexOf(C)===-1){o(new wt("Unsupported protocol "+C+":",wt.ERR_BAD_REQUEST,t));return}w.send(s||null)})},IG=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let o=new AbortController,a;const s=function(i){if(!a){a=!0,c();const d=i instanceof Error?i:this.reason;o.abort(d instanceof wt?d:new Sd(d instanceof Error?d.message:d))}};let l=e&&setTimeout(()=>{l=null,s(new wt(`timeout ${e} of ms exceeded`,wt.ETIMEDOUT))},e);const c=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(i=>{i.unsubscribe?i.unsubscribe(s):i.removeEventListener("abort",s)}),t=null)};t.forEach(i=>i.addEventListener("abort",s));const{signal:u}=o;return u.unsubscribe=()=>pe.asap(c),u}},FG=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let o=0,a;for(;o<n;)a=o+e,yield t.slice(o,a),o=a},OG=async function*(t,e){for await(const n of vG(t))yield*FG(n,e)},vG=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:o}=await e.read();if(n)break;yield o}}finally{await e.cancel()}},gN=(t,e,n,o)=>{const a=OG(t,e);let s=0,l,c=u=>{l||(l=!0,o&&o(u))};return new ReadableStream({async pull(u){try{const{done:i,value:d}=await a.next();if(i){c(),u.close();return}let p=d.byteLength;if(n){let h=s+=p;n(h)}u.enqueue(new Uint8Array(d))}catch(i){throw c(i),i}},cancel(u){return c(u),a.return()}},{highWaterMark:2})},ey=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",_N=ey&&typeof ReadableStream=="function",LG=ey&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),wN=(t,...e)=>{try{return!!t(...e)}catch{return!1}},WG=_N&&wN(()=>{let t=!1;const e=new Request(Jr.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),bN=64*1024,zb=_N&&wN(()=>pe.isReadableStream(new Response("").body)),ty={stream:zb&&(t=>t.body)};ey&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ty[e]&&(ty[e]=pe.isFunction(t[e])?n=>n[e]():(n,o)=>{throw new wt(`Response type '${e}' is not supported`,wt.ERR_NOT_SUPPORT,o)})})})(new Response);const XG=async t=>{if(t==null)return 0;if(pe.isBlob(t))return t.size;if(pe.isSpecCompliantForm(t))return(await new Request(Jr.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(pe.isArrayBufferView(t)||pe.isArrayBuffer(t))return t.byteLength;if(pe.isURLSearchParams(t)&&(t=t+""),pe.isString(t))return(await LG(t)).byteLength},UG=async(t,e)=>{const n=pe.toFiniteNumber(t.getContentLength());return n??XG(e)},Zb={http:cG,xhr:BG,fetch:ey&&(async t=>{let{url:e,method:n,data:o,signal:a,cancelToken:s,timeout:l,onDownloadProgress:c,onUploadProgress:u,responseType:i,headers:d,withCredentials:p="same-origin",fetchOptions:h}=yN(t);i=i?(i+"").toLowerCase():"text";let m=IG([a,s&&s.toAbortSignal()],l),y;const _=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let w;try{if(u&&WG&&n!=="get"&&n!=="head"&&(w=await UG(d,o))!==0){let E=new Request(e,{method:"POST",body:o,duplex:"half"}),M;if(pe.isFormData(o)&&(M=E.headers.get("content-type"))&&d.setContentType(M),E.body){const[V,D]=pN(w,Jf(hN(u)));o=gN(E.body,bN,V,D)}}pe.isString(p)||(p=p?"include":"omit");const k="credentials"in Request.prototype;y=new Request(e,{...h,signal:m,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:o,duplex:"half",credentials:k?p:void 0});let C=await fetch(y);const S=zb&&(i==="stream"||i==="response");if(zb&&(c||S&&_)){const E={};["status","statusText","headers"].forEach(X=>{E[X]=C[X]});const M=pe.toFiniteNumber(C.headers.get("content-length")),[V,D]=c&&pN(M,Jf(hN(c),!0))||[];C=new Response(gN(C.body,bN,V,()=>{D&&D(),_&&_()}),E)}i=i||"text";let R=await ty[pe.findKey(ty,i)||"text"](C,t);return!S&&_&&_(),await new Promise((E,M)=>{dN(E,M,{data:R,headers:Bo.from(C.headers),status:C.status,statusText:C.statusText,config:t,request:y})})}catch(k){throw _&&_(),k&&k.name==="TypeError"&&/fetch/i.test(k.message)?Object.assign(new wt("Network Error",wt.ERR_NETWORK,t,y),{cause:k.cause||k}):wt.from(k,k&&k.code,t,y)}})};pe.forEach(Zb,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const kN=t=>`- ${t}`,GG=t=>pe.isFunction(t)||t===null||t===!1,TN={getAdapter:t=>{t=pe.isArray(t)?t:[t];const{length:e}=t;let n,o;const a={};for(let s=0;s<e;s++){n=t[s];let l;if(o=n,!GG(n)&&(o=Zb[(l=String(n)).toLowerCase()],o===void 0))throw new wt(`Unknown adapter '${l}'`);if(o)break;a[l||"#"+s]=o}if(!o){const s=Object.entries(a).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=e?s.length>1?`since :
`+s.map(kN).join(`
`):" "+kN(s[0]):"as no adapter specified";throw new wt("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o},adapters:Zb};function jb(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Sd(null,t)}function xN(t){return jb(t),t.headers=Bo.from(t.headers),t.data=$b.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),TN.getAdapter(t.adapter||uh.adapter)(t).then(function(o){return jb(t),o.data=$b.call(t,t.transformResponse,o),o.headers=Bo.from(o.headers),o},function(o){return uN(o)||(jb(t),o&&o.response&&(o.response.data=$b.call(t,t.transformResponse,o.response),o.response.headers=Bo.from(o.response.headers))),Promise.reject(o)})}const SN="1.8.2",ny={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ny[t]=function(o){return typeof o===t||"a"+(e<1?"n ":" ")+t}});const CN={};ny.transitional=function(e,n,o){function a(s,l){return"[Axios v"+SN+"] Transitional option '"+s+"'"+l+(o?". "+o:"")}return(s,l,c)=>{if(e===!1)throw new wt(a(l," has been removed"+(n?" in "+n:"")),wt.ERR_DEPRECATED);return n&&!CN[l]&&(CN[l]=!0,console.warn(a(l," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,l,c):!0}},ny.spelling=function(e){return(n,o)=>(console.warn(`${o} is likely a misspelling of ${e}`),!0)};function HG(t,e,n){if(typeof t!="object")throw new wt("options must be an object",wt.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let a=o.length;for(;a-- >0;){const s=o[a],l=e[s];if(l){const c=t[s],u=c===void 0||l(c,s,t);if(u!==!0)throw new wt("option "+s+" must be "+u,wt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new wt("Unknown option "+s,wt.ERR_BAD_OPTION)}}const ry={assertOptions:HG,validators:ny},Os=ry.validators;let Kc=class{constructor(e){this.defaults=e,this.interceptors={request:new sN,response:new sN}}async request(e,n){try{return await this._request(e,n)}catch(o){if(o instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const s=a.stack?a.stack.replace(/^.+\n/,""):"";try{o.stack?s&&!String(o.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(o.stack+=`
`+s):o.stack=s}catch{}}throw o}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Yc(this.defaults,n);const{transitional:o,paramsSerializer:a,headers:s}=n;o!==void 0&&ry.assertOptions(o,{silentJSONParsing:Os.transitional(Os.boolean),forcedJSONParsing:Os.transitional(Os.boolean),clarifyTimeoutError:Os.transitional(Os.boolean)},!1),a!=null&&(pe.isFunction(a)?n.paramsSerializer={serialize:a}:ry.assertOptions(a,{encode:Os.function,serialize:Os.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ry.assertOptions(n,{baseUrl:Os.spelling("baseURL"),withXsrfToken:Os.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&pe.merge(s.common,s[n.method]);s&&pe.forEach(["delete","get","head","post","put","patch","common"],y=>{delete s[y]}),n.headers=Bo.concat(l,s);const c=[];let u=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(u=u&&_.synchronous,c.unshift(_.fulfilled,_.rejected))});const i=[];this.interceptors.response.forEach(function(_){i.push(_.fulfilled,_.rejected)});let d,p=0,h;if(!u){const y=[xN.bind(this),void 0];for(y.unshift.apply(y,c),y.push.apply(y,i),h=y.length,d=Promise.resolve(n);p<h;)d=d.then(y[p++],y[p++]);return d}h=c.length;let m=n;for(p=0;p<h;){const y=c[p++],_=c[p++];try{m=y(m)}catch(w){_.call(this,w);break}}try{d=xN.call(this,m)}catch(y){return Promise.reject(y)}for(p=0,h=i.length;p<h;)d=d.then(i[p++],i[p++]);return d}getUri(e){e=Yc(this.defaults,e);const n=mN(e.baseURL,e.url,e.allowAbsoluteUrls);return aN(n,e.params,e.paramsSerializer)}};pe.forEach(["delete","get","head","options"],function(e){Kc.prototype[e]=function(n,o){return this.request(Yc(o||{},{method:e,url:n,data:(o||{}).data}))}}),pe.forEach(["post","put","patch"],function(e){function n(o){return function(s,l,c){return this.request(Yc(c||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}Kc.prototype[e]=n(),Kc.prototype[e+"Form"]=n(!0)});let $G=class w9{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const o=this;this.promise.then(a=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](a);o._listeners=null}),this.promise.then=a=>{let s;const l=new Promise(c=>{o.subscribe(c),s=c}).then(a);return l.cancel=function(){o.unsubscribe(s)},l},e(function(s,l,c){o.reason||(o.reason=new Sd(s,l,c),n(o.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;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=o=>{e.abort(o)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new w9(function(a){e=a}),cancel:e}}};function zG(t){return function(n){return t.apply(null,n)}}function ZG(t){return pe.isObject(t)&&t.isAxiosError===!0}const Yb={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};Object.entries(Yb).forEach(([t,e])=>{Yb[e]=t});function RN(t){const e=new Kc(t),n=$P(Kc.prototype.request,e);return pe.extend(n,Kc.prototype,e,{allOwnKeys:!0}),pe.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return RN(Yc(t,a))},n}const zn=RN(uh);zn.Axios=Kc,zn.CanceledError=Sd,zn.CancelToken=$G,zn.isCancel=uN,zn.VERSION=SN,zn.toFormData=qf,zn.AxiosError=wt,zn.Cancel=zn.CanceledError,zn.all=function(e){return Promise.all(e)},zn.spread=zG,zn.isAxiosError=ZG,zn.mergeConfig=Yc,zn.AxiosHeaders=Bo,zn.formToJSON=t=>lN(pe.isHTMLForm(t)?new FormData(t):t),zn.getAdapter=TN.getAdapter,zn.HttpStatusCode=Yb,zn.default=zn;const{Axios:MBe,AxiosError:ABe,CanceledError:VBe,isCancel:DBe,CancelToken:BBe,VERSION:IBe,all:FBe,Cancel:OBe,isAxiosError:Kb,spread:vBe,toFormData:LBe,AxiosHeaders:WBe,HttpStatusCode:XBe,formToJSON:UBe,getAdapter:GBe,mergeConfig:HBe}=zn;function qb(t,e){return JSON.stringify(t)===JSON.stringify(e)}function mt(t){return t==null}function Qb(t){return t===null}function EN(t){return t!=null}function ph(t){return t!==void 0}const PN=t=>t.baseUrl,NN={"X-PREFECT-UI":!0},MN=t=>{const e={};return t.token&&(e.Authorization=`bearer ${t.token}`),e};class oy{constructor(e,n=null){B(this,"apiConfig");B(this,"apiHeaders",[NN,MN]);B(this,"apiBaseUrl",PN);B(this,"routePrefix");B(this,"instanceSetupHook");this.apiConfig=e,this.instanceSetupHook=n}getConfig(){return typeof this.apiConfig=="function"?this.apiConfig():this.apiConfig}composeBaseUrl(){return typeof this.apiBaseUrl=="string"?this.apiBaseUrl:this.apiBaseUrl(this.getConfig())}composeHeaders(){return I.asArray(this.apiHeaders).reduce((n,o)=>{const a=typeof o=="function"?o(this.getConfig()):o;return{...n,...a}},{})}combinePath(e){const n=/(\/+)/g;return[this.routePrefix,e].filter(ph).join("/").replace(n,"/")}instance(){const e={baseURL:this.composeBaseUrl(),headers:this.composeHeaders()},n=zn.create(e);return this.instanceSetupHook&&this.instanceSetupHook(n),n}get(e,n){const o=this.combinePath(e);return this.instance().get(o,n)}delete(e,n){const o=this.combinePath(e);return this.instance().delete(o,n)}head(e,n){const o=this.combinePath(e);return this.instance().head(o,n)}options(e,n){const o=this.combinePath(e);return this.instance().options(o,n)}post(e,n,o){const a=this.combinePath(e);return this.instance().post(a,n,o)}