From 2f89083ea471f1ecaebd8dc54260c9a2ddd50b4d Mon Sep 17 00:00:00 2001 From: crynobone Date: Tue, 6 Aug 2024 14:29:02 +0000 Subject: [PATCH] Update Assets --- dist/tool.js | 2 +- dist/tool.js.map | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/tool.js b/dist/tool.js index 0eecf1d..232d8ee 100644 --- a/dist/tool.js +++ b/dist/tool.js @@ -1,3 +1,3 @@ /*! For license information please see tool.js.LICENSE.txt */ -(()=>{var e={4018:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CopiesToClipboard:()=>s,DependentFormField:()=>Or,Errors:()=>Lr.D1,FieldValue:()=>$r,FormEvents:()=>br,FormField:()=>Ir,HandlesFieldAttachments:()=>Qr,HandlesFormRequest:()=>_r,HandlesPanelVisibility:()=>un,HandlesUploads:()=>Pr,HandlesValidationErrors:()=>Zr,HasCards:()=>an,Localization:()=>Fr,MetricBehavior:()=>Ur,PreventsFormAbandonment:()=>oe,PreventsModalAbandonment:()=>ce,mapProps:()=>i,useCopyValueToClipboard:()=>u,useLocalization:()=>sn});var n={};r.r(n),r.d(n,{hasBrowserEnv:()=>ut,hasStandardBrowserEnv:()=>st,hasStandardBrowserWebWorkerEnv:()=>ht});var o=r(4047),a=r.n(o),l={nested:{type:Boolean,default:!1},preventInitialLoading:{type:Boolean,default:!1},showHelpText:{type:Boolean,default:!1},shownViaNewRelationModal:{type:Boolean,default:!1},resourceId:{type:[Number,String]},resourceName:{type:String},relatedResourceId:{type:[Number,String]},relatedResourceName:{type:String},field:{type:Object,required:!0},viaResource:{type:String,required:!1},viaResourceId:{type:[String,Number],required:!1},viaRelationship:{type:String,required:!1},relationshipType:{type:String,default:""},shouldOverrideMeta:{type:Boolean,default:!1},disablePagination:{type:Boolean,default:!1},clickAction:{type:String,default:"view",validator:function(e){return["edit","select","ignore","detail"].includes(e)}},mode:{type:String,default:"form",validator:function(e){return["form","modal","action-modal","action-fullscreen"].includes(e)}}};function i(e){return a()(l,e)}var c={methods:{copyValueToClipboard:function(e){if(navigator.clipboard)navigator.clipboard.writeText(e);else if(window.clipboardData)window.clipboardData.setData("Text",e);else{var t=document.createElement("input"),r=[document.documentElement.scrollTop,document.documentElement.scrollLeft],n=r[0],o=r[1];document.body.appendChild(t),t.value=e,t.focus(),t.select(),document.documentElement.scrollTop=n,document.documentElement.scrollLeft=o,document.execCommand("copy"),t.remove()}}}};function u(){return{copyValueToClipboard:function(e){return c.methods.copyValueToClipboard(e)}}}const s=c;var d=r(311);function h(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:void 0!==r.g?r.g:{}}const p="function"==typeof Proxy;let v,f;function m(){return void 0!==v||("undefined"!=typeof window&&window.performance?(v=!0,f=window.performance):void 0!==r.g&&(null===(e=r.g.perf_hooks)||void 0===e?void 0:e.performance)?(v=!0,f=r.g.perf_hooks.performance):v=!1),v?f.now():Date.now();var e}class w{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const r={};if(e.settings)for(const t in e.settings){const n=e.settings[t];r[t]=n.defaultValue}const n=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},r);try{const e=localStorage.getItem(n),t=JSON.parse(e);Object.assign(o,t)}catch(e){}this.fallbacks={getSettings:()=>o,setSettings(e){try{localStorage.setItem(n,JSON.stringify(e))}catch(e){}o=e},now:()=>m()},t&&t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((r=>{this.targetQueue.push({method:t,args:e,resolve:r})}))})}async setRealTarget(e){this.target=e;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}function g(e,t){const r=e,n=h(),o=h().__VUE_DEVTOOLS_GLOBAL_HOOK__,a=p&&r.enableEarlyProxy;if(!o||!n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&a){const e=a?new w(r,o):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else o.emit("devtools-plugin:setup",e,t)}var k="store";function B(e,t){Object.keys(e).forEach((function(r){return t(e[r],r)}))}function E(e){return null!==e&&"object"==typeof e}function x(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function y(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;z(e,r,[],e._modules.root,!0),M(e,r,t)}function M(e,t,r){var n=e._state,o=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,l={},i={},c=(0,d.effectScope)(!0);c.run((function(){B(a,(function(t,r){l[r]=function(e,t){return function(){return e(t)}}(t,e),i[r]=(0,d.computed)((function(){return l[r]()})),Object.defineProperty(e.getters,r,{get:function(){return i[r].value},enumerable:!0})}))})),e._state=(0,d.reactive)({data:t}),e._scope=c,e.strict&&function(e){(0,d.watch)((function(){return e._state.data}),(function(){0}),{deep:!0,flush:"sync"})}(e),n&&r&&e._withCommit((function(){n.data=null})),o&&o.stop()}function z(e,t,r,n,o){var a=!r.length,l=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[l],e._modulesNamespaceMap[l]=n),!a&&!o){var i=V(t,r.slice(0,-1)),c=r[r.length-1];e._withCommit((function(){i[c]=n.state}))}var u=n.context=function(e,t,r){var n=""===t,o={dispatch:n?e.dispatch:function(r,n,o){var a=b(r,n,o),l=a.payload,i=a.options,c=a.type;return i&&i.root||(c=t+c),e.dispatch(c,l)},commit:n?e.commit:function(r,n,o){var a=b(r,n,o),l=a.payload,i=a.options,c=a.type;i&&i.root||(c=t+c),e.commit(c,l,i)}};return Object.defineProperties(o,{getters:{get:n?function(){return e.getters}:function(){return A(e,t)}},state:{get:function(){return V(e.state,r)}}}),o}(e,l,r);n.forEachMutation((function(t,r){!function(e,t,r,n){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){r.call(e,n.state,t)}))}(e,l+r,t,u)})),n.forEachAction((function(t,r){var n=t.root?r:l+r,o=t.handler||t;!function(e,t,r,n){(e._actions[t]||(e._actions[t]=[])).push((function(t){var o,a=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return(o=a)&&"function"==typeof o.then||(a=Promise.resolve(a)),e._devtoolHook?a.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):a}))}(e,n,o,u)})),n.forEachGetter((function(t,r){!function(e,t,r,n){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return r(n.state,n.getters,e.state,e.getters)}}(e,l+r,t,u)})),n.forEachChild((function(n,a){z(e,t,r.concat(a),n,o)}))}function A(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,n)===t){var a=o.slice(n);Object.defineProperty(r,a,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function V(e,t){return t.reduce((function(e,t){return e[t]}),e)}function b(e,t,r){return E(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}var C="vuex:mutations",N="vuex:actions",I="vuex",j=0;function S(e,t){g({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},(function(r){r.addTimelineLayer({id:C,label:"Vuex Mutations",color:H}),r.addTimelineLayer({id:N,label:"Vuex Actions",color:H}),r.addInspector({id:I,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree((function(r){if(r.app===e&&r.inspectorId===I)if(r.filter){var n=[];P(n,t._modules.root,r.filter,""),r.rootNodes=n}else r.rootNodes=[_(t._modules.root,"")]})),r.on.getInspectorState((function(r){if(r.app===e&&r.inspectorId===I){var n=r.nodeId;A(t,n),r.state=function(e,t,r){t="root"===r?t:t[r];var n=Object.keys(t),o={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(n.length){var a=function(e){var t={};return Object.keys(e).forEach((function(r){var n=r.split("/");if(n.length>1){var o=t,a=n.pop();n.forEach((function(e){o[e]||(o[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),o=o[e]._custom.value})),o[a]=R((function(){return e[r]}))}else t[r]=R((function(){return e[r]}))})),t}(t);o.getters=Object.keys(a).map((function(e){return{key:e.endsWith("/")?L(e):e,editable:!1,value:R((function(){return a[e]}))}}))}return o}((o=t._modules,(l=(a=n).split("/").filter((function(e){return e}))).reduce((function(e,t,r){var n=e[t];if(!n)throw new Error('Missing module "'+t+'" for path "'+a+'".');return r===l.length-1?n:n._children}),"root"===a?o:o.root._children)),"root"===n?t.getters:t._makeLocalGettersCache,n)}var o,a,l})),r.on.editInspectorState((function(r){if(r.app===e&&r.inspectorId===I){var n=r.nodeId,o=r.path;"root"!==n&&(o=n.split("/").filter(Boolean).concat(o)),t._withCommit((function(){r.set(t._state.data,o,r.state.value)}))}})),t.subscribe((function(e,t){var n={};e.payload&&(n.payload=e.payload),n.state=t,r.notifyComponentUpdate(),r.sendInspectorTree(I),r.sendInspectorState(I),r.addTimelineEvent({layerId:C,event:{time:Date.now(),title:e.type,data:n}})})),t.subscribeAction({before:function(e,t){var n={};e.payload&&(n.payload=e.payload),e._id=j++,e._time=Date.now(),n.state=t,r.addTimelineEvent({layerId:N,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:n}})},after:function(e,t){var n={},o=Date.now()-e._time;n.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},e.payload&&(n.payload=e.payload),n.state=t,r.addTimelineEvent({layerId:N,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:n}})}})}))}var H=8702998,O={label:"namespaced",textColor:16777215,backgroundColor:6710886};function L(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function _(e,t){return{id:t||"root",label:L(t),tags:e.namespaced?[O]:[],children:Object.keys(e._children).map((function(r){return _(e._children[r],t+r+"/")}))}}function P(e,t,r,n){n.includes(r)&&e.push({id:n||"root",label:n.endsWith("/")?n.slice(0,n.length-1):n||"Root",tags:t.namespaced?[O]:[]}),Object.keys(t._children).forEach((function(o){P(e,t._children[o],r,n+o+"/")}))}function R(e){try{return e()}catch(e){return e}}var T=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=("function"==typeof r?r():r)||{}},D={namespaced:{configurable:!0}};D.namespaced.get=function(){return!!this._rawModule.namespaced},T.prototype.addChild=function(e,t){this._children[e]=t},T.prototype.removeChild=function(e){delete this._children[e]},T.prototype.getChild=function(e){return this._children[e]},T.prototype.hasChild=function(e){return e in this._children},T.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},T.prototype.forEachChild=function(e){B(this._children,e)},T.prototype.forEachGetter=function(e){this._rawModule.getters&&B(this._rawModule.getters,e)},T.prototype.forEachAction=function(e){this._rawModule.actions&&B(this._rawModule.actions,e)},T.prototype.forEachMutation=function(e){this._rawModule.mutations&&B(this._rawModule.mutations,e)},Object.defineProperties(T.prototype,D);var F=function(e){this.register([],e,!1)};function U(e,t,r){if(t.update(r),r.modules)for(var n in r.modules){if(!t.getChild(n))return void 0;U(e.concat(n),t.getChild(n),r.modules[n])}}F.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},F.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,r){return e+((t=t.getChild(r)).namespaced?r+"/":"")}),"")},F.prototype.update=function(e){U([],this.root,e)},F.prototype.register=function(e,t,r){var n=this;void 0===r&&(r=!0);var o=new T(t,r);0===e.length?this.root=o:this.get(e.slice(0,-1)).addChild(e[e.length-1],o);t.modules&&B(t.modules,(function(t,o){n.register(e.concat(o),t,r)}))},F.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1],n=t.getChild(r);n&&n.runtime&&t.removeChild(r)},F.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return!!t&&t.hasChild(r)};var q=function(e){var t=this;void 0===e&&(e={});var r=e.plugins;void 0===r&&(r=[]);var n=e.strict;void 0===n&&(n=!1);var o=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new F(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var a=this,l=this.dispatch,i=this.commit;this.dispatch=function(e,t){return l.call(a,e,t)},this.commit=function(e,t,r){return i.call(a,e,t,r)},this.strict=n;var c=this._modules.root.state;z(this,c,[],this._modules.root),M(this,c),r.forEach((function(e){return e(t)}))},W={state:{configurable:!0}};q.prototype.install=function(e,t){e.provide(t||k,this),e.config.globalProperties.$store=this,void 0!==this._devtools&&this._devtools&&S(e,this)},W.state.get=function(){return this._state.data},W.state.set=function(e){0},q.prototype.commit=function(e,t,r){var n=this,o=b(e,t,r),a=o.type,l=o.payload,i=(o.options,{type:a,payload:l}),c=this._mutations[a];c&&(this._withCommit((function(){c.forEach((function(e){e(l)}))})),this._subscribers.slice().forEach((function(e){return e(i,n.state)})))},q.prototype.dispatch=function(e,t){var r=this,n=b(e,t),o=n.type,a=n.payload,l={type:o,payload:a},i=this._actions[o];if(i){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(l,r.state)}))}catch(e){0}var c=i.length>1?Promise.all(i.map((function(e){return e(a)}))):i[0](a);return new Promise((function(e,t){c.then((function(t){try{r._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(l,r.state)}))}catch(e){0}e(t)}),(function(e){try{r._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(l,r.state,e)}))}catch(e){0}t(e)}))}))}},q.prototype.subscribe=function(e,t){return x(e,this._subscribers,t)},q.prototype.subscribeAction=function(e,t){return x("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},q.prototype.watch=function(e,t,r){var n=this;return(0,d.watch)((function(){return e(n.state,n.getters)}),t,Object.assign({},r))},q.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},q.prototype.registerModule=function(e,t,r){void 0===r&&(r={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),z(this,this.state,e,this._modules.get(e),r.preserveState),M(this,this.state)},q.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){delete V(t.state,e.slice(0,-1))[e[e.length-1]]})),y(this)},q.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},q.prototype.hotUpdate=function(e){this._modules.update(e),y(this,!0)},q.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(q.prototype,W);Y((function(e,t){var r={};return J(t).forEach((function(t){var n=t.key,o=t.val;r[n]=function(){var t=this.$store.state,r=this.$store.getters;if(e){var n=X(this.$store,"mapState",e);if(!n)return;t=n.context.state,r=n.context.getters}return"function"==typeof o?o.call(this,t,r):t[o]},r[n].vuex=!0})),r}));var $=Y((function(e,t){var r={};return J(t).forEach((function(t){var n=t.key,o=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.commit;if(e){var a=X(this.$store,"mapMutations",e);if(!a)return;n=a.context.commit}return"function"==typeof o?o.apply(this,[n].concat(t)):n.apply(this.$store,[o].concat(t))}})),r})),G=Y((function(e,t){var r={};return J(t).forEach((function(t){var n=t.key,o=t.val;o=e+o,r[n]=function(){if(!e||X(this.$store,"mapGetters",e))return this.$store.getters[o]},r[n].vuex=!0})),r}));Y((function(e,t){var r={};return J(t).forEach((function(t){var n=t.key,o=t.val;r[n]=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=this.$store.dispatch;if(e){var a=X(this.$store,"mapActions",e);if(!a)return;n=a.context.dispatch}return"function"==typeof o?o.apply(this,[n].concat(t)):n.apply(this.$store,[o].concat(t))}})),r}));function J(e){return function(e){return Array.isArray(e)||E(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function Y(e){return function(t,r){return"string"!=typeof t?(r=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,r)}}function X(e,t,r){return e._modulesNamespaceMap[r]}var K=r(8336),Q=r(4666),Z=r.n(Q);function ee(e){return Boolean(!Z()(e)&&""!==e)}function te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function re(e){for(var t=1;t1?window.history.back():!this.navigateBackUsingHistory&&ee(e)?Nova.visit(e,{replace:!0}):Nova.visit("/")}}),computed:re({},G(["canLeaveForm","canLeaveFormToPreviousPage"]))};function ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function le(e){for(var t=1;t{const t=se.call(e);return pe[t]||(pe[t]=t.slice(8,-1).toLowerCase())});var pe;const ve=e=>(e=e.toLowerCase(),t=>he(t)===e),fe=e=>t=>typeof t===e,{isArray:me}=Array,we=fe("undefined");const ge=ve("ArrayBuffer");const ke=fe("string"),Be=fe("function"),Ee=fe("number"),xe=e=>null!==e&&"object"==typeof e,ye=e=>{if("object"!==he(e))return!1;const t=de(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Me=ve("Date"),ze=ve("File"),Ae=ve("Blob"),Ve=ve("FileList"),be=ve("URLSearchParams");function Ce(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),me(e))for(n=0,o=e.length;n0;)if(n=r[o],t===n.toLowerCase())return n;return null}const Ie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,je=e=>!we(e)&&e!==Ie;const Se=(He="undefined"!=typeof Uint8Array&&de(Uint8Array),e=>He&&e instanceof He);var He;const Oe=ve("HTMLFormElement"),Le=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),_e=ve("RegExp"),Pe=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ce(r,((r,o)=>{let a;!1!==(a=t(r,o,e))&&(n[o]=a||r)})),Object.defineProperties(e,n)},Re="abcdefghijklmnopqrstuvwxyz",Te="0123456789",De={DIGIT:Te,ALPHA:Re,ALPHA_DIGIT:Re+Re.toUpperCase()+Te};const Fe=ve("AsyncFunction"),Ue={isArray:me,isArrayBuffer:ge,isBuffer:function(e){return null!==e&&!we(e)&&null!==e.constructor&&!we(e.constructor)&&Be(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Be(e.append)&&("formdata"===(t=he(e))||"object"===t&&Be(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ge(e.buffer),t},isString:ke,isNumber:Ee,isBoolean:e=>!0===e||!1===e,isObject:xe,isPlainObject:ye,isUndefined:we,isDate:Me,isFile:ze,isBlob:Ae,isRegExp:_e,isFunction:Be,isStream:e=>xe(e)&&Be(e.pipe),isURLSearchParams:be,isTypedArray:Se,isFileList:Ve,forEach:Ce,merge:function e(){const{caseless:t}=je(this)&&this||{},r={},n=(n,o)=>{const a=t&&Ne(r,o)||o;ye(r[a])&&ye(n)?r[a]=e(r[a],n):ye(n)?r[a]=e({},n):me(n)?r[a]=n.slice():r[a]=n};for(let e=0,t=arguments.length;e(Ce(t,((t,n)=>{r&&Be(t)?e[n]=ue(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,a,l;const i={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)l=o[a],n&&!n(l,e,t)||i[l]||(t[l]=e[l],i[l]=!0);e=!1!==r&&de(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:he,kindOfTest:ve,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(me(e))return e;let t=e.length;if(!Ee(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:Oe,hasOwnProperty:Le,hasOwnProp:Le,reduceDescriptors:Pe,freezeMethods:e=>{Pe(e,((t,r)=>{if(Be(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];Be(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return me(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:Ne,global:Ie,isContextDefined:je,ALPHABET:De,generateString:(e=16,t=De.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&Be(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(xe(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=me(e)?[]:{};return Ce(e,((e,t)=>{const a=r(e,n+1);!we(a)&&(o[t]=a)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:Fe,isThenable:e=>e&&(xe(e)||Be(e))&&Be(e.then)&&Be(e.catch)};function qe(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}Ue.inherits(qe,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:Ue.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const We=qe.prototype,$e={};["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((e=>{$e[e]={value:e}})),Object.defineProperties(qe,$e),Object.defineProperty(We,"isAxiosError",{value:!0}),qe.from=(e,t,r,n,o,a)=>{const l=Object.create(We);return Ue.toFlatObject(e,l,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),qe.call(l,e.message,t,r,n,o),l.cause=e,l.name=e.name,a&&Object.assign(l,a),l};const Ge=qe;var Je=r(9233).lW;function Ye(e){return Ue.isPlainObject(e)||Ue.isArray(e)}function Xe(e){return Ue.endsWith(e,"[]")?e.slice(0,-2):e}function Ke(e,t,r){return e?e.concat(t).map((function(e,t){return e=Xe(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Qe=Ue.toFlatObject(Ue,{},null,(function(e){return/^is[A-Z]/.test(e)}));const Ze=function(e,t,r){if(!Ue.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=Ue.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ue.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,a=r.dots,l=r.indexes,i=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Ue.isSpecCompliantForm(t);if(!Ue.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Ue.isDate(e))return e.toISOString();if(!i&&Ue.isBlob(e))throw new Ge("Blob is not supported. Use a Buffer instead.");return Ue.isArrayBuffer(e)||Ue.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Je.from(e):e}function u(e,r,o){let i=e;if(e&&!o&&"object"==typeof e)if(Ue.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(Ue.isArray(e)&&function(e){return Ue.isArray(e)&&!e.some(Ye)}(e)||(Ue.isFileList(e)||Ue.endsWith(r,"[]"))&&(i=Ue.toArray(e)))return r=Xe(r),i.forEach((function(e,n){!Ue.isUndefined(e)&&null!==e&&t.append(!0===l?Ke([r],n,a):null===l?r:r+"[]",c(e))})),!1;return!!Ye(e)||(t.append(Ke(o,r,a),c(e)),!1)}const s=[],d=Object.assign(Qe,{defaultVisitor:u,convertValue:c,isVisitable:Ye});if(!Ue.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!Ue.isUndefined(r)){if(-1!==s.indexOf(r))throw Error("Circular reference detected in "+n.join("."));s.push(r),Ue.forEach(r,(function(r,a){!0===(!(Ue.isUndefined(r)||null===r)&&o.call(t,r,Ue.isString(a)?a.trim():a,n,d))&&e(r,n?n.concat(a):[a])})),s.pop()}}(e),t};function et(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function tt(e,t){this._pairs=[],e&&Ze(e,this,t)}const rt=tt.prototype;rt.append=function(e,t){this._pairs.push([e,t])},rt.toString=function(e){const t=e?function(t){return e.call(this,t,et)}:et;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const nt=tt;function ot(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function at(e,t,r){if(!t)return e;const n=r&&r.encode||ot,o=r&&r.serialize;let a;if(a=o?o(t,r):Ue.isURLSearchParams(t)?t.toString():new nt(t,r).toString(n),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const lt=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ue.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},it={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ct={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:nt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ut="undefined"!=typeof window&&"undefined"!=typeof document,st=(dt="undefined"!=typeof navigator&&navigator.product,ut&&["ReactNative","NativeScript","NS"].indexOf(dt)<0);var dt;const ht="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,pt={...n,...ct};const vt=function(e){function t(e,r,n,o){let a=e[o++];if("__proto__"===a)return!0;const l=Number.isFinite(+a),i=o>=e.length;if(a=!a&&Ue.isArray(n)?n.length:a,i)return Ue.hasOwnProp(n,a)?n[a]=[n[a],r]:n[a]=r,!l;n[a]&&Ue.isObject(n[a])||(n[a]=[]);return t(e,r,n[a],o)&&Ue.isArray(n[a])&&(n[a]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n{t(function(e){return Ue.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null};const ft={transitional:it,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=Ue.isObject(e);o&&Ue.isHTMLForm(e)&&(e=new FormData(e));if(Ue.isFormData(e))return n?JSON.stringify(vt(e)):e;if(Ue.isArrayBuffer(e)||Ue.isBuffer(e)||Ue.isStream(e)||Ue.isFile(e)||Ue.isBlob(e))return e;if(Ue.isArrayBufferView(e))return e.buffer;if(Ue.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ze(e,new pt.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return pt.isNode&&Ue.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=Ue.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ze(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(Ue.isString(e))try{return(t||JSON.parse)(e),Ue.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ft.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&Ue.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw Ge.from(e,Ge.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pt.classes.FormData,Blob:pt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ue.forEach(["delete","get","head","post","put","patch"],(e=>{ft.headers[e]={}}));const mt=ft,wt=Ue.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"]),gt=Symbol("internals");function kt(e){return e&&String(e).trim().toLowerCase()}function Bt(e){return!1===e||null==e?e:Ue.isArray(e)?e.map(Bt):String(e)}function Et(e,t,r,n,o){return Ue.isFunction(n)?n.call(this,t,r):(o&&(t=r),Ue.isString(t)?Ue.isString(n)?-1!==t.indexOf(n):Ue.isRegExp(n)?n.test(t):void 0:void 0)}class xt{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=kt(t);if(!o)throw new Error("header name must be a non-empty string");const a=Ue.findKey(n,o);(!a||void 0===n[a]||!0===r||void 0===r&&!1!==n[a])&&(n[a||t]=Bt(e))}const a=(e,t)=>Ue.forEach(e,((e,r)=>o(e,r,t)));return Ue.isPlainObject(e)||e instanceof this.constructor?a(e,t):Ue.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?a((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&wt[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t):null!=e&&o(t,e,r),this}get(e,t){if(e=kt(e)){const r=Ue.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(Ue.isFunction(t))return t.call(this,e,r);if(Ue.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=kt(e)){const r=Ue.findKey(this,e);return!(!r||void 0===this[r]||t&&!Et(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=kt(e)){const o=Ue.findKey(r,e);!o||t&&!Et(0,r[o],o,t)||(delete r[o],n=!0)}}return Ue.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!Et(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return Ue.forEach(this,((n,o)=>{const a=Ue.findKey(r,o);if(a)return t[a]=Bt(n),void delete t[o];const l=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();l!==o&&delete t[o],t[l]=Bt(n),r[l]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ue.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&Ue.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[gt]=this[gt]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=kt(e);t[n]||(!function(e,t){const r=Ue.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return Ue.isArray(e)?e.forEach(n):n(e),this}}xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ue.reduceDescriptors(xt.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),Ue.freezeMethods(xt);const yt=xt;function Mt(e,t){const r=this||mt,n=t||r,o=yt.from(n.headers);let a=n.data;return Ue.forEach(e,(function(e){a=e.call(r,a,o.normalize(),t?t.status:void 0)})),o.normalize(),a}function zt(e){return!(!e||!e.__CANCEL__)}function At(e,t,r){Ge.call(this,null==e?"canceled":e,Ge.ERR_CANCELED,t,r),this.name="CanceledError"}Ue.inherits(At,Ge,{__CANCEL__:!0});const Vt=At;const bt=pt.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const l=[e+"="+encodeURIComponent(t)];Ue.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),Ue.isString(n)&&l.push("path="+n),Ue.isString(o)&&l.push("domain="+o),!0===a&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ct(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Nt=pt.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=Ue.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0};const It=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,a=0,l=0;return t=void 0!==t?t:1e3,function(i){const c=Date.now(),u=n[l];o||(o=c),r[a]=i,n[a]=c;let s=l,d=0;for(;s!==a;)d+=r[s++],s%=e;if(a=(a+1)%e,a===l&&(l=(l+1)%e),c-o{const a=o.loaded,l=o.lengthComputable?o.total:void 0,i=a-r,c=n(i);r=a;const u={loaded:a,total:l,progress:l?a/l:void 0,bytes:i,rate:c||void 0,estimated:c&&l&&a<=l?(l-a)/c:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const St={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){let n=e.data;const o=yt.from(e.headers).normalize();let a,l,{responseType:i,withXSRFToken:c}=e;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}if(Ue.isFormData(n))if(pt.hasStandardBrowserEnv||pt.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(l=o.getContentType())){const[e,...t]=l?l.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let s=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+r))}const d=Ct(e.baseURL,e.url);function h(){if(!s)return;const n=yt.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders());!function(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new Ge("Request failed with status code "+r.status,[Ge.ERR_BAD_REQUEST,Ge.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),u()}),(function(e){r(e),u()}),{data:i&&"text"!==i&&"json"!==i?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:n,config:e,request:s}),s=null}if(s.open(e.method.toUpperCase(),at(d,e.params,e.paramsSerializer),!0),s.timeout=e.timeout,"onloadend"in s?s.onloadend=h:s.onreadystatechange=function(){s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))&&setTimeout(h)},s.onabort=function(){s&&(r(new Ge("Request aborted",Ge.ECONNABORTED,e,s)),s=null)},s.onerror=function(){r(new Ge("Network Error",Ge.ERR_NETWORK,e,s)),s=null},s.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||it;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new Ge(t,n.clarifyTimeoutError?Ge.ETIMEDOUT:Ge.ECONNABORTED,e,s)),s=null},pt.hasStandardBrowserEnv&&(c&&Ue.isFunction(c)&&(c=c(e)),c||!1!==c&&Nt(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&bt.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===n&&o.setContentType(null),"setRequestHeader"in s&&Ue.forEach(o.toJSON(),(function(e,t){s.setRequestHeader(t,e)})),Ue.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),i&&"json"!==i&&(s.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&s.addEventListener("progress",jt(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&s.upload&&s.upload.addEventListener("progress",jt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{s&&(r(!t||t.type?new Vt(null,e,s):t),s.abort(),s=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);p&&-1===pt.protocols.indexOf(p)?r(new Ge("Unsupported protocol "+p+":",Ge.ERR_BAD_REQUEST,e)):s.send(n||null)}))}};Ue.forEach(St,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ht=e=>`- ${e}`,Ot=e=>Ue.isFunction(e)||null===e||!1===e,Lt=e=>{e=Ue.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let r=t?e.length>1?"since :\n"+e.map(Ht).join("\n"):" "+Ht(e[0]):"as no adapter specified";throw new Ge("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n};function _t(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vt(null,e)}function Pt(e){_t(e),e.headers=yt.from(e.headers),e.data=Mt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Lt(e.adapter||mt.adapter)(e).then((function(t){return _t(e),t.data=Mt.call(e,e.transformResponse,t),t.headers=yt.from(t.headers),t}),(function(t){return zt(t)||(_t(e),t&&t.response&&(t.response.data=Mt.call(e,e.transformResponse,t.response),t.response.headers=yt.from(t.response.headers))),Promise.reject(t)}))}const Rt=e=>e instanceof yt?{...e}:e;function Tt(e,t){t=t||{};const r={};function n(e,t,r){return Ue.isPlainObject(e)&&Ue.isPlainObject(t)?Ue.merge.call({caseless:r},e,t):Ue.isPlainObject(t)?Ue.merge({},t):Ue.isArray(t)?t.slice():t}function o(e,t,r){return Ue.isUndefined(t)?Ue.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function a(e,t){if(!Ue.isUndefined(t))return n(void 0,t)}function l(e,t){return Ue.isUndefined(t)?Ue.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function i(r,o,a){return a in t?n(r,o):a in e?n(void 0,r):void 0}const c={url:a,method:a,data:a,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:i,headers:(e,t)=>o(Rt(e),Rt(t),!0)};return Ue.forEach(Object.keys(Object.assign({},e,t)),(function(n){const a=c[n]||o,l=a(e[n],t[n],n);Ue.isUndefined(l)&&a!==i||(r[n]=l)})),r}const Dt="1.6.8",Ft={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ft[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const Ut={};Ft.transitional=function(e,t,r){function n(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,a)=>{if(!1===e)throw new Ge(n(o," has been removed"+(t?" in "+t:"")),Ge.ERR_DEPRECATED);return t&&!Ut[o]&&(Ut[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,a)}};const qt={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Ge("options must be an object",Ge.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],l=t[a];if(l){const t=e[a],r=void 0===t||l(t,a,e);if(!0!==r)throw new Ge("option "+a+" must be "+r,Ge.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new Ge("Unknown option "+a,Ge.ERR_BAD_OPTION)}},validators:Ft},Wt=qt.validators;class $t{constructor(e){this.defaults=e,this.interceptors={request:new lt,response:new lt}}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=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Tt(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&qt.assertOptions(r,{silentJSONParsing:Wt.transitional(Wt.boolean),forcedJSONParsing:Wt.transitional(Wt.boolean),clarifyTimeoutError:Wt.transitional(Wt.boolean)},!1),null!=n&&(Ue.isFunction(n)?t.paramsSerializer={serialize:n}:qt.assertOptions(n,{encode:Wt.function,serialize:Wt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&Ue.merge(o.common,o[t.method]);o&&Ue.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=yt.concat(a,o);const l=[];let i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,l.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let s,d=0;if(!i){const e=[Pt.bind(this),void 0];for(e.unshift.apply(e,l),e.push.apply(e,c),s=e.length,u=Promise.resolve(t);d{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new Vt(e,n,o),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Jt((function(t){e=t})),cancel:e}}}const Yt=Jt;const Xt={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(Xt).forEach((([e,t])=>{Xt[t]=e}));const Kt=Xt;const Qt=function e(t){const r=new Gt(t),n=ue(Gt.prototype.request,r);return Ue.extend(n,Gt.prototype,r,{allOwnKeys:!0}),Ue.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Tt(t,r))},n}(mt);Qt.Axios=Gt,Qt.CanceledError=Vt,Qt.CancelToken=Yt,Qt.isCancel=zt,Qt.VERSION=Dt,Qt.toFormData=Ze,Qt.AxiosError=Ge,Qt.Cancel=Qt.CanceledError,Qt.all=function(e){return Promise.all(e)},Qt.spread=function(e){return function(t){return e.apply(null,t)}},Qt.isAxiosError=function(e){return Ue.isObject(e)&&!0===e.isAxiosError},Qt.mergeConfig=Tt,Qt.AxiosHeaders=yt,Qt.formToJSON=e=>vt(Ue.isHTMLForm(e)?new FormData(e):e),Qt.getAdapter=Lt,Qt.HttpStatusCode=Kt,Qt.default=Qt;const Zt=Qt,{Axios:er,AxiosError:tr,CanceledError:rr,isCancel:nr,CancelToken:or,VERSION:ar,all:lr,Cancel:ir,isAxiosError:cr,spread:ur,toFormData:sr,AxiosHeaders:dr,HttpStatusCode:hr,formToJSON:pr,getAdapter:vr,mergeConfig:fr}=Zt;var mr=r(9751),wr=r.n(mr),gr=r(8960),kr=r.n(gr),Br=r(7847),Er=r.n(Br),xr=r(4278),yr=r.n(xr),Mr=r(1694),zr=r.n(Mr),Ar=r(2487),Vr=r.n(Ar);const br={props:{formUniqueId:{type:String}},methods:{emitFieldValue:function(e,t){Nova.$emit("".concat(e,"-value"),t),!0===this.hasFormUniqueId&&Nova.$emit("".concat(this.formUniqueId,"-").concat(e,"-value"),t)},emitFieldValueChange:function(e,t){Nova.$emit("".concat(e,"-change"),t),!0===this.hasFormUniqueId&&Nova.$emit("".concat(this.formUniqueId,"-").concat(e,"-change"),t)},getFieldAttributeValueEventName:function(e){return!0===this.hasFormUniqueId?"".concat(this.formUniqueId,"-").concat(e,"-value"):"".concat(e,"-value")},getFieldAttributeChangeEventName:function(e){return!0===this.hasFormUniqueId?"".concat(this.formUniqueId,"-").concat(e,"-change"):"".concat(e,"-change")}},computed:{fieldAttribute:function(){return this.field.attribute},hasFormUniqueId:function(){return!Z()(this.formUniqueId)&&""!==this.formUniqueId},fieldAttributeValueEventName:function(){return this.getFieldAttributeValueEventName(this.fieldAttribute)},fieldAttributeChangeEventName:function(){return this.getFieldAttributeChangeEventName(this.fieldAttribute)}}};function Cr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Nr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Ir={extends:br,props:function(e){for(var t=1;t=0;a--)r=r.replace(n[a],o[a])}else console.error("Translation '".concat(r,"' for key '").concat(t,"' contains a null replacement."))})),r}const Fr={methods:{__:function(e,t){return Dr(e,t)}}},Ur={created:function(){Nova.$on("metric-refresh",this.fetch),Nova.$on("resources-deleted",this.fetch),Nova.$on("resources-detached",this.fetch),Nova.$on("resources-restored",this.fetch),this.card.refreshWhenActionRuns&&Nova.$on("action-executed",this.fetch)},beforeUnmount:function(){Nova.$off("metric-refresh",this.fetch),Nova.$off("resources-deleted",this.fetch),Nova.$off("resources-detached",this.fetch),Nova.$off("resources-restored",this.fetch),Nova.$off("action-executed",this.fetch)}};var qr=r(4010),Wr=r.n(qr);const $r={props:["field"],methods:{isEqualsToValue:function(e){var t,r;return Wr()(this.field.value)&&ee(e)?Boolean(this.field.value.includes(e)||this.field.value.includes(e.toString())):Boolean(this.field.value===e||(null===(t=this.field.value)||void 0===t?void 0:t.toString())===e||this.field.value===(null==e?void 0:e.toString())||(null===(r=this.field.value)||void 0===r?void 0:r.toString())===(null==e?void 0:e.toString()))}},computed:{fieldAttribute:function(){return this.field.attribute},fieldHasValue:function(){return ee(this.field.value)},usesCustomizedDisplay:function(){return this.field.usesCustomizedDisplay&&ee(this.field.displayedAs)},fieldValue:function(){var e;return this.usesCustomizedDisplay||this.fieldHasValue?String(null!==(e=this.field.displayedAs)&&void 0!==e?e:this.field.value):null},shouldDisplayAsHtml:function(){return this.field.asHtml}}};function Gr(e){return Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gr(e)}function Jr(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Yr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yr(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var i=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(i&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:M(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},e}function Kr(e,t,r,n,o,a,l){try{var i=e[a](l),c=i.value}catch(e){return void r(e)}i.done?t(c):Promise.resolve(c).then(n,o)}const Qr={emits:["file-upload-started","file-upload-finished"],props:i(["resourceName"]),created:function(){var e,t=this;return(e=Xr().mark((function e(){var r,n;return Xr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.field.withFiles){e.next=6;break}return e.next=3,Nova.request().get("/nova-api/".concat(t.resourceName,"/field-attachment/").concat(t.fieldAttribute,"/draftId"));case 3:r=e.sent,n=r.data.draftId,t.draftId=n;case 6:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function l(e){Kr(a,n,o,l,i,"next",e)}function i(e){Kr(a,n,o,l,i,"throw",e)}l(void 0)}))})()},data:function(){return{draftId:null}},methods:{uploadAttachment:function(e,t){var r=this,n=t.onUploadProgress,o=t.onCompleted,a=t.onFailure,l=new FormData;if(l.append("Content-Type",e.type),l.append("attachment",e),l.append("draftId",this.draftId),Z()(n)&&(n=function(){}),Z()(a)&&(a=function(){}),Z()(o))throw"Missing onCompleted parameter";this.$emit("file-upload-started"),Nova.request().post("/nova-api/".concat(this.resourceName,"/field-attachment/").concat(this.fieldAttribute),l,{onUploadProgress:n}).then((function(e){var t=e.data.url,n=o(t);return r.$emit("file-upload-finished"),n})).catch((function(e){if(a(e),422==e.response.status){var t=new Lr.D1(e.response.data.errors);Nova.error(r.__("An error occurred while uploading the file: :error",{error:t.first("attachment")}))}else Nova.error(r.__("An error occurred while uploading the file."))}))},removeAttachment:function(e){Nova.request().delete("/nova-api/".concat(this.resourceName,"/field-attachment/").concat(this.fieldAttribute),{params:{attachmentUrl:e}}).then((function(e){})).catch((function(e){}))},clearAttachments:function(){this.field.withFiles&&Nova.request().delete("/nova-api/".concat(this.resourceName,"/field-attachment/").concat(this.fieldAttribute,"/").concat(this.draftId)).then((function(e){})).catch((function(e){}))},fillAttachmentDraftId:function(e){var t=this.fieldAttribute,r=Jr(t.split("[")),n=r[0],o=r.slice(1);if(!Z()(o)&&o.length>0){var a=o.pop();t=o.length>0?"".concat(n,"[").concat(o.join("["),"[").concat(a.slice(0,-1),"DraftId]"):"".concat(n,"[").concat(a.slice(0,-1),"DraftId]")}else t="".concat(t,"DraftId");this.fillIfVisible(e,t,this.draftId)}}},Zr={props:{errors:{default:function(){return new Lr.D1}}},inject:{index:{default:null},viaParent:{default:null}},data:function(){return{errorClass:"form-control-bordered-error"}},computed:{errorClasses:function(){return this.hasError?[this.errorClass]:[]},fieldAttribute:function(){return this.field.attribute},validationKey:function(){return this.nestedValidationKey||this.field.validationKey},hasError:function(){return this.errors.has(this.validationKey)},firstError:function(){if(this.hasError)return this.errors.first(this.validationKey)},nestedAttribute:function(){if(this.viaParent)return"".concat(this.viaParent,"[").concat(this.index,"][").concat(this.field.attribute,"]")},nestedValidationKey:function(){if(this.viaParent)return"".concat(this.viaParent,".").concat(this.index,".fields.").concat(this.field.attribute)}}};var en=r(587),tn=r.n(en);function rn(e){return rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rn(e)}function nn(){nn=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function i(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(e){i=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var o=t&&t.prototype instanceof d?t:d,a=Object.create(o.prototype),l=new y(n||[]);return a._invoke=function(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return z()}for(r.method=o,r.arg=a;;){var l=r.delegate;if(l){var i=B(l,r);if(i){if(i===s)continue;return i}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===s)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,l),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var s={};function d(){}function h(){}function p(){}var v={};i(v,o,(function(){return this}));var f=Object.getPrototypeOf,m=f&&f(f(M([])));m&&m!==t&&r.call(m,o)&&(v=m);var w=p.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){i(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,a,l,i){var c=u(e[o],e,a);if("throw"!==c.type){var s=c.arg,d=s.value;return d&&"object"==rn(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,i)}),(function(e){n("throw",e,l,i)})):t.resolve(d).then((function(e){s.value=e,l(s)}),(function(e){return n("throw",e,l,i)}))}i(c.arg)}var o;this._invoke=function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}}function B(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,B(e,t),"throw"===t.method))return s;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,s;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,s):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function y(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function M(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var i=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(i&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:M(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},e}function on(e,t,r,n,o,a,l){try{var i=e[a](l),c=i.value}catch(e){return void r(e)}i.done?t(c):Promise.resolve(c).then(n,o)}const an={props:{loadCards:{type:Boolean,default:!0}},data:function(){return{cards:[]}},created:function(){this.fetchCards()},watch:{cardsEndpoint:function(){this.fetchCards()}},methods:{fetchCards:function(){var e,t=this;return(e=nn().mark((function e(){var r,n;return nn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.loadCards){e.next=6;break}return e.next=3,Nova.request().get(t.cardsEndpoint,{params:t.extraCardParams});case 3:r=e.sent,n=r.data,t.cards=n;case 6:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function l(e){on(a,n,o,l,i,"next",e)}function i(e){on(a,n,o,l,i,"throw",e)}l(void 0)}))})()}},computed:{shouldShowCards:function(){return this.cards.length>0},hasDetailOnlyCards:function(){return tn()(this.cards,(function(e){return 1==e.onlyOnDetail})).length>0},extraCardParams:function(){return null}}};var ln=r(8459),cn=r.n(ln);const un={emits:["field-shown","field-hidden"],data:function(){return{visibleFieldsForPanel:{}}},created:function(){var e=this;cn()(this.panel.fields,(function(t){e.visibleFieldsForPanel[t.attribute]=t.visible}))},methods:{handleFieldShown:function(e){this.visibleFieldsForPanel[e]=!0,this.$emit("field-shown",e)},handleFieldHidden:function(e){this.visibleFieldsForPanel[e]=!1,this.$emit("field-hidden",e)}},computed:{visibleFieldsCount:function(){return Object.entries(tn()(this.visibleFieldsForPanel,(function(e){return!0===e}))).length}}};function sn(){return{__:function(e,t){return Dr(e,t)}}}},8336:(e,t,r)=>{function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=n(r(7665)),a=r(6878),l=n(r(308));function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&"back_forward"===window.performance.getEntriesByType("navigation")[0].type},r.handleBackForwardVisit=function(e){var t=this;window.history.state.version=e.version,this.setPage(window.history.state,{preserveScroll:!0,preserveState:!0}).then((function(){t.restoreScrollPositions(),k(e)}))},r.locationVisit=function(e,t){try{window.sessionStorage.setItem("inertiaLocationVisit",JSON.stringify({preserveScroll:t})),window.location.href=e.href,m(window.location).href===m(e).href&&window.location.reload()}catch(e){return!1}},r.isLocationVisit=function(){try{return null!==window.sessionStorage.getItem("inertiaLocationVisit")}catch(e){return!1}},r.handleLocationVisit=function(e){var t,r,n,o,a=this,l=JSON.parse(window.sessionStorage.getItem("inertiaLocationVisit")||"");window.sessionStorage.removeItem("inertiaLocationVisit"),e.url+=window.location.hash,e.rememberedState=null!=(t=null==(r=window.history.state)?void 0:r.rememberedState)?t:{},e.scrollRegions=null!=(n=null==(o=window.history.state)?void 0:o.scrollRegions)?n:[],this.setPage(e,{preserveScroll:l.preserveScroll,preserveState:!0}).then((function(){l.preserveScroll&&a.restoreScrollPositions(),k(e)}))},r.isLocationVisitResponse=function(e){return e&&409===e.status&&e.headers["x-inertia-location"]},r.isInertiaResponse=function(e){return null==e?void 0:e.headers["x-inertia"]},r.createVisitId=function(){return this.visitId={},this.visitId},r.cancelVisit=function(e,t){var r=t.cancelled,n=void 0!==r&&r,o=t.interrupted,a=void 0!==o&&o;!e||e.completed||e.cancelled||e.interrupted||(e.cancelToken.cancel(),e.onCancel(),e.completed=!1,e.cancelled=n,e.interrupted=a,g(e),e.onFinish(e))},r.finishVisit=function(e){e.cancelled||e.interrupted||(e.completed=!0,e.cancelled=!1,e.interrupted=!1,g(e),e.onFinish(e))},r.resolvePreserveOption=function(e,t){return"function"==typeof e?e(t):"errors"===e?Object.keys(t.props.errors||{}).length>0:e},r.visit=function(e,r){var n=this,a=void 0===r?{}:r,l=a.method,c=void 0===l?t.n$.GET:l,s=a.data,h=void 0===s?{}:s,p=a.replace,g=void 0!==p&&p,k=a.preserveScroll,B=void 0!==k&&k,E=a.preserveState,x=void 0!==E&&E,y=a.only,M=void 0===y?[]:y,z=a.headers,A=void 0===z?{}:z,V=a.errorBag,b=void 0===V?"":V,C=a.forceFormData,N=void 0!==C&&C,I=a.onCancelToken,j=void 0===I?function(){}:I,S=a.onBefore,H=void 0===S?function(){}:S,O=a.onStart,L=void 0===O?function(){}:O,_=a.onProgress,P=void 0===_?function(){}:_,R=a.onFinish,T=void 0===R?function(){}:R,D=a.onCancel,F=void 0===D?function(){}:D,U=a.onSuccess,q=void 0===U?function(){}:U,W=a.onError,$=void 0===W?function(){}:W,G=a.queryStringArrayFormat,J=void 0===G?"brackets":G,Y="string"==typeof e?v(e):e;if(!function e(t){return t instanceof File||t instanceof Blob||t instanceof FileList&&t.length>0||t instanceof FormData&&Array.from(t.values()).some((function(t){return e(t)}))||"object"==typeof t&&null!==t&&Object.values(t).some((function(t){return e(t)}))}(h)&&!N||h instanceof FormData||(h=d(h)),!(h instanceof FormData)){var X=f(c,Y,h,J),K=X[1];Y=v(X[0]),h=K}var Q={url:Y,method:c,data:h,replace:g,preserveScroll:B,preserveState:x,only:M,headers:A,errorBag:b,forceFormData:N,queryStringArrayFormat:J,cancelled:!1,completed:!1,interrupted:!1};if(!1!==H(Q)&&function(e){return w("before",{cancelable:!0,detail:{visit:e}})}(Q)){this.activeVisit&&this.cancelVisit(this.activeVisit,{interrupted:!0}),this.saveScrollPositions();var Z=this.createVisitId();this.activeVisit=i({},Q,{onCancelToken:j,onBefore:H,onStart:L,onProgress:P,onFinish:T,onCancel:F,onSuccess:q,onError:$,queryStringArrayFormat:J,cancelToken:o.CancelToken.source()}),j({cancel:function(){n.activeVisit&&n.cancelVisit(n.activeVisit,{cancelled:!0})}}),function(e){w("start",{detail:{visit:e}})}(Q),L(Q),o({method:c,url:m(Y).href,data:c===t.n$.GET?{}:h,params:c===t.n$.GET?h:{},cancelToken:this.activeVisit.cancelToken.token,headers:i({},A,{Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0},M.length?{"X-Inertia-Partial-Component":this.page.component,"X-Inertia-Partial-Data":M.join(",")}:{},b&&b.length?{"X-Inertia-Error-Bag":b}:{},this.page.version?{"X-Inertia-Version":this.page.version}:{}),onUploadProgress:function(e){h instanceof FormData&&(e.percentage=Math.round(e.loaded/e.total*100),function(e){w("progress",{detail:{progress:e}})}(e),P(e))}}).then((function(e){var t;if(!n.isInertiaResponse(e))return Promise.reject({response:e});var r=e.data;M.length&&r.component===n.page.component&&(r.props=i({},n.page.props,r.props)),B=n.resolvePreserveOption(B,r),(x=n.resolvePreserveOption(x,r))&&null!=(t=window.history.state)&&t.rememberedState&&r.component===n.page.component&&(r.rememberedState=window.history.state.rememberedState);var o=Y,a=v(r.url);return o.hash&&!a.hash&&m(o).href===a.href&&(a.hash=o.hash,r.url=a.href),n.setPage(r,{visitId:Z,replace:g,preserveScroll:B,preserveState:x})})).then((function(){var e=n.page.props.errors||{};if(Object.keys(e).length>0){var t=b?e[b]?e[b]:{}:e;return function(e){w("error",{detail:{errors:e}})}(t),$(t)}return w("success",{detail:{page:n.page}}),q(n.page)})).catch((function(e){if(n.isInertiaResponse(e.response))return n.setPage(e.response.data,{visitId:Z});if(n.isLocationVisitResponse(e.response)){var t=v(e.response.headers["x-inertia-location"]),r=Y;r.hash&&!t.hash&&m(r).href===t.href&&(t.hash=r.hash),n.locationVisit(t,!0===B)}else{if(!e.response)return Promise.reject(e);w("invalid",{cancelable:!0,detail:{response:e.response}})&&u.show(e.response.data)}})).then((function(){n.activeVisit&&n.finishVisit(n.activeVisit)})).catch((function(e){if(!o.isCancel(e)){var t=w("exception",{cancelable:!0,detail:{exception:e}});if(n.activeVisit&&n.finishVisit(n.activeVisit),t)return Promise.reject(e)}}))}},r.setPage=function(e,t){var r=this,n=void 0===t?{}:t,o=n.visitId,a=void 0===o?this.createVisitId():o,l=n.replace,i=void 0!==l&&l,c=n.preserveScroll,u=void 0!==c&&c,s=n.preserveState,d=void 0!==s&&s;return Promise.resolve(this.resolveComponent(e.component)).then((function(t){a===r.visitId&&(e.scrollRegions=e.scrollRegions||[],e.rememberedState=e.rememberedState||{},(i=i||v(e.url).href===window.location.href)?r.replaceState(e):r.pushState(e),r.swapComponent({component:t,page:e,preserveState:d}).then((function(){u||r.resetScrollPositions(),i||k(e)})))}))},r.pushState=function(e){this.page=e,window.history.pushState(e,"",e.url)},r.replaceState=function(e){this.page=e,window.history.replaceState(e,"",e.url)},r.handlePopstateEvent=function(e){var t=this;if(null!==e.state){var r=e.state,n=this.createVisitId();Promise.resolve(this.resolveComponent(r.component)).then((function(e){n===t.visitId&&(t.page=r,t.swapComponent({component:e,page:r,preserveState:!1}).then((function(){t.restoreScrollPositions(),k(r)})))}))}else{var o=v(this.page.url);o.hash=window.location.hash,this.replaceState(i({},this.page,{url:o.href})),this.resetScrollPositions()}},r.get=function(e,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),this.visit(e,i({},n,{method:t.n$.GET,data:r}))},r.reload=function(e){return void 0===e&&(e={}),this.visit(window.location.href,i({},e,{preserveScroll:!0,preserveState:!0}))},r.replace=function(e,t){var r;return void 0===t&&(t={}),console.warn("Inertia.replace() has been deprecated and will be removed in a future release. Please use Inertia."+(null!=(r=t.method)?r:"get")+"() instead."),this.visit(e,i({preserveState:!0},t,{replace:!0}))},r.post=function(e,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),this.visit(e,i({preserveState:!0},n,{method:t.n$.POST,data:r}))},r.put=function(e,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),this.visit(e,i({preserveState:!0},n,{method:t.n$.PUT,data:r}))},r.patch=function(e,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),this.visit(e,i({preserveState:!0},n,{method:t.n$.PATCH,data:r}))},r.delete=function(e,r){return void 0===r&&(r={}),this.visit(e,i({preserveState:!0},r,{method:t.n$.DELETE}))},r.remember=function(e,t){var r,n;void 0===t&&(t="default"),B||this.replaceState(i({},this.page,{rememberedState:i({},null==(r=this.page)?void 0:r.rememberedState,(n={},n[t]=e,n))}))},r.restore=function(e){var t,r;if(void 0===e&&(e="default"),!B)return null==(t=window.history.state)||null==(r=t.rememberedState)?void 0:r[e]},r.on=function(e,t){var r=function(e){var r=t(e);e.cancelable&&!e.defaultPrevented&&!1===r&&e.preventDefault()};return document.addEventListener("inertia:"+e,r),function(){return document.removeEventListener("inertia:"+e,r)}},e}(),x={buildDOMElement:function(e){var t=document.createElement("template");t.innerHTML=e;var r=t.content.firstChild;if(!e.startsWith("