@gct-paas/core-web 0.1.4-dev.5 → 0.1.4-dev.6

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.
Files changed (34) hide show
  1. package/dist/index.min.cjs +12 -12
  2. package/dist/index.system.min.js +12 -12
  3. package/es/components/layout/flex-container/flex-container.d.ts +4 -4
  4. package/es/components/layout/flex-item/flex-item.d.ts +4 -4
  5. package/es/components/layout/grid-container/grid-container.d.ts +4 -4
  6. package/es/components/layout/view-container/view-container.d.ts +4 -4
  7. package/es/editor/gct-form-check-switch/gct-form-check-switch.d.ts +7 -7
  8. package/es/editor/gct-form-checkbox/gct-form-checkbox.d.ts +6 -6
  9. package/es/editor/gct-form-field-select/gct-form-field-select.d.ts +7 -17
  10. package/es/editor/gct-form-field-select/gct-model-select.vue.d.ts +12 -3
  11. package/es/editor/gct-form-i18n/gct-form-i18n.d.ts +8 -8
  12. package/es/editor/gct-form-icon-select/gct-form-icon-select.d.ts +8 -8
  13. package/es/editor/gct-form-info/gct-form-info.d.ts +7 -7
  14. package/es/editor/gct-form-length-unit/gct-form-length-unit.d.ts +6 -6
  15. package/es/editor/gct-form-modal-select/gct-form-modal-select.d.ts +8 -8
  16. package/es/editor/gct-form-number/gct-form-number.d.ts +7 -7
  17. package/es/editor/gct-form-picker/gct-form-picker.d.ts +8 -8
  18. package/es/editor/gct-form-radio/gct-form-radio.d.ts +7 -7
  19. package/es/editor/gct-form-select/gct-form-select.d.ts +7 -7
  20. package/es/editor/gct-form-span/gct-form-span.d.ts +5 -5
  21. package/es/editor/gct-form-switch/gct-form-switch.d.ts +6 -6
  22. package/es/editor/gct-form-text/gct-form-text.d.ts +7 -7
  23. package/es/editor/gct-form-textarea/gct-form-textarea.d.ts +7 -7
  24. package/es/widgets/gct-edit-form/gct-edit-form.d.ts +9 -9
  25. package/es/widgets/gct-form/gct-form-collapse/gct-form-collapse.d.ts +6 -6
  26. package/es/widgets/gct-form/gct-form-collapse-pane/gct-form-collapse-pane.d.ts +4 -4
  27. package/es/widgets/gct-form/gct-form-group/gct-form-group.d.ts +5 -5
  28. package/es/widgets/gct-form/gct-form-item/gct-form-item.d.ts +4 -4
  29. package/es/widgets/gct-form/gct-form-tab/gct-form-tab.d.ts +4 -4
  30. package/es/widgets/gct-form/gct-form-tab-pane/gct-form-tab-pane.d.ts +4 -4
  31. package/es/widgets/gct-form/gct-form-title-group/gct-form-title-group.d.ts +5 -5
  32. package/es/widgets/gct-form/gct-form.d.ts +5 -5
  33. package/package.json +6 -6
  34. package/es/components/code-editor/code-editor.d.ts +0 -38
