z-crud-table 0.0.55 → 0.0.56

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.
@@ -221,7 +221,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
221
221
  };
222
222
  }>, {
223
223
  refresh: () => Promise<void>;
224
- search: () => void;
224
+ search: (params?: any) => void;
225
225
  handleDelete: (ids: number[]) => Promise<void>;
226
226
  openDialog: (mode: "add" | "view" | "edit", dataPayload?: any) => Promise<void>;
227
227
  submit: (mode: "add" | "view" | "edit", data: Record<string, any>) => Promise<void>;
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.header-cell-content[data-v-d23c8660]{display:inline-block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crud-table-container[data-v-d80317e7]{display:flex;flex-direction:column;height:100%;width:100%;min-width:0;min-height:0;overflow:hidden}.search-section-wrapper[data-v-d80317e7]{flex-shrink:0}.table-content-wrapper[data-v-d80317e7]{flex:1;min-height:0;overflow:hidden}.pagination-wrapper[data-v-d80317e7]{flex-shrink:0;padding-top:1rem;display:flex;justify-content:flex-end}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.relative{position:relative}.\\!mr-0{margin-right:0!important}.mt-2{margin-top:.5rem}.flex{display:flex}.hidden{display:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}body{background-color:#f0f2f5;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;margin:0}#app{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c3e50}.crud-container{transition:box-shadow .3s ease-in-out}.crud-container:hover{box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a}.query-form .el-form-item{margin-bottom:0!important}.el-table__expanded-cell{padding:1rem 3.5rem!important;background-color:#f8fafc}.action-buttons>*+*{margin-left:.75rem}.el-dialog__header{border-bottom:none;padding:24px 24px 10px}.el-dialog__title{font-size:1.25rem;font-weight:600}.el-dialog__footer{border-top:none;padding:10px 24px 24px}.el-dialog__body{padding:10px 24px}:root{--large-screen-border-color: rgba(120, 153, 199, 1);--large-screen-text-color: rgba(227, 246, 255, 1);--large-screen-search-bg: rgba(210, 224, 243, .1);--large-screen-button-bg: rgba(38, 120, 255, 1);--large-screen-action-link-color: rgba(39, 233, 255, 1);--large-screen-dialog-bg: #1e293b;--large-screen-hover-bg: rgba(120, 153, 199, .15)}.theme-large-screen{color:var(--large-screen-text-color)}.el-modal-dialog,.el-overlay-dialog{position:absolute!important}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.header-cell-content[data-v-d23c8660]{display:inline-block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crud-table-container[data-v-a907a615]{display:flex;flex-direction:column;height:100%;width:100%;min-width:0;min-height:0;overflow:hidden}.search-section-wrapper[data-v-a907a615]{flex-shrink:0}.table-content-wrapper[data-v-a907a615]{flex:1;min-height:0;overflow:hidden}.pagination-wrapper[data-v-a907a615]{flex-shrink:0;padding-top:1rem;display:flex;justify-content:flex-end}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.relative{position:relative}.\\!mr-0{margin-right:0!important}.mt-2{margin-top:.5rem}.flex{display:flex}.hidden{display:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}body{background-color:#f0f2f5;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;margin:0}#app{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c3e50}.crud-container{transition:box-shadow .3s ease-in-out}.crud-container:hover{box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a}.query-form .el-form-item{margin-bottom:0!important}.el-table__expanded-cell{padding:1rem 3.5rem!important;background-color:#f8fafc}.action-buttons>*+*{margin-left:.75rem}.el-dialog__header{border-bottom:none;padding:24px 24px 10px}.el-dialog__title{font-size:1.25rem;font-weight:600}.el-dialog__footer{border-top:none;padding:10px 24px 24px}.el-dialog__body{padding:10px 24px}:root{--large-screen-border-color: rgba(120, 153, 199, 1);--large-screen-text-color: rgba(227, 246, 255, 1);--large-screen-search-bg: rgba(210, 224, 243, .1);--large-screen-button-bg: rgba(38, 120, 255, 1);--large-screen-action-link-color: rgba(39, 233, 255, 1);--large-screen-dialog-bg: #1e293b;--large-screen-hover-bg: rgba(120, 153, 199, .15)}.theme-large-screen{color:var(--large-screen-text-color)}.el-modal-dialog,.el-overlay-dialog{position:absolute!important}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
2
  import { defineComponent as ze, createElementBlock as ae, openBlock as B, createElementVNode as fe, ref as Pe, resolveComponent as K, createBlock as U, mergeProps as Oe, withCtx as M, Fragment as Ie, renderList as Ve, createCommentVNode as H, createTextVNode as de, toDisplayString as Me, getCurrentScope as An, onScopeDispose as On, computed as Be, toValue as nn, watch as jr, shallowRef as _n, getCurrentInstance as En, onMounted as Qr, reactive as ut, toRaw as Pn, resolveDirective as Rn, normalizeClass as Fn, renderSlot as ee, createVNode as ge, withDirectives as Dn, createSlots as Cn, unref as xn } from "vue";
3
3
  import { ElMessage as $e, ElMessageBox as qn } from "element-plus";
4
4
  import Bn from "axios";
@@ -41,30 +41,30 @@ const ft = /* @__PURE__ */ ze({
41
41
  ref: y
42
42
  }, c.$attrs), {
43
43
  default: M(() => [
44
- (B(!0), ae(Ie, null, Ve(c.formConfig, (p) => (B(), U(m, {
45
- key: p.prop,
46
- label: p.label,
47
- prop: p.prop
44
+ (B(!0), ae(Ie, null, Ve(c.formConfig, (d) => (B(), U(m, {
45
+ key: d.prop,
46
+ label: d.label,
47
+ prop: d.prop
48
48
  }, {
49
49
  default: M(() => [
50
- p.type === "input" ? (B(), U(A, Oe({
50
+ d.type === "input" ? (B(), U(A, Oe({
51
51
  key: 0,
52
- modelValue: c.modelValue[p.prop],
53
- "onUpdate:modelValue": (a) => c.modelValue[p.prop] = a
54
- }, { ref_for: !0 }, p.componentProps), null, 16, ["modelValue", "onUpdate:modelValue"])) : H("", !0),
55
- p.type === "textarea" ? (B(), U(A, Oe({
52
+ modelValue: c.modelValue[d.prop],
53
+ "onUpdate:modelValue": (a) => c.modelValue[d.prop] = a
54
+ }, { ref_for: !0 }, d.componentProps), null, 16, ["modelValue", "onUpdate:modelValue"])) : H("", !0),
55
+ d.type === "textarea" ? (B(), U(A, Oe({
56
56
  key: 1,
57
57
  type: "textarea",
58
- modelValue: c.modelValue[p.prop],
59
- "onUpdate:modelValue": (a) => c.modelValue[p.prop] = a
60
- }, { ref_for: !0 }, p.componentProps), null, 16, ["modelValue", "onUpdate:modelValue"])) : H("", !0),
61
- p.type === "select" ? (B(), U(b, Oe({
58
+ modelValue: c.modelValue[d.prop],
59
+ "onUpdate:modelValue": (a) => c.modelValue[d.prop] = a
60
+ }, { ref_for: !0 }, d.componentProps), null, 16, ["modelValue", "onUpdate:modelValue"])) : H("", !0),
61
+ d.type === "select" ? (B(), U(b, Oe({
62
62
  key: 2,
63
- modelValue: c.modelValue[p.prop],
64
- "onUpdate:modelValue": (a) => c.modelValue[p.prop] = a
65
- }, { ref_for: !0 }, p.componentProps), {
63
+ modelValue: c.modelValue[d.prop],
64
+ "onUpdate:modelValue": (a) => c.modelValue[d.prop] = a
65
+ }, { ref_for: !0 }, d.componentProps), {
66
66
  default: M(() => [
67
- (B(!0), ae(Ie, null, Ve(p.options, (a) => (B(), U(F, {
67
+ (B(!0), ae(Ie, null, Ve(d.options, (a) => (B(), U(F, {
68
68
  key: a.value,
69
69
  label: a.label,
70
70
  value: a.value
@@ -72,13 +72,13 @@ const ft = /* @__PURE__ */ ze({
72
72
  ]),
73
73
  _: 2
74
74
  }, 1040, ["modelValue", "onUpdate:modelValue"])) : H("", !0),
75
- p.type === "radio-group" ? (B(), U(v, Oe({
75
+ d.type === "radio-group" ? (B(), U(v, Oe({
76
76
  key: 3,
77
- modelValue: c.modelValue[p.prop],
78
- "onUpdate:modelValue": (a) => c.modelValue[p.prop] = a
79
- }, { ref_for: !0 }, p.componentProps), {
77
+ modelValue: c.modelValue[d.prop],
78
+ "onUpdate:modelValue": (a) => c.modelValue[d.prop] = a
79
+ }, { ref_for: !0 }, d.componentProps), {
80
80
  default: M(() => [
81
- (B(!0), ae(Ie, null, Ve(p.options, (a) => (B(), U(R, {
81
+ (B(!0), ae(Ie, null, Ve(d.options, (a) => (B(), U(R, {
82
82
  key: a.value,
83
83
  label: a.value
84
84
  }, {
@@ -90,11 +90,11 @@ const ft = /* @__PURE__ */ ze({
90
90
  ]),
91
91
  _: 2
92
92
  }, 1040, ["modelValue", "onUpdate:modelValue"])) : H("", !0),
93
- p.type === "input-disabled" ? (B(), U(A, Oe({
93
+ d.type === "input-disabled" ? (B(), U(A, Oe({
94
94
  key: 4,
95
- "model-value": c.modelValue[p.prop],
95
+ "model-value": c.modelValue[d.prop],
96
96
  disabled: ""
97
- }, { ref_for: !0 }, p.componentProps), null, 16, ["model-value"])) : H("", !0)
97
+ }, { ref_for: !0 }, d.componentProps), null, 16, ["model-value"])) : H("", !0)
98
98
  ]),
99
99
  _: 2
100
100
  }, 1032, ["label", "prop"]))), 128))
@@ -139,7 +139,7 @@ var nr, pt;
139
139
  function Ge() {
140
140
  if (pt) return nr;
141
141
  pt = 1;
142
- var r = typeof Map == "function" && Map.prototype, s = Object.getOwnPropertyDescriptor && r ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, y = r && s && typeof s.get == "function" ? s.get : null, c = r && Map.prototype.forEach, o = typeof Set == "function" && Set.prototype, A = Object.getOwnPropertyDescriptor && o ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, F = o && A && typeof A.get == "function" ? A.get : null, b = o && Set.prototype.forEach, R = typeof WeakMap == "function" && WeakMap.prototype, v = R ? WeakMap.prototype.has : null, m = typeof WeakSet == "function" && WeakSet.prototype, g = m ? WeakSet.prototype.has : null, p = typeof WeakRef == "function" && WeakRef.prototype, a = p ? WeakRef.prototype.deref : null, n = Boolean.prototype.valueOf, E = Object.prototype.toString, l = Function.prototype.toString, u = String.prototype.match, f = String.prototype.slice, w = String.prototype.replace, h = String.prototype.toUpperCase, S = String.prototype.toLowerCase, O = RegExp.prototype.test, P = Array.prototype.concat, C = Array.prototype.join, k = Array.prototype.slice, x = Math.floor, d = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, i = Object.getOwnPropertySymbols, _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, q = typeof Symbol == "function" && typeof Symbol.iterator == "object", z = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === q || !0) ? Symbol.toStringTag : null, Q = Object.prototype.propertyIsEnumerable, ne = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
142
+ var r = typeof Map == "function" && Map.prototype, s = Object.getOwnPropertyDescriptor && r ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, y = r && s && typeof s.get == "function" ? s.get : null, c = r && Map.prototype.forEach, o = typeof Set == "function" && Set.prototype, A = Object.getOwnPropertyDescriptor && o ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, F = o && A && typeof A.get == "function" ? A.get : null, b = o && Set.prototype.forEach, R = typeof WeakMap == "function" && WeakMap.prototype, v = R ? WeakMap.prototype.has : null, m = typeof WeakSet == "function" && WeakSet.prototype, g = m ? WeakSet.prototype.has : null, d = typeof WeakRef == "function" && WeakRef.prototype, a = d ? WeakRef.prototype.deref : null, n = Boolean.prototype.valueOf, E = Object.prototype.toString, l = Function.prototype.toString, u = String.prototype.match, f = String.prototype.slice, w = String.prototype.replace, h = String.prototype.toUpperCase, S = String.prototype.toLowerCase, O = RegExp.prototype.test, P = Array.prototype.concat, C = Array.prototype.join, k = Array.prototype.slice, x = Math.floor, p = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, i = Object.getOwnPropertySymbols, _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, q = typeof Symbol == "function" && typeof Symbol.iterator == "object", z = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === q || !0) ? Symbol.toStringTag : null, Q = Object.prototype.propertyIsEnumerable, ne = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) {
143
143
  return e.__proto__;
144
144
  } : null);
145
145
  function $(e, t) {
@@ -263,7 +263,7 @@ function Ge() {
263
263
  if (W(t))
264
264
  return Te(pe(Number(t)));
265
265
  if (le(t))
266
- return Te(pe(d.call(t)));
266
+ return Te(pe(p.call(t)));
267
267
  if (j(t))
268
268
  return Te(n.call(t));
269
269
  if (G(t))
@@ -323,10 +323,10 @@ function Ge() {
323
323
  return !1;
324
324
  }
325
325
  function le(e) {
326
- if (!e || typeof e != "object" || !d)
326
+ if (!e || typeof e != "object" || !p)
327
327
  return !1;
328
328
  try {
329
- return d.call(e), !0;
329
+ return p.call(e), !0;
330
330
  } catch {
331
331
  }
332
332
  return !1;
@@ -542,8 +542,8 @@ function Wn() {
542
542
  throw new s("Side channel does not contain " + r(m));
543
543
  },
544
544
  delete: function(m) {
545
- var g = R && R.next, p = F(R, m);
546
- return p && g && g === p && (R = void 0), !!p;
545
+ var g = R && R.next, d = F(R, m);
546
+ return d && g && g === d && (R = void 0), !!d;
547
547
  },
548
548
  get: function(m) {
549
549
  return c(R, m);
@@ -719,12 +719,12 @@ function io() {
719
719
  var r = "Function.prototype.bind called on incompatible ", s = Object.prototype.toString, y = Math.max, c = "[object Function]", o = function(R, v) {
720
720
  for (var m = [], g = 0; g < R.length; g += 1)
721
721
  m[g] = R[g];
722
- for (var p = 0; p < v.length; p += 1)
723
- m[p + R.length] = v[p];
722
+ for (var d = 0; d < v.length; d += 1)
723
+ m[d + R.length] = v[d];
724
724
  return m;
725
725
  }, A = function(R, v) {
726
- for (var m = [], g = v, p = 0; g < R.length; g += 1, p += 1)
727
- m[p] = R[g];
726
+ for (var m = [], g = v, d = 0; g < R.length; g += 1, d += 1)
727
+ m[d] = R[g];
728
728
  return m;
729
729
  }, F = function(b, R) {
730
730
  for (var v = "", m = 0; m < b.length; m += 1)
@@ -735,7 +735,7 @@ function io() {
735
735
  var v = this;
736
736
  if (typeof v != "function" || s.apply(v) !== c)
737
737
  throw new TypeError(r + v);
738
- for (var m = A(arguments, 1), g, p = function() {
738
+ for (var m = A(arguments, 1), g, d = function() {
739
739
  if (this instanceof g) {
740
740
  var u = v.apply(
741
741
  this,
@@ -749,7 +749,7 @@ function io() {
749
749
  );
750
750
  }, a = y(0, v.length - m.length), n = [], E = 0; E < a; E++)
751
751
  n[E] = "$" + E;
752
- if (g = Function("binder", "return function (" + F(n, ",") + "){ return binder.apply(this,arguments); }")(p), v.prototype) {
752
+ if (g = Function("binder", "return function (" + F(n, ",") + "){ return binder.apply(this,arguments); }")(d), v.prototype) {
753
753
  var l = function() {
754
754
  };
755
755
  l.prototype = v.prototype, g.prototype = new l(), l.prototype = null;
@@ -844,7 +844,7 @@ var Tr, Ht;
844
844
  function Jr() {
845
845
  if (Ht) return Tr;
846
846
  Ht = 1;
847
- var r, s = /* @__PURE__ */ on(), y = /* @__PURE__ */ Ln(), c = /* @__PURE__ */ Vn(), o = /* @__PURE__ */ zn(), A = /* @__PURE__ */ Gn(), F = /* @__PURE__ */ Hn(), b = /* @__PURE__ */ ke(), R = /* @__PURE__ */ jn(), v = /* @__PURE__ */ Qn(), m = /* @__PURE__ */ Kn(), g = /* @__PURE__ */ Jn(), p = /* @__PURE__ */ Yn(), a = /* @__PURE__ */ Xn(), n = /* @__PURE__ */ Zn(), E = /* @__PURE__ */ ro(), l = Function, u = function(J) {
847
+ var r, s = /* @__PURE__ */ on(), y = /* @__PURE__ */ Ln(), c = /* @__PURE__ */ Vn(), o = /* @__PURE__ */ zn(), A = /* @__PURE__ */ Gn(), F = /* @__PURE__ */ Hn(), b = /* @__PURE__ */ ke(), R = /* @__PURE__ */ jn(), v = /* @__PURE__ */ Qn(), m = /* @__PURE__ */ Kn(), g = /* @__PURE__ */ Jn(), d = /* @__PURE__ */ Yn(), a = /* @__PURE__ */ Xn(), n = /* @__PURE__ */ Zn(), E = /* @__PURE__ */ ro(), l = Function, u = function(J) {
848
848
  try {
849
849
  return l('"use strict"; return (' + J + ").constructor;")();
850
850
  } catch {
@@ -861,7 +861,7 @@ function Jr() {
861
861
  return h;
862
862
  }
863
863
  }
864
- })() : h, O = ao()(), P = so(), C = un(), k = ln(), x = fn(), d = Kr(), i = {}, _ = typeof Uint8Array > "u" || !P ? r : P(Uint8Array), q = {
864
+ })() : h, O = ao()(), P = so(), C = un(), k = ln(), x = fn(), p = Kr(), i = {}, _ = typeof Uint8Array > "u" || !P ? r : P(Uint8Array), q = {
865
865
  __proto__: null,
866
866
  "%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
867
867
  "%Array%": Array,
@@ -932,14 +932,14 @@ function Jr() {
932
932
  "%WeakMap%": typeof WeakMap > "u" ? r : WeakMap,
933
933
  "%WeakRef%": typeof WeakRef > "u" ? r : WeakRef,
934
934
  "%WeakSet%": typeof WeakSet > "u" ? r : WeakSet,
935
- "%Function.prototype.call%": d,
935
+ "%Function.prototype.call%": p,
936
936
  "%Function.prototype.apply%": x,
937
937
  "%Object.defineProperty%": w,
938
938
  "%Object.getPrototypeOf%": C,
939
939
  "%Math.abs%": v,
940
940
  "%Math.floor%": m,
941
941
  "%Math.max%": g,
942
- "%Math.min%": p,
942
+ "%Math.min%": d,
943
943
  "%Math.pow%": a,
944
944
  "%Math.round%": n,
945
945
  "%Math.sign%": E,
@@ -1021,7 +1021,7 @@ function Jr() {
1021
1021
  "%URIErrorPrototype%": ["URIError", "prototype"],
1022
1022
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
1023
1023
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
1024
- }, $ = He(), Z = /* @__PURE__ */ co(), se = $.call(d, Array.prototype.concat), ye = $.call(x, Array.prototype.splice), ve = $.call(d, String.prototype.replace), me = $.call(d, String.prototype.slice), D = $.call(d, RegExp.prototype.exec), re = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ie = /\\(\\)?/g, he = function(T) {
1024
+ }, $ = He(), Z = /* @__PURE__ */ co(), se = $.call(p, Array.prototype.concat), ye = $.call(x, Array.prototype.splice), ve = $.call(p, String.prototype.replace), me = $.call(p, String.prototype.slice), D = $.call(p, RegExp.prototype.exec), re = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ie = /\\(\\)?/g, he = function(T) {
1025
1025
  var G = me(T, 0, 1), W = me(T, -1);
1026
1026
  if (G === "%" && W !== "%")
1027
1027
  throw new F("invalid intrinsic syntax, expected closing `%`");
@@ -1100,9 +1100,9 @@ function pn() {
1100
1100
  var r = /* @__PURE__ */ Jr(), s = /* @__PURE__ */ cn(), y = /* @__PURE__ */ Ge(), c = /* @__PURE__ */ ke(), o = r("%Map%", !0), A = s("Map.prototype.get", !0), F = s("Map.prototype.set", !0), b = s("Map.prototype.has", !0), R = s("Map.prototype.delete", !0), v = s("Map.prototype.size", !0);
1101
1101
  return Mr = !!o && /** @type {Exclude<import('.'), false>} */
1102
1102
  function() {
1103
- var g, p = {
1103
+ var g, d = {
1104
1104
  assert: function(a) {
1105
- if (!p.has(a))
1105
+ if (!d.has(a))
1106
1106
  throw new c("Side channel does not contain " + y(a));
1107
1107
  },
1108
1108
  delete: function(a) {
@@ -1123,7 +1123,7 @@ function pn() {
1123
1123
  g || (g = new o()), F(g, a, n);
1124
1124
  }
1125
1125
  };
1126
- return p;
1126
+ return d;
1127
1127
  }, Mr;
1128
1128
  }
1129
1129
  var Ur, Kt;
@@ -1134,7 +1134,7 @@ function po() {
1134
1134
  return Ur = A ? (
1135
1135
  /** @type {Exclude<import('.'), false>} */
1136
1136
  function() {
1137
- var g, p, a = {
1137
+ var g, d, a = {
1138
1138
  assert: function(n) {
1139
1139
  if (!a.has(n))
1140
1140
  throw new o("Side channel does not contain " + y(n));
@@ -1143,18 +1143,18 @@ function po() {
1143
1143
  if (A && n && (typeof n == "object" || typeof n == "function")) {
1144
1144
  if (g)
1145
1145
  return v(g, n);
1146
- } else if (c && p)
1147
- return p.delete(n);
1146
+ } else if (c && d)
1147
+ return d.delete(n);
1148
1148
  return !1;
1149
1149
  },
1150
1150
  get: function(n) {
1151
- return A && n && (typeof n == "object" || typeof n == "function") && g ? F(g, n) : p && p.get(n);
1151
+ return A && n && (typeof n == "object" || typeof n == "function") && g ? F(g, n) : d && d.get(n);
1152
1152
  },
1153
1153
  has: function(n) {
1154
- return A && n && (typeof n == "object" || typeof n == "function") && g ? R(g, n) : !!p && p.has(n);
1154
+ return A && n && (typeof n == "object" || typeof n == "function") && g ? R(g, n) : !!d && d.has(n);
1155
1155
  },
1156
1156
  set: function(n, E) {
1157
- A && n && (typeof n == "object" || typeof n == "function") ? (g || (g = new A()), b(g, n, E)) : c && (p || (p = c()), p.set(n, E));
1157
+ A && n && (typeof n == "object" || typeof n == "function") ? (g || (g = new A()), b(g, n, E)) : c && (d || (d = c()), d.set(n, E));
1158
1158
  }
1159
1159
  };
1160
1160
  return a;
@@ -1278,10 +1278,10 @@ function dn() {
1278
1278
  return "%26%23" + parseInt(_.slice(2), 16) + "%3B";
1279
1279
  });
1280
1280
  for (var P = "", C = 0; C < O.length; C += v) {
1281
- for (var k = O.length >= v ? O.slice(C, C + v) : O, x = [], d = 0; d < k.length; ++d) {
1282
- var i = k.charCodeAt(d);
1281
+ for (var k = O.length >= v ? O.slice(C, C + v) : O, x = [], p = 0; p < k.length; ++p) {
1282
+ var i = k.charCodeAt(p);
1283
1283
  if (i === 45 || i === 46 || i === 95 || i === 126 || i >= 48 && i <= 57 || i >= 65 && i <= 90 || i >= 97 && i <= 122 || S === r.RFC1738 && (i === 40 || i === 41)) {
1284
- x[x.length] = k.charAt(d);
1284
+ x[x.length] = k.charAt(p);
1285
1285
  continue;
1286
1286
  }
1287
1287
  if (i < 128) {
@@ -1296,7 +1296,7 @@ function dn() {
1296
1296
  x[x.length] = c[224 | i >> 12] + c[128 | i >> 6 & 63] + c[128 | i & 63];
1297
1297
  continue;
1298
1298
  }
1299
- d += 1, i = 65536 + ((i & 1023) << 10 | k.charCodeAt(d) & 1023), x[x.length] = c[240 | i >> 18] + c[128 | i >> 12 & 63] + c[128 | i >> 6 & 63] + c[128 | i & 63];
1299
+ p += 1, i = 65536 + ((i & 1023) << 10 | k.charCodeAt(p) & 1023), x[x.length] = c[240 | i >> 18] + c[128 | i >> 12 & 63] + c[128 | i >> 6 & 63] + c[128 | i & 63];
1300
1300
  }
1301
1301
  P += x.join("");
1302
1302
  }
@@ -1308,7 +1308,7 @@ function dn() {
1308
1308
  typeof x == "object" && x !== null && w.indexOf(x) === -1 && (f.push({ obj: O, prop: k }), w.push(x));
1309
1309
  }
1310
1310
  return o(f), u;
1311
- }, p = function(u) {
1311
+ }, d = function(u) {
1312
1312
  return Object.prototype.toString.call(u) === "[object RegExp]";
1313
1313
  }, a = function(u) {
1314
1314
  return !u || typeof u != "object" ? !1 : !!(u.constructor && u.constructor.isBuffer && u.constructor.isBuffer(u));
@@ -1330,7 +1330,7 @@ function dn() {
1330
1330
  decode: R,
1331
1331
  encode: m,
1332
1332
  isBuffer: a,
1333
- isRegExp: p,
1333
+ isRegExp: d,
1334
1334
  maybeMap: E,
1335
1335
  merge: F
1336
1336
  }, Vr;
@@ -1377,15 +1377,15 @@ function vo() {
1377
1377
  strictNullHandling: !1
1378
1378
  }, g = function(l) {
1379
1379
  return typeof l == "string" || typeof l == "number" || typeof l == "boolean" || typeof l == "symbol" || typeof l == "bigint";
1380
- }, p = {}, a = function E(l, u, f, w, h, S, O, P, C, k, x, d, i, _, q, z, Q, ne) {
1381
- for (var $ = l, Z = ne, se = 0, ye = !1; (Z = Z.get(p)) !== void 0 && !ye; ) {
1380
+ }, d = {}, a = function E(l, u, f, w, h, S, O, P, C, k, x, p, i, _, q, z, Q, ne) {
1381
+ for (var $ = l, Z = ne, se = 0, ye = !1; (Z = Z.get(d)) !== void 0 && !ye; ) {
1382
1382
  var ve = Z.get(l);
1383
1383
  if (se += 1, typeof ve < "u") {
1384
1384
  if (ve === se)
1385
1385
  throw new RangeError("Cyclic object value");
1386
1386
  ye = !0;
1387
1387
  }
1388
- typeof Z.get(p) > "u" && (se = 0);
1388
+ typeof Z.get(d) > "u" && (se = 0);
1389
1389
  }
1390
1390
  if (typeof k == "function" ? $ = k(u, $) : $ instanceof Date ? $ = i($) : f === "comma" && A($) && ($ = s.maybeMap($, function(le) {
1391
1391
  return le instanceof Date ? i(le) : le;
@@ -1419,10 +1419,10 @@ function vo() {
1419
1419
  for (var J = 0; J < re.length; ++J) {
1420
1420
  var T = re[J], G = typeof T == "object" && T && typeof T.value < "u" ? T.value : $[T];
1421
1421
  if (!(O && G === null)) {
1422
- var W = d && P ? String(T).replace(/\./g, "%2E") : String(T), j = A($) ? typeof f == "function" ? f(be, W) : be : be + (d ? "." + W : "[" + W + "]");
1422
+ var W = p && P ? String(T).replace(/\./g, "%2E") : String(T), j = A($) ? typeof f == "function" ? f(be, W) : be : be + (p ? "." + W : "[" + W + "]");
1423
1423
  ne.set(l, se);
1424
1424
  var Y = r();
1425
- Y.set(p, ne), b(D, E(
1425
+ Y.set(d, ne), b(D, E(
1426
1426
  G,
1427
1427
  j,
1428
1428
  f,
@@ -1434,7 +1434,7 @@ function vo() {
1434
1434
  f === "comma" && z && A($) ? null : C,
1435
1435
  k,
1436
1436
  x,
1437
- d,
1437
+ p,
1438
1438
  i,
1439
1439
  _,
1440
1440
  q,
@@ -1500,9 +1500,9 @@ function vo() {
1500
1500
  var O = o[f.arrayFormat], P = O === "comma" && f.commaRoundTrip;
1501
1501
  w || (w = Object.keys(u)), f.sort && w.sort(f.sort);
1502
1502
  for (var C = r(), k = 0; k < w.length; ++k) {
1503
- var x = w[k], d = u[x];
1504
- f.skipNulls && d === null || b(S, a(
1505
- d,
1503
+ var x = w[k], p = u[x];
1504
+ f.skipNulls && p === null || b(S, a(
1505
+ p,
1506
1506
  x,
1507
1507
  O,
1508
1508
  P,
@@ -1552,16 +1552,16 @@ function mo() {
1552
1552
  strictDepth: !1,
1553
1553
  strictNullHandling: !1,
1554
1554
  throwOnLimitExceeded: !1
1555
- }, o = function(p) {
1556
- return p.replace(/&#(\d+);/g, function(a, n) {
1555
+ }, o = function(d) {
1556
+ return d.replace(/&#(\d+);/g, function(a, n) {
1557
1557
  return String.fromCharCode(parseInt(n, 10));
1558
1558
  });
1559
- }, A = function(p, a, n) {
1560
- if (p && typeof p == "string" && a.comma && p.indexOf(",") > -1)
1561
- return p.split(",");
1559
+ }, A = function(d, a, n) {
1560
+ if (d && typeof d == "string" && a.comma && d.indexOf(",") > -1)
1561
+ return d.split(",");
1562
1562
  if (a.throwOnLimitExceeded && n >= a.arrayLimit)
1563
1563
  throw new RangeError("Array limit exceeded. Only " + a.arrayLimit + " element" + (a.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
1564
- return p;
1564
+ return d;
1565
1565
  }, F = "utf8=%26%2310003%3B", b = "utf8=%E2%9C%93", R = function(a, n) {
1566
1566
  var E = { __proto__: null }, l = n.ignoreQueryPrefix ? a.replace(/^\?/, "") : a;
1567
1567
  l = l.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
@@ -1588,18 +1588,18 @@ function mo() {
1588
1588
  return n.decoder(i, c.decoder, S, "value");
1589
1589
  }
1590
1590
  )), x && n.interpretNumericEntities && S === "iso-8859-1" && (x = o(String(x))), O.indexOf("[]=") > -1 && (x = y(x) ? [x] : x);
1591
- var d = s.call(E, k);
1592
- d && n.duplicates === "combine" ? E[k] = r.combine(E[k], x) : (!d || n.duplicates === "last") && (E[k] = x);
1591
+ var p = s.call(E, k);
1592
+ p && n.duplicates === "combine" ? E[k] = r.combine(E[k], x) : (!p || n.duplicates === "last") && (E[k] = x);
1593
1593
  }
1594
1594
  return E;
1595
- }, v = function(p, a, n, E) {
1595
+ }, v = function(d, a, n, E) {
1596
1596
  var l = 0;
1597
- if (p.length > 0 && p[p.length - 1] === "[]") {
1598
- var u = p.slice(0, -1).join("");
1597
+ if (d.length > 0 && d[d.length - 1] === "[]") {
1598
+ var u = d.slice(0, -1).join("");
1599
1599
  l = Array.isArray(a) && a[u] ? a[u].length : 0;
1600
1600
  }
1601
- for (var f = E ? a : A(a, n, l), w = p.length - 1; w >= 0; --w) {
1602
- var h, S = p[w];
1601
+ for (var f = E ? a : A(a, n, l), w = d.length - 1; w >= 0; --w) {
1602
+ var h, S = d[w];
1603
1603
  if (S === "[]" && n.parseArrays)
1604
1604
  h = n.allowEmptyArrays && (f === "" || n.strictNullHandling && f === null) ? [] : r.combine([], f);
1605
1605
  else {
@@ -1672,12 +1672,12 @@ function mo() {
1672
1672
  throwOnLimitExceeded: typeof a.throwOnLimitExceeded == "boolean" ? a.throwOnLimitExceeded : !1
1673
1673
  };
1674
1674
  };
1675
- return Gr = function(p, a) {
1675
+ return Gr = function(d, a) {
1676
1676
  var n = g(a);
1677
- if (p === "" || p === null || typeof p > "u")
1677
+ if (d === "" || d === null || typeof d > "u")
1678
1678
  return n.plainObjects ? { __proto__: null } : {};
1679
- for (var E = typeof p == "string" ? R(p, n) : p, l = n.plainObjects ? { __proto__: null } : {}, u = Object.keys(E), f = 0; f < u.length; ++f) {
1680
- var w = u[f], h = m(w, E[w], n, typeof p == "string");
1679
+ for (var E = typeof d == "string" ? R(d, n) : d, l = n.plainObjects ? { __proto__: null } : {}, u = Object.keys(E), f = 0; f < u.length; ++f) {
1680
+ var w = u[f], h = m(w, E[w], n, typeof d == "string");
1681
1681
  l = r.merge(l, h, n);
1682
1682
  }
1683
1683
  return n.allowSparse === !0 ? l : r.compact(l);
@@ -1772,14 +1772,14 @@ function Eo(r, s, y = {}) {
1772
1772
  A && (A.disconnect(), A = void 0);
1773
1773
  }, R = Be(() => {
1774
1774
  const g = nn(r);
1775
- return Array.isArray(g) ? g.map((p) => tn(p)) : [tn(g)];
1775
+ return Array.isArray(g) ? g.map((d) => tn(d)) : [tn(g)];
1776
1776
  }), v = jr(
1777
1777
  R,
1778
1778
  (g) => {
1779
1779
  if (b(), F.value && c) {
1780
1780
  A = new ResizeObserver(s);
1781
- for (const p of g)
1782
- p && A.observe(p, o);
1781
+ for (const d of g)
1782
+ d && A.observe(d, o);
1783
1783
  }
1784
1784
  },
1785
1785
  { immediate: !0, flush: "post" }
@@ -1965,12 +1965,12 @@ const Po = /* @__PURE__ */ ze({
1965
1965
  },
1966
1966
  emits: ["open-dialog", "submit", "delete", "update:initialSearchForm"],
1967
1967
  setup(r, { expose: s, emit: y }) {
1968
- const c = y, o = r, A = Be(() => ["crud-table-wrapper", `theme-${o.theme}`, o.customClass]), F = Be(() => o.theme === "large-screen" ? "large-screen-dialog" : ""), b = (d, i) => d ? !0 : ($e.error(`${i} prop is required.`), !1), R = async (d, i) => {
1969
- if (d === "view")
1968
+ const c = y, o = r, A = Be(() => ["crud-table-wrapper", `theme-${o.theme}`, o.customClass]), F = Be(() => o.theme === "large-screen" ? "large-screen-dialog" : ""), b = (p, i) => p ? !0 : ($e.error(`${i} prop is required.`), !1), R = async (p, i) => {
1969
+ if (p === "view")
1970
1970
  return Promise.resolve();
1971
1971
  try {
1972
1972
  let _ = { ...i };
1973
- o.onBeforeSubmit && (_ = await o.onBeforeSubmit(_, d));
1973
+ o.onBeforeSubmit && (_ = await o.onBeforeSubmit(_, p));
1974
1974
  let q = _;
1975
1975
  if (o.submitAsFormData) {
1976
1976
  const z = new FormData();
@@ -1981,86 +1981,86 @@ const Po = /* @__PURE__ */ ze({
1981
1981
  }
1982
1982
  q = z;
1983
1983
  }
1984
- if (n.submitting = !0, d === "add") {
1984
+ if (n.submitting = !0, p === "add") {
1985
1985
  if (!b(o.apiUrlCreate, "apiUrlCreate")) throw new Error("apiUrlCreate is not configured.");
1986
1986
  await Ee.post(o.apiUrlCreate, q), $e.success("新增成功");
1987
1987
  } else {
1988
1988
  if (!b(o.apiUrlUpdate, "apiUrlUpdate")) throw new Error("apiUrlUpdate is not configured.");
1989
1989
  await Ee.put(o.apiUrlUpdate, q), $e.success("更新成功");
1990
1990
  }
1991
- return o.onAfterSubmit && o.onAfterSubmit(d, _), c("submit", { mode: d, data: _ }), n.visible && (n.visible = !1), u(), Promise.resolve();
1991
+ return o.onAfterSubmit && o.onAfterSubmit(p, _), c("submit", { mode: p, data: _ }), n.visible && (n.visible = !1), u(), Promise.resolve();
1992
1992
  } catch (_) {
1993
1993
  return console.error("Submit failed:", _), Promise.reject(_);
1994
1994
  } finally {
1995
1995
  n.submitting = !1;
1996
1996
  }
1997
- }, v = ut({ pageNum: 1, pageSize: 10, ...o.initialSearchForm }), m = Pe([]), g = Pe(0), p = Pe(!1), a = Pe([]), n = ut({ visible: !1, loading: !1, submitting: !1, mode: "add", data: {}, formRef: null }), E = Be(() => n.mode === "add" ? o.addDialogTitle : o.editDialogTitle), l = Be(() => {
1997
+ }, v = ut({ pageNum: 1, pageSize: 10, ...o.initialSearchForm }), m = Pe([]), g = Pe(0), d = Pe(!1), a = Pe([]), n = ut({ visible: !1, loading: !1, submitting: !1, mode: "add", data: {}, formRef: null }), E = Be(() => n.mode === "add" ? o.addDialogTitle : o.editDialogTitle), l = Be(() => {
1998
1998
  if (n.mode === "add") return o.dialogFormConfig.filter((i) => i.prop !== "id");
1999
- const d = [...o.dialogFormConfig.filter((i) => i.prop !== "id")];
2000
- return d.some((i) => i.prop === "id") || d.unshift({ type: "input-disabled", prop: "id", label: "用户ID" }), d;
1999
+ const p = [...o.dialogFormConfig.filter((i) => i.prop !== "id")];
2000
+ return p.some((i) => i.prop === "id") || p.unshift({ type: "input-disabled", prop: "id", label: "用户ID" }), p;
2001
2001
  }), u = async () => {
2002
2002
  if (b(o.apiUrlQuery, "apiUrlQuery")) {
2003
- p.value = !0;
2003
+ d.value = !0;
2004
2004
  try {
2005
- let d = { ...v };
2006
- o.onBeforeQuery && (d = await o.onBeforeQuery(d));
2007
- const i = await Ee.get(o.apiUrlQuery, { params: d });
2005
+ let p = { ...v };
2006
+ o.onBeforeQuery && (p = await o.onBeforeQuery(p));
2007
+ const i = await Ee.get(o.apiUrlQuery, { params: p });
2008
2008
  let _ = [], q = 0, z = !1;
2009
- i != null && i.data && Array.isArray(i.data.rows) ? (_ = i.data.rows, q = typeof i.data.total == "number" ? i.data.total : _.length, z = !0) : Array.isArray(i == null ? void 0 : i.data) ? (_ = i.data, q = i.data.length, z = !0) : Array.isArray(i) && (_ = i, q = i.length, z = !0), z ? (o.onAfterQuery && (_ = await o.onAfterQuery(_, d)), m.value = _, g.value = q) : (console.warn("未识别的 API 响应格式,请检查 fetchData 中的兼容逻辑。", i), m.value = [], g.value = 0);
2010
- } catch (d) {
2011
- console.error("Fetch data failed:", d), m.value = [], g.value = 0;
2009
+ i != null && i.data && Array.isArray(i.data.rows) ? (_ = i.data.rows, q = typeof i.data.total == "number" ? i.data.total : _.length, z = !0) : Array.isArray(i == null ? void 0 : i.data) ? (_ = i.data, q = i.data.length, z = !0) : Array.isArray(i) && (_ = i, q = i.length, z = !0), z ? (o.onAfterQuery && (_ = await o.onAfterQuery(_, p)), m.value = _, g.value = q) : (console.warn("未识别的 API 响应格式,请检查 fetchData 中的兼容逻辑。", i), m.value = [], g.value = 0);
2010
+ } catch (p) {
2011
+ console.error("Fetch data failed:", p), m.value = [], g.value = 0;
2012
2012
  } finally {
2013
- p.value = !1;
2013
+ d.value = !1;
2014
2014
  }
2015
2015
  }
2016
- }, f = () => {
2017
- v.pageNum = 1, u();
2016
+ }, f = (p) => {
2017
+ p ? Object.assign(v, p) : Object.assign(v, o.initialSearchForm), v.pageNum = 1, u();
2018
2018
  }, w = () => {
2019
- const { pageNum: d, pageSize: i, ..._ } = o.initialSearchForm;
2019
+ const { pageNum: p, pageSize: i, ..._ } = o.initialSearchForm;
2020
2020
  Object.keys(v).forEach((q) => {
2021
2021
  q !== "pageNum" && q !== "pageSize" && delete v[q];
2022
2022
  }), Object.assign(v, _), f();
2023
- }, h = (d) => {
2024
- a.value = d;
2025
- }, S = async (d, i) => {
2023
+ }, h = (p) => {
2024
+ a.value = p;
2025
+ }, S = async (p, i) => {
2026
2026
  let _;
2027
- if (d === "add" ? _ = i ? { ...i } : { role: "user" } : _ = { ...i }, o.onBeforeOpenDialog) {
2028
- const q = await o.onBeforeOpenDialog(d, _);
2027
+ if (p === "add" ? _ = i ? { ...i } : { role: "user" } : _ = { ...i }, o.onBeforeOpenDialog) {
2028
+ const q = await o.onBeforeOpenDialog(p, _);
2029
2029
  q && (_ = q);
2030
2030
  }
2031
- if (n.mode = d, n.visible = !0, d === "edit" || d === "view") {
2031
+ if (n.mode = p, n.visible = !0, p === "edit" || p === "view") {
2032
2032
  if (!b(o.apiUrlDetail, "apiUrlDetail")) return;
2033
2033
  n.loading = !0;
2034
2034
  try {
2035
2035
  const q = await Ee.get(o.apiUrlDetail + "/" + _.id.toString());
2036
2036
  n.data = q.data.data;
2037
2037
  } finally {
2038
- n.loading = !1, o.onAfterOpenDialog && o.onAfterOpenDialog(d, n.data), c("open-dialog", { mode: d, data: n.data });
2038
+ n.loading = !1, o.onAfterOpenDialog && o.onAfterOpenDialog(p, n.data), c("open-dialog", { mode: p, data: n.data });
2039
2039
  }
2040
2040
  } else
2041
- n.data = _, o.onAfterOpenDialog && o.onAfterOpenDialog(d, n.data), c("open-dialog", { mode: d, data: n.data });
2041
+ n.data = _, o.onAfterOpenDialog && o.onAfterOpenDialog(p, n.data), c("open-dialog", { mode: p, data: n.data });
2042
2042
  }, O = async () => {
2043
2043
  if (n.mode !== "view")
2044
2044
  try {
2045
2045
  n.formRef ? await n.formRef.validate() : console.warn("Dialog form ref is not available for validation."), await R(n.mode, n.data);
2046
- } catch (d) {
2047
- console.log("Validation or submit error:", d);
2046
+ } catch (p) {
2047
+ console.log("Validation or submit error:", p);
2048
2048
  }
2049
- }, P = async (d) => {
2049
+ }, P = async (p) => {
2050
2050
  if (b(o.apiUrlDelete, "apiUrlDelete"))
2051
2051
  try {
2052
- const i = m.value.filter((q) => d.includes(q.id));
2053
- if (o.onBeforeDelete && await o.onBeforeDelete(d, i) === !1)
2052
+ const i = m.value.filter((q) => p.includes(q.id));
2053
+ if (o.onBeforeDelete && await o.onBeforeDelete(p, i) === !1)
2054
2054
  return;
2055
- const _ = d.join(",");
2056
- await Ee.delete(o.apiUrlDelete + "/" + _.toString()), $e.success("删除成功"), o.onAfterDelete && o.onAfterDelete(d, i), c("delete", d), m.value.length === d.length && v.pageNum > 1 && v.pageNum--, u();
2055
+ const _ = p.join(",");
2056
+ await Ee.delete(o.apiUrlDelete + "/" + _.toString()), $e.success("删除成功"), o.onAfterDelete && o.onAfterDelete(p, i), c("delete", p), m.value.length === p.length && v.pageNum > 1 && v.pageNum--, u();
2057
2057
  } catch (i) {
2058
2058
  console.error("Delete failed", i);
2059
2059
  }
2060
- }, C = (d) => {
2061
- v.pageSize = d, f();
2062
- }, k = (d) => {
2063
- v.pageNum = d, u();
2060
+ }, C = (p) => {
2061
+ v.pageSize = p, f();
2062
+ }, k = (p) => {
2063
+ v.pageNum = p, u();
2064
2064
  };
2065
2065
  Qr(u);
2066
2066
  const x = () => {
@@ -2068,14 +2068,14 @@ const Po = /* @__PURE__ */ ze({
2068
2068
  };
2069
2069
  return jr(
2070
2070
  v,
2071
- (d) => {
2072
- c("update:initialSearchForm", { ...Pn(d) });
2071
+ (p) => {
2072
+ c("update:initialSearchForm", { ...Pn(p) });
2073
2073
  },
2074
2074
  { deep: !0 }
2075
2075
  ), jr(
2076
2076
  () => o.initialSearchForm,
2077
- (d) => {
2078
- Object.assign(v, d);
2077
+ (p) => {
2078
+ Object.assign(v, p);
2079
2079
  },
2080
2080
  { deep: !0 }
2081
2081
  ), s({
@@ -2091,13 +2091,13 @@ const Po = /* @__PURE__ */ ze({
2091
2091
  // 手动提交
2092
2092
  closeDialog: x
2093
2093
  //关闭弹窗
2094
- }), (d, i) => {
2094
+ }), (p, i) => {
2095
2095
  const _ = K("el-button"), q = K("el-form-item"), z = K("el-form"), Q = K("el-table-column"), ne = K("el-popconfirm"), $ = K("el-table"), Z = K("el-pagination"), se = K("el-skeleton"), ye = K("el-dialog"), ve = K("el-icon"), me = Rn("loading");
2096
2096
  return B(), ae("div", {
2097
2097
  class: Fn([A.value, "crud-table-container"])
2098
2098
  }, [
2099
2099
  o.showSearchSection ? (B(), ae("div", Fo, [
2100
- ee(d.$slots, "header", {}, void 0, !0),
2100
+ ee(p.$slots, "header", {}, void 0, !0),
2101
2101
  fe("div", Do, [
2102
2102
  ge(z, {
2103
2103
  model: v,
@@ -2105,17 +2105,17 @@ const Po = /* @__PURE__ */ ze({
2105
2105
  style: { "overflow-x": "auto", "padding-bottom": "8px" }
2106
2106
  }, {
2107
2107
  default: M(() => [
2108
- ee(d.$slots, "query-conditions", { searchForm: v }, void 0, !0),
2108
+ ee(p.$slots, "query-conditions", { searchForm: v }, void 0, !0),
2109
2109
  ge(q, { class: "!mr-0 flex-shrink-0" }, {
2110
2110
  default: M(() => [
2111
2111
  fe("div", Co, [
2112
- ee(d.$slots, "query-left", { searchForm: v }, void 0, !0),
2112
+ ee(p.$slots, "query-left", { searchForm: v }, void 0, !0),
2113
2113
  o.showSearchActionButtons ? (B(), ae(Ie, { key: 0 }, [
2114
2114
  o.showSearchButton ? (B(), U(_, {
2115
2115
  key: 0,
2116
2116
  color: "#336FFF",
2117
2117
  onClick: f,
2118
- loading: p.value
2118
+ loading: d.value
2119
2119
  }, {
2120
2120
  default: M(() => [...i[8] || (i[8] = [
2121
2121
  de("搜索", -1)
@@ -2134,7 +2134,7 @@ const Po = /* @__PURE__ */ ze({
2134
2134
  _: 1
2135
2135
  })) : H("", !0)
2136
2136
  ], 64)) : H("", !0),
2137
- ee(d.$slots, "query-right", { searchForm: v }, void 0, !0)
2137
+ ee(p.$slots, "query-right", { searchForm: v }, void 0, !0)
2138
2138
  ])
2139
2139
  ]),
2140
2140
  _: 3
@@ -2143,8 +2143,8 @@ const Po = /* @__PURE__ */ ze({
2143
2143
  _: 3
2144
2144
  }, 8, ["model"]),
2145
2145
  fe("div", xo, [
2146
- ee(d.$slots, "action-left", { selections: a.value }, void 0, !0),
2147
- ee(d.$slots, "add-button-content", { selections: a.value }, () => [
2146
+ ee(p.$slots, "action-left", { selections: a.value }, void 0, !0),
2147
+ ee(p.$slots, "add-button-content", { selections: a.value }, () => [
2148
2148
  o.showNewBtn ? (B(), U(_, {
2149
2149
  key: 0,
2150
2150
  color: "#336FFF",
@@ -2156,7 +2156,7 @@ const Po = /* @__PURE__ */ ze({
2156
2156
  _: 1
2157
2157
  })) : H("", !0)
2158
2158
  ], !0),
2159
- ee(d.$slots, "action-right", { selections: a.value }, void 0, !0)
2159
+ ee(p.$slots, "action-right", { selections: a.value }, void 0, !0)
2160
2160
  ])
2161
2161
  ])
2162
2162
  ])) : H("", !0),
@@ -2166,7 +2166,7 @@ const Po = /* @__PURE__ */ ze({
2166
2166
  "element-loading-text": o.loadingText,
2167
2167
  "element-loading-background": o.loadingBackground,
2168
2168
  onSelectionChange: h
2169
- }, d.$attrs, {
2169
+ }, p.$attrs, {
2170
2170
  height: "100%",
2171
2171
  style: { width: "100%" }
2172
2172
  }), {
@@ -2203,7 +2203,7 @@ const Po = /* @__PURE__ */ ze({
2203
2203
  D.slot ? {
2204
2204
  name: "default",
2205
2205
  fn: M((re) => [
2206
- ee(d.$slots, D.slot, {
2206
+ ee(p.$slots, D.slot, {
2207
2207
  row: re.row
2208
2208
  }, void 0, !0)
2209
2209
  ]),
@@ -2217,11 +2217,11 @@ const Po = /* @__PURE__ */ ze({
2217
2217
  }, {
2218
2218
  default: M((D) => [
2219
2219
  D.row ? (B(), ae("div", $o, [
2220
- d.$slots.actions ? ee(d.$slots, "actions", {
2220
+ p.$slots.actions ? ee(p.$slots, "actions", {
2221
2221
  key: 0,
2222
2222
  row: D.row
2223
2223
  }, void 0, !0) : (B(), ae(Ie, { key: 1 }, [
2224
- ee(d.$slots, "action-before-edit", {
2224
+ ee(p.$slots, "action-before-edit", {
2225
2225
  row: D.row
2226
2226
  }, void 0, !0),
2227
2227
  o.showViewButton ? (B(), U(_, {
@@ -2270,7 +2270,7 @@ const Po = /* @__PURE__ */ ze({
2270
2270
  ]),
2271
2271
  _: 1
2272
2272
  }, 8, ["onConfirm"])) : H("", !0),
2273
- ee(d.$slots, "action-after-delete", {
2273
+ ee(p.$slots, "action-after-delete", {
2274
2274
  row: D.row
2275
2275
  }, void 0, !0)
2276
2276
  ], 64))
@@ -2281,7 +2281,7 @@ const Po = /* @__PURE__ */ ze({
2281
2281
  ]),
2282
2282
  _: 3
2283
2283
  }, 16, ["data", "element-loading-text", "element-loading-background"])), [
2284
- [me, p.value]
2284
+ [me, d.value]
2285
2285
  ])
2286
2286
  ]),
2287
2287
  o.showPagination && g.value > 0 ? (B(), ae("div", Io, [
@@ -2334,7 +2334,7 @@ const Po = /* @__PURE__ */ ze({
2334
2334
  ])
2335
2335
  ]),
2336
2336
  footer: M(() => [
2337
- ee(d.$slots, "dialog-footer", {
2337
+ ee(p.$slots, "dialog-footer", {
2338
2338
  dialog: n,
2339
2339
  submit: O,
2340
2340
  cancel: () => n.visible = !1
@@ -2366,7 +2366,7 @@ const Po = /* @__PURE__ */ ze({
2366
2366
  ]),
2367
2367
  default: M(() => [
2368
2368
  fe("div", Uo, [
2369
- d.$slots["dialog-form"] ? ee(d.$slots, "dialog-form", {
2369
+ p.$slots["dialog-form"] ? ee(p.$slots, "dialog-form", {
2370
2370
  key: 0,
2371
2371
  formData: n.data,
2372
2372
  mode: n.mode,
@@ -2398,7 +2398,7 @@ const Po = /* @__PURE__ */ ze({
2398
2398
  style: { display: "flex", "flex-direction": "column", "max-height": "80vh" }
2399
2399
  }, {
2400
2400
  footer: M(() => [
2401
- ee(d.$slots, "dialog-footer", {
2401
+ ee(p.$slots, "dialog-footer", {
2402
2402
  dialog: n,
2403
2403
  submit: O,
2404
2404
  cancel: () => n.visible = !1
@@ -2428,7 +2428,7 @@ const Po = /* @__PURE__ */ ze({
2428
2428
  ]),
2429
2429
  default: M(() => [
2430
2430
  fe("div", ko, [
2431
- d.$slots["dialog-form"] ? ee(d.$slots, "dialog-form", {
2431
+ p.$slots["dialog-form"] ? ee(p.$slots, "dialog-form", {
2432
2432
  key: 0,
2433
2433
  formData: n.data,
2434
2434
  mode: n.mode,
@@ -2457,7 +2457,7 @@ const Po = /* @__PURE__ */ ze({
2457
2457
  ], 2);
2458
2458
  };
2459
2459
  }
2460
- }), Ho = /* @__PURE__ */ yn(Lo, [["__scopeId", "data-v-d80317e7"]]);
2460
+ }), Ho = /* @__PURE__ */ yn(Lo, [["__scopeId", "data-v-a907a615"]]);
2461
2461
  export {
2462
2462
  Ho as CrudTable
2463
2463
  };
@@ -1,5 +1,5 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.header-cell-content[data-v-d23c8660]{display:inline-block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crud-table-container[data-v-d80317e7]{display:flex;flex-direction:column;height:100%;width:100%;min-width:0;min-height:0;overflow:hidden}.search-section-wrapper[data-v-d80317e7]{flex-shrink:0}.table-content-wrapper[data-v-d80317e7]{flex:1;min-height:0;overflow:hidden}.pagination-wrapper[data-v-d80317e7]{flex-shrink:0;padding-top:1rem;display:flex;justify-content:flex-end}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.relative{position:relative}.\\!mr-0{margin-right:0!important}.mt-2{margin-top:.5rem}.flex{display:flex}.hidden{display:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}body{background-color:#f0f2f5;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;margin:0}#app{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c3e50}.crud-container{transition:box-shadow .3s ease-in-out}.crud-container:hover{box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a}.query-form .el-form-item{margin-bottom:0!important}.el-table__expanded-cell{padding:1rem 3.5rem!important;background-color:#f8fafc}.action-buttons>*+*{margin-left:.75rem}.el-dialog__header{border-bottom:none;padding:24px 24px 10px}.el-dialog__title{font-size:1.25rem;font-weight:600}.el-dialog__footer{border-top:none;padding:10px 24px 24px}.el-dialog__body{padding:10px 24px}:root{--large-screen-border-color: rgba(120, 153, 199, 1);--large-screen-text-color: rgba(227, 246, 255, 1);--large-screen-search-bg: rgba(210, 224, 243, .1);--large-screen-button-bg: rgba(38, 120, 255, 1);--large-screen-action-link-color: rgba(39, 233, 255, 1);--large-screen-dialog-bg: #1e293b;--large-screen-hover-bg: rgba(120, 153, 199, .15)}.theme-large-screen{color:var(--large-screen-text-color)}.el-modal-dialog,.el-overlay-dialog{position:absolute!important}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- (function(ce,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus"),require("axios")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","axios"],e):(ce=typeof globalThis<"u"?globalThis:ce||self,e(ce.ZCrudTable={},ce.Vue,ce.ElementPlus,ce.axios))})(this,(function(ce,e,me,Kt){"use strict";/*! Element Plus Icons Vue v2.3.2 */var Jt=e.defineComponent({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(t){return(s,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0"})]))}}),Yt=Jt;const qr=e.defineComponent({__name:"DynamicForm",props:{modelValue:{},formConfig:{},rules:{}},setup(t,{expose:s}){const m=e.ref(null);return s({validate:()=>{var p;return(p=m.value)==null?void 0:p.validate()}}),(p,a)=>{const E=e.resolveComponent("el-input"),k=e.resolveComponent("el-option"),S=e.resolveComponent("el-select"),P=e.resolveComponent("el-radio"),g=e.resolveComponent("el-radio-group"),h=e.resolveComponent("el-form-item"),v=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(v,e.mergeProps({model:p.modelValue,rules:p.rules,ref_key:"formRef",ref:m},p.$attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.formConfig,d=>(e.openBlock(),e.createBlock(h,{key:d.prop,label:d.label,prop:d.prop},{default:e.withCtx(()=>[d.type==="input"?(e.openBlock(),e.createBlock(E,e.mergeProps({key:0,modelValue:p.modelValue[d.prop],"onUpdate:modelValue":i=>p.modelValue[d.prop]=i},{ref_for:!0},d.componentProps),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),d.type==="textarea"?(e.openBlock(),e.createBlock(E,e.mergeProps({key:1,type:"textarea",modelValue:p.modelValue[d.prop],"onUpdate:modelValue":i=>p.modelValue[d.prop]=i},{ref_for:!0},d.componentProps),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),d.type==="select"?(e.openBlock(),e.createBlock(S,e.mergeProps({key:2,modelValue:p.modelValue[d.prop],"onUpdate:modelValue":i=>p.modelValue[d.prop]=i},{ref_for:!0},d.componentProps),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.options,i=>(e.openBlock(),e.createBlock(k,{key:i.value,label:i.label,value:i.value},null,8,["label","value"]))),128))]),_:2},1040,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),d.type==="radio-group"?(e.openBlock(),e.createBlock(g,e.mergeProps({key:3,modelValue:p.modelValue[d.prop],"onUpdate:modelValue":i=>p.modelValue[d.prop]=i},{ref_for:!0},d.componentProps),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.options,i=>(e.openBlock(),e.createBlock(P,{key:i.value,label:i.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.label),1)]),_:2},1032,["label"]))),128))]),_:2},1040,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),d.type==="input-disabled"?(e.openBlock(),e.createBlock(E,e.mergeProps({key:4,"model-value":p.modelValue[d.prop],disabled:""},{ref_for:!0},d.componentProps),null,16,["model-value"])):e.createCommentVNode("",!0)]),_:2},1032,["label","prop"]))),128))]),_:1},16,["model","rules"])}}});var $r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Xt(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var s=t.default;if(typeof s=="function"){var m=function p(){return this instanceof p?Reflect.construct(s,arguments,this.constructor):s.apply(this,arguments)};m.prototype=s.prototype}else m={};return Object.defineProperty(m,"__esModule",{value:!0}),Object.keys(t).forEach(function(p){var a=Object.getOwnPropertyDescriptor(t,p);Object.defineProperty(m,p,a.get?a:{enumerable:!0,get:function(){return t[p]}})}),m}var Fe,Ir;function ve(){return Ir||(Ir=1,Fe=TypeError),Fe}const en=Xt(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var De,Tr;function Be(){if(Tr)return De;Tr=1;var t=typeof Map=="function"&&Map.prototype,s=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,m=t&&s&&typeof s.get=="function"?s.get:null,p=t&&Map.prototype.forEach,a=typeof Set=="function"&&Set.prototype,E=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,k=a&&E&&typeof E.get=="function"?E.get:null,S=a&&Set.prototype.forEach,P=typeof WeakMap=="function"&&WeakMap.prototype,g=P?WeakMap.prototype.has:null,h=typeof WeakSet=="function"&&WeakSet.prototype,v=h?WeakSet.prototype.has:null,d=typeof WeakRef=="function"&&WeakRef.prototype,i=d?WeakRef.prototype.deref:null,o=Boolean.prototype.valueOf,_=Object.prototype.toString,f=Function.prototype.toString,c=String.prototype.match,u=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,A=String.prototype.toLowerCase,O=RegExp.prototype.test,B=Array.prototype.concat,x=Array.prototype.join,$=Array.prototype.slice,F=Math.floor,y=typeof BigInt=="function"?BigInt.prototype.valueOf:null,l=Object.getOwnPropertySymbols,C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,D=typeof Symbol=="function"&&typeof Symbol.iterator=="object",L=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===D||!0)?Symbol.toStringTag:null,G=Object.prototype.propertyIsEnumerable,Z=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function N(r,n){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||O.call(/e/,n))return n;var T=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var M=r<0?-F(-r):F(r);if(M!==r){var U=String(M),q=u.call(n,U.length+1);return b.call(U,T,"$&_")+"."+b.call(b.call(q,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(n,T,"$&_")}var K=en,ne=K.custom,ie=j(ne)?ne:null,le={__proto__:null,double:'"',single:"'"},fe={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};De=function r(n,T,M,U){var q=T||{};if(Y(q,"quoteStyle")&&!Y(le,q.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Y(q,"maxStringLength")&&(typeof q.maxStringLength=="number"?q.maxStringLength<0&&q.maxStringLength!==1/0:q.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var de=Y(q,"customInspect")?q.customInspect:!0;if(typeof de!="boolean"&&de!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Y(q,"indent")&&q.indent!==null&&q.indent!==" "&&!(parseInt(q.indent,10)===q.indent&&q.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Y(q,"numericSeparator")&&typeof q.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var he=q.numericSeparator;if(typeof n>"u")return"undefined";if(n===null)return"null";if(typeof n=="boolean")return n?"true":"false";if(typeof n=="string")return Vt(n,q);if(typeof n=="number"){if(n===0)return 1/0/n>0?"0":"-0";var X=String(n);return he?N(n,X):X}if(typeof n=="bigint"){var ye=String(n)+"n";return he?N(n,ye):ye}var Pr=typeof q.depth>"u"?5:q.depth;if(typeof M>"u"&&(M=0),M>=Pr&&Pr>0&&typeof n=="object")return ue(n)?"[Array]":"[Object]";var Ee=lo(q,M);if(typeof U>"u")U=[];else if(pe(U,n)>=0)return"[Circular]";function ae(Oe,xe,co){if(xe&&(U=$.call(U),U.push(xe)),co){var Qt={depth:q.depth};return Y(q,"quoteStyle")&&(Qt.quoteStyle=q.quoteStyle),r(Oe,Qt,M+1,U)}return r(Oe,q,M+1,U)}if(typeof n=="function"&&!H(n)){var Ut=we(n),Lt=ke(n,ae);return"[Function"+(Ut?": "+Ut:" (anonymous)")+"]"+(Lt.length>0?" { "+x.call(Lt,", ")+" }":"")}if(j(n)){var Wt=D?b.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):C.call(n);return typeof n=="object"&&!D?Ce(Wt):Wt}if(oo(n)){for(var _e="<"+A.call(String(n.nodeName)),kr=n.attributes||[],Re=0;Re<kr.length;Re++)_e+=" "+kr[Re].name+"="+R(J(kr[Re].value),"double",q);return _e+=">",n.childNodes&&n.childNodes.length&&(_e+="..."),_e+="</"+A.call(String(n.nodeName))+">",_e}if(ue(n)){if(n.length===0)return"[]";var Rr=ke(n,ae);return Ee&&!io(Rr)?"["+Br(Rr,Ee)+"]":"[ "+x.call(Rr,", ")+" ]"}if(I(n)){var xr=ke(n,ae);return!("cause"in Error.prototype)&&"cause"in n&&!G.call(n,"cause")?"{ ["+String(n)+"] "+x.call(B.call("[cause]: "+ae(n.cause),xr),", ")+" }":xr.length===0?"["+String(n)+"]":"{ ["+String(n)+"] "+x.call(xr,", ")+" }"}if(typeof n=="object"&&de){if(ie&&typeof n[ie]=="function"&&K)return K(n,{depth:Pr-M});if(de!=="symbol"&&typeof n.inspect=="function")return n.inspect()}if(oe(n)){var zt=[];return p&&p.call(n,function(Oe,xe){zt.push(ae(xe,n,!0)+" => "+ae(Oe,n))}),Mt("Map",m.call(n),zt,Ee)}if(Ae(n)){var Gt=[];return S&&S.call(n,function(Oe){Gt.push(ae(Oe,n))}),Mt("Set",k.call(n),Gt,Ee)}if(Se(n))return _r("WeakMap");if(no(n))return _r("WeakSet");if(be(n))return _r("WeakRef");if(V(n))return Ce(ae(Number(n)));if(re(n))return Ce(ae(y.call(n)));if(z(n))return Ce(o.call(n));if(W(n))return Ce(ae(String(n)));if(typeof window<"u"&&n===window)return"{ [object Window] }";if(typeof globalThis<"u"&&n===globalThis||typeof $r<"u"&&n===$r)return"{ [object globalThis] }";if(!se(n)&&!H(n)){var Fr=ke(n,ae),Ht=Z?Z(n)===Object.prototype:n instanceof Object||n.constructor===Object,Dr=n instanceof Object?"":"null prototype",jt=!Ht&&L&&Object(n)===n&&L in n?u.call(te(n),8,-1):Dr?"Object":"",fo=Ht||typeof n.constructor!="function"?"":n.constructor.name?n.constructor.name+" ":"",Nr=fo+(jt||Dr?"["+x.call(B.call([],jt||[],Dr||[]),": ")+"] ":"");return Fr.length===0?Nr+"{}":Ee?Nr+"{"+Br(Fr,Ee)+"}":Nr+"{ "+x.call(Fr,", ")+" }"}return String(n)};function R(r,n,T){var M=T.quoteStyle||n,U=le[M];return U+r+U}function J(r){return b.call(String(r),/"/g,"&quot;")}function ee(r){return!L||!(typeof r=="object"&&(L in r||typeof r[L]<"u"))}function ue(r){return te(r)==="[object Array]"&&ee(r)}function se(r){return te(r)==="[object Date]"&&ee(r)}function H(r){return te(r)==="[object RegExp]"&&ee(r)}function I(r){return te(r)==="[object Error]"&&ee(r)}function W(r){return te(r)==="[object String]"&&ee(r)}function V(r){return te(r)==="[object Number]"&&ee(r)}function z(r){return te(r)==="[object Boolean]"&&ee(r)}function j(r){if(D)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!C)return!1;try{return C.call(r),!0}catch{}return!1}function re(r){if(!r||typeof r!="object"||!y)return!1;try{return y.call(r),!0}catch{}return!1}var Q=Object.prototype.hasOwnProperty||function(r){return r in this};function Y(r,n){return Q.call(r,n)}function te(r){return _.call(r)}function we(r){if(r.name)return r.name;var n=c.call(f.call(r),/^function\s*([\w$]+)/);return n?n[1]:null}function pe(r,n){if(r.indexOf)return r.indexOf(n);for(var T=0,M=r.length;T<M;T++)if(r[T]===n)return T;return-1}function oe(r){if(!m||!r||typeof r!="object")return!1;try{m.call(r);try{k.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function Se(r){if(!g||!r||typeof r!="object")return!1;try{g.call(r,g);try{v.call(r,v)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function be(r){if(!i||!r||typeof r!="object")return!1;try{return i.call(r),!0}catch{}return!1}function Ae(r){if(!k||!r||typeof r!="object")return!1;try{k.call(r);try{m.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function no(r){if(!v||!r||typeof r!="object")return!1;try{v.call(r,v);try{g.call(r,g)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function oo(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function Vt(r,n){if(r.length>n.maxStringLength){var T=r.length-n.maxStringLength,M="... "+T+" more character"+(T>1?"s":"");return Vt(u.call(r,0,n.maxStringLength),n)+M}var U=fe[n.quoteStyle||"single"];U.lastIndex=0;var q=b.call(b.call(r,U,"\\$1"),/[\x00-\x1f]/g,ao);return R(q,"single",n)}function ao(r){var n=r.charCodeAt(0),T={8:"b",9:"t",10:"n",12:"f",13:"r"}[n];return T?"\\"+T:"\\x"+(n<16?"0":"")+w.call(n.toString(16))}function Ce(r){return"Object("+r+")"}function _r(r){return r+" { ? }"}function Mt(r,n,T,M){var U=M?Br(T,M):x.call(T,", ");return r+" ("+n+") {"+U+"}"}function io(r){for(var n=0;n<r.length;n++)if(pe(r[n],`
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.header-cell-content[data-v-d23c8660]{display:inline-block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crud-table-container[data-v-a907a615]{display:flex;flex-direction:column;height:100%;width:100%;min-width:0;min-height:0;overflow:hidden}.search-section-wrapper[data-v-a907a615]{flex-shrink:0}.table-content-wrapper[data-v-a907a615]{flex:1;min-height:0;overflow:hidden}.pagination-wrapper[data-v-a907a615]{flex-shrink:0;padding-top:1rem;display:flex;justify-content:flex-end}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.relative{position:relative}.\\!mr-0{margin-right:0!important}.mt-2{margin-top:.5rem}.flex{display:flex}.hidden{display:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}body{background-color:#f0f2f5;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;margin:0}#app{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c3e50}.crud-container{transition:box-shadow .3s ease-in-out}.crud-container:hover{box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a}.query-form .el-form-item{margin-bottom:0!important}.el-table__expanded-cell{padding:1rem 3.5rem!important;background-color:#f8fafc}.action-buttons>*+*{margin-left:.75rem}.el-dialog__header{border-bottom:none;padding:24px 24px 10px}.el-dialog__title{font-size:1.25rem;font-weight:600}.el-dialog__footer{border-top:none;padding:10px 24px 24px}.el-dialog__body{padding:10px 24px}:root{--large-screen-border-color: rgba(120, 153, 199, 1);--large-screen-text-color: rgba(227, 246, 255, 1);--large-screen-search-bg: rgba(210, 224, 243, .1);--large-screen-button-bg: rgba(38, 120, 255, 1);--large-screen-action-link-color: rgba(39, 233, 255, 1);--large-screen-dialog-bg: #1e293b;--large-screen-hover-bg: rgba(120, 153, 199, .15)}.theme-large-screen{color:var(--large-screen-text-color)}.el-modal-dialog,.el-overlay-dialog{position:absolute!important}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
+ (function(ce,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus"),require("axios")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","axios"],e):(ce=typeof globalThis<"u"?globalThis:ce||self,e(ce.ZCrudTable={},ce.Vue,ce.ElementPlus,ce.axios))})(this,(function(ce,e,me,Kt){"use strict";/*! Element Plus Icons Vue v2.3.2 */var Jt=e.defineComponent({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(t){return(s,m)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0"})]))}}),Yt=Jt;const qr=e.defineComponent({__name:"DynamicForm",props:{modelValue:{},formConfig:{},rules:{}},setup(t,{expose:s}){const m=e.ref(null);return s({validate:()=>{var p;return(p=m.value)==null?void 0:p.validate()}}),(p,a)=>{const E=e.resolveComponent("el-input"),k=e.resolveComponent("el-option"),S=e.resolveComponent("el-select"),P=e.resolveComponent("el-radio"),g=e.resolveComponent("el-radio-group"),h=e.resolveComponent("el-form-item"),v=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(v,e.mergeProps({model:p.modelValue,rules:p.rules,ref_key:"formRef",ref:m},p.$attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.formConfig,y=>(e.openBlock(),e.createBlock(h,{key:y.prop,label:y.label,prop:y.prop},{default:e.withCtx(()=>[y.type==="input"?(e.openBlock(),e.createBlock(E,e.mergeProps({key:0,modelValue:p.modelValue[y.prop],"onUpdate:modelValue":i=>p.modelValue[y.prop]=i},{ref_for:!0},y.componentProps),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),y.type==="textarea"?(e.openBlock(),e.createBlock(E,e.mergeProps({key:1,type:"textarea",modelValue:p.modelValue[y.prop],"onUpdate:modelValue":i=>p.modelValue[y.prop]=i},{ref_for:!0},y.componentProps),null,16,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),y.type==="select"?(e.openBlock(),e.createBlock(S,e.mergeProps({key:2,modelValue:p.modelValue[y.prop],"onUpdate:modelValue":i=>p.modelValue[y.prop]=i},{ref_for:!0},y.componentProps),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.options,i=>(e.openBlock(),e.createBlock(k,{key:i.value,label:i.label,value:i.value},null,8,["label","value"]))),128))]),_:2},1040,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),y.type==="radio-group"?(e.openBlock(),e.createBlock(g,e.mergeProps({key:3,modelValue:p.modelValue[y.prop],"onUpdate:modelValue":i=>p.modelValue[y.prop]=i},{ref_for:!0},y.componentProps),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.options,i=>(e.openBlock(),e.createBlock(P,{key:i.value,label:i.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.label),1)]),_:2},1032,["label"]))),128))]),_:2},1040,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),y.type==="input-disabled"?(e.openBlock(),e.createBlock(E,e.mergeProps({key:4,"model-value":p.modelValue[y.prop],disabled:""},{ref_for:!0},y.componentProps),null,16,["model-value"])):e.createCommentVNode("",!0)]),_:2},1032,["label","prop"]))),128))]),_:1},16,["model","rules"])}}});var $r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Xt(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var s=t.default;if(typeof s=="function"){var m=function p(){return this instanceof p?Reflect.construct(s,arguments,this.constructor):s.apply(this,arguments)};m.prototype=s.prototype}else m={};return Object.defineProperty(m,"__esModule",{value:!0}),Object.keys(t).forEach(function(p){var a=Object.getOwnPropertyDescriptor(t,p);Object.defineProperty(m,p,a.get?a:{enumerable:!0,get:function(){return t[p]}})}),m}var Fe,Ir;function ve(){return Ir||(Ir=1,Fe=TypeError),Fe}const en=Xt(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var De,Tr;function Be(){if(Tr)return De;Tr=1;var t=typeof Map=="function"&&Map.prototype,s=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,m=t&&s&&typeof s.get=="function"?s.get:null,p=t&&Map.prototype.forEach,a=typeof Set=="function"&&Set.prototype,E=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,k=a&&E&&typeof E.get=="function"?E.get:null,S=a&&Set.prototype.forEach,P=typeof WeakMap=="function"&&WeakMap.prototype,g=P?WeakMap.prototype.has:null,h=typeof WeakSet=="function"&&WeakSet.prototype,v=h?WeakSet.prototype.has:null,y=typeof WeakRef=="function"&&WeakRef.prototype,i=y?WeakRef.prototype.deref:null,o=Boolean.prototype.valueOf,_=Object.prototype.toString,f=Function.prototype.toString,c=String.prototype.match,u=String.prototype.slice,b=String.prototype.replace,w=String.prototype.toUpperCase,A=String.prototype.toLowerCase,O=RegExp.prototype.test,B=Array.prototype.concat,x=Array.prototype.join,$=Array.prototype.slice,F=Math.floor,d=typeof BigInt=="function"?BigInt.prototype.valueOf:null,l=Object.getOwnPropertySymbols,C=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,D=typeof Symbol=="function"&&typeof Symbol.iterator=="object",L=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===D||!0)?Symbol.toStringTag:null,G=Object.prototype.propertyIsEnumerable,Z=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function N(r,n){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||O.call(/e/,n))return n;var T=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var M=r<0?-F(-r):F(r);if(M!==r){var U=String(M),q=u.call(n,U.length+1);return b.call(U,T,"$&_")+"."+b.call(b.call(q,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(n,T,"$&_")}var K=en,ne=K.custom,ie=H(ne)?ne:null,le={__proto__:null,double:'"',single:"'"},fe={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};De=function r(n,T,M,U){var q=T||{};if(Y(q,"quoteStyle")&&!Y(le,q.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Y(q,"maxStringLength")&&(typeof q.maxStringLength=="number"?q.maxStringLength<0&&q.maxStringLength!==1/0:q.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var de=Y(q,"customInspect")?q.customInspect:!0;if(typeof de!="boolean"&&de!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Y(q,"indent")&&q.indent!==null&&q.indent!==" "&&!(parseInt(q.indent,10)===q.indent&&q.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Y(q,"numericSeparator")&&typeof q.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var he=q.numericSeparator;if(typeof n>"u")return"undefined";if(n===null)return"null";if(typeof n=="boolean")return n?"true":"false";if(typeof n=="string")return Vt(n,q);if(typeof n=="number"){if(n===0)return 1/0/n>0?"0":"-0";var X=String(n);return he?N(n,X):X}if(typeof n=="bigint"){var ye=String(n)+"n";return he?N(n,ye):ye}var Pr=typeof q.depth>"u"?5:q.depth;if(typeof M>"u"&&(M=0),M>=Pr&&Pr>0&&typeof n=="object")return ue(n)?"[Array]":"[Object]";var Ee=lo(q,M);if(typeof U>"u")U=[];else if(pe(U,n)>=0)return"[Circular]";function ae(Oe,xe,co){if(xe&&(U=$.call(U),U.push(xe)),co){var Qt={depth:q.depth};return Y(q,"quoteStyle")&&(Qt.quoteStyle=q.quoteStyle),r(Oe,Qt,M+1,U)}return r(Oe,q,M+1,U)}if(typeof n=="function"&&!j(n)){var Ut=we(n),Lt=ke(n,ae);return"[Function"+(Ut?": "+Ut:" (anonymous)")+"]"+(Lt.length>0?" { "+x.call(Lt,", ")+" }":"")}if(H(n)){var Wt=D?b.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):C.call(n);return typeof n=="object"&&!D?Ce(Wt):Wt}if(oo(n)){for(var _e="<"+A.call(String(n.nodeName)),kr=n.attributes||[],Re=0;Re<kr.length;Re++)_e+=" "+kr[Re].name+"="+R(J(kr[Re].value),"double",q);return _e+=">",n.childNodes&&n.childNodes.length&&(_e+="..."),_e+="</"+A.call(String(n.nodeName))+">",_e}if(ue(n)){if(n.length===0)return"[]";var Rr=ke(n,ae);return Ee&&!io(Rr)?"["+Br(Rr,Ee)+"]":"[ "+x.call(Rr,", ")+" ]"}if(I(n)){var xr=ke(n,ae);return!("cause"in Error.prototype)&&"cause"in n&&!G.call(n,"cause")?"{ ["+String(n)+"] "+x.call(B.call("[cause]: "+ae(n.cause),xr),", ")+" }":xr.length===0?"["+String(n)+"]":"{ ["+String(n)+"] "+x.call(xr,", ")+" }"}if(typeof n=="object"&&de){if(ie&&typeof n[ie]=="function"&&K)return K(n,{depth:Pr-M});if(de!=="symbol"&&typeof n.inspect=="function")return n.inspect()}if(oe(n)){var zt=[];return p&&p.call(n,function(Oe,xe){zt.push(ae(xe,n,!0)+" => "+ae(Oe,n))}),Mt("Map",m.call(n),zt,Ee)}if(Ae(n)){var Gt=[];return S&&S.call(n,function(Oe){Gt.push(ae(Oe,n))}),Mt("Set",k.call(n),Gt,Ee)}if(Se(n))return _r("WeakMap");if(no(n))return _r("WeakSet");if(be(n))return _r("WeakRef");if(V(n))return Ce(ae(Number(n)));if(re(n))return Ce(ae(d.call(n)));if(z(n))return Ce(o.call(n));if(W(n))return Ce(ae(String(n)));if(typeof window<"u"&&n===window)return"{ [object Window] }";if(typeof globalThis<"u"&&n===globalThis||typeof $r<"u"&&n===$r)return"{ [object globalThis] }";if(!se(n)&&!j(n)){var Fr=ke(n,ae),jt=Z?Z(n)===Object.prototype:n instanceof Object||n.constructor===Object,Dr=n instanceof Object?"":"null prototype",Ht=!jt&&L&&Object(n)===n&&L in n?u.call(te(n),8,-1):Dr?"Object":"",fo=jt||typeof n.constructor!="function"?"":n.constructor.name?n.constructor.name+" ":"",Nr=fo+(Ht||Dr?"["+x.call(B.call([],Ht||[],Dr||[]),": ")+"] ":"");return Fr.length===0?Nr+"{}":Ee?Nr+"{"+Br(Fr,Ee)+"}":Nr+"{ "+x.call(Fr,", ")+" }"}return String(n)};function R(r,n,T){var M=T.quoteStyle||n,U=le[M];return U+r+U}function J(r){return b.call(String(r),/"/g,"&quot;")}function ee(r){return!L||!(typeof r=="object"&&(L in r||typeof r[L]<"u"))}function ue(r){return te(r)==="[object Array]"&&ee(r)}function se(r){return te(r)==="[object Date]"&&ee(r)}function j(r){return te(r)==="[object RegExp]"&&ee(r)}function I(r){return te(r)==="[object Error]"&&ee(r)}function W(r){return te(r)==="[object String]"&&ee(r)}function V(r){return te(r)==="[object Number]"&&ee(r)}function z(r){return te(r)==="[object Boolean]"&&ee(r)}function H(r){if(D)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!C)return!1;try{return C.call(r),!0}catch{}return!1}function re(r){if(!r||typeof r!="object"||!d)return!1;try{return d.call(r),!0}catch{}return!1}var Q=Object.prototype.hasOwnProperty||function(r){return r in this};function Y(r,n){return Q.call(r,n)}function te(r){return _.call(r)}function we(r){if(r.name)return r.name;var n=c.call(f.call(r),/^function\s*([\w$]+)/);return n?n[1]:null}function pe(r,n){if(r.indexOf)return r.indexOf(n);for(var T=0,M=r.length;T<M;T++)if(r[T]===n)return T;return-1}function oe(r){if(!m||!r||typeof r!="object")return!1;try{m.call(r);try{k.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function Se(r){if(!g||!r||typeof r!="object")return!1;try{g.call(r,g);try{v.call(r,v)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function be(r){if(!i||!r||typeof r!="object")return!1;try{return i.call(r),!0}catch{}return!1}function Ae(r){if(!k||!r||typeof r!="object")return!1;try{k.call(r);try{m.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function no(r){if(!v||!r||typeof r!="object")return!1;try{v.call(r,v);try{g.call(r,g)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function oo(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function Vt(r,n){if(r.length>n.maxStringLength){var T=r.length-n.maxStringLength,M="... "+T+" more character"+(T>1?"s":"");return Vt(u.call(r,0,n.maxStringLength),n)+M}var U=fe[n.quoteStyle||"single"];U.lastIndex=0;var q=b.call(b.call(r,U,"\\$1"),/[\x00-\x1f]/g,ao);return R(q,"single",n)}function ao(r){var n=r.charCodeAt(0),T={8:"b",9:"t",10:"n",12:"f",13:"r"}[n];return T?"\\"+T:"\\x"+(n<16?"0":"")+w.call(n.toString(16))}function Ce(r){return"Object("+r+")"}function _r(r){return r+" { ? }"}function Mt(r,n,T,M){var U=M?Br(T,M):x.call(T,", ");return r+" ("+n+") {"+U+"}"}function io(r){for(var n=0;n<r.length;n++)if(pe(r[n],`
3
3
  `)>=0)return!1;return!0}function lo(r,n){var T;if(r.indent===" ")T=" ";else if(typeof r.indent=="number"&&r.indent>0)T=x.call(Array(r.indent+1)," ");else return null;return{base:T,prev:x.call(Array(n+1),T)}}function Br(r,n){if(r.length===0)return"";var T=`
4
4
  `+n.prev+n.base;return T+x.call(r,","+T)+`
5
- `+n.prev}function ke(r,n){var T=ue(r),M=[];if(T){M.length=r.length;for(var U=0;U<r.length;U++)M[U]=Y(r,U)?n(r[U],r):""}var q=typeof l=="function"?l(r):[],de;if(D){de={};for(var he=0;he<q.length;he++)de["$"+q[he]]=q[he]}for(var X in r)Y(r,X)&&(T&&String(Number(X))===X&&X<r.length||D&&de["$"+X]instanceof Symbol||(O.call(/[^\w$]/,X)?M.push(n(X,r)+": "+n(r[X],r)):M.push(X+": "+n(r[X],r))));if(typeof l=="function")for(var ye=0;ye<q.length;ye++)G.call(r,q[ye])&&M.push("["+n(q[ye])+"]: "+n(r[q[ye]],r));return M}return De}var Ne,Vr;function rn(){if(Vr)return Ne;Vr=1;var t=Be(),s=ve(),m=function(S,P,g){for(var h=S,v;(v=h.next)!=null;h=v)if(v.key===P)return h.next=v.next,g||(v.next=S.next,S.next=v),v},p=function(S,P){if(S){var g=m(S,P);return g&&g.value}},a=function(S,P,g){var h=m(S,P);h?h.value=g:S.next={key:P,next:S.next,value:g}},E=function(S,P){return S?!!m(S,P):!1},k=function(S,P){if(S)return m(S,P,!0)};return Ne=function(){var P,g={assert:function(h){if(!g.has(h))throw new s("Side channel does not contain "+t(h))},delete:function(h){var v=P&&P.next,d=k(P,h);return d&&v&&v===d&&(P=void 0),!!d},get:function(h){return p(P,h)},has:function(h){return E(P,h)},set:function(h,v){P||(P={next:void 0}),a(P,h,v)}};return g},Ne}var qe,Mr;function Ur(){return Mr||(Mr=1,qe=Object),qe}var $e,Lr;function tn(){return Lr||(Lr=1,$e=Error),$e}var Ie,Wr;function nn(){return Wr||(Wr=1,Ie=EvalError),Ie}var Te,zr;function on(){return zr||(zr=1,Te=RangeError),Te}var Ve,Gr;function an(){return Gr||(Gr=1,Ve=ReferenceError),Ve}var Me,Hr;function ln(){return Hr||(Hr=1,Me=SyntaxError),Me}var Ue,jr;function fn(){return jr||(jr=1,Ue=URIError),Ue}var Le,Qr;function cn(){return Qr||(Qr=1,Le=Math.abs),Le}var We,Kr;function un(){return Kr||(Kr=1,We=Math.floor),We}var ze,Jr;function sn(){return Jr||(Jr=1,ze=Math.max),ze}var Ge,Yr;function pn(){return Yr||(Yr=1,Ge=Math.min),Ge}var He,Zr;function dn(){return Zr||(Zr=1,He=Math.pow),He}var je,Xr;function yn(){return Xr||(Xr=1,je=Math.round),je}var Qe,et;function mn(){return et||(et=1,Qe=Number.isNaN||function(s){return s!==s}),Qe}var Ke,rt;function gn(){if(rt)return Ke;rt=1;var t=mn();return Ke=function(m){return t(m)||m===0?m:m<0?-1:1},Ke}var Je,tt;function hn(){return tt||(tt=1,Je=Object.getOwnPropertyDescriptor),Je}var Ye,nt;function ot(){if(nt)return Ye;nt=1;var t=hn();if(t)try{t([],"length")}catch{t=null}return Ye=t,Ye}var Ze,at;function vn(){if(at)return Ze;at=1;var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return Ze=t,Ze}var Xe,it;function wn(){return it||(it=1,Xe=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},m=Symbol("test"),p=Object(m);if(typeof m=="string"||Object.prototype.toString.call(m)!=="[object Symbol]"||Object.prototype.toString.call(p)!=="[object Symbol]")return!1;var a=42;s[m]=a;for(var E in s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var k=Object.getOwnPropertySymbols(s);if(k.length!==1||k[0]!==m||!Object.prototype.propertyIsEnumerable.call(s,m))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var S=Object.getOwnPropertyDescriptor(s,m);if(S.value!==a||S.enumerable!==!0)return!1}return!0}),Xe}var er,lt;function Sn(){if(lt)return er;lt=1;var t=typeof Symbol<"u"&&Symbol,s=wn();return er=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:s()},er}var rr,ft;function ct(){return ft||(ft=1,rr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),rr}var tr,ut;function st(){if(ut)return tr;ut=1;var t=Ur();return tr=t.getPrototypeOf||null,tr}var nr,pt;function bn(){if(pt)return nr;pt=1;var t="Function.prototype.bind called on incompatible ",s=Object.prototype.toString,m=Math.max,p="[object Function]",a=function(P,g){for(var h=[],v=0;v<P.length;v+=1)h[v]=P[v];for(var d=0;d<g.length;d+=1)h[d+P.length]=g[d];return h},E=function(P,g){for(var h=[],v=g,d=0;v<P.length;v+=1,d+=1)h[d]=P[v];return h},k=function(S,P){for(var g="",h=0;h<S.length;h+=1)g+=S[h],h+1<S.length&&(g+=P);return g};return nr=function(P){var g=this;if(typeof g!="function"||s.apply(g)!==p)throw new TypeError(t+g);for(var h=E(arguments,1),v,d=function(){if(this instanceof v){var c=g.apply(this,a(h,arguments));return Object(c)===c?c:this}return g.apply(P,a(h,arguments))},i=m(0,g.length-h.length),o=[],_=0;_<i;_++)o[_]="$"+_;if(v=Function("binder","return function ("+k(o,",")+"){ return binder.apply(this,arguments); }")(d),g.prototype){var f=function(){};f.prototype=g.prototype,v.prototype=new f,f.prototype=null}return v},nr}var or,dt;function Pe(){if(dt)return or;dt=1;var t=bn();return or=Function.prototype.bind||t,or}var ar,yt;function ir(){return yt||(yt=1,ar=Function.prototype.call),ar}var lr,mt;function gt(){return mt||(mt=1,lr=Function.prototype.apply),lr}var fr,ht;function An(){return ht||(ht=1,fr=typeof Reflect<"u"&&Reflect&&Reflect.apply),fr}var cr,vt;function En(){if(vt)return cr;vt=1;var t=Pe(),s=gt(),m=ir(),p=An();return cr=p||t.call(m,s),cr}var ur,wt;function St(){if(wt)return ur;wt=1;var t=Pe(),s=ve(),m=ir(),p=En();return ur=function(E){if(E.length<1||typeof E[0]!="function")throw new s("a function is required");return p(t,m,E)},ur}var sr,bt;function On(){if(bt)return sr;bt=1;var t=St(),s=ot(),m;try{m=[].__proto__===Array.prototype}catch(k){if(!k||typeof k!="object"||!("code"in k)||k.code!=="ERR_PROTO_ACCESS")throw k}var p=!!m&&s&&s(Object.prototype,"__proto__"),a=Object,E=a.getPrototypeOf;return sr=p&&typeof p.get=="function"?t([p.get]):typeof E=="function"?function(S){return E(S==null?S:a(S))}:!1,sr}var pr,At;function Cn(){if(At)return pr;At=1;var t=ct(),s=st(),m=On();return pr=t?function(a){return t(a)}:s?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return s(a)}:m?function(a){return m(a)}:null,pr}var dr,Et;function _n(){if(Et)return dr;Et=1;var t=Function.prototype.call,s=Object.prototype.hasOwnProperty,m=Pe();return dr=m.call(t,s),dr}var yr,Ot;function mr(){if(Ot)return yr;Ot=1;var t,s=Ur(),m=tn(),p=nn(),a=on(),E=an(),k=ln(),S=ve(),P=fn(),g=cn(),h=un(),v=sn(),d=pn(),i=dn(),o=yn(),_=gn(),f=Function,c=function(H){try{return f('"use strict"; return ('+H+").constructor;")()}catch{}},u=ot(),b=vn(),w=function(){throw new S},A=u?(function(){try{return arguments.callee,w}catch{try{return u(arguments,"callee").get}catch{return w}}})():w,O=Sn()(),B=Cn(),x=st(),$=ct(),F=gt(),y=ir(),l={},C=typeof Uint8Array>"u"||!B?t:B(Uint8Array),D={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":O&&B?B([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":l,"%AsyncGenerator%":l,"%AsyncGeneratorFunction%":l,"%AsyncIteratorPrototype%":l,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":m,"%eval%":eval,"%EvalError%":p,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":l,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&B?B(B([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!O||!B?t:B(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":s,"%Object.getOwnPropertyDescriptor%":u,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":a,"%ReferenceError%":E,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!O||!B?t:B(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&B?B(""[Symbol.iterator]()):t,"%Symbol%":O?Symbol:t,"%SyntaxError%":k,"%ThrowTypeError%":A,"%TypedArray%":C,"%TypeError%":S,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":P,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":y,"%Function.prototype.apply%":F,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":x,"%Math.abs%":g,"%Math.floor%":h,"%Math.max%":v,"%Math.min%":d,"%Math.pow%":i,"%Math.round%":o,"%Math.sign%":_,"%Reflect.getPrototypeOf%":$};if(B)try{null.error}catch(H){var L=B(B(H));D["%Error.prototype%"]=L}var G=function H(I){var W;if(I==="%AsyncFunction%")W=c("async function () {}");else if(I==="%GeneratorFunction%")W=c("function* () {}");else if(I==="%AsyncGeneratorFunction%")W=c("async function* () {}");else if(I==="%AsyncGenerator%"){var V=H("%AsyncGeneratorFunction%");V&&(W=V.prototype)}else if(I==="%AsyncIteratorPrototype%"){var z=H("%AsyncGenerator%");z&&B&&(W=B(z.prototype))}return D[I]=W,W},Z={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=Pe(),K=_n(),ne=N.call(y,Array.prototype.concat),ie=N.call(F,Array.prototype.splice),le=N.call(y,String.prototype.replace),fe=N.call(y,String.prototype.slice),R=N.call(y,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ee=/\\(\\)?/g,ue=function(I){var W=fe(I,0,1),V=fe(I,-1);if(W==="%"&&V!=="%")throw new k("invalid intrinsic syntax, expected closing `%`");if(V==="%"&&W!=="%")throw new k("invalid intrinsic syntax, expected opening `%`");var z=[];return le(I,J,function(j,re,Q,Y){z[z.length]=Q?le(Y,ee,"$1"):re||j}),z},se=function(I,W){var V=I,z;if(K(Z,V)&&(z=Z[V],V="%"+z[0]+"%"),K(D,V)){var j=D[V];if(j===l&&(j=G(V)),typeof j>"u"&&!W)throw new S("intrinsic "+I+" exists, but is not available. Please file an issue!");return{alias:z,name:V,value:j}}throw new k("intrinsic "+I+" does not exist!")};return yr=function(I,W){if(typeof I!="string"||I.length===0)throw new S("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof W!="boolean")throw new S('"allowMissing" argument must be a boolean');if(R(/^%?[^%]*%?$/,I)===null)throw new k("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var V=ue(I),z=V.length>0?V[0]:"",j=se("%"+z+"%",W),re=j.name,Q=j.value,Y=!1,te=j.alias;te&&(z=te[0],ie(V,ne([0,1],te)));for(var we=1,pe=!0;we<V.length;we+=1){var oe=V[we],Se=fe(oe,0,1),be=fe(oe,-1);if((Se==='"'||Se==="'"||Se==="`"||be==='"'||be==="'"||be==="`")&&Se!==be)throw new k("property names with quotes must have matching quotes");if((oe==="constructor"||!pe)&&(Y=!0),z+="."+oe,re="%"+z+"%",K(D,re))Q=D[re];else if(Q!=null){if(!(oe in Q)){if(!W)throw new S("base intrinsic for "+I+" exists, but the property is not available.");return}if(u&&we+1>=V.length){var Ae=u(Q,oe);pe=!!Ae,pe&&"get"in Ae&&!("originalValue"in Ae.get)?Q=Ae.get:Q=Q[oe]}else pe=K(Q,oe),Q=Q[oe];pe&&!Y&&(D[re]=Q)}}return Q},yr}var gr,Ct;function _t(){if(Ct)return gr;Ct=1;var t=mr(),s=St(),m=s([t("%String.prototype.indexOf%")]);return gr=function(a,E){var k=t(a,!!E);return typeof k=="function"&&m(a,".prototype.")>-1?s([k]):k},gr}var hr,Bt;function Pt(){if(Bt)return hr;Bt=1;var t=mr(),s=_t(),m=Be(),p=ve(),a=t("%Map%",!0),E=s("Map.prototype.get",!0),k=s("Map.prototype.set",!0),S=s("Map.prototype.has",!0),P=s("Map.prototype.delete",!0),g=s("Map.prototype.size",!0);return hr=!!a&&function(){var v,d={assert:function(i){if(!d.has(i))throw new p("Side channel does not contain "+m(i))},delete:function(i){if(v){var o=P(v,i);return g(v)===0&&(v=void 0),o}return!1},get:function(i){if(v)return E(v,i)},has:function(i){return v?S(v,i):!1},set:function(i,o){v||(v=new a),k(v,i,o)}};return d},hr}var vr,kt;function Bn(){if(kt)return vr;kt=1;var t=mr(),s=_t(),m=Be(),p=Pt(),a=ve(),E=t("%WeakMap%",!0),k=s("WeakMap.prototype.get",!0),S=s("WeakMap.prototype.set",!0),P=s("WeakMap.prototype.has",!0),g=s("WeakMap.prototype.delete",!0);return vr=E?function(){var v,d,i={assert:function(o){if(!i.has(o))throw new a("Side channel does not contain "+m(o))},delete:function(o){if(E&&o&&(typeof o=="object"||typeof o=="function")){if(v)return g(v,o)}else if(p&&d)return d.delete(o);return!1},get:function(o){return E&&o&&(typeof o=="object"||typeof o=="function")&&v?k(v,o):d&&d.get(o)},has:function(o){return E&&o&&(typeof o=="object"||typeof o=="function")&&v?P(v,o):!!d&&d.has(o)},set:function(o,_){E&&o&&(typeof o=="object"||typeof o=="function")?(v||(v=new E),S(v,o,_)):p&&(d||(d=p()),d.set(o,_))}};return i}:p,vr}var wr,Rt;function Pn(){if(Rt)return wr;Rt=1;var t=ve(),s=Be(),m=rn(),p=Pt(),a=Bn(),E=a||p||m;return wr=function(){var S,P={assert:function(g){if(!P.has(g))throw new t("Side channel does not contain "+s(g))},delete:function(g){return!!S&&S.delete(g)},get:function(g){return S&&S.get(g)},has:function(g){return!!S&&S.has(g)},set:function(g,h){S||(S=E()),S.set(g,h)}};return P},wr}var Sr,xt;function br(){if(xt)return Sr;xt=1;var t=String.prototype.replace,s=/%20/g,m={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Sr={default:m.RFC3986,formatters:{RFC1738:function(p){return t.call(p,s,"+")},RFC3986:function(p){return String(p)}},RFC1738:m.RFC1738,RFC3986:m.RFC3986},Sr}var Ar,Ft;function Dt(){if(Ft)return Ar;Ft=1;var t=br(),s=Object.prototype.hasOwnProperty,m=Array.isArray,p=(function(){for(var f=[],c=0;c<256;++c)f.push("%"+((c<16?"0":"")+c.toString(16)).toUpperCase());return f})(),a=function(c){for(;c.length>1;){var u=c.pop(),b=u.obj[u.prop];if(m(b)){for(var w=[],A=0;A<b.length;++A)typeof b[A]<"u"&&w.push(b[A]);u.obj[u.prop]=w}}},E=function(c,u){for(var b=u&&u.plainObjects?{__proto__:null}:{},w=0;w<c.length;++w)typeof c[w]<"u"&&(b[w]=c[w]);return b},k=function f(c,u,b){if(!u)return c;if(typeof u!="object"&&typeof u!="function"){if(m(c))c.push(u);else if(c&&typeof c=="object")(b&&(b.plainObjects||b.allowPrototypes)||!s.call(Object.prototype,u))&&(c[u]=!0);else return[c,u];return c}if(!c||typeof c!="object")return[c].concat(u);var w=c;return m(c)&&!m(u)&&(w=E(c,b)),m(c)&&m(u)?(u.forEach(function(A,O){if(s.call(c,O)){var B=c[O];B&&typeof B=="object"&&A&&typeof A=="object"?c[O]=f(B,A,b):c.push(A)}else c[O]=A}),c):Object.keys(u).reduce(function(A,O){var B=u[O];return s.call(A,O)?A[O]=f(A[O],B,b):A[O]=B,A},w)},S=function(c,u){return Object.keys(u).reduce(function(b,w){return b[w]=u[w],b},c)},P=function(f,c,u){var b=f.replace(/\+/g," ");if(u==="iso-8859-1")return b.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(b)}catch{return b}},g=1024,h=function(c,u,b,w,A){if(c.length===0)return c;var O=c;if(typeof c=="symbol"?O=Symbol.prototype.toString.call(c):typeof c!="string"&&(O=String(c)),b==="iso-8859-1")return escape(O).replace(/%u[0-9a-f]{4}/gi,function(C){return"%26%23"+parseInt(C.slice(2),16)+"%3B"});for(var B="",x=0;x<O.length;x+=g){for(var $=O.length>=g?O.slice(x,x+g):O,F=[],y=0;y<$.length;++y){var l=$.charCodeAt(y);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||A===t.RFC1738&&(l===40||l===41)){F[F.length]=$.charAt(y);continue}if(l<128){F[F.length]=p[l];continue}if(l<2048){F[F.length]=p[192|l>>6]+p[128|l&63];continue}if(l<55296||l>=57344){F[F.length]=p[224|l>>12]+p[128|l>>6&63]+p[128|l&63];continue}y+=1,l=65536+((l&1023)<<10|$.charCodeAt(y)&1023),F[F.length]=p[240|l>>18]+p[128|l>>12&63]+p[128|l>>6&63]+p[128|l&63]}B+=F.join("")}return B},v=function(c){for(var u=[{obj:{o:c},prop:"o"}],b=[],w=0;w<u.length;++w)for(var A=u[w],O=A.obj[A.prop],B=Object.keys(O),x=0;x<B.length;++x){var $=B[x],F=O[$];typeof F=="object"&&F!==null&&b.indexOf(F)===-1&&(u.push({obj:O,prop:$}),b.push(F))}return a(u),c},d=function(c){return Object.prototype.toString.call(c)==="[object RegExp]"},i=function(c){return!c||typeof c!="object"?!1:!!(c.constructor&&c.constructor.isBuffer&&c.constructor.isBuffer(c))},o=function(c,u){return[].concat(c,u)},_=function(c,u){if(m(c)){for(var b=[],w=0;w<c.length;w+=1)b.push(u(c[w]));return b}return u(c)};return Ar={arrayToObject:E,assign:S,combine:o,compact:v,decode:P,encode:h,isBuffer:i,isRegExp:d,maybeMap:_,merge:k},Ar}var Er,Nt;function kn(){if(Nt)return Er;Nt=1;var t=Pn(),s=Dt(),m=br(),p=Object.prototype.hasOwnProperty,a={brackets:function(f){return f+"[]"},comma:"comma",indices:function(f,c){return f+"["+c+"]"},repeat:function(f){return f}},E=Array.isArray,k=Array.prototype.push,S=function(_,f){k.apply(_,E(f)?f:[f])},P=Date.prototype.toISOString,g=m.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:s.encode,encodeValuesOnly:!1,filter:void 0,format:g,formatter:m.formatters[g],indices:!1,serializeDate:function(f){return P.call(f)},skipNulls:!1,strictNullHandling:!1},v=function(f){return typeof f=="string"||typeof f=="number"||typeof f=="boolean"||typeof f=="symbol"||typeof f=="bigint"},d={},i=function _(f,c,u,b,w,A,O,B,x,$,F,y,l,C,D,L,G,Z){for(var N=f,K=Z,ne=0,ie=!1;(K=K.get(d))!==void 0&&!ie;){var le=K.get(f);if(ne+=1,typeof le<"u"){if(le===ne)throw new RangeError("Cyclic object value");ie=!0}typeof K.get(d)>"u"&&(ne=0)}if(typeof $=="function"?N=$(c,N):N instanceof Date?N=l(N):u==="comma"&&E(N)&&(N=s.maybeMap(N,function(re){return re instanceof Date?l(re):re})),N===null){if(A)return x&&!L?x(c,h.encoder,G,"key",C):c;N=""}if(v(N)||s.isBuffer(N)){if(x){var fe=L?c:x(c,h.encoder,G,"key",C);return[D(fe)+"="+D(x(N,h.encoder,G,"value",C))]}return[D(c)+"="+D(String(N))]}var R=[];if(typeof N>"u")return R;var J;if(u==="comma"&&E(N))L&&x&&(N=s.maybeMap(N,x)),J=[{value:N.length>0?N.join(",")||null:void 0}];else if(E($))J=$;else{var ee=Object.keys(N);J=F?ee.sort(F):ee}var ue=B?String(c).replace(/\./g,"%2E"):String(c),se=b&&E(N)&&N.length===1?ue+"[]":ue;if(w&&E(N)&&N.length===0)return se+"[]";for(var H=0;H<J.length;++H){var I=J[H],W=typeof I=="object"&&I&&typeof I.value<"u"?I.value:N[I];if(!(O&&W===null)){var V=y&&B?String(I).replace(/\./g,"%2E"):String(I),z=E(N)?typeof u=="function"?u(se,V):se:se+(y?"."+V:"["+V+"]");Z.set(f,ne);var j=t();j.set(d,Z),S(R,_(W,z,u,b,w,A,O,B,u==="comma"&&L&&E(N)?null:x,$,F,y,l,C,D,L,G,j))}}return R},o=function(f){if(!f)return h;if(typeof f.allowEmptyArrays<"u"&&typeof f.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof f.encodeDotInKeys<"u"&&typeof f.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(f.encoder!==null&&typeof f.encoder<"u"&&typeof f.encoder!="function")throw new TypeError("Encoder has to be a function.");var c=f.charset||h.charset;if(typeof f.charset<"u"&&f.charset!=="utf-8"&&f.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var u=m.default;if(typeof f.format<"u"){if(!p.call(m.formatters,f.format))throw new TypeError("Unknown format option provided.");u=f.format}var b=m.formatters[u],w=h.filter;(typeof f.filter=="function"||E(f.filter))&&(w=f.filter);var A;if(f.arrayFormat in a?A=f.arrayFormat:"indices"in f?A=f.indices?"indices":"repeat":A=h.arrayFormat,"commaRoundTrip"in f&&typeof f.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var O=typeof f.allowDots>"u"?f.encodeDotInKeys===!0?!0:h.allowDots:!!f.allowDots;return{addQueryPrefix:typeof f.addQueryPrefix=="boolean"?f.addQueryPrefix:h.addQueryPrefix,allowDots:O,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:A,charset:c,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!f.commaRoundTrip,delimiter:typeof f.delimiter>"u"?h.delimiter:f.delimiter,encode:typeof f.encode=="boolean"?f.encode:h.encode,encodeDotInKeys:typeof f.encodeDotInKeys=="boolean"?f.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof f.encoder=="function"?f.encoder:h.encoder,encodeValuesOnly:typeof f.encodeValuesOnly=="boolean"?f.encodeValuesOnly:h.encodeValuesOnly,filter:w,format:u,formatter:b,serializeDate:typeof f.serializeDate=="function"?f.serializeDate:h.serializeDate,skipNulls:typeof f.skipNulls=="boolean"?f.skipNulls:h.skipNulls,sort:typeof f.sort=="function"?f.sort:null,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:h.strictNullHandling}};return Er=function(_,f){var c=_,u=o(f),b,w;typeof u.filter=="function"?(w=u.filter,c=w("",c)):E(u.filter)&&(w=u.filter,b=w);var A=[];if(typeof c!="object"||c===null)return"";var O=a[u.arrayFormat],B=O==="comma"&&u.commaRoundTrip;b||(b=Object.keys(c)),u.sort&&b.sort(u.sort);for(var x=t(),$=0;$<b.length;++$){var F=b[$],y=c[F];u.skipNulls&&y===null||S(A,i(y,F,O,B,u.allowEmptyArrays,u.strictNullHandling,u.skipNulls,u.encodeDotInKeys,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,x))}var l=A.join(u.delimiter),C=u.addQueryPrefix===!0?"?":"";return u.charsetSentinel&&(u.charset==="iso-8859-1"?C+="utf8=%26%2310003%3B&":C+="utf8=%E2%9C%93&"),l.length>0?C+l:""},Er}var Or,qt;function Rn(){if(qt)return Or;qt=1;var t=Dt(),s=Object.prototype.hasOwnProperty,m=Array.isArray,p={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(d){return d.replace(/&#(\d+);/g,function(i,o){return String.fromCharCode(parseInt(o,10))})},E=function(d,i,o){if(d&&typeof d=="string"&&i.comma&&d.indexOf(",")>-1)return d.split(",");if(i.throwOnLimitExceeded&&o>=i.arrayLimit)throw new RangeError("Array limit exceeded. Only "+i.arrayLimit+" element"+(i.arrayLimit===1?"":"s")+" allowed in an array.");return d},k="utf8=%26%2310003%3B",S="utf8=%E2%9C%93",P=function(i,o){var _={__proto__:null},f=o.ignoreQueryPrefix?i.replace(/^\?/,""):i;f=f.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=o.parameterLimit===1/0?void 0:o.parameterLimit,u=f.split(o.delimiter,o.throwOnLimitExceeded?c+1:c);if(o.throwOnLimitExceeded&&u.length>c)throw new RangeError("Parameter limit exceeded. Only "+c+" parameter"+(c===1?"":"s")+" allowed.");var b=-1,w,A=o.charset;if(o.charsetSentinel)for(w=0;w<u.length;++w)u[w].indexOf("utf8=")===0&&(u[w]===S?A="utf-8":u[w]===k&&(A="iso-8859-1"),b=w,w=u.length);for(w=0;w<u.length;++w)if(w!==b){var O=u[w],B=O.indexOf("]="),x=B===-1?O.indexOf("="):B+1,$,F;x===-1?($=o.decoder(O,p.decoder,A,"key"),F=o.strictNullHandling?null:""):($=o.decoder(O.slice(0,x),p.decoder,A,"key"),F=t.maybeMap(E(O.slice(x+1),o,m(_[$])?_[$].length:0),function(l){return o.decoder(l,p.decoder,A,"value")})),F&&o.interpretNumericEntities&&A==="iso-8859-1"&&(F=a(String(F))),O.indexOf("[]=")>-1&&(F=m(F)?[F]:F);var y=s.call(_,$);y&&o.duplicates==="combine"?_[$]=t.combine(_[$],F):(!y||o.duplicates==="last")&&(_[$]=F)}return _},g=function(d,i,o,_){var f=0;if(d.length>0&&d[d.length-1]==="[]"){var c=d.slice(0,-1).join("");f=Array.isArray(i)&&i[c]?i[c].length:0}for(var u=_?i:E(i,o,f),b=d.length-1;b>=0;--b){var w,A=d[b];if(A==="[]"&&o.parseArrays)w=o.allowEmptyArrays&&(u===""||o.strictNullHandling&&u===null)?[]:t.combine([],u);else{w=o.plainObjects?{__proto__:null}:{};var O=A.charAt(0)==="["&&A.charAt(A.length-1)==="]"?A.slice(1,-1):A,B=o.decodeDotInKeys?O.replace(/%2E/g,"."):O,x=parseInt(B,10);!o.parseArrays&&B===""?w={0:u}:!isNaN(x)&&A!==B&&String(x)===B&&x>=0&&o.parseArrays&&x<=o.arrayLimit?(w=[],w[x]=u):B!=="__proto__"&&(w[B]=u)}u=w}return u},h=function(i,o,_,f){if(i){var c=_.allowDots?i.replace(/\.([^.[]+)/g,"[$1]"):i,u=/(\[[^[\]]*])/,b=/(\[[^[\]]*])/g,w=_.depth>0&&u.exec(c),A=w?c.slice(0,w.index):c,O=[];if(A){if(!_.plainObjects&&s.call(Object.prototype,A)&&!_.allowPrototypes)return;O.push(A)}for(var B=0;_.depth>0&&(w=b.exec(c))!==null&&B<_.depth;){if(B+=1,!_.plainObjects&&s.call(Object.prototype,w[1].slice(1,-1))&&!_.allowPrototypes)return;O.push(w[1])}if(w){if(_.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+_.depth+" and strictDepth is true");O.push("["+c.slice(w.index)+"]")}return g(O,o,_,f)}},v=function(i){if(!i)return p;if(typeof i.allowEmptyArrays<"u"&&typeof i.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof i.decodeDotInKeys<"u"&&typeof i.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(i.decoder!==null&&typeof i.decoder<"u"&&typeof i.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof i.charset<"u"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof i.throwOnLimitExceeded<"u"&&typeof i.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var o=typeof i.charset>"u"?p.charset:i.charset,_=typeof i.duplicates>"u"?p.duplicates:i.duplicates;if(_!=="combine"&&_!=="first"&&_!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var f=typeof i.allowDots>"u"?i.decodeDotInKeys===!0?!0:p.allowDots:!!i.allowDots;return{allowDots:f,allowEmptyArrays:typeof i.allowEmptyArrays=="boolean"?!!i.allowEmptyArrays:p.allowEmptyArrays,allowPrototypes:typeof i.allowPrototypes=="boolean"?i.allowPrototypes:p.allowPrototypes,allowSparse:typeof i.allowSparse=="boolean"?i.allowSparse:p.allowSparse,arrayLimit:typeof i.arrayLimit=="number"?i.arrayLimit:p.arrayLimit,charset:o,charsetSentinel:typeof i.charsetSentinel=="boolean"?i.charsetSentinel:p.charsetSentinel,comma:typeof i.comma=="boolean"?i.comma:p.comma,decodeDotInKeys:typeof i.decodeDotInKeys=="boolean"?i.decodeDotInKeys:p.decodeDotInKeys,decoder:typeof i.decoder=="function"?i.decoder:p.decoder,delimiter:typeof i.delimiter=="string"||t.isRegExp(i.delimiter)?i.delimiter:p.delimiter,depth:typeof i.depth=="number"||i.depth===!1?+i.depth:p.depth,duplicates:_,ignoreQueryPrefix:i.ignoreQueryPrefix===!0,interpretNumericEntities:typeof i.interpretNumericEntities=="boolean"?i.interpretNumericEntities:p.interpretNumericEntities,parameterLimit:typeof i.parameterLimit=="number"?i.parameterLimit:p.parameterLimit,parseArrays:i.parseArrays!==!1,plainObjects:typeof i.plainObjects=="boolean"?i.plainObjects:p.plainObjects,strictDepth:typeof i.strictDepth=="boolean"?!!i.strictDepth:p.strictDepth,strictNullHandling:typeof i.strictNullHandling=="boolean"?i.strictNullHandling:p.strictNullHandling,throwOnLimitExceeded:typeof i.throwOnLimitExceeded=="boolean"?i.throwOnLimitExceeded:!1}};return Or=function(d,i){var o=v(i);if(d===""||d===null||typeof d>"u")return o.plainObjects?{__proto__:null}:{};for(var _=typeof d=="string"?P(d,o):d,f=o.plainObjects?{__proto__:null}:{},c=Object.keys(_),u=0;u<c.length;++u){var b=c[u],w=h(b,_[b],o,typeof d=="string");f=t.merge(f,w,o)}return o.allowSparse===!0?f:t.compact(f)},Or}var Cr,$t;function xn(){if($t)return Cr;$t=1;var t=kn(),s=Rn(),m=br();return Cr={formats:m,parse:s,stringify:t},Cr}var Fn=xn();const Dn=Zt(Fn),ge=Kt.create({baseURL:"",timeout:1e4,paramsSerializer:{serialize:t=>Dn.stringify(t,{arrayFormat:"repeat"})}});ge.interceptors.request.use(t=>{const s=localStorage.getItem("token");return s&&(t.headers.Authorization="Bearer "+s),t},t=>(console.log(t),Promise.reject(t))),ge.interceptors.response.use(t=>{const s=t.data;return s.code!==200?(me.ElMessage({message:s.msg||"Error",type:"error",duration:5*1e3}),(s.code===401||s.code===403)&&me.ElMessageBox.confirm("您的登录状态已失效,请重新登录","确认登出",{confirmButtonText:"重新登录",cancelButtonText:"取消",type:"warning"}).then(()=>{localStorage.removeItem("token"),location.reload()}),Promise.reject(new Error(s.msg||"Error"))):s},t=>(console.log("HTTP Error: "+t),me.ElMessage({message:"网络错误,请检查您的网络连接或联系管理员",type:"error",duration:5*1e3}),Promise.reject(t)));function Nn(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}const qn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const $n=qn?window:void 0;function It(t){var s;const m=e.toValue(t);return(s=m==null?void 0:m.$el)!=null?s:m}function In(){const t=e.shallowRef(!1),s=e.getCurrentInstance();return s&&e.onMounted(()=>{t.value=!0},s),t}function Tn(t){const s=In();return e.computed(()=>(s.value,!!t()))}function Vn(t,s,m={}){const{window:p=$n,...a}=m;let E;const k=Tn(()=>p&&"ResizeObserver"in p),S=()=>{E&&(E.disconnect(),E=void 0)},P=e.computed(()=>{const v=e.toValue(t);return Array.isArray(v)?v.map(d=>It(d)):[It(v)]}),g=e.watch(P,v=>{if(S(),k.value&&p){E=new ResizeObserver(s);for(const d of v)d&&E.observe(d,a)}},{immediate:!0,flush:"post"}),h=()=>{S(),g()};return Nn(h),{isSupported:k,stop:h}}const Mn=e.defineComponent({__name:"TableHeaderWithTooltip",props:{label:{},placement:{}},setup(t){const s=e.ref(null),m=e.ref(!1),p=()=>{s.value&&(m.value=s.value.scrollWidth>s.value.clientWidth)};return e.onMounted(()=>{p()}),Vn(s,()=>{p()}),(a,E)=>{const k=e.resolveComponent("el-tooltip");return m.value?(e.openBlock(),e.createBlock(k,{key:1,content:a.label,placement:a.placement||"top"},{default:e.withCtx(()=>[e.createElementVNode("span",{ref_key:"textRef",ref:s,class:"header-cell-content"},e.toDisplayString(a.label),513)]),_:1},8,["content","placement"])):(e.openBlock(),e.createElementBlock("span",{key:0,ref_key:"textRef",ref:s,class:"header-cell-content"},e.toDisplayString(a.label),513))}}}),Tt=(t,s)=>{const m=t.__vccOpts||t;for(const[p,a]of s)m[p]=a;return m},Un=Tt(Mn,[["__scopeId","data-v-d23c8660"]]),Ln={key:0,class:"search-section-wrapper"},Wn={class:"flex flex-wrap items-center justify-between gap-4"},zn={class:"flex items-center gap-x-2"},Gn={class:"flex items-center gap-x-3 action-buttons flex-shrink-0"},Hn={class:"table-content-wrapper"},jn={key:1},Qn={key:0,class:"flex items-center gap-x-2"},Kn={key:1,class:"pagination-wrapper flex justify-end mt-2"},Jn={style:{"overflow-y":"auto",flex:"1"}},Yn={class:"dialog-footer"},Zn={class:"flex items-center"},Xn={class:"el-dialog__title"},eo={style:{"overflow-y":"auto",flex:"1"}},ro={class:"dialog-footer"},to=Tt(e.defineComponent({__name:"CrudTable",props:{theme:{type:String,default:"default"},customClass:{type:String,default:""},apiUrlQuery:{type:String,required:!0},apiUrlDetail:{type:String,required:!0},apiUrlCreate:{type:String,required:!0},apiUrlUpdate:{type:String,required:!0},apiUrlDelete:{type:String,required:!0},loadingText:{type:String,default:"加载中…"},loadingBackground:{type:String,default:"rgba(0, 0, 0, 0.3)"},showSearchSection:{type:Boolean,default:!0},showSearchActionButtons:{type:Boolean,default:!0},showSearchButton:{type:Boolean,default:!0},showClearButton:{type:Boolean,default:!0},showNewBtn:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},onBeforeQuery:{type:Function},onAfterQuery:{type:Function},onBeforeOpenDialog:{type:Function},onAfterOpenDialog:{type:Function},onBeforeSubmit:{type:Function},onAfterSubmit:{type:Function},onBeforeDelete:{type:Function},onAfterDelete:{type:Function},showSelectionColumn:{type:Boolean,default:!0},showIndexColumn:{type:Boolean,default:!0},showActionsColumn:{type:Boolean,default:!0},showEditButton:{type:Boolean,default:!0},showDeleteButton:{type:Boolean,default:!0},showViewButton:{type:Boolean,default:!1},actionsColumnWidth:{type:[String,Number],default:120},dialogWidth:{type:String,default:"50%"},initialSearchForm:{type:Object,default:()=>({pageNum:1,pageSize:10})},showPagination:{type:Boolean,default:!0},pageSizes:{type:Array,default:()=>[10,20,50,100]},paginationLayout:{type:String,default:"total, sizes, prev, pager, next, jumper"},paginationBackground:{type:Boolean,default:!0},paginationSmall:{type:Boolean,default:!1},paginationHideOnSinglePage:{type:Boolean,default:!1},dialogFormConfig:{type:Array,default:()=>[]},dialogFormRules:{type:Object,default:()=>({})},dialogFormLabelWidth:{type:String,default:120},submitAsFormData:{type:Boolean,default:!1},dialogFullscreen:{type:Boolean,default:!1},addDialogTitle:{type:String,default:"新增"},editDialogTitle:{type:String,default:"编辑"}},emits:["open-dialog","submit","delete","update:initialSearchForm"],setup(t,{expose:s,emit:m}){const p=m,a=t,E=e.computed(()=>["crud-table-wrapper",`theme-${a.theme}`,a.customClass]),k=e.computed(()=>a.theme==="large-screen"?"large-screen-dialog":""),S=(y,l)=>y?!0:(me.ElMessage.error(`${l} prop is required.`),!1),P=async(y,l)=>{if(y==="view")return Promise.resolve();try{let C={...l};a.onBeforeSubmit&&(C=await a.onBeforeSubmit(C,y));let D=C;if(a.submitAsFormData){const L=new FormData;for(const G in C)if(Object.prototype.hasOwnProperty.call(C,G)){const Z=C[G];L.append(G,Z??"")}D=L}if(o.submitting=!0,y==="add"){if(!S(a.apiUrlCreate,"apiUrlCreate"))throw new Error("apiUrlCreate is not configured.");await ge.post(a.apiUrlCreate,D),me.ElMessage.success("新增成功")}else{if(!S(a.apiUrlUpdate,"apiUrlUpdate"))throw new Error("apiUrlUpdate is not configured.");await ge.put(a.apiUrlUpdate,D),me.ElMessage.success("更新成功")}return a.onAfterSubmit&&a.onAfterSubmit(y,C),p("submit",{mode:y,data:C}),o.visible&&(o.visible=!1),c(),Promise.resolve()}catch(C){return console.error("Submit failed:",C),Promise.reject(C)}finally{o.submitting=!1}},g=e.reactive({pageNum:1,pageSize:10,...a.initialSearchForm}),h=e.ref([]),v=e.ref(0),d=e.ref(!1),i=e.ref([]),o=e.reactive({visible:!1,loading:!1,submitting:!1,mode:"add",data:{},formRef:null}),_=e.computed(()=>o.mode==="add"?a.addDialogTitle:a.editDialogTitle),f=e.computed(()=>{if(o.mode==="add")return a.dialogFormConfig.filter(l=>l.prop!=="id");const y=[...a.dialogFormConfig.filter(l=>l.prop!=="id")];return y.some(l=>l.prop==="id")||y.unshift({type:"input-disabled",prop:"id",label:"用户ID"}),y}),c=async()=>{if(S(a.apiUrlQuery,"apiUrlQuery")){d.value=!0;try{let y={...g};a.onBeforeQuery&&(y=await a.onBeforeQuery(y));const l=await ge.get(a.apiUrlQuery,{params:y});let C=[],D=0,L=!1;l!=null&&l.data&&Array.isArray(l.data.rows)?(C=l.data.rows,D=typeof l.data.total=="number"?l.data.total:C.length,L=!0):Array.isArray(l==null?void 0:l.data)?(C=l.data,D=l.data.length,L=!0):Array.isArray(l)&&(C=l,D=l.length,L=!0),L?(a.onAfterQuery&&(C=await a.onAfterQuery(C,y)),h.value=C,v.value=D):(console.warn("未识别的 API 响应格式,请检查 fetchData 中的兼容逻辑。",l),h.value=[],v.value=0)}catch(y){console.error("Fetch data failed:",y),h.value=[],v.value=0}finally{d.value=!1}}},u=()=>{g.pageNum=1,c()},b=()=>{const{pageNum:y,pageSize:l,...C}=a.initialSearchForm;Object.keys(g).forEach(D=>{D!=="pageNum"&&D!=="pageSize"&&delete g[D]}),Object.assign(g,C),u()},w=y=>{i.value=y},A=async(y,l)=>{let C;if(y==="add"?C=l?{...l}:{role:"user"}:C={...l},a.onBeforeOpenDialog){const D=await a.onBeforeOpenDialog(y,C);D&&(C=D)}if(o.mode=y,o.visible=!0,y==="edit"||y==="view"){if(!S(a.apiUrlDetail,"apiUrlDetail"))return;o.loading=!0;try{const D=await ge.get(a.apiUrlDetail+"/"+C.id.toString());o.data=D.data.data}finally{o.loading=!1,a.onAfterOpenDialog&&a.onAfterOpenDialog(y,o.data),p("open-dialog",{mode:y,data:o.data})}}else o.data=C,a.onAfterOpenDialog&&a.onAfterOpenDialog(y,o.data),p("open-dialog",{mode:y,data:o.data})},O=async()=>{if(o.mode!=="view")try{o.formRef?await o.formRef.validate():console.warn("Dialog form ref is not available for validation."),await P(o.mode,o.data)}catch(y){console.log("Validation or submit error:",y)}},B=async y=>{if(S(a.apiUrlDelete,"apiUrlDelete"))try{const l=h.value.filter(D=>y.includes(D.id));if(a.onBeforeDelete&&await a.onBeforeDelete(y,l)===!1)return;const C=y.join(",");await ge.delete(a.apiUrlDelete+"/"+C.toString()),me.ElMessage.success("删除成功"),a.onAfterDelete&&a.onAfterDelete(y,l),p("delete",y),h.value.length===y.length&&g.pageNum>1&&g.pageNum--,c()}catch(l){console.error("Delete failed",l)}},x=y=>{g.pageSize=y,u()},$=y=>{g.pageNum=y,c()};e.onMounted(c);const F=()=>{o.visible=!1};return e.watch(g,y=>{p("update:initialSearchForm",{...e.toRaw(y)})},{deep:!0}),e.watch(()=>a.initialSearchForm,y=>{Object.assign(g,y)},{deep:!0}),s({refresh:c,search:u,handleDelete:B,openDialog:A,submit:P,closeDialog:F}),(y,l)=>{const C=e.resolveComponent("el-button"),D=e.resolveComponent("el-form-item"),L=e.resolveComponent("el-form"),G=e.resolveComponent("el-table-column"),Z=e.resolveComponent("el-popconfirm"),N=e.resolveComponent("el-table"),K=e.resolveComponent("el-pagination"),ne=e.resolveComponent("el-skeleton"),ie=e.resolveComponent("el-dialog"),le=e.resolveComponent("el-icon"),fe=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([E.value,"crud-table-container"])},[a.showSearchSection?(e.openBlock(),e.createElementBlock("div",Ln,[e.renderSlot(y.$slots,"header",{},void 0,!0),e.createElementVNode("div",Wn,[e.createVNode(L,{model:g,class:"query-form flex flex-nowrap items-center gap-x-4",style:{"overflow-x":"auto","padding-bottom":"8px"}},{default:e.withCtx(()=>[e.renderSlot(y.$slots,"query-conditions",{searchForm:g},void 0,!0),e.createVNode(D,{class:"!mr-0 flex-shrink-0"},{default:e.withCtx(()=>[e.createElementVNode("div",zn,[e.renderSlot(y.$slots,"query-left",{searchForm:g},void 0,!0),a.showSearchActionButtons?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.showSearchButton?(e.openBlock(),e.createBlock(C,{key:0,color:"#336FFF",onClick:u,loading:d.value},{default:e.withCtx(()=>[...l[8]||(l[8]=[e.createTextVNode("搜索",-1)])]),_:1},8,["loading"])):e.createCommentVNode("",!0),a.showClearButton?(e.openBlock(),e.createBlock(C,{key:1,color:"#336FFF",plain:"",onClick:b},{default:e.withCtx(()=>[...l[9]||(l[9]=[e.createTextVNode("清空",-1)])]),_:1})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.renderSlot(y.$slots,"query-right",{searchForm:g},void 0,!0)])]),_:3})]),_:3},8,["model"]),e.createElementVNode("div",Gn,[e.renderSlot(y.$slots,"action-left",{selections:i.value},void 0,!0),e.renderSlot(y.$slots,"add-button-content",{selections:i.value},()=>[a.showNewBtn?(e.openBlock(),e.createBlock(C,{key:0,color:"#336FFF",onClick:l[0]||(l[0]=R=>A("add"))},{default:e.withCtx(()=>[...l[10]||(l[10]=[e.createTextVNode("新增",-1)])]),_:1})):e.createCommentVNode("",!0)],!0),e.renderSlot(y.$slots,"action-right",{selections:i.value},void 0,!0)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",Hn,[e.withDirectives((e.openBlock(),e.createBlock(N,e.mergeProps({data:h.value,"element-loading-text":a.loadingText,"element-loading-background":a.loadingBackground,onSelectionChange:w},y.$attrs,{height:"100%",style:{width:"100%"}}),{default:e.withCtx(()=>[a.showSelectionColumn?(e.openBlock(),e.createBlock(G,{key:0,type:"selection",width:"55",fixed:""})):e.createCommentVNode("",!0),a.showIndexColumn?(e.openBlock(),e.createBlock(G,{key:1,type:"index",label:"序号",width:"70",fixed:""})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.columns,R=>(e.openBlock(),e.createBlock(G,e.mergeProps({key:R.prop,prop:R.prop,label:R.label,width:R.width,sortable:R.sortable||!1},{ref_for:!0},R.attrs),e.createSlots({header:e.withCtx(()=>[R.headerTooltip?(e.openBlock(),e.createBlock(Un,{key:0,label:R.label,placement:R.placement},null,8,["label","placement"])):(e.openBlock(),e.createElementBlock("span",jn,e.toDisplayString(R.label),1))]),_:2},[R.slot?{name:"default",fn:e.withCtx(J=>[e.renderSlot(y.$slots,R.slot,{row:J.row},void 0,!0)]),key:"0"}:void 0]),1040,["prop","label","width","sortable"]))),128)),a.showActionsColumn?(e.openBlock(),e.createBlock(G,{key:2,label:"操作",width:t.actionsColumnWidth},{default:e.withCtx(R=>[R.row?(e.openBlock(),e.createElementBlock("div",Qn,[y.$slots.actions?e.renderSlot(y.$slots,"actions",{key:0,row:R.row},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(y.$slots,"action-before-edit",{row:R.row},void 0,!0),a.showViewButton?(e.openBlock(),e.createBlock(C,{key:0,size:"small",type:"success",link:"",onClick:J=>A("view",R.row)},{default:e.withCtx(()=>[...l[11]||(l[11]=[e.createTextVNode("查看 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),a.showEditButton?(e.openBlock(),e.createBlock(C,{key:1,size:"small",type:"primary",link:"",onClick:J=>A("edit",R.row)},{default:e.withCtx(()=>[...l[12]||(l[12]=[e.createTextVNode("编辑 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),a.showDeleteButton?(e.openBlock(),e.createBlock(Z,{key:2,title:"确定要删除这条数据吗?",onConfirm:J=>B([R.row.id]),"confirm-button-text":"确定","cancel-button-text":"取消",width:"200"},{reference:e.withCtx(()=>[e.createVNode(C,{size:"small",type:"danger",link:""},{default:e.withCtx(()=>[...l[13]||(l[13]=[e.createTextVNode("删除",-1)])]),_:1})]),_:1},8,["onConfirm"])):e.createCommentVNode("",!0),e.renderSlot(y.$slots,"action-after-delete",{row:R.row},void 0,!0)],64))])):e.createCommentVNode("",!0)]),_:3},8,["width"])):e.createCommentVNode("",!0)]),_:3},16,["data","element-loading-text","element-loading-background"])),[[fe,d.value]])]),a.showPagination&&v.value>0?(e.openBlock(),e.createElementBlock("div",Kn,[e.createVNode(K,{"current-page":g.pageNum,"onUpdate:currentPage":l[1]||(l[1]=R=>g.pageNum=R),"page-size":g.pageSize,"onUpdate:pageSize":l[2]||(l[2]=R=>g.pageSize=R),"page-sizes":a.pageSizes,layout:a.paginationLayout,total:v.value,background:a.paginationBackground,small:a.paginationSmall,"hide-on-single-page":a.paginationHideOnSinglePage,onSizeChange:x,onCurrentChange:$},null,8,["current-page","page-size","page-sizes","layout","total","background","small","hide-on-single-page"])])):e.createCommentVNode("",!0),a.dialogFullscreen?(e.openBlock(),e.createBlock(ie,{key:3,modelValue:o.visible,"onUpdate:modelValue":l[7]||(l[7]=R=>o.visible=R),fullscreen:!0,width:a.dialogWidth,"destroy-on-close":!0,modal:!a.dialogFullscreen,"custom-class":k.value,"show-close":!1,style:{display:"flex","flex-direction":"column","max-height":"100vh"}},{header:e.withCtx(()=>[e.createElementVNode("div",Zn,[e.createVNode(C,{type:"info",text:"",onClick:l[5]||(l[5]=R=>o.visible=!1),style:{"margin-right":"12px"}},{default:e.withCtx(()=>[e.createVNode(le,{size:"20"},{default:e.withCtx(()=>[e.createVNode(e.unref(Yt))]),_:1})]),_:1}),e.createElementVNode("span",Xn,e.toDisplayString(_.value),1)])]),footer:e.withCtx(()=>[e.renderSlot(y.$slots,"dialog-footer",{dialog:o,submit:O,cancel:()=>o.visible=!1},()=>[e.createElementVNode("span",ro,[e.createVNode(C,{color:"#336FFF",plain:"",onClick:l[6]||(l[6]=R=>o.visible=!1)},{default:e.withCtx(()=>[...l[16]||(l[16]=[e.createTextVNode("取消",-1)])]),_:1}),o.mode!=="view"?(e.openBlock(),e.createBlock(C,{key:0,color:"#336FFF",onClick:O,loading:o.submitting},{default:e.withCtx(()=>[...l[17]||(l[17]=[e.createTextVNode(" 确定 ",-1)])]),_:1},8,["loading"])):e.createCommentVNode("",!0)])],!0)]),default:e.withCtx(()=>[e.createElementVNode("div",eo,[y.$slots["dialog-form"]?e.renderSlot(y.$slots,"dialog-form",{key:0,formData:o.data,mode:o.mode,formRef:R=>{o.formRef=R}},void 0,!0):o.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(qr,{key:1,ref:R=>{o.formRef=R},"model-value":o.data,"form-config":f.value,rules:a.dialogFormRules,"label-width":a.dialogFormLabelWidth,disabled:o.mode==="view"},null,8,["model-value","form-config","rules","label-width","disabled"]))])]),_:3},8,["modelValue","width","modal","custom-class"])):(e.openBlock(),e.createBlock(ie,{key:2,modelValue:o.visible,"onUpdate:modelValue":l[4]||(l[4]=R=>o.visible=R),title:_.value,width:a.dialogWidth,"destroy-on-close":!0,"custom-class":k.value,style:{display:"flex","flex-direction":"column","max-height":"80vh"}},{footer:e.withCtx(()=>[e.renderSlot(y.$slots,"dialog-footer",{dialog:o,submit:O,cancel:()=>o.visible=!1},()=>[e.createElementVNode("span",Yn,[e.createVNode(C,{color:"#336FFF",onClick:l[3]||(l[3]=R=>o.visible=!1)},{default:e.withCtx(()=>[...l[14]||(l[14]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(C,{color:"#336FFF",onClick:O,loading:o.submitting},{default:e.withCtx(()=>[...l[15]||(l[15]=[e.createTextVNode(" 确定 ",-1)])]),_:1},8,["loading"])])],!0)]),default:e.withCtx(()=>[e.createElementVNode("div",Jn,[y.$slots["dialog-form"]?e.renderSlot(y.$slots,"dialog-form",{key:0,formData:o.data,mode:o.mode,formRef:R=>{o.formRef=R}},void 0,!0):o.loading?(e.openBlock(),e.createBlock(ne,{key:1,rows:5,animated:""})):o.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(qr,{key:2,ref:R=>{o.formRef=R},"model-value":o.data,"form-config":f.value,rules:a.dialogFormRules,"label-width":a.dialogFormLabelWidth,disabled:o.mode==="view"},null,8,["model-value","form-config","rules","label-width","disabled"]))])]),_:3},8,["modelValue","title","width","custom-class"]))],2)}}}),[["__scopeId","data-v-d80317e7"]]);ce.CrudTable=to,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"})}));
5
+ `+n.prev}function ke(r,n){var T=ue(r),M=[];if(T){M.length=r.length;for(var U=0;U<r.length;U++)M[U]=Y(r,U)?n(r[U],r):""}var q=typeof l=="function"?l(r):[],de;if(D){de={};for(var he=0;he<q.length;he++)de["$"+q[he]]=q[he]}for(var X in r)Y(r,X)&&(T&&String(Number(X))===X&&X<r.length||D&&de["$"+X]instanceof Symbol||(O.call(/[^\w$]/,X)?M.push(n(X,r)+": "+n(r[X],r)):M.push(X+": "+n(r[X],r))));if(typeof l=="function")for(var ye=0;ye<q.length;ye++)G.call(r,q[ye])&&M.push("["+n(q[ye])+"]: "+n(r[q[ye]],r));return M}return De}var Ne,Vr;function rn(){if(Vr)return Ne;Vr=1;var t=Be(),s=ve(),m=function(S,P,g){for(var h=S,v;(v=h.next)!=null;h=v)if(v.key===P)return h.next=v.next,g||(v.next=S.next,S.next=v),v},p=function(S,P){if(S){var g=m(S,P);return g&&g.value}},a=function(S,P,g){var h=m(S,P);h?h.value=g:S.next={key:P,next:S.next,value:g}},E=function(S,P){return S?!!m(S,P):!1},k=function(S,P){if(S)return m(S,P,!0)};return Ne=function(){var P,g={assert:function(h){if(!g.has(h))throw new s("Side channel does not contain "+t(h))},delete:function(h){var v=P&&P.next,y=k(P,h);return y&&v&&v===y&&(P=void 0),!!y},get:function(h){return p(P,h)},has:function(h){return E(P,h)},set:function(h,v){P||(P={next:void 0}),a(P,h,v)}};return g},Ne}var qe,Mr;function Ur(){return Mr||(Mr=1,qe=Object),qe}var $e,Lr;function tn(){return Lr||(Lr=1,$e=Error),$e}var Ie,Wr;function nn(){return Wr||(Wr=1,Ie=EvalError),Ie}var Te,zr;function on(){return zr||(zr=1,Te=RangeError),Te}var Ve,Gr;function an(){return Gr||(Gr=1,Ve=ReferenceError),Ve}var Me,jr;function ln(){return jr||(jr=1,Me=SyntaxError),Me}var Ue,Hr;function fn(){return Hr||(Hr=1,Ue=URIError),Ue}var Le,Qr;function cn(){return Qr||(Qr=1,Le=Math.abs),Le}var We,Kr;function un(){return Kr||(Kr=1,We=Math.floor),We}var ze,Jr;function sn(){return Jr||(Jr=1,ze=Math.max),ze}var Ge,Yr;function pn(){return Yr||(Yr=1,Ge=Math.min),Ge}var je,Zr;function dn(){return Zr||(Zr=1,je=Math.pow),je}var He,Xr;function yn(){return Xr||(Xr=1,He=Math.round),He}var Qe,et;function mn(){return et||(et=1,Qe=Number.isNaN||function(s){return s!==s}),Qe}var Ke,rt;function gn(){if(rt)return Ke;rt=1;var t=mn();return Ke=function(m){return t(m)||m===0?m:m<0?-1:1},Ke}var Je,tt;function hn(){return tt||(tt=1,Je=Object.getOwnPropertyDescriptor),Je}var Ye,nt;function ot(){if(nt)return Ye;nt=1;var t=hn();if(t)try{t([],"length")}catch{t=null}return Ye=t,Ye}var Ze,at;function vn(){if(at)return Ze;at=1;var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return Ze=t,Ze}var Xe,it;function wn(){return it||(it=1,Xe=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},m=Symbol("test"),p=Object(m);if(typeof m=="string"||Object.prototype.toString.call(m)!=="[object Symbol]"||Object.prototype.toString.call(p)!=="[object Symbol]")return!1;var a=42;s[m]=a;for(var E in s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var k=Object.getOwnPropertySymbols(s);if(k.length!==1||k[0]!==m||!Object.prototype.propertyIsEnumerable.call(s,m))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var S=Object.getOwnPropertyDescriptor(s,m);if(S.value!==a||S.enumerable!==!0)return!1}return!0}),Xe}var er,lt;function Sn(){if(lt)return er;lt=1;var t=typeof Symbol<"u"&&Symbol,s=wn();return er=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:s()},er}var rr,ft;function ct(){return ft||(ft=1,rr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),rr}var tr,ut;function st(){if(ut)return tr;ut=1;var t=Ur();return tr=t.getPrototypeOf||null,tr}var nr,pt;function bn(){if(pt)return nr;pt=1;var t="Function.prototype.bind called on incompatible ",s=Object.prototype.toString,m=Math.max,p="[object Function]",a=function(P,g){for(var h=[],v=0;v<P.length;v+=1)h[v]=P[v];for(var y=0;y<g.length;y+=1)h[y+P.length]=g[y];return h},E=function(P,g){for(var h=[],v=g,y=0;v<P.length;v+=1,y+=1)h[y]=P[v];return h},k=function(S,P){for(var g="",h=0;h<S.length;h+=1)g+=S[h],h+1<S.length&&(g+=P);return g};return nr=function(P){var g=this;if(typeof g!="function"||s.apply(g)!==p)throw new TypeError(t+g);for(var h=E(arguments,1),v,y=function(){if(this instanceof v){var c=g.apply(this,a(h,arguments));return Object(c)===c?c:this}return g.apply(P,a(h,arguments))},i=m(0,g.length-h.length),o=[],_=0;_<i;_++)o[_]="$"+_;if(v=Function("binder","return function ("+k(o,",")+"){ return binder.apply(this,arguments); }")(y),g.prototype){var f=function(){};f.prototype=g.prototype,v.prototype=new f,f.prototype=null}return v},nr}var or,dt;function Pe(){if(dt)return or;dt=1;var t=bn();return or=Function.prototype.bind||t,or}var ar,yt;function ir(){return yt||(yt=1,ar=Function.prototype.call),ar}var lr,mt;function gt(){return mt||(mt=1,lr=Function.prototype.apply),lr}var fr,ht;function An(){return ht||(ht=1,fr=typeof Reflect<"u"&&Reflect&&Reflect.apply),fr}var cr,vt;function En(){if(vt)return cr;vt=1;var t=Pe(),s=gt(),m=ir(),p=An();return cr=p||t.call(m,s),cr}var ur,wt;function St(){if(wt)return ur;wt=1;var t=Pe(),s=ve(),m=ir(),p=En();return ur=function(E){if(E.length<1||typeof E[0]!="function")throw new s("a function is required");return p(t,m,E)},ur}var sr,bt;function On(){if(bt)return sr;bt=1;var t=St(),s=ot(),m;try{m=[].__proto__===Array.prototype}catch(k){if(!k||typeof k!="object"||!("code"in k)||k.code!=="ERR_PROTO_ACCESS")throw k}var p=!!m&&s&&s(Object.prototype,"__proto__"),a=Object,E=a.getPrototypeOf;return sr=p&&typeof p.get=="function"?t([p.get]):typeof E=="function"?function(S){return E(S==null?S:a(S))}:!1,sr}var pr,At;function Cn(){if(At)return pr;At=1;var t=ct(),s=st(),m=On();return pr=t?function(a){return t(a)}:s?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return s(a)}:m?function(a){return m(a)}:null,pr}var dr,Et;function _n(){if(Et)return dr;Et=1;var t=Function.prototype.call,s=Object.prototype.hasOwnProperty,m=Pe();return dr=m.call(t,s),dr}var yr,Ot;function mr(){if(Ot)return yr;Ot=1;var t,s=Ur(),m=tn(),p=nn(),a=on(),E=an(),k=ln(),S=ve(),P=fn(),g=cn(),h=un(),v=sn(),y=pn(),i=dn(),o=yn(),_=gn(),f=Function,c=function(j){try{return f('"use strict"; return ('+j+").constructor;")()}catch{}},u=ot(),b=vn(),w=function(){throw new S},A=u?(function(){try{return arguments.callee,w}catch{try{return u(arguments,"callee").get}catch{return w}}})():w,O=Sn()(),B=Cn(),x=st(),$=ct(),F=gt(),d=ir(),l={},C=typeof Uint8Array>"u"||!B?t:B(Uint8Array),D={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":O&&B?B([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":l,"%AsyncGenerator%":l,"%AsyncGeneratorFunction%":l,"%AsyncIteratorPrototype%":l,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":m,"%eval%":eval,"%EvalError%":p,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":l,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&B?B(B([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!O||!B?t:B(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":s,"%Object.getOwnPropertyDescriptor%":u,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":a,"%ReferenceError%":E,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!O||!B?t:B(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&B?B(""[Symbol.iterator]()):t,"%Symbol%":O?Symbol:t,"%SyntaxError%":k,"%ThrowTypeError%":A,"%TypedArray%":C,"%TypeError%":S,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":P,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":d,"%Function.prototype.apply%":F,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":x,"%Math.abs%":g,"%Math.floor%":h,"%Math.max%":v,"%Math.min%":y,"%Math.pow%":i,"%Math.round%":o,"%Math.sign%":_,"%Reflect.getPrototypeOf%":$};if(B)try{null.error}catch(j){var L=B(B(j));D["%Error.prototype%"]=L}var G=function j(I){var W;if(I==="%AsyncFunction%")W=c("async function () {}");else if(I==="%GeneratorFunction%")W=c("function* () {}");else if(I==="%AsyncGeneratorFunction%")W=c("async function* () {}");else if(I==="%AsyncGenerator%"){var V=j("%AsyncGeneratorFunction%");V&&(W=V.prototype)}else if(I==="%AsyncIteratorPrototype%"){var z=j("%AsyncGenerator%");z&&B&&(W=B(z.prototype))}return D[I]=W,W},Z={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=Pe(),K=_n(),ne=N.call(d,Array.prototype.concat),ie=N.call(F,Array.prototype.splice),le=N.call(d,String.prototype.replace),fe=N.call(d,String.prototype.slice),R=N.call(d,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ee=/\\(\\)?/g,ue=function(I){var W=fe(I,0,1),V=fe(I,-1);if(W==="%"&&V!=="%")throw new k("invalid intrinsic syntax, expected closing `%`");if(V==="%"&&W!=="%")throw new k("invalid intrinsic syntax, expected opening `%`");var z=[];return le(I,J,function(H,re,Q,Y){z[z.length]=Q?le(Y,ee,"$1"):re||H}),z},se=function(I,W){var V=I,z;if(K(Z,V)&&(z=Z[V],V="%"+z[0]+"%"),K(D,V)){var H=D[V];if(H===l&&(H=G(V)),typeof H>"u"&&!W)throw new S("intrinsic "+I+" exists, but is not available. Please file an issue!");return{alias:z,name:V,value:H}}throw new k("intrinsic "+I+" does not exist!")};return yr=function(I,W){if(typeof I!="string"||I.length===0)throw new S("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof W!="boolean")throw new S('"allowMissing" argument must be a boolean');if(R(/^%?[^%]*%?$/,I)===null)throw new k("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var V=ue(I),z=V.length>0?V[0]:"",H=se("%"+z+"%",W),re=H.name,Q=H.value,Y=!1,te=H.alias;te&&(z=te[0],ie(V,ne([0,1],te)));for(var we=1,pe=!0;we<V.length;we+=1){var oe=V[we],Se=fe(oe,0,1),be=fe(oe,-1);if((Se==='"'||Se==="'"||Se==="`"||be==='"'||be==="'"||be==="`")&&Se!==be)throw new k("property names with quotes must have matching quotes");if((oe==="constructor"||!pe)&&(Y=!0),z+="."+oe,re="%"+z+"%",K(D,re))Q=D[re];else if(Q!=null){if(!(oe in Q)){if(!W)throw new S("base intrinsic for "+I+" exists, but the property is not available.");return}if(u&&we+1>=V.length){var Ae=u(Q,oe);pe=!!Ae,pe&&"get"in Ae&&!("originalValue"in Ae.get)?Q=Ae.get:Q=Q[oe]}else pe=K(Q,oe),Q=Q[oe];pe&&!Y&&(D[re]=Q)}}return Q},yr}var gr,Ct;function _t(){if(Ct)return gr;Ct=1;var t=mr(),s=St(),m=s([t("%String.prototype.indexOf%")]);return gr=function(a,E){var k=t(a,!!E);return typeof k=="function"&&m(a,".prototype.")>-1?s([k]):k},gr}var hr,Bt;function Pt(){if(Bt)return hr;Bt=1;var t=mr(),s=_t(),m=Be(),p=ve(),a=t("%Map%",!0),E=s("Map.prototype.get",!0),k=s("Map.prototype.set",!0),S=s("Map.prototype.has",!0),P=s("Map.prototype.delete",!0),g=s("Map.prototype.size",!0);return hr=!!a&&function(){var v,y={assert:function(i){if(!y.has(i))throw new p("Side channel does not contain "+m(i))},delete:function(i){if(v){var o=P(v,i);return g(v)===0&&(v=void 0),o}return!1},get:function(i){if(v)return E(v,i)},has:function(i){return v?S(v,i):!1},set:function(i,o){v||(v=new a),k(v,i,o)}};return y},hr}var vr,kt;function Bn(){if(kt)return vr;kt=1;var t=mr(),s=_t(),m=Be(),p=Pt(),a=ve(),E=t("%WeakMap%",!0),k=s("WeakMap.prototype.get",!0),S=s("WeakMap.prototype.set",!0),P=s("WeakMap.prototype.has",!0),g=s("WeakMap.prototype.delete",!0);return vr=E?function(){var v,y,i={assert:function(o){if(!i.has(o))throw new a("Side channel does not contain "+m(o))},delete:function(o){if(E&&o&&(typeof o=="object"||typeof o=="function")){if(v)return g(v,o)}else if(p&&y)return y.delete(o);return!1},get:function(o){return E&&o&&(typeof o=="object"||typeof o=="function")&&v?k(v,o):y&&y.get(o)},has:function(o){return E&&o&&(typeof o=="object"||typeof o=="function")&&v?P(v,o):!!y&&y.has(o)},set:function(o,_){E&&o&&(typeof o=="object"||typeof o=="function")?(v||(v=new E),S(v,o,_)):p&&(y||(y=p()),y.set(o,_))}};return i}:p,vr}var wr,Rt;function Pn(){if(Rt)return wr;Rt=1;var t=ve(),s=Be(),m=rn(),p=Pt(),a=Bn(),E=a||p||m;return wr=function(){var S,P={assert:function(g){if(!P.has(g))throw new t("Side channel does not contain "+s(g))},delete:function(g){return!!S&&S.delete(g)},get:function(g){return S&&S.get(g)},has:function(g){return!!S&&S.has(g)},set:function(g,h){S||(S=E()),S.set(g,h)}};return P},wr}var Sr,xt;function br(){if(xt)return Sr;xt=1;var t=String.prototype.replace,s=/%20/g,m={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Sr={default:m.RFC3986,formatters:{RFC1738:function(p){return t.call(p,s,"+")},RFC3986:function(p){return String(p)}},RFC1738:m.RFC1738,RFC3986:m.RFC3986},Sr}var Ar,Ft;function Dt(){if(Ft)return Ar;Ft=1;var t=br(),s=Object.prototype.hasOwnProperty,m=Array.isArray,p=(function(){for(var f=[],c=0;c<256;++c)f.push("%"+((c<16?"0":"")+c.toString(16)).toUpperCase());return f})(),a=function(c){for(;c.length>1;){var u=c.pop(),b=u.obj[u.prop];if(m(b)){for(var w=[],A=0;A<b.length;++A)typeof b[A]<"u"&&w.push(b[A]);u.obj[u.prop]=w}}},E=function(c,u){for(var b=u&&u.plainObjects?{__proto__:null}:{},w=0;w<c.length;++w)typeof c[w]<"u"&&(b[w]=c[w]);return b},k=function f(c,u,b){if(!u)return c;if(typeof u!="object"&&typeof u!="function"){if(m(c))c.push(u);else if(c&&typeof c=="object")(b&&(b.plainObjects||b.allowPrototypes)||!s.call(Object.prototype,u))&&(c[u]=!0);else return[c,u];return c}if(!c||typeof c!="object")return[c].concat(u);var w=c;return m(c)&&!m(u)&&(w=E(c,b)),m(c)&&m(u)?(u.forEach(function(A,O){if(s.call(c,O)){var B=c[O];B&&typeof B=="object"&&A&&typeof A=="object"?c[O]=f(B,A,b):c.push(A)}else c[O]=A}),c):Object.keys(u).reduce(function(A,O){var B=u[O];return s.call(A,O)?A[O]=f(A[O],B,b):A[O]=B,A},w)},S=function(c,u){return Object.keys(u).reduce(function(b,w){return b[w]=u[w],b},c)},P=function(f,c,u){var b=f.replace(/\+/g," ");if(u==="iso-8859-1")return b.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(b)}catch{return b}},g=1024,h=function(c,u,b,w,A){if(c.length===0)return c;var O=c;if(typeof c=="symbol"?O=Symbol.prototype.toString.call(c):typeof c!="string"&&(O=String(c)),b==="iso-8859-1")return escape(O).replace(/%u[0-9a-f]{4}/gi,function(C){return"%26%23"+parseInt(C.slice(2),16)+"%3B"});for(var B="",x=0;x<O.length;x+=g){for(var $=O.length>=g?O.slice(x,x+g):O,F=[],d=0;d<$.length;++d){var l=$.charCodeAt(d);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||A===t.RFC1738&&(l===40||l===41)){F[F.length]=$.charAt(d);continue}if(l<128){F[F.length]=p[l];continue}if(l<2048){F[F.length]=p[192|l>>6]+p[128|l&63];continue}if(l<55296||l>=57344){F[F.length]=p[224|l>>12]+p[128|l>>6&63]+p[128|l&63];continue}d+=1,l=65536+((l&1023)<<10|$.charCodeAt(d)&1023),F[F.length]=p[240|l>>18]+p[128|l>>12&63]+p[128|l>>6&63]+p[128|l&63]}B+=F.join("")}return B},v=function(c){for(var u=[{obj:{o:c},prop:"o"}],b=[],w=0;w<u.length;++w)for(var A=u[w],O=A.obj[A.prop],B=Object.keys(O),x=0;x<B.length;++x){var $=B[x],F=O[$];typeof F=="object"&&F!==null&&b.indexOf(F)===-1&&(u.push({obj:O,prop:$}),b.push(F))}return a(u),c},y=function(c){return Object.prototype.toString.call(c)==="[object RegExp]"},i=function(c){return!c||typeof c!="object"?!1:!!(c.constructor&&c.constructor.isBuffer&&c.constructor.isBuffer(c))},o=function(c,u){return[].concat(c,u)},_=function(c,u){if(m(c)){for(var b=[],w=0;w<c.length;w+=1)b.push(u(c[w]));return b}return u(c)};return Ar={arrayToObject:E,assign:S,combine:o,compact:v,decode:P,encode:h,isBuffer:i,isRegExp:y,maybeMap:_,merge:k},Ar}var Er,Nt;function kn(){if(Nt)return Er;Nt=1;var t=Pn(),s=Dt(),m=br(),p=Object.prototype.hasOwnProperty,a={brackets:function(f){return f+"[]"},comma:"comma",indices:function(f,c){return f+"["+c+"]"},repeat:function(f){return f}},E=Array.isArray,k=Array.prototype.push,S=function(_,f){k.apply(_,E(f)?f:[f])},P=Date.prototype.toISOString,g=m.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:s.encode,encodeValuesOnly:!1,filter:void 0,format:g,formatter:m.formatters[g],indices:!1,serializeDate:function(f){return P.call(f)},skipNulls:!1,strictNullHandling:!1},v=function(f){return typeof f=="string"||typeof f=="number"||typeof f=="boolean"||typeof f=="symbol"||typeof f=="bigint"},y={},i=function _(f,c,u,b,w,A,O,B,x,$,F,d,l,C,D,L,G,Z){for(var N=f,K=Z,ne=0,ie=!1;(K=K.get(y))!==void 0&&!ie;){var le=K.get(f);if(ne+=1,typeof le<"u"){if(le===ne)throw new RangeError("Cyclic object value");ie=!0}typeof K.get(y)>"u"&&(ne=0)}if(typeof $=="function"?N=$(c,N):N instanceof Date?N=l(N):u==="comma"&&E(N)&&(N=s.maybeMap(N,function(re){return re instanceof Date?l(re):re})),N===null){if(A)return x&&!L?x(c,h.encoder,G,"key",C):c;N=""}if(v(N)||s.isBuffer(N)){if(x){var fe=L?c:x(c,h.encoder,G,"key",C);return[D(fe)+"="+D(x(N,h.encoder,G,"value",C))]}return[D(c)+"="+D(String(N))]}var R=[];if(typeof N>"u")return R;var J;if(u==="comma"&&E(N))L&&x&&(N=s.maybeMap(N,x)),J=[{value:N.length>0?N.join(",")||null:void 0}];else if(E($))J=$;else{var ee=Object.keys(N);J=F?ee.sort(F):ee}var ue=B?String(c).replace(/\./g,"%2E"):String(c),se=b&&E(N)&&N.length===1?ue+"[]":ue;if(w&&E(N)&&N.length===0)return se+"[]";for(var j=0;j<J.length;++j){var I=J[j],W=typeof I=="object"&&I&&typeof I.value<"u"?I.value:N[I];if(!(O&&W===null)){var V=d&&B?String(I).replace(/\./g,"%2E"):String(I),z=E(N)?typeof u=="function"?u(se,V):se:se+(d?"."+V:"["+V+"]");Z.set(f,ne);var H=t();H.set(y,Z),S(R,_(W,z,u,b,w,A,O,B,u==="comma"&&L&&E(N)?null:x,$,F,d,l,C,D,L,G,H))}}return R},o=function(f){if(!f)return h;if(typeof f.allowEmptyArrays<"u"&&typeof f.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof f.encodeDotInKeys<"u"&&typeof f.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(f.encoder!==null&&typeof f.encoder<"u"&&typeof f.encoder!="function")throw new TypeError("Encoder has to be a function.");var c=f.charset||h.charset;if(typeof f.charset<"u"&&f.charset!=="utf-8"&&f.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var u=m.default;if(typeof f.format<"u"){if(!p.call(m.formatters,f.format))throw new TypeError("Unknown format option provided.");u=f.format}var b=m.formatters[u],w=h.filter;(typeof f.filter=="function"||E(f.filter))&&(w=f.filter);var A;if(f.arrayFormat in a?A=f.arrayFormat:"indices"in f?A=f.indices?"indices":"repeat":A=h.arrayFormat,"commaRoundTrip"in f&&typeof f.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var O=typeof f.allowDots>"u"?f.encodeDotInKeys===!0?!0:h.allowDots:!!f.allowDots;return{addQueryPrefix:typeof f.addQueryPrefix=="boolean"?f.addQueryPrefix:h.addQueryPrefix,allowDots:O,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:A,charset:c,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!f.commaRoundTrip,delimiter:typeof f.delimiter>"u"?h.delimiter:f.delimiter,encode:typeof f.encode=="boolean"?f.encode:h.encode,encodeDotInKeys:typeof f.encodeDotInKeys=="boolean"?f.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof f.encoder=="function"?f.encoder:h.encoder,encodeValuesOnly:typeof f.encodeValuesOnly=="boolean"?f.encodeValuesOnly:h.encodeValuesOnly,filter:w,format:u,formatter:b,serializeDate:typeof f.serializeDate=="function"?f.serializeDate:h.serializeDate,skipNulls:typeof f.skipNulls=="boolean"?f.skipNulls:h.skipNulls,sort:typeof f.sort=="function"?f.sort:null,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:h.strictNullHandling}};return Er=function(_,f){var c=_,u=o(f),b,w;typeof u.filter=="function"?(w=u.filter,c=w("",c)):E(u.filter)&&(w=u.filter,b=w);var A=[];if(typeof c!="object"||c===null)return"";var O=a[u.arrayFormat],B=O==="comma"&&u.commaRoundTrip;b||(b=Object.keys(c)),u.sort&&b.sort(u.sort);for(var x=t(),$=0;$<b.length;++$){var F=b[$],d=c[F];u.skipNulls&&d===null||S(A,i(d,F,O,B,u.allowEmptyArrays,u.strictNullHandling,u.skipNulls,u.encodeDotInKeys,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,x))}var l=A.join(u.delimiter),C=u.addQueryPrefix===!0?"?":"";return u.charsetSentinel&&(u.charset==="iso-8859-1"?C+="utf8=%26%2310003%3B&":C+="utf8=%E2%9C%93&"),l.length>0?C+l:""},Er}var Or,qt;function Rn(){if(qt)return Or;qt=1;var t=Dt(),s=Object.prototype.hasOwnProperty,m=Array.isArray,p={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(y){return y.replace(/&#(\d+);/g,function(i,o){return String.fromCharCode(parseInt(o,10))})},E=function(y,i,o){if(y&&typeof y=="string"&&i.comma&&y.indexOf(",")>-1)return y.split(",");if(i.throwOnLimitExceeded&&o>=i.arrayLimit)throw new RangeError("Array limit exceeded. Only "+i.arrayLimit+" element"+(i.arrayLimit===1?"":"s")+" allowed in an array.");return y},k="utf8=%26%2310003%3B",S="utf8=%E2%9C%93",P=function(i,o){var _={__proto__:null},f=o.ignoreQueryPrefix?i.replace(/^\?/,""):i;f=f.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=o.parameterLimit===1/0?void 0:o.parameterLimit,u=f.split(o.delimiter,o.throwOnLimitExceeded?c+1:c);if(o.throwOnLimitExceeded&&u.length>c)throw new RangeError("Parameter limit exceeded. Only "+c+" parameter"+(c===1?"":"s")+" allowed.");var b=-1,w,A=o.charset;if(o.charsetSentinel)for(w=0;w<u.length;++w)u[w].indexOf("utf8=")===0&&(u[w]===S?A="utf-8":u[w]===k&&(A="iso-8859-1"),b=w,w=u.length);for(w=0;w<u.length;++w)if(w!==b){var O=u[w],B=O.indexOf("]="),x=B===-1?O.indexOf("="):B+1,$,F;x===-1?($=o.decoder(O,p.decoder,A,"key"),F=o.strictNullHandling?null:""):($=o.decoder(O.slice(0,x),p.decoder,A,"key"),F=t.maybeMap(E(O.slice(x+1),o,m(_[$])?_[$].length:0),function(l){return o.decoder(l,p.decoder,A,"value")})),F&&o.interpretNumericEntities&&A==="iso-8859-1"&&(F=a(String(F))),O.indexOf("[]=")>-1&&(F=m(F)?[F]:F);var d=s.call(_,$);d&&o.duplicates==="combine"?_[$]=t.combine(_[$],F):(!d||o.duplicates==="last")&&(_[$]=F)}return _},g=function(y,i,o,_){var f=0;if(y.length>0&&y[y.length-1]==="[]"){var c=y.slice(0,-1).join("");f=Array.isArray(i)&&i[c]?i[c].length:0}for(var u=_?i:E(i,o,f),b=y.length-1;b>=0;--b){var w,A=y[b];if(A==="[]"&&o.parseArrays)w=o.allowEmptyArrays&&(u===""||o.strictNullHandling&&u===null)?[]:t.combine([],u);else{w=o.plainObjects?{__proto__:null}:{};var O=A.charAt(0)==="["&&A.charAt(A.length-1)==="]"?A.slice(1,-1):A,B=o.decodeDotInKeys?O.replace(/%2E/g,"."):O,x=parseInt(B,10);!o.parseArrays&&B===""?w={0:u}:!isNaN(x)&&A!==B&&String(x)===B&&x>=0&&o.parseArrays&&x<=o.arrayLimit?(w=[],w[x]=u):B!=="__proto__"&&(w[B]=u)}u=w}return u},h=function(i,o,_,f){if(i){var c=_.allowDots?i.replace(/\.([^.[]+)/g,"[$1]"):i,u=/(\[[^[\]]*])/,b=/(\[[^[\]]*])/g,w=_.depth>0&&u.exec(c),A=w?c.slice(0,w.index):c,O=[];if(A){if(!_.plainObjects&&s.call(Object.prototype,A)&&!_.allowPrototypes)return;O.push(A)}for(var B=0;_.depth>0&&(w=b.exec(c))!==null&&B<_.depth;){if(B+=1,!_.plainObjects&&s.call(Object.prototype,w[1].slice(1,-1))&&!_.allowPrototypes)return;O.push(w[1])}if(w){if(_.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+_.depth+" and strictDepth is true");O.push("["+c.slice(w.index)+"]")}return g(O,o,_,f)}},v=function(i){if(!i)return p;if(typeof i.allowEmptyArrays<"u"&&typeof i.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof i.decodeDotInKeys<"u"&&typeof i.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(i.decoder!==null&&typeof i.decoder<"u"&&typeof i.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof i.charset<"u"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof i.throwOnLimitExceeded<"u"&&typeof i.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var o=typeof i.charset>"u"?p.charset:i.charset,_=typeof i.duplicates>"u"?p.duplicates:i.duplicates;if(_!=="combine"&&_!=="first"&&_!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var f=typeof i.allowDots>"u"?i.decodeDotInKeys===!0?!0:p.allowDots:!!i.allowDots;return{allowDots:f,allowEmptyArrays:typeof i.allowEmptyArrays=="boolean"?!!i.allowEmptyArrays:p.allowEmptyArrays,allowPrototypes:typeof i.allowPrototypes=="boolean"?i.allowPrototypes:p.allowPrototypes,allowSparse:typeof i.allowSparse=="boolean"?i.allowSparse:p.allowSparse,arrayLimit:typeof i.arrayLimit=="number"?i.arrayLimit:p.arrayLimit,charset:o,charsetSentinel:typeof i.charsetSentinel=="boolean"?i.charsetSentinel:p.charsetSentinel,comma:typeof i.comma=="boolean"?i.comma:p.comma,decodeDotInKeys:typeof i.decodeDotInKeys=="boolean"?i.decodeDotInKeys:p.decodeDotInKeys,decoder:typeof i.decoder=="function"?i.decoder:p.decoder,delimiter:typeof i.delimiter=="string"||t.isRegExp(i.delimiter)?i.delimiter:p.delimiter,depth:typeof i.depth=="number"||i.depth===!1?+i.depth:p.depth,duplicates:_,ignoreQueryPrefix:i.ignoreQueryPrefix===!0,interpretNumericEntities:typeof i.interpretNumericEntities=="boolean"?i.interpretNumericEntities:p.interpretNumericEntities,parameterLimit:typeof i.parameterLimit=="number"?i.parameterLimit:p.parameterLimit,parseArrays:i.parseArrays!==!1,plainObjects:typeof i.plainObjects=="boolean"?i.plainObjects:p.plainObjects,strictDepth:typeof i.strictDepth=="boolean"?!!i.strictDepth:p.strictDepth,strictNullHandling:typeof i.strictNullHandling=="boolean"?i.strictNullHandling:p.strictNullHandling,throwOnLimitExceeded:typeof i.throwOnLimitExceeded=="boolean"?i.throwOnLimitExceeded:!1}};return Or=function(y,i){var o=v(i);if(y===""||y===null||typeof y>"u")return o.plainObjects?{__proto__:null}:{};for(var _=typeof y=="string"?P(y,o):y,f=o.plainObjects?{__proto__:null}:{},c=Object.keys(_),u=0;u<c.length;++u){var b=c[u],w=h(b,_[b],o,typeof y=="string");f=t.merge(f,w,o)}return o.allowSparse===!0?f:t.compact(f)},Or}var Cr,$t;function xn(){if($t)return Cr;$t=1;var t=kn(),s=Rn(),m=br();return Cr={formats:m,parse:s,stringify:t},Cr}var Fn=xn();const Dn=Zt(Fn),ge=Kt.create({baseURL:"",timeout:1e4,paramsSerializer:{serialize:t=>Dn.stringify(t,{arrayFormat:"repeat"})}});ge.interceptors.request.use(t=>{const s=localStorage.getItem("token");return s&&(t.headers.Authorization="Bearer "+s),t},t=>(console.log(t),Promise.reject(t))),ge.interceptors.response.use(t=>{const s=t.data;return s.code!==200?(me.ElMessage({message:s.msg||"Error",type:"error",duration:5*1e3}),(s.code===401||s.code===403)&&me.ElMessageBox.confirm("您的登录状态已失效,请重新登录","确认登出",{confirmButtonText:"重新登录",cancelButtonText:"取消",type:"warning"}).then(()=>{localStorage.removeItem("token"),location.reload()}),Promise.reject(new Error(s.msg||"Error"))):s},t=>(console.log("HTTP Error: "+t),me.ElMessage({message:"网络错误,请检查您的网络连接或联系管理员",type:"error",duration:5*1e3}),Promise.reject(t)));function Nn(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}const qn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const $n=qn?window:void 0;function It(t){var s;const m=e.toValue(t);return(s=m==null?void 0:m.$el)!=null?s:m}function In(){const t=e.shallowRef(!1),s=e.getCurrentInstance();return s&&e.onMounted(()=>{t.value=!0},s),t}function Tn(t){const s=In();return e.computed(()=>(s.value,!!t()))}function Vn(t,s,m={}){const{window:p=$n,...a}=m;let E;const k=Tn(()=>p&&"ResizeObserver"in p),S=()=>{E&&(E.disconnect(),E=void 0)},P=e.computed(()=>{const v=e.toValue(t);return Array.isArray(v)?v.map(y=>It(y)):[It(v)]}),g=e.watch(P,v=>{if(S(),k.value&&p){E=new ResizeObserver(s);for(const y of v)y&&E.observe(y,a)}},{immediate:!0,flush:"post"}),h=()=>{S(),g()};return Nn(h),{isSupported:k,stop:h}}const Mn=e.defineComponent({__name:"TableHeaderWithTooltip",props:{label:{},placement:{}},setup(t){const s=e.ref(null),m=e.ref(!1),p=()=>{s.value&&(m.value=s.value.scrollWidth>s.value.clientWidth)};return e.onMounted(()=>{p()}),Vn(s,()=>{p()}),(a,E)=>{const k=e.resolveComponent("el-tooltip");return m.value?(e.openBlock(),e.createBlock(k,{key:1,content:a.label,placement:a.placement||"top"},{default:e.withCtx(()=>[e.createElementVNode("span",{ref_key:"textRef",ref:s,class:"header-cell-content"},e.toDisplayString(a.label),513)]),_:1},8,["content","placement"])):(e.openBlock(),e.createElementBlock("span",{key:0,ref_key:"textRef",ref:s,class:"header-cell-content"},e.toDisplayString(a.label),513))}}}),Tt=(t,s)=>{const m=t.__vccOpts||t;for(const[p,a]of s)m[p]=a;return m},Un=Tt(Mn,[["__scopeId","data-v-d23c8660"]]),Ln={key:0,class:"search-section-wrapper"},Wn={class:"flex flex-wrap items-center justify-between gap-4"},zn={class:"flex items-center gap-x-2"},Gn={class:"flex items-center gap-x-3 action-buttons flex-shrink-0"},jn={class:"table-content-wrapper"},Hn={key:1},Qn={key:0,class:"flex items-center gap-x-2"},Kn={key:1,class:"pagination-wrapper flex justify-end mt-2"},Jn={style:{"overflow-y":"auto",flex:"1"}},Yn={class:"dialog-footer"},Zn={class:"flex items-center"},Xn={class:"el-dialog__title"},eo={style:{"overflow-y":"auto",flex:"1"}},ro={class:"dialog-footer"},to=Tt(e.defineComponent({__name:"CrudTable",props:{theme:{type:String,default:"default"},customClass:{type:String,default:""},apiUrlQuery:{type:String,required:!0},apiUrlDetail:{type:String,required:!0},apiUrlCreate:{type:String,required:!0},apiUrlUpdate:{type:String,required:!0},apiUrlDelete:{type:String,required:!0},loadingText:{type:String,default:"加载中…"},loadingBackground:{type:String,default:"rgba(0, 0, 0, 0.3)"},showSearchSection:{type:Boolean,default:!0},showSearchActionButtons:{type:Boolean,default:!0},showSearchButton:{type:Boolean,default:!0},showClearButton:{type:Boolean,default:!0},showNewBtn:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},onBeforeQuery:{type:Function},onAfterQuery:{type:Function},onBeforeOpenDialog:{type:Function},onAfterOpenDialog:{type:Function},onBeforeSubmit:{type:Function},onAfterSubmit:{type:Function},onBeforeDelete:{type:Function},onAfterDelete:{type:Function},showSelectionColumn:{type:Boolean,default:!0},showIndexColumn:{type:Boolean,default:!0},showActionsColumn:{type:Boolean,default:!0},showEditButton:{type:Boolean,default:!0},showDeleteButton:{type:Boolean,default:!0},showViewButton:{type:Boolean,default:!1},actionsColumnWidth:{type:[String,Number],default:120},dialogWidth:{type:String,default:"50%"},initialSearchForm:{type:Object,default:()=>({pageNum:1,pageSize:10})},showPagination:{type:Boolean,default:!0},pageSizes:{type:Array,default:()=>[10,20,50,100]},paginationLayout:{type:String,default:"total, sizes, prev, pager, next, jumper"},paginationBackground:{type:Boolean,default:!0},paginationSmall:{type:Boolean,default:!1},paginationHideOnSinglePage:{type:Boolean,default:!1},dialogFormConfig:{type:Array,default:()=>[]},dialogFormRules:{type:Object,default:()=>({})},dialogFormLabelWidth:{type:String,default:120},submitAsFormData:{type:Boolean,default:!1},dialogFullscreen:{type:Boolean,default:!1},addDialogTitle:{type:String,default:"新增"},editDialogTitle:{type:String,default:"编辑"}},emits:["open-dialog","submit","delete","update:initialSearchForm"],setup(t,{expose:s,emit:m}){const p=m,a=t,E=e.computed(()=>["crud-table-wrapper",`theme-${a.theme}`,a.customClass]),k=e.computed(()=>a.theme==="large-screen"?"large-screen-dialog":""),S=(d,l)=>d?!0:(me.ElMessage.error(`${l} prop is required.`),!1),P=async(d,l)=>{if(d==="view")return Promise.resolve();try{let C={...l};a.onBeforeSubmit&&(C=await a.onBeforeSubmit(C,d));let D=C;if(a.submitAsFormData){const L=new FormData;for(const G in C)if(Object.prototype.hasOwnProperty.call(C,G)){const Z=C[G];L.append(G,Z??"")}D=L}if(o.submitting=!0,d==="add"){if(!S(a.apiUrlCreate,"apiUrlCreate"))throw new Error("apiUrlCreate is not configured.");await ge.post(a.apiUrlCreate,D),me.ElMessage.success("新增成功")}else{if(!S(a.apiUrlUpdate,"apiUrlUpdate"))throw new Error("apiUrlUpdate is not configured.");await ge.put(a.apiUrlUpdate,D),me.ElMessage.success("更新成功")}return a.onAfterSubmit&&a.onAfterSubmit(d,C),p("submit",{mode:d,data:C}),o.visible&&(o.visible=!1),c(),Promise.resolve()}catch(C){return console.error("Submit failed:",C),Promise.reject(C)}finally{o.submitting=!1}},g=e.reactive({pageNum:1,pageSize:10,...a.initialSearchForm}),h=e.ref([]),v=e.ref(0),y=e.ref(!1),i=e.ref([]),o=e.reactive({visible:!1,loading:!1,submitting:!1,mode:"add",data:{},formRef:null}),_=e.computed(()=>o.mode==="add"?a.addDialogTitle:a.editDialogTitle),f=e.computed(()=>{if(o.mode==="add")return a.dialogFormConfig.filter(l=>l.prop!=="id");const d=[...a.dialogFormConfig.filter(l=>l.prop!=="id")];return d.some(l=>l.prop==="id")||d.unshift({type:"input-disabled",prop:"id",label:"用户ID"}),d}),c=async()=>{if(S(a.apiUrlQuery,"apiUrlQuery")){y.value=!0;try{let d={...g};a.onBeforeQuery&&(d=await a.onBeforeQuery(d));const l=await ge.get(a.apiUrlQuery,{params:d});let C=[],D=0,L=!1;l!=null&&l.data&&Array.isArray(l.data.rows)?(C=l.data.rows,D=typeof l.data.total=="number"?l.data.total:C.length,L=!0):Array.isArray(l==null?void 0:l.data)?(C=l.data,D=l.data.length,L=!0):Array.isArray(l)&&(C=l,D=l.length,L=!0),L?(a.onAfterQuery&&(C=await a.onAfterQuery(C,d)),h.value=C,v.value=D):(console.warn("未识别的 API 响应格式,请检查 fetchData 中的兼容逻辑。",l),h.value=[],v.value=0)}catch(d){console.error("Fetch data failed:",d),h.value=[],v.value=0}finally{y.value=!1}}},u=d=>{d?Object.assign(g,d):Object.assign(g,a.initialSearchForm),g.pageNum=1,c()},b=()=>{const{pageNum:d,pageSize:l,...C}=a.initialSearchForm;Object.keys(g).forEach(D=>{D!=="pageNum"&&D!=="pageSize"&&delete g[D]}),Object.assign(g,C),u()},w=d=>{i.value=d},A=async(d,l)=>{let C;if(d==="add"?C=l?{...l}:{role:"user"}:C={...l},a.onBeforeOpenDialog){const D=await a.onBeforeOpenDialog(d,C);D&&(C=D)}if(o.mode=d,o.visible=!0,d==="edit"||d==="view"){if(!S(a.apiUrlDetail,"apiUrlDetail"))return;o.loading=!0;try{const D=await ge.get(a.apiUrlDetail+"/"+C.id.toString());o.data=D.data.data}finally{o.loading=!1,a.onAfterOpenDialog&&a.onAfterOpenDialog(d,o.data),p("open-dialog",{mode:d,data:o.data})}}else o.data=C,a.onAfterOpenDialog&&a.onAfterOpenDialog(d,o.data),p("open-dialog",{mode:d,data:o.data})},O=async()=>{if(o.mode!=="view")try{o.formRef?await o.formRef.validate():console.warn("Dialog form ref is not available for validation."),await P(o.mode,o.data)}catch(d){console.log("Validation or submit error:",d)}},B=async d=>{if(S(a.apiUrlDelete,"apiUrlDelete"))try{const l=h.value.filter(D=>d.includes(D.id));if(a.onBeforeDelete&&await a.onBeforeDelete(d,l)===!1)return;const C=d.join(",");await ge.delete(a.apiUrlDelete+"/"+C.toString()),me.ElMessage.success("删除成功"),a.onAfterDelete&&a.onAfterDelete(d,l),p("delete",d),h.value.length===d.length&&g.pageNum>1&&g.pageNum--,c()}catch(l){console.error("Delete failed",l)}},x=d=>{g.pageSize=d,u()},$=d=>{g.pageNum=d,c()};e.onMounted(c);const F=()=>{o.visible=!1};return e.watch(g,d=>{p("update:initialSearchForm",{...e.toRaw(d)})},{deep:!0}),e.watch(()=>a.initialSearchForm,d=>{Object.assign(g,d)},{deep:!0}),s({refresh:c,search:u,handleDelete:B,openDialog:A,submit:P,closeDialog:F}),(d,l)=>{const C=e.resolveComponent("el-button"),D=e.resolveComponent("el-form-item"),L=e.resolveComponent("el-form"),G=e.resolveComponent("el-table-column"),Z=e.resolveComponent("el-popconfirm"),N=e.resolveComponent("el-table"),K=e.resolveComponent("el-pagination"),ne=e.resolveComponent("el-skeleton"),ie=e.resolveComponent("el-dialog"),le=e.resolveComponent("el-icon"),fe=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([E.value,"crud-table-container"])},[a.showSearchSection?(e.openBlock(),e.createElementBlock("div",Ln,[e.renderSlot(d.$slots,"header",{},void 0,!0),e.createElementVNode("div",Wn,[e.createVNode(L,{model:g,class:"query-form flex flex-nowrap items-center gap-x-4",style:{"overflow-x":"auto","padding-bottom":"8px"}},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"query-conditions",{searchForm:g},void 0,!0),e.createVNode(D,{class:"!mr-0 flex-shrink-0"},{default:e.withCtx(()=>[e.createElementVNode("div",zn,[e.renderSlot(d.$slots,"query-left",{searchForm:g},void 0,!0),a.showSearchActionButtons?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.showSearchButton?(e.openBlock(),e.createBlock(C,{key:0,color:"#336FFF",onClick:u,loading:y.value},{default:e.withCtx(()=>[...l[8]||(l[8]=[e.createTextVNode("搜索",-1)])]),_:1},8,["loading"])):e.createCommentVNode("",!0),a.showClearButton?(e.openBlock(),e.createBlock(C,{key:1,color:"#336FFF",plain:"",onClick:b},{default:e.withCtx(()=>[...l[9]||(l[9]=[e.createTextVNode("清空",-1)])]),_:1})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"query-right",{searchForm:g},void 0,!0)])]),_:3})]),_:3},8,["model"]),e.createElementVNode("div",Gn,[e.renderSlot(d.$slots,"action-left",{selections:i.value},void 0,!0),e.renderSlot(d.$slots,"add-button-content",{selections:i.value},()=>[a.showNewBtn?(e.openBlock(),e.createBlock(C,{key:0,color:"#336FFF",onClick:l[0]||(l[0]=R=>A("add"))},{default:e.withCtx(()=>[...l[10]||(l[10]=[e.createTextVNode("新增",-1)])]),_:1})):e.createCommentVNode("",!0)],!0),e.renderSlot(d.$slots,"action-right",{selections:i.value},void 0,!0)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",jn,[e.withDirectives((e.openBlock(),e.createBlock(N,e.mergeProps({data:h.value,"element-loading-text":a.loadingText,"element-loading-background":a.loadingBackground,onSelectionChange:w},d.$attrs,{height:"100%",style:{width:"100%"}}),{default:e.withCtx(()=>[a.showSelectionColumn?(e.openBlock(),e.createBlock(G,{key:0,type:"selection",width:"55",fixed:""})):e.createCommentVNode("",!0),a.showIndexColumn?(e.openBlock(),e.createBlock(G,{key:1,type:"index",label:"序号",width:"70",fixed:""})):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.columns,R=>(e.openBlock(),e.createBlock(G,e.mergeProps({key:R.prop,prop:R.prop,label:R.label,width:R.width,sortable:R.sortable||!1},{ref_for:!0},R.attrs),e.createSlots({header:e.withCtx(()=>[R.headerTooltip?(e.openBlock(),e.createBlock(Un,{key:0,label:R.label,placement:R.placement},null,8,["label","placement"])):(e.openBlock(),e.createElementBlock("span",Hn,e.toDisplayString(R.label),1))]),_:2},[R.slot?{name:"default",fn:e.withCtx(J=>[e.renderSlot(d.$slots,R.slot,{row:J.row},void 0,!0)]),key:"0"}:void 0]),1040,["prop","label","width","sortable"]))),128)),a.showActionsColumn?(e.openBlock(),e.createBlock(G,{key:2,label:"操作",width:t.actionsColumnWidth},{default:e.withCtx(R=>[R.row?(e.openBlock(),e.createElementBlock("div",Qn,[d.$slots.actions?e.renderSlot(d.$slots,"actions",{key:0,row:R.row},void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(d.$slots,"action-before-edit",{row:R.row},void 0,!0),a.showViewButton?(e.openBlock(),e.createBlock(C,{key:0,size:"small",type:"success",link:"",onClick:J=>A("view",R.row)},{default:e.withCtx(()=>[...l[11]||(l[11]=[e.createTextVNode("查看 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),a.showEditButton?(e.openBlock(),e.createBlock(C,{key:1,size:"small",type:"primary",link:"",onClick:J=>A("edit",R.row)},{default:e.withCtx(()=>[...l[12]||(l[12]=[e.createTextVNode("编辑 ",-1)])]),_:1},8,["onClick"])):e.createCommentVNode("",!0),a.showDeleteButton?(e.openBlock(),e.createBlock(Z,{key:2,title:"确定要删除这条数据吗?",onConfirm:J=>B([R.row.id]),"confirm-button-text":"确定","cancel-button-text":"取消",width:"200"},{reference:e.withCtx(()=>[e.createVNode(C,{size:"small",type:"danger",link:""},{default:e.withCtx(()=>[...l[13]||(l[13]=[e.createTextVNode("删除",-1)])]),_:1})]),_:1},8,["onConfirm"])):e.createCommentVNode("",!0),e.renderSlot(d.$slots,"action-after-delete",{row:R.row},void 0,!0)],64))])):e.createCommentVNode("",!0)]),_:3},8,["width"])):e.createCommentVNode("",!0)]),_:3},16,["data","element-loading-text","element-loading-background"])),[[fe,y.value]])]),a.showPagination&&v.value>0?(e.openBlock(),e.createElementBlock("div",Kn,[e.createVNode(K,{"current-page":g.pageNum,"onUpdate:currentPage":l[1]||(l[1]=R=>g.pageNum=R),"page-size":g.pageSize,"onUpdate:pageSize":l[2]||(l[2]=R=>g.pageSize=R),"page-sizes":a.pageSizes,layout:a.paginationLayout,total:v.value,background:a.paginationBackground,small:a.paginationSmall,"hide-on-single-page":a.paginationHideOnSinglePage,onSizeChange:x,onCurrentChange:$},null,8,["current-page","page-size","page-sizes","layout","total","background","small","hide-on-single-page"])])):e.createCommentVNode("",!0),a.dialogFullscreen?(e.openBlock(),e.createBlock(ie,{key:3,modelValue:o.visible,"onUpdate:modelValue":l[7]||(l[7]=R=>o.visible=R),fullscreen:!0,width:a.dialogWidth,"destroy-on-close":!0,modal:!a.dialogFullscreen,"custom-class":k.value,"show-close":!1,style:{display:"flex","flex-direction":"column","max-height":"100vh"}},{header:e.withCtx(()=>[e.createElementVNode("div",Zn,[e.createVNode(C,{type:"info",text:"",onClick:l[5]||(l[5]=R=>o.visible=!1),style:{"margin-right":"12px"}},{default:e.withCtx(()=>[e.createVNode(le,{size:"20"},{default:e.withCtx(()=>[e.createVNode(e.unref(Yt))]),_:1})]),_:1}),e.createElementVNode("span",Xn,e.toDisplayString(_.value),1)])]),footer:e.withCtx(()=>[e.renderSlot(d.$slots,"dialog-footer",{dialog:o,submit:O,cancel:()=>o.visible=!1},()=>[e.createElementVNode("span",ro,[e.createVNode(C,{color:"#336FFF",plain:"",onClick:l[6]||(l[6]=R=>o.visible=!1)},{default:e.withCtx(()=>[...l[16]||(l[16]=[e.createTextVNode("取消",-1)])]),_:1}),o.mode!=="view"?(e.openBlock(),e.createBlock(C,{key:0,color:"#336FFF",onClick:O,loading:o.submitting},{default:e.withCtx(()=>[...l[17]||(l[17]=[e.createTextVNode(" 确定 ",-1)])]),_:1},8,["loading"])):e.createCommentVNode("",!0)])],!0)]),default:e.withCtx(()=>[e.createElementVNode("div",eo,[d.$slots["dialog-form"]?e.renderSlot(d.$slots,"dialog-form",{key:0,formData:o.data,mode:o.mode,formRef:R=>{o.formRef=R}},void 0,!0):o.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(qr,{key:1,ref:R=>{o.formRef=R},"model-value":o.data,"form-config":f.value,rules:a.dialogFormRules,"label-width":a.dialogFormLabelWidth,disabled:o.mode==="view"},null,8,["model-value","form-config","rules","label-width","disabled"]))])]),_:3},8,["modelValue","width","modal","custom-class"])):(e.openBlock(),e.createBlock(ie,{key:2,modelValue:o.visible,"onUpdate:modelValue":l[4]||(l[4]=R=>o.visible=R),title:_.value,width:a.dialogWidth,"destroy-on-close":!0,"custom-class":k.value,style:{display:"flex","flex-direction":"column","max-height":"80vh"}},{footer:e.withCtx(()=>[e.renderSlot(d.$slots,"dialog-footer",{dialog:o,submit:O,cancel:()=>o.visible=!1},()=>[e.createElementVNode("span",Yn,[e.createVNode(C,{color:"#336FFF",onClick:l[3]||(l[3]=R=>o.visible=!1)},{default:e.withCtx(()=>[...l[14]||(l[14]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(C,{color:"#336FFF",onClick:O,loading:o.submitting},{default:e.withCtx(()=>[...l[15]||(l[15]=[e.createTextVNode(" 确定 ",-1)])]),_:1},8,["loading"])])],!0)]),default:e.withCtx(()=>[e.createElementVNode("div",Jn,[d.$slots["dialog-form"]?e.renderSlot(d.$slots,"dialog-form",{key:0,formData:o.data,mode:o.mode,formRef:R=>{o.formRef=R}},void 0,!0):o.loading?(e.openBlock(),e.createBlock(ne,{key:1,rows:5,animated:""})):o.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(qr,{key:2,ref:R=>{o.formRef=R},"model-value":o.data,"form-config":f.value,rules:a.dialogFormRules,"label-width":a.dialogFormLabelWidth,disabled:o.mode==="view"},null,8,["model-value","form-config","rules","label-width","disabled"]))])]),_:3},8,["modelValue","title","width","custom-class"]))],2)}}}),[["__scopeId","data-v-a907a615"]]);ce.CrudTable=to,Object.defineProperty(ce,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "z-crud-table",
3
3
  "private": false,
4
- "version": "0.0.55",
4
+ "version": "0.0.56",
5
5
  "type": "module",
6
6
  "description": "A powerful and flexible CRUD table component for Vue 3 and Element Plus.",
7
7
  "keywords": [