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