@@ -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 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!
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),C=require("@gct-paas/core"),Fe=require("ant-design-vue"),dt=require("lodash-es");function nl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xn(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 Yn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xn(Object(r),!0).forEach(function(n){nl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xn(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ol(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 al(e,t){if(e==null)return{};var r=ol(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 il(e,t){return ll(e)||sl(e,t)||cl(e,t)||ul()}function ll(e){if(Array.isArray(e))return e}function sl(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,i=void 0;try{for(var c=e[Symbol.iterator](),l;!(n=(l=c.next()).done)&&(r.push(l.value),!(t&&r.length===t));n=!0);}catch(s){o=!0,i=s}finally{try{!n&&c.return!=null&&c.return()}finally{if(o)throw i}}return r}}function cl(e,t){if(e){if(typeof e=="string")return Jn(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 Jn(e,t)}}function Jn(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 ul(){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.`)}function dl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zn(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 Qn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zn(Object(r),!0).forEach(function(n){dl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zn(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fl(){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 Ct(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 c=arguments.length,l=new Array(c),s=0;s<c;s++)l[s]=arguments[s];return t.apply(r,[].concat(o,l))}}}function Qt(e){return{}.toString.call(e).includes("Object")}function pl(e){return!Object.keys(e).length}function Nt(e){return typeof e=="function"}function hl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function vl(e,t){return Qt(t)||Ve("changeType"),Object.keys(t).some(function(r){return!hl(e,r)})&&Ve("changeField"),t}function ml(e){Nt(e)||Ve("selectorType")}function gl(e){Nt(e)||Qt(e)||Ve("handlerType"),Qt(e)&&Object.values(e).some(function(t){return!Nt(t)})&&Ve("handlersType")}function yl(e){e||Ve("initialIsRequired"),Qt(e)||Ve("initialType"),pl(e)&&Ve("initialContent")}function bl(e,t){throw new Error(e[t]||e.default)}var Cl={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"},Ve=Ct(bl)(Cl),Ht={changes:vl,selector:ml,handler:gl,initial:yl};function wl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ht.initial(e),Ht.handler(t);var r={current:e},n=Ct(kl)(r,t),o=Ct(xl)(r),i=Ct(Ht.changes)(e),c=Ct(Sl)(r);function l(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(u){return u};return Ht.selector(d),d(r.current)}function s(d){fl(n,o,i,c)(d)}return[l,s]}function Sl(e,t){return Nt(t)?t(e.current):t}function xl(e,t){return e.current=Qn(Qn({},e.current),t),t}function kl(e,t,r){return Nt(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 Ol={create:wl},El={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function _l(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 c=arguments.length,l=new Array(c),s=0;s<c;s++)l[s]=arguments[s];return t.apply(r,[].concat(o,l))}}}function Nl(e){return{}.toString.call(e).includes("Object")}function Al(e){return e||eo("configIsRequired"),Nl(e)||eo("configType"),e.urls?(Vl(),{paths:{vs:e.urls.monacoBase}}):e}function Vl(){console.warn(Ta.deprecation)}function Tl(e,t){throw new Error(e[t]||e.default)}var Ta={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
- `},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&&lt(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&lt(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
- `+xr(u.join(`
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;
11
+ `},eo=_l(Tl)(Ta),jl={config:Al},Pl=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,c){return c(i)},o)}};function ja(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],ja(e[r],t[r]))}),Yn(Yn({},e),t)}var $l={type:"cancelation",msg:"operation is manually canceled"};function Er(e){var t=!1,r=new Promise(function(n,o){e.then(function(i){return t?o($l):n(i)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var Rl=Ol.create({config:El,isInitialized:!1,resolve:null,reject:null,monaco:null}),Pa=il(Rl,2),Rt=Pa[0],pr=Pa[1];function Il(e){var t=jl.config(e),r=t.monaco,n=al(t,["monaco"]);pr(function(o){return{config:ja(o.config,n),monaco:r}})}function Ml(){var e=Rt(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(pr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Er(_r);if(window.monaco&&window.monaco.editor)return $a(window.monaco),e.resolve(window.monaco),Er(_r);Pl(Fl,Gl)(Ll)}return Er(_r)}function Fl(e){return document.body.appendChild(e)}function Bl(e){var t=document.createElement("script");return e&&(t.src=e),t}function Gl(e){var t=Rt(function(n){var o=n.config,i=n.reject;return{config:o,reject:i}}),r=Bl("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function Ll(){var e=Rt(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){$a(r),e.resolve(r)},function(r){e.reject(r)})}function $a(e){Rt().monaco||pr({monaco:e})}function Hl(){return Rt(function(e){var t=e.monaco;return t})}var _r=new Promise(function(e,t){return pr({resolve:e,reject:t})}),Dl={config:Il,init:Ml,__getMonacoInstance:Hl};const Kr=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=C.useNamespace("code-editor"),n=a.computed({get(){return e.value||""},set(c){t("update:value",c)}}),o=a.ref(null);let i=null;return a.onMounted(()=>{Dl.init().then(c=>{o.value&&(i=c.editor.create(o.value,C.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)}}),Xr=a.defineComponent({name:"FlexItem",props:{layout:Object},setup(e){return{ns:C.useNamespace("flex-item"),getStyle:()=>{const n={};if(e.layout){const{order:o,alignSelf:i,flexBasis:c,flexGrow:l,flexShrink:s}=e.layout;o!=null&&(n.order=o),i!=null&&(n["align-self"]=i),c!=null&&(n["flex-basis"]=c),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 zl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const to=a.defineComponent({name:"FlexContainer",props:{layout:Object},setup(e){return{ns:C.useNamespace("flex-container"),getStyle:()=>{const o={};if(e.layout){const{alignContent:i,alignItems:c,flexDirection:l,flexWrap:s,justifyContent:d}=e.layout;i!=null&&(o.alignContent=i),c!=null&&(o.alignItems=c),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:c,height:l}=o;c!=null&&(i.width=c),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(Xr,{layout:r,style:this.getItemStyle(t.props.model)},zl(t)?t:{default:()=>[t]})})])}});function ro(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const no=a.defineComponent({name:"GridContainer",props:{layout:Object},setup(){return{ns:C.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},ro(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},ro(n)?n:{default:()=>[n]})}))?e:{default:()=>[e]})}}),oo=a.defineComponent({name:"ViewContainer",props:{context:{type:Object},params:{type:Object},modal:{type:Object,required:!0}},setup(){return{ns:C.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])}}),ql=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=C.useNamespace("form-length-unit"),r=new C.LengthUnitEditorController(e.model),n=C.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 Wl{component="gct-form-length-unit"}const Ul=C.widthEditorInstall(C.EditorTypeOld.LENGTH_UNIT,()=>new Wl,ql),Ra=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=C.useNamespace("form-color"),t=C.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 Ia{component="gct-form-color"}const Kl=C.widthEditorInstall(C.EditorType.COLOR,()=>new Ia,Ra),Xl=C.widthEditorInstall(C.EditorTypeOld.COLOR,()=>new Ia,Ra);class Yl{component="gct-form-check-switch"}const Jl=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=C.useNamespace("gct-form-check-switch"),r=new C.EditorController(e.model),n=C.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]})}}),Zl=C.widthEditorInstall(C.EditorTypeOld.CHECK_SWITCH,()=>new Yl,Jl);class Ql{component="gct-form-i18n"}const es=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=C.useNamespace("gct-form-i18n"),r=C.useForm().item.i18nConfig,n=C.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)}}),ts=C.widthEditorInstall(C.EditorTypeOld.I18N,()=>new Ql,es),rs=a.defineComponent({name:"GctFormIconSelect",props:{value:{type:Object},model:{type:Object,required:!0}},emits:["update:value"],setup(e,{emit:t}){const r=C.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),c=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,c],()=>{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:c,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 ns=class{component="gct-form-icon-select"};const os=C.widthEditorInstall(C.EditorTypeOld.ICON_SELECT,()=>new ns,rs);class Ma{component="gct-form-number"}const Fa=a.defineComponent({name:"GctFormNumber",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=C.useNamespace("gct-form-number"),t=C.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)}}),as=C.widthEditorInstall(C.EditorType.NUMBER,()=>new Ma,Fa),is=C.widthEditorInstall(C.EditorTypeOld.NUMBER,()=>new Ma,Fa);class ls{component="gct-form-picker"}const ss=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=C.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)}}),cs=C.widthEditorInstall(C.EditorTypeOld.PICKER,()=>new ls,ss);class us{component="gct-form-select"}const ds=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=C.useNamespace("gct-form-select"),r=C.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)}}),fs=C.widthEditorInstall(C.EditorTypeOld.SELECT,()=>new us,ds);class ps{component="gct-form-Modal-select"}const hs=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=C.useNamespace("gct-form-modal-select"),t=a.ref("1"),r=C.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)]})}}),vs=C.widthEditorInstall(C.EditorTypeOld.MODEL_SELECT,()=>new ps,hs);class ms{component="gct-form-field-select"}const gs=e=>(a.pushScopeId("data-v-5fc49e2a"),e=e(),a.popScopeId(),e),ys=gs(()=>a.createElementVNode("div",null,"所属模型:公司",-1)),bs={class:"gct-box"},Cs=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:"修改部门"}]),c=a.ref([]),l=(d,u)=>{console.log()};function s(){o.value=!1}return(d,u)=>{const f=a.resolveComponent("a-transfer"),p=a.resolveComponent("a-modal");return a.openBlock(),a.createBlock(p,{visible:o.value,"onUpdate:visible":u[1]||(u[1]=h=>o.value=h),width:"600px",title:"关联模型字段","ok-text":"确认","cancel-text":"取消",onOk:s},{default:a.withCtx(()=>[ys,a.createElementVNode("div",bs,[a.createVNode(f,{"target-keys":c.value,"onUpdate:targetKeys":u[0]||(u[0]=h=>c.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},8,["visible"])}}}),ws=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},ao=ws(Cs,[["__scopeId","data-v-5fc49e2a"]]),Ss=a.defineComponent({name:"GctFormFieldSelect",components:{modal:ao},props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=C.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(ao,{value:this.visible,"onUpdate:value":e=>this.visible=e},null)])}}),xs=C.widthEditorInstall(C.EditorTypeOld.Field_SELECT,()=>new ms,Ss);class ks{component="gct-form-span"}const Os=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=C.useNamespace("form-span"),{model:r,itemModel:n,c:o}=a.toRefs(e);function i(){const{isSuccessRef:l}=C.useCopyToClipboard(e.value);l.value&&Fe.message.success(_gct.t("sys.copySuccess"))}o.value.loadDictionary();const c=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:c,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)])])}}),Es=C.widthEditorInstall(C.EditorTypeOld.SPAN,()=>new ks,Os);class Ba{component="gct-form-switch"}const Ga=a.defineComponent({name:"GctFormSwitch",props:{model:{type:Object,required:!0},value:{type:String,default:""}},setup(){const e=C.useNamespace("gct-form-switch"),t=C.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)])}}),_s=C.widthEditorInstall(C.EditorType.SWITCH,()=>new Ba,Ga),Ns=C.widthEditorInstall(C.EditorTypeOld.SWITCH,()=>new Ba,Ga);class La{component="gct-form-text"}const Ha=a.defineComponent({name:"GctFormText",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=C.useNamespace("gct-form-text"),r=new C.EditorController(e.model),n=C.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)}}),As=C.widthEditorInstall(C.EditorType.TEXT,()=>new La,Ha),Vs=C.widthEditorInstall(C.EditorTypeOld.TEXT,()=>new La,Ha);class Ts{component="gct-form-textarea"}const js=a.defineComponent({name:"GctFormTextarea",props:{model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(){const e=C.useNamespace("gct-form-textarea"),t=C.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)}}),Ps=C.widthEditorInstall(C.EditorTypeOld.TEXTAREA,()=>new Ts,js);function $s(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Da=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=C.useNamespace("gct-form-radio"),t=C.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(Fe.RadioGroup,a.mergeProps({value:this.val,"onUpdate:value":r=>this.val=r,size:"small","button-style":"solid"},e),$s(t=this.c.state.options.map(r=>a.createVNode(Fe.RadioButton,{key:r.value,value:r.value},{default:()=>[r.label]})))?t:{default:()=>[t]})}return e.class.push(this.ns.m("radio")),a.createVNode(Fe.RadioGroup,a.mergeProps({value:this.val,"onUpdate:value":t=>this.val=t,options:this.c.state.options},e),null)}});let za=class{component="gct-form-radio"};const Rs=C.widthEditorInstall(C.EditorType.RADIO,()=>new za,Da),Is=C.widthEditorInstall(C.EditorTypeOld.RADIO,()=>new za,Da),Ms=a.defineComponent({name:"GctFormInfo",props:{value:{type:String,default:""},model:{type:Object,required:!0}},emits:["update:value"],setup(){const e=C.useNamespace("gct-form-info"),t=C.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 Fs=class{component="gct-form-info"};const Bs=C.widthEditorInstall(C.EditorTypeOld.INFO,()=>new Fs,Ms),qa=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=C.useNamespace("gct-form-checkbox"),n=C.useGctFormValue(),o=a.computed(()=>n.value),i=a.computed(()=>dt.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(Fe.CheckboxGroup,a.mergeProps({value:this.checked,"onUpdate:value":t=>this.checked=t,options:this.options},e,{onChange:this.onChange}),null)}});class Wa{component="gct-form-checkbox"}const Gs=C.widthEditorInstall(C.EditorType.CHECKBOX,()=>new Wa,qa),Ls=C.widthEditorInstall(C.EditorTypeOld.CHECKBOX,()=>new Wa,qa);function Ua(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}const hr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Hs=Object.prototype.toString,Ds=e=>Hs.call(e)==="[object Object]",xe=()=>{},zs=qs();function qs(){var e,t;return hr&&((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 Ws(...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 Ka(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 Xa=e=>e();function Us(e,t={}){let r,n,o=xe;const i=s=>{clearTimeout(s),o(),o=xe};let c;return s=>{const d=a.toValue(e),u=a.toValue(t.maxWait);return r&&i(r),d<=0||u!==void 0&&u<=0?(n&&(i(n),n=void 0),Promise.resolve(s())):new Promise((f,p)=>{o=t.rejectOnCancel?p:f,c=s,u&&!n&&(n=setTimeout(()=>{r&&i(r),n=void 0,f(c())},u)),r=setTimeout(()=>{n&&i(n),n=void 0,f(s())},d)})}}function Ks(e=Xa,t={}){const{initialState:r="active"}=t,n=Ws(r==="active");function o(){n.value=!1}function i(){n.value=!0}const c=(...l)=>{n.value&&e(...l)};return{isActive:a.readonly(n),pause:o,resume:i,eventFilter:c}}function Xs(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 Nr(e){return Array.isArray(e)?e:[e]}function Ys(e){return a.getCurrentInstance()}function ke(e,t=200,r={}){return Ka(Us(t,r),e)}function Js(e,t,r={}){const{eventFilter:n=Xa,...o}=r;return a.watch(e,Ka(n,t),o)}function Zs(e,t,r={}){const{eventFilter:n,initialState:o="active",...i}=r,{eventFilter:c,pause:l,resume:s,isActive:d}=Ks(n,{initialState:o});return{stop:Js(e,t,{...i,eventFilter:c}),pause:l,resume:s,isActive:d}}function ze(e,t=!0,r){Ys()?a.onMounted(e,r):t?e():a.nextTick(e)}function Qs(e,t,r={}){const{immediate:n=!0,immediateCallback:o=!1}=r,i=a.shallowRef(!1);let c;function l(){c&&(clearTimeout(c),c=void 0)}function s(){i.value=!1,l()}function d(...u){o&&e(),l(),i.value=!0,c=setTimeout(()=>{i.value=!1,c=void 0,e(...u)},a.toValue(t))}return n&&(i.value=!0,hr&&d()),Ua(s),{isPending:a.shallowReadonly(i),start:d,stop:s}}function ec(e,t,r){return a.watch(e,t,{...r,immediate:!0})}function Y(e,t,r){const n=a.watch(e,(o,i,c)=>{o&&(r?.once&&a.nextTick(()=>n()),t(o,i,c))},{...r,once:!1});return n}const At=hr?window:void 0,Ya=hr?window.navigator:void 0;function wt(e){var t;const r=a.toValue(e);return(t=r?.$el)!=null?t:r}function Be(...e){const t=[],r=()=>{t.forEach(l=>l()),t.length=0},n=(l,s,d,u)=>(l.addEventListener(s,d,u),()=>l.removeEventListener(s,d,u)),o=a.computed(()=>{const l=Nr(a.toValue(e[0])).filter(s=>s!=null);return l.every(s=>typeof s!="string")?l:void 0}),i=ec(()=>{var l,s;return[(s=(l=o.value)==null?void 0:l.map(d=>wt(d)))!=null?s:[At].filter(d=>d!=null),Nr(a.toValue(o.value?e[1]:e[0])),Nr(a.unref(o.value?e[2]:e[1])),a.toValue(o.value?e[3]:e[2])]},([l,s,d,u])=>{if(r(),!l?.length||!s?.length||!d?.length)return;const f=Ds(u)?{...u}:u;t.push(...l.flatMap(p=>s.flatMap(h=>d.map(b=>n(p,h,b,f)))))},{flush:"post"}),c=()=>{i(),r()};return Ua(r),c}let io=!1;function tc(e,t,r={}){const{window:n=At,ignore:o=[],capture:i=!0,detectIframe:c=!1,controls:l=!1}=r;if(!n)return l?{stop:xe,cancel:xe,trigger:xe}:xe;if(zs&&!io){io=!0;const v={passive:!0};Array.from(n.document.body.children).forEach(m=>m.addEventListener("click",xe,v)),n.document.documentElement.addEventListener("click",xe,v)}let s=!0;const d=v=>a.toValue(o).some(m=>{if(typeof m=="string")return Array.from(n.document.querySelectorAll(m)).some(y=>y===v.target||v.composedPath().includes(y));{const y=wt(m);return y&&(v.target===y||v.composedPath().includes(y))}});function u(v){const m=a.toValue(v);return m&&m.$.subTree.shapeFlag===16}function f(v,m){const y=a.toValue(v),S=y.$.subTree&&y.$.subTree.children;return S==null||!Array.isArray(S)?!1:S.some(k=>k.el===m.target||m.composedPath().includes(k.el))}const p=v=>{const m=wt(e);if(v.target!=null&&!(!(m instanceof Element)&&u(e)&&f(e,v))&&!(!m||m===v.target||v.composedPath().includes(m))){if("detail"in v&&v.detail===0&&(s=!d(v)),!s){s=!0;return}t(v)}};let h=!1;const b=[Be(n,"click",v=>{h||(h=!0,setTimeout(()=>{h=!1},0),p(v))},{passive:!0,capture:i}),Be(n,"pointerdown",v=>{const m=wt(e);s=!d(v)&&!!(m&&!v.composedPath().includes(m))},{passive:!0}),c&&Be(n,"blur",v=>{setTimeout(()=>{var m;const y=wt(e);((m=n.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!y?.contains(n.document.activeElement)&&t(v)},0)},{passive:!0})].filter(Boolean),g=()=>b.forEach(v=>v());return l?{stop:g,cancel:()=>{s=!1},trigger:v=>{s=!0,p(v),s=!1}}:g}function rc(){const e=a.shallowRef(!1),t=a.getCurrentInstance();return t&&a.onMounted(()=>{e.value=!0},t),e}function Ja(e){const t=rc();return a.computed(()=>(t.value,!!e()))}function lo(e,t={}){const{controls:r=!1,navigator:n=Ya}=t,o=Ja(()=>n&&"permissions"in n),i=a.shallowRef(),c=typeof e=="string"?{name:e}:e,l=a.shallowRef(),s=()=>{var u,f;l.value=(f=(u=i.value)==null?void 0:u.state)!=null?f:"prompt"};Be(i,"change",s,{passive:!0});const d=Xs(async()=>{if(o.value){if(!i.value)try{i.value=await n.permissions.query(c)}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 nc(e={}){const{navigator:t=Ya,read:r=!1,source:n,copiedDuring:o=1500,legacy:i=!1}=e,c=Ja(()=>t&&"clipboard"in t),l=lo("clipboard-read"),s=lo("clipboard-write"),d=a.computed(()=>c.value||i),u=a.shallowRef(""),f=a.shallowRef(!1),p=Qs(()=>f.value=!1,o,{immediate:!1});async function h(){let y=!(c.value&&m(l.value));if(!y)try{u.value=await t.clipboard.readText()}catch{y=!0}y&&(u.value=v())}d.value&&r&&Be(["copy","cut"],h,{passive:!0});async function b(y=a.toValue(n)){if(d.value&&y!=null){let S=!(c.value&&m(s.value));if(!S)try{await t.clipboard.writeText(y)}catch{S=!0}S&&g(y),u.value=y,f.value=!0,p.start()}}function g(y){const S=document.createElement("textarea");S.value=y??"",S.style.position="absolute",S.style.opacity="0",document.body.appendChild(S),S.select(),document.execCommand("copy"),S.remove()}function v(){var y,S,k;return(k=(S=(y=document?.getSelection)==null?void 0:y.call(document))==null?void 0:S.toString())!=null?k:""}function m(y){return y==="granted"||y==="prompt"}return{isSupported:d,text:u,copied:f,copy:b}}const Dt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zt="__vueuse_ssr_handlers__",oc=ac();function ac(){return zt in Dt||(Dt[zt]=Dt[zt]||{}),Dt[zt]}function ic(e,t){return oc[e]||t}function lc(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 sc={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()}},so="vueuse-storage";function cc(e,t,r,n={}){var o;const{flush:i="pre",deep:c=!0,listenToStorageChanges:l=!0,writeDefaults:s=!0,mergeDefaults:d=!1,shallow:u,window:f=At,eventFilter:p,onError:h=E=>{console.error(E)},initOnMounted:b}=n,g=(u?a.shallowRef:a.ref)(typeof t=="function"?t():t),v=a.computed(()=>a.toValue(e));if(!r)try{r=ic("getDefaultStorage",()=>{var E;return(E=At)==null?void 0:E.localStorage})()}catch(E){h(E)}if(!r)return g;const m=a.toValue(t),y=lc(m),S=(o=n.serializer)!=null?o:sc[y],{pause:k,resume:_}=Zs(g,E=>F(E),{flush:i,deep:c,eventFilter:p});a.watch(v,()=>N(),{flush:i});let O=!1;const j=E=>{b&&!O||N(E)},M=E=>{b&&!O||P(E)};f&&l&&(r instanceof Storage?Be(f,"storage",j,{passive:!0}):Be(f,so,M)),b?ze(()=>{O=!0,N()}):N();function $(E,V){if(f){const I={key:v.value,oldValue:E,newValue:V,storageArea:r};f.dispatchEvent(r instanceof Storage?new StorageEvent("storage",I):new CustomEvent(so,{detail:I}))}}function F(E){try{const V=r.getItem(v.value);if(E==null)$(V,null),r.removeItem(v.value);else{const I=S.write(E);V!==I&&(r.setItem(v.value,I),$(V,I))}}catch(V){h(V)}}function w(E){const V=E?E.newValue:r.getItem(v.value);if(V==null)return s&&m!=null&&r.setItem(v.value,S.write(m)),m;if(!E&&d){const I=S.read(V);return typeof d=="function"?d(I,m):y==="object"&&!Array.isArray(I)?{...m,...I}:I}else return typeof V!="string"?V:S.read(V)}function N(E){if(!(E&&E.storageArea!==r)){if(E&&E.key==null){g.value=m;return}if(!(E&&E.key!==v.value)){k();try{const V=S.write(g.value);(E===void 0||E?.newValue!==V)&&(g.value=w(E))}catch(V){h(V)}finally{E?a.nextTick(_):_()}}}}function P(E){N(E.detail)}return g}function sn(e,t,r={}){const{window:n=At}=r;return cc(e,t,n?.localStorage,r)}function er(e){"@babel/helpers - typeof";return er=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},er(e)}var uc=/^\s+/,dc=/\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=fc(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,c,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?c=n/12.92:c=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*c+.0722*l},setAlpha:function(t){return this._a=Za(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=uo(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=uo(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=co(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=co(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 fo(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return mc(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(L(this._r,255)*100)+"%",g:Math.round(L(this._g,255)*100)+"%",b:Math.round(L(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(L(this._r,255)*100)+"%, "+Math.round(L(this._g,255)*100)+"%, "+Math.round(L(this._b,255)*100)+"%)":"rgba("+Math.round(L(this._r,255)*100)+"%, "+Math.round(L(this._g,255)*100)+"%, "+Math.round(L(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Nc[fo(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+po(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var i=x(t);n="#"+po(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(Cc,arguments)},brighten:function(){return this._applyModification(wc,arguments)},darken:function(){return this._applyModification(Sc,arguments)},desaturate:function(){return this._applyModification(gc,arguments)},saturate:function(){return this._applyModification(yc,arguments)},greyscale:function(){return this._applyModification(bc,arguments)},spin:function(){return this._applyModification(xc,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(Ec,arguments)},complement:function(){return this._applyCombination(kc,arguments)},monochromatic:function(){return this._applyCombination(_c,arguments)},splitcomplement:function(){return this._applyCombination(Oc,arguments)},triad:function(){return this._applyCombination(ho,[3])},tetrad:function(){return this._applyCombination(ho,[4])}};x.fromRatio=function(e,t){if(er(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=St(e[n]));e=r}return x(e,t)};function fc(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,i=null,c=!1,l=!1;return typeof e=="string"&&(e=jc(e)),er(e)=="object"&&(we(e.r)&&we(e.g)&&we(e.b)?(t=pc(e.r,e.g,e.b),c=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):we(e.h)&&we(e.s)&&we(e.v)?(n=St(e.s),o=St(e.v),t=vc(e.h,n,o),c=!0,l="hsv"):we(e.h)&&we(e.s)&&we(e.l)&&(n=St(e.s),i=St(e.l),t=hc(e.h,n,i),c=!0,l="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=Za(r),{ok:c,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 pc(e,t,r){return{r:L(e,255)*255,g:L(t,255)*255,b:L(r,255)*255}}function co(e,t,r){e=L(e,255),t=L(t,255),r=L(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i,c,l=(n+o)/2;if(n==o)i=c=0;else{var s=n-o;switch(c=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:c,l}}function hc(e,t,r){var n,o,i;e=L(e,360),t=L(t,100),r=L(r,100);function c(d,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?d+(u-d)*6*f:f<1/2?u:f<2/3?d+(u-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=c(s,l,e+1/3),o=c(s,l,e),i=c(s,l,e-1/3)}return{r:n*255,g:o*255,b:i*255}}function uo(e,t,r){e=L(e,255),t=L(t,255),r=L(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i,c,l=n,s=n-o;if(c=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:c,v:l}}function vc(e,t,r){e=L(e,360)*6,t=L(t,100),r=L(r,100);var n=Math.floor(e),o=e-n,i=r*(1-t),c=r*(1-o*t),l=r*(1-(1-o)*t),s=n%6,d=[r,c,i,i,l,r][s],u=[l,r,r,c,i,i][s],f=[i,i,l,r,r,c][s];return{r:d*255,g:u*255,b:f*255}}function fo(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 mc(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(Qa(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 po(e,t,r,n){var o=[he(Qa(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 gc(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s-=t/100,r.s=vr(r.s),x(r)}function yc(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s+=t/100,r.s=vr(r.s),x(r)}function bc(e){return x(e).desaturate(100)}function Cc(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l+=t/100,r.l=vr(r.l),x(r)}function wc(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 Sc(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l-=t/100,r.l=vr(r.l),x(r)}function xc(e,t){var r=x(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,x(r)}function kc(e){var t=x(e).toHsl();return t.h=(t.h+180)%360,x(t)}function ho(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 Oc(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 Ec(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 _c(e,t){t=t||6;for(var r=x(e).toHsv(),n=r.h,o=r.s,i=r.v,c=[],l=1/t;t--;)c.push(x({h:n,s:o,v:i})),i=(i+l)%1;return c}x.mix=function(e,t,r){r=r===0?0:r||50;var n=x(e).toRgb(),o=x(t).toRgb(),i=r/100,c={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(c)};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=Pc(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,c,l,s;r=r||{},c=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})||!c?n:(r.includeFallbackColors=!1,x.mostReadable(e,["#fff","#000"],r))};var Yr=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"},Nc=x.hexNames=Ac(Yr);function Ac(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function Za(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function L(e,t){Vc(e)&&(e="100%");var r=Tc(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 vr(e){return Math.min(1,Math.max(0,e))}function ne(e){return parseInt(e,16)}function Vc(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Tc(e){return typeof e=="string"&&e.indexOf("%")!=-1}function he(e){return e.length==1?"0"+e:""+e}function St(e){return e<=1&&(e=e*100+"%"),e}function Qa(e){return Math.round(parseFloat(e)*255).toString(16)}function vo(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 we(e){return!!pe.CSS_UNIT.exec(e)}function jc(e){e=e.replace(uc,"").replace(dc,"").toLowerCase();var t=!1;if(Yr[e])e=Yr[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:vo(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:vo(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 Pc(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 qt={},mo;function $c(){if(mo)return qt;mo=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,c){n+=t.visit(i),c<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(A){var R=new Error(r+": "+A);throw R.source=r,R}function o(){var A=i();return r.length>0&&n("Invalid input not EOF"),A}function i(){return k(c)}function c(){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(A,R,B){return s(R,function(Q){var ve=B();return ve&&(I(t.comma)||n("Missing comma before color stops")),{type:A,orientation:ve,colorStops:k(_)}})}function s(A,R){var B=I(A);if(B){I(t.startCall)||n("Missing (");var Q=R(B);return I(t.endCall)||n("Missing )"),Q}}function d(){return u()||f()}function u(){return V("directional",t.sideOrCorner,1)}function f(){return V("angular",t.angleValue,1)}function p(){var A,R=h(),B;return R&&(A=[],A.push(R),B=r,I(t.comma)&&(R=h(),R?A.push(R):r=B)),A}function h(){var A=b()||g();if(A)A.at=m();else{var R=v();if(R){A=R;var B=m();B&&(A.at=B)}else{var Q=y();Q&&(A={type:"default-radial",at:Q})}}return A}function b(){var A=V("shape",/^(circle)/i,0);return A&&(A.style=E()||v()),A}function g(){var A=V("shape",/^(ellipse)/i,0);return A&&(A.style=N()||v()),A}function v(){return V("extent-keyword",t.extentKeywords,1)}function m(){if(V("position",/^at/,0)){var A=y();return A||n("Missing positioning value"),A}}function y(){var A=S();if(A.x||A.y)return{type:"position",value:A}}function S(){return{x:N(),y:N()}}function k(A){var R=A(),B=[];if(R)for(B.push(R);I(t.comma);)R=A(),R?B.push(R):n("One extra comma");return B}function _(){var A=O();return A||n("Expected color definition"),A.length=N(),A}function O(){return M()||F()||$()||j()}function j(){return V("literal",t.literalColor,0)}function M(){return V("hex",t.hexColor,1)}function $(){return s(t.rgbColor,function(){return{type:"rgb",value:k(w)}})}function F(){return s(t.rgbaColor,function(){return{type:"rgba",value:k(w)}})}function w(){return I(t.number)[1]}function N(){return V("%",t.percentageValue,1)||P()||E()}function P(){return V("position-keyword",t.positionKeywords,1)}function E(){return V("px",t.pixelValue,1)||V("em",t.emValue,1)}function V(A,R,B){var Q=I(R);if(Q)return{type:A,value:Q[B]}}function I(A){var R,B;return B=/^[\n\r\t\s]+/.exec(r),B&&K(B[0].length),R=A.exec(r),R&&K(R[0].length),R}function K(A){r=r.substr(A)}return function(A){return r=A.toString(),o()}})(),qt.parse=e.parse,qt.stringify=e.stringify,qt}var go=$c(),ee="top",ue="bottom",de="right",te="left",cn="auto",It=[ee,ue,de,te],rt="start",Vt="end",Rc="clippingParents",ei="viewport",mt="popper",Ic="reference",yo=It.reduce(function(e,t){return e.concat([t+"-"+rt,t+"-"+Vt])},[]),ti=[].concat(It,[cn]).reduce(function(e,t){return e.concat([t,t+"-"+rt,t+"-"+Vt])},[]),Mc="beforeRead",Fc="read",Bc="afterRead",Gc="beforeMain",Lc="main",Hc="afterMain",Dc="beforeWrite",zc="write",qc="afterWrite",Wc=[Mc,Fc,Bc,Gc,Lc,Hc,Dc,zc,qc];function be(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 un(e){if(typeof ShadowRoot>"u")return!1;var t=oe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Uc(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)||!be(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(c){var l=o[c];l===!1?i.removeAttribute(c):i.setAttribute(c,l===!0?"":l)}))})}function Kc(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]||{},c=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=c.reduce(function(s,d){return s[d]="",s},{});!se(o)||!be(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(s){o.removeAttribute(s)}))})}}const Xc={name:"applyStyles",enabled:!0,phase:"write",fn:Uc,effect:Kc,requires:["computeStyles"]};function ye(e){return e.split("-")[0]}var Ge=Math.max,tr=Math.min,nt=Math.round;function Jr(){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 ri(){return!/^((?!chrome|android).)*safari/i.test(Jr())}function ot(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&&nt(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&nt(n.height)/e.offsetHeight||1);var c=Le(e)?oe(e):window,l=c.visualViewport,s=!ri()&&r,d=(n.left+(s&&l?l.offsetLeft:0))/o,u=(n.top+(s&&l?l.offsetTop:0))/i,f=n.width/o,p=n.height/i;return{width:f,height:p,top:u,right:d+f,bottom:u+p,left:d,x:d,y:u}}function dn(e){var t=ot(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 ni(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&un(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ee(e){return oe(e).getComputedStyle(e)}function Yc(e){return["table","td","th"].indexOf(be(e))>=0}function $e(e){return((Le(e)?e.ownerDocument:e.document)||window.document).documentElement}function mr(e){return be(e)==="html"?e:e.assignedSlot||e.parentNode||(un(e)?e.host:null)||$e(e)}function bo(e){return!se(e)||Ee(e).position==="fixed"?null:e.offsetParent}function Jc(e){var t=/firefox/i.test(Jr()),r=/Trident/i.test(Jr());if(r&&se(e)){var n=Ee(e);if(n.position==="fixed")return null}var o=mr(e);for(un(o)&&(o=o.host);se(o)&&["html","body"].indexOf(be(o))<0;){var i=Ee(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 Mt(e){for(var t=oe(e),r=bo(e);r&&Yc(r)&&Ee(r).position==="static";)r=bo(r);return r&&(be(r)==="html"||be(r)==="body"&&Ee(r).position==="static")?t:r||Jc(e)||t}function fn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function kt(e,t,r){return Ge(e,tr(t,r))}function Zc(e,t,r){var n=kt(e,t,r);return n>r?r:n}function oi(){return{top:0,right:0,bottom:0,left:0}}function ai(e){return Object.assign({},oi(),e)}function ii(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Qc=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ai(typeof t!="number"?t:ii(t,It))};function eu(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,c=r.modifiersData.popperOffsets,l=ye(r.placement),s=fn(l),d=[te,de].indexOf(l)>=0,u=d?"height":"width";if(!(!i||!c)){var f=Qc(o.padding,r),p=dn(i),h=s==="y"?ee:te,b=s==="y"?ue:de,g=r.rects.reference[u]+r.rects.reference[s]-c[s]-r.rects.popper[u],v=c[s]-r.rects.reference[s],m=Mt(i),y=m?s==="y"?m.clientHeight||0:m.clientWidth||0:0,S=g/2-v/2,k=f[h],_=y-p[u]-f[b],O=y/2-p[u]/2+S,j=kt(k,O,_),M=s;r.modifiersData[n]=(t={},t[M]=j,t.centerOffset=j-O,t)}}function tu(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)||ni(t.elements.popper,o)&&(t.elements.arrow=o))}const ru={name:"arrow",enabled:!0,phase:"main",fn:eu,effect:tu,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function at(e){return e.split("-")[1]}var nu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ou(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:nt(r*o)/o||0,y:nt(n*o)/o||0}}function Co(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,c=e.offsets,l=e.position,s=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=c.x,h=p===void 0?0:p,b=c.y,g=b===void 0?0:b,v=typeof u=="function"?u({x:h,y:g}):{x:h,y:g};h=v.x,g=v.y;var m=c.hasOwnProperty("x"),y=c.hasOwnProperty("y"),S=te,k=ee,_=window;if(d){var O=Mt(r),j="clientHeight",M="clientWidth";if(O===oe(r)&&(O=$e(r),Ee(O).position!=="static"&&l==="absolute"&&(j="scrollHeight",M="scrollWidth")),O=O,o===ee||(o===te||o===de)&&i===Vt){k=ue;var $=f&&O===_&&_.visualViewport?_.visualViewport.height:O[j];g-=$-n.height,g*=s?1:-1}if(o===te||(o===ee||o===ue)&&i===Vt){S=de;var F=f&&O===_&&_.visualViewport?_.visualViewport.width:O[M];h-=F-n.width,h*=s?1:-1}}var w=Object.assign({position:l},d&&nu),N=u===!0?ou({x:h,y:g},oe(r)):{x:h,y:g};if(h=N.x,g=N.y,s){var P;return Object.assign({},w,(P={},P[k]=y?"0":"",P[S]=m?"0":"",P.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",P))}return Object.assign({},w,(t={},t[k]=y?g+"px":"",t[S]=m?h+"px":"",t.transform="",t))}function au(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,c=i===void 0?!0:i,l=r.roundOffsets,s=l===void 0?!0:l,d={placement:ye(t.placement),variation:at(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,Co(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Co(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 iu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:au,data:{}};var Wt={passive:!0};function lu(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,c=n.resize,l=c===void 0?!0:c,s=oe(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",r.update,Wt)}),l&&s.addEventListener("resize",r.update,Wt),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",r.update,Wt)}),l&&s.removeEventListener("resize",r.update,Wt)}}const su={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lu,data:{}};var cu={left:"right",right:"left",bottom:"top",top:"bottom"};function Yt(e){return e.replace(/left|right|bottom|top/g,function(t){return cu[t]})}var uu={start:"end",end:"start"};function wo(e){return e.replace(/start|end/g,function(t){return uu[t]})}function pn(e){var t=oe(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function hn(e){return ot($e(e)).left+pn(e).scrollLeft}function du(e,t){var r=oe(e),n=$e(e),o=r.visualViewport,i=n.clientWidth,c=n.clientHeight,l=0,s=0;if(o){i=o.width,c=o.height;var d=ri();(d||!d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:c,x:l+hn(e),y:s}}function fu(e){var t,r=$e(e),n=pn(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ge(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=Ge(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+hn(e),s=-n.scrollTop;return Ee(o||r).direction==="rtl"&&(l+=Ge(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:c,x:l,y:s}}function vn(e){var t=Ee(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function li(e){return["html","body","#document"].indexOf(be(e))>=0?e.ownerDocument.body:se(e)&&vn(e)?e:li(mr(e))}function Ot(e,t){var r;t===void 0&&(t=[]);var n=li(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=oe(n),c=o?[i].concat(i.visualViewport||[],vn(n)?n:[]):n,l=t.concat(c);return o?l:l.concat(Ot(mr(c)))}function Zr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pu(e,t){var r=ot(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 So(e,t,r){return t===ei?Zr(du(e,r)):Le(t)?pu(t,r):Zr(fu($e(e)))}function hu(e){var t=Ot(mr(e)),r=["absolute","fixed"].indexOf(Ee(e).position)>=0,n=r&&se(e)?Mt(e):e;return Le(n)?t.filter(function(o){return Le(o)&&ni(o,n)&&be(o)!=="body"}):[]}function vu(e,t,r,n){var o=t==="clippingParents"?hu(e):[].concat(t),i=[].concat(o,[r]),c=i[0],l=i.reduce(function(s,d){var u=So(e,d,n);return s.top=Ge(u.top,s.top),s.right=tr(u.right,s.right),s.bottom=tr(u.bottom,s.bottom),s.left=Ge(u.left,s.left),s},So(e,c,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function si(e){var t=e.reference,r=e.element,n=e.placement,o=n?ye(n):null,i=n?at(n):null,c=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,s;switch(o){case ee:s={x:c,y:t.y-r.height};break;case ue:s={x:c,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?fn(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case rt:s[d]=s[d]-(t[u]/2-r[u]/2);break;case Vt:s[d]=s[d]+(t[u]/2-r[u]/2);break}}return s}function Tt(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,c=i===void 0?e.strategy:i,l=r.boundary,s=l===void 0?Rc:l,d=r.rootBoundary,u=d===void 0?ei:d,f=r.elementContext,p=f===void 0?mt:f,h=r.altBoundary,b=h===void 0?!1:h,g=r.padding,v=g===void 0?0:g,m=ai(typeof v!="number"?v:ii(v,It)),y=p===mt?Ic:mt,S=e.rects.popper,k=e.elements[b?y:p],_=vu(Le(k)?k:k.contextElement||$e(e.elements.popper),s,u,c),O=ot(e.elements.reference),j=si({reference:O,element:S,placement:o}),M=Zr(Object.assign({},S,j)),$=p===mt?M:O,F={top:_.top-$.top+m.top,bottom:$.bottom-_.bottom+m.bottom,left:_.left-$.left+m.left,right:$.right-_.right+m.right},w=e.modifiersData.offset;if(p===mt&&w){var N=w[o];Object.keys(F).forEach(function(P){var E=[de,ue].indexOf(P)>=0?1:-1,V=[ee,ue].indexOf(P)>=0?"y":"x";F[P]+=N[V]*E})}return F}function mu(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,c=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,d=s===void 0?ti:s,u=at(n),f=u?l?yo:yo.filter(function(b){return at(b)===u}):It,p=f.filter(function(b){return d.indexOf(b)>=0});p.length===0&&(p=f);var h=p.reduce(function(b,g){return b[g]=Tt(e,{placement:g,boundary:o,rootBoundary:i,padding:c})[ye(g)],b},{});return Object.keys(h).sort(function(b,g){return h[b]-h[g]})}function gu(e){if(ye(e)===cn)return[];var t=Yt(e);return[wo(e),t,wo(t)]}function yu(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,c=r.altAxis,l=c===void 0?!0:c,s=r.fallbackPlacements,d=r.padding,u=r.boundary,f=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,b=h===void 0?!0:h,g=r.allowedAutoPlacements,v=t.options.placement,m=ye(v),y=m===v,S=s||(y||!b?[Yt(v)]:gu(v)),k=[v].concat(S).reduce(function(Ae,me){return Ae.concat(ye(me)===cn?mu(t,{placement:me,boundary:u,rootBoundary:f,padding:d,flipVariations:b,allowedAutoPlacements:g}):me)},[]),_=t.rects.reference,O=t.rects.popper,j=new Map,M=!0,$=k[0],F=0;F<k.length;F++){var w=k[F],N=ye(w),P=at(w)===rt,E=[ee,ue].indexOf(N)>=0,V=E?"width":"height",I=Tt(t,{placement:w,boundary:u,rootBoundary:f,altBoundary:p,padding:d}),K=E?P?de:te:P?ue:ee;_[V]>O[V]&&(K=Yt(K));var A=Yt(K),R=[];if(i&&R.push(I[N]<=0),l&&R.push(I[K]<=0,I[A]<=0),R.every(function(Ae){return Ae})){$=w,M=!1;break}j.set(w,R)}if(M)for(var B=b?3:1,Q=function(me){var vt=k.find(function(Gt){var Re=j.get(Gt);if(Re)return Re.slice(0,me).every(function(xr){return xr})});if(vt)return $=vt,"break"},ve=B;ve>0;ve--){var Ke=Q(ve);if(Ke==="break")break}t.placement!==$&&(t.modifiersData[n]._skip=!0,t.placement=$,t.reset=!0)}}const bu={name:"flip",enabled:!0,phase:"main",fn:yu,requiresIfExists:["offset"],data:{_skip:!1}};function xo(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 ko(e){return[ee,de,ue,te].some(function(t){return e[t]>=0})}function Cu(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,c=Tt(t,{elementContext:"reference"}),l=Tt(t,{altBoundary:!0}),s=xo(c,n),d=xo(l,o,i),u=ko(s),f=ko(d);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const wu={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Cu};function Su(e,t,r){var n=ye(e),o=[te,ee].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=i[0],l=i[1];return c=c||0,l=(l||0)*o,[te,de].indexOf(n)>=0?{x:l,y:c}:{x:c,y:l}}function xu(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,c=ti.reduce(function(u,f){return u[f]=Su(f,t.rects,i),u},{}),l=c[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]=c}const ku={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xu};function Ou(e){var t=e.state,r=e.name;t.modifiersData[r]=si({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Eu={name:"popperOffsets",enabled:!0,phase:"read",fn:Ou,data:{}};function _u(e){return e==="x"?"y":"x"}function Nu(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,c=r.altAxis,l=c===void 0?!1:c,s=r.boundary,d=r.rootBoundary,u=r.altBoundary,f=r.padding,p=r.tether,h=p===void 0?!0:p,b=r.tetherOffset,g=b===void 0?0:b,v=Tt(t,{boundary:s,rootBoundary:d,padding:f,altBoundary:u}),m=ye(t.placement),y=at(t.placement),S=!y,k=fn(m),_=_u(k),O=t.modifiersData.popperOffsets,j=t.rects.reference,M=t.rects.popper,$=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,F=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),w=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(O){if(i){var P,E=k==="y"?ee:te,V=k==="y"?ue:de,I=k==="y"?"height":"width",K=O[k],A=K+v[E],R=K-v[V],B=h?-M[I]/2:0,Q=y===rt?j[I]:M[I],ve=y===rt?-M[I]:-j[I],Ke=t.elements.arrow,Ae=h&&Ke?dn(Ke):{width:0,height:0},me=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:oi(),vt=me[E],Gt=me[V],Re=kt(0,j[I],Ae[I]),xr=S?j[I]/2-B-Re-vt-F.mainAxis:Q-Re-vt-F.mainAxis,Ji=S?-j[I]/2+B+Re+Gt+F.mainAxis:ve+Re+Gt+F.mainAxis,kr=t.elements.arrow&&Mt(t.elements.arrow),Zi=kr?k==="y"?kr.clientTop||0:kr.clientLeft||0:0,Gn=(P=w?.[k])!=null?P:0,Qi=K+xr-Gn-Zi,el=K+Ji-Gn,Ln=kt(h?tr(A,Qi):A,K,h?Ge(R,el):R);O[k]=Ln,N[k]=Ln-K}if(l){var Hn,tl=k==="x"?ee:te,rl=k==="x"?ue:de,Ie=O[_],Lt=_==="y"?"height":"width",Dn=Ie+v[tl],zn=Ie-v[rl],Or=[ee,te].indexOf(m)!==-1,qn=(Hn=w?.[_])!=null?Hn:0,Wn=Or?Dn:Ie-j[Lt]-M[Lt]-qn+F.altAxis,Un=Or?Ie+j[Lt]+M[Lt]-qn-F.altAxis:zn,Kn=h&&Or?Zc(Wn,Ie,Un):kt(h?Wn:Dn,Ie,h?Un:zn);O[_]=Kn,N[_]=Kn-Ie}t.modifiersData[n]=N}}const Au={name:"preventOverflow",enabled:!0,phase:"main",fn:Nu,requiresIfExists:["offset"]};function Vu(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Tu(e){return e===oe(e)||!se(e)?pn(e):Vu(e)}function ju(e){var t=e.getBoundingClientRect(),r=nt(t.width)/e.offsetWidth||1,n=nt(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Pu(e,t,r){r===void 0&&(r=!1);var n=se(t),o=se(t)&&ju(t),i=$e(t),c=ot(e,o,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((be(t)!=="body"||vn(i))&&(l=Tu(t)),se(t)?(s=ot(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=hn(i))),{x:c.left+l.scrollLeft-s.x,y:c.top+l.scrollTop-s.y,width:c.width,height:c.height}}function $u(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 c=[].concat(i.requires||[],i.requiresIfExists||[]);c.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 Ru(e){var t=$u(e);return Wc.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Iu(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Mu(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 Oo={placement:"bottom",modifiers:[],strategy:"absolute"};function Eo(){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 Fu(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?Oo:o;return function(l,s,d){d===void 0&&(d=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Oo,i),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},f=[],p=!1,h={state:u,setOptions:function(m){var y=typeof m=="function"?m(u.options):m;g(),u.options=Object.assign({},i,u.options,y),u.scrollParents={reference:Le(l)?Ot(l):l.contextElement?Ot(l.contextElement):[],popper:Ot(s)};var S=Ru(Mu([].concat(n,u.options.modifiers)));return u.orderedModifiers=S.filter(function(k){return k.enabled}),b(),h.update()},forceUpdate:function(){if(!p){var m=u.elements,y=m.reference,S=m.popper;if(Eo(y,S)){u.rects={reference:Pu(y,Mt(S),u.options.strategy==="fixed"),popper:dn(S)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(F){return u.modifiersData[F.name]=Object.assign({},F.data)});for(var k=0;k<u.orderedModifiers.length;k++){if(u.reset===!0){u.reset=!1,k=-1;continue}var _=u.orderedModifiers[k],O=_.fn,j=_.options,M=j===void 0?{}:j,$=_.name;typeof O=="function"&&(u=O({state:u,options:M,name:$,instance:h})||u)}}}},update:Iu(function(){return new Promise(function(v){h.forceUpdate(),v(u)})}),destroy:function(){g(),p=!0}};if(!Eo(l,s))return h;h.setOptions(d).then(function(v){!p&&d.onFirstUpdate&&d.onFirstUpdate(v)});function b(){u.orderedModifiers.forEach(function(v){var m=v.name,y=v.options,S=y===void 0?{}:y,k=v.effect;if(typeof k=="function"){var _=k({state:u,name:m,instance:h,options:S}),O=function(){};f.push(_||O)}})}function g(){f.forEach(function(v){return v()}),f=[]}return h}}var Bu=[su,Eu,iu,Xc,ku,bu,Au,ru,wu],Gu=Fu({defaultModifiers:Bu});function Lu(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 ci(e,t,r){return r&&Lu(e,r),e}function Jt(){return(Jt=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 ui(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function di(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 _o(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var fi=Object.prototype,pi=fi.toString,Hu=fi.hasOwnProperty,hi=/^\s*function (\w+)/;function No(e){var t,r=(t=e?.type)!==null&&t!==void 0?t:e;if(r){var n=r.toString().match(hi);return n?n[1]:""}return""}var He=function(e){var t,r;return _o(e)!==!1&&typeof(t=e.constructor)=="function"&&_o(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1},vi=function(e){return e},re=vi;if(process.env.NODE_ENV!=="production"){var Du=typeof console<"u";re=Du?function(e){console.warn("[VueTypes warn]: "+e)}:vi}var jt=function(e,t){return Hu.call(e,t)},zu=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},it=Array.isArray||function(e){return pi.call(e)==="[object Array]"},lt=function(e){return pi.call(e)==="[object Function]"},rr=function(e){return He(e)&&jt(e,"_vueTypes_name")},mi=function(e){return He(e)&&(jt(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return jt(e,t)}))};function mn(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function qe(e,t,r){var n,o=!0,i="";n=He(e)?e:{type:e};var c=rr(n)?n._vueTypes_name+" - ":"";if(mi(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&t===void 0)return o;it(n.type)?(o=n.type.some(function(f){return qe(f,t)===!0}),i=n.type.map(function(f){return No(f)}).join(" or ")):o=(i=No(n))==="Array"?it(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(hi);return p?p[1]:""})(t)===i:t instanceof n.type}if(!o){var l=c+'value "'+t+'" should be of type "'+i+'"';return l}if(jt(n,"validator")&&lt(n.validator)){var s=re,d=[];if(re=function(f){d.push(f)},o=n.validator(t),re=s,!o){var u=(d.length>1?"* ":"")+d.join(`
12
+ * `);return d.length=0,u}}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?lt(o)||qe(this,o)===!0?(this.default=it(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 lt(n)&&(r.validator=mn(n,r)),r}function Ce(e,t){var r=ae(e,t);return Object.defineProperty(r,"validate",{value:function(n){return lt(this.validator)&&re(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
13
+ `+JSON.stringify(this)),this.validator=mn(n,this),this}})}function Ao(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 c,l,s=r.validator,d=di(r,["validator"]);if(lt(s)){var u=i.validator;u&&(u=(l=(c=u).__original)!==null&&l!==void 0?l:c),i.validator=mn(u?function(f){return u.call(this,f)&&s.call(this,f)}:s,i)}return Object.assign(i,d)}function gr(e){return e.replace(/^(?!\s*$)/gm," ")}var qu=function(){return Ce("any",{})},Wu=function(){return Ce("function",{type:Function})},Uu=function(){return Ce("boolean",{type:Boolean})},Ku=function(){return Ce("string",{type:String})},Xu=function(){return Ce("number",{type:Number})},Yu=function(){return Ce("array",{type:Array})},Ju=function(){return Ce("object",{type:Object})},Zu=function(){return ae("integer",{type:Number,validator:function(e){return zu(e)}})},Qu=function(){return ae("symbol",{validator:function(e){return typeof e=="symbol"}})};function ed(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 td(e){if(!it(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 rd(e){if(!it(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(mi(o)){if(rr(o)&&o._vueTypes_name==="oneOf"){r=r.concat(o.type);continue}if(lt(o.validator)&&(t=!0),o.type!==!0&&o.type){r=r.concat(o.type);continue}}r.push(o)}return r=r.filter(function(i,c){return r.indexOf(i)===c}),ae("oneOfType",t?{type:r,validator:function(i){var c=[],l=e.some(function(s){var d=qe(rr(s)&&s._vueTypes_name==="oneOf"?s.type||null:s,i);return typeof d=="string"&&c.push(d),d===!0});return l||re("oneOfType - provided value does not match any of the "+c.length+` passed-in validators:
14
+ `+gr(c.join(`
15
+ `))),l}}:{type:r})}function nd(e){return ae("arrayOf",{type:Array,validator:function(t){var r,n=t.every(function(o){return(r=qe(e,o))===!0});return n||re(`arrayOf - value validation error:
16
+ `+gr(r)),n}})}function od(e){return ae("instanceOf",{type:e})}function ad(e){return ae("objectOf",{type:Object,validator:function(t){var r,n=Object.keys(t).every(function(o){return(r=qe(e,t[o]))===!0});return n||re(`objectOf - value validation error:
17
+ `+gr(r)),n}})}function id(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 c=Object.keys(o);if(r.length>0&&r.some(function(s){return c.indexOf(s)===-1})){var l=r.filter(function(s){return c.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 c.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=qe(e[s],o[s]);return typeof d=="string"&&re('shape - "'+s+`" property validation error:
18
+ `+gr(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 ge=(function(){function e(){}return e.extend=function(t){var r=this;if(it(t))return t.forEach(function(f){return r.extend(f)}),this;var n=t.name,o=t.validate,i=o!==void 0&&o,c=t.getter,l=c!==void 0&&c,s=di(t,["name","validate","getter"]);if(jt(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var d,u=s.type;return rr(u)?(delete s.type,Object.defineProperty(this,n,l?{get:function(){return Ao(n,u,s)}}:{value:function(){var f,p=Ao(n,u,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?Ce(n,f):ae(n,f)},enumerable:!0}:{value:function(){var f,p,h=Object.assign({},s);return f=i?Ce(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))},ci(e,null,[{key:"any",get:function(){return qu()}},{key:"func",get:function(){return Wu().def(this.defaults.func)}},{key:"bool",get:function(){return Uu().def(this.defaults.bool)}},{key:"string",get:function(){return Ku().def(this.defaults.string)}},{key:"number",get:function(){return Xu().def(this.defaults.number)}},{key:"array",get:function(){return Yu().def(this.defaults.array)}},{key:"object",get:function(){return Ju().def(this.defaults.object)}},{key:"integer",get:function(){return Zu().def(this.defaults.integer)}},{key:"symbol",get:function(){return Qu()}}]),e})();function ld(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 ui(n,r),ci(n,null,[{key:"sensibleDefaults",get:function(){return Jt({},this.defaults)},set:function(o){this.defaults=o!==!1?Jt({},o!==!0?o:e):{}}}]),n})(ge)).defaults=Jt({},e),t}ge.defaults={},ge.custom=ed,ge.oneOf=td,ge.instanceOf=od,ge.oneOfType=rd,ge.arrayOf=nd,ge.objectOf=ad,ge.shape=id,ge.utils={validate:function(e,t){return qe(t,e)===!0},toType:function(e,t,r){return r===void 0&&(r=!1),r?Ce(e,t):ae(e,t)}};var T=(function(e){function t(){return e.apply(this,arguments)||this}return ui(t,e),t})(ld()),Vo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gn(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ut=function(e){return e&&e.Math==Math&&e},W=Ut(typeof globalThis=="object"&&globalThis)||Ut(typeof window=="object"&&window)||Ut(typeof self=="object"&&self)||Ut(typeof Vo=="object"&&Vo)||(function(){return this})()||Function("return this")(),G=function(e){try{return!!e()}catch{return!0}},le=!G((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),To={}.propertyIsEnumerable,jo=Object.getOwnPropertyDescriptor,sd={f:jo&&!To.call({1:2},1)?function(e){var t=jo(this,e);return!!t&&t.enumerable}:To},yr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},cd={}.toString,Oe=function(e){return cd.call(e).slice(8,-1)},ud="".split,br=G((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return Oe(e)=="String"?ud.call(e,""):Object(e)}:Object,Te=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},ft=function(e){return br(Te(e))},U=function(e){return typeof e=="object"?e!==null:typeof e=="function"},yn=function(e,t){if(!U(e))return e;var r,n;if(t&&typeof(r=e.toString)=="function"&&!U(n=r.call(e))||typeof(r=e.valueOf)=="function"&&!U(n=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!U(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},dd={}.hasOwnProperty,q=function(e,t){return dd.call(e,t)},Qr=W.document,fd=U(Qr)&&U(Qr.createElement),gi=function(e){return fd?Qr.createElement(e):{}},yi=!le&&!G((function(){return Object.defineProperty(gi("div"),"a",{get:function(){return 7}}).a!=7})),Po=Object.getOwnPropertyDescriptor,bn={f:le?Po:function(e,t){if(e=ft(e),t=yn(t,!0),yi)try{return Po(e,t)}catch{}if(q(e,t))return yr(!sd.f.call(e,t),e[t])}},Z=function(e){if(!U(e))throw TypeError(String(e)+" is not an object");return e},$o=Object.defineProperty,_e={f:le?$o:function(e,t,r){if(Z(e),t=yn(t,!0),Z(r),yi)try{return $o(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}},ce=le?function(e,t,r){return _e.f(e,t,yr(1,r))}:function(e,t,r){return e[t]=r,e},Cn=function(e,t){try{ce(W,e,t)}catch{W[e]=t}return t},De=W["__core-js_shared__"]||Cn("__core-js_shared__",{}),pd=Function.toString;typeof De.inspectSource!="function"&&(De.inspectSource=function(e){return pd.call(e)});var nr,Et,or,bi=De.inspectSource,Ro=W.WeakMap,hd=typeof Ro=="function"&&/native code/.test(bi(Ro)),Ci=gn((function(e){(e.exports=function(t,r){return De[t]||(De[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),vd=0,md=Math.random(),wn=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++vd+md).toString(36)},Io=Ci("keys"),Sn=function(e){return Io[e]||(Io[e]=wn(e))},Cr={},gd=W.WeakMap;if(hd){var Xe=De.state||(De.state=new gd),yd=Xe.get,bd=Xe.has,Cd=Xe.set;nr=function(e,t){return t.facade=e,Cd.call(Xe,e,t),t},Et=function(e){return yd.call(Xe,e)||{}},or=function(e){return bd.call(Xe,e)}}else{var gt=Sn("state");Cr[gt]=!0,nr=function(e,t){return t.facade=e,ce(e,gt,t),t},Et=function(e){return q(e,gt)?e[gt]:{}},or=function(e){return q(e,gt)}}var je={set:nr,get:Et,has:or,enforce:function(e){return or(e)?Et(e):nr(e,{})},getterFor:function(e){return function(t){var r;if(!U(t)||(r=Et(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},Pe=gn((function(e){var t=je.get,r=je.enforce,n=String(String).split("String");(e.exports=function(o,i,c,l){var s,d=!!l&&!!l.unsafe,u=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet;typeof c=="function"&&(typeof i!="string"||q(c,"name")||ce(c,"name",i),(s=r(c)).source||(s.source=n.join(typeof i=="string"?i:""))),o!==W?(d?!f&&o[i]&&(u=!0):delete o[i],u?o[i]=c:ce(o,i,c)):u?o[i]=c:Cn(i,c)})(Function.prototype,"toString",(function(){return typeof this=="function"&&t(this).source||bi(this)}))})),Ar=W,Mo=function(e){return typeof e=="function"?e:void 0},wr=function(e,t){return arguments.length<2?Mo(Ar[e])||Mo(W[e]):Ar[e]&&Ar[e][t]||W[e]&&W[e][t]},wd=Math.ceil,Sd=Math.floor,pt=function(e){return isNaN(e=+e)?0:(e>0?Sd:wd)(e)},xd=Math.min,ie=function(e){return e>0?xd(pt(e),9007199254740991):0},kd=Math.max,Od=Math.min,ar=function(e,t){var r=pt(e);return r<0?kd(r+t,0):Od(r,t)},Ed=function(e){return function(t,r,n){var o,i=ft(t),c=ie(i.length),l=ar(n,c);if(e&&r!=r){for(;c>l;)if((o=i[l++])!=o)return!0}else for(;c>l;l++)if((e||l in i)&&i[l]===r)return e||l||0;return!e&&-1}},wi={indexOf:Ed(!1)},_d=wi.indexOf,Si=function(e,t){var r,n=ft(e),o=0,i=[];for(r in n)!q(Cr,r)&&q(n,r)&&i.push(r);for(;t.length>o;)q(n,r=t[o++])&&(~_d(i,r)||i.push(r));return i},ir=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nd=ir.concat("length","prototype"),Ad={f:Object.getOwnPropertyNames||function(e){return Si(e,Nd)}},Vd={f:Object.getOwnPropertySymbols},Td=wr("Reflect","ownKeys")||function(e){var t=Ad.f(Z(e)),r=Vd.f;return r?t.concat(r(e)):t},jd=function(e,t){for(var r=Td(t),n=_e.f,o=bn.f,i=0;i<r.length;i++){var c=r[i];q(e,c)||n(e,c,o(t,c))}},Pd=/#|\.prototype\./,Ft=function(e,t){var r=Rd[$d(e)];return r==Md||r!=Id&&(typeof t=="function"?G(t):!!t)},$d=Ft.normalize=function(e){return String(e).replace(Pd,".").toLowerCase()},Rd=Ft.data={},Id=Ft.NATIVE="N",Md=Ft.POLYFILL="P",en=Ft,Fd=bn.f,J=function(e,t){var r,n,o,i,c,l=e.target,s=e.global,d=e.stat;if(r=s?W:d?W[l]||Cn(l,{}):(W[l]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(c=Fd(r,n))&&c.value:r[n],!en(s?n:l+(d?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;jd(i,o)}(e.sham||o&&o.sham)&&ce(i,"sham",!0),Pe(r,n,i,e)}},xn=function(e,t){var r=[][e];return!!r&&G((function(){r.call(null,t||function(){throw 1},1)}))},Bd=Object.defineProperty,Vr={},Fo=function(e){throw e},ht=function(e,t){if(q(Vr,e))return Vr[e];t||(t={});var r=[][e],n=!!q(t,"ACCESSORS")&&t.ACCESSORS,o=q(t,0)?t[0]:Fo,i=q(t,1)?t[1]:void 0;return Vr[e]=!!r&&!G((function(){if(n&&!le)return!0;var c={length:-1};n?Bd(c,1,{enumerable:!0,get:Fo}):c[1]=1,r.call(c,o,i)}))},Gd=wi.indexOf,xi=[].indexOf,Bo=!!xi&&1/[1].indexOf(1,-0)<0,Ld=xn("indexOf"),Hd=ht("indexOf",{ACCESSORS:!0,1:0});function We(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dd(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 Ue(e,t,r){return r&&Dd(e,r),e}J({target:"Array",proto:!0,forced:Bo||!Ld||!Hd},{indexOf:function(e){return Bo?xi.apply(this,arguments)||0:Gd(this,e,arguments.length>1?arguments[1]:void 0)}});(function(){function e(){We(this,e)}return Ue(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 zd=[].join,qd=br!=Object,Wd=xn("join",",");J({target:"Array",proto:!0,forced:qd||!Wd},{join:function(e){return zd.call(ft(this),e===void 0?",":e)}});var Ye,lr,Ne=function(e){return Object(Te(e))},st=Array.isArray||function(e){return Oe(e)=="Array"},ki=!!Object.getOwnPropertySymbols&&!G((function(){return!String(Symbol())})),Ud=ki&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Kt=Ci("wks"),_t=W.Symbol,Kd=Ud?_t:_t&&_t.withoutSetter||wn,D=function(e){return q(Kt,e)||(ki&&q(_t,e)?Kt[e]=_t[e]:Kt[e]=Kd("Symbol."+e)),Kt[e]},Xd=D("species"),Sr=function(e,t){var r;return st(e)&&(typeof(r=e.constructor)!="function"||r!==Array&&!st(r.prototype)?U(r)&&(r=r[Xd])===null&&(r=void 0):r=void 0),new(r===void 0?Array:r)(t===0?0:t)},ct=function(e,t,r){var n=yn(t);n in e?_e.f(e,n,yr(0,r)):e[n]=r},Tr=wr("navigator","userAgent")||"",Go=W.process,Lo=Go&&Go.versions,Ho=Lo&&Lo.v8;Ho?lr=(Ye=Ho.split("."))[0]+Ye[1]:Tr&&(!(Ye=Tr.match(/Edge\/(\d+)/))||Ye[1]>=74)&&(Ye=Tr.match(/Chrome\/(\d+)/))&&(lr=Ye[1]);var sr=lr&&+lr,Yd=D("species"),kn=function(e){return sr>=51||!G((function(){var t=[];return(t.constructor={})[Yd]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},Jd=kn("splice"),Zd=ht("splice",{ACCESSORS:!0,0:0,1:2}),Qd=Math.max,ef=Math.min;J({target:"Array",proto:!0,forced:!Jd||!Zd},{splice:function(e,t){var r,n,o,i,c,l,s=Ne(this),d=ie(s.length),u=ar(e,d),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=d-u):(r=f-2,n=ef(Qd(pt(t),0),d-u)),d+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=Sr(s,n),i=0;i<n;i++)(c=u+i)in s&&ct(o,i,s[c]);if(o.length=n,r<n){for(i=u;i<d-n;i++)l=i+r,(c=i+n)in s?s[l]=s[c]:delete s[l];for(i=d;i>d-n+r;i--)delete s[i-1]}else if(r>n)for(i=d-n;i>u;i--)l=i+r-1,(c=i+n-1)in s?s[l]=s[c]:delete s[l];for(i=0;i<r;i++)s[i+u]=arguments[i+2];return s.length=d-n+r,o}});var Oi={};Oi[D("toStringTag")]="z";var On=String(Oi)==="[object z]",tf=D("toStringTag"),rf=Oe((function(){return arguments})())=="Arguments",Ei=On?Oe: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),tf))=="string"?r:rf?Oe(t):(n=Oe(t))=="Object"&&typeof t.callee=="function"?"Arguments":n},nf=On?{}.toString:function(){return"[object "+Ei(this)+"]"};On||Pe(Object.prototype,"toString",nf,{unsafe:!0});var _i=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 Do(e,t){return RegExp(e,t)}var jr,Pr,zo={UNSUPPORTED_Y:G((function(){var e=Do("a","y");return e.lastIndex=2,e.exec("abcd")!=null})),BROKEN_CARET:G((function(){var e=Do("^r","gy");return e.lastIndex=2,e.exec("str")!=null}))},cr=RegExp.prototype.exec,of=String.prototype.replace,Ni=cr,$r=(jr=/a/,Pr=/b*/g,cr.call(jr,"a"),cr.call(Pr,"a"),jr.lastIndex!==0||Pr.lastIndex!==0),qo=zo.UNSUPPORTED_Y||zo.BROKEN_CARET,Rr=/()??/.exec("")[1]!==void 0;($r||Rr||qo)&&(Ni=function(e){var t,r,n,o,i=this,c=qo&&i.sticky,l=_i.call(i),s=i.source,d=0,u=e;return c&&((l=l.replace("y","")).indexOf("g")===-1&&(l+="g"),u=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&e[i.lastIndex-1]!==`
19
+ `)&&(s="(?: "+s+")",u=" "+u,d++),r=new RegExp("^(?:"+s+")",l)),Rr&&(r=new RegExp("^"+s+"$(?!\\s)",l)),$r&&(t=i.lastIndex),n=cr.call(c?r:i,u),c?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:$r&&n&&(i.lastIndex=i.global?n.index+n[0].length:t),Rr&&n&&n.length>1&&of.call(n[0],r,(function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(n[o]=void 0)})),n});var Pt=Ni;J({target:"RegExp",proto:!0,forced:/./.exec!==Pt},{exec:Pt});var Ai=RegExp.prototype,Vi=Ai.toString,af=G((function(){return Vi.call({source:"a",flags:"b"})!="/a/b"})),lf=Vi.name!="toString";(af||lf)&&Pe(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 Ai)?_i.call(e):r)}),{unsafe:!0});var sf=D("species"),cf=!G((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})),Wo="a".replace(/./,"$0")==="$0",Uo=D("replace"),Ko=!!/./[Uo]&&/./[Uo]("a","$0")==="",uf=!G((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"})),Ti=function(e,t,r,n){var o=D(e),i=!G((function(){var f={};return f[o]=function(){return 7},""[e](f)!=7})),c=i&&!G((function(){var f=!1,p=/a/;return e==="split"&&((p={}).constructor={},p.constructor[sf]=function(){return p},p.flags="",p[o]=/./[o]),p.exec=function(){return f=!0,null},p[o](""),!f}));if(!i||!c||e==="replace"&&(!cf||!Wo||Ko)||e==="split"&&!uf){var l=/./[o],s=r(o,""[e],(function(f,p,h,b,g){return p.exec===Pt?i&&!g?{done:!0,value:l.call(p,h,b)}:{done:!0,value:f.call(h,p,b)}:{done:!1}}),{REPLACE_KEEPS_$0:Wo,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Ko}),d=s[0],u=s[1];Pe(String.prototype,e,d),Pe(RegExp.prototype,o,function(f,p){return u.call(f,this,p)})}n&&ce(RegExp.prototype[o],"sham",!0)},df=D("match"),ji=function(e){var t;return U(e)&&((t=e[df])!==void 0?!!t:Oe(e)=="RegExp")},En=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},ff=D("species"),pf=function(e){return function(t,r){var n,o,i=String(Te(t)),c=pt(r),l=i.length;return c<0||c>=l?e?"":void 0:(n=i.charCodeAt(c))<55296||n>56319||c+1===l||(o=i.charCodeAt(c+1))<56320||o>57343?e?i.charAt(c):n:e?i.slice(c,c+2):o-56320+(n-55296<<10)+65536}},Pi={charAt:pf(!0)},hf=Pi.charAt,$i=function(e,t,r){return t+(r?hf(e,t).length:1)},tn=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(Oe(e)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return Pt.call(e,t)},vf=[].push,mf=Math.min,Je=!G((function(){return!RegExp(4294967295,"y")}));Ti("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 c=String(Te(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[c];if(!ji(o))return t.call(c,o,l);for(var s,d,u,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),h=0,b=new RegExp(o.source,p+"g");(s=Pt.call(b,c))&&!((d=b.lastIndex)>h&&(f.push(c.slice(h,s.index)),s.length>1&&s.index<c.length&&vf.apply(f,s.slice(1)),u=s[0].length,h=d,f.length>=l));)b.lastIndex===s.index&&b.lastIndex++;return h===c.length?!u&&b.test("")||f.push(""):f.push(c.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 c=Te(this),l=o?.[e];return l!==void 0?l.call(o,c,i):n.call(String(c),o,i)},function(o,i){var c=r(n,o,this,i,n!==t);if(c.done)return c.value;var l=Z(o),s=String(this),d=(function(k,_){var O,j=Z(k).constructor;return j===void 0||(O=Z(j)[ff])==null?_:En(O)})(l,RegExp),u=l.unicode,f=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(Je?"y":"g"),p=new d(Je?l:"^(?:"+l.source+")",f),h=i===void 0?4294967295:i>>>0;if(h===0)return[];if(s.length===0)return tn(p,s)===null?[s]:[];for(var b=0,g=0,v=[];g<s.length;){p.lastIndex=Je?g:0;var m,y=tn(p,Je?s:s.slice(g));if(y===null||(m=mf(ie(p.lastIndex+(Je?0:g)),s.length))===b)g=$i(s,g,u);else{if(v.push(s.slice(b,g)),v.length===h)return v;for(var S=1;S<=y.length-1;S++)if(v.push(y[S]),v.length===h)return v;g=b=m}}return v.push(s.slice(b)),v}]}),!Je);var rn=`
20
+ \v\f\r                 \u2028\u2029\uFEFF`,ur="["+rn+"]",gf=RegExp("^"+ur+ur+"*"),yf=RegExp(ur+ur+"*$"),bf=function(e){return function(t){var r=String(Te(t));return 1&e&&(r=r.replace(gf,"")),2&e&&(r=r.replace(yf,"")),r}},Cf={trim:bf(3)},wf=Cf.trim;J({target:"String",proto:!0,forced:(function(e){return G((function(){return!!rn[e]()||"​…᠎"[e]()!="​…᠎"||rn[e].name!==e}))})("trim")},{trim:function(){return wf(this)}});var Sf=kn("slice"),xf=ht("slice",{ACCESSORS:!0,0:0,1:2}),kf=D("species"),Of=[].slice,Ef=Math.max;J({target:"Array",proto:!0,forced:!Sf||!xf},{slice:function(e,t){var r,n,o,i=ft(this),c=ie(i.length),l=ar(e,c),s=ar(t===void 0?c:t,c);if(st(i)&&(typeof(r=i.constructor)!="function"||r!==Array&&!st(r.prototype)?U(r)&&(r=r[kf])===null&&(r=void 0):r=void 0,r===Array||r===void 0))return Of.call(i,l,s);for(n=new(r===void 0?Array:r)(Ef(s-l,0)),o=0;l<s;l++,o++)l in i&&ct(n,o,i[l]);return n.length=o,n}});var _n=Object.keys||function(e){return Si(e,ir)},_f=G((function(){_n(1)}));J({target:"Object",stat:!0,forced:_f},{keys:function(e){return _n(Ne(e))}});var Ir,Nf=function(e){if(ji(e))throw TypeError("The method doesn't accept regular expressions");return e},Af=D("match"),Vf=bn.f,Xo="".startsWith,Tf=Math.min,Ri=(function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Af]=!1,"/./"[e](t)}catch{}}return!1})("startsWith"),jf=!(Ri||(Ir=Vf(String.prototype,"startsWith"),!Ir||Ir.writable));function Ii(e){return(Ii=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:!jf&&!Ri},{startsWith:function(e){var t=String(Te(this));Nf(e);var r=ie(Tf(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return Xo?Xo.call(t,n,r):t.slice(r,r+n.length)===n}});var Ze=function(e){return typeof e=="string"},Qe=function(e){return e!==null&&Ii(e)==="object"},$t=(function(){function e(){We(this,e)}return Ue(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(c){var l;(l=r.drag)===null||l===void 0||l.call(r,c)},i=function c(l){var s;e.removeEventListener(document,"mousemove",o),e.removeEventListener(document,"mouseup",c),document.onselectstart=null,document.ondragstart=null,n=!1,(s=r.end)===null||s===void 0||s.call(r,l)};e.addEventListener(t,"mousedown",(function(c){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,c))}))}},{key:"getBoundingClientRect",value:function(t){return t&&Qe(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,r){return!!(t&&Qe(t)&&Ze(r)&&t.nodeType===1)&&t.classList.contains(r.trim())}},{key:"addClass",value:function(t,r){if(t&&Qe(t)&&Ze(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&&Qe(t)&&Ze(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&&Qe(t)&&Ze(r)&&t.nodeType===1&&t.classList.toggle(r,n)}},{key:"replaceClass",value:function(t,r,n){t&&Qe(t)&&Ze(r)&&Ze(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,c=Math.abs(o-r.clientX),l=Math.abs(i-r.clientY),s=l/Math.sqrt(Math.pow(c,2)+Math.pow(l,2)),d=Math.acos(s),u=Math.floor(180/(Math.PI/d));return r.clientX>o&&r.clientY>i&&(u=180-u),r.clientX==o&&r.clientY>i&&(u=180),r.clientX>o&&r.clientY==i&&(u=90),r.clientX<o&&r.clientY>i&&(u=180+u),r.clientX<o&&r.clientY==i&&(u=270),r.clientX<o&&r.clientY<i&&(u=360-u),u}},{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 c=0;c<o.length;c++)o[c]&&r.classList.add(o[c]);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})(),Pf=Math.floor,$f="".replace,Rf=/\$([$&'`]|\d\d?|<[^>]*>)/g,If=/\$([$&'`]|\d\d?)/g,Mf=function(e,t,r,n,o,i){var c=r+e.length,l=n.length,s=If;return o!==void 0&&(o=Ne(o),s=Rf),$f.call(i,s,(function(d,u){var f;switch(u.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(c);case"<":f=o[u.slice(1,-1)];break;default:var p=+u;if(p===0)return d;if(p>l){var h=Pf(p/10);return h===0?d:h<=l?n[h-1]===void 0?u.charAt(1):n[h-1]+u.charAt(1):d}f=n[p-1]}return f===void 0?"":f}))},Ff=Math.max,Bf=Math.min;Ti("replace",2,(function(e,t,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=n.REPLACE_KEEPS_$0,c=o?"$":"$0";return[function(l,s){var d=Te(this),u=l?.[e];return u!==void 0?u.call(l,d,s):t.call(String(d),l,s)},function(l,s){if(!o&&i||typeof s=="string"&&s.indexOf(c)===-1){var d=r(t,l,this,s);if(d.done)return d.value}var u=Z(l),f=String(this),p=typeof s=="function";p||(s=String(s));var h=u.global;if(h){var b=u.unicode;u.lastIndex=0}for(var g=[];;){var v=tn(u,f);if(v===null||(g.push(v),!h))break;String(v[0])===""&&(u.lastIndex=$i(f,ie(u.lastIndex),b))}for(var m,y="",S=0,k=0;k<g.length;k++){v=g[k];for(var _=String(v[0]),O=Ff(Bf(pt(v.index),f.length),0),j=[],M=1;M<v.length;M++)j.push((m=v[M])===void 0?m:String(m));var $=v.groups;if(p){var F=[_].concat(j,O,f);$!==void 0&&F.push($);var w=String(s.apply(void 0,F))}else w=Mf(_,f,O,j,$,s);O>=S&&(y+=f.slice(S,O)+w,S=O+_.length)}return y+f.slice(S)}]}));(function(){function e(){We(this,e)}return Ue(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(){We(this,e)}return Ue(e,null,[{key:"_clone",value:function(){}}]),e})();var Mi=D("isConcatSpreadable"),Gf=sr>=51||!G((function(){var e=[];return e[Mi]=!1,e.concat()[0]!==e})),Lf=kn("concat"),Hf=function(e){if(!U(e))return!1;var t=e[Mi];return t!==void 0?!!t:st(e)};J({target:"Array",proto:!0,forced:!Gf||!Lf},{concat:function(e){var t,r,n,o,i,c=Ne(this),l=Sr(c,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(Hf(i=t===-1?c: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&&ct(l,s,i[r])}else{if(s>=9007199254740991)throw TypeError("Maximum allowed index exceeded");ct(l,s++,i)}return l.length=s,l}});var Mr,Bt=function(e,t,r){if(En(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)}},Yo=[].push,Jo=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,c=e==7,l=e==5||i;return function(s,d,u,f){for(var p,h,b=Ne(s),g=br(b),v=Bt(d,u,3),m=ie(g.length),y=0,S=f||Sr,k=t?S(s,m):r||c?S(s,0):void 0;m>y;y++)if((l||y in g)&&(h=v(p=g[y],y,b),e))if(t)k[y]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return y;case 2:Yo.call(k,p)}else switch(e){case 4:return!1;case 7:Yo.call(k,p)}return i?-1:n||o?o:k}},Fi={find:Jo(5),findIndex:Jo(6)},Df=le?Object.defineProperties:function(e,t){Z(e);for(var r,n=_n(t),o=n.length,i=0;o>i;)_e.f(e,r=n[i++],t[r]);return e},zf=wr("document","documentElement"),Bi=Sn("IE_PROTO"),Fr=function(){},Zo=function(e){return"<script>"+e+"<\/script>"},Zt=function(){try{Mr=document.domain&&new ActiveXObject("htmlfile")}catch{}var e,t;Zt=Mr?(function(n){n.write(Zo("")),n.close();var o=n.parentWindow.Object;return n=null,o})(Mr):((t=gi("iframe")).style.display="none",zf.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Zo("document.F=Object")),e.close(),e.F);for(var r=ir.length;r--;)delete Zt.prototype[ir[r]];return Zt()};Cr[Bi]=!0;var Nn=Object.create||function(e,t){var r;return e!==null?(Fr.prototype=Z(e),r=new Fr,Fr.prototype=null,r[Bi]=e):r=Zt(),t===void 0?r:Df(r,t)},nn=D("unscopables"),on=Array.prototype;on[nn]==null&&_e.f(on,nn,{configurable:!0,value:Nn(null)});var tt=function(e){on[nn][e]=!0},qf=Fi.find,Qo=!0,Wf=ht("find");"find"in[]&&Array(1).find((function(){Qo=!1})),J({target:"Array",proto:!0,forced:Qo||!Wf},{find:function(e){return qf(this,e,arguments.length>1?arguments[1]:void 0)}}),tt("find");var Uf=Fi.findIndex,ea=!0,Kf=ht("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){ea=!1})),J({target:"Array",proto:!0,forced:ea||!Kf},{findIndex:function(e){return Uf(this,e,arguments.length>1?arguments[1]:void 0)}}),tt("findIndex");var Gi=function(e,t,r,n,o,i,c,l){for(var s,d=o,u=0,f=!!c&&Bt(c,l,3);u<n;){if(u in r){if(s=f?f(r[u],u,t):r[u],i>0&&st(s))d=Gi(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++}u++}return d},Xf=Gi;J({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Ne(this),r=ie(t.length),n=Sr(t,0);return n.length=Xf(n,t,t,r,0,e===void 0?1:pt(e)),n}});var an=function(e){var t=e.return;if(t!==void 0)return Z(t.call(e)).value},Yf=function(e,t,r,n){try{return n?t(Z(r)[0],r[1]):t(r)}catch(o){throw an(e),o}},ut={},Jf=D("iterator"),Zf=Array.prototype,Li=function(e){return e!==void 0&&(ut.Array===e||Zf[Jf]===e)},Qf=D("iterator"),Hi=function(e){if(e!=null)return e[Qf]||e["@@iterator"]||ut[Ei(e)]},Di=D("iterator"),zi=!1;try{var ep=0,ta={next:function(){return{done:!!ep++}},return:function(){zi=!0}};ta[Di]=function(){return this},Array.from(ta,(function(){throw 2}))}catch{}var qi=function(e,t){if(!zi)return!1;var r=!1;try{var n={};n[Di]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},tp=!qi((function(e){Array.from(e)}));J({target:"Array",stat:!0,forced:tp},{from:function(e){var t,r,n,o,i,c,l=Ne(e),s=typeof this=="function"?this:Array,d=arguments.length,u=d>1?arguments[1]:void 0,f=u!==void 0,p=Hi(l),h=0;if(f&&(u=Bt(u,d>2?arguments[2]:void 0,2)),p==null||s==Array&&Li(p))for(r=new s(t=ie(l.length));t>h;h++)c=f?u(l[h],h):l[h],ct(r,h,c);else for(i=(o=p.call(l)).next,r=new s;!(n=i.call(o)).done;h++)c=f?Yf(o,u,[n.value,h],!0):n.value,ct(r,h,c);return r.length=h,r}});var rp=function(e){return function(t,r,n,o){En(r);var i=Ne(t),c=br(i),l=ie(i.length),s=e?l-1:0,d=e?-1:1;if(n<2)for(;;){if(s in c){o=c[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 c&&(o=r(o,c[s],s,i));return o}},np={left:rp(!1)},op=Oe(W.process)=="process",ap=np.left,ip=xn("reduce"),lp=ht("reduce",{1:0});J({target:"Array",proto:!0,forced:!ip||!lp||!op&&sr>79&&sr<83},{reduce:function(e){return ap(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}}),tt("flat");var Me,ra,na,sp=!G((function(){return Object.isExtensible(Object.preventExtensions({}))})),Wi=gn((function(e){var t=_e.f,r=wn("meta"),n=0,o=Object.isExtensible||function(){return!0},i=function(l){t(l,r,{value:{objectID:"O"+ ++n,weakData:{}}})},c=e.exports={REQUIRED:!1,fastKey:function(l,s){if(!U(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!q(l,r)){if(!o(l))return"F";if(!s)return"E";i(l)}return l[r].objectID},getWeakData:function(l,s){if(!q(l,r)){if(!o(l))return!0;if(!s)return!1;i(l)}return l[r].weakData},onFreeze:function(l){return sp&&c.REQUIRED&&o(l)&&!q(l,r)&&i(l),l}};Cr[r]=!0})),yt=function(e,t){this.stopped=e,this.result=t},oa=function(e,t,r){var n,o,i,c,l,s,d,u=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),b=Bt(t,u,1+f+h),g=function(m){return n&&an(n),new yt(!0,m)},v=function(m){return f?(Z(m),h?b(m[0],m[1],g):b(m[0],m[1])):h?b(m,g):b(m)};if(p)n=e;else{if(typeof(o=Hi(e))!="function")throw TypeError("Target is not iterable");if(Li(o)){for(i=0,c=ie(e.length);c>i;i++)if((l=v(e[i]))&&l instanceof yt)return l;return new yt(!1)}n=o.call(e)}for(s=n.next;!(d=s.call(n)).done;){try{l=v(d.value)}catch(m){throw an(n),m}if(typeof l=="object"&&l&&l instanceof yt)return l}return new yt(!1)},aa=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e},cp=_e.f,ia=D("toStringTag"),ln=function(e,t,r){e&&!q(e=r?e:e.prototype,ia)&&cp(e,ia,{configurable:!0,value:t})},dr=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(!U(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),la=function(e,t,r){for(var n in t)Pe(e,n,t[n],r);return e},up=!G((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),sa=Sn("IE_PROTO"),dp=Object.prototype,fr=up?Object.getPrototypeOf:function(e){return e=Ne(e),q(e,sa)?e[sa]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?dp:null},Br=D("iterator"),Ui=!1;[].keys&&("next"in(na=[].keys())?(ra=fr(fr(na)))!==Object.prototype&&(Me=ra):Ui=!0),(Me==null||G((function(){var e={};return Me[Br].call(e)!==e})))&&(Me={}),q(Me,Br)||ce(Me,Br,(function(){return this}));var An={IteratorPrototype:Me,BUGGY_SAFARI_ITERATORS:Ui},fp=An.IteratorPrototype,pp=function(){return this},Gr=An.IteratorPrototype,Xt=An.BUGGY_SAFARI_ITERATORS,bt=D("iterator"),hp=function(){return this},Vn=function(e,t,r,n,o,i,c){(function(m,y,S){var k=y+" Iterator";m.prototype=Nn(fp,{next:yr(1,S)}),ln(m,k,!1),ut[k]=pp})(r,t,n);var l,s,d,u=function(m){if(m===o&&g)return g;if(!Xt&&m in h)return h[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,b=h[bt]||h["@@iterator"]||o&&h[o],g=!Xt&&b||u(o),v=t=="Array"&&h.entries||b;if(v&&(l=fr(v.call(new e)),Gr!==Object.prototype&&l.next&&(fr(l)!==Gr&&(dr?dr(l,Gr):typeof l[bt]!="function"&&ce(l,bt,hp)),ln(l,f,!0))),o=="values"&&b&&b.name!=="values"&&(p=!0,g=function(){return b.call(this)}),h[bt]!==g&&ce(h,bt,g),ut[t]=g,o)if(s={values:u("values"),keys:i?g:u("keys"),entries:u("entries")},c)for(d in s)(Xt||p||!(d in h))&&Pe(h,d,s[d]);else J({target:t,proto:!0,forced:Xt||p},s);return s},ca=D("species"),vp=_e.f,ua=Wi.fastKey,da=je.set,Lr=je.getterFor;(function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",c=W[e],l=c&&c.prototype,s=c,d={},u=function(v){var m=l[v];Pe(l,v,v=="add"?function(y){return m.call(this,y===0?0:y),this}:v=="delete"?function(y){return!(o&&!U(y))&&m.call(this,y===0?0:y)}:v=="get"?function(y){return o&&!U(y)?void 0:m.call(this,y===0?0:y)}:v=="has"?function(y){return!(o&&!U(y))&&m.call(this,y===0?0:y)}:function(y,S){return m.call(this,y===0?0:y,S),this})};if(en(e,typeof c!="function"||!(o||l.forEach&&!G((function(){new c().entries().next()})))))s=r.getConstructor(t,e,n,i),Wi.REQUIRED=!0;else if(en(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,h=G((function(){f.has(1)})),b=qi((function(v){new c(v)})),g=!o&&G((function(){for(var v=new c,m=5;m--;)v[i](m,m);return!v.has(-0)}));b||((s=t((function(v,m){aa(v,s,e);var y=(function(S,k,_){var O,j;return dr&&typeof(O=k.constructor)=="function"&&O!==_&&U(j=O.prototype)&&j!==_.prototype&&dr(S,j),S})(new c,v,s);return m!=null&&oa(m,y[i],{that:y,AS_ENTRIES:n}),y}))).prototype=l,l.constructor=s),(h||g)&&(u("delete"),u("has"),n&&u("get")),(g||p)&&u(i),o&&l.clear&&delete l.clear}d[e]=s,J({global:!0,forced:s!=c},d),ln(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){aa(s,o,t),da(s,{type:t,index:Nn(null),first:void 0,last:void 0,size:0}),le||(s.size=0),d!=null&&oa(d,s[n],{that:s,AS_ENTRIES:r})})),i=Lr(t),c=function(s,d,u){var f,p,h=i(s),b=l(s,d);return b?b.value=u:(h.last=b={index:p=ua(d,!0),key:d,value:u,previous:f=h.last,next:void 0,removed:!1},h.first||(h.first=b),f&&(f.next=b),le?h.size++:s.size++,p!=="F"&&(h.index[p]=b)),s},l=function(s,d){var u,f=i(s),p=ua(d);if(p!=="F")return f.index[p];for(u=f.first;u;u=u.next)if(u.key==d)return u};return la(o.prototype,{clear:function(){for(var s=i(this),d=s.index,u=s.first;u;)u.removed=!0,u.previous&&(u.previous=u.previous.next=void 0),delete d[u.index],u=u.next;s.first=s.last=void 0,le?s.size=0:this.size=0},delete:function(s){var d=this,u=i(d),f=l(d,s);if(f){var p=f.next,h=f.previous;delete u.index[f.index],f.removed=!0,h&&(h.next=p),p&&(p.previous=h),u.first==f&&(u.first=p),u.last==f&&(u.last=h),le?u.size--:d.size--}return!!f},forEach:function(s){for(var d,u=i(this),f=Bt(s,arguments.length>1?arguments[1]:void 0,3);d=d?d.next:u.first;)for(f(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(s){return!!l(this,s)}}),la(o.prototype,r?{get:function(s){var d=l(this,s);return d&&d.value},set:function(s,d){return c(this,s===0?0:s,d)}}:{add:function(s){return c(this,s=s===0?0:s,s)}}),le&&vp(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=Lr(t),i=Lr(n);Vn(e,t,(function(c,l){da(this,{type:n,target:c,state:o(c),kind:l,last:void 0})}),(function(){for(var c=i(this),l=c.kind,s=c.last;s&&s.removed;)s=s.previous;return c.target&&(c.last=s=s?s.next:c.state.first)?l=="keys"?{value:s.key,done:!1}:l=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(c.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),(function(c){var l=wr(c),s=_e.f;le&&l&&!l[ca]&&s(l,ca,{configurable:!0,get:function(){return this}})})(t)}});var mp=Pi.charAt,gp=je.set,yp=je.getterFor("String Iterator");Vn(String,"String",(function(e){gp(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=yp(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=mp(r,n),t.index+=e.length,{value:e,done:!1})}));var fa={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},bp=je.set,Cp=je.getterFor("Array Iterator"),xt=Vn(Array,"Array",(function(e,t){bp(this,{type:"Array Iterator",target:ft(e),index:0,kind:t})}),(function(){var e=Cp(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");ut.Arguments=ut.Array,tt("keys"),tt("values"),tt("entries");var Hr=D("iterator"),pa=D("toStringTag"),Dr=xt.values;for(var zr in fa){var ha=W[zr],Se=ha&&ha.prototype;if(Se){if(Se[Hr]!==Dr)try{ce(Se,Hr,Dr)}catch{Se[Hr]=Dr}if(Se[pa]||ce(Se,pa,zr),fa[zr]){for(var et in xt)if(Se[et]!==xt[et])try{ce(Se,et,xt[et])}catch{Se[et]=xt[et]}}}}(function(){function e(){We(this,e)}return Ue(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(){We(this,e)}return Ue(e,null,[{key:"today",value:function(){return new Date}}]),e})();(function(){function e(){We(this,e)}return Ue(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 wp=Object.defineProperty,Sp=(e,t,r)=>t in e?wp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X=(e,t,r)=>(Sp(e,typeof t!="symbol"?t+"":t,r),r);const z=e=>Math.round(e*100)/100;class H{constructor(t){X(this,"instance"),X(this,"alphaValue",0),X(this,"redValue",0),X(this,"greenValue",0),X(this,"blueValue",0),X(this,"hueValue",0),X(this,"saturationValue",0),X(this,"brightnessValue",0),X(this,"hslSaturationValue",0),X(this,"lightnessValue",0),X(this,"initAlpha",()=>{const r=this.instance.getAlpha();this.alphaValue=Math.min(1,r)*100}),X(this,"initLightness",()=>{const{s:r,l:n}=this.instance.toHsl();this.hslSaturationValue=z(r),this.lightnessValue=z(n)}),X(this,"initRgb",()=>{const{r,g:n,b:o}=this.instance.toRgb();this.redValue=z(r),this.greenValue=z(n),this.blueValue=z(o)}),X(this,"initHsb",()=>{const{h:r,s:n,v:o}=this.instance.toHsv();this.hueValue=Math.min(360,Math.ceil(r)),this.saturationValue=z(n),this.brightnessValue=z(o)}),X(this,"toHexString",()=>this.instance.toHexString()),X(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:z(t),s:this.saturation,v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.hueValue=z(t)}get hue(){return this.hueValue}set saturation(t){this.instance=x({h:this.hue,s:z(t),v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.saturationValue=z(t)}get saturation(){return this.saturationValue}set brightness(t){this.instance=x({h:this.hue,s:this.saturation,v:z(t),a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.brightnessValue=z(t)}get brightness(){return this.brightnessValue}set lightness(t){this.instance=x({h:this.hue,s:this.hslSaturationValue,l:z(t),a:this.alphaValue/100}),this.initRgb(),this.initHsb(),this.lightnessValue=z(t)}get lightness(){return this.lightnessValue}set red(t){const r=this.instance.toRgb();this.instance=x({...r,r:z(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.redValue=z(t)}get red(){return this.redValue}set green(t){const r=this.instance.toRgb();this.instance=x({...r,g:z(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.greenValue=z(t)}get green(){return this.greenValue}set blue(t){const r=this.instance.toRgb();this.instance=x({...r,b:z(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.blueValue=z(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 va(e,t,r,n){return`rgba(${[e,t,r,n/100].join(",")})`}const qr=(e,t,r)=>t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e,Tn="color-history",jn=8,fe=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},xp=a.defineComponent({name:"Alpha",props:{color:T.instanceOf(H),size:T.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 H;const i=a.reactive({red:o.red,green:o.green,blue:o.blue,alpha:o.alpha});a.watch(()=>e.color,f=>{f&&(o=f,dt.merge(i,{red:f.red,green:f.green,blue:f.blue,alpha:f.alpha}))},{deep:!0});const c=a.computed(()=>{const f=va(i.red,i.green,i.blue,0),p=va(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&&u(f)},u=f=>{if(f.stopPropagation(),r.value&&n.value){const p=r.value.getBoundingClientRect(),h=n.value.offsetWidth;let b=f.clientX-p.left;b=Math.max(h/2,b),b=Math.min(b,p.width-h/2);const g=Math.round((b-h/2)/(p.width-h)*100);o.alpha=g,i.alpha=g,t("change",g)}};return ze(()=>{const f={drag:p=>{u(p)},end:p=>{u(p)}};r.value&&n.value&&$t.triggerDragEvent(r.value,f)}),{barElement:r,cursorElement:n,getCursorStyle:s,getBackgroundStyle:c,onClickSider:d}}}),kp=e=>(a.pushScopeId("data-v-18925ba6"),e=e(),a.popScopeId(),e),Op=kp(()=>a.createElementVNode("div",{class:"vc-alpha-slider__bar-handle"},null,-1)),Ep=[Op];function _p(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]=(...c)=>e.onClickSider&&e.onClickSider(...c))},[a.createElementVNode("div",{class:a.normalizeClass(["vc-alpha-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},Ep,6)],4)],2)}const Pn=fe(xp,[["render",_p],["__scopeId","data-v-18925ba6"]]),Np=[["#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"]],Ap=a.defineComponent({name:"Palette",emits:["change"],setup(e,{emit:t}){return{palettes:Np,computedBgStyle:r=>r==="transparent"?r:r==="advance"?{}:{background:x(r).toRgbString()},onColorChange:r=>{t("change",r)}}}}),Vp={class:"vc-compact"},Tp=["onClick"];function jp(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",Vp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.palettes,(c,l)=>(a.openBlock(),a.createElementBlock("div",{key:l,class:"vc-compact__row"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c,(s,d)=>(a.openBlock(),a.createElementBlock("div",{key:d,class:"vc-compact__color-cube--wrap",onClick:u=>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,Tp))),128))]))),128))])}const Ki=fe(Ap,[["render",jp],["__scopeId","data-v-b969fd48"]]),Pp=a.defineComponent({name:"Board",props:{color:T.instanceOf(H),round:T.bool.def(!1),hide:T.bool.def(!0)},emits:["change"],setup(e,{emit:t}){var r,n,o;const i=a.getCurrentInstance(),c={h:((r=e.color)==null?void 0:r.hue)||0,s:1,v:1},l=new H(c).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),u=a.ref(0),f=a.ref(),p=a.computed(()=>({top:d.value+"px",left:u.value+"px"})),h=()=>{if(i){const S=i.vnode.el;u.value=s.saturation*S?.clientWidth,d.value=(1-s.brightness)*S?.clientHeight}};let b=!1;const g=S=>{b=!0,y(S)},v=S=>{b&&y(S)},m=()=>{b=!1},y=S=>{if(i){const k=i.vnode.el,_=k?.getBoundingClientRect();let O=S.clientX-_.left,j=S.clientY-_.top;O=qr(O,0,_.width),j=qr(j,0,_.height);const M=O/_.width,$=qr(-(j/_.height)+1,0,1);u.value=O,d.value=j,s.saturation=M,s.brightness=$,t("change",M,$)}};return ze(()=>{i&&i.vnode.el&&f.value&&a.nextTick(()=>{h()})}),Y(()=>e.color,S=>{dt.merge(s,{hueColor:new H({h:S.hue,s:1,v:1}).toHexString(),saturation:S.saturation,brightness:S.brightness}),h()},{deep:!0}),{state:s,cursorElement:f,getCursorStyle:p,onClickBoard:g,onDrag:v,onDragEnd:m}}}),$n=e=>(a.pushScopeId("data-v-7f0cdcdf"),e=e(),a.popScopeId(),e),$p=$n(()=>a.createElementVNode("div",{class:"vc-saturation__white"},null,-1)),Rp=$n(()=>a.createElementVNode("div",{class:"vc-saturation__black"},null,-1)),Ip=$n(()=>a.createElementVNode("div",null,null,-1)),Mp=[Ip];function Fp(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]=(...c)=>e.onClickBoard&&e.onClickBoard(...c)),onMousemove:t[1]||(t[1]=(...c)=>e.onDrag&&e.onDrag(...c)),onMouseup:t[2]||(t[2]=(...c)=>e.onDragEnd&&e.onDragEnd(...c))},[$p,Rp,a.createElementVNode("div",{class:"vc-saturation__cursor",ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},Mp,4)],38)}const Rn=fe(Pp,[["render",Fp],["__scopeId","data-v-7f0cdcdf"]]),Bp=a.defineComponent({name:"Hue",props:{color:T.instanceOf(H),size:T.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 H;const i=a.reactive({hue:o.hue||0});a.watch(()=>e.color,u=>{u&&(o=u,dt.merge(i,{hue:o.hue}))},{deep:!0});const c=()=>{if(r.value&&n.value){const u=r.value.getBoundingClientRect(),f=n.value.offsetWidth;return i.hue===360?u.width-f/2:i.hue%360*(u.width-f)/360+f/2}return 0},l=a.computed(()=>({left:c()+"px",top:0})),s=u=>{u.target!==r.value&&d(u)},d=u=>{if(u.stopPropagation(),r.value&&n.value){const f=r.value.getBoundingClientRect(),p=n.value.offsetWidth;let h=u.clientX-f.left;h=Math.min(h,f.width-p/2),h=Math.max(p/2,h);const b=Math.round((h-p/2)/(f.width-p)*360);o.hue=b,i.hue=b,t("change",b)}};return ze(()=>{const u={drag:f=>{d(f)},end:f=>{d(f)}};r.value&&n.value&&$t.triggerDragEvent(r.value,u)}),{barElement:r,cursorElement:n,getCursorStyle:l,onClickSider:s}}}),Gp=e=>(a.pushScopeId("data-v-e1a08576"),e=e(),a.popScopeId(),e),Lp=Gp(()=>a.createElementVNode("div",{class:"vc-hue-slider__bar-handle"},null,-1)),Hp=[Lp];function Dp(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]=(...c)=>e.onClickSider&&e.onClickSider(...c))},[a.createElementVNode("div",{class:a.normalizeClass(["vc-hue-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},Hp,6)],512)],2)}const In=fe(Bp,[["render",Dp],["__scopeId","data-v-e1a08576"]]),zp=a.defineComponent({name:"Lightness",props:{color:T.instanceOf(H),size:T.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 H;const[i,c,l]=o.HSL,s=a.reactive({hue:i,saturation:c,lightness:l});a.watch(()=>e.color,b=>{if(b){o=b;const[g,v,m]=o.HSL;dt.merge(s,{hue:g,saturation:v,lightness:m})}},{deep:!0});const d=a.computed(()=>{const b=x({h:s.hue,s:s.saturation,l:.8}).toPercentageRgbString(),g=x({h:s.hue,s:s.saturation,l:.6}).toPercentageRgbString(),v=x({h:s.hue,s:s.saturation,l:.4}).toPercentageRgbString(),m=x({h:s.hue,s:s.saturation,l:.2}).toPercentageRgbString();return{background:[`linear-gradient(to right, rgb(255, 255, 255), ${b}, ${g}, ${v}, ${m}, rgb(0, 0, 0))`,`-webkit-linear-gradient(left, rgb(255, 255, 255), ${b}, ${g}, ${v}, ${m}, rgb(0, 0, 0))`,`-moz-linear-gradient(left, rgb(255, 255, 255), ${b}, ${g}, ${v}, ${m}, rgb(0, 0, 0))`,`-ms-linear-gradient(left, rgb(255, 255, 255), ${b}, ${g}, ${v}, ${m}, rgb(0, 0, 0))`]}}),u=()=>{if(r.value&&n.value){const b=s.lightness,g=r.value.getBoundingClientRect(),v=n.value.offsetWidth;return(1-b)*(g.width-v)+v/2}return 0},f=a.computed(()=>({left:u()+"px",top:0})),p=b=>{b.target!==r.value&&h(b)},h=b=>{if(b.stopPropagation(),r.value&&n.value){const g=r.value.getBoundingClientRect(),v=n.value.offsetWidth;let m=b.clientX-g.left;m=Math.max(v/2,m),m=Math.min(m,g.width-v/2);const y=1-(m-v/2)/(g.width-v);o.lightness=y,t("change",y)}};return ze(()=>{const b={drag:g=>{h(g)},end:g=>{h(g)}};r.value&&n.value&&$t.triggerDragEvent(r.value,b)}),{barElement:r,cursorElement:n,getCursorStyle:f,getBackgroundStyle:d,onClickSider:p}}}),qp=e=>(a.pushScopeId("data-v-94a50a9e"),e=e(),a.popScopeId(),e),Wp=qp(()=>a.createElementVNode("div",{class:"vc-lightness-slider__bar-handle"},null,-1)),Up=[Wp];function Kp(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]=(...c)=>e.onClickSider&&e.onClickSider(...c))},[a.createElementVNode("div",{class:a.normalizeClass(["vc-lightness-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},Up,6)],4)],2)}const Xi=fe(zp,[["render",Kp],["__scopeId","data-v-94a50a9e"]]),Xp=a.defineComponent({name:"History",props:{colors:T.arrayOf(String).def(()=>[]),round:T.bool.def(!1)},emits:["change"],setup(e,{emit:t}){return{onColorSelect:r=>{t("change",r)}}}}),Yp={key:0,class:"vc-colorPicker__record"},Jp={class:"color-list"},Zp=["onClick"];function Qp(e,t,r,n,o,i){return e.colors&&e.colors.length>0?(a.openBlock(),a.createElementBlock("div",Yp,[a.createElementVNode("div",Jp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.colors,(c,l)=>(a.openBlock(),a.createElementBlock("div",{key:l,class:a.normalizeClass(["color-item","transparent",{"color-item__round":e.round}]),onClick:s=>e.onColorSelect(c)},[a.createElementVNode("div",{class:"color-item__display",style:a.normalizeStyle({backgroundColor:c})},null,4)],10,Zp))),128))])])):a.createCommentVNode("",!0)}const Mn=fe(Xp,[["render",Qp],["__scopeId","data-v-0f657238"]]),eh=a.defineComponent({name:"Display",props:{color:T.instanceOf(H),disableAlpha:T.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){var r,n,o,i;const{copy:c,copied:l,isSupported:s}=nc(),d=a.ref("hex"),u=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:u.previewBgColor})),p=()=>{d.value=d.value==="rgba"?"hex":"rgba"},h=ke(m=>{if(!m.target.value)return;let y=parseInt(m.target.value.replace("%",""));y>100&&(m.target.value="100",y=100),y<0&&(m.target.value="0",y=0),isNaN(y)&&(m.target.value="100",y=100),!isNaN(y)&&u.color&&(u.color.alpha=y),t("change",u.color)},300),b=ke((m,y)=>{if(u.color){if(d.value==="hex"){const S=m.target.value.replace("#","");x(S).isValid()?[3,4].includes(S.length)&&(u.color.hex=S):u.color.hex="000000",t("change",u.color)}else if(d.value==="rgba"&&y===3&&m.target.value.toString()==="0."&&u.rgba){u.rgba[y]=m.target.value;const[S,k,_,O]=u.rgba;u.color.hex=x({r:S,g:k,b:_}).toHex(),u.color.alpha=Math.round(O*100),t("change",u.color)}}},100),g=ke((m,y)=>{if(m.target.value){if(d.value==="hex"){const S=m.target.value.replace("#","");x(S).isValid()&&u.color&&[6,8].includes(S.length)&&(u.color.hex=S)}else if(y!==void 0&&u.rgba&&u.color){if(m.target.value<0&&(m.target.value=0),y===3&&((m.target.value>1||isNaN(m.target.value))&&(m.target.value=1),m.target.value.toString()==="0."))return;y<3&&m.target.value>255&&(m.target.value=255),u.rgba[y]=m.target.value;const[S,k,_,O]=u.rgba;u.color.hex=x({r:S,g:k,b:_}).toHex(),u.color.alpha=Math.round(O*100)}t("change",u.color)}},300),v=()=>{if(s&&u.color){const m=d.value==="hex"?u.color.toString(u.color.alpha===100?"hex6":"hex8"):u.color.toRgbString();c(m||"")}};return Y(()=>e.color,m=>{m&&(u.color=m,u.alpha=Math.round(u.color.alpha),u.hex=u.color.hex,u.rgba=u.color.RGB)},{deep:!0}),Y(()=>u.color,()=>{u.color&&(u.previewBgColor=u.color.toRgbString())},{deep:!0}),{state:u,getBgColorStyle:f,inputType:d,copied:l,onInputTypeChange:p,onAlphaBlur:h,onInputChange:g,onBlurChange:b,onCopyColorStr:v}}}),th={class:"vc-display"},rh={class:"vc-current-color vc-transparent"},nh={key:0,class:"copy-text"},oh={key:0,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},ah={class:"vc-color-input"},ih={key:0,class:"vc-alpha-input"},lh=["value"],sh={key:1,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},ch=["value","onInput","onBlur"];function uh(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",th,[a.createElementVNode("div",rh,[a.createElementVNode("div",{class:"color-cube",style:a.normalizeStyle(e.getBgColorStyle),onClick:t[0]||(t[0]=(...c)=>e.onCopyColorStr&&e.onCopyColorStr(...c))},[e.copied?(a.openBlock(),a.createElementBlock("span",nh,"Copied!")):a.createCommentVNode("",!0)],4)]),e.inputType==="hex"?(a.openBlock(),a.createElementBlock("div",oh,[a.createElementVNode("div",ah,[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=c=>e.state.hex=c),maxlength:"8",onInput:t[2]||(t[2]=(...c)=>e.onInputChange&&e.onInputChange(...c)),onBlur:t[3]||(t[3]=(...c)=>e.onBlurChange&&e.onBlurChange(...c))},null,544),[[a.vModelText,e.state.hex]])]),e.disableAlpha?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",ih,[a.createElementVNode("input",{class:"vc-alpha-input__inner",value:e.state.alpha,onInput:t[4]||(t[4]=(...c)=>e.onAlphaBlur&&e.onAlphaBlur(...c))},null,40,lh),a.createTextVNode("% ")]))])):e.state.rgba?(a.openBlock(),a.createElementBlock("div",sh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.state.rgba,(c,l)=>(a.openBlock(),a.createElementBlock("div",{class:"vc-color-input",key:l},[a.createElementVNode("input",{value:c,onInput:s=>e.onInputChange(s,l),onBlur:s=>e.onBlurChange(s,l)},null,40,ch)]))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"vc-input-toggle",onClick:t[5]||(t[5]=(...c)=>e.onInputTypeChange&&e.onInputTypeChange(...c))},a.toDisplayString(e.inputType),1)])}const Fn=fe(eh,[["render",uh],["__scopeId","data-v-7334ac20"]]),dh=a.defineComponent({name:"FkColorPicker",components:{Display:Fn,Alpha:Pn,Palette:Ki,Board:Rn,Hue:In,Lightness:Xi,History:Mn},props:{color:T.instanceOf(H),disableHistory:T.bool.def(!1),roundHistory:T.bool.def(!1),disableAlpha:T.bool.def(!1)},emits:["update:color","change","advanceChange"],setup(e,{emit:t}){const r=e.color||new H,n=a.reactive({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=a.ref(!1),i=a.computed(()=>({background:n.rgb})),c=()=>{o.value=!1,t("advanceChange",!1)},l=sn(Tn,[],{}),s=ke(()=>{if(e.disableHistory)return;const g=n.color.toRgbString();if(l.value=l.value.filter(v=>!x.equals(v,g)),!l.value.includes(g)){for(;l.value.length>jn;)l.value.pop();l.value.unshift(g)}},500),d=g=>{g==="advance"?(o.value=!0,t("advanceChange",!0)):(n.color.hex=g,t("advanceChange",!1))},u=g=>{n.color.alpha=g},f=g=>{n.color.hue=g},p=(g,v)=>{n.color.saturation=g,n.color.brightness=v},h=g=>{n.color.lightness=g},b=g=>{const v=g.target.value.replace("#","");x(v).isValid()&&(n.color.hex=v)};return Y(()=>e.color,g=>{g&&(n.color=g)},{deep:!0}),Y(()=>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:c,onCompactChange:d,onAlphaChange:u,onHueChange:f,onBoardChange:p,onLightChange:h,onInputChange:b,previewStyle:i,historyColors:l}}}),fh=e=>(a.pushScopeId("data-v-48e3c224"),e=e(),a.popScopeId(),e),ph={class:"vc-fk-colorPicker"},hh={class:"vc-fk-colorPicker__inner"},vh={class:"vc-fk-colorPicker__header"},mh=fh(()=>a.createElementVNode("div",{class:"back"},null,-1)),gh=[mh];function yh(e,t,r,n,o,i){const c=a.resolveComponent("Palette"),l=a.resolveComponent("Board"),s=a.resolveComponent("Hue"),d=a.resolveComponent("Lightness"),u=a.resolveComponent("Alpha"),f=a.resolveComponent("Display"),p=a.resolveComponent("History");return a.openBlock(),a.createElementBlock("div",ph,[a.createElementVNode("div",hh,[a.createElementVNode("div",vh,[e.advancePanelShow?(a.openBlock(),a.createElementBlock("span",{key:0,style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...h)=>e.onBack&&e.onBack(...h))},gh)):a.createCommentVNode("",!0)]),e.advancePanelShow?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(c,{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(u,{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 ma=fe(dh,[["render",yh],["__scopeId","data-v-48e3c224"]]),bh=a.defineComponent({name:"ChromeColorPicker",components:{Display:Fn,Alpha:Pn,Board:Rn,Hue:In,History:Mn},props:{color:T.instanceOf(H),disableHistory:T.bool.def(!1),roundHistory:T.bool.def(!1),disableAlpha:T.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){const r=e.color||new H,n=a.reactive({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=a.computed(()=>({background:n.rgb})),i=sn(Tn,[],{}),c=ke(()=>{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>jn;)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)},u=(p,h)=>{n.color.saturation=p,n.color.brightness=h},f=p=>{p!=="advance"&&(n.color.hex=p)};return Y(()=>e.color,p=>{p&&(n.color=p)},{deep:!0}),Y(()=>n.color,()=>{n.hex=n.color.hex,n.rgb=n.color.toRgbString(),c(),t("update:color",n.color),t("change",n.color)},{deep:!0}),{state:n,previewStyle:o,historyColors:i,onAlphaChange:l,onHueChange:s,onBoardChange:u,onInputChange:d,onCompactChange:f}}}),Ch={class:"vc-chrome-colorPicker"},wh={class:"vc-chrome-colorPicker-body"},Sh={class:"chrome-controls"},xh={class:"chrome-sliders"};function kh(e,t,r,n,o,i){const c=a.resolveComponent("Board"),l=a.resolveComponent("Hue"),s=a.resolveComponent("Alpha"),d=a.resolveComponent("Display"),u=a.resolveComponent("History");return a.openBlock(),a.createElementBlock("div",Ch,[a.createVNode(c,{round:!0,hide:!1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"]),a.createElementVNode("div",wh,[a.createElementVNode("div",Sh,[a.createElementVNode("div",xh,[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(u,{key:0,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const ga=fe(bh,[["render",kh],["__scopeId","data-v-2611d66c"]]),Bn="Vue3ColorPickerProvider",Oh=(e,t)=>{const r=e.getBoundingClientRect(),n=r.left+r.width/2,o=r.top+r.height/2,i=Math.abs(n-t.clientX),c=Math.abs(o-t.clientY),l=Math.sqrt(Math.pow(i,2)+Math.pow(c,2)),s=c/l,d=Math.acos(s);let u=Math.floor(180/(Math.PI/d));return t.clientX>n&&t.clientY>o&&(u=180-u),t.clientX==n&&t.clientY>o&&(u=180),t.clientX>n&&t.clientY==o&&(u=90),t.clientX<n&&t.clientY>o&&(u=180+u),t.clientX<n&&t.clientY==o&&(u=270),t.clientX<n&&t.clientY<o&&(u=360-u),u};let Wr=!1;const Eh=(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,Wr=!1,(i=t.end)==null||i.call(t,o)};e&&e.addEventListener("mousedown",o=>{var i;Wr||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",n,!1),Wr=!0,(i=t.start)==null||i.call(t,o))})},_h={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"}},Nh=a.defineComponent({name:"Angle",props:_h,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)`})),c=l=>{r.value&&(n.value=Oh(r.value,l)%360,o())};return a.onMounted(()=>{const l={drag:s=>{c(s)},end:s=>{c(s)}};r.value&&Eh(r.value,l)}),()=>a.createVNode("div",{class:"bee-angle"},[a.createVNode("div",{class:"bee-angle__round",ref:r,style:i.value},null)])}}),Ah=a.defineComponent({name:"GradientColorPicker",components:{Angle:Nh,Display:Fn,Alpha:Pn,Palette:Ki,Board:Rn,Hue:In,Lightness:Xi,History:Mn},props:{startColor:T.instanceOf(H).isRequired,endColor:T.instanceOf(H).isRequired,startColorStop:T.number.def(0),endColorStop:T.number.def(100),angle:T.number.def(0),type:T.oneOf(["linear","radial"]).def("linear"),disableHistory:T.bool.def(!1),roundHistory:T.bool.def(!1),disableAlpha:T.bool.def(!1),pickerType:T.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(Bn),o=a.ref(e.pickerType==="chrome"),i=a.ref(),c=a.ref(),l=a.ref();a.watch(()=>[e.startColor,e.endColor,e.angle],w=>{r.startColor=w[0],r.endColor=w[1],r.angle=w[2]}),a.watch(()=>e.type,w=>{r.type=w});const s=a.computed({get:()=>r.startActive?r.startColor:r.endColor,set:w=>{if(r.startActive){r.startColor=w;return}r.endColor=w}}),d=a.computed(()=>{if(l.value&&i.value){const w=r.startColorStop/100,N=l.value.getBoundingClientRect(),P=i.value.offsetWidth;return Math.round(w*(N.width-P)+P/2)}return 0}),u=a.computed(()=>{if(l.value&&c.value){const w=r.endColorStop/100,N=l.value.getBoundingClientRect(),P=c.value.offsetWidth;return Math.round(w*(N.width-P)+P/2)}return 0}),f=a.computed(()=>{let w=`background: linear-gradient(${r.angle}deg, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`;return r.type==="radial"&&(w=`background: radial-gradient(circle, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`),w}),p=w=>{var N;if(r.startActive=!0,l.value&&i.value){const P=(N=l.value)==null?void 0:N.getBoundingClientRect();let E=w.clientX-P.left;E=Math.max(i.value.offsetWidth/2,E),E=Math.min(E,P.width-i.value.offsetWidth/2),r.startColorStop=Math.round((E-i.value.offsetWidth/2)/(P.width-i.value.offsetWidth)*100),t("update:startColorStop",r.startColorStop),t("startColorStopChange",r.startColorStop)}},h=w=>{var N;if(r.startActive=!1,l.value&&c.value){const P=(N=l.value)==null?void 0:N.getBoundingClientRect();let E=w.clientX-P.left;E=Math.max(c.value.offsetWidth/2,E),E=Math.min(E,P.width-c.value.offsetWidth/2),r.endColorStop=Math.round((E-c.value.offsetWidth/2)/(P.width-c.value.offsetWidth)*100),t("update:endColorStop",r.endColorStop),t("endColorStopChange",r.endColorStop)}},b=w=>{const N=w.target,P=parseInt(N.value.replace("°",""));isNaN(P)||(r.angle=P%360),t("update:angle",r.angle),t("angleChange",r.angle)},g=w=>{r.angle=w,t("update:angle",r.angle),t("angleChange",r.angle)},v=w=>{w==="advance"?(o.value=!0,t("advanceChange",!0)):(s.value.hex=w,t("advanceChange",!1)),O()},m=w=>{s.value.alpha=w,O()},y=w=>{s.value.hue=w,O()},S=(w,N)=>{s.value.saturation=w,s.value.brightness=N,O()},k=w=>{s.value.lightness=w,O()},_=()=>{O()},O=()=>{r.startActive?(t("update:startColor",r.startColor),t("startColorChange",r.startColor)):(t("update:endColor",r.endColor),t("endColorChange",r.endColor))},j=()=>{o.value=!1,t("advanceChange",!1)},M=()=>{r.type=r.type==="linear"?"radial":"linear",t("typeChange",r.type)},$=sn(Tn,[],{}),F=ke(()=>{if(e.disableHistory)return;const w=s.value.toRgbString();if($.value=$.value.filter(N=>!x.equals(N,w)),!$.value.includes(w)){for(;$.value.length>jn;)$.value.pop();$.value.unshift(w)}},500);return ze(()=>{c.value&&i.value&&($t.triggerDragEvent(c.value,{drag:w=>{h(w)},end:w=>{h(w)}}),$t.triggerDragEvent(i.value,{drag:w=>{p(w)},end:w=>{p(w)}}))}),Y(()=>r.startColor,w=>{r.startColorRgba=w.toRgbString()},{deep:!0}),Y(()=>r.endColor,w=>{r.endColorRgba=w.toRgbString()},{deep:!0}),Y(()=>s.value,()=>{F()},{deep:!0}),{startGradientRef:i,stopGradientRef:c,colorRangeRef:l,state:r,currentColor:s,getStartColorLeft:d,getEndColorLeft:u,gradientBg:f,advancePanelShow:o,onDegreeBlur:b,onCompactChange:v,onAlphaChange:m,onHueChange:y,onBoardChange:S,onLightChange:k,historyColors:$,onBack:j,onDegreeChange:g,onDisplayChange:_,onTypeChange:M,lang:n?.lang}}}),Yi=e=>(a.pushScopeId("data-v-c4d6d6ea"),e=e(),a.popScopeId(),e),Vh={class:"vc-gradient-picker"},Th={class:"vc-gradient-picker__header"},jh={class:"vc-gradient__types"},Ph={class:"vc-gradient-wrap__types"},$h={class:"vc-picker-degree-input vc-degree-input"},Rh={class:"vc-degree-input__control"},Ih=["value"],Mh={class:"vc-degree-input__panel"},Fh={class:"vc-degree-input__disk"},Bh={class:"vc-gradient-picker__body"},Gh={class:"vc-color-range",ref:"colorRangeRef"},Lh={class:"vc-color-range__container"},Hh={class:"vc-gradient__stop__container"},Dh=["title"],zh=Yi(()=>a.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),qh=[zh],Wh=["title"],Uh=Yi(()=>a.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),Kh=[Uh];function Xh(e,t,r,n,o,i){var c,l;const s=a.resolveComponent("Angle"),d=a.resolveComponent("Board"),u=a.resolveComponent("Hue"),f=a.resolveComponent("Palette"),p=a.resolveComponent("Lightness"),h=a.resolveComponent("Alpha"),b=a.resolveComponent("Display"),g=a.resolveComponent("History");return a.openBlock(),a.createElementBlock("div",Vh,[a.createElementVNode("div",Th,[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",jh,[a.createElementVNode("div",Ph,[(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]=(...m)=>e.onTypeChange&&e.onTypeChange(...m))},a.toDisplayString(e.lang?e.lang[v]:v),3)),64))]),a.withDirectives(a.createElementVNode("div",$h,[a.createElementVNode("div",Rh,[a.createElementVNode("input",{value:e.state.angle,onBlur:t[2]||(t[2]=(...v)=>e.onDegreeBlur&&e.onDegreeBlur(...v))},null,40,Ih),a.createTextVNode("deg ")]),a.createElementVNode("div",Mh,[a.createElementVNode("div",Fh,[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",Bh,[a.createElementVNode("div",Gh,[a.createElementVNode("div",Lh,[a.createElementVNode("div",{class:"vc-background",style:a.normalizeStyle(e.gradientBg)},null,4),a.createElementVNode("div",Hh,[a.createElementVNode("div",{class:a.normalizeClass(["vc-gradient__stop",{"vc-gradient__stop--current":e.state.startActive}]),ref:"startGradientRef",title:(c=e.lang)==null?void 0:c.start,style:a.normalizeStyle({left:e.getStartColorLeft+"px",backgroundColor:e.state.startColorRgba})},qh,14,Dh),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})},Kh,14,Wh)])])],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(u,{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(b,{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(g,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])}const ya=fe(Ah,[["render",Xh],["__scopeId","data-v-c4d6d6ea"]]),Yh=a.defineComponent({name:"WrapContainer",props:{theme:T.oneOf(["white","black"]).def("white"),showTab:T.bool.def(!1),activeKey:T.oneOf(["pure","gradient"]).def("pure")},emits:["update:activeKey","change"],setup(e,{emit:t}){const r=a.reactive({activeKey:e.activeKey}),n=a.inject(Bn),o=i=>{r.activeKey=i,t("update:activeKey",i),t("change",i)};return Y(()=>e.activeKey,i=>{r.activeKey=i}),{state:r,onActiveKeyChange:o,lang:n?.lang}}}),Jh={class:"vc-colorpicker--container"},Zh={key:0,class:"vc-colorpicker--tabs"},Qh={class:"vc-colorpicker--tabs__inner"},ev={class:"vc-btn__content"},tv={class:"vc-btn__content"};function rv(e,t,r,n,o,i){var c,l;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-colorpicker",e.theme])},[a.createElementVNode("div",Jh,[e.showTab?(a.openBlock(),a.createElementBlock("div",Zh,[a.createElementVNode("div",Qh,[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",ev,a.toDisplayString((c=e.lang)==null?void 0:c.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",tv,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 nv=fe(Yh,[["render",rv],["__scopeId","data-v-0492277d"]]),ov={start:"Start",end:"End",pure:"Pure",gradient:"Gradient",linear:"linear",radial:"radial"},av={start:"开始",end:"结束",pure:"纯色",gradient:"渐变",linear:"线性",radial:"径向"},iv={En:ov,"ZH-cn":av},lv={isWidget:T.bool.def(!1),pickerType:T.oneOf(["fk","chrome"]).def("fk"),shape:T.oneOf(["circle","square"]).def("square"),pureColor:{type:[String,Object],default:"#000000"},gradientColor:T.string.def("linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)"),format:{type:String,default:"rgb"},disableAlpha:T.bool.def(!1),disableHistory:T.bool.def(!1),roundHistory:T.bool.def(!1),useType:T.oneOf(["pure","gradient","both"]).def("pure"),activeKey:T.oneOf(["pure","gradient"]).def("pure"),lang:{type:String,default:"ZH-cn"},zIndex:T.number.def(9999),pickerContainer:{type:[String,HTMLElement],default:"body"},debounce:T.number.def(100),theme:T.oneOf(["white","black"]).def("white"),blurClose:T.bool.def(!1),defaultPopup:T.bool.def(!1)},sv=a.defineComponent({name:"ColorPicker",components:{FkColorPicker:ma,ChromeColorPicker:ga,GradientColorPicker:ya,WrapContainer:nv},inheritAttrs:!1,props:lv,emits:["update:pureColor","pureColorChange","update:gradientColor","gradientColorChange","update:activeKey","activeKeyChange"],setup(e,{emit:t}){a.provide(Bn,{lang:a.computed(()=>iv[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 H("#000"),i=new H("#000"),c=new H(n.pureColor),l=a.reactive({startColor:o,endColor:i,startColorStop:0,endColorStop:100,angle:0,type:"linear",gradientColor:e.gradientColor}),s=a.ref(c),d=a.ref(e.defaultPopup),u=a.ref(null),f=a.ref(null);let p=null;const h=a.computed(()=>({background:n.activeKey!=="gradient"?x(n.pureColor).toRgbString():l.gradientColor})),b=a.computed(()=>n.activeKey==="gradient"?ya.name:e.pickerType==="fk"?ma.name:ga.name),g=w=>{n.isAdvanceMode=w},v=a.computed(()=>{const w={disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,pickerType:e.pickerType};return n.activeKey==="gradient"?{...w,startColor:l.startColor,endColor:l.endColor,angle:l.angle,type:l.type,startColorStop:l.startColorStop,endColorStop:l.endColorStop,onStartColorChange:N=>{l.startColor=N,_()},onEndColorChange:N=>{l.endColor=N,_()},onStartColorStopChange:N=>{l.startColorStop=N,_()},onEndColorStopChange:N=>{l.endColorStop=N,_()},onAngleChange:N=>{l.angle=N,_()},onTypeChange:N=>{l.type=N,_()},onAdvanceChange:g}:{...w,disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,color:s.value,onChange:M,onAdvanceChange:g}}),m=()=>{d.value=!0,p?p.update():j()},y=()=>{d.value=!1},S=ke(()=>{!e.isWidget&&e.blurClose&&y()},100);tc(f,()=>{y()});const k=()=>{var w,N,P,E;try{const[V]=go.parse(l.gradientColor);if(V&&V.type.includes("gradient")&&V.colorStops.length>=2){const I=V.colorStops[0],K=V.colorStops[1];l.startColorStop=Number((w=I.length)==null?void 0:w.value)||0,l.endColorStop=Number((N=K.length)==null?void 0:N.value)||0,V.type==="linear-gradient"&&((P=V.orientation)==null?void 0:P.type)==="angular"&&(l.angle=Number((E=V.orientation)==null?void 0:E.value)||0),l.type=V.type.split("-")[0];const[A,R,B,Q]=I.value,[ve,Ke,Ae,me]=K.value;l.startColor=new H({r:Number(A),g:Number(R),b:Number(B),a:Number(Q)}),l.endColor=new H({r:Number(ve),g:Number(Ke),b:Number(Ae),a:Number(me)})}}catch(V){console.log(`[Parse Color]: ${V}`)}},_=ke(()=>{const w=O();try{l.gradientColor=go.stringify(w),t("update:gradientColor",l.gradientColor),t("gradientColorChange",l.gradientColor)}catch(N){console.log(N)}},e.debounce),O=()=>{const w=[],N=l.startColor.RGB.map(V=>V.toString()),P=l.endColor.RGB.map(V=>V.toString()),E=[{type:"rgba",value:[N[0],N[1],N[2],N[3]],length:{value:l.startColorStop+"",type:"%"}},{type:"rgba",value:[P[0],P[1],P[2],P[3]],length:{value:l.endColorStop+"",type:"%"}}];return l.type==="linear"?w.push({type:"linear-gradient",orientation:{type:"angular",value:l.angle+""},colorStops:E}):l.type==="radial"&&w.push({type:"radial-gradient",orientation:[{type:"shape",value:"circle"}],colorStops:E}),w},j=()=>{u.value&&f.value&&(p=Gu(u.value,f.value,{placement:"auto",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{allowedAutoPlacements:["top","bottom","left","right"],rootBoundary:"viewport"}}]}))},M=w=>{s.value=w,n.pureColor=w.toString(e.format),$()},$=ke(()=>{t("update:pureColor",n.pureColor),t("pureColorChange",n.pureColor)},e.debounce),F=w=>{n.activeKey=w,t("update:activeKey",w),t("activeKeyChange",w)};return ze(()=>{k(),p||j()}),Y(()=>e.gradientColor,w=>{w!=l.gradientColor&&(l.gradientColor=w)}),Y(()=>l.gradientColor,()=>{k()}),Y(()=>e.activeKey,w=>{n.activeKey=w}),Y(()=>e.useType,w=>{n.activeKey!=="gradient"&&w==="gradient"?n.activeKey="gradient":n.activeKey="pure"}),Y(()=>e.pureColor,w=>{x.equals(w,n.pureColor)||(n.pureColor=w,s.value=new H(w))},{deep:!0}),{colorCubeRef:u,pickerRef:f,showPicker:d,colorInstance:s,getBgColorStyle:h,getComponentName:b,getBindArgs:v,state:n,hasExtra:r,onColorChange:M,onShowPicker:m,onActiveKeyChange:F,onAutoClose:S}}}),cv={key:0,class:"vc-color-extra"},uv={key:0,class:"vc-color-extra"};function dv(e,t,r,n,o,i){const c=a.resolveComponent("WrapContainer");return a.openBlock(),a.createElementBlock(a.Fragment,null,[e.isWidget?(a.openBlock(),a.createBlock(c,{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",cv,[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(c,{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",uv,[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 fv=fe(sv,[["render",dv],["__scopeId","data-v-354ca836"]]),pv={install(e){e.use(Ul),e.use(Kl),e.use(Zl),e.use(ts),e.use(os),e.use(as),e.use(cs),e.use(fs),e.use(vs),e.use(xs),e.use(Es),e.use(_s),e.use(As),e.use(Ps),e.use(Rs),e.use(Bs),e.use(Gs),e.use(Ls),e.use(Xl),e.use(Is),e.use(Ns),e.use(Vs),e.use(is),e.component("ColorPicker",fv)}},ba=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=C.useNamespace("gct-edit-form");if(!e.model)throw new Error("未传递表单模型配置");const n=e.controller||C.useEditFormController(()=>new C.EditFormController(e.model)),o=a.ref(null),i=async()=>{try{await o.value.formRef.validate()}catch(l){return console.error(l),!1}return!0},c=async l=>{try{await o.value.formRef.validateFields(l)}catch(s){return console.error(s),!1}return!0};return n.validate=i,n.validateItem=c,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)}),C.useModal(async()=>{try{await o.value.formRef.validate();const l=await n.save();if(l)return{ok:!0,data:[dt.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])}}),hv={install(e){e.component(ba.name,ba)}};function vv(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Ca=a.defineComponent({name:"GctFormItem",props:{c:{type:Object,required:!0},formModel:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=C.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(C.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"},vv(n)?n:{default:()=>[n]})}});function mv(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const wa=a.defineComponent({name:"GctForm",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=C.useNamespace("gct-form");a.provide("formController",e.c);const r=a.ref(null),n=e.c;Object.keys(n.item).forEach(d=>{const u=n.item[d];u.state=a.reactive(u.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),c=d=>{const u=n.provider[d.name];if(!u)return console.error(`未找到表单项适配器实例:${d.name}`,d),null;if(u)return a.h(typeof u.component=="string"?a.resolveComponent(u.component):u.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 u=[];return d.forEach(f=>{if(f.type==="hidden")return null;let p=null;const h=f;h.type==="container"||h.container?p=c(h):p=i(f),p&&u.push(p)}),u},s={};return e.model.labelWidth&&(s[t.cssVarName("form-item-label-width")]=e.model.labelWidth),{ns:t,formRef:r,staticStyle:s,renderItem:i,renderContainer:c,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},mv(e=this.model.children.map(t=>this.renderContainer(t)))?e:{default:()=>[e]})}});class gv{component="gct-form-item";createController(t,r){return C.useFormItemController(()=>new C.FormItemController(t,r))}}class yv{component="gct-form-hidden-item";createController(t,r){return C.useFormItemController(()=>new C.FormHiddenItemController(t,r))}}class bv{component="gct-form-collapse-pane";createController(t,r){return C.useFormItemController(()=>new C.FormCollapsePaneController(t,r))}}function Sa(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const xa=a.defineComponent({name:"GctFormCollapsePane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=C.useNamespace("form-collapse-pane"),r={};function n(o){if(e.model.layout==="flex")return a.createVNode(a.resolveComponent("flex-container"),{layout:e.model.flex},Sa(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},Sa(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)])}}),Cv={install(e){_gct.register.formItem.register("collapse-pane",()=>new bv),e.component(xa.name,xa)}};class wv{component="gct-form-collapse";createController(t,r){return C.useFormItemController(()=>new C.FormCollapseController(t,r))}}const ka=a.defineComponent({name:"GctFormCollapse",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=C.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(c=>c.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(Fe.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(Fe.Collapse.Panel,{key:t.name,header:t.title,collapsible:o},{default:()=>[e[r]]})})]})}}),Sv={install(e){_gct.register.formItem.register("collapse",()=>new wv),e.component(ka.name,ka)}};class xv{component="gct-form-group";createController(t,r){return C.useFormItemController(()=>new C.FormGroupController(t,r))}}function Ur(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Oa=a.defineComponent({name:"GctFormGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=C.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},Ur(i)?i:{default:()=>[i]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},Ur(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},Ur(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)])])}}),kv={install(e){_gct.register.formItem.register("container",()=>new xv),e.component(Oa.name,Oa)}};class Ov{component="gct-form-tab";createController(t,r){return C.useFormItemController(()=>new C.FormTabController(t,r))}}const Ea=a.defineComponent({name:"GctFormTab",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=C.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]]}))]})}}),Ev={install(e){_gct.register.formItem.register("tab",()=>new Ov),e.component(Ea.name,Ea)}};class _v{component="gct-form-tab-pane";createController(t,r){return C.useFormItemController(()=>new C.FormTabPaneController(t,r))}}function _a(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Na=a.defineComponent({name:"GctFormTabPane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=C.useNamespace("form-tab-pane"),r={};function n(o){if(e.model.layout==="flex")return a.createVNode(a.resolveComponent("flex-container"),{layout:e.model.flex},_a(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},_a(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)])}}),Nv={install(e){_gct.register.formItem.register("tab-pane",()=>new _v),e.component(Na.name,Na)}};class Av{component="gct-form-title-group";createController(t,r){return C.useFormItemController(()=>new C.FormGroupController(t,r))}}function Aa(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Va=a.defineComponent({name:"GctFormTitleGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=C.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},Aa(i)?i:{default:()=>[i]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},Aa(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)])])}}),Vv={install(e){_gct.register.formItem.register(C.FormContainerType.FORM_TITLE_GROUP,()=>new Av),e.component(Va.name,Va)}},Tv={install(e){_gct.register.formItem.register("item",()=>new gv),_gct.register.formItem.register("hidden",()=>new yv),e.use(Cv),e.use(Sv),e.use(kv),e.use(Ev),e.use(Nv),e.use(Vv),e.component(wa.name,wa),e.component(Ca.name,Ca)}},jv=(e,t)=>(e.install=r=>{const n=e.name||e.displayName;n&&(r.component(n,e),t&&(r.config.globalProperties[t]=e))},e),Pv={install(e){e.use(pv),e.use(hv),e.use(Tv),e.component(Kr.name,Kr),e.component(to.name,to),e.component(Xr.name,Xr),e.component(no.name,no),e.component(oo.name,oo)}};exports.CodeEditor=Kr;exports.default=Pv;exports.withInstall=jv;