@flowfuse/node-red-dashboard 0.11.4 → 0.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{arc-HT979WDr.js → arc-yHC07jh5.js} +1 -1
- package/dist/assets/{c4Diagram-c0b17d02-layKFfWt.js → c4Diagram-c0b17d02-YtgqISMs.js} +1 -1
- package/dist/assets/{classDiagram-a8cc8886-VzwANB8n.js → classDiagram-a8cc8886-yXrzCv-T.js} +1 -1
- package/dist/assets/{classDiagram-v2-802a48d3-M26XBLNm.js → classDiagram-v2-802a48d3-NjkwMnSL.js} +1 -1
- package/dist/assets/{createText-3b1f58a4-LQdZvLTq.js → createText-3b1f58a4-NgnhIV1y.js} +1 -1
- package/dist/assets/{edges-0005682e-lMzwRHyD.js → edges-0005682e-z6K4c7OR.js} +1 -1
- package/dist/assets/{erDiagram-dedf2781-3d1HJdR-.js → erDiagram-dedf2781-qOfGFhoC.js} +1 -1
- package/dist/assets/{flowDb-ff651a22-8b9iWX0f.js → flowDb-ff651a22-VLXAYP-0.js} +1 -1
- package/dist/assets/{flowDiagram-d6f8fe3a-njWzbfzQ.js → flowDiagram-d6f8fe3a-cThkyiTm.js} +1 -1
- package/dist/assets/flowDiagram-v2-58f49b84-JR6gJiOl.js +1 -0
- package/dist/assets/{flowchart-elk-definition-56584a6c-GPNB6Kha.js → flowchart-elk-definition-56584a6c-aGhbEEKl.js} +1 -1
- package/dist/assets/{ganttDiagram-088dbd90-jcU-ukfH.js → ganttDiagram-088dbd90-rlAgIGtj.js} +1 -1
- package/dist/assets/{gitGraphDiagram-e0ffc2d1-dIZkYsih.js → gitGraphDiagram-e0ffc2d1-dlmhzu4a.js} +1 -1
- package/dist/assets/{index-madM--SU.css → index-HxR1I_hP.css} +1 -1
- package/dist/assets/{index-f58d48f9-kIjxmOoc.js → index-f58d48f9-Lp59Xbtf.js} +1 -1
- package/dist/assets/{index-fUjal6zz.js → index-nVoogp1U.js} +5 -5
- package/dist/assets/{infoDiagram-64895a6e-YiATGfeS.js → infoDiagram-64895a6e-HI-1CJkM.js} +1 -1
- package/dist/assets/{journeyDiagram-adaa34f8-C2dMQzW1.js → journeyDiagram-adaa34f8-rTj5fqGN.js} +1 -1
- package/dist/assets/{layout-dqGeNW7E.js → layout-fVXYNle2.js} +1 -1
- package/dist/assets/{line-5CT6jkJV.js → line-Z_CHQEeo.js} +1 -1
- package/dist/assets/{linear-n-hIdvcA.js → linear-q6lIuSLn.js} +1 -1
- package/dist/assets/{mindmap-definition-57868176-zoiLDgkE.js → mindmap-definition-57868176-8Fv_UaTx.js} +1 -1
- package/dist/assets/{pieDiagram-3fca7ce7-M1y5XJ7-.js → pieDiagram-3fca7ce7-LxBanFqs.js} +1 -1
- package/dist/assets/{quadrantDiagram-0ca4be02-d6_yGzai.js → quadrantDiagram-0ca4be02-i3mUuanh.js} +1 -1
- package/dist/assets/{requirementDiagram-e13af0f0-5sui4YMq.js → requirementDiagram-e13af0f0-u5059spj.js} +1 -1
- package/dist/assets/{sankeyDiagram-a7f8e230-CI_VVAG4.js → sankeyDiagram-a7f8e230-lFgjv4Iy.js} +1 -1
- package/dist/assets/{sequenceDiagram-84aa38e3-A8w5qHau.js → sequenceDiagram-84aa38e3-2ROgjdrk.js} +1 -1
- package/dist/assets/{stateDiagram-9a586ac6-7q5M0Pi-.js → stateDiagram-9a586ac6-N4CEixko.js} +1 -1
- package/dist/assets/{stateDiagram-v2-96f2b9df-7tVst5gU.js → stateDiagram-v2-96f2b9df-FbOIE7I-.js} +1 -1
- package/dist/assets/{styles-1b0c237a-sLXSCoO5.js → styles-1b0c237a-AFZGBoCy.js} +1 -1
- package/dist/assets/{styles-622362e4-U0vqC8io.js → styles-622362e4-Uf0NQb62.js} +1 -1
- package/dist/assets/{styles-a1a6e33f-TN9IkCLV.js → styles-a1a6e33f-bG-oUCNz.js} +1 -1
- package/dist/assets/{svgDraw-70101091-Uwgdyqw3.js → svgDraw-70101091-PiQV_Dss.js} +1 -1
- package/dist/assets/{svgDrawCommon-42e92da3-cQnk6Abg.js → svgDrawCommon-42e92da3-nBbiZX3l.js} +1 -1
- package/dist/assets/{timeline-definition-1a90b03d-P7XO3C-W.js → timeline-definition-1a90b03d-PQ0VUSc2.js} +1 -1
- package/dist/index.html +2 -2
- package/nodes/config/locales/en-US/ui_base.json +3 -1
- package/nodes/config/ui_base.html +10 -0
- package/nodes/config/ui_page.html +14 -3
- package/nodes/widgets/ui_button.js +1 -0
- package/package.json +2 -2
- package/dist/assets/flowDiagram-v2-58f49b84-J8Y8LcUP.js +0 -1
|
@@ -19,7 +19,7 @@ Server rendered element contains fewer child nodes than client vdom.`),$=!0),r(n
|
|
|
19
19
|
* vuex v4.1.0
|
|
20
20
|
* (c) 2022 Evan You
|
|
21
21
|
* @license MIT
|
|
22
|
-
*/var storeKey="store";function useStore(e){return e===void 0&&(e=null),inject$1(e!==null?e:storeKey)}function find$1(e,t){return e.filter(t)[0]}function deepCopy(e,t){if(t===void 0&&(t=[]),e===null||typeof e!="object")return e;var r=find$1(t,function(o){return o.original===e});if(r)return r.copy;var a=Array.isArray(e)?[]:{};return t.push({original:e,copy:a}),Object.keys(e).forEach(function(o){a[o]=deepCopy(e[o],t)}),a}function forEachValue(e,t){Object.keys(e).forEach(function(r){return t(e[r],r)})}function isObject$5(e){return e!==null&&typeof e=="object"}function isPromise(e){return e&&typeof e.then=="function"}function partial(e,t){return function(){return e(t)}}function genericSubscribe(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var a=t.indexOf(e);a>-1&&t.splice(a,1)}}function resetStore(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;installModule(e,r,[],e._modules.root,!0),resetStoreState(e,r,t)}function resetStoreState(e,t,r){var a=e._state,o=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var u=e._wrappedGetters,d={},f={},g=effectScope(!0);g.run(function(){forEachValue(u,function(E,S){d[S]=partial(E,e),f[S]=computed(function(){return d[S]()}),Object.defineProperty(e.getters,S,{get:function(){return f[S].value},enumerable:!0})})}),e._state=reactive({data:t}),e._scope=g,e.strict&&enableStrictMode(e),a&&r&&e._withCommit(function(){a.data=null}),o&&o.stop()}function installModule(e,t,r,a,o){var u=!r.length,d=e._modules.getNamespace(r);if(a.namespaced&&(e._modulesNamespaceMap[d],e._modulesNamespaceMap[d]=a),!u&&!o){var f=getNestedState(t,r.slice(0,-1)),g=r[r.length-1];e._withCommit(function(){f[g]=a.state})}var E=a.context=makeLocalContext(e,d,r);a.forEachMutation(function(S,b){var v=d+b;registerMutation(e,v,S,E)}),a.forEachAction(function(S,b){var v=S.root?b:d+b,y=S.handler||S;registerAction(e,v,y,E)}),a.forEachGetter(function(S,b){var v=d+b;registerGetter(e,v,S,E)}),a.forEachChild(function(S,b){installModule(e,t,r.concat(b),S,o)})}function makeLocalContext(e,t,r){var a=t==="",o={dispatch:a?e.dispatch:function(u,d,f){var g=unifyObjectStyle(u,d,f),E=g.payload,S=g.options,b=g.type;return(!S||!S.root)&&(b=t+b),e.dispatch(b,E)},commit:a?e.commit:function(u,d,f){var g=unifyObjectStyle(u,d,f),E=g.payload,S=g.options,b=g.type;(!S||!S.root)&&(b=t+b),e.commit(b,E,S)}};return Object.defineProperties(o,{getters:{get:a?function(){return e.getters}:function(){return makeLocalGetters(e,t)}},state:{get:function(){return getNestedState(e.state,r)}}}),o}function makeLocalGetters(e,t){if(!e._makeLocalGettersCache[t]){var r={},a=t.length;Object.keys(e.getters).forEach(function(o){if(o.slice(0,a)===t){var u=o.slice(a);Object.defineProperty(r,u,{get:function(){return e.getters[o]},enumerable:!0})}}),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function registerMutation(e,t,r,a){var o=e._mutations[t]||(e._mutations[t]=[]);o.push(function(d){r.call(e,a.state,d)})}function registerAction(e,t,r,a){var o=e._actions[t]||(e._actions[t]=[]);o.push(function(d){var f=r.call(e,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:e.getters,rootState:e.state},d);return isPromise(f)||(f=Promise.resolve(f)),e._devtoolHook?f.catch(function(g){throw e._devtoolHook.emit("vuex:error",g),g}):f})}function registerGetter(e,t,r,a){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(u){return r(a.state,a.getters,u.state,u.getters)})}function enableStrictMode(e){watch(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function getNestedState(e,t){return t.reduce(function(r,a){return r[a]},e)}function unifyObjectStyle(e,t,r){return isObject$5(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}var LABEL_VUEX_BINDINGS="vuex bindings",MUTATIONS_LAYER_ID="vuex:mutations",ACTIONS_LAYER_ID="vuex:actions",INSPECTOR_ID="vuex",actionId=0;function addDevtools(e,t){setupDevtoolsPlugin({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:[LABEL_VUEX_BINDINGS]},function(r){r.addTimelineLayer({id:MUTATIONS_LAYER_ID,label:"Vuex Mutations",color:COLOR_LIME_500}),r.addTimelineLayer({id:ACTIONS_LAYER_ID,label:"Vuex Actions",color:COLOR_LIME_500}),r.addInspector({id:INSPECTOR_ID,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(a){if(a.app===e&&a.inspectorId===INSPECTOR_ID)if(a.filter){var o=[];flattenStoreForInspectorTree(o,t._modules.root,a.filter,""),a.rootNodes=o}else a.rootNodes=[formatStoreForInspectorTree(t._modules.root,"")]}),r.on.getInspectorState(function(a){if(a.app===e&&a.inspectorId===INSPECTOR_ID){var o=a.nodeId;makeLocalGetters(t,o),a.state=formatStoreForInspectorState(getStoreModule(t._modules,o),o==="root"?t.getters:t._makeLocalGettersCache,o)}}),r.on.editInspectorState(function(a){if(a.app===e&&a.inspectorId===INSPECTOR_ID){var o=a.nodeId,u=a.path;o!=="root"&&(u=o.split("/").filter(Boolean).concat(u)),t._withCommit(function(){a.set(t._state.data,u,a.state.value)})}}),t.subscribe(function(a,o){var u={};a.payload&&(u.payload=a.payload),u.state=o,r.notifyComponentUpdate(),r.sendInspectorTree(INSPECTOR_ID),r.sendInspectorState(INSPECTOR_ID),r.addTimelineEvent({layerId:MUTATIONS_LAYER_ID,event:{time:Date.now(),title:a.type,data:u}})}),t.subscribeAction({before:function(a,o){var u={};a.payload&&(u.payload=a.payload),a._id=actionId++,a._time=Date.now(),u.state=o,r.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:a._time,title:a.type,groupId:a._id,subtitle:"start",data:u}})},after:function(a,o){var u={},d=Date.now()-a._time;u.duration={_custom:{type:"duration",display:d+"ms",tooltip:"Action duration",value:d}},a.payload&&(u.payload=a.payload),u.state=o,r.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:Date.now(),title:a.type,groupId:a._id,subtitle:"end",data:u}})}})})}var COLOR_LIME_500=8702998,COLOR_DARK=6710886,COLOR_WHITE=16777215,TAG_NAMESPACED={label:"namespaced",textColor:COLOR_WHITE,backgroundColor:COLOR_DARK};function extractNameFromPath(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function formatStoreForInspectorTree(e,t){return{id:t||"root",label:extractNameFromPath(t),tags:e.namespaced?[TAG_NAMESPACED]:[],children:Object.keys(e._children).map(function(r){return formatStoreForInspectorTree(e._children[r],t+r+"/")})}}function flattenStoreForInspectorTree(e,t,r,a){a.includes(r)&&e.push({id:a||"root",label:a.endsWith("/")?a.slice(0,a.length-1):a||"Root",tags:t.namespaced?[TAG_NAMESPACED]:[]}),Object.keys(t._children).forEach(function(o){flattenStoreForInspectorTree(e,t._children[o],r,a+o+"/")})}function formatStoreForInspectorState(e,t,r){t=r==="root"?t:t[r];var a=Object.keys(t),o={state:Object.keys(e.state).map(function(d){return{key:d,editable:!0,value:e.state[d]}})};if(a.length){var u=transformPathsToObjectTree(t);o.getters=Object.keys(u).map(function(d){return{key:d.endsWith("/")?extractNameFromPath(d):d,editable:!1,value:canThrow(function(){return u[d]})}})}return o}function transformPathsToObjectTree(e){var t={};return Object.keys(e).forEach(function(r){var a=r.split("/");if(a.length>1){var o=t,u=a.pop();a.forEach(function(d){o[d]||(o[d]={_custom:{value:{},display:d,tooltip:"Module",abstract:!0}}),o=o[d]._custom.value}),o[u]=canThrow(function(){return e[r]})}else t[r]=canThrow(function(){return e[r]})}),t}function getStoreModule(e,t){var r=t.split("/").filter(function(a){return a});return r.reduce(function(a,o,u){var d=a[o];if(!d)throw new Error('Missing module "'+o+'" for path "'+t+'".');return u===r.length-1?d:d._children},t==="root"?e:e.root._children)}function canThrow(e){try{return e()}catch(t){return t}}var Module=function(t,r){this.runtime=r,this._children=Object.create(null),this._rawModule=t;var a=t.state;this.state=(typeof a=="function"?a():a)||{}},prototypeAccessors$1={namespaced:{configurable:!0}};prototypeAccessors$1.namespaced.get=function(){return!!this._rawModule.namespaced};Module.prototype.addChild=function(t,r){this._children[t]=r};Module.prototype.removeChild=function(t){delete this._children[t]};Module.prototype.getChild=function(t){return this._children[t]};Module.prototype.hasChild=function(t){return t in this._children};Module.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)};Module.prototype.forEachChild=function(t){forEachValue(this._children,t)};Module.prototype.forEachGetter=function(t){this._rawModule.getters&&forEachValue(this._rawModule.getters,t)};Module.prototype.forEachAction=function(t){this._rawModule.actions&&forEachValue(this._rawModule.actions,t)};Module.prototype.forEachMutation=function(t){this._rawModule.mutations&&forEachValue(this._rawModule.mutations,t)};Object.defineProperties(Module.prototype,prototypeAccessors$1);var ModuleCollection=function(t){this.register([],t,!1)};ModuleCollection.prototype.get=function(t){return t.reduce(function(r,a){return r.getChild(a)},this.root)};ModuleCollection.prototype.getNamespace=function(t){var r=this.root;return t.reduce(function(a,o){return r=r.getChild(o),a+(r.namespaced?o+"/":"")},"")};ModuleCollection.prototype.update=function(t){update2([],this.root,t)};ModuleCollection.prototype.register=function(t,r,a){var o=this;a===void 0&&(a=!0);var u=new Module(r,a);if(t.length===0)this.root=u;else{var d=this.get(t.slice(0,-1));d.addChild(t[t.length-1],u)}r.modules&&forEachValue(r.modules,function(f,g){o.register(t.concat(g),f,a)})};ModuleCollection.prototype.unregister=function(t){var r=this.get(t.slice(0,-1)),a=t[t.length-1],o=r.getChild(a);o&&o.runtime&&r.removeChild(a)};ModuleCollection.prototype.isRegistered=function(t){var r=this.get(t.slice(0,-1)),a=t[t.length-1];return r?r.hasChild(a):!1};function update2(e,t,r){if(t.update(r),r.modules)for(var a in r.modules){if(!t.getChild(a))return;update2(e.concat(a),t.getChild(a),r.modules[a])}}function createStore(e){return new Store(e)}var Store=function(t){var r=this;t===void 0&&(t={});var a=t.plugins;a===void 0&&(a=[]);var o=t.strict;o===void 0&&(o=!1);var u=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 ModuleCollection(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=u;var d=this,f=this,g=f.dispatch,E=f.commit;this.dispatch=function(v,y){return g.call(d,v,y)},this.commit=function(v,y,T){return E.call(d,v,y,T)},this.strict=o;var S=this._modules.root.state;installModule(this,S,[],this._modules.root),resetStoreState(this,S),a.forEach(function(b){return b(r)})},prototypeAccessors$2={state:{configurable:!0}};Store.prototype.install=function(t,r){t.provide(r||storeKey,this),t.config.globalProperties.$store=this;var a=this._devtools!==void 0?this._devtools:!1;a&&addDevtools(t,this)};prototypeAccessors$2.state.get=function(){return this._state.data};prototypeAccessors$2.state.set=function(e){};Store.prototype.commit=function(t,r,a){var o=this,u=unifyObjectStyle(t,r,a),d=u.type,f=u.payload,g={type:d,payload:f},E=this._mutations[d];E&&(this._withCommit(function(){E.forEach(function(b){b(f)})}),this._subscribers.slice().forEach(function(S){return S(g,o.state)}))};Store.prototype.dispatch=function(t,r){var a=this,o=unifyObjectStyle(t,r),u=o.type,d=o.payload,f={type:u,payload:d},g=this._actions[u];if(g){try{this._actionSubscribers.slice().filter(function(S){return S.before}).forEach(function(S){return S.before(f,a.state)})}catch{}var E=g.length>1?Promise.all(g.map(function(S){return S(d)})):g[0](d);return new Promise(function(S,b){E.then(function(v){try{a._actionSubscribers.filter(function(y){return y.after}).forEach(function(y){return y.after(f,a.state)})}catch{}S(v)},function(v){try{a._actionSubscribers.filter(function(y){return y.error}).forEach(function(y){return y.error(f,a.state,v)})}catch{}b(v)})})}};Store.prototype.subscribe=function(t,r){return genericSubscribe(t,this._subscribers,r)};Store.prototype.subscribeAction=function(t,r){var a=typeof t=="function"?{before:t}:t;return genericSubscribe(a,this._actionSubscribers,r)};Store.prototype.watch=function(t,r,a){var o=this;return watch(function(){return t(o.state,o.getters)},r,Object.assign({},a))};Store.prototype.replaceState=function(t){var r=this;this._withCommit(function(){r._state.data=t})};Store.prototype.registerModule=function(t,r,a){a===void 0&&(a={}),typeof t=="string"&&(t=[t]),this._modules.register(t,r),installModule(this,this.state,t,this._modules.get(t),a.preserveState),resetStoreState(this,this.state)};Store.prototype.unregisterModule=function(t){var r=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var a=getNestedState(r.state,t.slice(0,-1));delete a[t[t.length-1]]}),resetStore(this)};Store.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};Store.prototype.hotUpdate=function(t){this._modules.update(t),resetStore(this,!0)};Store.prototype._withCommit=function(t){var r=this._committing;this._committing=!0,t(),this._committing=r};Object.defineProperties(Store.prototype,prototypeAccessors$2);var mapState=normalizeNamespace(function(e,t){var r={};return normalizeMap(t).forEach(function(a){var o=a.key,u=a.val;r[o]=function(){var f=this.$store.state,g=this.$store.getters;if(e){var E=getModuleByNamespace(this.$store,"mapState",e);if(!E)return;f=E.context.state,g=E.context.getters}return typeof u=="function"?u.call(this,f,g):f[u]},r[o].vuex=!0}),r}),mapMutations=normalizeNamespace(function(e,t){var r={};return normalizeMap(t).forEach(function(a){var o=a.key,u=a.val;r[o]=function(){for(var f=[],g=arguments.length;g--;)f[g]=arguments[g];var E=this.$store.commit;if(e){var S=getModuleByNamespace(this.$store,"mapMutations",e);if(!S)return;E=S.context.commit}return typeof u=="function"?u.apply(this,[E].concat(f)):E.apply(this.$store,[u].concat(f))}}),r}),mapGetters=normalizeNamespace(function(e,t){var r={};return normalizeMap(t).forEach(function(a){var o=a.key,u=a.val;u=e+u,r[o]=function(){if(!(e&&!getModuleByNamespace(this.$store,"mapGetters",e)))return this.$store.getters[u]},r[o].vuex=!0}),r}),mapActions=normalizeNamespace(function(e,t){var r={};return normalizeMap(t).forEach(function(a){var o=a.key,u=a.val;r[o]=function(){for(var f=[],g=arguments.length;g--;)f[g]=arguments[g];var E=this.$store.dispatch;if(e){var S=getModuleByNamespace(this.$store,"mapActions",e);if(!S)return;E=S.context.dispatch}return typeof u=="function"?u.apply(this,[E].concat(f)):E.apply(this.$store,[u].concat(f))}}),r}),createNamespacedHelpers=function(e){return{mapState:mapState.bind(null,e),mapGetters:mapGetters.bind(null,e),mapMutations:mapMutations.bind(null,e),mapActions:mapActions.bind(null,e)}};function normalizeMap(e){return isValidMap(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function isValidMap(e){return Array.isArray(e)||isObject$5(e)}function normalizeNamespace(e){return function(t,r){return typeof t!="string"?(r=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,r)}}function getModuleByNamespace(e,t,r){var a=e._modulesNamespaceMap[r];return a}function createLogger(e){e===void 0&&(e={});var t=e.collapsed;t===void 0&&(t=!0);var r=e.filter;r===void 0&&(r=function(S,b,v){return!0});var a=e.transformer;a===void 0&&(a=function(S){return S});var o=e.mutationTransformer;o===void 0&&(o=function(S){return S});var u=e.actionFilter;u===void 0&&(u=function(S,b){return!0});var d=e.actionTransformer;d===void 0&&(d=function(S){return S});var f=e.logMutations;f===void 0&&(f=!0);var g=e.logActions;g===void 0&&(g=!0);var E=e.logger;return E===void 0&&(E=console),function(S){var b=deepCopy(S.state);typeof E>"u"||(f&&S.subscribe(function(v,y){var T=deepCopy(y);if(r(v,b,T)){var C=getFormattedTime(),R=o(v),A="mutation "+v.type+C;startMessage(E,A,t),E.log("%c prev state","color: #9E9E9E; font-weight: bold",a(b)),E.log("%c mutation","color: #03A9F4; font-weight: bold",R),E.log("%c next state","color: #4CAF50; font-weight: bold",a(T)),endMessage(E)}b=T}),g&&S.subscribeAction(function(v,y){if(u(v,y)){var T=getFormattedTime(),C=d(v),R="action "+v.type+T;startMessage(E,R,t),E.log("%c action","color: #03A9F4; font-weight: bold",C),endMessage(E)}}))}}function startMessage(e,t,r){var a=r?e.groupCollapsed:e.group;try{a.call(e,t)}catch{e.log(t)}}function endMessage(e){try{e.groupEnd()}catch{e.log("—— log end ——")}}function getFormattedTime(){var e=new Date;return" @ "+pad(e.getHours(),2)+":"+pad(e.getMinutes(),2)+":"+pad(e.getSeconds(),2)+"."+pad(e.getMilliseconds(),3)}function repeat$1(e,t){return new Array(t+1).join(e)}function pad(e,t){return repeat$1("0",t-e.toString().length)+e}var index$1={version:"4.1.0",Store,storeKey,createStore,useStore,mapState,mapMutations,mapGetters,mapActions,createNamespacedHelpers,createLogger};const vuex=Object.freeze(Object.defineProperty({__proto__:null,Store,createLogger,createNamespacedHelpers,createStore,default:index$1,mapActions,mapGetters,mapMutations,mapState,storeKey,useStore},Symbol.toStringTag,{value:"Module"})),_export_sfc=(e,t)=>{const r=e.__vccOpts||e;for(const[a,o]of t)r[a]=o;return r},_sfc_main$m={name:"LoadingAnimation"},_hoisted_1$c={class:"nrdb-loading",width:"64",height:"64",viewBox:"0 0 105 105",xmlns:"http://www.w3.org/2000/svg",fill:"currentFill"},_hoisted_2$b=createStaticVNode('<circle cx="12.5" cy="12.5" r="12.5"><animate attributeName="fill-opacity" begin="0s" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="12.5" cy="52.5" r="12.5" fill-opacity=".5"><animate attributeName="fill-opacity" begin="100ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="52.5" cy="12.5" r="12.5"><animate attributeName="fill-opacity" begin="300ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="52.5" cy="52.5" r="12.5"><animate attributeName="fill-opacity" begin="600ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="92.5" cy="12.5" r="12.5"><animate attributeName="fill-opacity" begin="800ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="92.5" cy="52.5" r="12.5"><animate attributeName="fill-opacity" begin="400ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="12.5" cy="92.5" r="12.5"><animate attributeName="fill-opacity" begin="700ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="52.5" cy="92.5" r="12.5"><animate attributeName="fill-opacity" begin="500ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="92.5" cy="92.5" r="12.5"><animate attributeName="fill-opacity" begin="200ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle>',9),_hoisted_11$1=[_hoisted_2$b];function _sfc_render$i(e,t,r,a,o,u){return openBlock(),createElementBlock("svg",_hoisted_1$c,_hoisted_11$1)}const DashboardLoading=_export_sfc(_sfc_main$m,[["render",_sfc_render$i]]),_sfc_main$l={name:"DebugData",props:{item:{type:String,required:!0},store:{type:String,required:!0}},data(){return{data:null}},created(){this.getData()},mounted(){this.getData()},methods:{getData(){const e=new XMLHttpRequest;e.open("GET",`/dashboard/_debug/${this.store}store/${this.item}`),e.send(),e.responseType="json",e.onload=()=>{if(e.readyState===4&&e.status===200){const t=e.response;this.data=t}else console.error(`Error: ${e.status}`)}}}},_hoisted_1$b={key:0,style:{padding:"12px",opacity:"0.5"}},_hoisted_2$a={key:1,style:{padding:"12px",opacity:"0.5"}};function _sfc_render$h(e,t,r,a,o,u){const d=resolveComponent("v-btn");return openBlock(),createElementBlock(Fragment,null,[o.data?(openBlock(),createElementBlock("pre",_hoisted_1$b,toDisplayString(o.data),1)):(openBlock(),createElementBlock("p",_hoisted_2$a,"No Data Found")),createVNode(d,{style:{margin:"12px"},variant:"outlined","prepend-icon":"mdi-refresh",onClick:t[0]||(t[0]=f=>u.getData())},{default:withCtx(()=>[createTextVNode("Refresh")]),_:1})],64)}const DebugData=_export_sfc(_sfc_main$l,[["render",_sfc_render$h]]);function getProperty(e,t){return t.split(".").forEach(a=>{e&&(e=e[a])}),e}const _sfc_main$k={name:"DebugView",components:{"debug-data":DebugData},inject:["$socket"],data(){return{view:{tab:"",nested:"properties"},filters:{pages:[],groups:[],widgets:[]},search:{groups:"",widgets:""},messages:[]}},computed:{...mapState("ui",["dashboards","pages","themes","groups","widgets"]),...mapState("data",["messages"]),items:function(){return{dashboards:Object.values(this.dashboards),pages:Object.values(this.pages).filter(e=>this.filters.pages.every(t=>getProperty(e,t.key)===t.value)),themes:Object.values(this.themes),groups:Object.values(this.groups).filter(e=>this.filters.groups.every(t=>getProperty(e,t.key)===t.value)),widgets:Object.values(this.widgets).filter(e=>this.filters.widgets.every(t=>getProperty(e,t.key)===t.value))}},headers:function(){return{dashboards:[{title:"ID",value:"id"},{title:"Name",value:"name"},{title:"Path",value:"path"},{title:"",value:"filter.pages",align:"end"}],themes:[{title:"ID",value:"id"},{title:"Name",value:"name"},{title:"Colors",value:"colors"}],pages:[{title:"ID",value:"id"},{title:"Name",value:"name"},{title:"Path",value:"path"},{title:"Layout",value:"layout"},{title:"",value:"filter.groups",align:"end"}],groups:[{title:"ID",value:"id"},{title:"Name",value:"name"},{title:"Size",value:"size"},{title:"",value:"filter.widgets",align:"end"}],widgets:[{title:"ID",value:"id"},{title:"Type",value:"type"},{title:"Size",value:"size"}]}}},methods:{applyFilter(e,t,r){this.filters[e].push({key:t,value:r}),this.view.tab=e},clearFilter(e,t){this.filters[e].splice(t,1)},refresh(){this.$socket.disconnect(),this.$socket.connect()}}},_hoisted_1$a={class:"nrdb-debug-view"},_hoisted_2$9=createBaseVNode("div",{class:"nrdb-debug-description"},[createBaseVNode("p",null,'Data does not automatically update for each item (as event listeners are managed within the rendered components), you will need to manually "refresh" to see updated data.'),createBaseVNode("p",null,[createTextVNode("This will reconnect the socket connection, where this UI will receive the latest "),createBaseVNode("code",null,"ui-config"),createTextVNode(" message.")])],-1),_hoisted_3$6={key:0,class:"debug-filters"},_hoisted_4$1=createBaseVNode("label",null,"Filters:",-1),_hoisted_5$1={class:"debug-filters-chips"},_hoisted_6$1=["colspan"],_hoisted_7={key:0,class:"debug-filters"},_hoisted_8=createBaseVNode("label",null,"Filters:",-1),_hoisted_9={class:"debug-filters-chips"},_hoisted_10=["colspan"],_hoisted_11={key:0,class:"debug-filters"},_hoisted_12=createBaseVNode("label",null,"Filters:",-1),_hoisted_13={class:"debug-filters-chips"},_hoisted_14=["colspan"];function _sfc_render$g(e,t,r,a,o,u){const d=resolveComponent("v-btn"),f=resolveComponent("v-tab"),g=resolveComponent("v-tabs"),E=resolveComponent("v-data-table"),S=resolveComponent("v-window-item"),b=resolveComponent("v-chip"),v=resolveComponent("debug-data"),y=resolveComponent("v-window"),T=resolveComponent("v-text-field");return openBlock(),createElementBlock("div",_hoisted_1$a,[createBaseVNode("h1",null,[createTextVNode("Dashboard Debug View "),createVNode(d,{variant:"outlined","prepend-icon":"mdi-refresh",onClick:t[0]||(t[0]=C=>u.refresh())},{default:withCtx(()=>[createTextVNode("Refresh")]),_:1})]),_hoisted_2$9,createVNode(g,{modelValue:o.view.tab,"onUpdate:modelValue":t[1]||(t[1]=C=>o.view.tab=C)},{default:withCtx(()=>[createVNode(f,{value:"dashboards"},{default:withCtx(()=>[createTextVNode("Dashboards")]),_:1}),createVNode(f,{value:"themes"},{default:withCtx(()=>[createTextVNode("Themes")]),_:1}),createVNode(f,{value:"pages"},{default:withCtx(()=>[createTextVNode("Pages")]),_:1}),createVNode(f,{value:"groups"},{default:withCtx(()=>[createTextVNode("Groups")]),_:1}),createVNode(f,{value:"widgets"},{default:withCtx(()=>[createTextVNode("Widgets")]),_:1})]),_:1},8,["modelValue"]),createVNode(y,{modelValue:o.view.tab,"onUpdate:modelValue":t[10]||(t[10]=C=>o.view.tab=C)},{default:withCtx(()=>[createVNode(S,{value:"dashboards"},{default:withCtx(()=>[createVNode(E,{headers:u.headers.dashboards,items:u.items.dashboards,"items-per-page":-1},{"item.filter.pages":withCtx(({item:C})=>[createVNode(d,{variant:"outlined",onClick:R=>u.applyFilter("pages","ui",C.id)},{default:withCtx(()=>[createTextVNode("Show Pages")]),_:2},1032,["onClick"])]),bottom:withCtx(()=>[]),_:1},8,["headers","items"])]),_:1}),createVNode(S,{value:"themes"},{default:withCtx(()=>[createVNode(E,{headers:u.headers.themes,items:u.items.themes,"items-per-page":-1},null,8,["headers","items"])]),_:1}),createVNode(S,{value:"pages"},{default:withCtx(()=>[o.filters.pages&&o.filters.pages.length>0?(openBlock(),createElementBlock("div",_hoisted_3$6,[_hoisted_4$1,createBaseVNode("div",_hoisted_5$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.filters.pages,(C,R)=>(openBlock(),createBlock(b,{key:C.key,closable:"","onClick:close":A=>u.clearFilter("pages",R)},{default:withCtx(()=>[createTextVNode(toDisplayString(C.key)+": "+toDisplayString(C.value),1)]),_:2},1032,["onClick:close"]))),128))])])):createCommentVNode("",!0),createVNode(E,{headers:u.headers.pages,items:u.items.pages,"show-expand":"","items-per-page":-1},{"item.filter.groups":withCtx(({item:C})=>[createVNode(d,{variant:"outlined",onClick:R=>u.applyFilter("groups","page",C.id)},{default:withCtx(()=>[createTextVNode("Show Groups")]),_:2},1032,["onClick"])]),"expanded-row":withCtx(({columns:C,item:R})=>[createBaseVNode("tr",null,[createBaseVNode("td",{colspan:C.length,class:"nested-table"},[createVNode(g,{modelValue:o.view.nested,"onUpdate:modelValue":t[2]||(t[2]=A=>o.view.nested=A)},{default:withCtx(()=>[createVNode(f,{value:"properties"},{default:withCtx(()=>[createTextVNode("Properties")]),_:1}),createVNode(f,{value:"statestore"},{default:withCtx(()=>[createTextVNode("Dynamic Properties")]),_:1})]),_:1},8,["modelValue"]),createVNode(y,{modelValue:o.view.nested,"onUpdate:modelValue":t[3]||(t[3]=A=>o.view.nested=A)},{default:withCtx(()=>[createVNode(S,{value:"properties"},{default:withCtx(()=>[createVNode(E,{color:"white",items:Object.entries(R).map(function(A){return{property:A[0],value:A[1],type:typeof A[1]}}),"items-per-page":-1},{bottom:withCtx(()=>[]),_:2},1032,["items"])]),_:2},1024),createVNode(S,{value:"statestore"},{default:withCtx(()=>[createVNode(v,{type:"page",item:R.id,store:"state"},null,8,["item"])]),_:2},1024)]),_:2},1032,["modelValue"])],8,_hoisted_6$1)])]),_:1},8,["headers","items"])]),_:1}),createVNode(S,{value:"groups"},{default:withCtx(()=>[o.filters.groups&&o.filters.groups.length>0?(openBlock(),createElementBlock("div",_hoisted_7,[_hoisted_8,createBaseVNode("div",_hoisted_9,[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.filters.groups,(C,R)=>(openBlock(),createBlock(b,{key:C.key,closable:"","onClick:close":A=>u.clearFilter("groups",R)},{default:withCtx(()=>[createTextVNode(toDisplayString(C.key)+": "+toDisplayString(C.value),1)]),_:2},1032,["onClick:close"]))),128))])])):createCommentVNode("",!0),createVNode(T,{modelValue:o.search.groups,"onUpdate:modelValue":t[4]||(t[4]=C=>o.search.groups=C),label:"Search","prepend-inner-icon":"mdi-magnify","single-line":"",variant:"outlined","hide-details":""},null,8,["modelValue"]),createVNode(E,{headers:u.headers.groups,items:u.items.groups,"items-per-page":-1,"show-expand":"",search:o.search.groups},{"item.size":withCtx(({item:C})=>[createBaseVNode("span",null,toDisplayString(C.width)+"x"+toDisplayString(C.height||"auto"),1)]),"item.filter.widgets":withCtx(({item:C})=>[createVNode(d,{variant:"outlined",onClick:R=>u.applyFilter("widgets","props.group",C.id)},{default:withCtx(()=>[createTextVNode("Show Widgets")]),_:2},1032,["onClick"])]),"expanded-row":withCtx(({columns:C,item:R})=>[createBaseVNode("tr",null,[createBaseVNode("td",{colspan:C.length,class:"nested-table"},[createVNode(g,{modelValue:o.view.nested,"onUpdate:modelValue":t[5]||(t[5]=A=>o.view.nested=A)},{default:withCtx(()=>[createVNode(f,{value:"properties"},{default:withCtx(()=>[createTextVNode("Properties")]),_:1}),createVNode(f,{value:"statestore"},{default:withCtx(()=>[createTextVNode("Dynamic Properties")]),_:1})]),_:1},8,["modelValue"]),createVNode(y,{modelValue:o.view.nested,"onUpdate:modelValue":t[6]||(t[6]=A=>o.view.nested=A)},{default:withCtx(()=>[createVNode(S,{value:"properties"},{default:withCtx(()=>[createVNode(E,{color:"white",items:Object.entries(R).map(function(A){return{property:A[0],value:A[1]}}),"items-per-page":-1},{bottom:withCtx(()=>[]),_:2},1032,["items"])]),_:2},1024),createVNode(S,{value:"statestore"},{default:withCtx(()=>[createVNode(v,{item:R.id,store:"state"},null,8,["item"])]),_:2},1024)]),_:2},1032,["modelValue"])],8,_hoisted_10)])]),_:1},8,["headers","items","search"])]),_:1}),createVNode(S,{value:"widgets"},{default:withCtx(()=>[o.filters.widgets&&o.filters.widgets.length>0?(openBlock(),createElementBlock("div",_hoisted_11,[_hoisted_12,createBaseVNode("div",_hoisted_13,[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.filters.widgets,(C,R)=>(openBlock(),createBlock(b,{key:C.key,closable:"","onClick:close":A=>u.clearFilter("widgets",R)},{default:withCtx(()=>[createTextVNode(toDisplayString(C.key)+": "+toDisplayString(C.value),1)]),_:2},1032,["onClick:close"]))),128))])])):createCommentVNode("",!0),createVNode(T,{modelValue:o.search.widgets,"onUpdate:modelValue":t[7]||(t[7]=C=>o.search.widgets=C),label:"Search","prepend-inner-icon":"mdi-magnify","single-line":"",variant:"outlined","hide-details":""},null,8,["modelValue"]),createVNode(E,{headers:u.headers.widgets,items:u.items.widgets,"items-per-page":-1,"show-expand":"",search:o.search.widgets},{"item.size":withCtx(({item:C})=>[createBaseVNode("span",null,toDisplayString(C.props.width||"auto ")+"x"+toDisplayString(C.props.height||" auto"),1)]),"expanded-row":withCtx(({columns:C,item:R})=>[createBaseVNode("tr",null,[createBaseVNode("td",{colspan:C.length,class:"nested-table"},[createVNode(g,{modelValue:o.view.nested,"onUpdate:modelValue":t[8]||(t[8]=A=>o.view.nested=A)},{default:withCtx(()=>[createVNode(f,{value:"properties"},{default:withCtx(()=>[createTextVNode("Properties")]),_:1}),createVNode(f,{value:"datastore"},{default:withCtx(()=>[createTextVNode("Message History")]),_:1}),createVNode(f,{value:"statestore"},{default:withCtx(()=>[createTextVNode("Dynamic Properties")]),_:1})]),_:1},8,["modelValue"]),createVNode(y,{modelValue:o.view.nested,"onUpdate:modelValue":t[9]||(t[9]=A=>o.view.nested=A)},{default:withCtx(()=>[createVNode(S,{value:"properties"},{default:withCtx(()=>[createVNode(E,{color:"white",items:Object.entries(R.props).map(function(A){return{property:A[0],value:A[1]}}),"items-per-page":-1},{bottom:withCtx(()=>[]),_:2},1032,["items"])]),_:2},1024),createVNode(S,{value:"datastore"},{default:withCtx(()=>[createVNode(v,{widget:R.id,store:"data"},null,8,["widget"])]),_:2},1024),createVNode(S,{value:"statestore"},{default:withCtx(()=>[createVNode(v,{item:R.id,store:"state"},null,8,["item"])]),_:2},1024)]),_:2},1032,["modelValue"])],8,_hoisted_14)])]),_:1},8,["headers","items","search"])]),_:1})]),_:1},8,["modelValue"])])}const DebugView=_export_sfc(_sfc_main$k,[["render",_sfc_render$g]]);function hexToRgb(e){const t=parseInt(e.replace("#",""),16),r=t>>16&255,a=t>>8&255,o=t&255;return[r,a,o]}function getContrast$1(e){const t=hexToRgb(e);return Math.round((parseInt(t[0])*299+parseInt(t[1])*587+parseInt(t[2])*114)/1e3)>125?"#000000":"#ffffff"}const _sfc_main$j={name:"BaslineLayout",props:{pageTitle:{type:String,default:"Page Title Here"}},data(){return{drawer:!1}},computed:{...mapState("ui",["pages","themes","pageData","widgets"]),...mapGetters("ui",["siteTemplates","pageTemplates"]),theme:function(){const e=this.pages[this.$route.meta.id];return e?this.themes[e==null?void 0:e.theme].colors:null},orderedPages:function(){return Object.values(this.pages).filter(e=>!("visible"in e&&!e.visible)).sort((e,t)=>e.order-t.order)},uiWidgets:function(){return Object.values(this.widgets).filter(t=>Object.hasOwn(t.props,"ui")&&!!t.props.ui&&!t.props.group&&!t.props.page)}},watch:{theme:function(){this.updateTheme()}},mounted(){this.updateTheme()},methods:{go:function(e){this.$router.push({name:e})},updateTheme(){const e=this.$vuetify.theme.themes.nrdb.colors;this.theme&&(e.surface=this.theme.surface,e.primary=this.theme.primary,e["on-primary"]=getContrast$1(this.theme.primary),e.background=this.theme.bgPage,e["group-background"]=this.theme.groupBg,e["group-outline"]=this.theme.groupOutline)}}},_hoisted_1$9=createBaseVNode("div",{id:"app-bar-actions"},null,-1),_hoisted_2$8={class:"nrdb-layout-overlay"};function _sfc_render$f(e,t,r,a,o,u){const d=resolveComponent("v-app-bar-nav-icon"),f=resolveComponent("v-app-bar-title"),g=resolveComponent("v-app-bar"),E=resolveComponent("v-list-item"),S=resolveComponent("v-list"),b=resolveComponent("v-navigation-drawer"),v=resolveComponent("v-main"),y=resolveComponent("v-app");return openBlock(),createBlock(y,{class:"nrdb-app nrdb-app--baseline"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.siteTemplates(e.$route.meta.dashboard),T=>(openBlock(),createElementBlock("div",{key:T.id,style:{display:"none"}},[createTextVNode(" Loaded site template '"+toDisplayString(T.id)+"' ",1),(openBlock(),createBlock(resolveDynamicComponent(T.component),{id:T.id,props:T.props,state:T.state},null,8,["id","props","state"]))]))),128)),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.pageTemplates(e.$route.meta.id),T=>(openBlock(),createElementBlock("div",{key:T.id,style:{display:"none"}},[createTextVNode(" Loaded site template '"+toDisplayString(T.id)+"' ",1),(openBlock(),createBlock(resolveDynamicComponent(T.component),{id:T.id,props:T.props,state:T.state},null,8,["id","props","state"]))]))),128)),createVNode(g,{elevation:1},{prepend:withCtx(()=>[createVNode(d,{onClick:t[0]||(t[0]=T=>o.drawer=!o.drawer)})]),append:withCtx(()=>[_hoisted_1$9]),default:withCtx(()=>[createVNode(f,null,{default:withCtx(()=>[createTextVNode(toDisplayString(r.pageTitle),1)]),_:1})]),_:1}),createVNode(v,null,{default:withCtx(()=>[createVNode(b,{modelValue:o.drawer,"onUpdate:modelValue":t[1]||(t[1]=T=>o.drawer=T),"data-el":"nav-drawer"},{default:withCtx(()=>[createVNode(S,{nav:""},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.orderedPages,T=>(openBlock(),createBlock(E,{key:T.id,"active-class":"v-list-item--active",disabled:T.disabled||void 0,"prepend-icon":`mdi-${T.icon||"home"}`,title:`${T.name} (${T.route.path})`,to:{name:T.route.name},link:"","data-nav":T.id},null,8,["disabled","prepend-icon","title","to","data-nav"]))),128))]),_:1})]),_:1},8,["modelValue"]),renderSlot(e.$slots,"default",{class:"nrdb-layout"}),createBaseVNode("div",_hoisted_2$8,[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.uiWidgets,T=>(openBlock(),createBlock(resolveDynamicComponent(T.component),{id:T.id,key:T.id,props:T.props,state:T.state},null,8,["id","props","state"]))),128))])]),_:3})]),_:3})}const BaselineLayout=_export_sfc(_sfc_main$j,[["render",_sfc_render$f]]),_sfc_main$i={name:"LayoutFlex",components:{BaselineLayout},data(){return{rowHeight:45}},computed:{...mapState("ui",["groups","widgets","pages"]),...mapState("data",["properties"]),...mapGetters("ui",["groupsByPage","widgetsByGroup","widgetsByPage"]),orderedGroups:function(){return this.groupsByPage(this.$route.meta.id).filter(t=>"visible"in t?t.visible:!0)},pageWidgets:function(){return this.widgetsByPage(this.$route.meta.id)},page:function(){return this.pages[this.$route.meta.id]}},methods:{getWidgetClass(e){const t=[];t.push(`nrdb-${e.type}`);const r=this.properties[e.id];return e.props.className&&t.push(e.props.className),r&&r.class&&t.push(r.class),t.join(" ")},getGroupClass(e){const t=[];e.className&&t.push(e.className);const r=this.properties[e.id];return r&&r.class&&t.push(r.class),t.join(" ")}}},_hoisted_1$8=["id"],_hoisted_2$7=["id","disabled"],_hoisted_3$5=["id"];function _sfc_render$e(e,t,r,a,o,u){const d=resolveComponent("v-card"),f=resolveComponent("BaselineLayout");return openBlock(),createBlock(f,{"page-title":e.$route.meta.title},{default:withCtx(()=>{var g;return[u.orderedGroups?(openBlock(),createElementBlock("div",{key:0,id:"nrdb-page-"+e.$route.meta.id,class:normalizeClass(["nrdb-layout--flex nrdb-ui-page",(g=u.page)==null?void 0:g.className])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.orderedGroups,E=>(openBlock(),createElementBlock("div",{id:"nrdb-ui-group-"+E.id,key:E.id,class:normalizeClass(["nrdb-ui-group",u.getGroupClass(E)]),disabled:E.disabled===!0?"disabled":null,style:normalizeStyle({width:o.rowHeight*2*E.width+"px"})},[createVNode(d,{variant:"outlined",class:"bg-group-background",style:normalizeStyle({"min-height":o.rowHeight*E.height+"px"})},createSlots({text:withCtx(()=>[createBaseVNode("div",{class:"nrdb-group-widgets nr-db-layout-group--grid",style:normalizeStyle(`grid-template-columns: repeat(${E.width}, 1fr); grid-template-rows: repeat(${E.height}, minmax(${o.rowHeight}px, auto)); `)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.widgetsByGroup(E.id),S=>(openBlock(),createElementBlock("div",{id:"nrdb-ui-widget-"+S.id,key:S.id,class:normalizeClass(["nrdb-ui-widget",u.getWidgetClass(S)]),style:normalizeStyle([{display:"grid"},`grid-template-rows: repeat(${S.props.height}, minmax(${o.rowHeight}px, auto)); grid-column-end: span ${S.props.width||E.width}`])},[(openBlock(),createBlock(resolveDynamicComponent(S.component),{id:S.id,props:S.props,state:S.state,style:normalizeStyle(`grid-row-end: span ${S.props.height}`)},null,8,["id","props","state","style"]))],14,_hoisted_3$5))),128))],4)]),_:2},[E.showTitle?{name:"title",fn:withCtx(()=>[createTextVNode(toDisplayString(E.name),1)]),key:"0"}:void 0]),1032,["style"])],14,_hoisted_2$7))),128))],10,_hoisted_1$8)):createCommentVNode("",!0),createBaseVNode("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.pageWidgets,E=>(openBlock(),createBlock(resolveDynamicComponent(E.component),{id:E.id,key:E.id,props:E.props,state:E.state},null,8,["id","props","state"]))),128))])]}),_:1},8,["page-title"])}const Flex=_export_sfc(_sfc_main$i,[["render",_sfc_render$e],["__scopeId","data-v-0ea52d1d"]]),_sfc_main$h={name:"LayoutGrid",components:{BaselineLayout},data(){return{columns:12,rowHeight:48}},computed:{...mapState("ui",["groups","widgets","pages"]),...mapState("data",["properties"]),...mapGetters("ui",["groupsByPage","widgetsByGroup","widgetsByPage"]),orderedGroups:function(){return this.groupsByPage(this.$route.meta.id).filter(t=>"visible"in t?t.visible:!0)},pageWidgets:function(){return this.widgetsByPage(this.$route.meta.id)},page:function(){return this.pages[this.$route.meta.id]}},methods:{getWidgetClass(e){const t=[];t.push(`nrdb-${e.type}`);const r=this.properties[e.id];return e.props.className&&t.push(e.props.className),r&&r.class&&t.push(r.class),t.join(" ")},getGroupClass(e){const t=[];e.className&&t.push(e.className);const r=this.properties[e.id];return r&&r.class&&t.push(r.class),t.join(" ")}}},_hoisted_1$7=["id"],_hoisted_2$6=["id","disabled"],_hoisted_3$4=["id"];function _sfc_render$d(e,t,r,a,o,u){const d=resolveComponent("v-card"),f=resolveComponent("BaselineLayout");return openBlock(),createBlock(f,{"page-title":e.$route.meta.title},{default:withCtx(()=>{var g;return[u.orderedGroups?(openBlock(),createElementBlock("div",{key:0,id:"nrdb-page-"+e.$route.meta.id,class:normalizeClass(["nrdb-layout--grid nrdb-ui-page",(g=u.page)==null?void 0:g.className])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.orderedGroups,E=>(openBlock(),createElementBlock("div",{id:"nrdb-ui-group-"+E.id,key:E.id,class:normalizeClass(["nrdb-ui-group",u.getGroupClass(E)]),disabled:E.disabled===!0?"disabled":null,style:normalizeStyle(`grid-column-end: span ${E.width}`)},[createVNode(d,{variant:"outlined",class:"bg-group-background"},createSlots({text:withCtx(()=>[createBaseVNode("div",{class:"nrdb-group-widgets nr-db-layout-group--grid",style:normalizeStyle(`grid-template-columns: repeat(${E.width}, 1fr); grid-template-rows: repeat(${E.height}, minmax(${o.rowHeight}, auto)); `)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.widgetsByGroup(E.id),S=>(openBlock(),createElementBlock("div",{id:"nrdb-ui-widget-"+S.id,key:S.id,class:normalizeClass(["nrdb-ui-widget",u.getWidgetClass(S)]),style:normalizeStyle([{display:"grid"},`grid-template-rows: repeat(${S.props.height}, minmax(${o.rowHeight}px, auto)); grid-column-end: span ${S.props.width||E.width}`])},[(openBlock(),createBlock(resolveDynamicComponent(S.component),{id:S.id,props:S.props,state:S.state,style:normalizeStyle(`grid-row-end: span ${S.props.height}`)},null,8,["id","props","state","style"]))],14,_hoisted_3$4))),128))],4)]),_:2},[E.showTitle?{name:"title",fn:withCtx(()=>[createTextVNode(toDisplayString(E.name),1)]),key:"0"}:void 0]),1024)],14,_hoisted_2$6))),128))],10,_hoisted_1$7)):createCommentVNode("",!0),createBaseVNode("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.pageWidgets,E=>(openBlock(),createBlock(resolveDynamicComponent(E.component),{id:E.id,key:E.id,props:E.props,state:E.state},null,8,["id","props","state"]))),128))])]}),_:1},8,["page-title"])}const Grid=_export_sfc(_sfc_main$h,[["render",_sfc_render$d],["__scopeId","data-v-b403de30"]]),_sfc_main$g={name:"LayoutFlex",components:{BaselineLayout},data(){return{rowHeight:45}},computed:{...mapState("ui",["groups","widgets","pages"]),...mapState("data",["properties"]),...mapGetters("ui",["groupsByPage","widgetsByGroup","widgetsByPage"]),orderedGroups:function(){return this.groupsByPage(this.$route.meta.id).filter(t=>"visible"in t?t.visible:!0)},pageWidgets:function(){return this.widgetsByPage(this.$route.meta.id)},page:function(){return this.pages[this.$route.meta.id]}},methods:{getWidgetClass(e){const t=[];t.push(`nrdb-${e.type}`);const r=this.properties[e.id];return e.props.className&&t.push(e.props.className),r&&r.class&&t.push(r.class),t.join(" ")},getGroupClass(e){const t=[];e.className&&t.push(e.className);const r=this.properties[e.id];return r&&r.class&&t.push(r.class),t.join(" ")}}},_hoisted_1$6=["id"],_hoisted_2$5=["id","disabled"],_hoisted_3$3=["id"];function _sfc_render$c(e,t,r,a,o,u){const d=resolveComponent("v-card"),f=resolveComponent("BaselineLayout");return openBlock(),createBlock(f,{"page-title":e.$route.meta.title},{default:withCtx(()=>{var g;return[u.orderedGroups?(openBlock(),createElementBlock("div",{key:0,id:"nrdb-page-"+e.$route.meta.id,class:normalizeClass(["nrdb-layout--notebook nrdb-ui-page",(g=u.page)==null?void 0:g.className])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.orderedGroups,E=>(openBlock(),createElementBlock("div",{id:"nrdb-ui-group-"+E.id,key:E.id,class:normalizeClass(["nrdb-ui-group",u.getGroupClass(E)]),disabled:E.disabled===!0?"disabled":null},[createVNode(d,{variant:"outlined",class:"bg-group-background",style:normalizeStyle({"min-height":o.rowHeight*E.height+"px"})},createSlots({text:withCtx(()=>[createBaseVNode("div",{class:"nr-db-layout-group--grid",style:normalizeStyle(`grid-template-columns: repeat(${E.width}, 1fr); grid-template-rows: repeat(${E.height}, minmax(${o.rowHeight}px, auto)); `)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.widgetsByGroup(E.id),S=>(openBlock(),createElementBlock("div",{id:"nrdb-ui-widget-"+S.id,key:S.id,class:normalizeClass(["nrdb-ui-widget",u.getWidgetClass(S)]),style:normalizeStyle([{display:"grid"},`grid-template-rows: repeat(${S.props.height}, minmax(${o.rowHeight}px, auto)); grid-column-end: span ${S.props.width||E.width}`])},[(openBlock(),createBlock(resolveDynamicComponent(S.component),{id:S.id,props:S.props,state:S.state,style:normalizeStyle(`grid-row-end: span ${S.props.height}`)},null,8,["id","props","state","style"]))],14,_hoisted_3$3))),128))],4)]),_:2},[E.showTitle?{name:"title",fn:withCtx(()=>[createTextVNode(toDisplayString(E.name),1)]),key:"0"}:void 0]),1032,["style"])],10,_hoisted_2$5))),128))],10,_hoisted_1$6)):createCommentVNode("",!0),createBaseVNode("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.pageWidgets,E=>(openBlock(),createBlock(resolveDynamicComponent(E.component),{id:E.id,key:E.id,props:E.props,state:E.state},null,8,["id","props","state"]))),128))])]}),_:1},8,["page-title"])}const Notebook=_export_sfc(_sfc_main$g,[["render",_sfc_render$c],["__scopeId","data-v-2376fca5"]]),layouts$1={flex:Flex,grid:Grid,notebook:Notebook},scriptRel="modulepreload",assetsURL=function(e){return"/dashboard/"+e},seen={},__vitePreload=function(t,r,a){let o=Promise.resolve();if(r&&r.length>0){const u=document.getElementsByTagName("link");o=Promise.all(r.map(d=>{if(d=assetsURL(d),d in seen)return;seen[d]=!0;const f=d.endsWith(".css"),g=f?'[rel="stylesheet"]':"";if(!!a)for(let b=u.length-1;b>=0;b--){const v=u[b];if(v.href===d&&(!f||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${g}`))return;const S=document.createElement("link");if(S.rel=f?"stylesheet":scriptRel,f||(S.as="script",S.crossOrigin=""),S.href=d,document.head.appendChild(S),f)return new Promise((b,v)=>{S.addEventListener("load",b),S.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${d}`)))})}))}return o.then(()=>t()).catch(u=>{const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u})};function getDeepValue(e,t,r){if(typeof e>"u"||e===null)return r;let a=!1,o=!1;const u="[",d="]",f=['"',"'"];let g=[],E=0,S=[],b="",v="";const y=()=>{S.length>0&&(g[E]=[S.join("")]),E++,S.length=0};for(let T=0,C=t.length;T<C;T++){const R=t.charAt(T);g[E]=g[E]||[],S=g[E],a?R===d?(a=!1,y()):S.push(R):o?R===v&&b!=="\\"?(o=!1,y()):S.push(R):f.includes(R)?(v=R,o=!0,y()):R===u?(a=!0,y()):R==="."?y():S.push(R),b=R}S.length>0&&(g[E]=[S.join("")]),g=g.flat();for(let T=0,C=g.length;T<C;T++){if(!g[T])continue;const R=g[T].charAt(0),A=g[T].charAt(g[T].length-1);(R==='"'||R==="'")&&(A==='"'||A==="'")&&R===A&&(g[T]=g[T].slice(1,-1))}for(let T=0,C=g.length;T<C;T++)if(g[T]!==""){if(e=e[g[T]],typeof e>"u")return r;if(e===null)return null}return e||r}function hasProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const escapeTest$1=/[&<>"']/,escapeReplace$1=new RegExp(escapeTest$1.source,"g"),escapeTestNoEncode$1=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode$1=new RegExp(escapeTestNoEncode$1.source,"g"),escapeReplacements$1={"&":"&","<":"<",">":">",'"':""","'":"'"},getEscapeReplacement$1=e=>escapeReplacements$1[e];function escapeHTML$1(e,t){if(t){if(escapeTest$1.test(e))return e.replace(escapeReplace$1,getEscapeReplacement$1)}else if(escapeTestNoEncode$1.test(e))return e.replace(escapeReplaceNoEncode$1,getEscapeReplacement$1);return e}function importExternalComponent(e,t,r=null){return defineAsyncComponent(async()=>{var a;return(a=window[t])!=null&&a[r]?window[t][r]:(window[t]=window[t]||{},window[t][r]=(async()=>{if(await __vitePreload(()=>import(`/resources/${e}`),__vite__mapDeps([])),!window[t])throw new Error(`Loaded /resources/${e} but library ${t} not found, is that the correct name?`);if(!window[t][r])throw console.warn(`Failed to find ${r} in ${t}`,window[t]),new Error(`Loaded /resources/${e} and library ${t}, but component ${r} didn't appear to be exported, is that the correct name?`);return window[t][r]})(),await window[t][r])})}function useDataTracker(e,t,r){const a=useStore(),o=inject$1("$socket");onMounted(()=>{o&&(o.on("widget-load:"+e,u=>{r?r(u):u&&a.commit("data/bind",{widgetId:e,msg:u})}),o.on("msg-input:"+e,u=>{"enabled"in u&&a.commit("ui/widgetState",{widgetId:e,enabled:u.enabled}),"visible"in u&&a.commit("ui/widgetState",{widgetId:e,visible:u.visible}),t?t(u):a.commit("data/bind",{widgetId:e,msg:u})}),o.emit("widget-load",e))}),onUnmounted(()=>{o==null||o.off("msg-input:"+e)})}const _sfc_main$f={name:"DBUIButton",inject:["$socket"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})},state:{type:Object,default:()=>({})}},setup(e){useDataTracker(e.id)},computed:{...mapState("data",["messages"])},methods:{action(e){const t={type:e.type,clientX:e.clientX,clientY:e.clientY,bbox:e.target.getBoundingClientRect()},r=this.messages[this.id]||{};r._event=t,this.$socket.emit("widget-action",this.id,r)}}};function _sfc_render$b(e,t,r,a,o,u){const d=resolveComponent("v-btn");return openBlock(),createBlock(d,{block:"",variant:"flat",disabled:!r.state.enabled,onClick:u.action},{default:withCtx(()=>[createTextVNode(toDisplayString(r.props.label),1)]),_:1},8,["disabled","onClick"])}const UIButton=_export_sfc(_sfc_main$f,[["render",_sfc_render$b]]);/*!
|
|
22
|
+
*/var storeKey="store";function useStore(e){return e===void 0&&(e=null),inject$1(e!==null?e:storeKey)}function find$1(e,t){return e.filter(t)[0]}function deepCopy(e,t){if(t===void 0&&(t=[]),e===null||typeof e!="object")return e;var r=find$1(t,function(o){return o.original===e});if(r)return r.copy;var a=Array.isArray(e)?[]:{};return t.push({original:e,copy:a}),Object.keys(e).forEach(function(o){a[o]=deepCopy(e[o],t)}),a}function forEachValue(e,t){Object.keys(e).forEach(function(r){return t(e[r],r)})}function isObject$5(e){return e!==null&&typeof e=="object"}function isPromise(e){return e&&typeof e.then=="function"}function partial(e,t){return function(){return e(t)}}function genericSubscribe(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var a=t.indexOf(e);a>-1&&t.splice(a,1)}}function resetStore(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;installModule(e,r,[],e._modules.root,!0),resetStoreState(e,r,t)}function resetStoreState(e,t,r){var a=e._state,o=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var u=e._wrappedGetters,d={},f={},g=effectScope(!0);g.run(function(){forEachValue(u,function(E,S){d[S]=partial(E,e),f[S]=computed(function(){return d[S]()}),Object.defineProperty(e.getters,S,{get:function(){return f[S].value},enumerable:!0})})}),e._state=reactive({data:t}),e._scope=g,e.strict&&enableStrictMode(e),a&&r&&e._withCommit(function(){a.data=null}),o&&o.stop()}function installModule(e,t,r,a,o){var u=!r.length,d=e._modules.getNamespace(r);if(a.namespaced&&(e._modulesNamespaceMap[d],e._modulesNamespaceMap[d]=a),!u&&!o){var f=getNestedState(t,r.slice(0,-1)),g=r[r.length-1];e._withCommit(function(){f[g]=a.state})}var E=a.context=makeLocalContext(e,d,r);a.forEachMutation(function(S,b){var v=d+b;registerMutation(e,v,S,E)}),a.forEachAction(function(S,b){var v=S.root?b:d+b,y=S.handler||S;registerAction(e,v,y,E)}),a.forEachGetter(function(S,b){var v=d+b;registerGetter(e,v,S,E)}),a.forEachChild(function(S,b){installModule(e,t,r.concat(b),S,o)})}function makeLocalContext(e,t,r){var a=t==="",o={dispatch:a?e.dispatch:function(u,d,f){var g=unifyObjectStyle(u,d,f),E=g.payload,S=g.options,b=g.type;return(!S||!S.root)&&(b=t+b),e.dispatch(b,E)},commit:a?e.commit:function(u,d,f){var g=unifyObjectStyle(u,d,f),E=g.payload,S=g.options,b=g.type;(!S||!S.root)&&(b=t+b),e.commit(b,E,S)}};return Object.defineProperties(o,{getters:{get:a?function(){return e.getters}:function(){return makeLocalGetters(e,t)}},state:{get:function(){return getNestedState(e.state,r)}}}),o}function makeLocalGetters(e,t){if(!e._makeLocalGettersCache[t]){var r={},a=t.length;Object.keys(e.getters).forEach(function(o){if(o.slice(0,a)===t){var u=o.slice(a);Object.defineProperty(r,u,{get:function(){return e.getters[o]},enumerable:!0})}}),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function registerMutation(e,t,r,a){var o=e._mutations[t]||(e._mutations[t]=[]);o.push(function(d){r.call(e,a.state,d)})}function registerAction(e,t,r,a){var o=e._actions[t]||(e._actions[t]=[]);o.push(function(d){var f=r.call(e,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:e.getters,rootState:e.state},d);return isPromise(f)||(f=Promise.resolve(f)),e._devtoolHook?f.catch(function(g){throw e._devtoolHook.emit("vuex:error",g),g}):f})}function registerGetter(e,t,r,a){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(u){return r(a.state,a.getters,u.state,u.getters)})}function enableStrictMode(e){watch(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function getNestedState(e,t){return t.reduce(function(r,a){return r[a]},e)}function unifyObjectStyle(e,t,r){return isObject$5(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}var LABEL_VUEX_BINDINGS="vuex bindings",MUTATIONS_LAYER_ID="vuex:mutations",ACTIONS_LAYER_ID="vuex:actions",INSPECTOR_ID="vuex",actionId=0;function addDevtools(e,t){setupDevtoolsPlugin({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:[LABEL_VUEX_BINDINGS]},function(r){r.addTimelineLayer({id:MUTATIONS_LAYER_ID,label:"Vuex Mutations",color:COLOR_LIME_500}),r.addTimelineLayer({id:ACTIONS_LAYER_ID,label:"Vuex Actions",color:COLOR_LIME_500}),r.addInspector({id:INSPECTOR_ID,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(a){if(a.app===e&&a.inspectorId===INSPECTOR_ID)if(a.filter){var o=[];flattenStoreForInspectorTree(o,t._modules.root,a.filter,""),a.rootNodes=o}else a.rootNodes=[formatStoreForInspectorTree(t._modules.root,"")]}),r.on.getInspectorState(function(a){if(a.app===e&&a.inspectorId===INSPECTOR_ID){var o=a.nodeId;makeLocalGetters(t,o),a.state=formatStoreForInspectorState(getStoreModule(t._modules,o),o==="root"?t.getters:t._makeLocalGettersCache,o)}}),r.on.editInspectorState(function(a){if(a.app===e&&a.inspectorId===INSPECTOR_ID){var o=a.nodeId,u=a.path;o!=="root"&&(u=o.split("/").filter(Boolean).concat(u)),t._withCommit(function(){a.set(t._state.data,u,a.state.value)})}}),t.subscribe(function(a,o){var u={};a.payload&&(u.payload=a.payload),u.state=o,r.notifyComponentUpdate(),r.sendInspectorTree(INSPECTOR_ID),r.sendInspectorState(INSPECTOR_ID),r.addTimelineEvent({layerId:MUTATIONS_LAYER_ID,event:{time:Date.now(),title:a.type,data:u}})}),t.subscribeAction({before:function(a,o){var u={};a.payload&&(u.payload=a.payload),a._id=actionId++,a._time=Date.now(),u.state=o,r.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:a._time,title:a.type,groupId:a._id,subtitle:"start",data:u}})},after:function(a,o){var u={},d=Date.now()-a._time;u.duration={_custom:{type:"duration",display:d+"ms",tooltip:"Action duration",value:d}},a.payload&&(u.payload=a.payload),u.state=o,r.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:Date.now(),title:a.type,groupId:a._id,subtitle:"end",data:u}})}})})}var COLOR_LIME_500=8702998,COLOR_DARK=6710886,COLOR_WHITE=16777215,TAG_NAMESPACED={label:"namespaced",textColor:COLOR_WHITE,backgroundColor:COLOR_DARK};function extractNameFromPath(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function formatStoreForInspectorTree(e,t){return{id:t||"root",label:extractNameFromPath(t),tags:e.namespaced?[TAG_NAMESPACED]:[],children:Object.keys(e._children).map(function(r){return formatStoreForInspectorTree(e._children[r],t+r+"/")})}}function flattenStoreForInspectorTree(e,t,r,a){a.includes(r)&&e.push({id:a||"root",label:a.endsWith("/")?a.slice(0,a.length-1):a||"Root",tags:t.namespaced?[TAG_NAMESPACED]:[]}),Object.keys(t._children).forEach(function(o){flattenStoreForInspectorTree(e,t._children[o],r,a+o+"/")})}function formatStoreForInspectorState(e,t,r){t=r==="root"?t:t[r];var a=Object.keys(t),o={state:Object.keys(e.state).map(function(d){return{key:d,editable:!0,value:e.state[d]}})};if(a.length){var u=transformPathsToObjectTree(t);o.getters=Object.keys(u).map(function(d){return{key:d.endsWith("/")?extractNameFromPath(d):d,editable:!1,value:canThrow(function(){return u[d]})}})}return o}function transformPathsToObjectTree(e){var t={};return Object.keys(e).forEach(function(r){var a=r.split("/");if(a.length>1){var o=t,u=a.pop();a.forEach(function(d){o[d]||(o[d]={_custom:{value:{},display:d,tooltip:"Module",abstract:!0}}),o=o[d]._custom.value}),o[u]=canThrow(function(){return e[r]})}else t[r]=canThrow(function(){return e[r]})}),t}function getStoreModule(e,t){var r=t.split("/").filter(function(a){return a});return r.reduce(function(a,o,u){var d=a[o];if(!d)throw new Error('Missing module "'+o+'" for path "'+t+'".');return u===r.length-1?d:d._children},t==="root"?e:e.root._children)}function canThrow(e){try{return e()}catch(t){return t}}var Module=function(t,r){this.runtime=r,this._children=Object.create(null),this._rawModule=t;var a=t.state;this.state=(typeof a=="function"?a():a)||{}},prototypeAccessors$1={namespaced:{configurable:!0}};prototypeAccessors$1.namespaced.get=function(){return!!this._rawModule.namespaced};Module.prototype.addChild=function(t,r){this._children[t]=r};Module.prototype.removeChild=function(t){delete this._children[t]};Module.prototype.getChild=function(t){return this._children[t]};Module.prototype.hasChild=function(t){return t in this._children};Module.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)};Module.prototype.forEachChild=function(t){forEachValue(this._children,t)};Module.prototype.forEachGetter=function(t){this._rawModule.getters&&forEachValue(this._rawModule.getters,t)};Module.prototype.forEachAction=function(t){this._rawModule.actions&&forEachValue(this._rawModule.actions,t)};Module.prototype.forEachMutation=function(t){this._rawModule.mutations&&forEachValue(this._rawModule.mutations,t)};Object.defineProperties(Module.prototype,prototypeAccessors$1);var ModuleCollection=function(t){this.register([],t,!1)};ModuleCollection.prototype.get=function(t){return t.reduce(function(r,a){return r.getChild(a)},this.root)};ModuleCollection.prototype.getNamespace=function(t){var r=this.root;return t.reduce(function(a,o){return r=r.getChild(o),a+(r.namespaced?o+"/":"")},"")};ModuleCollection.prototype.update=function(t){update2([],this.root,t)};ModuleCollection.prototype.register=function(t,r,a){var o=this;a===void 0&&(a=!0);var u=new Module(r,a);if(t.length===0)this.root=u;else{var d=this.get(t.slice(0,-1));d.addChild(t[t.length-1],u)}r.modules&&forEachValue(r.modules,function(f,g){o.register(t.concat(g),f,a)})};ModuleCollection.prototype.unregister=function(t){var r=this.get(t.slice(0,-1)),a=t[t.length-1],o=r.getChild(a);o&&o.runtime&&r.removeChild(a)};ModuleCollection.prototype.isRegistered=function(t){var r=this.get(t.slice(0,-1)),a=t[t.length-1];return r?r.hasChild(a):!1};function update2(e,t,r){if(t.update(r),r.modules)for(var a in r.modules){if(!t.getChild(a))return;update2(e.concat(a),t.getChild(a),r.modules[a])}}function createStore(e){return new Store(e)}var Store=function(t){var r=this;t===void 0&&(t={});var a=t.plugins;a===void 0&&(a=[]);var o=t.strict;o===void 0&&(o=!1);var u=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 ModuleCollection(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=u;var d=this,f=this,g=f.dispatch,E=f.commit;this.dispatch=function(v,y){return g.call(d,v,y)},this.commit=function(v,y,T){return E.call(d,v,y,T)},this.strict=o;var S=this._modules.root.state;installModule(this,S,[],this._modules.root),resetStoreState(this,S),a.forEach(function(b){return b(r)})},prototypeAccessors$2={state:{configurable:!0}};Store.prototype.install=function(t,r){t.provide(r||storeKey,this),t.config.globalProperties.$store=this;var a=this._devtools!==void 0?this._devtools:!1;a&&addDevtools(t,this)};prototypeAccessors$2.state.get=function(){return this._state.data};prototypeAccessors$2.state.set=function(e){};Store.prototype.commit=function(t,r,a){var o=this,u=unifyObjectStyle(t,r,a),d=u.type,f=u.payload,g={type:d,payload:f},E=this._mutations[d];E&&(this._withCommit(function(){E.forEach(function(b){b(f)})}),this._subscribers.slice().forEach(function(S){return S(g,o.state)}))};Store.prototype.dispatch=function(t,r){var a=this,o=unifyObjectStyle(t,r),u=o.type,d=o.payload,f={type:u,payload:d},g=this._actions[u];if(g){try{this._actionSubscribers.slice().filter(function(S){return S.before}).forEach(function(S){return S.before(f,a.state)})}catch{}var E=g.length>1?Promise.all(g.map(function(S){return S(d)})):g[0](d);return new Promise(function(S,b){E.then(function(v){try{a._actionSubscribers.filter(function(y){return y.after}).forEach(function(y){return y.after(f,a.state)})}catch{}S(v)},function(v){try{a._actionSubscribers.filter(function(y){return y.error}).forEach(function(y){return y.error(f,a.state,v)})}catch{}b(v)})})}};Store.prototype.subscribe=function(t,r){return genericSubscribe(t,this._subscribers,r)};Store.prototype.subscribeAction=function(t,r){var a=typeof t=="function"?{before:t}:t;return genericSubscribe(a,this._actionSubscribers,r)};Store.prototype.watch=function(t,r,a){var o=this;return watch(function(){return t(o.state,o.getters)},r,Object.assign({},a))};Store.prototype.replaceState=function(t){var r=this;this._withCommit(function(){r._state.data=t})};Store.prototype.registerModule=function(t,r,a){a===void 0&&(a={}),typeof t=="string"&&(t=[t]),this._modules.register(t,r),installModule(this,this.state,t,this._modules.get(t),a.preserveState),resetStoreState(this,this.state)};Store.prototype.unregisterModule=function(t){var r=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var a=getNestedState(r.state,t.slice(0,-1));delete a[t[t.length-1]]}),resetStore(this)};Store.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};Store.prototype.hotUpdate=function(t){this._modules.update(t),resetStore(this,!0)};Store.prototype._withCommit=function(t){var r=this._committing;this._committing=!0,t(),this._committing=r};Object.defineProperties(Store.prototype,prototypeAccessors$2);var mapState=normalizeNamespace(function(e,t){var r={};return normalizeMap(t).forEach(function(a){var o=a.key,u=a.val;r[o]=function(){var f=this.$store.state,g=this.$store.getters;if(e){var E=getModuleByNamespace(this.$store,"mapState",e);if(!E)return;f=E.context.state,g=E.context.getters}return typeof u=="function"?u.call(this,f,g):f[u]},r[o].vuex=!0}),r}),mapMutations=normalizeNamespace(function(e,t){var r={};return normalizeMap(t).forEach(function(a){var o=a.key,u=a.val;r[o]=function(){for(var f=[],g=arguments.length;g--;)f[g]=arguments[g];var E=this.$store.commit;if(e){var S=getModuleByNamespace(this.$store,"mapMutations",e);if(!S)return;E=S.context.commit}return typeof u=="function"?u.apply(this,[E].concat(f)):E.apply(this.$store,[u].concat(f))}}),r}),mapGetters=normalizeNamespace(function(e,t){var r={};return normalizeMap(t).forEach(function(a){var o=a.key,u=a.val;u=e+u,r[o]=function(){if(!(e&&!getModuleByNamespace(this.$store,"mapGetters",e)))return this.$store.getters[u]},r[o].vuex=!0}),r}),mapActions=normalizeNamespace(function(e,t){var r={};return normalizeMap(t).forEach(function(a){var o=a.key,u=a.val;r[o]=function(){for(var f=[],g=arguments.length;g--;)f[g]=arguments[g];var E=this.$store.dispatch;if(e){var S=getModuleByNamespace(this.$store,"mapActions",e);if(!S)return;E=S.context.dispatch}return typeof u=="function"?u.apply(this,[E].concat(f)):E.apply(this.$store,[u].concat(f))}}),r}),createNamespacedHelpers=function(e){return{mapState:mapState.bind(null,e),mapGetters:mapGetters.bind(null,e),mapMutations:mapMutations.bind(null,e),mapActions:mapActions.bind(null,e)}};function normalizeMap(e){return isValidMap(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function isValidMap(e){return Array.isArray(e)||isObject$5(e)}function normalizeNamespace(e){return function(t,r){return typeof t!="string"?(r=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,r)}}function getModuleByNamespace(e,t,r){var a=e._modulesNamespaceMap[r];return a}function createLogger(e){e===void 0&&(e={});var t=e.collapsed;t===void 0&&(t=!0);var r=e.filter;r===void 0&&(r=function(S,b,v){return!0});var a=e.transformer;a===void 0&&(a=function(S){return S});var o=e.mutationTransformer;o===void 0&&(o=function(S){return S});var u=e.actionFilter;u===void 0&&(u=function(S,b){return!0});var d=e.actionTransformer;d===void 0&&(d=function(S){return S});var f=e.logMutations;f===void 0&&(f=!0);var g=e.logActions;g===void 0&&(g=!0);var E=e.logger;return E===void 0&&(E=console),function(S){var b=deepCopy(S.state);typeof E>"u"||(f&&S.subscribe(function(v,y){var T=deepCopy(y);if(r(v,b,T)){var C=getFormattedTime(),R=o(v),A="mutation "+v.type+C;startMessage(E,A,t),E.log("%c prev state","color: #9E9E9E; font-weight: bold",a(b)),E.log("%c mutation","color: #03A9F4; font-weight: bold",R),E.log("%c next state","color: #4CAF50; font-weight: bold",a(T)),endMessage(E)}b=T}),g&&S.subscribeAction(function(v,y){if(u(v,y)){var T=getFormattedTime(),C=d(v),R="action "+v.type+T;startMessage(E,R,t),E.log("%c action","color: #03A9F4; font-weight: bold",C),endMessage(E)}}))}}function startMessage(e,t,r){var a=r?e.groupCollapsed:e.group;try{a.call(e,t)}catch{e.log(t)}}function endMessage(e){try{e.groupEnd()}catch{e.log("—— log end ——")}}function getFormattedTime(){var e=new Date;return" @ "+pad(e.getHours(),2)+":"+pad(e.getMinutes(),2)+":"+pad(e.getSeconds(),2)+"."+pad(e.getMilliseconds(),3)}function repeat$1(e,t){return new Array(t+1).join(e)}function pad(e,t){return repeat$1("0",t-e.toString().length)+e}var index$1={version:"4.1.0",Store,storeKey,createStore,useStore,mapState,mapMutations,mapGetters,mapActions,createNamespacedHelpers,createLogger};const vuex=Object.freeze(Object.defineProperty({__proto__:null,Store,createLogger,createNamespacedHelpers,createStore,default:index$1,mapActions,mapGetters,mapMutations,mapState,storeKey,useStore},Symbol.toStringTag,{value:"Module"})),_export_sfc=(e,t)=>{const r=e.__vccOpts||e;for(const[a,o]of t)r[a]=o;return r},_sfc_main$m={name:"LoadingAnimation"},_hoisted_1$c={class:"nrdb-loading",width:"64",height:"64",viewBox:"0 0 105 105",xmlns:"http://www.w3.org/2000/svg",fill:"currentFill"},_hoisted_2$b=createStaticVNode('<circle cx="12.5" cy="12.5" r="12.5"><animate attributeName="fill-opacity" begin="0s" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="12.5" cy="52.5" r="12.5" fill-opacity=".5"><animate attributeName="fill-opacity" begin="100ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="52.5" cy="12.5" r="12.5"><animate attributeName="fill-opacity" begin="300ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="52.5" cy="52.5" r="12.5"><animate attributeName="fill-opacity" begin="600ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="92.5" cy="12.5" r="12.5"><animate attributeName="fill-opacity" begin="800ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="92.5" cy="52.5" r="12.5"><animate attributeName="fill-opacity" begin="400ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="12.5" cy="92.5" r="12.5"><animate attributeName="fill-opacity" begin="700ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="52.5" cy="92.5" r="12.5"><animate attributeName="fill-opacity" begin="500ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="92.5" cy="92.5" r="12.5"><animate attributeName="fill-opacity" begin="200ms" dur="1s" values="1;.2;1" calcMode="linear" repeatCount="indefinite"></animate></circle>',9),_hoisted_11$1=[_hoisted_2$b];function _sfc_render$i(e,t,r,a,o,u){return openBlock(),createElementBlock("svg",_hoisted_1$c,_hoisted_11$1)}const DashboardLoading=_export_sfc(_sfc_main$m,[["render",_sfc_render$i]]),_sfc_main$l={name:"DebugData",props:{item:{type:String,required:!0},store:{type:String,required:!0}},data(){return{data:null}},created(){this.getData()},mounted(){this.getData()},methods:{getData(){const e=new XMLHttpRequest;e.open("GET",`/dashboard/_debug/${this.store}store/${this.item}`),e.send(),e.responseType="json",e.onload=()=>{if(e.readyState===4&&e.status===200){const t=e.response;this.data=t}else console.error(`Error: ${e.status}`)}}}},_hoisted_1$b={key:0,style:{padding:"12px",opacity:"0.5"}},_hoisted_2$a={key:1,style:{padding:"12px",opacity:"0.5"}};function _sfc_render$h(e,t,r,a,o,u){const d=resolveComponent("v-btn");return openBlock(),createElementBlock(Fragment,null,[o.data?(openBlock(),createElementBlock("pre",_hoisted_1$b,toDisplayString(o.data),1)):(openBlock(),createElementBlock("p",_hoisted_2$a,"No Data Found")),createVNode(d,{style:{margin:"12px"},variant:"outlined","prepend-icon":"mdi-refresh",onClick:t[0]||(t[0]=f=>u.getData())},{default:withCtx(()=>[createTextVNode("Refresh")]),_:1})],64)}const DebugData=_export_sfc(_sfc_main$l,[["render",_sfc_render$h]]);function getProperty(e,t){return t.split(".").forEach(a=>{e&&(e=e[a])}),e}const _sfc_main$k={name:"DebugView",components:{"debug-data":DebugData},inject:["$socket"],data(){return{view:{tab:"",nested:"properties"},filters:{pages:[],groups:[],widgets:[]},search:{groups:"",widgets:""},messages:[]}},computed:{...mapState("ui",["dashboards","pages","themes","groups","widgets"]),...mapState("data",["messages"]),items:function(){return{dashboards:Object.values(this.dashboards),pages:Object.values(this.pages).filter(e=>this.filters.pages.every(t=>getProperty(e,t.key)===t.value)),themes:Object.values(this.themes),groups:Object.values(this.groups).filter(e=>this.filters.groups.every(t=>getProperty(e,t.key)===t.value)),widgets:Object.values(this.widgets).filter(e=>this.filters.widgets.every(t=>getProperty(e,t.key)===t.value))}},headers:function(){return{dashboards:[{title:"ID",value:"id"},{title:"Name",value:"name"},{title:"Path",value:"path"},{title:"",value:"filter.pages",align:"end"}],themes:[{title:"ID",value:"id"},{title:"Name",value:"name"},{title:"Colors",value:"colors"}],pages:[{title:"ID",value:"id"},{title:"Name",value:"name"},{title:"Path",value:"path"},{title:"Layout",value:"layout"},{title:"",value:"filter.groups",align:"end"}],groups:[{title:"ID",value:"id"},{title:"Name",value:"name"},{title:"Size",value:"size"},{title:"",value:"filter.widgets",align:"end"}],widgets:[{title:"ID",value:"id"},{title:"Type",value:"type"},{title:"Size",value:"size"}]}}},methods:{applyFilter(e,t,r){this.filters[e].push({key:t,value:r}),this.view.tab=e},clearFilter(e,t){this.filters[e].splice(t,1)},refresh(){this.$socket.disconnect(),this.$socket.connect()}}},_hoisted_1$a={class:"nrdb-debug-view"},_hoisted_2$9=createBaseVNode("div",{class:"nrdb-debug-description"},[createBaseVNode("p",null,'Data does not automatically update for each item (as event listeners are managed within the rendered components), you will need to manually "refresh" to see updated data.'),createBaseVNode("p",null,[createTextVNode("This will reconnect the socket connection, where this UI will receive the latest "),createBaseVNode("code",null,"ui-config"),createTextVNode(" message.")])],-1),_hoisted_3$6={key:0,class:"debug-filters"},_hoisted_4$1=createBaseVNode("label",null,"Filters:",-1),_hoisted_5$1={class:"debug-filters-chips"},_hoisted_6$1=["colspan"],_hoisted_7={key:0,class:"debug-filters"},_hoisted_8=createBaseVNode("label",null,"Filters:",-1),_hoisted_9={class:"debug-filters-chips"},_hoisted_10=["colspan"],_hoisted_11={key:0,class:"debug-filters"},_hoisted_12=createBaseVNode("label",null,"Filters:",-1),_hoisted_13={class:"debug-filters-chips"},_hoisted_14=["colspan"];function _sfc_render$g(e,t,r,a,o,u){const d=resolveComponent("v-btn"),f=resolveComponent("v-tab"),g=resolveComponent("v-tabs"),E=resolveComponent("v-data-table"),S=resolveComponent("v-window-item"),b=resolveComponent("v-chip"),v=resolveComponent("debug-data"),y=resolveComponent("v-window"),T=resolveComponent("v-text-field");return openBlock(),createElementBlock("div",_hoisted_1$a,[createBaseVNode("h1",null,[createTextVNode("Dashboard Debug View "),createVNode(d,{variant:"outlined","prepend-icon":"mdi-refresh",onClick:t[0]||(t[0]=C=>u.refresh())},{default:withCtx(()=>[createTextVNode("Refresh")]),_:1})]),_hoisted_2$9,createVNode(g,{modelValue:o.view.tab,"onUpdate:modelValue":t[1]||(t[1]=C=>o.view.tab=C)},{default:withCtx(()=>[createVNode(f,{value:"dashboards"},{default:withCtx(()=>[createTextVNode("Dashboards")]),_:1}),createVNode(f,{value:"themes"},{default:withCtx(()=>[createTextVNode("Themes")]),_:1}),createVNode(f,{value:"pages"},{default:withCtx(()=>[createTextVNode("Pages")]),_:1}),createVNode(f,{value:"groups"},{default:withCtx(()=>[createTextVNode("Groups")]),_:1}),createVNode(f,{value:"widgets"},{default:withCtx(()=>[createTextVNode("Widgets")]),_:1})]),_:1},8,["modelValue"]),createVNode(y,{modelValue:o.view.tab,"onUpdate:modelValue":t[10]||(t[10]=C=>o.view.tab=C)},{default:withCtx(()=>[createVNode(S,{value:"dashboards"},{default:withCtx(()=>[createVNode(E,{headers:u.headers.dashboards,items:u.items.dashboards,"items-per-page":-1},{"item.filter.pages":withCtx(({item:C})=>[createVNode(d,{variant:"outlined",onClick:R=>u.applyFilter("pages","ui",C.id)},{default:withCtx(()=>[createTextVNode("Show Pages")]),_:2},1032,["onClick"])]),bottom:withCtx(()=>[]),_:1},8,["headers","items"])]),_:1}),createVNode(S,{value:"themes"},{default:withCtx(()=>[createVNode(E,{headers:u.headers.themes,items:u.items.themes,"items-per-page":-1},null,8,["headers","items"])]),_:1}),createVNode(S,{value:"pages"},{default:withCtx(()=>[o.filters.pages&&o.filters.pages.length>0?(openBlock(),createElementBlock("div",_hoisted_3$6,[_hoisted_4$1,createBaseVNode("div",_hoisted_5$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.filters.pages,(C,R)=>(openBlock(),createBlock(b,{key:C.key,closable:"","onClick:close":A=>u.clearFilter("pages",R)},{default:withCtx(()=>[createTextVNode(toDisplayString(C.key)+": "+toDisplayString(C.value),1)]),_:2},1032,["onClick:close"]))),128))])])):createCommentVNode("",!0),createVNode(E,{headers:u.headers.pages,items:u.items.pages,"show-expand":"","items-per-page":-1},{"item.filter.groups":withCtx(({item:C})=>[createVNode(d,{variant:"outlined",onClick:R=>u.applyFilter("groups","page",C.id)},{default:withCtx(()=>[createTextVNode("Show Groups")]),_:2},1032,["onClick"])]),"expanded-row":withCtx(({columns:C,item:R})=>[createBaseVNode("tr",null,[createBaseVNode("td",{colspan:C.length,class:"nested-table"},[createVNode(g,{modelValue:o.view.nested,"onUpdate:modelValue":t[2]||(t[2]=A=>o.view.nested=A)},{default:withCtx(()=>[createVNode(f,{value:"properties"},{default:withCtx(()=>[createTextVNode("Properties")]),_:1}),createVNode(f,{value:"statestore"},{default:withCtx(()=>[createTextVNode("Dynamic Properties")]),_:1})]),_:1},8,["modelValue"]),createVNode(y,{modelValue:o.view.nested,"onUpdate:modelValue":t[3]||(t[3]=A=>o.view.nested=A)},{default:withCtx(()=>[createVNode(S,{value:"properties"},{default:withCtx(()=>[createVNode(E,{color:"white",items:Object.entries(R).map(function(A){return{property:A[0],value:A[1],type:typeof A[1]}}),"items-per-page":-1},{bottom:withCtx(()=>[]),_:2},1032,["items"])]),_:2},1024),createVNode(S,{value:"statestore"},{default:withCtx(()=>[createVNode(v,{type:"page",item:R.id,store:"state"},null,8,["item"])]),_:2},1024)]),_:2},1032,["modelValue"])],8,_hoisted_6$1)])]),_:1},8,["headers","items"])]),_:1}),createVNode(S,{value:"groups"},{default:withCtx(()=>[o.filters.groups&&o.filters.groups.length>0?(openBlock(),createElementBlock("div",_hoisted_7,[_hoisted_8,createBaseVNode("div",_hoisted_9,[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.filters.groups,(C,R)=>(openBlock(),createBlock(b,{key:C.key,closable:"","onClick:close":A=>u.clearFilter("groups",R)},{default:withCtx(()=>[createTextVNode(toDisplayString(C.key)+": "+toDisplayString(C.value),1)]),_:2},1032,["onClick:close"]))),128))])])):createCommentVNode("",!0),createVNode(T,{modelValue:o.search.groups,"onUpdate:modelValue":t[4]||(t[4]=C=>o.search.groups=C),label:"Search","prepend-inner-icon":"mdi-magnify","single-line":"",variant:"outlined","hide-details":""},null,8,["modelValue"]),createVNode(E,{headers:u.headers.groups,items:u.items.groups,"items-per-page":-1,"show-expand":"",search:o.search.groups},{"item.size":withCtx(({item:C})=>[createBaseVNode("span",null,toDisplayString(C.width)+"x"+toDisplayString(C.height||"auto"),1)]),"item.filter.widgets":withCtx(({item:C})=>[createVNode(d,{variant:"outlined",onClick:R=>u.applyFilter("widgets","props.group",C.id)},{default:withCtx(()=>[createTextVNode("Show Widgets")]),_:2},1032,["onClick"])]),"expanded-row":withCtx(({columns:C,item:R})=>[createBaseVNode("tr",null,[createBaseVNode("td",{colspan:C.length,class:"nested-table"},[createVNode(g,{modelValue:o.view.nested,"onUpdate:modelValue":t[5]||(t[5]=A=>o.view.nested=A)},{default:withCtx(()=>[createVNode(f,{value:"properties"},{default:withCtx(()=>[createTextVNode("Properties")]),_:1}),createVNode(f,{value:"statestore"},{default:withCtx(()=>[createTextVNode("Dynamic Properties")]),_:1})]),_:1},8,["modelValue"]),createVNode(y,{modelValue:o.view.nested,"onUpdate:modelValue":t[6]||(t[6]=A=>o.view.nested=A)},{default:withCtx(()=>[createVNode(S,{value:"properties"},{default:withCtx(()=>[createVNode(E,{color:"white",items:Object.entries(R).map(function(A){return{property:A[0],value:A[1]}}),"items-per-page":-1},{bottom:withCtx(()=>[]),_:2},1032,["items"])]),_:2},1024),createVNode(S,{value:"statestore"},{default:withCtx(()=>[createVNode(v,{item:R.id,store:"state"},null,8,["item"])]),_:2},1024)]),_:2},1032,["modelValue"])],8,_hoisted_10)])]),_:1},8,["headers","items","search"])]),_:1}),createVNode(S,{value:"widgets"},{default:withCtx(()=>[o.filters.widgets&&o.filters.widgets.length>0?(openBlock(),createElementBlock("div",_hoisted_11,[_hoisted_12,createBaseVNode("div",_hoisted_13,[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.filters.widgets,(C,R)=>(openBlock(),createBlock(b,{key:C.key,closable:"","onClick:close":A=>u.clearFilter("widgets",R)},{default:withCtx(()=>[createTextVNode(toDisplayString(C.key)+": "+toDisplayString(C.value),1)]),_:2},1032,["onClick:close"]))),128))])])):createCommentVNode("",!0),createVNode(T,{modelValue:o.search.widgets,"onUpdate:modelValue":t[7]||(t[7]=C=>o.search.widgets=C),label:"Search","prepend-inner-icon":"mdi-magnify","single-line":"",variant:"outlined","hide-details":""},null,8,["modelValue"]),createVNode(E,{headers:u.headers.widgets,items:u.items.widgets,"items-per-page":-1,"show-expand":"",search:o.search.widgets},{"item.size":withCtx(({item:C})=>[createBaseVNode("span",null,toDisplayString(C.props.width||"auto ")+"x"+toDisplayString(C.props.height||" auto"),1)]),"expanded-row":withCtx(({columns:C,item:R})=>[createBaseVNode("tr",null,[createBaseVNode("td",{colspan:C.length,class:"nested-table"},[createVNode(g,{modelValue:o.view.nested,"onUpdate:modelValue":t[8]||(t[8]=A=>o.view.nested=A)},{default:withCtx(()=>[createVNode(f,{value:"properties"},{default:withCtx(()=>[createTextVNode("Properties")]),_:1}),createVNode(f,{value:"datastore"},{default:withCtx(()=>[createTextVNode("Message History")]),_:1}),createVNode(f,{value:"statestore"},{default:withCtx(()=>[createTextVNode("Dynamic Properties")]),_:1})]),_:1},8,["modelValue"]),createVNode(y,{modelValue:o.view.nested,"onUpdate:modelValue":t[9]||(t[9]=A=>o.view.nested=A)},{default:withCtx(()=>[createVNode(S,{value:"properties"},{default:withCtx(()=>[createVNode(E,{color:"white",items:Object.entries(R.props).map(function(A){return{property:A[0],value:A[1]}}),"items-per-page":-1},{bottom:withCtx(()=>[]),_:2},1032,["items"])]),_:2},1024),createVNode(S,{value:"datastore"},{default:withCtx(()=>[createVNode(v,{widget:R.id,store:"data"},null,8,["widget"])]),_:2},1024),createVNode(S,{value:"statestore"},{default:withCtx(()=>[createVNode(v,{item:R.id,store:"state"},null,8,["item"])]),_:2},1024)]),_:2},1032,["modelValue"])],8,_hoisted_14)])]),_:1},8,["headers","items","search"])]),_:1})]),_:1},8,["modelValue"])])}const DebugView=_export_sfc(_sfc_main$k,[["render",_sfc_render$g]]);function hexToRgb(e){const t=parseInt(e.replace("#",""),16),r=t>>16&255,a=t>>8&255,o=t&255;return[r,a,o]}function getContrast$1(e){const t=hexToRgb(e);return Math.round((parseInt(t[0])*299+parseInt(t[1])*587+parseInt(t[2])*114)/1e3)>125?"#000000":"#ffffff"}const _sfc_main$j={name:"BaslineLayout",props:{pageTitle:{type:String,default:"Page Title Here"}},data(){return{drawer:!1}},computed:{...mapState("ui",["dashboards","pages","themes","pageData","widgets"]),...mapGetters("ui",["siteTemplates","pageTemplates"]),theme:function(){const e=this.pages[this.$route.meta.id];return e?this.themes[e==null?void 0:e.theme].colors:null},orderedPages:function(){return Object.values(this.pages).filter(e=>!("visible"in e&&!e.visible)).sort((e,t)=>e.order-t.order)},uiWidgets:function(){return Object.values(this.widgets).filter(t=>Object.hasOwn(t.props,"ui")&&!!t.props.ui&&!t.props.group&&!t.props.page)},dashboard:function(){const e=Object.keys(this.dashboards)[0];return this.dashboards[e]}},watch:{theme:function(){this.updateTheme()}},mounted(){this.updateTheme()},methods:{go:function(e){this.$router.push({name:e})},updateTheme(){const e=this.$vuetify.theme.themes.nrdb.colors;this.theme&&(e.surface=this.theme.surface,e.primary=this.theme.primary,e["on-primary"]=getContrast$1(this.theme.primary),e.background=this.theme.bgPage,e["group-background"]=this.theme.groupBg,e["group-outline"]=this.theme.groupOutline)},getPageLabel(e){return e.name+(this.dashboard.showPathInSidebar?` (${e.path})`:"")}}},_hoisted_1$9=createBaseVNode("div",{id:"app-bar-actions"},null,-1),_hoisted_2$8={class:"nrdb-layout-overlay"};function _sfc_render$f(e,t,r,a,o,u){const d=resolveComponent("v-app-bar-nav-icon"),f=resolveComponent("v-app-bar-title"),g=resolveComponent("v-app-bar"),E=resolveComponent("v-list-item"),S=resolveComponent("v-list"),b=resolveComponent("v-navigation-drawer"),v=resolveComponent("v-main"),y=resolveComponent("v-app");return openBlock(),createBlock(y,{class:"nrdb-app nrdb-app--baseline"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.siteTemplates(e.$route.meta.dashboard),T=>(openBlock(),createElementBlock("div",{key:T.id,style:{display:"none"}},[createTextVNode(" Loaded site template '"+toDisplayString(T.id)+"' ",1),(openBlock(),createBlock(resolveDynamicComponent(T.component),{id:T.id,props:T.props,state:T.state},null,8,["id","props","state"]))]))),128)),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.pageTemplates(e.$route.meta.id),T=>(openBlock(),createElementBlock("div",{key:T.id,style:{display:"none"}},[createTextVNode(" Loaded site template '"+toDisplayString(T.id)+"' ",1),(openBlock(),createBlock(resolveDynamicComponent(T.component),{id:T.id,props:T.props,state:T.state},null,8,["id","props","state"]))]))),128)),createVNode(g,{elevation:1},{prepend:withCtx(()=>[createVNode(d,{onClick:t[0]||(t[0]=T=>o.drawer=!o.drawer)})]),append:withCtx(()=>[_hoisted_1$9]),default:withCtx(()=>[createVNode(f,null,{default:withCtx(()=>[createTextVNode(toDisplayString(r.pageTitle),1)]),_:1})]),_:1}),createVNode(v,null,{default:withCtx(()=>[createVNode(b,{modelValue:o.drawer,"onUpdate:modelValue":t[1]||(t[1]=T=>o.drawer=T),"data-el":"nav-drawer"},{default:withCtx(()=>[createVNode(S,{nav:""},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.orderedPages,T=>(openBlock(),createBlock(E,{key:T.id,"active-class":"v-list-item--active",disabled:T.disabled||void 0,"prepend-icon":`mdi-${T.icon||"home"}`,title:u.getPageLabel(T),to:{name:T.route.name},link:"","data-nav":T.id},null,8,["disabled","prepend-icon","title","to","data-nav"]))),128))]),_:1})]),_:1},8,["modelValue"]),renderSlot(e.$slots,"default",{class:"nrdb-layout"}),createBaseVNode("div",_hoisted_2$8,[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.uiWidgets,T=>(openBlock(),createBlock(resolveDynamicComponent(T.component),{id:T.id,key:T.id,props:T.props,state:T.state},null,8,["id","props","state"]))),128))])]),_:3})]),_:3})}const BaselineLayout=_export_sfc(_sfc_main$j,[["render",_sfc_render$f]]),_sfc_main$i={name:"LayoutFlex",components:{BaselineLayout},data(){return{rowHeight:45}},computed:{...mapState("ui",["groups","widgets","pages"]),...mapState("data",["properties"]),...mapGetters("ui",["groupsByPage","widgetsByGroup","widgetsByPage"]),orderedGroups:function(){return this.groupsByPage(this.$route.meta.id).filter(t=>"visible"in t?t.visible:!0)},pageWidgets:function(){return this.widgetsByPage(this.$route.meta.id)},page:function(){return this.pages[this.$route.meta.id]}},methods:{getWidgetClass(e){const t=[];t.push(`nrdb-${e.type}`);const r=this.properties[e.id];return e.props.className&&t.push(e.props.className),r&&r.class&&t.push(r.class),t.join(" ")},getGroupClass(e){const t=[];e.className&&t.push(e.className);const r=this.properties[e.id];return r&&r.class&&t.push(r.class),t.join(" ")}}},_hoisted_1$8=["id"],_hoisted_2$7=["id","disabled"],_hoisted_3$5=["id"];function _sfc_render$e(e,t,r,a,o,u){const d=resolveComponent("v-card"),f=resolveComponent("BaselineLayout");return openBlock(),createBlock(f,{"page-title":e.$route.meta.title},{default:withCtx(()=>{var g;return[u.orderedGroups?(openBlock(),createElementBlock("div",{key:0,id:"nrdb-page-"+e.$route.meta.id,class:normalizeClass(["nrdb-layout--flex nrdb-ui-page",(g=u.page)==null?void 0:g.className])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.orderedGroups,E=>(openBlock(),createElementBlock("div",{id:"nrdb-ui-group-"+E.id,key:E.id,class:normalizeClass(["nrdb-ui-group",u.getGroupClass(E)]),disabled:E.disabled===!0?"disabled":null,style:normalizeStyle({width:o.rowHeight*2*E.width+"px"})},[createVNode(d,{variant:"outlined",class:"bg-group-background",style:normalizeStyle({"min-height":o.rowHeight*E.height+"px"})},createSlots({text:withCtx(()=>[createBaseVNode("div",{class:"nrdb-group-widgets nr-db-layout-group--grid",style:normalizeStyle(`grid-template-columns: repeat(${E.width}, 1fr); grid-template-rows: repeat(${E.height}, minmax(${o.rowHeight}px, auto)); `)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.widgetsByGroup(E.id),S=>(openBlock(),createElementBlock("div",{id:"nrdb-ui-widget-"+S.id,key:S.id,class:normalizeClass(["nrdb-ui-widget",u.getWidgetClass(S)]),style:normalizeStyle([{display:"grid"},`grid-template-rows: repeat(${S.props.height}, minmax(${o.rowHeight}px, auto)); grid-column-end: span ${S.props.width||E.width}`])},[(openBlock(),createBlock(resolveDynamicComponent(S.component),{id:S.id,props:S.props,state:S.state,style:normalizeStyle(`grid-row-end: span ${S.props.height}`)},null,8,["id","props","state","style"]))],14,_hoisted_3$5))),128))],4)]),_:2},[E.showTitle?{name:"title",fn:withCtx(()=>[createTextVNode(toDisplayString(E.name),1)]),key:"0"}:void 0]),1032,["style"])],14,_hoisted_2$7))),128))],10,_hoisted_1$8)):createCommentVNode("",!0),createBaseVNode("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.pageWidgets,E=>(openBlock(),createBlock(resolveDynamicComponent(E.component),{id:E.id,key:E.id,props:E.props,state:E.state},null,8,["id","props","state"]))),128))])]}),_:1},8,["page-title"])}const Flex=_export_sfc(_sfc_main$i,[["render",_sfc_render$e],["__scopeId","data-v-0ea52d1d"]]),_sfc_main$h={name:"LayoutGrid",components:{BaselineLayout},data(){return{columns:12,rowHeight:48}},computed:{...mapState("ui",["groups","widgets","pages"]),...mapState("data",["properties"]),...mapGetters("ui",["groupsByPage","widgetsByGroup","widgetsByPage"]),orderedGroups:function(){return this.groupsByPage(this.$route.meta.id).filter(t=>"visible"in t?t.visible:!0)},pageWidgets:function(){return this.widgetsByPage(this.$route.meta.id)},page:function(){return this.pages[this.$route.meta.id]}},methods:{getWidgetClass(e){const t=[];t.push(`nrdb-${e.type}`);const r=this.properties[e.id];return e.props.className&&t.push(e.props.className),r&&r.class&&t.push(r.class),t.join(" ")},getGroupClass(e){const t=[];e.className&&t.push(e.className);const r=this.properties[e.id];return r&&r.class&&t.push(r.class),t.join(" ")}}},_hoisted_1$7=["id"],_hoisted_2$6=["id","disabled"],_hoisted_3$4=["id"];function _sfc_render$d(e,t,r,a,o,u){const d=resolveComponent("v-card"),f=resolveComponent("BaselineLayout");return openBlock(),createBlock(f,{"page-title":e.$route.meta.title},{default:withCtx(()=>{var g;return[u.orderedGroups?(openBlock(),createElementBlock("div",{key:0,id:"nrdb-page-"+e.$route.meta.id,class:normalizeClass(["nrdb-layout--grid nrdb-ui-page",(g=u.page)==null?void 0:g.className])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.orderedGroups,E=>(openBlock(),createElementBlock("div",{id:"nrdb-ui-group-"+E.id,key:E.id,class:normalizeClass(["nrdb-ui-group",u.getGroupClass(E)]),disabled:E.disabled===!0?"disabled":null,style:normalizeStyle(`grid-column-end: span ${E.width}`)},[createVNode(d,{variant:"outlined",class:"bg-group-background"},createSlots({text:withCtx(()=>[createBaseVNode("div",{class:"nrdb-group-widgets nr-db-layout-group--grid",style:normalizeStyle(`grid-template-columns: repeat(${E.width}, 1fr); grid-template-rows: repeat(${E.height}, minmax(${o.rowHeight}, auto)); `)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.widgetsByGroup(E.id),S=>(openBlock(),createElementBlock("div",{id:"nrdb-ui-widget-"+S.id,key:S.id,class:normalizeClass(["nrdb-ui-widget",u.getWidgetClass(S)]),style:normalizeStyle([{display:"grid"},`grid-template-rows: repeat(${S.props.height}, minmax(${o.rowHeight}px, auto)); grid-column-end: span ${S.props.width||E.width}`])},[(openBlock(),createBlock(resolveDynamicComponent(S.component),{id:S.id,props:S.props,state:S.state,style:normalizeStyle(`grid-row-end: span ${S.props.height}`)},null,8,["id","props","state","style"]))],14,_hoisted_3$4))),128))],4)]),_:2},[E.showTitle?{name:"title",fn:withCtx(()=>[createTextVNode(toDisplayString(E.name),1)]),key:"0"}:void 0]),1024)],14,_hoisted_2$6))),128))],10,_hoisted_1$7)):createCommentVNode("",!0),createBaseVNode("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.pageWidgets,E=>(openBlock(),createBlock(resolveDynamicComponent(E.component),{id:E.id,key:E.id,props:E.props,state:E.state},null,8,["id","props","state"]))),128))])]}),_:1},8,["page-title"])}const Grid=_export_sfc(_sfc_main$h,[["render",_sfc_render$d],["__scopeId","data-v-b403de30"]]),_sfc_main$g={name:"LayoutFlex",components:{BaselineLayout},data(){return{rowHeight:45}},computed:{...mapState("ui",["groups","widgets","pages"]),...mapState("data",["properties"]),...mapGetters("ui",["groupsByPage","widgetsByGroup","widgetsByPage"]),orderedGroups:function(){return this.groupsByPage(this.$route.meta.id).filter(t=>"visible"in t?t.visible:!0)},pageWidgets:function(){return this.widgetsByPage(this.$route.meta.id)},page:function(){return this.pages[this.$route.meta.id]}},methods:{getWidgetClass(e){const t=[];t.push(`nrdb-${e.type}`);const r=this.properties[e.id];return e.props.className&&t.push(e.props.className),r&&r.class&&t.push(r.class),t.join(" ")},getGroupClass(e){const t=[];e.className&&t.push(e.className);const r=this.properties[e.id];return r&&r.class&&t.push(r.class),t.join(" ")}}},_hoisted_1$6=["id"],_hoisted_2$5=["id","disabled"],_hoisted_3$3=["id"];function _sfc_render$c(e,t,r,a,o,u){const d=resolveComponent("v-card"),f=resolveComponent("BaselineLayout");return openBlock(),createBlock(f,{"page-title":e.$route.meta.title},{default:withCtx(()=>{var g;return[u.orderedGroups?(openBlock(),createElementBlock("div",{key:0,id:"nrdb-page-"+e.$route.meta.id,class:normalizeClass(["nrdb-layout--notebook nrdb-ui-page",(g=u.page)==null?void 0:g.className])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.orderedGroups,E=>(openBlock(),createElementBlock("div",{id:"nrdb-ui-group-"+E.id,key:E.id,class:normalizeClass(["nrdb-ui-group",u.getGroupClass(E)]),disabled:E.disabled===!0?"disabled":null},[createVNode(d,{variant:"outlined",class:"bg-group-background",style:normalizeStyle({"min-height":o.rowHeight*E.height+"px"})},createSlots({text:withCtx(()=>[createBaseVNode("div",{class:"nr-db-layout-group--grid",style:normalizeStyle(`grid-template-columns: repeat(${E.width}, 1fr); grid-template-rows: repeat(${E.height}, minmax(${o.rowHeight}px, auto)); `)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.widgetsByGroup(E.id),S=>(openBlock(),createElementBlock("div",{id:"nrdb-ui-widget-"+S.id,key:S.id,class:normalizeClass(["nrdb-ui-widget",u.getWidgetClass(S)]),style:normalizeStyle([{display:"grid"},`grid-template-rows: repeat(${S.props.height}, minmax(${o.rowHeight}px, auto)); grid-column-end: span ${S.props.width||E.width}`])},[(openBlock(),createBlock(resolveDynamicComponent(S.component),{id:S.id,props:S.props,state:S.state,style:normalizeStyle(`grid-row-end: span ${S.props.height}`)},null,8,["id","props","state","style"]))],14,_hoisted_3$3))),128))],4)]),_:2},[E.showTitle?{name:"title",fn:withCtx(()=>[createTextVNode(toDisplayString(E.name),1)]),key:"0"}:void 0]),1032,["style"])],10,_hoisted_2$5))),128))],10,_hoisted_1$6)):createCommentVNode("",!0),createBaseVNode("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.pageWidgets,E=>(openBlock(),createBlock(resolveDynamicComponent(E.component),{id:E.id,key:E.id,props:E.props,state:E.state},null,8,["id","props","state"]))),128))])]}),_:1},8,["page-title"])}const Notebook=_export_sfc(_sfc_main$g,[["render",_sfc_render$c],["__scopeId","data-v-2376fca5"]]),layouts$1={flex:Flex,grid:Grid,notebook:Notebook},scriptRel="modulepreload",assetsURL=function(e){return"/dashboard/"+e},seen={},__vitePreload=function(t,r,a){let o=Promise.resolve();if(r&&r.length>0){const u=document.getElementsByTagName("link");o=Promise.all(r.map(d=>{if(d=assetsURL(d),d in seen)return;seen[d]=!0;const f=d.endsWith(".css"),g=f?'[rel="stylesheet"]':"";if(!!a)for(let b=u.length-1;b>=0;b--){const v=u[b];if(v.href===d&&(!f||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${g}`))return;const S=document.createElement("link");if(S.rel=f?"stylesheet":scriptRel,f||(S.as="script",S.crossOrigin=""),S.href=d,document.head.appendChild(S),f)return new Promise((b,v)=>{S.addEventListener("load",b),S.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${d}`)))})}))}return o.then(()=>t()).catch(u=>{const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u})};function getDeepValue(e,t,r){if(typeof e>"u"||e===null)return r;let a=!1,o=!1;const u="[",d="]",f=['"',"'"];let g=[],E=0,S=[],b="",v="";const y=()=>{S.length>0&&(g[E]=[S.join("")]),E++,S.length=0};for(let T=0,C=t.length;T<C;T++){const R=t.charAt(T);g[E]=g[E]||[],S=g[E],a?R===d?(a=!1,y()):S.push(R):o?R===v&&b!=="\\"?(o=!1,y()):S.push(R):f.includes(R)?(v=R,o=!0,y()):R===u?(a=!0,y()):R==="."?y():S.push(R),b=R}S.length>0&&(g[E]=[S.join("")]),g=g.flat();for(let T=0,C=g.length;T<C;T++){if(!g[T])continue;const R=g[T].charAt(0),A=g[T].charAt(g[T].length-1);(R==='"'||R==="'")&&(A==='"'||A==="'")&&R===A&&(g[T]=g[T].slice(1,-1))}for(let T=0,C=g.length;T<C;T++)if(g[T]!==""){if(e=e[g[T]],typeof e>"u")return r;if(e===null)return null}return e||r}function hasProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const escapeTest$1=/[&<>"']/,escapeReplace$1=new RegExp(escapeTest$1.source,"g"),escapeTestNoEncode$1=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode$1=new RegExp(escapeTestNoEncode$1.source,"g"),escapeReplacements$1={"&":"&","<":"<",">":">",'"':""","'":"'"},getEscapeReplacement$1=e=>escapeReplacements$1[e];function escapeHTML$1(e,t){if(t){if(escapeTest$1.test(e))return e.replace(escapeReplace$1,getEscapeReplacement$1)}else if(escapeTestNoEncode$1.test(e))return e.replace(escapeReplaceNoEncode$1,getEscapeReplacement$1);return e}function importExternalComponent(e,t,r=null){return defineAsyncComponent(async()=>{var a;return(a=window[t])!=null&&a[r]?window[t][r]:(window[t]=window[t]||{},window[t][r]=(async()=>{if(await __vitePreload(()=>import(`/resources/${e}`),__vite__mapDeps([])),!window[t])throw new Error(`Loaded /resources/${e} but library ${t} not found, is that the correct name?`);if(!window[t][r])throw console.warn(`Failed to find ${r} in ${t}`,window[t]),new Error(`Loaded /resources/${e} and library ${t}, but component ${r} didn't appear to be exported, is that the correct name?`);return window[t][r]})(),await window[t][r])})}function useDataTracker(e,t,r){const a=useStore(),o=inject$1("$socket");onMounted(()=>{o&&(o.on("widget-load:"+e,u=>{r?r(u):u&&a.commit("data/bind",{widgetId:e,msg:u})}),o.on("msg-input:"+e,u=>{"enabled"in u&&a.commit("ui/widgetState",{widgetId:e,enabled:u.enabled}),"visible"in u&&a.commit("ui/widgetState",{widgetId:e,visible:u.visible}),t?t(u):a.commit("data/bind",{widgetId:e,msg:u})}),o.emit("widget-load",e))}),onUnmounted(()=>{o==null||o.off("msg-input:"+e)})}const _sfc_main$f={name:"DBUIButton",inject:["$socket"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})},state:{type:Object,default:()=>({})}},setup(e){useDataTracker(e.id)},computed:{...mapState("data",["messages"])},methods:{action(e){const t={type:e.type,clientX:e.clientX,clientY:e.clientY,bbox:e.target.getBoundingClientRect()},r=this.messages[this.id]||{};r._event=t,this.$socket.emit("widget-action",this.id,r)}}};function _sfc_render$b(e,t,r,a,o,u){const d=resolveComponent("v-btn");return openBlock(),createBlock(d,{block:"",variant:"flat",disabled:!r.state.enabled,onClick:u.action},{default:withCtx(()=>[createTextVNode(toDisplayString(r.props.label),1)]),_:1},8,["disabled","onClick"])}const UIButton=_export_sfc(_sfc_main$f,[["render",_sfc_render$b]]);/*!
|
|
23
23
|
* @kurkle/color v0.3.2
|
|
24
24
|
* https://github.com/kurkle/color#readme
|
|
25
25
|
* (c) 2023 Jukka Kurkela
|
|
@@ -103,8 +103,8 @@ Please report this to https://github.com/markedjs/marked.`,e){const o="<p>An err
|
|
|
103
103
|
`)),d+=b+a[g+1]}),d}var dayjs_min={exports:{}};(function(e,t){(function(r,a){e.exports=a()})(commonjsGlobal,function(){var r=1e3,a=6e4,o=36e5,u="millisecond",d="second",f="minute",g="hour",E="day",S="week",b="month",v="quarter",y="year",T="date",C="Invalid Date",R=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,N={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(U){var z=["th","st","nd","rd"],K=U%100;return"["+U+(z[(K-20)%10]||z[K]||z[0])+"]"}},I=function(U,z,K){var Q=String(U);return!Q||Q.length>=z?U:""+Array(z+1-Q.length).join(K)+U},O={s:I,z:function(U){var z=-U.utcOffset(),K=Math.abs(z),Q=Math.floor(K/60),Y=K%60;return(z<=0?"+":"-")+I(Q,2,"0")+":"+I(Y,2,"0")},m:function U(z,K){if(z.date()<K.date())return-U(K,z);var Q=12*(K.year()-z.year())+(K.month()-z.month()),Y=z.clone().add(Q,b),G=K-Y<0,j=z.clone().add(Q+(G?-1:1),b);return+(-(Q+(K-Y)/(G?Y-j:j-Y))||0)},a:function(U){return U<0?Math.ceil(U)||0:Math.floor(U)},p:function(U){return{M:b,y,w:S,d:E,D:T,h:g,m:f,s:d,ms:u,Q:v}[U]||String(U||"").toLowerCase().replace(/s$/,"")},u:function(U){return U===void 0}},x="en",D={};D[x]=N;var k=function(U){return U instanceof B},P=function U(z,K,Q){var Y;if(!z)return x;if(typeof z=="string"){var G=z.toLowerCase();D[G]&&(Y=G),K&&(D[G]=K,Y=G);var j=z.split("-");if(!Y&&j.length>1)return U(j[0])}else{var ne=z.name;D[ne]=z,Y=ne}return!Q&&Y&&(x=Y),Y||!Q&&x},L=function(U,z){if(k(U))return U.clone();var K=typeof z=="object"?z:{};return K.date=U,K.args=arguments,new B(K)},F=O;F.l=P,F.i=k,F.w=function(U,z){return L(U,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var B=function(){function U(K){this.$L=P(K.locale,null,!0),this.parse(K)}var z=U.prototype;return z.parse=function(K){this.$d=function(Q){var Y=Q.date,G=Q.utc;if(Y===null)return new Date(NaN);if(F.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var j=Y.match(R);if(j){var ne=j[2]-1||0,ie=(j[7]||"0").substring(0,3);return G?new Date(Date.UTC(j[1],ne,j[3]||1,j[4]||0,j[5]||0,j[6]||0,ie)):new Date(j[1],ne,j[3]||1,j[4]||0,j[5]||0,j[6]||0,ie)}}return new Date(Y)}(K),this.$x=K.x||{},this.init()},z.init=function(){var K=this.$d;this.$y=K.getFullYear(),this.$M=K.getMonth(),this.$D=K.getDate(),this.$W=K.getDay(),this.$H=K.getHours(),this.$m=K.getMinutes(),this.$s=K.getSeconds(),this.$ms=K.getMilliseconds()},z.$utils=function(){return F},z.isValid=function(){return this.$d.toString()!==C},z.isSame=function(K,Q){var Y=L(K);return this.startOf(Q)<=Y&&Y<=this.endOf(Q)},z.isAfter=function(K,Q){return L(K)<this.startOf(Q)},z.isBefore=function(K,Q){return this.endOf(Q)<L(K)},z.$g=function(K,Q,Y){return F.u(K)?this[Q]:this.set(Y,K)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(K,Q){var Y=this,G=!!F.u(Q)||Q,j=F.p(K),ne=function(oe,ce){var se=F.w(Y.$u?Date.UTC(Y.$y,ce,oe):new Date(Y.$y,ce,oe),Y);return G?se:se.endOf(E)},ie=function(oe,ce){return F.w(Y.toDate()[oe].apply(Y.toDate("s"),(G?[0,0,0,0]:[23,59,59,999]).slice(ce)),Y)},te=this.$W,ue=this.$M,ge=this.$D,Ee="set"+(this.$u?"UTC":"");switch(j){case y:return G?ne(1,0):ne(31,11);case b:return G?ne(1,ue):ne(0,ue+1);case S:var ae=this.$locale().weekStart||0,ee=(te<ae?te+7:te)-ae;return ne(G?ge-ee:ge+(6-ee),ue);case E:case T:return ie(Ee+"Hours",0);case g:return ie(Ee+"Minutes",1);case f:return ie(Ee+"Seconds",2);case d:return ie(Ee+"Milliseconds",3);default:return this.clone()}},z.endOf=function(K){return this.startOf(K,!1)},z.$set=function(K,Q){var Y,G=F.p(K),j="set"+(this.$u?"UTC":""),ne=(Y={},Y[E]=j+"Date",Y[T]=j+"Date",Y[b]=j+"Month",Y[y]=j+"FullYear",Y[g]=j+"Hours",Y[f]=j+"Minutes",Y[d]=j+"Seconds",Y[u]=j+"Milliseconds",Y)[G],ie=G===E?this.$D+(Q-this.$W):Q;if(G===b||G===y){var te=this.clone().set(T,1);te.$d[ne](ie),te.init(),this.$d=te.set(T,Math.min(this.$D,te.daysInMonth())).$d}else ne&&this.$d[ne](ie);return this.init(),this},z.set=function(K,Q){return this.clone().$set(K,Q)},z.get=function(K){return this[F.p(K)]()},z.add=function(K,Q){var Y,G=this;K=Number(K);var j=F.p(Q),ne=function(ue){var ge=L(G);return F.w(ge.date(ge.date()+Math.round(ue*K)),G)};if(j===b)return this.set(b,this.$M+K);if(j===y)return this.set(y,this.$y+K);if(j===E)return ne(1);if(j===S)return ne(7);var ie=(Y={},Y[f]=a,Y[g]=o,Y[d]=r,Y)[j]||1,te=this.$d.getTime()+K*ie;return F.w(te,this)},z.subtract=function(K,Q){return this.add(-1*K,Q)},z.format=function(K){var Q=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||C;var G=K||"YYYY-MM-DDTHH:mm:ssZ",j=F.z(this),ne=this.$H,ie=this.$m,te=this.$M,ue=Y.weekdays,ge=Y.months,Ee=Y.meridiem,ae=function(ce,se,Se,W){return ce&&(ce[se]||ce(Q,G))||Se[se].slice(0,W)},ee=function(ce){return F.s(ne%12||12,ce,"0")},oe=Ee||function(ce,se,Se){var W=ce<12?"AM":"PM";return Se?W.toLowerCase():W};return G.replace(A,function(ce,se){return se||function(Se){switch(Se){case"YY":return String(Q.$y).slice(-2);case"YYYY":return F.s(Q.$y,4,"0");case"M":return te+1;case"MM":return F.s(te+1,2,"0");case"MMM":return ae(Y.monthsShort,te,ge,3);case"MMMM":return ae(ge,te);case"D":return Q.$D;case"DD":return F.s(Q.$D,2,"0");case"d":return String(Q.$W);case"dd":return ae(Y.weekdaysMin,Q.$W,ue,2);case"ddd":return ae(Y.weekdaysShort,Q.$W,ue,3);case"dddd":return ue[Q.$W];case"H":return String(ne);case"HH":return F.s(ne,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return oe(ne,ie,!0);case"A":return oe(ne,ie,!1);case"m":return String(ie);case"mm":return F.s(ie,2,"0");case"s":return String(Q.$s);case"ss":return F.s(Q.$s,2,"0");case"SSS":return F.s(Q.$ms,3,"0");case"Z":return j}return null}(ce)||j.replace(":","")})},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(K,Q,Y){var G,j=this,ne=F.p(Q),ie=L(K),te=(ie.utcOffset()-this.utcOffset())*a,ue=this-ie,ge=function(){return F.m(j,ie)};switch(ne){case y:G=ge()/12;break;case b:G=ge();break;case v:G=ge()/3;break;case S:G=(ue-te)/6048e5;break;case E:G=(ue-te)/864e5;break;case g:G=ue/o;break;case f:G=ue/a;break;case d:G=ue/r;break;default:G=ue}return Y?G:F.a(G)},z.daysInMonth=function(){return this.endOf(b).$D},z.$locale=function(){return D[this.$L]},z.locale=function(K,Q){if(!K)return this.$L;var Y=this.clone(),G=P(K,Q,!0);return G&&(Y.$L=G),Y},z.clone=function(){return F.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},U}(),$=B.prototype;return L.prototype=$,[["$ms",u],["$s",d],["$m",f],["$H",g],["$W",E],["$M",b],["$y",y],["$D",T]].forEach(function(U){$[U[1]]=function(z){return this.$g(z,U[0],U[1])}}),L.extend=function(U,z){return U.$i||(U(z,B,L),U.$i=!0),L},L.locale=P,L.isDayjs=k,L.unix=function(U){return L(1e3*U)},L.en=D[x],L.Ls=D,L.p={},L})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const dayjs=getDefaultExportFromCjs(dayjs_minExports);var dist={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=e.BLANK_URL=void 0;var t=/^([^\w]*)(javascript|data|vbscript)/im,r=/&#(\w+)(^\w|;)?/g,a=/&(newline|tab);/gi,o=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,u=/^.+(:|:)/gim,d=[".","/"];e.BLANK_URL="about:blank";function f(S){return d.indexOf(S[0])>-1}function g(S){var b=S.replace(o,"");return b.replace(r,function(v,y){return String.fromCharCode(y)})}function E(S){if(!S)return e.BLANK_URL;var b=g(S).replace(a,"").replace(o,"").trim();if(!b)return e.BLANK_URL;if(f(b))return b;var v=b.match(u);if(!v)return b;var y=v[0];return t.test(y)?e.BLANK_URL:b}e.sanitizeUrl=E})(dist);var noop$3={value:()=>{}};function dispatch(){for(var e=0,t=arguments.length,r={},a;e<t;++e){if(!(a=arguments[e]+"")||a in r||/[\s.]/.test(a))throw new Error("illegal type: "+a);r[a]=[]}return new Dispatch(r)}function Dispatch(e){this._=e}function parseTypenames$1(e,t){return e.trim().split(/^|\s+/).map(function(r){var a="",o=r.indexOf(".");if(o>=0&&(a=r.slice(o+1),r=r.slice(0,o)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}Dispatch.prototype=dispatch.prototype={constructor:Dispatch,on:function(e,t){var r=this._,a=parseTypenames$1(e+"",r),o,u=-1,d=a.length;if(arguments.length<2){for(;++u<d;)if((o=(e=a[u]).type)&&(o=get$1(r[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++u<d;)if(o=(e=a[u]).type)r[o]=set$2(r[o],e.name,t);else if(t==null)for(o in r)r[o]=set$2(r[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Dispatch(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var r=new Array(o),a=0,o,u;a<o;++a)r[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(u=this._[e],a=0,o=u.length;a<o;++a)u[a].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var a=this._[e],o=0,u=a.length;o<u;++o)a[o].value.apply(t,r)}};function get$1(e,t){for(var r=0,a=e.length,o;r<a;++r)if((o=e[r]).name===t)return o.value}function set$2(e,t,r){for(var a=0,o=e.length;a<o;++a)if(e[a].name===t){e[a]=noop$3,e=e.slice(0,a).concat(e.slice(a+1));break}return r!=null&&e.push({name:t,value:r}),e}var xhtml="http://www.w3.org/1999/xhtml";const namespaces={svg:"http://www.w3.org/2000/svg",xhtml,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function namespace(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),namespaces.hasOwnProperty(t)?{space:namespaces[t],local:e}:e}function creatorInherit(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===xhtml&&t.documentElement.namespaceURI===xhtml?t.createElement(e):t.createElementNS(r,e)}}function creatorFixed(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function creator(e){var t=namespace(e);return(t.local?creatorFixed:creatorInherit)(t)}function none(){}function selector(e){return e==null?none:function(){return this.querySelector(e)}}function selection_select(e){typeof e!="function"&&(e=selector(e));for(var t=this._groups,r=t.length,a=new Array(r),o=0;o<r;++o)for(var u=t[o],d=u.length,f=a[o]=new Array(d),g,E,S=0;S<d;++S)(g=u[S])&&(E=e.call(g,g.__data__,S,u))&&("__data__"in g&&(E.__data__=g.__data__),f[S]=E);return new Selection$1(a,this._parents)}function array(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function empty$3(){return[]}function selectorAll(e){return e==null?empty$3:function(){return this.querySelectorAll(e)}}function arrayAll(e){return function(){return array(e.apply(this,arguments))}}function selection_selectAll(e){typeof e=="function"?e=arrayAll(e):e=selectorAll(e);for(var t=this._groups,r=t.length,a=[],o=[],u=0;u<r;++u)for(var d=t[u],f=d.length,g,E=0;E<f;++E)(g=d[E])&&(a.push(e.call(g,g.__data__,E,d)),o.push(g));return new Selection$1(a,o)}function matcher(e){return function(){return this.matches(e)}}function childMatcher(e){return function(t){return t.matches(e)}}var find=Array.prototype.find;function childFind(e){return function(){return find.call(this.children,e)}}function childFirst(){return this.firstElementChild}function selection_selectChild(e){return this.select(e==null?childFirst:childFind(typeof e=="function"?e:childMatcher(e)))}var filter=Array.prototype.filter;function children(){return Array.from(this.children)}function childrenFilter(e){return function(){return filter.call(this.children,e)}}function selection_selectChildren(e){return this.selectAll(e==null?children:childrenFilter(typeof e=="function"?e:childMatcher(e)))}function selection_filter(e){typeof e!="function"&&(e=matcher(e));for(var t=this._groups,r=t.length,a=new Array(r),o=0;o<r;++o)for(var u=t[o],d=u.length,f=a[o]=[],g,E=0;E<d;++E)(g=u[E])&&e.call(g,g.__data__,E,u)&&f.push(g);return new Selection$1(a,this._parents)}function sparse(e){return new Array(e.length)}function selection_enter(){return new Selection$1(this._enter||this._groups.map(sparse),this._parents)}function EnterNode(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}EnterNode.prototype={constructor:EnterNode,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function constant$2(e){return function(){return e}}function bindIndex(e,t,r,a,o,u){for(var d=0,f,g=t.length,E=u.length;d<E;++d)(f=t[d])?(f.__data__=u[d],a[d]=f):r[d]=new EnterNode(e,u[d]);for(;d<g;++d)(f=t[d])&&(o[d]=f)}function bindKey(e,t,r,a,o,u,d){var f,g,E=new Map,S=t.length,b=u.length,v=new Array(S),y;for(f=0;f<S;++f)(g=t[f])&&(v[f]=y=d.call(g,g.__data__,f,t)+"",E.has(y)?o[f]=g:E.set(y,g));for(f=0;f<b;++f)y=d.call(e,u[f],f,u)+"",(g=E.get(y))?(a[f]=g,g.__data__=u[f],E.delete(y)):r[f]=new EnterNode(e,u[f]);for(f=0;f<S;++f)(g=t[f])&&E.get(v[f])===g&&(o[f]=g)}function datum(e){return e.__data__}function selection_data(e,t){if(!arguments.length)return Array.from(this,datum);var r=t?bindKey:bindIndex,a=this._parents,o=this._groups;typeof e!="function"&&(e=constant$2(e));for(var u=o.length,d=new Array(u),f=new Array(u),g=new Array(u),E=0;E<u;++E){var S=a[E],b=o[E],v=b.length,y=arraylike(e.call(S,S&&S.__data__,E,a)),T=y.length,C=f[E]=new Array(T),R=d[E]=new Array(T),A=g[E]=new Array(v);r(S,b,C,R,A,y,t);for(var N=0,I=0,O,x;N<T;++N)if(O=C[N]){for(N>=I&&(I=N+1);!(x=R[I])&&++I<T;);O._next=x||null}}return d=new Selection$1(d,a),d._enter=f,d._exit=g,d}function arraylike(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function selection_exit(){return new Selection$1(this._exit||this._groups.map(sparse),this._parents)}function selection_join(e,t,r){var a=this.enter(),o=this,u=this.exit();return typeof e=="function"?(a=e(a),a&&(a=a.selection())):a=a.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),r==null?u.remove():r(u),a&&o?a.merge(o).order():o}function selection_merge(e){for(var t=e.selection?e.selection():e,r=this._groups,a=t._groups,o=r.length,u=a.length,d=Math.min(o,u),f=new Array(o),g=0;g<d;++g)for(var E=r[g],S=a[g],b=E.length,v=f[g]=new Array(b),y,T=0;T<b;++T)(y=E[T]||S[T])&&(v[T]=y);for(;g<o;++g)f[g]=r[g];return new Selection$1(f,this._parents)}function selection_order(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var a=e[t],o=a.length-1,u=a[o],d;--o>=0;)(d=a[o])&&(u&&d.compareDocumentPosition(u)^4&&u.parentNode.insertBefore(d,u),u=d);return this}function selection_sort(e){e||(e=ascending);function t(b,v){return b&&v?e(b.__data__,v.__data__):!b-!v}for(var r=this._groups,a=r.length,o=new Array(a),u=0;u<a;++u){for(var d=r[u],f=d.length,g=o[u]=new Array(f),E,S=0;S<f;++S)(E=d[S])&&(g[S]=E);g.sort(t)}return new Selection$1(o,this._parents).order()}function ascending(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function selection_call(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function selection_nodes(){return Array.from(this)}function selection_node(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var a=e[t],o=0,u=a.length;o<u;++o){var d=a[o];if(d)return d}return null}function selection_size(){let e=0;for(const t of this)++e;return e}function selection_empty(){return!this.node()}function selection_each(e){for(var t=this._groups,r=0,a=t.length;r<a;++r)for(var o=t[r],u=0,d=o.length,f;u<d;++u)(f=o[u])&&e.call(f,f.__data__,u,o);return this}function attrRemove$1(e){return function(){this.removeAttribute(e)}}function attrRemoveNS$1(e){return function(){this.removeAttributeNS(e.space,e.local)}}function attrConstant$1(e,t){return function(){this.setAttribute(e,t)}}function attrConstantNS$1(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function attrFunction$1(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function attrFunctionNS$1(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function selection_attr(e,t){var r=namespace(e);if(arguments.length<2){var a=this.node();return r.local?a.getAttributeNS(r.space,r.local):a.getAttribute(r)}return this.each((t==null?r.local?attrRemoveNS$1:attrRemove$1:typeof t=="function"?r.local?attrFunctionNS$1:attrFunction$1:r.local?attrConstantNS$1:attrConstant$1)(r,t))}function defaultView(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function styleRemove$1(e){return function(){this.style.removeProperty(e)}}function styleConstant$1(e,t,r){return function(){this.style.setProperty(e,t,r)}}function styleFunction$1(e,t,r){return function(){var a=t.apply(this,arguments);a==null?this.style.removeProperty(e):this.style.setProperty(e,a,r)}}function selection_style(e,t,r){return arguments.length>1?this.each((t==null?styleRemove$1:typeof t=="function"?styleFunction$1:styleConstant$1)(e,t,r??"")):styleValue(this.node(),e)}function styleValue(e,t){return e.style.getPropertyValue(t)||defaultView(e).getComputedStyle(e,null).getPropertyValue(t)}function propertyRemove(e){return function(){delete this[e]}}function propertyConstant(e,t){return function(){this[e]=t}}function propertyFunction(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function selection_property(e,t){return arguments.length>1?this.each((t==null?propertyRemove:typeof t=="function"?propertyFunction:propertyConstant)(e,t)):this.node()[e]}function classArray(e){return e.trim().split(/^|\s+/)}function classList(e){return e.classList||new ClassList(e)}function ClassList(e){this._node=e,this._names=classArray(e.getAttribute("class")||"")}ClassList.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function classedAdd(e,t){for(var r=classList(e),a=-1,o=t.length;++a<o;)r.add(t[a])}function classedRemove(e,t){for(var r=classList(e),a=-1,o=t.length;++a<o;)r.remove(t[a])}function classedTrue(e){return function(){classedAdd(this,e)}}function classedFalse(e){return function(){classedRemove(this,e)}}function classedFunction(e,t){return function(){(t.apply(this,arguments)?classedAdd:classedRemove)(this,e)}}function selection_classed(e,t){var r=classArray(e+"");if(arguments.length<2){for(var a=classList(this.node()),o=-1,u=r.length;++o<u;)if(!a.contains(r[o]))return!1;return!0}return this.each((typeof t=="function"?classedFunction:t?classedTrue:classedFalse)(r,t))}function textRemove(){this.textContent=""}function textConstant$1(e){return function(){this.textContent=e}}function textFunction$1(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function selection_text(e){return arguments.length?this.each(e==null?textRemove:(typeof e=="function"?textFunction$1:textConstant$1)(e)):this.node().textContent}function htmlRemove(){this.innerHTML=""}function htmlConstant(e){return function(){this.innerHTML=e}}function htmlFunction(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function selection_html(e){return arguments.length?this.each(e==null?htmlRemove:(typeof e=="function"?htmlFunction:htmlConstant)(e)):this.node().innerHTML}function raise(){this.nextSibling&&this.parentNode.appendChild(this)}function selection_raise(){return this.each(raise)}function lower(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function selection_lower(){return this.each(lower)}function selection_append(e){var t=typeof e=="function"?e:creator(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function constantNull(){return null}function selection_insert(e,t){var r=typeof e=="function"?e:creator(e),a=t==null?constantNull:typeof t=="function"?t:selector(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})}function remove(){var e=this.parentNode;e&&e.removeChild(this)}function selection_remove(){return this.each(remove)}function selection_cloneShallow(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function selection_cloneDeep(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function selection_clone(e){return this.select(e?selection_cloneDeep:selection_cloneShallow)}function selection_datum(e){return arguments.length?this.property("__data__",e):this.node().__data__}function contextListener(e){return function(t){e.call(this,t,this.__data__)}}function parseTypenames(e){return e.trim().split(/^|\s+/).map(function(t){var r="",a=t.indexOf(".");return a>=0&&(r=t.slice(a+1),t=t.slice(0,a)),{type:t,name:r}})}function onRemove(e){return function(){var t=this.__on;if(t){for(var r=0,a=-1,o=t.length,u;r<o;++r)u=t[r],(!e.type||u.type===e.type)&&u.name===e.name?this.removeEventListener(u.type,u.listener,u.options):t[++a]=u;++a?t.length=a:delete this.__on}}}function onAdd(e,t,r){return function(){var a=this.__on,o,u=contextListener(t);if(a){for(var d=0,f=a.length;d<f;++d)if((o=a[d]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=u,o.options=r),o.value=t;return}}this.addEventListener(e.type,u,r),o={type:e.type,name:e.name,value:t,listener:u,options:r},a?a.push(o):this.__on=[o]}}function selection_on(e,t,r){var a=parseTypenames(e+""),o,u=a.length,d;if(arguments.length<2){var f=this.node().__on;if(f){for(var g=0,E=f.length,S;g<E;++g)for(o=0,S=f[g];o<u;++o)if((d=a[o]).type===S.type&&d.name===S.name)return S.value}return}for(f=t?onAdd:onRemove,o=0;o<u;++o)this.each(f(a[o],t,r));return this}function dispatchEvent(e,t,r){var a=defaultView(e),o=a.CustomEvent;typeof o=="function"?o=new o(t,r):(o=a.document.createEvent("Event"),r?(o.initEvent(t,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function dispatchConstant(e,t){return function(){return dispatchEvent(this,e,t)}}function dispatchFunction(e,t){return function(){return dispatchEvent(this,e,t.apply(this,arguments))}}function selection_dispatch(e,t){return this.each((typeof t=="function"?dispatchFunction:dispatchConstant)(e,t))}function*selection_iterator(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var a=e[t],o=0,u=a.length,d;o<u;++o)(d=a[o])&&(yield d)}var root$2=[null];function Selection$1(e,t){this._groups=e,this._parents=t}function selection(){return new Selection$1([[document.documentElement]],root$2)}function selection_selection(){return this}Selection$1.prototype=selection.prototype={constructor:Selection$1,select:selection_select,selectAll:selection_selectAll,selectChild:selection_selectChild,selectChildren:selection_selectChildren,filter:selection_filter,data:selection_data,enter:selection_enter,exit:selection_exit,join:selection_join,merge:selection_merge,selection:selection_selection,order:selection_order,sort:selection_sort,call:selection_call,nodes:selection_nodes,node:selection_node,size:selection_size,empty:selection_empty,each:selection_each,attr:selection_attr,style:selection_style,property:selection_property,classed:selection_classed,text:selection_text,html:selection_html,raise:selection_raise,lower:selection_lower,append:selection_append,insert:selection_insert,remove:selection_remove,clone:selection_clone,datum:selection_datum,on:selection_on,dispatch:selection_dispatch,[Symbol.iterator]:selection_iterator};function select(e){return typeof e=="string"?new Selection$1([[document.querySelector(e)]],[document.documentElement]):new Selection$1([[e]],root$2)}function define(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function extend$1(e,t){var r=Object.create(e.prototype);for(var a in t)r[a]=t[a];return r}function Color$2(){}var darker=.7,brighter=1/darker,reI="\\s*([+-]?\\d+)\\s*",reN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",reP="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",reHex=/^#([0-9a-f]{3,8})$/,reRgbInteger=new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),reRgbPercent=new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),reRgbaInteger=new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),reRgbaPercent=new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),reHslPercent=new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),reHslaPercent=new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`),named={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};define(Color$2,color,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHex8:color_formatHex8,formatHsl:color_formatHsl,formatRgb:color_formatRgb,toString:color_formatRgb});function color_formatHex(){return this.rgb().formatHex()}function color_formatHex8(){return this.rgb().formatHex8()}function color_formatHsl(){return hslConvert(this).formatHsl()}function color_formatRgb(){return this.rgb().formatRgb()}function color(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=reHex.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?rgbn(t):r===3?new Rgb(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?rgba$3(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?rgba$3(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=reRgbInteger.exec(e))?new Rgb(t[1],t[2],t[3],1):(t=reRgbPercent.exec(e))?new Rgb(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=reRgbaInteger.exec(e))?rgba$3(t[1],t[2],t[3],t[4]):(t=reRgbaPercent.exec(e))?rgba$3(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=reHslPercent.exec(e))?hsla$1(t[1],t[2]/100,t[3]/100,1):(t=reHslaPercent.exec(e))?hsla$1(t[1],t[2]/100,t[3]/100,t[4]):named.hasOwnProperty(e)?rgbn(named[e]):e==="transparent"?new Rgb(NaN,NaN,NaN,0):null}function rgbn(e){return new Rgb(e>>16&255,e>>8&255,e&255,1)}function rgba$3(e,t,r,a){return a<=0&&(e=t=r=NaN),new Rgb(e,t,r,a)}function rgbConvert(e){return e instanceof Color$2||(e=color(e)),e?(e=e.rgb(),new Rgb(e.r,e.g,e.b,e.opacity)):new Rgb}function rgb$1(e,t,r,a){return arguments.length===1?rgbConvert(e):new Rgb(e,t,r,a??1)}function Rgb(e,t,r,a){this.r=+e,this.g=+t,this.b=+r,this.opacity=+a}define(Rgb,rgb$1,extend$1(Color$2,{brighter(e){return e=e==null?brighter:Math.pow(brighter,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?darker:Math.pow(darker,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb}));function rgb_formatHex(){return`#${hex$1(this.r)}${hex$1(this.g)}${hex$1(this.b)}`}function rgb_formatHex8(){return`#${hex$1(this.r)}${hex$1(this.g)}${hex$1(this.b)}${hex$1((isNaN(this.opacity)?1:this.opacity)*255)}`}function rgb_formatRgb(){const e=clampa(this.opacity);return`${e===1?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${e===1?")":`, ${e})`}`}function clampa(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function clampi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hex$1(e){return e=clampi(e),(e<16?"0":"")+e.toString(16)}function hsla$1(e,t,r,a){return a<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Hsl(e,t,r,a)}function hslConvert(e){if(e instanceof Hsl)return new Hsl(e.h,e.s,e.l,e.opacity);if(e instanceof Color$2||(e=color(e)),!e)return new Hsl;if(e instanceof Hsl)return e;e=e.rgb();var t=e.r/255,r=e.g/255,a=e.b/255,o=Math.min(t,r,a),u=Math.max(t,r,a),d=NaN,f=u-o,g=(u+o)/2;return f?(t===u?d=(r-a)/f+(r<a)*6:r===u?d=(a-t)/f+2:d=(t-r)/f+4,f/=g<.5?u+o:2-u-o,d*=60):f=g>0&&g<1?0:d,new Hsl(d,f,g,e.opacity)}function hsl$1(e,t,r,a){return arguments.length===1?hslConvert(e):new Hsl(e,t,r,a??1)}function Hsl(e,t,r,a){this.h=+e,this.s=+t,this.l=+r,this.opacity=+a}define(Hsl,hsl$1,extend$1(Color$2,{brighter(e){return e=e==null?brighter:Math.pow(brighter,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?darker:Math.pow(darker,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*t,o=2*r-a;return new Rgb(hsl2rgb(e>=240?e-240:e+120,o,a),hsl2rgb(e,o,a),hsl2rgb(e<120?e+240:e-120,o,a),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=clampa(this.opacity);return`${e===1?"hsl(":"hsla("}${clamph(this.h)}, ${clampt(this.s)*100}%, ${clampt(this.l)*100}%${e===1?")":`, ${e})`}`}}));function clamph(e){return e=(e||0)%360,e<0?e+360:e}function clampt(e){return Math.max(0,Math.min(1,e||0))}function hsl2rgb(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const constant$1=e=>()=>e;function linear(e,t){return function(r){return e+r*t}}function exponential(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(a){return Math.pow(e+a*t,r)}}function hue(e,t){var r=t-e;return r?linear(e,r>180||r<-180?r-360*Math.round(r/360):r):constant$1(isNaN(e)?t:e)}function gamma(e){return(e=+e)==1?nogamma:function(t,r){return r-t?exponential(t,r,e):constant$1(isNaN(t)?r:t)}}function nogamma(e,t){var r=t-e;return r?linear(e,r):constant$1(isNaN(e)?t:e)}const interpolateRgb=function e(t){var r=gamma(t);function a(o,u){var d=r((o=rgb$1(o)).r,(u=rgb$1(u)).r),f=r(o.g,u.g),g=r(o.b,u.b),E=nogamma(o.opacity,u.opacity);return function(S){return o.r=d(S),o.g=f(S),o.b=g(S),o.opacity=E(S),o+""}}return a.gamma=e,a}(1);function interpolateNumber(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var reA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,reB=new RegExp(reA.source,"g");function zero(e){return function(){return e}}function one(e){return function(t){return e(t)+""}}function interpolateString(e,t){var r=reA.lastIndex=reB.lastIndex=0,a,o,u,d=-1,f=[],g=[];for(e=e+"",t=t+"";(a=reA.exec(e))&&(o=reB.exec(t));)(u=o.index)>r&&(u=t.slice(r,u),f[d]?f[d]+=u:f[++d]=u),(a=a[0])===(o=o[0])?f[d]?f[d]+=o:f[++d]=o:(f[++d]=null,g.push({i:d,x:interpolateNumber(a,o)})),r=reB.lastIndex;return r<t.length&&(u=t.slice(r),f[d]?f[d]+=u:f[++d]=u),f.length<2?g[0]?one(g[0].x):zero(t):(t=g.length,function(E){for(var S=0,b;S<t;++S)f[(b=g[S]).i]=b.x(E);return f.join("")})}var degrees=180/Math.PI,identity$1={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function decompose(e,t,r,a,o,u){var d,f,g;return(d=Math.sqrt(e*e+t*t))&&(e/=d,t/=d),(g=e*r+t*a)&&(r-=e*g,a-=t*g),(f=Math.sqrt(r*r+a*a))&&(r/=f,a/=f,g/=f),e*a<t*r&&(e=-e,t=-t,g=-g,d=-d),{translateX:o,translateY:u,rotate:Math.atan2(t,e)*degrees,skewX:Math.atan(g)*degrees,scaleX:d,scaleY:f}}var svgNode;function parseCss(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?identity$1:decompose(t.a,t.b,t.c,t.d,t.e,t.f)}function parseSvg(e){return e==null||(svgNode||(svgNode=document.createElementNS("http://www.w3.org/2000/svg","g")),svgNode.setAttribute("transform",e),!(e=svgNode.transform.baseVal.consolidate()))?identity$1:(e=e.matrix,decompose(e.a,e.b,e.c,e.d,e.e,e.f))}function interpolateTransform(e,t,r,a){function o(E){return E.length?E.pop()+" ":""}function u(E,S,b,v,y,T){if(E!==b||S!==v){var C=y.push("translate(",null,t,null,r);T.push({i:C-4,x:interpolateNumber(E,b)},{i:C-2,x:interpolateNumber(S,v)})}else(b||v)&&y.push("translate("+b+t+v+r)}function d(E,S,b,v){E!==S?(E-S>180?S+=360:S-E>180&&(E+=360),v.push({i:b.push(o(b)+"rotate(",null,a)-2,x:interpolateNumber(E,S)})):S&&b.push(o(b)+"rotate("+S+a)}function f(E,S,b,v){E!==S?v.push({i:b.push(o(b)+"skewX(",null,a)-2,x:interpolateNumber(E,S)}):S&&b.push(o(b)+"skewX("+S+a)}function g(E,S,b,v,y,T){if(E!==b||S!==v){var C=y.push(o(y)+"scale(",null,",",null,")");T.push({i:C-4,x:interpolateNumber(E,b)},{i:C-2,x:interpolateNumber(S,v)})}else(b!==1||v!==1)&&y.push(o(y)+"scale("+b+","+v+")")}return function(E,S){var b=[],v=[];return E=e(E),S=e(S),u(E.translateX,E.translateY,S.translateX,S.translateY,b,v),d(E.rotate,S.rotate,b,v),f(E.skewX,S.skewX,b,v),g(E.scaleX,E.scaleY,S.scaleX,S.scaleY,b,v),E=S=null,function(y){for(var T=-1,C=v.length,R;++T<C;)b[(R=v[T]).i]=R.x(y);return b.join("")}}}var interpolateTransformCss=interpolateTransform(parseCss,"px, ","px)","deg)"),interpolateTransformSvg=interpolateTransform(parseSvg,", ",")",")"),frame=0,timeout$1=0,interval=0,pokeDelay=1e3,taskHead,taskTail,clockLast=0,clockNow=0,clockSkew=0,clock=typeof performance=="object"&&performance.now?performance:Date,setFrame=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function now(){return clockNow||(setFrame(clearNow),clockNow=clock.now()+clockSkew)}function clearNow(){clockNow=0}function Timer(){this._call=this._time=this._next=null}Timer.prototype=timer.prototype={constructor:Timer,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?now():+r)+(t==null?0:+t),!this._next&&taskTail!==this&&(taskTail?taskTail._next=this:taskHead=this,taskTail=this),this._call=e,this._time=r,sleep()},stop:function(){this._call&&(this._call=null,this._time=1/0,sleep())}};function timer(e,t,r){var a=new Timer;return a.restart(e,t,r),a}function timerFlush(){now(),++frame;for(var e=taskHead,t;e;)(t=clockNow-e._time)>=0&&e._call.call(void 0,t),e=e._next;--frame}function wake(){clockNow=(clockLast=clock.now())+clockSkew,frame=timeout$1=0;try{timerFlush()}finally{frame=0,nap(),clockNow=0}}function poke(){var e=clock.now(),t=e-clockLast;t>pokeDelay&&(clockSkew-=t,clockLast=e)}function nap(){for(var e,t=taskHead,r,a=1/0;t;)t._call?(a>t._time&&(a=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:taskHead=r);taskTail=e,sleep(a)}function sleep(e){if(!frame){timeout$1&&(timeout$1=clearTimeout(timeout$1));var t=e-clockNow;t>24?(e<1/0&&(timeout$1=setTimeout(wake,e-clock.now()-clockSkew)),interval&&(interval=clearInterval(interval))):(interval||(clockLast=clock.now(),interval=setInterval(poke,pokeDelay)),frame=1,setFrame(wake))}}function timeout(e,t,r){var a=new Timer;return t=t==null?0:+t,a.restart(o=>{a.stop(),e(o+t)},t,r),a}var emptyOn=dispatch("start","end","cancel","interrupt"),emptyTween=[],CREATED=0,SCHEDULED=1,STARTING=2,STARTED=3,RUNNING=4,ENDING=5,ENDED=6;function schedule(e,t,r,a,o,u){var d=e.__transition;if(!d)e.__transition={};else if(r in d)return;create(e,r,{name:t,index:a,group:o,on:emptyOn,tween:emptyTween,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:CREATED})}function init$1(e,t){var r=get(e,t);if(r.state>CREATED)throw new Error("too late; already scheduled");return r}function set$1(e,t){var r=get(e,t);if(r.state>STARTED)throw new Error("too late; already running");return r}function get(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function create(e,t,r){var a=e.__transition,o;a[t]=r,r.timer=timer(u,0,r.time);function u(E){r.state=SCHEDULED,r.timer.restart(d,r.delay,r.time),r.delay<=E&&d(E-r.delay)}function d(E){var S,b,v,y;if(r.state!==SCHEDULED)return g();for(S in a)if(y=a[S],y.name===r.name){if(y.state===STARTED)return timeout(d);y.state===RUNNING?(y.state=ENDED,y.timer.stop(),y.on.call("interrupt",e,e.__data__,y.index,y.group),delete a[S]):+S<t&&(y.state=ENDED,y.timer.stop(),y.on.call("cancel",e,e.__data__,y.index,y.group),delete a[S])}if(timeout(function(){r.state===STARTED&&(r.state=RUNNING,r.timer.restart(f,r.delay,r.time),f(E))}),r.state=STARTING,r.on.call("start",e,e.__data__,r.index,r.group),r.state===STARTING){for(r.state=STARTED,o=new Array(v=r.tween.length),S=0,b=-1;S<v;++S)(y=r.tween[S].value.call(e,e.__data__,r.index,r.group))&&(o[++b]=y);o.length=b+1}}function f(E){for(var S=E<r.duration?r.ease.call(null,E/r.duration):(r.timer.restart(g),r.state=ENDING,1),b=-1,v=o.length;++b<v;)o[b].call(e,S);r.state===ENDING&&(r.on.call("end",e,e.__data__,r.index,r.group),g())}function g(){r.state=ENDED,r.timer.stop(),delete a[t];for(var E in a)return;delete e.__transition}}function interrupt(e,t){var r=e.__transition,a,o,u=!0,d;if(r){t=t==null?null:t+"";for(d in r){if((a=r[d]).name!==t){u=!1;continue}o=a.state>STARTING&&a.state<ENDING,a.state=ENDED,a.timer.stop(),a.on.call(o?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete r[d]}u&&delete e.__transition}}function selection_interrupt(e){return this.each(function(){interrupt(this,e)})}function tweenRemove(e,t){var r,a;return function(){var o=set$1(this,e),u=o.tween;if(u!==r){a=r=u;for(var d=0,f=a.length;d<f;++d)if(a[d].name===t){a=a.slice(),a.splice(d,1);break}}o.tween=a}}function tweenFunction(e,t,r){var a,o;if(typeof r!="function")throw new Error;return function(){var u=set$1(this,e),d=u.tween;if(d!==a){o=(a=d).slice();for(var f={name:t,value:r},g=0,E=o.length;g<E;++g)if(o[g].name===t){o[g]=f;break}g===E&&o.push(f)}u.tween=o}}function transition_tween(e,t){var r=this._id;if(e+="",arguments.length<2){for(var a=get(this.node(),r).tween,o=0,u=a.length,d;o<u;++o)if((d=a[o]).name===e)return d.value;return null}return this.each((t==null?tweenRemove:tweenFunction)(r,e,t))}function tweenValue(e,t,r){var a=e._id;return e.each(function(){var o=set$1(this,a);(o.value||(o.value={}))[t]=r.apply(this,arguments)}),function(o){return get(o,a).value[t]}}function interpolate(e,t){var r;return(typeof t=="number"?interpolateNumber:t instanceof color?interpolateRgb:(r=color(t))?(t=r,interpolateRgb):interpolateString)(e,t)}function attrRemove(e){return function(){this.removeAttribute(e)}}function attrRemoveNS(e){return function(){this.removeAttributeNS(e.space,e.local)}}function attrConstant(e,t,r){var a,o=r+"",u;return function(){var d=this.getAttribute(e);return d===o?null:d===a?u:u=t(a=d,r)}}function attrConstantNS(e,t,r){var a,o=r+"",u;return function(){var d=this.getAttributeNS(e.space,e.local);return d===o?null:d===a?u:u=t(a=d,r)}}function attrFunction(e,t,r){var a,o,u;return function(){var d,f=r(this),g;return f==null?void this.removeAttribute(e):(d=this.getAttribute(e),g=f+"",d===g?null:d===a&&g===o?u:(o=g,u=t(a=d,f)))}}function attrFunctionNS(e,t,r){var a,o,u;return function(){var d,f=r(this),g;return f==null?void this.removeAttributeNS(e.space,e.local):(d=this.getAttributeNS(e.space,e.local),g=f+"",d===g?null:d===a&&g===o?u:(o=g,u=t(a=d,f)))}}function transition_attr(e,t){var r=namespace(e),a=r==="transform"?interpolateTransformSvg:interpolate;return this.attrTween(e,typeof t=="function"?(r.local?attrFunctionNS:attrFunction)(r,a,tweenValue(this,"attr."+e,t)):t==null?(r.local?attrRemoveNS:attrRemove)(r):(r.local?attrConstantNS:attrConstant)(r,a,t))}function attrInterpolate(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function attrInterpolateNS(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function attrTweenNS(e,t){var r,a;function o(){var u=t.apply(this,arguments);return u!==a&&(r=(a=u)&&attrInterpolateNS(e,u)),r}return o._value=t,o}function attrTween(e,t){var r,a;function o(){var u=t.apply(this,arguments);return u!==a&&(r=(a=u)&&attrInterpolate(e,u)),r}return o._value=t,o}function transition_attrTween(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var a=namespace(e);return this.tween(r,(a.local?attrTweenNS:attrTween)(a,t))}function delayFunction(e,t){return function(){init$1(this,e).delay=+t.apply(this,arguments)}}function delayConstant(e,t){return t=+t,function(){init$1(this,e).delay=t}}function transition_delay(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?delayFunction:delayConstant)(t,e)):get(this.node(),t).delay}function durationFunction(e,t){return function(){set$1(this,e).duration=+t.apply(this,arguments)}}function durationConstant(e,t){return t=+t,function(){set$1(this,e).duration=t}}function transition_duration(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?durationFunction:durationConstant)(t,e)):get(this.node(),t).duration}function easeConstant(e,t){if(typeof t!="function")throw new Error;return function(){set$1(this,e).ease=t}}function transition_ease(e){var t=this._id;return arguments.length?this.each(easeConstant(t,e)):get(this.node(),t).ease}function easeVarying(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;set$1(this,e).ease=r}}function transition_easeVarying(e){if(typeof e!="function")throw new Error;return this.each(easeVarying(this._id,e))}function transition_filter(e){typeof e!="function"&&(e=matcher(e));for(var t=this._groups,r=t.length,a=new Array(r),o=0;o<r;++o)for(var u=t[o],d=u.length,f=a[o]=[],g,E=0;E<d;++E)(g=u[E])&&e.call(g,g.__data__,E,u)&&f.push(g);return new Transition(a,this._parents,this._name,this._id)}function transition_merge(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,a=t.length,o=r.length,u=Math.min(a,o),d=new Array(a),f=0;f<u;++f)for(var g=t[f],E=r[f],S=g.length,b=d[f]=new Array(S),v,y=0;y<S;++y)(v=g[y]||E[y])&&(b[y]=v);for(;f<a;++f)d[f]=t[f];return new Transition(d,this._parents,this._name,this._id)}function start(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function onFunction(e,t,r){var a,o,u=start(t)?init$1:set$1;return function(){var d=u(this,e),f=d.on;f!==a&&(o=(a=f).copy()).on(t,r),d.on=o}}function transition_on(e,t){var r=this._id;return arguments.length<2?get(this.node(),r).on.on(e):this.each(onFunction(r,e,t))}function removeFunction(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function transition_remove(){return this.on("end.remove",removeFunction(this._id))}function transition_select(e){var t=this._name,r=this._id;typeof e!="function"&&(e=selector(e));for(var a=this._groups,o=a.length,u=new Array(o),d=0;d<o;++d)for(var f=a[d],g=f.length,E=u[d]=new Array(g),S,b,v=0;v<g;++v)(S=f[v])&&(b=e.call(S,S.__data__,v,f))&&("__data__"in S&&(b.__data__=S.__data__),E[v]=b,schedule(E[v],t,r,v,E,get(S,r)));return new Transition(u,this._parents,t,r)}function transition_selectAll(e){var t=this._name,r=this._id;typeof e!="function"&&(e=selectorAll(e));for(var a=this._groups,o=a.length,u=[],d=[],f=0;f<o;++f)for(var g=a[f],E=g.length,S,b=0;b<E;++b)if(S=g[b]){for(var v=e.call(S,S.__data__,b,g),y,T=get(S,r),C=0,R=v.length;C<R;++C)(y=v[C])&&schedule(y,t,r,C,v,T);u.push(v),d.push(S)}return new Transition(u,d,t,r)}var Selection=selection.prototype.constructor;function transition_selection(){return new Selection(this._groups,this._parents)}function styleNull(e,t){var r,a,o;return function(){var u=styleValue(this,e),d=(this.style.removeProperty(e),styleValue(this,e));return u===d?null:u===r&&d===a?o:o=t(r=u,a=d)}}function styleRemove(e){return function(){this.style.removeProperty(e)}}function styleConstant(e,t,r){var a,o=r+"",u;return function(){var d=styleValue(this,e);return d===o?null:d===a?u:u=t(a=d,r)}}function styleFunction(e,t,r){var a,o,u;return function(){var d=styleValue(this,e),f=r(this),g=f+"";return f==null&&(g=f=(this.style.removeProperty(e),styleValue(this,e))),d===g?null:d===a&&g===o?u:(o=g,u=t(a=d,f))}}function styleMaybeRemove(e,t){var r,a,o,u="style."+t,d="end."+u,f;return function(){var g=set$1(this,e),E=g.on,S=g.value[u]==null?f||(f=styleRemove(t)):void 0;(E!==r||o!==S)&&(a=(r=E).copy()).on(d,o=S),g.on=a}}function transition_style(e,t,r){var a=(e+="")=="transform"?interpolateTransformCss:interpolate;return t==null?this.styleTween(e,styleNull(e,a)).on("end.style."+e,styleRemove(e)):typeof t=="function"?this.styleTween(e,styleFunction(e,a,tweenValue(this,"style."+e,t))).each(styleMaybeRemove(this._id,e)):this.styleTween(e,styleConstant(e,a,t),r).on("end.style."+e,null)}function styleInterpolate(e,t,r){return function(a){this.style.setProperty(e,t.call(this,a),r)}}function styleTween(e,t,r){var a,o;function u(){var d=t.apply(this,arguments);return d!==o&&(a=(o=d)&&styleInterpolate(e,d,r)),a}return u._value=t,u}function transition_styleTween(e,t,r){var a="style."+(e+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(t==null)return this.tween(a,null);if(typeof t!="function")throw new Error;return this.tween(a,styleTween(e,t,r??""))}function textConstant(e){return function(){this.textContent=e}}function textFunction(e){return function(){var t=e(this);this.textContent=t??""}}function transition_text(e){return this.tween("text",typeof e=="function"?textFunction(tweenValue(this,"text",e)):textConstant(e==null?"":e+""))}function textInterpolate(e){return function(t){this.textContent=e.call(this,t)}}function textTween(e){var t,r;function a(){var o=e.apply(this,arguments);return o!==r&&(t=(r=o)&&textInterpolate(o)),t}return a._value=e,a}function transition_textTween(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,textTween(e))}function transition_transition(){for(var e=this._name,t=this._id,r=newId(),a=this._groups,o=a.length,u=0;u<o;++u)for(var d=a[u],f=d.length,g,E=0;E<f;++E)if(g=d[E]){var S=get(g,t);schedule(g,e,r,E,d,{time:S.time+S.delay+S.duration,delay:0,duration:S.duration,ease:S.ease})}return new Transition(a,this._parents,e,r)}function transition_end(){var e,t,r=this,a=r._id,o=r.size();return new Promise(function(u,d){var f={value:d},g={value:function(){--o===0&&u()}};r.each(function(){var E=set$1(this,a),S=E.on;S!==e&&(t=(e=S).copy(),t._.cancel.push(f),t._.interrupt.push(f),t._.end.push(g)),E.on=t}),o===0&&u()})}var id$k=0;function Transition(e,t,r,a){this._groups=e,this._parents=t,this._name=r,this._id=a}function newId(){return++id$k}var selection_prototype=selection.prototype;Transition.prototype={constructor:Transition,select:transition_select,selectAll:transition_selectAll,selectChild:selection_prototype.selectChild,selectChildren:selection_prototype.selectChildren,filter:transition_filter,merge:transition_merge,selection:transition_selection,transition:transition_transition,call:selection_prototype.call,nodes:selection_prototype.nodes,node:selection_prototype.node,size:selection_prototype.size,empty:selection_prototype.empty,each:selection_prototype.each,on:transition_on,attr:transition_attr,attrTween:transition_attrTween,style:transition_style,styleTween:transition_styleTween,text:transition_text,textTween:transition_textTween,remove:transition_remove,tween:transition_tween,delay:transition_delay,duration:transition_duration,ease:transition_ease,easeVarying:transition_easeVarying,end:transition_end,[Symbol.iterator]:selection_prototype[Symbol.iterator]};function cubicInOut(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var defaultTiming={time:null,delay:0,duration:250,ease:cubicInOut};function inherit(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function selection_transition(e){var t,r;e instanceof Transition?(t=e._id,e=e._name):(t=newId(),(r=defaultTiming).time=now(),e=e==null?null:e+"");for(var a=this._groups,o=a.length,u=0;u<o;++u)for(var d=a[u],f=d.length,g,E=0;E<f;++E)(g=d[E])&&schedule(g,e,t,E,d,r||inherit(g,t));return new Transition(a,this._parents,e,t)}selection.prototype.interrupt=selection_interrupt;selection.prototype.transition=selection_transition;const abs$1=Math.abs,atan2=Math.atan2,cos=Math.cos,max=Math.max,min=Math.min,sin=Math.sin,sqrt=Math.sqrt,epsilon=1e-12,pi=Math.PI,halfPi=pi/2,tau=2*pi;function acos(e){return e>1?0:e<-1?pi:Math.acos(e)}function asin(e){return e>=1?halfPi:e<=-1?-halfPi:Math.asin(e)}function Linear(e){this._context=e}Linear.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function curveLinear(e){return new Linear(e)}class Bump{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function bumpX(e){return new Bump(e,!0)}function bumpY(e){return new Bump(e,!1)}function noop$2(){}function point$3(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Basis(e){this._context=e}Basis.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:point$3(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:point$3(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function curveBasis(e){return new Basis(e)}function BasisClosed(e){this._context=e}BasisClosed.prototype={areaStart:noop$2,areaEnd:noop$2,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:point$3(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function curveBasisClosed(e){return new BasisClosed(e)}function BasisOpen(e){this._context=e}BasisOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,a=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 3:this._point=4;default:point$3(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function curveBasisOpen(e){return new BasisOpen(e)}function Bundle(e,t){this._basis=new Basis(e),this._beta=t}Bundle.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var a=e[0],o=t[0],u=e[r]-a,d=t[r]-o,f=-1,g;++f<=r;)g=f/r,this._basis.point(this._beta*e[f]+(1-this._beta)*(a+g*u),this._beta*t[f]+(1-this._beta)*(o+g*d));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const curveBundle=function e(t){function r(a){return t===1?new Basis(a):new Bundle(a,t)}return r.beta=function(a){return e(+a)},r}(.85);function point$2(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function Cardinal(e,t){this._context=e,this._k=(1-t)/6}Cardinal.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:point$2(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:point$2(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const curveCardinal=function e(t){function r(a){return new Cardinal(a,t)}return r.tension=function(a){return e(+a)},r}(0);function CardinalClosed(e,t){this._context=e,this._k=(1-t)/6}CardinalClosed.prototype={areaStart:noop$2,areaEnd:noop$2,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:point$2(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const curveCardinalClosed=function e(t){function r(a){return new CardinalClosed(a,t)}return r.tension=function(a){return e(+a)},r}(0);function CardinalOpen(e,t){this._context=e,this._k=(1-t)/6}CardinalOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:point$2(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const curveCardinalOpen=function e(t){function r(a){return new CardinalOpen(a,t)}return r.tension=function(a){return e(+a)},r}(0);function point$1(e,t,r){var a=e._x1,o=e._y1,u=e._x2,d=e._y2;if(e._l01_a>epsilon){var f=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,g=3*e._l01_a*(e._l01_a+e._l12_a);a=(a*f-e._x0*e._l12_2a+e._x2*e._l01_2a)/g,o=(o*f-e._y0*e._l12_2a+e._y2*e._l01_2a)/g}if(e._l23_a>epsilon){var E=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,S=3*e._l23_a*(e._l23_a+e._l12_a);u=(u*E+e._x1*e._l23_2a-t*e._l12_2a)/S,d=(d*E+e._y1*e._l23_2a-r*e._l12_2a)/S}e._context.bezierCurveTo(a,o,u,d,e._x2,e._y2)}function CatmullRom(e,t){this._context=e,this._alpha=t}CatmullRom.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,a=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:point$1(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const curveCatmullRom=function e(t){function r(a){return t?new CatmullRom(a,t):new Cardinal(a,0)}return r.alpha=function(a){return e(+a)},r}(.5);function CatmullRomClosed(e,t){this._context=e,this._alpha=t}CatmullRomClosed.prototype={areaStart:noop$2,areaEnd:noop$2,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,a=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:point$1(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const curveCatmullRomClosed=function e(t){function r(a){return t?new CatmullRomClosed(a,t):new CardinalClosed(a,0)}return r.alpha=function(a){return e(+a)},r}(.5);function CatmullRomOpen(e,t){this._context=e,this._alpha=t}CatmullRomOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,a=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+a*a,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:point$1(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const curveCatmullRomOpen=function e(t){function r(a){return t?new CatmullRomOpen(a,t):new CardinalOpen(a,0)}return r.alpha=function(a){return e(+a)},r}(.5);function LinearClosed(e){this._context=e}LinearClosed.prototype={areaStart:noop$2,areaEnd:noop$2,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function curveLinearClosed(e){return new LinearClosed(e)}function sign(e){return e<0?-1:1}function slope3(e,t,r){var a=e._x1-e._x0,o=t-e._x1,u=(e._y1-e._y0)/(a||o<0&&-0),d=(r-e._y1)/(o||a<0&&-0),f=(u*o+d*a)/(a+o);return(sign(u)+sign(d))*Math.min(Math.abs(u),Math.abs(d),.5*Math.abs(f))||0}function slope2(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function point(e,t,r){var a=e._x0,o=e._y0,u=e._x1,d=e._y1,f=(u-a)/3;e._context.bezierCurveTo(a+f,o+f*t,u-f,d-f*r,u,d)}function MonotoneX(e){this._context=e}MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:point(this,this._t0,slope2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,point(this,slope2(this,r=slope3(this,e,t)),r);break;default:point(this,this._t0,r=slope3(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function MonotoneY(e){this._context=new ReflectContext(e)}(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(e,t){MonotoneX.prototype.point.call(this,t,e)};function ReflectContext(e){this._context=e}ReflectContext.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,a,o,u){this._context.bezierCurveTo(t,e,a,r,u,o)}};function monotoneX(e){return new MonotoneX(e)}function monotoneY(e){return new MonotoneY(e)}function Natural(e){this._context=e}Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var a=controlPoints(e),o=controlPoints(t),u=0,d=1;d<r;++u,++d)this._context.bezierCurveTo(a[0][u],o[0][u],a[1][u],o[1][u],e[d],t[d]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function controlPoints(e){var t,r=e.length-1,a,o=new Array(r),u=new Array(r),d=new Array(r);for(o[0]=0,u[0]=2,d[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,u[t]=4,d[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,u[r-1]=7,d[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)a=o[t]/u[t-1],u[t]-=a,d[t]-=a*d[t-1];for(o[r-1]=d[r-1]/u[r-1],t=r-2;t>=0;--t)o[t]=(d[t]-o[t+1])/u[t];for(u[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)u[t]=2*e[t+1]-o[t+1];return[o,u]}function curveNatural(e){return new Natural(e)}function Step(e,t){this._context=e,this._t=t}Step.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function curveStep(e){return new Step(e,.5)}function stepBefore(e){return new Step(e,0)}function stepAfter(e){return new Step(e,1)}function Transform(e,t,r){this.k=e,this.x=t,this.y=r}Transform.prototype={constructor:Transform,scale:function(e){return e===1?this:new Transform(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Transform(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Transform.prototype;const Channel={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},a)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const o=r<.5?r*(1+t):r+t-r*t,u=2*r-o;switch(a){case"r":return Channel.hue2rgb(u,o,e+1/3)*255;case"g":return Channel.hue2rgb(u,o,e)*255;case"b":return Channel.hue2rgb(u,o,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},a)=>{e/=255,t/=255,r/=255;const o=Math.max(e,t,r),u=Math.min(e,t,r),d=(o+u)/2;if(a==="l")return d*100;if(o===u)return 0;const f=o-u,g=d>.5?f/(2-o-u):f/(o+u);if(a==="s")return g*100;switch(o){case e:return((t-r)/f+(t<r?6:0))*60;case t:return((r-e)/f+2)*60;case r:return((e-t)/f+4)*60;default:return-1}}},channel=Channel,Lang={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},lang=Lang,Unit={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},unit=Unit,Utils={channel,lang,unit},_=Utils,DEC2HEX={};for(let e=0;e<=255;e++)DEC2HEX[e]=_.unit.dec2hex(e);const TYPE={ALL:0,RGB:1,HSL:2};class Type{constructor(){this.type=TYPE.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=TYPE.ALL}is(t){return this.type===t}}const Type$2=Type;class Channels{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new Type$2}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=TYPE.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:a,l:o}=t;r===void 0&&(t.h=_.channel.rgb2hsl(t,"h")),a===void 0&&(t.s=_.channel.rgb2hsl(t,"s")),o===void 0&&(t.l=_.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:a,b:o}=t;r===void 0&&(t.r=_.channel.hsl2rgb(t,"r")),a===void 0&&(t.g=_.channel.hsl2rgb(t,"g")),o===void 0&&(t.b=_.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(TYPE.HSL)&&r!==void 0?r:(this._ensureHSL(),_.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(TYPE.HSL)&&r!==void 0?r:(this._ensureHSL(),_.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(TYPE.HSL)&&r!==void 0?r:(this._ensureHSL(),_.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(TYPE.RGB)&&r!==void 0?r:(this._ensureRGB(),_.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(TYPE.RGB)&&r!==void 0?r:(this._ensureRGB(),_.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(TYPE.RGB)&&r!==void 0?r:(this._ensureRGB(),_.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(TYPE.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(TYPE.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(TYPE.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(TYPE.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(TYPE.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(TYPE.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const Channels$1=Channels,channels=new Channels$1({r:0,g:0,b:0,a:0},"transparent"),ChannelsReusable=channels,Hex={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(Hex.re);if(!t)return;const r=t[1],a=parseInt(r,16),o=r.length,u=o%4===0,d=o>4,f=d?1:17,g=d?8:4,E=u?0:-1,S=d?255:15;return ChannelsReusable.set({r:(a>>g*(E+3)&S)*f,g:(a>>g*(E+2)&S)*f,b:(a>>g*(E+1)&S)*f,a:u?(a&S)*f/255:1},e)},stringify:e=>{const{r:t,g:r,b:a,a:o}=e;return o<1?`#${DEC2HEX[Math.round(t)]}${DEC2HEX[Math.round(r)]}${DEC2HEX[Math.round(a)]}${DEC2HEX[Math.round(o*255)]}`:`#${DEC2HEX[Math.round(t)]}${DEC2HEX[Math.round(r)]}${DEC2HEX[Math.round(a)]}`}},Hex$1=Hex,HSL={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(HSL.hueRe);if(t){const[,r,a]=t;switch(a){case"grad":return _.channel.clamp.h(parseFloat(r)*.9);case"rad":return _.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return _.channel.clamp.h(parseFloat(r)*360)}}return _.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(HSL.re);if(!r)return;const[,a,o,u,d,f]=r;return ChannelsReusable.set({h:HSL._hue2deg(a),s:_.channel.clamp.s(parseFloat(o)),l:_.channel.clamp.l(parseFloat(u)),a:d?_.channel.clamp.a(f?parseFloat(d)/100:parseFloat(d)):1},e)},stringify:e=>{const{h:t,s:r,l:a,a:o}=e;return o<1?`hsla(${_.lang.round(t)}, ${_.lang.round(r)}%, ${_.lang.round(a)}%, ${o})`:`hsl(${_.lang.round(t)}, ${_.lang.round(r)}%, ${_.lang.round(a)}%)`}},HSL$1=HSL,Keyword={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=Keyword.colors[e];if(t)return Hex$1.parse(t)},stringify:e=>{const t=Hex$1.stringify(e);for(const r in Keyword.colors)if(Keyword.colors[r]===t)return r}},Keyword$1=Keyword,RGB={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(RGB.re);if(!r)return;const[,a,o,u,d,f,g,E,S]=r;return ChannelsReusable.set({r:_.channel.clamp.r(o?parseFloat(a)*2.55:parseFloat(a)),g:_.channel.clamp.g(d?parseFloat(u)*2.55:parseFloat(u)),b:_.channel.clamp.b(g?parseFloat(f)*2.55:parseFloat(f)),a:E?_.channel.clamp.a(S?parseFloat(E)/100:parseFloat(E)):1},e)},stringify:e=>{const{r:t,g:r,b:a,a:o}=e;return o<1?`rgba(${_.lang.round(t)}, ${_.lang.round(r)}, ${_.lang.round(a)}, ${_.lang.round(o)})`:`rgb(${_.lang.round(t)}, ${_.lang.round(r)}, ${_.lang.round(a)})`}},RGB$1=RGB,Color={format:{keyword:Keyword$1,hex:Hex$1,rgb:RGB$1,rgba:RGB$1,hsl:HSL$1,hsla:HSL$1},parse:e=>{if(typeof e!="string")return e;const t=Hex$1.parse(e)||RGB$1.parse(e)||HSL$1.parse(e)||Keyword$1.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(TYPE.HSL)||e.data.r===void 0?HSL$1.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?RGB$1.stringify(e):Hex$1.stringify(e)},Color$1=Color,change=(e,t)=>{const r=Color$1.parse(e);for(const a in t)r[a]=_.channel.clamp[a](t[a]);return Color$1.stringify(r)},change$1=change,rgba$1=(e,t,r=0,a=1)=>{if(typeof e!="number")return change$1(e,{a:t});const o=ChannelsReusable.set({r:_.channel.clamp.r(e),g:_.channel.clamp.g(t),b:_.channel.clamp.b(r),a:_.channel.clamp.a(a)});return Color$1.stringify(o)},rgba$2=rgba$1,luminance=e=>{const{r:t,g:r,b:a}=Color$1.parse(e),o=.2126*_.channel.toLinear(t)+.7152*_.channel.toLinear(r)+.0722*_.channel.toLinear(a);return _.lang.round(o)},luminance$1=luminance,isLight=e=>luminance$1(e)>=.5,isLight$1=isLight,isDark=e=>!isLight$1(e),isDark$1=isDark,adjustChannel=(e,t,r)=>{const a=Color$1.parse(e),o=a[t],u=_.channel.clamp[t](o+r);return o!==u&&(a[t]=u),Color$1.stringify(a)},adjustChannel$1=adjustChannel,lighten$1=(e,t)=>adjustChannel$1(e,"l",t),lighten$2=lighten$1,darken$1=(e,t)=>adjustChannel$1(e,"l",-t),darken$2=darken$1,adjust=(e,t)=>{const r=Color$1.parse(e),a={};for(const o in t)t[o]&&(a[o]=r[o]+t[o]);return change$1(e,a)},adjust$1=adjust,mix=(e,t,r=50)=>{const{r:a,g:o,b:u,a:d}=Color$1.parse(e),{r:f,g,b:E,a:S}=Color$1.parse(t),b=r/100,v=b*2-1,y=d-S,C=((v*y===-1?v:(v+y)/(1+v*y))+1)/2,R=1-C,A=a*C+f*R,N=o*C+g*R,I=u*C+E*R,O=d*b+S*(1-b);return rgba$2(A,N,I,O)},mix$1=mix,invert=(e,t=100)=>{const r=Color$1.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,mix$1(r,e,t)},invert$1=invert;var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol$1=root$1.Symbol;const Symbol$2=Symbol$1;var objectProto$c=Object.prototype,hasOwnProperty$b=objectProto$c.hasOwnProperty,nativeObjectToString$1=objectProto$c.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty$b.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var a=!0}catch{}var o=nativeObjectToString$1.call(e);return a&&(t?e[symToStringTag$1]=r:delete e[symToStringTag$1]),o}var objectProto$b=Object.prototype,nativeObjectToString=objectProto$b.toString;function objectToString(e){return nativeObjectToString.call(e)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}function isObject$3(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject$3(e))return!1;var t=baseGetTag(e);return t==funcTag$1||t==genTag||t==asyncTag||t==proxyTag}var coreJsData=root$1["__core-js_shared__"];const coreJsData$1=coreJsData;var maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource(e){if(e!=null){try{return funcToString$2.call(e)}catch{}try{return e+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$a=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$a=objectProto$a.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$a).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){if(!isObject$3(e)||isMasked(e))return!1;var t=isFunction(e)?reIsNative:reIsHostCtor;return t.test(toSource(e))}function getValue(e,t){return e==null?void 0:e[t]}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:void 0}var nativeCreate=getNative(Object,"create");const nativeCreate$1=nativeCreate;function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var HASH_UNDEFINED$1="__lodash_hash_undefined__",objectProto$9=Object.prototype,hasOwnProperty$9=objectProto$9.hasOwnProperty;function hashGet(e){var t=this.__data__;if(nativeCreate$1){var r=t[e];return r===HASH_UNDEFINED$1?void 0:r}return hasOwnProperty$9.call(t,e)?t[e]:void 0}var objectProto$8=Object.prototype,hasOwnProperty$8=objectProto$8.hasOwnProperty;function hashHas(e){var t=this.__data__;return nativeCreate$1?t[e]!==void 0:hasOwnProperty$8.call(t,e)}var HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nativeCreate$1&&t===void 0?HASH_UNDEFINED:t,this}function Hash(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Hash.prototype.clear=hashClear;Hash.prototype.delete=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function eq(e,t){return e===t||e!==e&&t!==t}function assocIndexOf(e,t){for(var r=e.length;r--;)if(eq(e[r][0],t))return r;return-1}var arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0)return!1;var a=t.length-1;return r==a?t.pop():splice.call(t,r,1),--this.size,!0}function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?void 0:t[r][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var r=this.__data__,a=assocIndexOf(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}function ListCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;var Map$1=getNative(root$1,"Map");const Map$2=Map$1;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$2||ListCache),string:new Hash}}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function getMapData(e,t){var r=e.__data__;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function mapCacheDelete(e){var t=getMapData(this,e).delete(e);return this.size-=t?1:0,t}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){var r=getMapData(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}function MapCache(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype.delete=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;var FUNC_ERROR_TEXT="Expected a function";function memoize(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(FUNC_ERROR_TEXT);var r=function(){var a=arguments,o=t?t.apply(this,a):a[0],u=r.cache;if(u.has(o))return u.get(o);var d=e.apply(this,a);return r.cache=u.set(o,d)||u,d};return r.cache=new(memoize.Cache||MapCache),r}memoize.Cache=MapCache;function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function stackGet(e){return this.__data__.get(e)}function stackHas(e){return this.__data__.has(e)}var LARGE_ARRAY_SIZE=200;function stackSet(e,t){var r=this.__data__;if(r instanceof ListCache){var a=r.__data__;if(!Map$2||a.length<LARGE_ARRAY_SIZE-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new MapCache(a)}return r.set(e,t),this.size=r.size,this}function Stack(e){var t=this.__data__=new ListCache(e);this.size=t.size}Stack.prototype.clear=stackClear;Stack.prototype.delete=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;var defineProperty=function(){try{var e=getNative(Object,"defineProperty");return e({},"",{}),e}catch{}}();const defineProperty$1=defineProperty;function baseAssignValue(e,t,r){t=="__proto__"&&defineProperty$1?defineProperty$1(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function assignMergeValue(e,t,r){(r!==void 0&&!eq(e[t],r)||r===void 0&&!(t in e))&&baseAssignValue(e,t,r)}function createBaseFor(e){return function(t,r,a){for(var o=-1,u=Object(t),d=a(t),f=d.length;f--;){var g=d[e?f:++o];if(r(u[g],g,u)===!1)break}return t}}var baseFor=createBaseFor();const baseFor$1=baseFor;var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$1=moduleExports$2?root$1.Buffer:void 0,allocUnsafe=Buffer$1?Buffer$1.allocUnsafe:void 0;function cloneBuffer(e,t){if(t)return e.slice();var r=e.length,a=allocUnsafe?allocUnsafe(r):new e.constructor(r);return e.copy(a),a}var Uint8Array$1=root$1.Uint8Array;const Uint8Array$2=Uint8Array$1;function cloneArrayBuffer(e){var t=new e.constructor(e.byteLength);return new Uint8Array$2(t).set(new Uint8Array$2(e)),t}function cloneTypedArray(e,t){var r=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function copyArray(e,t){var r=-1,a=e.length;for(t||(t=Array(a));++r<a;)t[r]=e[r];return t}var objectCreate=Object.create,baseCreate=function(){function e(){}return function(t){if(!isObject$3(t))return{};if(objectCreate)return objectCreate(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const baseCreate$1=baseCreate;function overArg(e,t){return function(r){return e(t(r))}}var getPrototype=overArg(Object.getPrototypeOf,Object);const getPrototype$1=getPrototype;var objectProto$7=Object.prototype;function isPrototype(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||objectProto$7;return e===r}function initCloneObject(e){return typeof e.constructor=="function"&&!isPrototype(e)?baseCreate$1(getPrototype$1(e)):{}}function isObjectLike(e){return e!=null&&typeof e=="object"}var argsTag$1="[object Arguments]";function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==argsTag$1}var objectProto$6=Object.prototype,hasOwnProperty$7=objectProto$6.hasOwnProperty,propertyIsEnumerable=objectProto$6.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&hasOwnProperty$7.call(e,"callee")&&!propertyIsEnumerable.call(e,"callee")};const isArguments$1=isArguments;var isArray$2=Array.isArray;const isArray$3=isArray$2;var MAX_SAFE_INTEGER$1=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER$1}function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function stubFalse(){return!1}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,Buffer=moduleExports$1?root$1.Buffer:void 0,nativeIsBuffer=Buffer?Buffer.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse;const isBuffer$1=isBuffer;var objectTag$2="[object Object]",funcProto=Function.prototype,objectProto$5=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$6=objectProto$5.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject(e){if(!isObjectLike(e)||baseGetTag(e)!=objectTag$2)return!1;var t=getPrototype$1(e);if(t===null)return!0;var r=hasOwnProperty$6.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&funcToString.call(r)==objectCtorString}var argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag$2="[object Map]",numberTag="[object Number]",objectTag$1="[object Object]",regexpTag="[object RegExp]",setTag$2="[object Set]",stringTag="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag$2]=typedArrayTags[numberTag]=typedArrayTags[objectTag$1]=typedArrayTags[regexpTag]=typedArrayTags[setTag$2]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag$1]=!1;function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!typedArrayTags[baseGetTag(e)]}function baseUnary(e){return function(t){return e(t)}}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,freeProcess=moduleExports&&freeGlobal$1.process,nodeUtil=function(){try{var e=freeModule&&freeModule.require&&freeModule.require("util").types;return e||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}();const nodeUtil$1=nodeUtil;var nodeIsTypedArray=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;const isTypedArray$1=isTypedArray;function safeGet(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var objectProto$4=Object.prototype,hasOwnProperty$5=objectProto$4.hasOwnProperty;function assignValue(e,t,r){var a=e[t];(!(hasOwnProperty$5.call(e,t)&&eq(a,r))||r===void 0&&!(t in e))&&baseAssignValue(e,t,r)}function copyObject(e,t,r,a){var o=!r;r||(r={});for(var u=-1,d=t.length;++u<d;){var f=t[u],g=a?a(r[f],e[f],f,r,e):void 0;g===void 0&&(g=e[f]),o?baseAssignValue(r,f,g):assignValue(r,f,g)}return r}function baseTimes(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var MAX_SAFE_INTEGER=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var r=typeof e;return t=t??MAX_SAFE_INTEGER,!!t&&(r=="number"||r!="symbol"&&reIsUint.test(e))&&e>-1&&e%1==0&&e<t}var objectProto$3=Object.prototype,hasOwnProperty$4=objectProto$3.hasOwnProperty;function arrayLikeKeys(e,t){var r=isArray$3(e),a=!r&&isArguments$1(e),o=!r&&!a&&isBuffer$1(e),u=!r&&!a&&!o&&isTypedArray$1(e),d=r||a||o||u,f=d?baseTimes(e.length,String):[],g=f.length;for(var E in e)(t||hasOwnProperty$4.call(e,E))&&!(d&&(E=="length"||o&&(E=="offset"||E=="parent")||u&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||isIndex(E,g)))&&f.push(E);return f}function nativeKeysIn(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function baseKeysIn(e){if(!isObject$3(e))return nativeKeysIn(e);var t=isPrototype(e),r=[];for(var a in e)a=="constructor"&&(t||!hasOwnProperty$3.call(e,a))||r.push(a);return r}function keysIn(e){return isArrayLike(e)?arrayLikeKeys(e,!0):baseKeysIn(e)}function toPlainObject(e){return copyObject(e,keysIn(e))}function baseMergeDeep(e,t,r,a,o,u,d){var f=safeGet(e,r),g=safeGet(t,r),E=d.get(g);if(E){assignMergeValue(e,r,E);return}var S=u?u(f,g,r+"",e,t,d):void 0,b=S===void 0;if(b){var v=isArray$3(g),y=!v&&isBuffer$1(g),T=!v&&!y&&isTypedArray$1(g);S=g,v||y||T?isArray$3(f)?S=f:isArrayLikeObject(f)?S=copyArray(f):y?(b=!1,S=cloneBuffer(g,!0)):T?(b=!1,S=cloneTypedArray(g,!0)):S=[]:isPlainObject(g)||isArguments$1(g)?(S=f,isArguments$1(f)?S=toPlainObject(f):(!isObject$3(f)||isFunction(f))&&(S=initCloneObject(g))):b=!1}b&&(d.set(g,S),o(S,g,a,u,d),d.delete(g)),assignMergeValue(e,r,S)}function baseMerge(e,t,r,a,o){e!==t&&baseFor$1(t,function(u,d){if(o||(o=new Stack),isObject$3(u))baseMergeDeep(e,t,d,r,baseMerge,a,o);else{var f=a?a(safeGet(e,d),u,d+"",e,t,o):void 0;f===void 0&&(f=u),assignMergeValue(e,d,f)}},keysIn)}function identity(e){return e}function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var nativeMax=Math.max;function overRest(e,t,r){return t=nativeMax(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,u=nativeMax(a.length-t,0),d=Array(u);++o<u;)d[o]=a[t+o];o=-1;for(var f=Array(t+1);++o<t;)f[o]=a[o];return f[t]=r(d),apply(e,this,f)}}function constant(e){return function(){return e}}var baseSetToString=defineProperty$1?function(e,t){return defineProperty$1(e,"toString",{configurable:!0,enumerable:!1,value:constant(t),writable:!0})}:identity;const baseSetToString$1=baseSetToString;var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(e){var t=0,r=0;return function(){var a=nativeNow(),o=HOT_SPAN-(a-r);if(r=a,o>0){if(++t>=HOT_COUNT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;function baseRest(e,t){return setToString$1(overRest(e,t,identity),e+"")}function isIterateeCall(e,t,r){if(!isObject$3(r))return!1;var a=typeof t;return(a=="number"?isArrayLike(r)&&isIndex(t,r.length):a=="string"&&t in r)?eq(r[t],e):!1}function createAssigner(e){return baseRest(function(t,r){var a=-1,o=r.length,u=o>1?r[o-1]:void 0,d=o>2?r[2]:void 0;for(u=e.length>3&&typeof u=="function"?(o--,u):void 0,d&&isIterateeCall(r[0],r[1],d)&&(u=o<3?void 0:u,o=1),t=Object(t);++a<o;){var f=r[a];f&&e(t,f,a,u)}return t})}var merge$1=createAssigner(function(e,t,r){baseMerge(e,t,r)});const merge$2=merge$1;var COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",LAYER="@layer",abs=Math.abs,from=String.fromCharCode;function trim(e){return e.trim()}function replace$1(e,t,r){return e.replace(t,r)}function indexof(e,t){return e.indexOf(t)}function charat(e,t){return e.charCodeAt(t)|0}function substr(e,t,r){return e.slice(t,r)}function strlen(e){return e.length}function sizeof(e){return e.length}function append(e,t){return t.push(e),e}var line=1,column=1,length$1=0,position=0,character=0,characters="";function node(e,t,r,a,o,u,d,f){return{value:e,root:t,parent:r,type:a,props:o,children:u,line,column,length:d,return:"",siblings:f}}function char(){return character}function prev$1(){return character=position>0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position<length$1?charat(characters,position++):0,column++,character===10&&(column=1,line++),character}function peek(){return charat(characters,position)}function caret(){return position}function slice(e,t){return substr(characters,e,t)}function token(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(e){return line=column=1,length$1=strlen(characters=e),position=0,[]}function dealloc(e){return characters="",e}function delimit(e){return trim(slice(position-1,delimiter(e===91?e+2:e===40?e+1:e)))}function whitespace(e){for(;(character=peek())&&character<33;)next();return token(e)>2||token(character)>3?"":" "}function escaping(e,t){for(;--t&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(e,caret()+(t<6&&peek()==32&&next()==32))}function delimiter(e){for(;next();)switch(character){case e:return position;case 34:case 39:e!==34&&e!==39&&delimiter(character);break;case 40:e===41&&delimiter(e);break;case 92:next();break}return position}function commenter(e,t){for(;next()&&e+character!==47+10;)if(e+character===42+42&&peek()===47)break;return"/*"+slice(t,position-1)+"*"+from(e===47?e:next())}function identifier(e){for(;!token(peek());)next();return slice(e,position)}function compile(e){return dealloc(parse$4("",null,null,null,[""],e=alloc(e),0,[0],e))}function parse$4(e,t,r,a,o,u,d,f,g){for(var E=0,S=0,b=d,v=0,y=0,T=0,C=1,R=1,A=1,N=0,I="",O=o,x=u,D=a,k=I;R;)switch(T=N,N=next()){case 40:if(T!=108&&charat(k,b-1)==58){indexof(k+=replace$1(delimit(N),"&","&\f"),"&\f")!=-1&&(A=-1);break}case 34:case 39:case 91:k+=delimit(N);break;case 9:case 10:case 13:case 32:k+=whitespace(T);break;case 92:k+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),t,r,g),g);break;default:k+="/"}break;case 123*C:f[E++]=strlen(k)*A;case 125*C:case 59:case 0:switch(N){case 0:case 125:R=0;case 59+S:A==-1&&(k=replace$1(k,/\f/g,"")),y>0&&strlen(k)-b&&append(y>32?declaration(k+";",a,r,b-1,g):declaration(replace$1(k," ","")+";",a,r,b-2,g),g);break;case 59:k+=";";default:if(append(D=ruleset(k,t,r,E,S,o,f,I,O=[],x=[],b,u),u),N===123)if(S===0)parse$4(k,t,D,D,O,u,b,f,x);else switch(v===99&&charat(k,3)===110?100:v){case 100:case 108:case 109:case 115:parse$4(e,D,D,a&&append(ruleset(e,D,D,0,0,o,f,I,o,O=[],b,x),x),o,x,b,f,a?O:x);break;default:parse$4(k,D,D,D,[""],x,0,f,x)}}E=S=y=0,C=A=1,I=k="",b=d;break;case 58:b=1+strlen(k),y=T;default:if(C<1){if(N==123)--C;else if(N==125&&C++==0&&prev$1()==125)continue}switch(k+=from(N),N*C){case 38:A=S>0?1:(k+="\f",-1);break;case 44:f[E++]=(strlen(k)-1)*A,A=1;break;case 64:peek()===45&&(k+=delimit(next())),v=peek(),S=b=strlen(I=k+=identifier(caret())),N++;break;case 45:T===45&&strlen(k)==2&&(C=0)}}return u}function ruleset(e,t,r,a,o,u,d,f,g,E,S,b){for(var v=o-1,y=o===0?u:[""],T=sizeof(y),C=0,R=0,A=0;C<a;++C)for(var N=0,I=substr(e,v+1,v=abs(R=d[C])),O=e;N<T;++N)(O=trim(R>0?y[N]+" "+I:replace$1(I,/&\f/g,y[N])))&&(g[A++]=O);return node(e,t,r,o===0?RULESET:f,g,E,S,b)}function comment(e,t,r,a){return node(e,t,r,COMMENT,from(char()),substr(e,2,-2),0,a)}function declaration(e,t,r,a,o){return node(e,t,r,DECLARATION,substr(e,0,a),substr(e,a+1,-1),a,o)}function serialize(e,t){for(var r="",a=0;a<e.length;a++)r+=t(e[a],a,e,t)||"";return r}function stringify(e,t,r,a){switch(e.type){case LAYER:if(e.children.length)break;case IMPORT:case DECLARATION:return e.return=e.return||e.value;case COMMENT:return"";case KEYFRAMES:return e.return=e.value+"{"+serialize(e.children,a)+"}";case RULESET:if(!strlen(e.value=e.props.join(",")))return""}return strlen(r=serialize(e.children,a))?e.return=e.value+"{"+r+"}":""}var nativeKeys=overArg(Object.keys,Object);const nativeKeys$1=nativeKeys;var objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function baseKeys(e){if(!isPrototype(e))return nativeKeys$1(e);var t=[];for(var r in Object(e))hasOwnProperty$2.call(e,r)&&r!="constructor"&&t.push(r);return t}var DataView$1=getNative(root$1,"DataView");const DataView$2=DataView$1;var Promise$1=getNative(root$1,"Promise");const Promise$2=Promise$1;var Set$1=getNative(root$1,"Set");const Set$2=Set$1;var WeakMap$1=getNative(root$1,"WeakMap");const WeakMap$2=WeakMap$1;var mapTag$1="[object Map]",objectTag="[object Object]",promiseTag="[object Promise]",setTag$1="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView$2),mapCtorString=toSource(Map$2),promiseCtorString=toSource(Promise$2),setCtorString=toSource(Set$2),weakMapCtorString=toSource(WeakMap$2),getTag=baseGetTag;(DataView$2&&getTag(new DataView$2(new ArrayBuffer(1)))!=dataViewTag||Map$2&&getTag(new Map$2)!=mapTag$1||Promise$2&&getTag(Promise$2.resolve())!=promiseTag||Set$2&&getTag(new Set$2)!=setTag$1||WeakMap$2&&getTag(new WeakMap$2)!=weakMapTag)&&(getTag=function(e){var t=baseGetTag(e),r=t==objectTag?e.constructor:void 0,a=r?toSource(r):"";if(a)switch(a){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag$1;case promiseCtorString:return promiseTag;case setCtorString:return setTag$1;case weakMapCtorString:return weakMapTag}return t});const getTag$1=getTag;var mapTag="[object Map]",setTag="[object Set]",objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty;function isEmpty$1(e){if(e==null)return!0;if(isArrayLike(e)&&(isArray$3(e)||typeof e=="string"||typeof e.splice=="function"||isBuffer$1(e)||isTypedArray$1(e)||isArguments$1(e)))return!e.length;var t=getTag$1(e);if(t==mapTag||t==setTag)return!e.size;if(isPrototype(e))return!baseKeys(e).length;for(var r in e)if(hasOwnProperty$1.call(e,r))return!1;return!0}const LEVELS={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},log$1={trace:(...e)=>{},debug:(...e)=>{},info:(...e)=>{},warn:(...e)=>{},error:(...e)=>{},fatal:(...e)=>{}},setLogLevel$1=function(e="fatal"){let t=LEVELS.fatal;typeof e=="string"?(e=e.toLowerCase(),e in LEVELS&&(t=LEVELS[e])):typeof e=="number"&&(t=e),log$1.trace=()=>{},log$1.debug=()=>{},log$1.info=()=>{},log$1.warn=()=>{},log$1.error=()=>{},log$1.fatal=()=>{},t<=LEVELS.fatal&&(log$1.fatal=console.error?console.error.bind(console,format$1("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",format$1("FATAL"))),t<=LEVELS.error&&(log$1.error=console.error?console.error.bind(console,format$1("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",format$1("ERROR"))),t<=LEVELS.warn&&(log$1.warn=console.warn?console.warn.bind(console,format$1("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",format$1("WARN"))),t<=LEVELS.info&&(log$1.info=console.info?console.info.bind(console,format$1("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",format$1("INFO"))),t<=LEVELS.debug&&(log$1.debug=console.debug?console.debug.bind(console,format$1("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",format$1("DEBUG"))),t<=LEVELS.trace&&(log$1.trace=console.debug?console.debug.bind(console,format$1("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",format$1("TRACE")))},format$1=e=>`%c${dayjs().format("ss.SSS")} : ${e} : `,lineBreakRegex=/<br\s*\/?>/gi,getRows=e=>e?breakToPlaceholder(e).replace(/\\n/g,"#br#").split("#br#"):[""],removeScript=e=>purify.sanitize(e),sanitizeMore=(e,t)=>{var r;if(((r=t.flowchart)==null?void 0:r.htmlLabels)!==!1){const a=t.securityLevel;a==="antiscript"||a==="strict"?e=removeScript(e):a!=="loose"&&(e=breakToPlaceholder(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=placeholderToBreak(e))}return e},sanitizeText$2=(e,t)=>e&&(t.dompurifyConfig?e=purify.sanitize(sanitizeMore(e,t),t.dompurifyConfig).toString():e=purify.sanitize(sanitizeMore(e,t),{FORBID_TAGS:["style"]}).toString(),e),sanitizeTextOrArray=(e,t)=>typeof e=="string"?sanitizeText$2(e,t):e.flat().map(r=>sanitizeText$2(r,t)),hasBreaks=e=>lineBreakRegex.test(e),splitBreaks=e=>e.split(lineBreakRegex),placeholderToBreak=e=>e.replace(/#br#/g,"<br/>"),breakToPlaceholder=e=>e.replace(lineBreakRegex,"#br#"),getUrl=e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=t.replaceAll(/\(/g,"\\("),t=t.replaceAll(/\)/g,"\\)")),t},evaluate=e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),getMax=function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},getMin=function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},parseGenericTypes=function(e){let t=e;if(e.split("~").length-1>=2){let r=t;do t=r,r=t.replace(/~([^\s,:;]+)~/,"<$1>");while(r!=t);return parseGenericTypes(r)}else return t},common$1={getRows,sanitizeText:sanitizeText$2,sanitizeTextOrArray,hasBreaks,splitBreaks,lineBreakRegex,removeScript,getUrl,evaluate,getMax,getMin},mkBorder=(e,t)=>t?adjust$1(e,{s:-40,l:10}):adjust$1(e,{s:-40,l:-10}),oldAttributeBackgroundColorOdd="#ffffff",oldAttributeBackgroundColorEven="#f2f2f2";let Theme$4=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||adjust$1(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||adjust$1(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||mkBorder(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||mkBorder(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||mkBorder(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||mkBorder(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||invert$1(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||invert$1(this.tertiaryColor),this.lineColor=this.lineColor||invert$1(this.background),this.arrowheadColor=this.arrowheadColor||invert$1(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?darken$2(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||darken$2(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||invert$1(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||lighten$2(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||adjust$1(this.primaryColor,{h:30}),this.cScale4=this.cScale4||adjust$1(this.primaryColor,{h:60}),this.cScale5=this.cScale5||adjust$1(this.primaryColor,{h:90}),this.cScale6=this.cScale6||adjust$1(this.primaryColor,{h:120}),this.cScale7=this.cScale7||adjust$1(this.primaryColor,{h:150}),this.cScale8=this.cScale8||adjust$1(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||adjust$1(this.primaryColor,{h:270}),this.cScale10=this.cScale10||adjust$1(this.primaryColor,{h:300}),this.cScale11=this.cScale11||adjust$1(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=darken$2(this["cScale"+r],75);else for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScale"+r]=darken$2(this["cScale"+r],25);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleInv"+r]=this["cScaleInv"+r]||invert$1(this["cScale"+r]);for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this.darkMode?this["cScalePeer"+r]=this["cScalePeer"+r]||lighten$2(this["cScale"+r],10):this["cScalePeer"+r]=this["cScalePeer"+r]||darken$2(this["cScale"+r],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let r=0;r<this.THEME_COLOR_LIMIT;r++)this["cScaleLabel"+r]=this["cScaleLabel"+r]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let r=0;r<5;r++)this["surface"+r]=this["surface"+r]||adjust$1(this.mainBkg,{h:180,s:-15,l:t*(5+r*3)}),this["surfacePeer"+r]=this["surfacePeer"+r]||adjust$1(this.mainBkg,{h:180,s:-15,l:t*(8+r*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||adjust$1(this.primaryColor,{h:64}),this.fillType3=this.fillType3||adjust$1(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||adjust$1(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||adjust$1(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||adjust$1(this.primaryColor,{h:128}),this.fillType7=this.fillType7||adjust$1(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||adjust$1(this.primaryColor,{l:-10}),this.pie5=this.pie5||adjust$1(this.secondaryColor,{l:-10}),this.pie6=this.pie6||adjust$1(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||adjust$1(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||adjust$1(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||adjust$1(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||adjust$1(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||adjust$1(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||adjust$1(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||adjust$1(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||adjust$1(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||adjust$1(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||adjust$1(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||adjust$1(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||adjust$1(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||isDark$1(this.quadrant1Fill)?lighten$2(this.quadrant1Fill):darken$2(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?darken$2(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||adjust$1(this.primaryColor,{h:-30}),this.git4=this.git4||adjust$1(this.primaryColor,{h:-60}),this.git5=this.git5||adjust$1(this.primaryColor,{h:-90}),this.git6=this.git6||adjust$1(this.primaryColor,{h:60}),this.git7=this.git7||adjust$1(this.primaryColor,{h:120}),this.darkMode?(this.git0=lighten$2(this.git0,25),this.git1=lighten$2(this.git1,25),this.git2=lighten$2(this.git2,25),this.git3=lighten$2(this.git3,25),this.git4=lighten$2(this.git4,25),this.git5=lighten$2(this.git5,25),this.git6=lighten$2(this.git6,25),this.git7=lighten$2(this.git7,25)):(this.git0=darken$2(this.git0,25),this.git1=darken$2(this.git1,25),this.git2=darken$2(this.git2,25),this.git3=darken$2(this.git3,25),this.git4=darken$2(this.git4,25),this.git5=darken$2(this.git5,25),this.git6=darken$2(this.git6,25),this.git7=darken$2(this.git7,25)),this.gitInv0=this.gitInv0||invert$1(this.git0),this.gitInv1=this.gitInv1||invert$1(this.git1),this.gitInv2=this.gitInv2||invert$1(this.git2),this.gitInv3=this.gitInv3||invert$1(this.git3),this.gitInv4=this.gitInv4||invert$1(this.git4),this.gitInv5=this.gitInv5||invert$1(this.git5),this.gitInv6=this.gitInv6||invert$1(this.git6),this.gitInv7=this.gitInv7||invert$1(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||oldAttributeBackgroundColorOdd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||oldAttributeBackgroundColorEven}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(a=>{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}};const getThemeVariables$4=e=>{const t=new Theme$4;return t.calculate(e),t};let Theme$3=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=lighten$2(this.primaryColor,16),this.tertiaryColor=adjust$1(this.primaryColor,{h:-160}),this.primaryBorderColor=invert$1(this.background),this.secondaryBorderColor=mkBorder(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mkBorder(this.tertiaryColor,this.darkMode),this.primaryTextColor=invert$1(this.primaryColor),this.secondaryTextColor=invert$1(this.secondaryColor),this.tertiaryTextColor=invert$1(this.tertiaryColor),this.lineColor=invert$1(this.background),this.textColor=invert$1(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=lighten$2(invert$1("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=rgba$2(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=darken$2("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=darken$2(this.sectionBkgColor,10),this.taskBorderColor=rgba$2(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=rgba$2(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=lighten$2(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=lighten$2(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=lighten$2(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=adjust$1(this.primaryColor,{h:64}),this.fillType3=adjust$1(this.secondaryColor,{h:64}),this.fillType4=adjust$1(this.primaryColor,{h:-64}),this.fillType5=adjust$1(this.secondaryColor,{h:-64}),this.fillType6=adjust$1(this.primaryColor,{h:128}),this.fillType7=adjust$1(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||adjust$1(this.primaryColor,{h:30}),this.cScale4=this.cScale4||adjust$1(this.primaryColor,{h:60}),this.cScale5=this.cScale5||adjust$1(this.primaryColor,{h:90}),this.cScale6=this.cScale6||adjust$1(this.primaryColor,{h:120}),this.cScale7=this.cScale7||adjust$1(this.primaryColor,{h:150}),this.cScale8=this.cScale8||adjust$1(this.primaryColor,{h:210}),this.cScale9=this.cScale9||adjust$1(this.primaryColor,{h:270}),this.cScale10=this.cScale10||adjust$1(this.primaryColor,{h:300}),this.cScale11=this.cScale11||adjust$1(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||invert$1(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||lighten$2(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||adjust$1(this.mainBkg,{h:30,s:-30,l:-(-10+t*4)}),this["surfacePeer"+t]=this["surfacePeer"+t]||adjust$1(this.mainBkg,{h:30,s:-30,l:-(-7+t*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||adjust$1(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||adjust$1(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||adjust$1(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||adjust$1(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||adjust$1(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||adjust$1(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||isDark$1(this.quadrant1Fill)?lighten$2(this.quadrant1Fill):darken$2(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?darken$2(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=lighten$2(this.secondaryColor,20),this.git1=lighten$2(this.pie2||this.secondaryColor,20),this.git2=lighten$2(this.pie3||this.tertiaryColor,20),this.git3=lighten$2(this.pie4||adjust$1(this.primaryColor,{h:-30}),20),this.git4=lighten$2(this.pie5||adjust$1(this.primaryColor,{h:-60}),20),this.git5=lighten$2(this.pie6||adjust$1(this.primaryColor,{h:-90}),10),this.git6=lighten$2(this.pie7||adjust$1(this.primaryColor,{h:60}),10),this.git7=lighten$2(this.pie8||adjust$1(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||invert$1(this.git0),this.gitInv1=this.gitInv1||invert$1(this.git1),this.gitInv2=this.gitInv2||invert$1(this.git2),this.gitInv3=this.gitInv3||invert$1(this.git3),this.gitInv4=this.gitInv4||invert$1(this.git4),this.gitInv5=this.gitInv5||invert$1(this.git5),this.gitInv6=this.gitInv6||invert$1(this.git6),this.gitInv7=this.gitInv7||invert$1(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||invert$1(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||invert$1(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||lighten$2(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||lighten$2(this.background,2)}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(a=>{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}};const getThemeVariables$3=e=>{const t=new Theme$3;return t.calculate(e),t};let Theme$2=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=adjust$1(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=adjust$1(this.primaryColor,{h:-160}),this.primaryBorderColor=mkBorder(this.primaryColor,this.darkMode),this.secondaryBorderColor=mkBorder(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mkBorder(this.tertiaryColor,this.darkMode),this.primaryTextColor=invert$1(this.primaryColor),this.secondaryTextColor=invert$1(this.secondaryColor),this.tertiaryTextColor=invert$1(this.tertiaryColor),this.lineColor=invert$1(this.background),this.textColor=invert$1(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=rgba$2(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||adjust$1(this.primaryColor,{h:30}),this.cScale4=this.cScale4||adjust$1(this.primaryColor,{h:60}),this.cScale5=this.cScale5||adjust$1(this.primaryColor,{h:90}),this.cScale6=this.cScale6||adjust$1(this.primaryColor,{h:120}),this.cScale7=this.cScale7||adjust$1(this.primaryColor,{h:150}),this.cScale8=this.cScale8||adjust$1(this.primaryColor,{h:210}),this.cScale9=this.cScale9||adjust$1(this.primaryColor,{h:270}),this.cScale10=this.cScale10||adjust$1(this.primaryColor,{h:300}),this.cScale11=this.cScale11||adjust$1(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||darken$2(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||darken$2(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=darken$2(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||darken$2(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||adjust$1(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||adjust$1(this.mainBkg,{h:30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||adjust$1(this.mainBkg,{h:30,l:-(7+t*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||invert$1(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||invert$1(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=lighten$2(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=adjust$1(this.primaryColor,{h:64}),this.fillType3=adjust$1(this.secondaryColor,{h:64}),this.fillType4=adjust$1(this.primaryColor,{h:-64}),this.fillType5=adjust$1(this.secondaryColor,{h:-64}),this.fillType6=adjust$1(this.primaryColor,{h:128}),this.fillType7=adjust$1(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||adjust$1(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||adjust$1(this.primaryColor,{l:-10}),this.pie5=this.pie5||adjust$1(this.secondaryColor,{l:-30}),this.pie6=this.pie6||adjust$1(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||adjust$1(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||adjust$1(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||adjust$1(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||adjust$1(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||adjust$1(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||adjust$1(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||adjust$1(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||adjust$1(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||adjust$1(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||adjust$1(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||adjust$1(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||adjust$1(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||isDark$1(this.quadrant1Fill)?lighten$2(this.quadrant1Fill):darken$2(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||adjust$1(this.primaryColor,{h:-30}),this.git4=this.git4||adjust$1(this.primaryColor,{h:-60}),this.git5=this.git5||adjust$1(this.primaryColor,{h:-90}),this.git6=this.git6||adjust$1(this.primaryColor,{h:60}),this.git7=this.git7||adjust$1(this.primaryColor,{h:120}),this.darkMode?(this.git0=lighten$2(this.git0,25),this.git1=lighten$2(this.git1,25),this.git2=lighten$2(this.git2,25),this.git3=lighten$2(this.git3,25),this.git4=lighten$2(this.git4,25),this.git5=lighten$2(this.git5,25),this.git6=lighten$2(this.git6,25),this.git7=lighten$2(this.git7,25)):(this.git0=darken$2(this.git0,25),this.git1=darken$2(this.git1,25),this.git2=darken$2(this.git2,25),this.git3=darken$2(this.git3,25),this.git4=darken$2(this.git4,25),this.git5=darken$2(this.git5,25),this.git6=darken$2(this.git6,25),this.git7=darken$2(this.git7,25)),this.gitInv0=this.gitInv0||darken$2(invert$1(this.git0),25),this.gitInv1=this.gitInv1||invert$1(this.git1),this.gitInv2=this.gitInv2||invert$1(this.git2),this.gitInv3=this.gitInv3||invert$1(this.git3),this.gitInv4=this.gitInv4||invert$1(this.git4),this.gitInv5=this.gitInv5||invert$1(this.git5),this.gitInv6=this.gitInv6||invert$1(this.git6),this.gitInv7=this.gitInv7||invert$1(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||invert$1(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||invert$1(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||oldAttributeBackgroundColorOdd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||oldAttributeBackgroundColorEven}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(a=>{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}};const getThemeVariables$2=e=>{const t=new Theme$2;return t.calculate(e),t};let Theme$1=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=lighten$2("#cde498",10),this.primaryBorderColor=mkBorder(this.primaryColor,this.darkMode),this.secondaryBorderColor=mkBorder(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mkBorder(this.tertiaryColor,this.darkMode),this.primaryTextColor=invert$1(this.primaryColor),this.secondaryTextColor=invert$1(this.secondaryColor),this.tertiaryTextColor=invert$1(this.primaryColor),this.lineColor=invert$1(this.background),this.textColor=invert$1(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=darken$2(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||adjust$1(this.primaryColor,{h:30}),this.cScale4=this.cScale4||adjust$1(this.primaryColor,{h:60}),this.cScale5=this.cScale5||adjust$1(this.primaryColor,{h:90}),this.cScale6=this.cScale6||adjust$1(this.primaryColor,{h:120}),this.cScale7=this.cScale7||adjust$1(this.primaryColor,{h:150}),this.cScale8=this.cScale8||adjust$1(this.primaryColor,{h:210}),this.cScale9=this.cScale9||adjust$1(this.primaryColor,{h:270}),this.cScale10=this.cScale10||adjust$1(this.primaryColor,{h:300}),this.cScale11=this.cScale11||adjust$1(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||darken$2(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||darken$2(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=darken$2(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||darken$2(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||adjust$1(this["cScale"+t],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||adjust$1(this.mainBkg,{h:30,s:-30,l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||adjust$1(this.mainBkg,{h:30,s:-30,l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=adjust$1(this.primaryColor,{h:64}),this.fillType3=adjust$1(this.secondaryColor,{h:64}),this.fillType4=adjust$1(this.primaryColor,{h:-64}),this.fillType5=adjust$1(this.secondaryColor,{h:-64}),this.fillType6=adjust$1(this.primaryColor,{h:128}),this.fillType7=adjust$1(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||adjust$1(this.primaryColor,{l:-30}),this.pie5=this.pie5||adjust$1(this.secondaryColor,{l:-30}),this.pie6=this.pie6||adjust$1(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||adjust$1(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||adjust$1(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||adjust$1(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||adjust$1(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||adjust$1(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||adjust$1(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||adjust$1(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||adjust$1(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||adjust$1(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||adjust$1(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||adjust$1(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||adjust$1(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||isDark$1(this.quadrant1Fill)?lighten$2(this.quadrant1Fill):darken$2(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||adjust$1(this.primaryColor,{h:-30}),this.git4=this.git4||adjust$1(this.primaryColor,{h:-60}),this.git5=this.git5||adjust$1(this.primaryColor,{h:-90}),this.git6=this.git6||adjust$1(this.primaryColor,{h:60}),this.git7=this.git7||adjust$1(this.primaryColor,{h:120}),this.darkMode?(this.git0=lighten$2(this.git0,25),this.git1=lighten$2(this.git1,25),this.git2=lighten$2(this.git2,25),this.git3=lighten$2(this.git3,25),this.git4=lighten$2(this.git4,25),this.git5=lighten$2(this.git5,25),this.git6=lighten$2(this.git6,25),this.git7=lighten$2(this.git7,25)):(this.git0=darken$2(this.git0,25),this.git1=darken$2(this.git1,25),this.git2=darken$2(this.git2,25),this.git3=darken$2(this.git3,25),this.git4=darken$2(this.git4,25),this.git5=darken$2(this.git5,25),this.git6=darken$2(this.git6,25),this.git7=darken$2(this.git7,25)),this.gitInv0=this.gitInv0||invert$1(this.git0),this.gitInv1=this.gitInv1||invert$1(this.git1),this.gitInv2=this.gitInv2||invert$1(this.git2),this.gitInv3=this.gitInv3||invert$1(this.git3),this.gitInv4=this.gitInv4||invert$1(this.git4),this.gitInv5=this.gitInv5||invert$1(this.git5),this.gitInv6=this.gitInv6||invert$1(this.git6),this.gitInv7=this.gitInv7||invert$1(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||invert$1(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||invert$1(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||oldAttributeBackgroundColorOdd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||oldAttributeBackgroundColorEven}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(a=>{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}};const getThemeVariables$1=e=>{const t=new Theme$1;return t.calculate(e),t};class Theme5{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=lighten$2(this.contrast,55),this.background="#ffffff",this.tertiaryColor=adjust$1(this.primaryColor,{h:-160}),this.primaryBorderColor=mkBorder(this.primaryColor,this.darkMode),this.secondaryBorderColor=mkBorder(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=mkBorder(this.tertiaryColor,this.darkMode),this.primaryTextColor=invert$1(this.primaryColor),this.secondaryTextColor=invert$1(this.secondaryColor),this.tertiaryTextColor=invert$1(this.tertiaryColor),this.lineColor=invert$1(this.background),this.textColor=invert$1(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=lighten$2(this.contrast,55),this.border2=this.contrast,this.actorBorder=lighten$2(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||invert$1(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||lighten$2(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||darken$2(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||adjust$1(this.mainBkg,{l:-(5+t*5)}),this["surfacePeer"+t]=this["surfacePeer"+t]||adjust$1(this.mainBkg,{l:-(8+t*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=lighten$2(this.contrast,30),this.sectionBkgColor2=lighten$2(this.contrast,30),this.taskBorderColor=darken$2(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=lighten$2(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=darken$2(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=adjust$1(this.primaryColor,{h:64}),this.fillType3=adjust$1(this.secondaryColor,{h:64}),this.fillType4=adjust$1(this.primaryColor,{h:-64}),this.fillType5=adjust$1(this.secondaryColor,{h:-64}),this.fillType6=adjust$1(this.primaryColor,{h:128}),this.fillType7=adjust$1(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||adjust$1(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||adjust$1(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||adjust$1(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||adjust$1(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||adjust$1(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||adjust$1(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||isDark$1(this.quadrant1Fill)?lighten$2(this.quadrant1Fill):darken$2(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=darken$2(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||adjust$1(this.primaryColor,{h:-30}),this.git4=this.pie5||adjust$1(this.primaryColor,{h:-60}),this.git5=this.pie6||adjust$1(this.primaryColor,{h:-90}),this.git6=this.pie7||adjust$1(this.primaryColor,{h:60}),this.git7=this.pie8||adjust$1(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||invert$1(this.git0),this.gitInv1=this.gitInv1||invert$1(this.git1),this.gitInv2=this.gitInv2||invert$1(this.git2),this.gitInv3=this.gitInv3||invert$1(this.git3),this.gitInv4=this.gitInv4||invert$1(this.git4),this.gitInv5=this.gitInv5||invert$1(this.git5),this.gitInv6=this.gitInv6||invert$1(this.git6),this.gitInv7=this.gitInv7||invert$1(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||oldAttributeBackgroundColorOdd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||oldAttributeBackgroundColorEven}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(a=>{this[a]=t[a]}),this.updateColors(),r.forEach(a=>{this[a]=t[a]})}}const getThemeVariables=e=>{const t=new Theme5;return t.calculate(e),t},theme$1={base:{getThemeVariables:getThemeVariables$4},dark:{getThemeVariables:getThemeVariables$3},default:{getThemeVariables:getThemeVariables$2},forest:{getThemeVariables:getThemeVariables$1},neutral:{getThemeVariables}},defaultConfigJson={flowchart:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},theme:"default",maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,fontSize:16},config$1={...defaultConfigJson,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:theme$1.default.getThemeVariables(),sequence:{...defaultConfigJson.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...defaultConfigJson.gantt,tickInterval:void 0,useWidth:void 0},c4:{...defaultConfigJson.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...defaultConfigJson.pie,useWidth:984},requirement:{...defaultConfigJson.requirement,useWidth:void 0},gitGraph:{...defaultConfigJson.gitGraph,useMaxWidth:!1},sankey:{...defaultConfigJson.sankey,useMaxWidth:!1}},keyify=(e,t="")=>Object.keys(e).reduce((r,a)=>Array.isArray(e[a])?r:typeof e[a]=="object"&&e[a]!==null?[...r,t+a,...keyify(e[a],"")]:[...r,t+a],[]),configKeys=new Set(keyify(config$1,"")),defaultConfig$1=config$1,frontMatterRegex=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,directiveRegex=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,anyCommentRegex=/\s*%%.*\n/gm;class UnknownDiagramError extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}}const detectors={},detectType=function(e,t){e=e.replace(frontMatterRegex,"").replace(directiveRegex,"").replace(anyCommentRegex,`
|
|
104
104
|
`);for(const[r,{detector:a}]of Object.entries(detectors))if(a(e,t))return r;throw new UnknownDiagramError(`No diagram type detected matching given configuration for text: ${e}`)},registerLazyLoadedDiagrams=(...e)=>{for(const{id:t,detector:r,loader:a}of e)addDetector(t,r,a)},addDetector=(e,t,r)=>{detectors[e]?log$1.error(`Detector with key ${e} already exists`):detectors[e]={detector:t,loader:r},log$1.debug(`Detector with key ${e} added${r?" with loader":""}`)},getDiagramLoader=e=>detectors[e].loader,assignWithDepth=(e,t,{depth:r=2,clobber:a=!1}={})=>{const o={depth:r,clobber:a};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(u=>assignWithDepth(e,u,o)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(u=>{e.includes(u)||e.push(u)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(u=>{typeof t[u]=="object"&&(e[u]===void 0||typeof e[u]=="object")?(e[u]===void 0&&(e[u]=Array.isArray(t[u])?[]:{}),e[u]=assignWithDepth(e[u],t[u],{depth:r-1,clobber:a})):(a||typeof e[u]!="object"&&typeof t[u]!="object")&&(e[u]=t[u])}),e)},assignWithDepth$1=assignWithDepth,ZERO_WIDTH_SPACE="",d3CurveTypes={curveBasis,curveBasisClosed,curveBasisOpen,curveBumpX:bumpX,curveBumpY:bumpY,curveBundle,curveCardinalClosed,curveCardinalOpen,curveCardinal,curveCatmullRomClosed,curveCatmullRomOpen,curveCatmullRom,curveLinear,curveLinearClosed,curveMonotoneX:monotoneX,curveMonotoneY:monotoneY,curveNatural,curveStep,curveStepAfter:stepAfter,curveStepBefore:stepBefore},directiveWithoutOpen=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,detectInit=function(e,t){const r=detectDirective(e,/(?:init\b)|(?:initialize\b)/);let a={};if(Array.isArray(r)){const u=r.map(d=>d.args);sanitizeDirective(u),a=assignWithDepth$1(a,[...u])}else a=r.args;if(!a)return;let o=detectType(e,t);return["config"].forEach(u=>{a[u]!==void 0&&(o==="flowchart-v2"&&(o="flowchart"),a[o]=a[u],delete a[u])}),a},detectDirective=function(e,t=null){try{const r=new RegExp(`[%]{2}(?![{]${directiveWithoutOpen.source})(?=[}][%]{2}).*
|
|
105
105
|
`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),log$1.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let a;const o=[];for(;(a=directiveRegex.exec(e))!==null;)if(a.index===directiveRegex.lastIndex&&directiveRegex.lastIndex++,a&&!t||t&&a[1]&&a[1].match(t)||t&&a[2]&&a[2].match(t)){const u=a[1]?a[1]:a[2],d=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;o.push({type:u,args:d})}return o.length===0&&o.push({type:e,args:null}),o.length===1?o[0]:o}catch(r){return log$1.error(`ERROR: ${r.message} - Unable to parse directive
|
|
106
|
-
${t!==null?" type:"+t:""} based on the text:${e}`),{type:null,args:null}}},isSubstringInArray=function(e,t){for(const[r,a]of t.entries())if(a.match(e))return r;return-1};function interpolateToCurve(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return d3CurveTypes[r]||t}function formatUrl(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?dist.sanitizeUrl(r):r}const runFunc=(e,...t)=>{const r=e.split("."),a=r.length-1,o=r[a];let u=window;for(let d=0;d<a;d++)if(u=u[r[d]],!u)return;u[o](...t)};function distance(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function traverseEdge(e){let t,r=0;e.forEach(u=>{r+=distance(u,t),t=u});let a=r/2,o;return t=void 0,e.forEach(u=>{if(t&&!o){const d=distance(u,t);if(d<a)a-=d;else{const f=a/d;f<=0&&(o=t),f>=1&&(o={x:u.x,y:u.y}),f>0&&f<1&&(o={x:(1-f)*t.x+f*u.x,y:(1-f)*t.y+f*u.y})}}t=u}),o}function calcLabelPosition(e){return e.length===1?e[0]:traverseEdge(e)}const calcCardinalityPosition=(e,t,r)=>{let a;log$1.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());let u=25,d;a=void 0,t.forEach(S=>{if(a&&!d){const b=distance(S,a);if(b<u)u-=b;else{const v=u/b;v<=0&&(d=a),v>=1&&(d={x:S.x,y:S.y}),v>0&&v<1&&(d={x:(1-v)*a.x+v*S.x,y:(1-v)*a.y+v*S.y})}}a=S});const f=e?10:5,g=Math.atan2(t[0].y-d.y,t[0].x-d.x),E={x:0,y:0};return E.x=Math.sin(g)*f+(t[0].x+d.x)/2,E.y=-Math.cos(g)*f+(t[0].y+d.y)/2,E};function calcTerminalLabelPosition(e,t,r){let a=JSON.parse(JSON.stringify(r)),o;log$1.info("our points",a),t!=="start_left"&&t!=="start_right"&&(a=a.reverse()),a.forEach(b=>{o=b});let d=25+e,f;o=void 0,a.forEach(b=>{if(o&&!f){const v=distance(b,o);if(v<d)d-=v;else{const y=d/v;y<=0&&(f=o),y>=1&&(f={x:b.x,y:b.y}),y>0&&y<1&&(f={x:(1-y)*o.x+y*b.x,y:(1-y)*o.y+y*b.y})}}o=b});const g=10+e*.5,E=Math.atan2(a[0].y-f.y,a[0].x-f.x),S={x:0,y:0};return S.x=Math.sin(E)*g+(a[0].x+f.x)/2,S.y=-Math.cos(E)*g+(a[0].y+f.y)/2,t==="start_left"&&(S.x=Math.sin(E+Math.PI)*g+(a[0].x+f.x)/2,S.y=-Math.cos(E+Math.PI)*g+(a[0].y+f.y)/2),t==="end_right"&&(S.x=Math.sin(E-Math.PI)*g+(a[0].x+f.x)/2-5,S.y=-Math.cos(E-Math.PI)*g+(a[0].y+f.y)/2-5),t==="end_left"&&(S.x=Math.sin(E)*g+(a[0].x+f.x)/2-5,S.y=-Math.cos(E)*g+(a[0].y+f.y)/2-5),S}function getStylesFromArray(e){let t="",r="";for(const a of e)a!==void 0&&(a.startsWith("color:")||a.startsWith("text-align:")?r=r+a+";":t=t+a+";");return{style:t,labelStyle:r}}let cnt=0;const generateId=()=>(cnt++,"id-"+Math.random().toString(36).substr(2,12)+"-"+cnt);function makeid(e){let t="";const r="0123456789abcdef",a=r.length;for(let o=0;o<e;o++)t+=r.charAt(Math.floor(Math.random()*a));return t}const random=e=>makeid(e.length),getTextObj=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0}},drawSimpleText=function(e,t){const r=t.text.replace(common$1.lineBreakRegex," "),[,a]=parseFontSize(t.fontSize),o=e.append("text");o.attr("x",t.x),o.attr("y",t.y),o.style("text-anchor",t.anchor),o.style("font-family",t.fontFamily),o.style("font-size",a),o.style("font-weight",t.fontWeight),o.attr("fill",t.fill),t.class!==void 0&&o.attr("class",t.class);const u=o.append("tspan");return u.attr("x",t.x+t.textMargin*2),u.attr("fill",t.fill),u.text(r),o},wrapLabel=memoize((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),common$1.lineBreakRegex.test(e)))return e;const a=e.split(" "),o=[];let u="";return a.forEach((d,f)=>{const g=calculateTextWidth(`${d} `,r),E=calculateTextWidth(u,r);if(g>t){const{hyphenatedStrings:v,remainingWord:y}=breakString(d,t,"-",r);o.push(u,...v),u=y}else E+g>=t?(o.push(u),u=d):u=[u,d].filter(Boolean).join(" ");f+1===a.length&&o.push(u)}),o.filter(d=>d!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),breakString=memoize((e,t,r="-",a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);const o=[...e],u=[];let d="";return o.forEach((f,g)=>{const E=`${d}${f}`;if(calculateTextWidth(E,a)>=t){const b=g+1,v=o.length===b,y=`${E}${r}`;u.push(v?E:y),d=""}else d=E}),{hyphenatedStrings:u,remainingWord:d}},(e,t,r="-",a)=>`${e}${t}${r}${a.fontSize}${a.fontWeight}${a.fontFamily}`);function calculateTextHeight(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},t),calculateTextDimensions(e,t).height}function calculateTextWidth(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t),calculateTextDimensions(e,t).width}const calculateTextDimensions=memoize((e,t)=>{t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t);const{fontSize:r,fontFamily:a,fontWeight:o}=t;if(!e)return{width:0,height:0};const[,u]=parseFontSize(r),d=["sans-serif",a],f=e.split(common$1.lineBreakRegex),g=[],E=select("body");if(!E.remove)return{width:0,height:0,lineHeight:0};const S=E.append("svg");for(const v of d){let y=0;const T={width:0,height:0,lineHeight:0};for(const C of f){const R=getTextObj();R.text=C||ZERO_WIDTH_SPACE;const A=drawSimpleText(S,R).style("font-size",u).style("font-weight",o).style("font-family",v),N=(A._groups||A)[0][0].getBBox();if(N.width===0&&N.height===0)throw new Error("svg element not in render tree");T.width=Math.round(Math.max(T.width,N.width)),y=Math.round(N.height),T.height+=y,T.lineHeight=Math.round(Math.max(T.lineHeight,y))}g.push(T)}S.remove();const b=isNaN(g[1].height)||isNaN(g[1].width)||isNaN(g[1].lineHeight)||g[0].height>g[1].height&&g[0].width>g[1].width&&g[0].lineHeight>g[1].lineHeight?0:1;return g[b]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),initIdGenerator=class{constructor(t,r){this.deterministic=t,this.seed=r,this.count=r?r.length:0}next(){return this.deterministic?this.count++:Date.now()}};let decoder;const entityDecode=function(e){return decoder=decoder||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),decoder.innerHTML=e,unescape(decoder.textContent)},sanitizeDirective=e=>{if(log$1.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>sanitizeDirective(t));return}for(const t of Object.keys(e)){if(log$1.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!configKeys.has(t)||e[t]==null){log$1.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){log$1.debug("sanitizing object",t),sanitizeDirective(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const a of r)t.includes(a)&&(log$1.debug("sanitizing css option",t),e[t]=sanitizeCss(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}log$1.debug("After sanitization",e)}},sanitizeCss=e=>{let t=0,r=0;for(const a of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";a==="{"?t++:a==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e};function isDetailedError(e){return"str"in e}const insertTitle=(e,t,r,a)=>{if(!a)return;const o=e.node().getBBox();e.append("text").text(a).attr("x",o.x+o.width/2).attr("y",-r).attr("class",t)},parseFontSize=e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e,10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]};function cleanAndMerge(e,t){return merge$2({},e,t)}const utils$1={assignWithDepth:assignWithDepth$1,wrapLabel,calculateTextHeight,calculateTextWidth,calculateTextDimensions,cleanAndMerge,detectInit,detectDirective,isSubstringInArray,interpolateToCurve,calcLabelPosition,calcCardinalityPosition,calcTerminalLabelPosition,formatUrl,getStylesFromArray,generateId,random,runFunc,entityDecode,initIdGenerator,sanitizeDirective,sanitizeCss,insertTitle,parseFontSize},version$3="10.4.0",defaultConfig=Object.freeze(defaultConfig$1);let siteConfig=assignWithDepth$1({},defaultConfig),configFromInitialize,directives$1=[],currentConfig=assignWithDepth$1({},defaultConfig);const updateCurrentConfig=(e,t)=>{let r=assignWithDepth$1({},e),a={};for(const o of t)sanitize(o),a=assignWithDepth$1(a,o);if(r=assignWithDepth$1(r,a),a.theme&&a.theme in theme$1){const o=assignWithDepth$1({},configFromInitialize),u=assignWithDepth$1(o.themeVariables||{},a.themeVariables);r.theme&&r.theme in theme$1&&(r.themeVariables=theme$1[r.theme].getThemeVariables(u))}return currentConfig=r,checkConfig(currentConfig),currentConfig},setSiteConfig=e=>(siteConfig=assignWithDepth$1({},defaultConfig),siteConfig=assignWithDepth$1(siteConfig,e),e.theme&&theme$1[e.theme]&&(siteConfig.themeVariables=theme$1[e.theme].getThemeVariables(e.themeVariables)),updateCurrentConfig(siteConfig,directives$1),siteConfig),saveConfigFromInitialize=e=>{configFromInitialize=assignWithDepth$1({},e)},updateSiteConfig=e=>(siteConfig=assignWithDepth$1(siteConfig,e),updateCurrentConfig(siteConfig,directives$1),siteConfig),getSiteConfig=()=>assignWithDepth$1({},siteConfig),setConfig=e=>(checkConfig(e),assignWithDepth$1(currentConfig,e),getConfig$1()),getConfig$1=()=>assignWithDepth$1({},currentConfig),sanitize=e=>{e&&(["secure",...siteConfig.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(log$1.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&sanitize(e[t])}))},addDirective=e=>{sanitizeDirective(e),e.fontFamily&&(!e.themeVariables||!e.themeVariables.fontFamily)&&(e.themeVariables={fontFamily:e.fontFamily}),directives$1.push(e),updateCurrentConfig(siteConfig,directives$1)},reset=(e=siteConfig)=>{directives$1=[],updateCurrentConfig(e,directives$1)},ConfigWarning={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},issuedWarnings={},issueWarning=e=>{issuedWarnings[e]||(log$1.warn(ConfigWarning[e]),issuedWarnings[e]=!0)},checkConfig=e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&issueWarning("LAZY_LOAD_DEPRECATED")},id$j="c4",detector$j=e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),loader$k=async()=>{const{diagram:e}=await __vitePreload(()=>import("./c4Diagram-c0b17d02-layKFfWt.js"),__vite__mapDeps([0,1]));return{id:id$j,diagram:e}},plugin$h={id:id$j,detector:detector$j,loader:loader$k},c4=plugin$h,id$i="flowchart",detector$i=(e,t)=>{var r,a;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((a=t==null?void 0:t.flowchart)==null?void 0:a.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},loader$j=async()=>{const{diagram:e}=await __vitePreload(()=>import("./flowDiagram-d6f8fe3a-njWzbfzQ.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12]));return{id:id$i,diagram:e}},plugin$g={id:id$i,detector:detector$i,loader:loader$j},flowchart=plugin$g,id$h="flowchart-v2",detector$h=(e,t)=>{var r,a,o;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"||((a=t==null?void 0:t.flowchart)==null?void 0:a.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)&&((o=t==null?void 0:t.flowchart)==null?void 0:o.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)},loader$i=async()=>{const{diagram:e}=await __vitePreload(()=>import("./flowDiagram-v2-58f49b84-J8Y8LcUP.js"),__vite__mapDeps([13,3,5,4,6,7,8,9,10,11,12]));return{id:id$h,diagram:e}},plugin$f={id:id$h,detector:detector$h,loader:loader$i},flowchartV2=plugin$f,id$g="er",detector$g=e=>/^\s*erDiagram/.test(e),loader$h=async()=>{const{diagram:e}=await __vitePreload(()=>import("./erDiagram-dedf2781-3d1HJdR-.js"),__vite__mapDeps([14,4,10,11,12]));return{id:id$g,diagram:e}},plugin$e={id:id$g,detector:detector$g,loader:loader$h},er=plugin$e,id$f="gitGraph",detector$f=e=>/^\s*gitGraph/.test(e),loader$g=async()=>{const{diagram:e}=await __vitePreload(()=>import("./gitGraphDiagram-e0ffc2d1-dIZkYsih.js"),__vite__mapDeps([]));return{id:id$f,diagram:e}},plugin$d={id:id$f,detector:detector$f,loader:loader$g},git=plugin$d,id$e="gantt",detector$e=e=>/^\s*gantt/.test(e),loader$f=async()=>{const{diagram:e}=await __vitePreload(()=>import("./ganttDiagram-088dbd90-jcU-ukfH.js"),__vite__mapDeps([15,16,17]));return{id:id$e,diagram:e}},plugin$c={id:id$e,detector:detector$e,loader:loader$f},gantt=plugin$c,id$d="info",detector$d=e=>/^\s*info/.test(e),loader$e=async()=>{const{diagram:e}=await __vitePreload(()=>import("./infoDiagram-64895a6e-YiATGfeS.js"),__vite__mapDeps([]));return{id:id$d,diagram:e}},info={id:id$d,detector:detector$d,loader:loader$e},id$c="pie",detector$c=e=>/^\s*pie/.test(e),loader$d=async()=>{const{diagram:e}=await __vitePreload(()=>import("./pieDiagram-3fca7ce7-M1y5XJ7-.js"),__vite__mapDeps([18,19,12,20,17,11]));return{id:id$c,diagram:e}},pie={id:id$c,detector:detector$c,loader:loader$d},id$b="quadrantChart",detector$b=e=>/^\s*quadrantChart/.test(e),loader$c=async()=>{const{diagram:e}=await __vitePreload(()=>import("./quadrantDiagram-0ca4be02-d6_yGzai.js"),__vite__mapDeps([21,16,17]));return{id:id$b,diagram:e}},plugin$b={id:id$b,detector:detector$b,loader:loader$c},quadrantChart=plugin$b,id$a="requirement",detector$a=e=>/^\s*requirement(Diagram)?/.test(e),loader$b=async()=>{const{diagram:e}=await __vitePreload(()=>import("./requirementDiagram-e13af0f0-5sui4YMq.js"),__vite__mapDeps([22,4,10,11,12]));return{id:id$a,diagram:e}},plugin$a={id:id$a,detector:detector$a,loader:loader$b},requirement=plugin$a,id$9="sequence",detector$9=e=>/^\s*sequenceDiagram/.test(e),loader$a=async()=>{const{diagram:e}=await __vitePreload(()=>import("./sequenceDiagram-84aa38e3-A8w5qHau.js"),__vite__mapDeps([23,1]));return{id:id$9,diagram:e}},plugin$9={id:id$9,detector:detector$9,loader:loader$a},sequence=plugin$9,id$8="class",detector$8=(e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},loader$9=async()=>{const{diagram:e}=await __vitePreload(()=>import("./classDiagram-a8cc8886-VzwANB8n.js"),__vite__mapDeps([24,25,4,9,10,11,12]));return{id:id$8,diagram:e}},plugin$8={id:id$8,detector:detector$8,loader:loader$9},classDiagram=plugin$8,id$7="classDiagram",detector$7=(e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},loader$8=async()=>{const{diagram:e}=await __vitePreload(()=>import("./classDiagram-v2-802a48d3-M26XBLNm.js"),__vite__mapDeps([26,25,4,6,7,8,9,10,11,12]));return{id:id$7,diagram:e}},plugin$7={id:id$7,detector:detector$7,loader:loader$8},classDiagramV2=plugin$7,id$6="state",detector$6=(e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},loader$7=async()=>{const{diagram:e}=await __vitePreload(()=>import("./stateDiagram-9a586ac6-7q5M0Pi-.js"),__vite__mapDeps([27,28,4,10,11,12]));return{id:id$6,diagram:e}},plugin$6={id:id$6,detector:detector$6,loader:loader$7},state$3=plugin$6,id$5="stateDiagram",detector$5=(e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},loader$6=async()=>{const{diagram:e}=await __vitePreload(()=>import("./stateDiagram-v2-96f2b9df-7tVst5gU.js"),__vite__mapDeps([29,28,4,6,7,8,9,10,11,12]));return{id:id$5,diagram:e}},plugin$5={id:id$5,detector:detector$5,loader:loader$6},stateV2=plugin$5,id$4="journey",detector$4=e=>/^\s*journey/.test(e),loader$5=async()=>{const{diagram:e}=await __vitePreload(()=>import("./journeyDiagram-adaa34f8-C2dMQzW1.js"),__vite__mapDeps([30,1,19,12]));return{id:id$4,diagram:e}},plugin$4={id:id$4,detector:detector$4,loader:loader$5},journey=plugin$4,selectSvgElement=e=>{var t;const{securityLevel:r}=getConfig$1();let a=select("body");if(r==="sandbox"){const d=((t=select(`#i${e}`).node())==null?void 0:t.contentDocument)??document;a=select(d.body)}return a.select(`#${e}`)},d3Attrs=function(e,t){for(let r of t)e.attr(r[0],r[1])},calculateSvgSizeAttrs=function(e,t,r){let a=new Map;return r?(a.set("width","100%"),a.set("style",`max-width: ${t}px;`)):(a.set("height",e),a.set("width",t)),a},configureSvgSize=function(e,t,r,a){const o=calculateSvgSizeAttrs(t,r,a);d3Attrs(e,o)},setupGraphViewbox$1=function(e,t,r,a){const o=t.node().getBBox(),u=o.width,d=o.height;log$1.info(`SVG bounds: ${u}x${d}`,o);let f=0,g=0;log$1.info(`Graph bounds: ${f}x${g}`,e),f=u+r*2,g=d+r*2,log$1.info(`Calculated bounds: ${f}x${g}`),configureSvgSize(t,g,f,a);const E=`${o.x-r} ${o.y-r} ${o.width+2*r} ${o.height+2*r}`;t.attr("viewBox",E)},draw=(e,t,r)=>{log$1.debug(`renering svg for syntax error
|
|
107
|
-
`);const a=selectSvgElement(t);a.attr("viewBox","0 0 2412 512"),configureSvgSize(a,100,512,!0);const o=a.append("g");o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},renderer={draw},errorRenderer=renderer,diagram={db:{},renderer,parser:{parser:{yy:{}},parse:()=>{}}},errorDiagram=diagram,id$3="flowchart-elk",detector$3=(e,t)=>{var r;return!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk")},loader$4=async()=>{const{diagram:e}=await __vitePreload(()=>import("./flowchart-elk-definition-56584a6c-
|
|
106
|
+
${t!==null?" type:"+t:""} based on the text:${e}`),{type:null,args:null}}},isSubstringInArray=function(e,t){for(const[r,a]of t.entries())if(a.match(e))return r;return-1};function interpolateToCurve(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return d3CurveTypes[r]||t}function formatUrl(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?dist.sanitizeUrl(r):r}const runFunc=(e,...t)=>{const r=e.split("."),a=r.length-1,o=r[a];let u=window;for(let d=0;d<a;d++)if(u=u[r[d]],!u)return;u[o](...t)};function distance(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function traverseEdge(e){let t,r=0;e.forEach(u=>{r+=distance(u,t),t=u});let a=r/2,o;return t=void 0,e.forEach(u=>{if(t&&!o){const d=distance(u,t);if(d<a)a-=d;else{const f=a/d;f<=0&&(o=t),f>=1&&(o={x:u.x,y:u.y}),f>0&&f<1&&(o={x:(1-f)*t.x+f*u.x,y:(1-f)*t.y+f*u.y})}}t=u}),o}function calcLabelPosition(e){return e.length===1?e[0]:traverseEdge(e)}const calcCardinalityPosition=(e,t,r)=>{let a;log$1.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());let u=25,d;a=void 0,t.forEach(S=>{if(a&&!d){const b=distance(S,a);if(b<u)u-=b;else{const v=u/b;v<=0&&(d=a),v>=1&&(d={x:S.x,y:S.y}),v>0&&v<1&&(d={x:(1-v)*a.x+v*S.x,y:(1-v)*a.y+v*S.y})}}a=S});const f=e?10:5,g=Math.atan2(t[0].y-d.y,t[0].x-d.x),E={x:0,y:0};return E.x=Math.sin(g)*f+(t[0].x+d.x)/2,E.y=-Math.cos(g)*f+(t[0].y+d.y)/2,E};function calcTerminalLabelPosition(e,t,r){let a=JSON.parse(JSON.stringify(r)),o;log$1.info("our points",a),t!=="start_left"&&t!=="start_right"&&(a=a.reverse()),a.forEach(b=>{o=b});let d=25+e,f;o=void 0,a.forEach(b=>{if(o&&!f){const v=distance(b,o);if(v<d)d-=v;else{const y=d/v;y<=0&&(f=o),y>=1&&(f={x:b.x,y:b.y}),y>0&&y<1&&(f={x:(1-y)*o.x+y*b.x,y:(1-y)*o.y+y*b.y})}}o=b});const g=10+e*.5,E=Math.atan2(a[0].y-f.y,a[0].x-f.x),S={x:0,y:0};return S.x=Math.sin(E)*g+(a[0].x+f.x)/2,S.y=-Math.cos(E)*g+(a[0].y+f.y)/2,t==="start_left"&&(S.x=Math.sin(E+Math.PI)*g+(a[0].x+f.x)/2,S.y=-Math.cos(E+Math.PI)*g+(a[0].y+f.y)/2),t==="end_right"&&(S.x=Math.sin(E-Math.PI)*g+(a[0].x+f.x)/2-5,S.y=-Math.cos(E-Math.PI)*g+(a[0].y+f.y)/2-5),t==="end_left"&&(S.x=Math.sin(E)*g+(a[0].x+f.x)/2-5,S.y=-Math.cos(E)*g+(a[0].y+f.y)/2-5),S}function getStylesFromArray(e){let t="",r="";for(const a of e)a!==void 0&&(a.startsWith("color:")||a.startsWith("text-align:")?r=r+a+";":t=t+a+";");return{style:t,labelStyle:r}}let cnt=0;const generateId=()=>(cnt++,"id-"+Math.random().toString(36).substr(2,12)+"-"+cnt);function makeid(e){let t="";const r="0123456789abcdef",a=r.length;for(let o=0;o<e;o++)t+=r.charAt(Math.floor(Math.random()*a));return t}const random=e=>makeid(e.length),getTextObj=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0}},drawSimpleText=function(e,t){const r=t.text.replace(common$1.lineBreakRegex," "),[,a]=parseFontSize(t.fontSize),o=e.append("text");o.attr("x",t.x),o.attr("y",t.y),o.style("text-anchor",t.anchor),o.style("font-family",t.fontFamily),o.style("font-size",a),o.style("font-weight",t.fontWeight),o.attr("fill",t.fill),t.class!==void 0&&o.attr("class",t.class);const u=o.append("tspan");return u.attr("x",t.x+t.textMargin*2),u.attr("fill",t.fill),u.text(r),o},wrapLabel=memoize((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),common$1.lineBreakRegex.test(e)))return e;const a=e.split(" "),o=[];let u="";return a.forEach((d,f)=>{const g=calculateTextWidth(`${d} `,r),E=calculateTextWidth(u,r);if(g>t){const{hyphenatedStrings:v,remainingWord:y}=breakString(d,t,"-",r);o.push(u,...v),u=y}else E+g>=t?(o.push(u),u=d):u=[u,d].filter(Boolean).join(" ");f+1===a.length&&o.push(u)}),o.filter(d=>d!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),breakString=memoize((e,t,r="-",a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);const o=[...e],u=[];let d="";return o.forEach((f,g)=>{const E=`${d}${f}`;if(calculateTextWidth(E,a)>=t){const b=g+1,v=o.length===b,y=`${E}${r}`;u.push(v?E:y),d=""}else d=E}),{hyphenatedStrings:u,remainingWord:d}},(e,t,r="-",a)=>`${e}${t}${r}${a.fontSize}${a.fontWeight}${a.fontFamily}`);function calculateTextHeight(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},t),calculateTextDimensions(e,t).height}function calculateTextWidth(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t),calculateTextDimensions(e,t).width}const calculateTextDimensions=memoize((e,t)=>{t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t);const{fontSize:r,fontFamily:a,fontWeight:o}=t;if(!e)return{width:0,height:0};const[,u]=parseFontSize(r),d=["sans-serif",a],f=e.split(common$1.lineBreakRegex),g=[],E=select("body");if(!E.remove)return{width:0,height:0,lineHeight:0};const S=E.append("svg");for(const v of d){let y=0;const T={width:0,height:0,lineHeight:0};for(const C of f){const R=getTextObj();R.text=C||ZERO_WIDTH_SPACE;const A=drawSimpleText(S,R).style("font-size",u).style("font-weight",o).style("font-family",v),N=(A._groups||A)[0][0].getBBox();if(N.width===0&&N.height===0)throw new Error("svg element not in render tree");T.width=Math.round(Math.max(T.width,N.width)),y=Math.round(N.height),T.height+=y,T.lineHeight=Math.round(Math.max(T.lineHeight,y))}g.push(T)}S.remove();const b=isNaN(g[1].height)||isNaN(g[1].width)||isNaN(g[1].lineHeight)||g[0].height>g[1].height&&g[0].width>g[1].width&&g[0].lineHeight>g[1].lineHeight?0:1;return g[b]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),initIdGenerator=class{constructor(t,r){this.deterministic=t,this.seed=r,this.count=r?r.length:0}next(){return this.deterministic?this.count++:Date.now()}};let decoder;const entityDecode=function(e){return decoder=decoder||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),decoder.innerHTML=e,unescape(decoder.textContent)},sanitizeDirective=e=>{if(log$1.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>sanitizeDirective(t));return}for(const t of Object.keys(e)){if(log$1.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!configKeys.has(t)||e[t]==null){log$1.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){log$1.debug("sanitizing object",t),sanitizeDirective(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const a of r)t.includes(a)&&(log$1.debug("sanitizing css option",t),e[t]=sanitizeCss(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}log$1.debug("After sanitization",e)}},sanitizeCss=e=>{let t=0,r=0;for(const a of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";a==="{"?t++:a==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e};function isDetailedError(e){return"str"in e}const insertTitle=(e,t,r,a)=>{if(!a)return;const o=e.node().getBBox();e.append("text").text(a).attr("x",o.x+o.width/2).attr("y",-r).attr("class",t)},parseFontSize=e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e,10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]};function cleanAndMerge(e,t){return merge$2({},e,t)}const utils$1={assignWithDepth:assignWithDepth$1,wrapLabel,calculateTextHeight,calculateTextWidth,calculateTextDimensions,cleanAndMerge,detectInit,detectDirective,isSubstringInArray,interpolateToCurve,calcLabelPosition,calcCardinalityPosition,calcTerminalLabelPosition,formatUrl,getStylesFromArray,generateId,random,runFunc,entityDecode,initIdGenerator,sanitizeDirective,sanitizeCss,insertTitle,parseFontSize},version$3="10.4.0",defaultConfig=Object.freeze(defaultConfig$1);let siteConfig=assignWithDepth$1({},defaultConfig),configFromInitialize,directives$1=[],currentConfig=assignWithDepth$1({},defaultConfig);const updateCurrentConfig=(e,t)=>{let r=assignWithDepth$1({},e),a={};for(const o of t)sanitize(o),a=assignWithDepth$1(a,o);if(r=assignWithDepth$1(r,a),a.theme&&a.theme in theme$1){const o=assignWithDepth$1({},configFromInitialize),u=assignWithDepth$1(o.themeVariables||{},a.themeVariables);r.theme&&r.theme in theme$1&&(r.themeVariables=theme$1[r.theme].getThemeVariables(u))}return currentConfig=r,checkConfig(currentConfig),currentConfig},setSiteConfig=e=>(siteConfig=assignWithDepth$1({},defaultConfig),siteConfig=assignWithDepth$1(siteConfig,e),e.theme&&theme$1[e.theme]&&(siteConfig.themeVariables=theme$1[e.theme].getThemeVariables(e.themeVariables)),updateCurrentConfig(siteConfig,directives$1),siteConfig),saveConfigFromInitialize=e=>{configFromInitialize=assignWithDepth$1({},e)},updateSiteConfig=e=>(siteConfig=assignWithDepth$1(siteConfig,e),updateCurrentConfig(siteConfig,directives$1),siteConfig),getSiteConfig=()=>assignWithDepth$1({},siteConfig),setConfig=e=>(checkConfig(e),assignWithDepth$1(currentConfig,e),getConfig$1()),getConfig$1=()=>assignWithDepth$1({},currentConfig),sanitize=e=>{e&&(["secure",...siteConfig.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(log$1.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&sanitize(e[t])}))},addDirective=e=>{sanitizeDirective(e),e.fontFamily&&(!e.themeVariables||!e.themeVariables.fontFamily)&&(e.themeVariables={fontFamily:e.fontFamily}),directives$1.push(e),updateCurrentConfig(siteConfig,directives$1)},reset=(e=siteConfig)=>{directives$1=[],updateCurrentConfig(e,directives$1)},ConfigWarning={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},issuedWarnings={},issueWarning=e=>{issuedWarnings[e]||(log$1.warn(ConfigWarning[e]),issuedWarnings[e]=!0)},checkConfig=e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&issueWarning("LAZY_LOAD_DEPRECATED")},id$j="c4",detector$j=e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),loader$k=async()=>{const{diagram:e}=await __vitePreload(()=>import("./c4Diagram-c0b17d02-YtgqISMs.js"),__vite__mapDeps([0,1]));return{id:id$j,diagram:e}},plugin$h={id:id$j,detector:detector$j,loader:loader$k},c4=plugin$h,id$i="flowchart",detector$i=(e,t)=>{var r,a;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((a=t==null?void 0:t.flowchart)==null?void 0:a.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},loader$j=async()=>{const{diagram:e}=await __vitePreload(()=>import("./flowDiagram-d6f8fe3a-cThkyiTm.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,10,11,12]));return{id:id$i,diagram:e}},plugin$g={id:id$i,detector:detector$i,loader:loader$j},flowchart=plugin$g,id$h="flowchart-v2",detector$h=(e,t)=>{var r,a,o;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"||((a=t==null?void 0:t.flowchart)==null?void 0:a.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)&&((o=t==null?void 0:t.flowchart)==null?void 0:o.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)},loader$i=async()=>{const{diagram:e}=await __vitePreload(()=>import("./flowDiagram-v2-58f49b84-JR6gJiOl.js"),__vite__mapDeps([13,3,5,4,6,7,8,9,10,11,12]));return{id:id$h,diagram:e}},plugin$f={id:id$h,detector:detector$h,loader:loader$i},flowchartV2=plugin$f,id$g="er",detector$g=e=>/^\s*erDiagram/.test(e),loader$h=async()=>{const{diagram:e}=await __vitePreload(()=>import("./erDiagram-dedf2781-qOfGFhoC.js"),__vite__mapDeps([14,4,10,11,12]));return{id:id$g,diagram:e}},plugin$e={id:id$g,detector:detector$g,loader:loader$h},er=plugin$e,id$f="gitGraph",detector$f=e=>/^\s*gitGraph/.test(e),loader$g=async()=>{const{diagram:e}=await __vitePreload(()=>import("./gitGraphDiagram-e0ffc2d1-dlmhzu4a.js"),__vite__mapDeps([]));return{id:id$f,diagram:e}},plugin$d={id:id$f,detector:detector$f,loader:loader$g},git=plugin$d,id$e="gantt",detector$e=e=>/^\s*gantt/.test(e),loader$f=async()=>{const{diagram:e}=await __vitePreload(()=>import("./ganttDiagram-088dbd90-rlAgIGtj.js"),__vite__mapDeps([15,16,17]));return{id:id$e,diagram:e}},plugin$c={id:id$e,detector:detector$e,loader:loader$f},gantt=plugin$c,id$d="info",detector$d=e=>/^\s*info/.test(e),loader$e=async()=>{const{diagram:e}=await __vitePreload(()=>import("./infoDiagram-64895a6e-HI-1CJkM.js"),__vite__mapDeps([]));return{id:id$d,diagram:e}},info={id:id$d,detector:detector$d,loader:loader$e},id$c="pie",detector$c=e=>/^\s*pie/.test(e),loader$d=async()=>{const{diagram:e}=await __vitePreload(()=>import("./pieDiagram-3fca7ce7-LxBanFqs.js"),__vite__mapDeps([18,19,12,20,17,11]));return{id:id$c,diagram:e}},pie={id:id$c,detector:detector$c,loader:loader$d},id$b="quadrantChart",detector$b=e=>/^\s*quadrantChart/.test(e),loader$c=async()=>{const{diagram:e}=await __vitePreload(()=>import("./quadrantDiagram-0ca4be02-i3mUuanh.js"),__vite__mapDeps([21,16,17]));return{id:id$b,diagram:e}},plugin$b={id:id$b,detector:detector$b,loader:loader$c},quadrantChart=plugin$b,id$a="requirement",detector$a=e=>/^\s*requirement(Diagram)?/.test(e),loader$b=async()=>{const{diagram:e}=await __vitePreload(()=>import("./requirementDiagram-e13af0f0-u5059spj.js"),__vite__mapDeps([22,4,10,11,12]));return{id:id$a,diagram:e}},plugin$a={id:id$a,detector:detector$a,loader:loader$b},requirement=plugin$a,id$9="sequence",detector$9=e=>/^\s*sequenceDiagram/.test(e),loader$a=async()=>{const{diagram:e}=await __vitePreload(()=>import("./sequenceDiagram-84aa38e3-2ROgjdrk.js"),__vite__mapDeps([23,1]));return{id:id$9,diagram:e}},plugin$9={id:id$9,detector:detector$9,loader:loader$a},sequence=plugin$9,id$8="class",detector$8=(e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},loader$9=async()=>{const{diagram:e}=await __vitePreload(()=>import("./classDiagram-a8cc8886-yXrzCv-T.js"),__vite__mapDeps([24,25,4,9,10,11,12]));return{id:id$8,diagram:e}},plugin$8={id:id$8,detector:detector$8,loader:loader$9},classDiagram=plugin$8,id$7="classDiagram",detector$7=(e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},loader$8=async()=>{const{diagram:e}=await __vitePreload(()=>import("./classDiagram-v2-802a48d3-NjkwMnSL.js"),__vite__mapDeps([26,25,4,6,7,8,9,10,11,12]));return{id:id$7,diagram:e}},plugin$7={id:id$7,detector:detector$7,loader:loader$8},classDiagramV2=plugin$7,id$6="state",detector$6=(e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},loader$7=async()=>{const{diagram:e}=await __vitePreload(()=>import("./stateDiagram-9a586ac6-N4CEixko.js"),__vite__mapDeps([27,28,4,10,11,12]));return{id:id$6,diagram:e}},plugin$6={id:id$6,detector:detector$6,loader:loader$7},state$3=plugin$6,id$5="stateDiagram",detector$5=(e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},loader$6=async()=>{const{diagram:e}=await __vitePreload(()=>import("./stateDiagram-v2-96f2b9df-FbOIE7I-.js"),__vite__mapDeps([29,28,4,6,7,8,9,10,11,12]));return{id:id$5,diagram:e}},plugin$5={id:id$5,detector:detector$5,loader:loader$6},stateV2=plugin$5,id$4="journey",detector$4=e=>/^\s*journey/.test(e),loader$5=async()=>{const{diagram:e}=await __vitePreload(()=>import("./journeyDiagram-adaa34f8-rTj5fqGN.js"),__vite__mapDeps([30,1,19,12]));return{id:id$4,diagram:e}},plugin$4={id:id$4,detector:detector$4,loader:loader$5},journey=plugin$4,selectSvgElement=e=>{var t;const{securityLevel:r}=getConfig$1();let a=select("body");if(r==="sandbox"){const d=((t=select(`#i${e}`).node())==null?void 0:t.contentDocument)??document;a=select(d.body)}return a.select(`#${e}`)},d3Attrs=function(e,t){for(let r of t)e.attr(r[0],r[1])},calculateSvgSizeAttrs=function(e,t,r){let a=new Map;return r?(a.set("width","100%"),a.set("style",`max-width: ${t}px;`)):(a.set("height",e),a.set("width",t)),a},configureSvgSize=function(e,t,r,a){const o=calculateSvgSizeAttrs(t,r,a);d3Attrs(e,o)},setupGraphViewbox$1=function(e,t,r,a){const o=t.node().getBBox(),u=o.width,d=o.height;log$1.info(`SVG bounds: ${u}x${d}`,o);let f=0,g=0;log$1.info(`Graph bounds: ${f}x${g}`,e),f=u+r*2,g=d+r*2,log$1.info(`Calculated bounds: ${f}x${g}`),configureSvgSize(t,g,f,a);const E=`${o.x-r} ${o.y-r} ${o.width+2*r} ${o.height+2*r}`;t.attr("viewBox",E)},draw=(e,t,r)=>{log$1.debug(`renering svg for syntax error
|
|
107
|
+
`);const a=selectSvgElement(t);a.attr("viewBox","0 0 2412 512"),configureSvgSize(a,100,512,!0);const o=a.append("g");o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},renderer={draw},errorRenderer=renderer,diagram={db:{},renderer,parser:{parser:{yy:{}},parse:()=>{}}},errorDiagram=diagram,id$3="flowchart-elk",detector$3=(e,t)=>{var r;return!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk")},loader$4=async()=>{const{diagram:e}=await __vitePreload(()=>import("./flowchart-elk-definition-56584a6c-aGhbEEKl.js"),__vite__mapDeps([31,3,7,8,9,10,11,12]));return{id:id$3,diagram:e}},plugin$3={id:id$3,detector:detector$3,loader:loader$4},flowchartElk=plugin$3,id$2="timeline",detector$2=e=>/^\s*timeline/.test(e),loader$3=async()=>{const{diagram:e}=await __vitePreload(()=>import("./timeline-definition-1a90b03d-PQ0VUSc2.js"),__vite__mapDeps([32,19,12]));return{id:id$2,diagram:e}},plugin$2={id:id$2,detector:detector$2,loader:loader$3},timeline=plugin$2,id$1="mindmap",detector$1=e=>/^\s*mindmap/.test(e),loader$2=async()=>{const{diagram:e}=await __vitePreload(()=>import("./mindmap-definition-57868176-8Fv_UaTx.js"),__vite__mapDeps([33,8]));return{id:id$1,diagram:e}},plugin$1={id:id$1,detector:detector$1,loader:loader$2},mindmap=plugin$1,id="sankey",detector=e=>/^\s*sankey-beta/.test(e),loader$1=async()=>{const{diagram:e}=await __vitePreload(()=>import("./sankeyDiagram-a7f8e230-lFgjv4Iy.js"),__vite__mapDeps([34,20,17]));return{id,diagram:e}},plugin={id,detector,loader:loader$1},sankey=plugin,themes={},getStyles=(e,t,r)=>{let a="";return e in themes&&themes[e]?a=themes[e](r):log$1.warn(`No theme found for ${e}`),` & {
|
|
108
108
|
font-family: ${r.fontFamily};
|
|
109
109
|
font-size: ${r.fontSize};
|
|
110
110
|
fill: ${r.textColor}
|
|
@@ -181,7 +181,7 @@ ${e.themeCSS}`),e.fontFamily!==void 0&&(o+=`
|
|
|
181
181
|
`),t=t.replace(/<(\w+)([^>]*)>/g,(Y,G,j)=>"<"+G+j.replace(/="([^"]*)"/g,"='$1'")+">");const E="#"+e,S="i"+e,b="#"+S,v="d"+e,y="#"+v;let T=select("body");const C=g.securityLevel===SECURITY_LVL_SANDBOX,R=g.securityLevel===SECURITY_LVL_LOOSE,A=g.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),C){const Y=sandboxedIframe(select(r),S);T=select(Y.nodes()[0].contentDocument.body),T.node().style.margin=0}else T=select(r);appendDivSvgG(T,e,v,`font-family: ${A}`,XMLNS_XLINK_STD)}else{if(removeExistingElements(document,e,v,S),C){const Y=sandboxedIframe(select("body"),S);T=select(Y.nodes()[0].contentDocument.body),T.node().style.margin=0}else T=select("body");appendDivSvgG(T,e,v)}t=encodeEntities(t);let N,I;try{N=await getDiagramFromText(t)}catch(Y){N=new Diagram("error"),I=Y}const O=T.select(y).node(),x=N.type,D=O.firstChild,k=D.firstChild,P=CLASSDEF_DIAGRAMS.includes(x)?N.renderer.getClasses(t,N):{},L=createUserStyles(g,x,P,E),F=document.createElement("style");F.innerHTML=L,D.insertBefore(F,k);try{await N.renderer.draw(t,e,version$3,N)}catch(Y){throw errorRenderer.draw(t,e,version$3),Y}const B=T.select(`${y} svg`),$=(o=(a=N.db).getAccTitle)==null?void 0:o.call(a),U=(d=(u=N.db).getAccDescription)==null?void 0:d.call(u);addA11yInfo(x,B,$,U),T.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",XMLNS_XHTML_STD);let z=T.select(y).node().innerHTML;if(log$1.debug("config.arrowMarkerAbsolute",g.arrowMarkerAbsolute),z=cleanUpSvgCode(z,C,evaluate(g.arrowMarkerAbsolute)),C){const Y=T.select(y+" svg").node();z=putIntoIFrame(z,Y)}else R||(z=purify.sanitize(z,{ADD_TAGS:DOMPURIFY_TAGS,ADD_ATTR:DOMPURIFY_ATTR}));if(attachFunctions(),I)throw I;const Q=select(C?b:y).node();return Q&&"remove"in Q&&Q.remove(),{svg:z,bindFunctions:N.db.bindFunctions}};function initialize$1(e={}){var t;e!=null&&e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),saveConfigFromInitialize(e),e!=null&&e.theme&&e.theme in theme$1?e.themeVariables=theme$1[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=theme$1.default.getThemeVariables(e.themeVariables));const r=typeof e=="object"?setSiteConfig(e):getSiteConfig();setLogLevel$1(r.logLevel),addDiagrams()}function addA11yInfo(e,t,r,a){setA11yDiagramInfo(t,e),addSVGa11yTitleDescription(t,r,a,t.attr("id"))}const mermaidAPI=Object.freeze({render:render$1,parse:parse$1$1,parseDirective:parseDirective$1,getDiagramFromText,initialize:initialize$1,getConfig:getConfig$1,setConfig,getSiteConfig,updateSiteConfig,reset:()=>{reset()},globalReset:()=>{reset(defaultConfig)},defaultConfig});setLogLevel$1(getConfig$1().logLevel);reset(getConfig$1());const loadRegisteredDiagrams=async()=>{log$1.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(detectors).map(async([r,{detector:a,loader:o}])=>{if(o)try{getDiagram(r)}catch{try{const{diagram:d,id:f}=await o();registerDiagram(f,d,a)}catch(d){throw log$1.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete detectors[r],d}}}))).filter(r=>r.status==="rejected");if(t.length>0){log$1.error(`Failed to load ${t.length} external diagrams`);for(const r of t)log$1.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},handleError=(e,t,r)=>{log$1.warn(e),isDetailedError(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},run$1=async function(e={querySelector:".mermaid"}){try{await runThrowsErrors(e)}catch(t){if(isDetailedError(t)&&log$1.error(t.str),mermaid.parseError&&mermaid.parseError(t),!e.suppressErrors)throw log$1.error("Use the suppressErrors option to suppress these errors"),t}},runThrowsErrors=async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const a=mermaidAPI.getConfig();log$1.debug(`${e?"":"No "}Callback function found`);let o;if(r)o=r;else if(t)o=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");log$1.debug(`Found ${o.length} diagrams`),(a==null?void 0:a.startOnLoad)!==void 0&&(log$1.debug("Start On Load: "+(a==null?void 0:a.startOnLoad)),mermaidAPI.updateSiteConfig({startOnLoad:a==null?void 0:a.startOnLoad}));const u=new utils$1.initIdGenerator(a.deterministicIds,a.deterministicIDSeed);let d;const f=[];for(const g of Array.from(o)){log$1.info("Rendering diagram: "+g.id);/*! Check if previously processed */if(g.getAttribute("data-processed"))continue;g.setAttribute("data-processed","true");const E=`mermaid-${u.next()}`;d=g.innerHTML,d=dedent(utils$1.entityDecode(d)).trim().replace(/<br\s*\/?>/gi,"<br/>");const S=utils$1.detectInit(d);S&&log$1.debug("Detected early reinit: ",S);try{const{svg:b,bindFunctions:v}=await render(E,d,g);g.innerHTML=b,e&&await e(E),v&&v(g)}catch(b){handleError(b,f,mermaid.parseError)}}if(f.length>0)throw f[0]},initialize=function(e){mermaidAPI.initialize(e)},init=async function(e,t,r){log$1.warn("mermaid.init is deprecated. Please use run instead."),e&&initialize(e);const a={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?a.querySelector=t:t&&(t instanceof HTMLElement?a.nodes=[t]:a.nodes=t),await run$1(a)},registerExternalDiagrams=async(e,{lazyLoad:t=!0}={})=>{registerLazyLoadedDiagrams(...e),t===!1&&await loadRegisteredDiagrams()},contentLoaded=function(){if(mermaid.startOnLoad){const{startOnLoad:e}=mermaidAPI.getConfig();e&&mermaid.run().catch(t=>log$1.error("Mermaid failed to initialize",t))}};if(typeof document<"u"){/*!
|
|
182
182
|
* Wait for document loaded before starting the execution
|
|
183
183
|
*/window.addEventListener("load",contentLoaded,!1)}const setParseErrorHandler=function(e){mermaid.parseError=e},executionQueue=[];let executionQueueRunning=!1;const executeQueue=async()=>{if(!executionQueueRunning){for(executionQueueRunning=!0;executionQueue.length>0;){const e=executionQueue.shift();if(e)try{await e()}catch(t){log$1.error("Error executing queue",t)}}executionQueueRunning=!1}},parse$3=async(e,t)=>new Promise((r,a)=>{const o=()=>new Promise((u,d)=>{mermaidAPI.parse(e,t).then(f=>{u(f),r(f)},f=>{var g;log$1.error("Error parsing",f),(g=mermaid.parseError)==null||g.call(mermaid,f),d(f),a(f)})});executionQueue.push(o),executeQueue().catch(a)}),render=(e,t,r)=>new Promise((a,o)=>{const u=()=>new Promise((d,f)=>{mermaidAPI.render(e,t,r).then(g=>{d(g),a(g)},g=>{var E;log$1.error("Error parsing",g),(E=mermaid.parseError)==null||E.call(mermaid,g),f(g),o(g)})});executionQueue.push(u),executeQueue().catch(o)}),mermaid={startOnLoad:!0,mermaidAPI,parse:parse$3,render,init,run:run$1,registerExternalDiagrams,initialize,parseError:void 0,contentLoaded,setParseErrorHandler,detectType},config={securityLevel:"loose",startOnLoad:!1,class:"mermaid",flowchart:{curve:"linear"},darkMode:!1};mermaid.initialize(config);const customRenderer={name:"code",renderer(e){const{lang:t,text:r}=e;if(t==="mermaid")return`<pre class="mermaid">${r}</pre>`;const a=HighlightJS.getLanguage(t)?t:"plaintext",o=` class="hljs language-${escapeHTML$1(a)}"`,u=r.replace(/\n$/,""),d=HighlightJS.highlight(u,{language:a}).value;return`<pre><code class="hljs language-${o}">${d}
|
|
184
|
-
</code></pre>`}};marked.use({extensions:[customRenderer]});const _sfc_main$9={name:"DBUIMarkdown",inject:["$socket"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})}},setup(e){const t=e.props.content.replace(/\|\|/g,"mdORmd");let r=marked.parse(t);return r=r.replaceAll("mdORmd","||"),()=>h({props:["id","props"],errorCaptured:(a,o,u)=>(console.error("errorCaptured",a,o,u),!1),template:`<div ref="markdown" class="nrdb-ui-markdown-content">${purify.sanitize(r)}</div>`,computed:{...mapState("data",["messages"]),...mapGetters("data",["getMsgProperty"]),msg(){return this.messages[this.id]&&this.renderMermaid(),this.messages[this.id]||{}}},mounted(){this.renderMermaid()},methods:{get(a,o){return this.getMsgProperty(this.id,a,o)},renderMermaid(){var a,o;this.$refs.markdown&&((o=(a=this.$refs.markdown)==null?void 0:a.querySelector(".mermaid"))==null||o.removeAttribute("data-processed")),this.$nextTick(()=>{mermaid.run({querySelector:".mermaid",suppressErrors:!0})})}}},{id:e.id,props:e.props})},computed:{...mapState("data",["messages"])},created(){useDataTracker(this.id,this.onMsgInput)},errorCaptured:(e,t,r)=>(console.error("errorCaptured",e,t,r),!1),methods:{onMsgInput:function(e){this.msgChanged(this.$store.state.data.messages[this.id],e)&&this.$store.commit("data/bind",{widgetId:this.id,msg:e})},msgChanged(e,t){const r=["_event","_msgid"];if(!e||Object.keys(e).length!==Object.keys(t).length)return!0;for(const a of Object.keys(e))if(!r.includes(a)&&e[a]!==t[a])return!0}}},_sfc_main$8={name:"DBUINotification",inject:["$socket"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})}},data(){return{show:!1,tik:0,countdown:0,timeouts:{close:null,step:null}}},computed:{...mapState("data",["messages"]),value:function(){var e;return(e=this.messages[this.id])==null?void 0:e.payload},color:function(){var e,t;return(e=this.messages[this.id])!=null&&e.color?(t=this.messages[this.id])==null?void 0:t.color:this.props.colorDefault?"rgb(var(--v-theme-group-background))":this.props.color}},created(){useDataTracker(this.id,this.onMsgInput)},methods:{onMsgInput(e){this.$store.commit("data/bind",{widgetId:this.id,msg:e}),this.show=!0,this.props.displayTime>0&&this.startCountdown(this.props.displayTime*1e3)},startCountdown(e){this.tik=new Date().getTime(),this.timeouts.close=setTimeout(()=>{this.close()},e),this.timeouts.step=setInterval(()=>{const r=(new Date().getTime()-this.tik)/1e3;this.countdown=100-r/parseFloat(this.props.displayTime)*100},100)},close(){this.show=!1,clearTimeout(this.timeouts.close),clearInterval(this.timeouts.step),this.tik=null,this.timeouts.close=null,this.timeouts.step=null}}},_hoisted_1$4={key:0,class:"nrdb-ui-notification-countdown"},_hoisted_2$3={key:1},_hoisted_3$2=["innerHTML"];function _sfc_render$7(e,t,r,a,o,u){const d=resolveComponent("v-progress-linear"),f=resolveComponent("v-btn"),g=resolveComponent("v-snackbar");return openBlock(),createBlock(g,{modelValue:o.show,"onUpdate:modelValue":t[1]||(t[1]=E=>o.show=E),class:"nrdb-ui-notification",vertical:"","multi-line":"",timeout:-1,location:r.props.position,style:normalizeStyle({"--nrdb-ui-notification-color":u.color})},createSlots({default:withCtx(()=>{var E;return[r.props.showCountdown?(openBlock(),createElementBlock("div",_hoisted_1$4,[createVNode(d,{modelValue:o.countdown,"onUpdate:modelValue":t[0]||(t[0]=S=>o.countdown=S),color:((E=e.messages[r.id])==null?void 0:E.color)||(r.props.colorDefault?"primary":u.color),style:{display:"block",width:"100%"}},null,8,["modelValue","color"])])):createCommentVNode("",!0),r.props.raw?(openBlock(),createElementBlock("div",{key:2,innerHTML:u.value},null,8,_hoisted_3$2)):(openBlock(),createElementBlock("div",_hoisted_2$3,toDisplayString(u.value),1))]}),_:2},[r.props.allowDismiss?{name:"actions",fn:withCtx(()=>[createVNode(f,{variant:"text",onClick:u.close},{default:withCtx(()=>[createTextVNode(toDisplayString(r.props.dismissText||"Close"),1)]),_:1},8,["onClick"])]),key:"0"}:void 0]),1032,["modelValue","location","style"])}const UINotification=_export_sfc(_sfc_main$8,[["render",_sfc_render$7],["__scopeId","data-v-72070cbf"]]),_sfc_main$7={name:"DBUIRadioGroup",inject:["$socket"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})}},setup(e){useDataTracker(e.id)},computed:{...mapState("data",["messages"]),label:function(){return this.props.label},value:{get(){var e;return(e=this.messages[this.id])==null?void 0:e.payload},set(e){if(this.value===e)return;const t=this.messages[this.id]||{};t.payload=e,this.messages[this.id]=t,this.$socket.emit("widget-change",this.id,e)}}}};function _sfc_render$6(e,t,r,a,o,u){const d=resolveComponent("v-radio"),f=resolveComponent("v-radio-group");return openBlock(),createBlock(f,{modelValue:u.value,"onUpdate:modelValue":t[0]||(t[0]=g=>u.value=g),class:normalizeClass(["nrdb-ui-radio-group","nrdb-ui-radio-group--cols-"+r.props.columns+" "+e.className]),label:u.label,variant:"outlined","hide-details":"auto"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.props.options,g=>(openBlock(),createBlock(d,{key:g.value,label:g.label,value:g.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","class","label"])}const UIRadioGroup=_export_sfc(_sfc_main$7,[["render",_sfc_render$6]]),_sfc_main$6={name:"DBUISlider",inject:["$socket"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})}},setup(e){useDataTracker(e.id)},data(){return{value:null}},computed:{...mapState("data",["messages"]),storeValue:function(){var e;return(e=this.messages[this.id])==null?void 0:e.payload}},watch:{storeValue:function(e,t){this.value!==e&&(this.value=e)}},methods:{onChange(){(!this.props.outs||this.props.outs==="all")&&this.send()},onBlur(){this.props.outs==="end"&&this.send()},send(){this.value=Number(this.value);const e=this.messages[this.id]||{};e.payload=this.value,this.$store.commit("data/bind",e),this.$socket.emit("widget-change",this.id,this.value)}}};function _sfc_render$5(e,t,r,a,o,u){const d=resolveComponent("v-slider");return openBlock(),createBlock(d,{modelValue:o.value,"onUpdate:modelValue":[t[0]||(t[0]=f=>o.value=f),u.onChange],label:r.props.label,"hide-details":"auto",class:normalizeClass(e.className),"thumb-label":r.props.thumbLabel||!1,min:r.props.min,max:r.props.max,step:r.props.step||1,onEnd:u.onBlur},null,8,["modelValue","label","class","thumb-label","min","max","step","onUpdate:modelValue","onEnd"])}const UISlider=_export_sfc(_sfc_main$6,[["render",_sfc_render$5]]),_sfc_main$5={name:"DBUISwitch",inject:["$socket"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})}},setup(e){useDataTracker(e.id)},computed:{...mapState("data",["messages"]),icon:function(){return this.props.onicon&&this.props.officon?"mdi-"+(this.state?this.props.onicon:this.props.officon):null},color:function(){return this.props.oncolor||this.props.offcolor?this.state?this.props.oncolor:this.props.offcolor:null},value:function(){var e;return(e=this.messages[this.id])==null?void 0:e.payload},state:{get(){const e=this.value;if(typeof e=="boolean")return e;if(typeof e=="object"){if(JSON.stringify(e)===JSON.stringify(this.props.evaluated.on))return!0;if(JSON.stringify(e)===JSON.stringify(this.props.evaluated.off))return!1}else if(this.props.evaluated)return e===this.props.evaluated.on;return this.value},set(e){const t=this.messages[this.id]||{};t.payload=e,this.messages[this.id]=t}}},methods:{onChange(){this.$socket.emit("widget-change",this.id,!this.value)},toggle(){this.state=!this.state,this.$socket.emit("widget-change",this.id,this.state)}}},_hoisted_1$3={key:0,class:"v-label"};function _sfc_render$4(e,t,r,a,o,u){const d=resolveComponent("v-switch"),f=resolveComponent("v-btn");return openBlock(),createElementBlock("div",{class:normalizeClass(["nrdb-switch",{"nrdb-nolabel":!r.props.label,[e.className]:!!e.className}])},[r.props.label?(openBlock(),createElementBlock("label",_hoisted_1$3,toDisplayString(r.props.label),1)):createCommentVNode("",!0),u.icon?(openBlock(),createBlock(f,{key:2,variant:"text",icon:u.icon,color:u.color,onClick:u.toggle},null,8,["icon","color","onClick"])):(openBlock(),createBlock(d,{key:1,modelValue:u.state,"onUpdate:modelValue":t[0]||(t[0]=g=>u.state=g),class:normalizeClass({active:u.state}),"hide-details":"auto",color:"primary",onClick:u.onChange},null,8,["modelValue","class","onClick"]))],2)}const UISwitch=_export_sfc(_sfc_main$5,[["render",_sfc_render$4],["__scopeId","data-v-8b96f43c"]]),_sfc_main$4={name:"DBUITable",inject:["$socket"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})}},setup(e){useDataTracker(e.id)},data(){return{input:{},isValid:null,pagination:{page:1,pages:0,rows:[]}}},computed:{...mapState("data",["messages"]),columns(){var e;if(this.props.autocols)if((e=this.messages[this.id])!=null&&e.payload){const t=[];for(const r of this.messages[this.id].payload)Object.keys(r).forEach(a=>{t.includes(a)||t.push(a)});return t.map(r=>({key:r,label:r}))}else return[{key:"",label:""}];else return this.props.columns?this.props.columns:[{key:"",label:""}]},rows(){var e;if((e=this.messages[this.id])!=null&&e.payload)return this.messages[this.id].payload}},watch:{rows:{handler(){this.calculatePaginatedRows()}},"pagination.page":{handler(){this.calculatePaginatedRows()}},"props.maxrows":{handler(){this.calculatePaginatedRows()}}},mounted(){this.calculatePaginatedRows()},methods:{calculatePaginatedRows(){var e,t;this.props.maxrows>0?(this.pagination.pages=Math.ceil(((e=this.rows)==null?void 0:e.length)/this.props.maxrows),this.pagination.rows=(t=this.rows)==null?void 0:t.slice((this.pagination.page-1)*this.props.maxrows,this.pagination.page*this.props.maxrows)):(this.pagination.page=1,this.pagination.pages=0,this.pagination.rows=this.rows)}}},_hoisted_1$2={key:0},_hoisted_2$2={key:1,class:"nrdb-table-nodata"},_hoisted_3$1=["colspan"];function _sfc_render$3(e,t,r,a,o,u){const d=resolveComponent("v-table"),f=resolveComponent("v-pagination");return openBlock(),createElementBlock("div",null,[createVNode(d,{class:"nrdb-table"},{default:withCtx(()=>[createBaseVNode("thead",null,[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.columns,(g,E)=>(openBlock(),createElementBlock("th",{key:E,class:"text-left"},toDisplayString(g.label),1))),128))])]),u.rows?(openBlock(),createElementBlock("tbody",_hoisted_1$2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.pagination.rows,(g,E)=>(openBlock(),createElementBlock("tr",{key:E},[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.columns,(S,b)=>(openBlock(),createElementBlock("td",{key:b},toDisplayString(g[S.key]),1))),128))]))),128))])):(openBlock(),createElementBlock("tbody",_hoisted_2$2,[createBaseVNode("tr",null,[createBaseVNode("td",{colspan:u.columns.length},"No Data",8,_hoisted_3$1)])]))]),_:1}),u.rows&&r.props.maxrows>0?(openBlock(),createBlock(f,{key:0,modelValue:o.pagination.page,"onUpdate:modelValue":t[0]||(t[0]=g=>o.pagination.page=g),length:o.pagination.pages,rounded:"0"},null,8,["modelValue","length"])):createCommentVNode("",!0)])}const UITable=_export_sfc(_sfc_main$4,[["render",_sfc_render$3],["__scopeId","data-v-8a5ae414"]]);var astralIdentifierCodes=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],astralIdentifierStartCodes=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],nonASCIIidentifierChars="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",reservedWords={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ecma5AndLessKeywords="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",keywords$1={5:ecma5AndLessKeywords,"5module":ecma5AndLessKeywords+" export import",6:ecma5AndLessKeywords+" const class extends export import super"},keywordRelationalOperator=/^in(stanceof)?$/,nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");function isInAstralSet(e,t){for(var r=65536,a=0;a<t.length;a+=2){if(r+=t[a],r>e)return!1;if(r+=t[a+1],r>=e)return!0}return!1}function isIdentifierStart(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&nonASCIIidentifierStart.test(String.fromCharCode(e)):t===!1?!1:isInAstralSet(e,astralIdentifierStartCodes)}function isIdentifierChar(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&nonASCIIidentifier.test(String.fromCharCode(e)):t===!1?!1:isInAstralSet(e,astralIdentifierStartCodes)||isInAstralSet(e,astralIdentifierCodes)}var TokenType=function(t,r){r===void 0&&(r={}),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};function binop(e,t){return new TokenType(e,{beforeExpr:!0,binop:t})}var beforeExpr={beforeExpr:!0},startsExpr={startsExpr:!0},keywords={};function kw(e,t){return t===void 0&&(t={}),t.keyword=e,keywords[e]=new TokenType(e,t)}var types$1={num:new TokenType("num",startsExpr),regexp:new TokenType("regexp",startsExpr),string:new TokenType("string",startsExpr),name:new TokenType("name",startsExpr),privateId:new TokenType("privateId",startsExpr),eof:new TokenType("eof"),bracketL:new TokenType("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new TokenType("]"),braceL:new TokenType("{",{beforeExpr:!0,startsExpr:!0}),braceR:new TokenType("}"),parenL:new TokenType("(",{beforeExpr:!0,startsExpr:!0}),parenR:new TokenType(")"),comma:new TokenType(",",beforeExpr),semi:new TokenType(";",beforeExpr),colon:new TokenType(":",beforeExpr),dot:new TokenType("."),question:new TokenType("?",beforeExpr),questionDot:new TokenType("?."),arrow:new TokenType("=>",beforeExpr),template:new TokenType("template"),invalidTemplate:new TokenType("invalidTemplate"),ellipsis:new TokenType("...",beforeExpr),backQuote:new TokenType("`",startsExpr),dollarBraceL:new TokenType("${",{beforeExpr:!0,startsExpr:!0}),eq:new TokenType("=",{beforeExpr:!0,isAssign:!0}),assign:new TokenType("_=",{beforeExpr:!0,isAssign:!0}),incDec:new TokenType("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new TokenType("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("</>/<=/>=",7),bitShift:binop("<</>>/>>>",8),plusMin:new TokenType("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new TokenType("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",beforeExpr),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",beforeExpr),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",beforeExpr),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",startsExpr),_if:kw("if"),_return:kw("return",beforeExpr),_switch:kw("switch"),_throw:kw("throw",beforeExpr),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",startsExpr),_super:kw("super",startsExpr),_class:kw("class",startsExpr),_extends:kw("extends",beforeExpr),_export:kw("export"),_import:kw("import",startsExpr),_null:kw("null",startsExpr),_true:kw("true",startsExpr),_false:kw("false",startsExpr),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},lineBreak=/\r\n?|\n|\u2028|\u2029/,lineBreakG=new RegExp(lineBreak.source,"g");function isNewLine(e){return e===10||e===13||e===8232||e===8233}function nextLineBreak(e,t,r){r===void 0&&(r=e.length);for(var a=t;a<r;a++){var o=e.charCodeAt(a);if(isNewLine(o))return a<r-1&&o===13&&e.charCodeAt(a+1)===10?a+2:a+1}return-1}var nonASCIIwhitespace=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ref=Object.prototype,hasOwnProperty=ref.hasOwnProperty,toString$1=ref.toString,hasOwn=Object.hasOwn||function(e,t){return hasOwnProperty.call(e,t)},isArray$1=Array.isArray||function(e){return toString$1.call(e)==="[object Array]"},regexpCache=Object.create(null);function wordsRegexp(e){return regexpCache[e]||(regexpCache[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function codePointToString(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var loneSurrogate=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Position=function(t,r){this.line=t,this.column=r};Position.prototype.offset=function(t){return new Position(this.line,this.column+t)};var SourceLocation=function(t,r,a){this.start=r,this.end=a,t.sourceFile!==null&&(this.source=t.sourceFile)};function getLineInfo(e,t){for(var r=1,a=0;;){var o=nextLineBreak(e,a,t);if(o<0)return new Position(r,t-a);++r,a=o}}var defaultOptions={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},warnedAboutEcmaVersion=!1;function getOptions(e){var t={};for(var r in defaultOptions)t[r]=e&&hasOwn(e,r)?e[r]:defaultOptions[r];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!warnedAboutEcmaVersion&&typeof console=="object"&&console.warn&&(warnedAboutEcmaVersion=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
184
|
+
</code></pre>`}};marked.use({extensions:[customRenderer]});const _sfc_main$9={name:"DBUIMarkdown",inject:["$socket"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})}},setup(e){const t=e.props.content.replace(/\|\|/g,"mdORmd");let r=marked.parse(t);return r=r.replaceAll("mdORmd","||"),()=>h({props:["id","props"],errorCaptured:(a,o,u)=>(console.error("errorCaptured",a,o,u),!1),template:`<div ref="markdown" class="nrdb-ui-markdown-content">${purify.sanitize(r)}</div>`,computed:{...mapState("data",["messages"]),...mapGetters("data",["getMsgProperty"]),msg(){return this.messages[this.id]&&this.renderMermaid(),this.messages[this.id]||{}}},mounted(){this.renderMermaid()},methods:{get(a,o){return this.getMsgProperty(this.id,a,o)},renderMermaid(){var a,o;this.$refs.markdown&&((o=(a=this.$refs.markdown)==null?void 0:a.querySelector(".mermaid"))==null||o.removeAttribute("data-processed")),this.$nextTick(()=>{mermaid.run({querySelector:".mermaid",suppressErrors:!0})})}}},{id:e.id,props:e.props})},computed:{...mapState("data",["messages"])},created(){useDataTracker(this.id,this.onMsgInput)},errorCaptured:(e,t,r)=>(console.error("errorCaptured",e,t,r),!1),methods:{onMsgInput:function(e){this.msgChanged(this.$store.state.data.messages[this.id],e)&&this.$store.commit("data/bind",{widgetId:this.id,msg:e})},msgChanged(e,t){const r=["_event","_msgid"];if(!e||Object.keys(e).length!==Object.keys(t).length)return!0;for(const a of Object.keys(e))if(!r.includes(a)&&e[a]!==t[a])return!0}}},_sfc_main$8={name:"DBUINotification",inject:["$socket"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})}},data(){return{show:!1,tik:0,countdown:0,timeouts:{close:null,step:null}}},computed:{...mapState("data",["messages"]),value:function(){var e;return(e=this.messages[this.id])==null?void 0:e.payload},color:function(){var e,t;return(e=this.messages[this.id])!=null&&e.color?(t=this.messages[this.id])==null?void 0:t.color:this.props.colorDefault?"rgb(var(--v-theme-group-background))":this.props.color}},created(){useDataTracker(this.id,this.onMsgInput)},methods:{onMsgInput(e){this.$store.commit("data/bind",{widgetId:this.id,msg:e}),this.show=!0,this.props.displayTime>0&&this.startCountdown(this.props.displayTime*1e3)},startCountdown(e){this.tik=new Date().getTime(),this.timeouts.close=setTimeout(()=>{this.close()},e),this.timeouts.step=setInterval(()=>{const r=(new Date().getTime()-this.tik)/1e3;this.countdown=100-r/parseFloat(this.props.displayTime)*100},100)},close(){this.show=!1,clearTimeout(this.timeouts.close),clearInterval(this.timeouts.step),this.tik=null,this.timeouts.close=null,this.timeouts.step=null}}},_hoisted_1$4={key:0,class:"nrdb-ui-notification-countdown"},_hoisted_2$3={key:1},_hoisted_3$2=["innerHTML"];function _sfc_render$7(e,t,r,a,o,u){const d=resolveComponent("v-progress-linear"),f=resolveComponent("v-btn"),g=resolveComponent("v-snackbar");return openBlock(),createBlock(g,{modelValue:o.show,"onUpdate:modelValue":t[1]||(t[1]=E=>o.show=E),class:"nrdb-ui-notification",vertical:"","multi-line":"",timeout:-1,location:r.props.position,style:normalizeStyle({"--nrdb-ui-notification-color":u.color})},createSlots({default:withCtx(()=>{var E;return[r.props.showCountdown?(openBlock(),createElementBlock("div",_hoisted_1$4,[createVNode(d,{modelValue:o.countdown,"onUpdate:modelValue":t[0]||(t[0]=S=>o.countdown=S),color:((E=e.messages[r.id])==null?void 0:E.color)||(r.props.colorDefault?"primary":u.color),style:{display:"block",width:"100%"}},null,8,["modelValue","color"])])):createCommentVNode("",!0),r.props.raw?(openBlock(),createElementBlock("div",{key:2,innerHTML:u.value},null,8,_hoisted_3$2)):(openBlock(),createElementBlock("div",_hoisted_2$3,toDisplayString(u.value),1))]}),_:2},[r.props.allowDismiss?{name:"actions",fn:withCtx(()=>[createVNode(f,{variant:"text",onClick:u.close},{default:withCtx(()=>[createTextVNode(toDisplayString(r.props.dismissText||"Close"),1)]),_:1},8,["onClick"])]),key:"0"}:void 0]),1032,["modelValue","location","style"])}const UINotification=_export_sfc(_sfc_main$8,[["render",_sfc_render$7],["__scopeId","data-v-72070cbf"]]),_sfc_main$7={name:"DBUIRadioGroup",inject:["$socket"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})}},setup(e){useDataTracker(e.id)},computed:{...mapState("data",["messages"]),label:function(){return this.props.label},value:{get(){var e;return(e=this.messages[this.id])==null?void 0:e.payload},set(e){if(this.value===e)return;const t=this.messages[this.id]||{};t.payload=e,this.messages[this.id]=t,this.$socket.emit("widget-change",this.id,e)}}}};function _sfc_render$6(e,t,r,a,o,u){const d=resolveComponent("v-radio"),f=resolveComponent("v-radio-group");return openBlock(),createBlock(f,{modelValue:u.value,"onUpdate:modelValue":t[0]||(t[0]=g=>u.value=g),class:normalizeClass(["nrdb-ui-radio-group","nrdb-ui-radio-group--cols-"+r.props.columns+" "+e.className]),label:u.label,variant:"outlined","hide-details":"auto"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.props.options,g=>(openBlock(),createBlock(d,{key:g.value,label:g.label,value:g.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","class","label"])}const UIRadioGroup=_export_sfc(_sfc_main$7,[["render",_sfc_render$6]]),_sfc_main$6={name:"DBUISlider",inject:["$socket"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})}},setup(e){useDataTracker(e.id)},data(){return{value:null}},computed:{...mapState("data",["messages"]),storeValue:function(){var e;return(e=this.messages[this.id])==null?void 0:e.payload}},watch:{storeValue:function(e,t){this.value!==e&&(this.value=e)}},mounted(){var e;this.value=(e=this.messages[this.id])==null?void 0:e.payload},methods:{onChange(){(!this.props.outs||this.props.outs==="all")&&this.send()},onBlur(){this.props.outs==="end"&&this.send()},send(){this.value=Number(this.value);const e=this.messages[this.id]||{};e.payload=this.value,this.$store.commit("data/bind",e),this.$socket.emit("widget-change",this.id,this.value)}}};function _sfc_render$5(e,t,r,a,o,u){const d=resolveComponent("v-slider");return openBlock(),createBlock(d,{modelValue:o.value,"onUpdate:modelValue":[t[0]||(t[0]=f=>o.value=f),u.onChange],label:r.props.label,"hide-details":"auto",class:normalizeClass(e.className),"thumb-label":r.props.thumbLabel||!1,min:r.props.min,max:r.props.max,step:r.props.step||1,onEnd:u.onBlur},null,8,["modelValue","label","class","thumb-label","min","max","step","onUpdate:modelValue","onEnd"])}const UISlider=_export_sfc(_sfc_main$6,[["render",_sfc_render$5]]),_sfc_main$5={name:"DBUISwitch",inject:["$socket"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})}},setup(e){useDataTracker(e.id)},computed:{...mapState("data",["messages"]),icon:function(){return this.props.onicon&&this.props.officon?"mdi-"+(this.state?this.props.onicon:this.props.officon):null},color:function(){return this.props.oncolor||this.props.offcolor?this.state?this.props.oncolor:this.props.offcolor:null},value:function(){var e;return(e=this.messages[this.id])==null?void 0:e.payload},state:{get(){const e=this.value;if(typeof e=="boolean")return e;if(typeof e=="object"){if(JSON.stringify(e)===JSON.stringify(this.props.evaluated.on))return!0;if(JSON.stringify(e)===JSON.stringify(this.props.evaluated.off))return!1}else if(this.props.evaluated)return e===this.props.evaluated.on;return this.value},set(e){const t=this.messages[this.id]||{};t.payload=e,this.messages[this.id]=t}}},methods:{onChange(e){this.$socket.emit("widget-change",this.id,e)},toggle(){this.state=!this.state,this.$socket.emit("widget-change",this.id,this.state)}}},_hoisted_1$3={key:0,class:"v-label"};function _sfc_render$4(e,t,r,a,o,u){const d=resolveComponent("v-switch"),f=resolveComponent("v-btn");return openBlock(),createElementBlock("div",{class:normalizeClass(["nrdb-switch",{"nrdb-nolabel":!r.props.label,[e.className]:!!e.className}])},[r.props.label?(openBlock(),createElementBlock("label",_hoisted_1$3,toDisplayString(r.props.label),1)):createCommentVNode("",!0),u.icon?(openBlock(),createBlock(f,{key:2,variant:"text",icon:u.icon,color:u.color,onClick:u.toggle},null,8,["icon","color","onClick"])):(openBlock(),createBlock(d,{key:1,modelValue:u.state,"onUpdate:modelValue":[t[0]||(t[0]=g=>u.state=g),u.onChange],class:normalizeClass({active:u.state}),"hide-details":"auto",color:"primary"},null,8,["modelValue","class","onUpdate:modelValue"]))],2)}const UISwitch=_export_sfc(_sfc_main$5,[["render",_sfc_render$4],["__scopeId","data-v-9f793948"]]),_sfc_main$4={name:"DBUITable",inject:["$socket"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})}},setup(e){useDataTracker(e.id)},data(){return{input:{},isValid:null,pagination:{page:1,pages:0,rows:[]}}},computed:{...mapState("data",["messages"]),columns(){var e;if(this.props.autocols)if((e=this.messages[this.id])!=null&&e.payload){const t=[];for(const r of this.messages[this.id].payload)Object.keys(r).forEach(a=>{t.includes(a)||t.push(a)});return t.map(r=>({key:r,label:r}))}else return[{key:"",label:""}];else return this.props.columns?this.props.columns:[{key:"",label:""}]},rows(){var e;if((e=this.messages[this.id])!=null&&e.payload)return this.messages[this.id].payload}},watch:{rows:{handler(){this.calculatePaginatedRows()}},"pagination.page":{handler(){this.calculatePaginatedRows()}},"props.maxrows":{handler(){this.calculatePaginatedRows()}}},mounted(){this.calculatePaginatedRows()},methods:{calculatePaginatedRows(){var e,t;this.props.maxrows>0?(this.pagination.pages=Math.ceil(((e=this.rows)==null?void 0:e.length)/this.props.maxrows),this.pagination.rows=(t=this.rows)==null?void 0:t.slice((this.pagination.page-1)*this.props.maxrows,this.pagination.page*this.props.maxrows)):(this.pagination.page=1,this.pagination.pages=0,this.pagination.rows=this.rows)}}},_hoisted_1$2={key:0},_hoisted_2$2={key:1,class:"nrdb-table-nodata"},_hoisted_3$1=["colspan"];function _sfc_render$3(e,t,r,a,o,u){const d=resolveComponent("v-table"),f=resolveComponent("v-pagination");return openBlock(),createElementBlock("div",null,[createVNode(d,{class:"nrdb-table"},{default:withCtx(()=>[createBaseVNode("thead",null,[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.columns,(g,E)=>(openBlock(),createElementBlock("th",{key:E,class:"text-left"},toDisplayString(g.label),1))),128))])]),u.rows?(openBlock(),createElementBlock("tbody",_hoisted_1$2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(o.pagination.rows,(g,E)=>(openBlock(),createElementBlock("tr",{key:E},[(openBlock(!0),createElementBlock(Fragment,null,renderList(u.columns,(S,b)=>(openBlock(),createElementBlock("td",{key:b},toDisplayString(g[S.key]),1))),128))]))),128))])):(openBlock(),createElementBlock("tbody",_hoisted_2$2,[createBaseVNode("tr",null,[createBaseVNode("td",{colspan:u.columns.length},"No Data",8,_hoisted_3$1)])]))]),_:1}),u.rows&&r.props.maxrows>0?(openBlock(),createBlock(f,{key:0,modelValue:o.pagination.page,"onUpdate:modelValue":t[0]||(t[0]=g=>o.pagination.page=g),length:o.pagination.pages,rounded:"0"},null,8,["modelValue","length"])):createCommentVNode("",!0)])}const UITable=_export_sfc(_sfc_main$4,[["render",_sfc_render$3],["__scopeId","data-v-8a5ae414"]]);var astralIdentifierCodes=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],astralIdentifierStartCodes=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],nonASCIIidentifierChars="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",reservedWords={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ecma5AndLessKeywords="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",keywords$1={5:ecma5AndLessKeywords,"5module":ecma5AndLessKeywords+" export import",6:ecma5AndLessKeywords+" const class extends export import super"},keywordRelationalOperator=/^in(stanceof)?$/,nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");function isInAstralSet(e,t){for(var r=65536,a=0;a<t.length;a+=2){if(r+=t[a],r>e)return!1;if(r+=t[a+1],r>=e)return!0}return!1}function isIdentifierStart(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&nonASCIIidentifierStart.test(String.fromCharCode(e)):t===!1?!1:isInAstralSet(e,astralIdentifierStartCodes)}function isIdentifierChar(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&nonASCIIidentifier.test(String.fromCharCode(e)):t===!1?!1:isInAstralSet(e,astralIdentifierStartCodes)||isInAstralSet(e,astralIdentifierCodes)}var TokenType=function(t,r){r===void 0&&(r={}),this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop||null,this.updateContext=null};function binop(e,t){return new TokenType(e,{beforeExpr:!0,binop:t})}var beforeExpr={beforeExpr:!0},startsExpr={startsExpr:!0},keywords={};function kw(e,t){return t===void 0&&(t={}),t.keyword=e,keywords[e]=new TokenType(e,t)}var types$1={num:new TokenType("num",startsExpr),regexp:new TokenType("regexp",startsExpr),string:new TokenType("string",startsExpr),name:new TokenType("name",startsExpr),privateId:new TokenType("privateId",startsExpr),eof:new TokenType("eof"),bracketL:new TokenType("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new TokenType("]"),braceL:new TokenType("{",{beforeExpr:!0,startsExpr:!0}),braceR:new TokenType("}"),parenL:new TokenType("(",{beforeExpr:!0,startsExpr:!0}),parenR:new TokenType(")"),comma:new TokenType(",",beforeExpr),semi:new TokenType(";",beforeExpr),colon:new TokenType(":",beforeExpr),dot:new TokenType("."),question:new TokenType("?",beforeExpr),questionDot:new TokenType("?."),arrow:new TokenType("=>",beforeExpr),template:new TokenType("template"),invalidTemplate:new TokenType("invalidTemplate"),ellipsis:new TokenType("...",beforeExpr),backQuote:new TokenType("`",startsExpr),dollarBraceL:new TokenType("${",{beforeExpr:!0,startsExpr:!0}),eq:new TokenType("=",{beforeExpr:!0,isAssign:!0}),assign:new TokenType("_=",{beforeExpr:!0,isAssign:!0}),incDec:new TokenType("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new TokenType("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("</>/<=/>=",7),bitShift:binop("<</>>/>>>",8),plusMin:new TokenType("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new TokenType("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",beforeExpr),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",beforeExpr),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",beforeExpr),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",startsExpr),_if:kw("if"),_return:kw("return",beforeExpr),_switch:kw("switch"),_throw:kw("throw",beforeExpr),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",startsExpr),_super:kw("super",startsExpr),_class:kw("class",startsExpr),_extends:kw("extends",beforeExpr),_export:kw("export"),_import:kw("import",startsExpr),_null:kw("null",startsExpr),_true:kw("true",startsExpr),_false:kw("false",startsExpr),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},lineBreak=/\r\n?|\n|\u2028|\u2029/,lineBreakG=new RegExp(lineBreak.source,"g");function isNewLine(e){return e===10||e===13||e===8232||e===8233}function nextLineBreak(e,t,r){r===void 0&&(r=e.length);for(var a=t;a<r;a++){var o=e.charCodeAt(a);if(isNewLine(o))return a<r-1&&o===13&&e.charCodeAt(a+1)===10?a+2:a+1}return-1}var nonASCIIwhitespace=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ref=Object.prototype,hasOwnProperty=ref.hasOwnProperty,toString$1=ref.toString,hasOwn=Object.hasOwn||function(e,t){return hasOwnProperty.call(e,t)},isArray$1=Array.isArray||function(e){return toString$1.call(e)==="[object Array]"},regexpCache=Object.create(null);function wordsRegexp(e){return regexpCache[e]||(regexpCache[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function codePointToString(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var loneSurrogate=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Position=function(t,r){this.line=t,this.column=r};Position.prototype.offset=function(t){return new Position(this.line,this.column+t)};var SourceLocation=function(t,r,a){this.start=r,this.end=a,t.sourceFile!==null&&(this.source=t.sourceFile)};function getLineInfo(e,t){for(var r=1,a=0;;){var o=nextLineBreak(e,a,t);if(o<0)return new Position(r,t-a);++r,a=o}}var defaultOptions={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},warnedAboutEcmaVersion=!1;function getOptions(e){var t={};for(var r in defaultOptions)t[r]=e&&hasOwn(e,r)?e[r]:defaultOptions[r];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!warnedAboutEcmaVersion&&typeof console=="object"&&console.warn&&(warnedAboutEcmaVersion=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
185
185
|
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),isArray$1(t.onToken)){var a=t.onToken;t.onToken=function(o){return a.push(o)}}return isArray$1(t.onComment)&&(t.onComment=pushComment(t,t.onComment)),t}function pushComment(e,t){return function(r,a,o,u,d,f){var g={type:r?"Block":"Line",value:a,start:o,end:u};e.locations&&(g.loc=new SourceLocation(this,d,f)),e.ranges&&(g.range=[o,u]),t.push(g)}}var SCOPE_TOP=1,SCOPE_FUNCTION=2,SCOPE_ASYNC=4,SCOPE_GENERATOR=8,SCOPE_ARROW=16,SCOPE_SIMPLE_CATCH=32,SCOPE_SUPER=64,SCOPE_DIRECT_SUPER=128,SCOPE_CLASS_STATIC_BLOCK=256,SCOPE_VAR=SCOPE_TOP|SCOPE_FUNCTION|SCOPE_CLASS_STATIC_BLOCK;function functionFlags(e,t){return SCOPE_FUNCTION|(e?SCOPE_ASYNC:0)|(t?SCOPE_GENERATOR:0)}var BIND_NONE=0,BIND_VAR=1,BIND_LEXICAL=2,BIND_FUNCTION=3,BIND_SIMPLE_CATCH=4,BIND_OUTSIDE=5,Parser=function(t,r,a){this.options=t=getOptions(t),this.sourceFile=t.sourceFile,this.keywords=wordsRegexp(keywords$1[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var o="";t.allowReserved!==!0&&(o=reservedWords[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(o+=" await")),this.reservedWords=wordsRegexp(o);var u=(o?o+" ":"")+reservedWords.strict;this.reservedWordsStrict=wordsRegexp(u),this.reservedWordsStrictBind=wordsRegexp(u+" "+reservedWords.strictBind),this.input=String(r),this.containsEsc=!1,a?(this.pos=a,this.lineStart=this.input.lastIndexOf(`
|
|
186
186
|
`,a-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(lineBreak).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=types$1.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(SCOPE_TOP),this.regexpState=null,this.privateNameStack=[]},prototypeAccessors={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Parser.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};prototypeAccessors.inFunction.get=function(){return(this.currentVarScope().flags&SCOPE_FUNCTION)>0};prototypeAccessors.inGenerator.get=function(){return(this.currentVarScope().flags&SCOPE_GENERATOR)>0&&!this.currentVarScope().inClassFieldInit};prototypeAccessors.inAsync.get=function(){return(this.currentVarScope().flags&SCOPE_ASYNC)>0&&!this.currentVarScope().inClassFieldInit};prototypeAccessors.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&SCOPE_CLASS_STATIC_BLOCK)return!1;if(t.flags&SCOPE_FUNCTION)return(t.flags&SCOPE_ASYNC)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};prototypeAccessors.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&SCOPE_SUPER)>0||r||this.options.allowSuperOutsideMethod};prototypeAccessors.allowDirectSuper.get=function(){return(this.currentThisScope().flags&SCOPE_DIRECT_SUPER)>0};prototypeAccessors.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};prototypeAccessors.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&(SCOPE_FUNCTION|SCOPE_CLASS_STATIC_BLOCK))>0||r};prototypeAccessors.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&SCOPE_CLASS_STATIC_BLOCK)>0};Parser.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var a=this,o=0;o<t.length;o++)a=t[o](a);return a};Parser.parse=function(t,r){return new this(r,t).parse()};Parser.parseExpressionAt=function(t,r,a){var o=new this(a,t,r);return o.nextToken(),o.parseExpression()};Parser.tokenizer=function(t,r){return new this(r,t)};Object.defineProperties(Parser.prototype,prototypeAccessors);var pp$9=Parser.prototype,literal=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;pp$9.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){skipWhiteSpace.lastIndex=e,e+=skipWhiteSpace.exec(this.input)[0].length;var t=literal.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){skipWhiteSpace.lastIndex=e+t[0].length;var r=skipWhiteSpace.exec(this.input),a=r.index+r[0].length,o=this.input.charAt(a);return o===";"||o==="}"||lineBreak.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(o)||o==="!"&&this.input.charAt(a+1)==="=")}e+=t[0].length,skipWhiteSpace.lastIndex=e,e+=skipWhiteSpace.exec(this.input)[0].length,this.input[e]===";"&&e++}};pp$9.eat=function(e){return this.type===e?(this.next(),!0):!1};pp$9.isContextual=function(e){return this.type===types$1.name&&this.value===e&&!this.containsEsc};pp$9.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};pp$9.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};pp$9.canInsertSemicolon=function(){return this.type===types$1.eof||this.type===types$1.braceR||lineBreak.test(this.input.slice(this.lastTokEnd,this.start))};pp$9.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};pp$9.semicolon=function(){!this.eat(types$1.semi)&&!this.insertSemicolon()&&this.unexpected()};pp$9.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};pp$9.expect=function(e){this.eat(e)||this.unexpected()};pp$9.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var DestructuringErrors=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};pp$9.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}};pp$9.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,a=e.doubleProto;if(!t)return r>=0||a>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),a>=0&&this.raiseRecoverable(a,"Redefinition of __proto__ property")};pp$9.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};pp$9.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var pp$8=Parser.prototype;pp$8.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==types$1.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var a=0,o=Object.keys(this.undefinedExports);a<o.length;a+=1){var u=o[a];this.raiseRecoverable(this.undefinedExports[u].start,"Export '"+u+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var loopLabel={kind:"loop"},switchLabel={kind:"switch"};pp$8.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;skipWhiteSpace.lastIndex=this.pos;var t=skipWhiteSpace.exec(this.input),r=this.pos+t[0].length,a=this.input.charCodeAt(r);if(a===91||a===92)return!0;if(e)return!1;if(a===123||a>55295&&a<56320)return!0;if(isIdentifierStart(a,!0)){for(var o=r+1;isIdentifierChar(a=this.input.charCodeAt(o),!0);)++o;if(a===92||a>55295&&a<56320)return!0;var u=this.input.slice(r,o);if(!keywordRelationalOperator.test(u))return!0}return!1};pp$8.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;skipWhiteSpace.lastIndex=this.pos;var e=skipWhiteSpace.exec(this.input),t=this.pos+e[0].length,r;return!lineBreak.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(isIdentifierChar(r=this.input.charCodeAt(t+8))||r>55295&&r<56320))};pp$8.parseStatement=function(e,t,r){var a=this.type,o=this.startNode(),u;switch(this.isLet(e)&&(a=types$1._var,u="let"),a){case types$1._break:case types$1._continue:return this.parseBreakContinueStatement(o,a.keyword);case types$1._debugger:return this.parseDebuggerStatement(o);case types$1._do:return this.parseDoStatement(o);case types$1._for:return this.parseForStatement(o);case types$1._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1,!e);case types$1._class:return e&&this.unexpected(),this.parseClass(o,!0);case types$1._if:return this.parseIfStatement(o);case types$1._return:return this.parseReturnStatement(o);case types$1._switch:return this.parseSwitchStatement(o);case types$1._throw:return this.parseThrowStatement(o);case types$1._try:return this.parseTryStatement(o);case types$1._const:case types$1._var:return u=u||this.value,e&&u!=="var"&&this.unexpected(),this.parseVarStatement(o,u);case types$1._while:return this.parseWhileStatement(o);case types$1._with:return this.parseWithStatement(o);case types$1.braceL:return this.parseBlock(!0,o);case types$1.semi:return this.parseEmptyStatement(o);case types$1._export:case types$1._import:if(this.options.ecmaVersion>10&&a===types$1._import){skipWhiteSpace.lastIndex=this.pos;var d=skipWhiteSpace.exec(this.input),f=this.pos+d[0].length,g=this.input.charCodeAt(f);if(g===40||g===46)return this.parseExpressionStatement(o,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),a===types$1._import?this.parseImport(o):this.parseExport(o,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(o,!0,!e);var E=this.value,S=this.parseExpression();return a===types$1.name&&S.type==="Identifier"&&this.eat(types$1.colon)?this.parseLabeledStatement(o,E,S,e):this.parseExpressionStatement(o,S)}};pp$8.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat(types$1.semi)||this.insertSemicolon()?e.label=null:this.type!==types$1.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var a=0;a<this.labels.length;++a){var o=this.labels[a];if((e.label==null||o.name===e.label.name)&&(o.kind!=null&&(r||o.kind==="loop")||e.label&&r))break}return a===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")};pp$8.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};pp$8.parseDoStatement=function(e){return this.next(),this.labels.push(loopLabel),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(types$1._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(types$1.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};pp$8.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(loopLabel),this.enterScope(0),this.expect(types$1.parenL),this.type===types$1.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===types$1._var||this.type===types$1._const||r){var a=this.startNode(),o=r?"let":this.value;return this.next(),this.parseVar(a,!0,o),this.finishNode(a,"VariableDeclaration"),(this.type===types$1._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&a.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===types$1._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,a)):(t>-1&&this.unexpected(t),this.parseFor(e,a))}var u=this.isContextual("let"),d=!1,f=new DestructuringErrors,g=this.parseExpression(t>-1?"await":!0,f);return this.type===types$1._in||(d=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===types$1._in?t>-1&&this.unexpected(t):e.await=t>-1),u&&d&&this.raise(g.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(g,!1,f),this.checkLValPattern(g),this.parseForIn(e,g)):(this.checkExpressionErrors(f,!0),t>-1&&this.unexpected(t),this.parseFor(e,g))};pp$8.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,FUNC_STATEMENT|(r?0:FUNC_HANGING_STATEMENT),!1,t)};pp$8.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(types$1._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};pp$8.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(types$1.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};pp$8.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(types$1.braceL),this.labels.push(switchLabel),this.enterScope(0);for(var t,r=!1;this.type!==types$1.braceR;)if(this.type===types$1._case||this.type===types$1._default){var a=this.type===types$1._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),a?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(types$1.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};pp$8.parseThrowStatement=function(e){return this.next(),lineBreak.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var empty$1=[];pp$8.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(e,t?BIND_SIMPLE_CATCH:BIND_LEXICAL),this.expect(types$1.parenR),e};pp$8.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===types$1._catch){var t=this.startNode();this.next(),this.eat(types$1.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(types$1._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};pp$8.parseVarStatement=function(e,t,r){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")};pp$8.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(loopLabel),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};pp$8.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};pp$8.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};pp$8.parseLabeledStatement=function(e,t,r,a){for(var o=0,u=this.labels;o<u.length;o+=1){var d=u[o];d.name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var f=this.type.isLoop?"loop":this.type===types$1._switch?"switch":null,g=this.labels.length-1;g>=0;g--){var E=this.labels[g];if(E.statementStart===e.start)E.statementStart=this.start,E.kind=f;else break}return this.labels.push({name:t,kind:f,statementStart:this.start}),e.body=this.parseStatement(a?a.indexOf("label")===-1?a+"label":a:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")};pp$8.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};pp$8.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(types$1.braceL),e&&this.enterScope(0);this.type!==types$1.braceR;){var a=this.parseStatement(null);t.body.push(a)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};pp$8.parseFor=function(e,t){return e.init=t,this.expect(types$1.semi),e.test=this.type===types$1.semi?null:this.parseExpression(),this.expect(types$1.semi),e.update=this.type===types$1.parenR?null:this.parseExpression(),this.expect(types$1.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};pp$8.parseForIn=function(e,t){var r=this.type===types$1._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(types$1.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")};pp$8.parseVar=function(e,t,r,a){for(e.declarations=[],e.kind=r;;){var o=this.startNode();if(this.parseVarId(o,r),this.eat(types$1.eq)?o.init=this.parseMaybeAssign(t):!a&&r==="const"&&!(this.type===types$1._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!a&&o.id.type!=="Identifier"&&!(t&&(this.type===types$1._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):o.init=null,e.declarations.push(this.finishNode(o,"VariableDeclarator")),!this.eat(types$1.comma))break}return e};pp$8.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?BIND_VAR:BIND_LEXICAL,!1)};var FUNC_STATEMENT=1,FUNC_HANGING_STATEMENT=2,FUNC_NULLABLE_ID=4;pp$8.parseFunction=function(e,t,r,a,o){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!a)&&(this.type===types$1.star&&t&FUNC_HANGING_STATEMENT&&this.unexpected(),e.generator=this.eat(types$1.star)),this.options.ecmaVersion>=8&&(e.async=!!a),t&FUNC_STATEMENT&&(e.id=t&FUNC_NULLABLE_ID&&this.type!==types$1.name?null:this.parseIdent(),e.id&&!(t&FUNC_HANGING_STATEMENT)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?BIND_VAR:BIND_LEXICAL:BIND_FUNCTION));var u=this.yieldPos,d=this.awaitPos,f=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(e.async,e.generator)),t&FUNC_STATEMENT||(e.id=this.type===types$1.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,o),this.yieldPos=u,this.awaitPos=d,this.awaitIdentPos=f,this.finishNode(e,t&FUNC_STATEMENT?"FunctionDeclaration":"FunctionExpression")};pp$8.parseFunctionParams=function(e){this.expect(types$1.parenL),e.params=this.parseBindingList(types$1.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};pp$8.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var a=this.enterClassBody(),o=this.startNode(),u=!1;for(o.body=[],this.expect(types$1.braceL);this.type!==types$1.braceR;){var d=this.parseClassElement(e.superClass!==null);d&&(o.body.push(d),d.type==="MethodDefinition"&&d.kind==="constructor"?(u&&this.raiseRecoverable(d.start,"Duplicate constructor in the same class"),u=!0):d.key&&d.key.type==="PrivateIdentifier"&&isPrivateNameConflicted(a,d)&&this.raiseRecoverable(d.key.start,"Identifier '#"+d.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(o,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};pp$8.parseClassElement=function(e){if(this.eat(types$1.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),a="",o=!1,u=!1,d="method",f=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(types$1.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===types$1.star?f=!0:a="static"}if(r.static=f,!a&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===types$1.star)&&!this.canInsertSemicolon()?u=!0:a="async"),!a&&(t>=9||!u)&&this.eat(types$1.star)&&(o=!0),!a&&!u&&!o){var g=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?d=g:a=g)}if(a?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=a,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===types$1.parenL||d!=="method"||o||u){var E=!r.static&&checkKeyName(r,"constructor"),S=E&&e;E&&d!=="method"&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=E?"constructor":d,this.parseClassMethod(r,o,u,S)}else this.parseClassField(r);return r};pp$8.isClassElementNameStart=function(){return this.type===types$1.name||this.type===types$1.privateId||this.type===types$1.num||this.type===types$1.string||this.type===types$1.bracketL||this.type.keyword};pp$8.parseClassElementName=function(e){this.type===types$1.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};pp$8.parseClassMethod=function(e,t,r,a){var o=e.key;e.kind==="constructor"?(t&&this.raise(o.start,"Constructor can't be a generator"),r&&this.raise(o.start,"Constructor can't be an async method")):e.static&&checkKeyName(e,"prototype")&&this.raise(o.start,"Classes may not have a static property named prototype");var u=e.value=this.parseMethod(t,r,a);return e.kind==="get"&&u.params.length!==0&&this.raiseRecoverable(u.start,"getter should have no params"),e.kind==="set"&&u.params.length!==1&&this.raiseRecoverable(u.start,"setter should have exactly one param"),e.kind==="set"&&u.params[0].type==="RestElement"&&this.raiseRecoverable(u.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};pp$8.parseClassField=function(e){if(checkKeyName(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&checkKeyName(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(types$1.eq)){var t=this.currentThisScope(),r=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=r}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")};pp$8.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(SCOPE_CLASS_STATIC_BLOCK|SCOPE_SUPER);this.type!==types$1.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};pp$8.parseClassId=function(e,t){this.type===types$1.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,BIND_LEXICAL,!1)):(t===!0&&this.unexpected(),e.id=null)};pp$8.parseClassSuper=function(e){e.superClass=this.eat(types$1._extends)?this.parseExprSubscripts(null,!1):null};pp$8.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};pp$8.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,r=e.used;if(this.options.checkPrivateFields)for(var a=this.privateNameStack.length,o=a===0?null:this.privateNameStack[a-1],u=0;u<r.length;++u){var d=r[u];hasOwn(t,d.name)||(o?o.used.push(d):this.raiseRecoverable(d.start,"Private field '#"+d.name+"' must be declared in an enclosing class"))}};function isPrivateNameConflicted(e,t){var r=t.key.name,a=e[r],o="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(o=(t.static?"s":"i")+t.kind),a==="iget"&&o==="iset"||a==="iset"&&o==="iget"||a==="sget"&&o==="sset"||a==="sset"&&o==="sget"?(e[r]="true",!1):a?!0:(e[r]=o,!1)}function checkKeyName(e,t){var r=e.computed,a=e.key;return!r&&(a.type==="Identifier"&&a.name===t||a.type==="Literal"&&a.value===t)}pp$8.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==types$1.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};pp$8.parseExport=function(e,t){if(this.next(),this.eat(types$1.star))return this.parseExportAllDeclaration(e,t);if(this.eat(types$1._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==types$1.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var r=0,a=e.specifiers;r<a.length;r+=1){var o=a[r];this.checkUnreserved(o.local),this.checkLocalExport(o.local),o.local.type==="Literal"&&this.raise(o.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};pp$8.parseExportDeclaration=function(e){return this.parseStatement(null)};pp$8.parseExportDefaultDeclaration=function(){var e;if(this.type===types$1._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,FUNC_STATEMENT|FUNC_NULLABLE_ID,!1,e)}else if(this.type===types$1._class){var r=this.startNode();return this.parseClass(r,"nullableID")}else{var a=this.parseMaybeAssign();return this.semicolon(),a}};pp$8.checkExport=function(e,t,r){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),hasOwn(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)};pp$8.checkPatternExport=function(e,t){var r=t.type;if(r==="Identifier")this.checkExport(e,t,t.start);else if(r==="ObjectPattern")for(var a=0,o=t.properties;a<o.length;a+=1){var u=o[a];this.checkPatternExport(e,u)}else if(r==="ArrayPattern")for(var d=0,f=t.elements;d<f.length;d+=1){var g=f[d];g&&this.checkPatternExport(e,g)}else r==="Property"?this.checkPatternExport(e,t.value):r==="AssignmentPattern"?this.checkPatternExport(e,t.left):r==="RestElement"&&this.checkPatternExport(e,t.argument)};pp$8.checkVariableExport=function(e,t){if(e)for(var r=0,a=t;r<a.length;r+=1){var o=a[r];this.checkPatternExport(e,o.id)}};pp$8.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};pp$8.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};pp$8.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(types$1.braceL);!this.eat(types$1.braceR);){if(r)r=!1;else if(this.expect(types$1.comma),this.afterTrailingComma(types$1.braceR))break;t.push(this.parseExportSpecifier(e))}return t};pp$8.parseImport=function(e){return this.next(),this.type===types$1.string?(e.specifiers=empty$1,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===types$1.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};pp$8.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,BIND_LEXICAL),this.finishNode(e,"ImportSpecifier")};pp$8.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,BIND_LEXICAL),this.finishNode(e,"ImportDefaultSpecifier")};pp$8.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,BIND_LEXICAL),this.finishNode(e,"ImportNamespaceSpecifier")};pp$8.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===types$1.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(types$1.comma)))return e;if(this.type===types$1.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(types$1.braceL);!this.eat(types$1.braceR);){if(t)t=!1;else if(this.expect(types$1.comma),this.afterTrailingComma(types$1.braceR))break;e.push(this.parseImportSpecifier())}return e};pp$8.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===types$1.string){var e=this.parseLiteral(this.value);return loneSurrogate.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};pp$8.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};pp$8.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var pp$7=Parser.prototype;pp$7.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var a=0,o=e.properties;a<o.length;a+=1){var u=o[a];this.toAssignable(u,t),u.type==="RestElement"&&(u.argument.type==="ArrayPattern"||u.argument.type==="ObjectPattern")&&this.raise(u.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e};pp$7.toAssignableList=function(e,t){for(var r=e.length,a=0;a<r;a++){var o=e[a];o&&this.toAssignable(o,t)}if(r){var u=e[r-1];this.options.ecmaVersion===6&&t&&u&&u.type==="RestElement"&&u.argument.type!=="Identifier"&&this.unexpected(u.argument.start)}return e};pp$7.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};pp$7.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==types$1.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};pp$7.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case types$1.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(types$1.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case types$1.braceL:return this.parseObj(!0)}return this.parseIdent()};pp$7.parseBindingList=function(e,t,r,a){for(var o=[],u=!0;!this.eat(e);)if(u?u=!1:this.expect(types$1.comma),t&&this.type===types$1.comma)o.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===types$1.ellipsis){var d=this.parseRestBinding();this.parseBindingListItem(d),o.push(d),this.type===types$1.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else o.push(this.parseAssignableListItem(a))}return o};pp$7.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};pp$7.parseBindingListItem=function(e){return e};pp$7.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(types$1.eq))return r;var a=this.startNodeAt(e,t);return a.left=r,a.right=this.parseMaybeAssign(),this.finishNode(a,"AssignmentPattern")};pp$7.checkLValSimple=function(e,t,r){t===void 0&&(t=BIND_NONE);var a=t!==BIND_NONE;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(a?"Binding ":"Assigning to ")+e.name+" in strict mode"),a&&(t===BIND_LEXICAL&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(hasOwn(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==BIND_OUTSIDE&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":a&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return a&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(a?"Binding":"Assigning to")+" rvalue")}};pp$7.checkLValPattern=function(e,t,r){switch(t===void 0&&(t=BIND_NONE),e.type){case"ObjectPattern":for(var a=0,o=e.properties;a<o.length;a+=1){var u=o[a];this.checkLValInnerPattern(u,t,r)}break;case"ArrayPattern":for(var d=0,f=e.elements;d<f.length;d+=1){var g=f[d];g&&this.checkLValInnerPattern(g,t,r)}break;default:this.checkLValSimple(e,t,r)}};pp$7.checkLValInnerPattern=function(e,t,r){switch(t===void 0&&(t=BIND_NONE),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var TokContext=function(t,r,a,o,u){this.token=t,this.isExpr=!!r,this.preserveSpace=!!a,this.override=o,this.generator=!!u},types={b_stat:new TokContext("{",!1),b_expr:new TokContext("{",!0),b_tmpl:new TokContext("${",!1),p_stat:new TokContext("(",!1),p_expr:new TokContext("(",!0),q_tmpl:new TokContext("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new TokContext("function",!1),f_expr:new TokContext("function",!0),f_expr_gen:new TokContext("function",!0,!1,null,!0),f_gen:new TokContext("function",!1,!1,null,!0)},pp$6=Parser.prototype;pp$6.initialContext=function(){return[types.b_stat]};pp$6.curContext=function(){return this.context[this.context.length-1]};pp$6.braceIsBlock=function(e){var t=this.curContext();return t===types.f_expr||t===types.f_stat?!0:e===types$1.colon&&(t===types.b_stat||t===types.b_expr)?!t.isExpr:e===types$1._return||e===types$1.name&&this.exprAllowed?lineBreak.test(this.input.slice(this.lastTokEnd,this.start)):e===types$1._else||e===types$1.semi||e===types$1.eof||e===types$1.parenR||e===types$1.arrow?!0:e===types$1.braceL?t===types.b_stat:e===types$1._var||e===types$1._const||e===types$1.name?!1:!this.exprAllowed};pp$6.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};pp$6.updateContext=function(e){var t,r=this.type;r.keyword&&e===types$1.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr};pp$6.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};types$1.parenR.updateContext=types$1.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===types.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};types$1.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?types.b_stat:types.b_expr),this.exprAllowed=!0};types$1.dollarBraceL.updateContext=function(){this.context.push(types.b_tmpl),this.exprAllowed=!0};types$1.parenL.updateContext=function(e){var t=e===types$1._if||e===types$1._for||e===types$1._with||e===types$1._while;this.context.push(t?types.p_stat:types.p_expr),this.exprAllowed=!0};types$1.incDec.updateContext=function(){};types$1._function.updateContext=types$1._class.updateContext=function(e){e.beforeExpr&&e!==types$1._else&&!(e===types$1.semi&&this.curContext()!==types.p_stat)&&!(e===types$1._return&&lineBreak.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===types$1.colon||e===types$1.braceL)&&this.curContext()===types.b_stat)?this.context.push(types.f_expr):this.context.push(types.f_stat),this.exprAllowed=!1};types$1.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};types$1.backQuote.updateContext=function(){this.curContext()===types.q_tmpl?this.context.pop():this.context.push(types.q_tmpl),this.exprAllowed=!1};types$1.star.updateContext=function(e){if(e===types$1._function){var t=this.context.length-1;this.context[t]===types.f_expr?this.context[t]=types.f_expr_gen:this.context[t]=types.f_gen}this.exprAllowed=!0};types$1.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==types$1.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var pp$5=Parser.prototype;pp$5.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var a=e.key,o;switch(a.type){case"Identifier":o=a.name;break;case"Literal":o=String(a.value);break;default:return}var u=e.kind;if(this.options.ecmaVersion>=6){o==="__proto__"&&u==="init"&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=a.start):this.raiseRecoverable(a.start,"Redefinition of __proto__ property")),t.proto=!0);return}o="$"+o;var d=t[o];if(d){var f;u==="init"?f=this.strict&&d.init||d.get||d.set:f=d.init||d[u],f&&this.raiseRecoverable(a.start,"Redefinition of property")}else d=t[o]={init:!1,get:!1,set:!1};d[u]=!0}};pp$5.parseExpression=function(e,t){var r=this.start,a=this.startLoc,o=this.parseMaybeAssign(e,t);if(this.type===types$1.comma){var u=this.startNodeAt(r,a);for(u.expressions=[o];this.eat(types$1.comma);)u.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(u,"SequenceExpression")}return o};pp$5.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var a=!1,o=-1,u=-1,d=-1;t?(o=t.parenthesizedAssign,u=t.trailingComma,d=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new DestructuringErrors,a=!0);var f=this.start,g=this.startLoc;(this.type===types$1.parenL||this.type===types$1.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var E=this.parseMaybeConditional(e,t);if(r&&(E=r.call(this,E,f,g)),this.type.isAssign){var S=this.startNodeAt(f,g);return S.operator=this.value,this.type===types$1.eq&&(E=this.toAssignable(E,!1,t)),a||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=E.start&&(t.shorthandAssign=-1),this.type===types$1.eq?this.checkLValPattern(E):this.checkLValSimple(E),S.left=E,this.next(),S.right=this.parseMaybeAssign(e),d>-1&&(t.doubleProto=d),this.finishNode(S,"AssignmentExpression")}else a&&this.checkExpressionErrors(t,!0);return o>-1&&(t.parenthesizedAssign=o),u>-1&&(t.trailingComma=u),E};pp$5.parseMaybeConditional=function(e,t){var r=this.start,a=this.startLoc,o=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return o;if(this.eat(types$1.question)){var u=this.startNodeAt(r,a);return u.test=o,u.consequent=this.parseMaybeAssign(),this.expect(types$1.colon),u.alternate=this.parseMaybeAssign(e),this.finishNode(u,"ConditionalExpression")}return o};pp$5.parseExprOps=function(e,t){var r=this.start,a=this.startLoc,o=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||o.start===r&&o.type==="ArrowFunctionExpression"?o:this.parseExprOp(o,r,a,-1,e)};pp$5.parseExprOp=function(e,t,r,a,o){var u=this.type.binop;if(u!=null&&(!o||this.type!==types$1._in)&&u>a){var d=this.type===types$1.logicalOR||this.type===types$1.logicalAND,f=this.type===types$1.coalesce;f&&(u=types$1.logicalAND.binop);var g=this.value;this.next();var E=this.start,S=this.startLoc,b=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,o),E,S,u,o),v=this.buildBinary(t,r,e,b,g,d||f);return(d&&this.type===types$1.coalesce||f&&(this.type===types$1.logicalOR||this.type===types$1.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(v,t,r,a,o)}return e};pp$5.buildBinary=function(e,t,r,a,o,u){a.type==="PrivateIdentifier"&&this.raise(a.start,"Private identifier can only be left side of binary expression");var d=this.startNodeAt(e,t);return d.left=r,d.operator=o,d.right=a,this.finishNode(d,u?"LogicalExpression":"BinaryExpression")};pp$5.parseMaybeUnary=function(e,t,r,a){var o=this.start,u=this.startLoc,d;if(this.isContextual("await")&&this.canAwait)d=this.parseAwait(a),t=!0;else if(this.type.prefix){var f=this.startNode(),g=this.type===types$1.incDec;f.operator=this.value,f.prefix=!0,this.next(),f.argument=this.parseMaybeUnary(null,!0,g,a),this.checkExpressionErrors(e,!0),g?this.checkLValSimple(f.argument):this.strict&&f.operator==="delete"&&f.argument.type==="Identifier"?this.raiseRecoverable(f.start,"Deleting local variable in strict mode"):f.operator==="delete"&&isPrivateFieldAccess(f.argument)?this.raiseRecoverable(f.start,"Private fields can not be deleted"):t=!0,d=this.finishNode(f,g?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===types$1.privateId)(a||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),d=this.parsePrivateIdent(),this.type!==types$1._in&&this.unexpected();else{if(d=this.parseExprSubscripts(e,a),this.checkExpressionErrors(e))return d;for(;this.type.postfix&&!this.canInsertSemicolon();){var E=this.startNodeAt(o,u);E.operator=this.value,E.prefix=!1,E.argument=d,this.checkLValSimple(d),this.next(),d=this.finishNode(E,"UpdateExpression")}}if(!r&&this.eat(types$1.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(o,u,d,this.parseMaybeUnary(null,!1,!1,a),"**",!1);else return d};function isPrivateFieldAccess(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&isPrivateFieldAccess(e.expression)}pp$5.parseExprSubscripts=function(e,t){var r=this.start,a=this.startLoc,o=this.parseExprAtom(e,t);if(o.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return o;var u=this.parseSubscripts(o,r,a,!1,t);return e&&u.type==="MemberExpression"&&(e.parenthesizedAssign>=u.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=u.start&&(e.parenthesizedBind=-1),e.trailingComma>=u.start&&(e.trailingComma=-1)),u};pp$5.parseSubscripts=function(e,t,r,a,o){for(var u=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,d=!1;;){var f=this.parseSubscript(e,t,r,a,u,d,o);if(f.optional&&(d=!0),f===e||f.type==="ArrowFunctionExpression"){if(d){var g=this.startNodeAt(t,r);g.expression=f,f=this.finishNode(g,"ChainExpression")}return f}e=f}};pp$5.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(types$1.arrow)};pp$5.parseSubscriptAsyncArrow=function(e,t,r,a){return this.parseArrowExpression(this.startNodeAt(e,t),r,!0,a)};pp$5.parseSubscript=function(e,t,r,a,o,u,d){var f=this.options.ecmaVersion>=11,g=f&&this.eat(types$1.questionDot);a&&g&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var E=this.eat(types$1.bracketL);if(E||g&&this.type!==types$1.parenL&&this.type!==types$1.backQuote||this.eat(types$1.dot)){var S=this.startNodeAt(t,r);S.object=e,E?(S.property=this.parseExpression(),this.expect(types$1.bracketR)):this.type===types$1.privateId&&e.type!=="Super"?S.property=this.parsePrivateIdent():S.property=this.parseIdent(this.options.allowReserved!=="never"),S.computed=!!E,f&&(S.optional=g),e=this.finishNode(S,"MemberExpression")}else if(!a&&this.eat(types$1.parenL)){var b=new DestructuringErrors,v=this.yieldPos,y=this.awaitPos,T=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var C=this.parseExprList(types$1.parenR,this.options.ecmaVersion>=8,!1,b);if(o&&!g&&this.shouldParseAsyncArrow())return this.checkPatternErrors(b,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=v,this.awaitPos=y,this.awaitIdentPos=T,this.parseSubscriptAsyncArrow(t,r,C,d);this.checkExpressionErrors(b,!0),this.yieldPos=v||this.yieldPos,this.awaitPos=y||this.awaitPos,this.awaitIdentPos=T||this.awaitIdentPos;var R=this.startNodeAt(t,r);R.callee=e,R.arguments=C,f&&(R.optional=g),e=this.finishNode(R,"CallExpression")}else if(this.type===types$1.backQuote){(g||u)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var A=this.startNodeAt(t,r);A.tag=e,A.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(A,"TaggedTemplateExpression")}return e};pp$5.parseExprAtom=function(e,t,r){this.type===types$1.slash&&this.readRegexp();var a,o=this.potentialArrowAt===this.start;switch(this.type){case types$1._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),a=this.startNode(),this.next(),this.type===types$1.parenL&&!this.allowDirectSuper&&this.raise(a.start,"super() call outside constructor of a subclass"),this.type!==types$1.dot&&this.type!==types$1.bracketL&&this.type!==types$1.parenL&&this.unexpected(),this.finishNode(a,"Super");case types$1._this:return a=this.startNode(),this.next(),this.finishNode(a,"ThisExpression");case types$1.name:var u=this.start,d=this.startLoc,f=this.containsEsc,g=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!f&&g.name==="async"&&!this.canInsertSemicolon()&&this.eat(types$1._function))return this.overrideContext(types.f_expr),this.parseFunction(this.startNodeAt(u,d),0,!1,!0,t);if(o&&!this.canInsertSemicolon()){if(this.eat(types$1.arrow))return this.parseArrowExpression(this.startNodeAt(u,d),[g],!1,t);if(this.options.ecmaVersion>=8&&g.name==="async"&&this.type===types$1.name&&!f&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return g=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(types$1.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(u,d),[g],!0,t)}return g;case types$1.regexp:var E=this.value;return a=this.parseLiteral(E.value),a.regex={pattern:E.pattern,flags:E.flags},a;case types$1.num:case types$1.string:return this.parseLiteral(this.value);case types$1._null:case types$1._true:case types$1._false:return a=this.startNode(),a.value=this.type===types$1._null?null:this.type===types$1._true,a.raw=this.type.keyword,this.next(),this.finishNode(a,"Literal");case types$1.parenL:var S=this.start,b=this.parseParenAndDistinguishExpression(o,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(b)&&(e.parenthesizedAssign=S),e.parenthesizedBind<0&&(e.parenthesizedBind=S)),b;case types$1.bracketL:return a=this.startNode(),this.next(),a.elements=this.parseExprList(types$1.bracketR,!0,!0,e),this.finishNode(a,"ArrayExpression");case types$1.braceL:return this.overrideContext(types.b_expr),this.parseObj(!1,e);case types$1._function:return a=this.startNode(),this.next(),this.parseFunction(a,0);case types$1._class:return this.parseClass(this.startNode(),!1);case types$1._new:return this.parseNew();case types$1.backQuote:return this.parseTemplate();case types$1._import:return this.options.ecmaVersion>=11?this.parseExprImport(r):this.unexpected();default:return this.parseExprAtomDefault()}};pp$5.parseExprAtomDefault=function(){this.unexpected()};pp$5.parseExprImport=function(e){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var r=this.parseIdent(!0);if(this.type===types$1.parenL&&!e)return this.parseDynamicImport(t);if(this.type===types$1.dot)return t.meta=r,this.parseImportMeta(t);this.unexpected()};pp$5.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(types$1.parenR)){var t=this.start;this.eat(types$1.comma)&&this.eat(types$1.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};pp$5.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};pp$5.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};pp$5.parseParenExpression=function(){this.expect(types$1.parenL);var e=this.parseExpression();return this.expect(types$1.parenR),e};pp$5.shouldParseArrow=function(e){return!this.canInsertSemicolon()};pp$5.parseParenAndDistinguishExpression=function(e,t){var r=this.start,a=this.startLoc,o,u=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var d=this.start,f=this.startLoc,g=[],E=!0,S=!1,b=new DestructuringErrors,v=this.yieldPos,y=this.awaitPos,T;for(this.yieldPos=0,this.awaitPos=0;this.type!==types$1.parenR;)if(E?E=!1:this.expect(types$1.comma),u&&this.afterTrailingComma(types$1.parenR,!0)){S=!0;break}else if(this.type===types$1.ellipsis){T=this.start,g.push(this.parseParenItem(this.parseRestBinding())),this.type===types$1.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else g.push(this.parseMaybeAssign(!1,b,this.parseParenItem));var C=this.lastTokEnd,R=this.lastTokEndLoc;if(this.expect(types$1.parenR),e&&this.shouldParseArrow(g)&&this.eat(types$1.arrow))return this.checkPatternErrors(b,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=v,this.awaitPos=y,this.parseParenArrowList(r,a,g,t);(!g.length||S)&&this.unexpected(this.lastTokStart),T&&this.unexpected(T),this.checkExpressionErrors(b,!0),this.yieldPos=v||this.yieldPos,this.awaitPos=y||this.awaitPos,g.length>1?(o=this.startNodeAt(d,f),o.expressions=g,this.finishNodeAt(o,"SequenceExpression",C,R)):o=g[0]}else o=this.parseParenExpression();if(this.options.preserveParens){var A=this.startNodeAt(r,a);return A.expression=o,this.finishNode(A,"ParenthesizedExpression")}else return o};pp$5.parseParenItem=function(e){return e};pp$5.parseParenArrowList=function(e,t,r,a){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,a)};var empty$2=[];pp$5.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===types$1.dot){var t=this.startNodeAt(e.start,e.startLoc);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var r=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var a=this.start,o=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),a,o,!0,!1),this.eat(types$1.parenL)?e.arguments=this.parseExprList(types$1.parenR,this.options.ecmaVersion>=8,!1):e.arguments=empty$2,this.finishNode(e,"NewExpression")};pp$5.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===types$1.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
187
187
|
`),cooked:this.value},this.next(),r.tail=this.type===types$1.backQuote,this.finishNode(r,"TemplateElement")};pp$5.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var a=this.parseTemplateElement({isTagged:t});for(r.quasis=[a];!a.tail;)this.type===types$1.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(types$1.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(types$1.braceR),r.quasis.push(a=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")};pp$5.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===types$1.name||this.type===types$1.num||this.type===types$1.string||this.type===types$1.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===types$1.star)&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.start))};pp$5.parseObj=function(e,t){var r=this.startNode(),a=!0,o={};for(r.properties=[],this.next();!this.eat(types$1.braceR);){if(a)a=!1;else if(this.expect(types$1.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(types$1.braceR))break;var u=this.parseProperty(e,t);e||this.checkPropClash(u,o,t),r.properties.push(u)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")};pp$5.parseProperty=function(e,t){var r=this.startNode(),a,o,u,d;if(this.options.ecmaVersion>=9&&this.eat(types$1.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===types$1.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(r.argument=this.parseMaybeAssign(!1,t),this.type===types$1.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(u=this.start,d=this.startLoc),e||(a=this.eat(types$1.star)));var f=this.containsEsc;return this.parsePropertyName(r),!e&&!f&&this.options.ecmaVersion>=8&&!a&&this.isAsyncProp(r)?(o=!0,a=this.options.ecmaVersion>=9&&this.eat(types$1.star),this.parsePropertyName(r)):o=!1,this.parsePropertyValue(r,e,a,o,u,d,t,f),this.finishNode(r,"Property")};pp$5.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var r=e.value.start;e.kind==="get"?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};pp$5.parsePropertyValue=function(e,t,r,a,o,u,d,f){(r||a)&&this.type===types$1.colon&&this.unexpected(),this.eat(types$1.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,d),e.kind="init"):this.options.ecmaVersion>=6&&this.type===types$1.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,a)):!t&&!f&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==types$1.comma&&this.type!==types$1.braceR&&this.type!==types$1.eq?((r||a)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||a)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=o),e.kind="init",t?e.value=this.parseMaybeDefault(o,u,this.copyNode(e.key)):this.type===types$1.eq&&d?(d.shorthandAssign<0&&(d.shorthandAssign=this.start),e.value=this.parseMaybeDefault(o,u,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};pp$5.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(types$1.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(types$1.bracketR),e.key;e.computed=!1}return e.key=this.type===types$1.num||this.type===types$1.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};pp$5.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};pp$5.parseMethod=function(e,t,r){var a=this.startNode(),o=this.yieldPos,u=this.awaitPos,d=this.awaitIdentPos;return this.initFunction(a),this.options.ecmaVersion>=6&&(a.generator=e),this.options.ecmaVersion>=8&&(a.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(t,a.generator)|SCOPE_SUPER|(r?SCOPE_DIRECT_SUPER:0)),this.expect(types$1.parenL),a.params=this.parseBindingList(types$1.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(a,!1,!0,!1),this.yieldPos=o,this.awaitPos=u,this.awaitIdentPos=d,this.finishNode(a,"FunctionExpression")};pp$5.parseArrowExpression=function(e,t,r,a){var o=this.yieldPos,u=this.awaitPos,d=this.awaitIdentPos;return this.enterScope(functionFlags(r,!1)|SCOPE_ARROW),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,a),this.yieldPos=o,this.awaitPos=u,this.awaitIdentPos=d,this.finishNode(e,"ArrowFunctionExpression")};pp$5.parseFunctionBody=function(e,t,r,a){var o=t&&this.type!==types$1.braceL,u=this.strict,d=!1;if(o)e.body=this.parseMaybeAssign(a),e.expression=!0,this.checkParams(e,!1);else{var f=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!u||f)&&(d=this.strictDirective(this.end),d&&f&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var g=this.labels;this.labels=[],d&&(this.strict=!0),this.checkParams(e,!u&&!d&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,BIND_OUTSIDE),e.body=this.parseBlock(!1,void 0,d&&!u),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=g}this.exitScope()};pp$5.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1){var a=r[t];if(a.type!=="Identifier")return!1}return!0};pp$5.checkParams=function(e,t){for(var r=Object.create(null),a=0,o=e.params;a<o.length;a+=1){var u=o[a];this.checkLValInnerPattern(u,BIND_VAR,t?null:r)}};pp$5.parseExprList=function(e,t,r,a){for(var o=[],u=!0;!this.eat(e);){if(u)u=!1;else if(this.expect(types$1.comma),t&&this.afterTrailingComma(e))break;var d=void 0;r&&this.type===types$1.comma?d=null:this.type===types$1.ellipsis?(d=this.parseSpread(a),a&&this.type===types$1.comma&&a.trailingComma<0&&(a.trailingComma=this.start)):d=this.parseMaybeAssign(!1,a),o.push(d)}return o};pp$5.checkUnreserved=function(e){var t=e.start,r=e.end,a=e.name;if(this.inGenerator&&a==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&a==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&a==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(a==="arguments"||a==="await")&&this.raise(t,"Cannot use "+a+" in class static initialization block"),this.keywords.test(a)&&this.raise(t,"Unexpected keyword '"+a+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,r).indexOf("\\")!==-1)){var o=this.strict?this.reservedWordsStrict:this.reservedWords;o.test(a)&&(!this.inAsync&&a==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+a+"' is reserved"))}};pp$5.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};pp$5.parseIdentNode=function(){var e=this.startNode();return this.type===types$1.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=types$1.name):this.unexpected(),e};pp$5.parsePrivateIdent=function(){var e=this.startNode();return this.type===types$1.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};pp$5.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===types$1.semi||this.canInsertSemicolon()||this.type!==types$1.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(types$1.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};pp$5.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var pp$4=Parser.prototype;pp$4.raise=function(e,t){var r=getLineInfo(this.input,e);t+=" ("+r.line+":"+r.column+")";var a=new SyntaxError(t);throw a.pos=e,a.loc=r,a.raisedAt=this.pos,a};pp$4.raiseRecoverable=pp$4.raise;pp$4.curPosition=function(){if(this.options.locations)return new Position(this.curLine,this.pos-this.lineStart)};var pp$3=Parser.prototype,Scope=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};pp$3.enterScope=function(e){this.scopeStack.push(new Scope(e))};pp$3.exitScope=function(){this.scopeStack.pop()};pp$3.treatFunctionsAsVarInScope=function(e){return e.flags&SCOPE_FUNCTION||!this.inModule&&e.flags&SCOPE_TOP};pp$3.declareName=function(e,t,r){var a=!1;if(t===BIND_LEXICAL){var o=this.currentScope();a=o.lexical.indexOf(e)>-1||o.functions.indexOf(e)>-1||o.var.indexOf(e)>-1,o.lexical.push(e),this.inModule&&o.flags&SCOPE_TOP&&delete this.undefinedExports[e]}else if(t===BIND_SIMPLE_CATCH){var u=this.currentScope();u.lexical.push(e)}else if(t===BIND_FUNCTION){var d=this.currentScope();this.treatFunctionsAsVar?a=d.lexical.indexOf(e)>-1:a=d.lexical.indexOf(e)>-1||d.var.indexOf(e)>-1,d.functions.push(e)}else for(var f=this.scopeStack.length-1;f>=0;--f){var g=this.scopeStack[f];if(g.lexical.indexOf(e)>-1&&!(g.flags&SCOPE_SIMPLE_CATCH&&g.lexical[0]===e)||!this.treatFunctionsAsVarInScope(g)&&g.functions.indexOf(e)>-1){a=!0;break}if(g.var.push(e),this.inModule&&g.flags&SCOPE_TOP&&delete this.undefinedExports[e],g.flags&SCOPE_VAR)break}a&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")};pp$3.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};pp$3.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};pp$3.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&SCOPE_VAR)return t}};pp$3.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&SCOPE_VAR&&!(t.flags&SCOPE_ARROW))return t}};var Node$1=function(t,r,a){this.type="",this.start=r,this.end=0,t.options.locations&&(this.loc=new SourceLocation(t,a)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[r,0])},pp$2=Parser.prototype;pp$2.startNode=function(){return new Node$1(this,this.start,this.startLoc)};pp$2.startNodeAt=function(e,t){return new Node$1(this,e,t)};function finishNodeAt(e,t,r,a){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=a),this.options.ranges&&(e.range[1]=r),e}pp$2.finishNode=function(e,t){return finishNodeAt.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};pp$2.finishNodeAt=function(e,t,r,a){return finishNodeAt.call(this,e,t,r,a)};pp$2.copyNode=function(e){var t=new Node$1(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};var ecma9BinaryProperties="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ecma10BinaryProperties=ecma9BinaryProperties+" Extended_Pictographic",ecma11BinaryProperties=ecma10BinaryProperties,ecma12BinaryProperties=ecma11BinaryProperties+" EBase EComp EMod EPres ExtPict",ecma13BinaryProperties=ecma12BinaryProperties,ecma14BinaryProperties=ecma13BinaryProperties,unicodeBinaryProperties={9:ecma9BinaryProperties,10:ecma10BinaryProperties,11:ecma11BinaryProperties,12:ecma12BinaryProperties,13:ecma13BinaryProperties,14:ecma14BinaryProperties},ecma14BinaryPropertiesOfStrings="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",unicodeBinaryPropertiesOfStrings={9:"",10:"",11:"",12:"",13:"",14:ecma14BinaryPropertiesOfStrings},unicodeGeneralCategoryValues="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ecma9ScriptValues="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ecma10ScriptValues=ecma9ScriptValues+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ecma11ScriptValues=ecma10ScriptValues+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ecma12ScriptValues=ecma11ScriptValues+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ecma13ScriptValues=ecma12ScriptValues+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",ecma14ScriptValues=ecma13ScriptValues+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",unicodeScriptValues={9:ecma9ScriptValues,10:ecma10ScriptValues,11:ecma11ScriptValues,12:ecma12ScriptValues,13:ecma13ScriptValues,14:ecma14ScriptValues},data$1={};function buildUnicodeData(e){var t=data$1[e]={binary:wordsRegexp(unicodeBinaryProperties[e]+" "+unicodeGeneralCategoryValues),binaryOfStrings:wordsRegexp(unicodeBinaryPropertiesOfStrings[e]),nonBinary:{General_Category:wordsRegexp(unicodeGeneralCategoryValues),Script:wordsRegexp(unicodeScriptValues[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var i$1=0,list=[9,10,11,12,13,14];i$1<list.length;i$1+=1){var ecmaVersion=list[i$1];buildUnicodeData(ecmaVersion)}var pp$1=Parser.prototype,RegExpValidationState=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=data$1[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};RegExpValidationState.prototype.reset=function(t,r,a){var o=a.indexOf("v")!==-1,u=a.indexOf("u")!==-1;this.start=t|0,this.source=r+"",this.flags=a,o&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=u&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=u&&this.parser.options.ecmaVersion>=9)};RegExpValidationState.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};RegExpValidationState.prototype.at=function(t,r){r===void 0&&(r=!1);var a=this.source,o=a.length;if(t>=o)return-1;var u=a.charCodeAt(t);if(!(r||this.switchU)||u<=55295||u>=57344||t+1>=o)return u;var d=a.charCodeAt(t+1);return d>=56320&&d<=57343?(u<<10)+d-56613888:u};RegExpValidationState.prototype.nextIndex=function(t,r){r===void 0&&(r=!1);var a=this.source,o=a.length;if(t>=o)return o;var u=a.charCodeAt(t),d;return!(r||this.switchU)||u<=55295||u>=57344||t+1>=o||(d=a.charCodeAt(t+1))<56320||d>57343?t+1:t+2};RegExpValidationState.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};RegExpValidationState.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};RegExpValidationState.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};RegExpValidationState.prototype.eat=function(t,r){return r===void 0&&(r=!1),this.current(r)===t?(this.advance(r),!0):!1};RegExpValidationState.prototype.eatChars=function(t,r){r===void 0&&(r=!1);for(var a=this.pos,o=0,u=t;o<u.length;o+=1){var d=u[o],f=this.at(a,r);if(f===-1||f!==d)return!1;a=this.nextIndex(a,r)}return this.pos=a,!0};pp$1.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,a=!1,o=!1,u=0;u<r.length;u++){var d=r.charAt(u);t.indexOf(d)===-1&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(d,u+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),d==="u"&&(a=!0),d==="v"&&(o=!0)}this.options.ecmaVersion>=15&&a&&o&&this.raise(e.start,"Invalid regular expression flag")};pp$1.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))};pp$1.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var a=r[t];e.groupNames.indexOf(a)===-1&&e.raise("Invalid named capture referenced")}};pp$1.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};pp$1.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};pp$1.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};pp$1.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1};pp$1.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};pp$1.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};pp$1.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var a=0,o=-1;if(this.regexp_eatDecimalDigits(e)&&(a=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(o=e.lastIntValue),e.eat(125)))return o!==-1&&o<a&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1};pp$1.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};pp$1.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};pp$1.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1};pp$1.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};pp$1.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};pp$1.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};pp$1.regexp_eatSyntaxCharacter=function(e){var t=e.current();return isSyntaxCharacter(t)?(e.lastIntValue=t,e.advance(),!0):!1};function isSyntaxCharacter(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}pp$1.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!isSyntaxCharacter(r);)e.advance();return e.pos!==t};pp$1.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};pp$1.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}};pp$1.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};pp$1.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=codePointToString(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=codePointToString(e.lastIntValue);return!0}return!1};pp$1.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,a=e.current(r);return e.advance(r),a===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(a=e.lastIntValue),isRegExpIdentifierStart(a)?(e.lastIntValue=a,!0):(e.pos=t,!1)};function isRegExpIdentifierStart(e){return isIdentifierStart(e,!0)||e===36||e===95}pp$1.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,a=e.current(r);return e.advance(r),a===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(a=e.lastIntValue),isRegExpIdentifierPart(a)?(e.lastIntValue=a,!0):(e.pos=t,!1)};function isRegExpIdentifierPart(e){return isIdentifierChar(e,!0)||e===36||e===95||e===8204||e===8205}pp$1.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};pp$1.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1};pp$1.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};pp$1.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};pp$1.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};pp$1.regexp_eatZero=function(e){return e.current()===48&&!isDecimalDigit(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};pp$1.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};pp$1.regexp_eatControlLetter=function(e){var t=e.current();return isControlLetter(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function isControlLetter(e){return e>=65&&e<=90||e>=97&&e<=122}pp$1.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var r=e.pos,a=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(a&&o>=55296&&o<=56319){var u=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var d=e.lastIntValue;if(d>=56320&&d<=57343)return e.lastIntValue=(o-55296)*1024+(d-56320)+65536,!0}e.pos=u,e.lastIntValue=o}return!0}if(a&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&isValidUnicode(e.lastIntValue))return!0;a&&e.raise("Invalid unicode escape"),e.pos=r}return!1};function isValidUnicode(e){return e>=0&&e<=1114111}pp$1.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};pp$1.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var CharSetNone=0,CharSetOk=1,CharSetString=2;pp$1.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(isCharacterClassEscape(t))return e.lastIntValue=-1,e.advance(),CharSetOk;var r=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((r=t===80)||t===112)){e.lastIntValue=-1,e.advance();var a;if(e.eat(123)&&(a=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return r&&a===CharSetString&&e.raise("Invalid property name"),a;e.raise("Invalid property name")}return CharSetNone};function isCharacterClassEscape(e){return e===100||e===68||e===115||e===83||e===119||e===87}pp$1.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var a=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,a),CharSetOk}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var o=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,o)}return CharSetNone};pp$1.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){hasOwn(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")};pp$1.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return CharSetOk;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return CharSetString;e.raise("Invalid property name")};pp$1.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";isUnicodePropertyNameCharacter(t=e.current());)e.lastStringValue+=codePointToString(t),e.advance();return e.lastStringValue!==""};function isUnicodePropertyNameCharacter(e){return isControlLetter(e)||e===95}pp$1.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";isUnicodePropertyValueCharacter(t=e.current());)e.lastStringValue+=codePointToString(t),e.advance();return e.lastStringValue!==""};function isUnicodePropertyValueCharacter(e){return isUnicodePropertyNameCharacter(e)||isDecimalDigit(e)}pp$1.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};pp$1.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),r=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&r===CharSetString&&e.raise("Negated character class may contain strings"),!0}return!1};pp$1.regexp_classContents=function(e){return e.current()===93?CharSetOk:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),CharSetOk)};pp$1.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;e.switchU&&(t===-1||r===-1)&&e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}};pp$1.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(r===99||isOctalDigit(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var a=e.current();return a!==93?(e.lastIntValue=a,e.advance(),!0):!1};pp$1.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};pp$1.regexp_classSetExpression=function(e){var t=CharSetOk,r;if(!this.regexp_eatClassSetRange(e))if(r=this.regexp_eatClassSetOperand(e)){r===CharSetString&&(t=CharSetString);for(var a=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(r=this.regexp_eatClassSetOperand(e))){r!==CharSetString&&(t=CharSetOk);continue}e.raise("Invalid character in character class")}if(a!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(a!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(r=this.regexp_eatClassSetOperand(e),!r)return t;r===CharSetString&&(t=CharSetString)}};pp$1.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var a=e.lastIntValue;return r!==-1&&a!==-1&&r>a&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};pp$1.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?CharSetOk:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};pp$1.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var r=e.eat(94),a=this.regexp_classContents(e);if(e.eat(93))return r&&a===CharSetString&&e.raise("Negated character class may contain strings"),a;e.pos=t}if(e.eat(92)){var o=this.regexp_eatCharacterClassEscape(e);if(o)return o;e.pos=t}return null};pp$1.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var r=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return r}else e.raise("Invalid escape");e.pos=t}return null};pp$1.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===CharSetString&&(t=CharSetString);return t};pp$1.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?CharSetOk:CharSetString};pp$1.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var r=e.current();return r<0||r===e.lookahead()&&isClassSetReservedDoublePunctuatorCharacter(r)||isClassSetSyntaxCharacter(r)?!1:(e.advance(),e.lastIntValue=r,!0)};function isClassSetReservedDoublePunctuatorCharacter(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function isClassSetSyntaxCharacter(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}pp$1.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return isClassSetReservedPunctuator(t)?(e.lastIntValue=t,e.advance(),!0):!1};function isClassSetReservedPunctuator(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}pp$1.regexp_eatClassControlLetter=function(e){var t=e.current();return isDecimalDigit(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};pp$1.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};pp$1.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;isDecimalDigit(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t};function isDecimalDigit(e){return e>=48&&e<=57}pp$1.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;isHexDigit(r=e.current());)e.lastIntValue=16*e.lastIntValue+hexToInt(r),e.advance();return e.pos!==t};function isHexDigit(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function hexToInt(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}pp$1.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+r*8+e.lastIntValue:e.lastIntValue=t*8+r}else e.lastIntValue=t;return!0}return!1};pp$1.regexp_eatOctalDigit=function(e){var t=e.current();return isOctalDigit(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function isOctalDigit(e){return e>=48&&e<=55}pp$1.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var a=0;a<t;++a){var o=e.current();if(!isHexDigit(o))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+hexToInt(o),e.advance()}return!0};var Token=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new SourceLocation(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},pp=Parser.prototype;pp.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Token(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};pp.getToken=function(){return this.next(),new Token(this)};typeof Symbol<"u"&&(pp[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===types$1.eof,value:t}}}});pp.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(types$1.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};pp.readToken=function(e){return isIdentifierStart(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};pp.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888};pp.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var a=void 0,o=t;(a=nextLineBreak(this.input,o,this.pos))>-1;)++this.curLine,o=this.lineStart=a;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())};pp.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),a=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!isNewLine(a);)a=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())};pp.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&nonASCIIwhitespace.test(String.fromCharCode(e)))++this.pos;else break e}}};pp.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)};pp.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(types$1.ellipsis)):(++this.pos,this.finishToken(types$1.dot))};pp.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(types$1.assign,2):this.finishOp(types$1.slash,1)};pp.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,a=e===42?types$1.star:types$1.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++r,a=types$1.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(types$1.assign,r+1):this.finishOp(a,r)};pp.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp(types$1.assign,3)}return this.finishOp(e===124?types$1.logicalOR:types$1.logicalAND,2)}return t===61?this.finishOp(types$1.assign,2):this.finishOp(e===124?types$1.bitwiseOR:types$1.bitwiseAND,1)};pp.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(types$1.assign,2):this.finishOp(types$1.bitwiseXOR,1)};pp.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||lineBreak.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(types$1.incDec,2):t===61?this.finishOp(types$1.assign,2):this.finishOp(types$1.plusMin,1)};pp.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp(types$1.assign,r+1):this.finishOp(types$1.bitShift,r)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(r=2),this.finishOp(types$1.relational,r))};pp.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(types$1.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(types$1.arrow)):this.finishOp(e===61?types$1.eq:types$1.prefix,1)};pp.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(types$1.questionDot,2)}if(t===63){if(e>=12){var a=this.input.charCodeAt(this.pos+2);if(a===61)return this.finishOp(types$1.assign,3)}return this.finishOp(types$1.coalesce,2)}}return this.finishOp(types$1.question,1)};pp.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),isIdentifierStart(t,!0)||t===92))return this.finishToken(types$1.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+codePointToString(t)+"'")};pp.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(types$1.parenL);case 41:return++this.pos,this.finishToken(types$1.parenR);case 59:return++this.pos,this.finishToken(types$1.semi);case 44:return++this.pos,this.finishToken(types$1.comma);case 91:return++this.pos,this.finishToken(types$1.bracketL);case 93:return++this.pos,this.finishToken(types$1.bracketR);case 123:return++this.pos,this.finishToken(types$1.braceL);case 125:return++this.pos,this.finishToken(types$1.braceR);case 58:return++this.pos,this.finishToken(types$1.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(types$1.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(types$1.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+codePointToString(e)+"'")};pp.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)};pp.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var a=this.input.charAt(this.pos);if(lineBreak.test(a)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if(a==="[")t=!0;else if(a==="]"&&t)t=!1;else if(a==="/"&&!t)break;e=a==="\\"}++this.pos}var o=this.input.slice(r,this.pos);++this.pos;var u=this.pos,d=this.readWord1();this.containsEsc&&this.unexpected(u);var f=this.regexpState||(this.regexpState=new RegExpValidationState(this));f.reset(r,o,d),this.validateRegExpFlags(f),this.validateRegExpPattern(f);var g=null;try{g=new RegExp(o,d)}catch{}return this.finishToken(types$1.regexp,{pattern:o,flags:d,value:g})};pp.readInt=function(e,t,r){for(var a=this.options.ecmaVersion>=12&&t===void 0,o=r&&this.input.charCodeAt(this.pos)===48,u=this.pos,d=0,f=0,g=0,E=t??1/0;g<E;++g,++this.pos){var S=this.input.charCodeAt(this.pos),b=void 0;if(a&&S===95){o&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),f===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),g===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),f=S;continue}if(S>=97?b=S-97+10:S>=65?b=S-65+10:S>=48&&S<=57?b=S-48:b=1/0,b>=e)break;f=S,d=d*e+b}return a&&f===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===u||t!=null&&this.pos-u!==t?null:d};function stringToNumber(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function stringToBigInt(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}pp.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return r==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=stringToBigInt(this.input.slice(t,this.pos)),++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types$1.num,r)};pp.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var r=this.pos-t>=2&&this.input.charCodeAt(t)===48;r&&this.strict&&this.raise(t,"Invalid number");var a=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&a===110){var o=stringToBigInt(this.input.slice(t,this.pos));return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types$1.num,o)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),a===46&&!r&&(++this.pos,this.readInt(10),a=this.input.charCodeAt(this.pos)),(a===69||a===101)&&!r&&(a=this.input.charCodeAt(++this.pos),(a===43||a===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var u=stringToNumber(this.input.slice(t,this.pos),r);return this.finishToken(types$1.num,u)};pp.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else t=this.readHexChar(4);return t};pp.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var a=this.input.charCodeAt(this.pos);if(a===e)break;a===92?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):a===8232||a===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(isNewLine(a)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(types$1.string,t)};var INVALID_TEMPLATE_ESCAPE_ERROR={};pp.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===INVALID_TEMPLATE_ESCAPE_ERROR)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};pp.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw INVALID_TEMPLATE_ESCAPE_ERROR;this.raise(e,t)};pp.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===types$1.template||this.type===types$1.invalidTemplate)?r===36?(this.pos+=2,this.finishToken(types$1.dollarBraceL)):(++this.pos,this.finishToken(types$1.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(types$1.template,e));if(r===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(isNewLine(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
@@ -214,7 +214,7 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function
|
|
|
214
214
|
`)}function genCssVariables(e){const t=e.dark?2:1,r=e.dark?1:2,a=[];for(const[o,u]of Object.entries(e.colors)){const d=parseColor(u);a.push(`--v-theme-${o}: ${d.r},${d.g},${d.b}`),o.startsWith("on-")||a.push(`--v-theme-${o}-overlay-multiplier: ${getLuma(u)>.18?t:r}`)}for(const[o,u]of Object.entries(e.variables)){const d=typeof u=="string"&&u.startsWith("#")?parseColor(u):void 0,f=d?`${d.r}, ${d.g}, ${d.b}`:void 0;a.push(`--v-${o}: ${f??u}`)}return a}function useResizeObserver(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const r=ref$1(),a=ref$1();if(IN_BROWSER){const o=new ResizeObserver(u=>{e==null||e(u,o),u.length&&(t==="content"?a.value=u[0].contentRect:a.value=u[0].target.getBoundingClientRect())});onBeforeUnmount(()=>{o.disconnect()}),watch(r,(u,d)=>{d&&(o.unobserve(refElement(d)),a.value=void 0),u&&o.observe(refElement(u))},{flush:"post"})}return{resizeRef:r,contentRect:readonly(a)}}const VuetifyLayoutKey=Symbol.for("vuetify:layout"),VuetifyLayoutItemKey=Symbol.for("vuetify:layout-item"),ROOT_ZINDEX=1e3,makeLayoutProps=propsFactory({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),makeLayoutItemProps=propsFactory({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function useLayout(){const e=inject$1(VuetifyLayoutKey);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function useLayoutItem(e){const t=inject$1(VuetifyLayoutKey);if(!t)throw new Error("[Vuetify] Could not find injected layout");const r=e.id??`layout-item-${getUid()}`,a=getCurrentInstance("useLayoutItem");provide(VuetifyLayoutItemKey,{id:r});const o=shallowRef(!1);onDeactivated(()=>o.value=!0),onActivated(()=>o.value=!1);const{layoutItemStyles:u,layoutItemScrimStyles:d}=t.register(a,{...e,active:computed(()=>o.value?!1:e.active.value),id:r});return onBeforeUnmount(()=>t.unregister(r)),{layoutItemStyles:u,layoutRect:t.layoutRect,layoutItemScrimStyles:d}}const generateLayers=(e,t,r,a)=>{let o={top:0,left:0,right:0,bottom:0};const u=[{id:"",layer:{...o}}];for(const d of e){const f=t.get(d),g=r.get(d),E=a.get(d);if(!f||!g||!E)continue;const S={...o,[f.value]:parseInt(o[f.value],10)+(E.value?parseInt(g.value,10):0)};u.push({id:d,layer:S}),o=S}return u};function createLayout(e){const t=inject$1(VuetifyLayoutKey,null),r=computed(()=>t?t.rootZIndex.value-100:ROOT_ZINDEX),a=ref$1([]),o=reactive(new Map),u=reactive(new Map),d=reactive(new Map),f=reactive(new Map),g=reactive(new Map),{resizeRef:E,contentRect:S}=useResizeObserver(),b=computed(()=>{const D=new Map,k=e.overlaps??[];for(const P of k.filter(L=>L.includes(":"))){const[L,F]=P.split(":");if(!a.value.includes(L)||!a.value.includes(F))continue;const B=o.get(L),$=o.get(F),U=u.get(L),z=u.get(F);!B||!$||!U||!z||(D.set(F,{position:B.value,amount:parseInt(U.value,10)}),D.set(L,{position:$.value,amount:-parseInt(z.value,10)}))}return D}),v=computed(()=>{const D=[...new Set([...d.values()].map(P=>P.value))].sort((P,L)=>P-L),k=[];for(const P of D){const L=a.value.filter(F=>{var B;return((B=d.get(F))==null?void 0:B.value)===P});k.push(...L)}return generateLayers(k,o,u,f)}),y=computed(()=>!Array.from(g.values()).some(D=>D.value)),T=computed(()=>v.value[v.value.length-1].layer),C=computed(()=>({"--v-layout-left":convertToUnit(T.value.left),"--v-layout-right":convertToUnit(T.value.right),"--v-layout-top":convertToUnit(T.value.top),"--v-layout-bottom":convertToUnit(T.value.bottom),...y.value?void 0:{transition:"none"}})),R=computed(()=>v.value.slice(1).map((D,k)=>{let{id:P}=D;const{layer:L}=v.value[k],F=u.get(P),B=o.get(P);return{id:P,...L,size:Number(F.value),position:B.value}})),A=D=>R.value.find(k=>k.id===D),N=getCurrentInstance("createLayout"),I=shallowRef(!1);onMounted(()=>{I.value=!0}),provide(VuetifyLayoutKey,{register:(D,k)=>{let{id:P,order:L,position:F,layoutSize:B,elementSize:$,active:U,disableTransitions:z,absolute:K}=k;d.set(P,L),o.set(P,F),u.set(P,B),f.set(P,U),z&&g.set(P,z);const Y=findChildrenWithProvide(VuetifyLayoutItemKey,N==null?void 0:N.vnode).indexOf(D);Y>-1?a.value.splice(Y,0,P):a.value.push(P);const G=computed(()=>R.value.findIndex(te=>te.id===P)),j=computed(()=>r.value+v.value.length*2-G.value*2),ne=computed(()=>{const te=F.value==="left"||F.value==="right",ue=F.value==="right",ge=F.value==="bottom",Ee={[F.value]:0,zIndex:j.value,transform:`translate${te?"X":"Y"}(${(U.value?0:-110)*(ue||ge?-1:1)}%)`,position:K.value||r.value!==ROOT_ZINDEX?"absolute":"fixed",...y.value?void 0:{transition:"none"}};if(!I.value)return Ee;const ae=R.value[G.value];if(!ae)throw new Error(`[Vuetify] Could not find layout item "${P}"`);const ee=b.value.get(P);return ee&&(ae[ee.position]+=ee.amount),{...Ee,height:te?`calc(100% - ${ae.top}px - ${ae.bottom}px)`:$.value?`${$.value}px`:void 0,left:ue?void 0:`${ae.left}px`,right:ue?`${ae.right}px`:void 0,top:F.value!=="bottom"?`${ae.top}px`:void 0,bottom:F.value!=="top"?`${ae.bottom}px`:void 0,width:te?$.value?`${$.value}px`:void 0:`calc(100% - ${ae.left}px - ${ae.right}px)`}}),ie=computed(()=>({zIndex:j.value-1}));return{layoutItemStyles:ne,layoutItemScrimStyles:ie,zIndex:j}},unregister:D=>{d.delete(D),o.delete(D),u.delete(D),f.delete(D),g.delete(D),a.value=a.value.filter(k=>k!==D)},mainRect:T,mainStyles:C,getLayoutItem:A,items:R,layoutRect:S,rootZIndex:r});const O=computed(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),x=computed(()=>({zIndex:t?r.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:O,layoutStyles:x,getLayoutItem:A,items:R,layoutRect:S,layoutRef:E}}function createVuetify(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:t,...r}=e,a=mergeDeep(t,r),{aliases:o={},components:u={},directives:d={}}=a,f=createDefaults(a.defaults),g=createDisplay(a.display,a.ssr),E=createTheme(a.theme),S=createIcons(a.icons),b=createLocale(a.locale),v=createDate(a.date,b);return{install:T=>{for(const C in d)T.directive(C,d[C]);for(const C in u)T.component(C,u[C]);for(const C in o)T.component(C,defineComponent({...o[C],name:C,aliasName:o[C].name}));if(E.install(T),T.provide(DefaultsSymbol,f),T.provide(DisplaySymbol,g),T.provide(ThemeSymbol,E),T.provide(IconSymbol,S),T.provide(LocaleSymbol,b),T.provide(DateOptionsSymbol,v.options),T.provide(DateAdapterSymbol,v.instance),IN_BROWSER&&a.ssr)if(T.$nuxt)T.$nuxt.hook("app:suspense:resolve",()=>{g.update()});else{const{mount:C}=T;T.mount=function(){const R=C(...arguments);return nextTick$1(()=>g.update()),T.mount=C,R}}getUid.reset(),T.mixin({computed:{$vuetify(){return reactive({defaults:inject.call(this,DefaultsSymbol),display:inject.call(this,DisplaySymbol),theme:inject.call(this,ThemeSymbol),icons:inject.call(this,IconSymbol),locale:inject.call(this,LocaleSymbol),date:inject.call(this,DateAdapterSymbol)})}}})},defaults:f,display:g,theme:E,icons:S,locale:b,date:v}}const version="3.4.10";createVuetify.version=version;function inject(e){var a,o;const t=this.$,r=((a=t.parent)==null?void 0:a.provides)??((o=t.vnode.appContext)==null?void 0:o.provides);if(r&&e in r)return r[e]}const makeVAppProps=propsFactory({...makeComponentProps(),...makeLayoutProps({fullHeight:!0}),...makeThemeProps()},"VApp"),VApp=genericComponent()({name:"VApp",props:makeVAppProps(),setup(e,t){let{slots:r}=t;const a=provideTheme(e),{layoutClasses:o,getLayoutItem:u,items:d,layoutRef:f}=createLayout(e),{rtlClasses:g}=useRtl();return useRender(()=>{var E;return createVNode("div",{ref:f,class:["v-application",a.themeClasses.value,o.value,g.value,e.class],style:[e.style]},[createVNode("div",{class:"v-application__wrap"},[(E=r.default)==null?void 0:E.call(r)])])}),{getLayoutItem:u,items:d,theme:a}}}),makeTagProps=propsFactory({tag:{type:String,default:"div"}},"tag"),makeVToolbarTitleProps=propsFactory({text:String,...makeComponentProps(),...makeTagProps()},"VToolbarTitle"),VToolbarTitle=genericComponent()({name:"VToolbarTitle",props:makeVToolbarTitleProps(),setup(e,t){let{slots:r}=t;return useRender(()=>{const a=!!(r.default||r.text||e.text);return createVNode(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var o;return[a&&createVNode("div",{class:"v-toolbar-title__placeholder"},[r.text?r.text():e.text,(o=r.default)==null?void 0:o.call(r)])]}})}),{}}}),makeTransitionProps$1=propsFactory({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function createCssTransition(e,t,r){return genericComponent()({name:e,props:makeTransitionProps$1({mode:r,origin:t}),setup(a,o){let{slots:u}=o;const d={onBeforeEnter(f){a.origin&&(f.style.transformOrigin=a.origin)},onLeave(f){if(a.leaveAbsolute){const{offsetTop:g,offsetLeft:E,offsetWidth:S,offsetHeight:b}=f;f._transitionInitialStyles={position:f.style.position,top:f.style.top,left:f.style.left,width:f.style.width,height:f.style.height},f.style.position="absolute",f.style.top=`${g}px`,f.style.left=`${E}px`,f.style.width=`${S}px`,f.style.height=`${b}px`}a.hideOnLeave&&f.style.setProperty("display","none","important")},onAfterLeave(f){if(a.leaveAbsolute&&(f!=null&&f._transitionInitialStyles)){const{position:g,top:E,left:S,width:b,height:v}=f._transitionInitialStyles;delete f._transitionInitialStyles,f.style.position=g||"",f.style.top=E||"",f.style.left=S||"",f.style.width=b||"",f.style.height=v||""}}};return()=>{const f=a.group?TransitionGroup:Transition$1;return h(f,{name:a.disabled?"":e,css:!a.disabled,...a.group?void 0:{mode:a.mode},...a.disabled?{}:d},u.default)}}})}function createJavascriptTransition(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return genericComponent()({name:e,props:{mode:{type:String,default:r},disabled:Boolean},setup(a,o){let{slots:u}=o;return()=>h(Transition$1,{name:a.disabled?"":e,css:!a.disabled,...a.disabled?{}:t},u.default)}})}function ExpandTransitionGenerator(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",a=camelize(`offset-${r}`);return{onBeforeEnter(d){d._parent=d.parentNode,d._initialStyle={transition:d.style.transition,overflow:d.style.overflow,[r]:d.style[r]}},onEnter(d){const f=d._initialStyle;d.style.setProperty("transition","none","important"),d.style.overflow="hidden";const g=`${d[a]}px`;d.style[r]="0",d.offsetHeight,d.style.transition=f.transition,e&&d._parent&&d._parent.classList.add(e),requestAnimationFrame(()=>{d.style[r]=g})},onAfterEnter:u,onEnterCancelled:u,onLeave(d){d._initialStyle={transition:"",overflow:d.style.overflow,[r]:d.style[r]},d.style.overflow="hidden",d.style[r]=`${d[a]}px`,d.offsetHeight,requestAnimationFrame(()=>d.style[r]="0")},onAfterLeave:o,onLeaveCancelled:o};function o(d){e&&d._parent&&d._parent.classList.remove(e),u(d)}function u(d){const f=d._initialStyle[r];d.style.overflow=d._initialStyle.overflow,f!=null&&(d.style[r]=f),delete d._initialStyle}}const makeVDialogTransitionProps=propsFactory({target:[Object,Array]},"v-dialog-transition"),VDialogTransition=genericComponent()({name:"VDialogTransition",props:makeVDialogTransitionProps(),setup(e,t){let{slots:r}=t;const a={onBeforeEnter(o){o.style.pointerEvents="none",o.style.visibility="hidden"},async onEnter(o,u){var v;await new Promise(y=>requestAnimationFrame(y)),await new Promise(y=>requestAnimationFrame(y)),o.style.visibility="";const{x:d,y:f,sx:g,sy:E,speed:S}=getDimensions(e.target,o),b=animate(o,[{transform:`translate(${d}px, ${f}px) scale(${g}, ${E})`,opacity:0},{}],{duration:225*S,easing:deceleratedEasing});(v=getChildren(o))==null||v.forEach(y=>{animate(y,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*S,easing:standardEasing})}),b.finished.then(()=>u())},onAfterEnter(o){o.style.removeProperty("pointer-events")},onBeforeLeave(o){o.style.pointerEvents="none"},async onLeave(o,u){var v;await new Promise(y=>requestAnimationFrame(y));const{x:d,y:f,sx:g,sy:E,speed:S}=getDimensions(e.target,o);animate(o,[{},{transform:`translate(${d}px, ${f}px) scale(${g}, ${E})`,opacity:0}],{duration:125*S,easing:acceleratedEasing}).finished.then(()=>u()),(v=getChildren(o))==null||v.forEach(y=>{animate(y,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*S,easing:standardEasing})})},onAfterLeave(o){o.style.removeProperty("pointer-events")}};return()=>e.target?createVNode(Transition$1,mergeProps({name:"dialog-transition"},a,{css:!1}),r):createVNode(Transition$1,{name:"dialog-transition"},r)}});function getChildren(e){var r;const t=(r=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:r.children;return t&&[...t]}function getDimensions(e,t){const r=getTargetBox(e),a=nullifyTransforms(t),[o,u]=getComputedStyle(t).transformOrigin.split(" ").map(A=>parseFloat(A)),[d,f]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let g=r.left+r.width/2;d==="left"||f==="left"?g-=r.width/2:(d==="right"||f==="right")&&(g+=r.width/2);let E=r.top+r.height/2;d==="top"||f==="top"?E-=r.height/2:(d==="bottom"||f==="bottom")&&(E+=r.height/2);const S=r.width/a.width,b=r.height/a.height,v=Math.max(1,S,b),y=S/v||0,T=b/v||0,C=a.width*a.height/(window.innerWidth*window.innerHeight),R=C>.12?Math.min(1.5,(C-.12)*10+1):1;return{x:g-(o+a.left),y:E-(u+a.top),sx:y,sy:T,speed:R}}const VFabTransition=createCssTransition("fab-transition","center center","out-in"),VDialogBottomTransition=createCssTransition("dialog-bottom-transition"),VDialogTopTransition=createCssTransition("dialog-top-transition"),VFadeTransition=createCssTransition("fade-transition"),VScaleTransition=createCssTransition("scale-transition"),VScrollXTransition=createCssTransition("scroll-x-transition"),VScrollXReverseTransition=createCssTransition("scroll-x-reverse-transition"),VScrollYTransition=createCssTransition("scroll-y-transition"),VScrollYReverseTransition=createCssTransition("scroll-y-reverse-transition"),VSlideXTransition=createCssTransition("slide-x-transition"),VSlideXReverseTransition=createCssTransition("slide-x-reverse-transition"),VSlideYTransition=createCssTransition("slide-y-transition"),VSlideYReverseTransition=createCssTransition("slide-y-reverse-transition"),VExpandTransition=createJavascriptTransition("expand-transition",ExpandTransitionGenerator()),VExpandXTransition=createJavascriptTransition("expand-x-transition",ExpandTransitionGenerator("",!0)),makeVDefaultsProviderProps=propsFactory({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),VDefaultsProvider=genericComponent(!1)({name:"VDefaultsProvider",props:makeVDefaultsProviderProps(),setup(e,t){let{slots:r}=t;const{defaults:a,disabled:o,reset:u,root:d,scoped:f}=toRefs(e);return provideDefaults(a,{reset:u,root:d,scoped:f,disabled:o}),()=>{var g;return(g=r.default)==null?void 0:g.call(r)}}}),makeDimensionProps=propsFactory({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function useDimension(e){return{dimensionStyles:computed(()=>({height:convertToUnit(e.height),maxHeight:convertToUnit(e.maxHeight),maxWidth:convertToUnit(e.maxWidth),minHeight:convertToUnit(e.minHeight),minWidth:convertToUnit(e.minWidth),width:convertToUnit(e.width)}))}}function useAspectStyles(e){return{aspectStyles:computed(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const makeVResponsiveProps=propsFactory({aspectRatio:[String,Number],contentClass:String,inline:Boolean,...makeComponentProps(),...makeDimensionProps()},"VResponsive"),VResponsive=genericComponent()({name:"VResponsive",props:makeVResponsiveProps(),setup(e,t){let{slots:r}=t;const{aspectStyles:a}=useAspectStyles(e),{dimensionStyles:o}=useDimension(e);return useRender(()=>{var u;return createVNode("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[o.value,e.style]},[createVNode("div",{class:"v-responsive__sizer",style:a.value},null),(u=r.additional)==null?void 0:u.call(r),r.default&&createVNode("div",{class:["v-responsive__content",e.contentClass]},[r.default()])])}),{}}}),makeTransitionProps=propsFactory({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),MaybeTransition=(e,t)=>{let{slots:r}=t;const{transition:a,disabled:o,...u}=e,{component:d=Transition$1,...f}=typeof a=="object"?a:{};return h(d,mergeProps(typeof a=="string"?{name:o?"":a}:f,u,{disabled:o}),r)};function mounted$5(e,t){if(!SUPPORTS_INTERSECTION)return;const r=t.modifiers||{},a=t.value,{handler:o,options:u}=typeof a=="object"?a:{handler:a,options:{}},d=new IntersectionObserver(function(){var b;let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g=arguments.length>1?arguments[1]:void 0;const E=(b=e._observe)==null?void 0:b[t.instance.$.uid];if(!E)return;const S=f.some(v=>v.isIntersecting);o&&(!r.quiet||E.init)&&(!r.once||S||E.init)&&o(S,f,g),S&&r.once?unmounted$5(e,t):E.init=!0},u);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:d},d.observe(e)}function unmounted$5(e,t){var a;const r=(a=e._observe)==null?void 0:a[t.instance.$.uid];r&&(r.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const Intersect={mounted:mounted$5,unmounted:unmounted$5},makeVImgProps=propsFactory({alt:String,cover:Boolean,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...makeVResponsiveProps(),...makeComponentProps(),...makeTransitionProps()},"VImg"),VImg=genericComponent()({name:"VImg",directives:{intersect:Intersect},props:makeVImgProps(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:r,slots:a}=t;const o=getCurrentInstance("VImg"),u=shallowRef(""),d=ref$1(),f=shallowRef(e.eager?"loading":"idle"),g=shallowRef(),E=shallowRef(),S=computed(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),b=computed(()=>S.value.aspect||g.value/E.value||0);watch(()=>e.src,()=>{v(f.value!=="idle")}),watch(b,(L,F)=>{!L&&F&&d.value&&A(d.value)}),onBeforeMount(()=>v());function v(L){if(!(e.eager&&L)&&!(SUPPORTS_INTERSECTION&&!L&&!e.eager)){if(f.value="loading",S.value.lazySrc){const F=new Image;F.src=S.value.lazySrc,A(F,null)}S.value.src&&nextTick$1(()=>{var F;r("loadstart",((F=d.value)==null?void 0:F.currentSrc)||S.value.src),setTimeout(()=>{var B;if(!o.isUnmounted)if((B=d.value)!=null&&B.complete){if(d.value.naturalWidth||T(),f.value==="error")return;b.value||A(d.value,null),f.value==="loading"&&y()}else b.value||A(d.value),C()})})}}function y(){var L;o.isUnmounted||(C(),A(d.value),f.value="loaded",r("load",((L=d.value)==null?void 0:L.currentSrc)||S.value.src))}function T(){var L;o.isUnmounted||(f.value="error",r("error",((L=d.value)==null?void 0:L.currentSrc)||S.value.src))}function C(){const L=d.value;L&&(u.value=L.currentSrc||L.src)}let R=-1;onBeforeUnmount(()=>{clearTimeout(R)});function A(L){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const B=()=>{if(clearTimeout(R),o.isUnmounted)return;const{naturalHeight:$,naturalWidth:U}=L;$||U?(g.value=U,E.value=$):!L.complete&&f.value==="loading"&&F!=null?R=window.setTimeout(B,F):(L.currentSrc.endsWith(".svg")||L.currentSrc.startsWith("data:image/svg+xml"))&&(g.value=1,E.value=1)};B()}const N=computed(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),I=()=>{var B;if(!S.value.src||f.value==="idle")return null;const L=createVNode("img",{class:["v-img__img",N.value],style:{objectPosition:e.position},src:S.value.src,srcset:S.value.srcset,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:d,onLoad:y,onError:T},null),F=(B=a.sources)==null?void 0:B.call(a);return createVNode(MaybeTransition,{transition:e.transition,appear:!0},{default:()=>[withDirectives(F?createVNode("picture",{class:"v-img__picture"},[F,L]):L,[[vShow,f.value==="loaded"]])]})},O=()=>createVNode(MaybeTransition,{transition:e.transition},{default:()=>[S.value.lazySrc&&f.value!=="loaded"&&createVNode("img",{class:["v-img__img","v-img__img--preload",N.value],style:{objectPosition:e.position},src:S.value.lazySrc,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),x=()=>a.placeholder?createVNode(MaybeTransition,{transition:e.transition,appear:!0},{default:()=>[(f.value==="loading"||f.value==="error"&&!a.error)&&createVNode("div",{class:"v-img__placeholder"},[a.placeholder()])]}):null,D=()=>a.error?createVNode(MaybeTransition,{transition:e.transition,appear:!0},{default:()=>[f.value==="error"&&createVNode("div",{class:"v-img__error"},[a.error()])]}):null,k=()=>e.gradient?createVNode("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,P=shallowRef(!1);{const L=watch(b,F=>{F&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{P.value=!0})}),L())})}return useRender(()=>{const L=VResponsive.filterProps(e);return withDirectives(createVNode(VResponsive,mergeProps({class:["v-img",{"v-img--booting":!P.value},e.class],style:[{width:convertToUnit(e.width==="auto"?g.value:e.width)},e.style]},L,{aspectRatio:b.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>createVNode(Fragment,null,[createVNode(I,null,null),createVNode(O,null,null),createVNode(k,null,null),createVNode(x,null,null),createVNode(D,null,null)]),default:a.default}),[[resolveDirective("intersect"),{handler:v,options:e.options},null,{once:!0}]])}),{currentSrc:u,image:d,state:f,naturalWidth:g,naturalHeight:E}}}),makeBorderProps=propsFactory({border:[Boolean,Number,String]},"border");function useBorder(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName();return{borderClasses:computed(()=>{const a=isRef(e)?e.value:e.border,o=[];if(a===!0||a==="")o.push(`${t}--border`);else if(typeof a=="string"||a===0)for(const u of String(a).split(" "))o.push(`border-${u}`);return o})}}function useColor(e){return destructComputed(()=>{const t=[],r={};if(e.value.background)if(isCssColor(e.value.background)){if(r.backgroundColor=e.value.background,!e.value.text&&isParsableColor(e.value.background)){const a=parseColor(e.value.background);if(a.a==null||a.a===1){const o=getForeground(a);r.color=o,r.caretColor=o}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(isCssColor(e.value.text)?(r.color=e.value.text,r.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:r}})}function useTextColor(e,t){const r=computed(()=>({text:isRef(e)?e.value:t?e[t]:null})),{colorClasses:a,colorStyles:o}=useColor(r);return{textColorClasses:a,textColorStyles:o}}function useBackgroundColor(e,t){const r=computed(()=>({background:isRef(e)?e.value:t?e[t]:null})),{colorClasses:a,colorStyles:o}=useColor(r);return{backgroundColorClasses:a,backgroundColorStyles:o}}const makeElevationProps=propsFactory({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function useElevation(e){return{elevationClasses:computed(()=>{const r=isRef(e)?e.value:e.elevation,a=[];return r==null||a.push(`elevation-${r}`),a})}}const makeRoundedProps=propsFactory({rounded:{type:[Boolean,Number,String],default:void 0}},"rounded");function useRounded(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName();return{roundedClasses:computed(()=>{const a=isRef(e)?e.value:e.rounded,o=[];if(a===!0||a==="")o.push(`${t}--rounded`);else if(typeof a=="string"||a===0)for(const u of String(a).split(" "))o.push(`rounded-${u}`);return o})}}const allowedDensities$1=[null,"prominent","default","comfortable","compact"],makeVToolbarProps=propsFactory({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>allowedDensities$1.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...makeBorderProps(),...makeComponentProps(),...makeElevationProps(),...makeRoundedProps(),...makeTagProps({tag:"header"}),...makeThemeProps()},"VToolbar"),VToolbar=genericComponent()({name:"VToolbar",props:makeVToolbarProps(),setup(e,t){var y;let{slots:r}=t;const{backgroundColorClasses:a,backgroundColorStyles:o}=useBackgroundColor(toRef(e,"color")),{borderClasses:u}=useBorder(e),{elevationClasses:d}=useElevation(e),{roundedClasses:f}=useRounded(e),{themeClasses:g}=provideTheme(e),{rtlClasses:E}=useRtl(),S=shallowRef(!!(e.extended||(y=r.extension)!=null&&y.call(r))),b=computed(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),v=computed(()=>S.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return provideDefaults({VBtn:{variant:"text"}}),useRender(()=>{var A;const T=!!(e.title||r.title),C=!!(r.image||e.image),R=(A=r.extension)==null?void 0:A.call(r);return S.value=!!(e.extended||R),createVNode(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},a.value,u.value,d.value,f.value,g.value,E.value,e.class],style:[o.value,e.style]},{default:()=>[C&&createVNode("div",{key:"image",class:"v-toolbar__image"},[r.image?createVNode(VDefaultsProvider,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},r.image):createVNode(VImg,{key:"image-img",cover:!0,src:e.image},null)]),createVNode(VDefaultsProvider,{defaults:{VTabs:{height:convertToUnit(b.value)}}},{default:()=>{var N,I,O;return[createVNode("div",{class:"v-toolbar__content",style:{height:convertToUnit(b.value)}},[r.prepend&&createVNode("div",{class:"v-toolbar__prepend"},[(N=r.prepend)==null?void 0:N.call(r)]),T&&createVNode(VToolbarTitle,{key:"title",text:e.title},{text:r.title}),(I=r.default)==null?void 0:I.call(r),r.append&&createVNode("div",{class:"v-toolbar__append"},[(O=r.append)==null?void 0:O.call(r)])])]}}),createVNode(VDefaultsProvider,{defaults:{VTabs:{height:convertToUnit(v.value)}}},{default:()=>[createVNode(VExpandTransition,null,{default:()=>[S.value&&createVNode("div",{class:"v-toolbar__extension",style:{height:convertToUnit(v.value)}},[R])]})]})]})}),{contentHeight:b,extensionHeight:v}}}),makeScrollProps=propsFactory({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function useScroll(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:r}=t;let a=0;const o=ref$1(null),u=shallowRef(0),d=shallowRef(0),f=shallowRef(0),g=shallowRef(!1),E=shallowRef(!1),S=computed(()=>Number(e.scrollThreshold)),b=computed(()=>clamp((S.value-u.value)/S.value||0)),v=()=>{const y=o.value;!y||r&&!r.value||(a=u.value,u.value="window"in y?y.pageYOffset:y.scrollTop,E.value=u.value<a,f.value=Math.abs(u.value-S.value))};return watch(E,()=>{d.value=d.value||u.value}),watch(g,()=>{d.value=0}),onMounted(()=>{watch(()=>e.scrollTarget,y=>{var C;const T=y?document.querySelector(y):window;T&&T!==o.value&&((C=o.value)==null||C.removeEventListener("scroll",v),o.value=T,o.value.addEventListener("scroll",v,{passive:!0}))},{immediate:!0})}),onBeforeUnmount(()=>{var y;(y=o.value)==null||y.removeEventListener("scroll",v)}),r&&watch(r,v,{immediate:!0}),{scrollThreshold:S,currentScroll:u,currentThreshold:f,isScrollActive:g,scrollRatio:b,isScrollingUp:E,savedScroll:d}}function useSsrBoot(){const e=shallowRef(!1);return onMounted(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:computed(()=>e.value?void 0:{transition:"none !important"}),isBooted:readonly(e)}}const makeVAppBarProps=propsFactory({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...makeVToolbarProps(),...makeLayoutItemProps(),...makeScrollProps(),height:{type:[Number,String],default:64}},"VAppBar"),VAppBar=genericComponent()({name:"VAppBar",props:makeVAppBarProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const a=ref$1(),o=useProxiedModel(e,"modelValue"),u=computed(()=>{var N;const A=new Set(((N=e.scrollBehavior)==null?void 0:N.split(" "))??[]);return{hide:A.has("hide"),inverted:A.has("inverted"),collapse:A.has("collapse"),elevate:A.has("elevate"),fadeImage:A.has("fade-image")}}),d=computed(()=>{const A=u.value;return A.hide||A.inverted||A.collapse||A.elevate||A.fadeImage||!o.value}),{currentScroll:f,scrollThreshold:g,isScrollingUp:E,scrollRatio:S}=useScroll(e,{canScroll:d}),b=computed(()=>e.collapse||u.value.collapse&&(u.value.inverted?S.value>0:S.value===0)),v=computed(()=>e.flat||u.value.elevate&&(u.value.inverted?f.value>0:f.value===0)),y=computed(()=>u.value.fadeImage?u.value.inverted?1-S.value:S.value:void 0),T=computed(()=>{var I,O;if(u.value.hide&&u.value.inverted)return 0;const A=((I=a.value)==null?void 0:I.contentHeight)??0,N=((O=a.value)==null?void 0:O.extensionHeight)??0;return A+N});useToggleScope(computed(()=>!!e.scrollBehavior),()=>{watchEffect(()=>{u.value.hide?u.value.inverted?o.value=f.value>g.value:o.value=E.value||f.value<g.value:o.value=!0})});const{ssrBootStyles:C}=useSsrBoot(),{layoutItemStyles:R}=useLayoutItem({id:e.name,order:computed(()=>parseInt(e.order,10)),position:toRef(e,"location"),layoutSize:T,elementSize:shallowRef(void 0),active:o,absolute:toRef(e,"absolute")});return useRender(()=>{const A=VToolbar.filterProps(e);return createVNode(VToolbar,mergeProps({ref:a,class:["v-app-bar",{"v-app-bar--bottom":e.location==="bottom"},e.class],style:[{...R.value,"--v-toolbar-image-opacity":y.value,height:void 0,...C.value},e.style]},A,{collapse:b.value,flat:v.value}),r)}),{}}}),allowedDensities=[null,"default","comfortable","compact"],makeDensityProps=propsFactory({density:{type:String,default:"default",validator:e=>allowedDensities.includes(e)}},"density");function useDensity(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName();return{densityClasses:computed(()=>`${t}--density-${e.density}`)}}const allowedVariants$2=["elevated","flat","tonal","outlined","text","plain"];function genOverlays(e,t){return createVNode(Fragment,null,[e&&createVNode("span",{key:"overlay",class:`${t}__overlay`},null),createVNode("span",{key:"underlay",class:`${t}__underlay`},null)])}const makeVariantProps=propsFactory({color:String,variant:{type:String,default:"elevated",validator:e=>allowedVariants$2.includes(e)}},"variant");function useVariant(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName();const r=computed(()=>{const{variant:u}=unref(e);return`${t}--variant-${u}`}),{colorClasses:a,colorStyles:o}=useColor(computed(()=>{const{variant:u,color:d}=unref(e);return{[["elevated","flat"].includes(u)?"background":"text"]:d}}));return{colorClasses:a,colorStyles:o,variantClasses:r}}const makeVBtnGroupProps=propsFactory({divided:Boolean,...makeBorderProps(),...makeComponentProps(),...makeDensityProps(),...makeElevationProps(),...makeRoundedProps(),...makeTagProps(),...makeThemeProps(),...makeVariantProps()},"VBtnGroup"),VBtnGroup=genericComponent()({name:"VBtnGroup",props:makeVBtnGroupProps(),setup(e,t){let{slots:r}=t;const{themeClasses:a}=provideTheme(e),{densityClasses:o}=useDensity(e),{borderClasses:u}=useBorder(e),{elevationClasses:d}=useElevation(e),{roundedClasses:f}=useRounded(e);provideDefaults({VBtn:{height:"auto",color:toRef(e,"color"),density:toRef(e,"density"),flat:!0,variant:toRef(e,"variant")}}),useRender(()=>createVNode(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},a.value,u.value,o.value,d.value,f.value,e.class],style:e.style},r))}}),makeGroupProps=propsFactory({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),makeGroupItemProps=propsFactory({value:null,disabled:Boolean,selectedClass:String},"group-item");function useGroupItem(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const a=getCurrentInstance("useGroupItem");if(!a)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const o=getUid();provide(Symbol.for(`${t.description}:id`),o);const u=inject$1(t,null);if(!u){if(!r)return u;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const d=toRef(e,"value"),f=computed(()=>!!(u.disabled.value||e.disabled));u.register({id:o,value:d,disabled:f},a),onBeforeUnmount(()=>{u.unregister(o)});const g=computed(()=>u.isSelected(o)),E=computed(()=>g.value&&[u.selectedClass.value,e.selectedClass]);return watch(g,S=>{a.emit("group:selected",{value:S})}),{id:o,isSelected:g,toggle:()=>u.select(o,!g.value),select:S=>u.select(o,S),selectedClass:E,value:d,disabled:f,group:u}}function useGroup(e,t){let r=!1;const a=reactive([]),o=useProxiedModel(e,"modelValue",[],v=>v==null?[]:getIds(a,wrapInArray(v)),v=>{const y=getValues(a,v);return e.multiple?y:y[0]}),u=getCurrentInstance("useGroup");function d(v,y){const T=v,C=Symbol.for(`${t.description}:id`),A=findChildrenWithProvide(C,u==null?void 0:u.vnode).indexOf(y);A>-1?a.splice(A,0,T):a.push(T)}function f(v){if(r)return;g();const y=a.findIndex(T=>T.id===v);a.splice(y,1)}function g(){const v=a.find(y=>!y.disabled);v&&e.mandatory==="force"&&!o.value.length&&(o.value=[v.id])}onMounted(()=>{g()}),onBeforeUnmount(()=>{r=!0});function E(v,y){const T=a.find(C=>C.id===v);if(!(y&&(T!=null&&T.disabled)))if(e.multiple){const C=o.value.slice(),R=C.findIndex(N=>N===v),A=~R;if(y=y??!A,A&&e.mandatory&&C.length<=1||!A&&e.max!=null&&C.length+1>e.max)return;R<0&&y?C.push(v):R>=0&&!y&&C.splice(R,1),o.value=C}else{const C=o.value.includes(v);if(e.mandatory&&C)return;o.value=y??!C?[v]:[]}}function S(v){if(e.multiple,o.value.length){const y=o.value[0],T=a.findIndex(A=>A.id===y);let C=(T+v)%a.length,R=a[C];for(;R.disabled&&C!==T;)C=(C+v)%a.length,R=a[C];if(R.disabled)return;o.value=[a[C].id]}else{const y=a.find(T=>!T.disabled);y&&(o.value=[y.id])}}const b={register:d,unregister:f,selected:o,select:E,disabled:toRef(e,"disabled"),prev:()=>S(a.length-1),next:()=>S(1),isSelected:v=>o.value.includes(v),selectedClass:computed(()=>e.selectedClass),items:computed(()=>a),getItemIndex:v=>getItemIndex(a,v)};return provide(t,b),b}function getItemIndex(e,t){const r=getIds(e,[t]);return r.length?e.findIndex(a=>a.id===r[0]):-1}function getIds(e,t){const r=[];return t.forEach(a=>{const o=e.find(d=>deepEqual(a,d.value)),u=e[a];(o==null?void 0:o.value)!=null?r.push(o.id):u!=null&&r.push(u.id)}),r}function getValues(e,t){const r=[];return t.forEach(a=>{const o=e.findIndex(u=>u.id===a);if(~o){const u=e[o];r.push(u.value!=null?u.value:o)}}),r}const VBtnToggleSymbol=Symbol.for("vuetify:v-btn-toggle"),makeVBtnToggleProps=propsFactory({...makeVBtnGroupProps(),...makeGroupProps()},"VBtnToggle"),VBtnToggle=genericComponent()({name:"VBtnToggle",props:makeVBtnToggleProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const{isSelected:a,next:o,prev:u,select:d,selected:f}=useGroup(e,VBtnToggleSymbol);return useRender(()=>{const g=VBtnGroup.filterProps(e);return createVNode(VBtnGroup,mergeProps({class:["v-btn-toggle",e.class]},g,{style:e.style}),{default:()=>{var E;return[(E=r.default)==null?void 0:E.call(r,{isSelected:a,next:o,prev:u,select:d,selected:f})]}})}),{next:o,prev:u,select:d}}}),predefinedSizes=["x-small","small","default","large","x-large"],makeSizeProps=propsFactory({size:{type:[String,Number],default:"default"}},"size");function useSize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName();return destructComputed(()=>{let r,a;return includes(predefinedSizes,e.size)?r=`${t}--size-${e.size}`:e.size&&(a={width:convertToUnit(e.size),height:convertToUnit(e.size)}),{sizeClasses:r,sizeStyles:a}})}const makeVIconProps=propsFactory({color:String,start:Boolean,end:Boolean,icon:IconValue,...makeComponentProps(),...makeSizeProps(),...makeTagProps({tag:"i"}),...makeThemeProps()},"VIcon"),VIcon=genericComponent()({name:"VIcon",props:makeVIconProps(),setup(e,t){let{attrs:r,slots:a}=t;const o=ref$1(),{themeClasses:u}=provideTheme(e),{iconData:d}=useIcon(computed(()=>o.value||e.icon)),{sizeClasses:f}=useSize(e),{textColorClasses:g,textColorStyles:E}=useTextColor(toRef(e,"color"));return useRender(()=>{var b,v;const S=(b=a.default)==null?void 0:b.call(a);return S&&(o.value=(v=flattenFragments(S).filter(y=>y.type===Text&&y.children&&typeof y.children=="string")[0])==null?void 0:v.children),createVNode(d.value.component,{tag:e.tag,icon:d.value.icon,class:["v-icon","notranslate",u.value,f.value,g.value,{"v-icon--clickable":!!r.onClick,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[f.value?void 0:{fontSize:convertToUnit(e.size),height:convertToUnit(e.size),width:convertToUnit(e.size)},E.value,e.style],role:r.onClick?"button":void 0,"aria-hidden":!r.onClick},{default:()=>[S]})}),{}}});function useIntersectionObserver(e,t){const r=ref$1(),a=shallowRef(!1);if(SUPPORTS_INTERSECTION){const o=new IntersectionObserver(u=>{e==null||e(u,o),a.value=!!u.find(d=>d.isIntersecting)},t);onBeforeUnmount(()=>{o.disconnect()}),watch(r,(u,d)=>{d&&(o.unobserve(d),a.value=!1),u&&o.observe(u)},{flush:"post"})}return{intersectionRef:r,isIntersecting:a}}const makeVProgressCircularProps=propsFactory({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...makeComponentProps(),...makeSizeProps(),...makeTagProps({tag:"div"}),...makeThemeProps()},"VProgressCircular"),VProgressCircular=genericComponent()({name:"VProgressCircular",props:makeVProgressCircularProps(),setup(e,t){let{slots:r}=t;const a=20,o=2*Math.PI*a,u=ref$1(),{themeClasses:d}=provideTheme(e),{sizeClasses:f,sizeStyles:g}=useSize(e),{textColorClasses:E,textColorStyles:S}=useTextColor(toRef(e,"color")),{textColorClasses:b,textColorStyles:v}=useTextColor(toRef(e,"bgColor")),{intersectionRef:y,isIntersecting:T}=useIntersectionObserver(),{resizeRef:C,contentRect:R}=useResizeObserver(),A=computed(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),N=computed(()=>Number(e.width)),I=computed(()=>g.value?Number(e.size):R.value?R.value.width:Math.max(N.value,32)),O=computed(()=>a/(1-N.value/I.value)*2),x=computed(()=>N.value/I.value*O.value),D=computed(()=>convertToUnit((100-A.value)/100*o));return watchEffect(()=>{y.value=u.value,C.value=u.value}),useRender(()=>createVNode(e.tag,{ref:u,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":T.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},d.value,f.value,E.value,e.class],style:[g.value,S.value,e.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:A.value},{default:()=>[createVNode("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${O.value} ${O.value}`},[createVNode("circle",{class:["v-progress-circular__underlay",b.value],style:v.value,fill:"transparent",cx:"50%",cy:"50%",r:a,"stroke-width":x.value,"stroke-dasharray":o,"stroke-dashoffset":0},null),createVNode("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:a,"stroke-width":x.value,"stroke-dasharray":o,"stroke-dashoffset":D.value},null)]),r.default&&createVNode("div",{class:"v-progress-circular__content"},[r.default({value:A.value})])]})),{}}}),oppositeMap={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},makeLocationProps=propsFactory({location:String},"location");function useLocation(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2?arguments[2]:void 0;const{isRtl:a}=useRtl();return{locationStyles:computed(()=>{if(!e.location)return{};const{side:u,align:d}=parseAnchor(e.location.split(" ").length>1?e.location:`${e.location} center`,a.value);function f(E){return r?r(E):0}const g={};return u!=="center"&&(t?g[oppositeMap[u]]=`calc(100% - ${f(u)}px)`:g[u]=0),d!=="center"?t?g[oppositeMap[d]]=`calc(100% - ${f(d)}px)`:g[d]=0:(u==="center"?g.top=g.left="50%":g[{top:"left",bottom:"left",left:"top",right:"top"}[u]]="50%",g.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[u]),g})}}const makeVProgressLinearProps=propsFactory({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...makeComponentProps(),...makeLocationProps({location:"top"}),...makeRoundedProps(),...makeTagProps(),...makeThemeProps()},"VProgressLinear"),VProgressLinear=genericComponent()({name:"VProgressLinear",props:makeVProgressLinearProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const a=useProxiedModel(e,"modelValue"),{isRtl:o,rtlClasses:u}=useRtl(),{themeClasses:d}=provideTheme(e),{locationStyles:f}=useLocation(e),{textColorClasses:g,textColorStyles:E}=useTextColor(e,"color"),{backgroundColorClasses:S,backgroundColorStyles:b}=useBackgroundColor(computed(()=>e.bgColor||e.color)),{backgroundColorClasses:v,backgroundColorStyles:y}=useBackgroundColor(e,"color"),{roundedClasses:T}=useRounded(e),{intersectionRef:C,isIntersecting:R}=useIntersectionObserver(),A=computed(()=>parseInt(e.max,10)),N=computed(()=>parseInt(e.height,10)),I=computed(()=>parseFloat(e.bufferValue)/A.value*100),O=computed(()=>parseFloat(a.value)/A.value*100),x=computed(()=>o.value!==e.reverse),D=computed(()=>e.indeterminate?"fade-transition":"slide-x-transition"),k=computed(()=>e.bgOpacity==null?e.bgOpacity:parseFloat(e.bgOpacity));function P(L){if(!C.value)return;const{left:F,right:B,width:$}=C.value.getBoundingClientRect(),U=x.value?$-L.clientX+(B-$):L.clientX-F;a.value=Math.round(U/$*A.value)}return useRender(()=>createVNode(e.tag,{ref:C,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&R.value,"v-progress-linear--reverse":x.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},T.value,d.value,u.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?convertToUnit(N.value):0,"--v-progress-linear-height":convertToUnit(N.value),...f.value},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:O.value,onClick:e.clickable&&P},{default:()=>[e.stream&&createVNode("div",{key:"stream",class:["v-progress-linear__stream",g.value],style:{...E.value,[x.value?"left":"right"]:convertToUnit(-N.value),borderTop:`${convertToUnit(N.value/2)} dotted`,opacity:k.value,top:`calc(50% - ${convertToUnit(N.value/4)})`,width:convertToUnit(100-I.value,"%"),"--v-progress-linear-stream-to":convertToUnit(N.value*(x.value?1:-1))}},null),createVNode("div",{class:["v-progress-linear__background",S.value],style:[b.value,{opacity:k.value,width:convertToUnit(e.stream?I.value:100,"%")}]},null),createVNode(Transition$1,{name:D.value},{default:()=>[e.indeterminate?createVNode("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(L=>createVNode("div",{key:L,class:["v-progress-linear__indeterminate",L,v.value],style:y.value},null))]):createVNode("div",{class:["v-progress-linear__determinate",v.value],style:[y.value,{width:convertToUnit(O.value,"%")}]},null)]}),r.default&&createVNode("div",{class:"v-progress-linear__content"},[r.default({value:O.value,buffer:I.value})])]})),{}}}),makeLoaderProps=propsFactory({loading:[Boolean,String]},"loader");function useLoader(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName();return{loaderClasses:computed(()=>({[`${t}--loading`]:e.loading}))}}function LoaderSlot(e,t){var a;let{slots:r}=t;return createVNode("div",{class:`${e.name}__loader`},[((a=r.default)==null?void 0:a.call(r,{color:e.color,isActive:e.active}))||createVNode(VProgressLinear,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const positionValues=["static","relative","fixed","absolute","sticky"],makePositionProps=propsFactory({position:{type:String,validator:e=>positionValues.includes(e)}},"position");function usePosition(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName();return{positionClasses:computed(()=>e.position?`${t}--${e.position}`:void 0)}}function useRoute(){const e=getCurrentInstance("useRoute");return computed(()=>{var t;return(t=e==null?void 0:e.proxy)==null?void 0:t.$route})}function useRouter(){var e,t;return(t=(e=getCurrentInstance("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function useLink(e,t){const r=resolveDynamicComponent("RouterLink"),a=computed(()=>!!(e.href||e.to)),o=computed(()=>(a==null?void 0:a.value)||hasEvent(t,"click")||hasEvent(e,"click"));if(typeof r=="string")return{isLink:a,isClickable:o,href:toRef(e,"href")};const u=e.to?r.useLink(e):void 0,d=useRoute();return{isLink:a,isClickable:o,route:u==null?void 0:u.route,navigate:u==null?void 0:u.navigate,isActive:u&&computed(()=>{var f,g,E;return e.exact?d.value?((E=u.isExactActive)==null?void 0:E.value)&&deepEqual(u.route.value.query,d.value.query):(g=u.isExactActive)==null?void 0:g.value:(f=u.isActive)==null?void 0:f.value}),href:computed(()=>e.to?u==null?void 0:u.route.value.href:e.href)}}const makeRouterProps=propsFactory({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let inTransition=!1;function useBackButton(e,t){let r=!1,a,o;IN_BROWSER&&(nextTick$1(()=>{window.addEventListener("popstate",u),a=e==null?void 0:e.beforeEach((d,f,g)=>{inTransition?r?t(g):g():setTimeout(()=>r?t(g):g()),inTransition=!0}),o=e==null?void 0:e.afterEach(()=>{inTransition=!1})}),onScopeDispose(()=>{window.removeEventListener("popstate",u),a==null||a(),o==null||o()}));function u(d){var f;(f=d.state)!=null&&f.replaced||(r=!0,setTimeout(()=>r=!1))}}function useSelectLink(e,t){watch(()=>{var r;return(r=e.isActive)==null?void 0:r.value},r=>{e.isLink.value&&r&&t&&nextTick$1(()=>{t(!0)})},{immediate:!0})}const stopSymbol=Symbol("rippleStop"),DELAY_RIPPLE=80;function transform(e,t){e.style.transform=t,e.style.webkitTransform=t}function isTouchEvent(e){return e.constructor.name==="TouchEvent"}function isKeyboardEvent(e){return e.constructor.name==="KeyboardEvent"}const calculate=function(e,t){var b;let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=0,o=0;if(!isKeyboardEvent(e)){const v=t.getBoundingClientRect(),y=isTouchEvent(e)?e.touches[e.touches.length-1]:e;a=y.clientX-v.left,o=y.clientY-v.top}let u=0,d=.3;(b=t._ripple)!=null&&b.circle?(d=.15,u=t.clientWidth/2,u=r.center?u:u+Math.sqrt((a-u)**2+(o-u)**2)/4):u=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const f=`${(t.clientWidth-u*2)/2}px`,g=`${(t.clientHeight-u*2)/2}px`,E=r.center?f:`${a-u}px`,S=r.center?g:`${o-u}px`;return{radius:u,scale:d,x:E,y:S,centerX:f,centerY:g}},ripples={show(e,t){var y;let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((y=t==null?void 0:t._ripple)!=null&&y.enabled))return;const a=document.createElement("span"),o=document.createElement("span");a.appendChild(o),a.className="v-ripple__container",r.class&&(a.className+=` ${r.class}`);const{radius:u,scale:d,x:f,y:g,centerX:E,centerY:S}=calculate(e,t,r),b=`${u*2}px`;o.className="v-ripple__animation",o.style.width=b,o.style.height=b,t.appendChild(a);const v=window.getComputedStyle(t);v&&v.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),o.classList.add("v-ripple__animation--enter"),o.classList.add("v-ripple__animation--visible"),transform(o,`translate(${f}, ${g}) scale3d(${d},${d},${d})`),o.dataset.activated=String(performance.now()),setTimeout(()=>{o.classList.remove("v-ripple__animation--enter"),o.classList.add("v-ripple__animation--in"),transform(o,`translate(${E}, ${S}) scale3d(1,1,1)`)},0)},hide(e){var u;if(!((u=e==null?void 0:e._ripple)!=null&&u.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const r=t[t.length-1];if(r.dataset.isHiding)return;r.dataset.isHiding="true";const a=performance.now()-Number(r.dataset.activated),o=Math.max(250-a,0);setTimeout(()=>{r.classList.remove("v-ripple__animation--in"),r.classList.add("v-ripple__animation--out"),setTimeout(()=>{var f;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((f=r.parentNode)==null?void 0:f.parentNode)===e&&e.removeChild(r.parentNode)},300)},o)}};function isRippleEnabled(e){return typeof e>"u"||!!e}function rippleShow(e){const t={},r=e.currentTarget;if(!(!(r!=null&&r._ripple)||r._ripple.touched||e[stopSymbol])){if(e[stopSymbol]=!0,isTouchEvent(e))r._ripple.touched=!0,r._ripple.isTouch=!0;else if(r._ripple.isTouch)return;if(t.center=r._ripple.centered||isKeyboardEvent(e),r._ripple.class&&(t.class=r._ripple.class),isTouchEvent(e)){if(r._ripple.showTimerCommit)return;r._ripple.showTimerCommit=()=>{ripples.show(e,r,t)},r._ripple.showTimer=window.setTimeout(()=>{var a;(a=r==null?void 0:r._ripple)!=null&&a.showTimerCommit&&(r._ripple.showTimerCommit(),r._ripple.showTimerCommit=null)},DELAY_RIPPLE)}else ripples.show(e,r,t)}}function rippleStop(e){e[stopSymbol]=!0}function rippleHide(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{rippleHide(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),ripples.hide(t)}}function rippleCancelShow(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let keyboardRipple=!1;function keyboardRippleShow(e){!keyboardRipple&&(e.keyCode===keyCodes.enter||e.keyCode===keyCodes.space)&&(keyboardRipple=!0,rippleShow(e))}function keyboardRippleHide(e){keyboardRipple=!1,rippleHide(e)}function focusRippleHide(e){keyboardRipple&&(keyboardRipple=!1,rippleHide(e))}function updateRipple(e,t,r){const{value:a,modifiers:o}=t,u=isRippleEnabled(a);if(u||ripples.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=u,e._ripple.centered=o.center,e._ripple.circle=o.circle,isObject(a)&&a.class&&(e._ripple.class=a.class),u&&!r){if(o.stop){e.addEventListener("touchstart",rippleStop,{passive:!0}),e.addEventListener("mousedown",rippleStop);return}e.addEventListener("touchstart",rippleShow,{passive:!0}),e.addEventListener("touchend",rippleHide,{passive:!0}),e.addEventListener("touchmove",rippleCancelShow,{passive:!0}),e.addEventListener("touchcancel",rippleHide),e.addEventListener("mousedown",rippleShow),e.addEventListener("mouseup",rippleHide),e.addEventListener("mouseleave",rippleHide),e.addEventListener("keydown",keyboardRippleShow),e.addEventListener("keyup",keyboardRippleHide),e.addEventListener("blur",focusRippleHide),e.addEventListener("dragstart",rippleHide,{passive:!0})}else!u&&r&&removeListeners(e)}function removeListeners(e){e.removeEventListener("mousedown",rippleShow),e.removeEventListener("touchstart",rippleShow),e.removeEventListener("touchend",rippleHide),e.removeEventListener("touchmove",rippleCancelShow),e.removeEventListener("touchcancel",rippleHide),e.removeEventListener("mouseup",rippleHide),e.removeEventListener("mouseleave",rippleHide),e.removeEventListener("keydown",keyboardRippleShow),e.removeEventListener("keyup",keyboardRippleHide),e.removeEventListener("dragstart",rippleHide),e.removeEventListener("blur",focusRippleHide)}function mounted$4(e,t){updateRipple(e,t,!1)}function unmounted$4(e){delete e._ripple,removeListeners(e)}function updated$1(e,t){if(t.value===t.oldValue)return;const r=isRippleEnabled(t.oldValue);updateRipple(e,t,r)}const Ripple={mounted:mounted$4,unmounted:unmounted$4,updated:updated$1},makeVBtnProps=propsFactory({active:{type:Boolean,default:void 0},symbol:{type:null,default:VBtnToggleSymbol},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:IconValue,appendIcon:IconValue,block:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...makeBorderProps(),...makeComponentProps(),...makeDensityProps(),...makeDimensionProps(),...makeElevationProps(),...makeGroupItemProps(),...makeLoaderProps(),...makeLocationProps(),...makePositionProps(),...makeRoundedProps(),...makeRouterProps(),...makeSizeProps(),...makeTagProps({tag:"button"}),...makeThemeProps(),...makeVariantProps({variant:"elevated"})},"VBtn"),VBtn=genericComponent()({name:"VBtn",directives:{Ripple},props:makeVBtnProps(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:r,slots:a}=t;const{themeClasses:o}=provideTheme(e),{borderClasses:u}=useBorder(e),{colorClasses:d,colorStyles:f,variantClasses:g}=useVariant(e),{densityClasses:E}=useDensity(e),{dimensionStyles:S}=useDimension(e),{elevationClasses:b}=useElevation(e),{loaderClasses:v}=useLoader(e),{locationStyles:y}=useLocation(e),{positionClasses:T}=usePosition(e),{roundedClasses:C}=useRounded(e),{sizeClasses:R,sizeStyles:A}=useSize(e),N=useGroupItem(e,e.symbol,!1),I=useLink(e,r),O=computed(()=>{var L;return e.active!==void 0?e.active:I.isLink.value?(L=I.isActive)==null?void 0:L.value:N==null?void 0:N.isSelected.value}),x=computed(()=>(N==null?void 0:N.disabled.value)||e.disabled),D=computed(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),k=computed(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function P(L){var F;x.value||I.isLink.value&&(L.metaKey||L.ctrlKey||L.shiftKey||L.button!==0||r.target==="_blank")||((F=I.navigate)==null||F.call(I,L),N==null||N.toggle())}return useSelectLink(I,N==null?void 0:N.select),useRender(()=>{var z,K;const L=I.isLink.value?"a":e.tag,F=!!(e.prependIcon||a.prepend),B=!!(e.appendIcon||a.append),$=!!(e.icon&&e.icon!==!0),U=(N==null?void 0:N.isSelected.value)&&(!I.isLink.value||((z=I.isActive)==null?void 0:z.value))||!N||((K=I.isActive)==null?void 0:K.value);return withDirectives(createVNode(L,{type:L==="a"?void 0:"button",class:["v-btn",N==null?void 0:N.selectedClass.value,{"v-btn--active":O.value,"v-btn--block":e.block,"v-btn--disabled":x.value,"v-btn--elevated":D.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},o.value,u.value,U?d.value:void 0,E.value,b.value,v.value,T.value,C.value,R.value,g.value,e.class],style:[U?f.value:void 0,S.value,y.value,A.value,e.style],disabled:x.value||void 0,href:I.href.value,onClick:P,value:k.value},{default:()=>{var Q;return[genOverlays(!0,"v-btn"),!e.icon&&F&&createVNode("span",{key:"prepend",class:"v-btn__prepend"},[a.prepend?createVNode(VDefaultsProvider,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},a.prepend):createVNode(VIcon,{key:"prepend-icon",icon:e.prependIcon},null)]),createVNode("span",{class:"v-btn__content","data-no-activator":""},[!a.default&&$?createVNode(VIcon,{key:"content-icon",icon:e.icon},null):createVNode(VDefaultsProvider,{key:"content-defaults",disabled:!$,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var Y;return[((Y=a.default)==null?void 0:Y.call(a))??e.text]}})]),!e.icon&&B&&createVNode("span",{key:"append",class:"v-btn__append"},[a.append?createVNode(VDefaultsProvider,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},a.append):createVNode(VIcon,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&createVNode("span",{key:"loader",class:"v-btn__loader"},[((Q=a.loader)==null?void 0:Q.call(a))??createVNode(VProgressCircular,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,size:"23",width:"2"},null)])]}}),[[resolveDirective("ripple"),!x.value&&e.ripple,null]])}),{}}}),makeVAppBarNavIconProps=propsFactory({...makeVBtnProps({icon:"$menu",variant:"text"})},"VAppBarNavIcon"),VAppBarNavIcon=genericComponent()({name:"VAppBarNavIcon",props:makeVAppBarNavIconProps(),setup(e,t){let{slots:r}=t;return useRender(()=>createVNode(VBtn,mergeProps(e,{class:["v-app-bar-nav-icon"]}),r)),{}}}),VAppBarTitle=genericComponent()({name:"VAppBarTitle",props:makeVToolbarTitleProps(),setup(e,t){let{slots:r}=t;return useRender(()=>createVNode(VToolbarTitle,mergeProps(e,{class:"v-app-bar-title"}),r)),{}}}),VAlertTitle=createSimpleFunctional("v-alert-title"),allowedTypes=["success","info","warning","error"],makeVAlertProps=propsFactory({border:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:IconValue,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>allowedTypes.includes(e)},...makeComponentProps(),...makeDensityProps(),...makeDimensionProps(),...makeElevationProps(),...makeLocationProps(),...makePositionProps(),...makeRoundedProps(),...makeTagProps(),...makeThemeProps(),...makeVariantProps({variant:"flat"})},"VAlert"),VAlert=genericComponent()({name:"VAlert",props:makeVAlertProps(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:r,slots:a}=t;const o=useProxiedModel(e,"modelValue"),u=computed(()=>{if(e.icon!==!1)return e.type?e.icon??`$${e.type}`:e.icon}),d=computed(()=>({color:e.color??e.type,variant:e.variant})),{themeClasses:f}=provideTheme(e),{colorClasses:g,colorStyles:E,variantClasses:S}=useVariant(d),{densityClasses:b}=useDensity(e),{dimensionStyles:v}=useDimension(e),{elevationClasses:y}=useElevation(e),{locationStyles:T}=useLocation(e),{positionClasses:C}=usePosition(e),{roundedClasses:R}=useRounded(e),{textColorClasses:A,textColorStyles:N}=useTextColor(toRef(e,"borderColor")),{t:I}=useLocale(),O=computed(()=>({"aria-label":I(e.closeLabel),onClick(x){o.value=!1,r("click:close",x)}}));return()=>{const x=!!(a.prepend||u.value),D=!!(a.title||e.title),k=!!(a.close||e.closable);return o.value&&createVNode(e.tag,{class:["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${e.border===!0?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},f.value,g.value,b.value,y.value,C.value,R.value,S.value,e.class],style:[E.value,v.value,T.value,e.style],role:"alert"},{default:()=>{var P,L;return[genOverlays(!1,"v-alert"),e.border&&createVNode("div",{key:"border",class:["v-alert__border",A.value],style:N.value},null),x&&createVNode("div",{key:"prepend",class:"v-alert__prepend"},[a.prepend?createVNode(VDefaultsProvider,{key:"prepend-defaults",disabled:!u.value,defaults:{VIcon:{density:e.density,icon:u.value,size:e.prominent?44:28}}},a.prepend):createVNode(VIcon,{key:"prepend-icon",density:e.density,icon:u.value,size:e.prominent?44:28},null)]),createVNode("div",{class:"v-alert__content"},[D&&createVNode(VAlertTitle,{key:"title"},{default:()=>{var F;return[((F=a.title)==null?void 0:F.call(a))??e.title]}}),((P=a.text)==null?void 0:P.call(a))??e.text,(L=a.default)==null?void 0:L.call(a)]),a.append&&createVNode("div",{key:"append",class:"v-alert__append"},[a.append()]),k&&createVNode("div",{key:"close",class:"v-alert__close"},[a.close?createVNode(VDefaultsProvider,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>{var F;return[(F=a.close)==null?void 0:F.call(a,{props:O.value})]}}):createVNode(VBtn,mergeProps({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},O.value),null)])]}})}}}),makeVAvatarProps=propsFactory({start:Boolean,end:Boolean,icon:IconValue,image:String,text:String,...makeComponentProps(),...makeDensityProps(),...makeRoundedProps(),...makeSizeProps(),...makeTagProps(),...makeThemeProps(),...makeVariantProps({variant:"flat"})},"VAvatar"),VAvatar=genericComponent()({name:"VAvatar",props:makeVAvatarProps(),setup(e,t){let{slots:r}=t;const{themeClasses:a}=provideTheme(e),{colorClasses:o,colorStyles:u,variantClasses:d}=useVariant(e),{densityClasses:f}=useDensity(e),{roundedClasses:g}=useRounded(e),{sizeClasses:E,sizeStyles:S}=useSize(e);return useRender(()=>createVNode(e.tag,{class:["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},a.value,o.value,f.value,g.value,E.value,d.value,e.class],style:[u.value,S.value,e.style]},{default:()=>{var b;return[e.image?createVNode(VImg,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?createVNode(VIcon,{key:"icon",icon:e.icon},null):((b=r.default)==null?void 0:b.call(r))??e.text,genOverlays(!1,"v-avatar")]}})),{}}}),makeVLabelProps=propsFactory({text:String,clickable:Boolean,...makeComponentProps(),...makeThemeProps()},"VLabel"),VLabel=genericComponent()({name:"VLabel",props:makeVLabelProps(),setup(e,t){let{slots:r}=t;return useRender(()=>{var a;return createVNode("label",{class:["v-label",{"v-label--clickable":e.clickable},e.class],style:e.style},[e.text,(a=r.default)==null?void 0:a.call(r)])}),{}}}),VSelectionControlGroupSymbol=Symbol.for("vuetify:selection-control-group"),makeSelectionControlGroupProps=propsFactory({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:IconValue,trueIcon:IconValue,ripple:{type:Boolean,default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:deepEqual},...makeComponentProps(),...makeDensityProps(),...makeThemeProps()},"SelectionControlGroup"),makeVSelectionControlGroupProps=propsFactory({...makeSelectionControlGroupProps({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup"),VSelectionControlGroup=genericComponent()({name:"VSelectionControlGroup",props:makeVSelectionControlGroupProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const a=useProxiedModel(e,"modelValue"),o=getUid(),u=computed(()=>e.id||`v-selection-control-group-${o}`),d=computed(()=>e.name||u.value),f=new Set;return provide(VSelectionControlGroupSymbol,{modelValue:a,forceUpdate:()=>{f.forEach(g=>g())},onForceUpdate:g=>{f.add(g),onScopeDispose(()=>{f.delete(g)})}}),provideDefaults({[e.defaultsTarget]:{color:toRef(e,"color"),disabled:toRef(e,"disabled"),density:toRef(e,"density"),error:toRef(e,"error"),inline:toRef(e,"inline"),modelValue:a,multiple:computed(()=>!!e.multiple||e.multiple==null&&Array.isArray(a.value)),name:d,falseIcon:toRef(e,"falseIcon"),trueIcon:toRef(e,"trueIcon"),readonly:toRef(e,"readonly"),ripple:toRef(e,"ripple"),type:toRef(e,"type"),valueComparator:toRef(e,"valueComparator")}}),useRender(()=>{var g;return createVNode("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class],style:e.style,role:e.type==="radio"?"radiogroup":void 0},[(g=r.default)==null?void 0:g.call(r)])}),{}}}),makeVSelectionControlProps=propsFactory({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...makeComponentProps(),...makeSelectionControlGroupProps()},"VSelectionControl");function useSelectionControl(e){const t=inject$1(VSelectionControlGroupSymbol,void 0),{densityClasses:r}=useDensity(e),a=useProxiedModel(e,"modelValue"),o=computed(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),u=computed(()=>e.falseValue!==void 0?e.falseValue:!1),d=computed(()=>!!e.multiple||e.multiple==null&&Array.isArray(a.value)),f=computed({get(){const y=t?t.modelValue.value:a.value;return d.value?wrapInArray(y).some(T=>e.valueComparator(T,o.value)):e.valueComparator(y,o.value)},set(y){if(e.readonly)return;const T=y?o.value:u.value;let C=T;d.value&&(C=y?[...wrapInArray(a.value),T]:wrapInArray(a.value).filter(R=>!e.valueComparator(R,o.value))),t?t.modelValue.value=C:a.value=C}}),{textColorClasses:g,textColorStyles:E}=useTextColor(computed(()=>{if(!(e.error||e.disabled))return f.value?e.color:e.baseColor})),{backgroundColorClasses:S,backgroundColorStyles:b}=useBackgroundColor(computed(()=>f.value&&!e.error&&!e.disabled?e.color:void 0)),v=computed(()=>f.value?e.trueIcon:e.falseIcon);return{group:t,densityClasses:r,trueValue:o,falseValue:u,model:f,textColorClasses:g,textColorStyles:E,backgroundColorClasses:S,backgroundColorStyles:b,icon:v}}const VSelectionControl=genericComponent()({name:"VSelectionControl",directives:{Ripple},inheritAttrs:!1,props:makeVSelectionControlProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:r,slots:a}=t;const{group:o,densityClasses:u,icon:d,model:f,textColorClasses:g,textColorStyles:E,backgroundColorClasses:S,backgroundColorStyles:b,trueValue:v}=useSelectionControl(e),y=getUid(),T=computed(()=>e.id||`input-${y}`),C=shallowRef(!1),R=shallowRef(!1),A=ref$1();o==null||o.onForceUpdate(()=>{A.value&&(A.value.checked=f.value)});function N(x){C.value=!0,matchesSelector(x.target,":focus-visible")!==!1&&(R.value=!0)}function I(){C.value=!1,R.value=!1}function O(x){e.readonly&&o&&nextTick$1(()=>o.forceUpdate()),f.value=x.target.checked}return useRender(()=>{var L,F;const x=a.label?a.label({label:e.label,props:{for:T.value}}):e.label,[D,k]=filterInputAttrs(r),P=createVNode("input",mergeProps({ref:A,checked:f.value,disabled:!!(e.readonly||e.disabled),id:T.value,onBlur:I,onFocus:N,onInput:O,"aria-disabled":!!(e.readonly||e.disabled),type:e.type,value:v.value,name:e.name,"aria-checked":e.type==="checkbox"?f.value:void 0},k),null);return createVNode("div",mergeProps({class:["v-selection-control",{"v-selection-control--dirty":f.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":C.value,"v-selection-control--focus-visible":R.value,"v-selection-control--inline":e.inline},u.value,e.class]},D,{style:e.style}),[createVNode("div",{class:["v-selection-control__wrapper",g.value],style:E.value},[(L=a.default)==null?void 0:L.call(a,{backgroundColorClasses:S,backgroundColorStyles:b}),withDirectives(createVNode("div",{class:["v-selection-control__input"]},[((F=a.input)==null?void 0:F.call(a,{model:f,textColorClasses:g,textColorStyles:E,backgroundColorClasses:S,backgroundColorStyles:b,inputNode:P,icon:d.value,props:{onFocus:N,onBlur:I,id:T.value}}))??createVNode(Fragment,null,[d.value&&createVNode(VIcon,{key:"icon",icon:d.value},null),P])]),[[resolveDirective("ripple"),e.ripple&&[!e.disabled&&!e.readonly,null,["center","circle"]]]])]),x&&createVNode(VLabel,{for:T.value,clickable:!0,onClick:B=>B.stopPropagation()},{default:()=>[x]})])}),{isFocused:C,input:A}}}),makeVCheckboxBtnProps=propsFactory({indeterminate:Boolean,indeterminateIcon:{type:IconValue,default:"$checkboxIndeterminate"},...makeVSelectionControlProps({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),VCheckboxBtn=genericComponent()({name:"VCheckboxBtn",props:makeVCheckboxBtnProps(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{slots:r}=t;const a=useProxiedModel(e,"indeterminate"),o=useProxiedModel(e,"modelValue");function u(g){a.value&&(a.value=!1)}const d=computed(()=>a.value?e.indeterminateIcon:e.falseIcon),f=computed(()=>a.value?e.indeterminateIcon:e.trueIcon);return useRender(()=>{const g=omit(VSelectionControl.filterProps(e),["modelValue"]);return createVNode(VSelectionControl,mergeProps(g,{modelValue:o.value,"onUpdate:modelValue":[E=>o.value=E,u],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:d.value,trueIcon:f.value,"aria-checked":a.value?"mixed":void 0}),r)}),{}}});function useInputIcon(e){const{t}=useLocale();function r(a){let{name:o}=a;const u={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[o],d=e[`onClick:${o}`],f=d&&u?t(`$vuetify.input.${u}`,e.label??""):void 0;return createVNode(VIcon,{icon:e[`${o}Icon`],"aria-label":f,onClick:d},null)}return{InputIcon:r}}const makeVMessagesProps=propsFactory({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...makeComponentProps(),...makeTransitionProps({transition:{component:VSlideYTransition,leaveAbsolute:!0,group:!0}})},"VMessages"),VMessages=genericComponent()({name:"VMessages",props:makeVMessagesProps(),setup(e,t){let{slots:r}=t;const a=computed(()=>wrapInArray(e.messages)),{textColorClasses:o,textColorStyles:u}=useTextColor(computed(()=>e.color));return useRender(()=>createVNode(MaybeTransition,{transition:e.transition,tag:"div",class:["v-messages",o.value,e.class],style:[u.value,e.style],role:"alert","aria-live":"polite"},{default:()=>[e.active&&a.value.map((d,f)=>createVNode("div",{class:"v-messages__message",key:`${f}-${a.value}`},[r.message?r.message({message:d}):d]))]})),{}}}),makeFocusProps=propsFactory({focused:Boolean,"onUpdate:focused":EventProp()},"focus");function useFocus(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName();const r=useProxiedModel(e,"focused"),a=computed(()=>({[`${t}--focused`]:r.value}));function o(){r.value=!0}function u(){r.value=!1}return{focusClasses:a,isFocused:r,focus:o,blur:u}}const FormKey=Symbol.for("vuetify:form"),makeFormProps=propsFactory({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function createForm(e){const t=useProxiedModel(e,"modelValue"),r=computed(()=>e.disabled),a=computed(()=>e.readonly),o=shallowRef(!1),u=ref$1([]),d=ref$1([]);async function f(){const S=[];let b=!0;d.value=[],o.value=!0;for(const v of u.value){const y=await v.validate();if(y.length>0&&(b=!1,S.push({id:v.id,errorMessages:y})),!b&&e.fastFail)break}return d.value=S,o.value=!1,{valid:b,errors:d.value}}function g(){u.value.forEach(S=>S.reset())}function E(){u.value.forEach(S=>S.resetValidation())}return watch(u,()=>{let S=0,b=0;const v=[];for(const y of u.value)y.isValid===!1?(b++,v.push({id:y.id,errorMessages:y.errorMessages})):y.isValid===!0&&S++;d.value=v,t.value=b>0?!1:S===u.value.length?!0:null},{deep:!0}),provide(FormKey,{register:S=>{let{id:b,validate:v,reset:y,resetValidation:T}=S;u.value.some(C=>C.id===b),u.value.push({id:b,validate:v,reset:y,resetValidation:T,isValid:null,errorMessages:[]})},unregister:S=>{u.value=u.value.filter(b=>b.id!==S)},update:(S,b,v)=>{const y=u.value.find(T=>T.id===S);y&&(y.isValid=b,y.errorMessages=v)},isDisabled:r,isReadonly:a,isValidating:o,isValid:t,items:u,validateOn:toRef(e,"validateOn")}),{errors:d,isDisabled:r,isReadonly:a,isValidating:o,isValid:t,items:u,validate:f,reset:g,resetValidation:E}}function useForm(){return inject$1(FormKey,null)}const makeValidationProps=propsFactory({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...makeFocusProps()},"validation");function useValidation(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:getCurrentInstanceName(),r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:getUid();const a=useProxiedModel(e,"modelValue"),o=computed(()=>e.validationValue===void 0?a.value:e.validationValue),u=useForm(),d=ref$1([]),f=shallowRef(!0),g=computed(()=>!!(wrapInArray(a.value===""?null:a.value).length||wrapInArray(o.value===""?null:o.value).length)),E=computed(()=>!!(e.disabled??(u==null?void 0:u.isDisabled.value))),S=computed(()=>!!(e.readonly??(u==null?void 0:u.isReadonly.value))),b=computed(()=>{var O;return(O=e.errorMessages)!=null&&O.length?wrapInArray(e.errorMessages).concat(d.value).slice(0,Math.max(0,+e.maxErrors)):d.value}),v=computed(()=>{let O=(e.validateOn??(u==null?void 0:u.validateOn.value))||"input";O==="lazy"&&(O="input lazy");const x=new Set((O==null?void 0:O.split(" "))??[]);return{blur:x.has("blur")||x.has("input"),input:x.has("input"),submit:x.has("submit"),lazy:x.has("lazy")}}),y=computed(()=>{var O;return e.error||(O=e.errorMessages)!=null&&O.length?!1:e.rules.length?f.value?d.value.length||v.value.lazy?null:!0:!d.value.length:!0}),T=shallowRef(!1),C=computed(()=>({[`${t}--error`]:y.value===!1,[`${t}--dirty`]:g.value,[`${t}--disabled`]:E.value,[`${t}--readonly`]:S.value})),R=computed(()=>e.name??unref(r));onBeforeMount(()=>{u==null||u.register({id:R.value,validate:I,reset:A,resetValidation:N})}),onBeforeUnmount(()=>{u==null||u.unregister(R.value)}),onMounted(async()=>{v.value.lazy||await I(!0),u==null||u.update(R.value,y.value,b.value)}),useToggleScope(()=>v.value.input,()=>{watch(o,()=>{if(o.value!=null)I();else if(e.focused){const O=watch(()=>e.focused,x=>{x||I(),O()})}})}),useToggleScope(()=>v.value.blur,()=>{watch(()=>e.focused,O=>{O||I()})}),watch(y,()=>{u==null||u.update(R.value,y.value,b.value)});function A(){a.value=null,nextTick$1(N)}function N(){f.value=!0,v.value.lazy?d.value=[]:I(!0)}async function I(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const x=[];T.value=!0;for(const D of e.rules){if(x.length>=+(e.maxErrors??1))break;const P=await(typeof D=="function"?D:()=>D)(o.value);if(P!==!0){if(P!==!1&&typeof P!="string"){console.warn(`${P} is not a valid value. Rule functions must return boolean true or a string.`);continue}x.push(P||"")}}return d.value=x,T.value=!1,f.value=O,d.value}return{errorMessages:b,isDirty:g,isDisabled:E,isReadonly:S,isPristine:f,isValid:y,isValidating:T,reset:A,resetValidation:N,validate:I,validationClasses:C}}const makeVInputProps=propsFactory({id:String,appendIcon:IconValue,centerAffix:{type:Boolean,default:!0},prependIcon:IconValue,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":EventProp(),"onClick:append":EventProp(),...makeComponentProps(),...makeDensityProps(),...makeValidationProps()},"VInput"),VInput=genericComponent()({name:"VInput",props:{...makeVInputProps()},emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:r,slots:a,emit:o}=t;const{densityClasses:u}=useDensity(e),{rtlClasses:d}=useRtl(),{InputIcon:f}=useInputIcon(e),g=getUid(),E=computed(()=>e.id||`input-${g}`),S=computed(()=>`${E.value}-messages`),{errorMessages:b,isDirty:v,isDisabled:y,isReadonly:T,isPristine:C,isValid:R,isValidating:A,reset:N,resetValidation:I,validate:O,validationClasses:x}=useValidation(e,"v-input",E),D=computed(()=>({id:E,messagesId:S,isDirty:v,isDisabled:y,isReadonly:T,isPristine:C,isValid:R,isValidating:A,reset:N,resetValidation:I,validate:O})),k=computed(()=>{var P;return(P=e.errorMessages)!=null&&P.length||!C.value&&b.value.length?b.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages});return useRender(()=>{var $,U,z,K;const P=!!(a.prepend||e.prependIcon),L=!!(a.append||e.appendIcon),F=k.value.length>0,B=!e.hideDetails||e.hideDetails==="auto"&&(F||!!a.details);return createVNode("div",{class:["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--hide-spin-buttons":e.hideSpinButtons},u.value,d.value,x.value,e.class],style:e.style},[P&&createVNode("div",{key:"prepend",class:"v-input__prepend"},[($=a.prepend)==null?void 0:$.call(a,D.value),e.prependIcon&&createVNode(f,{key:"prepend-icon",name:"prepend"},null)]),a.default&&createVNode("div",{class:"v-input__control"},[(U=a.default)==null?void 0:U.call(a,D.value)]),L&&createVNode("div",{key:"append",class:"v-input__append"},[e.appendIcon&&createVNode(f,{key:"append-icon",name:"append"},null),(z=a.append)==null?void 0:z.call(a,D.value)]),B&&createVNode("div",{class:"v-input__details"},[createVNode(VMessages,{id:S.value,active:F,messages:k.value},{message:a.message}),(K=a.details)==null?void 0:K.call(a,D.value)])])}),{reset:N,resetValidation:I,validate:O,isValid:R,errorMessages:b}}}),makeVCheckboxProps=propsFactory({...makeVInputProps(),...omit(makeVCheckboxBtnProps(),["inline"])},"VCheckbox"),VCheckbox=genericComponent()({name:"VCheckbox",inheritAttrs:!1,props:makeVCheckboxProps(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,t){let{attrs:r,slots:a}=t;const o=useProxiedModel(e,"modelValue"),{isFocused:u,focus:d,blur:f}=useFocus(e),g=getUid(),E=computed(()=>e.id||`checkbox-${g}`);return useRender(()=>{const[S,b]=filterInputAttrs(r),v=VInput.filterProps(e),y=VCheckboxBtn.filterProps(e);return createVNode(VInput,mergeProps({class:["v-checkbox",e.class]},S,v,{modelValue:o.value,"onUpdate:modelValue":T=>o.value=T,id:E.value,focused:u.value,style:e.style}),{...a,default:T=>{let{id:C,messagesId:R,isDisabled:A,isReadonly:N}=T;return createVNode(VCheckboxBtn,mergeProps(y,{id:C.value,"aria-describedby":R.value,disabled:A.value,readonly:N.value},b,{modelValue:o.value,"onUpdate:modelValue":I=>o.value=I,onFocus:d,onBlur:f}),a)}})}),{}}}),VChipGroupSymbol=Symbol.for("vuetify:v-chip-group"),makeVChipGroupProps=propsFactory({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:deepEqual},...makeComponentProps(),...makeGroupProps({selectedClass:"v-chip--selected"}),...makeTagProps(),...makeThemeProps(),...makeVariantProps({variant:"tonal"})},"VChipGroup"),VChipGroup=genericComponent()({name:"VChipGroup",props:makeVChipGroupProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const{themeClasses:a}=provideTheme(e),{isSelected:o,select:u,next:d,prev:f,selected:g}=useGroup(e,VChipGroupSymbol);return provideDefaults({VChip:{color:toRef(e,"color"),disabled:toRef(e,"disabled"),filter:toRef(e,"filter"),variant:toRef(e,"variant")}}),useRender(()=>createVNode(e.tag,{class:["v-chip-group",{"v-chip-group--column":e.column},a.value,e.class],style:e.style},{default:()=>{var E;return[(E=r.default)==null?void 0:E.call(r,{isSelected:o,select:u,next:d,prev:f,selected:g.value})]}})),{}}}),makeVChipProps=propsFactory({activeClass:String,appendAvatar:String,appendIcon:IconValue,closable:Boolean,closeIcon:{type:IconValue,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:IconValue,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:EventProp(),onClickOnce:EventProp(),...makeBorderProps(),...makeComponentProps(),...makeDensityProps(),...makeElevationProps(),...makeGroupItemProps(),...makeRoundedProps(),...makeRouterProps(),...makeSizeProps(),...makeTagProps({tag:"span"}),...makeThemeProps(),...makeVariantProps({variant:"tonal"})},"VChip"),VChip=genericComponent()({name:"VChip",directives:{Ripple},props:makeVChipProps(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,t){let{attrs:r,emit:a,slots:o}=t;const{t:u}=useLocale(),{borderClasses:d}=useBorder(e),{colorClasses:f,colorStyles:g,variantClasses:E}=useVariant(e),{densityClasses:S}=useDensity(e),{elevationClasses:b}=useElevation(e),{roundedClasses:v}=useRounded(e),{sizeClasses:y}=useSize(e),{themeClasses:T}=provideTheme(e),C=useProxiedModel(e,"modelValue"),R=useGroupItem(e,VChipGroupSymbol,!1),A=useLink(e,r),N=computed(()=>e.link!==!1&&A.isLink.value),I=computed(()=>!e.disabled&&e.link!==!1&&(!!R||e.link||A.isClickable.value)),O=computed(()=>({"aria-label":u(e.closeLabel),onClick(k){k.stopPropagation(),C.value=!1,a("click:close",k)}}));function x(k){var P;a("click",k),I.value&&((P=A.navigate)==null||P.call(A,k),R==null||R.toggle())}function D(k){(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),x(k))}return()=>{const k=A.isLink.value?"a":e.tag,P=!!(e.appendIcon||e.appendAvatar),L=!!(P||o.append),F=!!(o.close||e.closable),B=!!(o.filter||e.filter)&&R,$=!!(e.prependIcon||e.prependAvatar),U=!!($||o.prepend),z=!R||R.isSelected.value;return C.value&&withDirectives(createVNode(k,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":I.value,"v-chip--filter":B,"v-chip--pill":e.pill},T.value,d.value,z?f.value:void 0,S.value,b.value,v.value,y.value,E.value,R==null?void 0:R.selectedClass.value,e.class],style:[z?g.value:void 0,e.style],disabled:e.disabled||void 0,draggable:e.draggable,href:A.href.value,tabindex:I.value?0:void 0,onClick:x,onKeydown:I.value&&!N.value&&D},{default:()=>{var K;return[genOverlays(I.value,"v-chip"),B&&createVNode(VExpandXTransition,{key:"filter"},{default:()=>[withDirectives(createVNode("div",{class:"v-chip__filter"},[o.filter?createVNode(VDefaultsProvider,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},o.filter):createVNode(VIcon,{key:"filter-icon",icon:e.filterIcon},null)]),[[vShow,R.isSelected.value]])]}),U&&createVNode("div",{key:"prepend",class:"v-chip__prepend"},[o.prepend?createVNode(VDefaultsProvider,{key:"prepend-defaults",disabled:!$,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},o.prepend):createVNode(Fragment,null,[e.prependIcon&&createVNode(VIcon,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&createVNode(VAvatar,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),createVNode("div",{class:"v-chip__content"},[((K=o.default)==null?void 0:K.call(o,{isSelected:R==null?void 0:R.isSelected.value,selectedClass:R==null?void 0:R.selectedClass.value,select:R==null?void 0:R.select,toggle:R==null?void 0:R.toggle,value:R==null?void 0:R.value.value,disabled:e.disabled}))??e.text]),L&&createVNode("div",{key:"append",class:"v-chip__append"},[o.append?createVNode(VDefaultsProvider,{key:"append-defaults",disabled:!P,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},o.append):createVNode(Fragment,null,[e.appendIcon&&createVNode(VIcon,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&createVNode(VAvatar,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),F&&createVNode("button",mergeProps({key:"close",class:"v-chip__close",type:"button"},O.value),[o.close?createVNode(VDefaultsProvider,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},o.close):createVNode(VIcon,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}}),[[resolveDirective("ripple"),I.value&&e.ripple,null]])}}}),ListKey=Symbol.for("vuetify:list");function createList(){const e=inject$1(ListKey,{hasPrepend:shallowRef(!1),updateHasPrepend:()=>null}),t={hasPrepend:shallowRef(!1),updateHasPrepend:r=>{r&&(t.hasPrepend.value=r)}};return provide(ListKey,t),e}function useList(){return inject$1(ListKey,null)}const singleOpenStrategy={open:e=>{let{id:t,value:r,opened:a,parents:o}=e;if(r){const u=new Set;u.add(t);let d=o.get(t);for(;d!=null;)u.add(d),d=o.get(d);return u}else return a.delete(t),a},select:()=>null},multipleOpenStrategy={open:e=>{let{id:t,value:r,opened:a,parents:o}=e;if(r){let u=o.get(t);for(a.add(t);u!=null&&u!==t;)a.add(u),u=o.get(u);return a}else a.delete(t);return a},select:()=>null},listOpenStrategy={open:multipleOpenStrategy.open,select:e=>{let{id:t,value:r,opened:a,parents:o}=e;if(!r)return a;const u=[];let d=o.get(t);for(;d!=null;)u.push(d),d=o.get(d);return new Set(u)}},independentSelectStrategy=e=>{const t={select:r=>{let{id:a,value:o,selected:u}=r;if(a=toRaw(a),e&&!o){const d=Array.from(u.entries()).reduce((f,g)=>{let[E,S]=g;return S==="on"?[...f,E]:f},[]);if(d.length===1&&d[0]===a)return u}return u.set(a,o?"on":"off"),u},in:(r,a,o)=>{let u=new Map;for(const d of r||[])u=t.select({id:d,value:!0,selected:new Map(u),children:a,parents:o});return u},out:r=>{const a=[];for(const[o,u]of r.entries())u==="on"&&a.push(o);return a}};return t},independentSingleSelectStrategy=e=>{const t=independentSelectStrategy(e);return{select:a=>{let{selected:o,id:u,...d}=a;u=toRaw(u);const f=o.has(u)?new Map([[u,o.get(u)]]):new Map;return t.select({...d,id:u,selected:f})},in:(a,o,u)=>{let d=new Map;return a!=null&&a.length&&(d=t.in(a.slice(0,1),o,u)),d},out:(a,o,u)=>t.out(a,o,u)}},leafSelectStrategy=e=>{const t=independentSelectStrategy(e);return{select:a=>{let{id:o,selected:u,children:d,...f}=a;return o=toRaw(o),d.has(o)?u:t.select({id:o,selected:u,children:d,...f})},in:t.in,out:t.out}},leafSingleSelectStrategy=e=>{const t=independentSingleSelectStrategy(e);return{select:a=>{let{id:o,selected:u,children:d,...f}=a;return o=toRaw(o),d.has(o)?u:t.select({id:o,selected:u,children:d,...f})},in:t.in,out:t.out}},classicSelectStrategy=e=>{const t={select:r=>{let{id:a,value:o,selected:u,children:d,parents:f}=r;a=toRaw(a);const g=new Map(u),E=[a];for(;E.length;){const b=E.shift();u.set(b,o?"on":"off"),d.has(b)&&E.push(...d.get(b))}let S=f.get(a);for(;S;){const b=d.get(S),v=b.every(T=>u.get(T)==="on"),y=b.every(T=>!u.has(T)||u.get(T)==="off");u.set(S,v?"on":y?"off":"indeterminate"),S=f.get(S)}return e&&!o&&Array.from(u.entries()).reduce((v,y)=>{let[T,C]=y;return C==="on"?[...v,T]:v},[]).length===0?g:u},in:(r,a,o)=>{let u=new Map;for(const d of r||[])u=t.select({id:d,value:!0,selected:new Map(u),children:a,parents:o});return u},out:(r,a)=>{const o=[];for(const[u,d]of r.entries())d==="on"&&!a.has(u)&&o.push(u);return o}};return t},VNestedSymbol=Symbol.for("vuetify:nested"),emptyNested={id:shallowRef(),root:{register:()=>null,unregister:()=>null,parents:ref$1(new Map),children:ref$1(new Map),open:()=>null,openOnSelect:()=>null,select:()=>null,opened:ref$1(new Set),selected:ref$1(new Map),selectedValues:ref$1([])}},makeNestedProps=propsFactory({selectStrategy:[String,Function],openStrategy:[String,Object],opened:Array,selected:Array,mandatory:Boolean},"nested"),useNested=e=>{let t=!1;const r=ref$1(new Map),a=ref$1(new Map),o=useProxiedModel(e,"opened",e.opened,b=>new Set(b),b=>[...b.values()]),u=computed(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single-leaf":return leafSingleSelectStrategy(e.mandatory);case"leaf":return leafSelectStrategy(e.mandatory);case"independent":return independentSelectStrategy(e.mandatory);case"single-independent":return independentSingleSelectStrategy(e.mandatory);case"classic":default:return classicSelectStrategy(e.mandatory)}}),d=computed(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return listOpenStrategy;case"single":return singleOpenStrategy;case"multiple":default:return multipleOpenStrategy}}),f=useProxiedModel(e,"selected",e.selected,b=>u.value.in(b,r.value,a.value),b=>u.value.out(b,r.value,a.value));onBeforeUnmount(()=>{t=!0});function g(b){const v=[];let y=b;for(;y!=null;)v.unshift(y),y=a.value.get(y);return v}const E=getCurrentInstance("nested"),S={id:shallowRef(),root:{opened:o,selected:f,selectedValues:computed(()=>{const b=[];for(const[v,y]of f.value.entries())y==="on"&&b.push(v);return b}),register:(b,v,y)=>{v&&b!==v&&a.value.set(b,v),y&&r.value.set(b,[]),v!=null&&r.value.set(v,[...r.value.get(v)||[],b])},unregister:b=>{if(t)return;r.value.delete(b);const v=a.value.get(b);if(v){const y=r.value.get(v)??[];r.value.set(v,y.filter(T=>T!==b))}a.value.delete(b),o.value.delete(b)},open:(b,v,y)=>{E.emit("click:open",{id:b,value:v,path:g(b),event:y});const T=d.value.open({id:b,value:v,opened:new Set(o.value),children:r.value,parents:a.value,event:y});T&&(o.value=T)},openOnSelect:(b,v,y)=>{const T=d.value.select({id:b,value:v,selected:new Map(f.value),opened:new Set(o.value),children:r.value,parents:a.value,event:y});T&&(o.value=T)},select:(b,v,y)=>{E.emit("click:select",{id:b,value:v,path:g(b),event:y});const T=u.value.select({id:b,value:v,selected:new Map(f.value),children:r.value,parents:a.value,event:y});T&&(f.value=T),S.root.openOnSelect(b,v,y)},children:r,parents:a}};return provide(VNestedSymbol,S),S.root},useNestedItem=(e,t)=>{const r=inject$1(VNestedSymbol,emptyNested),a=Symbol(getUid()),o=computed(()=>e.value!==void 0?e.value:a),u={...r,id:o,open:(d,f)=>r.root.open(o.value,d,f),openOnSelect:(d,f)=>r.root.openOnSelect(o.value,d,f),isOpen:computed(()=>r.root.opened.value.has(o.value)),parent:computed(()=>r.root.parents.value.get(o.value)),select:(d,f)=>r.root.select(o.value,d,f),isSelected:computed(()=>r.root.selected.value.get(toRaw(o.value))==="on"),isIndeterminate:computed(()=>r.root.selected.value.get(o.value)==="indeterminate"),isLeaf:computed(()=>!r.root.children.value.get(o.value)),isGroupActivator:r.isGroupActivator};return!r.isGroupActivator&&r.root.register(o.value,r.id.value,t),onBeforeUnmount(()=>{!r.isGroupActivator&&r.root.unregister(o.value)}),t&&provide(VNestedSymbol,u),u},useNestedGroupActivator=()=>{const e=inject$1(VNestedSymbol,emptyNested);provide(VNestedSymbol,{...e,isGroupActivator:!0})},VListGroupActivator=defineComponent({name:"VListGroupActivator",setup(e,t){let{slots:r}=t;return useNestedGroupActivator(),()=>{var a;return(a=r.default)==null?void 0:a.call(r)}}}),makeVListGroupProps=propsFactory({activeColor:String,baseColor:String,color:String,collapseIcon:{type:IconValue,default:"$collapse"},expandIcon:{type:IconValue,default:"$expand"},prependIcon:IconValue,appendIcon:IconValue,fluid:Boolean,subgroup:Boolean,title:String,value:null,...makeComponentProps(),...makeTagProps()},"VListGroup"),VListGroup=genericComponent()({name:"VListGroup",props:makeVListGroupProps(),setup(e,t){let{slots:r}=t;const{isOpen:a,open:o,id:u}=useNestedItem(toRef(e,"value"),!0),d=computed(()=>`v-list-group--id-${String(u.value)}`),f=useList(),{isBooted:g}=useSsrBoot();function E(y){o(!a.value,y)}const S=computed(()=>({onClick:E,class:"v-list-group__header",id:d.value})),b=computed(()=>a.value?e.collapseIcon:e.expandIcon),v=computed(()=>({VListItem:{active:a.value,activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&b.value,appendIcon:e.appendIcon||!e.subgroup&&b.value,title:e.title,value:e.value}}));return useRender(()=>createVNode(e.tag,{class:["v-list-group",{"v-list-group--prepend":f==null?void 0:f.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":a.value},e.class],style:e.style},{default:()=>[r.activator&&createVNode(VDefaultsProvider,{defaults:v.value},{default:()=>[createVNode(VListGroupActivator,null,{default:()=>[r.activator({props:S.value,isOpen:a.value})]})]}),createVNode(MaybeTransition,{transition:{component:VExpandTransition},disabled:!g.value},{default:()=>{var y;return[withDirectives(createVNode("div",{class:"v-list-group__items",role:"group","aria-labelledby":d.value},[(y=r.default)==null?void 0:y.call(r)]),[[vShow,a.value]])]}})]})),{}}}),VListItemSubtitle=createSimpleFunctional("v-list-item-subtitle"),VListItemTitle=createSimpleFunctional("v-list-item-title"),makeVListItemProps=propsFactory({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:IconValue,baseColor:String,disabled:Boolean,lines:String,link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:IconValue,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,subtitle:[String,Number],title:[String,Number],value:null,onClick:EventProp(),onClickOnce:EventProp(),...makeBorderProps(),...makeComponentProps(),...makeDensityProps(),...makeDimensionProps(),...makeElevationProps(),...makeRoundedProps(),...makeRouterProps(),...makeTagProps(),...makeThemeProps(),...makeVariantProps({variant:"text"})},"VListItem"),VListItem=genericComponent()({name:"VListItem",directives:{Ripple},props:makeVListItemProps(),emits:{click:e=>!0},setup(e,t){let{attrs:r,slots:a,emit:o}=t;const u=useLink(e,r),d=computed(()=>e.value===void 0?u.href.value:e.value),{select:f,isSelected:g,isIndeterminate:E,isGroupActivator:S,root:b,parent:v,openOnSelect:y}=useNestedItem(d,!1),T=useList(),C=computed(()=>{var G;return e.active!==!1&&(e.active||((G=u.isActive)==null?void 0:G.value)||g.value)}),R=computed(()=>e.link!==!1&&u.isLink.value),A=computed(()=>!e.disabled&&e.link!==!1&&(e.link||u.isClickable.value||e.value!=null&&!!T)),N=computed(()=>e.rounded||e.nav),I=computed(()=>e.color??e.activeColor),O=computed(()=>({color:C.value?I.value??e.baseColor:e.baseColor,variant:e.variant}));watch(()=>{var G;return(G=u.isActive)==null?void 0:G.value},G=>{G&&v.value!=null&&b.open(v.value,!0),G&&y(G)},{immediate:!0});const{themeClasses:x}=provideTheme(e),{borderClasses:D}=useBorder(e),{colorClasses:k,colorStyles:P,variantClasses:L}=useVariant(O),{densityClasses:F}=useDensity(e),{dimensionStyles:B}=useDimension(e),{elevationClasses:$}=useElevation(e),{roundedClasses:U}=useRounded(N),z=computed(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),K=computed(()=>({isActive:C.value,select:f,isSelected:g.value,isIndeterminate:E.value}));function Q(G){var j;o("click",G),!(S||!A.value)&&((j=u.navigate)==null||j.call(u,G),e.value!=null&&f(!g.value,G))}function Y(G){(G.key==="Enter"||G.key===" ")&&(G.preventDefault(),Q(G))}return useRender(()=>{const G=R.value?"a":e.tag,j=a.title||e.title!=null,ne=a.subtitle||e.subtitle!=null,ie=!!(e.appendAvatar||e.appendIcon),te=!!(ie||a.append),ue=!!(e.prependAvatar||e.prependIcon),ge=!!(ue||a.prepend);return T==null||T.updateHasPrepend(ge),e.activeColor&&deprecate("active-color",["color","base-color"]),withDirectives(createVNode(G,{class:["v-list-item",{"v-list-item--active":C.value,"v-list-item--disabled":e.disabled,"v-list-item--link":A.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!ge&&(T==null?void 0:T.hasPrepend.value),"v-list-item--slim":e.slim,[`${e.activeClass}`]:e.activeClass&&C.value},x.value,D.value,k.value,F.value,$.value,z.value,U.value,L.value,e.class],style:[P.value,B.value,e.style],href:u.href.value,tabindex:A.value?T?-2:0:void 0,onClick:Q,onKeydown:A.value&&!R.value&&Y},{default:()=>{var Ee;return[genOverlays(A.value||C.value,"v-list-item"),ge&&createVNode("div",{key:"prepend",class:"v-list-item__prepend"},[a.prepend?createVNode(VDefaultsProvider,{key:"prepend-defaults",disabled:!ue,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var ae;return[(ae=a.prepend)==null?void 0:ae.call(a,K.value)]}}):createVNode(Fragment,null,[e.prependAvatar&&createVNode(VAvatar,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&createVNode(VIcon,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),createVNode("div",{class:"v-list-item__spacer"},null)]),createVNode("div",{class:"v-list-item__content","data-no-activator":""},[j&&createVNode(VListItemTitle,{key:"title"},{default:()=>{var ae;return[((ae=a.title)==null?void 0:ae.call(a,{title:e.title}))??e.title]}}),ne&&createVNode(VListItemSubtitle,{key:"subtitle"},{default:()=>{var ae;return[((ae=a.subtitle)==null?void 0:ae.call(a,{subtitle:e.subtitle}))??e.subtitle]}}),(Ee=a.default)==null?void 0:Ee.call(a,K.value)]),te&&createVNode("div",{key:"append",class:"v-list-item__append"},[a.append?createVNode(VDefaultsProvider,{key:"append-defaults",disabled:!ie,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var ae;return[(ae=a.append)==null?void 0:ae.call(a,K.value)]}}):createVNode(Fragment,null,[e.appendIcon&&createVNode(VIcon,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&createVNode(VAvatar,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),createVNode("div",{class:"v-list-item__spacer"},null)])]}}),[[resolveDirective("ripple"),A.value&&e.ripple]])}),{}}}),makeVListSubheaderProps=propsFactory({color:String,inset:Boolean,sticky:Boolean,title:String,...makeComponentProps(),...makeTagProps()},"VListSubheader"),VListSubheader=genericComponent()({name:"VListSubheader",props:makeVListSubheaderProps(),setup(e,t){let{slots:r}=t;const{textColorClasses:a,textColorStyles:o}=useTextColor(toRef(e,"color"));return useRender(()=>{const u=!!(r.default||e.title);return createVNode(e.tag,{class:["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},a.value,e.class],style:[{textColorStyles:o},e.style]},{default:()=>{var d;return[u&&createVNode("div",{class:"v-list-subheader__text"},[((d=r.default)==null?void 0:d.call(r))??e.title])]}})}),{}}}),makeVDividerProps=propsFactory({color:String,inset:Boolean,length:[Number,String],thickness:[Number,String],vertical:Boolean,...makeComponentProps(),...makeThemeProps()},"VDivider"),VDivider=genericComponent()({name:"VDivider",props:makeVDividerProps(),setup(e,t){let{attrs:r}=t;const{themeClasses:a}=provideTheme(e),{textColorClasses:o,textColorStyles:u}=useTextColor(toRef(e,"color")),d=computed(()=>{const f={};return e.length&&(f[e.vertical?"maxHeight":"maxWidth"]=convertToUnit(e.length)),e.thickness&&(f[e.vertical?"borderRightWidth":"borderTopWidth"]=convertToUnit(e.thickness)),f});return useRender(()=>createVNode("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},a.value,o.value,e.class],style:[d.value,u.value,e.style],"aria-orientation":!r.role||r.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${r.role||"separator"}`},null)),{}}}),makeVListChildrenProps=propsFactory({items:Array,returnObject:Boolean},"VListChildren"),VListChildren=genericComponent()({name:"VListChildren",props:makeVListChildrenProps(),setup(e,t){let{slots:r}=t;return createList(),()=>{var a,o;return((a=r.default)==null?void 0:a.call(r))??((o=e.items)==null?void 0:o.map(u=>{var v,y;let{children:d,props:f,type:g,raw:E}=u;if(g==="divider")return((v=r.divider)==null?void 0:v.call(r,{props:f}))??createVNode(VDivider,f,null);if(g==="subheader")return((y=r.subheader)==null?void 0:y.call(r,{props:f}))??createVNode(VListSubheader,f,null);const S={subtitle:r.subtitle?T=>{var C;return(C=r.subtitle)==null?void 0:C.call(r,{...T,item:E})}:void 0,prepend:r.prepend?T=>{var C;return(C=r.prepend)==null?void 0:C.call(r,{...T,item:E})}:void 0,append:r.append?T=>{var C;return(C=r.append)==null?void 0:C.call(r,{...T,item:E})}:void 0,title:r.title?T=>{var C;return(C=r.title)==null?void 0:C.call(r,{...T,item:E})}:void 0},b=VListGroup.filterProps(f);return d?createVNode(VListGroup,mergeProps({value:f==null?void 0:f.value},b),{activator:T=>{let{props:C}=T;const R={...f,...C,value:e.returnObject?E:f.value};return r.header?r.header({props:R}):createVNode(VListItem,R,S)},default:()=>createVNode(VListChildren,{items:d},r)}):r.item?r.item({props:f}):createVNode(VListItem,mergeProps(f,{value:e.returnObject?E:f.value}),S)}))}}}),makeItemsProps=propsFactory({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:deepEqual}},"list-items");function transformItem$3(e,t){const r=getPropertyFromItem(t,e.itemTitle,t),a=getPropertyFromItem(t,e.itemValue,r),o=getPropertyFromItem(t,e.itemChildren),u=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?omit(t,["children"]):t:void 0:getPropertyFromItem(t,e.itemProps),d={title:r,value:a,...u};return{title:String(d.title??""),value:d.value,props:d,children:Array.isArray(o)?transformItems$3(e,o):void 0,raw:t}}function transformItems$3(e,t){const r=[];for(const a of t)r.push(transformItem$3(e,a));return r}function useItems(e){const t=computed(()=>transformItems$3(e,e.items)),r=computed(()=>t.value.some(u=>u.value===null));function a(u){return r.value||(u=u.filter(d=>d!==null)),u.map(d=>e.returnObject&&typeof d=="string"?transformItem$3(e,d):t.value.find(f=>e.valueComparator(d,f.value))||transformItem$3(e,d))}function o(u){return e.returnObject?u.map(d=>{let{raw:f}=d;return f}):u.map(d=>{let{value:f}=d;return f})}return{items:t,transformIn:a,transformOut:o}}function isPrimitive(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function transformItem$2(e,t){const r=getPropertyFromItem(t,e.itemType,"item"),a=isPrimitive(t)?t:getPropertyFromItem(t,e.itemTitle),o=getPropertyFromItem(t,e.itemValue,void 0),u=getPropertyFromItem(t,e.itemChildren),d=e.itemProps===!0?omit(t,["children"]):getPropertyFromItem(t,e.itemProps),f={title:a,value:o,...d};return{type:r,title:f.title,value:f.value,props:f,children:r==="item"&&u?transformItems$2(e,u):void 0,raw:t}}function transformItems$2(e,t){const r=[];for(const a of t)r.push(transformItem$2(e,a));return r}function useListItems(e){return{items:computed(()=>transformItems$2(e,e.items))}}const makeVListProps=propsFactory({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,lines:{type:[Boolean,String],default:"one"},slim:Boolean,nav:Boolean,...makeNestedProps({selectStrategy:"single-leaf",openStrategy:"list"}),...makeBorderProps(),...makeComponentProps(),...makeDensityProps(),...makeDimensionProps(),...makeElevationProps(),itemType:{type:String,default:"type"},...makeItemsProps(),...makeRoundedProps(),...makeTagProps(),...makeThemeProps(),...makeVariantProps({variant:"text"})},"VList"),VList=genericComponent()({name:"VList",props:makeVListProps(),emits:{"update:selected":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:r}=t;const{items:a}=useListItems(e),{themeClasses:o}=provideTheme(e),{backgroundColorClasses:u,backgroundColorStyles:d}=useBackgroundColor(toRef(e,"bgColor")),{borderClasses:f}=useBorder(e),{densityClasses:g}=useDensity(e),{dimensionStyles:E}=useDimension(e),{elevationClasses:S}=useElevation(e),{roundedClasses:b}=useRounded(e),{open:v,select:y}=useNested(e),T=computed(()=>e.lines?`v-list--${e.lines}-line`:void 0),C=toRef(e,"activeColor"),R=toRef(e,"baseColor"),A=toRef(e,"color");createList(),provideDefaults({VListGroup:{activeColor:C,baseColor:R,color:A},VListItem:{activeClass:toRef(e,"activeClass"),activeColor:C,baseColor:R,color:A,density:toRef(e,"density"),disabled:toRef(e,"disabled"),lines:toRef(e,"lines"),nav:toRef(e,"nav"),slim:toRef(e,"slim"),variant:toRef(e,"variant")}});const N=shallowRef(!1),I=ref$1();function O(F){N.value=!0}function x(F){N.value=!1}function D(F){var B;!N.value&&!(F.relatedTarget&&((B=I.value)!=null&&B.contains(F.relatedTarget)))&&L()}function k(F){if(I.value){if(F.key==="ArrowDown")L("next");else if(F.key==="ArrowUp")L("prev");else if(F.key==="Home")L("first");else if(F.key==="End")L("last");else return;F.preventDefault()}}function P(F){N.value=!0}function L(F){if(I.value)return focusChild(I.value,F)}return useRender(()=>createVNode(e.tag,{ref:I,class:["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},o.value,u.value,f.value,g.value,S.value,T.value,b.value,e.class],style:[d.value,E.value,e.style],tabindex:e.disabled||N.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:O,onFocusout:x,onFocus:D,onKeydown:k,onMousedown:P},{default:()=>[createVNode(VListChildren,{items:a.value,returnObject:e.returnObject},r)]})),{open:v,select:y,focus:L}}}),VListImg=createSimpleFunctional("v-list-img"),makeVListItemActionProps=propsFactory({start:Boolean,end:Boolean,...makeComponentProps(),...makeTagProps()},"VListItemAction"),VListItemAction=genericComponent()({name:"VListItemAction",props:makeVListItemActionProps(),setup(e,t){let{slots:r}=t;return useRender(()=>createVNode(e.tag,{class:["v-list-item-action",{"v-list-item-action--start":e.start,"v-list-item-action--end":e.end},e.class],style:e.style},r)),{}}}),makeVListItemMediaProps=propsFactory({start:Boolean,end:Boolean,...makeComponentProps(),...makeTagProps()},"VListItemMedia"),VListItemMedia=genericComponent()({name:"VListItemMedia",props:makeVListItemMediaProps(),setup(e,t){let{slots:r}=t;return useRender(()=>createVNode(e.tag,{class:["v-list-item-media",{"v-list-item-media--start":e.start,"v-list-item-media--end":e.end},e.class],style:e.style},r)),{}}});function elementToViewport(e,t){return{x:e.x+t.x,y:e.y+t.y}}function getOffset$1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function anchorToPoint(e,t){if(e.side==="top"||e.side==="bottom"){const{side:r,align:a}=e,o=a==="left"?0:a==="center"?t.width/2:a==="right"?t.width:a,u=r==="top"?0:r==="bottom"?t.height:r;return elementToViewport({x:o,y:u},t)}else if(e.side==="left"||e.side==="right"){const{side:r,align:a}=e,o=r==="left"?0:r==="right"?t.width:r,u=a==="top"?0:a==="center"?t.height/2:a==="bottom"?t.height:a;return elementToViewport({x:o,y:u},t)}return elementToViewport({x:t.width/2,y:t.height/2},t)}const locationStrategies={static:staticLocationStrategy,connected:connectedLocationStrategy},makeLocationStrategyProps=propsFactory({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in locationStrategies},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function useLocationStrategies(e,t){const r=ref$1({}),a=ref$1();IN_BROWSER&&useToggleScope(()=>!!(t.isActive.value&&e.locationStrategy),u=>{var d,f;watch(()=>e.locationStrategy,u),onScopeDispose(()=>{window.removeEventListener("resize",o),a.value=void 0}),window.addEventListener("resize",o,{passive:!0}),typeof e.locationStrategy=="function"?a.value=(d=e.locationStrategy(t,e,r))==null?void 0:d.updateLocation:a.value=(f=locationStrategies[e.locationStrategy](t,e,r))==null?void 0:f.updateLocation});function o(u){var d;(d=a.value)==null||d.call(a,u)}return{contentStyles:r,updateLocation:a}}function staticLocationStrategy(){}function getIntrinsicSize(e,t){t?e.style.removeProperty("left"):e.style.removeProperty("right");const r=nullifyTransforms(e);return t?r.x+=parseFloat(e.style.right||0):r.x-=parseFloat(e.style.left||0),r.y-=parseFloat(e.style.top||0),r}function connectedLocationStrategy(e,t,r){(Array.isArray(e.target.value)||isFixedPosition(e.target.value))&&Object.assign(r.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:o,preferredOrigin:u}=destructComputed(()=>{const T=parseAnchor(t.location,e.isRtl.value),C=t.origin==="overlap"?T:t.origin==="auto"?flipSide(T):parseAnchor(t.origin,e.isRtl.value);return T.side===C.side&&T.align===flipAlign(C).align?{preferredAnchor:flipCorner(T),preferredOrigin:flipCorner(C)}:{preferredAnchor:T,preferredOrigin:C}}),[d,f,g,E]=["minWidth","minHeight","maxWidth","maxHeight"].map(T=>computed(()=>{const C=parseFloat(t[T]);return isNaN(C)?1/0:C})),S=computed(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const T=t.offset.split(" ").map(parseFloat);return T.length<2&&T.push(0),T}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let b=!1;const v=new ResizeObserver(()=>{b&&y()});watch([e.target,e.contentEl],(T,C)=>{let[R,A]=T,[N,I]=C;N&&!Array.isArray(N)&&v.unobserve(N),R&&!Array.isArray(R)&&v.observe(R),I&&v.unobserve(I),A&&v.observe(A)},{immediate:!0}),onScopeDispose(()=>{v.disconnect()});function y(){if(b=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>b=!0)}),!e.target.value||!e.contentEl.value)return;const T=getTargetBox(e.target.value),C=getIntrinsicSize(e.contentEl.value,e.isRtl.value),R=getScrollParents(e.contentEl.value),A=12;R.length||(R.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(C.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),C.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const N=R.reduce((B,$)=>{const U=$.getBoundingClientRect(),z=new Box({x:$===document.documentElement?0:U.x,y:$===document.documentElement?0:U.y,width:$.clientWidth,height:$.clientHeight});return B?new Box({x:Math.max(B.left,z.left),y:Math.max(B.top,z.top),width:Math.min(B.right,z.right)-Math.max(B.left,z.left),height:Math.min(B.bottom,z.bottom)-Math.max(B.top,z.top)}):z},void 0);N.x+=A,N.y+=A,N.width-=A*2,N.height-=A*2;let I={anchor:o.value,origin:u.value};function O(B){const $=new Box(C),U=anchorToPoint(B.anchor,T),z=anchorToPoint(B.origin,$);let{x:K,y:Q}=getOffset$1(U,z);switch(B.anchor.side){case"top":Q-=S.value[0];break;case"bottom":Q+=S.value[0];break;case"left":K-=S.value[0];break;case"right":K+=S.value[0];break}switch(B.anchor.align){case"top":Q-=S.value[1];break;case"bottom":Q+=S.value[1];break;case"left":K-=S.value[1];break;case"right":K+=S.value[1];break}return $.x+=K,$.y+=Q,$.width=Math.min($.width,g.value),$.height=Math.min($.height,E.value),{overflows:getOverflow($,N),x:K,y:Q}}let x=0,D=0;const k={x:0,y:0},P={x:!1,y:!1};let L=-1;for(;!(L++>10);){const{x:B,y:$,overflows:U}=O(I);x+=B,D+=$,C.x+=B,C.y+=$;{const z=getAxis(I.anchor),K=U.x.before||U.x.after,Q=U.y.before||U.y.after;let Y=!1;if(["x","y"].forEach(G=>{if(G==="x"&&K&&!P.x||G==="y"&&Q&&!P.y){const j={anchor:{...I.anchor},origin:{...I.origin}},ne=G==="x"?z==="y"?flipAlign:flipSide:z==="y"?flipSide:flipAlign;j.anchor=ne(j.anchor),j.origin=ne(j.origin);const{overflows:ie}=O(j);(ie[G].before<=U[G].before&&ie[G].after<=U[G].after||ie[G].before+ie[G].after<(U[G].before+U[G].after)/2)&&(I=j,Y=P[G]=!0)}}),Y)continue}U.x.before&&(x+=U.x.before,C.x+=U.x.before),U.x.after&&(x-=U.x.after,C.x-=U.x.after),U.y.before&&(D+=U.y.before,C.y+=U.y.before),U.y.after&&(D-=U.y.after,C.y-=U.y.after);{const z=getOverflow(C,N);k.x=N.width-z.x.before-z.x.after,k.y=N.height-z.y.before-z.y.after,x+=z.x.before,C.x+=z.x.before,D+=z.y.before,C.y+=z.y.before}break}const F=getAxis(I.anchor);return Object.assign(r.value,{"--v-overlay-anchor-origin":`${I.anchor.side} ${I.anchor.align}`,transformOrigin:`${I.origin.side} ${I.origin.align}`,top:convertToUnit(pixelRound(D)),left:e.isRtl.value?void 0:convertToUnit(pixelRound(x)),right:e.isRtl.value?convertToUnit(pixelRound(-x)):void 0,minWidth:convertToUnit(F==="y"?Math.min(d.value,T.width):d.value),maxWidth:convertToUnit(pixelCeil(clamp(k.x,d.value===1/0?0:d.value,g.value))),maxHeight:convertToUnit(pixelCeil(clamp(k.y,f.value===1/0?0:f.value,E.value)))}),{available:k,contentBox:C}}return watch(()=>[o.value,u.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>y()),nextTick$1(()=>{const T=y();if(!T)return;const{available:C,contentBox:R}=T;R.height>C.y&&requestAnimationFrame(()=>{y(),requestAnimationFrame(()=>{y()})})}),{updateLocation:y}}function pixelRound(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function pixelCeil(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let clean=!0;const frames=[];function requestNewFrame(e){!clean||frames.length?(frames.push(e),run()):(clean=!1,e(),run())}let raf=-1;function run(){cancelAnimationFrame(raf),raf=requestAnimationFrame(()=>{const e=frames.shift();e&&e(),frames.length?run():clean=!0})}const scrollStrategies={none:null,close:closeScrollStrategy,block:blockScrollStrategy,reposition:repositionScrollStrategy},makeScrollStrategyProps=propsFactory({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in scrollStrategies}},"VOverlay-scroll-strategies");function useScrollStrategies(e,t){if(!IN_BROWSER)return;let r;watchEffect(async()=>{r==null||r.stop(),t.isActive.value&&e.scrollStrategy&&(r=effectScope(),await nextTick$1(),r.active&&r.run(()=>{var a;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,r):(a=scrollStrategies[e.scrollStrategy])==null||a.call(scrollStrategies,t,e,r)}))}),onScopeDispose(()=>{r==null||r.stop()})}function closeScrollStrategy(e){function t(r){e.isActive.value=!1}bindScroll(e.targetEl.value??e.contentEl.value,t)}function blockScrollStrategy(e,t){var d;const r=(d=e.root.value)==null?void 0:d.offsetParent,a=[...new Set([...getScrollParents(e.targetEl.value,t.contained?r:void 0),...getScrollParents(e.contentEl.value,t.contained?r:void 0)])].filter(f=>!f.classList.contains("v-overlay-scroll-blocked")),o=window.innerWidth-document.documentElement.offsetWidth,u=(f=>hasScrollbar(f)&&f)(r||document.documentElement);u&&e.root.value.classList.add("v-overlay--scroll-blocked"),a.forEach((f,g)=>{f.style.setProperty("--v-body-scroll-x",convertToUnit(-f.scrollLeft)),f.style.setProperty("--v-body-scroll-y",convertToUnit(-f.scrollTop)),f!==document.documentElement&&f.style.setProperty("--v-scrollbar-offset",convertToUnit(o)),f.classList.add("v-overlay-scroll-blocked")}),onScopeDispose(()=>{a.forEach((f,g)=>{const E=parseFloat(f.style.getPropertyValue("--v-body-scroll-x")),S=parseFloat(f.style.getPropertyValue("--v-body-scroll-y"));f.style.removeProperty("--v-body-scroll-x"),f.style.removeProperty("--v-body-scroll-y"),f.style.removeProperty("--v-scrollbar-offset"),f.classList.remove("v-overlay-scroll-blocked"),f.scrollLeft=-E,f.scrollTop=-S}),u&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function repositionScrollStrategy(e,t,r){let a=!1,o=-1,u=-1;function d(f){requestNewFrame(()=>{var S,b;const g=performance.now();(b=(S=e.updateLocation).value)==null||b.call(S,f),a=(performance.now()-g)/(1e3/60)>2})}u=(typeof requestIdleCallback>"u"?f=>f():requestIdleCallback)(()=>{r.run(()=>{bindScroll(e.targetEl.value??e.contentEl.value,f=>{a?(cancelAnimationFrame(o),o=requestAnimationFrame(()=>{o=requestAnimationFrame(()=>{d(f)})})):d(f)})})}),onScopeDispose(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(u),cancelAnimationFrame(o)})}function bindScroll(e,t){const r=[document,...getScrollParents(e)];r.forEach(a=>{a.addEventListener("scroll",t,{passive:!0})}),onScopeDispose(()=>{r.forEach(a=>{a.removeEventListener("scroll",t)})})}const VMenuSymbol=Symbol.for("vuetify:v-menu"),makeDelayProps=propsFactory({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function useDelay(e,t){let r=()=>{};function a(d){r==null||r();const f=Number(d?e.openDelay:e.closeDelay);return new Promise(g=>{r=defer(f,()=>{t==null||t(d),g(d)})})}function o(){return a(!0)}function u(){return a(!1)}return{clearDelay:r,runOpenDelay:o,runCloseDelay:u}}const makeActivatorProps=propsFactory({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...makeDelayProps()},"VOverlay-activator");function useActivator(e,t){let{isActive:r,isTop:a}=t;const o=getCurrentInstance("useActivator"),u=ref$1();let d=!1,f=!1,g=!0;const E=computed(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),S=computed(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!E.value),{runOpenDelay:b,runCloseDelay:v}=useDelay(e,k=>{k===(e.openOnHover&&d||E.value&&f)&&!(e.openOnHover&&r.value&&!a.value)&&(r.value!==k&&(g=!0),r.value=k)}),y=ref$1(),T={onClick:k=>{k.stopPropagation(),u.value=k.currentTarget||k.target,r.value||(y.value=[k.clientX,k.clientY]),r.value=!r.value},onMouseenter:k=>{var P;(P=k.sourceCapabilities)!=null&&P.firesTouchEvents||(d=!0,u.value=k.currentTarget||k.target,b())},onMouseleave:k=>{d=!1,v()},onFocus:k=>{matchesSelector(k.target,":focus-visible")!==!1&&(f=!0,k.stopPropagation(),u.value=k.currentTarget||k.target,b())},onBlur:k=>{f=!1,k.stopPropagation(),v()}},C=computed(()=>{const k={};return S.value&&(k.onClick=T.onClick),e.openOnHover&&(k.onMouseenter=T.onMouseenter,k.onMouseleave=T.onMouseleave),E.value&&(k.onFocus=T.onFocus,k.onBlur=T.onBlur),k}),R=computed(()=>{const k={};if(e.openOnHover&&(k.onMouseenter=()=>{d=!0,b()},k.onMouseleave=()=>{d=!1,v()}),E.value&&(k.onFocusin=()=>{f=!0,b()},k.onFocusout=()=>{f=!1,v()}),e.closeOnContentClick){const P=inject$1(VMenuSymbol,null);k.onClick=()=>{r.value=!1,P==null||P.closeParents()}}return k}),A=computed(()=>{const k={};return e.openOnHover&&(k.onMouseenter=()=>{g&&(d=!0,g=!1,b())},k.onMouseleave=()=>{d=!1,v()}),k});watch(a,k=>{k&&(e.openOnHover&&!d&&(!E.value||!f)||E.value&&!f&&(!e.openOnHover||!d))&&(r.value=!1)}),watch(r,k=>{k||setTimeout(()=>{y.value=void 0})},{flush:"post"});const N=ref$1();watchEffect(()=>{N.value&&nextTick$1(()=>{u.value=refElement(N.value)})});const I=ref$1(),O=computed(()=>e.target==="cursor"&&y.value?y.value:I.value?refElement(I.value):getTarget(e.target,o)||u.value),x=computed(()=>Array.isArray(O.value)?void 0:O.value);let D;return watch(()=>!!e.activator,k=>{k&&IN_BROWSER?(D=effectScope(),D.run(()=>{_useActivator(e,o,{activatorEl:u,activatorEvents:C})})):D&&D.stop()},{flush:"post",immediate:!0}),onScopeDispose(()=>{D==null||D.stop()}),{activatorEl:u,activatorRef:N,target:O,targetEl:x,targetRef:I,activatorEvents:C,contentEvents:R,scrimEvents:A}}function _useActivator(e,t,r){let{activatorEl:a,activatorEvents:o}=r;watch(()=>e.activator,(g,E)=>{if(E&&g!==E){const S=f(E);S&&d(S)}g&&nextTick$1(()=>u())},{immediate:!0}),watch(()=>e.activatorProps,()=>{u()}),onScopeDispose(()=>{d()});function u(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f(),E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;g&&bindProps(g,mergeProps(o.value,E))}function d(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f(),E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;g&&unbindProps(g,mergeProps(o.value,E))}function f(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const E=getTarget(g,t);return a.value=(E==null?void 0:E.nodeType)===Node.ELEMENT_NODE?E:void 0,a.value}}function getTarget(e,t){var a,o;if(!e)return;let r;if(e==="parent"){let u=(o=(a=t==null?void 0:t.proxy)==null?void 0:a.$el)==null?void 0:o.parentNode;for(;u!=null&&u.hasAttribute("data-no-activator");)u=u.parentNode;r=u}else typeof e=="string"?r=document.querySelector(e):"$el"in e?r=e.$el:r=e;return r}function useHydration(){if(!IN_BROWSER)return shallowRef(!1);const{ssr:e}=useDisplay();if(e){const t=shallowRef(!1);return onMounted(()=>{t.value=!0}),t}else return shallowRef(!0)}const makeLazyProps=propsFactory({eager:Boolean},"lazy");function useLazy(e,t){const r=shallowRef(!1),a=computed(()=>r.value||e.eager||t.value);watch(t,()=>r.value=!0);function o(){e.eager||(r.value=!1)}return{isBooted:r,hasContent:a,onAfterLeave:o}}function useScopeId(){const t=getCurrentInstance("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const StackSymbol=Symbol.for("vuetify:stack"),globalStack=reactive([]);function useStack(e,t,r){const a=getCurrentInstance("useStack"),o=!r,u=inject$1(StackSymbol,void 0),d=reactive({activeChildren:new Set});provide(StackSymbol,d);const f=shallowRef(+t.value);useToggleScope(e,()=>{var b;const S=(b=globalStack.at(-1))==null?void 0:b[1];f.value=S?S+10:+t.value,o&&globalStack.push([a.uid,f.value]),u==null||u.activeChildren.add(a.uid),onScopeDispose(()=>{if(o){const v=toRaw(globalStack).findIndex(y=>y[0]===a.uid);globalStack.splice(v,1)}u==null||u.activeChildren.delete(a.uid)})});const g=shallowRef(!0);o&&watchEffect(()=>{var b;const S=((b=globalStack.at(-1))==null?void 0:b[0])===a.uid;setTimeout(()=>g.value=S)});const E=computed(()=>!d.activeChildren.size);return{globalTop:readonly(g),localTop:E,stackStyles:computed(()=>({zIndex:f.value}))}}function useTeleport(e){return{teleportTarget:computed(()=>{const r=e.value;if(r===!0||!IN_BROWSER)return;const a=r===!1?document.body:typeof r=="string"?document.querySelector(r):r;if(a==null)return;let o=a.querySelector(":scope > .v-overlay-container");return o||(o=document.createElement("div"),o.className="v-overlay-container",a.appendChild(o)),o})}}function defaultConditional(){return!0}function checkEvent(e,t,r){if(!e||checkIsActive(e,r)===!1)return!1;const a=attachedRoot(t);if(typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&a.host===e.target)return!1;const o=(typeof r.value=="object"&&r.value.include||(()=>[]))();return o.push(t),!o.some(u=>u==null?void 0:u.contains(e.target))}function checkIsActive(e,t){return(typeof t.value=="object"&&t.value.closeConditional||defaultConditional)(e)}function directive(e,t,r){const a=typeof r.value=="function"?r.value:r.value.handler;t._clickOutside.lastMousedownWasOutside&&checkEvent(e,t,r)&&setTimeout(()=>{checkIsActive(e,r)&&a&&a(e)},0)}function handleShadow(e,t){const r=attachedRoot(e);t(document),typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&t(r)}const ClickOutside={mounted(e,t){const r=o=>directive(o,e,t),a=o=>{e._clickOutside.lastMousedownWasOutside=checkEvent(o,e,t)};handleShadow(e,o=>{o.addEventListener("click",r,!0),o.addEventListener("mousedown",a,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:r,onMousedown:a}},unmounted(e,t){e._clickOutside&&(handleShadow(e,r=>{var u;if(!r||!((u=e._clickOutside)!=null&&u[t.instance.$.uid]))return;const{onClick:a,onMousedown:o}=e._clickOutside[t.instance.$.uid];r.removeEventListener("click",a,!0),r.removeEventListener("mousedown",o,!0)}),delete e._clickOutside[t.instance.$.uid])}};function Scrim(e){const{modelValue:t,color:r,...a}=e;return createVNode(Transition$1,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&createVNode("div",mergeProps({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},a),null)]})}const makeVOverlayProps=propsFactory({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...makeActivatorProps(),...makeComponentProps(),...makeDimensionProps(),...makeLazyProps(),...makeLocationStrategyProps(),...makeScrollStrategyProps(),...makeThemeProps(),...makeTransitionProps()},"VOverlay"),VOverlay=genericComponent()({name:"VOverlay",directives:{ClickOutside},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...makeVOverlayProps()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterLeave:()=>!0},setup(e,t){let{slots:r,attrs:a,emit:o}=t;const u=useProxiedModel(e,"modelValue"),d=computed({get:()=>u.value,set:ue=>{ue&&e.disabled||(u.value=ue)}}),{teleportTarget:f}=useTeleport(computed(()=>e.attach||e.contained)),{themeClasses:g}=provideTheme(e),{rtlClasses:E,isRtl:S}=useRtl(),{hasContent:b,onAfterLeave:v}=useLazy(e,d),y=useBackgroundColor(computed(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:T,localTop:C,stackStyles:R}=useStack(d,toRef(e,"zIndex"),e._disableGlobalStack),{activatorEl:A,activatorRef:N,target:I,targetEl:O,targetRef:x,activatorEvents:D,contentEvents:k,scrimEvents:P}=useActivator(e,{isActive:d,isTop:C}),{dimensionStyles:L}=useDimension(e),F=useHydration(),{scopeId:B}=useScopeId();watch(()=>e.disabled,ue=>{ue&&(d.value=!1)});const $=ref$1(),U=ref$1(),{contentStyles:z,updateLocation:K}=useLocationStrategies(e,{isRtl:S,contentEl:U,target:I,isActive:d});useScrollStrategies(e,{root:$,contentEl:U,targetEl:O,isActive:d,updateLocation:K});function Q(ue){o("click:outside",ue),e.persistent?ie():d.value=!1}function Y(){return d.value&&T.value}IN_BROWSER&&watch(d,ue=>{ue?window.addEventListener("keydown",G):window.removeEventListener("keydown",G)},{immediate:!0}),onBeforeUnmount(()=>{IN_BROWSER&&window.removeEventListener("keydown",G)});function G(ue){var ge,Ee;ue.key==="Escape"&&T.value&&(e.persistent?ie():(d.value=!1,(ge=U.value)!=null&&ge.contains(document.activeElement)&&((Ee=A.value)==null||Ee.focus())))}const j=useRouter();useToggleScope(()=>e.closeOnBack,()=>{useBackButton(j,ue=>{T.value&&d.value?(ue(!1),e.persistent?ie():d.value=!1):ue()})});const ne=ref$1();watch(()=>d.value&&(e.absolute||e.contained)&&f.value==null,ue=>{if(ue){const ge=getScrollParent($.value);ge&&ge!==document.scrollingElement&&(ne.value=ge.scrollTop)}});function ie(){e.noClickAnimation||U.value&&animate(U.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:standardEasing})}function te(){v(),o("afterLeave")}return useRender(()=>{var ue;return createVNode(Fragment,null,[(ue=r.activator)==null?void 0:ue.call(r,{isActive:d.value,props:mergeProps({ref:N,targetRef:x},D.value,e.activatorProps)}),!e.disabled&&F.value&&b.value&&createVNode(Teleport,{disabled:!f.value,to:f.value},{default:()=>[createVNode("div",mergeProps({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":d.value,"v-overlay--contained":e.contained},g.value,E.value,e.class],style:[R.value,{top:convertToUnit(ne.value)},e.style],ref:$},B,a),[createVNode(Scrim,mergeProps({color:y,modelValue:!!e.scrim&&d.value},P.value),null),createVNode(MaybeTransition,{appear:!0,persisted:!0,transition:e.transition,target:I.value,onAfterLeave:te},{default:()=>{var ge;return[withDirectives(createVNode("div",mergeProps({ref:U,class:["v-overlay__content",e.contentClass],style:[L.value,z.value]},k.value,e.contentProps),[(ge=r.default)==null?void 0:ge.call(r,{isActive:d})]),[[vShow,d.value],[resolveDirective("click-outside"),{handler:Q,closeConditional:Y,include:()=>[A.value]}]])]}})])]})])}),{activatorEl:A,target:I,animateClick:ie,contentEl:U,globalTop:T,localTop:C,updateLocation:K}}}),Refs=Symbol("Forwarded refs");function getDescriptor(e,t){let r=e;for(;r;){const a=Reflect.getOwnPropertyDescriptor(r,t);if(a)return a;r=Object.getPrototypeOf(r)}}function forwardRefs(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return e[Refs]=r,new Proxy(e,{get(o,u){if(Reflect.has(o,u))return Reflect.get(o,u);if(!(typeof u=="symbol"||u.startsWith("$")||u.startsWith("__"))){for(const d of r)if(d.value&&Reflect.has(d.value,u)){const f=Reflect.get(d.value,u);return typeof f=="function"?f.bind(d.value):f}}},has(o,u){if(Reflect.has(o,u))return!0;if(typeof u=="symbol"||u.startsWith("$")||u.startsWith("__"))return!1;for(const d of r)if(d.value&&Reflect.has(d.value,u))return!0;return!1},set(o,u,d){if(Reflect.has(o,u))return Reflect.set(o,u,d);if(typeof u=="symbol"||u.startsWith("$")||u.startsWith("__"))return!1;for(const f of r)if(f.value&&Reflect.has(f.value,u))return Reflect.set(f.value,u,d);return!1},getOwnPropertyDescriptor(o,u){var f;const d=Reflect.getOwnPropertyDescriptor(o,u);if(d)return d;if(!(typeof u=="symbol"||u.startsWith("$")||u.startsWith("__"))){for(const g of r){if(!g.value)continue;const E=getDescriptor(g.value,u)??("_"in g.value?getDescriptor((f=g.value._)==null?void 0:f.setupState,u):void 0);if(E)return E}for(const g of r){const E=g.value&&g.value[Refs];if(!E)continue;const S=E.slice();for(;S.length;){const b=S.shift(),v=getDescriptor(b.value,u);if(v)return v;const y=b.value&&b.value[Refs];y&&S.push(...y)}}}}})}const makeVMenuProps=propsFactory({id:String,...omit(makeVOverlayProps({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:VDialogTransition}}),["absolute"])},"VMenu"),VMenu=genericComponent()({name:"VMenu",props:makeVMenuProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const a=useProxiedModel(e,"modelValue"),{scopeId:o}=useScopeId(),u=getUid(),d=computed(()=>e.id||`v-menu-${u}`),f=ref$1(),g=inject$1(VMenuSymbol,null),E=shallowRef(0);provide(VMenuSymbol,{register(){++E.value},unregister(){--E.value},closeParents(){setTimeout(()=>{E.value||(a.value=!1,g==null||g.closeParents())},40)}});async function S(C){var N,I,O;const R=C.relatedTarget,A=C.target;await nextTick$1(),a.value&&R!==A&&((N=f.value)!=null&&N.contentEl)&&((I=f.value)!=null&&I.globalTop)&&![document,f.value.contentEl].includes(A)&&!f.value.contentEl.contains(A)&&((O=focusableChildren(f.value.contentEl)[0])==null||O.focus())}watch(a,C=>{C?(g==null||g.register(),document.addEventListener("focusin",S,{once:!0})):(g==null||g.unregister(),document.removeEventListener("focusin",S))});function b(){g==null||g.closeParents()}function v(C){var R,A,N;e.disabled||C.key==="Tab"&&(getNextElement(focusableChildren((R=f.value)==null?void 0:R.contentEl,!1),C.shiftKey?"prev":"next",O=>O.tabIndex>=0)||(a.value=!1,(N=(A=f.value)==null?void 0:A.activatorEl)==null||N.focus()))}function y(C){var A;if(e.disabled)return;const R=(A=f.value)==null?void 0:A.contentEl;R&&a.value?C.key==="ArrowDown"?(C.preventDefault(),focusChild(R,"next")):C.key==="ArrowUp"&&(C.preventDefault(),focusChild(R,"prev")):["ArrowDown","ArrowUp"].includes(C.key)&&(a.value=!0,C.preventDefault(),setTimeout(()=>setTimeout(()=>y(C))))}const T=computed(()=>mergeProps({"aria-haspopup":"menu","aria-expanded":String(a.value),"aria-owns":d.value,onKeydown:y},e.activatorProps));return useRender(()=>{const C=VOverlay.filterProps(e);return createVNode(VOverlay,mergeProps({ref:f,class:["v-menu",e.class],style:e.style},C,{modelValue:a.value,"onUpdate:modelValue":R=>a.value=R,absolute:!0,activatorProps:T.value,"onClick:outside":b,onKeydown:v},o),{activator:r.activator,default:function(){for(var R=arguments.length,A=new Array(R),N=0;N<R;N++)A[N]=arguments[N];return createVNode(VDefaultsProvider,{root:"VMenu"},{default:()=>{var I;return[(I=r.default)==null?void 0:I.call(r,...A)]}})}})}),forwardRefs({id:d,ΨopenChildren:E},f)}}),makeVCounterProps=propsFactory({active:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...makeComponentProps(),...makeTransitionProps({transition:{component:VSlideYTransition}})},"VCounter"),VCounter=genericComponent()({name:"VCounter",functional:!0,props:makeVCounterProps(),setup(e,t){let{slots:r}=t;const a=computed(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return useRender(()=>createVNode(MaybeTransition,{transition:e.transition},{default:()=>[withDirectives(createVNode("div",{class:["v-counter",e.class],style:e.style},[r.default?r.default({counter:a.value,max:e.max,value:e.value}):a.value]),[[vShow,e.active]])]})),{}}}),makeVFieldLabelProps=propsFactory({floating:Boolean,...makeComponentProps()},"VFieldLabel"),VFieldLabel=genericComponent()({name:"VFieldLabel",props:makeVFieldLabelProps(),setup(e,t){let{slots:r}=t;return useRender(()=>createVNode(VLabel,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},r)),{}}}),allowedVariants$1=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],makeVFieldProps=propsFactory({appendInnerIcon:IconValue,bgColor:String,clearable:Boolean,clearIcon:{type:IconValue,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:IconValue,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>allowedVariants$1.includes(e)},"onClick:clear":EventProp(),"onClick:appendInner":EventProp(),"onClick:prependInner":EventProp(),...makeComponentProps(),...makeLoaderProps(),...makeRoundedProps(),...makeThemeProps()},"VField"),VField=genericComponent()({name:"VField",inheritAttrs:!1,props:{id:String,...makeFocusProps(),...makeVFieldProps()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:r,emit:a,slots:o}=t;const{themeClasses:u}=provideTheme(e),{loaderClasses:d}=useLoader(e),{focusClasses:f,isFocused:g,focus:E,blur:S}=useFocus(e),{InputIcon:b}=useInputIcon(e),{roundedClasses:v}=useRounded(e),{rtlClasses:y}=useRtl(),T=computed(()=>e.dirty||e.active),C=computed(()=>!e.singleLine&&!!(e.label||o.label)),R=getUid(),A=computed(()=>e.id||`input-${R}`),N=computed(()=>`${A.value}-messages`),I=ref$1(),O=ref$1(),x=ref$1(),D=computed(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:k,backgroundColorStyles:P}=useBackgroundColor(toRef(e,"bgColor")),{textColorClasses:L,textColorStyles:F}=useTextColor(computed(()=>e.error||e.disabled?void 0:T.value&&g.value?e.color:e.baseColor));watch(T,U=>{if(C.value){const z=I.value.$el,K=O.value.$el;requestAnimationFrame(()=>{const Q=nullifyTransforms(z),Y=K.getBoundingClientRect(),G=Y.x-Q.x,j=Y.y-Q.y-(Q.height/2-Y.height/2),ne=Y.width/.75,ie=Math.abs(ne-Q.width)>1?{maxWidth:convertToUnit(ne)}:void 0,te=getComputedStyle(z),ue=getComputedStyle(K),ge=parseFloat(te.transitionDuration)*1e3||150,Ee=parseFloat(ue.getPropertyValue("--v-field-label-scale")),ae=ue.getPropertyValue("color");z.style.visibility="visible",K.style.visibility="hidden",animate(z,{transform:`translate(${G}px, ${j}px) scale(${Ee})`,color:ae,...ie},{duration:ge,easing:standardEasing,direction:U?"normal":"reverse"}).finished.then(()=>{z.style.removeProperty("visibility"),K.style.removeProperty("visibility")})})}},{flush:"post"});const B=computed(()=>({isActive:T,isFocused:g,controlRef:x,blur:S,focus:E}));function $(U){U.target!==document.activeElement&&U.preventDefault()}return useRender(()=>{var G,j,ne;const U=e.variant==="outlined",z=o["prepend-inner"]||e.prependInnerIcon,K=!!(e.clearable||o.clear),Q=!!(o["append-inner"]||e.appendInnerIcon||K),Y=()=>o.label?o.label({...B.value,label:e.label,props:{for:A.value}}):e.label;return createVNode("div",mergeProps({class:["v-field",{"v-field--active":T.value,"v-field--appended":Q,"v-field--center-affix":e.centerAffix??!D.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":z,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!Y(),[`v-field--variant-${e.variant}`]:!0},u.value,k.value,f.value,d.value,v.value,y.value,e.class],style:[P.value,e.style],onClick:$},r),[createVNode("div",{class:"v-field__overlay"},null),createVNode(LoaderSlot,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:o.loader}),z&&createVNode("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&createVNode(b,{key:"prepend-icon",name:"prependInner"},null),(G=o["prepend-inner"])==null?void 0:G.call(o,B.value)]),createVNode("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&C.value&&createVNode(VFieldLabel,{key:"floating-label",ref:O,class:[L.value],floating:!0,for:A.value,style:F.value},{default:()=>[Y()]}),createVNode(VFieldLabel,{ref:I,for:A.value},{default:()=>[Y()]}),(j=o.default)==null?void 0:j.call(o,{...B.value,props:{id:A.value,class:"v-field__input","aria-describedby":N.value},focus:E,blur:S})]),K&&createVNode(VExpandXTransition,{key:"clear"},{default:()=>[withDirectives(createVNode("div",{class:"v-field__clearable",onMousedown:ie=>{ie.preventDefault(),ie.stopPropagation()}},[o.clear?o.clear():createVNode(b,{name:"clear"},null)]),[[vShow,e.dirty]])]}),Q&&createVNode("div",{key:"append",class:"v-field__append-inner"},[(ne=o["append-inner"])==null?void 0:ne.call(o,B.value),e.appendInnerIcon&&createVNode(b,{key:"append-icon",name:"appendInner"},null)]),createVNode("div",{class:["v-field__outline",L.value],style:F.value},[U&&createVNode(Fragment,null,[createVNode("div",{class:"v-field__outline__start"},null),C.value&&createVNode("div",{class:"v-field__outline__notch"},[createVNode(VFieldLabel,{ref:O,floating:!0,for:A.value},{default:()=>[Y()]})]),createVNode("div",{class:"v-field__outline__end"},null)]),D.value&&C.value&&createVNode(VFieldLabel,{ref:O,floating:!0,for:A.value},{default:()=>[Y()]})])])}),{controlRef:x}}});function filterFieldProps(e){const t=Object.keys(VField.props).filter(r=>!isOn(r)&&r!=="class"&&r!=="style");return pick(e,t)}const activeTypes=["color","file","time","date","datetime-local","week","month"],makeVTextFieldProps=propsFactory({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...makeVInputProps(),...makeVFieldProps()},"VTextField"),VTextField=genericComponent()({name:"VTextField",directives:{Intersect},inheritAttrs:!1,props:makeVTextFieldProps(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:r,emit:a,slots:o}=t;const u=useProxiedModel(e,"modelValue"),{isFocused:d,focus:f,blur:g}=useFocus(e),E=computed(()=>typeof e.counterValue=="function"?e.counterValue(u.value):typeof e.counterValue=="number"?e.counterValue:(u.value??"").toString().length),S=computed(()=>{if(r.maxlength)return r.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),b=computed(()=>["plain","underlined"].includes(e.variant));function v(D,k){var P,L;!e.autofocus||!D||(L=(P=k[0].target)==null?void 0:P.focus)==null||L.call(P)}const y=ref$1(),T=ref$1(),C=ref$1(),R=computed(()=>activeTypes.includes(e.type)||e.persistentPlaceholder||d.value||e.active);function A(){var D;C.value!==document.activeElement&&((D=C.value)==null||D.focus()),d.value||f()}function N(D){a("mousedown:control",D),D.target!==C.value&&(A(),D.preventDefault())}function I(D){A(),a("click:control",D)}function O(D){D.stopPropagation(),A(),nextTick$1(()=>{u.value=null,callEvent(e["onClick:clear"],D)})}function x(D){var P;const k=D.target;if(u.value=k.value,(P=e.modelModifiers)!=null&&P.trim&&["text","search","password","tel","url"].includes(e.type)){const L=[k.selectionStart,k.selectionEnd];nextTick$1(()=>{k.selectionStart=L[0],k.selectionEnd=L[1]})}}return useRender(()=>{const D=!!(o.counter||e.counter!==!1&&e.counter!=null),k=!!(D||o.details),[P,L]=filterInputAttrs(r),{modelValue:F,...B}=VInput.filterProps(e),$=filterFieldProps(e);return createVNode(VInput,mergeProps({ref:y,modelValue:u.value,"onUpdate:modelValue":U=>u.value=U,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":b.value},e.class],style:e.style},P,B,{centerAffix:!b.value,focused:d.value}),{...o,default:U=>{let{id:z,isDisabled:K,isDirty:Q,isReadonly:Y,isValid:G}=U;return createVNode(VField,mergeProps({ref:T,onMousedown:N,onClick:I,"onClick:clear":O,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},$,{id:z.value,active:R.value||Q.value,dirty:Q.value||e.dirty,disabled:K.value,focused:d.value,error:G.value===!1}),{...o,default:j=>{let{props:{class:ne,...ie}}=j;const te=withDirectives(createVNode("input",mergeProps({ref:C,value:u.value,onInput:x,autofocus:e.autofocus,readonly:Y.value,disabled:K.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:A,onBlur:g},ie,L),null),[[resolveDirective("intersect"),{handler:v},null,{once:!0}]]);return createVNode(Fragment,null,[e.prefix&&createVNode("span",{class:"v-text-field__prefix"},[createVNode("span",{class:"v-text-field__prefix__text"},[e.prefix])]),o.default?createVNode("div",{class:ne,"data-no-activator":""},[o.default(),te]):cloneVNode(te,{class:ne}),e.suffix&&createVNode("span",{class:"v-text-field__suffix"},[createVNode("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:k?U=>{var z;return createVNode(Fragment,null,[(z=o.details)==null?void 0:z.call(o,U),D&&createVNode(Fragment,null,[createVNode("span",null,null),createVNode(VCounter,{active:e.persistentCounter||d.value,value:E.value,max:S.value},o.counter)])])}:void 0})}),forwardRefs({},y,T,C)}}),makeVVirtualScrollItemProps=propsFactory({renderless:Boolean,...makeComponentProps()},"VVirtualScrollItem"),VVirtualScrollItem=genericComponent()({name:"VVirtualScrollItem",inheritAttrs:!1,props:makeVVirtualScrollItemProps(),emits:{"update:height":e=>!0},setup(e,t){let{attrs:r,emit:a,slots:o}=t;const{resizeRef:u,contentRect:d}=useResizeObserver(void 0,"border");watch(()=>{var f;return(f=d.value)==null?void 0:f.height},f=>{f!=null&&a("update:height",f)}),useRender(()=>{var f,g;return e.renderless?createVNode(Fragment,null,[(f=o.default)==null?void 0:f.call(o,{itemRef:u})]):createVNode("div",mergeProps({ref:u,class:["v-virtual-scroll__item",e.class],style:e.style},r),[(g=o.default)==null?void 0:g.call(o)])})}}),UP=-1,DOWN=1,BUFFER_PX=100,makeVirtualProps=propsFactory({itemHeight:{type:[Number,String],default:null},height:[Number,String]},"virtual");function useVirtual(e,t){const r=useDisplay(),a=shallowRef(0);watchEffect(()=>{a.value=parseFloat(e.itemHeight||0)});const o=shallowRef(0),u=shallowRef(Math.ceil((parseInt(e.height)||r.height.value)/(a.value||16))||1),d=shallowRef(0),f=shallowRef(0),g=ref$1(),E=ref$1();let S=0;const{resizeRef:b,contentRect:v}=useResizeObserver();watchEffect(()=>{b.value=g.value});const y=computed(()=>{var j;return g.value===document.documentElement?r.height.value:((j=v.value)==null?void 0:j.height)||parseInt(e.height)||0}),T=computed(()=>!!(g.value&&E.value&&y.value&&a.value));let C=Array.from({length:t.value.length}),R=Array.from({length:t.value.length});const A=shallowRef(0);let N=-1;function I(j){return C[j]||a.value}const O=debounce(()=>{const j=performance.now();R[0]=0;const ne=t.value.length;for(let ie=1;ie<=ne-1;ie++)R[ie]=(R[ie-1]||0)+I(ie-1);A.value=Math.max(A.value,performance.now()-j)},A),x=watch(T,j=>{j&&(x(),S=E.value.offsetTop,O.immediate(),K(),~N&&nextTick$1(()=>{IN_BROWSER&&window.requestAnimationFrame(()=>{Y(N),N=-1})}))});watch(y,(j,ne)=>{ne&&K()}),onScopeDispose(()=>{O.clear()});function D(j,ne){const ie=C[j],te=a.value;a.value=te?Math.min(a.value,ne):ne,(ie!==ne||te!==a.value)&&(C[j]=ne,O())}function k(j){return j=clamp(j,0,t.value.length-1),R[j]||0}function P(j){return binaryClosest(R,j)}let L=0,F=0,B=0;function $(){if(!g.value||!E.value)return;const j=g.value.scrollTop,ne=performance.now();ne-B>500?(F=Math.sign(j-L),S=E.value.offsetTop):F=j-L,L=j,B=ne,K()}function U(){!g.value||!E.value||(F=0,B=0,K())}let z=-1;function K(){cancelAnimationFrame(z),z=requestAnimationFrame(Q)}function Q(){if(!g.value||!y.value)return;const j=L-S,ne=Math.sign(F),ie=Math.max(0,j-BUFFER_PX),te=clamp(P(ie),0,t.value.length),ue=j+y.value+BUFFER_PX,ge=clamp(P(ue)+1,te+1,t.value.length);if((ne!==UP||te<o.value)&&(ne!==DOWN||ge>u.value)){const Ee=k(o.value)-k(te),ae=k(ge)-k(u.value);Math.max(Ee,ae)>BUFFER_PX?(o.value=te,u.value=ge):(te<=0&&(o.value=te),ge>=t.value.length&&(u.value=ge))}d.value=k(o.value),f.value=k(t.value.length)-k(u.value)}function Y(j){const ne=k(j);!g.value||j&&!ne?N=j:g.value.scrollTop=ne}const G=computed(()=>t.value.slice(o.value,u.value).map((j,ne)=>({raw:j,index:ne+o.value})));return watch(t,()=>{C=Array.from({length:t.value.length}),R=Array.from({length:t.value.length}),O.immediate(),K()},{deep:!0}),{containerRef:g,markerRef:E,computedItems:G,paddingTop:d,paddingBottom:f,scrollToIndex:Y,handleScroll:$,handleScrollend:U,handleItemResize:D}}function binaryClosest(e,t){let r=e.length-1,a=0,o=0,u=null,d=-1;if(e[r]<t)return r;for(;a<=r;)if(o=a+r>>1,u=e[o],u>t)r=o-1;else if(u<t)d=o,a=o+1;else return u===t?o:a;return d}const makeVVirtualScrollProps=propsFactory({items:{type:Array,default:()=>[]},renderless:Boolean,...makeVirtualProps(),...makeComponentProps(),...makeDimensionProps()},"VVirtualScroll"),VVirtualScroll=genericComponent()({name:"VVirtualScroll",props:makeVVirtualScrollProps(),setup(e,t){let{slots:r}=t;const a=getCurrentInstance("VVirtualScroll"),{dimensionStyles:o}=useDimension(e),{containerRef:u,markerRef:d,handleScroll:f,handleScrollend:g,handleItemResize:E,scrollToIndex:S,paddingTop:b,paddingBottom:v,computedItems:y}=useVirtual(e,toRef(e,"items"));return useToggleScope(()=>e.renderless,()=>{function T(){var A,N;const R=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";u.value===document.documentElement?(document[R]("scroll",f,{passive:!0}),document[R]("scrollend",g)):((A=u.value)==null||A[R]("scroll",f,{passive:!0}),(N=u.value)==null||N[R]("scrollend",g))}onMounted(()=>{u.value=getScrollParent(a.vnode.el,!0),T(!0)}),onScopeDispose(T)}),useRender(()=>{const T=y.value.map(C=>createVNode(VVirtualScrollItem,{key:C.index,renderless:e.renderless,"onUpdate:height":R=>E(C.index,R)},{default:R=>{var A;return(A=r.default)==null?void 0:A.call(r,{item:C.raw,index:C.index,...R})}}));return e.renderless?createVNode(Fragment,null,[createVNode("div",{ref:d,class:"v-virtual-scroll__spacer",style:{paddingTop:convertToUnit(b.value)}},null),T,createVNode("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:convertToUnit(v.value)}},null)]):createVNode("div",{ref:u,class:["v-virtual-scroll",e.class],onScrollPassive:f,onScrollend:g,style:[o.value,e.style]},[createVNode("div",{ref:d,class:"v-virtual-scroll__container",style:{paddingTop:convertToUnit(b.value),paddingBottom:convertToUnit(v.value)}},[T])])}),{scrollToIndex:S}}});function useScrolling(e,t){const r=shallowRef(!1);let a;function o(f){cancelAnimationFrame(a),r.value=!0,a=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{r.value=!1})})}async function u(){await new Promise(f=>requestAnimationFrame(f)),await new Promise(f=>requestAnimationFrame(f)),await new Promise(f=>requestAnimationFrame(f)),await new Promise(f=>{if(r.value){const g=watch(r,()=>{g(),f()})}else f()})}async function d(f){var S,b;if(f.key==="Tab"&&((S=t.value)==null||S.focus()),!["PageDown","PageUp","Home","End"].includes(f.key))return;const g=(b=e.value)==null?void 0:b.$el;if(!g)return;(f.key==="Home"||f.key==="End")&&g.scrollTo({top:f.key==="Home"?0:g.scrollHeight,behavior:"smooth"}),await u();const E=g.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(f.key==="PageDown"||f.key==="Home"){const v=g.getBoundingClientRect().top;for(const y of E)if(y.getBoundingClientRect().top>=v){y.focus();break}}else{const v=g.getBoundingClientRect().bottom;for(const y of[...E].reverse())if(y.getBoundingClientRect().bottom<=v){y.focus();break}}}return{onListScroll:o,onListKeydown:d}}const makeSelectProps=propsFactory({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,menu:Boolean,menuIcon:{type:IconValue,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...makeItemsProps({itemChildren:!1})},"Select"),makeVSelectProps=propsFactory({...makeSelectProps(),...omit(makeVTextFieldProps({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...makeTransitionProps({transition:{component:VDialogTransition}})},"VSelect"),VSelect=genericComponent()({name:"VSelect",props:makeVSelectProps(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:r}=t;const{t:a}=useLocale(),o=ref$1(),u=ref$1(),d=ref$1(),f=useProxiedModel(e,"menu"),g=computed({get:()=>f.value,set:G=>{var j;f.value&&!G&&((j=u.value)!=null&&j.ΨopenChildren)||(f.value=G)}}),{items:E,transformIn:S,transformOut:b}=useItems(e),v=useProxiedModel(e,"modelValue",[],G=>S(G===null?[null]:wrapInArray(G)),G=>{const j=b(G);return e.multiple?j:j[0]??null}),y=computed(()=>typeof e.counterValue=="function"?e.counterValue(v.value):typeof e.counterValue=="number"?e.counterValue:v.value.length),T=useForm(),C=computed(()=>v.value.map(G=>G.value)),R=shallowRef(!1),A=computed(()=>g.value?e.closeText:e.openText);let N="",I;const O=computed(()=>e.hideSelected?E.value.filter(G=>!v.value.some(j=>j===G)):E.value),x=computed(()=>e.hideNoData&&!O.value.length||e.readonly||(T==null?void 0:T.isReadonly.value)),D=computed(()=>{var G;return{...e.menuProps,activatorProps:{...((G=e.menuProps)==null?void 0:G.activatorProps)||{},"aria-haspopup":"listbox"}}}),k=ref$1(),{onListScroll:P,onListKeydown:L}=useScrolling(k,o);function F(G){e.openOnClear&&(g.value=!0)}function B(){x.value||(g.value=!g.value)}function $(G){var ue,ge;if(!G.key||e.readonly||T!=null&&T.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(G.key)&&G.preventDefault(),["Enter","ArrowDown"," "].includes(G.key)&&(g.value=!0),["Escape","Tab"].includes(G.key)&&(g.value=!1),G.key==="Home"?(ue=k.value)==null||ue.focus("first"):G.key==="End"&&((ge=k.value)==null||ge.focus("last"));const j=1e3;function ne(Ee){const ae=Ee.key.length===1,ee=!Ee.ctrlKey&&!Ee.metaKey&&!Ee.altKey;return ae&&ee}if(e.multiple||!ne(G))return;const ie=performance.now();ie-I>j&&(N=""),N+=G.key.toLowerCase(),I=ie;const te=E.value.find(Ee=>Ee.title.toLowerCase().startsWith(N));te!==void 0&&(v.value=[te])}function U(G){if(e.multiple){const j=v.value.findIndex(ne=>e.valueComparator(ne.value,G.value));if(j===-1)v.value=[...v.value,G];else{const ne=[...v.value];ne.splice(j,1),v.value=ne}}else v.value=[G],g.value=!1}function z(G){var j;(j=k.value)!=null&&j.$el.contains(G.relatedTarget)||(g.value=!1)}function K(){var G;R.value&&((G=o.value)==null||G.focus())}function Q(G){R.value=!0}function Y(G){if(G==null)v.value=[];else if(matchesSelector(o.value,":autofill")||matchesSelector(o.value,":-webkit-autofill")){const j=E.value.find(ne=>ne.title===G);j&&U(j)}else o.value&&(o.value.value="")}return watch(g,()=>{if(!e.hideSelected&&g.value&&v.value.length){const G=O.value.findIndex(j=>v.value.some(ne=>e.valueComparator(ne.value,j.value)));IN_BROWSER&&window.requestAnimationFrame(()=>{var j;G>=0&&((j=d.value)==null||j.scrollToIndex(G))})}}),watch(O,(G,j)=>{R.value&&(!G.length&&e.hideNoData&&(g.value=!1),!j.length&&G.length&&(g.value=!0))}),useRender(()=>{const G=!!(e.chips||r.chip),j=!!(!e.hideNoData||O.value.length||r["prepend-item"]||r["append-item"]||r["no-data"]),ne=v.value.length>0,ie=VTextField.filterProps(e),te=ne||!R.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return createVNode(VTextField,mergeProps({ref:o},ie,{modelValue:v.value.map(ue=>ue.props.value).join(", "),"onUpdate:modelValue":Y,focused:R.value,"onUpdate:focused":ue=>R.value=ue,validationValue:v.externalValue,counterValue:y.value,dirty:ne,class:["v-select",{"v-select--active-menu":g.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":v.value.length,"v-select--selection-slot":!!r.selection},e.class],style:e.style,inputmode:"none",placeholder:te,"onClick:clear":F,"onMousedown:control":B,onBlur:z,onKeydown:$,"aria-label":a(A.value),title:a(A.value)}),{...r,default:()=>createVNode(Fragment,null,[createVNode(VMenu,mergeProps({ref:u,modelValue:g.value,"onUpdate:modelValue":ue=>g.value=ue,activator:"parent",contentClass:"v-select__content",disabled:x.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:K},D.value),{default:()=>[j&&createVNode(VList,{ref:k,selected:C.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:ue=>ue.preventDefault(),onKeydown:L,onFocusin:Q,onScrollPassive:P,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},{default:()=>{var ue,ge,Ee;return[(ue=r["prepend-item"])==null?void 0:ue.call(r),!O.value.length&&!e.hideNoData&&(((ge=r["no-data"])==null?void 0:ge.call(r))??createVNode(VListItem,{title:a(e.noDataText)},null)),createVNode(VVirtualScroll,{ref:d,renderless:!0,items:O.value},{default:ae=>{var Se;let{item:ee,index:oe,itemRef:ce}=ae;const se=mergeProps(ee.props,{ref:ce,key:oe,onClick:()=>U(ee)});return((Se=r.item)==null?void 0:Se.call(r,{item:ee,index:oe,props:se}))??createVNode(VListItem,mergeProps(se,{role:"option"}),{prepend:W=>{let{isSelected:Z}=W;return createVNode(Fragment,null,[e.multiple&&!e.hideSelected?createVNode(VCheckboxBtn,{key:ee.value,modelValue:Z,ripple:!1,tabindex:"-1"},null):void 0,ee.props.prependAvatar&&createVNode(VAvatar,{image:ee.props.prependAvatar},null),ee.props.prependIcon&&createVNode(VIcon,{icon:ee.props.prependIcon},null)])}})}}),(Ee=r["append-item"])==null?void 0:Ee.call(r)]}})]}),v.value.map((ue,ge)=>{function Ee(ce){ce.stopPropagation(),ce.preventDefault(),U(ue)}const ae={"onClick:close":Ee,onMousedown(ce){ce.preventDefault(),ce.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},ee=G?!!r.chip:!!r.selection,oe=ee?ensureValidVNode(G?r.chip({item:ue,index:ge,props:ae}):r.selection({item:ue,index:ge})):void 0;if(!(ee&&!oe))return createVNode("div",{key:ue.value,class:"v-select__selection"},[G?r.chip?createVNode(VDefaultsProvider,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:ue.title}}},{default:()=>[oe]}):createVNode(VChip,mergeProps({key:"chip",closable:e.closableChips,size:"small",text:ue.title,disabled:ue.props.disabled},ae),null):oe??createVNode("span",{class:"v-select__selection-text"},[ue.title,e.multiple&&ge<v.value.length-1&&createVNode("span",{class:"v-select__selection-comma"},[createTextVNode(",")])])])})]),"append-inner":function(){var ae;for(var ue=arguments.length,ge=new Array(ue),Ee=0;Ee<ue;Ee++)ge[Ee]=arguments[Ee];return createVNode(Fragment,null,[(ae=r["append-inner"])==null?void 0:ae.call(r,...ge),e.menuIcon?createVNode(VIcon,{class:"v-select__menu-icon",icon:e.menuIcon},null):void 0])}})}),forwardRefs({isFocused:R,menu:g,select:U},o)}}),defaultFilter=(e,t,r)=>e==null||t==null?-1:e.toString().toLocaleLowerCase().indexOf(t.toString().toLocaleLowerCase()),makeFilterProps=propsFactory({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function filterItems(e,t,r){var f;const a=[],o=(r==null?void 0:r.default)??defaultFilter,u=r!=null&&r.filterKeys?wrapInArray(r.filterKeys):!1,d=Object.keys((r==null?void 0:r.customKeyFilter)??{}).length;if(!(e!=null&&e.length))return a;e:for(let g=0;g<e.length;g++){const[E,S=E]=wrapInArray(e[g]),b={},v={};let y=-1;if(t&&!(r!=null&&r.noFilter)){if(typeof E=="object"){const R=u||Object.keys(S);for(const A of R){const N=getPropertyFromItem(S,A,S),I=(f=r==null?void 0:r.customKeyFilter)==null?void 0:f[A];if(y=I?I(N,t,E):o(N,t,E),y!==-1&&y!==!1)I?b[A]=y:v[A]=y;else if((r==null?void 0:r.filterMode)==="every")continue e}}else y=o(E,t,E),y!==-1&&y!==!1&&(v.title=y);const T=Object.keys(v).length,C=Object.keys(b).length;if(!T&&!C||(r==null?void 0:r.filterMode)==="union"&&C!==d&&!T||(r==null?void 0:r.filterMode)==="intersection"&&(C!==d||!T))continue}a.push({index:g,matches:{...v,...b}})}return a}function useFilter(e,t,r,a){const o=ref$1([]),u=ref$1(new Map),d=computed(()=>a!=null&&a.transform?unref(t).map(g=>[g,a.transform(g)]):unref(t));watchEffect(()=>{const g=typeof r=="function"?r():unref(r),E=typeof g!="string"&&typeof g!="number"?"":String(g),S=filterItems(d.value,E,{customKeyFilter:{...e.customKeyFilter,...unref(a==null?void 0:a.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),b=unref(t),v=[],y=new Map;S.forEach(T=>{let{index:C,matches:R}=T;const A=b[C];v.push(A),y.set(A.value,R)}),o.value=v,u.value=y});function f(g){return u.value.get(g.value)}return{filteredItems:o,filteredMatches:u,getMatches:f}}function highlightResult$1(e,t,r){if(t==null)return e;if(Array.isArray(t))throw new Error("Multiple matches is not implemented");return typeof t=="number"&&~t?createVNode(Fragment,null,[createVNode("span",{class:"v-autocomplete__unmask"},[e.substr(0,t)]),createVNode("span",{class:"v-autocomplete__mask"},[e.substr(t,r)]),createVNode("span",{class:"v-autocomplete__unmask"},[e.substr(t+r)])]):e}const makeVAutocompleteProps=propsFactory({autoSelectFirst:{type:[Boolean,String]},search:String,...makeFilterProps({filterKeys:["title"]}),...makeSelectProps(),...omit(makeVTextFieldProps({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...makeTransitionProps({transition:!1})},"VAutocomplete"),VAutocomplete=genericComponent()({name:"VAutocomplete",props:makeVAutocompleteProps(),emits:{"update:focused":e=>!0,"update:search":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:r}=t;const{t:a}=useLocale(),o=ref$1(),u=shallowRef(!1),d=shallowRef(!0),f=shallowRef(!1),g=ref$1(),E=ref$1(),S=useProxiedModel(e,"menu"),b=computed({get:()=>S.value,set:oe=>{var ce;S.value&&!oe&&((ce=g.value)!=null&&ce.ΨopenChildren)||(S.value=oe)}}),v=shallowRef(-1),y=computed(()=>{var oe;return(oe=o.value)==null?void 0:oe.color}),T=computed(()=>b.value?e.closeText:e.openText),{items:C,transformIn:R,transformOut:A}=useItems(e),{textColorClasses:N,textColorStyles:I}=useTextColor(y),O=useProxiedModel(e,"search",""),x=useProxiedModel(e,"modelValue",[],oe=>R(oe===null?[null]:wrapInArray(oe)),oe=>{const ce=A(oe);return e.multiple?ce:ce[0]??null}),D=computed(()=>typeof e.counterValue=="function"?e.counterValue(x.value):typeof e.counterValue=="number"?e.counterValue:x.value.length),k=useForm(),{filteredItems:P,getMatches:L}=useFilter(e,C,()=>d.value?"":O.value),F=computed(()=>e.hideSelected?P.value.filter(oe=>!x.value.some(ce=>ce.value===oe.value)):P.value),B=computed(()=>x.value.map(oe=>oe.props.value)),$=computed(()=>{var ce;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&O.value===((ce=F.value[0])==null?void 0:ce.title))&&F.value.length>0&&!d.value&&!f.value}),U=computed(()=>e.hideNoData&&!F.value.length||e.readonly||(k==null?void 0:k.isReadonly.value)),z=ref$1(),{onListScroll:K,onListKeydown:Q}=useScrolling(z,o);function Y(oe){e.openOnClear&&(b.value=!0),O.value=""}function G(){U.value||(b.value=!0)}function j(oe){U.value||(u.value&&(oe.preventDefault(),oe.stopPropagation()),b.value=!b.value)}function ne(oe){var Se,W,Z;if(e.readonly||k!=null&&k.isReadonly.value)return;const ce=o.value.selectionStart,se=x.value.length;if((v.value>-1||["Enter","ArrowDown","ArrowUp"].includes(oe.key))&&oe.preventDefault(),["Enter","ArrowDown"].includes(oe.key)&&(b.value=!0),["Escape"].includes(oe.key)&&(b.value=!1),$.value&&["Enter","Tab"].includes(oe.key)&&ee(F.value[0]),oe.key==="ArrowDown"&&$.value&&((Se=z.value)==null||Se.focus("next")),!!e.multiple){if(["Backspace","Delete"].includes(oe.key)){if(v.value<0){oe.key==="Backspace"&&!O.value&&(v.value=se-1);return}const J=v.value,de=x.value[v.value];de&&!de.props.disabled&&ee(de),v.value=J>=se-1?se-2:J}if(oe.key==="ArrowLeft"){if(v.value<0&&ce>0)return;const J=v.value>-1?v.value-1:se-1;x.value[J]?v.value=J:(v.value=-1,o.value.setSelectionRange((W=O.value)==null?void 0:W.length,(Z=O.value)==null?void 0:Z.length))}if(oe.key==="ArrowRight"){if(v.value<0)return;const J=v.value+1;x.value[J]?v.value=J:(v.value=-1,o.value.setSelectionRange(0,0))}}}function ie(oe){if(matchesSelector(o.value,":autofill")||matchesSelector(o.value,":-webkit-autofill")){const ce=C.value.find(se=>se.title===oe.target.value);ce&&ee(ce)}}function te(){var oe;u.value&&(d.value=!0,(oe=o.value)==null||oe.focus())}function ue(oe){u.value=!0,setTimeout(()=>{f.value=!0})}function ge(oe){f.value=!1}function Ee(oe){(oe==null||oe===""&&!e.multiple)&&(x.value=[])}const ae=shallowRef(!1);function ee(oe){let ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!oe.props.disabled)if(e.multiple){const se=x.value.findIndex(Se=>e.valueComparator(Se.value,oe.value));if(se===-1)x.value=[...x.value,oe];else{const Se=[...x.value];Se.splice(se,1),x.value=Se}}else x.value=ce?[oe]:[],ae.value=!0,O.value=ce?oe.title:"",b.value=!1,d.value=!0,nextTick$1(()=>ae.value=!1)}return watch(u,(oe,ce)=>{var se;oe!==ce&&(oe?(ae.value=!0,O.value=e.multiple?"":String(((se=x.value.at(-1))==null?void 0:se.props.title)??""),d.value=!0,nextTick$1(()=>ae.value=!1)):(!e.multiple&&O.value==null?x.value=[]:$.value&&!f.value&&!x.value.some(Se=>{let{value:W}=Se;return W===F.value[0].value})&&ee(F.value[0]),b.value=!1,O.value="",v.value=-1))}),watch(O,oe=>{!u.value||ae.value||(oe&&(b.value=!0),d.value=!oe)}),watch(b,()=>{if(!e.hideSelected&&b.value&&x.value.length){const oe=F.value.findIndex(ce=>x.value.some(se=>ce.value===se.value));IN_BROWSER&&window.requestAnimationFrame(()=>{var ce;oe>=0&&((ce=E.value)==null||ce.scrollToIndex(oe))})}}),watch(F,(oe,ce)=>{u.value&&(!oe.length&&e.hideNoData&&(b.value=!1),!ce.length&&oe.length&&(b.value=!0))}),useRender(()=>{const oe=!!(e.chips||r.chip),ce=!!(!e.hideNoData||F.value.length||r["prepend-item"]||r["append-item"]||r["no-data"]),se=x.value.length>0,Se=VTextField.filterProps(e);return createVNode(VTextField,mergeProps({ref:o},Se,{modelValue:O.value,"onUpdate:modelValue":[W=>O.value=W,Ee],focused:u.value,"onUpdate:focused":W=>u.value=W,validationValue:x.externalValue,counterValue:D.value,dirty:se,onChange:ie,class:["v-autocomplete",`v-autocomplete--${e.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":b.value,"v-autocomplete--chips":!!e.chips,"v-autocomplete--selection-slot":!!r.selection,"v-autocomplete--selecting-index":v.value>-1},e.class],style:e.style,readonly:e.readonly,placeholder:se?void 0:e.placeholder,"onClick:clear":Y,"onMousedown:control":G,onKeydown:ne}),{...r,default:()=>createVNode(Fragment,null,[createVNode(VMenu,mergeProps({ref:g,modelValue:b.value,"onUpdate:modelValue":W=>b.value=W,activator:"parent",contentClass:"v-autocomplete__content",disabled:U.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:te},e.menuProps),{default:()=>[ce&&createVNode(VList,{ref:z,selected:B.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:W=>W.preventDefault(),onKeydown:Q,onFocusin:ue,onFocusout:ge,onScrollPassive:K,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},{default:()=>{var W,Z,J;return[(W=r["prepend-item"])==null?void 0:W.call(r),!F.value.length&&!e.hideNoData&&(((Z=r["no-data"])==null?void 0:Z.call(r))??createVNode(VListItem,{title:a(e.noDataText)},null)),createVNode(VVirtualScroll,{ref:E,renderless:!0,items:F.value},{default:de=>{var Re;let{item:fe,index:be,itemRef:Te}=de;const he=mergeProps(fe.props,{ref:Te,key:be,active:$.value&&be===0?!0:void 0,onClick:()=>ee(fe)});return((Re=r.item)==null?void 0:Re.call(r,{item:fe,index:be,props:he}))??createVNode(VListItem,he,{prepend:_e=>{let{isSelected:ye}=_e;return createVNode(Fragment,null,[e.multiple&&!e.hideSelected?createVNode(VCheckboxBtn,{key:fe.value,modelValue:ye,ripple:!1,tabindex:"-1"},null):void 0,fe.props.prependAvatar&&createVNode(VAvatar,{image:fe.props.prependAvatar},null),fe.props.prependIcon&&createVNode(VIcon,{icon:fe.props.prependIcon},null)])},title:()=>{var _e,ye;return d.value?fe.title:highlightResult$1(fe.title,(_e=L(fe))==null?void 0:_e.title,((ye=O.value)==null?void 0:ye.length)??0)}})}}),(J=r["append-item"])==null?void 0:J.call(r)]}})]}),x.value.map((W,Z)=>{function J(Te){Te.stopPropagation(),Te.preventDefault(),ee(W,!1)}const de={"onClick:close":J,onMousedown(Te){Te.preventDefault(),Te.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},fe=oe?!!r.chip:!!r.selection,be=fe?ensureValidVNode(oe?r.chip({item:W,index:Z,props:de}):r.selection({item:W,index:Z})):void 0;if(!(fe&&!be))return createVNode("div",{key:W.value,class:["v-autocomplete__selection",Z===v.value&&["v-autocomplete__selection--selected",N.value]],style:Z===v.value?I.value:{}},[oe?r.chip?createVNode(VDefaultsProvider,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:W.title}}},{default:()=>[be]}):createVNode(VChip,mergeProps({key:"chip",closable:e.closableChips,size:"small",text:W.title,disabled:W.props.disabled},de),null):be??createVNode("span",{class:"v-autocomplete__selection-text"},[W.title,e.multiple&&Z<x.value.length-1&&createVNode("span",{class:"v-autocomplete__selection-comma"},[createTextVNode(",")])])])})]),"append-inner":function(){var de;for(var W=arguments.length,Z=new Array(W),J=0;J<W;J++)Z[J]=arguments[J];return createVNode(Fragment,null,[(de=r["append-inner"])==null?void 0:de.call(r,...Z),e.menuIcon?createVNode(VIcon,{class:"v-autocomplete__menu-icon",icon:e.menuIcon,onMousedown:j,onClick:noop,"aria-label":a(T.value),title:a(T.value)},null):void 0])}})}),forwardRefs({isFocused:u,isPristine:d,menu:b,search:O,filteredItems:P,select:ee},o)}}),makeVBadgeProps=propsFactory({bordered:Boolean,color:String,content:[Number,String],dot:Boolean,floating:Boolean,icon:IconValue,inline:Boolean,label:{type:String,default:"$vuetify.badge"},max:[Number,String],modelValue:{type:Boolean,default:!0},offsetX:[Number,String],offsetY:[Number,String],textColor:String,...makeComponentProps(),...makeLocationProps({location:"top end"}),...makeRoundedProps(),...makeTagProps(),...makeThemeProps(),...makeTransitionProps({transition:"scale-rotate-transition"})},"VBadge"),VBadge=genericComponent()({name:"VBadge",inheritAttrs:!1,props:makeVBadgeProps(),setup(e,t){const{backgroundColorClasses:r,backgroundColorStyles:a}=useBackgroundColor(toRef(e,"color")),{roundedClasses:o}=useRounded(e),{t:u}=useLocale(),{textColorClasses:d,textColorStyles:f}=useTextColor(toRef(e,"textColor")),{themeClasses:g}=useTheme(),{locationStyles:E}=useLocation(e,!0,S=>(e.floating?e.dot?2:4:e.dot?8:12)+(["top","bottom"].includes(S)?+(e.offsetY??0):["left","right"].includes(S)?+(e.offsetX??0):0));return useRender(()=>{const S=Number(e.content),b=!e.max||isNaN(S)?e.content:S<=+e.max?S:`${e.max}+`,[v,y]=pickWithRest(t.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return createVNode(e.tag,mergeProps({class:["v-badge",{"v-badge--bordered":e.bordered,"v-badge--dot":e.dot,"v-badge--floating":e.floating,"v-badge--inline":e.inline},e.class]},y,{style:e.style}),{default:()=>{var T,C;return[createVNode("div",{class:"v-badge__wrapper"},[(C=(T=t.slots).default)==null?void 0:C.call(T),createVNode(MaybeTransition,{transition:e.transition},{default:()=>{var R,A;return[withDirectives(createVNode("span",mergeProps({class:["v-badge__badge",g.value,r.value,o.value,d.value],style:[a.value,f.value,e.inline?{}:E.value],"aria-atomic":"true","aria-label":u(e.label,S),"aria-live":"polite",role:"status"},v),[e.dot?void 0:t.slots.badge?(A=(R=t.slots).badge)==null?void 0:A.call(R):e.icon?createVNode(VIcon,{icon:e.icon},null):b]),[[vShow,e.modelValue]])]}})])]}})}),{}}}),makeVBannerActionsProps=propsFactory({color:String,density:String,...makeComponentProps()},"VBannerActions"),VBannerActions=genericComponent()({name:"VBannerActions",props:makeVBannerActionsProps(),setup(e,t){let{slots:r}=t;return provideDefaults({VBtn:{color:e.color,density:e.density,slim:!0,variant:"text"}}),useRender(()=>{var a;return createVNode("div",{class:["v-banner-actions",e.class],style:e.style},[(a=r.default)==null?void 0:a.call(r)])}),{}}}),VBannerText=createSimpleFunctional("v-banner-text"),makeVBannerProps=propsFactory({avatar:String,bgColor:String,color:String,icon:IconValue,lines:String,stacked:Boolean,sticky:Boolean,text:String,...makeBorderProps(),...makeComponentProps(),...makeDensityProps(),...makeDimensionProps(),...makeDisplayProps(),...makeElevationProps(),...makeLocationProps(),...makePositionProps(),...makeRoundedProps(),...makeTagProps(),...makeThemeProps()},"VBanner"),VBanner=genericComponent()({name:"VBanner",props:makeVBannerProps(),setup(e,t){let{slots:r}=t;const{backgroundColorClasses:a,backgroundColorStyles:o}=useBackgroundColor(e,"bgColor"),{borderClasses:u}=useBorder(e),{densityClasses:d}=useDensity(e),{displayClasses:f,mobile:g}=useDisplay(e),{dimensionStyles:E}=useDimension(e),{elevationClasses:S}=useElevation(e),{locationStyles:b}=useLocation(e),{positionClasses:v}=usePosition(e),{roundedClasses:y}=useRounded(e),{themeClasses:T}=provideTheme(e),C=toRef(e,"color"),R=toRef(e,"density");provideDefaults({VBannerActions:{color:C,density:R}}),useRender(()=>{const A=!!(e.text||r.text),N=!!(e.avatar||e.icon),I=!!(N||r.prepend);return createVNode(e.tag,{class:["v-banner",{"v-banner--stacked":e.stacked||g.value,"v-banner--sticky":e.sticky,[`v-banner--${e.lines}-line`]:!!e.lines},T.value,a.value,u.value,d.value,f.value,S.value,v.value,y.value,e.class],style:[o.value,E.value,b.value,e.style],role:"banner"},{default:()=>{var O;return[I&&createVNode("div",{key:"prepend",class:"v-banner__prepend"},[r.prepend?createVNode(VDefaultsProvider,{key:"prepend-defaults",disabled:!N,defaults:{VAvatar:{color:C.value,density:R.value,icon:e.icon,image:e.avatar}}},r.prepend):createVNode(VAvatar,{key:"prepend-avatar",color:C.value,density:R.value,icon:e.icon,image:e.avatar},null)]),createVNode("div",{class:"v-banner__content"},[A&&createVNode(VBannerText,{key:"text"},{default:()=>{var x;return[((x=r.text)==null?void 0:x.call(r))??e.text]}}),(O=r.default)==null?void 0:O.call(r)]),r.actions&&createVNode(VBannerActions,{key:"actions"},r.actions)]}})})}}),makeVBottomNavigationProps=propsFactory({bgColor:String,color:String,grow:Boolean,mode:{type:String,validator:e=>!e||["horizontal","shift"].includes(e)},height:{type:[Number,String],default:56},active:{type:Boolean,default:!0},...makeBorderProps(),...makeComponentProps(),...makeDensityProps(),...makeElevationProps(),...makeRoundedProps(),...makeLayoutItemProps({name:"bottom-navigation"}),...makeTagProps({tag:"header"}),...makeGroupProps({modelValue:!0,selectedClass:"v-btn--selected"}),...makeThemeProps()},"VBottomNavigation"),VBottomNavigation=genericComponent()({name:"VBottomNavigation",props:makeVBottomNavigationProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const{themeClasses:a}=useTheme(),{borderClasses:o}=useBorder(e),{backgroundColorClasses:u,backgroundColorStyles:d}=useBackgroundColor(toRef(e,"bgColor")),{densityClasses:f}=useDensity(e),{elevationClasses:g}=useElevation(e),{roundedClasses:E}=useRounded(e),{ssrBootStyles:S}=useSsrBoot(),b=computed(()=>Number(e.height)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0)),v=toRef(e,"active"),{layoutItemStyles:y}=useLayoutItem({id:e.name,order:computed(()=>parseInt(e.order,10)),position:computed(()=>"bottom"),layoutSize:computed(()=>v.value?b.value:0),elementSize:b,active:v,absolute:toRef(e,"absolute")});return useGroup(e,VBtnToggleSymbol),provideDefaults({VBtn:{color:toRef(e,"color"),density:toRef(e,"density"),stacked:computed(()=>e.mode!=="horizontal"),variant:"text"}},{scoped:!0}),useRender(()=>createVNode(e.tag,{class:["v-bottom-navigation",{"v-bottom-navigation--active":v.value,"v-bottom-navigation--grow":e.grow,"v-bottom-navigation--shift":e.mode==="shift"},a.value,u.value,o.value,f.value,g.value,E.value,e.class],style:[d.value,y.value,{height:convertToUnit(b.value),transform:`translateY(${convertToUnit(v.value?0:100,"%")})`},S.value,e.style]},{default:()=>[r.default&&createVNode("div",{class:"v-bottom-navigation__content"},[r.default()])]})),{}}}),makeVDialogProps=propsFactory({fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...makeVOverlayProps({origin:"center center",scrollStrategy:"block",transition:{component:VDialogTransition},zIndex:2400})},"VDialog"),VDialog=genericComponent()({name:"VDialog",props:makeVDialogProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const a=useProxiedModel(e,"modelValue"),{scopeId:o}=useScopeId(),u=ref$1();function d(g){var b,v;const E=g.relatedTarget,S=g.target;if(E!==S&&((b=u.value)!=null&&b.contentEl)&&((v=u.value)!=null&&v.globalTop)&&![document,u.value.contentEl].includes(S)&&!u.value.contentEl.contains(S)){const y=focusableChildren(u.value.contentEl);if(!y.length)return;const T=y[0],C=y[y.length-1];E===T?C.focus():T.focus()}}IN_BROWSER&&watch(()=>a.value&&e.retainFocus,g=>{g?document.addEventListener("focusin",d):document.removeEventListener("focusin",d)},{immediate:!0}),watch(a,async g=>{var E,S;await nextTick$1(),g?(E=u.value.contentEl)==null||E.focus({preventScroll:!0}):(S=u.value.activatorEl)==null||S.focus({preventScroll:!0})});const f=computed(()=>mergeProps({"aria-haspopup":"dialog","aria-expanded":String(a.value)},e.activatorProps));return useRender(()=>{const g=VOverlay.filterProps(e);return createVNode(VOverlay,mergeProps({ref:u,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},g,{modelValue:a.value,"onUpdate:modelValue":E=>a.value=E,"aria-modal":"true",activatorProps:f.value,role:"dialog"},o),{activator:r.activator,default:function(){for(var E=arguments.length,S=new Array(E),b=0;b<E;b++)S[b]=arguments[b];return createVNode(VDefaultsProvider,{root:"VDialog"},{default:()=>{var v;return[(v=r.default)==null?void 0:v.call(r,...S)]}})}})}),forwardRefs({},u)}}),makeVBottomSheetProps=propsFactory({inset:Boolean,...makeVDialogProps({transition:"bottom-sheet-transition"})},"VBottomSheet"),VBottomSheet=genericComponent()({name:"VBottomSheet",props:makeVBottomSheetProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const a=useProxiedModel(e,"modelValue");return useRender(()=>{const o=VDialog.filterProps(e);return createVNode(VDialog,mergeProps(o,{contentClass:["v-bottom-sheet__content",e.contentClass],modelValue:a.value,"onUpdate:modelValue":u=>a.value=u,class:["v-bottom-sheet",{"v-bottom-sheet--inset":e.inset},e.class],style:e.style}),r)}),{}}}),makeVBreadcrumbsDividerProps=propsFactory({divider:[Number,String],...makeComponentProps()},"VBreadcrumbsDivider"),VBreadcrumbsDivider=genericComponent()({name:"VBreadcrumbsDivider",props:makeVBreadcrumbsDividerProps(),setup(e,t){let{slots:r}=t;return useRender(()=>{var a;return createVNode("li",{class:["v-breadcrumbs-divider",e.class],style:e.style},[((a=r==null?void 0:r.default)==null?void 0:a.call(r))??e.divider])}),{}}}),makeVBreadcrumbsItemProps=propsFactory({active:Boolean,activeClass:String,activeColor:String,color:String,disabled:Boolean,title:String,...makeComponentProps(),...makeRouterProps(),...makeTagProps({tag:"li"})},"VBreadcrumbsItem"),VBreadcrumbsItem=genericComponent()({name:"VBreadcrumbsItem",props:makeVBreadcrumbsItemProps(),setup(e,t){let{slots:r,attrs:a}=t;const o=useLink(e,a),u=computed(()=>{var E;return e.active||((E=o.isActive)==null?void 0:E.value)}),d=computed(()=>u.value?e.activeColor:e.color),{textColorClasses:f,textColorStyles:g}=useTextColor(d);return useRender(()=>createVNode(e.tag,{class:["v-breadcrumbs-item",{"v-breadcrumbs-item--active":u.value,"v-breadcrumbs-item--disabled":e.disabled,[`${e.activeClass}`]:u.value&&e.activeClass},f.value,e.class],style:[g.value,e.style],"aria-current":u.value?"page":void 0},{default:()=>{var E,S;return[o.isLink.value?createVNode("a",{class:"v-breadcrumbs-item--link",href:o.href.value,"aria-current":u.value?"page":void 0,onClick:o.navigate},[((S=r.default)==null?void 0:S.call(r))??e.title]):((E=r.default)==null?void 0:E.call(r))??e.title]}})),{}}}),makeVBreadcrumbsProps=propsFactory({activeClass:String,activeColor:String,bgColor:String,color:String,disabled:Boolean,divider:{type:String,default:"/"},icon:IconValue,items:{type:Array,default:()=>[]},...makeComponentProps(),...makeDensityProps(),...makeRoundedProps(),...makeTagProps({tag:"ul"})},"VBreadcrumbs"),VBreadcrumbs=genericComponent()({name:"VBreadcrumbs",props:makeVBreadcrumbsProps(),setup(e,t){let{slots:r}=t;const{backgroundColorClasses:a,backgroundColorStyles:o}=useBackgroundColor(toRef(e,"bgColor")),{densityClasses:u}=useDensity(e),{roundedClasses:d}=useRounded(e);provideDefaults({VBreadcrumbsDivider:{divider:toRef(e,"divider")},VBreadcrumbsItem:{activeClass:toRef(e,"activeClass"),activeColor:toRef(e,"activeColor"),color:toRef(e,"color"),disabled:toRef(e,"disabled")}});const f=computed(()=>e.items.map(g=>typeof g=="string"?{item:{title:g},raw:g}:{item:g,raw:g}));return useRender(()=>{const g=!!(r.prepend||e.icon);return createVNode(e.tag,{class:["v-breadcrumbs",a.value,u.value,d.value,e.class],style:[o.value,e.style]},{default:()=>{var E;return[g&&createVNode("li",{key:"prepend",class:"v-breadcrumbs__prepend"},[r.prepend?createVNode(VDefaultsProvider,{key:"prepend-defaults",disabled:!e.icon,defaults:{VIcon:{icon:e.icon,start:!0}}},r.prepend):createVNode(VIcon,{key:"prepend-icon",start:!0,icon:e.icon},null)]),f.value.map((S,b,v)=>{var C;let{item:y,raw:T}=S;return createVNode(Fragment,null,[((C=r.item)==null?void 0:C.call(r,{item:y,index:b}))??createVNode(VBreadcrumbsItem,mergeProps({key:b,disabled:b>=v.length-1},typeof y=="string"?{title:y}:y),{default:r.title?()=>{var R;return(R=r.title)==null?void 0:R.call(r,{item:y,index:b})}:void 0}),b<v.length-1&&createVNode(VBreadcrumbsDivider,null,{default:r.divider?()=>{var R;return(R=r.divider)==null?void 0:R.call(r,{item:T,index:b})}:void 0})])}),(E=r.default)==null?void 0:E.call(r)]}})}),{}}}),VCardActions=genericComponent()({name:"VCardActions",props:makeComponentProps(),setup(e,t){let{slots:r}=t;return provideDefaults({VBtn:{slim:!0,variant:"text"}}),useRender(()=>{var a;return createVNode("div",{class:["v-card-actions",e.class],style:e.style},[(a=r.default)==null?void 0:a.call(r)])}),{}}}),VCardSubtitle=createSimpleFunctional("v-card-subtitle"),VCardTitle=createSimpleFunctional("v-card-title"),makeCardItemProps=propsFactory({appendAvatar:String,appendIcon:IconValue,prependAvatar:String,prependIcon:IconValue,subtitle:[String,Number],title:[String,Number],...makeComponentProps(),...makeDensityProps()},"VCardItem"),VCardItem=genericComponent()({name:"VCardItem",props:makeCardItemProps(),setup(e,t){let{slots:r}=t;return useRender(()=>{var E;const a=!!(e.prependAvatar||e.prependIcon),o=!!(a||r.prepend),u=!!(e.appendAvatar||e.appendIcon),d=!!(u||r.append),f=!!(e.title!=null||r.title),g=!!(e.subtitle!=null||r.subtitle);return createVNode("div",{class:["v-card-item",e.class],style:e.style},[o&&createVNode("div",{key:"prepend",class:"v-card-item__prepend"},[r.prepend?createVNode(VDefaultsProvider,{key:"prepend-defaults",disabled:!a,defaults:{VAvatar:{density:e.density,icon:e.prependIcon,image:e.prependAvatar}}},r.prepend):a&&createVNode(VAvatar,{key:"prepend-avatar",density:e.density,icon:e.prependIcon,image:e.prependAvatar},null)]),createVNode("div",{class:"v-card-item__content"},[f&&createVNode(VCardTitle,{key:"title"},{default:()=>{var S;return[((S=r.title)==null?void 0:S.call(r))??e.title]}}),g&&createVNode(VCardSubtitle,{key:"subtitle"},{default:()=>{var S;return[((S=r.subtitle)==null?void 0:S.call(r))??e.subtitle]}}),(E=r.default)==null?void 0:E.call(r)]),d&&createVNode("div",{key:"append",class:"v-card-item__append"},[r.append?createVNode(VDefaultsProvider,{key:"append-defaults",disabled:!u,defaults:{VAvatar:{density:e.density,icon:e.appendIcon,image:e.appendAvatar}}},r.append):u&&createVNode(VAvatar,{key:"append-avatar",density:e.density,icon:e.appendIcon,image:e.appendAvatar},null)])])}),{}}}),VCardText=createSimpleFunctional("v-card-text"),makeVCardProps=propsFactory({appendAvatar:String,appendIcon:IconValue,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:IconValue,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number],text:[String,Number],title:[String,Number],...makeBorderProps(),...makeComponentProps(),...makeDensityProps(),...makeDimensionProps(),...makeElevationProps(),...makeLoaderProps(),...makeLocationProps(),...makePositionProps(),...makeRoundedProps(),...makeRouterProps(),...makeTagProps(),...makeThemeProps(),...makeVariantProps({variant:"elevated"})},"VCard"),VCard=genericComponent()({name:"VCard",directives:{Ripple},props:makeVCardProps(),setup(e,t){let{attrs:r,slots:a}=t;const{themeClasses:o}=provideTheme(e),{borderClasses:u}=useBorder(e),{colorClasses:d,colorStyles:f,variantClasses:g}=useVariant(e),{densityClasses:E}=useDensity(e),{dimensionStyles:S}=useDimension(e),{elevationClasses:b}=useElevation(e),{loaderClasses:v}=useLoader(e),{locationStyles:y}=useLocation(e),{positionClasses:T}=usePosition(e),{roundedClasses:C}=useRounded(e),R=useLink(e,r),A=computed(()=>e.link!==!1&&R.isLink.value),N=computed(()=>!e.disabled&&e.link!==!1&&(e.link||R.isClickable.value));return useRender(()=>{const I=A.value?"a":e.tag,O=!!(a.title||e.title!=null),x=!!(a.subtitle||e.subtitle!=null),D=O||x,k=!!(a.append||e.appendAvatar||e.appendIcon),P=!!(a.prepend||e.prependAvatar||e.prependIcon),L=!!(a.image||e.image),F=D||P||k,B=!!(a.text||e.text!=null);return withDirectives(createVNode(I,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":N.value},o.value,u.value,d.value,E.value,b.value,v.value,T.value,C.value,g.value,e.class],style:[f.value,S.value,y.value,e.style],href:R.href.value,onClick:N.value&&R.navigate,tabindex:e.disabled?-1:void 0},{default:()=>{var $;return[L&&createVNode("div",{key:"image",class:"v-card__image"},[a.image?createVNode(VDefaultsProvider,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},a.image):createVNode(VImg,{key:"image-img",cover:!0,src:e.image},null)]),createVNode(LoaderSlot,{name:"v-card",active:!!e.loading,color:typeof e.loading=="boolean"?void 0:e.loading},{default:a.loader}),F&&createVNode(VCardItem,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:a.item,prepend:a.prepend,title:a.title,subtitle:a.subtitle,append:a.append}),B&&createVNode(VCardText,{key:"text"},{default:()=>{var U;return[((U=a.text)==null?void 0:U.call(a))??e.text]}}),($=a.default)==null?void 0:$.call(a),a.actions&&createVNode(VCardActions,null,{default:a.actions}),genOverlays(N.value,"v-card")]}}),[[resolveDirective("ripple"),N.value&&e.ripple]])}),{}}}),handleGesture=e=>{const{touchstartX:t,touchendX:r,touchstartY:a,touchendY:o}=e,u=.5,d=16;e.offsetX=r-t,e.offsetY=o-a,Math.abs(e.offsetY)<u*Math.abs(e.offsetX)&&(e.left&&r<t-d&&e.left(e),e.right&&r>t+d&&e.right(e)),Math.abs(e.offsetX)<u*Math.abs(e.offsetY)&&(e.up&&o<a-d&&e.up(e),e.down&&o>a+d&&e.down(e))};function touchstart(e,t){var a;const r=e.changedTouches[0];t.touchstartX=r.clientX,t.touchstartY=r.clientY,(a=t.start)==null||a.call(t,{originalEvent:e,...t})}function touchend(e,t){var a;const r=e.changedTouches[0];t.touchendX=r.clientX,t.touchendY=r.clientY,(a=t.end)==null||a.call(t,{originalEvent:e,...t}),handleGesture(t)}function touchmove(e,t){var a;const r=e.changedTouches[0];t.touchmoveX=r.clientX,t.touchmoveY=r.clientY,(a=t.move)==null||a.call(t,{originalEvent:e,...t})}function createHandlers(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:r=>touchstart(r,t),touchend:r=>touchend(r,t),touchmove:r=>touchmove(r,t)}}function mounted$3(e,t){var f;const r=t.value,a=r!=null&&r.parent?e.parentElement:e,o=(r==null?void 0:r.options)??{passive:!0},u=(f=t.instance)==null?void 0:f.$.uid;if(!a||!u)return;const d=createHandlers(t.value);a._touchHandlers=a._touchHandlers??Object.create(null),a._touchHandlers[u]=d,keys(d).forEach(g=>{a.addEventListener(g,d[g],o)})}function unmounted$3(e,t){var u,d;const r=(u=t.value)!=null&&u.parent?e.parentElement:e,a=(d=t.instance)==null?void 0:d.$.uid;if(!(r!=null&&r._touchHandlers)||!a)return;const o=r._touchHandlers[a];keys(o).forEach(f=>{r.removeEventListener(f,o[f])}),delete r._touchHandlers[a]}const Touch={mounted:mounted$3,unmounted:unmounted$3},VWindowSymbol=Symbol.for("vuetify:v-window"),VWindowGroupSymbol=Symbol.for("vuetify:v-window-group"),makeVWindowProps=propsFactory({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},...makeComponentProps(),...makeTagProps(),...makeThemeProps()},"VWindow"),VWindow=genericComponent()({name:"VWindow",directives:{Touch},props:makeVWindowProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const{themeClasses:a}=provideTheme(e),{isRtl:o}=useRtl(),{t:u}=useLocale(),d=useGroup(e,VWindowGroupSymbol),f=ref$1(),g=computed(()=>o.value?!e.reverse:e.reverse),E=shallowRef(!1),S=computed(()=>{const O=e.direction==="vertical"?"y":"x",D=(g.value?!E.value:E.value)?"-reverse":"";return`v-window-${O}${D}-transition`}),b=shallowRef(0),v=ref$1(void 0),y=computed(()=>d.items.value.findIndex(O=>d.selected.value.includes(O.id)));watch(y,(O,x)=>{const D=d.items.value.length,k=D-1;D<=2?E.value=O<x:O===k&&x===0?E.value=!0:O===0&&x===k?E.value=!1:E.value=O<x}),provide(VWindowSymbol,{transition:S,isReversed:E,transitionCount:b,transitionHeight:v,rootRef:f});const T=computed(()=>e.continuous||y.value!==0),C=computed(()=>e.continuous||y.value!==d.items.value.length-1);function R(){T.value&&d.prev()}function A(){C.value&&d.next()}const N=computed(()=>{const O=[],x={icon:o.value?e.nextIcon:e.prevIcon,class:`v-window__${g.value?"right":"left"}`,onClick:d.prev,ariaLabel:u("$vuetify.carousel.prev")};O.push(T.value?r.prev?r.prev({props:x}):createVNode(VBtn,x,null):createVNode("div",null,null));const D={icon:o.value?e.prevIcon:e.nextIcon,class:`v-window__${g.value?"left":"right"}`,onClick:d.next,ariaLabel:u("$vuetify.carousel.next")};return O.push(C.value?r.next?r.next({props:D}):createVNode(VBtn,D,null):createVNode("div",null,null)),O}),I=computed(()=>e.touch===!1?e.touch:{...{left:()=>{g.value?R():A()},right:()=>{g.value?A():R()},start:x=>{let{originalEvent:D}=x;D.stopPropagation()}},...e.touch===!0?{}:e.touch});return useRender(()=>withDirectives(createVNode(e.tag,{ref:f,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},a.value,e.class],style:e.style},{default:()=>{var O,x;return[createVNode("div",{class:"v-window__container",style:{height:v.value}},[(O=r.default)==null?void 0:O.call(r,{group:d}),e.showArrows!==!1&&createVNode("div",{class:"v-window__controls"},[N.value])]),(x=r.additional)==null?void 0:x.call(r,{group:d})]}}),[[resolveDirective("touch"),I.value]])),{group:d}}}),makeVCarouselProps=propsFactory({color:String,cycle:Boolean,delimiterIcon:{type:IconValue,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:e=>Number(e)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...makeVWindowProps({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),VCarousel=genericComponent()({name:"VCarousel",props:makeVCarouselProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const a=useProxiedModel(e,"modelValue"),{t:o}=useLocale(),u=ref$1();let d=-1;watch(a,g),watch(()=>e.interval,g),watch(()=>e.cycle,E=>{E?g():window.clearTimeout(d)}),onMounted(f);function f(){!e.cycle||!u.value||(d=window.setTimeout(u.value.group.next,+e.interval>0?+e.interval:6e3))}function g(){window.clearTimeout(d),window.requestAnimationFrame(f)}return useRender(()=>{const E=VWindow.filterProps(e);return createVNode(VWindow,mergeProps({ref:u},E,{modelValue:a.value,"onUpdate:modelValue":S=>a.value=S,class:["v-carousel",{"v-carousel--hide-delimiter-background":e.hideDelimiterBackground,"v-carousel--vertical-delimiters":e.verticalDelimiters},e.class],style:[{height:convertToUnit(e.height)},e.style]}),{default:r.default,additional:S=>{let{group:b}=S;return createVNode(Fragment,null,[!e.hideDelimiters&&createVNode("div",{class:"v-carousel__controls",style:{left:e.verticalDelimiters==="left"&&e.verticalDelimiters?0:"auto",right:e.verticalDelimiters==="right"?0:"auto"}},[b.items.value.length>0&&createVNode(VDefaultsProvider,{defaults:{VBtn:{color:e.color,icon:e.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[b.items.value.map((v,y)=>{const T={id:`carousel-item-${v.id}`,"aria-label":o("$vuetify.carousel.ariaLabel.delimiter",y+1,b.items.value.length),class:["v-carousel__controls__item",b.isSelected(v.id)&&"v-btn--active"],onClick:()=>b.select(v.id,!0)};return r.item?r.item({props:T,item:v}):createVNode(VBtn,mergeProps(v,T),null)})]})]),e.progress&&createVNode(VProgressLinear,{class:"v-carousel__progress",color:typeof e.progress=="string"?e.progress:void 0,modelValue:(b.getItemIndex(a.value)+1)/b.items.value.length*100},null)])},prev:r.prev,next:r.next})}),{}}}),makeVWindowItemProps=propsFactory({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...makeComponentProps(),...makeGroupItemProps(),...makeLazyProps()},"VWindowItem"),VWindowItem=genericComponent()({name:"VWindowItem",directives:{Touch},props:makeVWindowItemProps(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:r}=t;const a=inject$1(VWindowSymbol),o=useGroupItem(e,VWindowGroupSymbol),{isBooted:u}=useSsrBoot();if(!a||!o)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const d=shallowRef(!1),f=computed(()=>u.value&&(a.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function g(){!d.value||!a||(d.value=!1,a.transitionCount.value>0&&(a.transitionCount.value-=1,a.transitionCount.value===0&&(a.transitionHeight.value=void 0)))}function E(){var T;d.value||!a||(d.value=!0,a.transitionCount.value===0&&(a.transitionHeight.value=convertToUnit((T=a.rootRef.value)==null?void 0:T.clientHeight)),a.transitionCount.value+=1)}function S(){g()}function b(T){d.value&&nextTick$1(()=>{!f.value||!d.value||!a||(a.transitionHeight.value=convertToUnit(T.clientHeight))})}const v=computed(()=>{const T=a.isReversed.value?e.reverseTransition:e.transition;return f.value?{name:typeof T!="string"?a.transition.value:T,onBeforeEnter:E,onAfterEnter:g,onEnterCancelled:S,onBeforeLeave:E,onAfterLeave:g,onLeaveCancelled:S,onEnter:b}:!1}),{hasContent:y}=useLazy(e,o.isSelected);return useRender(()=>createVNode(MaybeTransition,{transition:v.value,disabled:!u.value},{default:()=>{var T;return[withDirectives(createVNode("div",{class:["v-window-item",o.selectedClass.value,e.class],style:e.style},[y.value&&((T=r.default)==null?void 0:T.call(r))]),[[vShow,o.isSelected.value]])]}})),{groupItem:o}}}),makeVCarouselItemProps=propsFactory({...makeVImgProps(),...makeVWindowItemProps()},"VCarouselItem"),VCarouselItem=genericComponent()({name:"VCarouselItem",inheritAttrs:!1,props:makeVCarouselItemProps(),setup(e,t){let{slots:r,attrs:a}=t;useRender(()=>{const o=VImg.filterProps(e),u=VWindowItem.filterProps(e);return createVNode(VWindowItem,mergeProps({class:"v-carousel-item"},u),{default:()=>[createVNode(VImg,mergeProps(a,o),r)]})})}}),VCode=createSimpleFunctional("v-code"),makeVColorPickerCanvasProps=propsFactory({color:{type:Object},disabled:Boolean,dotSize:{type:[Number,String],default:10},height:{type:[Number,String],default:150},width:{type:[Number,String],default:300},...makeComponentProps()},"VColorPickerCanvas"),VColorPickerCanvas=defineComponent({name:"VColorPickerCanvas",props:makeVColorPickerCanvasProps(),emits:{"update:color":e=>!0,"update:position":e=>!0},setup(e,t){let{emit:r}=t;const a=shallowRef(!1),o=ref$1(),u=shallowRef(parseFloat(e.width)),d=shallowRef(parseFloat(e.height)),f=ref$1({x:0,y:0}),g=computed({get:()=>f.value,set(R){var I,O;if(!o.value)return;const{x:A,y:N}=R;f.value=R,r("update:color",{h:((I=e.color)==null?void 0:I.h)??0,s:clamp(A,0,u.value)/u.value,v:1-clamp(N,0,d.value)/d.value,a:((O=e.color)==null?void 0:O.a)??1})}}),E=computed(()=>{const{x:R,y:A}=g.value,N=parseInt(e.dotSize,10)/2;return{width:convertToUnit(e.dotSize),height:convertToUnit(e.dotSize),transform:`translate(${convertToUnit(R-N)}, ${convertToUnit(A-N)})`}}),{resizeRef:S}=useResizeObserver(R=>{var I;if(!((I=S.value)!=null&&I.offsetParent))return;const{width:A,height:N}=R[0].contentRect;u.value=A,d.value=N});function b(R,A,N){const{left:I,top:O,width:x,height:D}=N;g.value={x:clamp(R-I,0,x),y:clamp(A-O,0,D)}}function v(R){R.type==="mousedown"&&R.preventDefault(),!e.disabled&&(y(R),window.addEventListener("mousemove",y),window.addEventListener("mouseup",T),window.addEventListener("touchmove",y),window.addEventListener("touchend",T))}function y(R){if(e.disabled||!o.value)return;a.value=!0;const A=getEventCoordinates(R);b(A.clientX,A.clientY,o.value.getBoundingClientRect())}function T(){window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",T),window.removeEventListener("touchmove",y),window.removeEventListener("touchend",T)}function C(){var O;if(!o.value)return;const R=o.value,A=R.getContext("2d");if(!A)return;const N=A.createLinearGradient(0,0,R.width,0);N.addColorStop(0,"hsla(0, 0%, 100%, 1)"),N.addColorStop(1,`hsla(${((O=e.color)==null?void 0:O.h)??0}, 100%, 50%, 1)`),A.fillStyle=N,A.fillRect(0,0,R.width,R.height);const I=A.createLinearGradient(0,0,0,R.height);I.addColorStop(0,"hsla(0, 0%, 100%, 0)"),I.addColorStop(1,"hsla(0, 0%, 0%, 1)"),A.fillStyle=I,A.fillRect(0,0,R.width,R.height)}return watch(()=>{var R;return(R=e.color)==null?void 0:R.h},C,{immediate:!0}),watch(()=>[u.value,d.value],(R,A)=>{C(),f.value={x:g.value.x*R[0]/A[0],y:g.value.y*R[1]/A[1]}},{flush:"post"}),watch(()=>e.color,()=>{if(a.value){a.value=!1;return}f.value=e.color?{x:e.color.s*u.value,y:(1-e.color.v)*d.value}:{x:0,y:0}},{deep:!0,immediate:!0}),onMounted(()=>C()),useRender(()=>createVNode("div",{ref:S,class:["v-color-picker-canvas",e.class],style:e.style,onMousedown:v,onTouchstartPassive:v},[createVNode("canvas",{ref:o,width:u.value,height:d.value},null),e.color&&createVNode("div",{class:["v-color-picker-canvas__dot",{"v-color-picker-canvas__dot--disabled":e.disabled}],style:E.value},null)])),{}}});function stripAlpha(e,t){if(t){const{a:r,...a}=e;return a}return e}function extractColor(e,t){if(t==null||typeof t=="string"){const r=HSVtoHex(e);return e.a===1?r.slice(0,7):r}if(typeof t=="object"){let r;return has(t,["r","g","b"])?r=HSVtoRGB(e):has(t,["h","s","l"])?r=HSVtoHSL(e):has(t,["h","s","v"])&&(r=e),stripAlpha(r,!has(t,["a"])&&e.a===1)}return e}const nullColor={h:0,s:0,v:1,a:1},rgba={inputProps:{type:"number",min:0},inputs:[{label:"R",max:255,step:1,getValue:e=>Math.round(e.r),getColor:(e,t)=>({...e,r:Number(t)})},{label:"G",max:255,step:1,getValue:e=>Math.round(e.g),getColor:(e,t)=>({...e,g:Number(t)})},{label:"B",max:255,step:1,getValue:e=>Math.round(e.b),getColor:(e,t)=>({...e,b:Number(t)})},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)})}],to:HSVtoRGB,from:RGBtoHSV};var Nt;const rgb={...rgba,inputs:(Nt=rgba.inputs)==null?void 0:Nt.slice(0,3)},hsla={inputProps:{type:"number",min:0},inputs:[{label:"H",max:360,step:1,getValue:e=>Math.round(e.h),getColor:(e,t)=>({...e,h:Number(t)})},{label:"S",max:1,step:.01,getValue:e=>Math.round(e.s*100)/100,getColor:(e,t)=>({...e,s:Number(t)})},{label:"L",max:1,step:.01,getValue:e=>Math.round(e.l*100)/100,getColor:(e,t)=>({...e,l:Number(t)})},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return t!=null?Math.round(t*100)/100:1},getColor:(e,t)=>({...e,a:Number(t)})}],to:HSVtoHSL,from:HSLtoHSV},hsl={...hsla,inputs:hsla.inputs.slice(0,3)},hexa={inputProps:{type:"text"},inputs:[{label:"HEXA",getValue:e=>e,getColor:(e,t)=>t}],to:HSVtoHex,from:HexToHSV},hex={...hexa,inputs:[{label:"HEX",getValue:e=>e.slice(0,7),getColor:(e,t)=>t}]},modes={rgb,rgba,hsl,hsla,hex,hexa},VColorPickerInput=e=>{let{label:t,...r}=e;return createVNode("div",{class:"v-color-picker-edit__input"},[createVNode("input",r,null),createVNode("span",null,[t])])},makeVColorPickerEditProps=propsFactory({color:Object,disabled:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(modes).includes(e)},modes:{type:Array,default:()=>Object.keys(modes),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(modes).includes(t))},...makeComponentProps()},"VColorPickerEdit"),VColorPickerEdit=defineComponent({name:"VColorPickerEdit",props:makeVColorPickerEditProps(),emits:{"update:color":e=>!0,"update:mode":e=>!0},setup(e,t){let{emit:r}=t;const a=computed(()=>e.modes.map(u=>({...modes[u],name:u}))),o=computed(()=>{var f;const u=a.value.find(g=>g.name===e.mode);if(!u)return[];const d=e.color?u.to(e.color):null;return(f=u.inputs)==null?void 0:f.map(g=>{let{getValue:E,getColor:S,...b}=g;return{...u.inputProps,...b,disabled:e.disabled,value:d&&E(d),onChange:v=>{const y=v.target;y&&r("update:color",u.from(S(d??nullColor,y.value)))}}})});return useRender(()=>{var u;return createVNode("div",{class:["v-color-picker-edit",e.class],style:e.style},[(u=o.value)==null?void 0:u.map(d=>createVNode(VColorPickerInput,d,null)),a.value.length>1&&createVNode(VBtn,{icon:"$unfold",size:"x-small",variant:"plain",onClick:()=>{const d=a.value.findIndex(f=>f.name===e.mode);r("update:mode",a.value[(d+1)%a.value.length].name)}},null)])}),{}}}),VSliderSymbol=Symbol.for("vuetify:v-slider");function getOffset(e,t,r){const a=r==="vertical",o=t.getBoundingClientRect(),u="touches"in e?e.touches[0]:e;return a?u.clientY-(o.top+o.height/2):u.clientX-(o.left+o.width/2)}function getPosition(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}const makeSliderProps=propsFactory({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>typeof e=="boolean"||e==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,...makeRoundedProps(),...makeElevationProps({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),useSteps=e=>{const t=computed(()=>parseFloat(e.min)),r=computed(()=>parseFloat(e.max)),a=computed(()=>+e.step>0?parseFloat(e.step):0),o=computed(()=>Math.max(getDecimals(a.value),getDecimals(t.value)));function u(d){if(d=parseFloat(d),a.value<=0)return d;const f=clamp(d,t.value,r.value),g=t.value%a.value,E=Math.round((f-g)/a.value)*a.value+g;return parseFloat(Math.min(E,r.value).toFixed(o.value))}return{min:t,max:r,step:a,decimals:o,roundValue:u}},useSlider=e=>{let{props:t,steps:r,onSliderStart:a,onSliderMove:o,onSliderEnd:u,getActiveThumb:d}=e;const{isRtl:f}=useRtl(),g=toRef(t,"reverse"),E=computed(()=>t.direction==="vertical"),S=computed(()=>E.value!==g.value),{min:b,max:v,step:y,decimals:T,roundValue:C}=r,R=computed(()=>parseInt(t.thumbSize,10)),A=computed(()=>parseInt(t.tickSize,10)),N=computed(()=>parseInt(t.trackSize,10)),I=computed(()=>(v.value-b.value)/y.value),O=toRef(t,"disabled"),x=computed(()=>t.error||t.disabled?void 0:t.thumbColor??t.color),D=computed(()=>t.error||t.disabled?void 0:t.trackColor??t.color),k=computed(()=>t.error||t.disabled?void 0:t.trackFillColor??t.color),P=shallowRef(!1),L=shallowRef(0),F=ref$1(),B=ref$1();function $(ae){var de;const ee=t.direction==="vertical",oe=ee?"top":"left",ce=ee?"height":"width",se=ee?"clientY":"clientX",{[oe]:Se,[ce]:W}=(de=F.value)==null?void 0:de.$el.getBoundingClientRect(),Z=getPosition(ae,se);let J=Math.min(Math.max((Z-Se-L.value)/W,0),1)||0;return(ee?S.value:S.value!==f.value)&&(J=1-J),C(b.value+J*(v.value-b.value))}const U=ae=>{u({value:$(ae)}),P.value=!1,L.value=0},z=ae=>{B.value=d(ae),B.value&&(B.value.focus(),P.value=!0,B.value.contains(ae.target)?L.value=getOffset(ae,B.value,t.direction):(L.value=0,o({value:$(ae)})),a({value:$(ae)}))},K={passive:!0,capture:!0};function Q(ae){o({value:$(ae)})}function Y(ae){ae.stopPropagation(),ae.preventDefault(),U(ae),window.removeEventListener("mousemove",Q,K),window.removeEventListener("mouseup",Y)}function G(ae){var ee;U(ae),window.removeEventListener("touchmove",Q,K),(ee=ae.target)==null||ee.removeEventListener("touchend",G)}function j(ae){var ee;z(ae),window.addEventListener("touchmove",Q,K),(ee=ae.target)==null||ee.addEventListener("touchend",G,{passive:!1})}function ne(ae){ae.preventDefault(),z(ae),window.addEventListener("mousemove",Q,K),window.addEventListener("mouseup",Y,{passive:!1})}const ie=ae=>{const ee=(ae-b.value)/(v.value-b.value)*100;return clamp(isNaN(ee)?0:ee,0,100)},te=toRef(t,"showTicks"),ue=computed(()=>te.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map(ae=>({value:ae,position:ie(ae),label:ae.toString()})):Object.keys(t.ticks).map(ae=>({value:parseFloat(ae),position:ie(parseFloat(ae)),label:t.ticks[ae]})):I.value!==1/0?createRange(I.value+1).map(ae=>{const ee=b.value+ae*y.value;return{value:ee,position:ie(ee)}}):[]:[]),ge=computed(()=>ue.value.some(ae=>{let{label:ee}=ae;return!!ee})),Ee={activeThumbRef:B,color:toRef(t,"color"),decimals:T,disabled:O,direction:toRef(t,"direction"),elevation:toRef(t,"elevation"),hasLabels:ge,isReversed:g,indexFromEnd:S,min:b,max:v,mousePressed:P,numTicks:I,onSliderMousedown:ne,onSliderTouchstart:j,parsedTicks:ue,parseMouseMove:$,position:ie,readonly:toRef(t,"readonly"),rounded:toRef(t,"rounded"),roundValue:C,showTicks:te,startOffset:L,step:y,thumbSize:R,thumbColor:x,thumbLabel:toRef(t,"thumbLabel"),ticks:toRef(t,"ticks"),tickSize:A,trackColor:D,trackContainerRef:F,trackFillColor:k,trackSize:N,vertical:E};return provide(VSliderSymbol,Ee),Ee},makeVSliderThumbProps=propsFactory({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},...makeComponentProps()},"VSliderThumb"),VSliderThumb=genericComponent()({name:"VSliderThumb",directives:{Ripple},props:makeVSliderThumbProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r,emit:a}=t;const o=inject$1(VSliderSymbol),{isRtl:u,rtlClasses:d}=useRtl();if(!o)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:f,step:g,disabled:E,thumbSize:S,thumbLabel:b,direction:v,isReversed:y,vertical:T,readonly:C,elevation:R,mousePressed:A,decimals:N,indexFromEnd:I}=o,{textColorClasses:O,textColorStyles:x}=useTextColor(f),{pageup:D,pagedown:k,end:P,home:L,left:F,right:B,down:$,up:U}=keyValues,z=[D,k,P,L,F,B,$,U],K=computed(()=>g.value?[1,2,3]:[1,5,10]);function Q(G,j){if(!z.includes(G.key))return;G.preventDefault();const ne=g.value||.1,ie=(e.max-e.min)/ne;if([F,B,$,U].includes(G.key)){const ue=(T.value?[u.value?F:B,y.value?$:U]:I.value!==u.value?[F,U]:[B,U]).includes(G.key)?1:-1,ge=G.shiftKey?2:G.ctrlKey?1:0;j=j+ue*ne*K.value[ge]}else if(G.key===L)j=e.min;else if(G.key===P)j=e.max;else{const te=G.key===k?1:-1;j=j-te*ne*(ie>100?ie/10:10)}return Math.max(e.min,Math.min(e.max,j))}function Y(G){const j=Q(G,e.modelValue);j!=null&&a("update:modelValue",j)}return useRender(()=>{const G=convertToUnit(I.value?100-e.position:e.position,"%"),{elevationClasses:j}=useElevation(computed(()=>E.value?void 0:R.value));return createVNode("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&A.value},e.class,d.value],style:[{"--v-slider-thumb-position":G,"--v-slider-thumb-size":convertToUnit(S.value)},e.style],role:"slider",tabindex:E.value?-1:0,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":e.modelValue,"aria-readonly":!!C.value,"aria-orientation":v.value,onKeydown:C.value?void 0:Y},[createVNode("div",{class:["v-slider-thumb__surface",O.value,j.value],style:{...x.value}},null),withDirectives(createVNode("div",{class:["v-slider-thumb__ripple",O.value],style:x.value},null),[[resolveDirective("ripple"),e.ripple,null,{circle:!0,center:!0}]]),createVNode(VScaleTransition,{origin:"bottom center"},{default:()=>{var ne;return[withDirectives(createVNode("div",{class:"v-slider-thumb__label-container"},[createVNode("div",{class:["v-slider-thumb__label"]},[createVNode("div",null,[((ne=r["thumb-label"])==null?void 0:ne.call(r,{modelValue:e.modelValue}))??e.modelValue.toFixed(g.value?N.value:1)])])]),[[vShow,b.value&&e.focused||b.value==="always"]])]}})])}),{}}}),makeVSliderTrackProps=propsFactory({start:{type:Number,required:!0},stop:{type:Number,required:!0},...makeComponentProps()},"VSliderTrack"),VSliderTrack=genericComponent()({name:"VSliderTrack",props:makeVSliderTrackProps(),emits:{},setup(e,t){let{slots:r}=t;const a=inject$1(VSliderSymbol);if(!a)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:o,parsedTicks:u,rounded:d,showTicks:f,tickSize:g,trackColor:E,trackFillColor:S,trackSize:b,vertical:v,min:y,max:T,indexFromEnd:C}=a,{roundedClasses:R}=useRounded(d),{backgroundColorClasses:A,backgroundColorStyles:N}=useBackgroundColor(S),{backgroundColorClasses:I,backgroundColorStyles:O}=useBackgroundColor(E),x=computed(()=>`inset-${v.value?"block":"inline"}-${C.value?"end":"start"}`),D=computed(()=>v.value?"height":"width"),k=computed(()=>({[x.value]:"0%",[D.value]:"100%"})),P=computed(()=>e.stop-e.start),L=computed(()=>({[x.value]:convertToUnit(e.start,"%"),[D.value]:convertToUnit(P.value,"%")})),F=computed(()=>f.value?(v.value?u.value.slice().reverse():u.value).map(($,U)=>{var K;const z=$.value!==y.value&&$.value!==T.value?convertToUnit($.position,"%"):void 0;return createVNode("div",{key:$.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":$.position>=e.start&&$.position<=e.stop,"v-slider-track__tick--first":$.value===y.value,"v-slider-track__tick--last":$.value===T.value}],style:{[x.value]:z}},[($.label||r["tick-label"])&&createVNode("div",{class:"v-slider-track__tick-label"},[((K=r["tick-label"])==null?void 0:K.call(r,{tick:$,index:U}))??$.label])])}):[]);return useRender(()=>createVNode("div",{class:["v-slider-track",R.value,e.class],style:[{"--v-slider-track-size":convertToUnit(b.value),"--v-slider-tick-size":convertToUnit(g.value)},e.style]},[createVNode("div",{class:["v-slider-track__background",I.value,{"v-slider-track__background--opacity":!!o.value||!S.value}],style:{...k.value,...O.value}},null),createVNode("div",{class:["v-slider-track__fill",A.value],style:{...L.value,...N.value}},null),f.value&&createVNode("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":f.value==="always"}]},[F.value])])),{}}}),makeVSliderProps=propsFactory({...makeFocusProps(),...makeSliderProps(),...makeVInputProps(),modelValue:{type:[Number,String],default:0}},"VSlider"),VSlider=genericComponent()({name:"VSlider",props:makeVSliderProps(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:r,emit:a}=t;const o=ref$1(),{rtlClasses:u}=useRtl(),d=useSteps(e),f=useProxiedModel(e,"modelValue",void 0,D=>d.roundValue(D??d.min.value)),{min:g,max:E,mousePressed:S,roundValue:b,onSliderMousedown:v,onSliderTouchstart:y,trackContainerRef:T,position:C,hasLabels:R,readonly:A}=useSlider({props:e,steps:d,onSliderStart:()=>{a("start",f.value)},onSliderEnd:D=>{let{value:k}=D;const P=b(k);f.value=P,a("end",P)},onSliderMove:D=>{let{value:k}=D;return f.value=b(k)},getActiveThumb:()=>{var D;return(D=o.value)==null?void 0:D.$el}}),{isFocused:N,focus:I,blur:O}=useFocus(e),x=computed(()=>C(f.value));return useRender(()=>{const D=VInput.filterProps(e),k=!!(e.label||r.label||r.prepend);return createVNode(VInput,mergeProps({class:["v-slider",{"v-slider--has-labels":!!r["tick-label"]||R.value,"v-slider--focused":N.value,"v-slider--pressed":S.value,"v-slider--disabled":e.disabled},u.value,e.class],style:e.style},D,{focused:N.value}),{...r,prepend:k?P=>{var L,F;return createVNode(Fragment,null,[((L=r.label)==null?void 0:L.call(r,P))??(e.label?createVNode(VLabel,{id:P.id.value,class:"v-slider__label",text:e.label},null):void 0),(F=r.prepend)==null?void 0:F.call(r,P)])}:void 0,default:P=>{let{id:L,messagesId:F}=P;return createVNode("div",{class:"v-slider__container",onMousedown:A.value?void 0:v,onTouchstartPassive:A.value?void 0:y},[createVNode("input",{id:L.value,name:e.name||L.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:f.value},null),createVNode(VSliderTrack,{ref:T,start:0,stop:x.value},{"tick-label":r["tick-label"]}),createVNode(VSliderThumb,{ref:o,"aria-describedby":F.value,focused:N.value,min:g.value,max:E.value,modelValue:f.value,"onUpdate:modelValue":B=>f.value=B,position:x.value,elevation:e.elevation,onFocus:I,onBlur:O,ripple:e.ripple},{"thumb-label":r["thumb-label"]})])}})}),{}}}),makeVColorPickerPreviewProps=propsFactory({color:{type:Object},disabled:Boolean,hideAlpha:Boolean,...makeComponentProps()},"VColorPickerPreview"),VColorPickerPreview=defineComponent({name:"VColorPickerPreview",props:makeVColorPickerPreviewProps(),emits:{"update:color":e=>!0},setup(e,t){let{emit:r}=t;const a=new AbortController;onUnmounted(()=>a.abort());async function o(){if(!SUPPORTS_EYE_DROPPER)return;const u=new window.EyeDropper;try{const d=await u.open({signal:a.signal}),f=HexToHSV(d.sRGBHex);r("update:color",{...e.color??nullColor,...f})}catch{}}return useRender(()=>{var u,d;return createVNode("div",{class:["v-color-picker-preview",{"v-color-picker-preview--hide-alpha":e.hideAlpha},e.class],style:e.style},[SUPPORTS_EYE_DROPPER&&createVNode("div",{class:"v-color-picker-preview__eye-dropper",key:"eyeDropper"},[createVNode(VBtn,{onClick:o,icon:"$eyeDropper",variant:"plain",density:"comfortable"},null)]),createVNode("div",{class:"v-color-picker-preview__dot"},[createVNode("div",{style:{background:HSVtoCSS(e.color??nullColor)}},null)]),createVNode("div",{class:"v-color-picker-preview__sliders"},[createVNode(VSlider,{class:"v-color-picker-preview__track v-color-picker-preview__hue",modelValue:(u=e.color)==null?void 0:u.h,"onUpdate:modelValue":f=>r("update:color",{...e.color??nullColor,h:f}),step:0,min:0,max:360,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null),!e.hideAlpha&&createVNode(VSlider,{class:"v-color-picker-preview__track v-color-picker-preview__alpha",modelValue:((d=e.color)==null?void 0:d.a)??1,"onUpdate:modelValue":f=>r("update:color",{...e.color??nullColor,a:f}),step:1/256,min:0,max:1,disabled:e.disabled,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null)])])}),{}}}),red={base:"#f44336",lighten5:"#ffebee",lighten4:"#ffcdd2",lighten3:"#ef9a9a",lighten2:"#e57373",lighten1:"#ef5350",darken1:"#e53935",darken2:"#d32f2f",darken3:"#c62828",darken4:"#b71c1c",accent1:"#ff8a80",accent2:"#ff5252",accent3:"#ff1744",accent4:"#d50000"},pink={base:"#e91e63",lighten5:"#fce4ec",lighten4:"#f8bbd0",lighten3:"#f48fb1",lighten2:"#f06292",lighten1:"#ec407a",darken1:"#d81b60",darken2:"#c2185b",darken3:"#ad1457",darken4:"#880e4f",accent1:"#ff80ab",accent2:"#ff4081",accent3:"#f50057",accent4:"#c51162"},purple={base:"#9c27b0",lighten5:"#f3e5f5",lighten4:"#e1bee7",lighten3:"#ce93d8",lighten2:"#ba68c8",lighten1:"#ab47bc",darken1:"#8e24aa",darken2:"#7b1fa2",darken3:"#6a1b9a",darken4:"#4a148c",accent1:"#ea80fc",accent2:"#e040fb",accent3:"#d500f9",accent4:"#aa00ff"},deepPurple={base:"#673ab7",lighten5:"#ede7f6",lighten4:"#d1c4e9",lighten3:"#b39ddb",lighten2:"#9575cd",lighten1:"#7e57c2",darken1:"#5e35b1",darken2:"#512da8",darken3:"#4527a0",darken4:"#311b92",accent1:"#b388ff",accent2:"#7c4dff",accent3:"#651fff",accent4:"#6200ea"},indigo={base:"#3f51b5",lighten5:"#e8eaf6",lighten4:"#c5cae9",lighten3:"#9fa8da",lighten2:"#7986cb",lighten1:"#5c6bc0",darken1:"#3949ab",darken2:"#303f9f",darken3:"#283593",darken4:"#1a237e",accent1:"#8c9eff",accent2:"#536dfe",accent3:"#3d5afe",accent4:"#304ffe"},blue={base:"#2196f3",lighten5:"#e3f2fd",lighten4:"#bbdefb",lighten3:"#90caf9",lighten2:"#64b5f6",lighten1:"#42a5f5",darken1:"#1e88e5",darken2:"#1976d2",darken3:"#1565c0",darken4:"#0d47a1",accent1:"#82b1ff",accent2:"#448aff",accent3:"#2979ff",accent4:"#2962ff"},lightBlue={base:"#03a9f4",lighten5:"#e1f5fe",lighten4:"#b3e5fc",lighten3:"#81d4fa",lighten2:"#4fc3f7",lighten1:"#29b6f6",darken1:"#039be5",darken2:"#0288d1",darken3:"#0277bd",darken4:"#01579b",accent1:"#80d8ff",accent2:"#40c4ff",accent3:"#00b0ff",accent4:"#0091ea"},cyan={base:"#00bcd4",lighten5:"#e0f7fa",lighten4:"#b2ebf2",lighten3:"#80deea",lighten2:"#4dd0e1",lighten1:"#26c6da",darken1:"#00acc1",darken2:"#0097a7",darken3:"#00838f",darken4:"#006064",accent1:"#84ffff",accent2:"#18ffff",accent3:"#00e5ff",accent4:"#00b8d4"},teal={base:"#009688",lighten5:"#e0f2f1",lighten4:"#b2dfdb",lighten3:"#80cbc4",lighten2:"#4db6ac",lighten1:"#26a69a",darken1:"#00897b",darken2:"#00796b",darken3:"#00695c",darken4:"#004d40",accent1:"#a7ffeb",accent2:"#64ffda",accent3:"#1de9b6",accent4:"#00bfa5"},green={base:"#4caf50",lighten5:"#e8f5e9",lighten4:"#c8e6c9",lighten3:"#a5d6a7",lighten2:"#81c784",lighten1:"#66bb6a",darken1:"#43a047",darken2:"#388e3c",darken3:"#2e7d32",darken4:"#1b5e20",accent1:"#b9f6ca",accent2:"#69f0ae",accent3:"#00e676",accent4:"#00c853"},lightGreen={base:"#8bc34a",lighten5:"#f1f8e9",lighten4:"#dcedc8",lighten3:"#c5e1a5",lighten2:"#aed581",lighten1:"#9ccc65",darken1:"#7cb342",darken2:"#689f38",darken3:"#558b2f",darken4:"#33691e",accent1:"#ccff90",accent2:"#b2ff59",accent3:"#76ff03",accent4:"#64dd17"},lime={base:"#cddc39",lighten5:"#f9fbe7",lighten4:"#f0f4c3",lighten3:"#e6ee9c",lighten2:"#dce775",lighten1:"#d4e157",darken1:"#c0ca33",darken2:"#afb42b",darken3:"#9e9d24",darken4:"#827717",accent1:"#f4ff81",accent2:"#eeff41",accent3:"#c6ff00",accent4:"#aeea00"},yellow={base:"#ffeb3b",lighten5:"#fffde7",lighten4:"#fff9c4",lighten3:"#fff59d",lighten2:"#fff176",lighten1:"#ffee58",darken1:"#fdd835",darken2:"#fbc02d",darken3:"#f9a825",darken4:"#f57f17",accent1:"#ffff8d",accent2:"#ffff00",accent3:"#ffea00",accent4:"#ffd600"},amber={base:"#ffc107",lighten5:"#fff8e1",lighten4:"#ffecb3",lighten3:"#ffe082",lighten2:"#ffd54f",lighten1:"#ffca28",darken1:"#ffb300",darken2:"#ffa000",darken3:"#ff8f00",darken4:"#ff6f00",accent1:"#ffe57f",accent2:"#ffd740",accent3:"#ffc400",accent4:"#ffab00"},orange={base:"#ff9800",lighten5:"#fff3e0",lighten4:"#ffe0b2",lighten3:"#ffcc80",lighten2:"#ffb74d",lighten1:"#ffa726",darken1:"#fb8c00",darken2:"#f57c00",darken3:"#ef6c00",darken4:"#e65100",accent1:"#ffd180",accent2:"#ffab40",accent3:"#ff9100",accent4:"#ff6d00"},deepOrange={base:"#ff5722",lighten5:"#fbe9e7",lighten4:"#ffccbc",lighten3:"#ffab91",lighten2:"#ff8a65",lighten1:"#ff7043",darken1:"#f4511e",darken2:"#e64a19",darken3:"#d84315",darken4:"#bf360c",accent1:"#ff9e80",accent2:"#ff6e40",accent3:"#ff3d00",accent4:"#dd2c00"},brown={base:"#795548",lighten5:"#efebe9",lighten4:"#d7ccc8",lighten3:"#bcaaa4",lighten2:"#a1887f",lighten1:"#8d6e63",darken1:"#6d4c41",darken2:"#5d4037",darken3:"#4e342e",darken4:"#3e2723"},blueGrey={base:"#607d8b",lighten5:"#eceff1",lighten4:"#cfd8dc",lighten3:"#b0bec5",lighten2:"#90a4ae",lighten1:"#78909c",darken1:"#546e7a",darken2:"#455a64",darken3:"#37474f",darken4:"#263238"},grey={base:"#9e9e9e",lighten5:"#fafafa",lighten4:"#f5f5f5",lighten3:"#eeeeee",lighten2:"#e0e0e0",lighten1:"#bdbdbd",darken1:"#757575",darken2:"#616161",darken3:"#424242",darken4:"#212121"},shades={black:"#000000",white:"#ffffff",transparent:"#ffffff00"},colors={red,pink,purple,deepPurple,indigo,blue,lightBlue,cyan,teal,green,lightGreen,lime,yellow,amber,orange,deepOrange,brown,blueGrey,grey,shades},makeVColorPickerSwatchesProps=propsFactory({swatches:{type:Array,default:()=>parseDefaultColors(colors)},disabled:Boolean,color:Object,maxHeight:[Number,String],...makeComponentProps()},"VColorPickerSwatches");function parseDefaultColors(e){return Object.keys(e).map(t=>{const r=e[t];return r.base?[r.base,r.darken4,r.darken3,r.darken2,r.darken1,r.lighten1,r.lighten2,r.lighten3,r.lighten4,r.lighten5]:[r.black,r.white,r.transparent]})}const VColorPickerSwatches=defineComponent({name:"VColorPickerSwatches",props:makeVColorPickerSwatchesProps(),emits:{"update:color":e=>!0},setup(e,t){let{emit:r}=t;return useRender(()=>createVNode("div",{class:["v-color-picker-swatches",e.class],style:[{maxHeight:convertToUnit(e.maxHeight)},e.style]},[createVNode("div",null,[e.swatches.map(a=>createVNode("div",{class:"v-color-picker-swatches__swatch"},[a.map(o=>{const u=parseColor(o),d=RGBtoHSV(u),f=RGBtoCSS(u);return createVNode("div",{class:"v-color-picker-swatches__color",onClick:()=>d&&r("update:color",d)},[createVNode("div",{style:{background:f}},[e.color&&deepEqual(e.color,d)?createVNode(VIcon,{size:"x-small",icon:"$success",color:getContrast(o,"#FFFFFF")>2?"white":"black"},null):void 0])])})]))])])),{}}}),makeVSheetProps=propsFactory({color:String,...makeBorderProps(),...makeComponentProps(),...makeDimensionProps(),...makeElevationProps(),...makeLocationProps(),...makePositionProps(),...makeRoundedProps(),...makeTagProps(),...makeThemeProps()},"VSheet"),VSheet=genericComponent()({name:"VSheet",props:makeVSheetProps(),setup(e,t){let{slots:r}=t;const{themeClasses:a}=provideTheme(e),{backgroundColorClasses:o,backgroundColorStyles:u}=useBackgroundColor(toRef(e,"color")),{borderClasses:d}=useBorder(e),{dimensionStyles:f}=useDimension(e),{elevationClasses:g}=useElevation(e),{locationStyles:E}=useLocation(e),{positionClasses:S}=usePosition(e),{roundedClasses:b}=useRounded(e);return useRender(()=>createVNode(e.tag,{class:["v-sheet",a.value,o.value,d.value,g.value,S.value,b.value,e.class],style:[u.value,f.value,E.value,e.style]},r)),{}}}),makeVColorPickerProps=propsFactory({canvasHeight:{type:[String,Number],default:150},disabled:Boolean,dotSize:{type:[Number,String],default:10},hideCanvas:Boolean,hideSliders:Boolean,hideInputs:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(modes).includes(e)},modes:{type:Array,default:()=>Object.keys(modes),validator:e=>Array.isArray(e)&&e.every(t=>Object.keys(modes).includes(t))},showSwatches:Boolean,swatches:Array,swatchesMaxHeight:{type:[Number,String],default:150},modelValue:{type:[Object,String]},...omit(makeVSheetProps({width:300}),["height","location","minHeight","maxHeight","minWidth","maxWidth"])},"VColorPicker"),VColorPicker=defineComponent({name:"VColorPicker",props:makeVColorPickerProps(),emits:{"update:modelValue":e=>!0,"update:mode":e=>!0},setup(e){const t=useProxiedModel(e,"mode"),r=ref$1(null),a=useProxiedModel(e,"modelValue",void 0,d=>{if(d==null||d==="")return null;let f;try{f=RGBtoHSV(parseColor(d))}catch{return null}return r.value&&(f={...f,h:r.value.h},r.value=null),f},d=>d?extractColor(d,e.modelValue):null),{rtlClasses:o}=useRtl(),u=d=>{a.value=d,r.value=d};return onMounted(()=>{e.modes.includes(t.value)||(t.value=e.modes[0])}),provideDefaults({VSlider:{color:void 0,trackColor:void 0,trackFillColor:void 0}}),useRender(()=>{const d=VSheet.filterProps(e);return createVNode(VSheet,mergeProps({rounded:e.rounded,elevation:e.elevation,theme:e.theme,class:["v-color-picker",o.value,e.class],style:[{"--v-color-picker-color-hsv":HSVtoCSS({...a.value??nullColor,a:1})},e.style]},d,{maxWidth:e.width}),{default:()=>[!e.hideCanvas&&createVNode(VColorPickerCanvas,{key:"canvas",color:a.value,"onUpdate:color":u,disabled:e.disabled,dotSize:e.dotSize,width:e.width,height:e.canvasHeight},null),(!e.hideSliders||!e.hideInputs)&&createVNode("div",{key:"controls",class:"v-color-picker__controls"},[!e.hideSliders&&createVNode(VColorPickerPreview,{key:"preview",color:a.value,"onUpdate:color":u,hideAlpha:!t.value.endsWith("a"),disabled:e.disabled},null),!e.hideInputs&&createVNode(VColorPickerEdit,{key:"edit",modes:e.modes,mode:t.value,"onUpdate:mode":f=>t.value=f,color:a.value,"onUpdate:color":u,disabled:e.disabled},null)]),e.showSwatches&&createVNode(VColorPickerSwatches,{key:"swatches",color:a.value,"onUpdate:color":u,maxHeight:e.swatchesMaxHeight,swatches:e.swatches,disabled:e.disabled},null)]})}),{}}});function highlightResult(e,t,r){if(t==null)return e;if(Array.isArray(t))throw new Error("Multiple matches is not implemented");return typeof t=="number"&&~t?createVNode(Fragment,null,[createVNode("span",{class:"v-combobox__unmask"},[e.substr(0,t)]),createVNode("span",{class:"v-combobox__mask"},[e.substr(t,r)]),createVNode("span",{class:"v-combobox__unmask"},[e.substr(t+r)])]):e}const makeVComboboxProps=propsFactory({autoSelectFirst:{type:[Boolean,String]},delimiters:Array,...makeFilterProps({filterKeys:["title"]}),...makeSelectProps({hideNoData:!0,returnObject:!0}),...omit(makeVTextFieldProps({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...makeTransitionProps({transition:!1})},"VCombobox"),VCombobox=genericComponent()({name:"VCombobox",props:makeVComboboxProps(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,t){var ce;let{emit:r,slots:a}=t;const{t:o}=useLocale(),u=ref$1(),d=shallowRef(!1),f=shallowRef(!0),g=shallowRef(!1),E=ref$1(),S=ref$1(),b=useProxiedModel(e,"menu"),v=computed({get:()=>b.value,set:se=>{var Se;b.value&&!se&&((Se=E.value)!=null&&Se.ΨopenChildren)||(b.value=se)}}),y=shallowRef(-1);let T=!1;const C=computed(()=>{var se;return(se=u.value)==null?void 0:se.color}),R=computed(()=>v.value?e.closeText:e.openText),{items:A,transformIn:N,transformOut:I}=useItems(e),{textColorClasses:O,textColorStyles:x}=useTextColor(C),D=useProxiedModel(e,"modelValue",[],se=>N(wrapInArray(se)),se=>{const Se=I(se);return e.multiple?Se:Se[0]??null}),k=useForm(),P=shallowRef(e.multiple?"":((ce=D.value[0])==null?void 0:ce.title)??""),L=computed({get:()=>P.value,set:se=>{var Se;if(P.value=se??"",e.multiple||(D.value=[transformItem$3(e,se)]),se&&e.multiple&&((Se=e.delimiters)!=null&&Se.length)){const W=se.split(new RegExp(`(?:${e.delimiters.join("|")})+`));W.length>1&&(W.forEach(Z=>{Z=Z.trim(),Z&&Ee(transformItem$3(e,Z))}),P.value="")}se||(y.value=-1),f.value=!se}}),F=computed(()=>typeof e.counterValue=="function"?e.counterValue(D.value):typeof e.counterValue=="number"?e.counterValue:e.multiple?D.value.length:L.value.length);watch(P,se=>{T?nextTick$1(()=>T=!1):d.value&&!v.value&&(v.value=!0),r("update:search",se)}),watch(D,se=>{var Se;e.multiple||(P.value=((Se=se[0])==null?void 0:Se.title)??"")});const{filteredItems:B,getMatches:$}=useFilter(e,A,()=>f.value?"":L.value),U=computed(()=>e.hideSelected?B.value.filter(se=>!D.value.some(Se=>Se.value===se.value)):B.value),z=computed(()=>D.value.map(se=>se.value)),K=computed(()=>{var Se;return(e.autoSelectFirst===!0||e.autoSelectFirst==="exact"&&L.value===((Se=U.value[0])==null?void 0:Se.title))&&U.value.length>0&&!f.value&&!g.value}),Q=computed(()=>e.hideNoData&&!U.value.length||e.readonly||(k==null?void 0:k.isReadonly.value)),Y=ref$1(),{onListScroll:G,onListKeydown:j}=useScrolling(Y,u);function ne(se){T=!0,e.openOnClear&&(v.value=!0)}function ie(){Q.value||(v.value=!0)}function te(se){Q.value||(d.value&&(se.preventDefault(),se.stopPropagation()),v.value=!v.value)}function ue(se){var Z;if(isComposingIgnoreKey(se)||e.readonly||k!=null&&k.isReadonly.value)return;const Se=u.value.selectionStart,W=D.value.length;if((y.value>-1||["Enter","ArrowDown","ArrowUp"].includes(se.key))&&se.preventDefault(),["Enter","ArrowDown"].includes(se.key)&&(v.value=!0),["Escape"].includes(se.key)&&(v.value=!1),["Enter","Escape","Tab"].includes(se.key)&&(K.value&&["Enter","Tab"].includes(se.key)&&Ee(B.value[0]),f.value=!0),se.key==="ArrowDown"&&K.value&&((Z=Y.value)==null||Z.focus("next")),!!e.multiple){if(["Backspace","Delete"].includes(se.key)){if(y.value<0){se.key==="Backspace"&&!L.value&&(y.value=W-1);return}const J=y.value,de=D.value[y.value];de&&!de.props.disabled&&Ee(de,!1),y.value=J>=W-1?W-2:J}if(se.key==="ArrowLeft"){if(y.value<0&&Se>0)return;const J=y.value>-1?y.value-1:W-1;D.value[J]?y.value=J:(y.value=-1,u.value.setSelectionRange(L.value.length,L.value.length))}if(se.key==="ArrowRight"){if(y.value<0)return;const J=y.value+1;D.value[J]?y.value=J:(y.value=-1,u.value.setSelectionRange(0,0))}se.key==="Enter"&&L.value&&(Ee(transformItem$3(e,L.value)),L.value="")}}function ge(){var se;d.value&&(f.value=!0,(se=u.value)==null||se.focus())}function Ee(se){let Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e.multiple){const W=D.value.findIndex(J=>e.valueComparator(J.value,se.value)),Z=Se??!~W;if(~W){const J=Z?[...D.value,se]:[...D.value];J.splice(W,1),D.value=J}else Z&&(D.value=[...D.value,se]);L.value=""}else{const W=Se!==!1;D.value=W?[se]:[],P.value=W?se.title:"",nextTick$1(()=>{v.value=!1,f.value=!0})}}function ae(se){d.value=!0,setTimeout(()=>{g.value=!0})}function ee(se){g.value=!1}function oe(se){(se==null||se===""&&!e.multiple)&&(D.value=[])}return watch(d,(se,Se)=>{se||se===Se||(y.value=-1,v.value=!1,K.value&&!g.value&&!D.value.some(W=>{let{value:Z}=W;return Z===U.value[0].value})?Ee(U.value[0]):e.multiple&&L.value&&Ee(transformItem$3(e,L.value)))}),watch(v,()=>{if(!e.hideSelected&&v.value&&D.value.length){const se=U.value.findIndex(Se=>D.value.some(W=>e.valueComparator(W.value,Se.value)));IN_BROWSER&&window.requestAnimationFrame(()=>{var Se;se>=0&&((Se=S.value)==null||Se.scrollToIndex(se))})}}),watch(U,(se,Se)=>{d.value&&(!se.length&&e.hideNoData&&(v.value=!1),!Se.length&&se.length&&(v.value=!0))}),useRender(()=>{const se=!!(e.chips||a.chip),Se=!!(!e.hideNoData||U.value.length||a["prepend-item"]||a["append-item"]||a["no-data"]),W=D.value.length>0,Z=VTextField.filterProps(e);return createVNode(VTextField,mergeProps({ref:u},Z,{modelValue:L.value,"onUpdate:modelValue":[J=>L.value=J,oe],focused:d.value,"onUpdate:focused":J=>d.value=J,validationValue:D.externalValue,counterValue:F.value,dirty:W,class:["v-combobox",{"v-combobox--active-menu":v.value,"v-combobox--chips":!!e.chips,"v-combobox--selection-slot":!!a.selection,"v-combobox--selecting-index":y.value>-1,[`v-combobox--${e.multiple?"multiple":"single"}`]:!0},e.class],style:e.style,readonly:e.readonly,placeholder:W?void 0:e.placeholder,"onClick:clear":ne,"onMousedown:control":ie,onKeydown:ue}),{...a,default:()=>createVNode(Fragment,null,[createVNode(VMenu,mergeProps({ref:E,modelValue:v.value,"onUpdate:modelValue":J=>v.value=J,activator:"parent",contentClass:"v-combobox__content",disabled:Q.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:ge},e.menuProps),{default:()=>[Se&&createVNode(VList,{ref:Y,selected:z.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:J=>J.preventDefault(),onKeydown:j,onFocusin:ae,onFocusout:ee,onScrollPassive:G,tabindex:"-1","aria-live":"polite",color:e.itemColor??e.color},{default:()=>{var J,de,fe;return[(J=a["prepend-item"])==null?void 0:J.call(a),!U.value.length&&!e.hideNoData&&(((de=a["no-data"])==null?void 0:de.call(a))??createVNode(VListItem,{title:o(e.noDataText)},null)),createVNode(VVirtualScroll,{ref:S,renderless:!0,items:U.value},{default:be=>{var ye;let{item:Te,index:he,itemRef:Re}=be;const _e=mergeProps(Te.props,{ref:Re,key:he,active:K.value&&he===0?!0:void 0,onClick:()=>Ee(Te,null)});return((ye=a.item)==null?void 0:ye.call(a,{item:Te,index:he,props:_e}))??createVNode(VListItem,_e,{prepend:ke=>{let{isSelected:De}=ke;return createVNode(Fragment,null,[e.multiple&&!e.hideSelected?createVNode(VCheckboxBtn,{key:Te.value,modelValue:De,ripple:!1,tabindex:"-1"},null):void 0,Te.props.prependAvatar&&createVNode(VAvatar,{image:Te.props.prependAvatar},null),Te.props.prependIcon&&createVNode(VIcon,{icon:Te.props.prependIcon},null)])},title:()=>{var ke,De;return f.value?Te.title:highlightResult(Te.title,(ke=$(Te))==null?void 0:ke.title,((De=L.value)==null?void 0:De.length)??0)}})}}),(fe=a["append-item"])==null?void 0:fe.call(a)]}})]}),D.value.map((J,de)=>{function fe(Re){Re.stopPropagation(),Re.preventDefault(),Ee(J,!1)}const be={"onClick:close":fe,onMousedown(Re){Re.preventDefault(),Re.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0},Te=se?!!a.chip:!!a.selection,he=Te?ensureValidVNode(se?a.chip({item:J,index:de,props:be}):a.selection({item:J,index:de})):void 0;if(!(Te&&!he))return createVNode("div",{key:J.value,class:["v-combobox__selection",de===y.value&&["v-combobox__selection--selected",O.value]],style:de===y.value?x.value:{}},[se?a.chip?createVNode(VDefaultsProvider,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:J.title}}},{default:()=>[he]}):createVNode(VChip,mergeProps({key:"chip",closable:e.closableChips,size:"small",text:J.title,disabled:J.props.disabled},be),null):he??createVNode("span",{class:"v-combobox__selection-text"},[J.title,e.multiple&&de<D.value.length-1&&createVNode("span",{class:"v-combobox__selection-comma"},[createTextVNode(",")])])])})]),"append-inner":function(){var be;for(var J=arguments.length,de=new Array(J),fe=0;fe<J;fe++)de[fe]=arguments[fe];return createVNode(Fragment,null,[(be=a["append-inner"])==null?void 0:be.call(a,...de),(!e.hideNoData||e.items.length)&&e.menuIcon?createVNode(VIcon,{class:"v-combobox__menu-icon",icon:e.menuIcon,onMousedown:te,onClick:noop,"aria-label":o(R.value),title:o(R.value)},null):void 0])}})}),forwardRefs({isFocused:d,isPristine:f,menu:v,search:L,selectionIndex:y,filteredItems:B,select:Ee},u)}}),makeDataTableExpandProps=propsFactory({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),VDataTableExpandedKey=Symbol.for("vuetify:datatable:expanded");function provideExpanded(e){const t=toRef(e,"expandOnClick"),r=useProxiedModel(e,"expanded",e.expanded,f=>new Set(f),f=>[...f.values()]);function a(f,g){const E=new Set(r.value);g?E.add(f.value):E.delete(f.value),r.value=E}function o(f){return r.value.has(f.value)}function u(f){a(f,!o(f))}const d={expand:a,expanded:r,expandOnClick:t,isExpanded:o,toggleExpand:u};return provide(VDataTableExpandedKey,d),d}function useExpanded(){const e=inject$1(VDataTableExpandedKey);if(!e)throw new Error("foo");return e}const makeDataTableGroupProps=propsFactory({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),VDataTableGroupSymbol=Symbol.for("vuetify:data-table-group");function createGroupBy(e){return{groupBy:useProxiedModel(e,"groupBy")}}function provideGroupBy(e){const{groupBy:t,sortBy:r}=e,a=ref$1(new Set),o=computed(()=>t.value.map(E=>({...E,order:E.order??!1})).concat(r.value));function u(E){return a.value.has(E.id)}function d(E){const S=new Set(a.value);u(E)?S.delete(E.id):S.add(E.id),a.value=S}function f(E){function S(b){const v=[];for(const y of b.items)"type"in y&&y.type==="group"?v.push(...S(y)):v.push(y);return v}return S({type:"group",items:E,id:"dummy",key:"dummy",value:"dummy",depth:0})}const g={sortByWithGroups:o,toggleGroup:d,opened:a,groupBy:t,extractRows:f,isGroupOpen:u};return provide(VDataTableGroupSymbol,g),g}function useGroupBy(){const e=inject$1(VDataTableGroupSymbol);if(!e)throw new Error("Missing group!");return e}function groupItemsByProperty(e,t){if(!e.length)return[];const r=new Map;for(const a of e){const o=getObjectValueByPath(a.raw,t);r.has(o)||r.set(o,[]),r.get(o).push(a)}return r}function groupItems(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!t.length)return[];const o=groupItemsByProperty(e,t[0]),u=[],d=t.slice(1);return o.forEach((f,g)=>{const E=t[0],S=`${a}_${E}_${g}`;u.push({depth:r,id:S,key:E,value:g,items:d.length?groupItems(f,d,r+1,S):f,type:"group"})}),u}function flattenItems(e,t){const r=[];for(const a of e)"type"in a&&a.type==="group"?(a.value!=null&&r.push(a),(t.has(a.id)||a.value==null)&&r.push(...flattenItems(a.items,t))):r.push(a);return r}function useGroupedItems(e,t,r){return{flatItems:computed(()=>{if(!t.value.length)return e.value;const o=groupItems(e.value,t.value.map(u=>u.key));return flattenItems(o,r.value)})}}function useOptions(e){let{page:t,itemsPerPage:r,sortBy:a,groupBy:o,search:u}=e;const d=getCurrentInstance("VDataTable"),f=computed(()=>({page:t.value,itemsPerPage:r.value,sortBy:a.value,groupBy:o.value,search:u.value}));let g=null;watch(f,()=>{deepEqual(g,f.value)||((g==null?void 0:g.search)!==f.value.search&&(t.value=1),d.emit("update:options",f.value),g=f.value)},{deep:!0,immediate:!0})}const makeDataTablePaginateProps=propsFactory({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),VDataTablePaginationSymbol=Symbol.for("vuetify:data-table-pagination");function createPagination(e){const t=useProxiedModel(e,"page",void 0,a=>+(a??1)),r=useProxiedModel(e,"itemsPerPage",void 0,a=>+(a??10));return{page:t,itemsPerPage:r}}function providePagination(e){const{page:t,itemsPerPage:r,itemsLength:a}=e,o=computed(()=>r.value===-1?0:r.value*(t.value-1)),u=computed(()=>r.value===-1?a.value:Math.min(a.value,o.value+r.value)),d=computed(()=>r.value===-1||a.value===0?1:Math.ceil(a.value/r.value));watchEffect(()=>{t.value>d.value&&(t.value=d.value)});function f(v){r.value=v,t.value=1}function g(){t.value=clamp(t.value+1,1,d.value)}function E(){t.value=clamp(t.value-1,1,d.value)}function S(v){t.value=clamp(v,1,d.value)}const b={page:t,itemsPerPage:r,startIndex:o,stopIndex:u,pageCount:d,itemsLength:a,nextPage:g,prevPage:E,setPage:S,setItemsPerPage:f};return provide(VDataTablePaginationSymbol,b),b}function usePagination(){const e=inject$1(VDataTablePaginationSymbol);if(!e)throw new Error("Missing pagination!");return e}function usePaginatedItems(e){const{items:t,startIndex:r,stopIndex:a,itemsPerPage:o}=e;return{paginatedItems:computed(()=>o.value<=0?t.value:t.value.slice(r.value,a.value))}}const singleSelectStrategy={showSelectAll:!1,allSelected:()=>[],select:e=>{var a;let{items:t,value:r}=e;return new Set(r?[(a=t[0])==null?void 0:a.value]:[])},selectAll:e=>{let{selected:t}=e;return t}},pageSelectStrategy={showSelectAll:!0,allSelected:e=>{let{currentPage:t}=e;return t},select:e=>{let{items:t,value:r,selected:a}=e;for(const o of t)r?a.add(o.value):a.delete(o.value);return a},selectAll:e=>{let{value:t,currentPage:r,selected:a}=e;return pageSelectStrategy.select({items:r,value:t,selected:a})}},allSelectStrategy={showSelectAll:!0,allSelected:e=>{let{allItems:t}=e;return t},select:e=>{let{items:t,value:r,selected:a}=e;for(const o of t)r?a.add(o.value):a.delete(o.value);return a},selectAll:e=>{let{value:t,allItems:r,selected:a}=e;return allSelectStrategy.select({items:r,value:t,selected:a})}},makeDataTableSelectProps=propsFactory({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:deepEqual}},"DataTable-select"),VDataTableSelectionSymbol=Symbol.for("vuetify:data-table-selection");function provideSelection(e,t){let{allItems:r,currentPage:a}=t;const o=useProxiedModel(e,"modelValue",e.modelValue,R=>new Set(wrapInArray(R).map(A=>{var N;return((N=r.value.find(I=>e.valueComparator(A,I.value)))==null?void 0:N.value)??A})),R=>[...R.values()]),u=computed(()=>r.value.filter(R=>R.selectable)),d=computed(()=>a.value.filter(R=>R.selectable)),f=computed(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return singleSelectStrategy;case"all":return allSelectStrategy;case"page":default:return pageSelectStrategy}});function g(R){return wrapInArray(R).every(A=>o.value.has(A.value))}function E(R){return wrapInArray(R).some(A=>o.value.has(A.value))}function S(R,A){const N=f.value.select({items:R,value:A,selected:new Set(o.value)});o.value=N}function b(R){S([R],!g([R]))}function v(R){const A=f.value.selectAll({value:R,allItems:u.value,currentPage:d.value,selected:new Set(o.value)});o.value=A}const y=computed(()=>o.value.size>0),T=computed(()=>{const R=f.value.allSelected({allItems:u.value,currentPage:d.value});return!!R.length&&g(R)}),C={toggleSelect:b,select:S,selectAll:v,isSelected:g,isSomeSelected:E,someSelected:y,allSelected:T,showSelectAll:f.value.showSelectAll};return provide(VDataTableSelectionSymbol,C),C}function useSelection(){const e=inject$1(VDataTableSelectionSymbol);if(!e)throw new Error("Missing selection!");return e}const makeDataTableSortProps=propsFactory({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),VDataTableSortSymbol=Symbol.for("vuetify:data-table-sort");function createSort(e){const t=useProxiedModel(e,"sortBy"),r=toRef(e,"mustSort"),a=toRef(e,"multiSort");return{sortBy:t,mustSort:r,multiSort:a}}function provideSort(e){const{sortBy:t,mustSort:r,multiSort:a,page:o}=e,u=g=>{if(g.key==null)return;let E=t.value.map(b=>({...b}))??[];const S=E.find(b=>b.key===g.key);S?S.order==="desc"?r.value?S.order="asc":E=E.filter(b=>b.key!==g.key):S.order="desc":a.value?E=[...E,{key:g.key,order:"asc"}]:E=[{key:g.key,order:"asc"}],t.value=E,o&&(o.value=1)};function d(g){return!!t.value.find(E=>E.key===g.key)}const f={sortBy:t,toggleSort:u,isSorted:d};return provide(VDataTableSortSymbol,f),f}function useSort(){const e=inject$1(VDataTableSortSymbol);if(!e)throw new Error("Missing sort!");return e}function useSortedItems(e,t,r,a){const o=useLocale();return{sortedItems:computed(()=>r.value.length?sortItems(t.value,r.value,o.current.value,{...e.customKeySort,...a==null?void 0:a.value}):t.value)}}function sortItems(e,t,r,a){const o=new Intl.Collator(r,{sensitivity:"accent",usage:"sort"});return[...e].sort((u,d)=>{for(let f=0;f<t.length;f++){const g=t[f].key,E=t[f].order??"asc";if(E===!1)continue;let S=getObjectValueByPath(u.raw,g),b=getObjectValueByPath(d.raw,g);if(E==="desc"&&([S,b]=[b,S]),a!=null&&a[g]){const v=a[g](S,b);if(!v)continue;return v}if(S instanceof Date&&b instanceof Date)return S.getTime()-b.getTime();if([S,b]=[S,b].map(v=>v!=null?v.toString().toLocaleLowerCase():v),S!==b)return isEmpty(S)&&isEmpty(b)?0:isEmpty(S)?-1:isEmpty(b)?1:!isNaN(S)&&!isNaN(b)?Number(S)-Number(b):o.compare(S,b)}return 0})}const makeDataIteratorItemsProps=propsFactory({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},returnObject:Boolean},"DataIterator-items");function transformItem$1(e,t){const r=e.returnObject?t:getPropertyFromItem(t,e.itemValue),a=getPropertyFromItem(t,e.itemSelectable,!0);return{type:"item",value:r,selectable:a,raw:t}}function transformItems$1(e,t){const r=[];for(const a of t)r.push(transformItem$1(e,a));return r}function useDataIteratorItems(e){return{items:computed(()=>transformItems$1(e,e.items))}}const makeVDataIteratorProps=propsFactory({search:String,loading:Boolean,...makeComponentProps(),...makeDataIteratorItemsProps(),...makeDataTableSelectProps(),...makeDataTableSortProps(),...makeDataTablePaginateProps({itemsPerPage:5}),...makeDataTableExpandProps(),...makeDataTableGroupProps(),...makeFilterProps(),...makeTagProps()},"VDataIterator"),VDataIterator=genericComponent()({name:"VDataIterator",props:makeVDataIteratorProps(),emits:{"update:modelValue":e=>!0,"update:groupBy":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0},setup(e,t){let{slots:r}=t;const a=useProxiedModel(e,"groupBy"),o=toRef(e,"search"),{items:u}=useDataIteratorItems(e),{filteredItems:d}=useFilter(e,u,o,{transform:ie=>ie.raw}),{sortBy:f,multiSort:g,mustSort:E}=createSort(e),{page:S,itemsPerPage:b}=createPagination(e),{toggleSort:v}=provideSort({sortBy:f,multiSort:g,mustSort:E,page:S}),{sortByWithGroups:y,opened:T,extractRows:C,isGroupOpen:R,toggleGroup:A}=provideGroupBy({groupBy:a,sortBy:f}),{sortedItems:N}=useSortedItems(e,d,y),{flatItems:I}=useGroupedItems(N,a,T),O=computed(()=>I.value.length),{startIndex:x,stopIndex:D,pageCount:k,prevPage:P,nextPage:L,setItemsPerPage:F,setPage:B}=providePagination({page:S,itemsPerPage:b,itemsLength:O}),{paginatedItems:$}=usePaginatedItems({items:I,startIndex:x,stopIndex:D,itemsPerPage:b}),U=computed(()=>C($.value)),{isSelected:z,select:K,selectAll:Q,toggleSelect:Y}=provideSelection(e,{allItems:u,currentPage:U}),{isExpanded:G,toggleExpand:j}=provideExpanded(e);useOptions({page:S,itemsPerPage:b,sortBy:f,groupBy:a,search:o});const ne=computed(()=>({page:S.value,itemsPerPage:b.value,sortBy:f.value,pageCount:k.value,toggleSort:v,prevPage:P,nextPage:L,setPage:B,setItemsPerPage:F,isSelected:z,select:K,selectAll:Q,toggleSelect:Y,isExpanded:G,toggleExpand:j,isGroupOpen:R,toggleGroup:A,items:U.value,groupedItems:$.value}));return useRender(()=>createVNode(e.tag,{class:["v-data-iterator",e.class],style:e.style},{default:()=>{var ie,te,ue,ge;return[(ie=r.header)==null?void 0:ie.call(r,ne.value),$.value.length?(ue=r.default)==null?void 0:ue.call(r,ne.value):(te=r["no-data"])==null?void 0:te.call(r),(ge=r.footer)==null?void 0:ge.call(r,ne.value)]}})),{}}});function useRefs(){const e=ref$1([]);onBeforeUpdate(()=>e.value=[]);function t(r,a){e.value[a]=r}return{refs:e,updateRef:t}}const makeVPaginationProps=propsFactory({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:IconValue,default:"$first"},prevIcon:{type:IconValue,default:"$prev"},nextIcon:{type:IconValue,default:"$next"},lastIcon:{type:IconValue,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...makeBorderProps(),...makeComponentProps(),...makeDensityProps(),...makeElevationProps(),...makeRoundedProps(),...makeSizeProps(),...makeTagProps({tag:"nav"}),...makeThemeProps(),...makeVariantProps({variant:"text"})},"VPagination"),VPagination=genericComponent()({name:"VPagination",props:makeVPaginationProps(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,t){let{slots:r,emit:a}=t;const o=useProxiedModel(e,"modelValue"),{t:u,n:d}=useLocale(),{isRtl:f}=useRtl(),{themeClasses:g}=provideTheme(e),{width:E}=useDisplay(),S=shallowRef(-1);provideDefaults(void 0,{scoped:!0});const{resizeRef:b}=useResizeObserver(P=>{if(!P.length)return;const{target:L,contentRect:F}=P[0],B=L.querySelector(".v-pagination__list > *");if(!B)return;const $=F.width,U=B.offsetWidth+parseFloat(getComputedStyle(B).marginRight)*2;S.value=C($,U)}),v=computed(()=>parseInt(e.length,10)),y=computed(()=>parseInt(e.start,10)),T=computed(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):S.value>=0?S.value:C(E.value,58));function C(P,L){const F=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((P-L*F)/L).toFixed(2)))}const R=computed(()=>{if(v.value<=0||isNaN(v.value)||v.value>Number.MAX_SAFE_INTEGER)return[];if(T.value<=0)return[];if(T.value===1)return[o.value];if(v.value<=T.value)return createRange(v.value,y.value);const P=T.value%2===0,L=P?T.value/2:Math.floor(T.value/2),F=P?L:L+1,B=v.value-L;if(F-o.value>=0)return[...createRange(Math.max(1,T.value-1),y.value),e.ellipsis,v.value];if(o.value-B>=(P?1:0)){const $=T.value-1,U=v.value-$+y.value;return[y.value,e.ellipsis,...createRange($,U)]}else{const $=Math.max(1,T.value-3),U=$===1?o.value:o.value-Math.ceil($/2)+y.value;return[y.value,e.ellipsis,...createRange($,U),e.ellipsis,v.value]}});function A(P,L,F){P.preventDefault(),o.value=L,F&&a(F,L)}const{refs:N,updateRef:I}=useRefs();provideDefaults({VPaginationBtn:{color:toRef(e,"color"),border:toRef(e,"border"),density:toRef(e,"density"),size:toRef(e,"size"),variant:toRef(e,"variant"),rounded:toRef(e,"rounded"),elevation:toRef(e,"elevation")}});const O=computed(()=>R.value.map((P,L)=>{const F=B=>I(B,L);if(typeof P=="string")return{isActive:!1,key:`ellipsis-${L}`,page:P,props:{ref:F,ellipsis:!0,icon:!0,disabled:!0}};{const B=P===o.value;return{isActive:B,key:P,page:d(P),props:{ref:F,ellipsis:!1,icon:!0,disabled:!!e.disabled||+e.length<2,color:B?e.activeColor:e.color,ariaCurrent:B,ariaLabel:u(B?e.currentPageAriaLabel:e.pageAriaLabel,P),onClick:$=>A($,P)}}}})),x=computed(()=>{const P=!!e.disabled||o.value<=y.value,L=!!e.disabled||o.value>=y.value+v.value-1;return{first:e.showFirstLastPage?{icon:f.value?e.lastIcon:e.firstIcon,onClick:F=>A(F,y.value,"first"),disabled:P,ariaLabel:u(e.firstAriaLabel),ariaDisabled:P}:void 0,prev:{icon:f.value?e.nextIcon:e.prevIcon,onClick:F=>A(F,o.value-1,"prev"),disabled:P,ariaLabel:u(e.previousAriaLabel),ariaDisabled:P},next:{icon:f.value?e.prevIcon:e.nextIcon,onClick:F=>A(F,o.value+1,"next"),disabled:L,ariaLabel:u(e.nextAriaLabel),ariaDisabled:L},last:e.showFirstLastPage?{icon:f.value?e.firstIcon:e.lastIcon,onClick:F=>A(F,y.value+v.value-1,"last"),disabled:L,ariaLabel:u(e.lastAriaLabel),ariaDisabled:L}:void 0}});function D(){var L;const P=o.value-y.value;(L=N.value[P])==null||L.$el.focus()}function k(P){P.key===keyValues.left&&!e.disabled&&o.value>+e.start?(o.value=o.value-1,nextTick$1(D)):P.key===keyValues.right&&!e.disabled&&o.value<y.value+v.value-1&&(o.value=o.value+1,nextTick$1(D))}return useRender(()=>createVNode(e.tag,{ref:b,class:["v-pagination",g.value,e.class],style:e.style,role:"navigation","aria-label":u(e.ariaLabel),onKeydown:k,"data-test":"v-pagination-root"},{default:()=>[createVNode("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&createVNode("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[r.first?r.first(x.value.first):createVNode(VBtn,mergeProps({_as:"VPaginationBtn"},x.value.first),null)]),createVNode("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[r.prev?r.prev(x.value.prev):createVNode(VBtn,mergeProps({_as:"VPaginationBtn"},x.value.prev),null)]),O.value.map((P,L)=>createVNode("li",{key:P.key,class:["v-pagination__item",{"v-pagination__item--is-active":P.isActive}],"data-test":"v-pagination-item"},[r.item?r.item(P):createVNode(VBtn,mergeProps({_as:"VPaginationBtn"},P.props),{default:()=>[P.page]})])),createVNode("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[r.next?r.next(x.value.next):createVNode(VBtn,mergeProps({_as:"VPaginationBtn"},x.value.next),null)]),e.showFirstLastPage&&createVNode("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[r.last?r.last(x.value.last):createVNode(VBtn,mergeProps({_as:"VPaginationBtn"},x.value.last),null)])])]})),{}}}),makeVDataTableFooterProps=propsFactory({prevIcon:{type:String,default:"$prev"},nextIcon:{type:String,default:"$next"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),VDataTableFooter=genericComponent()({name:"VDataTableFooter",props:makeVDataTableFooterProps(),setup(e,t){let{slots:r}=t;const{t:a}=useLocale(),{page:o,pageCount:u,startIndex:d,stopIndex:f,itemsLength:g,itemsPerPage:E,setItemsPerPage:S}=usePagination(),b=computed(()=>e.itemsPerPageOptions.map(v=>typeof v=="number"?{value:v,title:v===-1?a("$vuetify.dataFooter.itemsPerPageAll"):String(v)}:{...v,title:a(v.title)}));return useRender(()=>{var y;const v=VPagination.filterProps(e);return createVNode("div",{class:"v-data-table-footer"},[(y=r.prepend)==null?void 0:y.call(r),createVNode("div",{class:"v-data-table-footer__items-per-page"},[createVNode("span",null,[a(e.itemsPerPageText)]),createVNode(VSelect,{items:b.value,modelValue:E.value,"onUpdate:modelValue":T=>S(Number(T)),density:"compact",variant:"outlined","hide-details":!0},null)]),createVNode("div",{class:"v-data-table-footer__info"},[createVNode("div",null,[a(e.pageText,g.value?d.value+1:0,f.value,g.value)])]),createVNode("div",{class:"v-data-table-footer__pagination"},[createVNode(VPagination,mergeProps({modelValue:o.value,"onUpdate:modelValue":T=>o.value=T,density:"comfortable","first-aria-label":e.firstPageLabel,"last-aria-label":e.lastPageLabel,length:u.value,"next-aria-label":e.nextPageLabel,"previous-aria-label":e.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":e.showCurrentPage?1:0,variant:"plain"},v),null)])])}),{}}}),VDataTableColumn=defineFunctionalComponent({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String]},(e,t)=>{let{slots:r}=t;const a=e.tag??"td";return createVNode(a,{class:["v-data-table__td",{"v-data-table-column--fixed":e.fixed,"v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--no-padding":e.noPadding},`v-data-table-column--align-${e.align}`],style:{height:convertToUnit(e.height),width:convertToUnit(e.width),left:convertToUnit(e.fixedOffset||null)}},{default:()=>{var o;return[(o=r.default)==null?void 0:o.call(r)]}})}),makeDataTableHeaderProps=propsFactory({headers:Array},"DataTable-header"),VDataTableHeadersSymbol=Symbol.for("vuetify:data-table-headers"),defaultHeader={title:"",sortable:!1},defaultActionHeader={...defaultHeader,width:48};function priorityQueue(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(r=>({element:r,priority:0}));return{enqueue:(r,a)=>{let o=!1;for(let u=0;u<t.length;u++)if(t[u].priority>a){t.splice(u,0,{element:r,priority:a}),o=!0;break}o||t.push({element:r,priority:a})},size:()=>t.length,count:()=>{let r=0;if(!t.length)return 0;const a=Math.floor(t[0].priority);for(let o=0;o<t.length;o++)Math.floor(t[o].priority)===a&&(r+=1);return r},dequeue:()=>t.shift()}}function extractLeaves(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)t.push(e);else for(const r of e.children)extractLeaves(r,t);return t}function extractKeys(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const r of e)r.key&&t.add(r.key),r.children&&extractKeys(r.children,t);return t}function getDefaultItem(e){if(e.key){if(e.key==="data-table-group")return defaultHeader;if(["data-table-expand","data-table-select"].includes(e.key))return defaultActionHeader}}function getDepth(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(t,...e.children.map(r=>getDepth(r,t+1))):t}function parseFixedColumns(e){let t=!1;function r(u){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(u)if(d&&(u.fixed=!0),u.fixed)if(u.children)for(let f=u.children.length-1;f>=0;f--)r(u.children[f],!0);else t?isNaN(+u.width)&&(`${u.key}`,void 0):u.lastFixed=!0,t=!0;else if(u.children)for(let f=u.children.length-1;f>=0;f--)r(u.children[f]);else t=!1}for(let u=e.length-1;u>=0;u--)r(e[u]);function a(u){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!u)return d;if(u.children){u.fixedOffset=d;for(const f of u.children)d=a(f,d)}else u.fixed&&(u.fixedOffset=d,d+=parseFloat(u.width||"0")||0);return d}let o=0;for(const u of e)o=a(u,o)}function parse(e,t){const r=[];let a=0;const o=priorityQueue(e);for(;o.size()>0;){let d=o.count();const f=[];let g=1;for(;d>0;){const{element:E,priority:S}=o.dequeue(),b=t-a-getDepth(E);if(f.push({...E,rowspan:b??1,colspan:E.children?extractLeaves(E).length:1}),E.children)for(const v of E.children){const y=S%1+g/Math.pow(10,a+2);o.enqueue(v,a+b+y)}g+=1,d-=1}a+=1,r.push(f)}return{columns:e.map(d=>extractLeaves(d)).flat(),headers:r}}function convertToInternalHeaders(e){const t=[];for(const r of e){const a={...getDefaultItem(r),...r},o=a.key??(typeof a.value=="string"?a.value:null),u=a.value??o??null,d={...a,key:o,value:u,sortable:a.sortable??(a.key!=null||!!a.sort),children:a.children?convertToInternalHeaders(a.children):void 0};t.push(d)}return t}function createHeaders(e,t){const r=ref$1([]),a=ref$1([]),o=ref$1(),u=ref$1();watchEffect(()=>{var T,C,R;const g=(e.headers||Object.keys(e.items[0]??{}).map(A=>({key:A,title:capitalize(A)}))).slice(),E=extractKeys(g);(T=t==null?void 0:t.groupBy)!=null&&T.value.length&&!E.has("data-table-group")&&g.unshift({key:"data-table-group",title:"Group"}),(C=t==null?void 0:t.showSelect)!=null&&C.value&&!E.has("data-table-select")&&g.unshift({key:"data-table-select"}),(R=t==null?void 0:t.showExpand)!=null&&R.value&&!E.has("data-table-expand")&&g.push({key:"data-table-expand"});const S=convertToInternalHeaders(g);parseFixedColumns(S);const b=Math.max(...S.map(A=>getDepth(A)))+1,v=parse(S,b);r.value=v.headers,a.value=v.columns;const y=v.headers.flat(1);o.value=y.reduce((A,N)=>(N.sortable&&N.key&&N.sort&&(A[N.key]=N.sort),A),{}),u.value=y.reduce((A,N)=>(N.key&&N.filter&&(A[N.key]=N.filter),A),{})});const d={headers:r,columns:a,sortFunctions:o,filterFunctions:u};return provide(VDataTableHeadersSymbol,d),d}function useHeaders(){const e=inject$1(VDataTableHeadersSymbol);if(!e)throw new Error("Missing headers!");return e}const makeVDataTableHeadersProps=propsFactory({color:String,sticky:Boolean,multiSort:Boolean,sortAscIcon:{type:IconValue,default:"$sortAsc"},sortDescIcon:{type:IconValue,default:"$sortDesc"},...makeLoaderProps()},"VDataTableHeaders"),VDataTableHeaders=genericComponent()({name:"VDataTableHeaders",props:makeVDataTableHeadersProps(),setup(e,t){let{slots:r}=t;const{toggleSort:a,sortBy:o,isSorted:u}=useSort(),{someSelected:d,allSelected:f,selectAll:g,showSelectAll:E}=useSelection(),{columns:S,headers:b}=useHeaders(),{loaderClasses:v}=useLoader(e);function y(I,O){if(!(!e.sticky&&!I.fixed))return{position:"sticky",left:I.fixed?convertToUnit(I.fixedOffset):void 0,top:e.sticky?`calc(var(--v-table-header-height) * ${O})`:void 0}}function T(I){const O=o.value.find(x=>x.key===I.key);return O?O.order==="asc"?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:C,backgroundColorStyles:R}=useBackgroundColor(e,"color"),A=computed(()=>({headers:b.value,columns:S.value,toggleSort:a,isSorted:u,sortBy:o.value,someSelected:d.value,allSelected:f.value,selectAll:g,getSortIcon:T})),N=I=>{let{column:O,x,y:D}=I;const k=O.key==="data-table-select"||O.key==="data-table-expand";return createVNode(VDataTableColumn,mergeProps({tag:"th",align:O.align,class:["v-data-table__th",{"v-data-table__th--sortable":O.sortable,"v-data-table__th--sorted":u(O),"v-data-table__th--fixed":O.fixed,"v-data-table__th--sticky":e.sticky},v.value],style:{width:convertToUnit(O.width),minWidth:convertToUnit(O.minWidth),...y(O,D)},colspan:O.colspan,rowspan:O.rowspan,onClick:O.sortable?()=>a(O):void 0,fixed:O.fixed,lastFixed:O.lastFixed,noPadding:k},O.headerProps),{default:()=>{var F;const P=`header.${O.key}`,L={column:O,selectAll:g,isSorted:u,toggleSort:a,sortBy:o.value,someSelected:d.value,allSelected:f.value,getSortIcon:T};return r[P]?r[P](L):O.key==="data-table-select"?((F=r["header.data-table-select"])==null?void 0:F.call(r,L))??(E&&createVNode(VCheckboxBtn,{modelValue:f.value,indeterminate:d.value&&!f.value,"onUpdate:modelValue":g},null)):createVNode("div",{class:"v-data-table-header__content"},[createVNode("span",null,[O.title]),O.sortable&&createVNode(VIcon,{key:"icon",class:"v-data-table-header__sort-icon",icon:T(O)},null),e.multiSort&&u(O)&&createVNode("div",{key:"badge",class:["v-data-table-header__sort-badge",...C.value],style:R.value},[o.value.findIndex(B=>B.key===O.key)+1])])}})};useRender(()=>createVNode(Fragment,null,[r.headers?r.headers(A.value):b.value.map((I,O)=>createVNode("tr",null,[I.map((x,D)=>createVNode(N,{column:x,x:D,y:O},null))])),e.loading&&createVNode("tr",{class:"v-data-table-progress"},[createVNode("th",{colspan:S.value.length},[createVNode(LoaderSlot,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0},{default:r.loader})])])]))}}),makeVDataTableGroupHeaderRowProps=propsFactory({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),VDataTableGroupHeaderRow=genericComponent()({name:"VDataTableGroupHeaderRow",props:makeVDataTableGroupHeaderRowProps(),setup(e,t){let{slots:r}=t;const{isGroupOpen:a,toggleGroup:o,extractRows:u}=useGroupBy(),{isSelected:d,isSomeSelected:f,select:g}=useSelection(),{columns:E}=useHeaders(),S=computed(()=>u([e.item]));return()=>createVNode("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[E.value.map(b=>{var v,y;if(b.key==="data-table-group"){const T=a(e.item)?"$expand":"$next",C=()=>o(e.item);return((v=r["data-table-group"])==null?void 0:v.call(r,{item:e.item,count:S.value.length,props:{icon:T,onClick:C}}))??createVNode(VDataTableColumn,{class:"v-data-table-group-header-row__column"},{default:()=>[createVNode(VBtn,{size:"small",variant:"text",icon:T,onClick:C},null),createVNode("span",null,[e.item.value]),createVNode("span",null,[createTextVNode("("),S.value.length,createTextVNode(")")])]})}if(b.key==="data-table-select"){const T=d(S.value),C=f(S.value)&&!T,R=A=>g(S.value,A);return((y=r["data-table-select"])==null?void 0:y.call(r,{props:{modelValue:T,indeterminate:C,"onUpdate:modelValue":R}}))??createVNode("td",null,[createVNode(VCheckboxBtn,{modelValue:T,indeterminate:C,"onUpdate:modelValue":R},null)])}return createVNode("td",null,null)})])}}),makeVDataTableRowProps=propsFactory({index:Number,item:Object,cellProps:[Object,Function],onClick:EventProp(),onContextmenu:EventProp(),onDblclick:EventProp()},"VDataTableRow"),VDataTableRow=genericComponent()({name:"VDataTableRow",props:makeVDataTableRowProps(),setup(e,t){let{slots:r}=t;const{isSelected:a,toggleSelect:o}=useSelection(),{isExpanded:u,toggleExpand:d}=useExpanded(),{columns:f}=useHeaders();useRender(()=>createVNode("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)}],onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&f.value.map((g,E)=>{const S=e.item,b=`item.${g.key}`,v={index:e.index,item:S.raw,internalItem:S,value:getObjectValueByPath(S.columns,g.key),column:g,isSelected:a,toggleSelect:o,isExpanded:u,toggleExpand:d},y=typeof e.cellProps=="function"?e.cellProps({index:v.index,item:v.item,internalItem:v.internalItem,value:v.value,column:g}):e.cellProps,T=typeof g.cellProps=="function"?g.cellProps({index:v.index,item:v.item,internalItem:v.internalItem,value:v.value}):g.cellProps;return createVNode(VDataTableColumn,mergeProps({align:g.align,fixed:g.fixed,fixedOffset:g.fixedOffset,lastFixed:g.lastFixed,noPadding:g.key==="data-table-select"||g.key==="data-table-expand",width:g.width},y,T),{default:()=>{var C,R;return r[b]?r[b](v):g.key==="data-table-select"?((C=r["item.data-table-select"])==null?void 0:C.call(r,v))??createVNode(VCheckboxBtn,{disabled:!S.selectable,modelValue:a([S]),onClick:withModifiers(()=>o(S),["stop"])},null):g.key==="data-table-expand"?((R=r["item.data-table-expand"])==null?void 0:R.call(r,v))??createVNode(VBtn,{icon:u(S)?"$collapse":"$expand",size:"small",variant:"text",onClick:withModifiers(()=>d(S),["stop"])},null):toDisplayString(v.value)}})})]))}}),makeVDataTableRowsProps=propsFactory({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function]},"VDataTableRows"),VDataTableRows=genericComponent()({name:"VDataTableRows",inheritAttrs:!1,props:makeVDataTableRowsProps(),setup(e,t){let{attrs:r,slots:a}=t;const{columns:o}=useHeaders(),{expandOnClick:u,toggleExpand:d,isExpanded:f}=useExpanded(),{isSelected:g,toggleSelect:E}=useSelection(),{toggleGroup:S,isGroupOpen:b}=useGroupBy(),{t:v}=useLocale();return useRender(()=>{var y,T;return e.loading&&(!e.items.length||a.loading)?createVNode("tr",{class:"v-data-table-rows-loading",key:"loading"},[createVNode("td",{colspan:o.value.length},[((y=a.loading)==null?void 0:y.call(a))??v(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?createVNode("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[createVNode("td",{colspan:o.value.length},[((T=a["no-data"])==null?void 0:T.call(a))??v(e.noDataText)])]):createVNode(Fragment,null,[e.items.map((C,R)=>{var I;if(C.type==="group"){const O={index:R,item:C,columns:o.value,isExpanded:f,toggleExpand:d,isSelected:g,toggleSelect:E,toggleGroup:S,isGroupOpen:b};return a["group-header"]?a["group-header"](O):createVNode(VDataTableGroupHeaderRow,mergeProps({key:`group-header_${C.id}`,item:C},getPrefixedEventHandlers(r,":group-header",()=>O)),a)}const A={index:R,item:C.raw,internalItem:C,columns:o.value,isExpanded:f,toggleExpand:d,isSelected:g,toggleSelect:E},N={...A,props:mergeProps({key:`item_${C.key??C.index}`,onClick:u.value?()=>{d(C)}:void 0,index:R,item:C,cellProps:e.cellProps},getPrefixedEventHandlers(r,":row",()=>A),typeof e.rowProps=="function"?e.rowProps({item:A.item,index:A.index,internalItem:A.internalItem}):e.rowProps)};return createVNode(Fragment,{key:N.props.key},[a.item?a.item(N):createVNode(VDataTableRow,N.props,a),f(C)&&((I=a["expanded-row"])==null?void 0:I.call(a,A))])})])}),{}}}),makeVTableProps=propsFactory({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...makeComponentProps(),...makeDensityProps(),...makeTagProps(),...makeThemeProps()},"VTable"),VTable=genericComponent()({name:"VTable",props:makeVTableProps(),setup(e,t){let{slots:r,emit:a}=t;const{themeClasses:o}=provideTheme(e),{densityClasses:u}=useDensity(e);return useRender(()=>createVNode(e.tag,{class:["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!r.top,"v-table--has-bottom":!!r.bottom,"v-table--hover":e.hover},o.value,u.value,e.class],style:e.style},{default:()=>{var d,f,g;return[(d=r.top)==null?void 0:d.call(r),r.default?createVNode("div",{class:"v-table__wrapper",style:{height:convertToUnit(e.height)}},[createVNode("table",null,[r.default()])]):(f=r.wrapper)==null?void 0:f.call(r),(g=r.bottom)==null?void 0:g.call(r)]}})),{}}}),makeDataTableItemsProps=propsFactory({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function transformItem(e,t,r,a){const o=e.returnObject?t:getPropertyFromItem(t,e.itemValue),u=getPropertyFromItem(t,e.itemSelectable,!0),d=a.reduce((f,g)=>(g.key!=null&&(f[g.key]=getPropertyFromItem(t,g.value)),f),{});return{type:"item",key:e.returnObject?getPropertyFromItem(t,e.itemValue):o,index:r,value:o,selectable:u,columns:d,raw:t}}function transformItems(e,t,r){return t.map((a,o)=>transformItem(e,a,o,r))}function useDataTableItems(e,t){return{items:computed(()=>transformItems(e,e.items,t.value))}}const makeDataTableProps=propsFactory({...makeVDataTableRowsProps(),width:[String,Number],search:String,...makeDataTableExpandProps(),...makeDataTableGroupProps(),...makeDataTableHeaderProps(),...makeDataTableItemsProps(),...makeDataTableSelectProps(),...makeDataTableSortProps(),...makeVDataTableHeadersProps(),...makeVTableProps()},"DataTable"),makeVDataTableProps=propsFactory({...makeDataTablePaginateProps(),...makeDataTableProps(),...makeFilterProps(),...makeVDataTableFooterProps()},"VDataTable"),VDataTable=genericComponent()({name:"VDataTable",props:makeVDataTableProps(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,t){let{attrs:r,slots:a}=t;const{groupBy:o}=createGroupBy(e),{sortBy:u,multiSort:d,mustSort:f}=createSort(e),{page:g,itemsPerPage:E}=createPagination(e),{columns:S,headers:b,sortFunctions:v,filterFunctions:y}=createHeaders(e,{groupBy:o,showSelect:toRef(e,"showSelect"),showExpand:toRef(e,"showExpand")}),{items:T}=useDataTableItems(e,S),C=toRef(e,"search"),{filteredItems:R}=useFilter(e,T,C,{transform:Ee=>Ee.columns,customKeyFilter:y}),{toggleSort:A}=provideSort({sortBy:u,multiSort:d,mustSort:f,page:g}),{sortByWithGroups:N,opened:I,extractRows:O,isGroupOpen:x,toggleGroup:D}=provideGroupBy({groupBy:o,sortBy:u}),{sortedItems:k}=useSortedItems(e,R,N,v),{flatItems:P}=useGroupedItems(k,o,I),L=computed(()=>P.value.length),{startIndex:F,stopIndex:B,pageCount:$,setItemsPerPage:U}=providePagination({page:g,itemsPerPage:E,itemsLength:L}),{paginatedItems:z}=usePaginatedItems({items:P,startIndex:F,stopIndex:B,itemsPerPage:E}),K=computed(()=>O(z.value)),{isSelected:Q,select:Y,selectAll:G,toggleSelect:j,someSelected:ne,allSelected:ie}=provideSelection(e,{allItems:T,currentPage:K}),{isExpanded:te,toggleExpand:ue}=provideExpanded(e);useOptions({page:g,itemsPerPage:E,sortBy:u,groupBy:o,search:C}),provideDefaults({VDataTableRows:{hideNoData:toRef(e,"hideNoData"),noDataText:toRef(e,"noDataText"),loading:toRef(e,"loading"),loadingText:toRef(e,"loadingText")}});const ge=computed(()=>({page:g.value,itemsPerPage:E.value,sortBy:u.value,pageCount:$.value,toggleSort:A,setItemsPerPage:U,someSelected:ne.value,allSelected:ie.value,isSelected:Q,select:Y,selectAll:G,toggleSelect:j,isExpanded:te,toggleExpand:ue,isGroupOpen:x,toggleGroup:D,items:K.value.map(Ee=>Ee.raw),internalItems:K.value,groupedItems:z.value,columns:S.value,headers:b.value}));return useRender(()=>{const Ee=VDataTableFooter.filterProps(e),ae=VDataTableHeaders.filterProps(e),ee=VDataTableRows.filterProps(e),oe=VTable.filterProps(e);return createVNode(VTable,mergeProps({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},oe),{top:()=>{var ce;return(ce=a.top)==null?void 0:ce.call(a,ge.value)},default:()=>{var ce,se,Se,W,Z,J;return a.default?a.default(ge.value):createVNode(Fragment,null,[(ce=a.colgroup)==null?void 0:ce.call(a,ge.value),createVNode("thead",null,[createVNode(VDataTableHeaders,ae,a)]),(se=a.thead)==null?void 0:se.call(a,ge.value),createVNode("tbody",null,[(Se=a["body.prepend"])==null?void 0:Se.call(a,ge.value),a.body?a.body(ge.value):createVNode(VDataTableRows,mergeProps(r,ee,{items:z.value}),a),(W=a["body.append"])==null?void 0:W.call(a,ge.value)]),(Z=a.tbody)==null?void 0:Z.call(a,ge.value),(J=a.tfoot)==null?void 0:J.call(a,ge.value)])},bottom:()=>a.bottom?a.bottom(ge.value):createVNode(Fragment,null,[createVNode(VDivider,null,null),createVNode(VDataTableFooter,Ee,{prepend:a["footer.prepend"]})])})}),{}}}),makeVDataTableVirtualProps=propsFactory({...makeDataTableProps(),...makeDataTableGroupProps(),...makeVirtualProps(),...makeFilterProps()},"VDataTableVirtual"),VDataTableVirtual=genericComponent()({name:"VDataTableVirtual",props:makeVDataTableVirtualProps(),emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,t){let{attrs:r,slots:a}=t;const{groupBy:o}=createGroupBy(e),{sortBy:u,multiSort:d,mustSort:f}=createSort(e),{columns:g,headers:E,sortFunctions:S,filterFunctions:b}=createHeaders(e,{groupBy:o,showSelect:toRef(e,"showSelect"),showExpand:toRef(e,"showExpand")}),{items:v}=useDataTableItems(e,g),y=toRef(e,"search"),{filteredItems:T}=useFilter(e,v,y,{transform:ae=>ae.columns,customKeyFilter:b}),{toggleSort:C}=provideSort({sortBy:u,multiSort:d,mustSort:f}),{sortByWithGroups:R,opened:A,extractRows:N,isGroupOpen:I,toggleGroup:O}=provideGroupBy({groupBy:o,sortBy:u}),{sortedItems:x}=useSortedItems(e,T,R,S),{flatItems:D}=useGroupedItems(x,o,A),k=computed(()=>N(D.value)),{isSelected:P,select:L,selectAll:F,toggleSelect:B,someSelected:$,allSelected:U}=provideSelection(e,{allItems:k,currentPage:k}),{isExpanded:z,toggleExpand:K}=provideExpanded(e),{containerRef:Q,markerRef:Y,paddingTop:G,paddingBottom:j,computedItems:ne,handleItemResize:ie,handleScroll:te,handleScrollend:ue}=useVirtual(e,D),ge=computed(()=>ne.value.map(ae=>ae.raw));useOptions({sortBy:u,page:shallowRef(1),itemsPerPage:shallowRef(-1),groupBy:o,search:y}),provideDefaults({VDataTableRows:{hideNoData:toRef(e,"hideNoData"),noDataText:toRef(e,"noDataText"),loading:toRef(e,"loading"),loadingText:toRef(e,"loadingText")}});const Ee=computed(()=>({sortBy:u.value,toggleSort:C,someSelected:$.value,allSelected:U.value,isSelected:P,select:L,selectAll:F,toggleSelect:B,isExpanded:z,toggleExpand:K,isGroupOpen:I,toggleGroup:O,items:k.value.map(ae=>ae.raw),internalItems:k.value,groupedItems:D.value,columns:g.value,headers:E.value}));useRender(()=>{const ae=VDataTableHeaders.filterProps(e),ee=VDataTableRows.filterProps(e),oe=VTable.filterProps(e);return createVNode(VTable,mergeProps({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},oe),{top:()=>{var ce;return(ce=a.top)==null?void 0:ce.call(a,Ee.value)},wrapper:()=>{var ce,se;return createVNode("div",{ref:Q,onScrollPassive:te,onScrollend:ue,class:"v-table__wrapper",style:{height:convertToUnit(e.height)}},[createVNode("table",null,[createVNode("thead",null,[createVNode(VDataTableHeaders,mergeProps(ae,{sticky:e.fixedHeader}),a)]),createVNode("tbody",null,[createVNode("tr",{ref:Y,style:{height:convertToUnit(G.value),border:0}},[createVNode("td",{colspan:g.value.length,style:{height:0,border:0}},null)]),(ce=a["body.prepend"])==null?void 0:ce.call(a,Ee.value),createVNode(VDataTableRows,mergeProps(r,ee,{items:ge.value}),{...a,item:Se=>createVNode(VVirtualScrollItem,{key:Se.internalItem.index,renderless:!0,"onUpdate:height":W=>ie(Se.internalItem.index,W)},{default:W=>{var J;let{itemRef:Z}=W;return((J=a.item)==null?void 0:J.call(a,{...Se,itemRef:Z}))??createVNode(VDataTableRow,mergeProps(Se.props,{ref:Z,key:Se.internalItem.index,index:Se.internalItem.index}),a)}})}),(se=a["body.append"])==null?void 0:se.call(a,Ee.value),createVNode("tr",{style:{height:convertToUnit(j.value),border:0}},[createVNode("td",{colspan:g.value.length,style:{height:0,border:0}},null)])])])])},bottom:()=>{var ce;return(ce=a.bottom)==null?void 0:ce.call(a,Ee.value)}})})}}),makeVDataTableServerProps=propsFactory({itemsLength:{type:[Number,String],required:!0},...makeDataTablePaginateProps(),...makeDataTableProps(),...makeVDataTableFooterProps()},"VDataTableServer"),VDataTableServer=genericComponent()({name:"VDataTableServer",props:makeVDataTableServerProps(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0,"update:groupBy":e=>!0},setup(e,t){let{attrs:r,slots:a}=t;const{groupBy:o}=createGroupBy(e),{sortBy:u,multiSort:d,mustSort:f}=createSort(e),{page:g,itemsPerPage:E}=createPagination(e),S=computed(()=>parseInt(e.itemsLength,10)),{columns:b,headers:v}=createHeaders(e,{groupBy:o,showSelect:toRef(e,"showSelect"),showExpand:toRef(e,"showExpand")}),{items:y}=useDataTableItems(e,b),{toggleSort:T}=provideSort({sortBy:u,multiSort:d,mustSort:f,page:g}),{opened:C,isGroupOpen:R,toggleGroup:A,extractRows:N}=provideGroupBy({groupBy:o,sortBy:u}),{pageCount:I,setItemsPerPage:O}=providePagination({page:g,itemsPerPage:E,itemsLength:S}),{flatItems:x}=useGroupedItems(y,o,C),{isSelected:D,select:k,selectAll:P,toggleSelect:L,someSelected:F,allSelected:B}=provideSelection(e,{allItems:y,currentPage:y}),{isExpanded:$,toggleExpand:U}=provideExpanded(e),z=computed(()=>N(y.value));useOptions({page:g,itemsPerPage:E,sortBy:u,groupBy:o,search:toRef(e,"search")}),provide("v-data-table",{toggleSort:T,sortBy:u}),provideDefaults({VDataTableRows:{hideNoData:toRef(e,"hideNoData"),noDataText:toRef(e,"noDataText"),loading:toRef(e,"loading"),loadingText:toRef(e,"loadingText")}});const K=computed(()=>({page:g.value,itemsPerPage:E.value,sortBy:u.value,pageCount:I.value,toggleSort:T,setItemsPerPage:O,someSelected:F.value,allSelected:B.value,isSelected:D,select:k,selectAll:P,toggleSelect:L,isExpanded:$,toggleExpand:U,isGroupOpen:R,toggleGroup:A,items:z.value.map(Q=>Q.raw),internalItems:z.value,groupedItems:x.value,columns:b.value,headers:v.value}));useRender(()=>{const Q=VDataTableFooter.filterProps(e),Y=VDataTableHeaders.filterProps(e),G=VDataTableRows.filterProps(e),j=VTable.filterProps(e);return createVNode(VTable,mergeProps({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},j),{top:()=>{var ne;return(ne=a.top)==null?void 0:ne.call(a,K.value)},default:()=>{var ne,ie,te,ue,ge,Ee;return a.default?a.default(K.value):createVNode(Fragment,null,[(ne=a.colgroup)==null?void 0:ne.call(a,K.value),createVNode("thead",{class:"v-data-table__thead",role:"rowgroup"},[createVNode(VDataTableHeaders,mergeProps(Y,{sticky:e.fixedHeader}),a)]),(ie=a.thead)==null?void 0:ie.call(a,K.value),createVNode("tbody",{class:"v-data-table__tbody",role:"rowgroup"},[(te=a["body.prepend"])==null?void 0:te.call(a,K.value),a.body?a.body(K.value):createVNode(VDataTableRows,mergeProps(r,G,{items:x.value}),a),(ue=a["body.append"])==null?void 0:ue.call(a,K.value)]),(ge=a.tbody)==null?void 0:ge.call(a,K.value),(Ee=a.tfoot)==null?void 0:Ee.call(a,K.value)])},bottom:()=>a.bottom?a.bottom(K.value):createVNode(VDataTableFooter,Q,{prepend:a["footer.prepend"]})})})}}),makeVContainerProps=propsFactory({fluid:{type:Boolean,default:!1},...makeComponentProps(),...makeTagProps()},"VContainer"),VContainer=genericComponent()({name:"VContainer",props:makeVContainerProps(),setup(e,t){let{slots:r}=t;const{rtlClasses:a}=useRtl();return useRender(()=>createVNode(e.tag,{class:["v-container",{"v-container--fluid":e.fluid},a.value,e.class],style:e.style},r)),{}}}),breakpointProps=(()=>breakpoints.reduce((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e),{}))(),offsetProps=(()=>breakpoints.reduce((e,t)=>{const r="offset"+capitalize(t);return e[r]={type:[String,Number],default:null},e},{}))(),orderProps=(()=>breakpoints.reduce((e,t)=>{const r="order"+capitalize(t);return e[r]={type:[String,Number],default:null},e},{}))(),propMap$1={col:Object.keys(breakpointProps),offset:Object.keys(offsetProps),order:Object.keys(orderProps)};function breakpointClass$1(e,t,r){let a=e;if(!(r==null||r===!1)){if(t){const o=t.replace(e,"");a+=`-${o}`}return e==="col"&&(a="v-"+a),e==="col"&&(r===""||r===!0)||(a+=`-${r}`),a.toLowerCase()}}const ALIGN_SELF_VALUES=["auto","start","end","center","baseline","stretch"],makeVColProps=propsFactory({cols:{type:[Boolean,String,Number],default:!1},...breakpointProps,offset:{type:[String,Number],default:null},...offsetProps,order:{type:[String,Number],default:null},...orderProps,alignSelf:{type:String,default:null,validator:e=>ALIGN_SELF_VALUES.includes(e)},...makeComponentProps(),...makeTagProps()},"VCol"),VCol=genericComponent()({name:"VCol",props:makeVColProps(),setup(e,t){let{slots:r}=t;const a=computed(()=>{const o=[];let u;for(u in propMap$1)propMap$1[u].forEach(f=>{const g=e[f],E=breakpointClass$1(u,f,g);E&&o.push(E)});const d=o.some(f=>f.startsWith("v-col-"));return o.push({"v-col":!d||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),o});return()=>{var o;return h(e.tag,{class:[a.value,e.class],style:e.style},(o=r.default)==null?void 0:o.call(r))}}}),ALIGNMENT=["start","end","center"],SPACE=["space-between","space-around","space-evenly"];function makeRowProps(e,t){return breakpoints.reduce((r,a)=>{const o=e+capitalize(a);return r[o]=t(),r},{})}const ALIGN_VALUES=[...ALIGNMENT,"baseline","stretch"],alignValidator=e=>ALIGN_VALUES.includes(e),alignProps=makeRowProps("align",()=>({type:String,default:null,validator:alignValidator})),JUSTIFY_VALUES=[...ALIGNMENT,...SPACE],justifyValidator=e=>JUSTIFY_VALUES.includes(e),justifyProps=makeRowProps("justify",()=>({type:String,default:null,validator:justifyValidator})),ALIGN_CONTENT_VALUES=[...ALIGNMENT,...SPACE,"stretch"],alignContentValidator=e=>ALIGN_CONTENT_VALUES.includes(e),alignContentProps=makeRowProps("alignContent",()=>({type:String,default:null,validator:alignContentValidator})),propMap={align:Object.keys(alignProps),justify:Object.keys(justifyProps),alignContent:Object.keys(alignContentProps)},classMap={align:"align",justify:"justify",alignContent:"align-content"};function breakpointClass(e,t,r){let a=classMap[e];if(r!=null){if(t){const o=t.replace(e,"");a+=`-${o}`}return a+=`-${r}`,a.toLowerCase()}}const makeVRowProps=propsFactory({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:alignValidator},...alignProps,justify:{type:String,default:null,validator:justifyValidator},...justifyProps,alignContent:{type:String,default:null,validator:alignContentValidator},...alignContentProps,...makeComponentProps(),...makeTagProps()},"VRow"),VRow=genericComponent()({name:"VRow",props:makeVRowProps(),setup(e,t){let{slots:r}=t;const a=computed(()=>{const o=[];let u;for(u in propMap)propMap[u].forEach(d=>{const f=e[d],g=breakpointClass(u,d,f);g&&o.push(g)});return o.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),o});return()=>{var o;return h(e.tag,{class:["v-row",a.value,e.class],style:e.style},(o=r.default)==null?void 0:o.call(r))}}}),VSpacer=createSimpleFunctional("v-spacer","div","VSpacer"),makeVDatePickerControlsProps=propsFactory({active:{type:[String,Array],default:void 0},disabled:{type:[Boolean,String,Array],default:!1},nextIcon:{type:[String],default:"$next"},prevIcon:{type:[String],default:"$prev"},modeIcon:{type:[String],default:"$subgroup"},text:String,viewMode:{type:String,default:"month"}},"VDatePickerControls"),VDatePickerControls=genericComponent()({name:"VDatePickerControls",props:makeVDatePickerControlsProps(),emits:{"click:year":()=>!0,"click:month":()=>!0,"click:prev":()=>!0,"click:next":()=>!0,"click:text":()=>!0},setup(e,t){let{emit:r}=t;const a=computed(()=>Array.isArray(e.disabled)?e.disabled.includes("text"):!!e.disabled),o=computed(()=>Array.isArray(e.disabled)?e.disabled.includes("mode"):!!e.disabled),u=computed(()=>Array.isArray(e.disabled)?e.disabled.includes("prev"):!!e.disabled),d=computed(()=>Array.isArray(e.disabled)?e.disabled.includes("next"):!!e.disabled);function f(){r("click:prev")}function g(){r("click:next")}function E(){r("click:year")}function S(){r("click:month")}return useRender(()=>createVNode("div",{class:["v-date-picker-controls"]},[createVNode(VBtn,{class:"v-date-picker-controls__month-btn",disabled:a.value,text:e.text,variant:"text",rounded:!0,onClick:S},null),createVNode(VBtn,{key:"mode-btn",class:"v-date-picker-controls__mode-btn",disabled:o.value,density:"comfortable",icon:e.modeIcon,variant:"text",onClick:E},null),createVNode(VSpacer,{key:"mode-spacer"},null),createVNode("div",{key:"month-buttons",class:"v-date-picker-controls__month"},[createVNode(VBtn,{disabled:u.value,icon:e.prevIcon,variant:"text",onClick:f},null),createVNode(VBtn,{disabled:d.value,icon:e.nextIcon,variant:"text",onClick:g},null)])])),{}}}),makeVDatePickerHeaderProps=propsFactory({appendIcon:String,color:String,header:String,transition:String,onClick:EventProp()},"VDatePickerHeader"),VDatePickerHeader=genericComponent()({name:"VDatePickerHeader",props:makeVDatePickerHeaderProps(),emits:{click:()=>!0,"click:append":()=>!0},setup(e,t){let{emit:r,slots:a}=t;const{backgroundColorClasses:o,backgroundColorStyles:u}=useBackgroundColor(e,"color");function d(){r("click")}function f(){r("click:append")}return useRender(()=>{const g=!!(a.default||e.header),E=!!(a.append||e.appendIcon);return createVNode("div",{class:["v-date-picker-header",{"v-date-picker-header--clickable":!!e.onClick},o.value],style:u.value,onClick:d},[a.prepend&&createVNode("div",{key:"prepend",class:"v-date-picker-header__prepend"},[a.prepend()]),g&&createVNode(MaybeTransition,{key:"content",name:e.transition},{default:()=>{var S;return[createVNode("div",{key:e.header,class:"v-date-picker-header__content"},[((S=a.default)==null?void 0:S.call(a))??e.header])]}}),E&&createVNode("div",{class:"v-date-picker-header__append"},[a.append?createVNode(VDefaultsProvider,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VBtn:{icon:e.appendIcon,variant:"text"}}},{default:()=>{var S;return[(S=a.append)==null?void 0:S.call(a)]}}):createVNode(VBtn,{key:"append-btn",icon:e.appendIcon,variant:"text",onClick:f},null)])])}),{}}}),makeCalendarProps=propsFactory({allowedDates:[Array,Function],disabled:Boolean,displayValue:null,modelValue:Array,month:[Number,String],max:null,min:null,showAdjacentMonths:Boolean,year:[Number,String],weekdays:{type:Array,default:()=>[0,1,2,3,4,5,6]}},"calendar");function useCalendar(e){const t=useDate(),r=useProxiedModel(e,"modelValue",[],v=>wrapInArray(v)),a=computed(()=>e.displayValue?t.date(e.displayValue):r.value.length>0?t.date(r.value[0]):e.min?t.date(e.min):Array.isArray(e.allowedDates)?t.date(e.allowedDates[0]):t.date()),o=useProxiedModel(e,"year",void 0,v=>{const y=v!=null?Number(v):t.getYear(a.value);return t.startOfYear(t.setYear(t.date(),y))},v=>t.getYear(v)),u=useProxiedModel(e,"month",void 0,v=>{const y=v!=null?Number(v):t.getMonth(a.value),T=t.setYear(t.date(),t.getYear(o.value));return t.setMonth(T,y)},v=>t.getMonth(v)),d=computed(()=>{const v=t.getWeekArray(u.value),y=v.flat(),T=6*7;if(y.length<T){const C=y[y.length-1];let R=[];for(let A=1;A<=T-y.length;A++)R.push(t.addDays(C,A)),A%7===0&&(v.push(R),R=[])}return v});function f(v,y){return v.filter(T=>e.weekdays.includes(T.getDay())).map((T,C)=>{const R=t.toISO(T),A=!t.isSameMonth(T,u.value),N=t.isSameDay(T,t.startOfMonth(u.value)),I=t.isSameDay(T,t.endOfMonth(u.value)),O=t.isSameDay(T,u.value);return{date:T,isoDate:R,formatted:t.format(T,"keyboardDate"),year:t.getYear(T),month:t.getMonth(T),isDisabled:b(T),isWeekStart:C%7===0,isWeekEnd:C%7===6,isToday:t.isSameDay(T,y),isAdjacent:A,isHidden:A&&!e.showAdjacentMonths,isStart:N,isSelected:r.value.some(x=>t.isSameDay(T,x)),isEnd:I,isSame:O,localized:t.format(T,"dayOfMonth")}})}const g=computed(()=>{const v=t.startOfWeek(r.value),y=[];for(let R=0;R<=6;R++)y.push(t.addDays(v,R));const T=y,C=t.date();return f(T,C)}),E=computed(()=>{const v=d.value.flat(),y=t.date();return f(v,y)}),S=computed(()=>d.value.map(v=>v.length?getWeek(t,v[0]):null));function b(v){if(e.disabled)return!0;const y=t.date(v);return e.min&&t.isAfter(t.date(e.min),y)||e.max&&t.isAfter(y,t.date(e.max))?!0:Array.isArray(e.allowedDates)&&e.allowedDates.length>0?!e.allowedDates.some(T=>t.isSameDay(t.date(T),y)):typeof e.allowedDates=="function"?!e.allowedDates(y):!1}return{displayValue:a,daysInMonth:E,daysInWeek:g,genDays:f,model:r,weeksInMonth:d,weekNumbers:S}}const makeVDatePickerMonthProps=propsFactory({color:String,hideWeekdays:Boolean,multiple:Boolean,showWeek:Boolean,...makeCalendarProps()},"VDatePickerMonth"),VDatePickerMonth=genericComponent()({name:"VDatePickerMonth",props:makeVDatePickerMonthProps(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0},setup(e,t){let{emit:r,slots:a}=t;const o=ref$1(),{daysInMonth:u,model:d,weekNumbers:f}=useCalendar(e),g=useDate();function E(S){if(e.multiple){const b=d.value.findIndex(v=>g.isSameDay(v,S));if(b===-1)d.value=[...d.value,S];else{const v=[...d.value];v.splice(b,1),d.value=v}}else d.value=[S]}return()=>createVNode("div",{class:"v-date-picker-month"},[e.showWeek&&createVNode("div",{key:"weeks",class:"v-date-picker-month__weeks"},[!e.hideWeekdays&&createVNode("div",{key:"hide-week-days",class:"v-date-picker-month__day"},[createTextVNode(" ")]),f.value.map(S=>createVNode("div",{class:["v-date-picker-month__day","v-date-picker-month__day--adjacent"]},[S]))]),createVNode("div",{ref:o,class:"v-date-picker-month__days"},[!e.hideWeekdays&&g.getWeekdays().map(S=>createVNode("div",{class:["v-date-picker-month__day","v-date-picker-month__weekday"]},[S[0]])),u.value.map((S,b)=>{const v={props:{onClick:()=>E(S.date)},item:S,i:b};return createVNode("div",{class:["v-date-picker-month__day",{"v-date-picker-month__day--adjacent":S.isAdjacent,"v-date-picker-month__day--hide-adjacent":S.isHidden,"v-date-picker-month__day--selected":S.isSelected,"v-date-picker-month__day--week-end":S.isWeekEnd,"v-date-picker-month__day--week-start":S.isWeekStart}],"data-v-date":S.isDisabled?void 0:S.isoDate},[(e.showAdjacentMonths||!S.isAdjacent)&&createVNode(VDefaultsProvider,{defaults:{VBtn:{color:(S.isSelected||S.isToday)&&!S.isDisabled?e.color:void 0,disabled:S.isDisabled,icon:!0,ripple:!1,text:S.localized,variant:S.isDisabled?"text":S.isToday&&!S.isSelected?"outlined":"flat",onClick:()=>E(S.date)}}},{default:()=>{var y;return[((y=a.day)==null?void 0:y.call(a,v))??createVNode(VBtn,v.props,null)]}})])})])])}}),makeVDatePickerMonthsProps=propsFactory({color:String,height:[String,Number],modelValue:Number},"VDatePickerMonths"),VDatePickerMonths=genericComponent()({name:"VDatePickerMonths",props:makeVDatePickerMonthsProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const a=useDate(),o=useProxiedModel(e,"modelValue"),u=computed(()=>{let d=a.startOfYear(a.date());return createRange(12).map(f=>{const g=a.format(d,"monthShort");return d=a.getNextMonth(d),{text:g,value:f}})});return watchEffect(()=>{o.value=o.value??a.getMonth(a.date())}),useRender(()=>createVNode("div",{class:"v-date-picker-months",style:{height:convertToUnit(e.height)}},[createVNode("div",{class:"v-date-picker-months__content"},[u.value.map((d,f)=>{var S;const g={active:o.value===f,color:o.value===f?e.color:void 0,rounded:!0,text:d.text,variant:o.value===d.value?"flat":"text",onClick:()=>E(f)};function E(b){o.value=b}return((S=r.month)==null?void 0:S.call(r,{month:d,i:f,props:g}))??createVNode(VBtn,mergeProps({key:"month"},g,{onClick:()=>E(f)}),null)})])])),{}}}),makeVDatePickerYearsProps=propsFactory({color:String,height:[String,Number],min:null,max:null,modelValue:Number},"VDatePickerYears"),VDatePickerYears=genericComponent()({name:"VDatePickerYears",props:makeVDatePickerYearsProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const a=useDate(),o=useProxiedModel(e,"modelValue"),u=computed(()=>{const f=a.getYear(a.date());let g=f-100,E=f+52;e.min&&(g=a.getYear(a.date(e.min))),e.max&&(E=a.getYear(a.date(e.max)));let S=a.startOfYear(a.date());return S=a.setYear(S,g),createRange(E-g+1,g).map(b=>{const v=a.format(S,"year");return S=a.setYear(S,a.getYear(S)+1),{text:v,value:b}})});watchEffect(()=>{o.value=o.value??a.getYear(a.date())});const d=ref$1();return onMounted(async()=>{var f;await nextTick$1(),(f=d.value)==null||f.$el.scrollIntoView({block:"center"})}),useRender(()=>createVNode("div",{class:"v-date-picker-years",style:{height:convertToUnit(e.height)}},[createVNode("div",{class:"v-date-picker-years__content"},[u.value.map((f,g)=>{var S;const E={ref:o.value===f.value?d:void 0,active:o.value===f.value,color:o.value===f.value?e.color:void 0,rounded:!0,text:f.text,variant:o.value===f.value?"flat":"text",onClick:()=>o.value=f.value};return((S=r.year)==null?void 0:S.call(r,{year:f,i:g,props:E}))??createVNode(VBtn,mergeProps({key:"month"},E),null)})])])),{}}}),VPickerTitle=createSimpleFunctional("v-picker-title"),makeVPickerProps=propsFactory({bgColor:String,landscape:Boolean,title:String,hideHeader:Boolean,...makeVSheetProps()},"VPicker"),VPicker=genericComponent()({name:"VPicker",props:makeVPickerProps(),setup(e,t){let{slots:r}=t;const{backgroundColorClasses:a,backgroundColorStyles:o}=useBackgroundColor(toRef(e,"color"));return useRender(()=>{const u=VSheet.filterProps(e),d=!!(e.title||r.title);return createVNode(VSheet,mergeProps(u,{color:e.bgColor,class:["v-picker",{"v-picker--landscape":e.landscape,"v-picker--with-actions":!!r.actions},e.class],style:e.style}),{default:()=>{var f;return[!e.hideHeader&&createVNode("div",{key:"header",class:[a.value],style:[o.value]},[d&&createVNode(VPickerTitle,{key:"picker-title"},{default:()=>{var g;return[((g=r.title)==null?void 0:g.call(r))??e.title]}}),r.header&&createVNode("div",{class:"v-picker__header"},[r.header()])]),createVNode("div",{class:"v-picker__body"},[(f=r.default)==null?void 0:f.call(r)]),r.actions&&createVNode(VDefaultsProvider,{defaults:{VBtn:{slim:!0,variant:"text"}}},{default:()=>[createVNode("div",{class:"v-picker__actions"},[r.actions()])]})]}})}),{}}}),makeVDatePickerProps=propsFactory({header:{type:String,default:"$vuetify.datePicker.header"},...makeVDatePickerControlsProps(),...makeVDatePickerMonthProps(),...omit(makeVDatePickerMonthsProps(),["modelValue"]),...omit(makeVDatePickerYearsProps(),["modelValue"]),...makeVPickerProps({title:"$vuetify.datePicker.title"}),modelValue:null},"VDatePicker"),VDatePicker=genericComponent()({name:"VDatePicker",props:makeVDatePickerProps(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:r,slots:a}=t;const o=useDate(),{t:u}=useLocale(),d=useProxiedModel(e,"modelValue",void 0,k=>wrapInArray(k),k=>e.multiple?k:k[0]),f=useProxiedModel(e,"viewMode"),g=computed(()=>{var P;const k=o.date((P=d.value)==null?void 0:P[0]);return k&&o.isValid(k)?k:o.date()}),E=ref$1(Number(e.month??o.getMonth(o.startOfMonth(g.value)))),S=ref$1(Number(e.year??o.getYear(o.startOfYear(o.setMonth(g.value,E.value))))),b=shallowRef(!1),v=computed(()=>e.multiple&&d.value.length>1?u("$vuetify.datePicker.itemsSelected",d.value.length):d.value[0]&&o.isValid(d.value[0])?o.format(d.value[0],"normalDateWithWeekday"):u(e.header)),y=computed(()=>o.format(o.setYear(o.setMonth(o.date(),E.value),S.value),"monthAndYear")),T=computed(()=>`date-picker-header${b.value?"-reverse":""}-transition`),C=computed(()=>{const k=o.date(e.min);return e.min&&o.isValid(k)?k:null}),R=computed(()=>{const k=o.date(e.max);return e.max&&o.isValid(k)?k:null}),A=computed(()=>{if(e.disabled)return!0;const k=[];if(f.value!=="month")k.push("prev","next");else{let P=o.date();if(P=o.setYear(P,S.value),P=o.setMonth(P,E.value),C.value){const L=o.addDays(o.startOfMonth(P),-1);o.isAfter(C.value,L)&&k.push("prev")}if(R.value){const L=o.addDays(o.endOfMonth(P),1);o.isAfter(L,R.value)&&k.push("next")}}return k});function N(){E.value<11?E.value++:(S.value++,E.value=0)}function I(){E.value>0?E.value--:(S.value--,E.value=11)}function O(){f.value="month"}function x(){f.value=f.value==="months"?"month":"months"}function D(){f.value=f.value==="year"?"month":"year"}return watch(E,()=>{f.value==="months"&&x(),r("update:month",E.value)}),watch(S,()=>{f.value==="year"&&D(),r("update:year",S.value)}),watch(d,(k,P)=>{const L=o.date(wrapInArray(k)[0]),F=o.date(wrapInArray(P)[0]);b.value=o.isBefore(L,F)}),useRender(()=>{const k=VPicker.filterProps(e),P=VDatePickerControls.filterProps(e),L=VDatePickerHeader.filterProps(e),F=VDatePickerMonth.filterProps(e),B=omit(VDatePickerMonths.filterProps(e),["modelValue"]),$=omit(VDatePickerYears.filterProps(e),["modelValue"]),U={header:v.value,transition:T.value};return createVNode(VPicker,mergeProps(k,{class:["v-date-picker",`v-date-picker--${f.value}`,{"v-date-picker--show-week":e.showWeek},e.class],style:e.style}),{title:()=>{var z;return((z=a.title)==null?void 0:z.call(a))??createVNode("div",{class:"v-date-picker__title"},[u(e.title)])},header:()=>a.header?createVNode(VDefaultsProvider,{defaults:{VDatePickerHeader:{...U}}},{default:()=>{var z;return[(z=a.header)==null?void 0:z.call(a,U)]}}):createVNode(VDatePickerHeader,mergeProps({key:"header"},L,U,{onClick:f.value!=="month"?O:void 0}),{...a,default:void 0}),default:()=>createVNode(Fragment,null,[createVNode(VDatePickerControls,mergeProps(P,{disabled:A.value,text:y.value,"onClick:next":N,"onClick:prev":I,"onClick:month":x,"onClick:year":D}),null),createVNode(VFadeTransition,{hideOnLeave:!0},{default:()=>[f.value==="months"?createVNode(VDatePickerMonths,mergeProps({key:"date-picker-months"},B,{modelValue:E.value,"onUpdate:modelValue":z=>E.value=z,min:C.value,max:R.value}),null):f.value==="year"?createVNode(VDatePickerYears,mergeProps({key:"date-picker-years"},$,{modelValue:S.value,"onUpdate:modelValue":z=>S.value=z,min:C.value,max:R.value}),null):createVNode(VDatePickerMonth,mergeProps({key:"date-picker-month"},F,{modelValue:d.value,"onUpdate:modelValue":z=>d.value=z,month:E.value,"onUpdate:month":z=>E.value=z,year:S.value,"onUpdate:year":z=>S.value=z,min:C.value,max:R.value}),null)]})]),actions:a.actions})}),{}}}),VExpansionPanelSymbol=Symbol.for("vuetify:v-expansion-panel"),allowedVariants=["default","accordion","inset","popout"],makeVExpansionPanelsProps=propsFactory({color:String,static:Boolean,variant:{type:String,default:"default",validator:e=>allowedVariants.includes(e)},readonly:Boolean,...makeComponentProps(),...makeGroupProps(),...makeTagProps(),...makeThemeProps()},"VExpansionPanels"),VExpansionPanels=genericComponent()({name:"VExpansionPanels",props:makeVExpansionPanelsProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;useGroup(e,VExpansionPanelSymbol);const{themeClasses:a}=provideTheme(e),o=computed(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return provideDefaults({VExpansionPanel:{color:toRef(e,"color"),readonly:toRef(e,"readonly"),static:toRef(e,"static")}}),useRender(()=>createVNode(e.tag,{class:["v-expansion-panels",a.value,o.value,e.class],style:e.style},r)),{}}}),makeVExpansionPanelTextProps=propsFactory({...makeComponentProps(),...makeLazyProps()},"VExpansionPanelText"),VExpansionPanelText=genericComponent()({name:"VExpansionPanelText",props:makeVExpansionPanelTextProps(),setup(e,t){let{slots:r}=t;const a=inject$1(VExpansionPanelSymbol);if(!a)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:o,onAfterLeave:u}=useLazy(e,a.isSelected);return useRender(()=>createVNode(VExpandTransition,{onAfterLeave:u},{default:()=>{var d;return[withDirectives(createVNode("div",{class:["v-expansion-panel-text",e.class],style:e.style},[r.default&&o.value&&createVNode("div",{class:"v-expansion-panel-text__wrapper"},[(d=r.default)==null?void 0:d.call(r)])]),[[vShow,a.isSelected.value]])]}})),{}}}),makeVExpansionPanelTitleProps=propsFactory({color:String,expandIcon:{type:IconValue,default:"$expand"},collapseIcon:{type:IconValue,default:"$collapse"},hideActions:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...makeComponentProps()},"VExpansionPanelTitle"),VExpansionPanelTitle=genericComponent()({name:"VExpansionPanelTitle",directives:{Ripple},props:makeVExpansionPanelTitleProps(),setup(e,t){let{slots:r}=t;const a=inject$1(VExpansionPanelSymbol);if(!a)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:o,backgroundColorStyles:u}=useBackgroundColor(e,"color"),d=computed(()=>({collapseIcon:e.collapseIcon,disabled:a.disabled.value,expanded:a.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly}));return useRender(()=>{var f;return withDirectives(createVNode("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":a.isSelected.value,"v-expansion-panel-title--static":e.static},o.value,e.class],style:[u.value,e.style],type:"button",tabindex:a.disabled.value?-1:void 0,disabled:a.disabled.value,"aria-expanded":a.isSelected.value,onClick:e.readonly?void 0:a.toggle},[createVNode("span",{class:"v-expansion-panel-title__overlay"},null),(f=r.default)==null?void 0:f.call(r,d.value),!e.hideActions&&createVNode("span",{class:"v-expansion-panel-title__icon"},[r.actions?r.actions(d.value):createVNode(VIcon,{icon:a.isSelected.value?e.collapseIcon:e.expandIcon},null)])]),[[resolveDirective("ripple"),e.ripple]])}),{}}}),makeVExpansionPanelProps=propsFactory({title:String,text:String,bgColor:String,...makeComponentProps(),...makeElevationProps(),...makeGroupItemProps(),...makeLazyProps(),...makeRoundedProps(),...makeTagProps(),...makeVExpansionPanelTitleProps()},"VExpansionPanel"),VExpansionPanel=genericComponent()({name:"VExpansionPanel",props:makeVExpansionPanelProps(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:r}=t;const a=useGroupItem(e,VExpansionPanelSymbol),{backgroundColorClasses:o,backgroundColorStyles:u}=useBackgroundColor(e,"bgColor"),{elevationClasses:d}=useElevation(e),{roundedClasses:f}=useRounded(e),g=computed(()=>(a==null?void 0:a.disabled.value)||e.disabled),E=computed(()=>a.group.items.value.reduce((v,y,T)=>(a.group.selected.value.includes(y.id)&&v.push(T),v),[])),S=computed(()=>{const v=a.group.items.value.findIndex(y=>y.id===a.id);return!a.isSelected.value&&E.value.some(y=>y-v===1)}),b=computed(()=>{const v=a.group.items.value.findIndex(y=>y.id===a.id);return!a.isSelected.value&&E.value.some(y=>y-v===-1)});return provide(VExpansionPanelSymbol,a),provideDefaults({VExpansionPanelText:{eager:toRef(e,"eager")},VExpansionPanelTitle:{readonly:toRef(e,"readonly")}}),useRender(()=>{const v=!!(r.text||e.text),y=!!(r.title||e.title);return createVNode(e.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":a.isSelected.value,"v-expansion-panel--before-active":S.value,"v-expansion-panel--after-active":b.value,"v-expansion-panel--disabled":g.value},f.value,o.value,e.class],style:[u.value,e.style]},{default:()=>{var T;return[createVNode("div",{class:["v-expansion-panel__shadow",...d.value]},null),y&&createVNode(VExpansionPanelTitle,{key:"title",collapseIcon:e.collapseIcon,color:e.color,expandIcon:e.expandIcon,hideActions:e.hideActions,ripple:e.ripple},{default:()=>[r.title?r.title():e.title]}),v&&createVNode(VExpansionPanelText,{key:"text"},{default:()=>[r.text?r.text():e.text]}),(T=r.default)==null?void 0:T.call(r)]}})}),{}}}),makeVFileInputProps=propsFactory({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},multiple:Boolean,showSize:{type:[Boolean,Number],default:!1,validator:e=>typeof e=="boolean"||[1e3,1024].includes(e)},...makeVInputProps({prependIcon:"$file"}),modelValue:{type:Array,default:()=>[],validator:e=>wrapInArray(e).every(t=>t!=null&&typeof t=="object")},...makeVFieldProps({clearable:!0})},"VFileInput"),VFileInput=genericComponent()({name:"VFileInput",inheritAttrs:!1,props:makeVFileInputProps(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:r,emit:a,slots:o}=t;const{t:u}=useLocale(),d=useProxiedModel(e,"modelValue"),{isFocused:f,focus:g,blur:E}=useFocus(e),S=computed(()=>typeof e.showSize!="boolean"?e.showSize:void 0),b=computed(()=>(d.value??[]).reduce((L,F)=>{let{size:B=0}=F;return L+B},0)),v=computed(()=>humanReadableFileSize(b.value,S.value)),y=computed(()=>(d.value??[]).map(L=>{const{name:F="",size:B=0}=L;return e.showSize?`${F} (${humanReadableFileSize(B,S.value)})`:F})),T=computed(()=>{var F;const L=((F=d.value)==null?void 0:F.length)??0;return e.showSize?u(e.counterSizeString,L,v.value):u(e.counterString,L)}),C=ref$1(),R=ref$1(),A=ref$1(),N=computed(()=>f.value||e.active),I=computed(()=>["plain","underlined"].includes(e.variant));function O(){var L;A.value!==document.activeElement&&((L=A.value)==null||L.focus()),f.value||g()}function x(L){k(L)}function D(L){a("mousedown:control",L)}function k(L){var F;(F=A.value)==null||F.click(),a("click:control",L)}function P(L){L.stopPropagation(),O(),nextTick$1(()=>{d.value=[],callEvent(e["onClick:clear"],L)})}return watch(d,L=>{(!Array.isArray(L)||!L.length)&&A.value&&(A.value.value="")}),useRender(()=>{const L=!!(o.counter||e.counter),F=!!(L||o.details),[B,$]=filterInputAttrs(r),{modelValue:U,...z}=VInput.filterProps(e),K=filterFieldProps(e);return createVNode(VInput,mergeProps({ref:C,modelValue:d.value,"onUpdate:modelValue":Q=>d.value=Q,class:["v-file-input",{"v-file-input--chips":!!e.chips,"v-input--plain-underlined":I.value},e.class],style:e.style,"onClick:prepend":x},B,z,{centerAffix:!I.value,focused:f.value}),{...o,default:Q=>{let{id:Y,isDisabled:G,isDirty:j,isReadonly:ne,isValid:ie}=Q;return createVNode(VField,mergeProps({ref:R,"prepend-icon":e.prependIcon,onMousedown:D,onClick:k,"onClick:clear":P,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},K,{id:Y.value,active:N.value||j.value,dirty:j.value,disabled:G.value,focused:f.value,error:ie.value===!1}),{...o,default:te=>{var Ee;let{props:{class:ue,...ge}}=te;return createVNode(Fragment,null,[createVNode("input",mergeProps({ref:A,type:"file",readonly:ne.value,disabled:G.value,multiple:e.multiple,name:e.name,onClick:ae=>{ae.stopPropagation(),ne.value&&ae.preventDefault(),O()},onChange:ae=>{if(!ae.target)return;const ee=ae.target;d.value=[...ee.files??[]]},onFocus:O,onBlur:E},ge,$),null),createVNode("div",{class:ue},[!!((Ee=d.value)!=null&&Ee.length)&&(o.selection?o.selection({fileNames:y.value,totalBytes:b.value,totalBytesReadable:v.value}):e.chips?y.value.map(ae=>createVNode(VChip,{key:ae,size:"small",color:e.color},{default:()=>[ae]})):y.value.join(", "))])])}})},details:F?Q=>{var Y,G;return createVNode(Fragment,null,[(Y=o.details)==null?void 0:Y.call(o,Q),L&&createVNode(Fragment,null,[createVNode("span",null,null),createVNode(VCounter,{active:!!((G=d.value)!=null&&G.length),value:T.value},o.counter)])])}:void 0})}),forwardRefs({},C,R,A)}}),makeVFooterProps=propsFactory({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...makeBorderProps(),...makeComponentProps(),...makeElevationProps(),...makeLayoutItemProps(),...makeRoundedProps(),...makeTagProps({tag:"footer"}),...makeThemeProps()},"VFooter"),VFooter=genericComponent()({name:"VFooter",props:makeVFooterProps(),setup(e,t){let{slots:r}=t;const{themeClasses:a}=provideTheme(e),{backgroundColorClasses:o,backgroundColorStyles:u}=useBackgroundColor(toRef(e,"color")),{borderClasses:d}=useBorder(e),{elevationClasses:f}=useElevation(e),{roundedClasses:g}=useRounded(e),E=shallowRef(32),{resizeRef:S}=useResizeObserver(y=>{y.length&&(E.value=y[0].target.clientHeight)}),b=computed(()=>e.height==="auto"?E.value:parseInt(e.height,10)),{layoutItemStyles:v}=useLayoutItem({id:e.name,order:computed(()=>parseInt(e.order,10)),position:computed(()=>"bottom"),layoutSize:b,elementSize:computed(()=>e.height==="auto"?void 0:b.value),active:computed(()=>e.app),absolute:toRef(e,"absolute")});return useRender(()=>createVNode(e.tag,{ref:S,class:["v-footer",a.value,o.value,d.value,f.value,g.value,e.class],style:[u.value,e.app?v.value:{height:convertToUnit(e.height)},e.style]},r)),{}}}),makeVFormProps=propsFactory({...makeComponentProps(),...makeFormProps()},"VForm"),VForm=genericComponent()({name:"VForm",props:makeVFormProps(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,t){let{slots:r,emit:a}=t;const o=createForm(e),u=ref$1();function d(g){g.preventDefault(),o.reset()}function f(g){const E=g,S=o.validate();E.then=S.then.bind(S),E.catch=S.catch.bind(S),E.finally=S.finally.bind(S),a("submit",E),E.defaultPrevented||S.then(b=>{var y;let{valid:v}=b;v&&((y=u.value)==null||y.submit())}),E.preventDefault()}return useRender(()=>{var g;return createVNode("form",{ref:u,class:["v-form",e.class],style:e.style,novalidate:!0,onReset:d,onSubmit:f},[(g=r.default)==null?void 0:g.call(r,o)])}),forwardRefs(o,u)}}),makeVHoverProps=propsFactory({disabled:Boolean,modelValue:{type:Boolean,default:void 0},...makeDelayProps()},"VHover"),VHover=genericComponent()({name:"VHover",props:makeVHoverProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const a=useProxiedModel(e,"modelValue"),{runOpenDelay:o,runCloseDelay:u}=useDelay(e,d=>!e.disabled&&(a.value=d));return()=>{var d;return(d=r.default)==null?void 0:d.call(r,{isHovering:a.value,props:{onMouseenter:o,onMouseleave:u}})}}}),makeVInfiniteScrollProps=propsFactory({color:String,direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},side:{type:String,default:"end",validator:e=>["start","end","both"].includes(e)},mode:{type:String,default:"intersect",validator:e=>["intersect","manual"].includes(e)},margin:[Number,String],loadMoreText:{type:String,default:"$vuetify.infiniteScroll.loadMore"},emptyText:{type:String,default:"$vuetify.infiniteScroll.empty"},...makeDimensionProps(),...makeTagProps()},"VInfiniteScroll"),VInfiniteScrollIntersect=defineComponent({name:"VInfiniteScrollIntersect",props:{side:{type:String,required:!0},rootRef:null,rootMargin:String},emits:{intersect:(e,t)=>!0},setup(e,t){let{emit:r}=t;const{intersectionRef:a,isIntersecting:o}=useIntersectionObserver(u=>{},e.rootMargin?{rootMargin:e.rootMargin}:void 0);return watch(o,async u=>{r("intersect",e.side,u)}),useRender(()=>createVNode("div",{class:"v-infinite-scroll-intersect",ref:a},[createTextVNode(" ")])),{}}}),VInfiniteScroll=genericComponent()({name:"VInfiniteScroll",props:makeVInfiniteScrollProps(),emits:{load:e=>!0},setup(e,t){let{slots:r,emit:a}=t;const o=ref$1(),u=shallowRef("ok"),d=shallowRef("ok"),f=computed(()=>convertToUnit(e.margin)),g=shallowRef(!1);function E(x){if(!o.value)return;const D=e.direction==="vertical"?"scrollTop":"scrollLeft";o.value[D]=x}function S(){if(!o.value)return 0;const x=e.direction==="vertical"?"scrollTop":"scrollLeft";return o.value[x]}function b(){if(!o.value)return 0;const x=e.direction==="vertical"?"scrollHeight":"scrollWidth";return o.value[x]}function v(){if(!o.value)return 0;const x=e.direction==="vertical"?"clientHeight":"clientWidth";return o.value[x]}onMounted(()=>{o.value&&(e.side==="start"?E(b()):e.side==="both"&&E(b()/2-v()/2))});function y(x,D){x==="start"?u.value=D:x==="end"&&(d.value=D)}function T(x){return x==="start"?u.value:d.value}let C=0;function R(x,D){g.value=D,g.value&&A(x)}function A(x){if(e.mode!=="manual"&&!g.value)return;const D=T(x);if(!o.value||D==="loading")return;C=b(),y(x,"loading");function k(P){y(x,P),nextTick$1(()=>{P==="empty"||P==="error"||(P==="ok"&&x==="start"&&E(b()-C+S()),e.mode!=="manual"&&nextTick$1(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{A(x)})})})}))})}a("load",{side:x,done:k})}const{t:N}=useLocale();function I(x,D){var L,F,B,$,U;if(e.side!==x&&e.side!=="both")return;const k=()=>A(x),P={side:x,props:{onClick:k,color:e.color}};return D==="error"?(L=r.error)==null?void 0:L.call(r,P):D==="empty"?((F=r.empty)==null?void 0:F.call(r,P))??createVNode("div",null,[N(e.emptyText)]):e.mode==="manual"?D==="loading"?((B=r.loading)==null?void 0:B.call(r,P))??createVNode(VProgressCircular,{indeterminate:!0,color:e.color},null):(($=r["load-more"])==null?void 0:$.call(r,P))??createVNode(VBtn,{variant:"outlined",color:e.color,onClick:k},{default:()=>[N(e.loadMoreText)]}):((U=r.loading)==null?void 0:U.call(r,P))??createVNode(VProgressCircular,{indeterminate:!0,color:e.color},null)}const{dimensionStyles:O}=useDimension(e);useRender(()=>{const x=e.tag,D=e.side==="start"||e.side==="both",k=e.side==="end"||e.side==="both",P=e.mode==="intersect";return createVNode(x,{ref:o,class:["v-infinite-scroll",`v-infinite-scroll--${e.direction}`,{"v-infinite-scroll--start":D,"v-infinite-scroll--end":k}],style:O.value},{default:()=>{var L;return[createVNode("div",{class:"v-infinite-scroll__side"},[I("start",u.value)]),o.value&&D&&P&&createVNode(VInfiniteScrollIntersect,{key:"start",side:"start",onIntersect:R,rootRef:o.value,rootMargin:f.value},null),(L=r.default)==null?void 0:L.call(r),o.value&&k&&P&&createVNode(VInfiniteScrollIntersect,{key:"end",side:"end",onIntersect:R,rootRef:o.value,rootMargin:f.value},null),createVNode("div",{class:"v-infinite-scroll__side"},[I("end",d.value)])]}})})}}),VItemGroupSymbol=Symbol.for("vuetify:v-item-group"),makeVItemGroupProps=propsFactory({...makeComponentProps(),...makeGroupProps({selectedClass:"v-item--selected"}),...makeTagProps(),...makeThemeProps()},"VItemGroup"),VItemGroup=genericComponent()({name:"VItemGroup",props:makeVItemGroupProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const{themeClasses:a}=provideTheme(e),{isSelected:o,select:u,next:d,prev:f,selected:g}=useGroup(e,VItemGroupSymbol);return()=>createVNode(e.tag,{class:["v-item-group",a.value,e.class],style:e.style},{default:()=>{var E;return[(E=r.default)==null?void 0:E.call(r,{isSelected:o,select:u,next:d,prev:f,selected:g.value})]}})}}),VItem=genericComponent()({name:"VItem",props:makeGroupItemProps(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:r}=t;const{isSelected:a,select:o,toggle:u,selectedClass:d,value:f,disabled:g}=useGroupItem(e,VItemGroupSymbol);return()=>{var E;return(E=r.default)==null?void 0:E.call(r,{isSelected:a.value,selectedClass:d.value,select:o,toggle:u,value:f.value,disabled:g.value})}}}),VKbd=createSimpleFunctional("v-kbd"),makeVLayoutProps=propsFactory({...makeComponentProps(),...makeLayoutProps()},"VLayout"),VLayout=genericComponent()({name:"VLayout",props:makeVLayoutProps(),setup(e,t){let{slots:r}=t;const{layoutClasses:a,layoutStyles:o,getLayoutItem:u,items:d,layoutRef:f}=createLayout(e);return useRender(()=>{var g;return createVNode("div",{ref:f,class:[a.value,e.class],style:[o.value,e.style]},[(g=r.default)==null?void 0:g.call(r)])}),{getLayoutItem:u,items:d}}}),makeVLayoutItemProps=propsFactory({position:{type:String,required:!0},size:{type:[Number,String],default:300},modelValue:Boolean,...makeComponentProps(),...makeLayoutItemProps()},"VLayoutItem"),VLayoutItem=genericComponent()({name:"VLayoutItem",props:makeVLayoutItemProps(),setup(e,t){let{slots:r}=t;const{layoutItemStyles:a}=useLayoutItem({id:e.name,order:computed(()=>parseInt(e.order,10)),position:toRef(e,"position"),elementSize:toRef(e,"size"),layoutSize:toRef(e,"size"),active:toRef(e,"modelValue"),absolute:toRef(e,"absolute")});return()=>{var o;return createVNode("div",{class:["v-layout-item",e.class],style:[a.value,e.style]},[(o=r.default)==null?void 0:o.call(r)])}}}),makeVLazyProps=propsFactory({modelValue:Boolean,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},...makeComponentProps(),...makeDimensionProps(),...makeTagProps(),...makeTransitionProps({transition:"fade-transition"})},"VLazy"),VLazy=genericComponent()({name:"VLazy",directives:{intersect:Intersect},props:makeVLazyProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const{dimensionStyles:a}=useDimension(e),o=useProxiedModel(e,"modelValue");function u(d){o.value||(o.value=d)}return useRender(()=>withDirectives(createVNode(e.tag,{class:["v-lazy",e.class],style:[a.value,e.style]},{default:()=>[o.value&&createVNode(MaybeTransition,{transition:e.transition,appear:!0},{default:()=>{var d;return[(d=r.default)==null?void 0:d.call(r)]}})]}),[[resolveDirective("intersect"),{handler:u,options:e.options},null]])),{}}}),makeVLocaleProviderProps=propsFactory({locale:String,fallbackLocale:String,messages:Object,rtl:{type:Boolean,default:void 0},...makeComponentProps()},"VLocaleProvider"),VLocaleProvider=genericComponent()({name:"VLocaleProvider",props:makeVLocaleProviderProps(),setup(e,t){let{slots:r}=t;const{rtlClasses:a}=provideLocale(e);return useRender(()=>{var o;return createVNode("div",{class:["v-locale-provider",a.value,e.class],style:e.style},[(o=r.default)==null?void 0:o.call(r)])}),{}}}),makeVMainProps=propsFactory({scrollable:Boolean,...makeComponentProps(),...makeTagProps({tag:"main"})},"VMain"),VMain=genericComponent()({name:"VMain",props:makeVMainProps(),setup(e,t){let{slots:r}=t;const{mainStyles:a}=useLayout(),{ssrBootStyles:o}=useSsrBoot();return useRender(()=>createVNode(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[a.value,o.value,e.style]},{default:()=>{var u,d;return[e.scrollable?createVNode("div",{class:"v-main__scroller"},[(u=r.default)==null?void 0:u.call(r)]):(d=r.default)==null?void 0:d.call(r)]}})),{}}});function useSticky(e){let{rootEl:t,isSticky:r,layoutItemStyles:a}=e;const o=shallowRef(!1),u=shallowRef(0),d=computed(()=>{const E=typeof o.value=="boolean"?"top":o.value;return[r.value?{top:"auto",bottom:"auto",height:void 0}:void 0,o.value?{[E]:convertToUnit(u.value)}:{top:a.value.top}]});onMounted(()=>{watch(r,E=>{E?window.addEventListener("scroll",g,{passive:!0}):window.removeEventListener("scroll",g)},{immediate:!0})}),onBeforeUnmount(()=>{window.removeEventListener("scroll",g)});let f=0;function g(){const E=f>window.scrollY?"up":"down",S=t.value.getBoundingClientRect(),b=parseFloat(a.value.top??0),v=window.scrollY-Math.max(0,u.value-b),y=S.height+Math.max(u.value,b)-window.scrollY-window.innerHeight,T=parseFloat(getComputedStyle(t.value).getPropertyValue("--v-body-scroll-y"))||0;S.height<window.innerHeight-b?(o.value="top",u.value=b):E==="up"&&o.value==="bottom"||E==="down"&&o.value==="top"?(u.value=window.scrollY+S.top-T,o.value=!0):E==="down"&&y<=0?(u.value=0,o.value="bottom"):E==="up"&&v<=0&&(T?o.value!=="top"&&(u.value=-v+T+b,o.value="top"):(u.value=S.top+v,o.value="top")),f=window.scrollY}return{isStuck:o,stickyStyles:d}}const HORIZON=100,HISTORY=20;function kineticEnergyToVelocity(e){const t=1.41421356237;return(e<0?-1:1)*Math.sqrt(Math.abs(e))*t}function calculateImpulseVelocity(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let t=0;for(let r=e.length-1;r>0;r--){if(e[r].t===e[r-1].t)continue;const a=kineticEnergyToVelocity(t),o=(e[r].d-e[r-1].d)/(e[r].t-e[r-1].t);t+=(o-a)*Math.abs(o),r===e.length-1&&(t*=.5)}return kineticEnergyToVelocity(t)*1e3}function useVelocity(){const e={};function t(o){Array.from(o.changedTouches).forEach(u=>{(e[u.identifier]??(e[u.identifier]=new CircularBuffer(HISTORY))).push([o.timeStamp,u])})}function r(o){Array.from(o.changedTouches).forEach(u=>{delete e[u.identifier]})}function a(o){var E;const u=(E=e[o])==null?void 0:E.values().reverse();if(!u)throw new Error(`No samples for touch id ${o}`);const d=u[0],f=[],g=[];for(const S of u){if(d[0]-S[0]>HORIZON)break;f.push({t:S[0],d:S[1].clientX}),g.push({t:S[0],d:S[1].clientY})}return{x:calculateImpulseVelocity(f),y:calculateImpulseVelocity(g),get direction(){const{x:S,y:b}=this,[v,y]=[Math.abs(S),Math.abs(b)];return v>y&&S>=0?"right":v>y&&S<=0?"left":y>v&&b>=0?"down":y>v&&b<=0?"up":oops$1()}}}return{addMovement:t,endTouch:r,getVelocity:a}}function oops$1(){throw new Error}function useTouch(e){let{isActive:t,isTemporary:r,width:a,touchless:o,position:u}=e;onMounted(()=>{window.addEventListener("touchstart",A,{passive:!0}),window.addEventListener("touchmove",N,{passive:!1}),window.addEventListener("touchend",I,{passive:!0})}),onBeforeUnmount(()=>{window.removeEventListener("touchstart",A),window.removeEventListener("touchmove",N),window.removeEventListener("touchend",I)});const d=computed(()=>["left","right"].includes(u.value)),{addMovement:f,endTouch:g,getVelocity:E}=useVelocity();let S=!1;const b=shallowRef(!1),v=shallowRef(0),y=shallowRef(0);let T;function C(x,D){return(u.value==="left"?x:u.value==="right"?document.documentElement.clientWidth-x:u.value==="top"?x:u.value==="bottom"?document.documentElement.clientHeight-x:oops())-(D?a.value:0)}function R(x){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const k=u.value==="left"?(x-y.value)/a.value:u.value==="right"?(document.documentElement.clientWidth-x-y.value)/a.value:u.value==="top"?(x-y.value)/a.value:u.value==="bottom"?(document.documentElement.clientHeight-x-y.value)/a.value:oops();return D?Math.max(0,Math.min(1,k)):k}function A(x){if(o.value)return;const D=x.changedTouches[0].clientX,k=x.changedTouches[0].clientY,P=25,L=u.value==="left"?D<P:u.value==="right"?D>document.documentElement.clientWidth-P:u.value==="top"?k<P:u.value==="bottom"?k>document.documentElement.clientHeight-P:oops(),F=t.value&&(u.value==="left"?D<a.value:u.value==="right"?D>document.documentElement.clientWidth-a.value:u.value==="top"?k<a.value:u.value==="bottom"?k>document.documentElement.clientHeight-a.value:oops());(L||F||t.value&&r.value)&&(S=!0,T=[D,k],y.value=C(d.value?D:k,t.value),v.value=R(d.value?D:k),g(x),f(x))}function N(x){const D=x.changedTouches[0].clientX,k=x.changedTouches[0].clientY;if(S){if(!x.cancelable){S=!1;return}const L=Math.abs(D-T[0]),F=Math.abs(k-T[1]);(d.value?L>F&&L>3:F>L&&F>3)?(b.value=!0,S=!1):(d.value?F:L)>3&&(S=!1)}if(!b.value)return;x.preventDefault(),f(x);const P=R(d.value?D:k,!1);v.value=Math.max(0,Math.min(1,P)),P>1?y.value=C(d.value?D:k,!0):P<0&&(y.value=C(d.value?D:k,!1))}function I(x){if(S=!1,!b.value)return;f(x),b.value=!1;const D=E(x.changedTouches[0].identifier),k=Math.abs(D.x),P=Math.abs(D.y);(d.value?k>P&&k>400:P>k&&P>3)?t.value=D.direction===({left:"right",right:"left",top:"down",bottom:"up"}[u.value]||oops()):t.value=v.value>.5}const O=computed(()=>b.value?{transform:u.value==="left"?`translateX(calc(-100% + ${v.value*a.value}px))`:u.value==="right"?`translateX(calc(100% - ${v.value*a.value}px))`:u.value==="top"?`translateY(calc(-100% + ${v.value*a.value}px))`:u.value==="bottom"?`translateY(calc(100% - ${v.value*a.value}px))`:oops(),transition:"none"}:void 0);return{isDragging:b,dragProgress:v,dragStyles:O}}function oops(){throw new Error}const locations=["start","end","left","right","top","bottom"],makeVNavigationDrawerProps=propsFactory({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>locations.includes(e)},sticky:Boolean,...makeBorderProps(),...makeComponentProps(),...makeDisplayProps(),...makeElevationProps(),...makeLayoutItemProps(),...makeRoundedProps(),...makeTagProps({tag:"nav"}),...makeThemeProps()},"VNavigationDrawer"),VNavigationDrawer=genericComponent()({name:"VNavigationDrawer",props:makeVNavigationDrawerProps(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,t){let{attrs:r,emit:a,slots:o}=t;const{isRtl:u}=useRtl(),{themeClasses:d}=provideTheme(e),{borderClasses:f}=useBorder(e),{backgroundColorClasses:g,backgroundColorStyles:E}=useBackgroundColor(toRef(e,"color")),{elevationClasses:S}=useElevation(e),{displayClasses:b,mobile:v}=useDisplay(e),{roundedClasses:y}=useRounded(e),T=useRouter(),C=useProxiedModel(e,"modelValue",null,ne=>!!ne),{ssrBootStyles:R}=useSsrBoot(),{scopeId:A}=useScopeId(),N=ref$1(),I=shallowRef(!1),O=computed(()=>e.rail&&e.expandOnHover&&I.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),x=computed(()=>toPhysical(e.location,u.value)),D=computed(()=>!e.permanent&&(v.value||e.temporary)),k=computed(()=>e.sticky&&!D.value&&x.value!=="bottom");useToggleScope(()=>e.expandOnHover&&e.rail!=null,()=>{watch(I,ne=>a("update:rail",!ne))}),useToggleScope(()=>!e.disableResizeWatcher,()=>{watch(D,ne=>!e.permanent&&nextTick$1(()=>C.value=!ne))}),useToggleScope(()=>!e.disableRouteWatcher&&!!T,()=>{watch(T.currentRoute,()=>D.value&&(C.value=!1))}),watch(()=>e.permanent,ne=>{ne&&(C.value=!0)}),onBeforeMount(()=>{e.modelValue!=null||D.value||(C.value=e.permanent||!v.value)});const{isDragging:P,dragProgress:L,dragStyles:F}=useTouch({isActive:C,isTemporary:D,width:O,touchless:toRef(e,"touchless"),position:x}),B=computed(()=>{const ne=D.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):O.value;return P.value?ne*L.value:ne}),{layoutItemStyles:$,layoutItemScrimStyles:U}=useLayoutItem({id:e.name,order:computed(()=>parseInt(e.order,10)),position:x,layoutSize:B,elementSize:O,active:computed(()=>C.value||P.value),disableTransitions:computed(()=>P.value),absolute:computed(()=>e.absolute||k.value&&typeof z.value!="string")}),{isStuck:z,stickyStyles:K}=useSticky({rootEl:N,isSticky:k,layoutItemStyles:$}),Q=useBackgroundColor(computed(()=>typeof e.scrim=="string"?e.scrim:null)),Y=computed(()=>({...P.value?{opacity:L.value*.2,transition:"none"}:void 0,...U.value}));provideDefaults({VList:{bgColor:"transparent"}});function G(){I.value=!0}function j(){I.value=!1}return useRender(()=>{const ne=o.image||e.image;return createVNode(Fragment,null,[createVNode(e.tag,mergeProps({ref:N,onMouseenter:G,onMouseleave:j,class:["v-navigation-drawer",`v-navigation-drawer--${x.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":I.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":D.value,"v-navigation-drawer--active":C.value,"v-navigation-drawer--sticky":k.value},d.value,g.value,f.value,b.value,S.value,y.value,e.class],style:[E.value,$.value,F.value,R.value,K.value,e.style]},A,r),{default:()=>{var ie,te,ue,ge;return[ne&&createVNode("div",{key:"image",class:"v-navigation-drawer__img"},[o.image?(ie=o.image)==null?void 0:ie.call(o,{image:e.image}):createVNode("img",{src:e.image,alt:""},null)]),o.prepend&&createVNode("div",{class:"v-navigation-drawer__prepend"},[(te=o.prepend)==null?void 0:te.call(o)]),createVNode("div",{class:"v-navigation-drawer__content"},[(ue=o.default)==null?void 0:ue.call(o)]),o.append&&createVNode("div",{class:"v-navigation-drawer__append"},[(ge=o.append)==null?void 0:ge.call(o)])]}}),createVNode(Transition$1,{name:"fade-transition"},{default:()=>[D.value&&(P.value||C.value)&&!!e.scrim&&createVNode("div",mergeProps({class:["v-navigation-drawer__scrim",Q.backgroundColorClasses.value],style:[Y.value,Q.backgroundColorStyles.value],onClick:()=>C.value=!1},A),null)]})])}),{isStuck:z}}}),VNoSsr=defineComponent({name:"VNoSsr",setup(e,t){let{slots:r}=t;const a=useHydration();return()=>{var o;return a.value&&((o=r.default)==null?void 0:o.call(r))}}}),makeVOtpInputProps=propsFactory({autofocus:Boolean,divider:String,focusAll:Boolean,label:{type:String,default:"$vuetify.input.otp"},length:{type:[Number,String],default:6},modelValue:{type:[Number,String],default:void 0},placeholder:String,type:{type:String,default:"number"},...makeDimensionProps(),...makeFocusProps(),...only(makeVFieldProps({variant:"outlined"}),["baseColor","bgColor","class","color","disabled","error","loading","rounded","style","theme","variant"])},"VOtpInput"),VOtpInput=genericComponent()({name:"VOtpInput",props:makeVOtpInputProps(),emits:{finish:e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:r,emit:a,slots:o}=t;const{dimensionStyles:u}=useDimension(e),{isFocused:d,focus:f,blur:g}=useFocus(e),E=useProxiedModel(e,"modelValue","",k=>String(k).split(""),k=>k.join("")),{t:S}=useLocale(),b=computed(()=>Number(e.length)),v=computed(()=>Array(b.value).fill(0)),y=ref$1(-1),T=ref$1(),C=ref$1([]),R=computed(()=>C.value[y.value]);function A(){if(e.type==="number"&&/[^0-9]/g.test(R.value.value)){R.value.value="";return}const k=E.value.slice(),P=R.value.value;k[y.value]=P;let L=null;y.value>E.value.length?L=E.value.length+1:y.value+1!==b.value&&(L="next"),E.value=k,L&&focusChild(T.value,L)}function N(k){const P=E.value.slice(),L=y.value;let F=null;["ArrowLeft","ArrowRight","Backspace","Delete"].includes(k.key)&&(k.preventDefault(),k.key==="ArrowLeft"?F="prev":k.key==="ArrowRight"?F="next":["Backspace","Delete"].includes(k.key)&&(P[y.value]="",E.value=P,y.value>0&&k.key==="Backspace"?F="prev":requestAnimationFrame(()=>{var B;(B=C.value[L])==null||B.select()})),requestAnimationFrame(()=>{F!=null&&focusChild(T.value,F)}))}function I(k,P){var L,F;P.preventDefault(),P.stopPropagation(),E.value=(((L=P==null?void 0:P.clipboardData)==null?void 0:L.getData("Text"))??"").split(""),(F=C.value)==null||F[k].blur()}function O(){E.value=[]}function x(k,P){f(),y.value=P}function D(){g(),y.value=-1}return provideDefaults({VField:{color:computed(()=>e.color),bgColor:computed(()=>e.color),baseColor:computed(()=>e.baseColor),disabled:computed(()=>e.disabled),error:computed(()=>e.error),variant:computed(()=>e.variant)}},{scoped:!0}),watch(E,k=>{k.length===b.value&&a("finish",k.join(""))},{deep:!0}),watch(y,k=>{k<0||nextTick$1(()=>{var P;(P=C.value[k])==null||P.select()})}),useRender(()=>{var L;const[k,P]=filterInputAttrs(r);return createVNode("div",mergeProps({class:["v-otp-input",{"v-otp-input--divided":!!e.divider},e.class],style:[e.style]},k),[createVNode("div",{ref:T,class:"v-otp-input__content",style:[u.value]},[v.value.map((F,B)=>createVNode(Fragment,null,[e.divider&&B!==0&&createVNode("span",{class:"v-otp-input__divider"},[e.divider]),createVNode(VField,{focused:d.value&&e.focusAll||y.value===B,key:B},{...o,loader:void 0,default:()=>createVNode("input",{ref:$=>C.value[B]=$,"aria-label":S(e.label,B+1),autofocus:B===0&&e.autofocus,autocomplete:"one-time-code",class:["v-otp-input__field"],disabled:e.disabled,inputmode:e.type==="number"?"numeric":"text",min:e.type==="number"?0:void 0,maxlength:"1",placeholder:e.placeholder,type:e.type==="number"?"text":e.type,value:E.value[B],onInput:A,onFocus:$=>x($,B),onBlur:D,onKeydown:N,onPaste:$=>I(B,$)},null)})])),createVNode("input",mergeProps({class:"v-otp-input-input",type:"hidden"},P,{value:E.value.join("")}),null),createVNode(VOverlay,{contained:!0,"content-class":"v-otp-input__loader","model-value":!!e.loading,persistent:!0},{default:()=>{var F;return[((F=o.loader)==null?void 0:F.call(o))??createVNode(VProgressCircular,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,size:"24",width:"2"},null)]}}),(L=o.default)==null?void 0:L.call(o)])])}),{blur:()=>{var k;(k=C.value)==null||k.some(P=>P.blur())},focus:()=>{var k;(k=C.value)==null||k[0].focus()},reset:O,isFocused:d}}});function floor(e){return Math.floor(Math.abs(e))*Math.sign(e)}const makeVParallaxProps=propsFactory({scale:{type:[Number,String],default:.5},...makeComponentProps()},"VParallax"),VParallax=genericComponent()({name:"VParallax",props:makeVParallaxProps(),setup(e,t){let{slots:r}=t;const{intersectionRef:a,isIntersecting:o}=useIntersectionObserver(),{resizeRef:u,contentRect:d}=useResizeObserver(),{height:f}=useDisplay(),g=ref$1();watchEffect(()=>{var y;a.value=u.value=(y=g.value)==null?void 0:y.$el});let E;watch(o,y=>{y?(E=getScrollParent(a.value),E=E===document.scrollingElement?document:E,E.addEventListener("scroll",v,{passive:!0}),v()):E.removeEventListener("scroll",v)}),onBeforeUnmount(()=>{E==null||E.removeEventListener("scroll",v)}),watch(f,v),watch(()=>{var y;return(y=d.value)==null?void 0:y.height},v);const S=computed(()=>1-clamp(+e.scale));let b=-1;function v(){o.value&&(cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var x;const y=((x=g.value)==null?void 0:x.$el).querySelector(".v-img__img");if(!y)return;const T=E instanceof Document?document.documentElement.clientHeight:E.clientHeight,C=E instanceof Document?window.scrollY:E.scrollTop,R=a.value.getBoundingClientRect().top+C,A=d.value.height,N=R+(A-T)/2,I=floor((C-N)*S.value),O=Math.max(1,(S.value*(T-A)+A)/A);y.style.setProperty("transform",`translateY(${I}px) scale(${O})`)}))}return useRender(()=>createVNode(VImg,{class:["v-parallax",{"v-parallax--active":o.value},e.class],style:e.style,ref:g,cover:!0,onLoadstart:v,onLoad:v},r)),{}}}),makeVRadioProps=propsFactory({...makeVSelectionControlProps({falseIcon:"$radioOff",trueIcon:"$radioOn"})},"VRadio"),VRadio=genericComponent()({name:"VRadio",props:makeVRadioProps(),setup(e,t){let{slots:r}=t;return useRender(()=>createVNode(VSelectionControl,mergeProps(e,{class:["v-radio",e.class],style:e.style,type:"radio"}),r)),{}}}),makeVRadioGroupProps=propsFactory({height:{type:[Number,String],default:"auto"},...makeVInputProps(),...omit(makeSelectionControlGroupProps(),["multiple"]),trueIcon:{type:IconValue,default:"$radioOn"},falseIcon:{type:IconValue,default:"$radioOff"},type:{type:String,default:"radio"}},"VRadioGroup"),VRadioGroup=genericComponent()({name:"VRadioGroup",inheritAttrs:!1,props:makeVRadioGroupProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:r,slots:a}=t;const o=getUid(),u=computed(()=>e.id||`radio-group-${o}`),d=useProxiedModel(e,"modelValue");return useRender(()=>{const[f,g]=filterInputAttrs(r),E=VInput.filterProps(e),S=VSelectionControl.filterProps(e),b=a.label?a.label({label:e.label,props:{for:u.value}}):e.label;return createVNode(VInput,mergeProps({class:["v-radio-group",e.class],style:e.style},f,E,{modelValue:d.value,"onUpdate:modelValue":v=>d.value=v,id:u.value}),{...a,default:v=>{let{id:y,messagesId:T,isDisabled:C,isReadonly:R}=v;return createVNode(Fragment,null,[b&&createVNode(VLabel,{id:y.value},{default:()=>[b]}),createVNode(VSelectionControlGroup,mergeProps(S,{id:y.value,"aria-describedby":T.value,defaultsTarget:"VRadio",trueIcon:e.trueIcon,falseIcon:e.falseIcon,type:e.type,disabled:C.value,readonly:R.value,"aria-labelledby":b?y.value:void 0,multiple:!1},g,{modelValue:d.value,"onUpdate:modelValue":A=>d.value=A}),a)])}})}),{}}}),makeVRangeSliderProps=propsFactory({...makeFocusProps(),...makeVInputProps(),...makeSliderProps(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),VRangeSlider=genericComponent()({name:"VRangeSlider",props:makeVRangeSliderProps(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,end:e=>!0,start:e=>!0},setup(e,t){let{slots:r,emit:a}=t;const o=ref$1(),u=ref$1(),d=ref$1(),{rtlClasses:f}=useRtl();function g(L){if(!o.value||!u.value)return;const F=getOffset(L,o.value.$el,e.direction),B=getOffset(L,u.value.$el,e.direction),$=Math.abs(F),U=Math.abs(B);return $<U||$===U&&F<0?o.value.$el:u.value.$el}const E=useSteps(e),S=useProxiedModel(e,"modelValue",void 0,L=>L!=null&&L.length?L.map(F=>E.roundValue(F)):[0,0]),{activeThumbRef:b,hasLabels:v,max:y,min:T,mousePressed:C,onSliderMousedown:R,onSliderTouchstart:A,position:N,trackContainerRef:I}=useSlider({props:e,steps:E,onSliderStart:()=>{a("start",S.value)},onSliderEnd:L=>{var $;let{value:F}=L;const B=b.value===(($=o.value)==null?void 0:$.$el)?[F,S.value[1]]:[S.value[0],F];!e.strict&&B[0]<B[1]&&(S.value=B),a("end",S.value)},onSliderMove:L=>{var U,z,K,Q;let{value:F}=L;const[B,$]=S.value;!e.strict&&B===$&&B!==T.value&&(b.value=F>B?(U=u.value)==null?void 0:U.$el:(z=o.value)==null?void 0:z.$el,(K=b.value)==null||K.focus()),b.value===((Q=o.value)==null?void 0:Q.$el)?S.value=[Math.min(F,$),$]:S.value=[B,Math.max(B,F)]},getActiveThumb:g}),{isFocused:O,focus:x,blur:D}=useFocus(e),k=computed(()=>N(S.value[0])),P=computed(()=>N(S.value[1]));return useRender(()=>{const L=VInput.filterProps(e),F=!!(e.label||r.label||r.prepend);return createVNode(VInput,mergeProps({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!r["tick-label"]||v.value,"v-slider--focused":O.value,"v-slider--pressed":C.value,"v-slider--disabled":e.disabled},f.value,e.class],style:e.style,ref:d},L,{focused:O.value}),{...r,prepend:F?B=>{var $,U;return createVNode(Fragment,null,[(($=r.label)==null?void 0:$.call(r,B))??(e.label?createVNode(VLabel,{class:"v-slider__label",text:e.label},null):void 0),(U=r.prepend)==null?void 0:U.call(r,B)])}:void 0,default:B=>{var z,K;let{id:$,messagesId:U}=B;return createVNode("div",{class:"v-slider__container",onMousedown:R,onTouchstartPassive:A},[createVNode("input",{id:`${$.value}_start`,name:e.name||$.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:S.value[0]},null),createVNode("input",{id:`${$.value}_stop`,name:e.name||$.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:S.value[1]},null),createVNode(VSliderTrack,{ref:I,start:k.value,stop:P.value},{"tick-label":r["tick-label"]}),createVNode(VSliderThumb,{ref:o,"aria-describedby":U.value,focused:O&&b.value===((z=o.value)==null?void 0:z.$el),modelValue:S.value[0],"onUpdate:modelValue":Q=>S.value=[Q,S.value[1]],onFocus:Q=>{var Y,G,j,ne;x(),b.value=(Y=o.value)==null?void 0:Y.$el,S.value[0]===S.value[1]&&S.value[1]===T.value&&Q.relatedTarget!==((G=u.value)==null?void 0:G.$el)&&((j=o.value)==null||j.$el.blur(),(ne=u.value)==null||ne.$el.focus())},onBlur:()=>{D(),b.value=void 0},min:T.value,max:S.value[1],position:k.value,ripple:e.ripple},{"thumb-label":r["thumb-label"]}),createVNode(VSliderThumb,{ref:u,"aria-describedby":U.value,focused:O&&b.value===((K=u.value)==null?void 0:K.$el),modelValue:S.value[1],"onUpdate:modelValue":Q=>S.value=[S.value[0],Q],onFocus:Q=>{var Y,G,j,ne;x(),b.value=(Y=u.value)==null?void 0:Y.$el,S.value[0]===S.value[1]&&S.value[0]===y.value&&Q.relatedTarget!==((G=o.value)==null?void 0:G.$el)&&((j=u.value)==null||j.$el.blur(),(ne=o.value)==null||ne.$el.focus())},onBlur:()=>{D(),b.value=void 0},min:S.value[0],max:y.value,position:P.value,ripple:e.ripple},{"thumb-label":r["thumb-label"]})])}})}),{}}}),makeVRatingProps=propsFactory({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:IconValue,default:"$ratingEmpty"},fullIcon:{type:IconValue,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},ripple:Boolean,...makeComponentProps(),...makeDensityProps(),...makeSizeProps(),...makeTagProps(),...makeThemeProps()},"VRating"),VRating=genericComponent()({name:"VRating",props:makeVRatingProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const{t:a}=useLocale(),{themeClasses:o}=provideTheme(e),u=useProxiedModel(e,"modelValue"),d=computed(()=>clamp(parseFloat(u.value),0,+e.length)),f=computed(()=>createRange(Number(e.length),1)),g=computed(()=>f.value.flatMap(C=>e.halfIncrements?[C-.5,C]:[C])),E=shallowRef(-1),S=computed(()=>g.value.map(C=>{const R=e.hover&&E.value>-1,A=d.value>=C,N=E.value>=C,O=(R?N:A)?e.fullIcon:e.emptyIcon,x=e.activeColor??e.color,D=A||N?x:e.color;return{isFilled:A,isHovered:N,icon:O,color:D}})),b=computed(()=>[0,...g.value].map(C=>{function R(){E.value=C}function A(){E.value=-1}function N(){e.disabled||e.readonly||(u.value=d.value===C&&e.clearable?0:C)}return{onMouseenter:e.hover?R:void 0,onMouseleave:e.hover?A:void 0,onClick:N}})),v=computed(()=>e.name??`v-rating-${getUid()}`);function y(C){var P,L;let{value:R,index:A,showStar:N=!0}=C;const{onMouseenter:I,onMouseleave:O,onClick:x}=b.value[A+1],D=`${v.value}-${String(R).replace(".","-")}`,k={color:(P=S.value[A])==null?void 0:P.color,density:e.density,disabled:e.disabled,icon:(L=S.value[A])==null?void 0:L.icon,ripple:e.ripple,size:e.size,variant:"plain"};return createVNode(Fragment,null,[createVNode("label",{for:D,class:{"v-rating__item--half":e.halfIncrements&&R%1>0,"v-rating__item--full":e.halfIncrements&&R%1===0},onMouseenter:I,onMouseleave:O,onClick:x},[createVNode("span",{class:"v-rating__hidden"},[a(e.itemAriaLabel,R,e.length)]),N?r.item?r.item({...S.value[A],props:k,value:R,index:A,rating:d.value}):createVNode(VBtn,mergeProps({"aria-label":a(e.itemAriaLabel,R,e.length)},k),null):void 0]),createVNode("input",{class:"v-rating__hidden",name:v.value,id:D,type:"radio",value:R,checked:d.value===R,tabindex:-1,readonly:e.readonly,disabled:e.disabled},null)])}function T(C){return r["item-label"]?r["item-label"](C):C.label?createVNode("span",null,[C.label]):createVNode("span",null,[createTextVNode(" ")])}return useRender(()=>{var R;const C=!!((R=e.itemLabels)!=null&&R.length)||r["item-label"];return createVNode(e.tag,{class:["v-rating",{"v-rating--hover":e.hover,"v-rating--readonly":e.readonly},o.value,e.class],style:e.style},{default:()=>[createVNode(y,{value:0,index:-1,showStar:!1},null),f.value.map((A,N)=>{var I,O;return createVNode("div",{class:"v-rating__wrapper"},[C&&e.itemLabelPosition==="top"?T({value:A,index:N,label:(I=e.itemLabels)==null?void 0:I[N]}):void 0,createVNode("div",{class:"v-rating__item"},[e.halfIncrements?createVNode(Fragment,null,[createVNode(y,{value:A-.5,index:N*2},null),createVNode(y,{value:A,index:N*2+1},null)]):createVNode(y,{value:A,index:N},null)]),C&&e.itemLabelPosition==="bottom"?T({value:A,index:N,label:(O=e.itemLabels)==null?void 0:O[N]}):void 0])})]})}),{}}}),rootTypes={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function genBone(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return createVNode("div",{class:["v-skeleton-loader__bone",`v-skeleton-loader__${e}`]},[t])}function genBones(e){const[t,r]=e.split("@");return Array.from({length:r}).map(()=>genStructure(t))}function genStructure(e){let t=[];if(!e)return t;const r=rootTypes[e];if(e!==r){if(e.includes(","))return mapBones(e);if(e.includes("@"))return genBones(e);r.includes(",")?t=mapBones(r):r.includes("@")?t=genBones(r):r&&t.push(genStructure(r))}return[genBone(e,t)]}function mapBones(e){return e.replace(/\s/g,"").split(",").map(genStructure)}const makeVSkeletonLoaderProps=propsFactory({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...makeDimensionProps(),...makeElevationProps(),...makeThemeProps()},"VSkeletonLoader"),VSkeletonLoader=genericComponent()({name:"VSkeletonLoader",props:makeVSkeletonLoaderProps(),setup(e,t){let{slots:r}=t;const{backgroundColorClasses:a,backgroundColorStyles:o}=useBackgroundColor(toRef(e,"color")),{dimensionStyles:u}=useDimension(e),{elevationClasses:d}=useElevation(e),{themeClasses:f}=provideTheme(e),{t:g}=useLocale(),E=computed(()=>genStructure(wrapInArray(e.type).join(",")));return useRender(()=>{var b;const S=!r.default||e.loading;return createVNode("div",{class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":e.boilerplate},f.value,a.value,d.value],style:[o.value,S?u.value:{}],"aria-busy":e.boilerplate?void 0:S,"aria-live":e.boilerplate?void 0:"polite","aria-label":e.boilerplate?void 0:g(e.loadingText),role:e.boilerplate?void 0:"alert"},[S?E.value:(b=r.default)==null?void 0:b.call(r)])}),{}}});function bias(e){const r=Math.abs(e);return Math.sign(e)*(r/((1/.501-2)*(1-r)+1))}function calculateUpdatedOffset(e){let{selectedElement:t,containerSize:r,contentSize:a,isRtl:o,currentScrollOffset:u,isHorizontal:d}=e;const f=d?t.clientWidth:t.clientHeight,g=d?t.offsetLeft:t.offsetTop,E=o&&d?a-g-f:g,S=r+u,b=f+E,v=f*.4;return E<=u?u=Math.max(E-v,0):S<=b&&(u=Math.min(u-(S-b-v),a-r)),u}function calculateCenteredOffset(e){let{selectedElement:t,containerSize:r,contentSize:a,isRtl:o,isHorizontal:u}=e;const d=u?t.clientWidth:t.clientHeight,f=u?t.offsetLeft:t.offsetTop,g=o&&u?a-f-d/2-r/2:f+d/2-r/2;return Math.min(a-r,Math.max(0,g))}const VSlideGroupSymbol=Symbol.for("vuetify:v-slide-group"),makeVSlideGroupProps=propsFactory({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:VSlideGroupSymbol},nextIcon:{type:IconValue,default:"$next"},prevIcon:{type:IconValue,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["always","desktop","mobile"].includes(e)},...makeComponentProps(),...makeDisplayProps(),...makeTagProps(),...makeGroupProps({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),VSlideGroup=genericComponent()({name:"VSlideGroup",props:makeVSlideGroupProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const{isRtl:a}=useRtl(),{displayClasses:o,mobile:u}=useDisplay(e),d=useGroup(e,e.symbol),f=shallowRef(!1),g=shallowRef(0),E=shallowRef(0),S=shallowRef(0),b=computed(()=>e.direction==="horizontal"),{resizeRef:v,contentRect:y}=useResizeObserver(),{resizeRef:T,contentRect:C}=useResizeObserver(),R=computed(()=>d.selected.value.length?d.items.value.findIndex(ie=>ie.id===d.selected.value[0]):-1),A=computed(()=>d.selected.value.length?d.items.value.findIndex(ie=>ie.id===d.selected.value[d.selected.value.length-1]):-1);if(IN_BROWSER){let ie=-1;watch(()=>[d.selected.value,y.value,C.value,b.value],()=>{cancelAnimationFrame(ie),ie=requestAnimationFrame(()=>{if(y.value&&C.value){const te=b.value?"width":"height";E.value=y.value[te],S.value=C.value[te],f.value=E.value+1<S.value}if(R.value>=0&&T.value){const te=T.value.children[A.value];R.value===0||!f.value?g.value=0:e.centerActive?g.value=calculateCenteredOffset({selectedElement:te,containerSize:E.value,contentSize:S.value,isRtl:a.value,isHorizontal:b.value}):f.value&&(g.value=calculateUpdatedOffset({selectedElement:te,containerSize:E.value,contentSize:S.value,isRtl:a.value,currentScrollOffset:g.value,isHorizontal:b.value}))}})})}const N=shallowRef(!1);let I=0,O=0;function x(ie){const te=b.value?"clientX":"clientY";O=(a.value&&b.value?-1:1)*g.value,I=ie.touches[0][te],N.value=!0}function D(ie){if(!f.value)return;const te=b.value?"clientX":"clientY",ue=a.value&&b.value?-1:1;g.value=ue*(O+I-ie.touches[0][te])}function k(ie){const te=S.value-E.value;g.value<0||!f.value?g.value=0:g.value>=te&&(g.value=te),N.value=!1}function P(){v.value&&(v.value[b.value?"scrollLeft":"scrollTop"]=0)}const L=shallowRef(!1);function F(ie){if(L.value=!0,!(!f.value||!T.value)){for(const te of ie.composedPath())for(const ue of T.value.children)if(ue===te){g.value=calculateUpdatedOffset({selectedElement:ue,containerSize:E.value,contentSize:S.value,isRtl:a.value,currentScrollOffset:g.value,isHorizontal:b.value});return}}}function B(ie){L.value=!1}function $(ie){var te;!L.value&&!(ie.relatedTarget&&((te=T.value)!=null&&te.contains(ie.relatedTarget)))&&z()}function U(ie){T.value&&(b.value?ie.key==="ArrowRight"?z(a.value?"prev":"next"):ie.key==="ArrowLeft"&&z(a.value?"next":"prev"):ie.key==="ArrowDown"?z("next"):ie.key==="ArrowUp"&&z("prev"),ie.key==="Home"?z("first"):ie.key==="End"&&z("last"))}function z(ie){var te,ue,ge,Ee,ae;if(T.value)if(!ie)(te=focusableChildren(T.value)[0])==null||te.focus();else if(ie==="next"){const ee=(ue=T.value.querySelector(":focus"))==null?void 0:ue.nextElementSibling;ee?ee.focus():z("first")}else if(ie==="prev"){const ee=(ge=T.value.querySelector(":focus"))==null?void 0:ge.previousElementSibling;ee?ee.focus():z("last")}else ie==="first"?(Ee=T.value.firstElementChild)==null||Ee.focus():ie==="last"&&((ae=T.value.lastElementChild)==null||ae.focus())}function K(ie){const te=g.value+(ie==="prev"?-1:1)*E.value;g.value=clamp(te,0,S.value-E.value)}const Q=computed(()=>{let ie=g.value>S.value-E.value?-(S.value-E.value)+bias(S.value-E.value-g.value):-g.value;g.value<=0&&(ie=bias(-g.value));const te=a.value&&b.value?-1:1;return{transform:`translate${b.value?"X":"Y"}(${te*ie}px)`,transition:N.value?"none":"",willChange:N.value?"transform":""}}),Y=computed(()=>({next:d.next,prev:d.prev,select:d.select,isSelected:d.isSelected})),G=computed(()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!u.value;case!0:return f.value||Math.abs(g.value)>0;case"mobile":return u.value||f.value||Math.abs(g.value)>0;default:return!u.value&&(f.value||Math.abs(g.value)>0)}}),j=computed(()=>Math.abs(g.value)>0),ne=computed(()=>S.value>Math.abs(g.value)+E.value);return useRender(()=>createVNode(e.tag,{class:["v-slide-group",{"v-slide-group--vertical":!b.value,"v-slide-group--has-affixes":G.value,"v-slide-group--is-overflowing":f.value},o.value,e.class],style:e.style,tabindex:L.value||d.selected.value.length?-1:0,onFocus:$},{default:()=>{var ie,te,ue;return[G.value&&createVNode("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!j.value}],onClick:()=>j.value&&K("prev")},[((ie=r.prev)==null?void 0:ie.call(r,Y.value))??createVNode(VFadeTransition,null,{default:()=>[createVNode(VIcon,{icon:a.value?e.nextIcon:e.prevIcon},null)]})]),createVNode("div",{key:"container",ref:v,class:"v-slide-group__container",onScroll:P},[createVNode("div",{ref:T,class:"v-slide-group__content",style:Q.value,onTouchstartPassive:x,onTouchmovePassive:D,onTouchendPassive:k,onFocusin:F,onFocusout:B,onKeydown:U},[(te=r.default)==null?void 0:te.call(r,Y.value)])]),G.value&&createVNode("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!ne.value}],onClick:()=>ne.value&&K("next")},[((ue=r.next)==null?void 0:ue.call(r,Y.value))??createVNode(VFadeTransition,null,{default:()=>[createVNode(VIcon,{icon:a.value?e.prevIcon:e.nextIcon},null)]})])]}})),{selected:d.selected,scrollTo:K,scrollOffset:g,focus:z}}}),VSlideGroupItem=genericComponent()({name:"VSlideGroupItem",props:makeGroupItemProps(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:r}=t;const a=useGroupItem(e,VSlideGroupSymbol);return()=>{var o;return(o=r.default)==null?void 0:o.call(r,{isSelected:a.isSelected.value,select:a.select,toggle:a.toggle,selectedClass:a.selectedClass.value})}}});function useCountdown(e){const t=shallowRef(e);let r=-1;function a(){clearInterval(r)}function o(){a(),nextTick$1(()=>t.value=e)}function u(d){const f=d?getComputedStyle(d):{transitionDuration:.2},g=parseFloat(f.transitionDuration)*1e3||200;if(a(),t.value<=0)return;const E=performance.now();r=window.setInterval(()=>{const S=performance.now()-E+g;t.value=Math.max(e-S,0),t.value<=0&&a()},g)}return onScopeDispose(a),{clear:a,time:t,start:u,reset:o}}const makeVSnackbarProps=propsFactory({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...makeLocationProps({location:"bottom"}),...makePositionProps(),...makeRoundedProps(),...makeVariantProps(),...makeThemeProps(),...omit(makeVOverlayProps({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","scrim","scrollStrategy"])},"VSnackbar"),VSnackbar=genericComponent()({name:"VSnackbar",props:makeVSnackbarProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const a=useProxiedModel(e,"modelValue"),{locationStyles:o}=useLocation(e),{positionClasses:u}=usePosition(e),{scopeId:d}=useScopeId(),{themeClasses:f}=provideTheme(e),{colorClasses:g,colorStyles:E,variantClasses:S}=useVariant(e),{roundedClasses:b}=useRounded(e),v=useCountdown(Number(e.timeout)),y=ref$1(),T=ref$1(),C=shallowRef(!1);watch(a,A),watch(()=>e.timeout,A),onMounted(()=>{a.value&&A()});let R=-1;function A(){v.reset(),window.clearTimeout(R);const x=Number(e.timeout);if(!a.value||x===-1)return;const D=refElement(T.value);v.start(D),R=window.setTimeout(()=>{a.value=!1},x)}function N(){v.reset(),window.clearTimeout(R)}function I(){C.value=!0,N()}function O(){C.value=!1,A()}return useRender(()=>{const x=VOverlay.filterProps(e),D=!!(r.default||r.text||e.text);return createVNode(VOverlay,mergeProps({ref:y,class:["v-snackbar",{"v-snackbar--active":a.value,"v-snackbar--multi-line":e.multiLine&&!e.vertical,"v-snackbar--timer":!!e.timer,"v-snackbar--vertical":e.vertical},u.value,e.class],style:e.style},x,{modelValue:a.value,"onUpdate:modelValue":k=>a.value=k,contentProps:mergeProps({class:["v-snackbar__wrapper",f.value,g.value,b.value,S.value],style:[o.value,E.value],onPointerenter:I,onPointerleave:O},x.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0},d),{default:()=>{var k,P;return[genOverlays(!1,"v-snackbar"),e.timer&&createVNode("div",{key:"timer",class:"v-snackbar__timer"},[createVNode(VProgressLinear,{ref:T,active:!C.value,color:typeof e.timer=="string"?e.timer:"info",max:e.timeout,"model-value":v.time.value},null)]),D&&createVNode("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((k=r.text)==null?void 0:k.call(r))??e.text,(P=r.default)==null?void 0:P.call(r)]),r.actions&&createVNode(VDefaultsProvider,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[createVNode("div",{class:"v-snackbar__actions"},[r.actions()])]})]},activator:r.activator})}),forwardRefs({},y)}}),makeVStepperActionsProps=propsFactory({color:String,disabled:{type:[Boolean,String],default:!1},prevText:{type:String,default:"$vuetify.stepper.prev"},nextText:{type:String,default:"$vuetify.stepper.next"}},"VStepperActions"),VStepperActions=genericComponent()({name:"VStepperActions",props:makeVStepperActionsProps(),emits:{"click:prev":()=>!0,"click:next":()=>!0},setup(e,t){let{emit:r,slots:a}=t;const{t:o}=useLocale();function u(){r("click:prev")}function d(){r("click:next")}return useRender(()=>{const f={onClick:u},g={onClick:d};return createVNode("div",{class:"v-stepper-actions"},[createVNode(VDefaultsProvider,{defaults:{VBtn:{disabled:["prev",!0].includes(e.disabled),text:o(e.prevText),variant:"text"}}},{default:()=>{var E;return[((E=a.prev)==null?void 0:E.call(a,{props:f}))??createVNode(VBtn,f,null)]}}),createVNode(VDefaultsProvider,{defaults:{VBtn:{color:e.color,disabled:["next",!0].includes(e.disabled),text:o(e.nextText),variant:"tonal"}}},{default:()=>{var E;return[((E=a.next)==null?void 0:E.call(a,{props:g}))??createVNode(VBtn,g,null)]}})])}),{}}}),VStepperHeader=createSimpleFunctional("v-stepper-header"),makeVStepperItemProps=propsFactory({color:String,title:String,subtitle:String,complete:Boolean,completeIcon:{type:String,default:"$complete"},editable:Boolean,editIcon:{type:String,default:"$edit"},error:Boolean,errorIcon:{type:String,default:"$error"},icon:String,ripple:{type:[Boolean,Object],default:!0},rules:{type:Array,default:()=>[]},...makeGroupItemProps()},"VStepperItem"),VStepperItem=genericComponent()({name:"VStepperItem",directives:{Ripple},props:makeVStepperItemProps(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:r}=t;const a=useGroupItem(e,VStepperSymbol,!0),o=computed(()=>(a==null?void 0:a.value.value)??e.value),u=computed(()=>e.rules.every(b=>b()===!0)),d=computed(()=>!e.disabled&&e.editable),f=computed(()=>e.error||!u.value),g=computed(()=>e.complete||e.rules.length>0&&u.value),E=computed(()=>f.value?e.errorIcon:g.value?e.completeIcon:e.editable?e.editIcon:e.icon),S=computed(()=>({canEdit:d.value,hasError:f.value,hasCompleted:g.value,title:e.title,subtitle:e.subtitle,step:o.value,value:e.value}));return useRender(()=>{var C,R,A;const b=(!a||a.isSelected.value||g.value||d.value)&&!f.value&&!e.disabled,v=!!(e.title!=null||r.title),y=!!(e.subtitle!=null||r.subtitle);function T(){a==null||a.toggle()}return withDirectives(createVNode("button",{class:["v-stepper-item",{"v-stepper-item--complete":g.value,"v-stepper-item--disabled":e.disabled,"v-stepper-item--error":f.value},a==null?void 0:a.selectedClass.value],disabled:!e.editable,onClick:T},[createVNode(VAvatar,{key:"stepper-avatar",class:"v-stepper-item__avatar",color:b?e.color:void 0,size:24},{default:()=>{var N;return[((N=r.icon)==null?void 0:N.call(r,S.value))??(E.value?createVNode(VIcon,{icon:E.value},null):o.value)]}}),createVNode("div",{class:"v-stepper-item__content"},[v&&createVNode("div",{key:"title",class:"v-stepper-item__title"},[((C=r.title)==null?void 0:C.call(r,S.value))??e.title]),y&&createVNode("div",{key:"subtitle",class:"v-stepper-item__subtitle"},[((R=r.subtitle)==null?void 0:R.call(r,S.value))??e.subtitle]),(A=r.default)==null?void 0:A.call(r,S.value)])]),[[resolveDirective("ripple"),e.ripple&&e.editable,null]])}),{}}}),VStepperSymbol$1=Symbol.for("vuetify:v-stepper"),makeVStepperWindowProps=propsFactory({...omit(makeVWindowProps(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VStepperWindow"),VStepperWindow=genericComponent()({name:"VStepperWindow",props:makeVStepperWindowProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const a=inject$1(VStepperSymbol$1,null),o=useProxiedModel(e,"modelValue"),u=computed({get(){var d;return o.value!=null||!a?o.value:(d=a.items.value.find(f=>a.selected.value.includes(f.id)))==null?void 0:d.value},set(d){o.value=d}});return useRender(()=>{const d=VWindow.filterProps(e);return createVNode(VWindow,mergeProps({_as:"VStepperWindow"},d,{modelValue:u.value,"onUpdate:modelValue":f=>u.value=f,class:"v-stepper-window",mandatory:!1,touch:!1}),r)}),{}}}),makeVStepperWindowItemProps=propsFactory({...makeVWindowItemProps()},"VStepperWindowItem"),VStepperWindowItem=genericComponent()({name:"VStepperWindowItem",props:makeVStepperWindowItemProps(),setup(e,t){let{slots:r}=t;return useRender(()=>{const a=VWindowItem.filterProps(e);return createVNode(VWindowItem,mergeProps({_as:"VStepperWindowItem"},a,{class:"v-stepper-window-item"}),r)}),{}}}),VStepperSymbol=Symbol.for("vuetify:v-stepper"),makeVStepperProps=propsFactory({altLabels:Boolean,bgColor:String,editable:Boolean,hideActions:Boolean,items:{type:Array,default:()=>[]},itemTitle:{type:String,default:"title"},itemValue:{type:String,default:"value"},mobile:Boolean,nonLinear:Boolean,flat:Boolean,...makeGroupProps({mandatory:"force",selectedClass:"v-stepper-item--selected"}),...makeVSheetProps(),...only(makeVStepperActionsProps(),["prevText","nextText"])},"VStepper"),VStepper=genericComponent()({name:"VStepper",props:makeVStepperProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const{items:a,next:o,prev:u,selected:d}=useGroup(e,VStepperSymbol),{color:f,editable:g,prevText:E,nextText:S}=toRefs(e),b=computed(()=>e.items.map((T,C)=>{const R=getPropertyFromItem(T,e.itemTitle,T),A=getPropertyFromItem(T,e.itemValue,C+1);return{title:R,value:A,raw:T}})),v=computed(()=>a.value.findIndex(T=>d.value.includes(T.id))),y=computed(()=>e.disabled?e.disabled:v.value===0?"prev":v.value===a.value.length-1?"next":!1);return provideDefaults({VStepperItem:{editable:g,prevText:E,nextText:S},VStepperActions:{color:f,disabled:y,prevText:E,nextText:S}}),useRender(()=>{const T=VSheet.filterProps(e),C=!!(r.header||e.items.length),R=e.items.length>0,A=!e.hideActions&&!!(R||r.actions);return createVNode(VSheet,mergeProps(T,{color:e.bgColor,class:["v-stepper",{"v-stepper--alt-labels":e.altLabels,"v-stepper--flat":e.flat,"v-stepper--non-linear":e.nonLinear,"v-stepper--mobile":e.mobile},e.class],style:e.style}),{default:()=>{var N,I;return[C&&createVNode(VStepperHeader,{key:"stepper-header"},{default:()=>[b.value.map((O,x)=>createVNode(Fragment,null,[!!x&&createVNode(VDivider,null,null),createVNode(VStepperItem,O,{default:r[`header-item.${O.value}`]??r.header,icon:r.icon,title:r.title,subtitle:r.subtitle})]))]}),R&&createVNode(VStepperWindow,{key:"stepper-window"},{default:()=>[b.value.map(O=>createVNode(VStepperWindowItem,{value:O.value},{default:()=>{var x,D;return((x=r[`item.${O.value}`])==null?void 0:x.call(r,O))??((D=r.item)==null?void 0:D.call(r,O))}}))]}),(N=r.default)==null?void 0:N.call(r,{prev:u,next:o}),A&&(((I=r.actions)==null?void 0:I.call(r,{next:o,prev:u}))??createVNode(VStepperActions,{key:"stepper-actions","onClick:prev":u,"onClick:next":o},r))]}})}),{prev:u,next:o}}}),makeVSwitchProps=propsFactory({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...makeVInputProps(),...makeVSelectionControlProps()},"VSwitch"),VSwitch=genericComponent()({name:"VSwitch",inheritAttrs:!1,props:makeVSwitchProps(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:r,slots:a}=t;const o=useProxiedModel(e,"indeterminate"),u=useProxiedModel(e,"modelValue"),{loaderClasses:d}=useLoader(e),{isFocused:f,focus:g,blur:E}=useFocus(e),S=ref$1(),b=computed(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),v=getUid(),y=computed(()=>e.id||`switch-${v}`);function T(){o.value&&(o.value=!1)}function C(R){var A,N;R.stopPropagation(),R.preventDefault(),(N=(A=S.value)==null?void 0:A.input)==null||N.click()}return useRender(()=>{const[R,A]=filterInputAttrs(r),N=VInput.filterProps(e),I=VSelectionControl.filterProps(e);return createVNode(VInput,mergeProps({class:["v-switch",{"v-switch--inset":e.inset},{"v-switch--indeterminate":o.value},d.value,e.class]},R,N,{modelValue:u.value,"onUpdate:modelValue":O=>u.value=O,id:y.value,focused:f.value,style:e.style}),{...a,default:O=>{let{id:x,messagesId:D,isDisabled:k,isReadonly:P,isValid:L}=O;return createVNode(VSelectionControl,mergeProps({ref:S},I,{modelValue:u.value,"onUpdate:modelValue":[F=>u.value=F,T],id:x.value,"aria-describedby":D.value,type:"checkbox","aria-checked":o.value?"mixed":void 0,disabled:k.value,readonly:P.value,onFocus:g,onBlur:E},A),{...a,default:F=>{let{backgroundColorClasses:B,backgroundColorStyles:$}=F;return createVNode("div",{class:["v-switch__track",...B.value],style:$.value,onClick:C},null)},input:F=>{let{inputNode:B,icon:$,backgroundColorClasses:U,backgroundColorStyles:z}=F;return createVNode(Fragment,null,[B,createVNode("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":$||e.loading},e.inset?void 0:U.value],style:e.inset?void 0:z.value},[createVNode(VScaleTransition,null,{default:()=>[e.loading?createVNode(LoaderSlot,{name:"v-switch",active:!0,color:L.value===!1?void 0:b.value},{default:K=>a.loader?a.loader(K):createVNode(VProgressCircular,{active:K.isActive,color:K.color,indeterminate:!0,size:"16",width:"2"},null)}):$&&createVNode(VIcon,{key:$,icon:$,size:"x-small"},null)]})])])}})}})}),{}}}),makeVSystemBarProps=propsFactory({color:String,height:[Number,String],window:Boolean,...makeComponentProps(),...makeElevationProps(),...makeLayoutItemProps(),...makeRoundedProps(),...makeTagProps(),...makeThemeProps()},"VSystemBar"),VSystemBar=genericComponent()({name:"VSystemBar",props:makeVSystemBarProps(),setup(e,t){let{slots:r}=t;const{themeClasses:a}=provideTheme(e),{backgroundColorClasses:o,backgroundColorStyles:u}=useBackgroundColor(toRef(e,"color")),{elevationClasses:d}=useElevation(e),{roundedClasses:f}=useRounded(e),{ssrBootStyles:g}=useSsrBoot(),E=computed(()=>e.height??(e.window?32:24)),{layoutItemStyles:S}=useLayoutItem({id:e.name,order:computed(()=>parseInt(e.order,10)),position:shallowRef("top"),layoutSize:E,elementSize:E,active:computed(()=>!0),absolute:toRef(e,"absolute")});return useRender(()=>createVNode(e.tag,{class:["v-system-bar",{"v-system-bar--window":e.window},a.value,o.value,d.value,f.value,e.class],style:[u.value,S.value,g.value,e.style]},r)),{}}}),VTabsSymbol=Symbol.for("vuetify:v-tabs"),makeVTabProps=propsFactory({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...omit(makeVBtnProps({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),VTab=genericComponent()({name:"VTab",props:makeVTabProps(),setup(e,t){let{slots:r,attrs:a}=t;const{textColorClasses:o,textColorStyles:u}=useTextColor(e,"sliderColor"),d=computed(()=>e.direction==="horizontal"),f=shallowRef(!1),g=ref$1(),E=ref$1();function S(b){var y,T;let{value:v}=b;if(f.value=v,v){const C=(T=(y=g.value)==null?void 0:y.$el.parentElement)==null?void 0:T.querySelector(".v-tab--selected .v-tab__slider"),R=E.value;if(!C||!R)return;const A=getComputedStyle(C).color,N=C.getBoundingClientRect(),I=R.getBoundingClientRect(),O=d.value?"x":"y",x=d.value?"X":"Y",D=d.value?"right":"bottom",k=d.value?"width":"height",P=N[O],L=I[O],F=P>L?N[D]-I[D]:N[O]-I[O],B=Math.sign(F)>0?d.value?"right":"bottom":Math.sign(F)<0?d.value?"left":"top":"center",U=(Math.abs(F)+(Math.sign(F)<0?N[k]:I[k]))/Math.max(N[k],I[k])||0,z=N[k]/I[k]||0,K=1.5;animate(R,{backgroundColor:[A,"currentcolor"],transform:[`translate${x}(${F}px) scale${x}(${z})`,`translate${x}(${F/K}px) scale${x}(${(U-1)/K+1})`,"none"],transformOrigin:Array(3).fill(B)},{duration:225,easing:standardEasing})}}return useRender(()=>{const b=VBtn.filterProps(e);return createVNode(VBtn,mergeProps({symbol:VTabsSymbol,ref:g,class:["v-tab",e.class],style:e.style,tabindex:f.value?0:-1,role:"tab","aria-selected":String(f.value),active:!1},b,a,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":S}),{...r,default:()=>{var v;return createVNode(Fragment,null,[((v=r.default)==null?void 0:v.call(r))??e.text,!e.hideSlider&&createVNode("div",{ref:E,class:["v-tab__slider",o.value],style:u.value},null)])}})}),{}}});function parseItems(e){return e?e.map(t=>isObject(t)?t:{text:t,value:t}):[]}const makeVTabsProps=propsFactory({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...makeVSlideGroupProps({mandatory:"force"}),...makeDensityProps(),...makeTagProps()},"VTabs"),VTabs=genericComponent()({name:"VTabs",props:makeVTabsProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const a=useProxiedModel(e,"modelValue"),o=computed(()=>parseItems(e.items)),{densityClasses:u}=useDensity(e),{backgroundColorClasses:d,backgroundColorStyles:f}=useBackgroundColor(toRef(e,"bgColor"));return provideDefaults({VTab:{color:toRef(e,"color"),direction:toRef(e,"direction"),stacked:toRef(e,"stacked"),fixed:toRef(e,"fixedTabs"),sliderColor:toRef(e,"sliderColor"),hideSlider:toRef(e,"hideSlider")}}),useRender(()=>{const g=VSlideGroup.filterProps(e);return createVNode(VSlideGroup,mergeProps(g,{modelValue:a.value,"onUpdate:modelValue":E=>a.value=E,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},u.value,d.value,e.class],style:[{"--v-tabs-height":convertToUnit(e.height)},f.value,e.style],role:"tablist",symbol:VTabsSymbol}),{default:()=>[r.default?r.default():o.value.map(E=>createVNode(VTab,mergeProps(E,{key:E.text}),null))]})}),{}}}),makeVTextareaProps=propsFactory({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...makeVInputProps(),...makeVFieldProps()},"VTextarea"),VTextarea=genericComponent()({name:"VTextarea",directives:{Intersect},inheritAttrs:!1,props:makeVTextareaProps(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:r,emit:a,slots:o}=t;const u=useProxiedModel(e,"modelValue"),{isFocused:d,focus:f,blur:g}=useFocus(e),E=computed(()=>typeof e.counterValue=="function"?e.counterValue(u.value):(u.value||"").toString().length),S=computed(()=>{if(r.maxlength)return r.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter});function b(B,$){var U,z;!e.autofocus||!B||(z=(U=$[0].target)==null?void 0:U.focus)==null||z.call(U)}const v=ref$1(),y=ref$1(),T=shallowRef(""),C=ref$1(),R=computed(()=>e.persistentPlaceholder||d.value||e.active);function A(){var B;C.value!==document.activeElement&&((B=C.value)==null||B.focus()),d.value||f()}function N(B){A(),a("click:control",B)}function I(B){a("mousedown:control",B)}function O(B){B.stopPropagation(),A(),nextTick$1(()=>{u.value="",callEvent(e["onClick:clear"],B)})}function x(B){var U;const $=B.target;if(u.value=$.value,(U=e.modelModifiers)!=null&&U.trim){const z=[$.selectionStart,$.selectionEnd];nextTick$1(()=>{$.selectionStart=z[0],$.selectionEnd=z[1]})}}const D=ref$1(),k=ref$1(+e.rows),P=computed(()=>["plain","underlined"].includes(e.variant));watchEffect(()=>{e.autoGrow||(k.value=+e.rows)});function L(){e.autoGrow&&nextTick$1(()=>{if(!D.value||!y.value)return;const B=getComputedStyle(D.value),$=getComputedStyle(y.value.$el),U=parseFloat(B.getPropertyValue("--v-field-padding-top"))+parseFloat(B.getPropertyValue("--v-input-padding-top"))+parseFloat(B.getPropertyValue("--v-field-padding-bottom")),z=D.value.scrollHeight,K=parseFloat(B.lineHeight),Q=Math.max(parseFloat(e.rows)*K+U,parseFloat($.getPropertyValue("--v-input-control-height"))),Y=parseFloat(e.maxRows)*K+U||1/0,G=clamp(z??0,Q,Y);k.value=Math.floor((G-U)/K),T.value=convertToUnit(G)})}onMounted(L),watch(u,L),watch(()=>e.rows,L),watch(()=>e.maxRows,L),watch(()=>e.density,L);let F;return watch(D,B=>{B?(F=new ResizeObserver(L),F.observe(D.value)):F==null||F.disconnect()}),onBeforeUnmount(()=>{F==null||F.disconnect()}),useRender(()=>{const B=!!(o.counter||e.counter||e.counterValue),$=!!(B||o.details),[U,z]=filterInputAttrs(r),{modelValue:K,...Q}=VInput.filterProps(e),Y=filterFieldProps(e);return createVNode(VInput,mergeProps({ref:v,modelValue:u.value,"onUpdate:modelValue":G=>u.value=G,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":P.value},e.class],style:e.style},U,Q,{centerAffix:k.value===1&&!P.value,focused:d.value}),{...o,default:G=>{let{id:j,isDisabled:ne,isDirty:ie,isReadonly:te,isValid:ue}=G;return createVNode(VField,mergeProps({ref:y,style:{"--v-textarea-control-height":T.value},onClick:N,onMousedown:I,"onClick:clear":O,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},Y,{id:j.value,active:R.value||ie.value,centerAffix:k.value===1&&!P.value,dirty:ie.value||e.dirty,disabled:ne.value,focused:d.value,error:ue.value===!1}),{...o,default:ge=>{let{props:{class:Ee,...ae}}=ge;return createVNode(Fragment,null,[e.prefix&&createVNode("span",{class:"v-text-field__prefix"},[e.prefix]),withDirectives(createVNode("textarea",mergeProps({ref:C,class:Ee,value:u.value,onInput:x,autofocus:e.autofocus,readonly:te.value,disabled:ne.value,placeholder:e.placeholder,rows:e.rows,name:e.name,onFocus:A,onBlur:g},ae,z),null),[[resolveDirective("intersect"),{handler:b},null,{once:!0}]]),e.autoGrow&&withDirectives(createVNode("textarea",{class:[Ee,"v-textarea__sizer"],id:`${ae.id}-sizer`,"onUpdate:modelValue":ee=>u.value=ee,ref:D,readonly:!0,"aria-hidden":"true"},null),[[vModelText,u.value]]),e.suffix&&createVNode("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:$?G=>{var j;return createVNode(Fragment,null,[(j=o.details)==null?void 0:j.call(o,G),B&&createVNode(Fragment,null,[createVNode("span",null,null),createVNode(VCounter,{active:e.persistentCounter||d.value,value:E.value,max:S.value},o.counter)])])}:void 0})}),forwardRefs({},v,y,C)}}),makeVThemeProviderProps=propsFactory({withBackground:Boolean,...makeComponentProps(),...makeThemeProps(),...makeTagProps()},"VThemeProvider"),VThemeProvider=genericComponent()({name:"VThemeProvider",props:makeVThemeProviderProps(),setup(e,t){let{slots:r}=t;const{themeClasses:a}=provideTheme(e);return()=>{var o;return e.withBackground?createVNode(e.tag,{class:["v-theme-provider",a.value,e.class],style:e.style},{default:()=>{var u;return[(u=r.default)==null?void 0:u.call(r)]}}):(o=r.default)==null?void 0:o.call(r)}}}),makeVTimelineProps=propsFactory({align:{type:String,default:"center",validator:e=>["center","start"].includes(e)},direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},justify:{type:String,default:"auto",validator:e=>["auto","center"].includes(e)},side:{type:String,validator:e=>e==null||["start","end"].includes(e)},lineInset:{type:[String,Number],default:0},lineThickness:{type:[String,Number],default:2},lineColor:String,truncateLine:{type:String,validator:e=>["start","end","both"].includes(e)},...makeComponentProps(),...makeDensityProps(),...makeTagProps(),...makeThemeProps()},"VTimeline"),VTimeline=genericComponent()({name:"VTimeline",props:makeVTimelineProps(),setup(e,t){let{slots:r}=t;const{themeClasses:a}=provideTheme(e),{densityClasses:o}=useDensity(e),{rtlClasses:u}=useRtl();provideDefaults({VTimelineDivider:{lineColor:toRef(e,"lineColor")},VTimelineItem:{density:toRef(e,"density"),lineInset:toRef(e,"lineInset")}});const d=computed(()=>{const g=e.side?e.side:e.density!=="default"?"end":null;return g&&`v-timeline--side-${g}`}),f=computed(()=>{const g=["v-timeline--truncate-line-start","v-timeline--truncate-line-end"];switch(e.truncateLine){case"both":return g;case"start":return g[0];case"end":return g[1];default:return null}});return useRender(()=>createVNode(e.tag,{class:["v-timeline",`v-timeline--${e.direction}`,`v-timeline--align-${e.align}`,`v-timeline--justify-${e.justify}`,f.value,{"v-timeline--inset-line":!!e.lineInset},a.value,o.value,d.value,u.value,e.class],style:[{"--v-timeline-line-thickness":convertToUnit(e.lineThickness)},e.style]},r)),{}}}),makeVTimelineDividerProps=propsFactory({dotColor:String,fillDot:Boolean,hideDot:Boolean,icon:IconValue,iconColor:String,lineColor:String,...makeComponentProps(),...makeRoundedProps(),...makeSizeProps(),...makeElevationProps()},"VTimelineDivider"),VTimelineDivider=genericComponent()({name:"VTimelineDivider",props:makeVTimelineDividerProps(),setup(e,t){let{slots:r}=t;const{sizeClasses:a,sizeStyles:o}=useSize(e,"v-timeline-divider__dot"),{backgroundColorStyles:u,backgroundColorClasses:d}=useBackgroundColor(toRef(e,"dotColor")),{roundedClasses:f}=useRounded(e,"v-timeline-divider__dot"),{elevationClasses:g}=useElevation(e),{backgroundColorClasses:E,backgroundColorStyles:S}=useBackgroundColor(toRef(e,"lineColor"));return useRender(()=>createVNode("div",{class:["v-timeline-divider",{"v-timeline-divider--fill-dot":e.fillDot},e.class],style:e.style},[createVNode("div",{class:["v-timeline-divider__before",E.value],style:S.value},null),!e.hideDot&&createVNode("div",{key:"dot",class:["v-timeline-divider__dot",g.value,f.value,a.value],style:o.value},[createVNode("div",{class:["v-timeline-divider__inner-dot",d.value,f.value],style:u.value},[r.default?createVNode(VDefaultsProvider,{key:"icon-defaults",disabled:!e.icon,defaults:{VIcon:{color:e.iconColor,icon:e.icon,size:e.size}}},r.default):createVNode(VIcon,{key:"icon",color:e.iconColor,icon:e.icon,size:e.size},null)])]),createVNode("div",{class:["v-timeline-divider__after",E.value],style:S.value},null)])),{}}}),makeVTimelineItemProps=propsFactory({density:String,dotColor:String,fillDot:Boolean,hideDot:Boolean,hideOpposite:{type:Boolean,default:void 0},icon:IconValue,iconColor:String,lineInset:[Number,String],...makeComponentProps(),...makeDimensionProps(),...makeElevationProps(),...makeRoundedProps(),...makeSizeProps(),...makeTagProps()},"VTimelineItem"),VTimelineItem=genericComponent()({name:"VTimelineItem",props:makeVTimelineItemProps(),setup(e,t){let{slots:r}=t;const{dimensionStyles:a}=useDimension(e),o=shallowRef(0),u=ref$1();return watch(u,d=>{var f;d&&(o.value=((f=d.$el.querySelector(".v-timeline-divider__dot"))==null?void 0:f.getBoundingClientRect().width)??0)},{flush:"post"}),useRender(()=>{var d,f;return createVNode("div",{class:["v-timeline-item",{"v-timeline-item--fill-dot":e.fillDot},e.class],style:[{"--v-timeline-dot-size":convertToUnit(o.value),"--v-timeline-line-inset":e.lineInset?`calc(var(--v-timeline-dot-size) / 2 + ${convertToUnit(e.lineInset)})`:convertToUnit(0)},e.style]},[createVNode("div",{class:"v-timeline-item__body",style:a.value},[(d=r.default)==null?void 0:d.call(r)]),createVNode(VTimelineDivider,{ref:u,hideDot:e.hideDot,icon:e.icon,iconColor:e.iconColor,size:e.size,elevation:e.elevation,dotColor:e.dotColor,fillDot:e.fillDot,rounded:e.rounded},{default:r.icon}),e.density!=="compact"&&createVNode("div",{class:"v-timeline-item__opposite"},[!e.hideOpposite&&((f=r.opposite)==null?void 0:f.call(r))])])}),{}}}),makeVToolbarItemsProps=propsFactory({...makeComponentProps(),...makeVariantProps({variant:"text"})},"VToolbarItems"),VToolbarItems=genericComponent()({name:"VToolbarItems",props:makeVToolbarItemsProps(),setup(e,t){let{slots:r}=t;return provideDefaults({VBtn:{color:toRef(e,"color"),height:"inherit",variant:toRef(e,"variant")}}),useRender(()=>{var a;return createVNode("div",{class:["v-toolbar-items",e.class],style:e.style},[(a=r.default)==null?void 0:a.call(r)])}),{}}}),makeVTooltipProps=propsFactory({id:String,text:String,...omit(makeVOverlayProps({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),VTooltip=genericComponent()({name:"VTooltip",props:makeVTooltipProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const a=useProxiedModel(e,"modelValue"),{scopeId:o}=useScopeId(),u=getUid(),d=computed(()=>e.id||`v-tooltip-${u}`),f=ref$1(),g=computed(()=>e.location.split(" ").length>1?e.location:e.location+" center"),E=computed(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),S=computed(()=>e.transition?e.transition:a.value?"scale-transition":"fade-transition"),b=computed(()=>mergeProps({"aria-describedby":d.value},e.activatorProps));return useRender(()=>{const v=VOverlay.filterProps(e);return createVNode(VOverlay,mergeProps({ref:f,class:["v-tooltip",e.class],style:e.style,id:d.value},v,{modelValue:a.value,"onUpdate:modelValue":y=>a.value=y,transition:S.value,absolute:!0,location:g.value,origin:E.value,persistent:!0,role:"tooltip",activatorProps:b.value,_disableGlobalStack:!0},o),{activator:r.activator,default:function(){var R;for(var y=arguments.length,T=new Array(y),C=0;C<y;C++)T[C]=arguments[C];return((R=r.default)==null?void 0:R.call(r,...T))??e.text}})}),forwardRefs({},f)}}),VValidation=genericComponent()({name:"VValidation",props:makeValidationProps(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:r}=t;const a=useValidation(e,"validation");return()=>{var o;return(o=r.default)==null?void 0:o.call(r,a)}}}),components=Object.freeze(Object.defineProperty({__proto__:null,VAlert,VAlertTitle,VApp,VAppBar,VAppBarNavIcon,VAppBarTitle,VAutocomplete,VAvatar,VBadge,VBanner,VBannerActions,VBannerText,VBottomNavigation,VBottomSheet,VBreadcrumbs,VBreadcrumbsDivider,VBreadcrumbsItem,VBtn,VBtnGroup,VBtnToggle,VCard,VCardActions,VCardItem,VCardSubtitle,VCardText,VCardTitle,VCarousel,VCarouselItem,VCheckbox,VCheckboxBtn,VChip,VChipGroup,VClassIcon,VCode,VCol,VColorPicker,VCombobox,VComponentIcon,VContainer,VCounter,VDataIterator,VDataTable,VDataTableFooter,VDataTableRow,VDataTableRows,VDataTableServer,VDataTableVirtual,VDatePicker,VDatePickerControls,VDatePickerHeader,VDatePickerMonth,VDatePickerMonths,VDatePickerYears,VDefaultsProvider,VDialog,VDialogBottomTransition,VDialogTopTransition,VDialogTransition,VDivider,VExpandTransition,VExpandXTransition,VExpansionPanel,VExpansionPanelText,VExpansionPanelTitle,VExpansionPanels,VFabTransition,VFadeTransition,VField,VFieldLabel,VFileInput,VFooter,VForm,VHover,VIcon,VImg,VInfiniteScroll,VInput,VItem,VItemGroup,VKbd,VLabel,VLayout,VLayoutItem,VLazy,VLigatureIcon,VList,VListGroup,VListImg,VListItem,VListItemAction,VListItemMedia,VListItemSubtitle,VListItemTitle,VListSubheader,VLocaleProvider,VMain,VMenu,VMessages,VNavigationDrawer,VNoSsr,VOtpInput,VOverlay,VPagination,VParallax,VProgressCircular,VProgressLinear,VRadio,VRadioGroup,VRangeSlider,VRating,VResponsive,VRow,VScaleTransition,VScrollXReverseTransition,VScrollXTransition,VScrollYReverseTransition,VScrollYTransition,VSelect,VSelectionControl,VSelectionControlGroup,VSheet,VSkeletonLoader,VSlideGroup,VSlideGroupItem,VSlideXReverseTransition,VSlideXTransition,VSlideYReverseTransition,VSlideYTransition,VSlider,VSnackbar,VSpacer,VStepper,VStepperActions,VStepperHeader,VStepperItem,VStepperWindow,VStepperWindowItem,VSvgIcon,VSwitch,VSystemBar,VTab,VTable,VTabs,VTextField,VTextarea,VThemeProvider,VTimeline,VTimelineItem,VToolbar,VToolbarItems,VToolbarTitle,VTooltip,VValidation,VVirtualScroll,VWindow,VWindowItem},Symbol.toStringTag,{value:"Module"}));function mounted$2(e,t){const r=t.modifiers||{},a=t.value,{once:o,immediate:u,...d}=r,f=!Object.keys(d).length,{handler:g,options:E}=typeof a=="object"?a:{handler:a,options:{attributes:(d==null?void 0:d.attr)??f,characterData:(d==null?void 0:d.char)??f,childList:(d==null?void 0:d.child)??f,subtree:(d==null?void 0:d.sub)??f}},S=new MutationObserver(function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=arguments.length>1?arguments[1]:void 0;g==null||g(b,v),o&&unmounted$2(e,t)});u&&(g==null||g([],S)),e._mutate=Object(e._mutate),e._mutate[t.instance.$.uid]={observer:S},S.observe(e,E)}function unmounted$2(e,t){var r;(r=e._mutate)!=null&&r[t.instance.$.uid]&&(e._mutate[t.instance.$.uid].observer.disconnect(),delete e._mutate[t.instance.$.uid])}const Mutate={mounted:mounted$2,unmounted:unmounted$2};function mounted$1(e,t){var o,u;const r=t.value,a={passive:!((o=t.modifiers)!=null&&o.active)};window.addEventListener("resize",r,a),e._onResize=Object(e._onResize),e._onResize[t.instance.$.uid]={handler:r,options:a},(u=t.modifiers)!=null&&u.quiet||r()}function unmounted$1(e,t){var o;if(!((o=e._onResize)!=null&&o[t.instance.$.uid]))return;const{handler:r,options:a}=e._onResize[t.instance.$.uid];window.removeEventListener("resize",r,a),delete e._onResize[t.instance.$.uid]}const Resize={mounted:mounted$1,unmounted:unmounted$1};function mounted(e,t){const{self:r=!1}=t.modifiers??{},a=t.value,o=typeof a=="object"&&a.options||{passive:!0},u=typeof a=="function"||"handleEvent"in a?a:a.handler,d=r?e:t.arg?document.querySelector(t.arg):window;d&&(d.addEventListener("scroll",u,o),e._onScroll=Object(e._onScroll),e._onScroll[t.instance.$.uid]={handler:u,options:o,target:r?void 0:d})}function unmounted(e,t){var u;if(!((u=e._onScroll)!=null&&u[t.instance.$.uid]))return;const{handler:r,options:a,target:o=e}=e._onScroll[t.instance.$.uid];o.removeEventListener("scroll",r,a),delete e._onScroll[t.instance.$.uid]}function updated(e,t){t.value!==t.oldValue&&(unmounted(e,t),mounted(e,t))}const Scroll={mounted,unmounted,updated},directives=Object.freeze(Object.defineProperty({__proto__:null,ClickOutside,Intersect,Mutate,Resize,Ripple,Scroll,Touch},Symbol.toStringTag,{value:"Module"})),state$2=()=>({dashboards:null,pages:null,groups:null,themes:null,widgets:null}),getters$1={dashboards(e){return e.dashboards},pages(e){return e.pages},groups(e){return e.groups},themes(e){return e.themes},widgets(e){return e.widgets},pageByName:e=>t=>{if(e.pages)return Object.values(e.pages).filter(r=>r.name===t)},groupsByPage:e=>t=>{if(e.groups)return Object.values(e.groups).filter(a=>a.page===t).sort((a,o)=>{const u=a.order||Number.MAX_SAFE_INTEGER,d=o.order||Number.MAX_SAFE_INTEGER;return u-d})},widgetsByPage:e=>t=>{if(e.widgets)return Object.values(e.widgets).filter(a=>!a.props.group&&a.props.page&&a.props.page===t)},widgetsByGroup:e=>t=>{if(e.widgets)return Object.values(e.widgets).filter(a=>a.props.group===t&&!(a.type==="ui-template"&&a.props.templateScope!=="local")).sort((a,o)=>{var f,g;const u=((f=a.props)==null?void 0:f.order)||Number.MAX_SAFE_INTEGER,d=((g=o.props)==null?void 0:g.order)||Number.MAX_SAFE_INTEGER;return u-d})},findBy:e=>(t,r,a)=>{if(e[t+"s"])return Object.values(e[t+"s"]).filter(o=>o[r]===a)},siteTemplates:e=>t=>{if(e.widgets)return Object.values(e.widgets).filter(a=>a.type==="ui-template"&&a.props.dashboard===t&&a.props.templateScope.match(/^site:/))},pageTemplates:e=>t=>{if(e.widgets)return Object.values(e.widgets).filter(a=>a.type==="ui-template"&&a.props.page===t&&a.props.templateScope.match(/^page:/))}},mutations$2={dashboards(e,t){e.dashboards={...e.dashboards,...t}},pages(e,t){e.pages=t},groups(e,t){e.groups=t},themes(e,t){e.themes=t},widgets(e,t){e.widgets=t},widgetState(e,t){const r=t.widgetId;"enabled"in t&&(e.widgets[r].state.enabled=t.enabled),"visible"in t&&(e.widgets[r].state.visible=t.visible)},setProperty(e,{item:t,itemId:r,property:a,value:o}){e[t+"s"][r][a]=o}},ui={namespaced:!0,state:state$2,getters:getters$1,mutations:mutations$2},state$1=()=>({values:{},messages:{},properties:{}}),supportedPropertyMessages={"ui-property:class":"class"},mutations$1={bind(e,t){var a;const r=t.widgetId;if("msg"in t){if((a=t.msg)!=null&&a.topic&&supportedPropertyMessages[t.msg.topic]&&hasProperty(t.msg,"payload")){const o=supportedPropertyMessages[t.msg.topic];e.properties[r]=e.properties[r]||{},e.properties[r][o]=t.msg.payload;return}e.messages[r]=t.msg}},append(e,t){const r=t.widgetId;"msg"in t&&(e.messages[r]||(e.messages[r]=[]),e.messages[r].push(t.msg))},restrict(e,t){var a,o;const r=t.widgetId;if("min"in t){const u=t.min;e.messages[r]=(a=e.messages[r])==null?void 0:a.filter(d=>d._datapoint.x>u)}if("points"in t){const u=t.points;e.messages[r]=(o=e.messages[r])==null?void 0:o.slice(-u)}}},getters={value:e=>t=>e.values[t],getMsgProperty:e=>(t,r,a)=>{const o=e.messages[t]||{};return getDeepValue(o,r,a)}},data={namespaced:!0,state:state$1,mutations:mutations$1,getters},state=()=>({setup:null}),mutations={set(e,t){console.log("setup",t),e.setup=t}},setup={namespaced:!0,state,mutations},store=createStore({modules:{ui,data,setup},plugins:[]}),theme={dark:!1,colors:{background:"#fff","group-background":"#ffffff",primary:"#0000ff",accent:"#ff6b99",secondary:"#26ff8c",success:"#a5d64c",surface:"#ffffff",info:"#ff53d0",warning:"#ff8e00",error:"#ff5252"}},vuetify=createVuetify({components,directives,theme:{defaultTheme:"nrdb",themes:{nrdb:theme}}});fetch("_setup").then(e=>e.json()).then(e=>{store.commit("setup/set",e);const t=lookup(e.socketio);t.on("disconnect",o=>{console.log("SIO disconnected",o)}),t.on("connect",()=>{console.log("SIO connected")}),t.on("connect_error",o=>{console.log("SIO connect error:",o,o.data)}),window.Vue=Vue,window.vuex=vuex;const r=createApp(App).use(store).use(vuetify).use(router),a=createHead();r.use(a),r.mixin(VueHeadMixin),r.provide("$socket",t),r.mount("#app")}).catch(e=>{console.log("auth error:",e)});export{cleanAndMerge as $,utils$1 as A,rgba$2 as B,Color$1 as C,setDiagramTitle as D,getDiagramTitle as E,clear as F,curveBasis as G,parseGenericTypes as H,getConfig as I,setupGraphViewbox as J,random as K,define as L,extend$1 as M,Color$2 as N,rgbConvert as O,nogamma as P,hue as Q,Rgb as R,Selection$1 as S,commonjsGlobal as T,getDefaultExportFromCjs as U,dayjs as V,selectSvgElement as W,tau as X,defaultConfig$1 as Y,parseDirective$1 as Z,_,getAccDescription as a,halfPi as a$,parseFontSize as a0,getThemeVariables$2 as a1,constant$1 as a2,interpolateNumber as a3,color as a4,interpolateRgb as a5,interpolateString as a6,addFunction as a7,ZERO_WIDTH_SPACE as a8,generateId as a9,MapCache as aA,eq as aB,Uint8Array$2 as aC,isTypedArray$1 as aD,isLength as aE,isIndex as aF,identity as aG,baseFor$1 as aH,root$1 as aI,baseRest as aJ,isIterateeCall as aK,baseAssignValue as aL,Set$2 as aM,isArrayLikeObject as aN,constant as aO,isEmpty$1 as aP,merge$2 as aQ,lineBreakRegex as aR,defaultConfig as aS,decodeEntities as aT,commonDb$1 as aU,isDark$1 as aV,lighten$2 as aW,darken$2 as aX,pi as aY,cos as aZ,sin as a_,isObjectLike as aa,baseGetTag as ab,Symbol$2 as ac,isArray$3 as ad,isObject$3 as ae,isArrayLike as af,arrayLikeKeys as ag,baseKeys as ah,memoize as ai,isArguments$1 as aj,setToString$1 as ak,overRest as al,copyObject as am,keysIn as an,getPrototype$1 as ao,cloneArrayBuffer as ap,cloneTypedArray as aq,getTag$1 as ar,nodeUtil$1 as as,baseUnary as at,copyArray as au,isBuffer$1 as av,cloneBuffer as aw,initCloneObject as ax,Stack as ay,assignValue as az,setAccDescription as b,epsilon as b0,sqrt as b1,min as b2,abs$1 as b3,atan2 as b4,asin as b5,acos as b6,max as b7,dedent as b8,getConfig$1 as c,sanitizeText$2 as d,assignWithDepth$1 as e,calculateTextWidth as f,getAccTitle as g,select as h,configureSvgSize as i,common$1 as j,calculateTextHeight as k,log$1 as l,mermaidAPI as m,dist as n,curveLinear as o,getStylesFromArray as p,evaluate as q,interpolateToCurve as r,setAccTitle as s,setupGraphViewbox$1 as t,setConfig as u,root$2 as v,wrapLabel as w,array as x,isPlainObject as y,isFunction as z};
|
|
215
215
|
function __vite__mapDeps(indexes) {
|
|
216
216
|
if (!__vite__mapDeps.viteFileDeps) {
|
|
217
|
-
__vite__mapDeps.viteFileDeps = ["assets/c4Diagram-c0b17d02-
|
|
217
|
+
__vite__mapDeps.viteFileDeps = ["assets/c4Diagram-c0b17d02-YtgqISMs.js","assets/svgDrawCommon-42e92da3-nBbiZX3l.js","assets/flowDiagram-d6f8fe3a-cThkyiTm.js","assets/flowDb-ff651a22-VLXAYP-0.js","assets/layout-fVXYNle2.js","assets/styles-1b0c237a-AFZGBoCy.js","assets/index-f58d48f9-Lp59Xbtf.js","assets/edges-0005682e-z6K4c7OR.js","assets/createText-3b1f58a4-NgnhIV1y.js","assets/svgDraw-70101091-PiQV_Dss.js","assets/line-Z_CHQEeo.js","assets/array-Nw74a44z.js","assets/path-aUcfwwLI.js","assets/flowDiagram-v2-58f49b84-JR6gJiOl.js","assets/erDiagram-dedf2781-qOfGFhoC.js","assets/ganttDiagram-088dbd90-rlAgIGtj.js","assets/linear-q6lIuSLn.js","assets/init-Hi12RPRh.js","assets/pieDiagram-3fca7ce7-LxBanFqs.js","assets/arc-yHC07jh5.js","assets/ordinal-OOfG4Z7H.js","assets/quadrantDiagram-0ca4be02-i3mUuanh.js","assets/requirementDiagram-e13af0f0-u5059spj.js","assets/sequenceDiagram-84aa38e3-2ROgjdrk.js","assets/classDiagram-a8cc8886-yXrzCv-T.js","assets/styles-622362e4-Uf0NQb62.js","assets/classDiagram-v2-802a48d3-NjkwMnSL.js","assets/stateDiagram-9a586ac6-N4CEixko.js","assets/styles-a1a6e33f-bG-oUCNz.js","assets/stateDiagram-v2-96f2b9df-FbOIE7I-.js","assets/journeyDiagram-adaa34f8-rTj5fqGN.js","assets/flowchart-elk-definition-56584a6c-aGhbEEKl.js","assets/timeline-definition-1a90b03d-PQ0VUSc2.js","assets/mindmap-definition-57868176-8Fv_UaTx.js","assets/sankeyDiagram-a7f8e230-lFgjv4Iy.js"]
|
|
218
218
|
}
|
|
219
219
|
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
220
220
|
}
|