diff --git a/dist/tool.js b/dist/tool.js index 7b62965..f7259d7 100644 --- a/dist/tool.js +++ b/dist/tool.js @@ -1,3 +1,3 @@ /*! For license information please see tool.js.LICENSE.txt */ -(()=>{var e={1977:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CopiesToClipboard:()=>s,DependentFormField:()=>vn,Errors:()=>fn.I,FieldValue:()=>zn,FormEvents:()=>ln,FormField:()=>sn,HandlesFieldAttachments:()=>In,HandlesFormRequest:()=>mn,HandlesPanelVisibility:()=>Dn,HandlesUploads:()=>wn,HandlesValidationErrors:()=>jn,HasCards:()=>Pn,Localization:()=>En,MetricBehavior:()=>yn,PreventsFormAbandonment:()=>ae,PreventsModalAbandonment:()=>ue,mapProps:()=>i,useCopyValueToClipboard:()=>u,useLocalization:()=>Fn});var n={};r.r(n),r.d(n,{hasBrowserEnv:()=>Et,hasStandardBrowserEnv:()=>yt,hasStandardBrowserWebWorkerEnv:()=>Mt,origin:()=>zt});var o=r(3787),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(4061);function h(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:void 0!==r.g?r.g:{}}const p="function"==typeof Proxy,v="devtools-plugin:setup";let f,m;function w(){return void 0!==f||("undefined"!=typeof window&&window.performance?(f=!0,m=window.performance):void 0!==r.g&&(null===(e=r.g.perf_hooks)||void 0===e?void 0:e.performance)?(f=!0,m=r.g.perf_hooks.performance):f=!1),f?m.now():Date.now();var e}class g{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:()=>w()},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 k(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 g(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(v,e,t)}var B="store";function E(e,t){Object.keys(e).forEach((function(r){return t(e[r],r)}))}function y(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 M(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;A(e,r,[],e._modules.root,!0),z(e,r,t)}function z(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(){E(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 A(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=b(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=C(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=C(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 V(e,t)}},state:{get:function(){return b(e.state,r)}}}),o}(e,l,r);n.forEachMutation((function(t,r){!function(e,t,r,n){var o=e._mutations[t]||(e._mutations[t]=[]);o.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){var o=e._actions[t]||(e._actions[t]=[]);o.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){A(e,t,r.concat(a),n,o)}))}function V(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 b(e,t){return t.reduce((function(e,t){return e[t]}),e)}function C(e,t,r){return y(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}var N="vuex:mutations",I="vuex:actions",j="vuex",S=0;function H(e,t){k({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:N,label:"Vuex Mutations",color:O}),r.addTimelineLayer({id:I,label:"Vuex Actions",color:O}),r.addInspector({id:j,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree((function(r){if(r.app===e&&r.inspectorId===j)if(r.filter){var n=[];R(n,t._modules.root,r.filter,""),r.rootNodes=n}else r.rootNodes=[P(t._modules.root,"")]})),r.on.getInspectorState((function(r){if(r.app===e&&r.inspectorId===j){var n=r.nodeId;V(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]=T((function(){return e[r]}))}else t[r]=T((function(){return e[r]}))})),t}(t);o.getters=Object.keys(a).map((function(e){return{key:e.endsWith("/")?_(e):e,editable:!1,value:T((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===j){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(j),r.sendInspectorState(j),r.addTimelineEvent({layerId:N,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=S++,e._time=Date.now(),n.state=t,r.addTimelineEvent({layerId:I,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:I,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:n}})}})}))}var O=8702998,L={label:"namespaced",textColor:16777215,backgroundColor:6710886};function _(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function P(e,t){return{id:t||"root",label:_(t),tags:e.namespaced?[L]:[],children:Object.keys(e._children).map((function(r){return P(e._children[r],t+r+"/")}))}}function R(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?[L]:[]}),Object.keys(t._children).forEach((function(o){R(e,t._children[o],r,n+o+"/")}))}function T(e){try{return e()}catch(e){return e}}var D=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)||{}},F={namespaced:{configurable:!0}};F.namespaced.get=function(){return!!this._rawModule.namespaced},D.prototype.addChild=function(e,t){this._children[e]=t},D.prototype.removeChild=function(e){delete this._children[e]},D.prototype.getChild=function(e){return this._children[e]},D.prototype.hasChild=function(e){return e in this._children},D.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)},D.prototype.forEachChild=function(e){E(this._children,e)},D.prototype.forEachGetter=function(e){this._rawModule.getters&&E(this._rawModule.getters,e)},D.prototype.forEachAction=function(e){this._rawModule.actions&&E(this._rawModule.actions,e)},D.prototype.forEachMutation=function(e){this._rawModule.mutations&&E(this._rawModule.mutations,e)},Object.defineProperties(D.prototype,F);var U=function(e){this.register([],e,!1)};function q(e,t,r){if(t.update(r),r.modules)for(var n in r.modules){if(!t.getChild(n))return void 0;q(e.concat(n),t.getChild(n),r.modules[n])}}U.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},U.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,r){return e+((t=t.getChild(r)).namespaced?r+"/":"")}),"")},U.prototype.update=function(e){q([],this.root,e)},U.prototype.register=function(e,t,r){var n=this;void 0===r&&(r=!0);var o=new D(t,r);0===e.length?this.root=o:this.get(e.slice(0,-1)).addChild(e[e.length-1],o);t.modules&&E(t.modules,(function(t,o){n.register(e.concat(o),t,r)}))},U.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)},U.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return!!t&&t.hasChild(r)};var W=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 U(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;A(this,c,[],this._modules.root),z(this,c),r.forEach((function(e){return e(t)}))},G={state:{configurable:!0}};W.prototype.install=function(e,t){e.provide(t||B,this),e.config.globalProperties.$store=this,void 0!==this._devtools&&this._devtools&&H(e,this)},G.state.get=function(){return this._state.data},G.state.set=function(e){0},W.prototype.commit=function(e,t,r){var n=this,o=C(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)})))},W.prototype.dispatch=function(e,t){var r=this,n=C(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)}))}))}},W.prototype.subscribe=function(e,t){return x(e,this._subscribers,t)},W.prototype.subscribeAction=function(e,t){return x("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},W.prototype.watch=function(e,t,r){var n=this;return(0,d.watch)((function(){return e(n.state,n.getters)}),t,Object.assign({},r))},W.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},W.prototype.registerModule=function(e,t,r){void 0===r&&(r={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),A(this,this.state,e,this._modules.get(e),r.preserveState),z(this,this.state)},W.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){delete b(t.state,e.slice(0,-1))[e[e.length-1]]})),M(this)},W.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},W.prototype.hotUpdate=function(e){this._modules.update(e),M(this,!0)},W.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(W.prototype,G);Y((function(e,t){var r={};return K(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 K(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})),J=Y((function(e,t){var r={};return K(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 K(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 K(e){return function(e){return Array.isArray(e)||y(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 Q=r(1842),Z=r(7031),ee=r.n(Z);function te(e){return Boolean(!ee()(e)&&""!==e)}function re(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 ne(e){for(var t=1;t1?window.history.back():!this.navigateBackUsingHistory&&te(e)?Nova.visit(e,{replace:!0}):Nova.visit("/")}}),computed:ne({},J(["canLeaveForm","canLeaveFormToPreviousPage"]))};function le(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 ie(e){for(var t=1;t{const t=he.call(e);return fe[t]||(fe[t]=t.slice(8,-1).toLowerCase())});var fe;const me=e=>(e=e.toLowerCase(),t=>ve(t)===e),we=e=>t=>typeof t===e,{isArray:ge}=Array,ke=we("undefined");const Be=me("ArrayBuffer");const Ee=we("string"),ye=we("function"),xe=we("number"),Me=e=>null!==e&&"object"==typeof e,ze=e=>{if("object"!==ve(e))return!1;const t=pe(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Ae=me("Date"),Ve=me("File"),be=me("Blob"),Ce=me("FileList"),Ne=me("URLSearchParams"),[Ie,je,Se,He]=["ReadableStream","Request","Response","Headers"].map(me);function Oe(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),ge(e))for(n=0,o=e.length;n0;)if(n=r[o],t===n.toLowerCase())return n;return null}const _e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Pe=e=>!ke(e)&&e!==_e;const Re=(Te="undefined"!=typeof Uint8Array&&pe(Uint8Array),e=>Te&&e instanceof Te);var Te;const De=me("HTMLFormElement"),Fe=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ue=me("RegExp"),qe=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Oe(r,((r,o)=>{let a;!1!==(a=t(r,o,e))&&(n[o]=a||r)})),Object.defineProperties(e,n)},We="abcdefghijklmnopqrstuvwxyz",Ge="0123456789",$e={DIGIT:Ge,ALPHA:We,ALPHA_DIGIT:We+We.toUpperCase()+Ge};const Je=me("AsyncFunction"),Ke=(Ye="function"==typeof setImmediate,Xe=ye(_e.postMessage),Ye?setImmediate:Xe?(Qe=`axios@${Math.random()}`,Ze=[],_e.addEventListener("message",(({source:e,data:t})=>{e===_e&&t===Qe&&Ze.length&&Ze.shift()()}),!1),e=>{Ze.push(e),_e.postMessage(Qe,"*")}):e=>setTimeout(e));var Ye,Xe,Qe,Ze;const et="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_e):void 0!==de&&de.nextTick||Ke,tt={isArray:ge,isArrayBuffer:Be,isBuffer:function(e){return null!==e&&!ke(e)&&null!==e.constructor&&!ke(e.constructor)&&ye(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ye(e.append)&&("formdata"===(t=ve(e))||"object"===t&&ye(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Be(e.buffer),t},isString:Ee,isNumber:xe,isBoolean:e=>!0===e||!1===e,isObject:Me,isPlainObject:ze,isReadableStream:Ie,isRequest:je,isResponse:Se,isHeaders:He,isUndefined:ke,isDate:Ae,isFile:Ve,isBlob:be,isRegExp:Ue,isFunction:ye,isStream:e=>Me(e)&&ye(e.pipe),isURLSearchParams:Ne,isTypedArray:Re,isFileList:Ce,forEach:Oe,merge:function e(){const{caseless:t}=Pe(this)&&this||{},r={},n=(n,o)=>{const a=t&&Le(r,o)||o;ze(r[a])&&ze(n)?r[a]=e(r[a],n):ze(n)?r[a]=e({},n):ge(n)?r[a]=n.slice():r[a]=n};for(let e=0,t=arguments.length;e(Oe(t,((t,n)=>{r&&ye(t)?e[n]=se(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&&pe(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:ve,kindOfTest:me,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(ge(e))return e;let t=e.length;if(!xe(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:De,hasOwnProperty:Fe,hasOwnProp:Fe,reduceDescriptors:qe,freezeMethods:e=>{qe(e,((t,r)=>{if(ye(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];ye(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 ge(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)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Le,global:_e,isContextDefined:Pe,ALPHABET:$e,generateString:(e=16,t=$e.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&ye(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(Me(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=ge(e)?[]:{};return Oe(e,((e,t)=>{const a=r(e,n+1);!ke(a)&&(o[t]=a)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:Je,isThenable:e=>e&&(Me(e)||ye(e))&&ye(e.then)&&ye(e.catch),setImmediate:Ke,asap:et};function rt(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)}tt.inherits(rt,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:tt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const nt=rt.prototype,ot={};["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=>{ot[e]={value:e}})),Object.defineProperties(rt,ot),Object.defineProperty(nt,"isAxiosError",{value:!0}),rt.from=(e,t,r,n,o,a)=>{const l=Object.create(nt);return tt.toFlatObject(e,l,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),rt.call(l,e.message,t,r,n,o),l.cause=e,l.name=e.name,a&&Object.assign(l,a),l};const at=rt;var lt=r(6355).hp;function it(e){return tt.isPlainObject(e)||tt.isArray(e)}function ct(e){return tt.endsWith(e,"[]")?e.slice(0,-2):e}function ut(e,t,r){return e?e.concat(t).map((function(e,t){return e=ct(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const st=tt.toFlatObject(tt,{},null,(function(e){return/^is[A-Z]/.test(e)}));const dt=function(e,t,r){if(!tt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=tt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!tt.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,a=r.dots,l=r.indexes,i=(r.Blob||"undefined"!=typeof Blob&&Blob)&&tt.isSpecCompliantForm(t);if(!tt.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(tt.isDate(e))return e.toISOString();if(!i&&tt.isBlob(e))throw new at("Blob is not supported. Use a Buffer instead.");return tt.isArrayBuffer(e)||tt.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):lt.from(e):e}function u(e,r,o){let i=e;if(e&&!o&&"object"==typeof e)if(tt.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(tt.isArray(e)&&function(e){return tt.isArray(e)&&!e.some(it)}(e)||(tt.isFileList(e)||tt.endsWith(r,"[]"))&&(i=tt.toArray(e)))return r=ct(r),i.forEach((function(e,n){!tt.isUndefined(e)&&null!==e&&t.append(!0===l?ut([r],n,a):null===l?r:r+"[]",c(e))})),!1;return!!it(e)||(t.append(ut(o,r,a),c(e)),!1)}const s=[],d=Object.assign(st,{defaultVisitor:u,convertValue:c,isVisitable:it});if(!tt.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!tt.isUndefined(r)){if(-1!==s.indexOf(r))throw Error("Circular reference detected in "+n.join("."));s.push(r),tt.forEach(r,(function(r,a){!0===(!(tt.isUndefined(r)||null===r)&&o.call(t,r,tt.isString(a)?a.trim():a,n,d))&&e(r,n?n.concat(a):[a])})),s.pop()}}(e),t};function ht(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function pt(e,t){this._pairs=[],e&&dt(e,this,t)}const vt=pt.prototype;vt.append=function(e,t){this._pairs.push([e,t])},vt.toString=function(e){const t=e?function(t){return e.call(this,t,ht)}:ht;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const ft=pt;function mt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wt(e,t,r){if(!t)return e;const n=r&&r.encode||mt,o=r&&r.serialize;let a;if(a=o?o(t,r):tt.isURLSearchParams(t)?t.toString():new ft(t,r).toString(n),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const gt=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){tt.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},kt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ft,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Et="undefined"!=typeof window&&"undefined"!=typeof document,yt=(xt="undefined"!=typeof navigator&&navigator.product,Et&&["ReactNative","NativeScript","NS"].indexOf(xt)<0);var xt;const Mt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,zt=Et&&window.location.href||"http://localhost",At={...n,...Bt};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&&tt.isArray(n)?n.length:a,i)return tt.hasOwnProp(n,a)?n[a]=[n[a],r]:n[a]=r,!l;n[a]&&tt.isObject(n[a])||(n[a]=[]);return t(e,r,n[a],o)&&tt.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 tt.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null};const bt={transitional:kt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=tt.isObject(e);o&&tt.isHTMLForm(e)&&(e=new FormData(e));if(tt.isFormData(e))return n?JSON.stringify(Vt(e)):e;if(tt.isArrayBuffer(e)||tt.isBuffer(e)||tt.isStream(e)||tt.isFile(e)||tt.isBlob(e)||tt.isReadableStream(e))return e;if(tt.isArrayBufferView(e))return e.buffer;if(tt.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 dt(e,new At.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return At.isNode&&tt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=tt.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return dt(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(tt.isString(e))try{return(t||JSON.parse)(e),tt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||bt.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(tt.isResponse(e)||tt.isReadableStream(e))return e;if(e&&tt.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 at.from(e,at.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:At.classes.FormData,Blob:At.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};tt.forEach(["delete","get","head","post","put","patch"],(e=>{bt.headers[e]={}}));const Ct=bt,Nt=tt.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"]),It=Symbol("internals");function jt(e){return e&&String(e).trim().toLowerCase()}function St(e){return!1===e||null==e?e:tt.isArray(e)?e.map(St):String(e)}function Ht(e,t,r,n,o){return tt.isFunction(n)?n.call(this,t,r):(o&&(t=r),tt.isString(t)?tt.isString(n)?-1!==t.indexOf(n):tt.isRegExp(n)?n.test(t):void 0:void 0)}class Ot{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=jt(t);if(!o)throw new Error("header name must be a non-empty string");const a=tt.findKey(n,o);(!a||void 0===n[a]||!0===r||void 0===r&&!1!==n[a])&&(n[a||t]=St(e))}const a=(e,t)=>tt.forEach(e,((e,r)=>o(e,r,t)));if(tt.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(tt.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]&&Nt[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(tt.isHeaders(e))for(const[t,n]of e.entries())o(n,t,r);else null!=e&&o(t,e,r);return this}get(e,t){if(e=jt(e)){const r=tt.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(tt.isFunction(t))return t.call(this,e,r);if(tt.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=jt(e)){const r=tt.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ht(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=jt(e)){const o=tt.findKey(r,e);!o||t&&!Ht(0,r[o],o,t)||(delete r[o],n=!0)}}return tt.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&&!Ht(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return tt.forEach(this,((n,o)=>{const a=tt.findKey(r,o);if(a)return t[a]=St(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]=St(n),r[l]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return tt.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&tt.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[It]=this[It]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=jt(e);t[n]||(!function(e,t){const r=tt.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 tt.isArray(e)?e.forEach(n):n(e),this}}Ot.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),tt.reduceDescriptors(Ot.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),tt.freezeMethods(Ot);const Lt=Ot;function _t(e,t){const r=this||Ct,n=t||r,o=Lt.from(n.headers);let a=n.data;return tt.forEach(e,(function(e){a=e.call(r,a,o.normalize(),t?t.status:void 0)})),o.normalize(),a}function Pt(e){return!(!e||!e.__CANCEL__)}function Rt(e,t,r){at.call(this,null==e?"canceled":e,at.ERR_CANCELED,t,r),this.name="CanceledError"}tt.inherits(Rt,at,{__CANCEL__:!0});const Tt=Rt;function Dt(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new at("Request failed with status code "+r.status,[at.ERR_BAD_REQUEST,at.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}const Ft=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{o=a,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),i=t-o;i>=a?l(e,t):(r=e,n||(n=setTimeout((()=>{n=null,l(r)}),a-i)))},()=>r&&l(r)]},qt=(e,t,r=3)=>{let n=0;const o=Ft(50,250);return Ut((r=>{const a=r.loaded,l=r.lengthComputable?r.total:void 0,i=a-n,c=o(i);n=a;e({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:r,lengthComputable:null!=l,[t?"download":"upload"]:!0})}),r)},Wt=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Gt=e=>(...t)=>tt.asap((()=>e(...t))),$t=At.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=tt.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},Jt=At.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const l=[e+"="+encodeURIComponent(t)];tt.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),tt.isString(n)&&l.push("path="+n),tt.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 Kt(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 Yt=e=>e instanceof Lt?{...e}:e;function Xt(e,t){t=t||{};const r={};function n(e,t,r){return tt.isPlainObject(e)&&tt.isPlainObject(t)?tt.merge.call({caseless:r},e,t):tt.isPlainObject(t)?tt.merge({},t):tt.isArray(t)?t.slice():t}function o(e,t,r){return tt.isUndefined(t)?tt.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function a(e,t){if(!tt.isUndefined(t))return n(void 0,t)}function l(e,t){return tt.isUndefined(t)?tt.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(Yt(e),Yt(t),!0)};return tt.forEach(Object.keys(Object.assign({},e,t)),(function(n){const a=c[n]||o,l=a(e[n],t[n],n);tt.isUndefined(l)&&a!==i||(r[n]=l)})),r}const Qt=e=>{const t=Xt({},e);let r,{data:n,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:l,headers:i,auth:c}=t;if(t.headers=i=Lt.from(i),t.url=wt(Kt(t.baseURL,t.url),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),tt.isFormData(n))if(At.hasStandardBrowserEnv||At.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(!1!==(r=i.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];i.setContentType([e||"multipart/form-data",...t].join("; "))}if(At.hasStandardBrowserEnv&&(o&&tt.isFunction(o)&&(o=o(t)),o||!1!==o&&$t(t.url))){const e=a&&l&&Jt.read(l);e&&i.set(a,e)}return t},Zt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=Qt(e);let o=n.data;const a=Lt.from(n.headers).normalize();let l,i,c,u,s,{responseType:d,onUploadProgress:h,onDownloadProgress:p}=n;function v(){u&&u(),s&&s(),n.cancelToken&&n.cancelToken.unsubscribe(l),n.signal&&n.signal.removeEventListener("abort",l)}let f=new XMLHttpRequest;function m(){if(!f)return;const n=Lt.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());Dt((function(e){t(e),v()}),(function(e){r(e),v()}),{data:d&&"text"!==d&&"json"!==d?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:e,request:f}),f=null}f.open(n.method.toUpperCase(),n.url,!0),f.timeout=n.timeout,"onloadend"in f?f.onloadend=m:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(m)},f.onabort=function(){f&&(r(new at("Request aborted",at.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new at("Network Error",at.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||kt;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new at(t,o.clarifyTimeoutError?at.ETIMEDOUT:at.ECONNABORTED,e,f)),f=null},void 0===o&&a.setContentType(null),"setRequestHeader"in f&&tt.forEach(a.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),tt.isUndefined(n.withCredentials)||(f.withCredentials=!!n.withCredentials),d&&"json"!==d&&(f.responseType=n.responseType),p&&([c,s]=qt(p,!0),f.addEventListener("progress",c)),h&&f.upload&&([i,u]=qt(h),f.upload.addEventListener("progress",i),f.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(l=t=>{f&&(r(!t||t.type?new Tt(null,e,f):t),f.abort(),f=null)},n.cancelToken&&n.cancelToken.subscribe(l),n.signal&&(n.signal.aborted?l():n.signal.addEventListener("abort",l)));const w=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);w&&-1===At.protocols.indexOf(w)?r(new at("Unsupported protocol "+w+":",at.ERR_BAD_REQUEST,e)):f.send(o||null)}))},er=(e,t)=>{let r,n=new AbortController;const o=function(e){if(!r){r=!0,l();const t=e instanceof Error?e:this.reason;n.abort(t instanceof at?t:new Tt(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{o(new at(`timeout ${t} of ms exceeded`,at.ETIMEDOUT))}),t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:i}=n;return i.unsubscribe=l,[i,()=>{a&&clearTimeout(a),a=null}]},tr=function*(e,t){let r=e.byteLength;if(!t||r{const a=async function*(e,t,r){for await(const n of e)yield*tr(ArrayBuffer.isView(n)?n:await r(String(n)),t)}(e,t,o);let l,i=0,c=e=>{l||(l=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await a.next();if(t)return c(),void e.close();let o=n.byteLength;if(r){let e=i+=o;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw c(e),e}},cancel:e=>(c(e),a.return())},{highWaterMark:2})},nr="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,or=nr&&"function"==typeof ReadableStream,ar=nr&&("function"==typeof TextEncoder?(lr=new TextEncoder,e=>lr.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var lr;const ir=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},cr=or&&ir((()=>{let e=!1;const t=new Request(At.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),ur=or&&ir((()=>tt.isReadableStream(new Response("").body))),sr={stream:ur&&(e=>e.body)};var dr;nr&&(dr=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!sr[e]&&(sr[e]=tt.isFunction(dr[e])?t=>t[e]():(t,r)=>{throw new at(`Response type '${e}' is not supported`,at.ERR_NOT_SUPPORT,r)})})));const hr=async(e,t)=>{const r=tt.toFiniteNumber(e.getContentLength());return null==r?(async e=>null==e?0:tt.isBlob(e)?e.size:tt.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:tt.isArrayBufferView(e)||tt.isArrayBuffer(e)?e.byteLength:(tt.isURLSearchParams(e)&&(e+=""),tt.isString(e)?(await ar(e)).byteLength:void 0))(t):r},pr={http:null,xhr:Zt,fetch:nr&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:a,timeout:l,onDownloadProgress:i,onUploadProgress:c,responseType:u,headers:s,withCredentials:d="same-origin",fetchOptions:h}=Qt(e);u=u?(u+"").toLowerCase():"text";let p,v,[f,m]=o||a||l?er([o,a],l):[];const w=()=>{!p&&setTimeout((()=>{f&&f.unsubscribe()})),p=!0};let g;try{if(c&&cr&&"get"!==r&&"head"!==r&&0!==(g=await hr(s,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(tt.isFormData(n)&&(e=r.headers.get("content-type"))&&s.setContentType(e),r.body){const[e,t]=Wt(g,qt(Gt(c)));n=rr(r.body,65536,e,t,ar)}}tt.isString(d)||(d=d?"include":"omit"),v=new Request(t,{...h,signal:f,method:r.toUpperCase(),headers:s.normalize().toJSON(),body:n,duplex:"half",credentials:d});let o=await fetch(v);const a=ur&&("stream"===u||"response"===u);if(ur&&(i||a)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=tt.toFiniteNumber(o.headers.get("content-length")),[r,n]=i&&Wt(t,qt(Gt(i),!0))||[];o=new Response(rr(o.body,65536,r,(()=>{n&&n(),a&&w()}),ar),e)}u=u||"text";let l=await sr[tt.findKey(sr,u)||"text"](o,e);return!a&&w(),m&&m(),await new Promise(((t,r)=>{Dt(t,r,{data:l,headers:Lt.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:v})}))}catch(t){if(w(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new at("Network Error",at.ERR_NETWORK,e,v),{cause:t.cause||t});throw at.from(t,t&&t.code,e,v)}})};tt.forEach(pr,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const vr=e=>`- ${e}`,fr=e=>tt.isFunction(e)||null===e||!1===e,mr=e=>{e=tt.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(vr).join("\n"):" "+vr(e[0]):"as no adapter specified";throw new at("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n};function wr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Tt(null,e)}function gr(e){wr(e),e.headers=Lt.from(e.headers),e.data=_t.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return mr(e.adapter||Ct.adapter)(e).then((function(t){return wr(e),t.data=_t.call(e,e.transformResponse,t),t.headers=Lt.from(t.headers),t}),(function(t){return Pt(t)||(wr(e),t&&t.response&&(t.response.data=_t.call(e,e.transformResponse,t.response),t.response.headers=Lt.from(t.response.headers))),Promise.reject(t)}))}const kr="1.7.4",Br={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Br[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const Er={};Br.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,a)=>{if(!1===e)throw new at(n(o," has been removed"+(t?" in "+t:"")),at.ERR_DEPRECATED);return t&&!Er[o]&&(Er[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 yr={assertOptions:function(e,t,r){if("object"!=typeof e)throw new at("options must be an object",at.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 at("option "+a+" must be "+r,at.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new at("Unknown option "+a,at.ERR_BAD_OPTION)}},validators:Br},xr=yr.validators;class Mr{constructor(e){this.defaults=e,this.interceptors={request:new gt,response:new gt}}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/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Xt(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&yr.assertOptions(r,{silentJSONParsing:xr.transitional(xr.boolean),forcedJSONParsing:xr.transitional(xr.boolean),clarifyTimeoutError:xr.transitional(xr.boolean)},!1),null!=n&&(tt.isFunction(n)?t.paramsSerializer={serialize:n}:yr.assertOptions(n,{encode:xr.function,serialize:xr.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&tt.merge(o.common,o[t.method]);o&&tt.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Lt.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=[gr.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 Tt(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 Ar((function(t){e=t})),cancel:e}}}const Vr=Ar;const br={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(br).forEach((([e,t])=>{br[t]=e}));const Cr=br;const Nr=function e(t){const r=new zr(t),n=se(zr.prototype.request,r);return tt.extend(n,zr.prototype,r,{allOwnKeys:!0}),tt.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Xt(t,r))},n}(Ct);Nr.Axios=zr,Nr.CanceledError=Tt,Nr.CancelToken=Vr,Nr.isCancel=Pt,Nr.VERSION=kr,Nr.toFormData=dt,Nr.AxiosError=at,Nr.Cancel=Nr.CanceledError,Nr.all=function(e){return Promise.all(e)},Nr.spread=function(e){return function(t){return e.apply(null,t)}},Nr.isAxiosError=function(e){return tt.isObject(e)&&!0===e.isAxiosError},Nr.mergeConfig=Xt,Nr.AxiosHeaders=Lt,Nr.formToJSON=e=>Vt(tt.isHTMLForm(e)?new FormData(e):e),Nr.getAdapter=mr,Nr.HttpStatusCode=Cr,Nr.default=Nr;const Ir=Nr,{Axios:jr,AxiosError:Sr,CanceledError:Hr,isCancel:Or,CancelToken:Lr,VERSION:_r,all:Pr,Cancel:Rr,isAxiosError:Tr,spread:Dr,toFormData:Fr,AxiosHeaders:Ur,HttpStatusCode:qr,formToJSON:Wr,getAdapter:Gr,mergeConfig:$r}=Ir;var Jr=r(5321),Kr=r.n(Jr),Yr=r(3120),Xr=r.n(Yr),Qr=r(6040),Zr=r.n(Qr),en=r(1636),tn=r.n(en),rn=r(2221),nn=r.n(rn),on=r(1994),an=r.n(on);const ln={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!ee()(this.formUniqueId)&&""!==this.formUniqueId},fieldAttributeValueEventName:function(){return this.getFieldAttributeValueEventName(this.fieldAttribute)},fieldAttributeChangeEventName:function(){return this.getFieldAttributeChangeEventName(this.fieldAttribute)}}};function cn(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 un(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const sn={extends:ln,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 En={methods:{__:function(e,t){return Bn(e,t)}}},yn={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 xn=r(7829),Mn=r.n(xn);const zn={props:["field"],methods:{isEqualsToValue:function(e){var t,r;return Mn()(this.field.value)&&te(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 te(this.field.value)},usesCustomizedDisplay:function(){return this.field.usesCustomizedDisplay&&te(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 An(e){return An="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},An(e)}function Vn(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 bn(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 bn(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 bn(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),y(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;y(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 Nn(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 In={emits:["file-upload-started","file-upload-finished"],props:i(["resourceName"]),created:function(){var e,t=this;return(e=Cn().mark((function e(){var r,n;return Cn().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){Nn(a,n,o,l,i,"next",e)}function i(e){Nn(a,n,o,l,i,"throw",e)}l(void 0)}))})()},data:function(){return{draftId:null,files:[],filesToRemove:[]}},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),ee()(n)&&(n=function(){}),ee()(a)&&(a=function(){}),ee()(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,n=t.path,a=t.url;r.files.push({path:n,url:a});var l=o(n,a);return r.$emit("file-upload-finished"),l})).catch((function(e){if(a(e),422==e.response.status){var t=new fn.I(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."))}))},flagFileForRemoval:function(e){var t=this.files.findIndex((function(t){return t.url===e}));-1===t?this.filesToRemove.push({url:e}):this.filesToRemove.push(this.files[t])},unflagFileForRemoval:function(e){var t=this.filesToRemove.findIndex((function(t){return t.url===e}));-1!==t&&this.filesToRemove.splice(t,1)},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){}))},clearFilesMarkedForRemoval:function(){var e=this;this.field.withFiles&&this.filesToRemove.forEach((function(t){console.log("deleting",t),Nova.request().delete("/nova-api/".concat(e.resourceName,"/field-attachment/").concat(e.fieldAttribute),{params:{attachment:t.path,attachmentUrl:t.url,draftId:e.draftId}}).then((function(e){})).catch((function(e){}))}))},fillAttachmentDraftId:function(e){var t=this.fieldAttribute,r=Vn(t.split("[")),n=r[0],o=r.slice(1);if(!ee()(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)}}},jn={props:{errors:{default:function(){return new fn.I}}},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 Sn=r(8584),Hn=r.n(Sn);function On(e){return On="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},On(e)}function Ln(){Ln=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 x(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"==On(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 y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(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),y(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;y(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 _n(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 Pn={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=Ln().mark((function e(){var r,n;return Ln().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){_n(a,n,o,l,i,"next",e)}function i(e){_n(a,n,o,l,i,"throw",e)}l(void 0)}))})()}},computed:{shouldShowCards:function(){return this.cards.length>0},hasDetailOnlyCards:function(){return Hn()(this.cards,(function(e){return 1==e.onlyOnDetail})).length>0},extraCardParams:function(){return null}}};var Rn=r(2763),Tn=r.n(Rn);const Dn={emits:["field-shown","field-hidden"],data:function(){return{visibleFieldsForPanel:{}}},created:function(){var e=this;Tn()(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(Hn()(this.visibleFieldsForPanel,(function(e){return!0===e}))).length}}};function Fn(){return{__:function(e,t){return Bn(e,t)}}}},1842:(e,t,r)=>{function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=n(r(629)),a=r(6993),l=n(r(1684));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.IT.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,y=void 0!==E&&E,x=a.only,M=void 0===x?[]:x,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,G=void 0===W?function(){}:W,$=a.queryStringArrayFormat,J=void 0===$?"brackets":$,K="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 Y=f(c,K,h,J),X=Y[1];K=v(Y[0]),h=X}var Q={url:K,method:c,data:h,replace:g,preserveScroll:B,preserveState:y,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:G,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(K).href,data:c===t.IT.GET?{}:h,params:c===t.IT.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),(y=n.resolvePreserveOption(y,r))&&null!=(t=window.history.state)&&t.rememberedState&&r.component===n.page.component&&(r.rememberedState=window.history.state.rememberedState);var o=K,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:y})})).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),G(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=K;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.IT.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.IT.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.IT.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.IT.PATCH,data:r}))},r.delete=function(e,r){return void 0===r&&(r={}),this.visit(e,i({preserveState:!0},r,{method:t.IT.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}(),y={buildDOMElement:function(e){var t=document.createElement("template");t.innerHTML=e;var r=t.content.firstChild;if(!e.startsWith("