@gct-paas/core-web 0.1.4-dev.3 → 0.1.4-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core-web.css +1 -1
- package/dist/index.min.cjs +11 -11
- package/dist/index.system.min.js +11 -11
- package/es/components/code-editor/code-editor.mjs +1 -2
- package/es/editor/gct-form-field-select/gct-model-select.vue +2 -2
- package/es/editor/index.mjs +2 -2
- package/package.json +5 -5
- package/es/_virtual/_commonjsHelpers.mjs +0 -44
- package/es/_virtual/node.mjs +0 -7
- package/es/_virtual/node2.mjs +0 -3
- package/es/node_modules/.pnpm/@aesoper_normal-utils@0.1.5/node_modules/@aesoper/normal-utils/NormalUtils.es.mjs +0 -3
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.mjs +0 -142
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/config/index.mjs +0 -7
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/index.mjs +0 -1
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/loader/index.mjs +0 -188
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/compose.mjs +0 -13
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/curry.mjs +0 -19
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.mjs +0 -14
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/isObject.mjs +0 -5
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.mjs +0 -20
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/validators/index.mjs +0 -49
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/createPopper.mjs +0 -200
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/contains.mjs +0 -26
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.mjs +0 -44
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.mjs +0 -72
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.mjs +0 -60
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.mjs +0 -9
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.mjs +0 -32
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.mjs +0 -8
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.mjs +0 -28
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeName.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.mjs +0 -14
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.mjs +0 -71
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getParentNode.mjs +0 -22
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.mjs +0 -19
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.mjs +0 -34
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindow.mjs +0 -14
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.mjs +0 -13
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.mjs +0 -16
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/instanceOf.mjs +0 -23
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.mjs +0 -13
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isTableElement.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.mjs +0 -29
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/enums.mjs +0 -33
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/index.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/applyStyles.mjs +0 -87
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/arrow.mjs +0 -92
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/computeStyles.mjs +0 -171
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/eventListeners.mjs +0 -51
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/flip.mjs +0 -149
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/hide.mjs +0 -63
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/index.mjs +0 -9
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/offset.mjs +0 -56
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/popperOffsets.mjs +0 -27
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/preventOverflow.mjs +0 -144
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/popper-lite.mjs +0 -12
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/popper.mjs +0 -19
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.mjs +0 -46
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/computeOffsets.mjs +0 -73
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/debounce.mjs +0 -17
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/detectOverflow.mjs +0 -67
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/expandToHashMap.mjs +0 -8
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getAltAxis.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getBasePlacement.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getFreshSideObject.mjs +0 -10
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositePlacement.mjs +0 -13
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.mjs +0 -11
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getVariation.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/math.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/mergeByName.mjs +0 -16
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/mergePaddingObject.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/orderModifiers.mjs +0 -46
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/rectToClientRect.mjs +0 -10
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/userAgent.mjs +0 -13
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/within.mjs +0 -11
- package/es/node_modules/.pnpm/@vueuse_core@13.7.0_vue@3.5.18_typescript@5.9.2_/node_modules/@vueuse/core/index.mjs +0 -8285
- package/es/node_modules/.pnpm/@vueuse_shared@13.7.0_vue@3.5.18_typescript@5.9.2_/node_modules/@vueuse/shared/index.mjs +0 -1641
- package/es/node_modules/.pnpm/gradient-parser@1.0.2/node_modules/gradient-parser/build/node.mjs +0 -528
- package/es/node_modules/.pnpm/state-local@1.0.7/node_modules/state-local/lib/es/state-local.mjs +0 -193
- package/es/node_modules/.pnpm/tinycolor2@1.6.0/node_modules/tinycolor2/esm/tinycolor.mjs +0 -1180
- package/es/node_modules/.pnpm/vue-types@3.0.2_vue@3.5.18_typescript@5.9.2_/node_modules/vue-types/dist/vue-types.m.mjs +0 -3
- package/es/node_modules/.pnpm/vue3-colorpicker@2.3.0_@aesoper_normal-utils@0.1.5_@popperjs_core@2.11.8_@vueuse_core@1_c6850a6c65df63e96440af393dfce213/node_modules/vue3-colorpicker/index.es.mjs +0 -1815
package/dist/index.min.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),w=require("@gct-paas/core"),qe=require("ant-design-vue"),vt=require("lodash-es");function
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),w=require("@gct-paas/core"),qe=require("ant-design-vue"),vt=require("lodash-es");function Cu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ta(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ra(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ta(Object(r),!0).forEach(function(n){Cu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ta(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wu(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Su(e,t){if(e==null)return{};var r=wu(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ou(e,t){return xu(e)||Eu(e,t)||ku(e,t)||_u()}function xu(e){if(Array.isArray(e))return e}function Eu(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,i=void 0;try{for(var u=e[Symbol.iterator](),l;!(n=(l=u.next()).done)&&(r.push(l.value),!(t&&r.length===t));n=!0);}catch(s){o=!0,i=s}finally{try{!n&&u.return!=null&&u.return()}finally{if(o)throw i}}return r}}function ku(e,t){if(e){if(typeof e=="string")return na(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return na(e,t)}}function na(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Tu=require("../internals/export"),Nu=require("../internals/array-includes").includes,Au=require("../internals/fails"),Ru=require("../internals/add-to-unscopables"),Pu=Au(function(){return!Array(1).includes()});Tu({target:"Array",proto:!0,forced:Pu},{includes:function(t){return Nu(this,t,arguments.length>1?arguments[1]:void 0)}});Ru("includes");function ju(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function aa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oa(Object(r),!0).forEach(function(n){ju(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oa(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Iu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function Et(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),s=0;s<u;s++)l[s]=arguments[s];return t.apply(r,[].concat(o,l))}}}function ir(e){return{}.toString.call(e).includes("Object")}function Vu(e){return!Object.keys(e).length}function jt(e){return typeof e=="function"}function $u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Bu(e,t){return ir(t)||Re("changeType"),Object.keys(t).some(function(r){return!$u(e,r)})&&Re("changeField"),t}function Fu(e){jt(e)||Re("selectorType")}function Mu(e){jt(e)||ir(e)||Re("handlerType"),ir(e)&&Object.values(e).some(function(t){return!jt(t)})&&Re("handlersType")}function qu(e){e||Re("initialIsRequired"),ir(e)||Re("initialType"),Vu(e)&&Re("initialContent")}function Du(e,t){throw new Error(e[t]||e.default)}var Gu={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Re=Et(Du)(Gu),Yt={changes:Bu,selector:Fu,handler:Mu,initial:qu};function Lu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Yt.initial(e),Yt.handler(t);var r={current:e},n=Et(zu)(r,t),o=Et(Uu)(r),i=Et(Yt.changes)(e),u=Et(Hu)(r);function l(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return Yt.selector(d),d(r.current)}function s(d){Iu(n,o,i,u)(d)}return[l,s]}function Hu(e,t){return jt(t)?t(e.current):t}function Uu(e,t){return e.current=aa(aa({},e.current),t),t}function zu(e,t,r){return jt(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var Wu={create:Lu},Ku={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function Yu(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),s=0;s<u;s++)l[s]=arguments[s];return t.apply(r,[].concat(o,l))}}}function Xu(e){return{}.toString.call(e).includes("Object")}function Ju(e){return e||ia("configIsRequired"),Xu(e)||ia("configType"),e.urls?(Zu(),{paths:{vs:e.urls.monacoBase}}):e}function Zu(){console.warn(Il.deprecation)}function Qu(e,t){throw new Error(e[t]||e.default)}var Il={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
3
3
|
You are using deprecated way of configuration.
|
|
4
4
|
|
|
5
5
|
Instead of using
|
|
@@ -8,13 +8,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8
8
|
monaco.config({ paths: { vs: '...' } })
|
|
9
9
|
|
|
10
10
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
11
|
-
`},aa=Wu(Ju)(Rl),Zu={config:Yu},Qu=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(i,u){return u(i)},o)}};function jl(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],jl(e[r],t[r]))}),ta(ta({},e),t)}var ec={type:"cancelation",msg:"operation is manually canceled"};function Ir(e){var t=!1,r=new Promise(function(n,o){e.then(function(i){return t?o(ec):n(i)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var tc=Uu.create({config:zu,isInitialized:!1,resolve:null,reject:null,monaco:null}),Il=wu(tc,2),qt=Il[0],Cr=Il[1];function rc(e){var t=Zu.config(e),r=t.monaco,n=Cu(t,["monaco"]);Cr(function(o){return{config:jl(o.config,n),monaco:r}})}function nc(){var e=qt(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(Cr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Ir(Vr);if(window.monaco&&window.monaco.editor)return Vl(window.monaco),e.resolve(window.monaco),Ir(Vr);Qu(oc,ic)(lc)}return Ir(Vr)}function oc(e){return document.body.appendChild(e)}function ac(e){var t=document.createElement("script");return e&&(t.src=e),t}function ic(e){var t=qt(function(n){var o=n.config,i=n.reject;return{config:o,reject:i}}),r=ac("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function lc(){var e=qt(function(r){var n=r.config,o=r.resolve,i=r.reject;return{config:n,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){Vl(r),e.resolve(r)},function(r){e.reject(r)})}function Vl(e){qt().monaco||Cr({monaco:e})}function sc(){return qt(function(e){var t=e.monaco;return t})}var Vr=new Promise(function(e,t){return Cr({resolve:e,reject:t})}),uc={config:rc,init:nc,__getMonacoInstance:sc};const Yn=a.defineComponent({name:"CodeEditor",props:{value:{type:String,default:""},config:{type:Object,default:()=>({})},language:{type:String,default:"typescript"}},emits:["update:value"],setup(e,{emit:t}){const r=w.useNamespace("code-editor"),n=a.computed({get(){return e.value||""},set(u){t("update:value",u)}}),o=a.ref(null);let i=null;return a.onMounted(()=>{uc.init().then(u=>{o.value&&(i=u.editor.create(o.value,w.deepMerge({value:n.value,language:e.language,automaticLayout:!0,minimap:{enabled:!1}},e.config)),i.onDidBlurEditorText(()=>{n.value=i.getValue()}))})}),a.onUnmounted(()=>{i?.dispose()}),{ns:r,el:o}},render(){return a.createVNode("div",{ref:"el",class:this.ns.b()},null)}}),Xn=a.defineComponent({name:"FlexItem",props:{layout:Object},setup(e){return{ns:w.useNamespace("flex-item"),getStyle:()=>{const n={};if(e.layout){const{order:o,alignSelf:i,flexBasis:u,flexGrow:l,flexShrink:s}=e.layout;o!=null&&(n.order=o),i!=null&&(n["align-self"]=i),u!=null&&(n["flex-basis"]=u),l!=null&&(n["flex-grow"]=l),s!=null&&(n["flex-shrink"]=s)}return n}}},render(){return a.createVNode("div",{class:this.ns.b(),style:this.getStyle()},[this.$slots.default?.()])}});function cc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const ia=a.defineComponent({name:"FlexContainer",props:{layout:Object},setup(e){return{ns:w.useNamespace("flex-container"),getStyle:()=>{const o={};if(e.layout){const{alignContent:i,alignItems:u,flexDirection:l,flexWrap:s,justifyContent:d}=e.layout;i!=null&&(o.alignContent=i),u!=null&&(o.alignItems=u),l!=null&&(o.flexDirection=l),s!=null&&(o.flexWrap=s),d!=null&&(o.justifyContent=d)}return o},getItemStyle:o=>{const i={};if(o){const{width:u,height:l}=o;u!=null&&(i.width=u),l!=null&&(i.height=l)}return i}}},render(){let e=this.$slots.default?.()||[];return e.length>0&&(e=e[0].children||[]),a.createVNode("div",{class:this.ns.b(),style:this.getStyle()},[e.map(t=>{if(!t)return null;const r=t.props.model.flexItem;return a.createVNode(Xn,{layout:r,style:this.getItemStyle(t.props.model)},cc(t)?t:{default:()=>[t]})})])}});function la(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const sa=a.defineComponent({name:"GridContainer",props:{layout:Object},setup(){return{ns:w.useNamespace("grid-container")}},render(){let e;const t=this.layout||{};let r=this.$slots.default?.()||[];return r.length>0&&(r=r[0].children||[]),a.createVNode(a.resolveComponent("a-row"),{class:this.ns.b(),wrap:!0,gutter:t.gutter},la(e=r.map(n=>{if(!n)return null;const o=n.props.model.gridItem;return a.createVNode(a.resolveComponent("a-col"),{span:o?o.span??24:24,offset:o?o.offset??0:0},la(n)?n:{default:()=>[n]})}))?e:{default:()=>[e]})}}),ua=a.defineComponent({name:"ViewContainer",props:{context:{type:Object},params:{type:Object},modal:{type:Object,required:!0}},setup(){return{ns:w.useNamespace("view-container")}},render(){return a.createVNode("div",{class:this.ns.b()},[this.$slots.header?a.createVNode("div",{class:this.ns.b("header")},[this.$slots.header()]):null,a.createVNode("div",{class:this.ns.b("content")},[this.$slots.default?.()]),this.$slots.footer?a.createVNode("div",{class:this.ns.b("footer")},[this.$slots.footer()]):null])}}),dc=a.defineComponent({name:"GctFormLengthUnit",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,required:!0}},emits:["update:value"],setup(e){const t=w.useNamespace("form-length-unit"),r=new w.LengthUnitEditorController(e.model),n=w.useGctFormValue();return{ns:t,c:r,val:n}},render(){return a.createVNode(a.resolveComponent("length-unit-editor"),a.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:[this.ns.b(),this.ns.is("readonly",this.model.readonly)]}),null)}});class fc{component="gct-form-length-unit"}const pc=w.widthEditorInstall(w.EditorTypeOld.LENGTH_UNIT,()=>new fc,dc),$l=a.defineComponent({name:"GctFormColor",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String}},emits:["update:value"],setup(){const e=w.useNamespace("form-color"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return a.createVNode(a.resolveComponent("color-picker"),a.mergeProps({pureColor:this.val,"onUpdate:pureColor":e=>this.val=e,format:"rgba",shape:"circle","use-type":"pure","picker-type":"chrome",class:[this.ns.b(),this.ns.is("readonly",this.model.readonly)]},this.model.props||{}),null)}});class Bl{component="gct-form-color"}const hc=w.widthEditorInstall(w.EditorType.COLOR,()=>new Bl,$l),vc=w.widthEditorInstall(w.EditorTypeOld.COLOR,()=>new Bl,$l);class gc{component="gct-form-check-switch"}const mc=a.defineComponent({name:"GctFormCheckSwitch",props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:Boolean,default:!1}},emits:["update:value"],setup(e){const t=w.useNamespace("gct-form-check-switch"),r=new w.EditorController(e.model),n=w.useGctFormValue();return{ns:t,c:r,val:n}},render(){return this.model.isSwitch?a.createVNode("div",{class:[this.ns.b(),this.ns.m("switch"),this.ns.is("readonly",this.model.readonly)]},[a.createVNode(a.resolveComponent("a-switch"),a.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)]):a.createVNode(a.resolveComponent("a-checkbox"),a.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{},{class:[this.ns.b(),this.ns.m("checkbox"),this.ns.is("readonly",this.model.readonly)]}),{default:()=>[this.model.label]})}}),yc=w.widthEditorInstall(w.EditorTypeOld.CHECK_SWITCH,()=>new gc,mc);class bc{component="gct-form-i18n"}const Cc=a.defineComponent({name:"GctFormI18n",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-i18n"),r=w.useForm().item.i18nConfig,n=w.useGctFormValue(),o=a.computed({get:()=>r?r.value:"",set:i=>{r&&(r.value=i)}});return{ns:e,val:n,i18nConfigValue:o}},render(){return a.createVNode(a.resolveComponent("i18n-select-input"),a.mergeProps(this.model.props||{},{i18nText:this.val,"onUpdate:i18nText":e=>this.val=e,i18nConfig:this.i18nConfigValue,"onUpdate:i18nConfig":e=>this.i18nConfigValue=e,inputExtraProps:{showCount:!0,maxlength:32,disabled:this.c.state.disabled}}),null)}}),wc=w.widthEditorInstall(w.EditorTypeOld.I18N,()=>new bc,Cc),Sc=a.defineComponent({name:"GctFormIconSelect",props:{value:{type:Object},model:{type:Object,required:!0}},emits:["update:value"],setup(e,{emit:t}){const r=w.useNamespace("gct-form-icon-select"),n=a.ref(e.value),o=a.ref(n.value?.icon||e.model.defaultIcon),i=a.ref(n.value?.color||e.model.defaultColor),u=a.ref(n.value?.background||e.model.defaultBackground);a.watch(()=>e.value,s=>{n.value=s,s&&(o.value=s.icon,i.value=s.color)}),a.watch([o,i,u],()=>{n.value={icon:o.value,color:i.value},t("update:value",n.value)});const l=a.computed(()=>{if(e.model.size)return{"--box-size":e.model.size+"px"}});return{ns:r,icon:o,color:i,background:u,nextPickerStyle:l}},render(){return a.createVNode("div",{class:this.ns.b()},[a.createVNode(a.resolveComponent("icon-next-picker"),{value:this.icon,"onUpdate:value":e=>this.icon=e,color:this.color,"onUpdate:color":e=>this.color=e,background:"#f5f5f5",disabled:this.model.disabled,showColor:this.model.showColor!==!1,style:this.nextPickerStyle},null),this.model.label?a.createVNode("span",{class:this.ns.e("title")},[this.model.label]):null])}});let Oc=class{component="gct-form-icon-select"};const xc=w.widthEditorInstall(w.EditorTypeOld.ICON_SELECT,()=>new Oc,Sc);class Fl{component="gct-form-number"}const Ml=a.defineComponent({name:"GctFormNumber",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-number"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return a.createVNode(a.resolveComponent("a-input-number"),a.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e,class:this.ns.b(),prefix:this.model.prefix,suffix:this.model.suffix,addonBefore:this.model.addonBefore,addonAfter:this.model.addonAfter,placeholder:this.model.placeholder,max:this.model.max,min:this.model.min,precision:this.model.precision},this.model.props||{}),null)}}),Ec=w.widthEditorInstall(w.EditorType.NUMBER,()=>new Fl,Ml),kc=w.widthEditorInstall(w.EditorTypeOld.NUMBER,()=>new Fl,Ml);class _c{component="gct-form-picker"}const Tc=a.defineComponent({name:"GctFormPicker",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(e,{emit:t}){const r=w.useNamespace("gct-form-picker"),n=a.computed({get(){return e.model.nameField?e.c.data[e.model.nameField]:""},set(l){e.model.nameField&&(e.c.data[e.model.nameField]=l)}}),o=a.computed({get:()=>!e.c.state.options.find(s=>s.value===e.value)&&n.value?n.value:e.value,set:l=>{typeof l=="string"&&(l=l.trim()),!(typeof l!="object"&&e.value==l)&&t("update:value",l)}}),i=()=>e.c.loadDictionary();return o.value!=null&&e.c.loadDictionary(),{ns:r,val:o,nameVal:n,loadOptions:i,onChange:(l,s)=>{n.value=s.label}}},render(){return a.createVNode(a.resolveComponent("a-select"),a.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),disabled:this.c.state.disabled,loading:this.c.state.loading,options:this.c.state.options,placeholder:this.model.placeholder,onDropdownVisibleChange:this.loadOptions,onChange:this.onChange}),null)}}),Nc=w.widthEditorInstall(w.EditorTypeOld.PICKER,()=>new _c,Tc);class Ac{component="gct-form-select"}const Pc=a.defineComponent({name:"GctFormSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=w.useNamespace("gct-form-select"),r=w.useGctFormValue(),n=a.computed(()=>e.c.state.options&&e.c.state.options.length>0?e.c.state.options:[]);return{ns:t,val:r,options:n}},render(){return a.createVNode(a.resolveComponent("a-select"),a.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),options:this.options,allowClear:!0,disabled:this.c.state.disabled}),null)}}),Rc=w.widthEditorInstall(w.EditorTypeOld.SELECT,()=>new Ac,Pc);class jc{component="gct-form-Modal-select"}const Ic=a.defineComponent({name:"GctFormModalSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-modal-select"),t=a.ref("1"),r=w.useGctFormValue(),n=a.computed({get(){return r.value||void 0},set(i){r.value=i}}),o=a.computed(()=>[{label:"默认",options:[{value:"1",label:"模型一"},{value:"2",label:"模型二"}]},{label:"产品建模",options:[{value:"3",label:"产品信息"},{value:"4",label:"产品类型"}]}]);return{ns:e,val:n,options:o,modelCategory:t}},render(){return a.createVNode(a.resolveComponent("a-input-group"),{class:this.ns.b()},{default:()=>[a.createVNode(a.resolveComponent("a-form-item-rest"),null,{default:()=>[a.createVNode(a.resolveComponent("a-select"),a.mergeProps({value:this.modelCategory,"onUpdate:value":e=>this.modelCategory=e},this.model.props||{},{placeholder:"请选择",options:[{value:"1",label:"实体"},{value:"2",label:"视图"},{value:"3",label:"数据"}],disabled:this.c.state.disabled}),null)]}),a.createVNode(a.resolveComponent("a-select"),a.mergeProps({class:this.ns.e("select"),value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{placeholder:"请选择",options:this.options,allowClear:!0,disabled:this.c.state.disabled}),null)]})}}),Vc=w.widthEditorInstall(w.EditorTypeOld.MODEL_SELECT,()=>new jc,Ic);class $c{component="gct-form-field-select"}const Bc={class:"gct-box"},Fc=a.defineComponent({__name:"gct-model-select",props:{value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,n=t,o=a.computed({get(){return r.value},set(d){n("update:value",d)}}),i=a.ref([{key:0,title:"公司名称"},{key:1,title:"ID"},{key:2,title:"创建人"},{key:3,title:"创建部门"},{key:4,title:"修改时间"},{key:5,title:"修改人"},{key:6,title:"修改部门"}]),u=a.ref([]),l=(d,c)=>{console.log()};function s(){o.value=!1}return(d,c)=>{const f=a.resolveComponent("a-transfer"),p=a.resolveComponent("a-modal");return a.openBlock(),a.createBlock(p,{visible:o.value,"onUpdate:visible":c[1]||(c[1]=h=>o.value=h),width:"600px",title:"关联模型字段","ok-text":"确认","cancel-text":"取消",onOk:s},{default:a.withCtx(()=>[c[2]||(c[2]=a.createElementVNode("div",null,"所属模型:公司",-1)),a.createElementVNode("div",Bc,[a.createVNode(f,{"target-keys":u.value,"onUpdate:targetKeys":c[0]||(c[0]=h=>u.value=h),locale:{itemUnit:"项已选",itemsUnit:"项未选",searchPlaceholder:"请输入搜索内容"},"data-source":i.value,"show-search":"","filter-option":l,render:h=>h.title},null,8,["target-keys","data-source","render"])])]),_:1,__:[2]},8,["visible"])}}}),Mc=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},ca=Mc(Fc,[["__scopeId","data-v-bff0c27a"]]),qc=a.defineComponent({name:"GctFormFieldSelect",components:{modal:ca},props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-field-select"),t=a.ref(!1);return{ns:e,visible:t}},render(){return a.createVNode("div",null,[a.createVNode(a.resolveComponent("a-button"),{onClick:()=>this.visible=!0,block:!0},{default:()=>[a.createTextVNode("选择模型字段")]}),a.createVNode(ca,{value:this.visible,"onUpdate:value":e=>this.visible=e},null)])}}),Dc=w.widthEditorInstall(w.EditorTypeOld.Field_SELECT,()=>new $c,qc);class Gc{component="gct-form-span"}const Lc=a.defineComponent({name:"GctFormSpan",props:{c:{type:Object,required:!0},itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},setup(e){const t=w.useNamespace("form-span"),{model:r,itemModel:n,c:o}=a.toRefs(e);function i(){const{isSuccessRef:l}=w.useCopyToClipboard(e.value);l.value&&qe.message.success(_gct.t("sys.copySuccess"))}o.value.loadDictionary();const u=a.computed(()=>{if(r.value.format&&typeof r.value.format=="function")return r.value.format(o.value.data,n.value,o.value);if(e.value==null||e.value==="")return e.value;if(n.value.dictionary){const s=(n.value.dictionary.items||[]).find(d=>d.value==e.value);if(s)return s.label}if(o.value.state.options.length>0){const l=o.value.state.options.find(s=>s.value==e.value);if(l)return l.label}return e.value});return{ns:t,val:u,handleClipboardKey:i}},render(){return a.createVNode("div",{class:this.ns.b()},[a.createVNode("span",{class:this.ns.e("info")},[this.val]),this.model.copy&&a.createVNode("span",{class:this.ns.e("copy")},[a.createVNode("i",{class:"iconfont icon-fuzhi primary-gct",onClick:this.handleClipboardKey},null)])])}}),Hc=w.widthEditorInstall(w.EditorTypeOld.SPAN,()=>new Gc,Lc);class ql{component="gct-form-switch"}const Dl=a.defineComponent({name:"GctFormSwitch",props:{model:{type:Object,required:!0},value:{type:String,default:""}},setup(){const e=w.useNamespace("gct-form-switch"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return a.createVNode("div",{class:this.ns.b()},[a.createVNode(a.resolveComponent("a-switch"),a.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)])}}),Uc=w.widthEditorInstall(w.EditorType.SWITCH,()=>new ql,Dl),zc=w.widthEditorInstall(w.EditorTypeOld.SWITCH,()=>new ql,Dl);class Gl{component="gct-form-text"}const Ll=a.defineComponent({name:"GctFormText",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=w.useNamespace("gct-form-text"),r=new w.EditorController(e.model),n=w.useGctFormValueByText(e.model.prefix||e.model.addonBefore,e.model.suffix||e.model.addonAfter);return{ns:t,c:r,val:n}},render(){return a.createVNode(a.resolveComponent("a-input"),a.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),prefix:this.model.prefix,suffix:this.model.suffix,addonBefore:this.model.addonBefore,addonAfter:this.model.addonAfter,placeholder:this.model.placeholder,"show-count":this.model.max!=null,maxlength:this.model.max}),null)}}),Wc=w.widthEditorInstall(w.EditorType.TEXT,()=>new Gl,Ll),Kc=w.widthEditorInstall(w.EditorTypeOld.TEXT,()=>new Gl,Ll);class Yc{component="gct-form-textarea"}const Xc=a.defineComponent({name:"GctFormTextarea",props:{model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-textarea"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return a.createVNode(a.resolveComponent("a-textarea"),a.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),"auto-size":this.model.autoSize,"show-count":this.model.max!=null,maxlength:this.model.max,placeholder:this.model.placeholder}),null)}}),Jc=w.widthEditorInstall(w.EditorTypeOld.TEXTAREA,()=>new Yc,Xc);function Zc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Hl=a.defineComponent({name:"GctFormRadio",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-radio"),t=w.useGctFormValue();return{ns:e,val:t}},render(){const e={...this.model.props||{},class:[this.ns.b()],allowClear:!0,disabled:this.c.state.disabled};if(this.model.buttonMode){let t;return e.class.push(this.ns.m("button")),a.createVNode(qe.RadioGroup,a.mergeProps({value:this.val,"onUpdate:value":r=>this.val=r,size:"small","button-style":"solid"},e),Zc(t=this.c.state.options.map(r=>a.createVNode(qe.RadioButton,{key:r.value,value:r.value},{default:()=>[r.label]})))?t:{default:()=>[t]})}return e.class.push(this.ns.m("radio")),a.createVNode(qe.RadioGroup,a.mergeProps({value:this.val,"onUpdate:value":t=>this.val=t,options:this.c.state.options},e),null)}});let Ul=class{component="gct-form-radio"};const Qc=w.widthEditorInstall(w.EditorType.RADIO,()=>new Ul,Hl),ed=w.widthEditorInstall(w.EditorTypeOld.RADIO,()=>new Ul,Hl),td=a.defineComponent({name:"GctFormInfo",props:{value:{type:String,default:""},model:{type:Object,required:!0}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-info"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return a.createVNode("div",{class:this.ns.b()},[this.model.icon?a.createVNode("span",{class:this.ns.e("icon")},[a.createVNode("i",{class:`iconfont ${this.model.icon}`},null)]):null,a.createVNode("span",{class:this.ns.e("content")},[this.val||this.model.content])])}});let rd=class{component="gct-form-info"};const nd=w.widthEditorInstall(w.EditorTypeOld.INFO,()=>new rd,td),zl=a.defineComponent({name:"GctFormCheckbox",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:t}){const r=w.useNamespace("gct-form-checkbox"),n=w.useGctFormValue(),o=a.computed(()=>n.value),i=a.computed(()=>vt.cloneDeep(e.c.state.options));return{ns:r,checked:o,onChange:l=>{i.value.forEach(s=>{e.model.minLength&&l.length<=e.model.minLength&&l.includes(s.value)?s.disabled=!0:s.disabled=!1,s.checked=l.includes(s.value)}),t("update:value",l)},options:i}},render(){const e={...this.model.props||{},class:[this.ns.b(),this.ns.m("checkbox"),this.model.layout==="column"&&"isColumn"],disabled:this.c.state.disabled};return a.createVNode(qe.CheckboxGroup,a.mergeProps({value:this.checked,"onUpdate:value":t=>this.checked=t,options:this.options},e,{onChange:this.onChange}),null)}});class Wl{component="gct-form-checkbox"}const od=w.widthEditorInstall(w.EditorType.CHECKBOX,()=>new Wl,zl),ad=w.widthEditorInstall(w.EditorTypeOld.CHECKBOX,()=>new Wl,zl);var Kl=require("../internals/global-this"),Yl=require("../internals/function-call"),co=require("../internals/array-buffer-view-core"),id=require("../internals/length-of-array-like"),ld=require("../internals/to-offset"),sd=require("../internals/to-object"),Xl=require("../internals/fails"),ud=Kl.RangeError,Jn=Kl.Int8Array,da=Jn&&Jn.prototype,Jl=da&&da.set,cd=co.aTypedArray,dd=co.exportTypedArrayMethod,Zn=!Xl(function(){var e=new Uint8ClampedArray(2);return Yl(Jl,e,{length:1,0:3},1),e[1]!==3}),fd=Zn&&co.NATIVE_ARRAY_BUFFER_VIEWS&&Xl(function(){var e=new Jn(2);return e.set(1),e.set("2",1),e[0]!==0||e[1]!==2});dd("set",function(t){cd(this);var r=ld(arguments.length>1?arguments[1]:void 0,1),n=sd(t);if(Zn)return Yl(Jl,this,n,r);var o=this.length,i=id(n),u=0;if(i+r>o)throw new ud("Wrong length");for(;u<i;)this[r+u]=n[u++]},!Zn||fd);function Zl(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}const wr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const pd=Object.prototype.toString,hd=e=>pd.call(e)==="[object Object]",xe=()=>{},vd=gd();function gd(){var e,t;return wr&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function md(...e){if(e.length!==1)return a.toRef(...e);const t=e[0];return typeof t=="function"?a.readonly(a.customRef(()=>({get:t,set:xe}))):a.ref(t)}function Ql(e,t){function r(...n){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(i)})}return r}const es=e=>e();function yd(e,t={}){let r,n,o=xe;const i=s=>{clearTimeout(s),o(),o=xe};let u;return s=>{const d=a.toValue(e),c=a.toValue(t.maxWait);return r&&i(r),d<=0||c!==void 0&&c<=0?(n&&(i(n),n=void 0),Promise.resolve(s())):new Promise((f,p)=>{o=t.rejectOnCancel?p:f,u=s,c&&!n&&(n=setTimeout(()=>{r&&i(r),n=void 0,f(u())},c)),r=setTimeout(()=>{n&&i(n),n=void 0,f(s())},d)})}}function bd(e=es,t={}){const{initialState:r="active"}=t,n=md(r==="active");function o(){n.value=!1}function i(){n.value=!0}const u=(...l)=>{n.value&&e(...l)};return{isActive:a.readonly(n),pause:o,resume:i,eventFilter:u}}function Cd(e){let t;function r(){return t||(t=e()),t}return r.reset=async()=>{const n=t;t=void 0,n&&await n},r}function $r(e){return Array.isArray(e)?e:[e]}function wd(e){return a.getCurrentInstance()}function Ee(e,t=200,r={}){return Ql(yd(t,r),e)}function Sd(e,t,r={}){const{eventFilter:n=es,...o}=r;return a.watch(e,Ql(n,t),o)}function Od(e,t,r={}){const{eventFilter:n,initialState:o="active",...i}=r,{eventFilter:u,pause:l,resume:s,isActive:d}=bd(n,{initialState:o});return{stop:Sd(e,t,{...i,eventFilter:u}),pause:l,resume:s,isActive:d}}function ze(e,t=!0,r){wd()?a.onMounted(e,r):t?e():a.nextTick(e)}function xd(e,t,r={}){const{immediate:n=!0,immediateCallback:o=!1}=r,i=a.shallowRef(!1);let u;function l(){u&&(clearTimeout(u),u=void 0)}function s(){i.value=!1,l()}function d(...c){o&&e(),l(),i.value=!0,u=setTimeout(()=>{i.value=!1,u=void 0,e(...c)},a.toValue(t))}return n&&(i.value=!0,wr&&d()),Zl(s),{isPending:a.shallowReadonly(i),start:d,stop:s}}function Ed(e,t,r){return a.watch(e,t,{...r,immediate:!0})}function X(e,t,r){const n=a.watch(e,(o,i,u)=>{o&&(r?.once&&a.nextTick(()=>n()),t(o,i,u))},{...r,once:!1});return n}const It=wr?window:void 0,ts=wr?window.navigator:void 0;function kt(e){var t;const r=a.toValue(e);return(t=r?.$el)!=null?t:r}function De(...e){const t=[],r=()=>{t.forEach(l=>l()),t.length=0},n=(l,s,d,c)=>(l.addEventListener(s,d,c),()=>l.removeEventListener(s,d,c)),o=a.computed(()=>{const l=$r(a.toValue(e[0])).filter(s=>s!=null);return l.every(s=>typeof s!="string")?l:void 0}),i=Ed(()=>{var l,s;return[(s=(l=o.value)==null?void 0:l.map(d=>kt(d)))!=null?s:[It].filter(d=>d!=null),$r(a.toValue(o.value?e[1]:e[0])),$r(a.unref(o.value?e[2]:e[1])),a.toValue(o.value?e[3]:e[2])]},([l,s,d,c])=>{if(r(),!l?.length||!s?.length||!d?.length)return;const f=hd(c)?{...c}:c;t.push(...l.flatMap(p=>s.flatMap(h=>d.map(y=>n(p,h,y,f)))))},{flush:"post"}),u=()=>{i(),r()};return Zl(r),u}let fa=!1;function kd(e,t,r={}){const{window:n=It,ignore:o=[],capture:i=!0,detectIframe:u=!1,controls:l=!1}=r;if(!n)return l?{stop:xe,cancel:xe,trigger:xe}:xe;if(vd&&!fa){fa=!0;const v={passive:!0};Array.from(n.document.body.children).forEach(g=>g.addEventListener("click",xe,v)),n.document.documentElement.addEventListener("click",xe,v)}let s=!0;const d=v=>a.toValue(o).some(g=>{if(typeof g=="string")return Array.from(n.document.querySelectorAll(g)).some(m=>m===v.target||v.composedPath().includes(m));{const m=kt(g);return m&&(v.target===m||v.composedPath().includes(m))}});function c(v){const g=a.toValue(v);return g&&g.$.subTree.shapeFlag===16}function f(v,g){const m=a.toValue(v),C=m.$.subTree&&m.$.subTree.children;return C==null||!Array.isArray(C)?!1:C.some(O=>O.el===g.target||g.composedPath().includes(O.el))}const p=v=>{const g=kt(e);if(v.target!=null&&!(!(g instanceof Element)&&c(e)&&f(e,v))&&!(!g||g===v.target||v.composedPath().includes(g))){if("detail"in v&&v.detail===0&&(s=!d(v)),!s){s=!0;return}t(v)}};let h=!1;const y=[De(n,"click",v=>{h||(h=!0,setTimeout(()=>{h=!1},0),p(v))},{passive:!0,capture:i}),De(n,"pointerdown",v=>{const g=kt(e);s=!d(v)&&!!(g&&!v.composedPath().includes(g))},{passive:!0}),u&&De(n,"blur",v=>{setTimeout(()=>{var g;const m=kt(e);((g=n.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!m?.contains(n.document.activeElement)&&t(v)},0)},{passive:!0})].filter(Boolean),b=()=>y.forEach(v=>v());return l?{stop:b,cancel:()=>{s=!1},trigger:v=>{s=!0,p(v),s=!1}}:b}function _d(){const e=a.shallowRef(!1),t=a.getCurrentInstance();return t&&a.onMounted(()=>{e.value=!0},t),e}function rs(e){const t=_d();return a.computed(()=>(t.value,!!e()))}function pa(e,t={}){const{controls:r=!1,navigator:n=ts}=t,o=rs(()=>n&&"permissions"in n),i=a.shallowRef(),u=typeof e=="string"?{name:e}:e,l=a.shallowRef(),s=()=>{var c,f;l.value=(f=(c=i.value)==null?void 0:c.state)!=null?f:"prompt"};De(i,"change",s,{passive:!0});const d=Cd(async()=>{if(o.value){if(!i.value)try{i.value=await n.permissions.query(u)}catch{i.value=void 0}finally{s()}if(r)return a.toRaw(i.value)}});return d(),r?{state:l,isSupported:o,query:d}:l}function Td(e={}){const{navigator:t=ts,read:r=!1,source:n,copiedDuring:o=1500,legacy:i=!1}=e,u=rs(()=>t&&"clipboard"in t),l=pa("clipboard-read"),s=pa("clipboard-write"),d=a.computed(()=>u.value||i),c=a.shallowRef(""),f=a.shallowRef(!1),p=xd(()=>f.value=!1,o,{immediate:!1});async function h(){let m=!(u.value&&g(l.value));if(!m)try{c.value=await t.clipboard.readText()}catch{m=!0}m&&(c.value=v())}d.value&&r&&De(["copy","cut"],h,{passive:!0});async function y(m=a.toValue(n)){if(d.value&&m!=null){let C=!(u.value&&g(s.value));if(!C)try{await t.clipboard.writeText(m)}catch{C=!0}C&&b(m),c.value=m,f.value=!0,p.start()}}function b(m){const C=document.createElement("textarea");C.value=m??"",C.style.position="absolute",C.style.opacity="0",document.body.appendChild(C),C.select(),document.execCommand("copy"),C.remove()}function v(){var m,C,O;return(O=(C=(m=document?.getSelection)==null?void 0:m.call(document))==null?void 0:C.toString())!=null?O:""}function g(m){return m==="granted"||m==="prompt"}return{isSupported:d,text:c,copied:f,copy:y}}const Xt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Jt="__vueuse_ssr_handlers__",Nd=Ad();function Ad(){return Jt in Xt||(Xt[Jt]=Xt[Jt]||{}),Xt[Jt]}function Pd(e,t){return Nd[e]||t}function Rd(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const jd={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ha="vueuse-storage";function Id(e,t,r,n={}){var o;const{flush:i="pre",deep:u=!0,listenToStorageChanges:l=!0,writeDefaults:s=!0,mergeDefaults:d=!1,shallow:c,window:f=It,eventFilter:p,onError:h=_=>{console.error(_)},initOnMounted:y}=n,b=(c?a.shallowRef:a.ref)(typeof t=="function"?t():t),v=a.computed(()=>a.toValue(e));if(!r)try{r=Pd("getDefaultStorage",()=>{var _;return(_=It)==null?void 0:_.localStorage})()}catch(_){h(_)}if(!r)return b;const g=a.toValue(t),m=Rd(g),C=(o=n.serializer)!=null?o:jd[m],{pause:O,resume:k}=Od(b,_=>F(_),{flush:i,deep:u,eventFilter:p});a.watch(v,()=>T(),{flush:i});let E=!1;const R=_=>{y&&!E||T(_)},B=_=>{y&&!E||j(_)};f&&l&&(r instanceof Storage?De(f,"storage",R,{passive:!0}):De(f,ha,B)),y?ze(()=>{E=!0,T()}):T();function I(_,A){if(f){const $={key:v.value,oldValue:_,newValue:A,storageArea:r};f.dispatchEvent(r instanceof Storage?new StorageEvent("storage",$):new CustomEvent(ha,{detail:$}))}}function F(_){try{const A=r.getItem(v.value);if(_==null)I(A,null),r.removeItem(v.value);else{const $=C.write(_);A!==$&&(r.setItem(v.value,$),I(A,$))}}catch(A){h(A)}}function S(_){const A=_?_.newValue:r.getItem(v.value);if(A==null)return s&&g!=null&&r.setItem(v.value,C.write(g)),g;if(!_&&d){const $=C.read(A);return typeof d=="function"?d($,g):m==="object"&&!Array.isArray($)?{...g,...$}:$}else return typeof A!="string"?A:C.read(A)}function T(_){if(!(_&&_.storageArea!==r)){if(_&&_.key==null){b.value=g;return}if(!(_&&_.key!==v.value)){O();try{const A=C.write(b.value);(_===void 0||_?.newValue!==A)&&(b.value=S(_))}catch(A){h(A)}finally{_?a.nextTick(k):k()}}}}function j(_){T(_.detail)}return b}function fo(e,t,r={}){const{window:n=It}=r;return Id(e,t,n?.localStorage,r)}function lr(e){"@babel/helpers - typeof";return lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lr(e)}var Vd=/^\s+/,$d=/\s+$/;function x(e,t){if(e=e||"",t=t||{},e instanceof x)return e;if(!(this instanceof x))return new x(e,t);var r=Bd(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}x.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,o,i,u,l;return r=t.r/255,n=t.g/255,o=t.b/255,r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),n<=.03928?u=n/12.92:u=Math.pow((n+.055)/1.055,2.4),o<=.03928?l=o/12.92:l=Math.pow((o+.055)/1.055,2.4),.2126*i+.7152*u+.0722*l},setAlpha:function(t){return this._a=ns(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ga(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ga(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+o+"%)":"hsva("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=va(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=va(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+o+"%)":"hsla("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return ma(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return Dd(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(D(this._r,255)*100)+"%",g:Math.round(D(this._g,255)*100)+"%",b:Math.round(D(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(D(this._r,255)*100)+"%, "+Math.round(D(this._g,255)*100)+"%, "+Math.round(D(this._b,255)*100)+"%)":"rgba("+Math.round(D(this._r,255)*100)+"%, "+Math.round(D(this._g,255)*100)+"%, "+Math.round(D(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Qd[ma(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+ya(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var i=x(t);n="#"+ya(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,o=this._a<1&&this._a>=0,i=!r&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return i?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return x(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Ud,arguments)},brighten:function(){return this._applyModification(zd,arguments)},darken:function(){return this._applyModification(Wd,arguments)},desaturate:function(){return this._applyModification(Gd,arguments)},saturate:function(){return this._applyModification(Ld,arguments)},greyscale:function(){return this._applyModification(Hd,arguments)},spin:function(){return this._applyModification(Kd,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(Jd,arguments)},complement:function(){return this._applyCombination(Yd,arguments)},monochromatic:function(){return this._applyCombination(Zd,arguments)},splitcomplement:function(){return this._applyCombination(Xd,arguments)},triad:function(){return this._applyCombination(ba,[3])},tetrad:function(){return this._applyCombination(ba,[4])}};x.fromRatio=function(e,t){if(lr(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=_t(e[n]));e=r}return x(e,t)};function Bd(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,i=null,u=!1,l=!1;return typeof e=="string"&&(e=nf(e)),lr(e)=="object"&&(Se(e.r)&&Se(e.g)&&Se(e.b)?(t=Fd(e.r,e.g,e.b),u=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Se(e.h)&&Se(e.s)&&Se(e.v)?(n=_t(e.s),o=_t(e.v),t=qd(e.h,n,o),u=!0,l="hsv"):Se(e.h)&&Se(e.s)&&Se(e.l)&&(n=_t(e.s),i=_t(e.l),t=Md(e.h,n,i),u=!0,l="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=ns(r),{ok:u,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function Fd(e,t,r){return{r:D(e,255)*255,g:D(t,255)*255,b:D(r,255)*255}}function va(e,t,r){e=D(e,255),t=D(t,255),r=D(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i,u,l=(n+o)/2;if(n==o)i=u=0;else{var s=n-o;switch(u=l>.5?s/(2-n-o):s/(n+o),n){case e:i=(t-r)/s+(t<r?6:0);break;case t:i=(r-e)/s+2;break;case r:i=(e-t)/s+4;break}i/=6}return{h:i,s:u,l}}function Md(e,t,r){var n,o,i;e=D(e,360),t=D(t,100),r=D(r,100);function u(d,c,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?d+(c-d)*6*f:f<1/2?c:f<2/3?d+(c-d)*(2/3-f)*6:d}if(t===0)n=o=i=r;else{var l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;n=u(s,l,e+1/3),o=u(s,l,e),i=u(s,l,e-1/3)}return{r:n*255,g:o*255,b:i*255}}function ga(e,t,r){e=D(e,255),t=D(t,255),r=D(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i,u,l=n,s=n-o;if(u=n===0?0:s/n,n==o)i=0;else{switch(n){case e:i=(t-r)/s+(t<r?6:0);break;case t:i=(r-e)/s+2;break;case r:i=(e-t)/s+4;break}i/=6}return{h:i,s:u,v:l}}function qd(e,t,r){e=D(e,360)*6,t=D(t,100),r=D(r,100);var n=Math.floor(e),o=e-n,i=r*(1-t),u=r*(1-o*t),l=r*(1-(1-o)*t),s=n%6,d=[r,u,i,i,l,r][s],c=[l,r,r,u,i,i][s],f=[i,i,l,r,r,u][s];return{r:d*255,g:c*255,b:f*255}}function ma(e,t,r,n){var o=[he(Math.round(e).toString(16)),he(Math.round(t).toString(16)),he(Math.round(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Dd(e,t,r,n,o){var i=[he(Math.round(e).toString(16)),he(Math.round(t).toString(16)),he(Math.round(r).toString(16)),he(os(n))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function ya(e,t,r,n){var o=[he(os(n)),he(Math.round(e).toString(16)),he(Math.round(t).toString(16)),he(Math.round(r).toString(16))];return o.join("")}x.equals=function(e,t){return!e||!t?!1:x(e).toRgbString()==x(t).toRgbString()};x.random=function(){return x.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Gd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s-=t/100,r.s=Sr(r.s),x(r)}function Ld(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s+=t/100,r.s=Sr(r.s),x(r)}function Hd(e){return x(e).desaturate(100)}function Ud(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l+=t/100,r.l=Sr(r.l),x(r)}function zd(e,t){t=t===0?0:t||10;var r=x(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),x(r)}function Wd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l-=t/100,r.l=Sr(r.l),x(r)}function Kd(e,t){var r=x(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,x(r)}function Yd(e){var t=x(e).toHsl();return t.h=(t.h+180)%360,x(t)}function ba(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=x(e).toHsl(),n=[x(e)],o=360/t,i=1;i<t;i++)n.push(x({h:(r.h+i*o)%360,s:r.s,l:r.l}));return n}function Xd(e){var t=x(e).toHsl(),r=t.h;return[x(e),x({h:(r+72)%360,s:t.s,l:t.l}),x({h:(r+216)%360,s:t.s,l:t.l})]}function Jd(e,t,r){t=t||6,r=r||30;var n=x(e).toHsl(),o=360/r,i=[x(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(x(n));return i}function Zd(e,t){t=t||6;for(var r=x(e).toHsv(),n=r.h,o=r.s,i=r.v,u=[],l=1/t;t--;)u.push(x({h:n,s:o,v:i})),i=(i+l)%1;return u}x.mix=function(e,t,r){r=r===0?0:r||50;var n=x(e).toRgb(),o=x(t).toRgb(),i=r/100,u={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return x(u)};x.readability=function(e,t){var r=x(e),n=x(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};x.isReadable=function(e,t,r){var n=x.readability(e,t),o,i;switch(i=!1,o=of(r),o.level+o.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i};x.mostReadable=function(e,t,r){var n=null,o=0,i,u,l,s;r=r||{},u=r.includeFallbackColors,l=r.level,s=r.size;for(var d=0;d<t.length;d++)i=x.readability(e,t[d]),i>o&&(o=i,n=x(t[d]));return x.isReadable(e,n,{level:l,size:s})||!u?n:(r.includeFallbackColors=!1,x.mostReadable(e,["#fff","#000"],r))};var Qn=x.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Qd=x.hexNames=ef(Qn);function ef(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function ns(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function D(e,t){tf(e)&&(e="100%");var r=rf(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Sr(e){return Math.min(1,Math.max(0,e))}function ne(e){return parseInt(e,16)}function tf(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function rf(e){return typeof e=="string"&&e.indexOf("%")!=-1}function he(e){return e.length==1?"0"+e:""+e}function _t(e){return e<=1&&(e=e*100+"%"),e}function os(e){return Math.round(parseFloat(e)*255).toString(16)}function Ca(e){return ne(e)/255}var pe=(function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Se(e){return!!pe.CSS_UNIT.exec(e)}function nf(e){e=e.replace(Vd,"").replace($d,"").toLowerCase();var t=!1;if(Qn[e])e=Qn[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=pe.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=pe.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=pe.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=pe.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=pe.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=pe.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=pe.hex8.exec(e))?{r:ne(r[1]),g:ne(r[2]),b:ne(r[3]),a:Ca(r[4]),format:t?"name":"hex8"}:(r=pe.hex6.exec(e))?{r:ne(r[1]),g:ne(r[2]),b:ne(r[3]),format:t?"name":"hex"}:(r=pe.hex4.exec(e))?{r:ne(r[1]+""+r[1]),g:ne(r[2]+""+r[2]),b:ne(r[3]+""+r[3]),a:Ca(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=pe.hex3.exec(e))?{r:ne(r[1]+""+r[1]),g:ne(r[2]+""+r[2]),b:ne(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function of(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var wa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Zt={},Sa;function af(){if(Sa)return Zt;Sa=1;var e=e||{};e.stringify=(function(){var t={"visit_linear-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-linear-gradient":function(r){return t.visit_gradient(r)},"visit_radial-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-radial-gradient":function(r){return t.visit_gradient(r)},visit_gradient:function(r){var n=t.visit(r.orientation);return n&&(n+=", "),r.type+"("+n+t.visit(r.colorStops)+")"},visit_shape:function(r){var n=r.value,o=t.visit(r.at),i=t.visit(r.style);return i&&(n+=" "+i),o&&(n+=" at "+o),n},"visit_default-radial":function(r){var n="",o=t.visit(r.at);return o&&(n+=o),n},"visit_extent-keyword":function(r){var n=r.value,o=t.visit(r.at);return o&&(n+=" at "+o),n},"visit_position-keyword":function(r){return r.value},visit_position:function(r){return t.visit(r.value.x)+" "+t.visit(r.value.y)},"visit_%":function(r){return r.value+"%"},visit_em:function(r){return r.value+"em"},visit_px:function(r){return r.value+"px"},visit_literal:function(r){return t.visit_color(r.value,r)},visit_hex:function(r){return t.visit_color("#"+r.value,r)},visit_rgb:function(r){return t.visit_color("rgb("+r.value.join(", ")+")",r)},visit_rgba:function(r){return t.visit_color("rgba("+r.value.join(", ")+")",r)},visit_color:function(r,n){var o=r,i=t.visit(n.length);return i&&(o+=" "+i),o},visit_angular:function(r){return r.value+"deg"},visit_directional:function(r){return"to "+r.value},visit_array:function(r){var n="",o=r.length;return r.forEach(function(i,u){n+=t.visit(i),u<o-1&&(n+=", ")}),n},visit:function(r){if(!r)return"";var n="";if(r instanceof Array)return t.visit_array(r,n);if(r.type){var o=t["visit_"+r.type];if(o)return o(r);throw Error("Missing visitor visit_"+r.type)}else throw Error("Invalid node.")}};return function(r){return t.visit(r)}})();var e=e||{};return e.parse=(function(){var t={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},r="";function n(N){var V=new Error(r+": "+N);throw V.source=r,V}function o(){var N=i();return r.length>0&&n("Invalid input not EOF"),N}function i(){return O(u)}function u(){return l("linear-gradient",t.linearGradient,d)||l("repeating-linear-gradient",t.repeatingLinearGradient,d)||l("radial-gradient",t.radialGradient,p)||l("repeating-radial-gradient",t.repeatingRadialGradient,p)}function l(N,V,M){return s(V,function(Q){var ge=M();return ge&&($(t.comma)||n("Missing comma before color stops")),{type:N,orientation:ge,colorStops:O(k)}})}function s(N,V){var M=$(N);if(M){$(t.startCall)||n("Missing (");var Q=V(M);return $(t.endCall)||n("Missing )"),Q}}function d(){return c()||f()}function c(){return A("directional",t.sideOrCorner,1)}function f(){return A("angular",t.angleValue,1)}function p(){var N,V=h(),M;return V&&(N=[],N.push(V),M=r,$(t.comma)&&(V=h(),V?N.push(V):r=M)),N}function h(){var N=y()||b();if(N)N.at=g();else{var V=v();if(V){N=V;var M=g();M&&(N.at=M)}else{var Q=m();Q&&(N={type:"default-radial",at:Q})}}return N}function y(){var N=A("shape",/^(circle)/i,0);return N&&(N.style=_()||v()),N}function b(){var N=A("shape",/^(ellipse)/i,0);return N&&(N.style=T()||v()),N}function v(){return A("extent-keyword",t.extentKeywords,1)}function g(){if(A("position",/^at/,0)){var N=m();return N||n("Missing positioning value"),N}}function m(){var N=C();if(N.x||N.y)return{type:"position",value:N}}function C(){return{x:T(),y:T()}}function O(N){var V=N(),M=[];if(V)for(M.push(V);$(t.comma);)V=N(),V?M.push(V):n("One extra comma");return M}function k(){var N=E();return N||n("Expected color definition"),N.length=T(),N}function E(){return B()||F()||I()||R()}function R(){return A("literal",t.literalColor,0)}function B(){return A("hex",t.hexColor,1)}function I(){return s(t.rgbColor,function(){return{type:"rgb",value:O(S)}})}function F(){return s(t.rgbaColor,function(){return{type:"rgba",value:O(S)}})}function S(){return $(t.number)[1]}function T(){return A("%",t.percentageValue,1)||j()||_()}function j(){return A("position-keyword",t.positionKeywords,1)}function _(){return A("px",t.pixelValue,1)||A("em",t.emValue,1)}function A(N,V,M){var Q=$(V);if(Q)return{type:N,value:Q[M]}}function $(N){var V,M;return M=/^[\n\r\t\s]+/.exec(r),M&&K(M[0].length),V=N.exec(r),V&&K(V[0].length),V}function K(N){r=r.substr(N)}return function(N){return r=N.toString(),o()}})(),Zt.parse=e.parse,Zt.stringify=e.stringify,Zt}var Oa=af(),ee="top",ce="bottom",de="right",te="left",po="auto",Dt=[ee,ce,de,te],it="start",Vt="end",lf="clippingParents",as="viewport",Ct="popper",sf="reference",xa=Dt.reduce(function(e,t){return e.concat([t+"-"+it,t+"-"+Vt])},[]),is=[].concat(Dt,[po]).reduce(function(e,t){return e.concat([t,t+"-"+it,t+"-"+Vt])},[]),uf="beforeRead",cf="read",df="afterRead",ff="beforeMain",pf="main",hf="afterMain",vf="beforeWrite",gf="write",mf="afterWrite",yf=[uf,cf,df,ff,pf,hf,vf,gf,mf];function Ce(e){return e?(e.nodeName||"").toLowerCase():null}function oe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Le(e){var t=oe(e).Element;return e instanceof t||e instanceof Element}function se(e){var t=oe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ho(e){if(typeof ShadowRoot>"u")return!1;var t=oe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bf(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!se(i)||!Ce(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(u){var l=o[u];l===!1?i.removeAttribute(u):i.setAttribute(u,l===!0?"":l)}))})}function Cf(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},u=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=u.reduce(function(s,d){return s[d]="",s},{});!se(o)||!Ce(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(s){o.removeAttribute(s)}))})}}const wf={name:"applyStyles",enabled:!0,phase:"write",fn:bf,effect:Cf,requires:["computeStyles"]};function be(e){return e.split("-")[0]}var Ge=Math.max,sr=Math.min,lt=Math.round;function eo(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ls(){return!/^((?!chrome|android).)*safari/i.test(eo())}function st(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&se(e)&&(o=e.offsetWidth>0&<(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&<(n.height)/e.offsetHeight||1);var u=Le(e)?oe(e):window,l=u.visualViewport,s=!ls()&&r,d=(n.left+(s&&l?l.offsetLeft:0))/o,c=(n.top+(s&&l?l.offsetTop:0))/i,f=n.width/o,p=n.height/i;return{width:f,height:p,top:c,right:d+f,bottom:c+p,left:d,x:d,y:c}}function vo(e){var t=st(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function ss(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&ho(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function _e(e){return oe(e).getComputedStyle(e)}function Sf(e){return["table","td","th"].indexOf(Ce(e))>=0}function Ve(e){return((Le(e)?e.ownerDocument:e.document)||window.document).documentElement}function Or(e){return Ce(e)==="html"?e:e.assignedSlot||e.parentNode||(ho(e)?e.host:null)||Ve(e)}function Ea(e){return!se(e)||_e(e).position==="fixed"?null:e.offsetParent}function Of(e){var t=/firefox/i.test(eo()),r=/Trident/i.test(eo());if(r&&se(e)){var n=_e(e);if(n.position==="fixed")return null}var o=Or(e);for(ho(o)&&(o=o.host);se(o)&&["html","body"].indexOf(Ce(o))<0;){var i=_e(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Gt(e){for(var t=oe(e),r=Ea(e);r&&Sf(r)&&_e(r).position==="static";)r=Ea(r);return r&&(Ce(r)==="html"||Ce(r)==="body"&&_e(r).position==="static")?t:r||Of(e)||t}function go(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Nt(e,t,r){return Ge(e,sr(t,r))}function xf(e,t,r){var n=Nt(e,t,r);return n>r?r:n}function us(){return{top:0,right:0,bottom:0,left:0}}function cs(e){return Object.assign({},us(),e)}function ds(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Ef=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,cs(typeof t!="number"?t:ds(t,Dt))};function kf(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,u=r.modifiersData.popperOffsets,l=be(r.placement),s=go(l),d=[te,de].indexOf(l)>=0,c=d?"height":"width";if(!(!i||!u)){var f=Ef(o.padding,r),p=vo(i),h=s==="y"?ee:te,y=s==="y"?ce:de,b=r.rects.reference[c]+r.rects.reference[s]-u[s]-r.rects.popper[c],v=u[s]-r.rects.reference[s],g=Gt(i),m=g?s==="y"?g.clientHeight||0:g.clientWidth||0:0,C=b/2-v/2,O=f[h],k=m-p[c]-f[y],E=m/2-p[c]/2+C,R=Nt(O,E,k),B=s;r.modifiersData[n]=(t={},t[B]=R,t.centerOffset=R-E,t)}}function _f(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||ss(t.elements.popper,o)&&(t.elements.arrow=o))}const Tf={name:"arrow",enabled:!0,phase:"main",fn:kf,effect:_f,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ut(e){return e.split("-")[1]}var Nf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Af(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:lt(r*o)/o||0,y:lt(n*o)/o||0}}function ka(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,u=e.offsets,l=e.position,s=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=u.x,h=p===void 0?0:p,y=u.y,b=y===void 0?0:y,v=typeof c=="function"?c({x:h,y:b}):{x:h,y:b};h=v.x,b=v.y;var g=u.hasOwnProperty("x"),m=u.hasOwnProperty("y"),C=te,O=ee,k=window;if(d){var E=Gt(r),R="clientHeight",B="clientWidth";if(E===oe(r)&&(E=Ve(r),_e(E).position!=="static"&&l==="absolute"&&(R="scrollHeight",B="scrollWidth")),E=E,o===ee||(o===te||o===de)&&i===Vt){O=ce;var I=f&&E===k&&k.visualViewport?k.visualViewport.height:E[R];b-=I-n.height,b*=s?1:-1}if(o===te||(o===ee||o===ce)&&i===Vt){C=de;var F=f&&E===k&&k.visualViewport?k.visualViewport.width:E[B];h-=F-n.width,h*=s?1:-1}}var S=Object.assign({position:l},d&&Nf),T=c===!0?Af({x:h,y:b},oe(r)):{x:h,y:b};if(h=T.x,b=T.y,s){var j;return Object.assign({},S,(j={},j[O]=m?"0":"",j[C]=g?"0":"",j.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",j))}return Object.assign({},S,(t={},t[O]=m?b+"px":"",t[C]=g?h+"px":"",t.transform="",t))}function Pf(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,u=i===void 0?!0:i,l=r.roundOffsets,s=l===void 0?!0:l,d={placement:be(t.placement),variation:ut(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ka(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ka(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Rf={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Pf,data:{}};var Qt={passive:!0};function jf(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,u=n.resize,l=u===void 0?!0:u,s=oe(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(c){c.addEventListener("scroll",r.update,Qt)}),l&&s.addEventListener("resize",r.update,Qt),function(){i&&d.forEach(function(c){c.removeEventListener("scroll",r.update,Qt)}),l&&s.removeEventListener("resize",r.update,Qt)}}const If={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:jf,data:{}};var Vf={left:"right",right:"left",bottom:"top",top:"bottom"};function nr(e){return e.replace(/left|right|bottom|top/g,function(t){return Vf[t]})}var $f={start:"end",end:"start"};function _a(e){return e.replace(/start|end/g,function(t){return $f[t]})}function mo(e){var t=oe(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function yo(e){return st(Ve(e)).left+mo(e).scrollLeft}function Bf(e,t){var r=oe(e),n=Ve(e),o=r.visualViewport,i=n.clientWidth,u=n.clientHeight,l=0,s=0;if(o){i=o.width,u=o.height;var d=ls();(d||!d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:u,x:l+yo(e),y:s}}function Ff(e){var t,r=Ve(e),n=mo(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ge(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),u=Ge(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+yo(e),s=-n.scrollTop;return _e(o||r).direction==="rtl"&&(l+=Ge(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:u,x:l,y:s}}function bo(e){var t=_e(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function fs(e){return["html","body","#document"].indexOf(Ce(e))>=0?e.ownerDocument.body:se(e)&&bo(e)?e:fs(Or(e))}function At(e,t){var r;t===void 0&&(t=[]);var n=fs(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=oe(n),u=o?[i].concat(i.visualViewport||[],bo(n)?n:[]):n,l=t.concat(u);return o?l:l.concat(At(Or(u)))}function to(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Mf(e,t){var r=st(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Ta(e,t,r){return t===as?to(Bf(e,r)):Le(t)?Mf(t,r):to(Ff(Ve(e)))}function qf(e){var t=At(Or(e)),r=["absolute","fixed"].indexOf(_e(e).position)>=0,n=r&&se(e)?Gt(e):e;return Le(n)?t.filter(function(o){return Le(o)&&ss(o,n)&&Ce(o)!=="body"}):[]}function Df(e,t,r,n){var o=t==="clippingParents"?qf(e):[].concat(t),i=[].concat(o,[r]),u=i[0],l=i.reduce(function(s,d){var c=Ta(e,d,n);return s.top=Ge(c.top,s.top),s.right=sr(c.right,s.right),s.bottom=sr(c.bottom,s.bottom),s.left=Ge(c.left,s.left),s},Ta(e,u,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ps(e){var t=e.reference,r=e.element,n=e.placement,o=n?be(n):null,i=n?ut(n):null,u=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,s;switch(o){case ee:s={x:u,y:t.y-r.height};break;case ce:s={x:u,y:t.y+t.height};break;case de:s={x:t.x+t.width,y:l};break;case te:s={x:t.x-r.width,y:l};break;default:s={x:t.x,y:t.y}}var d=o?go(o):null;if(d!=null){var c=d==="y"?"height":"width";switch(i){case it:s[d]=s[d]-(t[c]/2-r[c]/2);break;case Vt:s[d]=s[d]+(t[c]/2-r[c]/2);break}}return s}function $t(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,u=i===void 0?e.strategy:i,l=r.boundary,s=l===void 0?lf:l,d=r.rootBoundary,c=d===void 0?as:d,f=r.elementContext,p=f===void 0?Ct:f,h=r.altBoundary,y=h===void 0?!1:h,b=r.padding,v=b===void 0?0:b,g=cs(typeof v!="number"?v:ds(v,Dt)),m=p===Ct?sf:Ct,C=e.rects.popper,O=e.elements[y?m:p],k=Df(Le(O)?O:O.contextElement||Ve(e.elements.popper),s,c,u),E=st(e.elements.reference),R=ps({reference:E,element:C,placement:o}),B=to(Object.assign({},C,R)),I=p===Ct?B:E,F={top:k.top-I.top+g.top,bottom:I.bottom-k.bottom+g.bottom,left:k.left-I.left+g.left,right:I.right-k.right+g.right},S=e.modifiersData.offset;if(p===Ct&&S){var T=S[o];Object.keys(F).forEach(function(j){var _=[de,ce].indexOf(j)>=0?1:-1,A=[ee,ce].indexOf(j)>=0?"y":"x";F[j]+=T[A]*_})}return F}function Gf(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,u=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,d=s===void 0?is:s,c=ut(n),f=c?l?xa:xa.filter(function(y){return ut(y)===c}):Dt,p=f.filter(function(y){return d.indexOf(y)>=0});p.length===0&&(p=f);var h=p.reduce(function(y,b){return y[b]=$t(e,{placement:b,boundary:o,rootBoundary:i,padding:u})[be(b)],y},{});return Object.keys(h).sort(function(y,b){return h[y]-h[b]})}function Lf(e){if(be(e)===po)return[];var t=nr(e);return[_a(e),t,_a(t)]}function Hf(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,u=r.altAxis,l=u===void 0?!0:u,s=r.fallbackPlacements,d=r.padding,c=r.boundary,f=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,y=h===void 0?!0:h,b=r.allowedAutoPlacements,v=t.options.placement,g=be(v),m=g===v,C=s||(m||!y?[nr(v)]:Lf(v)),O=[v].concat(C).reduce(function(Ae,me){return Ae.concat(be(me)===po?Gf(t,{placement:me,boundary:c,rootBoundary:f,padding:d,flipVariations:y,allowedAutoPlacements:b}):me)},[]),k=t.rects.reference,E=t.rects.popper,R=new Map,B=!0,I=O[0],F=0;F<O.length;F++){var S=O[F],T=be(S),j=ut(S)===it,_=[ee,ce].indexOf(T)>=0,A=_?"width":"height",$=$t(t,{placement:S,boundary:c,rootBoundary:f,altBoundary:p,padding:d}),K=_?j?de:te:j?ce:ee;k[A]>E[A]&&(K=nr(K));var N=nr(K),V=[];if(i&&V.push($[T]<=0),l&&V.push($[K]<=0,$[N]<=0),V.every(function(Ae){return Ae})){I=S,B=!1;break}R.set(S,V)}if(B)for(var M=y?3:1,Q=function(me){var bt=O.find(function(Wt){var Be=R.get(Wt);if(Be)return Be.slice(0,me).every(function(Pr){return Pr})});if(bt)return I=bt,"break"},ge=M;ge>0;ge--){var Ze=Q(ge);if(Ze==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}const Uf={name:"flip",enabled:!0,phase:"main",fn:Hf,requiresIfExists:["offset"],data:{_skip:!1}};function Na(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Aa(e){return[ee,de,ce,te].some(function(t){return e[t]>=0})}function zf(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,u=$t(t,{elementContext:"reference"}),l=$t(t,{altBoundary:!0}),s=Na(u,n),d=Na(l,o,i),c=Aa(s),f=Aa(d);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Wf={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zf};function Kf(e,t,r){var n=be(e),o=[te,ee].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=i[0],l=i[1];return u=u||0,l=(l||0)*o,[te,de].indexOf(n)>=0?{x:l,y:u}:{x:u,y:l}}function Yf(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,u=is.reduce(function(c,f){return c[f]=Kf(f,t.rects,i),c},{}),l=u[t.placement],s=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=u}const Xf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Yf};function Jf(e){var t=e.state,r=e.name;t.modifiersData[r]=ps({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Zf={name:"popperOffsets",enabled:!0,phase:"read",fn:Jf,data:{}};function Qf(e){return e==="x"?"y":"x"}function ep(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,u=r.altAxis,l=u===void 0?!1:u,s=r.boundary,d=r.rootBoundary,c=r.altBoundary,f=r.padding,p=r.tether,h=p===void 0?!0:p,y=r.tetherOffset,b=y===void 0?0:y,v=$t(t,{boundary:s,rootBoundary:d,padding:f,altBoundary:c}),g=be(t.placement),m=ut(t.placement),C=!m,O=go(g),k=Qf(O),E=t.modifiersData.popperOffsets,R=t.rects.reference,B=t.rects.popper,I=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,F=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(E){if(i){var j,_=O==="y"?ee:te,A=O==="y"?ce:de,$=O==="y"?"height":"width",K=E[O],N=K+v[_],V=K-v[A],M=h?-B[$]/2:0,Q=m===it?R[$]:B[$],ge=m===it?-B[$]:-R[$],Ze=t.elements.arrow,Ae=h&&Ze?vo(Ze):{width:0,height:0},me=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:us(),bt=me[_],Wt=me[A],Be=Nt(0,R[$],Ae[$]),Pr=C?R[$]/2-M-Be-bt-F.mainAxis:Q-Be-bt-F.mainAxis,fu=C?-R[$]/2+M+Be+Wt+F.mainAxis:ge+Be+Wt+F.mainAxis,Rr=t.elements.arrow&&Gt(t.elements.arrow),pu=Rr?O==="y"?Rr.clientTop||0:Rr.clientLeft||0:0,Uo=(j=S?.[O])!=null?j:0,hu=K+Pr-Uo-pu,vu=K+fu-Uo,zo=Nt(h?sr(N,hu):N,K,h?Ge(V,vu):V);E[O]=zo,T[O]=zo-K}if(l){var Wo,gu=O==="x"?ee:te,mu=O==="x"?ce:de,Fe=E[k],Kt=k==="y"?"height":"width",Ko=Fe+v[gu],Yo=Fe-v[mu],jr=[ee,te].indexOf(g)!==-1,Xo=(Wo=S?.[k])!=null?Wo:0,Jo=jr?Ko:Fe-R[Kt]-B[Kt]-Xo+F.altAxis,Zo=jr?Fe+R[Kt]+B[Kt]-Xo-F.altAxis:Yo,Qo=h&&jr?xf(Jo,Fe,Zo):Nt(h?Jo:Ko,Fe,h?Zo:Yo);E[k]=Qo,T[k]=Qo-Fe}t.modifiersData[n]=T}}const tp={name:"preventOverflow",enabled:!0,phase:"main",fn:ep,requiresIfExists:["offset"]};function rp(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function np(e){return e===oe(e)||!se(e)?mo(e):rp(e)}function op(e){var t=e.getBoundingClientRect(),r=lt(t.width)/e.offsetWidth||1,n=lt(t.height)/e.offsetHeight||1;return r!==1||n!==1}function ap(e,t,r){r===void 0&&(r=!1);var n=se(t),o=se(t)&&op(t),i=Ve(t),u=st(e,o,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((Ce(t)!=="body"||bo(i))&&(l=np(t)),se(t)?(s=st(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=yo(i))),{x:u.left+l.scrollLeft-s.x,y:u.top+l.scrollTop-s.y,width:u.width,height:u.height}}function ip(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var u=[].concat(i.requires||[],i.requiresIfExists||[]);u.forEach(function(l){if(!r.has(l)){var s=t.get(l);s&&o(s)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function lp(e){var t=ip(e);return yf.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function sp(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function up(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Pa={placement:"bottom",modifiers:[],strategy:"absolute"};function Ra(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function cp(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?Pa:o;return function(l,s,d){d===void 0&&(d=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pa,i),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},f=[],p=!1,h={state:c,setOptions:function(g){var m=typeof g=="function"?g(c.options):g;b(),c.options=Object.assign({},i,c.options,m),c.scrollParents={reference:Le(l)?At(l):l.contextElement?At(l.contextElement):[],popper:At(s)};var C=lp(up([].concat(n,c.options.modifiers)));return c.orderedModifiers=C.filter(function(O){return O.enabled}),y(),h.update()},forceUpdate:function(){if(!p){var g=c.elements,m=g.reference,C=g.popper;if(Ra(m,C)){c.rects={reference:ap(m,Gt(C),c.options.strategy==="fixed"),popper:vo(C)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(F){return c.modifiersData[F.name]=Object.assign({},F.data)});for(var O=0;O<c.orderedModifiers.length;O++){if(c.reset===!0){c.reset=!1,O=-1;continue}var k=c.orderedModifiers[O],E=k.fn,R=k.options,B=R===void 0?{}:R,I=k.name;typeof E=="function"&&(c=E({state:c,options:B,name:I,instance:h})||c)}}}},update:sp(function(){return new Promise(function(v){h.forceUpdate(),v(c)})}),destroy:function(){b(),p=!0}};if(!Ra(l,s))return h;h.setOptions(d).then(function(v){!p&&d.onFirstUpdate&&d.onFirstUpdate(v)});function y(){c.orderedModifiers.forEach(function(v){var g=v.name,m=v.options,C=m===void 0?{}:m,O=v.effect;if(typeof O=="function"){var k=O({state:c,name:g,instance:h,options:C}),E=function(){};f.push(k||E)}})}function b(){f.forEach(function(v){return v()}),f=[]}return h}}var dp=[If,Zf,Rf,wf,Xf,Uf,tp,Tf,Wf],fp=cp({defaultModifiers:dp});function pp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function hs(e,t,r){return r&&pp(e,r),e}function or(){return(or=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function vs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function gs(e,t){if(e==null)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}function ja(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var ms=Object.prototype,ys=ms.toString,hp=ms.hasOwnProperty,bs=/^\s*function (\w+)/;function Ia(e){var t,r=(t=e?.type)!==null&&t!==void 0?t:e;if(r){var n=r.toString().match(bs);return n?n[1]:""}return""}var He=function(e){var t,r;return ja(e)!==!1&&typeof(t=e.constructor)=="function"&&ja(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1},Cs=function(e){return e},re=Cs;if(process.env.NODE_ENV!=="production"){var vp=typeof console<"u";re=vp?function(e){console.warn("[VueTypes warn]: "+e)}:Cs}var Bt=function(e,t){return hp.call(e,t)},gp=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},ct=Array.isArray||function(e){return ys.call(e)==="[object Array]"},dt=function(e){return ys.call(e)==="[object Function]"},ur=function(e){return He(e)&&Bt(e,"_vueTypes_name")},ws=function(e){return He(e)&&(Bt(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return Bt(e,t)}))};function Co(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function We(e,t,r){var n,o=!0,i="";n=He(e)?e:{type:e};var u=ur(n)?n._vueTypes_name+" - ":"";if(ws(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&t===void 0)return o;ct(n.type)?(o=n.type.some(function(f){return We(f,t)===!0}),i=n.type.map(function(f){return Ia(f)}).join(" or ")):o=(i=Ia(n))==="Array"?ct(t):i==="Object"?He(t):i==="String"||i==="Number"||i==="Boolean"||i==="Function"?(function(f){if(f==null)return"";var p=f.constructor.toString().match(bs);return p?p[1]:""})(t)===i:t instanceof n.type}if(!o){var l=u+'value "'+t+'" should be of type "'+i+'"';return l}if(Bt(n,"validator")&&dt(n.validator)){var s=re,d=[];if(re=function(f){d.push(f)},o=n.validator(t),re=s,!o){var c=(d.length>1?"* ":"")+d.join(`
|
|
12
|
-
* `);return d.length=0,c}}return o}function ae(e,t){var r=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(o){return o!==void 0||this.default?dt(o)||We(this,o)===!0?(this.default=ct(o)?function(){return[].concat(o)}:He(o)?function(){return Object.assign({},o)}:o,this):(re(this._vueTypes_name+' - invalid default value: "'+o+'"'),this):this}}}),n=r.validator;return dt(n)&&(r.validator=
|
|
13
|
-
`+JSON.stringify(this)),this.validator=
|
|
11
|
+
`},ia=Yu(Qu)(Il),ec={config:Ju},tc=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(i,u){return u(i)},o)}};function Vl(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],Vl(e[r],t[r]))}),ra(ra({},e),t)}var rc={type:"cancelation",msg:"operation is manually canceled"};function Ir(e){var t=!1,r=new Promise(function(n,o){e.then(function(i){return t?o(rc):n(i)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var nc=Wu.create({config:Ku,isInitialized:!1,resolve:null,reject:null,monaco:null}),$l=Ou(nc,2),qt=$l[0],Cr=$l[1];function oc(e){var t=ec.config(e),r=t.monaco,n=Su(t,["monaco"]);Cr(function(o){return{config:Vl(o.config,n),monaco:r}})}function ac(){var e=qt(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(Cr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Ir(Vr);if(window.monaco&&window.monaco.editor)return Bl(window.monaco),e.resolve(window.monaco),Ir(Vr);tc(ic,sc)(uc)}return Ir(Vr)}function ic(e){return document.body.appendChild(e)}function lc(e){var t=document.createElement("script");return e&&(t.src=e),t}function sc(e){var t=qt(function(n){var o=n.config,i=n.reject;return{config:o,reject:i}}),r=lc("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function uc(){var e=qt(function(r){var n=r.config,o=r.resolve,i=r.reject;return{config:n,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){Bl(r),e.resolve(r)},function(r){e.reject(r)})}function Bl(e){qt().monaco||Cr({monaco:e})}function cc(){return qt(function(e){var t=e.monaco;return t})}var Vr=new Promise(function(e,t){return Cr({resolve:e,reject:t})}),dc={config:oc,init:ac,__getMonacoInstance:cc};const Xn=a.defineComponent({name:"CodeEditor",props:{value:{type:String,default:""},config:{type:Object,default:()=>({})},language:{type:String,default:"typescript"}},emits:["update:value"],setup(e,{emit:t}){const r=w.useNamespace("code-editor"),n=a.computed({get(){return e.value||""},set(u){t("update:value",u)}}),o=a.ref(null);let i=null;return a.onMounted(()=>{dc.init().then(u=>{o.value&&(i=u.editor.create(o.value,w.deepMerge({value:n.value,language:e.language,automaticLayout:!0,minimap:{enabled:!1}},e.config)),i.onDidBlurEditorText(()=>{n.value=i.getValue()}))})}),a.onUnmounted(()=>{i?.dispose()}),{ns:r,el:o}},render(){return a.createVNode("div",{ref:"el",class:this.ns.b()},null)}}),Jn=a.defineComponent({name:"FlexItem",props:{layout:Object},setup(e){return{ns:w.useNamespace("flex-item"),getStyle:()=>{const n={};if(e.layout){const{order:o,alignSelf:i,flexBasis:u,flexGrow:l,flexShrink:s}=e.layout;o!=null&&(n.order=o),i!=null&&(n["align-self"]=i),u!=null&&(n["flex-basis"]=u),l!=null&&(n["flex-grow"]=l),s!=null&&(n["flex-shrink"]=s)}return n}}},render(){return a.createVNode("div",{class:this.ns.b(),style:this.getStyle()},[this.$slots.default?.()])}});function fc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const la=a.defineComponent({name:"FlexContainer",props:{layout:Object},setup(e){return{ns:w.useNamespace("flex-container"),getStyle:()=>{const o={};if(e.layout){const{alignContent:i,alignItems:u,flexDirection:l,flexWrap:s,justifyContent:d}=e.layout;i!=null&&(o.alignContent=i),u!=null&&(o.alignItems=u),l!=null&&(o.flexDirection=l),s!=null&&(o.flexWrap=s),d!=null&&(o.justifyContent=d)}return o},getItemStyle:o=>{const i={};if(o){const{width:u,height:l}=o;u!=null&&(i.width=u),l!=null&&(i.height=l)}return i}}},render(){let e=this.$slots.default?.()||[];return e.length>0&&(e=e[0].children||[]),a.createVNode("div",{class:this.ns.b(),style:this.getStyle()},[e.map(t=>{if(!t)return null;const r=t.props.model.flexItem;return a.createVNode(Jn,{layout:r,style:this.getItemStyle(t.props.model)},fc(t)?t:{default:()=>[t]})})])}});function sa(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const ua=a.defineComponent({name:"GridContainer",props:{layout:Object},setup(){return{ns:w.useNamespace("grid-container")}},render(){let e;const t=this.layout||{};let r=this.$slots.default?.()||[];return r.length>0&&(r=r[0].children||[]),a.createVNode(a.resolveComponent("a-row"),{class:this.ns.b(),wrap:!0,gutter:t.gutter},sa(e=r.map(n=>{if(!n)return null;const o=n.props.model.gridItem;return a.createVNode(a.resolveComponent("a-col"),{span:o?o.span??24:24,offset:o?o.offset??0:0},sa(n)?n:{default:()=>[n]})}))?e:{default:()=>[e]})}}),ca=a.defineComponent({name:"ViewContainer",props:{context:{type:Object},params:{type:Object},modal:{type:Object,required:!0}},setup(){return{ns:w.useNamespace("view-container")}},render(){return a.createVNode("div",{class:this.ns.b()},[this.$slots.header?a.createVNode("div",{class:this.ns.b("header")},[this.$slots.header()]):null,a.createVNode("div",{class:this.ns.b("content")},[this.$slots.default?.()]),this.$slots.footer?a.createVNode("div",{class:this.ns.b("footer")},[this.$slots.footer()]):null])}}),pc=a.defineComponent({name:"GctFormLengthUnit",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,required:!0}},emits:["update:value"],setup(e){const t=w.useNamespace("form-length-unit"),r=new w.LengthUnitEditorController(e.model),n=w.useGctFormValue();return{ns:t,c:r,val:n}},render(){return a.createVNode(a.resolveComponent("length-unit-editor"),a.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:[this.ns.b(),this.ns.is("readonly",this.model.readonly)]}),null)}});class hc{component="gct-form-length-unit"}const vc=w.widthEditorInstall(w.EditorTypeOld.LENGTH_UNIT,()=>new hc,pc),Fl=a.defineComponent({name:"GctFormColor",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String}},emits:["update:value"],setup(){const e=w.useNamespace("form-color"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return a.createVNode(a.resolveComponent("color-picker"),a.mergeProps({pureColor:this.val,"onUpdate:pureColor":e=>this.val=e,format:"rgba",shape:"circle","use-type":"pure","picker-type":"chrome",class:[this.ns.b(),this.ns.is("readonly",this.model.readonly)]},this.model.props||{}),null)}});class Ml{component="gct-form-color"}const gc=w.widthEditorInstall(w.EditorType.COLOR,()=>new Ml,Fl),mc=w.widthEditorInstall(w.EditorTypeOld.COLOR,()=>new Ml,Fl);class yc{component="gct-form-check-switch"}const bc=a.defineComponent({name:"GctFormCheckSwitch",props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:Boolean,default:!1}},emits:["update:value"],setup(e){const t=w.useNamespace("gct-form-check-switch"),r=new w.EditorController(e.model),n=w.useGctFormValue();return{ns:t,c:r,val:n}},render(){return this.model.isSwitch?a.createVNode("div",{class:[this.ns.b(),this.ns.m("switch"),this.ns.is("readonly",this.model.readonly)]},[a.createVNode(a.resolveComponent("a-switch"),a.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)]):a.createVNode(a.resolveComponent("a-checkbox"),a.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{},{class:[this.ns.b(),this.ns.m("checkbox"),this.ns.is("readonly",this.model.readonly)]}),{default:()=>[this.model.label]})}}),Cc=w.widthEditorInstall(w.EditorTypeOld.CHECK_SWITCH,()=>new yc,bc);class wc{component="gct-form-i18n"}const Sc=a.defineComponent({name:"GctFormI18n",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-i18n"),r=w.useForm().item.i18nConfig,n=w.useGctFormValue(),o=a.computed({get:()=>r?r.value:"",set:i=>{r&&(r.value=i)}});return{ns:e,val:n,i18nConfigValue:o}},render(){return a.createVNode(a.resolveComponent("i18n-select-input"),a.mergeProps(this.model.props||{},{i18nText:this.val,"onUpdate:i18nText":e=>this.val=e,i18nConfig:this.i18nConfigValue,"onUpdate:i18nConfig":e=>this.i18nConfigValue=e,inputExtraProps:{showCount:!0,maxlength:32,disabled:this.c.state.disabled}}),null)}}),Oc=w.widthEditorInstall(w.EditorTypeOld.I18N,()=>new wc,Sc),xc=a.defineComponent({name:"GctFormIconSelect",props:{value:{type:Object},model:{type:Object,required:!0}},emits:["update:value"],setup(e,{emit:t}){const r=w.useNamespace("gct-form-icon-select"),n=a.ref(e.value),o=a.ref(n.value?.icon||e.model.defaultIcon),i=a.ref(n.value?.color||e.model.defaultColor),u=a.ref(n.value?.background||e.model.defaultBackground);a.watch(()=>e.value,s=>{n.value=s,s&&(o.value=s.icon,i.value=s.color)}),a.watch([o,i,u],()=>{n.value={icon:o.value,color:i.value},t("update:value",n.value)});const l=a.computed(()=>{if(e.model.size)return{"--box-size":e.model.size+"px"}});return{ns:r,icon:o,color:i,background:u,nextPickerStyle:l}},render(){return a.createVNode("div",{class:this.ns.b()},[a.createVNode(a.resolveComponent("icon-next-picker"),{value:this.icon,"onUpdate:value":e=>this.icon=e,color:this.color,"onUpdate:color":e=>this.color=e,background:"#f5f5f5",disabled:this.model.disabled,showColor:this.model.showColor!==!1,style:this.nextPickerStyle},null),this.model.label?a.createVNode("span",{class:this.ns.e("title")},[this.model.label]):null])}});let Ec=class{component="gct-form-icon-select"};const kc=w.widthEditorInstall(w.EditorTypeOld.ICON_SELECT,()=>new Ec,xc);class ql{component="gct-form-number"}const Dl=a.defineComponent({name:"GctFormNumber",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-number"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return a.createVNode(a.resolveComponent("a-input-number"),a.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e,class:this.ns.b(),prefix:this.model.prefix,suffix:this.model.suffix,addonBefore:this.model.addonBefore,addonAfter:this.model.addonAfter,placeholder:this.model.placeholder,max:this.model.max,min:this.model.min,precision:this.model.precision},this.model.props||{}),null)}}),_c=w.widthEditorInstall(w.EditorType.NUMBER,()=>new ql,Dl),Tc=w.widthEditorInstall(w.EditorTypeOld.NUMBER,()=>new ql,Dl);class Nc{component="gct-form-picker"}const Ac=a.defineComponent({name:"GctFormPicker",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(e,{emit:t}){const r=w.useNamespace("gct-form-picker"),n=a.computed({get(){return e.model.nameField?e.c.data[e.model.nameField]:""},set(l){e.model.nameField&&(e.c.data[e.model.nameField]=l)}}),o=a.computed({get:()=>!e.c.state.options.find(s=>s.value===e.value)&&n.value?n.value:e.value,set:l=>{typeof l=="string"&&(l=l.trim()),!(typeof l!="object"&&e.value==l)&&t("update:value",l)}}),i=()=>e.c.loadDictionary();return o.value!=null&&e.c.loadDictionary(),{ns:r,val:o,nameVal:n,loadOptions:i,onChange:(l,s)=>{n.value=s.label}}},render(){return a.createVNode(a.resolveComponent("a-select"),a.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),disabled:this.c.state.disabled,loading:this.c.state.loading,options:this.c.state.options,placeholder:this.model.placeholder,onDropdownVisibleChange:this.loadOptions,onChange:this.onChange}),null)}}),Rc=w.widthEditorInstall(w.EditorTypeOld.PICKER,()=>new Nc,Ac);class Pc{component="gct-form-select"}const jc=a.defineComponent({name:"GctFormSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=w.useNamespace("gct-form-select"),r=w.useGctFormValue(),n=a.computed(()=>e.c.state.options&&e.c.state.options.length>0?e.c.state.options:[]);return{ns:t,val:r,options:n}},render(){return a.createVNode(a.resolveComponent("a-select"),a.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),options:this.options,allowClear:!0,disabled:this.c.state.disabled}),null)}}),Ic=w.widthEditorInstall(w.EditorTypeOld.SELECT,()=>new Pc,jc);class Vc{component="gct-form-Modal-select"}const $c=a.defineComponent({name:"GctFormModalSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-modal-select"),t=a.ref("1"),r=w.useGctFormValue(),n=a.computed({get(){return r.value||void 0},set(i){r.value=i}}),o=a.computed(()=>[{label:"默认",options:[{value:"1",label:"模型一"},{value:"2",label:"模型二"}]},{label:"产品建模",options:[{value:"3",label:"产品信息"},{value:"4",label:"产品类型"}]}]);return{ns:e,val:n,options:o,modelCategory:t}},render(){return a.createVNode(a.resolveComponent("a-input-group"),{class:this.ns.b()},{default:()=>[a.createVNode(a.resolveComponent("a-form-item-rest"),null,{default:()=>[a.createVNode(a.resolveComponent("a-select"),a.mergeProps({value:this.modelCategory,"onUpdate:value":e=>this.modelCategory=e},this.model.props||{},{placeholder:"请选择",options:[{value:"1",label:"实体"},{value:"2",label:"视图"},{value:"3",label:"数据"}],disabled:this.c.state.disabled}),null)]}),a.createVNode(a.resolveComponent("a-select"),a.mergeProps({class:this.ns.e("select"),value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{placeholder:"请选择",options:this.options,allowClear:!0,disabled:this.c.state.disabled}),null)]})}}),Bc=w.widthEditorInstall(w.EditorTypeOld.MODEL_SELECT,()=>new Vc,$c);class Fc{component="gct-form-field-select"}const Mc={class:"gct-box"},qc=a.defineComponent({__name:"gct-model-select",props:{value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,n=t,o=a.computed({get(){return r.value},set(d){n("update:value",d)}}),i=a.ref([{key:0,title:"公司名称"},{key:1,title:"ID"},{key:2,title:"创建人"},{key:3,title:"创建部门"},{key:4,title:"修改时间"},{key:5,title:"修改人"},{key:6,title:"修改部门"}]),u=a.ref([]),l=(d,c)=>{console.log()};function s(){o.value=!1}return(d,c)=>{const f=a.resolveComponent("a-transfer"),p=a.resolveComponent("a-modal");return a.openBlock(),a.createBlock(p,{visible:o.value,"onUpdate:visible":c[1]||(c[1]=h=>o.value=h),width:"600px",title:"关联模型字段","ok-text":"确认","cancel-text":"取消",onOk:s},{default:a.withCtx(()=>[c[2]||(c[2]=a.createElementVNode("div",null,"所属模型:公司",-1)),a.createElementVNode("div",Mc,[a.createVNode(f,{"target-keys":u.value,"onUpdate:targetKeys":c[0]||(c[0]=h=>u.value=h),locale:{itemUnit:"项已选",itemsUnit:"项未选",searchPlaceholder:"请输入搜索内容"},"data-source":i.value,"show-search":"","filter-option":l,render:h=>h.title},null,8,["target-keys","data-source","render"])])]),_:1,__:[2]},8,["visible"])}}}),Dc=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},da=Dc(qc,[["__scopeId","data-v-5fc49e2a"]]),Gc=a.defineComponent({name:"GctFormFieldSelect",components:{modal:da},props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-field-select"),t=a.ref(!1);return{ns:e,visible:t}},render(){return a.createVNode("div",null,[a.createVNode(a.resolveComponent("a-button"),{onClick:()=>this.visible=!0,block:!0},{default:()=>[a.createTextVNode("选择模型字段")]}),a.createVNode(da,{value:this.visible,"onUpdate:value":e=>this.visible=e},null)])}}),Lc=w.widthEditorInstall(w.EditorTypeOld.Field_SELECT,()=>new Fc,Gc);class Hc{component="gct-form-span"}const Uc=a.defineComponent({name:"GctFormSpan",props:{c:{type:Object,required:!0},itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},setup(e){const t=w.useNamespace("form-span"),{model:r,itemModel:n,c:o}=a.toRefs(e);function i(){const{isSuccessRef:l}=w.useCopyToClipboard(e.value);l.value&&qe.message.success(_gct.t("sys.copySuccess"))}o.value.loadDictionary();const u=a.computed(()=>{if(r.value.format&&typeof r.value.format=="function")return r.value.format(o.value.data,n.value,o.value);if(e.value==null||e.value==="")return e.value;if(n.value.dictionary){const s=(n.value.dictionary.items||[]).find(d=>d.value==e.value);if(s)return s.label}if(o.value.state.options.length>0){const l=o.value.state.options.find(s=>s.value==e.value);if(l)return l.label}return e.value});return{ns:t,val:u,handleClipboardKey:i}},render(){return a.createVNode("div",{class:this.ns.b()},[a.createVNode("span",{class:this.ns.e("info")},[this.val]),this.model.copy&&a.createVNode("span",{class:this.ns.e("copy")},[a.createVNode("i",{class:"iconfont icon-fuzhi primary-gct",onClick:this.handleClipboardKey},null)])])}}),zc=w.widthEditorInstall(w.EditorTypeOld.SPAN,()=>new Hc,Uc);class Gl{component="gct-form-switch"}const Ll=a.defineComponent({name:"GctFormSwitch",props:{model:{type:Object,required:!0},value:{type:String,default:""}},setup(){const e=w.useNamespace("gct-form-switch"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return a.createVNode("div",{class:this.ns.b()},[a.createVNode(a.resolveComponent("a-switch"),a.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)])}}),Wc=w.widthEditorInstall(w.EditorType.SWITCH,()=>new Gl,Ll),Kc=w.widthEditorInstall(w.EditorTypeOld.SWITCH,()=>new Gl,Ll);class Hl{component="gct-form-text"}const Ul=a.defineComponent({name:"GctFormText",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=w.useNamespace("gct-form-text"),r=new w.EditorController(e.model),n=w.useGctFormValueByText(e.model.prefix||e.model.addonBefore,e.model.suffix||e.model.addonAfter);return{ns:t,c:r,val:n}},render(){return a.createVNode(a.resolveComponent("a-input"),a.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),prefix:this.model.prefix,suffix:this.model.suffix,addonBefore:this.model.addonBefore,addonAfter:this.model.addonAfter,placeholder:this.model.placeholder,"show-count":this.model.max!=null,maxlength:this.model.max}),null)}}),Yc=w.widthEditorInstall(w.EditorType.TEXT,()=>new Hl,Ul),Xc=w.widthEditorInstall(w.EditorTypeOld.TEXT,()=>new Hl,Ul);class Jc{component="gct-form-textarea"}const Zc=a.defineComponent({name:"GctFormTextarea",props:{model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-textarea"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return a.createVNode(a.resolveComponent("a-textarea"),a.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),"auto-size":this.model.autoSize,"show-count":this.model.max!=null,maxlength:this.model.max,placeholder:this.model.placeholder}),null)}}),Qc=w.widthEditorInstall(w.EditorTypeOld.TEXTAREA,()=>new Jc,Zc);function ed(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const zl=a.defineComponent({name:"GctFormRadio",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-radio"),t=w.useGctFormValue();return{ns:e,val:t}},render(){const e={...this.model.props||{},class:[this.ns.b()],allowClear:!0,disabled:this.c.state.disabled};if(this.model.buttonMode){let t;return e.class.push(this.ns.m("button")),a.createVNode(qe.RadioGroup,a.mergeProps({value:this.val,"onUpdate:value":r=>this.val=r,size:"small","button-style":"solid"},e),ed(t=this.c.state.options.map(r=>a.createVNode(qe.RadioButton,{key:r.value,value:r.value},{default:()=>[r.label]})))?t:{default:()=>[t]})}return e.class.push(this.ns.m("radio")),a.createVNode(qe.RadioGroup,a.mergeProps({value:this.val,"onUpdate:value":t=>this.val=t,options:this.c.state.options},e),null)}});let Wl=class{component="gct-form-radio"};const td=w.widthEditorInstall(w.EditorType.RADIO,()=>new Wl,zl),rd=w.widthEditorInstall(w.EditorTypeOld.RADIO,()=>new Wl,zl),nd=a.defineComponent({name:"GctFormInfo",props:{value:{type:String,default:""},model:{type:Object,required:!0}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-info"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return a.createVNode("div",{class:this.ns.b()},[this.model.icon?a.createVNode("span",{class:this.ns.e("icon")},[a.createVNode("i",{class:`iconfont ${this.model.icon}`},null)]):null,a.createVNode("span",{class:this.ns.e("content")},[this.val||this.model.content])])}});let od=class{component="gct-form-info"};const ad=w.widthEditorInstall(w.EditorTypeOld.INFO,()=>new od,nd),Kl=a.defineComponent({name:"GctFormCheckbox",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:t}){const r=w.useNamespace("gct-form-checkbox"),n=w.useGctFormValue(),o=a.computed(()=>n.value),i=a.computed(()=>vt.cloneDeep(e.c.state.options));return{ns:r,checked:o,onChange:l=>{i.value.forEach(s=>{e.model.minLength&&l.length<=e.model.minLength&&l.includes(s.value)?s.disabled=!0:s.disabled=!1,s.checked=l.includes(s.value)}),t("update:value",l)},options:i}},render(){const e={...this.model.props||{},class:[this.ns.b(),this.ns.m("checkbox"),this.model.layout==="column"&&"isColumn"],disabled:this.c.state.disabled};return a.createVNode(qe.CheckboxGroup,a.mergeProps({value:this.checked,"onUpdate:value":t=>this.checked=t,options:this.options},e,{onChange:this.onChange}),null)}});class Yl{component="gct-form-checkbox"}const id=w.widthEditorInstall(w.EditorType.CHECKBOX,()=>new Yl,Kl),ld=w.widthEditorInstall(w.EditorTypeOld.CHECKBOX,()=>new Yl,Kl);var Xl=require("../internals/global-this"),Jl=require("../internals/function-call"),fo=require("../internals/array-buffer-view-core"),sd=require("../internals/length-of-array-like"),ud=require("../internals/to-offset"),cd=require("../internals/to-object"),Zl=require("../internals/fails"),dd=Xl.RangeError,Zn=Xl.Int8Array,fa=Zn&&Zn.prototype,Ql=fa&&fa.set,fd=fo.aTypedArray,pd=fo.exportTypedArrayMethod,Qn=!Zl(function(){var e=new Uint8ClampedArray(2);return Jl(Ql,e,{length:1,0:3},1),e[1]!==3}),hd=Qn&&fo.NATIVE_ARRAY_BUFFER_VIEWS&&Zl(function(){var e=new Zn(2);return e.set(1),e.set("2",1),e[0]!==0||e[1]!==2});pd("set",function(t){fd(this);var r=ud(arguments.length>1?arguments[1]:void 0,1),n=cd(t);if(Qn)return Jl(Ql,this,n,r);var o=this.length,i=sd(n),u=0;if(i+r>o)throw new dd("Wrong length");for(;u<i;)this[r+u]=n[u++]},!Qn||hd);function es(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}const wr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const vd=Object.prototype.toString,gd=e=>vd.call(e)==="[object Object]",xe=()=>{},md=yd();function yd(){var e,t;return wr&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function bd(...e){if(e.length!==1)return a.toRef(...e);const t=e[0];return typeof t=="function"?a.readonly(a.customRef(()=>({get:t,set:xe}))):a.ref(t)}function ts(e,t){function r(...n){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(i)})}return r}const rs=e=>e();function Cd(e,t={}){let r,n,o=xe;const i=s=>{clearTimeout(s),o(),o=xe};let u;return s=>{const d=a.toValue(e),c=a.toValue(t.maxWait);return r&&i(r),d<=0||c!==void 0&&c<=0?(n&&(i(n),n=void 0),Promise.resolve(s())):new Promise((f,p)=>{o=t.rejectOnCancel?p:f,u=s,c&&!n&&(n=setTimeout(()=>{r&&i(r),n=void 0,f(u())},c)),r=setTimeout(()=>{n&&i(n),n=void 0,f(s())},d)})}}function wd(e=rs,t={}){const{initialState:r="active"}=t,n=bd(r==="active");function o(){n.value=!1}function i(){n.value=!0}const u=(...l)=>{n.value&&e(...l)};return{isActive:a.readonly(n),pause:o,resume:i,eventFilter:u}}function Sd(e){let t;function r(){return t||(t=e()),t}return r.reset=async()=>{const n=t;t=void 0,n&&await n},r}function $r(e){return Array.isArray(e)?e:[e]}function Od(e){return a.getCurrentInstance()}function Ee(e,t=200,r={}){return ts(Cd(t,r),e)}function xd(e,t,r={}){const{eventFilter:n=rs,...o}=r;return a.watch(e,ts(n,t),o)}function Ed(e,t,r={}){const{eventFilter:n,initialState:o="active",...i}=r,{eventFilter:u,pause:l,resume:s,isActive:d}=wd(n,{initialState:o});return{stop:xd(e,t,{...i,eventFilter:u}),pause:l,resume:s,isActive:d}}function ze(e,t=!0,r){Od()?a.onMounted(e,r):t?e():a.nextTick(e)}function kd(e,t,r={}){const{immediate:n=!0,immediateCallback:o=!1}=r,i=a.shallowRef(!1);let u;function l(){u&&(clearTimeout(u),u=void 0)}function s(){i.value=!1,l()}function d(...c){o&&e(),l(),i.value=!0,u=setTimeout(()=>{i.value=!1,u=void 0,e(...c)},a.toValue(t))}return n&&(i.value=!0,wr&&d()),es(s),{isPending:a.shallowReadonly(i),start:d,stop:s}}function _d(e,t,r){return a.watch(e,t,{...r,immediate:!0})}function X(e,t,r){const n=a.watch(e,(o,i,u)=>{o&&(r?.once&&a.nextTick(()=>n()),t(o,i,u))},{...r,once:!1});return n}const It=wr?window:void 0,ns=wr?window.navigator:void 0;function kt(e){var t;const r=a.toValue(e);return(t=r?.$el)!=null?t:r}function De(...e){const t=[],r=()=>{t.forEach(l=>l()),t.length=0},n=(l,s,d,c)=>(l.addEventListener(s,d,c),()=>l.removeEventListener(s,d,c)),o=a.computed(()=>{const l=$r(a.toValue(e[0])).filter(s=>s!=null);return l.every(s=>typeof s!="string")?l:void 0}),i=_d(()=>{var l,s;return[(s=(l=o.value)==null?void 0:l.map(d=>kt(d)))!=null?s:[It].filter(d=>d!=null),$r(a.toValue(o.value?e[1]:e[0])),$r(a.unref(o.value?e[2]:e[1])),a.toValue(o.value?e[3]:e[2])]},([l,s,d,c])=>{if(r(),!l?.length||!s?.length||!d?.length)return;const f=gd(c)?{...c}:c;t.push(...l.flatMap(p=>s.flatMap(h=>d.map(y=>n(p,h,y,f)))))},{flush:"post"}),u=()=>{i(),r()};return es(r),u}let pa=!1;function Td(e,t,r={}){const{window:n=It,ignore:o=[],capture:i=!0,detectIframe:u=!1,controls:l=!1}=r;if(!n)return l?{stop:xe,cancel:xe,trigger:xe}:xe;if(md&&!pa){pa=!0;const v={passive:!0};Array.from(n.document.body.children).forEach(g=>g.addEventListener("click",xe,v)),n.document.documentElement.addEventListener("click",xe,v)}let s=!0;const d=v=>a.toValue(o).some(g=>{if(typeof g=="string")return Array.from(n.document.querySelectorAll(g)).some(m=>m===v.target||v.composedPath().includes(m));{const m=kt(g);return m&&(v.target===m||v.composedPath().includes(m))}});function c(v){const g=a.toValue(v);return g&&g.$.subTree.shapeFlag===16}function f(v,g){const m=a.toValue(v),C=m.$.subTree&&m.$.subTree.children;return C==null||!Array.isArray(C)?!1:C.some(O=>O.el===g.target||g.composedPath().includes(O.el))}const p=v=>{const g=kt(e);if(v.target!=null&&!(!(g instanceof Element)&&c(e)&&f(e,v))&&!(!g||g===v.target||v.composedPath().includes(g))){if("detail"in v&&v.detail===0&&(s=!d(v)),!s){s=!0;return}t(v)}};let h=!1;const y=[De(n,"click",v=>{h||(h=!0,setTimeout(()=>{h=!1},0),p(v))},{passive:!0,capture:i}),De(n,"pointerdown",v=>{const g=kt(e);s=!d(v)&&!!(g&&!v.composedPath().includes(g))},{passive:!0}),u&&De(n,"blur",v=>{setTimeout(()=>{var g;const m=kt(e);((g=n.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!m?.contains(n.document.activeElement)&&t(v)},0)},{passive:!0})].filter(Boolean),b=()=>y.forEach(v=>v());return l?{stop:b,cancel:()=>{s=!1},trigger:v=>{s=!0,p(v),s=!1}}:b}function Nd(){const e=a.shallowRef(!1),t=a.getCurrentInstance();return t&&a.onMounted(()=>{e.value=!0},t),e}function os(e){const t=Nd();return a.computed(()=>(t.value,!!e()))}function ha(e,t={}){const{controls:r=!1,navigator:n=ns}=t,o=os(()=>n&&"permissions"in n),i=a.shallowRef(),u=typeof e=="string"?{name:e}:e,l=a.shallowRef(),s=()=>{var c,f;l.value=(f=(c=i.value)==null?void 0:c.state)!=null?f:"prompt"};De(i,"change",s,{passive:!0});const d=Sd(async()=>{if(o.value){if(!i.value)try{i.value=await n.permissions.query(u)}catch{i.value=void 0}finally{s()}if(r)return a.toRaw(i.value)}});return d(),r?{state:l,isSupported:o,query:d}:l}function Ad(e={}){const{navigator:t=ns,read:r=!1,source:n,copiedDuring:o=1500,legacy:i=!1}=e,u=os(()=>t&&"clipboard"in t),l=ha("clipboard-read"),s=ha("clipboard-write"),d=a.computed(()=>u.value||i),c=a.shallowRef(""),f=a.shallowRef(!1),p=kd(()=>f.value=!1,o,{immediate:!1});async function h(){let m=!(u.value&&g(l.value));if(!m)try{c.value=await t.clipboard.readText()}catch{m=!0}m&&(c.value=v())}d.value&&r&&De(["copy","cut"],h,{passive:!0});async function y(m=a.toValue(n)){if(d.value&&m!=null){let C=!(u.value&&g(s.value));if(!C)try{await t.clipboard.writeText(m)}catch{C=!0}C&&b(m),c.value=m,f.value=!0,p.start()}}function b(m){const C=document.createElement("textarea");C.value=m??"",C.style.position="absolute",C.style.opacity="0",document.body.appendChild(C),C.select(),document.execCommand("copy"),C.remove()}function v(){var m,C,O;return(O=(C=(m=document?.getSelection)==null?void 0:m.call(document))==null?void 0:C.toString())!=null?O:""}function g(m){return m==="granted"||m==="prompt"}return{isSupported:d,text:c,copied:f,copy:y}}const Xt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Jt="__vueuse_ssr_handlers__",Rd=Pd();function Pd(){return Jt in Xt||(Xt[Jt]=Xt[Jt]||{}),Xt[Jt]}function jd(e,t){return Rd[e]||t}function Id(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Vd={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},va="vueuse-storage";function $d(e,t,r,n={}){var o;const{flush:i="pre",deep:u=!0,listenToStorageChanges:l=!0,writeDefaults:s=!0,mergeDefaults:d=!1,shallow:c,window:f=It,eventFilter:p,onError:h=_=>{console.error(_)},initOnMounted:y}=n,b=(c?a.shallowRef:a.ref)(typeof t=="function"?t():t),v=a.computed(()=>a.toValue(e));if(!r)try{r=jd("getDefaultStorage",()=>{var _;return(_=It)==null?void 0:_.localStorage})()}catch(_){h(_)}if(!r)return b;const g=a.toValue(t),m=Id(g),C=(o=n.serializer)!=null?o:Vd[m],{pause:O,resume:k}=Ed(b,_=>F(_),{flush:i,deep:u,eventFilter:p});a.watch(v,()=>T(),{flush:i});let E=!1;const P=_=>{y&&!E||T(_)},B=_=>{y&&!E||j(_)};f&&l&&(r instanceof Storage?De(f,"storage",P,{passive:!0}):De(f,va,B)),y?ze(()=>{E=!0,T()}):T();function I(_,A){if(f){const $={key:v.value,oldValue:_,newValue:A,storageArea:r};f.dispatchEvent(r instanceof Storage?new StorageEvent("storage",$):new CustomEvent(va,{detail:$}))}}function F(_){try{const A=r.getItem(v.value);if(_==null)I(A,null),r.removeItem(v.value);else{const $=C.write(_);A!==$&&(r.setItem(v.value,$),I(A,$))}}catch(A){h(A)}}function S(_){const A=_?_.newValue:r.getItem(v.value);if(A==null)return s&&g!=null&&r.setItem(v.value,C.write(g)),g;if(!_&&d){const $=C.read(A);return typeof d=="function"?d($,g):m==="object"&&!Array.isArray($)?{...g,...$}:$}else return typeof A!="string"?A:C.read(A)}function T(_){if(!(_&&_.storageArea!==r)){if(_&&_.key==null){b.value=g;return}if(!(_&&_.key!==v.value)){O();try{const A=C.write(b.value);(_===void 0||_?.newValue!==A)&&(b.value=S(_))}catch(A){h(A)}finally{_?a.nextTick(k):k()}}}}function j(_){T(_.detail)}return b}function po(e,t,r={}){const{window:n=It}=r;return $d(e,t,n?.localStorage,r)}function lr(e){"@babel/helpers - typeof";return lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lr(e)}var Bd=/^\s+/,Fd=/\s+$/;function x(e,t){if(e=e||"",t=t||{},e instanceof x)return e;if(!(this instanceof x))return new x(e,t);var r=Md(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}x.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,o,i,u,l;return r=t.r/255,n=t.g/255,o=t.b/255,r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),n<=.03928?u=n/12.92:u=Math.pow((n+.055)/1.055,2.4),o<=.03928?l=o/12.92:l=Math.pow((o+.055)/1.055,2.4),.2126*i+.7152*u+.0722*l},setAlpha:function(t){return this._a=as(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ma(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ma(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+o+"%)":"hsva("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=ga(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=ga(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+o+"%)":"hsla("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return ya(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return Ld(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(D(this._r,255)*100)+"%",g:Math.round(D(this._g,255)*100)+"%",b:Math.round(D(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(D(this._r,255)*100)+"%, "+Math.round(D(this._g,255)*100)+"%, "+Math.round(D(this._b,255)*100)+"%)":"rgba("+Math.round(D(this._r,255)*100)+"%, "+Math.round(D(this._g,255)*100)+"%, "+Math.round(D(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:tf[ya(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+ba(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var i=x(t);n="#"+ba(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,o=this._a<1&&this._a>=0,i=!r&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return i?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return x(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Wd,arguments)},brighten:function(){return this._applyModification(Kd,arguments)},darken:function(){return this._applyModification(Yd,arguments)},desaturate:function(){return this._applyModification(Hd,arguments)},saturate:function(){return this._applyModification(Ud,arguments)},greyscale:function(){return this._applyModification(zd,arguments)},spin:function(){return this._applyModification(Xd,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(Qd,arguments)},complement:function(){return this._applyCombination(Jd,arguments)},monochromatic:function(){return this._applyCombination(ef,arguments)},splitcomplement:function(){return this._applyCombination(Zd,arguments)},triad:function(){return this._applyCombination(Ca,[3])},tetrad:function(){return this._applyCombination(Ca,[4])}};x.fromRatio=function(e,t){if(lr(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=_t(e[n]));e=r}return x(e,t)};function Md(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,i=null,u=!1,l=!1;return typeof e=="string"&&(e=af(e)),lr(e)=="object"&&(Se(e.r)&&Se(e.g)&&Se(e.b)?(t=qd(e.r,e.g,e.b),u=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Se(e.h)&&Se(e.s)&&Se(e.v)?(n=_t(e.s),o=_t(e.v),t=Gd(e.h,n,o),u=!0,l="hsv"):Se(e.h)&&Se(e.s)&&Se(e.l)&&(n=_t(e.s),i=_t(e.l),t=Dd(e.h,n,i),u=!0,l="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=as(r),{ok:u,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function qd(e,t,r){return{r:D(e,255)*255,g:D(t,255)*255,b:D(r,255)*255}}function ga(e,t,r){e=D(e,255),t=D(t,255),r=D(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i,u,l=(n+o)/2;if(n==o)i=u=0;else{var s=n-o;switch(u=l>.5?s/(2-n-o):s/(n+o),n){case e:i=(t-r)/s+(t<r?6:0);break;case t:i=(r-e)/s+2;break;case r:i=(e-t)/s+4;break}i/=6}return{h:i,s:u,l}}function Dd(e,t,r){var n,o,i;e=D(e,360),t=D(t,100),r=D(r,100);function u(d,c,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?d+(c-d)*6*f:f<1/2?c:f<2/3?d+(c-d)*(2/3-f)*6:d}if(t===0)n=o=i=r;else{var l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;n=u(s,l,e+1/3),o=u(s,l,e),i=u(s,l,e-1/3)}return{r:n*255,g:o*255,b:i*255}}function ma(e,t,r){e=D(e,255),t=D(t,255),r=D(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i,u,l=n,s=n-o;if(u=n===0?0:s/n,n==o)i=0;else{switch(n){case e:i=(t-r)/s+(t<r?6:0);break;case t:i=(r-e)/s+2;break;case r:i=(e-t)/s+4;break}i/=6}return{h:i,s:u,v:l}}function Gd(e,t,r){e=D(e,360)*6,t=D(t,100),r=D(r,100);var n=Math.floor(e),o=e-n,i=r*(1-t),u=r*(1-o*t),l=r*(1-(1-o)*t),s=n%6,d=[r,u,i,i,l,r][s],c=[l,r,r,u,i,i][s],f=[i,i,l,r,r,u][s];return{r:d*255,g:c*255,b:f*255}}function ya(e,t,r,n){var o=[he(Math.round(e).toString(16)),he(Math.round(t).toString(16)),he(Math.round(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Ld(e,t,r,n,o){var i=[he(Math.round(e).toString(16)),he(Math.round(t).toString(16)),he(Math.round(r).toString(16)),he(is(n))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function ba(e,t,r,n){var o=[he(is(n)),he(Math.round(e).toString(16)),he(Math.round(t).toString(16)),he(Math.round(r).toString(16))];return o.join("")}x.equals=function(e,t){return!e||!t?!1:x(e).toRgbString()==x(t).toRgbString()};x.random=function(){return x.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Hd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s-=t/100,r.s=Sr(r.s),x(r)}function Ud(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s+=t/100,r.s=Sr(r.s),x(r)}function zd(e){return x(e).desaturate(100)}function Wd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l+=t/100,r.l=Sr(r.l),x(r)}function Kd(e,t){t=t===0?0:t||10;var r=x(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),x(r)}function Yd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l-=t/100,r.l=Sr(r.l),x(r)}function Xd(e,t){var r=x(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,x(r)}function Jd(e){var t=x(e).toHsl();return t.h=(t.h+180)%360,x(t)}function Ca(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=x(e).toHsl(),n=[x(e)],o=360/t,i=1;i<t;i++)n.push(x({h:(r.h+i*o)%360,s:r.s,l:r.l}));return n}function Zd(e){var t=x(e).toHsl(),r=t.h;return[x(e),x({h:(r+72)%360,s:t.s,l:t.l}),x({h:(r+216)%360,s:t.s,l:t.l})]}function Qd(e,t,r){t=t||6,r=r||30;var n=x(e).toHsl(),o=360/r,i=[x(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(x(n));return i}function ef(e,t){t=t||6;for(var r=x(e).toHsv(),n=r.h,o=r.s,i=r.v,u=[],l=1/t;t--;)u.push(x({h:n,s:o,v:i})),i=(i+l)%1;return u}x.mix=function(e,t,r){r=r===0?0:r||50;var n=x(e).toRgb(),o=x(t).toRgb(),i=r/100,u={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return x(u)};x.readability=function(e,t){var r=x(e),n=x(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};x.isReadable=function(e,t,r){var n=x.readability(e,t),o,i;switch(i=!1,o=lf(r),o.level+o.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i};x.mostReadable=function(e,t,r){var n=null,o=0,i,u,l,s;r=r||{},u=r.includeFallbackColors,l=r.level,s=r.size;for(var d=0;d<t.length;d++)i=x.readability(e,t[d]),i>o&&(o=i,n=x(t[d]));return x.isReadable(e,n,{level:l,size:s})||!u?n:(r.includeFallbackColors=!1,x.mostReadable(e,["#fff","#000"],r))};var eo=x.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},tf=x.hexNames=rf(eo);function rf(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function as(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function D(e,t){nf(e)&&(e="100%");var r=of(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Sr(e){return Math.min(1,Math.max(0,e))}function ne(e){return parseInt(e,16)}function nf(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function of(e){return typeof e=="string"&&e.indexOf("%")!=-1}function he(e){return e.length==1?"0"+e:""+e}function _t(e){return e<=1&&(e=e*100+"%"),e}function is(e){return Math.round(parseFloat(e)*255).toString(16)}function wa(e){return ne(e)/255}var pe=(function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Se(e){return!!pe.CSS_UNIT.exec(e)}function af(e){e=e.replace(Bd,"").replace(Fd,"").toLowerCase();var t=!1;if(eo[e])e=eo[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=pe.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=pe.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=pe.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=pe.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=pe.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=pe.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=pe.hex8.exec(e))?{r:ne(r[1]),g:ne(r[2]),b:ne(r[3]),a:wa(r[4]),format:t?"name":"hex8"}:(r=pe.hex6.exec(e))?{r:ne(r[1]),g:ne(r[2]),b:ne(r[3]),format:t?"name":"hex"}:(r=pe.hex4.exec(e))?{r:ne(r[1]+""+r[1]),g:ne(r[2]+""+r[2]),b:ne(r[3]+""+r[3]),a:wa(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=pe.hex3.exec(e))?{r:ne(r[1]+""+r[1]),g:ne(r[2]+""+r[2]),b:ne(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function lf(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var Sa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Zt={},Oa;function sf(){if(Oa)return Zt;Oa=1;var e=e||{};e.stringify=(function(){var t={"visit_linear-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-linear-gradient":function(r){return t.visit_gradient(r)},"visit_radial-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-radial-gradient":function(r){return t.visit_gradient(r)},visit_gradient:function(r){var n=t.visit(r.orientation);return n&&(n+=", "),r.type+"("+n+t.visit(r.colorStops)+")"},visit_shape:function(r){var n=r.value,o=t.visit(r.at),i=t.visit(r.style);return i&&(n+=" "+i),o&&(n+=" at "+o),n},"visit_default-radial":function(r){var n="",o=t.visit(r.at);return o&&(n+=o),n},"visit_extent-keyword":function(r){var n=r.value,o=t.visit(r.at);return o&&(n+=" at "+o),n},"visit_position-keyword":function(r){return r.value},visit_position:function(r){return t.visit(r.value.x)+" "+t.visit(r.value.y)},"visit_%":function(r){return r.value+"%"},visit_em:function(r){return r.value+"em"},visit_px:function(r){return r.value+"px"},visit_literal:function(r){return t.visit_color(r.value,r)},visit_hex:function(r){return t.visit_color("#"+r.value,r)},visit_rgb:function(r){return t.visit_color("rgb("+r.value.join(", ")+")",r)},visit_rgba:function(r){return t.visit_color("rgba("+r.value.join(", ")+")",r)},visit_color:function(r,n){var o=r,i=t.visit(n.length);return i&&(o+=" "+i),o},visit_angular:function(r){return r.value+"deg"},visit_directional:function(r){return"to "+r.value},visit_array:function(r){var n="",o=r.length;return r.forEach(function(i,u){n+=t.visit(i),u<o-1&&(n+=", ")}),n},visit:function(r){if(!r)return"";var n="";if(r instanceof Array)return t.visit_array(r,n);if(r.type){var o=t["visit_"+r.type];if(o)return o(r);throw Error("Missing visitor visit_"+r.type)}else throw Error("Invalid node.")}};return function(r){return t.visit(r)}})();var e=e||{};return e.parse=(function(){var t={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},r="";function n(N){var V=new Error(r+": "+N);throw V.source=r,V}function o(){var N=i();return r.length>0&&n("Invalid input not EOF"),N}function i(){return O(u)}function u(){return l("linear-gradient",t.linearGradient,d)||l("repeating-linear-gradient",t.repeatingLinearGradient,d)||l("radial-gradient",t.radialGradient,p)||l("repeating-radial-gradient",t.repeatingRadialGradient,p)}function l(N,V,M){return s(V,function(Q){var ge=M();return ge&&($(t.comma)||n("Missing comma before color stops")),{type:N,orientation:ge,colorStops:O(k)}})}function s(N,V){var M=$(N);if(M){$(t.startCall)||n("Missing (");var Q=V(M);return $(t.endCall)||n("Missing )"),Q}}function d(){return c()||f()}function c(){return A("directional",t.sideOrCorner,1)}function f(){return A("angular",t.angleValue,1)}function p(){var N,V=h(),M;return V&&(N=[],N.push(V),M=r,$(t.comma)&&(V=h(),V?N.push(V):r=M)),N}function h(){var N=y()||b();if(N)N.at=g();else{var V=v();if(V){N=V;var M=g();M&&(N.at=M)}else{var Q=m();Q&&(N={type:"default-radial",at:Q})}}return N}function y(){var N=A("shape",/^(circle)/i,0);return N&&(N.style=_()||v()),N}function b(){var N=A("shape",/^(ellipse)/i,0);return N&&(N.style=T()||v()),N}function v(){return A("extent-keyword",t.extentKeywords,1)}function g(){if(A("position",/^at/,0)){var N=m();return N||n("Missing positioning value"),N}}function m(){var N=C();if(N.x||N.y)return{type:"position",value:N}}function C(){return{x:T(),y:T()}}function O(N){var V=N(),M=[];if(V)for(M.push(V);$(t.comma);)V=N(),V?M.push(V):n("One extra comma");return M}function k(){var N=E();return N||n("Expected color definition"),N.length=T(),N}function E(){return B()||F()||I()||P()}function P(){return A("literal",t.literalColor,0)}function B(){return A("hex",t.hexColor,1)}function I(){return s(t.rgbColor,function(){return{type:"rgb",value:O(S)}})}function F(){return s(t.rgbaColor,function(){return{type:"rgba",value:O(S)}})}function S(){return $(t.number)[1]}function T(){return A("%",t.percentageValue,1)||j()||_()}function j(){return A("position-keyword",t.positionKeywords,1)}function _(){return A("px",t.pixelValue,1)||A("em",t.emValue,1)}function A(N,V,M){var Q=$(V);if(Q)return{type:N,value:Q[M]}}function $(N){var V,M;return M=/^[\n\r\t\s]+/.exec(r),M&&K(M[0].length),V=N.exec(r),V&&K(V[0].length),V}function K(N){r=r.substr(N)}return function(N){return r=N.toString(),o()}})(),Zt.parse=e.parse,Zt.stringify=e.stringify,Zt}var xa=sf(),ee="top",ce="bottom",de="right",te="left",ho="auto",Dt=[ee,ce,de,te],it="start",Vt="end",uf="clippingParents",ls="viewport",Ct="popper",cf="reference",Ea=Dt.reduce(function(e,t){return e.concat([t+"-"+it,t+"-"+Vt])},[]),ss=[].concat(Dt,[ho]).reduce(function(e,t){return e.concat([t,t+"-"+it,t+"-"+Vt])},[]),df="beforeRead",ff="read",pf="afterRead",hf="beforeMain",vf="main",gf="afterMain",mf="beforeWrite",yf="write",bf="afterWrite",Cf=[df,ff,pf,hf,vf,gf,mf,yf,bf];function Ce(e){return e?(e.nodeName||"").toLowerCase():null}function oe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Le(e){var t=oe(e).Element;return e instanceof t||e instanceof Element}function se(e){var t=oe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function vo(e){if(typeof ShadowRoot>"u")return!1;var t=oe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function wf(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!se(i)||!Ce(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(u){var l=o[u];l===!1?i.removeAttribute(u):i.setAttribute(u,l===!0?"":l)}))})}function Sf(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},u=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=u.reduce(function(s,d){return s[d]="",s},{});!se(o)||!Ce(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(s){o.removeAttribute(s)}))})}}const Of={name:"applyStyles",enabled:!0,phase:"write",fn:wf,effect:Sf,requires:["computeStyles"]};function be(e){return e.split("-")[0]}var Ge=Math.max,sr=Math.min,lt=Math.round;function to(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function us(){return!/^((?!chrome|android).)*safari/i.test(to())}function st(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&se(e)&&(o=e.offsetWidth>0&<(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&<(n.height)/e.offsetHeight||1);var u=Le(e)?oe(e):window,l=u.visualViewport,s=!us()&&r,d=(n.left+(s&&l?l.offsetLeft:0))/o,c=(n.top+(s&&l?l.offsetTop:0))/i,f=n.width/o,p=n.height/i;return{width:f,height:p,top:c,right:d+f,bottom:c+p,left:d,x:d,y:c}}function go(e){var t=st(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function cs(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&vo(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function _e(e){return oe(e).getComputedStyle(e)}function xf(e){return["table","td","th"].indexOf(Ce(e))>=0}function Ve(e){return((Le(e)?e.ownerDocument:e.document)||window.document).documentElement}function Or(e){return Ce(e)==="html"?e:e.assignedSlot||e.parentNode||(vo(e)?e.host:null)||Ve(e)}function ka(e){return!se(e)||_e(e).position==="fixed"?null:e.offsetParent}function Ef(e){var t=/firefox/i.test(to()),r=/Trident/i.test(to());if(r&&se(e)){var n=_e(e);if(n.position==="fixed")return null}var o=Or(e);for(vo(o)&&(o=o.host);se(o)&&["html","body"].indexOf(Ce(o))<0;){var i=_e(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Gt(e){for(var t=oe(e),r=ka(e);r&&xf(r)&&_e(r).position==="static";)r=ka(r);return r&&(Ce(r)==="html"||Ce(r)==="body"&&_e(r).position==="static")?t:r||Ef(e)||t}function mo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Nt(e,t,r){return Ge(e,sr(t,r))}function kf(e,t,r){var n=Nt(e,t,r);return n>r?r:n}function ds(){return{top:0,right:0,bottom:0,left:0}}function fs(e){return Object.assign({},ds(),e)}function ps(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var _f=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,fs(typeof t!="number"?t:ps(t,Dt))};function Tf(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,u=r.modifiersData.popperOffsets,l=be(r.placement),s=mo(l),d=[te,de].indexOf(l)>=0,c=d?"height":"width";if(!(!i||!u)){var f=_f(o.padding,r),p=go(i),h=s==="y"?ee:te,y=s==="y"?ce:de,b=r.rects.reference[c]+r.rects.reference[s]-u[s]-r.rects.popper[c],v=u[s]-r.rects.reference[s],g=Gt(i),m=g?s==="y"?g.clientHeight||0:g.clientWidth||0:0,C=b/2-v/2,O=f[h],k=m-p[c]-f[y],E=m/2-p[c]/2+C,P=Nt(O,E,k),B=s;r.modifiersData[n]=(t={},t[B]=P,t.centerOffset=P-E,t)}}function Nf(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||cs(t.elements.popper,o)&&(t.elements.arrow=o))}const Af={name:"arrow",enabled:!0,phase:"main",fn:Tf,effect:Nf,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ut(e){return e.split("-")[1]}var Rf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pf(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:lt(r*o)/o||0,y:lt(n*o)/o||0}}function _a(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,u=e.offsets,l=e.position,s=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=u.x,h=p===void 0?0:p,y=u.y,b=y===void 0?0:y,v=typeof c=="function"?c({x:h,y:b}):{x:h,y:b};h=v.x,b=v.y;var g=u.hasOwnProperty("x"),m=u.hasOwnProperty("y"),C=te,O=ee,k=window;if(d){var E=Gt(r),P="clientHeight",B="clientWidth";if(E===oe(r)&&(E=Ve(r),_e(E).position!=="static"&&l==="absolute"&&(P="scrollHeight",B="scrollWidth")),E=E,o===ee||(o===te||o===de)&&i===Vt){O=ce;var I=f&&E===k&&k.visualViewport?k.visualViewport.height:E[P];b-=I-n.height,b*=s?1:-1}if(o===te||(o===ee||o===ce)&&i===Vt){C=de;var F=f&&E===k&&k.visualViewport?k.visualViewport.width:E[B];h-=F-n.width,h*=s?1:-1}}var S=Object.assign({position:l},d&&Rf),T=c===!0?Pf({x:h,y:b},oe(r)):{x:h,y:b};if(h=T.x,b=T.y,s){var j;return Object.assign({},S,(j={},j[O]=m?"0":"",j[C]=g?"0":"",j.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",j))}return Object.assign({},S,(t={},t[O]=m?b+"px":"",t[C]=g?h+"px":"",t.transform="",t))}function jf(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,u=i===void 0?!0:i,l=r.roundOffsets,s=l===void 0?!0:l,d={placement:be(t.placement),variation:ut(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_a(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_a(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const If={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jf,data:{}};var Qt={passive:!0};function Vf(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,u=n.resize,l=u===void 0?!0:u,s=oe(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(c){c.addEventListener("scroll",r.update,Qt)}),l&&s.addEventListener("resize",r.update,Qt),function(){i&&d.forEach(function(c){c.removeEventListener("scroll",r.update,Qt)}),l&&s.removeEventListener("resize",r.update,Qt)}}const $f={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vf,data:{}};var Bf={left:"right",right:"left",bottom:"top",top:"bottom"};function nr(e){return e.replace(/left|right|bottom|top/g,function(t){return Bf[t]})}var Ff={start:"end",end:"start"};function Ta(e){return e.replace(/start|end/g,function(t){return Ff[t]})}function yo(e){var t=oe(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function bo(e){return st(Ve(e)).left+yo(e).scrollLeft}function Mf(e,t){var r=oe(e),n=Ve(e),o=r.visualViewport,i=n.clientWidth,u=n.clientHeight,l=0,s=0;if(o){i=o.width,u=o.height;var d=us();(d||!d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:u,x:l+bo(e),y:s}}function qf(e){var t,r=Ve(e),n=yo(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ge(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),u=Ge(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+bo(e),s=-n.scrollTop;return _e(o||r).direction==="rtl"&&(l+=Ge(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:u,x:l,y:s}}function Co(e){var t=_e(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function hs(e){return["html","body","#document"].indexOf(Ce(e))>=0?e.ownerDocument.body:se(e)&&Co(e)?e:hs(Or(e))}function At(e,t){var r;t===void 0&&(t=[]);var n=hs(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=oe(n),u=o?[i].concat(i.visualViewport||[],Co(n)?n:[]):n,l=t.concat(u);return o?l:l.concat(At(Or(u)))}function ro(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Df(e,t){var r=st(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Na(e,t,r){return t===ls?ro(Mf(e,r)):Le(t)?Df(t,r):ro(qf(Ve(e)))}function Gf(e){var t=At(Or(e)),r=["absolute","fixed"].indexOf(_e(e).position)>=0,n=r&&se(e)?Gt(e):e;return Le(n)?t.filter(function(o){return Le(o)&&cs(o,n)&&Ce(o)!=="body"}):[]}function Lf(e,t,r,n){var o=t==="clippingParents"?Gf(e):[].concat(t),i=[].concat(o,[r]),u=i[0],l=i.reduce(function(s,d){var c=Na(e,d,n);return s.top=Ge(c.top,s.top),s.right=sr(c.right,s.right),s.bottom=sr(c.bottom,s.bottom),s.left=Ge(c.left,s.left),s},Na(e,u,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function vs(e){var t=e.reference,r=e.element,n=e.placement,o=n?be(n):null,i=n?ut(n):null,u=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,s;switch(o){case ee:s={x:u,y:t.y-r.height};break;case ce:s={x:u,y:t.y+t.height};break;case de:s={x:t.x+t.width,y:l};break;case te:s={x:t.x-r.width,y:l};break;default:s={x:t.x,y:t.y}}var d=o?mo(o):null;if(d!=null){var c=d==="y"?"height":"width";switch(i){case it:s[d]=s[d]-(t[c]/2-r[c]/2);break;case Vt:s[d]=s[d]+(t[c]/2-r[c]/2);break}}return s}function $t(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,u=i===void 0?e.strategy:i,l=r.boundary,s=l===void 0?uf:l,d=r.rootBoundary,c=d===void 0?ls:d,f=r.elementContext,p=f===void 0?Ct:f,h=r.altBoundary,y=h===void 0?!1:h,b=r.padding,v=b===void 0?0:b,g=fs(typeof v!="number"?v:ps(v,Dt)),m=p===Ct?cf:Ct,C=e.rects.popper,O=e.elements[y?m:p],k=Lf(Le(O)?O:O.contextElement||Ve(e.elements.popper),s,c,u),E=st(e.elements.reference),P=vs({reference:E,element:C,placement:o}),B=ro(Object.assign({},C,P)),I=p===Ct?B:E,F={top:k.top-I.top+g.top,bottom:I.bottom-k.bottom+g.bottom,left:k.left-I.left+g.left,right:I.right-k.right+g.right},S=e.modifiersData.offset;if(p===Ct&&S){var T=S[o];Object.keys(F).forEach(function(j){var _=[de,ce].indexOf(j)>=0?1:-1,A=[ee,ce].indexOf(j)>=0?"y":"x";F[j]+=T[A]*_})}return F}function Hf(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,u=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,d=s===void 0?ss:s,c=ut(n),f=c?l?Ea:Ea.filter(function(y){return ut(y)===c}):Dt,p=f.filter(function(y){return d.indexOf(y)>=0});p.length===0&&(p=f);var h=p.reduce(function(y,b){return y[b]=$t(e,{placement:b,boundary:o,rootBoundary:i,padding:u})[be(b)],y},{});return Object.keys(h).sort(function(y,b){return h[y]-h[b]})}function Uf(e){if(be(e)===ho)return[];var t=nr(e);return[Ta(e),t,Ta(t)]}function zf(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,u=r.altAxis,l=u===void 0?!0:u,s=r.fallbackPlacements,d=r.padding,c=r.boundary,f=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,y=h===void 0?!0:h,b=r.allowedAutoPlacements,v=t.options.placement,g=be(v),m=g===v,C=s||(m||!y?[nr(v)]:Uf(v)),O=[v].concat(C).reduce(function(Ae,me){return Ae.concat(be(me)===ho?Hf(t,{placement:me,boundary:c,rootBoundary:f,padding:d,flipVariations:y,allowedAutoPlacements:b}):me)},[]),k=t.rects.reference,E=t.rects.popper,P=new Map,B=!0,I=O[0],F=0;F<O.length;F++){var S=O[F],T=be(S),j=ut(S)===it,_=[ee,ce].indexOf(T)>=0,A=_?"width":"height",$=$t(t,{placement:S,boundary:c,rootBoundary:f,altBoundary:p,padding:d}),K=_?j?de:te:j?ce:ee;k[A]>E[A]&&(K=nr(K));var N=nr(K),V=[];if(i&&V.push($[T]<=0),l&&V.push($[K]<=0,$[N]<=0),V.every(function(Ae){return Ae})){I=S,B=!1;break}P.set(S,V)}if(B)for(var M=y?3:1,Q=function(me){var bt=O.find(function(Wt){var Be=P.get(Wt);if(Be)return Be.slice(0,me).every(function(Rr){return Rr})});if(bt)return I=bt,"break"},ge=M;ge>0;ge--){var Ze=Q(ge);if(Ze==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}const Wf={name:"flip",enabled:!0,phase:"main",fn:zf,requiresIfExists:["offset"],data:{_skip:!1}};function Aa(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Ra(e){return[ee,de,ce,te].some(function(t){return e[t]>=0})}function Kf(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,u=$t(t,{elementContext:"reference"}),l=$t(t,{altBoundary:!0}),s=Aa(u,n),d=Aa(l,o,i),c=Ra(s),f=Ra(d);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Yf={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Kf};function Xf(e,t,r){var n=be(e),o=[te,ee].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=i[0],l=i[1];return u=u||0,l=(l||0)*o,[te,de].indexOf(n)>=0?{x:l,y:u}:{x:u,y:l}}function Jf(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,u=ss.reduce(function(c,f){return c[f]=Xf(f,t.rects,i),c},{}),l=u[t.placement],s=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=u}const Zf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Jf};function Qf(e){var t=e.state,r=e.name;t.modifiersData[r]=vs({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const ep={name:"popperOffsets",enabled:!0,phase:"read",fn:Qf,data:{}};function tp(e){return e==="x"?"y":"x"}function rp(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,u=r.altAxis,l=u===void 0?!1:u,s=r.boundary,d=r.rootBoundary,c=r.altBoundary,f=r.padding,p=r.tether,h=p===void 0?!0:p,y=r.tetherOffset,b=y===void 0?0:y,v=$t(t,{boundary:s,rootBoundary:d,padding:f,altBoundary:c}),g=be(t.placement),m=ut(t.placement),C=!m,O=mo(g),k=tp(O),E=t.modifiersData.popperOffsets,P=t.rects.reference,B=t.rects.popper,I=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,F=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(E){if(i){var j,_=O==="y"?ee:te,A=O==="y"?ce:de,$=O==="y"?"height":"width",K=E[O],N=K+v[_],V=K-v[A],M=h?-B[$]/2:0,Q=m===it?P[$]:B[$],ge=m===it?-B[$]:-P[$],Ze=t.elements.arrow,Ae=h&&Ze?go(Ze):{width:0,height:0},me=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ds(),bt=me[_],Wt=me[A],Be=Nt(0,P[$],Ae[$]),Rr=C?P[$]/2-M-Be-bt-F.mainAxis:Q-Be-bt-F.mainAxis,hu=C?-P[$]/2+M+Be+Wt+F.mainAxis:ge+Be+Wt+F.mainAxis,Pr=t.elements.arrow&&Gt(t.elements.arrow),vu=Pr?O==="y"?Pr.clientTop||0:Pr.clientLeft||0:0,zo=(j=S?.[O])!=null?j:0,gu=K+Rr-zo-vu,mu=K+hu-zo,Wo=Nt(h?sr(N,gu):N,K,h?Ge(V,mu):V);E[O]=Wo,T[O]=Wo-K}if(l){var Ko,yu=O==="x"?ee:te,bu=O==="x"?ce:de,Fe=E[k],Kt=k==="y"?"height":"width",Yo=Fe+v[yu],Xo=Fe-v[bu],jr=[ee,te].indexOf(g)!==-1,Jo=(Ko=S?.[k])!=null?Ko:0,Zo=jr?Yo:Fe-P[Kt]-B[Kt]-Jo+F.altAxis,Qo=jr?Fe+P[Kt]+B[Kt]-Jo-F.altAxis:Xo,ea=h&&jr?kf(Zo,Fe,Qo):Nt(h?Zo:Yo,Fe,h?Qo:Xo);E[k]=ea,T[k]=ea-Fe}t.modifiersData[n]=T}}const np={name:"preventOverflow",enabled:!0,phase:"main",fn:rp,requiresIfExists:["offset"]};function op(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ap(e){return e===oe(e)||!se(e)?yo(e):op(e)}function ip(e){var t=e.getBoundingClientRect(),r=lt(t.width)/e.offsetWidth||1,n=lt(t.height)/e.offsetHeight||1;return r!==1||n!==1}function lp(e,t,r){r===void 0&&(r=!1);var n=se(t),o=se(t)&&ip(t),i=Ve(t),u=st(e,o,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((Ce(t)!=="body"||Co(i))&&(l=ap(t)),se(t)?(s=st(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=bo(i))),{x:u.left+l.scrollLeft-s.x,y:u.top+l.scrollTop-s.y,width:u.width,height:u.height}}function sp(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var u=[].concat(i.requires||[],i.requiresIfExists||[]);u.forEach(function(l){if(!r.has(l)){var s=t.get(l);s&&o(s)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function up(e){var t=sp(e);return Cf.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function cp(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function dp(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Pa={placement:"bottom",modifiers:[],strategy:"absolute"};function ja(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function fp(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?Pa:o;return function(l,s,d){d===void 0&&(d=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pa,i),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},f=[],p=!1,h={state:c,setOptions:function(g){var m=typeof g=="function"?g(c.options):g;b(),c.options=Object.assign({},i,c.options,m),c.scrollParents={reference:Le(l)?At(l):l.contextElement?At(l.contextElement):[],popper:At(s)};var C=up(dp([].concat(n,c.options.modifiers)));return c.orderedModifiers=C.filter(function(O){return O.enabled}),y(),h.update()},forceUpdate:function(){if(!p){var g=c.elements,m=g.reference,C=g.popper;if(ja(m,C)){c.rects={reference:lp(m,Gt(C),c.options.strategy==="fixed"),popper:go(C)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(F){return c.modifiersData[F.name]=Object.assign({},F.data)});for(var O=0;O<c.orderedModifiers.length;O++){if(c.reset===!0){c.reset=!1,O=-1;continue}var k=c.orderedModifiers[O],E=k.fn,P=k.options,B=P===void 0?{}:P,I=k.name;typeof E=="function"&&(c=E({state:c,options:B,name:I,instance:h})||c)}}}},update:cp(function(){return new Promise(function(v){h.forceUpdate(),v(c)})}),destroy:function(){b(),p=!0}};if(!ja(l,s))return h;h.setOptions(d).then(function(v){!p&&d.onFirstUpdate&&d.onFirstUpdate(v)});function y(){c.orderedModifiers.forEach(function(v){var g=v.name,m=v.options,C=m===void 0?{}:m,O=v.effect;if(typeof O=="function"){var k=O({state:c,name:g,instance:h,options:C}),E=function(){};f.push(k||E)}})}function b(){f.forEach(function(v){return v()}),f=[]}return h}}var pp=[$f,ep,If,Of,Zf,Wf,np,Af,Yf],hp=fp({defaultModifiers:pp});function vp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function gs(e,t,r){return r&&vp(e,r),e}function or(){return(or=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ms(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ys(e,t){if(e==null)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}function Ia(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var bs=Object.prototype,Cs=bs.toString,gp=bs.hasOwnProperty,ws=/^\s*function (\w+)/;function Va(e){var t,r=(t=e?.type)!==null&&t!==void 0?t:e;if(r){var n=r.toString().match(ws);return n?n[1]:""}return""}var He=function(e){var t,r;return Ia(e)!==!1&&typeof(t=e.constructor)=="function"&&Ia(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1},Ss=function(e){return e},re=Ss;if(process.env.NODE_ENV!=="production"){var mp=typeof console<"u";re=mp?function(e){console.warn("[VueTypes warn]: "+e)}:Ss}var Bt=function(e,t){return gp.call(e,t)},yp=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},ct=Array.isArray||function(e){return Cs.call(e)==="[object Array]"},dt=function(e){return Cs.call(e)==="[object Function]"},ur=function(e){return He(e)&&Bt(e,"_vueTypes_name")},Os=function(e){return He(e)&&(Bt(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return Bt(e,t)}))};function wo(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function We(e,t,r){var n,o=!0,i="";n=He(e)?e:{type:e};var u=ur(n)?n._vueTypes_name+" - ":"";if(Os(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&t===void 0)return o;ct(n.type)?(o=n.type.some(function(f){return We(f,t)===!0}),i=n.type.map(function(f){return Va(f)}).join(" or ")):o=(i=Va(n))==="Array"?ct(t):i==="Object"?He(t):i==="String"||i==="Number"||i==="Boolean"||i==="Function"?(function(f){if(f==null)return"";var p=f.constructor.toString().match(ws);return p?p[1]:""})(t)===i:t instanceof n.type}if(!o){var l=u+'value "'+t+'" should be of type "'+i+'"';return l}if(Bt(n,"validator")&&dt(n.validator)){var s=re,d=[];if(re=function(f){d.push(f)},o=n.validator(t),re=s,!o){var c=(d.length>1?"* ":"")+d.join(`
|
|
12
|
+
* `);return d.length=0,c}}return o}function ae(e,t){var r=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(o){return o!==void 0||this.default?dt(o)||We(this,o)===!0?(this.default=ct(o)?function(){return[].concat(o)}:He(o)?function(){return Object.assign({},o)}:o,this):(re(this._vueTypes_name+' - invalid default value: "'+o+'"'),this):this}}}),n=r.validator;return dt(n)&&(r.validator=wo(n,r)),r}function we(e,t){var r=ae(e,t);return Object.defineProperty(r,"validate",{value:function(n){return dt(this.validator)&&re(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
|
|
13
|
+
`+JSON.stringify(this)),this.validator=wo(n,this),this}})}function $a(e,t,r){var n,o,i=(n=t,o={},Object.getOwnPropertyNames(n).forEach(function(f){o[f]=Object.getOwnPropertyDescriptor(n,f)}),Object.defineProperties({},o));if(i._vueTypes_name=e,!He(r))return i;var u,l,s=r.validator,d=ys(r,["validator"]);if(dt(s)){var c=i.validator;c&&(c=(l=(u=c).__original)!==null&&l!==void 0?l:u),i.validator=wo(c?function(f){return c.call(this,f)&&s.call(this,f)}:s,i)}return Object.assign(i,d)}function xr(e){return e.replace(/^(?!\s*$)/gm," ")}var bp=function(){return we("any",{})},Cp=function(){return we("function",{type:Function})},wp=function(){return we("boolean",{type:Boolean})},Sp=function(){return we("string",{type:String})},Op=function(){return we("number",{type:Number})},xp=function(){return we("array",{type:Array})},Ep=function(){return we("object",{type:Object})},kp=function(){return ae("integer",{type:Number,validator:function(e){return yp(e)}})},_p=function(){return ae("symbol",{validator:function(e){return typeof e=="symbol"}})};function Tp(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return ae(e.name||"<<anonymous function>>",{validator:function(r){var n=e(r);return n||re(this._vueTypes_name+" - "+t),n}})}function Np(e){if(!ct(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',r=e.reduce(function(n,o){if(o!=null){var i=o.constructor;n.indexOf(i)===-1&&n.push(i)}return n},[]);return ae("oneOf",{type:r.length>0?r:void 0,validator:function(n){var o=e.indexOf(n)!==-1;return o||re(t),o}})}function Ap(e){if(!ct(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,r=[],n=0;n<e.length;n+=1){var o=e[n];if(Os(o)){if(ur(o)&&o._vueTypes_name==="oneOf"){r=r.concat(o.type);continue}if(dt(o.validator)&&(t=!0),o.type!==!0&&o.type){r=r.concat(o.type);continue}}r.push(o)}return r=r.filter(function(i,u){return r.indexOf(i)===u}),ae("oneOfType",t?{type:r,validator:function(i){var u=[],l=e.some(function(s){var d=We(ur(s)&&s._vueTypes_name==="oneOf"?s.type||null:s,i);return typeof d=="string"&&u.push(d),d===!0});return l||re("oneOfType - provided value does not match any of the "+u.length+` passed-in validators:
|
|
14
14
|
`+xr(u.join(`
|
|
15
|
-
`))),l}}:{type:r})}function
|
|
16
|
-
`+xr(r)),n}})}function
|
|
17
|
-
`+xr(r)),n}})}function
|
|
18
|
-
`+xr(d)),d===!0})}});return Object.defineProperty(n,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(n,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),n}var ye=(function(){function e(){}return e.extend=function(t){var r=this;if(ct(t))return t.forEach(function(f){return r.extend(f)}),this;var n=t.name,o=t.validate,i=o!==void 0&&o,u=t.getter,l=u!==void 0&&u,s=gs(t,["name","validate","getter"]);if(Bt(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var d,c=s.type;return ur(c)?(delete s.type,Object.defineProperty(this,n,l?{get:function(){return Va(n,c,s)}}:{value:function(){var f,p=Va(n,c,s);return p.validator&&(p.validator=(f=p.validator).bind.apply(f,[p].concat([].slice.call(arguments)))),p}})):(d=l?{get:function(){var f=Object.assign({},s);return i?we(n,f):ae(n,f)},enumerable:!0}:{value:function(){var f,p,h=Object.assign({},s);return f=i?we(n,h):ae(n,h),h.validator&&(f.validator=(p=h.validator).bind.apply(p,[f].concat([].slice.call(arguments)))),f},enumerable:!0},Object.defineProperty(this,n,d))},hs(e,null,[{key:"any",get:function(){return mp()}},{key:"func",get:function(){return yp().def(this.defaults.func)}},{key:"bool",get:function(){return bp().def(this.defaults.bool)}},{key:"string",get:function(){return Cp().def(this.defaults.string)}},{key:"number",get:function(){return wp().def(this.defaults.number)}},{key:"array",get:function(){return Sp().def(this.defaults.array)}},{key:"object",get:function(){return Op().def(this.defaults.object)}},{key:"integer",get:function(){return xp().def(this.defaults.integer)}},{key:"symbol",get:function(){return Ep()}}]),e})();function jp(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=(function(r){function n(){return r.apply(this,arguments)||this}return vs(n,r),hs(n,null,[{key:"sensibleDefaults",get:function(){return or({},this.defaults)},set:function(o){this.defaults=o!==!1?or({},o!==!0?o:e):{}}}]),n})(ye)).defaults=or({},e),t}ye.defaults={},ye.custom=kp,ye.oneOf=_p,ye.instanceOf=Ap,ye.oneOfType=Tp,ye.arrayOf=Np,ye.objectOf=Pp,ye.shape=Rp,ye.utils={validate:function(e,t){return We(t,e)===!0},toType:function(e,t,r){return r===void 0&&(r=!1),r?we(e,t):ae(e,t)}};var P=(function(e){function t(){return e.apply(this,arguments)||this}return vs(t,e),t})(jp()),$a={},wt,Ba;function ve(){if(Ba)return wt;Ba=1;var e=function(t){return t&&t.Math===Math&&t};return wt=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof wa=="object"&&wa)||e(typeof wt=="object"&&wt)||(function(){return this})()||Function("return this")(),wt}var Br,Fa;function Ke(){return Fa||(Fa=1,Br=function(e){try{return!!e()}catch{return!0}}),Br}var Fr,Ma;function Ye(){if(Ma)return Fr;Ma=1;var e=Ke();return Fr=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Fr}var Mr={exports:{}},qr,qa;function Ss(){if(qa)return qr;qa=1;var e=Ke();return qr=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),qr}var Dr,Da;function Lt(){if(Da)return Dr;Da=1;var e=Ss(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return Dr=e?n:function(o){return function(){return r.apply(o,arguments)}},Dr}var Gr,Ga;function $e(){if(Ga)return Gr;Ga=1;var e=typeof document=="object"&&document.all;return Gr=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},Gr}var Lr,La;function Os(){return La||(La=1,Lr=function(e){return e==null}),Lr}var Hr,Ha;function Ip(){if(Ha)return Hr;Ha=1;var e=Os(),t=TypeError;return Hr=function(r){if(e(r))throw new t("Can't call method on "+r);return r},Hr}var Ur,Ua;function Vp(){if(Ua)return Ur;Ua=1;var e=Ip(),t=Object;return Ur=function(r){return t(e(r))},Ur}var zr,za;function Er(){if(za)return zr;za=1;var e=Lt(),t=Vp(),r=e({}.hasOwnProperty);return zr=Object.hasOwn||function(o,i){return r(t(o),i)},zr}var Wr,Wa;function $p(){if(Wa)return Wr;Wa=1;var e=Ye(),t=Er(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,o=t(r,"name"),i=o&&(function(){}).name==="something",u=o&&(!e||e&&n(r,"name").configurable);return Wr={EXISTS:o,PROPER:i,CONFIGURABLE:u},Wr}var Kr={exports:{}},Yr,Ka;function Bp(){return Ka||(Ka=1,Yr=!1),Yr}var Xr,Ya;function Fp(){if(Ya)return Xr;Ya=1;var e=ve(),t=Object.defineProperty;return Xr=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},Xr}var Xa;function wo(){if(Xa)return Kr.exports;Xa=1;var e=Bp(),t=ve(),r=Fp(),n="__core-js_shared__",o=Kr.exports=t[n]||r(n,{});return(o.versions||(o.versions=[])).push({version:"3.41.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Kr.exports}var Jr,Ja;function Mp(){if(Ja)return Jr;Ja=1;var e=Lt(),t=$e(),r=wo(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(o){return n(o)}),Jr=r.inspectSource,Jr}var Zr,Za;function qp(){if(Za)return Zr;Za=1;var e=ve(),t=$e(),r=e.WeakMap;return Zr=t(r)&&/native code/.test(String(r)),Zr}var Qr,Qa;function Ht(){if(Qa)return Qr;Qa=1;var e=$e();return Qr=function(t){return typeof t=="object"?t!==null:e(t)},Qr}var en={},tn,ei;function Dp(){if(ei)return tn;ei=1;var e=ve(),t=Ht(),r=e.document,n=t(r)&&t(r.createElement);return tn=function(o){return n?r.createElement(o):{}},tn}var rn,ti;function Gp(){if(ti)return rn;ti=1;var e=Ye(),t=Ke(),r=Dp();return rn=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),rn}var nn,ri;function Lp(){if(ri)return nn;ri=1;var e=Ye(),t=Ke();return nn=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),nn}var on,ni;function xs(){if(ni)return on;ni=1;var e=Ht(),t=String,r=TypeError;return on=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},on}var an,oi;function Es(){if(oi)return an;oi=1;var e=Ss(),t=Function.prototype.call;return an=e?t.bind(t):function(){return t.apply(t,arguments)},an}var ln,ai;function Hp(){if(ai)return ln;ai=1;var e=ve(),t=$e(),r=function(n){return t(n)?n:void 0};return ln=function(n,o){return arguments.length<2?r(e[n]):e[n]&&e[n][o]},ln}var sn,ii;function Up(){if(ii)return sn;ii=1;var e=Lt();return sn=e({}.isPrototypeOf),sn}var un,li;function zp(){if(li)return un;li=1;var e=ve(),t=e.navigator,r=t&&t.userAgent;return un=r?String(r):"",un}var cn,si;function Wp(){if(si)return cn;si=1;var e=ve(),t=zp(),r=e.process,n=e.Deno,o=r&&r.versions||n&&n.version,i=o&&o.v8,u,l;return i&&(u=i.split("."),l=u[0]>0&&u[0]<4?1:+(u[0]+u[1])),!l&&t&&(u=t.match(/Edge\/(\d+)/),(!u||u[1]>=74)&&(u=t.match(/Chrome\/(\d+)/),u&&(l=+u[1]))),cn=l,cn}var dn,ui;function ks(){if(ui)return dn;ui=1;var e=Wp(),t=Ke(),r=ve(),n=r.String;return dn=!!Object.getOwnPropertySymbols&&!t(function(){var o=Symbol("symbol detection");return!n(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&e&&e<41}),dn}var fn,ci;function _s(){if(ci)return fn;ci=1;var e=ks();return fn=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",fn}var pn,di;function Ts(){if(di)return pn;di=1;var e=Hp(),t=$e(),r=Up(),n=_s(),o=Object;return pn=n?function(i){return typeof i=="symbol"}:function(i){var u=e("Symbol");return t(u)&&r(u.prototype,o(i))},pn}var hn,fi;function Kp(){if(fi)return hn;fi=1;var e=String;return hn=function(t){try{return e(t)}catch{return"Object"}},hn}var vn,pi;function Yp(){if(pi)return vn;pi=1;var e=$e(),t=Kp(),r=TypeError;return vn=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},vn}var gn,hi;function Xp(){if(hi)return gn;hi=1;var e=Yp(),t=Os();return gn=function(r,n){var o=r[n];return t(o)?void 0:e(o)},gn}var mn,vi;function Jp(){if(vi)return mn;vi=1;var e=Es(),t=$e(),r=Ht(),n=TypeError;return mn=function(o,i){var u,l;if(i==="string"&&t(u=o.toString)&&!r(l=e(u,o))||t(u=o.valueOf)&&!r(l=e(u,o))||i!=="string"&&t(u=o.toString)&&!r(l=e(u,o)))return l;throw new n("Can't convert object to primitive value")},mn}var yn,gi;function Ns(){if(gi)return yn;gi=1;var e=wo();return yn=function(t,r){return e[t]||(e[t]=r||{})},yn}var bn,mi;function As(){if(mi)return bn;mi=1;var e=Lt(),t=0,r=Math.random(),n=e(1 .toString);return bn=function(o){return"Symbol("+(o===void 0?"":o)+")_"+n(++t+r,36)},bn}var Cn,yi;function Zp(){if(yi)return Cn;yi=1;var e=ve(),t=Ns(),r=Er(),n=As(),o=ks(),i=_s(),u=e.Symbol,l=t("wks"),s=i?u.for||u:u&&u.withoutSetter||n;return Cn=function(d){return r(l,d)||(l[d]=o&&r(u,d)?u[d]:s("Symbol."+d)),l[d]},Cn}var wn,bi;function Qp(){if(bi)return wn;bi=1;var e=Es(),t=Ht(),r=Ts(),n=Xp(),o=Jp(),i=Zp(),u=TypeError,l=i("toPrimitive");return wn=function(s,d){if(!t(s)||r(s))return s;var c=n(s,l),f;if(c){if(d===void 0&&(d="default"),f=e(c,s,d),!t(f)||r(f))return f;throw new u("Can't convert object to primitive value")}return d===void 0&&(d="number"),o(s,d)},wn}var Sn,Ci;function eh(){if(Ci)return Sn;Ci=1;var e=Qp(),t=Ts();return Sn=function(r){var n=e(r,"string");return t(n)?n:n+""},Sn}var wi;function Ps(){if(wi)return en;wi=1;var e=Ye(),t=Gp(),r=Lp(),n=xs(),o=eh(),i=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s="enumerable",d="configurable",c="writable";return en.f=e?r?function(p,h,y){if(n(p),h=o(h),n(y),typeof p=="function"&&h==="prototype"&&"value"in y&&c in y&&!y[c]){var b=l(p,h);b&&b[c]&&(p[h]=y.value,y={configurable:d in y?y[d]:b[d],enumerable:s in y?y[s]:b[s],writable:!1})}return u(p,h,y)}:u:function(p,h,y){if(n(p),h=o(h),n(y),t)try{return u(p,h,y)}catch{}if("get"in y||"set"in y)throw new i("Accessors not supported");return"value"in y&&(p[h]=y.value),p},en}var On,Si;function th(){return Si||(Si=1,On=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),On}var xn,Oi;function rh(){if(Oi)return xn;Oi=1;var e=Ye(),t=Ps(),r=th();return xn=e?function(n,o,i){return t.f(n,o,r(1,i))}:function(n,o,i){return n[o]=i,n},xn}var En,xi;function nh(){if(xi)return En;xi=1;var e=Ns(),t=As(),r=e("keys");return En=function(n){return r[n]||(r[n]=t(n))},En}var kn,Ei;function oh(){return Ei||(Ei=1,kn={}),kn}var _n,ki;function ah(){if(ki)return _n;ki=1;var e=qp(),t=ve(),r=Ht(),n=rh(),o=Er(),i=wo(),u=nh(),l=oh(),s="Object already initialized",d=t.TypeError,c=t.WeakMap,f,p,h,y=function(m){return h(m)?p(m):f(m,{})},b=function(m){return function(C){var O;if(!r(C)||(O=p(C)).type!==m)throw new d("Incompatible receiver, "+m+" required");return O}};if(e||i.state){var v=i.state||(i.state=new c);v.get=v.get,v.has=v.has,v.set=v.set,f=function(m,C){if(v.has(m))throw new d(s);return C.facade=m,v.set(m,C),C},p=function(m){return v.get(m)||{}},h=function(m){return v.has(m)}}else{var g=u("state");l[g]=!0,f=function(m,C){if(o(m,g))throw new d(s);return C.facade=m,n(m,g,C),C},p=function(m){return o(m,g)?m[g]:{}},h=function(m){return o(m,g)}}return _n={set:f,get:p,has:h,enforce:y,getterFor:b},_n}var _i;function ih(){if(_i)return Mr.exports;_i=1;var e=Lt(),t=Ke(),r=$e(),n=Er(),o=Ye(),i=$p().CONFIGURABLE,u=Mp(),l=ah(),s=l.enforce,d=l.get,c=String,f=Object.defineProperty,p=e("".slice),h=e("".replace),y=e([].join),b=o&&!t(function(){return f(function(){},"length",{value:8}).length!==8}),v=String(String).split("String"),g=Mr.exports=function(m,C,O){p(c(C),0,7)==="Symbol("&&(C="["+h(c(C),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),O&&O.getter&&(C="get "+C),O&&O.setter&&(C="set "+C),(!n(m,"name")||i&&m.name!==C)&&(o?f(m,"name",{value:C,configurable:!0}):m.name=C),b&&O&&n(O,"arity")&&m.length!==O.arity&&f(m,"length",{value:O.arity});try{O&&n(O,"constructor")&&O.constructor?o&&f(m,"prototype",{writable:!1}):m.prototype&&(m.prototype=void 0)}catch{}var k=s(m);return n(k,"source")||(k.source=y(v,typeof C=="string"?C:"")),m};return Function.prototype.toString=g(function(){return r(this)&&d(this).source||u(this)},"toString"),Mr.exports}var Tn,Ti;function lh(){if(Ti)return Tn;Ti=1;var e=ih(),t=Ps();return Tn=function(r,n,o){return o.get&&e(o.get,n,{getter:!0}),o.set&&e(o.set,n,{setter:!0}),t.f(r,n,o)},Tn}var Nn,Ni;function sh(){if(Ni)return Nn;Ni=1;var e=xs();return Nn=function(){var t=e(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},Nn}var Ai;function uh(){if(Ai)return $a;Ai=1;var e=ve(),t=Ye(),r=lh(),n=sh(),o=Ke(),i=e.RegExp,u=i.prototype,l=t&&o(function(){var s=!0;try{i(".","d")}catch{s=!1}var d={},c="",f=s?"dgimsy":"gimsy",p=function(v,g){Object.defineProperty(d,v,{get:function(){return c+=g,!0}})},h={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};s&&(h.hasIndices="d");for(var y in h)p(y,h[y]);var b=Object.getOwnPropertyDescriptor(u,"flags").get.call(d);return b!==f||c!==f});return l&&r(u,"flags",{configurable:!0,get:n}),$a}uh();var Pi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function So(e){var t={exports:{}};return e(t,t.exports),t.exports}var er=function(e){return e&&e.Math==Math&&e},z=er(typeof globalThis=="object"&&globalThis)||er(typeof window=="object"&&window)||er(typeof self=="object"&&self)||er(typeof Pi=="object"&&Pi)||(function(){return this})()||Function("return this")(),q=function(e){try{return!!e()}catch{return!0}},le=!q(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ri={}.propertyIsEnumerable,ji=Object.getOwnPropertyDescriptor,ch={f:ji&&!Ri.call({1:2},1)?function(e){var t=ji(this,e);return!!t&&t.enumerable}:Ri},kr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},dh={}.toString,ke=function(e){return dh.call(e).slice(8,-1)},fh="".split,_r=q(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return ke(e)=="String"?fh.call(e,""):Object(e)}:Object,Re=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},gt=function(e){return _r(Re(e))},W=function(e){return typeof e=="object"?e!==null:typeof e=="function"},Oo=function(e,t){if(!W(e))return e;var r,n;if(t&&typeof(r=e.toString)=="function"&&!W(n=r.call(e))||typeof(r=e.valueOf)=="function"&&!W(n=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!W(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},ph={}.hasOwnProperty,U=function(e,t){return ph.call(e,t)},ro=z.document,hh=W(ro)&&W(ro.createElement),Rs=function(e){return hh?ro.createElement(e):{}},js=!le&&!q(function(){return Object.defineProperty(Rs("div"),"a",{get:function(){return 7}}).a!=7}),Ii=Object.getOwnPropertyDescriptor,xo={f:le?Ii:function(e,t){if(e=gt(e),t=Oo(t,!0),js)try{return Ii(e,t)}catch{}if(U(e,t))return kr(!ch.f.call(e,t),e[t])}},Z=function(e){if(!W(e))throw TypeError(String(e)+" is not an object");return e},Vi=Object.defineProperty,Te={f:le?Vi:function(e,t,r){if(Z(e),t=Oo(t,!0),Z(r),js)try{return Vi(e,t,r)}catch{}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},ue=le?function(e,t,r){return Te.f(e,t,kr(1,r))}:function(e,t,r){return e[t]=r,e},Eo=function(e,t){try{ue(z,e,t)}catch{z[e]=t}return t},Ue=z["__core-js_shared__"]||Eo("__core-js_shared__",{}),vh=Function.toString;typeof Ue.inspectSource!="function"&&(Ue.inspectSource=function(e){return vh.call(e)});var cr,Pt,dr,Is=Ue.inspectSource,$i=z.WeakMap,gh=typeof $i=="function"&&/native code/.test(Is($i)),Vs=So(function(e){(e.exports=function(t,r){return Ue[t]||(Ue[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),mh=0,yh=Math.random(),ko=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++mh+yh).toString(36)},Bi=Vs("keys"),_o=function(e){return Bi[e]||(Bi[e]=ko(e))},Tr={},bh=z.WeakMap;if(gh){var Qe=Ue.state||(Ue.state=new bh),Ch=Qe.get,wh=Qe.has,Sh=Qe.set;cr=function(e,t){return t.facade=e,Sh.call(Qe,e,t),t},Pt=function(e){return Ch.call(Qe,e)||{}},dr=function(e){return wh.call(Qe,e)}}else{var St=_o("state");Tr[St]=!0,cr=function(e,t){return t.facade=e,ue(e,St,t),t},Pt=function(e){return U(e,St)?e[St]:{}},dr=function(e){return U(e,St)}}var je={set:cr,get:Pt,has:dr,enforce:function(e){return dr(e)?Pt(e):cr(e,{})},getterFor:function(e){return function(t){var r;if(!W(t)||(r=Pt(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},Ie=So(function(e){var t=je.get,r=je.enforce,n=String(String).split("String");(e.exports=function(o,i,u,l){var s,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet;typeof u=="function"&&(typeof i!="string"||U(u,"name")||ue(u,"name",i),(s=r(u)).source||(s.source=n.join(typeof i=="string"?i:""))),o!==z?(d?!f&&o[i]&&(c=!0):delete o[i],c?o[i]=u:ue(o,i,u)):c?o[i]=u:Eo(i,u)})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||Is(this)})}),An=z,Fi=function(e){return typeof e=="function"?e:void 0},Nr=function(e,t){return arguments.length<2?Fi(An[e])||Fi(z[e]):An[e]&&An[e][t]||z[e]&&z[e][t]},Oh=Math.ceil,xh=Math.floor,mt=function(e){return isNaN(e=+e)?0:(e>0?xh:Oh)(e)},Eh=Math.min,ie=function(e){return e>0?Eh(mt(e),9007199254740991):0},kh=Math.max,_h=Math.min,fr=function(e,t){var r=mt(e);return r<0?kh(r+t,0):_h(r,t)},Th=function(e){return function(t,r,n){var o,i=gt(t),u=ie(i.length),l=fr(n,u);if(e&&r!=r){for(;u>l;)if((o=i[l++])!=o)return!0}else for(;u>l;l++)if((e||l in i)&&i[l]===r)return e||l||0;return!e&&-1}},$s={indexOf:Th(!1)},Nh=$s.indexOf,Bs=function(e,t){var r,n=gt(e),o=0,i=[];for(r in n)!U(Tr,r)&&U(n,r)&&i.push(r);for(;t.length>o;)U(n,r=t[o++])&&(~Nh(i,r)||i.push(r));return i},pr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ah=pr.concat("length","prototype"),Ph={f:Object.getOwnPropertyNames||function(e){return Bs(e,Ah)}},Rh={f:Object.getOwnPropertySymbols},jh=Nr("Reflect","ownKeys")||function(e){var t=Ph.f(Z(e)),r=Rh.f;return r?t.concat(r(e)):t},Ih=function(e,t){for(var r=jh(t),n=Te.f,o=xo.f,i=0;i<r.length;i++){var u=r[i];U(e,u)||n(e,u,o(t,u))}},Vh=/#|\.prototype\./,Ut=function(e,t){var r=Bh[$h(e)];return r==Mh||r!=Fh&&(typeof t=="function"?q(t):!!t)},$h=Ut.normalize=function(e){return String(e).replace(Vh,".").toLowerCase()},Bh=Ut.data={},Fh=Ut.NATIVE="N",Mh=Ut.POLYFILL="P",no=Ut,qh=xo.f,J=function(e,t){var r,n,o,i,u,l=e.target,s=e.global,d=e.stat;if(r=s?z:d?z[l]||Eo(l,{}):(z[l]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(u=qh(r,n))&&u.value:r[n],!no(s?n:l+(d?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Ih(i,o)}(e.sham||o&&o.sham)&&ue(i,"sham",!0),Ie(r,n,i,e)}},To=function(e,t){var r=[][e];return!!r&&q(function(){r.call(null,t||function(){throw 1},1)})},Dh=Object.defineProperty,Pn={},Mi=function(e){throw e},yt=function(e,t){if(U(Pn,e))return Pn[e];t||(t={});var r=[][e],n=!!U(t,"ACCESSORS")&&t.ACCESSORS,o=U(t,0)?t[0]:Mi,i=U(t,1)?t[1]:void 0;return Pn[e]=!!r&&!q(function(){if(n&&!le)return!0;var u={length:-1};n?Dh(u,1,{enumerable:!0,get:Mi}):u[1]=1,r.call(u,o,i)})},Gh=$s.indexOf,Fs=[].indexOf,qi=!!Fs&&1/[1].indexOf(1,-0)<0,Lh=To("indexOf"),Hh=yt("indexOf",{ACCESSORS:!0,1:0});function Xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Je(e,t,r){return r&&Uh(e,r),e}J({target:"Array",proto:!0,forced:qi||!Lh||!Hh},{indexOf:function(e){return qi?Fs.apply(this,arguments)||0:Gh(this,e,arguments.length>1?arguments[1]:void 0)}});(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"isInBrowser",value:function(){return typeof window<"u"}},{key:"isServer",value:function(){return typeof window>"u"}},{key:"getUA",value:function(){return e.isInBrowser()?window.navigator.userAgent.toLowerCase():""}},{key:"isMobile",value:function(){return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion)}},{key:"isOpera",value:function(){return navigator.userAgent.indexOf("Opera")!==-1}},{key:"isIE",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie")>0}},{key:"isIE9",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie 9.0")>0}},{key:"isEdge",value:function(){var t=e.getUA();return t!==""&&t.indexOf("edge/")>0}},{key:"isChrome",value:function(){var t=e.getUA();return t!==""&&/chrome\/\d+/.test(t)&&!e.isEdge()}},{key:"isPhantomJS",value:function(){var t=e.getUA();return t!==""&&/phantomjs/.test(t)}},{key:"isFirefox",value:function(){var t=e.getUA();return t!==""&&/firefox/.test(t)}}]),e})();var zh=[].join,Wh=_r!=Object,Kh=To("join",",");J({target:"Array",proto:!0,forced:Wh||!Kh},{join:function(e){return zh.call(gt(this),e===void 0?",":e)}});var et,hr,Ne=function(e){return Object(Re(e))},ft=Array.isArray||function(e){return ke(e)=="Array"},Ms=!!Object.getOwnPropertySymbols&&!q(function(){return!String(Symbol())}),Yh=Ms&&!Symbol.sham&&typeof Symbol.iterator=="symbol",tr=Vs("wks"),Rt=z.Symbol,Xh=Yh?Rt:Rt&&Rt.withoutSetter||ko,L=function(e){return U(tr,e)||(Ms&&U(Rt,e)?tr[e]=Rt[e]:tr[e]=Xh("Symbol."+e)),tr[e]},Jh=L("species"),Ar=function(e,t){var r;return ft(e)&&(typeof(r=e.constructor)!="function"||r!==Array&&!ft(r.prototype)?W(r)&&(r=r[Jh])===null&&(r=void 0):r=void 0),new(r===void 0?Array:r)(t===0?0:t)},pt=function(e,t,r){var n=Oo(t);n in e?Te.f(e,n,kr(0,r)):e[n]=r},Rn=Nr("navigator","userAgent")||"",Di=z.process,Gi=Di&&Di.versions,Li=Gi&&Gi.v8;Li?hr=(et=Li.split("."))[0]+et[1]:Rn&&(!(et=Rn.match(/Edge\/(\d+)/))||et[1]>=74)&&(et=Rn.match(/Chrome\/(\d+)/))&&(hr=et[1]);var vr=hr&&+hr,Zh=L("species"),No=function(e){return vr>=51||!q(function(){var t=[];return(t.constructor={})[Zh]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Qh=No("splice"),ev=yt("splice",{ACCESSORS:!0,0:0,1:2}),tv=Math.max,rv=Math.min;J({target:"Array",proto:!0,forced:!Qh||!ev},{splice:function(e,t){var r,n,o,i,u,l,s=Ne(this),d=ie(s.length),c=fr(e,d),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=d-c):(r=f-2,n=rv(tv(mt(t),0),d-c)),d+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=Ar(s,n),i=0;i<n;i++)(u=c+i)in s&&pt(o,i,s[u]);if(o.length=n,r<n){for(i=c;i<d-n;i++)l=i+r,(u=i+n)in s?s[l]=s[u]:delete s[l];for(i=d;i>d-n+r;i--)delete s[i-1]}else if(r>n)for(i=d-n;i>c;i--)l=i+r-1,(u=i+n-1)in s?s[l]=s[u]:delete s[l];for(i=0;i<r;i++)s[i+c]=arguments[i+2];return s.length=d-n+r,o}});var qs={};qs[L("toStringTag")]="z";var Ao=String(qs)==="[object z]",nv=L("toStringTag"),ov=ke((function(){return arguments})())=="Arguments",Ds=Ao?ke:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=Object(e),nv))=="string"?r:ov?ke(t):(n=ke(t))=="Object"&&typeof t.callee=="function"?"Arguments":n},av=Ao?{}.toString:function(){return"[object "+Ds(this)+"]"};Ao||Ie(Object.prototype,"toString",av,{unsafe:!0});var Gs=function(){var e=Z(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function Hi(e,t){return RegExp(e,t)}var jn,In,Ui={UNSUPPORTED_Y:q(function(){var e=Hi("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),BROKEN_CARET:q(function(){var e=Hi("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},gr=RegExp.prototype.exec,iv=String.prototype.replace,Ls=gr,Vn=(jn=/a/,In=/b*/g,gr.call(jn,"a"),gr.call(In,"a"),jn.lastIndex!==0||In.lastIndex!==0),zi=Ui.UNSUPPORTED_Y||Ui.BROKEN_CARET,$n=/()??/.exec("")[1]!==void 0;(Vn||$n||zi)&&(Ls=function(e){var t,r,n,o,i=this,u=zi&&i.sticky,l=Gs.call(i),s=i.source,d=0,c=e;return u&&((l=l.replace("y","")).indexOf("g")===-1&&(l+="g"),c=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&e[i.lastIndex-1]!==`
|
|
19
|
-
`)&&(s="(?: "+s+")",c=" "+c,d++),r=new RegExp("^(?:"+s+")",l))
|
|
20
|
-
\v\f\r \u2028\u2029\uFEFF`,mr="["+ao+"]",yv=RegExp("^"+mr+mr+"*"),bv=RegExp(mr+mr+"*$"),Cv=function(e){return function(t){var r=String(Re(t));return 1&e&&(r=r.replace(yv,"")),2&e&&(r=r.replace(bv,"")),r}},wv={trim:Cv(3)},Sv=wv.trim;J({target:"String",proto:!0,forced:(function(e){return q(function(){return!!ao[e]()||"
"[e]()!="
"||ao[e].name!==e})})("trim")},{trim:function(){return Sv(this)}});var Ov=No("slice"),xv=yt("slice",{ACCESSORS:!0,0:0,1:2}),Ev=L("species"),kv=[].slice,_v=Math.max;J({target:"Array",proto:!0,forced:!Ov||!xv},{slice:function(e,t){var r,n,o,i=gt(this),u=ie(i.length),l=fr(e,u),s=fr(t===void 0?u:t,u);if(ft(i)&&(typeof(r=i.constructor)!="function"||r!==Array&&!ft(r.prototype)?W(r)&&(r=r[Ev])===null&&(r=void 0):r=void 0,r===Array||r===void 0))return kv.call(i,l,s);for(n=new(r===void 0?Array:r)(_v(s-l,0)),o=0;l<s;l++,o++)l in i&&pt(n,o,i[l]);return n.length=o,n}});var Ro=Object.keys||function(e){return Bs(e,pr)},Tv=q(function(){Ro(1)});J({target:"Object",stat:!0,forced:Tv},{keys:function(e){return Ro(Ne(e))}});var Bn,Nv=function(e){if(Ws(e))throw TypeError("The method doesn't accept regular expressions");return e},Av=L("match"),Pv=xo.f,Xi="".startsWith,Rv=Math.min,Xs=(function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Av]=!1,"/./"[e](t)}catch{}}return!1})("startsWith"),jv=!(Xs||(Bn=Pv(String.prototype,"startsWith"),!Bn||Bn.writable));function Js(e){return(Js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}J({target:"String",proto:!0,forced:!jv&&!Xs},{startsWith:function(e){var t=String(Re(this));Nv(e);var r=ie(Rv(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return Xi?Xi.call(t,n,r):t.slice(r,r+n.length)===n}});var rt=function(e){return typeof e=="string"},nt=function(e){return e!==null&&Js(e)==="object"},Mt=(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"isWindow",value:function(t){return t===window}},{key:"addEventListener",value:function(t,r,n){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&r&&n&&t.addEventListener(r,n,o)}},{key:"removeEventListener",value:function(t,r,n){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&r&&n&&t.removeEventListener(r,n,o)}},{key:"triggerDragEvent",value:function(t,r){var n=!1,o=function(u){var l;(l=r.drag)===null||l===void 0||l.call(r,u)},i=function u(l){var s;e.removeEventListener(document,"mousemove",o),e.removeEventListener(document,"mouseup",u),document.onselectstart=null,document.ondragstart=null,n=!1,(s=r.end)===null||s===void 0||s.call(r,l)};e.addEventListener(t,"mousedown",function(u){var l;n||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},e.addEventListener(document,"mousemove",o),e.addEventListener(document,"mouseup",i),n=!0,(l=r.start)===null||l===void 0||l.call(r,u))})}},{key:"getBoundingClientRect",value:function(t){return t&&nt(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,r){return!!(t&&nt(t)&&rt(r)&&t.nodeType===1)&&t.classList.contains(r.trim())}},{key:"addClass",value:function(t,r){if(t&&nt(t)&&rt(r)&&t.nodeType===1&&(r=r.trim(),!e.hasClass(t,r))){var n=t.className;t.className=n?n+" "+r:r}}},{key:"removeClass",value:function(t,r){if(t&&nt(t)&&rt(r)&&t.nodeType===1&&typeof t.className=="string"){r=r.trim();for(var n=t.className.trim().split(" "),o=n.length-1;o>=0;o--)n[o]=n[o].trim(),n[o]&&n[o]!==r||n.splice(o,1);t.className=n.join(" ")}}},{key:"toggleClass",value:function(t,r,n){t&&nt(t)&&rt(r)&&t.nodeType===1&&t.classList.toggle(r,n)}},{key:"replaceClass",value:function(t,r,n){t&&nt(t)&&rt(r)&&rt(n)&&t.nodeType===1&&(r=r.trim(),n=n.trim(),e.removeClass(t,r),e.addClass(t,n))}},{key:"getScrollTop",value:function(t){var r="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(r,0)}},{key:"setScrollTop",value:function(t,r){"scrollTop"in t?t.scrollTop=r:t.scrollTo(t.scrollX,r)}},{key:"getRootScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},{key:"setRootScrollTop",value:function(t){e.setScrollTop(window,t),e.setScrollTop(document.body,t)}},{key:"getElementTop",value:function(t,r){if(e.isWindow(t))return 0;var n=r?e.getScrollTop(r):e.getRootScrollTop();return t.getBoundingClientRect().top+n}},{key:"getVisibleHeight",value:function(t){return e.isWindow(t)?t.innerHeight:t.getBoundingClientRect().height}},{key:"isHidden",value:function(t){if(!t)return!1;var r=window.getComputedStyle(t),n=r.display==="none",o=t.offsetParent===null&&r.position!=="fixed";return n||o}},{key:"triggerEvent",value:function(t,r){if("createEvent"in document){var n=document.createEvent("HTMLEvents");n.initEvent(r,!1,!0),t.dispatchEvent(n)}}},{key:"calcAngle",value:function(t,r){var n=t.getBoundingClientRect(),o=n.left+n.width/2,i=n.top+n.height/2,u=Math.abs(o-r.clientX),l=Math.abs(i-r.clientY),s=l/Math.sqrt(Math.pow(u,2)+Math.pow(l,2)),d=Math.acos(s),c=Math.floor(180/(Math.PI/d));return r.clientX>o&&r.clientY>i&&(c=180-c),r.clientX==o&&r.clientY>i&&(c=180),r.clientX>o&&r.clientY==i&&(c=90),r.clientX<o&&r.clientY>i&&(c=180+c),r.clientX<o&&r.clientY==i&&(c=270),r.clientX<o&&r.clientY<i&&(c=360-c),c}},{key:"querySelector",value:function(t,r){return r?r.querySelector(t):document.querySelector(t)}},{key:"createElement",value:function(t){for(var r=document.createElement(t),n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];for(var u=0;u<o.length;u++)o[u]&&r.classList.add(o[u]);return r}},{key:"appendChild",value:function(t){for(var r=0;r<(arguments.length<=1?0:arguments.length-1);r++)t.appendChild(r+1<1||arguments.length<=r+1?void 0:arguments[r+1])}},{key:"getWindow",value:function(t){if(t.toString()!=="[object Window]"){var r=t.ownerDocument;return r&&r.defaultView||window}return t}},{key:"isElement",value:function(t){return t instanceof this.getWindow(t).Element||t instanceof Element}},{key:"isHTMLElement",value:function(t){return t instanceof this.getWindow(t).HTMLElement||t instanceof HTMLElement}},{key:"isShadowRoot",value:function(t){return typeof ShadowRoot<"u"&&(t instanceof this.getWindow(t).ShadowRoot||t instanceof ShadowRoot)}},{key:"getWindowScroll",value:function(t){var r=this.getWindow(t);return{scrollLeft:r.pageXOffset||0,scrollTop:r.pageYOffset||0}}}]),e})(),Iv=Math.floor,Vv="".replace,$v=/\$([$&'`]|\d\d?|<[^>]*>)/g,Bv=/\$([$&'`]|\d\d?)/g,Fv=function(e,t,r,n,o,i){var u=r+e.length,l=n.length,s=Bv;return o!==void 0&&(o=Ne(o),s=$v),Vv.call(i,s,function(d,c){var f;switch(c.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(u);case"<":f=o[c.slice(1,-1)];break;default:var p=+c;if(p===0)return d;if(p>l){var h=Iv(p/10);return h===0?d:h<=l?n[h-1]===void 0?c.charAt(1):n[h-1]+c.charAt(1):d}f=n[p-1]}return f===void 0?"":f})},Mv=Math.max,qv=Math.min;zs("replace",2,function(e,t,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=n.REPLACE_KEEPS_$0,u=o?"$":"$0";return[function(l,s){var d=Re(this),c=l?.[e];return c!==void 0?c.call(l,d,s):t.call(String(d),l,s)},function(l,s){if(!o&&i||typeof s=="string"&&s.indexOf(u)===-1){var d=r(t,l,this,s);if(d.done)return d.value}var c=Z(l),f=String(this),p=typeof s=="function";p||(s=String(s));var h=c.global;if(h){var y=c.unicode;c.lastIndex=0}for(var b=[];;){var v=oo(c,f);if(v===null||(b.push(v),!h))break;String(v[0])===""&&(c.lastIndex=Ys(f,ie(c.lastIndex),y))}for(var g,m="",C=0,O=0;O<b.length;O++){v=b[O];for(var k=String(v[0]),E=Mv(qv(mt(v.index),f.length),0),R=[],B=1;B<v.length;B++)R.push((g=v[B])===void 0?g:String(g));var I=v.groups;if(p){var F=[k].concat(R,E,f);I!==void 0&&F.push(I);var S=String(s.apply(void 0,F))}else S=Fv(k,f,E,R,I,s);E>=C&&(m+=f.slice(C,E)+S,C=E+k.length)}return m+f.slice(C)}]});(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"camelize",value:function(t){return t.replace(/-(\w)/g,function(r,n){return n?n.toUpperCase():""})}},{key:"capitalize",value:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}]),e})();(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"_clone",value:function(){}}]),e})();var Zs=L("isConcatSpreadable"),Dv=vr>=51||!q(function(){var e=[];return e[Zs]=!1,e.concat()[0]!==e}),Gv=No("concat"),Lv=function(e){if(!W(e))return!1;var t=e[Zs];return t!==void 0?!!t:ft(e)};J({target:"Array",proto:!0,forced:!Dv||!Gv},{concat:function(e){var t,r,n,o,i,u=Ne(this),l=Ar(u,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(Lv(i=t===-1?u:arguments[t])){if(s+(o=ie(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&pt(l,s,i[r])}else{if(s>=9007199254740991)throw TypeError("Maximum allowed index exceeded");pt(l,s++,i)}return l.length=s,l}});var Fn,zt=function(e,t,r){if(Po(e),t===void 0)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,i){return e.call(t,n,o,i)}}return function(){return e.apply(t,arguments)}},Ji=[].push,Zi=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,u=e==7,l=e==5||i;return function(s,d,c,f){for(var p,h,y=Ne(s),b=_r(y),v=zt(d,c,3),g=ie(b.length),m=0,C=f||Ar,O=t?C(s,g):r||u?C(s,0):void 0;g>m;m++)if((l||m in b)&&(h=v(p=b[m],m,y),e))if(t)O[m]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:Ji.call(O,p)}else switch(e){case 4:return!1;case 7:Ji.call(O,p)}return i?-1:n||o?o:O}},Qs={find:Zi(5),findIndex:Zi(6)},Hv=le?Object.defineProperties:function(e,t){Z(e);for(var r,n=Ro(t),o=n.length,i=0;o>i;)Te.f(e,r=n[i++],t[r]);return e},Uv=Nr("document","documentElement"),eu=_o("IE_PROTO"),Mn=function(){},Qi=function(e){return"<script>"+e+"<\/script>"},ar=function(){try{Fn=document.domain&&new ActiveXObject("htmlfile")}catch{}var e,t;ar=Fn?(function(n){n.write(Qi("")),n.close();var o=n.parentWindow.Object;return n=null,o})(Fn):((t=Rs("iframe")).style.display="none",Uv.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Qi("document.F=Object")),e.close(),e.F);for(var r=pr.length;r--;)delete ar.prototype[pr[r]];return ar()};Tr[eu]=!0;var jo=Object.create||function(e,t){var r;return e!==null?(Mn.prototype=Z(e),r=new Mn,Mn.prototype=null,r[eu]=e):r=ar(),t===void 0?r:Hv(r,t)},io=L("unscopables"),lo=Array.prototype;lo[io]==null&&Te.f(lo,io,{configurable:!0,value:jo(null)});var at=function(e){lo[io][e]=!0},zv=Qs.find,el=!0,Wv=yt("find");"find"in[]&&Array(1).find(function(){el=!1}),J({target:"Array",proto:!0,forced:el||!Wv},{find:function(e){return zv(this,e,arguments.length>1?arguments[1]:void 0)}}),at("find");var Kv=Qs.findIndex,tl=!0,Yv=yt("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){tl=!1}),J({target:"Array",proto:!0,forced:tl||!Yv},{findIndex:function(e){return Kv(this,e,arguments.length>1?arguments[1]:void 0)}}),at("findIndex");var tu=function(e,t,r,n,o,i,u,l){for(var s,d=o,c=0,f=!!u&&zt(u,l,3);c<n;){if(c in r){if(s=f?f(r[c],c,t):r[c],i>0&&ft(s))d=tu(e,t,s,ie(s.length),d,i-1)-1;else{if(d>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[d]=s}d++}c++}return d},Xv=tu;J({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Ne(this),r=ie(t.length),n=Ar(t,0);return n.length=Xv(n,t,t,r,0,e===void 0?1:mt(e)),n}});var so=function(e){var t=e.return;if(t!==void 0)return Z(t.call(e)).value},Jv=function(e,t,r,n){try{return n?t(Z(r)[0],r[1]):t(r)}catch(o){throw so(e),o}},ht={},Zv=L("iterator"),Qv=Array.prototype,ru=function(e){return e!==void 0&&(ht.Array===e||Qv[Zv]===e)},eg=L("iterator"),nu=function(e){if(e!=null)return e[eg]||e["@@iterator"]||ht[Ds(e)]},ou=L("iterator"),au=!1;try{var tg=0,rl={next:function(){return{done:!!tg++}},return:function(){au=!0}};rl[ou]=function(){return this},Array.from(rl,function(){throw 2})}catch{}var iu=function(e,t){if(!au)return!1;var r=!1;try{var n={};n[ou]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},rg=!iu(function(e){Array.from(e)});J({target:"Array",stat:!0,forced:rg},{from:function(e){var t,r,n,o,i,u,l=Ne(e),s=typeof this=="function"?this:Array,d=arguments.length,c=d>1?arguments[1]:void 0,f=c!==void 0,p=nu(l),h=0;if(f&&(c=zt(c,d>2?arguments[2]:void 0,2)),p==null||s==Array&&ru(p))for(r=new s(t=ie(l.length));t>h;h++)u=f?c(l[h],h):l[h],pt(r,h,u);else for(i=(o=p.call(l)).next,r=new s;!(n=i.call(o)).done;h++)u=f?Jv(o,c,[n.value,h],!0):n.value,pt(r,h,u);return r.length=h,r}});var ng=function(e){return function(t,r,n,o){Po(r);var i=Ne(t),u=_r(i),l=ie(i.length),s=e?l-1:0,d=e?-1:1;if(n<2)for(;;){if(s in u){o=u[s],s+=d;break}if(s+=d,e?s<0:l<=s)throw TypeError("Reduce of empty array with no initial value")}for(;e?s>=0:l>s;s+=d)s in u&&(o=r(o,u[s],s,i));return o}},og={left:ng(!1)},ag=ke(z.process)=="process",ig=og.left,lg=To("reduce"),sg=yt("reduce",{1:0});J({target:"Array",proto:!0,forced:!lg||!sg||!ag&&vr>79&&vr<83},{reduce:function(e){return ig(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}}),at("flat");var Me,nl,ol,ug=!q(function(){return Object.isExtensible(Object.preventExtensions({}))}),lu=So(function(e){var t=Te.f,r=ko("meta"),n=0,o=Object.isExtensible||function(){return!0},i=function(l){t(l,r,{value:{objectID:"O"+ ++n,weakData:{}}})},u=e.exports={REQUIRED:!1,fastKey:function(l,s){if(!W(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!U(l,r)){if(!o(l))return"F";if(!s)return"E";i(l)}return l[r].objectID},getWeakData:function(l,s){if(!U(l,r)){if(!o(l))return!0;if(!s)return!1;i(l)}return l[r].weakData},onFreeze:function(l){return ug&&u.REQUIRED&&o(l)&&!U(l,r)&&i(l),l}};Tr[r]=!0}),Ot=function(e,t){this.stopped=e,this.result=t},al=function(e,t,r){var n,o,i,u,l,s,d,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),y=zt(t,c,1+f+h),b=function(g){return n&&so(n),new Ot(!0,g)},v=function(g){return f?(Z(g),h?y(g[0],g[1],b):y(g[0],g[1])):h?y(g,b):y(g)};if(p)n=e;else{if(typeof(o=nu(e))!="function")throw TypeError("Target is not iterable");if(ru(o)){for(i=0,u=ie(e.length);u>i;i++)if((l=v(e[i]))&&l instanceof Ot)return l;return new Ot(!1)}n=o.call(e)}for(s=n.next;!(d=s.call(n)).done;){try{l=v(d.value)}catch(g){throw so(n),g}if(typeof l=="object"&&l&&l instanceof Ot)return l}return new Ot(!1)},il=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e},cg=Te.f,ll=L("toStringTag"),uo=function(e,t,r){e&&!U(e=r?e:e.prototype,ll)&&cg(e,ll,{configurable:!0,value:t})},yr=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch{}return function(n,o){return Z(n),(function(i){if(!W(i)&&i!==null)throw TypeError("Can't set "+String(i)+" as a prototype")})(o),t?e.call(n,o):n.__proto__=o,n}})():void 0),sl=function(e,t,r){for(var n in t)Ie(e,n,t[n],r);return e},dg=!q(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ul=_o("IE_PROTO"),fg=Object.prototype,br=dg?Object.getPrototypeOf:function(e){return e=Ne(e),U(e,ul)?e[ul]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?fg:null},qn=L("iterator"),su=!1;[].keys&&("next"in(ol=[].keys())?(nl=br(br(ol)))!==Object.prototype&&(Me=nl):su=!0),(Me==null||q(function(){var e={};return Me[qn].call(e)!==e}))&&(Me={}),U(Me,qn)||ue(Me,qn,function(){return this});var Io={IteratorPrototype:Me,BUGGY_SAFARI_ITERATORS:su},pg=Io.IteratorPrototype,hg=function(){return this},Dn=Io.IteratorPrototype,rr=Io.BUGGY_SAFARI_ITERATORS,xt=L("iterator"),vg=function(){return this},Vo=function(e,t,r,n,o,i,u){(function(g,m,C){var O=m+" Iterator";g.prototype=jo(pg,{next:kr(1,C)}),uo(g,O,!1),ht[O]=hg})(r,t,n);var l,s,d,c=function(g){if(g===o&&b)return b;if(!rr&&g in h)return h[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,y=h[xt]||h["@@iterator"]||o&&h[o],b=!rr&&y||c(o),v=t=="Array"&&h.entries||y;if(v&&(l=br(v.call(new e)),Dn!==Object.prototype&&l.next&&(br(l)!==Dn&&(yr?yr(l,Dn):typeof l[xt]!="function"&&ue(l,xt,vg)),uo(l,f,!0))),o=="values"&&y&&y.name!=="values"&&(p=!0,b=function(){return y.call(this)}),h[xt]!==b&&ue(h,xt,b),ht[t]=b,o)if(s={values:c("values"),keys:i?b:c("keys"),entries:c("entries")},u)for(d in s)(rr||p||!(d in h))&&Ie(h,d,s[d]);else J({target:t,proto:!0,forced:rr||p},s);return s},cl=L("species"),gg=Te.f,dl=lu.fastKey,fl=je.set,Gn=je.getterFor;(function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",u=z[e],l=u&&u.prototype,s=u,d={},c=function(v){var g=l[v];Ie(l,v,v=="add"?function(m){return g.call(this,m===0?0:m),this}:v=="delete"?function(m){return!(o&&!W(m))&&g.call(this,m===0?0:m)}:v=="get"?function(m){return o&&!W(m)?void 0:g.call(this,m===0?0:m)}:v=="has"?function(m){return!(o&&!W(m))&&g.call(this,m===0?0:m)}:function(m,C){return g.call(this,m===0?0:m,C),this})};if(no(e,typeof u!="function"||!(o||l.forEach&&!q(function(){new u().entries().next()}))))s=r.getConstructor(t,e,n,i),lu.REQUIRED=!0;else if(no(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,h=q(function(){f.has(1)}),y=iu(function(v){new u(v)}),b=!o&&q(function(){for(var v=new u,g=5;g--;)v[i](g,g);return!v.has(-0)});y||((s=t(function(v,g){il(v,s,e);var m=(function(C,O,k){var E,R;return yr&&typeof(E=O.constructor)=="function"&&E!==k&&W(R=E.prototype)&&R!==k.prototype&&yr(C,R),C})(new u,v,s);return g!=null&&al(g,m[i],{that:m,AS_ENTRIES:n}),m})).prototype=l,l.constructor=s),(h||b)&&(c("delete"),c("has"),n&&c("get")),(b||p)&&c(i),o&&l.clear&&delete l.clear}d[e]=s,J({global:!0,forced:s!=u},d),uo(s,e),o||r.setStrong(s,e,n)})("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},{getConstructor:function(e,t,r,n){var o=e(function(s,d){il(s,o,t),fl(s,{type:t,index:jo(null),first:void 0,last:void 0,size:0}),le||(s.size=0),d!=null&&al(d,s[n],{that:s,AS_ENTRIES:r})}),i=Gn(t),u=function(s,d,c){var f,p,h=i(s),y=l(s,d);return y?y.value=c:(h.last=y={index:p=dl(d,!0),key:d,value:c,previous:f=h.last,next:void 0,removed:!1},h.first||(h.first=y),f&&(f.next=y),le?h.size++:s.size++,p!=="F"&&(h.index[p]=y)),s},l=function(s,d){var c,f=i(s),p=dl(d);if(p!=="F")return f.index[p];for(c=f.first;c;c=c.next)if(c.key==d)return c};return sl(o.prototype,{clear:function(){for(var s=i(this),d=s.index,c=s.first;c;)c.removed=!0,c.previous&&(c.previous=c.previous.next=void 0),delete d[c.index],c=c.next;s.first=s.last=void 0,le?s.size=0:this.size=0},delete:function(s){var d=this,c=i(d),f=l(d,s);if(f){var p=f.next,h=f.previous;delete c.index[f.index],f.removed=!0,h&&(h.next=p),p&&(p.previous=h),c.first==f&&(c.first=p),c.last==f&&(c.last=h),le?c.size--:d.size--}return!!f},forEach:function(s){for(var d,c=i(this),f=zt(s,arguments.length>1?arguments[1]:void 0,3);d=d?d.next:c.first;)for(f(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(s){return!!l(this,s)}}),sl(o.prototype,r?{get:function(s){var d=l(this,s);return d&&d.value},set:function(s,d){return u(this,s===0?0:s,d)}}:{add:function(s){return u(this,s=s===0?0:s,s)}}),le&&gg(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=Gn(t),i=Gn(n);Vo(e,t,function(u,l){fl(this,{type:n,target:u,state:o(u),kind:l,last:void 0})},function(){for(var u=i(this),l=u.kind,s=u.last;s&&s.removed;)s=s.previous;return u.target&&(u.last=s=s?s.next:u.state.first)?l=="keys"?{value:s.key,done:!1}:l=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(u.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),(function(u){var l=Nr(u),s=Te.f;le&&l&&!l[cl]&&s(l,cl,{configurable:!0,get:function(){return this}})})(t)}});var mg=Ks.charAt,yg=je.set,bg=je.getterFor("String Iterator");Vo(String,"String",function(e){yg(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=bg(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=mg(r,n),t.index+=e.length,{value:e,done:!1})});var pl={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Cg=je.set,wg=je.getterFor("Array Iterator"),Tt=Vo(Array,"Array",function(e,t){Cg(this,{type:"Array Iterator",target:gt(e),index:0,kind:t})},function(){var e=wg(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");ht.Arguments=ht.Array,at("keys"),at("values"),at("entries");var Ln=L("iterator"),hl=L("toStringTag"),Hn=Tt.values;for(var Un in pl){var vl=z[Un],Oe=vl&&vl.prototype;if(Oe){if(Oe[Ln]!==Hn)try{ue(Oe,Ln,Hn)}catch{Oe[Ln]=Hn}if(Oe[hl]||ue(Oe,hl,Un),pl[Un]){for(var ot in Tt)if(Oe[ot]!==Tt[ot])try{ue(Oe,ot,Tt[ot])}catch{Oe[ot]=Tt[ot]}}}}(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"deduplicate",value:function(t){return Array.from(new Set(t))}},{key:"flat",value:function(t){return t.reduce(function(r,n){var o=Array.isArray(n)?e.flat(n):n;return r.concat(o)},[])}},{key:"find",value:function(t,r){return t.find(r)}},{key:"findIndex",value:function(t,r){return t.findIndex(r)}}]),e})();(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"today",value:function(){return new Date}}]),e})();(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"range",value:function(t,r,n){return Math.min(Math.max(t,r),n)}},{key:"clamp",value:function(t,r,n){return r<n?t<r?r:t>n?n:t:t<n?n:t>r?r:t}}]),e})();var Sg=Object.defineProperty,Og=(e,t,r)=>t in e?Sg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y=(e,t,r)=>(Og(e,typeof t!="symbol"?t+"":t,r),r);const H=e=>Math.round(e*100)/100;class G{constructor(t){Y(this,"instance"),Y(this,"alphaValue",0),Y(this,"redValue",0),Y(this,"greenValue",0),Y(this,"blueValue",0),Y(this,"hueValue",0),Y(this,"saturationValue",0),Y(this,"brightnessValue",0),Y(this,"hslSaturationValue",0),Y(this,"lightnessValue",0),Y(this,"initAlpha",()=>{const r=this.instance.getAlpha();this.alphaValue=Math.min(1,r)*100}),Y(this,"initLightness",()=>{const{s:r,l:n}=this.instance.toHsl();this.hslSaturationValue=H(r),this.lightnessValue=H(n)}),Y(this,"initRgb",()=>{const{r,g:n,b:o}=this.instance.toRgb();this.redValue=H(r),this.greenValue=H(n),this.blueValue=H(o)}),Y(this,"initHsb",()=>{const{h:r,s:n,v:o}=this.instance.toHsv();this.hueValue=Math.min(360,Math.ceil(r)),this.saturationValue=H(n),this.brightnessValue=H(o)}),Y(this,"toHexString",()=>this.instance.toHexString()),Y(this,"toRgbString",()=>this.instance.toRgbString()),this.instance=x(t),this.initRgb(),this.initHsb(),this.initLightness(),this.initAlpha()}toString(t){return this.instance.toString(t)}get hex(){return this.instance.toHex()}set hex(t){this.instance=x(t),this.initHsb(),this.initRgb(),this.initAlpha(),this.initLightness()}set hue(t){this.saturation===0&&this.brightness===0&&(this.saturationValue=1,this.brightnessValue=1),this.instance=x({h:H(t),s:this.saturation,v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.hueValue=H(t)}get hue(){return this.hueValue}set saturation(t){this.instance=x({h:this.hue,s:H(t),v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.saturationValue=H(t)}get saturation(){return this.saturationValue}set brightness(t){this.instance=x({h:this.hue,s:this.saturation,v:H(t),a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.brightnessValue=H(t)}get brightness(){return this.brightnessValue}set lightness(t){this.instance=x({h:this.hue,s:this.hslSaturationValue,l:H(t),a:this.alphaValue/100}),this.initRgb(),this.initHsb(),this.lightnessValue=H(t)}get lightness(){return this.lightnessValue}set red(t){const r=this.instance.toRgb();this.instance=x({...r,r:H(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.redValue=H(t)}get red(){return this.redValue}set green(t){const r=this.instance.toRgb();this.instance=x({...r,g:H(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.greenValue=H(t)}get green(){return this.greenValue}set blue(t){const r=this.instance.toRgb();this.instance=x({...r,b:H(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.blueValue=H(t)}get blue(){return this.blueValue}set alpha(t){this.instance.setAlpha(t/100),this.alphaValue=t}get alpha(){return this.alphaValue}get RGB(){return[this.red,this.green,this.blue,parseFloat((this.alpha/100).toFixed(2))]}get HSB(){return[this.hue,this.saturation,this.brightness,parseFloat((this.alpha/100).toFixed(2))]}get HSL(){return[this.hue,this.hslSaturationValue,this.lightness,parseFloat((this.alpha/100).toFixed(2))]}}function gl(e,t,r,n){return`rgba(${[e,t,r,n/100].join(",")})`}const zn=(e,t,r)=>t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e,$o="color-history",Bo=8,fe=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},xg=a.defineComponent({name:"Alpha",props:{color:P.instanceOf(G),size:P.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=a.ref(null),n=a.ref(null);let o=e.color||new G;const i=a.reactive({red:o.red,green:o.green,blue:o.blue,alpha:o.alpha});a.watch(()=>e.color,f=>{f&&(o=f,vt.merge(i,{red:f.red,green:f.green,blue:f.blue,alpha:f.alpha}))},{deep:!0});const u=a.computed(()=>{const f=gl(i.red,i.green,i.blue,0),p=gl(i.red,i.green,i.blue,100);return{background:`linear-gradient(to right, ${f} , ${p})`}}),l=()=>{if(r.value&&n.value){const f=i.alpha/100,p=r.value.getBoundingClientRect(),h=n.value.offsetWidth;return Math.round(f*(p.width-h)+h/2)}return 0},s=a.computed(()=>({left:l()+"px",top:0})),d=f=>{f.target!==r.value&&c(f)},c=f=>{if(f.stopPropagation(),r.value&&n.value){const p=r.value.getBoundingClientRect(),h=n.value.offsetWidth;let y=f.clientX-p.left;y=Math.max(h/2,y),y=Math.min(y,p.width-h/2);const b=Math.round((y-h/2)/(p.width-h)*100);o.alpha=b,i.alpha=b,t("change",b)}};return ze(()=>{const f={drag:p=>{c(p)},end:p=>{c(p)}};r.value&&n.value&&Mt.triggerDragEvent(r.value,f)}),{barElement:r,cursorElement:n,getCursorStyle:s,getBackgroundStyle:u,onClickSider:d}}}),Eg=e=>(a.pushScopeId("data-v-18925ba6"),e=e(),a.popScopeId(),e),kg=Eg(()=>a.createElementVNode("div",{class:"vc-alpha-slider__bar-handle"},null,-1)),_g=[kg];function Tg(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-alpha-slider","transparent",{"small-slider":e.size==="small"}])},[a.createElementVNode("div",{ref:"barElement",class:"vc-alpha-slider__bar",style:a.normalizeStyle(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickSider&&e.onClickSider(...u))},[a.createElementVNode("div",{class:a.normalizeClass(["vc-alpha-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},_g,6)],4)],2)}const Fo=fe(xg,[["render",Tg],["__scopeId","data-v-18925ba6"]]),Ng=[["#fcc02e","#f67c01","#e64a19","#d81b43","#8e24aa","#512da7","#1f87e8","#008781","#05a045"],["#fed835","#fb8c00","#f5511e","#eb1d4e","#9c28b1","#5d35b0","#2097f3","#029688","#4cb050"],["#ffeb3c","#ffa727","#fe5722","#eb4165","#aa47bc","#673bb7","#42a5f6","#26a59a","#83c683"],["#fff176","#ffb74e","#ff8a66","#f1627e","#b968c7","#7986cc","#64b5f6","#80cbc4","#a5d6a7"],["#fff59c","#ffcc80","#ffab91","#fb879e","#cf93d9","#9ea8db","#90caf8","#b2dfdc","#c8e6ca"],["transparent","#ffffff","#dedede","#a9a9a9","#4b4b4b","#353535","#212121","#000000","advance"]],Ag=a.defineComponent({name:"Palette",emits:["change"],setup(e,{emit:t}){return{palettes:Ng,computedBgStyle:r=>r==="transparent"?r:r==="advance"?{}:{background:x(r).toRgbString()},onColorChange:r=>{t("change",r)}}}}),Pg={class:"vc-compact"},Rg=["onClick"];function jg(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",Pg,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.palettes,(u,l)=>(a.openBlock(),a.createElementBlock("div",{key:l,class:"vc-compact__row"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u,(s,d)=>(a.openBlock(),a.createElementBlock("div",{key:d,class:"vc-compact__color-cube--wrap",onClick:c=>e.onColorChange(s)},[a.createElementVNode("div",{class:a.normalizeClass(["vc-compact__color_cube",{advance:s==="advance",transparent:s==="transparent"}]),style:a.normalizeStyle(e.computedBgStyle(s))},null,6)],8,Rg))),128))]))),128))])}const uu=fe(Ag,[["render",jg],["__scopeId","data-v-b969fd48"]]),Ig=a.defineComponent({name:"Board",props:{color:P.instanceOf(G),round:P.bool.def(!1),hide:P.bool.def(!0)},emits:["change"],setup(e,{emit:t}){var r,n,o;const i=a.getCurrentInstance(),u={h:((r=e.color)==null?void 0:r.hue)||0,s:1,v:1},l=new G(u).toHexString(),s=a.reactive({hueColor:l,saturation:((n=e.color)==null?void 0:n.saturation)||0,brightness:((o=e.color)==null?void 0:o.brightness)||0}),d=a.ref(0),c=a.ref(0),f=a.ref(),p=a.computed(()=>({top:d.value+"px",left:c.value+"px"})),h=()=>{if(i){const C=i.vnode.el;c.value=s.saturation*C?.clientWidth,d.value=(1-s.brightness)*C?.clientHeight}};let y=!1;const b=C=>{y=!0,m(C)},v=C=>{y&&m(C)},g=()=>{y=!1},m=C=>{if(i){const O=i.vnode.el,k=O?.getBoundingClientRect();let E=C.clientX-k.left,R=C.clientY-k.top;E=zn(E,0,k.width),R=zn(R,0,k.height);const B=E/k.width,I=zn(-(R/k.height)+1,0,1);c.value=E,d.value=R,s.saturation=B,s.brightness=I,t("change",B,I)}};return ze(()=>{i&&i.vnode.el&&f.value&&a.nextTick(()=>{h()})}),X(()=>e.color,C=>{vt.merge(s,{hueColor:new G({h:C.hue,s:1,v:1}).toHexString(),saturation:C.saturation,brightness:C.brightness}),h()},{deep:!0}),{state:s,cursorElement:f,getCursorStyle:p,onClickBoard:b,onDrag:v,onDragEnd:g}}}),Mo=e=>(a.pushScopeId("data-v-7f0cdcdf"),e=e(),a.popScopeId(),e),Vg=Mo(()=>a.createElementVNode("div",{class:"vc-saturation__white"},null,-1)),$g=Mo(()=>a.createElementVNode("div",{class:"vc-saturation__black"},null,-1)),Bg=Mo(()=>a.createElementVNode("div",null,null,-1)),Fg=[Bg];function Mg(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",{ref:"boardElement",class:a.normalizeClass(["vc-saturation",{"vc-saturation__chrome":e.round,"vc-saturation__hidden":e.hide}]),style:a.normalizeStyle({backgroundColor:e.state.hueColor}),onMousedown:t[0]||(t[0]=(...u)=>e.onClickBoard&&e.onClickBoard(...u)),onMousemove:t[1]||(t[1]=(...u)=>e.onDrag&&e.onDrag(...u)),onMouseup:t[2]||(t[2]=(...u)=>e.onDragEnd&&e.onDragEnd(...u))},[Vg,$g,a.createElementVNode("div",{class:"vc-saturation__cursor",ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},Fg,4)],38)}const qo=fe(Ig,[["render",Mg],["__scopeId","data-v-7f0cdcdf"]]),qg=a.defineComponent({name:"Hue",props:{color:P.instanceOf(G),size:P.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=a.ref(null),n=a.ref(null);let o=e.color||new G;const i=a.reactive({hue:o.hue||0});a.watch(()=>e.color,c=>{c&&(o=c,vt.merge(i,{hue:o.hue}))},{deep:!0});const u=()=>{if(r.value&&n.value){const c=r.value.getBoundingClientRect(),f=n.value.offsetWidth;return i.hue===360?c.width-f/2:i.hue%360*(c.width-f)/360+f/2}return 0},l=a.computed(()=>({left:u()+"px",top:0})),s=c=>{c.target!==r.value&&d(c)},d=c=>{if(c.stopPropagation(),r.value&&n.value){const f=r.value.getBoundingClientRect(),p=n.value.offsetWidth;let h=c.clientX-f.left;h=Math.min(h,f.width-p/2),h=Math.max(p/2,h);const y=Math.round((h-p/2)/(f.width-p)*360);o.hue=y,i.hue=y,t("change",y)}};return ze(()=>{const c={drag:f=>{d(f)},end:f=>{d(f)}};r.value&&n.value&&Mt.triggerDragEvent(r.value,c)}),{barElement:r,cursorElement:n,getCursorStyle:l,onClickSider:s}}}),Dg=e=>(a.pushScopeId("data-v-e1a08576"),e=e(),a.popScopeId(),e),Gg=Dg(()=>a.createElementVNode("div",{class:"vc-hue-slider__bar-handle"},null,-1)),Lg=[Gg];function Hg(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-hue-slider",{"small-slider":e.size==="small"}])},[a.createElementVNode("div",{ref:"barElement",class:"vc-hue-slider__bar",onClick:t[0]||(t[0]=(...u)=>e.onClickSider&&e.onClickSider(...u))},[a.createElementVNode("div",{class:a.normalizeClass(["vc-hue-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},Lg,6)],512)],2)}const Do=fe(qg,[["render",Hg],["__scopeId","data-v-e1a08576"]]),Ug=a.defineComponent({name:"Lightness",props:{color:P.instanceOf(G),size:P.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=a.ref(null),n=a.ref(null);let o=e.color||new G;const[i,u,l]=o.HSL,s=a.reactive({hue:i,saturation:u,lightness:l});a.watch(()=>e.color,y=>{if(y){o=y;const[b,v,g]=o.HSL;vt.merge(s,{hue:b,saturation:v,lightness:g})}},{deep:!0});const d=a.computed(()=>{const y=x({h:s.hue,s:s.saturation,l:.8}).toPercentageRgbString(),b=x({h:s.hue,s:s.saturation,l:.6}).toPercentageRgbString(),v=x({h:s.hue,s:s.saturation,l:.4}).toPercentageRgbString(),g=x({h:s.hue,s:s.saturation,l:.2}).toPercentageRgbString();return{background:[`linear-gradient(to right, rgb(255, 255, 255), ${y}, ${b}, ${v}, ${g}, rgb(0, 0, 0))`,`-webkit-linear-gradient(left, rgb(255, 255, 255), ${y}, ${b}, ${v}, ${g}, rgb(0, 0, 0))`,`-moz-linear-gradient(left, rgb(255, 255, 255), ${y}, ${b}, ${v}, ${g}, rgb(0, 0, 0))`,`-ms-linear-gradient(left, rgb(255, 255, 255), ${y}, ${b}, ${v}, ${g}, rgb(0, 0, 0))`]}}),c=()=>{if(r.value&&n.value){const y=s.lightness,b=r.value.getBoundingClientRect(),v=n.value.offsetWidth;return(1-y)*(b.width-v)+v/2}return 0},f=a.computed(()=>({left:c()+"px",top:0})),p=y=>{y.target!==r.value&&h(y)},h=y=>{if(y.stopPropagation(),r.value&&n.value){const b=r.value.getBoundingClientRect(),v=n.value.offsetWidth;let g=y.clientX-b.left;g=Math.max(v/2,g),g=Math.min(g,b.width-v/2);const m=1-(g-v/2)/(b.width-v);o.lightness=m,t("change",m)}};return ze(()=>{const y={drag:b=>{h(b)},end:b=>{h(b)}};r.value&&n.value&&Mt.triggerDragEvent(r.value,y)}),{barElement:r,cursorElement:n,getCursorStyle:f,getBackgroundStyle:d,onClickSider:p}}}),zg=e=>(a.pushScopeId("data-v-94a50a9e"),e=e(),a.popScopeId(),e),Wg=zg(()=>a.createElementVNode("div",{class:"vc-lightness-slider__bar-handle"},null,-1)),Kg=[Wg];function Yg(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-lightness-slider",{"small-slider":e.size==="small"}])},[a.createElementVNode("div",{ref:"barElement",class:"vc-lightness-slider__bar",style:a.normalizeStyle(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickSider&&e.onClickSider(...u))},[a.createElementVNode("div",{class:a.normalizeClass(["vc-lightness-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},Kg,6)],4)],2)}const cu=fe(Ug,[["render",Yg],["__scopeId","data-v-94a50a9e"]]),Xg=a.defineComponent({name:"History",props:{colors:P.arrayOf(String).def(()=>[]),round:P.bool.def(!1)},emits:["change"],setup(e,{emit:t}){return{onColorSelect:r=>{t("change",r)}}}}),Jg={key:0,class:"vc-colorPicker__record"},Zg={class:"color-list"},Qg=["onClick"];function em(e,t,r,n,o,i){return e.colors&&e.colors.length>0?(a.openBlock(),a.createElementBlock("div",Jg,[a.createElementVNode("div",Zg,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.colors,(u,l)=>(a.openBlock(),a.createElementBlock("div",{key:l,class:a.normalizeClass(["color-item","transparent",{"color-item__round":e.round}]),onClick:s=>e.onColorSelect(u)},[a.createElementVNode("div",{class:"color-item__display",style:a.normalizeStyle({backgroundColor:u})},null,4)],10,Qg))),128))])])):a.createCommentVNode("",!0)}const Go=fe(Xg,[["render",em],["__scopeId","data-v-0f657238"]]),tm=a.defineComponent({name:"Display",props:{color:P.instanceOf(G),disableAlpha:P.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){var r,n,o,i;const{copy:u,copied:l,isSupported:s}=Td(),d=a.ref("hex"),c=a.reactive({color:e.color,hex:(r=e.color)==null?void 0:r.hex,alpha:Math.round(((n=e.color)==null?void 0:n.alpha)||100),rgba:(o=e.color)==null?void 0:o.RGB,previewBgColor:(i=e.color)==null?void 0:i.toRgbString()}),f=a.computed(()=>({background:c.previewBgColor})),p=()=>{d.value=d.value==="rgba"?"hex":"rgba"},h=Ee(g=>{if(!g.target.value)return;let m=parseInt(g.target.value.replace("%",""));m>100&&(g.target.value="100",m=100),m<0&&(g.target.value="0",m=0),isNaN(m)&&(g.target.value="100",m=100),!isNaN(m)&&c.color&&(c.color.alpha=m),t("change",c.color)},300),y=Ee((g,m)=>{if(c.color){if(d.value==="hex"){const C=g.target.value.replace("#","");x(C).isValid()?[3,4].includes(C.length)&&(c.color.hex=C):c.color.hex="000000",t("change",c.color)}else if(d.value==="rgba"&&m===3&&g.target.value.toString()==="0."&&c.rgba){c.rgba[m]=g.target.value;const[C,O,k,E]=c.rgba;c.color.hex=x({r:C,g:O,b:k}).toHex(),c.color.alpha=Math.round(E*100),t("change",c.color)}}},100),b=Ee((g,m)=>{if(g.target.value){if(d.value==="hex"){const C=g.target.value.replace("#","");x(C).isValid()&&c.color&&[6,8].includes(C.length)&&(c.color.hex=C)}else if(m!==void 0&&c.rgba&&c.color){if(g.target.value<0&&(g.target.value=0),m===3&&((g.target.value>1||isNaN(g.target.value))&&(g.target.value=1),g.target.value.toString()==="0."))return;m<3&&g.target.value>255&&(g.target.value=255),c.rgba[m]=g.target.value;const[C,O,k,E]=c.rgba;c.color.hex=x({r:C,g:O,b:k}).toHex(),c.color.alpha=Math.round(E*100)}t("change",c.color)}},300),v=()=>{if(s&&c.color){const g=d.value==="hex"?c.color.toString(c.color.alpha===100?"hex6":"hex8"):c.color.toRgbString();u(g||"")}};return X(()=>e.color,g=>{g&&(c.color=g,c.alpha=Math.round(c.color.alpha),c.hex=c.color.hex,c.rgba=c.color.RGB)},{deep:!0}),X(()=>c.color,()=>{c.color&&(c.previewBgColor=c.color.toRgbString())},{deep:!0}),{state:c,getBgColorStyle:f,inputType:d,copied:l,onInputTypeChange:p,onAlphaBlur:h,onInputChange:b,onBlurChange:y,onCopyColorStr:v}}}),rm={class:"vc-display"},nm={class:"vc-current-color vc-transparent"},om={key:0,class:"copy-text"},am={key:0,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},im={class:"vc-color-input"},lm={key:0,class:"vc-alpha-input"},sm=["value"],um={key:1,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},cm=["value","onInput","onBlur"];function dm(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",rm,[a.createElementVNode("div",nm,[a.createElementVNode("div",{class:"color-cube",style:a.normalizeStyle(e.getBgColorStyle),onClick:t[0]||(t[0]=(...u)=>e.onCopyColorStr&&e.onCopyColorStr(...u))},[e.copied?(a.openBlock(),a.createElementBlock("span",om,"Copied!")):a.createCommentVNode("",!0)],4)]),e.inputType==="hex"?(a.openBlock(),a.createElementBlock("div",am,[a.createElementVNode("div",im,[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=u=>e.state.hex=u),maxlength:"8",onInput:t[2]||(t[2]=(...u)=>e.onInputChange&&e.onInputChange(...u)),onBlur:t[3]||(t[3]=(...u)=>e.onBlurChange&&e.onBlurChange(...u))},null,544),[[a.vModelText,e.state.hex]])]),e.disableAlpha?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",lm,[a.createElementVNode("input",{class:"vc-alpha-input__inner",value:e.state.alpha,onInput:t[4]||(t[4]=(...u)=>e.onAlphaBlur&&e.onAlphaBlur(...u))},null,40,sm),a.createTextVNode("% ")]))])):e.state.rgba?(a.openBlock(),a.createElementBlock("div",um,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.state.rgba,(u,l)=>(a.openBlock(),a.createElementBlock("div",{class:"vc-color-input",key:l},[a.createElementVNode("input",{value:u,onInput:s=>e.onInputChange(s,l),onBlur:s=>e.onBlurChange(s,l)},null,40,cm)]))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"vc-input-toggle",onClick:t[5]||(t[5]=(...u)=>e.onInputTypeChange&&e.onInputTypeChange(...u))},a.toDisplayString(e.inputType),1)])}const Lo=fe(tm,[["render",dm],["__scopeId","data-v-7334ac20"]]),fm=a.defineComponent({name:"FkColorPicker",components:{Display:Lo,Alpha:Fo,Palette:uu,Board:qo,Hue:Do,Lightness:cu,History:Go},props:{color:P.instanceOf(G),disableHistory:P.bool.def(!1),roundHistory:P.bool.def(!1),disableAlpha:P.bool.def(!1)},emits:["update:color","change","advanceChange"],setup(e,{emit:t}){const r=e.color||new G,n=a.reactive({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=a.ref(!1),i=a.computed(()=>({background:n.rgb})),u=()=>{o.value=!1,t("advanceChange",!1)},l=fo($o,[],{}),s=Ee(()=>{if(e.disableHistory)return;const b=n.color.toRgbString();if(l.value=l.value.filter(v=>!x.equals(v,b)),!l.value.includes(b)){for(;l.value.length>Bo;)l.value.pop();l.value.unshift(b)}},500),d=b=>{b==="advance"?(o.value=!0,t("advanceChange",!0)):(n.color.hex=b,t("advanceChange",!1))},c=b=>{n.color.alpha=b},f=b=>{n.color.hue=b},p=(b,v)=>{n.color.saturation=b,n.color.brightness=v},h=b=>{n.color.lightness=b},y=b=>{const v=b.target.value.replace("#","");x(v).isValid()&&(n.color.hex=v)};return X(()=>e.color,b=>{b&&(n.color=b)},{deep:!0}),X(()=>n.color,()=>{n.hex=n.color.hex,n.rgb=n.color.toRgbString(),s(),t("update:color",n.color),t("change",n.color)},{deep:!0}),{state:n,advancePanelShow:o,onBack:u,onCompactChange:d,onAlphaChange:c,onHueChange:f,onBoardChange:p,onLightChange:h,onInputChange:y,previewStyle:i,historyColors:l}}}),pm=e=>(a.pushScopeId("data-v-48e3c224"),e=e(),a.popScopeId(),e),hm={class:"vc-fk-colorPicker"},vm={class:"vc-fk-colorPicker__inner"},gm={class:"vc-fk-colorPicker__header"},mm=pm(()=>a.createElementVNode("div",{class:"back"},null,-1)),ym=[mm];function bm(e,t,r,n,o,i){const u=a.resolveComponent("Palette"),l=a.resolveComponent("Board"),s=a.resolveComponent("Hue"),d=a.resolveComponent("Lightness"),c=a.resolveComponent("Alpha"),f=a.resolveComponent("Display"),p=a.resolveComponent("History");return a.openBlock(),a.createElementBlock("div",hm,[a.createElementVNode("div",vm,[a.createElementVNode("div",gm,[e.advancePanelShow?(a.openBlock(),a.createElementBlock("span",{key:0,style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...h)=>e.onBack&&e.onBack(...h))},ym)):a.createCommentVNode("",!0)]),e.advancePanelShow?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(u,{key:0,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?(a.openBlock(),a.createBlock(l,{key:1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"])):a.createCommentVNode("",!0),e.advancePanelShow?(a.openBlock(),a.createBlock(s,{key:2,color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"])):a.createCommentVNode("",!0),e.advancePanelShow?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(d,{key:3,color:e.state.color,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(c,{key:4,color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"])),a.createVNode(f,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(p,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const ml=fe(fm,[["render",bm],["__scopeId","data-v-48e3c224"]]),Cm=a.defineComponent({name:"ChromeColorPicker",components:{Display:Lo,Alpha:Fo,Board:qo,Hue:Do,History:Go},props:{color:P.instanceOf(G),disableHistory:P.bool.def(!1),roundHistory:P.bool.def(!1),disableAlpha:P.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){const r=e.color||new G,n=a.reactive({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=a.computed(()=>({background:n.rgb})),i=fo($o,[],{}),u=Ee(()=>{if(e.disableHistory)return;const p=n.color.toRgbString();if(i.value=i.value.filter(h=>!x.equals(h,p)),!i.value.includes(p)){for(;i.value.length>Bo;)i.value.pop();i.value.unshift(p)}},500),l=p=>{n.color.alpha=p},s=p=>{n.color.hue=p},d=p=>{p.hex!==void 0&&(n.color.hex=p.hex),p.alpha!==void 0&&(n.color.alpha=p.alpha)},c=(p,h)=>{n.color.saturation=p,n.color.brightness=h},f=p=>{p!=="advance"&&(n.color.hex=p)};return X(()=>e.color,p=>{p&&(n.color=p)},{deep:!0}),X(()=>n.color,()=>{n.hex=n.color.hex,n.rgb=n.color.toRgbString(),u(),t("update:color",n.color),t("change",n.color)},{deep:!0}),{state:n,previewStyle:o,historyColors:i,onAlphaChange:l,onHueChange:s,onBoardChange:c,onInputChange:d,onCompactChange:f}}}),wm={class:"vc-chrome-colorPicker"},Sm={class:"vc-chrome-colorPicker-body"},Om={class:"chrome-controls"},xm={class:"chrome-sliders"};function Em(e,t,r,n,o,i){const u=a.resolveComponent("Board"),l=a.resolveComponent("Hue"),s=a.resolveComponent("Alpha"),d=a.resolveComponent("Display"),c=a.resolveComponent("History");return a.openBlock(),a.createElementBlock("div",wm,[a.createVNode(u,{round:!0,hide:!1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"]),a.createElementVNode("div",Sm,[a.createElementVNode("div",Om,[a.createElementVNode("div",xm,[a.createVNode(l,{size:"small",color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"]),e.disableAlpha?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(s,{key:0,size:"small",color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"]))])]),a.createVNode(d,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(c,{key:0,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const yl=fe(Cm,[["render",Em],["__scopeId","data-v-2611d66c"]]),Ho="Vue3ColorPickerProvider",km=(e,t)=>{const r=e.getBoundingClientRect(),n=r.left+r.width/2,o=r.top+r.height/2,i=Math.abs(n-t.clientX),u=Math.abs(o-t.clientY),l=Math.sqrt(Math.pow(i,2)+Math.pow(u,2)),s=u/l,d=Math.acos(s);let c=Math.floor(180/(Math.PI/d));return t.clientX>n&&t.clientY>o&&(c=180-c),t.clientX==n&&t.clientY>o&&(c=180),t.clientX>n&&t.clientY==o&&(c=90),t.clientX<n&&t.clientY>o&&(c=180+c),t.clientX<n&&t.clientY==o&&(c=270),t.clientX<n&&t.clientY<o&&(c=360-c),c};let Wn=!1;const _m=(e,t)=>{const r=function(o){var i;(i=t.drag)==null||i.call(t,o)},n=function(o){var i;document.removeEventListener("mousemove",r,!1),document.removeEventListener("mouseup",n,!1),document.onselectstart=null,document.ondragstart=null,Wn=!1,(i=t.end)==null||i.call(t,o)};e&&e.addEventListener("mousedown",o=>{var i;Wn||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",n,!1),Wn=!0,(i=t.start)==null||i.call(t,o))})},Tm={angle:{type:Number,default:0},size:{type:Number,default:16,validator:e=>e>=16},borderWidth:{type:Number,default:1,validator:e=>e>=1},borderColor:{type:String,default:"#666"}},Nm=a.defineComponent({name:"Angle",props:Tm,emits:["update:angle","change"],setup(e,{emit:t}){const r=a.ref(null),n=a.ref(0);a.watch(()=>e.angle,l=>{n.value=l});const o=()=>{let l=Number(n.value);isNaN(l)||(l=l>360||l<0?e.angle:l,n.value=l===360?0:l,t("update:angle",n.value),t("change",n.value))},i=a.computed(()=>({width:e.size+"px",height:e.size+"px",borderWidth:e.borderWidth+"px",borderColor:e.borderColor,transform:`rotate(${n.value}deg)`})),u=l=>{r.value&&(n.value=km(r.value,l)%360,o())};return a.onMounted(()=>{const l={drag:s=>{u(s)},end:s=>{u(s)}};r.value&&_m(r.value,l)}),()=>a.createVNode("div",{class:"bee-angle"},[a.createVNode("div",{class:"bee-angle__round",ref:r,style:i.value},null)])}}),Am=a.defineComponent({name:"GradientColorPicker",components:{Angle:Nm,Display:Lo,Alpha:Fo,Palette:uu,Board:qo,Hue:Do,Lightness:cu,History:Go},props:{startColor:P.instanceOf(G).isRequired,endColor:P.instanceOf(G).isRequired,startColorStop:P.number.def(0),endColorStop:P.number.def(100),angle:P.number.def(0),type:P.oneOf(["linear","radial"]).def("linear"),disableHistory:P.bool.def(!1),roundHistory:P.bool.def(!1),disableAlpha:P.bool.def(!1),pickerType:P.oneOf(["fk","chrome"]).def("fk")},emits:["update:startColor","update:endColor","update:angle","update:startColorStop","update:endColorStop","startColorChange","endColorChange","advanceChange","angleChange","startColorStopChange","endColorStopChange","typeChange"],setup(e,{emit:t}){const r=a.reactive({startActive:!0,startColor:e.startColor,endColor:e.endColor,startColorStop:e.startColorStop,endColorStop:e.endColorStop,angle:e.angle,type:e.type,startColorRgba:e.startColor.toRgbString(),endColorRgba:e.endColor.toRgbString()}),n=a.inject(Ho),o=a.ref(e.pickerType==="chrome"),i=a.ref(),u=a.ref(),l=a.ref();a.watch(()=>[e.startColor,e.endColor,e.angle],S=>{r.startColor=S[0],r.endColor=S[1],r.angle=S[2]}),a.watch(()=>e.type,S=>{r.type=S});const s=a.computed({get:()=>r.startActive?r.startColor:r.endColor,set:S=>{if(r.startActive){r.startColor=S;return}r.endColor=S}}),d=a.computed(()=>{if(l.value&&i.value){const S=r.startColorStop/100,T=l.value.getBoundingClientRect(),j=i.value.offsetWidth;return Math.round(S*(T.width-j)+j/2)}return 0}),c=a.computed(()=>{if(l.value&&u.value){const S=r.endColorStop/100,T=l.value.getBoundingClientRect(),j=u.value.offsetWidth;return Math.round(S*(T.width-j)+j/2)}return 0}),f=a.computed(()=>{let S=`background: linear-gradient(${r.angle}deg, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`;return r.type==="radial"&&(S=`background: radial-gradient(circle, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`),S}),p=S=>{var T;if(r.startActive=!0,l.value&&i.value){const j=(T=l.value)==null?void 0:T.getBoundingClientRect();let _=S.clientX-j.left;_=Math.max(i.value.offsetWidth/2,_),_=Math.min(_,j.width-i.value.offsetWidth/2),r.startColorStop=Math.round((_-i.value.offsetWidth/2)/(j.width-i.value.offsetWidth)*100),t("update:startColorStop",r.startColorStop),t("startColorStopChange",r.startColorStop)}},h=S=>{var T;if(r.startActive=!1,l.value&&u.value){const j=(T=l.value)==null?void 0:T.getBoundingClientRect();let _=S.clientX-j.left;_=Math.max(u.value.offsetWidth/2,_),_=Math.min(_,j.width-u.value.offsetWidth/2),r.endColorStop=Math.round((_-u.value.offsetWidth/2)/(j.width-u.value.offsetWidth)*100),t("update:endColorStop",r.endColorStop),t("endColorStopChange",r.endColorStop)}},y=S=>{const T=S.target,j=parseInt(T.value.replace("°",""));isNaN(j)||(r.angle=j%360),t("update:angle",r.angle),t("angleChange",r.angle)},b=S=>{r.angle=S,t("update:angle",r.angle),t("angleChange",r.angle)},v=S=>{S==="advance"?(o.value=!0,t("advanceChange",!0)):(s.value.hex=S,t("advanceChange",!1)),E()},g=S=>{s.value.alpha=S,E()},m=S=>{s.value.hue=S,E()},C=(S,T)=>{s.value.saturation=S,s.value.brightness=T,E()},O=S=>{s.value.lightness=S,E()},k=()=>{E()},E=()=>{r.startActive?(t("update:startColor",r.startColor),t("startColorChange",r.startColor)):(t("update:endColor",r.endColor),t("endColorChange",r.endColor))},R=()=>{o.value=!1,t("advanceChange",!1)},B=()=>{r.type=r.type==="linear"?"radial":"linear",t("typeChange",r.type)},I=fo($o,[],{}),F=Ee(()=>{if(e.disableHistory)return;const S=s.value.toRgbString();if(I.value=I.value.filter(T=>!x.equals(T,S)),!I.value.includes(S)){for(;I.value.length>Bo;)I.value.pop();I.value.unshift(S)}},500);return ze(()=>{u.value&&i.value&&(Mt.triggerDragEvent(u.value,{drag:S=>{h(S)},end:S=>{h(S)}}),Mt.triggerDragEvent(i.value,{drag:S=>{p(S)},end:S=>{p(S)}}))}),X(()=>r.startColor,S=>{r.startColorRgba=S.toRgbString()},{deep:!0}),X(()=>r.endColor,S=>{r.endColorRgba=S.toRgbString()},{deep:!0}),X(()=>s.value,()=>{F()},{deep:!0}),{startGradientRef:i,stopGradientRef:u,colorRangeRef:l,state:r,currentColor:s,getStartColorLeft:d,getEndColorLeft:c,gradientBg:f,advancePanelShow:o,onDegreeBlur:y,onCompactChange:v,onAlphaChange:g,onHueChange:m,onBoardChange:C,onLightChange:O,historyColors:I,onBack:R,onDegreeChange:b,onDisplayChange:k,onTypeChange:B,lang:n?.lang}}}),du=e=>(a.pushScopeId("data-v-c4d6d6ea"),e=e(),a.popScopeId(),e),Pm={class:"vc-gradient-picker"},Rm={class:"vc-gradient-picker__header"},jm={class:"vc-gradient__types"},Im={class:"vc-gradient-wrap__types"},Vm={class:"vc-picker-degree-input vc-degree-input"},$m={class:"vc-degree-input__control"},Bm=["value"],Fm={class:"vc-degree-input__panel"},Mm={class:"vc-degree-input__disk"},qm={class:"vc-gradient-picker__body"},Dm={class:"vc-color-range",ref:"colorRangeRef"},Gm={class:"vc-color-range__container"},Lm={class:"vc-gradient__stop__container"},Hm=["title"],Um=du(()=>a.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),zm=[Um],Wm=["title"],Km=du(()=>a.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),Ym=[Km];function Xm(e,t,r,n,o,i){var u,l;const s=a.resolveComponent("Angle"),d=a.resolveComponent("Board"),c=a.resolveComponent("Hue"),f=a.resolveComponent("Palette"),p=a.resolveComponent("Lightness"),h=a.resolveComponent("Alpha"),y=a.resolveComponent("Display"),b=a.resolveComponent("History");return a.openBlock(),a.createElementBlock("div",Pm,[a.createElementVNode("div",Rm,[a.createElementVNode("div",null,[a.withDirectives(a.createElementVNode("div",{class:"back",style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...v)=>e.onBack&&e.onBack(...v))},null,512),[[a.vShow,e.pickerType==="fk"&&e.advancePanelShow]])]),a.createElementVNode("div",jm,[a.createElementVNode("div",Im,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(["linear","radial"],v=>a.createElementVNode("div",{class:a.normalizeClass(["vc-gradient__type",{active:e.state.type===v}]),key:v,onClick:t[1]||(t[1]=(...g)=>e.onTypeChange&&e.onTypeChange(...g))},a.toDisplayString(e.lang?e.lang[v]:v),3)),64))]),a.withDirectives(a.createElementVNode("div",Vm,[a.createElementVNode("div",$m,[a.createElementVNode("input",{value:e.state.angle,onBlur:t[2]||(t[2]=(...v)=>e.onDegreeBlur&&e.onDegreeBlur(...v))},null,40,Bm),a.createTextVNode("deg ")]),a.createElementVNode("div",Fm,[a.createElementVNode("div",Mm,[a.createVNode(s,{angle:e.state.angle,"onUpdate:angle":t[3]||(t[3]=v=>e.state.angle=v),size:40,onChange:e.onDegreeChange},null,8,["angle","onChange"])])])],512),[[a.vShow,e.state.type==="linear"]])])]),a.createElementVNode("div",qm,[a.createElementVNode("div",Dm,[a.createElementVNode("div",Gm,[a.createElementVNode("div",{class:"vc-background",style:a.normalizeStyle(e.gradientBg)},null,4),a.createElementVNode("div",Lm,[a.createElementVNode("div",{class:a.normalizeClass(["vc-gradient__stop",{"vc-gradient__stop--current":e.state.startActive}]),ref:"startGradientRef",title:(u=e.lang)==null?void 0:u.start,style:a.normalizeStyle({left:e.getStartColorLeft+"px",backgroundColor:e.state.startColorRgba})},zm,14,Hm),a.createElementVNode("div",{class:a.normalizeClass(["vc-gradient__stop",{"vc-gradient__stop--current":!e.state.startActive}]),ref:"stopGradientRef",title:(l=e.lang)==null?void 0:l.end,style:a.normalizeStyle({left:e.getEndColorLeft+"px",backgroundColor:e.state.endColorRgba})},Ym,14,Wm)])])],512)]),e.advancePanelShow?(a.openBlock(),a.createBlock(d,{key:0,color:e.currentColor,onChange:e.onBoardChange},null,8,["color","onChange"])):a.createCommentVNode("",!0),e.advancePanelShow?(a.openBlock(),a.createBlock(c,{key:1,color:e.currentColor,onChange:e.onHueChange},null,8,["color","onChange"])):a.createCommentVNode("",!0),e.advancePanelShow?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(f,{key:2,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(p,{key:3,color:e.currentColor,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(h,{key:4,color:e.currentColor,onChange:e.onAlphaChange},null,8,["color","onChange"])),a.createVNode(y,{color:e.currentColor,"disable-alpha":e.disableAlpha,onChange:e.onDisplayChange},null,8,["color","disable-alpha","onChange"]),e.disableHistory?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(b,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])}const bl=fe(Am,[["render",Xm],["__scopeId","data-v-c4d6d6ea"]]),Jm=a.defineComponent({name:"WrapContainer",props:{theme:P.oneOf(["white","black"]).def("white"),showTab:P.bool.def(!1),activeKey:P.oneOf(["pure","gradient"]).def("pure")},emits:["update:activeKey","change"],setup(e,{emit:t}){const r=a.reactive({activeKey:e.activeKey}),n=a.inject(Ho),o=i=>{r.activeKey=i,t("update:activeKey",i),t("change",i)};return X(()=>e.activeKey,i=>{r.activeKey=i}),{state:r,onActiveKeyChange:o,lang:n?.lang}}}),Zm={class:"vc-colorpicker--container"},Qm={key:0,class:"vc-colorpicker--tabs"},ey={class:"vc-colorpicker--tabs__inner"},ty={class:"vc-btn__content"},ry={class:"vc-btn__content"};function ny(e,t,r,n,o,i){var u,l;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-colorpicker",e.theme])},[a.createElementVNode("div",Zm,[e.showTab?(a.openBlock(),a.createElementBlock("div",Qm,[a.createElementVNode("div",ey,[a.createElementVNode("div",{class:a.normalizeClass(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="pure"}]),onClick:t[0]||(t[0]=s=>e.onActiveKeyChange("pure"))},[a.createElementVNode("button",null,[a.createElementVNode("div",ty,a.toDisplayString((u=e.lang)==null?void 0:u.pure),1)])],2),a.createElementVNode("div",{class:a.normalizeClass(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="gradient"}]),onClick:t[1]||(t[1]=s=>e.onActiveKeyChange("gradient"))},[a.createElementVNode("button",null,[a.createElementVNode("div",ry,a.toDisplayString((l=e.lang)==null?void 0:l.gradient),1)])],2),a.createElementVNode("div",{class:"vc-colorpicker--tabs__bg",style:a.normalizeStyle({width:"50%",left:`calc(${e.state.activeKey==="gradient"?50:0}%)`})},null,4)])])):a.createCommentVNode("",!0),a.renderSlot(e.$slots,"default",{},void 0,!0)])],2)}const oy=fe(Jm,[["render",ny],["__scopeId","data-v-0492277d"]]),ay={start:"Start",end:"End",pure:"Pure",gradient:"Gradient",linear:"linear",radial:"radial"},iy={start:"开始",end:"结束",pure:"纯色",gradient:"渐变",linear:"线性",radial:"径向"},ly={En:ay,"ZH-cn":iy},sy={isWidget:P.bool.def(!1),pickerType:P.oneOf(["fk","chrome"]).def("fk"),shape:P.oneOf(["circle","square"]).def("square"),pureColor:{type:[String,Object],default:"#000000"},gradientColor:P.string.def("linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)"),format:{type:String,default:"rgb"},disableAlpha:P.bool.def(!1),disableHistory:P.bool.def(!1),roundHistory:P.bool.def(!1),useType:P.oneOf(["pure","gradient","both"]).def("pure"),activeKey:P.oneOf(["pure","gradient"]).def("pure"),lang:{type:String,default:"ZH-cn"},zIndex:P.number.def(9999),pickerContainer:{type:[String,HTMLElement],default:"body"},debounce:P.number.def(100),theme:P.oneOf(["white","black"]).def("white"),blurClose:P.bool.def(!1),defaultPopup:P.bool.def(!1)},uy=a.defineComponent({name:"ColorPicker",components:{FkColorPicker:ml,ChromeColorPicker:yl,GradientColorPicker:bl,WrapContainer:oy},inheritAttrs:!1,props:sy,emits:["update:pureColor","pureColorChange","update:gradientColor","gradientColorChange","update:activeKey","activeKeyChange"],setup(e,{emit:t}){a.provide(Ho,{lang:a.computed(()=>ly[e.lang||"ZH-cn"])});const r=!!a.useSlots().extra,n=a.reactive({pureColor:e.pureColor||"",activeKey:e.useType==="gradient"?"gradient":e.activeKey,isAdvanceMode:!1}),o=new G("#000"),i=new G("#000"),u=new G(n.pureColor),l=a.reactive({startColor:o,endColor:i,startColorStop:0,endColorStop:100,angle:0,type:"linear",gradientColor:e.gradientColor}),s=a.ref(u),d=a.ref(e.defaultPopup),c=a.ref(null),f=a.ref(null);let p=null;const h=a.computed(()=>({background:n.activeKey!=="gradient"?x(n.pureColor).toRgbString():l.gradientColor})),y=a.computed(()=>n.activeKey==="gradient"?bl.name:e.pickerType==="fk"?ml.name:yl.name),b=S=>{n.isAdvanceMode=S},v=a.computed(()=>{const S={disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,pickerType:e.pickerType};return n.activeKey==="gradient"?{...S,startColor:l.startColor,endColor:l.endColor,angle:l.angle,type:l.type,startColorStop:l.startColorStop,endColorStop:l.endColorStop,onStartColorChange:T=>{l.startColor=T,k()},onEndColorChange:T=>{l.endColor=T,k()},onStartColorStopChange:T=>{l.startColorStop=T,k()},onEndColorStopChange:T=>{l.endColorStop=T,k()},onAngleChange:T=>{l.angle=T,k()},onTypeChange:T=>{l.type=T,k()},onAdvanceChange:b}:{...S,disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,color:s.value,onChange:B,onAdvanceChange:b}}),g=()=>{d.value=!0,p?p.update():R()},m=()=>{d.value=!1},C=Ee(()=>{!e.isWidget&&e.blurClose&&m()},100);kd(f,()=>{m()});const O=()=>{var S,T,j,_;try{const[A]=Oa.parse(l.gradientColor);if(A&&A.type.includes("gradient")&&A.colorStops.length>=2){const $=A.colorStops[0],K=A.colorStops[1];l.startColorStop=Number((S=$.length)==null?void 0:S.value)||0,l.endColorStop=Number((T=K.length)==null?void 0:T.value)||0,A.type==="linear-gradient"&&((j=A.orientation)==null?void 0:j.type)==="angular"&&(l.angle=Number((_=A.orientation)==null?void 0:_.value)||0),l.type=A.type.split("-")[0];const[N,V,M,Q]=$.value,[ge,Ze,Ae,me]=K.value;l.startColor=new G({r:Number(N),g:Number(V),b:Number(M),a:Number(Q)}),l.endColor=new G({r:Number(ge),g:Number(Ze),b:Number(Ae),a:Number(me)})}}catch(A){console.log(`[Parse Color]: ${A}`)}},k=Ee(()=>{const S=E();try{l.gradientColor=Oa.stringify(S),t("update:gradientColor",l.gradientColor),t("gradientColorChange",l.gradientColor)}catch(T){console.log(T)}},e.debounce),E=()=>{const S=[],T=l.startColor.RGB.map(A=>A.toString()),j=l.endColor.RGB.map(A=>A.toString()),_=[{type:"rgba",value:[T[0],T[1],T[2],T[3]],length:{value:l.startColorStop+"",type:"%"}},{type:"rgba",value:[j[0],j[1],j[2],j[3]],length:{value:l.endColorStop+"",type:"%"}}];return l.type==="linear"?S.push({type:"linear-gradient",orientation:{type:"angular",value:l.angle+""},colorStops:_}):l.type==="radial"&&S.push({type:"radial-gradient",orientation:[{type:"shape",value:"circle"}],colorStops:_}),S},R=()=>{c.value&&f.value&&(p=fp(c.value,f.value,{placement:"auto",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{allowedAutoPlacements:["top","bottom","left","right"],rootBoundary:"viewport"}}]}))},B=S=>{s.value=S,n.pureColor=S.toString(e.format),I()},I=Ee(()=>{t("update:pureColor",n.pureColor),t("pureColorChange",n.pureColor)},e.debounce),F=S=>{n.activeKey=S,t("update:activeKey",S),t("activeKeyChange",S)};return ze(()=>{O(),p||R()}),X(()=>e.gradientColor,S=>{S!=l.gradientColor&&(l.gradientColor=S)}),X(()=>l.gradientColor,()=>{O()}),X(()=>e.activeKey,S=>{n.activeKey=S}),X(()=>e.useType,S=>{n.activeKey!=="gradient"&&S==="gradient"?n.activeKey="gradient":n.activeKey="pure"}),X(()=>e.pureColor,S=>{x.equals(S,n.pureColor)||(n.pureColor=S,s.value=new G(S))},{deep:!0}),{colorCubeRef:c,pickerRef:f,showPicker:d,colorInstance:s,getBgColorStyle:h,getComponentName:y,getBindArgs:v,state:n,hasExtra:r,onColorChange:B,onShowPicker:g,onActiveKeyChange:F,onAutoClose:C}}}),cy={key:0,class:"vc-color-extra"},dy={key:0,class:"vc-color-extra"};function fy(e,t,r,n,o,i){const u=a.resolveComponent("WrapContainer");return a.openBlock(),a.createElementBlock(a.Fragment,null,[e.isWidget?(a.openBlock(),a.createBlock(u,{key:0,"active-key":e.state.activeKey,"onUpdate:activeKey":t[0]||(t[0]=l=>e.state.activeKey=l),"show-tab":e.useType==="both",style:a.normalizeStyle({zIndex:e.zIndex}),theme:e.theme,onChange:e.onActiveKeyChange},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.getComponentName),a.mergeProps({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(a.openBlock(),a.createElementBlock("div",cy,[a.renderSlot(e.$slots,"extra",{},void 0,!0)])):a.createCommentVNode("",!0)]),_:3},8,["active-key","show-tab","style","theme","onChange"])):a.createCommentVNode("",!0),e.isWidget?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",{class:a.normalizeClass(["vc-color-wrap transparent",{round:e.shape==="circle"}]),ref:"colorCubeRef"},[a.createElementVNode("div",{class:"current-color",style:a.normalizeStyle(e.getBgColorStyle),onClick:t[1]||(t[1]=(...l)=>e.onShowPicker&&e.onShowPicker(...l))},null,4)],2),(a.openBlock(),a.createBlock(a.Teleport,{to:e.pickerContainer},[a.withDirectives(a.createElementVNode("div",{ref:"pickerRef",style:a.normalizeStyle({zIndex:e.zIndex}),onMouseleave:t[3]||(t[3]=(...l)=>e.onAutoClose&&e.onAutoClose(...l))},[e.showPicker?(a.openBlock(),a.createBlock(u,{key:0,"show-tab":e.useType==="both"&&!e.state.isAdvanceMode,theme:e.theme,"active-key":e.state.activeKey,"onUpdate:activeKey":t[2]||(t[2]=l=>e.state.activeKey=l),onChange:e.onActiveKeyChange},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.getComponentName),a.mergeProps({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(a.openBlock(),a.createElementBlock("div",dy,[a.renderSlot(e.$slots,"extra",{},void 0,!0)])):a.createCommentVNode("",!0)]),_:3},8,["show-tab","theme","active-key","onChange"])):a.createCommentVNode("",!0)],36),[[a.vShow,e.showPicker]])],8,["to"]))],64))],64)}const py=fe(uy,[["render",fy],["__scopeId","data-v-354ca836"]]),hy={install(e){e.use(pc),e.use(hc),e.use(yc),e.use(wc),e.use(xc),e.use(Ec),e.use(Nc),e.use(Rc),e.use(Vc),e.use(Dc),e.use(Hc),e.use(Uc),e.use(Wc),e.use(Jc),e.use(Qc),e.use(nd),e.use(od),e.use(ad),e.use(vc),e.use(ed),e.use(zc),e.use(Kc),e.use(kc),e.component("ColorPicker",py)}},Cl=a.defineComponent({name:"GctEditForm",props:{embed:{type:Boolean,default:!1},context:{type:Object,default:()=>({})},params:{type:Object,default:()=>({})},controller:{type:Object},model:{type:Object,required:!0},data:{type:Object}},emits:["update:data"],setup(e,{emit:t}){const r=w.useNamespace("gct-edit-form");if(!e.model)throw new Error("未传递表单模型配置");const n=e.controller||w.useEditFormController(()=>new w.EditFormController(e.model)),o=a.ref(null),i=async()=>{try{await o.value.formRef.validate()}catch(l){return console.error(l),!1}return!0},u=async l=>{try{await o.value.formRef.validateFields(l)}catch(s){return console.error(s),!1}return!0};return n.validate=i,n.validateItem=u,a.watch(e.context,()=>{Object.assign(n.context,e.context),n.state.isNew=!n.context.id},{immediate:!0}),a.watch(e.params,()=>{Object.assign(n.params,e.params)}),w.useModal(async()=>{try{await o.value.formRef.validate();const l=await n.save();if(l)return{ok:!0,data:[vt.cloneDeep(l)]}}catch(l){console.error(l)}return{ok:!1}}),e.data?(Object.assign(n.state.data,e.data),n.loaded()):n.state.isNew!==!0?n.load().then(()=>{n.loaded()}):n.loaded(),e.embed&&n.evt.on("change",()=>{t("update:data",n.getData())}),{ns:r,c:n,formRef:o}},render(){let e=null;return(this.c.state.isNew||this.c.state.isNew==!1&&this.c.state.loaded)&&(e=a.createVNode(a.resolveComponent("gct-form"),{class:"h-full",ref:"formRef",model:this.model,c:this.c},null)),a.createVNode("div",{class:this.ns.b()},[e])}}),vy={install(e){e.component(Cl.name,Cl)}};function gy(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const wl=a.defineComponent({name:"GctFormItem",props:{c:{type:Object,required:!0},formModel:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form-item"),r={};e.formModel.labelWidth&&(r[t.cssVarName("form-item-label-width")]=e.formModel.labelWidth),e.model.labelWidth&&(r[t.cssVarName("form-item-label-width")]=e.model.labelWidth),e.model.labelAlign&&(r[t.cssVarName("form-item-label-align")]=e.model.labelAlign),e.model.editorAlign&&(r[t.cssVarName("form-item-editor-align")]=e.model.editorAlign),e.model.width&&(r[t.cssVarName("form-item-width")]=e.model.width),e.model.margin&&(r.margin=e.model.margin),e.model.padding&&(r.padding=e.model.padding);const n=a.computed(()=>!!e.model.rules?.find(i=>i.required));return{ns:t,style:r,required:n,renderLabelTooltip:()=>e.model.labelTooltip?a.createVNode(a.resolveComponent("a-tooltip"),{class:t.e("label-tooltip"),placement:"topLeft",title:e.model.labelTooltip},{default:()=>[a.createVNode("span",{class:"iconfont icon-assist ml5px text-[#bfbfbf]"},null)]}):null}},render(){const e=_gct.register.editor.get(w.EditorRegisterConst.PREFIX+this.model.editor.type);if(!e)return console.error(`未找到表单项${this.model.name}的编辑器${this.model.editor.type}的适配器实例:`,this.model),null;const t=this.model.labelPosition||"left";let r=null;e?e.render?r=e.render(this.c.editorValue,this.c.data,this.model):e.component?r=a.h(typeof e.component=="string"?a.resolveComponent(e.component):e.component,{key:this.model.name,c:this.c,value:this.c.editorValue,itemModel:this.model,model:this.model.editor,data:this.c.data,disabled:this.c.state.disabled,readonly:this.c.state.readonly,keepalive:this.c.state.keepalive,visible:this.c.state.visible,class:[this.ns.e("editor"),this.ns.e(t),this.model.editor.class],style:this.model.editor.style,"onUpdate:value":o=>{this.c.editorValue=o}}):console.error(`未找到编辑器绘制组件:${this.model.name} - ${this.model.editor.type},请实现 component 或 render 方法`):console.error(`未找到编辑器适配器:${this.model.name} - ${this.model.editor.type}`),this.model.label&&t==="top"&&(r=[a.createVNode("div",{class:[this.ns.e("label"),this.ns.em("label",t)]},[this.model.label,this.renderLabelTooltip()]),r]);const n={default:()=>r};return t==="left"&&this.model.label&&(n.label=()=>[a.createVNode("span",null,[this.model.label]),this.renderLabelTooltip()]),a.createVNode(a.resolveComponent("a-form-item"),{key:this.c.model.name,colon:this.formModel.noColon===!0?!1:this.model.noColon!==!0,name:this.model.name,label:void 0,class:[this.ns.b(),this.ns.is("readonly",this.model.editor.readonly===!0),this.ns.is("required",this.required),this.ns.is("hidden",this.c.state.visible===!1),this.ns.is("hidden-label",!this.model.label),this.ns.m("label-"+t)],style:this.style,rules:this.c.state.visible===!0?this.model.rules:[],layout:"horizontal"},gy(n)?n:{default:()=>[n]})}});function my(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Sl=a.defineComponent({name:"GctForm",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form");a.provide("formController",e.c);const r=a.ref(null),n=e.c;Object.keys(n.item).forEach(d=>{const c=n.item[d];c.state=a.reactive(c.state)});const i=d=>a.createVNode(a.resolveComponent("gct-form-item"),{class:d.class,style:d.style,c:n.item[d.name],formModel:e.model,model:d},null),u=d=>{const c=n.provider[d.name];if(!c)return console.error(`未找到表单项适配器实例:${d.name}`,d),null;if(c)return a.h(typeof c.component=="string"?a.resolveComponent(c.component):c.component,{key:d.name,model:d,formModel:e.model,c:n.item[d.name],data:n.state.data,class:d.class,style:d.style},l(d.children||[]));console.error(`未找到表单容器适配器:${d.name} - ${d.type}`)},l=d=>{if(!d)return[];const c=[];return d.forEach(f=>{if(f.type==="hidden")return null;let p=null;const h=f;h.type==="container"||h.container?p=u(h):p=i(f),p&&c.push(p)}),c},s={};return e.model.labelWidth&&(s[t.cssVarName("form-item-label-width")]=e.model.labelWidth),{ns:t,formRef:r,staticStyle:s,renderItem:i,renderContainer:u,renderChildren:l}},render(){let e;return a.createVNode(a.resolveComponent("a-form"),{ref:"formRef",layout:this.model.layout,model:this.c.state.data,class:[this.ns.b(),this.ns.is("info",this.model.info===!0)],autocomplete:"off",style:this.staticStyle},my(e=this.model.children.map(t=>this.renderContainer(t)))?e:{default:()=>[e]})}});class yy{component="gct-form-item";createController(t,r){return w.useFormItemController(()=>new w.FormItemController(t,r))}}class by{component="gct-form-hidden-item";createController(t,r){return w.useFormItemController(()=>new w.FormHiddenItemController(t,r))}}class Cy{component="gct-form-collapse-pane";createController(t,r){return w.useFormItemController(()=>new w.FormCollapsePaneController(t,r))}}function Ol(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const xl=a.defineComponent({name:"GctFormCollapsePane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("form-collapse-pane"),r={};function n(o){if(e.model.layout==="flex")return a.createVNode(a.resolveComponent("flex-container"),{layout:e.model.flex},Ol(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},Ol(o)?o:{default:()=>[o]});console.error("不支持的layout类型"+e.model.layout)}return e.model.width&&(r[t.cssVarName("form-collapse-pane-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-collapse-pane-height")]=e.model.height),{ns:t,style:r,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[],t=e[e.length-1];return t&&(t.props=a.mergeProps(t.props||{},{class:this.ns.e("last-child")})),a.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),wy={install(e){_gct.register.formItem.register("collapse-pane",()=>new Cy),e.component(xl.name,xl)}};class Sy{component="gct-form-collapse";createController(t,r){return w.useFormItemController(()=>new w.FormCollapseController(t,r))}}const El=a.defineComponent({name:"GctFormCollapse",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("form-collapse"),r=a.ref([0]),n={};e.model.width&&(n[t.cssVarName("form-collapse-width")]=e.model.width),e.model.height&&(n[t.cssVarName("form-collapse-height")]=e.model.height);const o=a.ref([]);o.value=e.model.children?.map(u=>u.name)||[];const i=a.computed(()=>e.model.expandIconPosition==="left"?"left":"right");return{ns:t,keys:r,style:n,activeKeys:o,expandIconPosition:i}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return a.createVNode(qe.Collapse,{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1),this.ns.m("icon-"+(this.model.expandIconStyle||"up-down"))],style:this.style,accordion:this.model.accordion,expandIconPosition:this.expandIconPosition,activeKey:this.activeKeys,"onUpdate:activeKey":t=>this.activeKeys=t},{default:()=>[this.model.children?.map((t,r)=>{if(e[r].props.c.state.visible===!1)return;const o=t.collapsible!==!1?void 0:"disabled";return a.createVNode(qe.Collapse.Panel,{key:t.name,header:t.title,collapsible:o},{default:()=>[e[r]]})})]})}}),Oy={install(e){_gct.register.formItem.register("collapse",()=>new Sy),e.component(El.name,El)}};class xy{component="gct-form-group";createController(t,r){return w.useFormItemController(()=>new w.FormGroupController(t,r))}}function Kn(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const kl=a.defineComponent({name:"GctFormGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form-group"),r=a.ref([0]);function n(i){if(e.model.layout==="flex")return a.createVNode(a.resolveComponent("flex-container"),{layout:e.model.flex},Kn(i)?i:{default:()=>[i]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},Kn(i)?i:{default:()=>[i]});console.error("不支持的layout类型"+e.model.layout)}const o={};return e.model.width&&(o[t.cssVarName("form-group-width")]=e.model.width),e.model.height&&(o[t.cssVarName("form-group-height")]=e.model.height),{ns:t,keys:r,style:o,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];if(this.model.isCollapse){let t;return a.createVNode(a.resolveComponent("a-collapse"),{activeKey:this.keys,"onUpdate:activeKey":r=>this.keys=r,class:[this.ns.b(),this.ns.is("hidden-header",this.model.showHeader===!1),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style,ghost:!0},{default:()=>[a.createVNode(a.resolveComponent("a-collapse-panel"),{key:"0",header:this.model.title},Kn(t=this.renderContainer(e))?t:{default:()=>[t]})]})}return a.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden-header",this.model.showHeader===!1),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.model.showHeader===!1?a.createVNode("div",{class:this.ns.e("title")},[this.model.title]):null,a.createVNode("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),Ey={install(e){_gct.register.formItem.register("container",()=>new xy),e.component(kl.name,kl)}};class ky{component="gct-form-tab";createController(t,r){return w.useFormItemController(()=>new w.FormTabController(t,r))}}const _l=a.defineComponent({name:"GctFormTab",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("form-tab"),r={};return e.model.width&&(r[t.cssVarName("form-tab-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-tab-height")]=e.model.height),{ns:t,style:r}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return a.createVNode(a.resolveComponent("a-tabs"),{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1),this.ns.m(this.model.navPosition||"left")],style:this.style},{default:()=>[this.model.children?.map((t,r)=>a.createVNode(a.resolveComponent("a-tab-pane"),{key:t.name,tab:t.title},{default:()=>[e[r]]}))]})}}),_y={install(e){_gct.register.formItem.register("tab",()=>new ky),e.component(_l.name,_l)}};class Ty{component="gct-form-tab-pane";createController(t,r){return w.useFormItemController(()=>new w.FormTabPaneController(t,r))}}function Tl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Nl=a.defineComponent({name:"GctFormTabPane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("form-tab-pane"),r={};function n(o){if(e.model.layout==="flex")return a.createVNode(a.resolveComponent("flex-container"),{layout:e.model.flex},Tl(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},Tl(o)?o:{default:()=>[o]});console.error("不支持的layout类型"+e.model.layout)}return e.model.width&&(r[t.cssVarName("form-tab-pane-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-tab-pane-height")]=e.model.height),{ns:t,style:r,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return a.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),Ny={install(e){_gct.register.formItem.register("tab-pane",()=>new Ty),e.component(Nl.name,Nl)}};class Ay{component="gct-form-title-group";createController(t,r){return w.useFormItemController(()=>new w.FormGroupController(t,r))}}function Al(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Pl=a.defineComponent({name:"GctFormTitleGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form-title-group"),r=a.ref([0]);function n(i){if(e.model.layout==="flex")return a.createVNode(a.resolveComponent("flex-container"),{layout:e.model.flex},Al(i)?i:{default:()=>[i]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},Al(i)?i:{default:()=>[i]});console.error("不支持的layout类型"+e.model.layout)}const o={};return e.model.width&&(o[t.cssVarName("form-title-group-width")]=e.model.width),e.model.height&&(o[t.cssVarName("form-title-group-height")]=e.model.height),{ns:t,keys:r,style:o,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return a.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[a.createVNode("div",{class:this.ns.e("title")},[this.model.title]),a.createVNode("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),Py={install(e){_gct.register.formItem.register(w.FormContainerType.FORM_TITLE_GROUP,()=>new Ay),e.component(Pl.name,Pl)}},Ry={install(e){_gct.register.formItem.register("item",()=>new yy),_gct.register.formItem.register("hidden",()=>new by),e.use(wy),e.use(Oy),e.use(Ey),e.use(_y),e.use(Ny),e.use(Py),e.component(Sl.name,Sl),e.component(wl.name,wl)}},jy=(e,t)=>(e.install=r=>{const n=e.name||e.displayName;n&&(r.component(n,e),t&&(r.config.globalProperties[t]=e))},e),Iy={install(e){e.use(hy),e.use(vy),e.use(Ry),e.component(Yn.name,Yn),e.component(ia.name,ia),e.component(Xn.name,Xn),e.component(sa.name,sa),e.component(ua.name,ua)}};exports.CodeEditor=Yn;exports.default=Iy;exports.withInstall=jy;
|
|
15
|
+
`))),l}}:{type:r})}function Rp(e){return ae("arrayOf",{type:Array,validator:function(t){var r,n=t.every(function(o){return(r=We(e,o))===!0});return n||re(`arrayOf - value validation error:
|
|
16
|
+
`+xr(r)),n}})}function Pp(e){return ae("instanceOf",{type:e})}function jp(e){return ae("objectOf",{type:Object,validator:function(t){var r,n=Object.keys(t).every(function(o){return(r=We(e,t[o]))===!0});return n||re(`objectOf - value validation error:
|
|
17
|
+
`+xr(r)),n}})}function Ip(e){var t=Object.keys(e),r=t.filter(function(o){var i;return!!(!((i=e[o])===null||i===void 0)&&i.required)}),n=ae("shape",{type:Object,validator:function(o){var i=this;if(!He(o))return!1;var u=Object.keys(o);if(r.length>0&&r.some(function(s){return u.indexOf(s)===-1})){var l=r.filter(function(s){return u.indexOf(s)===-1});return re(l.length===1?'shape - required property "'+l[0]+'" is not defined.':'shape - required properties "'+l.join('", "')+'" are not defined.'),!1}return u.every(function(s){if(t.indexOf(s)===-1)return i._vueTypes_isLoose===!0||(re('shape - shape definition does not include a "'+s+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var d=We(e[s],o[s]);return typeof d=="string"&&re('shape - "'+s+`" property validation error:
|
|
18
|
+
`+xr(d)),d===!0})}});return Object.defineProperty(n,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(n,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),n}var ye=(function(){function e(){}return e.extend=function(t){var r=this;if(ct(t))return t.forEach(function(f){return r.extend(f)}),this;var n=t.name,o=t.validate,i=o!==void 0&&o,u=t.getter,l=u!==void 0&&u,s=ys(t,["name","validate","getter"]);if(Bt(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var d,c=s.type;return ur(c)?(delete s.type,Object.defineProperty(this,n,l?{get:function(){return $a(n,c,s)}}:{value:function(){var f,p=$a(n,c,s);return p.validator&&(p.validator=(f=p.validator).bind.apply(f,[p].concat([].slice.call(arguments)))),p}})):(d=l?{get:function(){var f=Object.assign({},s);return i?we(n,f):ae(n,f)},enumerable:!0}:{value:function(){var f,p,h=Object.assign({},s);return f=i?we(n,h):ae(n,h),h.validator&&(f.validator=(p=h.validator).bind.apply(p,[f].concat([].slice.call(arguments)))),f},enumerable:!0},Object.defineProperty(this,n,d))},gs(e,null,[{key:"any",get:function(){return bp()}},{key:"func",get:function(){return Cp().def(this.defaults.func)}},{key:"bool",get:function(){return wp().def(this.defaults.bool)}},{key:"string",get:function(){return Sp().def(this.defaults.string)}},{key:"number",get:function(){return Op().def(this.defaults.number)}},{key:"array",get:function(){return xp().def(this.defaults.array)}},{key:"object",get:function(){return Ep().def(this.defaults.object)}},{key:"integer",get:function(){return kp().def(this.defaults.integer)}},{key:"symbol",get:function(){return _p()}}]),e})();function Vp(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=(function(r){function n(){return r.apply(this,arguments)||this}return ms(n,r),gs(n,null,[{key:"sensibleDefaults",get:function(){return or({},this.defaults)},set:function(o){this.defaults=o!==!1?or({},o!==!0?o:e):{}}}]),n})(ye)).defaults=or({},e),t}ye.defaults={},ye.custom=Tp,ye.oneOf=Np,ye.instanceOf=Pp,ye.oneOfType=Ap,ye.arrayOf=Rp,ye.objectOf=jp,ye.shape=Ip,ye.utils={validate:function(e,t){return We(t,e)===!0},toType:function(e,t,r){return r===void 0&&(r=!1),r?we(e,t):ae(e,t)}};var R=(function(e){function t(){return e.apply(this,arguments)||this}return ms(t,e),t})(Vp()),Ba={},Br,Fa;function Ke(){return Fa||(Fa=1,Br=function(e){try{return!!e()}catch{return!0}}),Br}var Fr,Ma;function Ye(){if(Ma)return Fr;Ma=1;var e=Ke();return Fr=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Fr}var Mr={exports:{}},qr,qa;function xs(){if(qa)return qr;qa=1;var e=Ke();return qr=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),qr}var Dr,Da;function Lt(){if(Da)return Dr;Da=1;var e=xs(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return Dr=e?n:function(o){return function(){return r.apply(o,arguments)}},Dr}var Gr,Ga;function $e(){if(Ga)return Gr;Ga=1;var e=typeof document=="object"&&document.all;return Gr=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},Gr}var Lr,La;function Es(){return La||(La=1,Lr=function(e){return e==null}),Lr}var Hr,Ha;function $p(){if(Ha)return Hr;Ha=1;var e=Es(),t=TypeError;return Hr=function(r){if(e(r))throw new t("Can't call method on "+r);return r},Hr}var Ur,Ua;function Bp(){if(Ua)return Ur;Ua=1;var e=$p(),t=Object;return Ur=function(r){return t(e(r))},Ur}var zr,za;function Er(){if(za)return zr;za=1;var e=Lt(),t=Bp(),r=e({}.hasOwnProperty);return zr=Object.hasOwn||function(o,i){return r(t(o),i)},zr}var Wr,Wa;function Fp(){if(Wa)return Wr;Wa=1;var e=Ye(),t=Er(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,o=t(r,"name"),i=o&&(function(){}).name==="something",u=o&&(!e||e&&n(r,"name").configurable);return Wr={EXISTS:o,PROPER:i,CONFIGURABLE:u},Wr}var Kr={exports:{}},Yr,Ka;function Mp(){return Ka||(Ka=1,Yr=!1),Yr}var wt,Ya;function ve(){if(Ya)return wt;Ya=1;var e=function(t){return t&&t.Math===Math&&t};return wt=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof Sa=="object"&&Sa)||e(typeof wt=="object"&&wt)||(function(){return this})()||Function("return this")(),wt}var Xr,Xa;function qp(){if(Xa)return Xr;Xa=1;var e=ve(),t=Object.defineProperty;return Xr=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},Xr}var Ja;function So(){if(Ja)return Kr.exports;Ja=1;var e=Mp(),t=ve(),r=qp(),n="__core-js_shared__",o=Kr.exports=t[n]||r(n,{});return(o.versions||(o.versions=[])).push({version:"3.45.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Kr.exports}var Jr,Za;function Dp(){if(Za)return Jr;Za=1;var e=Lt(),t=$e(),r=So(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(o){return n(o)}),Jr=r.inspectSource,Jr}var Zr,Qa;function Gp(){if(Qa)return Zr;Qa=1;var e=ve(),t=$e(),r=e.WeakMap;return Zr=t(r)&&/native code/.test(String(r)),Zr}var Qr,ei;function Ht(){if(ei)return Qr;ei=1;var e=$e();return Qr=function(t){return typeof t=="object"?t!==null:e(t)},Qr}var en={},tn,ti;function Lp(){if(ti)return tn;ti=1;var e=ve(),t=Ht(),r=e.document,n=t(r)&&t(r.createElement);return tn=function(o){return n?r.createElement(o):{}},tn}var rn,ri;function Hp(){if(ri)return rn;ri=1;var e=Ye(),t=Ke(),r=Lp();return rn=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),rn}var nn,ni;function Up(){if(ni)return nn;ni=1;var e=Ye(),t=Ke();return nn=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),nn}var on,oi;function ks(){if(oi)return on;oi=1;var e=Ht(),t=String,r=TypeError;return on=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},on}var an,ai;function _s(){if(ai)return an;ai=1;var e=xs(),t=Function.prototype.call;return an=e?t.bind(t):function(){return t.apply(t,arguments)},an}var ln,ii;function zp(){if(ii)return ln;ii=1;var e=ve(),t=$e(),r=function(n){return t(n)?n:void 0};return ln=function(n,o){return arguments.length<2?r(e[n]):e[n]&&e[n][o]},ln}var sn,li;function Wp(){if(li)return sn;li=1;var e=Lt();return sn=e({}.isPrototypeOf),sn}var un,si;function Kp(){if(si)return un;si=1;var e=ve(),t=e.navigator,r=t&&t.userAgent;return un=r?String(r):"",un}var cn,ui;function Yp(){if(ui)return cn;ui=1;var e=ve(),t=Kp(),r=e.process,n=e.Deno,o=r&&r.versions||n&&n.version,i=o&&o.v8,u,l;return i&&(u=i.split("."),l=u[0]>0&&u[0]<4?1:+(u[0]+u[1])),!l&&t&&(u=t.match(/Edge\/(\d+)/),(!u||u[1]>=74)&&(u=t.match(/Chrome\/(\d+)/),u&&(l=+u[1]))),cn=l,cn}var dn,ci;function Ts(){if(ci)return dn;ci=1;var e=Yp(),t=Ke(),r=ve(),n=r.String;return dn=!!Object.getOwnPropertySymbols&&!t(function(){var o=Symbol("symbol detection");return!n(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&e&&e<41}),dn}var fn,di;function Ns(){if(di)return fn;di=1;var e=Ts();return fn=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",fn}var pn,fi;function As(){if(fi)return pn;fi=1;var e=zp(),t=$e(),r=Wp(),n=Ns(),o=Object;return pn=n?function(i){return typeof i=="symbol"}:function(i){var u=e("Symbol");return t(u)&&r(u.prototype,o(i))},pn}var hn,pi;function Xp(){if(pi)return hn;pi=1;var e=String;return hn=function(t){try{return e(t)}catch{return"Object"}},hn}var vn,hi;function Jp(){if(hi)return vn;hi=1;var e=$e(),t=Xp(),r=TypeError;return vn=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},vn}var gn,vi;function Zp(){if(vi)return gn;vi=1;var e=Jp(),t=Es();return gn=function(r,n){var o=r[n];return t(o)?void 0:e(o)},gn}var mn,gi;function Qp(){if(gi)return mn;gi=1;var e=_s(),t=$e(),r=Ht(),n=TypeError;return mn=function(o,i){var u,l;if(i==="string"&&t(u=o.toString)&&!r(l=e(u,o))||t(u=o.valueOf)&&!r(l=e(u,o))||i!=="string"&&t(u=o.toString)&&!r(l=e(u,o)))return l;throw new n("Can't convert object to primitive value")},mn}var yn,mi;function Rs(){if(mi)return yn;mi=1;var e=So();return yn=function(t,r){return e[t]||(e[t]=r||{})},yn}var bn,yi;function Ps(){if(yi)return bn;yi=1;var e=Lt(),t=0,r=Math.random(),n=e(1.1.toString);return bn=function(o){return"Symbol("+(o===void 0?"":o)+")_"+n(++t+r,36)},bn}var Cn,bi;function eh(){if(bi)return Cn;bi=1;var e=ve(),t=Rs(),r=Er(),n=Ps(),o=Ts(),i=Ns(),u=e.Symbol,l=t("wks"),s=i?u.for||u:u&&u.withoutSetter||n;return Cn=function(d){return r(l,d)||(l[d]=o&&r(u,d)?u[d]:s("Symbol."+d)),l[d]},Cn}var wn,Ci;function th(){if(Ci)return wn;Ci=1;var e=_s(),t=Ht(),r=As(),n=Zp(),o=Qp(),i=eh(),u=TypeError,l=i("toPrimitive");return wn=function(s,d){if(!t(s)||r(s))return s;var c=n(s,l),f;if(c){if(d===void 0&&(d="default"),f=e(c,s,d),!t(f)||r(f))return f;throw new u("Can't convert object to primitive value")}return d===void 0&&(d="number"),o(s,d)},wn}var Sn,wi;function rh(){if(wi)return Sn;wi=1;var e=th(),t=As();return Sn=function(r){var n=e(r,"string");return t(n)?n:n+""},Sn}var Si;function js(){if(Si)return en;Si=1;var e=Ye(),t=Hp(),r=Up(),n=ks(),o=rh(),i=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s="enumerable",d="configurable",c="writable";return en.f=e?r?function(p,h,y){if(n(p),h=o(h),n(y),typeof p=="function"&&h==="prototype"&&"value"in y&&c in y&&!y[c]){var b=l(p,h);b&&b[c]&&(p[h]=y.value,y={configurable:d in y?y[d]:b[d],enumerable:s in y?y[s]:b[s],writable:!1})}return u(p,h,y)}:u:function(p,h,y){if(n(p),h=o(h),n(y),t)try{return u(p,h,y)}catch{}if("get"in y||"set"in y)throw new i("Accessors not supported");return"value"in y&&(p[h]=y.value),p},en}var On,Oi;function nh(){return Oi||(Oi=1,On=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),On}var xn,xi;function oh(){if(xi)return xn;xi=1;var e=Ye(),t=js(),r=nh();return xn=e?function(n,o,i){return t.f(n,o,r(1,i))}:function(n,o,i){return n[o]=i,n},xn}var En,Ei;function ah(){if(Ei)return En;Ei=1;var e=Rs(),t=Ps(),r=e("keys");return En=function(n){return r[n]||(r[n]=t(n))},En}var kn,ki;function ih(){return ki||(ki=1,kn={}),kn}var _n,_i;function lh(){if(_i)return _n;_i=1;var e=Gp(),t=ve(),r=Ht(),n=oh(),o=Er(),i=So(),u=ah(),l=ih(),s="Object already initialized",d=t.TypeError,c=t.WeakMap,f,p,h,y=function(m){return h(m)?p(m):f(m,{})},b=function(m){return function(C){var O;if(!r(C)||(O=p(C)).type!==m)throw new d("Incompatible receiver, "+m+" required");return O}};if(e||i.state){var v=i.state||(i.state=new c);v.get=v.get,v.has=v.has,v.set=v.set,f=function(m,C){if(v.has(m))throw new d(s);return C.facade=m,v.set(m,C),C},p=function(m){return v.get(m)||{}},h=function(m){return v.has(m)}}else{var g=u("state");l[g]=!0,f=function(m,C){if(o(m,g))throw new d(s);return C.facade=m,n(m,g,C),C},p=function(m){return o(m,g)?m[g]:{}},h=function(m){return o(m,g)}}return _n={set:f,get:p,has:h,enforce:y,getterFor:b},_n}var Ti;function sh(){if(Ti)return Mr.exports;Ti=1;var e=Lt(),t=Ke(),r=$e(),n=Er(),o=Ye(),i=Fp().CONFIGURABLE,u=Dp(),l=lh(),s=l.enforce,d=l.get,c=String,f=Object.defineProperty,p=e("".slice),h=e("".replace),y=e([].join),b=o&&!t(function(){return f(function(){},"length",{value:8}).length!==8}),v=String(String).split("String"),g=Mr.exports=function(m,C,O){p(c(C),0,7)==="Symbol("&&(C="["+h(c(C),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),O&&O.getter&&(C="get "+C),O&&O.setter&&(C="set "+C),(!n(m,"name")||i&&m.name!==C)&&(o?f(m,"name",{value:C,configurable:!0}):m.name=C),b&&O&&n(O,"arity")&&m.length!==O.arity&&f(m,"length",{value:O.arity});try{O&&n(O,"constructor")&&O.constructor?o&&f(m,"prototype",{writable:!1}):m.prototype&&(m.prototype=void 0)}catch{}var k=s(m);return n(k,"source")||(k.source=y(v,typeof C=="string"?C:"")),m};return Function.prototype.toString=g(function(){return r(this)&&d(this).source||u(this)},"toString"),Mr.exports}var Tn,Ni;function uh(){if(Ni)return Tn;Ni=1;var e=sh(),t=js();return Tn=function(r,n,o){return o.get&&e(o.get,n,{getter:!0}),o.set&&e(o.set,n,{setter:!0}),t.f(r,n,o)},Tn}var Nn,Ai;function ch(){if(Ai)return Nn;Ai=1;var e=ve(),t=Ke(),r=e.RegExp,n=!t(function(){var o=!0;try{r(".","d")}catch{o=!1}var i={},u="",l=o?"dgimsy":"gimsy",s=function(p,h){Object.defineProperty(i,p,{get:function(){return u+=h,!0}})},d={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};o&&(d.hasIndices="d");for(var c in d)s(c,d[c]);var f=Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(i);return f!==l||u!==l});return Nn={correct:n},Nn}var An,Ri;function dh(){if(Ri)return An;Ri=1;var e=ks();return An=function(){var t=e(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},An}var Pi;function fh(){if(Pi)return Ba;Pi=1;var e=Ye(),t=uh(),r=ch(),n=dh();return e&&!r.correct&&(t(RegExp.prototype,"flags",{configurable:!0,get:n}),r.correct=!0),Ba}fh();var ji=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oo(e){var t={exports:{}};return e(t,t.exports),t.exports}var er=function(e){return e&&e.Math==Math&&e},z=er(typeof globalThis=="object"&&globalThis)||er(typeof window=="object"&&window)||er(typeof self=="object"&&self)||er(typeof ji=="object"&&ji)||(function(){return this})()||Function("return this")(),q=function(e){try{return!!e()}catch{return!0}},le=!q(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ii={}.propertyIsEnumerable,Vi=Object.getOwnPropertyDescriptor,ph={f:Vi&&!Ii.call({1:2},1)?function(e){var t=Vi(this,e);return!!t&&t.enumerable}:Ii},kr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},hh={}.toString,ke=function(e){return hh.call(e).slice(8,-1)},vh="".split,_r=q(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return ke(e)=="String"?vh.call(e,""):Object(e)}:Object,Pe=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},gt=function(e){return _r(Pe(e))},W=function(e){return typeof e=="object"?e!==null:typeof e=="function"},xo=function(e,t){if(!W(e))return e;var r,n;if(t&&typeof(r=e.toString)=="function"&&!W(n=r.call(e))||typeof(r=e.valueOf)=="function"&&!W(n=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!W(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},gh={}.hasOwnProperty,U=function(e,t){return gh.call(e,t)},no=z.document,mh=W(no)&&W(no.createElement),Is=function(e){return mh?no.createElement(e):{}},Vs=!le&&!q(function(){return Object.defineProperty(Is("div"),"a",{get:function(){return 7}}).a!=7}),$i=Object.getOwnPropertyDescriptor,Eo={f:le?$i:function(e,t){if(e=gt(e),t=xo(t,!0),Vs)try{return $i(e,t)}catch{}if(U(e,t))return kr(!ph.f.call(e,t),e[t])}},Z=function(e){if(!W(e))throw TypeError(String(e)+" is not an object");return e},Bi=Object.defineProperty,Te={f:le?Bi:function(e,t,r){if(Z(e),t=xo(t,!0),Z(r),Vs)try{return Bi(e,t,r)}catch{}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},ue=le?function(e,t,r){return Te.f(e,t,kr(1,r))}:function(e,t,r){return e[t]=r,e},ko=function(e,t){try{ue(z,e,t)}catch{z[e]=t}return t},Ue=z["__core-js_shared__"]||ko("__core-js_shared__",{}),yh=Function.toString;typeof Ue.inspectSource!="function"&&(Ue.inspectSource=function(e){return yh.call(e)});var cr,Rt,dr,$s=Ue.inspectSource,Fi=z.WeakMap,bh=typeof Fi=="function"&&/native code/.test($s(Fi)),Bs=Oo(function(e){(e.exports=function(t,r){return Ue[t]||(Ue[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Ch=0,wh=Math.random(),_o=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++Ch+wh).toString(36)},Mi=Bs("keys"),To=function(e){return Mi[e]||(Mi[e]=_o(e))},Tr={},Sh=z.WeakMap;if(bh){var Qe=Ue.state||(Ue.state=new Sh),Oh=Qe.get,xh=Qe.has,Eh=Qe.set;cr=function(e,t){return t.facade=e,Eh.call(Qe,e,t),t},Rt=function(e){return Oh.call(Qe,e)||{}},dr=function(e){return xh.call(Qe,e)}}else{var St=To("state");Tr[St]=!0,cr=function(e,t){return t.facade=e,ue(e,St,t),t},Rt=function(e){return U(e,St)?e[St]:{}},dr=function(e){return U(e,St)}}var je={set:cr,get:Rt,has:dr,enforce:function(e){return dr(e)?Rt(e):cr(e,{})},getterFor:function(e){return function(t){var r;if(!W(t)||(r=Rt(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},Ie=Oo(function(e){var t=je.get,r=je.enforce,n=String(String).split("String");(e.exports=function(o,i,u,l){var s,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet;typeof u=="function"&&(typeof i!="string"||U(u,"name")||ue(u,"name",i),(s=r(u)).source||(s.source=n.join(typeof i=="string"?i:""))),o!==z?(d?!f&&o[i]&&(c=!0):delete o[i],c?o[i]=u:ue(o,i,u)):c?o[i]=u:ko(i,u)})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||$s(this)})}),Rn=z,qi=function(e){return typeof e=="function"?e:void 0},Nr=function(e,t){return arguments.length<2?qi(Rn[e])||qi(z[e]):Rn[e]&&Rn[e][t]||z[e]&&z[e][t]},kh=Math.ceil,_h=Math.floor,mt=function(e){return isNaN(e=+e)?0:(e>0?_h:kh)(e)},Th=Math.min,ie=function(e){return e>0?Th(mt(e),9007199254740991):0},Nh=Math.max,Ah=Math.min,fr=function(e,t){var r=mt(e);return r<0?Nh(r+t,0):Ah(r,t)},Rh=function(e){return function(t,r,n){var o,i=gt(t),u=ie(i.length),l=fr(n,u);if(e&&r!=r){for(;u>l;)if((o=i[l++])!=o)return!0}else for(;u>l;l++)if((e||l in i)&&i[l]===r)return e||l||0;return!e&&-1}},Fs={indexOf:Rh(!1)},Ph=Fs.indexOf,Ms=function(e,t){var r,n=gt(e),o=0,i=[];for(r in n)!U(Tr,r)&&U(n,r)&&i.push(r);for(;t.length>o;)U(n,r=t[o++])&&(~Ph(i,r)||i.push(r));return i},pr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jh=pr.concat("length","prototype"),Ih={f:Object.getOwnPropertyNames||function(e){return Ms(e,jh)}},Vh={f:Object.getOwnPropertySymbols},$h=Nr("Reflect","ownKeys")||function(e){var t=Ih.f(Z(e)),r=Vh.f;return r?t.concat(r(e)):t},Bh=function(e,t){for(var r=$h(t),n=Te.f,o=Eo.f,i=0;i<r.length;i++){var u=r[i];U(e,u)||n(e,u,o(t,u))}},Fh=/#|\.prototype\./,Ut=function(e,t){var r=qh[Mh(e)];return r==Gh||r!=Dh&&(typeof t=="function"?q(t):!!t)},Mh=Ut.normalize=function(e){return String(e).replace(Fh,".").toLowerCase()},qh=Ut.data={},Dh=Ut.NATIVE="N",Gh=Ut.POLYFILL="P",oo=Ut,Lh=Eo.f,J=function(e,t){var r,n,o,i,u,l=e.target,s=e.global,d=e.stat;if(r=s?z:d?z[l]||ko(l,{}):(z[l]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(u=Lh(r,n))&&u.value:r[n],!oo(s?n:l+(d?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Bh(i,o)}(e.sham||o&&o.sham)&&ue(i,"sham",!0),Ie(r,n,i,e)}},No=function(e,t){var r=[][e];return!!r&&q(function(){r.call(null,t||function(){throw 1},1)})},Hh=Object.defineProperty,Pn={},Di=function(e){throw e},yt=function(e,t){if(U(Pn,e))return Pn[e];t||(t={});var r=[][e],n=!!U(t,"ACCESSORS")&&t.ACCESSORS,o=U(t,0)?t[0]:Di,i=U(t,1)?t[1]:void 0;return Pn[e]=!!r&&!q(function(){if(n&&!le)return!0;var u={length:-1};n?Hh(u,1,{enumerable:!0,get:Di}):u[1]=1,r.call(u,o,i)})},Uh=Fs.indexOf,qs=[].indexOf,Gi=!!qs&&1/[1].indexOf(1,-0)<0,zh=No("indexOf"),Wh=yt("indexOf",{ACCESSORS:!0,1:0});function Xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Je(e,t,r){return r&&Kh(e,r),e}J({target:"Array",proto:!0,forced:Gi||!zh||!Wh},{indexOf:function(e){return Gi?qs.apply(this,arguments)||0:Uh(this,e,arguments.length>1?arguments[1]:void 0)}});(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"isInBrowser",value:function(){return typeof window<"u"}},{key:"isServer",value:function(){return typeof window>"u"}},{key:"getUA",value:function(){return e.isInBrowser()?window.navigator.userAgent.toLowerCase():""}},{key:"isMobile",value:function(){return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion)}},{key:"isOpera",value:function(){return navigator.userAgent.indexOf("Opera")!==-1}},{key:"isIE",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie")>0}},{key:"isIE9",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie 9.0")>0}},{key:"isEdge",value:function(){var t=e.getUA();return t!==""&&t.indexOf("edge/")>0}},{key:"isChrome",value:function(){var t=e.getUA();return t!==""&&/chrome\/\d+/.test(t)&&!e.isEdge()}},{key:"isPhantomJS",value:function(){var t=e.getUA();return t!==""&&/phantomjs/.test(t)}},{key:"isFirefox",value:function(){var t=e.getUA();return t!==""&&/firefox/.test(t)}}]),e})();var Yh=[].join,Xh=_r!=Object,Jh=No("join",",");J({target:"Array",proto:!0,forced:Xh||!Jh},{join:function(e){return Yh.call(gt(this),e===void 0?",":e)}});var et,hr,Ne=function(e){return Object(Pe(e))},ft=Array.isArray||function(e){return ke(e)=="Array"},Ds=!!Object.getOwnPropertySymbols&&!q(function(){return!String(Symbol())}),Zh=Ds&&!Symbol.sham&&typeof Symbol.iterator=="symbol",tr=Bs("wks"),Pt=z.Symbol,Qh=Zh?Pt:Pt&&Pt.withoutSetter||_o,L=function(e){return U(tr,e)||(Ds&&U(Pt,e)?tr[e]=Pt[e]:tr[e]=Qh("Symbol."+e)),tr[e]},ev=L("species"),Ar=function(e,t){var r;return ft(e)&&(typeof(r=e.constructor)!="function"||r!==Array&&!ft(r.prototype)?W(r)&&(r=r[ev])===null&&(r=void 0):r=void 0),new(r===void 0?Array:r)(t===0?0:t)},pt=function(e,t,r){var n=xo(t);n in e?Te.f(e,n,kr(0,r)):e[n]=r},jn=Nr("navigator","userAgent")||"",Li=z.process,Hi=Li&&Li.versions,Ui=Hi&&Hi.v8;Ui?hr=(et=Ui.split("."))[0]+et[1]:jn&&(!(et=jn.match(/Edge\/(\d+)/))||et[1]>=74)&&(et=jn.match(/Chrome\/(\d+)/))&&(hr=et[1]);var vr=hr&&+hr,tv=L("species"),Ao=function(e){return vr>=51||!q(function(){var t=[];return(t.constructor={})[tv]=function(){return{foo:1}},t[e](Boolean).foo!==1})},rv=Ao("splice"),nv=yt("splice",{ACCESSORS:!0,0:0,1:2}),ov=Math.max,av=Math.min;J({target:"Array",proto:!0,forced:!rv||!nv},{splice:function(e,t){var r,n,o,i,u,l,s=Ne(this),d=ie(s.length),c=fr(e,d),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=d-c):(r=f-2,n=av(ov(mt(t),0),d-c)),d+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=Ar(s,n),i=0;i<n;i++)(u=c+i)in s&&pt(o,i,s[u]);if(o.length=n,r<n){for(i=c;i<d-n;i++)l=i+r,(u=i+n)in s?s[l]=s[u]:delete s[l];for(i=d;i>d-n+r;i--)delete s[i-1]}else if(r>n)for(i=d-n;i>c;i--)l=i+r-1,(u=i+n-1)in s?s[l]=s[u]:delete s[l];for(i=0;i<r;i++)s[i+c]=arguments[i+2];return s.length=d-n+r,o}});var Gs={};Gs[L("toStringTag")]="z";var Ro=String(Gs)==="[object z]",iv=L("toStringTag"),lv=ke((function(){return arguments})())=="Arguments",Ls=Ro?ke:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=Object(e),iv))=="string"?r:lv?ke(t):(n=ke(t))=="Object"&&typeof t.callee=="function"?"Arguments":n},sv=Ro?{}.toString:function(){return"[object "+Ls(this)+"]"};Ro||Ie(Object.prototype,"toString",sv,{unsafe:!0});var Hs=function(){var e=Z(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function zi(e,t){return RegExp(e,t)}var In,Vn,Wi={UNSUPPORTED_Y:q(function(){var e=zi("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),BROKEN_CARET:q(function(){var e=zi("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},gr=RegExp.prototype.exec,uv=String.prototype.replace,Us=gr,$n=(In=/a/,Vn=/b*/g,gr.call(In,"a"),gr.call(Vn,"a"),In.lastIndex!==0||Vn.lastIndex!==0),Ki=Wi.UNSUPPORTED_Y||Wi.BROKEN_CARET,Bn=/()??/.exec("")[1]!==void 0;($n||Bn||Ki)&&(Us=function(e){var t,r,n,o,i=this,u=Ki&&i.sticky,l=Hs.call(i),s=i.source,d=0,c=e;return u&&((l=l.replace("y","")).indexOf("g")===-1&&(l+="g"),c=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&e[i.lastIndex-1]!==`
|
|
19
|
+
`)&&(s="(?: "+s+")",c=" "+c,d++),r=new RegExp("^(?:"+s+")",l)),Bn&&(r=new RegExp("^"+s+"$(?!\\s)",l)),$n&&(t=i.lastIndex),n=gr.call(u?r:i,c),u?n?(n.input=n.input.slice(d),n[0]=n[0].slice(d),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:$n&&n&&(i.lastIndex=i.global?n.index+n[0].length:t),Bn&&n&&n.length>1&&uv.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(n[o]=void 0)}),n});var Ft=Us;J({target:"RegExp",proto:!0,forced:/./.exec!==Ft},{exec:Ft});var zs=RegExp.prototype,Ws=zs.toString,cv=q(function(){return Ws.call({source:"a",flags:"b"})!="/a/b"}),dv=Ws.name!="toString";(cv||dv)&&Ie(RegExp.prototype,"toString",function(){var e=Z(this),t=String(e.source),r=e.flags;return"/"+t+"/"+String(r===void 0&&e instanceof RegExp&&!("flags"in zs)?Hs.call(e):r)},{unsafe:!0});var fv=L("species"),pv=!q(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}),Yi="a".replace(/./,"$0")==="$0",Xi=L("replace"),Ji=!!/./[Xi]&&/./[Xi]("a","$0")==="",hv=!q(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Ks=function(e,t,r,n){var o=L(e),i=!q(function(){var f={};return f[o]=function(){return 7},""[e](f)!=7}),u=i&&!q(function(){var f=!1,p=/a/;return e==="split"&&((p={}).constructor={},p.constructor[fv]=function(){return p},p.flags="",p[o]=/./[o]),p.exec=function(){return f=!0,null},p[o](""),!f});if(!i||!u||e==="replace"&&(!pv||!Yi||Ji)||e==="split"&&!hv){var l=/./[o],s=r(o,""[e],function(f,p,h,y,b){return p.exec===Ft?i&&!b?{done:!0,value:l.call(p,h,y)}:{done:!0,value:f.call(h,p,y)}:{done:!1}},{REPLACE_KEEPS_$0:Yi,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Ji}),d=s[0],c=s[1];Ie(String.prototype,e,d),Ie(RegExp.prototype,o,function(f,p){return c.call(f,this,p)})}n&&ue(RegExp.prototype[o],"sham",!0)},vv=L("match"),Ys=function(e){var t;return W(e)&&((t=e[vv])!==void 0?!!t:ke(e)=="RegExp")},Po=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},gv=L("species"),mv=function(e){return function(t,r){var n,o,i=String(Pe(t)),u=mt(r),l=i.length;return u<0||u>=l?e?"":void 0:(n=i.charCodeAt(u))<55296||n>56319||u+1===l||(o=i.charCodeAt(u+1))<56320||o>57343?e?i.charAt(u):n:e?i.slice(u,u+2):o-56320+(n-55296<<10)+65536}},Xs={charAt:mv(!0)},yv=Xs.charAt,Js=function(e,t,r){return t+(r?yv(e,t).length:1)},ao=function(e,t){var r=e.exec;if(typeof r=="function"){var n=r.call(e,t);if(typeof n!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return n}if(ke(e)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return Ft.call(e,t)},bv=[].push,Cv=Math.min,tt=!q(function(){return!RegExp(4294967295,"y")});Ks("split",2,function(e,t,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var u=String(Pe(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[u];if(!Ys(o))return t.call(u,o,l);for(var s,d,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),h=0,y=new RegExp(o.source,p+"g");(s=Ft.call(y,u))&&!((d=y.lastIndex)>h&&(f.push(u.slice(h,s.index)),s.length>1&&s.index<u.length&&bv.apply(f,s.slice(1)),c=s[0].length,h=d,f.length>=l));)y.lastIndex===s.index&&y.lastIndex++;return h===u.length?!c&&y.test("")||f.push(""):f.push(u.slice(h)),f.length>l?f.slice(0,l):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:t.call(this,o,i)}:t,[function(o,i){var u=Pe(this),l=o?.[e];return l!==void 0?l.call(o,u,i):n.call(String(u),o,i)},function(o,i){var u=r(n,o,this,i,n!==t);if(u.done)return u.value;var l=Z(o),s=String(this),d=(function(O,k){var E,P=Z(O).constructor;return P===void 0||(E=Z(P)[gv])==null?k:Po(E)})(l,RegExp),c=l.unicode,f=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(tt?"y":"g"),p=new d(tt?l:"^(?:"+l.source+")",f),h=i===void 0?4294967295:i>>>0;if(h===0)return[];if(s.length===0)return ao(p,s)===null?[s]:[];for(var y=0,b=0,v=[];b<s.length;){p.lastIndex=tt?b:0;var g,m=ao(p,tt?s:s.slice(b));if(m===null||(g=Cv(ie(p.lastIndex+(tt?0:b)),s.length))===y)b=Js(s,b,c);else{if(v.push(s.slice(y,b)),v.length===h)return v;for(var C=1;C<=m.length-1;C++)if(v.push(m[C]),v.length===h)return v;b=y=g}}return v.push(s.slice(y)),v}]},!tt);var io=`
|
|
20
|
+
\v\f\r \u2028\u2029\uFEFF`,mr="["+io+"]",wv=RegExp("^"+mr+mr+"*"),Sv=RegExp(mr+mr+"*$"),Ov=function(e){return function(t){var r=String(Pe(t));return 1&e&&(r=r.replace(wv,"")),2&e&&(r=r.replace(Sv,"")),r}},xv={trim:Ov(3)},Ev=xv.trim;J({target:"String",proto:!0,forced:(function(e){return q(function(){return!!io[e]()||"
"[e]()!="
"||io[e].name!==e})})("trim")},{trim:function(){return Ev(this)}});var kv=Ao("slice"),_v=yt("slice",{ACCESSORS:!0,0:0,1:2}),Tv=L("species"),Nv=[].slice,Av=Math.max;J({target:"Array",proto:!0,forced:!kv||!_v},{slice:function(e,t){var r,n,o,i=gt(this),u=ie(i.length),l=fr(e,u),s=fr(t===void 0?u:t,u);if(ft(i)&&(typeof(r=i.constructor)!="function"||r!==Array&&!ft(r.prototype)?W(r)&&(r=r[Tv])===null&&(r=void 0):r=void 0,r===Array||r===void 0))return Nv.call(i,l,s);for(n=new(r===void 0?Array:r)(Av(s-l,0)),o=0;l<s;l++,o++)l in i&&pt(n,o,i[l]);return n.length=o,n}});var jo=Object.keys||function(e){return Ms(e,pr)},Rv=q(function(){jo(1)});J({target:"Object",stat:!0,forced:Rv},{keys:function(e){return jo(Ne(e))}});var Fn,Pv=function(e){if(Ys(e))throw TypeError("The method doesn't accept regular expressions");return e},jv=L("match"),Iv=Eo.f,Zi="".startsWith,Vv=Math.min,Zs=(function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[jv]=!1,"/./"[e](t)}catch{}}return!1})("startsWith"),$v=!(Zs||(Fn=Iv(String.prototype,"startsWith"),!Fn||Fn.writable));function Qs(e){return(Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}J({target:"String",proto:!0,forced:!$v&&!Zs},{startsWith:function(e){var t=String(Pe(this));Pv(e);var r=ie(Vv(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return Zi?Zi.call(t,n,r):t.slice(r,r+n.length)===n}});var rt=function(e){return typeof e=="string"},nt=function(e){return e!==null&&Qs(e)==="object"},Mt=(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"isWindow",value:function(t){return t===window}},{key:"addEventListener",value:function(t,r,n){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&r&&n&&t.addEventListener(r,n,o)}},{key:"removeEventListener",value:function(t,r,n){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&r&&n&&t.removeEventListener(r,n,o)}},{key:"triggerDragEvent",value:function(t,r){var n=!1,o=function(u){var l;(l=r.drag)===null||l===void 0||l.call(r,u)},i=function u(l){var s;e.removeEventListener(document,"mousemove",o),e.removeEventListener(document,"mouseup",u),document.onselectstart=null,document.ondragstart=null,n=!1,(s=r.end)===null||s===void 0||s.call(r,l)};e.addEventListener(t,"mousedown",function(u){var l;n||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},e.addEventListener(document,"mousemove",o),e.addEventListener(document,"mouseup",i),n=!0,(l=r.start)===null||l===void 0||l.call(r,u))})}},{key:"getBoundingClientRect",value:function(t){return t&&nt(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,r){return!!(t&&nt(t)&&rt(r)&&t.nodeType===1)&&t.classList.contains(r.trim())}},{key:"addClass",value:function(t,r){if(t&&nt(t)&&rt(r)&&t.nodeType===1&&(r=r.trim(),!e.hasClass(t,r))){var n=t.className;t.className=n?n+" "+r:r}}},{key:"removeClass",value:function(t,r){if(t&&nt(t)&&rt(r)&&t.nodeType===1&&typeof t.className=="string"){r=r.trim();for(var n=t.className.trim().split(" "),o=n.length-1;o>=0;o--)n[o]=n[o].trim(),n[o]&&n[o]!==r||n.splice(o,1);t.className=n.join(" ")}}},{key:"toggleClass",value:function(t,r,n){t&&nt(t)&&rt(r)&&t.nodeType===1&&t.classList.toggle(r,n)}},{key:"replaceClass",value:function(t,r,n){t&&nt(t)&&rt(r)&&rt(n)&&t.nodeType===1&&(r=r.trim(),n=n.trim(),e.removeClass(t,r),e.addClass(t,n))}},{key:"getScrollTop",value:function(t){var r="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(r,0)}},{key:"setScrollTop",value:function(t,r){"scrollTop"in t?t.scrollTop=r:t.scrollTo(t.scrollX,r)}},{key:"getRootScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},{key:"setRootScrollTop",value:function(t){e.setScrollTop(window,t),e.setScrollTop(document.body,t)}},{key:"getElementTop",value:function(t,r){if(e.isWindow(t))return 0;var n=r?e.getScrollTop(r):e.getRootScrollTop();return t.getBoundingClientRect().top+n}},{key:"getVisibleHeight",value:function(t){return e.isWindow(t)?t.innerHeight:t.getBoundingClientRect().height}},{key:"isHidden",value:function(t){if(!t)return!1;var r=window.getComputedStyle(t),n=r.display==="none",o=t.offsetParent===null&&r.position!=="fixed";return n||o}},{key:"triggerEvent",value:function(t,r){if("createEvent"in document){var n=document.createEvent("HTMLEvents");n.initEvent(r,!1,!0),t.dispatchEvent(n)}}},{key:"calcAngle",value:function(t,r){var n=t.getBoundingClientRect(),o=n.left+n.width/2,i=n.top+n.height/2,u=Math.abs(o-r.clientX),l=Math.abs(i-r.clientY),s=l/Math.sqrt(Math.pow(u,2)+Math.pow(l,2)),d=Math.acos(s),c=Math.floor(180/(Math.PI/d));return r.clientX>o&&r.clientY>i&&(c=180-c),r.clientX==o&&r.clientY>i&&(c=180),r.clientX>o&&r.clientY==i&&(c=90),r.clientX<o&&r.clientY>i&&(c=180+c),r.clientX<o&&r.clientY==i&&(c=270),r.clientX<o&&r.clientY<i&&(c=360-c),c}},{key:"querySelector",value:function(t,r){return r?r.querySelector(t):document.querySelector(t)}},{key:"createElement",value:function(t){for(var r=document.createElement(t),n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];for(var u=0;u<o.length;u++)o[u]&&r.classList.add(o[u]);return r}},{key:"appendChild",value:function(t){for(var r=0;r<(arguments.length<=1?0:arguments.length-1);r++)t.appendChild(r+1<1||arguments.length<=r+1?void 0:arguments[r+1])}},{key:"getWindow",value:function(t){if(t.toString()!=="[object Window]"){var r=t.ownerDocument;return r&&r.defaultView||window}return t}},{key:"isElement",value:function(t){return t instanceof this.getWindow(t).Element||t instanceof Element}},{key:"isHTMLElement",value:function(t){return t instanceof this.getWindow(t).HTMLElement||t instanceof HTMLElement}},{key:"isShadowRoot",value:function(t){return typeof ShadowRoot<"u"&&(t instanceof this.getWindow(t).ShadowRoot||t instanceof ShadowRoot)}},{key:"getWindowScroll",value:function(t){var r=this.getWindow(t);return{scrollLeft:r.pageXOffset||0,scrollTop:r.pageYOffset||0}}}]),e})(),Bv=Math.floor,Fv="".replace,Mv=/\$([$&'`]|\d\d?|<[^>]*>)/g,qv=/\$([$&'`]|\d\d?)/g,Dv=function(e,t,r,n,o,i){var u=r+e.length,l=n.length,s=qv;return o!==void 0&&(o=Ne(o),s=Mv),Fv.call(i,s,function(d,c){var f;switch(c.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(u);case"<":f=o[c.slice(1,-1)];break;default:var p=+c;if(p===0)return d;if(p>l){var h=Bv(p/10);return h===0?d:h<=l?n[h-1]===void 0?c.charAt(1):n[h-1]+c.charAt(1):d}f=n[p-1]}return f===void 0?"":f})},Gv=Math.max,Lv=Math.min;Ks("replace",2,function(e,t,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=n.REPLACE_KEEPS_$0,u=o?"$":"$0";return[function(l,s){var d=Pe(this),c=l?.[e];return c!==void 0?c.call(l,d,s):t.call(String(d),l,s)},function(l,s){if(!o&&i||typeof s=="string"&&s.indexOf(u)===-1){var d=r(t,l,this,s);if(d.done)return d.value}var c=Z(l),f=String(this),p=typeof s=="function";p||(s=String(s));var h=c.global;if(h){var y=c.unicode;c.lastIndex=0}for(var b=[];;){var v=ao(c,f);if(v===null||(b.push(v),!h))break;String(v[0])===""&&(c.lastIndex=Js(f,ie(c.lastIndex),y))}for(var g,m="",C=0,O=0;O<b.length;O++){v=b[O];for(var k=String(v[0]),E=Gv(Lv(mt(v.index),f.length),0),P=[],B=1;B<v.length;B++)P.push((g=v[B])===void 0?g:String(g));var I=v.groups;if(p){var F=[k].concat(P,E,f);I!==void 0&&F.push(I);var S=String(s.apply(void 0,F))}else S=Dv(k,f,E,P,I,s);E>=C&&(m+=f.slice(C,E)+S,C=E+k.length)}return m+f.slice(C)}]});(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"camelize",value:function(t){return t.replace(/-(\w)/g,function(r,n){return n?n.toUpperCase():""})}},{key:"capitalize",value:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}]),e})();(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"_clone",value:function(){}}]),e})();var eu=L("isConcatSpreadable"),Hv=vr>=51||!q(function(){var e=[];return e[eu]=!1,e.concat()[0]!==e}),Uv=Ao("concat"),zv=function(e){if(!W(e))return!1;var t=e[eu];return t!==void 0?!!t:ft(e)};J({target:"Array",proto:!0,forced:!Hv||!Uv},{concat:function(e){var t,r,n,o,i,u=Ne(this),l=Ar(u,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(zv(i=t===-1?u:arguments[t])){if(s+(o=ie(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&pt(l,s,i[r])}else{if(s>=9007199254740991)throw TypeError("Maximum allowed index exceeded");pt(l,s++,i)}return l.length=s,l}});var Mn,zt=function(e,t,r){if(Po(e),t===void 0)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,i){return e.call(t,n,o,i)}}return function(){return e.apply(t,arguments)}},Qi=[].push,el=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,u=e==7,l=e==5||i;return function(s,d,c,f){for(var p,h,y=Ne(s),b=_r(y),v=zt(d,c,3),g=ie(b.length),m=0,C=f||Ar,O=t?C(s,g):r||u?C(s,0):void 0;g>m;m++)if((l||m in b)&&(h=v(p=b[m],m,y),e))if(t)O[m]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:Qi.call(O,p)}else switch(e){case 4:return!1;case 7:Qi.call(O,p)}return i?-1:n||o?o:O}},tu={find:el(5),findIndex:el(6)},Wv=le?Object.defineProperties:function(e,t){Z(e);for(var r,n=jo(t),o=n.length,i=0;o>i;)Te.f(e,r=n[i++],t[r]);return e},Kv=Nr("document","documentElement"),ru=To("IE_PROTO"),qn=function(){},tl=function(e){return"<script>"+e+"<\/script>"},ar=function(){try{Mn=document.domain&&new ActiveXObject("htmlfile")}catch{}var e,t;ar=Mn?(function(n){n.write(tl("")),n.close();var o=n.parentWindow.Object;return n=null,o})(Mn):((t=Is("iframe")).style.display="none",Kv.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(tl("document.F=Object")),e.close(),e.F);for(var r=pr.length;r--;)delete ar.prototype[pr[r]];return ar()};Tr[ru]=!0;var Io=Object.create||function(e,t){var r;return e!==null?(qn.prototype=Z(e),r=new qn,qn.prototype=null,r[ru]=e):r=ar(),t===void 0?r:Wv(r,t)},lo=L("unscopables"),so=Array.prototype;so[lo]==null&&Te.f(so,lo,{configurable:!0,value:Io(null)});var at=function(e){so[lo][e]=!0},Yv=tu.find,rl=!0,Xv=yt("find");"find"in[]&&Array(1).find(function(){rl=!1}),J({target:"Array",proto:!0,forced:rl||!Xv},{find:function(e){return Yv(this,e,arguments.length>1?arguments[1]:void 0)}}),at("find");var Jv=tu.findIndex,nl=!0,Zv=yt("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){nl=!1}),J({target:"Array",proto:!0,forced:nl||!Zv},{findIndex:function(e){return Jv(this,e,arguments.length>1?arguments[1]:void 0)}}),at("findIndex");var nu=function(e,t,r,n,o,i,u,l){for(var s,d=o,c=0,f=!!u&&zt(u,l,3);c<n;){if(c in r){if(s=f?f(r[c],c,t):r[c],i>0&&ft(s))d=nu(e,t,s,ie(s.length),d,i-1)-1;else{if(d>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[d]=s}d++}c++}return d},Qv=nu;J({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Ne(this),r=ie(t.length),n=Ar(t,0);return n.length=Qv(n,t,t,r,0,e===void 0?1:mt(e)),n}});var uo=function(e){var t=e.return;if(t!==void 0)return Z(t.call(e)).value},eg=function(e,t,r,n){try{return n?t(Z(r)[0],r[1]):t(r)}catch(o){throw uo(e),o}},ht={},tg=L("iterator"),rg=Array.prototype,ou=function(e){return e!==void 0&&(ht.Array===e||rg[tg]===e)},ng=L("iterator"),au=function(e){if(e!=null)return e[ng]||e["@@iterator"]||ht[Ls(e)]},iu=L("iterator"),lu=!1;try{var og=0,ol={next:function(){return{done:!!og++}},return:function(){lu=!0}};ol[iu]=function(){return this},Array.from(ol,function(){throw 2})}catch{}var su=function(e,t){if(!lu)return!1;var r=!1;try{var n={};n[iu]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},ag=!su(function(e){Array.from(e)});J({target:"Array",stat:!0,forced:ag},{from:function(e){var t,r,n,o,i,u,l=Ne(e),s=typeof this=="function"?this:Array,d=arguments.length,c=d>1?arguments[1]:void 0,f=c!==void 0,p=au(l),h=0;if(f&&(c=zt(c,d>2?arguments[2]:void 0,2)),p==null||s==Array&&ou(p))for(r=new s(t=ie(l.length));t>h;h++)u=f?c(l[h],h):l[h],pt(r,h,u);else for(i=(o=p.call(l)).next,r=new s;!(n=i.call(o)).done;h++)u=f?eg(o,c,[n.value,h],!0):n.value,pt(r,h,u);return r.length=h,r}});var ig=function(e){return function(t,r,n,o){Po(r);var i=Ne(t),u=_r(i),l=ie(i.length),s=e?l-1:0,d=e?-1:1;if(n<2)for(;;){if(s in u){o=u[s],s+=d;break}if(s+=d,e?s<0:l<=s)throw TypeError("Reduce of empty array with no initial value")}for(;e?s>=0:l>s;s+=d)s in u&&(o=r(o,u[s],s,i));return o}},lg={left:ig(!1)},sg=ke(z.process)=="process",ug=lg.left,cg=No("reduce"),dg=yt("reduce",{1:0});J({target:"Array",proto:!0,forced:!cg||!dg||!sg&&vr>79&&vr<83},{reduce:function(e){return ug(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}}),at("flat");var Me,al,il,fg=!q(function(){return Object.isExtensible(Object.preventExtensions({}))}),uu=Oo(function(e){var t=Te.f,r=_o("meta"),n=0,o=Object.isExtensible||function(){return!0},i=function(l){t(l,r,{value:{objectID:"O"+ ++n,weakData:{}}})},u=e.exports={REQUIRED:!1,fastKey:function(l,s){if(!W(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!U(l,r)){if(!o(l))return"F";if(!s)return"E";i(l)}return l[r].objectID},getWeakData:function(l,s){if(!U(l,r)){if(!o(l))return!0;if(!s)return!1;i(l)}return l[r].weakData},onFreeze:function(l){return fg&&u.REQUIRED&&o(l)&&!U(l,r)&&i(l),l}};Tr[r]=!0}),Ot=function(e,t){this.stopped=e,this.result=t},ll=function(e,t,r){var n,o,i,u,l,s,d,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),y=zt(t,c,1+f+h),b=function(g){return n&&uo(n),new Ot(!0,g)},v=function(g){return f?(Z(g),h?y(g[0],g[1],b):y(g[0],g[1])):h?y(g,b):y(g)};if(p)n=e;else{if(typeof(o=au(e))!="function")throw TypeError("Target is not iterable");if(ou(o)){for(i=0,u=ie(e.length);u>i;i++)if((l=v(e[i]))&&l instanceof Ot)return l;return new Ot(!1)}n=o.call(e)}for(s=n.next;!(d=s.call(n)).done;){try{l=v(d.value)}catch(g){throw uo(n),g}if(typeof l=="object"&&l&&l instanceof Ot)return l}return new Ot(!1)},sl=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e},pg=Te.f,ul=L("toStringTag"),co=function(e,t,r){e&&!U(e=r?e:e.prototype,ul)&&pg(e,ul,{configurable:!0,value:t})},yr=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch{}return function(n,o){return Z(n),(function(i){if(!W(i)&&i!==null)throw TypeError("Can't set "+String(i)+" as a prototype")})(o),t?e.call(n,o):n.__proto__=o,n}})():void 0),cl=function(e,t,r){for(var n in t)Ie(e,n,t[n],r);return e},hg=!q(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),dl=To("IE_PROTO"),vg=Object.prototype,br=hg?Object.getPrototypeOf:function(e){return e=Ne(e),U(e,dl)?e[dl]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?vg:null},Dn=L("iterator"),cu=!1;[].keys&&("next"in(il=[].keys())?(al=br(br(il)))!==Object.prototype&&(Me=al):cu=!0),(Me==null||q(function(){var e={};return Me[Dn].call(e)!==e}))&&(Me={}),U(Me,Dn)||ue(Me,Dn,function(){return this});var Vo={IteratorPrototype:Me,BUGGY_SAFARI_ITERATORS:cu},gg=Vo.IteratorPrototype,mg=function(){return this},Gn=Vo.IteratorPrototype,rr=Vo.BUGGY_SAFARI_ITERATORS,xt=L("iterator"),yg=function(){return this},$o=function(e,t,r,n,o,i,u){(function(g,m,C){var O=m+" Iterator";g.prototype=Io(gg,{next:kr(1,C)}),co(g,O,!1),ht[O]=mg})(r,t,n);var l,s,d,c=function(g){if(g===o&&b)return b;if(!rr&&g in h)return h[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,y=h[xt]||h["@@iterator"]||o&&h[o],b=!rr&&y||c(o),v=t=="Array"&&h.entries||y;if(v&&(l=br(v.call(new e)),Gn!==Object.prototype&&l.next&&(br(l)!==Gn&&(yr?yr(l,Gn):typeof l[xt]!="function"&&ue(l,xt,yg)),co(l,f,!0))),o=="values"&&y&&y.name!=="values"&&(p=!0,b=function(){return y.call(this)}),h[xt]!==b&&ue(h,xt,b),ht[t]=b,o)if(s={values:c("values"),keys:i?b:c("keys"),entries:c("entries")},u)for(d in s)(rr||p||!(d in h))&&Ie(h,d,s[d]);else J({target:t,proto:!0,forced:rr||p},s);return s},fl=L("species"),bg=Te.f,pl=uu.fastKey,hl=je.set,Ln=je.getterFor;(function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",u=z[e],l=u&&u.prototype,s=u,d={},c=function(v){var g=l[v];Ie(l,v,v=="add"?function(m){return g.call(this,m===0?0:m),this}:v=="delete"?function(m){return!(o&&!W(m))&&g.call(this,m===0?0:m)}:v=="get"?function(m){return o&&!W(m)?void 0:g.call(this,m===0?0:m)}:v=="has"?function(m){return!(o&&!W(m))&&g.call(this,m===0?0:m)}:function(m,C){return g.call(this,m===0?0:m,C),this})};if(oo(e,typeof u!="function"||!(o||l.forEach&&!q(function(){new u().entries().next()}))))s=r.getConstructor(t,e,n,i),uu.REQUIRED=!0;else if(oo(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,h=q(function(){f.has(1)}),y=su(function(v){new u(v)}),b=!o&&q(function(){for(var v=new u,g=5;g--;)v[i](g,g);return!v.has(-0)});y||((s=t(function(v,g){sl(v,s,e);var m=(function(C,O,k){var E,P;return yr&&typeof(E=O.constructor)=="function"&&E!==k&&W(P=E.prototype)&&P!==k.prototype&&yr(C,P),C})(new u,v,s);return g!=null&&ll(g,m[i],{that:m,AS_ENTRIES:n}),m})).prototype=l,l.constructor=s),(h||b)&&(c("delete"),c("has"),n&&c("get")),(b||p)&&c(i),o&&l.clear&&delete l.clear}d[e]=s,J({global:!0,forced:s!=u},d),co(s,e),o||r.setStrong(s,e,n)})("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},{getConstructor:function(e,t,r,n){var o=e(function(s,d){sl(s,o,t),hl(s,{type:t,index:Io(null),first:void 0,last:void 0,size:0}),le||(s.size=0),d!=null&&ll(d,s[n],{that:s,AS_ENTRIES:r})}),i=Ln(t),u=function(s,d,c){var f,p,h=i(s),y=l(s,d);return y?y.value=c:(h.last=y={index:p=pl(d,!0),key:d,value:c,previous:f=h.last,next:void 0,removed:!1},h.first||(h.first=y),f&&(f.next=y),le?h.size++:s.size++,p!=="F"&&(h.index[p]=y)),s},l=function(s,d){var c,f=i(s),p=pl(d);if(p!=="F")return f.index[p];for(c=f.first;c;c=c.next)if(c.key==d)return c};return cl(o.prototype,{clear:function(){for(var s=i(this),d=s.index,c=s.first;c;)c.removed=!0,c.previous&&(c.previous=c.previous.next=void 0),delete d[c.index],c=c.next;s.first=s.last=void 0,le?s.size=0:this.size=0},delete:function(s){var d=this,c=i(d),f=l(d,s);if(f){var p=f.next,h=f.previous;delete c.index[f.index],f.removed=!0,h&&(h.next=p),p&&(p.previous=h),c.first==f&&(c.first=p),c.last==f&&(c.last=h),le?c.size--:d.size--}return!!f},forEach:function(s){for(var d,c=i(this),f=zt(s,arguments.length>1?arguments[1]:void 0,3);d=d?d.next:c.first;)for(f(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(s){return!!l(this,s)}}),cl(o.prototype,r?{get:function(s){var d=l(this,s);return d&&d.value},set:function(s,d){return u(this,s===0?0:s,d)}}:{add:function(s){return u(this,s=s===0?0:s,s)}}),le&&bg(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=Ln(t),i=Ln(n);$o(e,t,function(u,l){hl(this,{type:n,target:u,state:o(u),kind:l,last:void 0})},function(){for(var u=i(this),l=u.kind,s=u.last;s&&s.removed;)s=s.previous;return u.target&&(u.last=s=s?s.next:u.state.first)?l=="keys"?{value:s.key,done:!1}:l=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(u.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),(function(u){var l=Nr(u),s=Te.f;le&&l&&!l[fl]&&s(l,fl,{configurable:!0,get:function(){return this}})})(t)}});var Cg=Xs.charAt,wg=je.set,Sg=je.getterFor("String Iterator");$o(String,"String",function(e){wg(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=Sg(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=Cg(r,n),t.index+=e.length,{value:e,done:!1})});var vl={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Og=je.set,xg=je.getterFor("Array Iterator"),Tt=$o(Array,"Array",function(e,t){Og(this,{type:"Array Iterator",target:gt(e),index:0,kind:t})},function(){var e=xg(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");ht.Arguments=ht.Array,at("keys"),at("values"),at("entries");var Hn=L("iterator"),gl=L("toStringTag"),Un=Tt.values;for(var zn in vl){var ml=z[zn],Oe=ml&&ml.prototype;if(Oe){if(Oe[Hn]!==Un)try{ue(Oe,Hn,Un)}catch{Oe[Hn]=Un}if(Oe[gl]||ue(Oe,gl,zn),vl[zn]){for(var ot in Tt)if(Oe[ot]!==Tt[ot])try{ue(Oe,ot,Tt[ot])}catch{Oe[ot]=Tt[ot]}}}}(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"deduplicate",value:function(t){return Array.from(new Set(t))}},{key:"flat",value:function(t){return t.reduce(function(r,n){var o=Array.isArray(n)?e.flat(n):n;return r.concat(o)},[])}},{key:"find",value:function(t,r){return t.find(r)}},{key:"findIndex",value:function(t,r){return t.findIndex(r)}}]),e})();(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"today",value:function(){return new Date}}]),e})();(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"range",value:function(t,r,n){return Math.min(Math.max(t,r),n)}},{key:"clamp",value:function(t,r,n){return r<n?t<r?r:t>n?n:t:t<n?n:t>r?r:t}}]),e})();var Eg=Object.defineProperty,kg=(e,t,r)=>t in e?Eg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y=(e,t,r)=>(kg(e,typeof t!="symbol"?t+"":t,r),r);const H=e=>Math.round(e*100)/100;class G{constructor(t){Y(this,"instance"),Y(this,"alphaValue",0),Y(this,"redValue",0),Y(this,"greenValue",0),Y(this,"blueValue",0),Y(this,"hueValue",0),Y(this,"saturationValue",0),Y(this,"brightnessValue",0),Y(this,"hslSaturationValue",0),Y(this,"lightnessValue",0),Y(this,"initAlpha",()=>{const r=this.instance.getAlpha();this.alphaValue=Math.min(1,r)*100}),Y(this,"initLightness",()=>{const{s:r,l:n}=this.instance.toHsl();this.hslSaturationValue=H(r),this.lightnessValue=H(n)}),Y(this,"initRgb",()=>{const{r,g:n,b:o}=this.instance.toRgb();this.redValue=H(r),this.greenValue=H(n),this.blueValue=H(o)}),Y(this,"initHsb",()=>{const{h:r,s:n,v:o}=this.instance.toHsv();this.hueValue=Math.min(360,Math.ceil(r)),this.saturationValue=H(n),this.brightnessValue=H(o)}),Y(this,"toHexString",()=>this.instance.toHexString()),Y(this,"toRgbString",()=>this.instance.toRgbString()),this.instance=x(t),this.initRgb(),this.initHsb(),this.initLightness(),this.initAlpha()}toString(t){return this.instance.toString(t)}get hex(){return this.instance.toHex()}set hex(t){this.instance=x(t),this.initHsb(),this.initRgb(),this.initAlpha(),this.initLightness()}set hue(t){this.saturation===0&&this.brightness===0&&(this.saturationValue=1,this.brightnessValue=1),this.instance=x({h:H(t),s:this.saturation,v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.hueValue=H(t)}get hue(){return this.hueValue}set saturation(t){this.instance=x({h:this.hue,s:H(t),v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.saturationValue=H(t)}get saturation(){return this.saturationValue}set brightness(t){this.instance=x({h:this.hue,s:this.saturation,v:H(t),a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.brightnessValue=H(t)}get brightness(){return this.brightnessValue}set lightness(t){this.instance=x({h:this.hue,s:this.hslSaturationValue,l:H(t),a:this.alphaValue/100}),this.initRgb(),this.initHsb(),this.lightnessValue=H(t)}get lightness(){return this.lightnessValue}set red(t){const r=this.instance.toRgb();this.instance=x({...r,r:H(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.redValue=H(t)}get red(){return this.redValue}set green(t){const r=this.instance.toRgb();this.instance=x({...r,g:H(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.greenValue=H(t)}get green(){return this.greenValue}set blue(t){const r=this.instance.toRgb();this.instance=x({...r,b:H(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.blueValue=H(t)}get blue(){return this.blueValue}set alpha(t){this.instance.setAlpha(t/100),this.alphaValue=t}get alpha(){return this.alphaValue}get RGB(){return[this.red,this.green,this.blue,parseFloat((this.alpha/100).toFixed(2))]}get HSB(){return[this.hue,this.saturation,this.brightness,parseFloat((this.alpha/100).toFixed(2))]}get HSL(){return[this.hue,this.hslSaturationValue,this.lightness,parseFloat((this.alpha/100).toFixed(2))]}}function yl(e,t,r,n){return`rgba(${[e,t,r,n/100].join(",")})`}const Wn=(e,t,r)=>t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e,Bo="color-history",Fo=8,fe=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},_g=a.defineComponent({name:"Alpha",props:{color:R.instanceOf(G),size:R.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=a.ref(null),n=a.ref(null);let o=e.color||new G;const i=a.reactive({red:o.red,green:o.green,blue:o.blue,alpha:o.alpha});a.watch(()=>e.color,f=>{f&&(o=f,vt.merge(i,{red:f.red,green:f.green,blue:f.blue,alpha:f.alpha}))},{deep:!0});const u=a.computed(()=>{const f=yl(i.red,i.green,i.blue,0),p=yl(i.red,i.green,i.blue,100);return{background:`linear-gradient(to right, ${f} , ${p})`}}),l=()=>{if(r.value&&n.value){const f=i.alpha/100,p=r.value.getBoundingClientRect(),h=n.value.offsetWidth;return Math.round(f*(p.width-h)+h/2)}return 0},s=a.computed(()=>({left:l()+"px",top:0})),d=f=>{f.target!==r.value&&c(f)},c=f=>{if(f.stopPropagation(),r.value&&n.value){const p=r.value.getBoundingClientRect(),h=n.value.offsetWidth;let y=f.clientX-p.left;y=Math.max(h/2,y),y=Math.min(y,p.width-h/2);const b=Math.round((y-h/2)/(p.width-h)*100);o.alpha=b,i.alpha=b,t("change",b)}};return ze(()=>{const f={drag:p=>{c(p)},end:p=>{c(p)}};r.value&&n.value&&Mt.triggerDragEvent(r.value,f)}),{barElement:r,cursorElement:n,getCursorStyle:s,getBackgroundStyle:u,onClickSider:d}}}),Tg=e=>(a.pushScopeId("data-v-18925ba6"),e=e(),a.popScopeId(),e),Ng=Tg(()=>a.createElementVNode("div",{class:"vc-alpha-slider__bar-handle"},null,-1)),Ag=[Ng];function Rg(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-alpha-slider","transparent",{"small-slider":e.size==="small"}])},[a.createElementVNode("div",{ref:"barElement",class:"vc-alpha-slider__bar",style:a.normalizeStyle(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickSider&&e.onClickSider(...u))},[a.createElementVNode("div",{class:a.normalizeClass(["vc-alpha-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},Ag,6)],4)],2)}const Mo=fe(_g,[["render",Rg],["__scopeId","data-v-18925ba6"]]),Pg=[["#fcc02e","#f67c01","#e64a19","#d81b43","#8e24aa","#512da7","#1f87e8","#008781","#05a045"],["#fed835","#fb8c00","#f5511e","#eb1d4e","#9c28b1","#5d35b0","#2097f3","#029688","#4cb050"],["#ffeb3c","#ffa727","#fe5722","#eb4165","#aa47bc","#673bb7","#42a5f6","#26a59a","#83c683"],["#fff176","#ffb74e","#ff8a66","#f1627e","#b968c7","#7986cc","#64b5f6","#80cbc4","#a5d6a7"],["#fff59c","#ffcc80","#ffab91","#fb879e","#cf93d9","#9ea8db","#90caf8","#b2dfdc","#c8e6ca"],["transparent","#ffffff","#dedede","#a9a9a9","#4b4b4b","#353535","#212121","#000000","advance"]],jg=a.defineComponent({name:"Palette",emits:["change"],setup(e,{emit:t}){return{palettes:Pg,computedBgStyle:r=>r==="transparent"?r:r==="advance"?{}:{background:x(r).toRgbString()},onColorChange:r=>{t("change",r)}}}}),Ig={class:"vc-compact"},Vg=["onClick"];function $g(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",Ig,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.palettes,(u,l)=>(a.openBlock(),a.createElementBlock("div",{key:l,class:"vc-compact__row"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u,(s,d)=>(a.openBlock(),a.createElementBlock("div",{key:d,class:"vc-compact__color-cube--wrap",onClick:c=>e.onColorChange(s)},[a.createElementVNode("div",{class:a.normalizeClass(["vc-compact__color_cube",{advance:s==="advance",transparent:s==="transparent"}]),style:a.normalizeStyle(e.computedBgStyle(s))},null,6)],8,Vg))),128))]))),128))])}const du=fe(jg,[["render",$g],["__scopeId","data-v-b969fd48"]]),Bg=a.defineComponent({name:"Board",props:{color:R.instanceOf(G),round:R.bool.def(!1),hide:R.bool.def(!0)},emits:["change"],setup(e,{emit:t}){var r,n,o;const i=a.getCurrentInstance(),u={h:((r=e.color)==null?void 0:r.hue)||0,s:1,v:1},l=new G(u).toHexString(),s=a.reactive({hueColor:l,saturation:((n=e.color)==null?void 0:n.saturation)||0,brightness:((o=e.color)==null?void 0:o.brightness)||0}),d=a.ref(0),c=a.ref(0),f=a.ref(),p=a.computed(()=>({top:d.value+"px",left:c.value+"px"})),h=()=>{if(i){const C=i.vnode.el;c.value=s.saturation*C?.clientWidth,d.value=(1-s.brightness)*C?.clientHeight}};let y=!1;const b=C=>{y=!0,m(C)},v=C=>{y&&m(C)},g=()=>{y=!1},m=C=>{if(i){const O=i.vnode.el,k=O?.getBoundingClientRect();let E=C.clientX-k.left,P=C.clientY-k.top;E=Wn(E,0,k.width),P=Wn(P,0,k.height);const B=E/k.width,I=Wn(-(P/k.height)+1,0,1);c.value=E,d.value=P,s.saturation=B,s.brightness=I,t("change",B,I)}};return ze(()=>{i&&i.vnode.el&&f.value&&a.nextTick(()=>{h()})}),X(()=>e.color,C=>{vt.merge(s,{hueColor:new G({h:C.hue,s:1,v:1}).toHexString(),saturation:C.saturation,brightness:C.brightness}),h()},{deep:!0}),{state:s,cursorElement:f,getCursorStyle:p,onClickBoard:b,onDrag:v,onDragEnd:g}}}),qo=e=>(a.pushScopeId("data-v-7f0cdcdf"),e=e(),a.popScopeId(),e),Fg=qo(()=>a.createElementVNode("div",{class:"vc-saturation__white"},null,-1)),Mg=qo(()=>a.createElementVNode("div",{class:"vc-saturation__black"},null,-1)),qg=qo(()=>a.createElementVNode("div",null,null,-1)),Dg=[qg];function Gg(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",{ref:"boardElement",class:a.normalizeClass(["vc-saturation",{"vc-saturation__chrome":e.round,"vc-saturation__hidden":e.hide}]),style:a.normalizeStyle({backgroundColor:e.state.hueColor}),onMousedown:t[0]||(t[0]=(...u)=>e.onClickBoard&&e.onClickBoard(...u)),onMousemove:t[1]||(t[1]=(...u)=>e.onDrag&&e.onDrag(...u)),onMouseup:t[2]||(t[2]=(...u)=>e.onDragEnd&&e.onDragEnd(...u))},[Fg,Mg,a.createElementVNode("div",{class:"vc-saturation__cursor",ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},Dg,4)],38)}const Do=fe(Bg,[["render",Gg],["__scopeId","data-v-7f0cdcdf"]]),Lg=a.defineComponent({name:"Hue",props:{color:R.instanceOf(G),size:R.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=a.ref(null),n=a.ref(null);let o=e.color||new G;const i=a.reactive({hue:o.hue||0});a.watch(()=>e.color,c=>{c&&(o=c,vt.merge(i,{hue:o.hue}))},{deep:!0});const u=()=>{if(r.value&&n.value){const c=r.value.getBoundingClientRect(),f=n.value.offsetWidth;return i.hue===360?c.width-f/2:i.hue%360*(c.width-f)/360+f/2}return 0},l=a.computed(()=>({left:u()+"px",top:0})),s=c=>{c.target!==r.value&&d(c)},d=c=>{if(c.stopPropagation(),r.value&&n.value){const f=r.value.getBoundingClientRect(),p=n.value.offsetWidth;let h=c.clientX-f.left;h=Math.min(h,f.width-p/2),h=Math.max(p/2,h);const y=Math.round((h-p/2)/(f.width-p)*360);o.hue=y,i.hue=y,t("change",y)}};return ze(()=>{const c={drag:f=>{d(f)},end:f=>{d(f)}};r.value&&n.value&&Mt.triggerDragEvent(r.value,c)}),{barElement:r,cursorElement:n,getCursorStyle:l,onClickSider:s}}}),Hg=e=>(a.pushScopeId("data-v-e1a08576"),e=e(),a.popScopeId(),e),Ug=Hg(()=>a.createElementVNode("div",{class:"vc-hue-slider__bar-handle"},null,-1)),zg=[Ug];function Wg(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-hue-slider",{"small-slider":e.size==="small"}])},[a.createElementVNode("div",{ref:"barElement",class:"vc-hue-slider__bar",onClick:t[0]||(t[0]=(...u)=>e.onClickSider&&e.onClickSider(...u))},[a.createElementVNode("div",{class:a.normalizeClass(["vc-hue-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},zg,6)],512)],2)}const Go=fe(Lg,[["render",Wg],["__scopeId","data-v-e1a08576"]]),Kg=a.defineComponent({name:"Lightness",props:{color:R.instanceOf(G),size:R.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=a.ref(null),n=a.ref(null);let o=e.color||new G;const[i,u,l]=o.HSL,s=a.reactive({hue:i,saturation:u,lightness:l});a.watch(()=>e.color,y=>{if(y){o=y;const[b,v,g]=o.HSL;vt.merge(s,{hue:b,saturation:v,lightness:g})}},{deep:!0});const d=a.computed(()=>{const y=x({h:s.hue,s:s.saturation,l:.8}).toPercentageRgbString(),b=x({h:s.hue,s:s.saturation,l:.6}).toPercentageRgbString(),v=x({h:s.hue,s:s.saturation,l:.4}).toPercentageRgbString(),g=x({h:s.hue,s:s.saturation,l:.2}).toPercentageRgbString();return{background:[`linear-gradient(to right, rgb(255, 255, 255), ${y}, ${b}, ${v}, ${g}, rgb(0, 0, 0))`,`-webkit-linear-gradient(left, rgb(255, 255, 255), ${y}, ${b}, ${v}, ${g}, rgb(0, 0, 0))`,`-moz-linear-gradient(left, rgb(255, 255, 255), ${y}, ${b}, ${v}, ${g}, rgb(0, 0, 0))`,`-ms-linear-gradient(left, rgb(255, 255, 255), ${y}, ${b}, ${v}, ${g}, rgb(0, 0, 0))`]}}),c=()=>{if(r.value&&n.value){const y=s.lightness,b=r.value.getBoundingClientRect(),v=n.value.offsetWidth;return(1-y)*(b.width-v)+v/2}return 0},f=a.computed(()=>({left:c()+"px",top:0})),p=y=>{y.target!==r.value&&h(y)},h=y=>{if(y.stopPropagation(),r.value&&n.value){const b=r.value.getBoundingClientRect(),v=n.value.offsetWidth;let g=y.clientX-b.left;g=Math.max(v/2,g),g=Math.min(g,b.width-v/2);const m=1-(g-v/2)/(b.width-v);o.lightness=m,t("change",m)}};return ze(()=>{const y={drag:b=>{h(b)},end:b=>{h(b)}};r.value&&n.value&&Mt.triggerDragEvent(r.value,y)}),{barElement:r,cursorElement:n,getCursorStyle:f,getBackgroundStyle:d,onClickSider:p}}}),Yg=e=>(a.pushScopeId("data-v-94a50a9e"),e=e(),a.popScopeId(),e),Xg=Yg(()=>a.createElementVNode("div",{class:"vc-lightness-slider__bar-handle"},null,-1)),Jg=[Xg];function Zg(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-lightness-slider",{"small-slider":e.size==="small"}])},[a.createElementVNode("div",{ref:"barElement",class:"vc-lightness-slider__bar",style:a.normalizeStyle(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickSider&&e.onClickSider(...u))},[a.createElementVNode("div",{class:a.normalizeClass(["vc-lightness-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},Jg,6)],4)],2)}const fu=fe(Kg,[["render",Zg],["__scopeId","data-v-94a50a9e"]]),Qg=a.defineComponent({name:"History",props:{colors:R.arrayOf(String).def(()=>[]),round:R.bool.def(!1)},emits:["change"],setup(e,{emit:t}){return{onColorSelect:r=>{t("change",r)}}}}),em={key:0,class:"vc-colorPicker__record"},tm={class:"color-list"},rm=["onClick"];function nm(e,t,r,n,o,i){return e.colors&&e.colors.length>0?(a.openBlock(),a.createElementBlock("div",em,[a.createElementVNode("div",tm,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.colors,(u,l)=>(a.openBlock(),a.createElementBlock("div",{key:l,class:a.normalizeClass(["color-item","transparent",{"color-item__round":e.round}]),onClick:s=>e.onColorSelect(u)},[a.createElementVNode("div",{class:"color-item__display",style:a.normalizeStyle({backgroundColor:u})},null,4)],10,rm))),128))])])):a.createCommentVNode("",!0)}const Lo=fe(Qg,[["render",nm],["__scopeId","data-v-0f657238"]]),om=a.defineComponent({name:"Display",props:{color:R.instanceOf(G),disableAlpha:R.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){var r,n,o,i;const{copy:u,copied:l,isSupported:s}=Ad(),d=a.ref("hex"),c=a.reactive({color:e.color,hex:(r=e.color)==null?void 0:r.hex,alpha:Math.round(((n=e.color)==null?void 0:n.alpha)||100),rgba:(o=e.color)==null?void 0:o.RGB,previewBgColor:(i=e.color)==null?void 0:i.toRgbString()}),f=a.computed(()=>({background:c.previewBgColor})),p=()=>{d.value=d.value==="rgba"?"hex":"rgba"},h=Ee(g=>{if(!g.target.value)return;let m=parseInt(g.target.value.replace("%",""));m>100&&(g.target.value="100",m=100),m<0&&(g.target.value="0",m=0),isNaN(m)&&(g.target.value="100",m=100),!isNaN(m)&&c.color&&(c.color.alpha=m),t("change",c.color)},300),y=Ee((g,m)=>{if(c.color){if(d.value==="hex"){const C=g.target.value.replace("#","");x(C).isValid()?[3,4].includes(C.length)&&(c.color.hex=C):c.color.hex="000000",t("change",c.color)}else if(d.value==="rgba"&&m===3&&g.target.value.toString()==="0."&&c.rgba){c.rgba[m]=g.target.value;const[C,O,k,E]=c.rgba;c.color.hex=x({r:C,g:O,b:k}).toHex(),c.color.alpha=Math.round(E*100),t("change",c.color)}}},100),b=Ee((g,m)=>{if(g.target.value){if(d.value==="hex"){const C=g.target.value.replace("#","");x(C).isValid()&&c.color&&[6,8].includes(C.length)&&(c.color.hex=C)}else if(m!==void 0&&c.rgba&&c.color){if(g.target.value<0&&(g.target.value=0),m===3&&((g.target.value>1||isNaN(g.target.value))&&(g.target.value=1),g.target.value.toString()==="0."))return;m<3&&g.target.value>255&&(g.target.value=255),c.rgba[m]=g.target.value;const[C,O,k,E]=c.rgba;c.color.hex=x({r:C,g:O,b:k}).toHex(),c.color.alpha=Math.round(E*100)}t("change",c.color)}},300),v=()=>{if(s&&c.color){const g=d.value==="hex"?c.color.toString(c.color.alpha===100?"hex6":"hex8"):c.color.toRgbString();u(g||"")}};return X(()=>e.color,g=>{g&&(c.color=g,c.alpha=Math.round(c.color.alpha),c.hex=c.color.hex,c.rgba=c.color.RGB)},{deep:!0}),X(()=>c.color,()=>{c.color&&(c.previewBgColor=c.color.toRgbString())},{deep:!0}),{state:c,getBgColorStyle:f,inputType:d,copied:l,onInputTypeChange:p,onAlphaBlur:h,onInputChange:b,onBlurChange:y,onCopyColorStr:v}}}),am={class:"vc-display"},im={class:"vc-current-color vc-transparent"},lm={key:0,class:"copy-text"},sm={key:0,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},um={class:"vc-color-input"},cm={key:0,class:"vc-alpha-input"},dm=["value"],fm={key:1,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},pm=["value","onInput","onBlur"];function hm(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",am,[a.createElementVNode("div",im,[a.createElementVNode("div",{class:"color-cube",style:a.normalizeStyle(e.getBgColorStyle),onClick:t[0]||(t[0]=(...u)=>e.onCopyColorStr&&e.onCopyColorStr(...u))},[e.copied?(a.openBlock(),a.createElementBlock("span",lm,"Copied!")):a.createCommentVNode("",!0)],4)]),e.inputType==="hex"?(a.openBlock(),a.createElementBlock("div",sm,[a.createElementVNode("div",um,[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=u=>e.state.hex=u),maxlength:"8",onInput:t[2]||(t[2]=(...u)=>e.onInputChange&&e.onInputChange(...u)),onBlur:t[3]||(t[3]=(...u)=>e.onBlurChange&&e.onBlurChange(...u))},null,544),[[a.vModelText,e.state.hex]])]),e.disableAlpha?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",cm,[a.createElementVNode("input",{class:"vc-alpha-input__inner",value:e.state.alpha,onInput:t[4]||(t[4]=(...u)=>e.onAlphaBlur&&e.onAlphaBlur(...u))},null,40,dm),a.createTextVNode("% ")]))])):e.state.rgba?(a.openBlock(),a.createElementBlock("div",fm,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.state.rgba,(u,l)=>(a.openBlock(),a.createElementBlock("div",{class:"vc-color-input",key:l},[a.createElementVNode("input",{value:u,onInput:s=>e.onInputChange(s,l),onBlur:s=>e.onBlurChange(s,l)},null,40,pm)]))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"vc-input-toggle",onClick:t[5]||(t[5]=(...u)=>e.onInputTypeChange&&e.onInputTypeChange(...u))},a.toDisplayString(e.inputType),1)])}const Ho=fe(om,[["render",hm],["__scopeId","data-v-7334ac20"]]),vm=a.defineComponent({name:"FkColorPicker",components:{Display:Ho,Alpha:Mo,Palette:du,Board:Do,Hue:Go,Lightness:fu,History:Lo},props:{color:R.instanceOf(G),disableHistory:R.bool.def(!1),roundHistory:R.bool.def(!1),disableAlpha:R.bool.def(!1)},emits:["update:color","change","advanceChange"],setup(e,{emit:t}){const r=e.color||new G,n=a.reactive({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=a.ref(!1),i=a.computed(()=>({background:n.rgb})),u=()=>{o.value=!1,t("advanceChange",!1)},l=po(Bo,[],{}),s=Ee(()=>{if(e.disableHistory)return;const b=n.color.toRgbString();if(l.value=l.value.filter(v=>!x.equals(v,b)),!l.value.includes(b)){for(;l.value.length>Fo;)l.value.pop();l.value.unshift(b)}},500),d=b=>{b==="advance"?(o.value=!0,t("advanceChange",!0)):(n.color.hex=b,t("advanceChange",!1))},c=b=>{n.color.alpha=b},f=b=>{n.color.hue=b},p=(b,v)=>{n.color.saturation=b,n.color.brightness=v},h=b=>{n.color.lightness=b},y=b=>{const v=b.target.value.replace("#","");x(v).isValid()&&(n.color.hex=v)};return X(()=>e.color,b=>{b&&(n.color=b)},{deep:!0}),X(()=>n.color,()=>{n.hex=n.color.hex,n.rgb=n.color.toRgbString(),s(),t("update:color",n.color),t("change",n.color)},{deep:!0}),{state:n,advancePanelShow:o,onBack:u,onCompactChange:d,onAlphaChange:c,onHueChange:f,onBoardChange:p,onLightChange:h,onInputChange:y,previewStyle:i,historyColors:l}}}),gm=e=>(a.pushScopeId("data-v-48e3c224"),e=e(),a.popScopeId(),e),mm={class:"vc-fk-colorPicker"},ym={class:"vc-fk-colorPicker__inner"},bm={class:"vc-fk-colorPicker__header"},Cm=gm(()=>a.createElementVNode("div",{class:"back"},null,-1)),wm=[Cm];function Sm(e,t,r,n,o,i){const u=a.resolveComponent("Palette"),l=a.resolveComponent("Board"),s=a.resolveComponent("Hue"),d=a.resolveComponent("Lightness"),c=a.resolveComponent("Alpha"),f=a.resolveComponent("Display"),p=a.resolveComponent("History");return a.openBlock(),a.createElementBlock("div",mm,[a.createElementVNode("div",ym,[a.createElementVNode("div",bm,[e.advancePanelShow?(a.openBlock(),a.createElementBlock("span",{key:0,style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...h)=>e.onBack&&e.onBack(...h))},wm)):a.createCommentVNode("",!0)]),e.advancePanelShow?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(u,{key:0,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?(a.openBlock(),a.createBlock(l,{key:1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"])):a.createCommentVNode("",!0),e.advancePanelShow?(a.openBlock(),a.createBlock(s,{key:2,color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"])):a.createCommentVNode("",!0),e.advancePanelShow?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(d,{key:3,color:e.state.color,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(c,{key:4,color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"])),a.createVNode(f,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(p,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const bl=fe(vm,[["render",Sm],["__scopeId","data-v-48e3c224"]]),Om=a.defineComponent({name:"ChromeColorPicker",components:{Display:Ho,Alpha:Mo,Board:Do,Hue:Go,History:Lo},props:{color:R.instanceOf(G),disableHistory:R.bool.def(!1),roundHistory:R.bool.def(!1),disableAlpha:R.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){const r=e.color||new G,n=a.reactive({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=a.computed(()=>({background:n.rgb})),i=po(Bo,[],{}),u=Ee(()=>{if(e.disableHistory)return;const p=n.color.toRgbString();if(i.value=i.value.filter(h=>!x.equals(h,p)),!i.value.includes(p)){for(;i.value.length>Fo;)i.value.pop();i.value.unshift(p)}},500),l=p=>{n.color.alpha=p},s=p=>{n.color.hue=p},d=p=>{p.hex!==void 0&&(n.color.hex=p.hex),p.alpha!==void 0&&(n.color.alpha=p.alpha)},c=(p,h)=>{n.color.saturation=p,n.color.brightness=h},f=p=>{p!=="advance"&&(n.color.hex=p)};return X(()=>e.color,p=>{p&&(n.color=p)},{deep:!0}),X(()=>n.color,()=>{n.hex=n.color.hex,n.rgb=n.color.toRgbString(),u(),t("update:color",n.color),t("change",n.color)},{deep:!0}),{state:n,previewStyle:o,historyColors:i,onAlphaChange:l,onHueChange:s,onBoardChange:c,onInputChange:d,onCompactChange:f}}}),xm={class:"vc-chrome-colorPicker"},Em={class:"vc-chrome-colorPicker-body"},km={class:"chrome-controls"},_m={class:"chrome-sliders"};function Tm(e,t,r,n,o,i){const u=a.resolveComponent("Board"),l=a.resolveComponent("Hue"),s=a.resolveComponent("Alpha"),d=a.resolveComponent("Display"),c=a.resolveComponent("History");return a.openBlock(),a.createElementBlock("div",xm,[a.createVNode(u,{round:!0,hide:!1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"]),a.createElementVNode("div",Em,[a.createElementVNode("div",km,[a.createElementVNode("div",_m,[a.createVNode(l,{size:"small",color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"]),e.disableAlpha?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(s,{key:0,size:"small",color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"]))])]),a.createVNode(d,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(c,{key:0,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const Cl=fe(Om,[["render",Tm],["__scopeId","data-v-2611d66c"]]),Uo="Vue3ColorPickerProvider",Nm=(e,t)=>{const r=e.getBoundingClientRect(),n=r.left+r.width/2,o=r.top+r.height/2,i=Math.abs(n-t.clientX),u=Math.abs(o-t.clientY),l=Math.sqrt(Math.pow(i,2)+Math.pow(u,2)),s=u/l,d=Math.acos(s);let c=Math.floor(180/(Math.PI/d));return t.clientX>n&&t.clientY>o&&(c=180-c),t.clientX==n&&t.clientY>o&&(c=180),t.clientX>n&&t.clientY==o&&(c=90),t.clientX<n&&t.clientY>o&&(c=180+c),t.clientX<n&&t.clientY==o&&(c=270),t.clientX<n&&t.clientY<o&&(c=360-c),c};let Kn=!1;const Am=(e,t)=>{const r=function(o){var i;(i=t.drag)==null||i.call(t,o)},n=function(o){var i;document.removeEventListener("mousemove",r,!1),document.removeEventListener("mouseup",n,!1),document.onselectstart=null,document.ondragstart=null,Kn=!1,(i=t.end)==null||i.call(t,o)};e&&e.addEventListener("mousedown",o=>{var i;Kn||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",n,!1),Kn=!0,(i=t.start)==null||i.call(t,o))})},Rm={angle:{type:Number,default:0},size:{type:Number,default:16,validator:e=>e>=16},borderWidth:{type:Number,default:1,validator:e=>e>=1},borderColor:{type:String,default:"#666"}},Pm=a.defineComponent({name:"Angle",props:Rm,emits:["update:angle","change"],setup(e,{emit:t}){const r=a.ref(null),n=a.ref(0);a.watch(()=>e.angle,l=>{n.value=l});const o=()=>{let l=Number(n.value);isNaN(l)||(l=l>360||l<0?e.angle:l,n.value=l===360?0:l,t("update:angle",n.value),t("change",n.value))},i=a.computed(()=>({width:e.size+"px",height:e.size+"px",borderWidth:e.borderWidth+"px",borderColor:e.borderColor,transform:`rotate(${n.value}deg)`})),u=l=>{r.value&&(n.value=Nm(r.value,l)%360,o())};return a.onMounted(()=>{const l={drag:s=>{u(s)},end:s=>{u(s)}};r.value&&Am(r.value,l)}),()=>a.createVNode("div",{class:"bee-angle"},[a.createVNode("div",{class:"bee-angle__round",ref:r,style:i.value},null)])}}),jm=a.defineComponent({name:"GradientColorPicker",components:{Angle:Pm,Display:Ho,Alpha:Mo,Palette:du,Board:Do,Hue:Go,Lightness:fu,History:Lo},props:{startColor:R.instanceOf(G).isRequired,endColor:R.instanceOf(G).isRequired,startColorStop:R.number.def(0),endColorStop:R.number.def(100),angle:R.number.def(0),type:R.oneOf(["linear","radial"]).def("linear"),disableHistory:R.bool.def(!1),roundHistory:R.bool.def(!1),disableAlpha:R.bool.def(!1),pickerType:R.oneOf(["fk","chrome"]).def("fk")},emits:["update:startColor","update:endColor","update:angle","update:startColorStop","update:endColorStop","startColorChange","endColorChange","advanceChange","angleChange","startColorStopChange","endColorStopChange","typeChange"],setup(e,{emit:t}){const r=a.reactive({startActive:!0,startColor:e.startColor,endColor:e.endColor,startColorStop:e.startColorStop,endColorStop:e.endColorStop,angle:e.angle,type:e.type,startColorRgba:e.startColor.toRgbString(),endColorRgba:e.endColor.toRgbString()}),n=a.inject(Uo),o=a.ref(e.pickerType==="chrome"),i=a.ref(),u=a.ref(),l=a.ref();a.watch(()=>[e.startColor,e.endColor,e.angle],S=>{r.startColor=S[0],r.endColor=S[1],r.angle=S[2]}),a.watch(()=>e.type,S=>{r.type=S});const s=a.computed({get:()=>r.startActive?r.startColor:r.endColor,set:S=>{if(r.startActive){r.startColor=S;return}r.endColor=S}}),d=a.computed(()=>{if(l.value&&i.value){const S=r.startColorStop/100,T=l.value.getBoundingClientRect(),j=i.value.offsetWidth;return Math.round(S*(T.width-j)+j/2)}return 0}),c=a.computed(()=>{if(l.value&&u.value){const S=r.endColorStop/100,T=l.value.getBoundingClientRect(),j=u.value.offsetWidth;return Math.round(S*(T.width-j)+j/2)}return 0}),f=a.computed(()=>{let S=`background: linear-gradient(${r.angle}deg, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`;return r.type==="radial"&&(S=`background: radial-gradient(circle, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`),S}),p=S=>{var T;if(r.startActive=!0,l.value&&i.value){const j=(T=l.value)==null?void 0:T.getBoundingClientRect();let _=S.clientX-j.left;_=Math.max(i.value.offsetWidth/2,_),_=Math.min(_,j.width-i.value.offsetWidth/2),r.startColorStop=Math.round((_-i.value.offsetWidth/2)/(j.width-i.value.offsetWidth)*100),t("update:startColorStop",r.startColorStop),t("startColorStopChange",r.startColorStop)}},h=S=>{var T;if(r.startActive=!1,l.value&&u.value){const j=(T=l.value)==null?void 0:T.getBoundingClientRect();let _=S.clientX-j.left;_=Math.max(u.value.offsetWidth/2,_),_=Math.min(_,j.width-u.value.offsetWidth/2),r.endColorStop=Math.round((_-u.value.offsetWidth/2)/(j.width-u.value.offsetWidth)*100),t("update:endColorStop",r.endColorStop),t("endColorStopChange",r.endColorStop)}},y=S=>{const T=S.target,j=parseInt(T.value.replace("°",""));isNaN(j)||(r.angle=j%360),t("update:angle",r.angle),t("angleChange",r.angle)},b=S=>{r.angle=S,t("update:angle",r.angle),t("angleChange",r.angle)},v=S=>{S==="advance"?(o.value=!0,t("advanceChange",!0)):(s.value.hex=S,t("advanceChange",!1)),E()},g=S=>{s.value.alpha=S,E()},m=S=>{s.value.hue=S,E()},C=(S,T)=>{s.value.saturation=S,s.value.brightness=T,E()},O=S=>{s.value.lightness=S,E()},k=()=>{E()},E=()=>{r.startActive?(t("update:startColor",r.startColor),t("startColorChange",r.startColor)):(t("update:endColor",r.endColor),t("endColorChange",r.endColor))},P=()=>{o.value=!1,t("advanceChange",!1)},B=()=>{r.type=r.type==="linear"?"radial":"linear",t("typeChange",r.type)},I=po(Bo,[],{}),F=Ee(()=>{if(e.disableHistory)return;const S=s.value.toRgbString();if(I.value=I.value.filter(T=>!x.equals(T,S)),!I.value.includes(S)){for(;I.value.length>Fo;)I.value.pop();I.value.unshift(S)}},500);return ze(()=>{u.value&&i.value&&(Mt.triggerDragEvent(u.value,{drag:S=>{h(S)},end:S=>{h(S)}}),Mt.triggerDragEvent(i.value,{drag:S=>{p(S)},end:S=>{p(S)}}))}),X(()=>r.startColor,S=>{r.startColorRgba=S.toRgbString()},{deep:!0}),X(()=>r.endColor,S=>{r.endColorRgba=S.toRgbString()},{deep:!0}),X(()=>s.value,()=>{F()},{deep:!0}),{startGradientRef:i,stopGradientRef:u,colorRangeRef:l,state:r,currentColor:s,getStartColorLeft:d,getEndColorLeft:c,gradientBg:f,advancePanelShow:o,onDegreeBlur:y,onCompactChange:v,onAlphaChange:g,onHueChange:m,onBoardChange:C,onLightChange:O,historyColors:I,onBack:P,onDegreeChange:b,onDisplayChange:k,onTypeChange:B,lang:n?.lang}}}),pu=e=>(a.pushScopeId("data-v-c4d6d6ea"),e=e(),a.popScopeId(),e),Im={class:"vc-gradient-picker"},Vm={class:"vc-gradient-picker__header"},$m={class:"vc-gradient__types"},Bm={class:"vc-gradient-wrap__types"},Fm={class:"vc-picker-degree-input vc-degree-input"},Mm={class:"vc-degree-input__control"},qm=["value"],Dm={class:"vc-degree-input__panel"},Gm={class:"vc-degree-input__disk"},Lm={class:"vc-gradient-picker__body"},Hm={class:"vc-color-range",ref:"colorRangeRef"},Um={class:"vc-color-range__container"},zm={class:"vc-gradient__stop__container"},Wm=["title"],Km=pu(()=>a.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),Ym=[Km],Xm=["title"],Jm=pu(()=>a.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),Zm=[Jm];function Qm(e,t,r,n,o,i){var u,l;const s=a.resolveComponent("Angle"),d=a.resolveComponent("Board"),c=a.resolveComponent("Hue"),f=a.resolveComponent("Palette"),p=a.resolveComponent("Lightness"),h=a.resolveComponent("Alpha"),y=a.resolveComponent("Display"),b=a.resolveComponent("History");return a.openBlock(),a.createElementBlock("div",Im,[a.createElementVNode("div",Vm,[a.createElementVNode("div",null,[a.withDirectives(a.createElementVNode("div",{class:"back",style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...v)=>e.onBack&&e.onBack(...v))},null,512),[[a.vShow,e.pickerType==="fk"&&e.advancePanelShow]])]),a.createElementVNode("div",$m,[a.createElementVNode("div",Bm,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(["linear","radial"],v=>a.createElementVNode("div",{class:a.normalizeClass(["vc-gradient__type",{active:e.state.type===v}]),key:v,onClick:t[1]||(t[1]=(...g)=>e.onTypeChange&&e.onTypeChange(...g))},a.toDisplayString(e.lang?e.lang[v]:v),3)),64))]),a.withDirectives(a.createElementVNode("div",Fm,[a.createElementVNode("div",Mm,[a.createElementVNode("input",{value:e.state.angle,onBlur:t[2]||(t[2]=(...v)=>e.onDegreeBlur&&e.onDegreeBlur(...v))},null,40,qm),a.createTextVNode("deg ")]),a.createElementVNode("div",Dm,[a.createElementVNode("div",Gm,[a.createVNode(s,{angle:e.state.angle,"onUpdate:angle":t[3]||(t[3]=v=>e.state.angle=v),size:40,onChange:e.onDegreeChange},null,8,["angle","onChange"])])])],512),[[a.vShow,e.state.type==="linear"]])])]),a.createElementVNode("div",Lm,[a.createElementVNode("div",Hm,[a.createElementVNode("div",Um,[a.createElementVNode("div",{class:"vc-background",style:a.normalizeStyle(e.gradientBg)},null,4),a.createElementVNode("div",zm,[a.createElementVNode("div",{class:a.normalizeClass(["vc-gradient__stop",{"vc-gradient__stop--current":e.state.startActive}]),ref:"startGradientRef",title:(u=e.lang)==null?void 0:u.start,style:a.normalizeStyle({left:e.getStartColorLeft+"px",backgroundColor:e.state.startColorRgba})},Ym,14,Wm),a.createElementVNode("div",{class:a.normalizeClass(["vc-gradient__stop",{"vc-gradient__stop--current":!e.state.startActive}]),ref:"stopGradientRef",title:(l=e.lang)==null?void 0:l.end,style:a.normalizeStyle({left:e.getEndColorLeft+"px",backgroundColor:e.state.endColorRgba})},Zm,14,Xm)])])],512)]),e.advancePanelShow?(a.openBlock(),a.createBlock(d,{key:0,color:e.currentColor,onChange:e.onBoardChange},null,8,["color","onChange"])):a.createCommentVNode("",!0),e.advancePanelShow?(a.openBlock(),a.createBlock(c,{key:1,color:e.currentColor,onChange:e.onHueChange},null,8,["color","onChange"])):a.createCommentVNode("",!0),e.advancePanelShow?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(f,{key:2,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(p,{key:3,color:e.currentColor,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(h,{key:4,color:e.currentColor,onChange:e.onAlphaChange},null,8,["color","onChange"])),a.createVNode(y,{color:e.currentColor,"disable-alpha":e.disableAlpha,onChange:e.onDisplayChange},null,8,["color","disable-alpha","onChange"]),e.disableHistory?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(b,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])}const wl=fe(jm,[["render",Qm],["__scopeId","data-v-c4d6d6ea"]]),ey=a.defineComponent({name:"WrapContainer",props:{theme:R.oneOf(["white","black"]).def("white"),showTab:R.bool.def(!1),activeKey:R.oneOf(["pure","gradient"]).def("pure")},emits:["update:activeKey","change"],setup(e,{emit:t}){const r=a.reactive({activeKey:e.activeKey}),n=a.inject(Uo),o=i=>{r.activeKey=i,t("update:activeKey",i),t("change",i)};return X(()=>e.activeKey,i=>{r.activeKey=i}),{state:r,onActiveKeyChange:o,lang:n?.lang}}}),ty={class:"vc-colorpicker--container"},ry={key:0,class:"vc-colorpicker--tabs"},ny={class:"vc-colorpicker--tabs__inner"},oy={class:"vc-btn__content"},ay={class:"vc-btn__content"};function iy(e,t,r,n,o,i){var u,l;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-colorpicker",e.theme])},[a.createElementVNode("div",ty,[e.showTab?(a.openBlock(),a.createElementBlock("div",ry,[a.createElementVNode("div",ny,[a.createElementVNode("div",{class:a.normalizeClass(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="pure"}]),onClick:t[0]||(t[0]=s=>e.onActiveKeyChange("pure"))},[a.createElementVNode("button",null,[a.createElementVNode("div",oy,a.toDisplayString((u=e.lang)==null?void 0:u.pure),1)])],2),a.createElementVNode("div",{class:a.normalizeClass(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="gradient"}]),onClick:t[1]||(t[1]=s=>e.onActiveKeyChange("gradient"))},[a.createElementVNode("button",null,[a.createElementVNode("div",ay,a.toDisplayString((l=e.lang)==null?void 0:l.gradient),1)])],2),a.createElementVNode("div",{class:"vc-colorpicker--tabs__bg",style:a.normalizeStyle({width:"50%",left:`calc(${e.state.activeKey==="gradient"?50:0}%)`})},null,4)])])):a.createCommentVNode("",!0),a.renderSlot(e.$slots,"default",{},void 0,!0)])],2)}const ly=fe(ey,[["render",iy],["__scopeId","data-v-0492277d"]]),sy={start:"Start",end:"End",pure:"Pure",gradient:"Gradient",linear:"linear",radial:"radial"},uy={start:"开始",end:"结束",pure:"纯色",gradient:"渐变",linear:"线性",radial:"径向"},cy={En:sy,"ZH-cn":uy},dy={isWidget:R.bool.def(!1),pickerType:R.oneOf(["fk","chrome"]).def("fk"),shape:R.oneOf(["circle","square"]).def("square"),pureColor:{type:[String,Object],default:"#000000"},gradientColor:R.string.def("linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)"),format:{type:String,default:"rgb"},disableAlpha:R.bool.def(!1),disableHistory:R.bool.def(!1),roundHistory:R.bool.def(!1),useType:R.oneOf(["pure","gradient","both"]).def("pure"),activeKey:R.oneOf(["pure","gradient"]).def("pure"),lang:{type:String,default:"ZH-cn"},zIndex:R.number.def(9999),pickerContainer:{type:[String,HTMLElement],default:"body"},debounce:R.number.def(100),theme:R.oneOf(["white","black"]).def("white"),blurClose:R.bool.def(!1),defaultPopup:R.bool.def(!1)},fy=a.defineComponent({name:"ColorPicker",components:{FkColorPicker:bl,ChromeColorPicker:Cl,GradientColorPicker:wl,WrapContainer:ly},inheritAttrs:!1,props:dy,emits:["update:pureColor","pureColorChange","update:gradientColor","gradientColorChange","update:activeKey","activeKeyChange"],setup(e,{emit:t}){a.provide(Uo,{lang:a.computed(()=>cy[e.lang||"ZH-cn"])});const r=!!a.useSlots().extra,n=a.reactive({pureColor:e.pureColor||"",activeKey:e.useType==="gradient"?"gradient":e.activeKey,isAdvanceMode:!1}),o=new G("#000"),i=new G("#000"),u=new G(n.pureColor),l=a.reactive({startColor:o,endColor:i,startColorStop:0,endColorStop:100,angle:0,type:"linear",gradientColor:e.gradientColor}),s=a.ref(u),d=a.ref(e.defaultPopup),c=a.ref(null),f=a.ref(null);let p=null;const h=a.computed(()=>({background:n.activeKey!=="gradient"?x(n.pureColor).toRgbString():l.gradientColor})),y=a.computed(()=>n.activeKey==="gradient"?wl.name:e.pickerType==="fk"?bl.name:Cl.name),b=S=>{n.isAdvanceMode=S},v=a.computed(()=>{const S={disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,pickerType:e.pickerType};return n.activeKey==="gradient"?{...S,startColor:l.startColor,endColor:l.endColor,angle:l.angle,type:l.type,startColorStop:l.startColorStop,endColorStop:l.endColorStop,onStartColorChange:T=>{l.startColor=T,k()},onEndColorChange:T=>{l.endColor=T,k()},onStartColorStopChange:T=>{l.startColorStop=T,k()},onEndColorStopChange:T=>{l.endColorStop=T,k()},onAngleChange:T=>{l.angle=T,k()},onTypeChange:T=>{l.type=T,k()},onAdvanceChange:b}:{...S,disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,color:s.value,onChange:B,onAdvanceChange:b}}),g=()=>{d.value=!0,p?p.update():P()},m=()=>{d.value=!1},C=Ee(()=>{!e.isWidget&&e.blurClose&&m()},100);Td(f,()=>{m()});const O=()=>{var S,T,j,_;try{const[A]=xa.parse(l.gradientColor);if(A&&A.type.includes("gradient")&&A.colorStops.length>=2){const $=A.colorStops[0],K=A.colorStops[1];l.startColorStop=Number((S=$.length)==null?void 0:S.value)||0,l.endColorStop=Number((T=K.length)==null?void 0:T.value)||0,A.type==="linear-gradient"&&((j=A.orientation)==null?void 0:j.type)==="angular"&&(l.angle=Number((_=A.orientation)==null?void 0:_.value)||0),l.type=A.type.split("-")[0];const[N,V,M,Q]=$.value,[ge,Ze,Ae,me]=K.value;l.startColor=new G({r:Number(N),g:Number(V),b:Number(M),a:Number(Q)}),l.endColor=new G({r:Number(ge),g:Number(Ze),b:Number(Ae),a:Number(me)})}}catch(A){console.log(`[Parse Color]: ${A}`)}},k=Ee(()=>{const S=E();try{l.gradientColor=xa.stringify(S),t("update:gradientColor",l.gradientColor),t("gradientColorChange",l.gradientColor)}catch(T){console.log(T)}},e.debounce),E=()=>{const S=[],T=l.startColor.RGB.map(A=>A.toString()),j=l.endColor.RGB.map(A=>A.toString()),_=[{type:"rgba",value:[T[0],T[1],T[2],T[3]],length:{value:l.startColorStop+"",type:"%"}},{type:"rgba",value:[j[0],j[1],j[2],j[3]],length:{value:l.endColorStop+"",type:"%"}}];return l.type==="linear"?S.push({type:"linear-gradient",orientation:{type:"angular",value:l.angle+""},colorStops:_}):l.type==="radial"&&S.push({type:"radial-gradient",orientation:[{type:"shape",value:"circle"}],colorStops:_}),S},P=()=>{c.value&&f.value&&(p=hp(c.value,f.value,{placement:"auto",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{allowedAutoPlacements:["top","bottom","left","right"],rootBoundary:"viewport"}}]}))},B=S=>{s.value=S,n.pureColor=S.toString(e.format),I()},I=Ee(()=>{t("update:pureColor",n.pureColor),t("pureColorChange",n.pureColor)},e.debounce),F=S=>{n.activeKey=S,t("update:activeKey",S),t("activeKeyChange",S)};return ze(()=>{O(),p||P()}),X(()=>e.gradientColor,S=>{S!=l.gradientColor&&(l.gradientColor=S)}),X(()=>l.gradientColor,()=>{O()}),X(()=>e.activeKey,S=>{n.activeKey=S}),X(()=>e.useType,S=>{n.activeKey!=="gradient"&&S==="gradient"?n.activeKey="gradient":n.activeKey="pure"}),X(()=>e.pureColor,S=>{x.equals(S,n.pureColor)||(n.pureColor=S,s.value=new G(S))},{deep:!0}),{colorCubeRef:c,pickerRef:f,showPicker:d,colorInstance:s,getBgColorStyle:h,getComponentName:y,getBindArgs:v,state:n,hasExtra:r,onColorChange:B,onShowPicker:g,onActiveKeyChange:F,onAutoClose:C}}}),py={key:0,class:"vc-color-extra"},hy={key:0,class:"vc-color-extra"};function vy(e,t,r,n,o,i){const u=a.resolveComponent("WrapContainer");return a.openBlock(),a.createElementBlock(a.Fragment,null,[e.isWidget?(a.openBlock(),a.createBlock(u,{key:0,"active-key":e.state.activeKey,"onUpdate:activeKey":t[0]||(t[0]=l=>e.state.activeKey=l),"show-tab":e.useType==="both",style:a.normalizeStyle({zIndex:e.zIndex}),theme:e.theme,onChange:e.onActiveKeyChange},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.getComponentName),a.mergeProps({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(a.openBlock(),a.createElementBlock("div",py,[a.renderSlot(e.$slots,"extra",{},void 0,!0)])):a.createCommentVNode("",!0)]),_:3},8,["active-key","show-tab","style","theme","onChange"])):a.createCommentVNode("",!0),e.isWidget?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",{class:a.normalizeClass(["vc-color-wrap transparent",{round:e.shape==="circle"}]),ref:"colorCubeRef"},[a.createElementVNode("div",{class:"current-color",style:a.normalizeStyle(e.getBgColorStyle),onClick:t[1]||(t[1]=(...l)=>e.onShowPicker&&e.onShowPicker(...l))},null,4)],2),(a.openBlock(),a.createBlock(a.Teleport,{to:e.pickerContainer},[a.withDirectives(a.createElementVNode("div",{ref:"pickerRef",style:a.normalizeStyle({zIndex:e.zIndex}),onMouseleave:t[3]||(t[3]=(...l)=>e.onAutoClose&&e.onAutoClose(...l))},[e.showPicker?(a.openBlock(),a.createBlock(u,{key:0,"show-tab":e.useType==="both"&&!e.state.isAdvanceMode,theme:e.theme,"active-key":e.state.activeKey,"onUpdate:activeKey":t[2]||(t[2]=l=>e.state.activeKey=l),onChange:e.onActiveKeyChange},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.getComponentName),a.mergeProps({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(a.openBlock(),a.createElementBlock("div",hy,[a.renderSlot(e.$slots,"extra",{},void 0,!0)])):a.createCommentVNode("",!0)]),_:3},8,["show-tab","theme","active-key","onChange"])):a.createCommentVNode("",!0)],36),[[a.vShow,e.showPicker]])],8,["to"]))],64))],64)}const gy=fe(fy,[["render",vy],["__scopeId","data-v-354ca836"]]),my={install(e){e.use(vc),e.use(gc),e.use(Cc),e.use(Oc),e.use(kc),e.use(_c),e.use(Rc),e.use(Ic),e.use(Bc),e.use(Lc),e.use(zc),e.use(Wc),e.use(Yc),e.use(Qc),e.use(td),e.use(ad),e.use(id),e.use(ld),e.use(mc),e.use(rd),e.use(Kc),e.use(Xc),e.use(Tc),e.component("ColorPicker",gy)}},Sl=a.defineComponent({name:"GctEditForm",props:{embed:{type:Boolean,default:!1},context:{type:Object,default:()=>({})},params:{type:Object,default:()=>({})},controller:{type:Object},model:{type:Object,required:!0},data:{type:Object}},emits:["update:data"],setup(e,{emit:t}){const r=w.useNamespace("gct-edit-form");if(!e.model)throw new Error("未传递表单模型配置");const n=e.controller||w.useEditFormController(()=>new w.EditFormController(e.model)),o=a.ref(null),i=async()=>{try{await o.value.formRef.validate()}catch(l){return console.error(l),!1}return!0},u=async l=>{try{await o.value.formRef.validateFields(l)}catch(s){return console.error(s),!1}return!0};return n.validate=i,n.validateItem=u,a.watch(e.context,()=>{Object.assign(n.context,e.context),n.state.isNew=!n.context.id},{immediate:!0}),a.watch(e.params,()=>{Object.assign(n.params,e.params)}),w.useModal(async()=>{try{await o.value.formRef.validate();const l=await n.save();if(l)return{ok:!0,data:[vt.cloneDeep(l)]}}catch(l){console.error(l)}return{ok:!1}}),e.data?(Object.assign(n.state.data,e.data),n.loaded()):n.state.isNew!==!0?n.load().then(()=>{n.loaded()}):n.loaded(),e.embed&&n.evt.on("change",()=>{t("update:data",n.getData())}),{ns:r,c:n,formRef:o}},render(){let e=null;return(this.c.state.isNew||this.c.state.isNew==!1&&this.c.state.loaded)&&(e=a.createVNode(a.resolveComponent("gct-form"),{class:"h-full",ref:"formRef",model:this.model,c:this.c},null)),a.createVNode("div",{class:this.ns.b()},[e])}}),yy={install(e){e.component(Sl.name,Sl)}};function by(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Ol=a.defineComponent({name:"GctFormItem",props:{c:{type:Object,required:!0},formModel:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form-item"),r={};e.formModel.labelWidth&&(r[t.cssVarName("form-item-label-width")]=e.formModel.labelWidth),e.model.labelWidth&&(r[t.cssVarName("form-item-label-width")]=e.model.labelWidth),e.model.labelAlign&&(r[t.cssVarName("form-item-label-align")]=e.model.labelAlign),e.model.editorAlign&&(r[t.cssVarName("form-item-editor-align")]=e.model.editorAlign),e.model.width&&(r[t.cssVarName("form-item-width")]=e.model.width),e.model.margin&&(r.margin=e.model.margin),e.model.padding&&(r.padding=e.model.padding);const n=a.computed(()=>!!e.model.rules?.find(i=>i.required));return{ns:t,style:r,required:n,renderLabelTooltip:()=>e.model.labelTooltip?a.createVNode(a.resolveComponent("a-tooltip"),{class:t.e("label-tooltip"),placement:"topLeft",title:e.model.labelTooltip},{default:()=>[a.createVNode("span",{class:"iconfont icon-assist ml5px text-[#bfbfbf]"},null)]}):null}},render(){const e=_gct.register.editor.get(w.EditorRegisterConst.PREFIX+this.model.editor.type);if(!e)return console.error(`未找到表单项${this.model.name}的编辑器${this.model.editor.type}的适配器实例:`,this.model),null;const t=this.model.labelPosition||"left";let r=null;e?e.render?r=e.render(this.c.editorValue,this.c.data,this.model):e.component?r=a.h(typeof e.component=="string"?a.resolveComponent(e.component):e.component,{key:this.model.name,c:this.c,value:this.c.editorValue,itemModel:this.model,model:this.model.editor,data:this.c.data,disabled:this.c.state.disabled,readonly:this.c.state.readonly,keepalive:this.c.state.keepalive,visible:this.c.state.visible,class:[this.ns.e("editor"),this.ns.e(t),this.model.editor.class],style:this.model.editor.style,"onUpdate:value":o=>{this.c.editorValue=o}}):console.error(`未找到编辑器绘制组件:${this.model.name} - ${this.model.editor.type},请实现 component 或 render 方法`):console.error(`未找到编辑器适配器:${this.model.name} - ${this.model.editor.type}`),this.model.label&&t==="top"&&(r=[a.createVNode("div",{class:[this.ns.e("label"),this.ns.em("label",t)]},[this.model.label,this.renderLabelTooltip()]),r]);const n={default:()=>r};return t==="left"&&this.model.label&&(n.label=()=>[a.createVNode("span",null,[this.model.label]),this.renderLabelTooltip()]),a.createVNode(a.resolveComponent("a-form-item"),{key:this.c.model.name,colon:this.formModel.noColon===!0?!1:this.model.noColon!==!0,name:this.model.name,label:void 0,class:[this.ns.b(),this.ns.is("readonly",this.model.editor.readonly===!0),this.ns.is("required",this.required),this.ns.is("hidden",this.c.state.visible===!1),this.ns.is("hidden-label",!this.model.label),this.ns.m("label-"+t)],style:this.style,rules:this.c.state.visible===!0?this.model.rules:[],layout:"horizontal"},by(n)?n:{default:()=>[n]})}});function Cy(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const xl=a.defineComponent({name:"GctForm",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form");a.provide("formController",e.c);const r=a.ref(null),n=e.c;Object.keys(n.item).forEach(d=>{const c=n.item[d];c.state=a.reactive(c.state)});const i=d=>a.createVNode(a.resolveComponent("gct-form-item"),{class:d.class,style:d.style,c:n.item[d.name],formModel:e.model,model:d},null),u=d=>{const c=n.provider[d.name];if(!c)return console.error(`未找到表单项适配器实例:${d.name}`,d),null;if(c)return a.h(typeof c.component=="string"?a.resolveComponent(c.component):c.component,{key:d.name,model:d,formModel:e.model,c:n.item[d.name],data:n.state.data,class:d.class,style:d.style},l(d.children||[]));console.error(`未找到表单容器适配器:${d.name} - ${d.type}`)},l=d=>{if(!d)return[];const c=[];return d.forEach(f=>{if(f.type==="hidden")return null;let p=null;const h=f;h.type==="container"||h.container?p=u(h):p=i(f),p&&c.push(p)}),c},s={};return e.model.labelWidth&&(s[t.cssVarName("form-item-label-width")]=e.model.labelWidth),{ns:t,formRef:r,staticStyle:s,renderItem:i,renderContainer:u,renderChildren:l}},render(){let e;return a.createVNode(a.resolveComponent("a-form"),{ref:"formRef",layout:this.model.layout,model:this.c.state.data,class:[this.ns.b(),this.ns.is("info",this.model.info===!0)],autocomplete:"off",style:this.staticStyle},Cy(e=this.model.children.map(t=>this.renderContainer(t)))?e:{default:()=>[e]})}});class wy{component="gct-form-item";createController(t,r){return w.useFormItemController(()=>new w.FormItemController(t,r))}}class Sy{component="gct-form-hidden-item";createController(t,r){return w.useFormItemController(()=>new w.FormHiddenItemController(t,r))}}class Oy{component="gct-form-collapse-pane";createController(t,r){return w.useFormItemController(()=>new w.FormCollapsePaneController(t,r))}}function El(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const kl=a.defineComponent({name:"GctFormCollapsePane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("form-collapse-pane"),r={};function n(o){if(e.model.layout==="flex")return a.createVNode(a.resolveComponent("flex-container"),{layout:e.model.flex},El(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},El(o)?o:{default:()=>[o]});console.error("不支持的layout类型"+e.model.layout)}return e.model.width&&(r[t.cssVarName("form-collapse-pane-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-collapse-pane-height")]=e.model.height),{ns:t,style:r,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[],t=e[e.length-1];return t&&(t.props=a.mergeProps(t.props||{},{class:this.ns.e("last-child")})),a.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),xy={install(e){_gct.register.formItem.register("collapse-pane",()=>new Oy),e.component(kl.name,kl)}};class Ey{component="gct-form-collapse";createController(t,r){return w.useFormItemController(()=>new w.FormCollapseController(t,r))}}const _l=a.defineComponent({name:"GctFormCollapse",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("form-collapse"),r=a.ref([0]),n={};e.model.width&&(n[t.cssVarName("form-collapse-width")]=e.model.width),e.model.height&&(n[t.cssVarName("form-collapse-height")]=e.model.height);const o=a.ref([]);o.value=e.model.children?.map(u=>u.name)||[];const i=a.computed(()=>e.model.expandIconPosition==="left"?"left":"right");return{ns:t,keys:r,style:n,activeKeys:o,expandIconPosition:i}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return a.createVNode(qe.Collapse,{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1),this.ns.m("icon-"+(this.model.expandIconStyle||"up-down"))],style:this.style,accordion:this.model.accordion,expandIconPosition:this.expandIconPosition,activeKey:this.activeKeys,"onUpdate:activeKey":t=>this.activeKeys=t},{default:()=>[this.model.children?.map((t,r)=>{if(e[r].props.c.state.visible===!1)return;const o=t.collapsible!==!1?void 0:"disabled";return a.createVNode(qe.Collapse.Panel,{key:t.name,header:t.title,collapsible:o},{default:()=>[e[r]]})})]})}}),ky={install(e){_gct.register.formItem.register("collapse",()=>new Ey),e.component(_l.name,_l)}};class _y{component="gct-form-group";createController(t,r){return w.useFormItemController(()=>new w.FormGroupController(t,r))}}function Yn(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Tl=a.defineComponent({name:"GctFormGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form-group"),r=a.ref([0]);function n(i){if(e.model.layout==="flex")return a.createVNode(a.resolveComponent("flex-container"),{layout:e.model.flex},Yn(i)?i:{default:()=>[i]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},Yn(i)?i:{default:()=>[i]});console.error("不支持的layout类型"+e.model.layout)}const o={};return e.model.width&&(o[t.cssVarName("form-group-width")]=e.model.width),e.model.height&&(o[t.cssVarName("form-group-height")]=e.model.height),{ns:t,keys:r,style:o,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];if(this.model.isCollapse){let t;return a.createVNode(a.resolveComponent("a-collapse"),{activeKey:this.keys,"onUpdate:activeKey":r=>this.keys=r,class:[this.ns.b(),this.ns.is("hidden-header",this.model.showHeader===!1),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style,ghost:!0},{default:()=>[a.createVNode(a.resolveComponent("a-collapse-panel"),{key:"0",header:this.model.title},Yn(t=this.renderContainer(e))?t:{default:()=>[t]})]})}return a.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden-header",this.model.showHeader===!1),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.model.showHeader===!1?a.createVNode("div",{class:this.ns.e("title")},[this.model.title]):null,a.createVNode("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),Ty={install(e){_gct.register.formItem.register("container",()=>new _y),e.component(Tl.name,Tl)}};class Ny{component="gct-form-tab";createController(t,r){return w.useFormItemController(()=>new w.FormTabController(t,r))}}const Nl=a.defineComponent({name:"GctFormTab",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("form-tab"),r={};return e.model.width&&(r[t.cssVarName("form-tab-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-tab-height")]=e.model.height),{ns:t,style:r}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return a.createVNode(a.resolveComponent("a-tabs"),{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1),this.ns.m(this.model.navPosition||"left")],style:this.style},{default:()=>[this.model.children?.map((t,r)=>a.createVNode(a.resolveComponent("a-tab-pane"),{key:t.name,tab:t.title},{default:()=>[e[r]]}))]})}}),Ay={install(e){_gct.register.formItem.register("tab",()=>new Ny),e.component(Nl.name,Nl)}};class Ry{component="gct-form-tab-pane";createController(t,r){return w.useFormItemController(()=>new w.FormTabPaneController(t,r))}}function Al(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Rl=a.defineComponent({name:"GctFormTabPane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("form-tab-pane"),r={};function n(o){if(e.model.layout==="flex")return a.createVNode(a.resolveComponent("flex-container"),{layout:e.model.flex},Al(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},Al(o)?o:{default:()=>[o]});console.error("不支持的layout类型"+e.model.layout)}return e.model.width&&(r[t.cssVarName("form-tab-pane-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-tab-pane-height")]=e.model.height),{ns:t,style:r,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return a.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),Py={install(e){_gct.register.formItem.register("tab-pane",()=>new Ry),e.component(Rl.name,Rl)}};class jy{component="gct-form-title-group";createController(t,r){return w.useFormItemController(()=>new w.FormGroupController(t,r))}}function Pl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const jl=a.defineComponent({name:"GctFormTitleGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form-title-group"),r=a.ref([0]);function n(i){if(e.model.layout==="flex")return a.createVNode(a.resolveComponent("flex-container"),{layout:e.model.flex},Pl(i)?i:{default:()=>[i]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},Pl(i)?i:{default:()=>[i]});console.error("不支持的layout类型"+e.model.layout)}const o={};return e.model.width&&(o[t.cssVarName("form-title-group-width")]=e.model.width),e.model.height&&(o[t.cssVarName("form-title-group-height")]=e.model.height),{ns:t,keys:r,style:o,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return a.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[a.createVNode("div",{class:this.ns.e("title")},[this.model.title]),a.createVNode("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),Iy={install(e){_gct.register.formItem.register(w.FormContainerType.FORM_TITLE_GROUP,()=>new jy),e.component(jl.name,jl)}},Vy={install(e){_gct.register.formItem.register("item",()=>new wy),_gct.register.formItem.register("hidden",()=>new Sy),e.use(xy),e.use(ky),e.use(Ty),e.use(Ay),e.use(Py),e.use(Iy),e.component(xl.name,xl),e.component(Ol.name,Ol)}},$y=(e,t)=>(e.install=r=>{const n=e.name||e.displayName;n&&(r.component(n,e),t&&(r.config.globalProperties[t]=e))},e),By={install(e){e.use(my),e.use(yy),e.use(Vy),e.component(Xn.name,Xn),e.component(la.name,la),e.component(Jn.name,Jn),e.component(ua.name,ua),e.component(ca.name,ca)}};exports.CodeEditor=Xn;exports.default=By;exports.withInstall=$y;
|