@gct-paas/core-web 0.0.1-dev.17 → 0.0.1-dev.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core-web.css +1 -1
- package/dist/index.min.cjs +11 -11
- package/dist/index.system.min.js +12 -12
- package/es/components/code-editor/code-editor.d.ts +9 -0
- package/es/components/code-editor/code-editor.mjs +9 -2
- package/es/editor/gct-form-color/gct-form-color.mjs +2 -9
- package/es/editor/gct-form-modal-select/gct-form-modal-select.d.ts +45 -0
- package/es/editor/gct-form-modal-select/gct-form-modal-select.mjs +99 -0
- package/es/editor/gct-form-modal-select/gct-form-modal-select.provider.d.ts +13 -0
- package/es/editor/gct-form-modal-select/gct-form-modal-select.provider.mjs +6 -0
- package/es/editor/gct-form-modal-select/gct-form-modal-select.scss +7 -0
- package/es/editor/gct-form-modal-select/index.d.ts +4 -0
- package/es/editor/gct-form-modal-select/index.mjs +12 -0
- package/es/editor/gct-form-number/gct-form-number.d.ts +1 -2
- package/es/editor/gct-form-number/gct-form-number.mjs +5 -7
- package/es/editor/gct-form-number/gct-form-number.scss +3 -0
- package/es/editor/gct-form-text/gct-form-text.mjs +1 -1
- package/es/editor/index.mjs +5 -0
- package/es/index.d.ts +2 -0
- package/es/index.mjs +1 -1
- package/es/widgets/gct-form/gct-form.mjs +1 -0
- package/package.json +5 -5
package/dist/index.min.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";var yu=Object.defineProperty;var bu=(e,t,r)=>t in e?yu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Au=require("../internals/export"),Tu=require("../internals/array-includes").includes,Nu=require("../internals/fails"),Pu=require("../internals/add-to-unscopables"),Ru=Nu(function(){return!Array(1).includes()});Au({target:"Array",proto:!0,forced:Ru},{includes:function(t){return Tu(this,t,arguments.length>1?arguments[1]:void 0)}});Pu("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
|
|
1
|
+
"use strict";var yu=Object.defineProperty;var bu=(e,t,r)=>t in e?yu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var q=(e,t,r)=>bu(e,typeof t!="symbol"?t+"":t,r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),w=require("@gct-paas/core"),qe=require("ant-design-vue"),mt=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,a;for(a=0;a<n.length;a++)o=n[a],!(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 a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[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,a=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,a=s}finally{try{!n&&u.return!=null&&u.return()}finally{if(o)throw a}}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 Au=require("../internals/export"),Tu=require("../internals/array-includes").includes,Nu=require("../internals/fails"),Pu=require("../internals/add-to-unscopables"),Ru=Nu(function(){return!Array(1).includes()});Au({target:"Array",proto:!0,forced:Ru},{includes:function(t){return Tu(this,t,arguments.length>1?arguments[1]:void 0)}});Pu("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,a){return a(o)},n)}}function _t(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];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 sr(e){return{}.toString.call(e).includes("Object")}function Vu(e){return!Object.keys(e).length}function Vt(e){return typeof e=="function"}function $u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Bu(e,t){return sr(t)||Pe("changeType"),Object.keys(t).some(function(r){return!$u(e,r)})&&Pe("changeField"),t}function Fu(e){Vt(e)||Pe("selectorType")}function Mu(e){Vt(e)||sr(e)||Pe("handlerType"),sr(e)&&Object.values(e).some(function(t){return!Vt(t)})&&Pe("handlersType")}function qu(e){e||Pe("initialIsRequired"),sr(e)||Pe("initialType"),Vu(e)&&Pe("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"},Pe=_t(Du)(Gu),Jt={changes:Bu,selector:Fu,handler:Mu,initial:qu};function Lu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Jt.initial(e),Jt.handler(t);var r={current:e},n=_t(zu)(r,t),o=_t(Uu)(r),a=_t(Jt.changes)(e),u=_t(Hu)(r);function l(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return Jt.selector(d),d(r.current)}function s(d){Iu(n,o,a,u)(d)}return[l,s]}function Hu(e,t){return Vt(t)?t(e.current):t}function Uu(e,t){return e.current=aa(aa({},e.current),t),t}function zu(e,t,r){return Vt(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),a=0;a<n;a++)o[a]=arguments[a];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(Rl.deprecation)}function Qu(e,t){throw new Error(e[t]||e.default)}var Rl={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
3
3
|
You are using deprecated way of configuration.
|
|
4
4
|
|
|
5
5
|
Instead of using
|
|
@@ -8,13 +8,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8
8
|
monaco.config({ paths: { vs: '...' } })
|
|
9
9
|
|
|
10
10
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
11
|
-
`},aa=Yu(Qu)(Rl),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(a,u){return u(a)},o)}};function jl(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],jl(e[r],t[r]))}),ta(ta({},e),t)}var rc={type:"cancelation",msg:"operation is manually canceled"};function $r(e){var t=!1,r=new Promise(function(n,o){e.then(function(a){return t?o(rc):n(a)}),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}),Il=xu(nc,2),Gt=Il[0],Sr=Il[1];function oc(e){var t=ec.config(e),r=t.monaco,n=Su(t,["monaco"]);Sr(function(o){return{config:jl(o.config,n),monaco:r}})}function ac(){var e=Gt(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(Sr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),$r(Br);if(window.monaco&&window.monaco.editor)return Vl(window.monaco),e.resolve(window.monaco),$r(Br);tc(ic,sc)(uc)}return $r(Br)}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=Gt(function(n){var o=n.config,a=n.reject;return{config:o,reject:a}}),r=lc("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function uc(){var e=Gt(function(r){var n=r.config,o=r.resolve,a=r.reject;return{config:n,resolve:o,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){Vl(r),e.resolve(r)},function(r){e.reject(r)})}function Vl(e){Gt().monaco||Sr({monaco:e})}function cc(){return Gt(function(e){var t=e.monaco;return t})}var Br=new Promise(function(e,t){return Sr({resolve:e,reject:t})}),dc={config:oc,init:ac,__getMonacoInstance:cc};const ia=i.defineComponent({name:"CodeEditor",props:{value:{type:String,default:""},config:{type:Object,default:()=>({})}},emits:["update:value"],setup(e,{emit:t}){const r=w.useNamespace("code-editor"),n=i.computed({get(){return e.value},set(u){t("update:value",u)}}),o=i.ref(null);let a=null;return i.onMounted(()=>{dc.init().then(u=>{o.value&&(a=u.editor.create(o.value,w.deepMerge({value:n.value,language:"typescript",automaticLayout:!0,minimap:{enabled:!1}},e.config)))})}),i.onUnmounted(()=>{a==null||a.dispose()}),{ns:r,el:o}},render(){return i.createVNode("div",{ref:"el",class:this.ns.b()},null)}}),Xn=i.defineComponent({name:"FlexItem",props:{layout:Object},setup(e){return{ns:w.useNamespace("flex-item"),getStyle:()=>{const n={};if(e.layout){const{order:o,alignSelf:a,flexBasis:u,flexGrow:l,flexShrink:s}=e.layout;o!=null&&(n.order=o),a!=null&&(n["align-self"]=a),u!=null&&(n["flex-basis"]=u),l!=null&&(n["flex-grow"]=l),s!=null&&(n["flex-shrink"]=s)}return n}}},render(){var e,t;return i.createVNode("div",{class:this.ns.b(),style:this.getStyle()},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}});function fc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const la=i.defineComponent({name:"FlexContainer",props:{layout:Object},setup(e){return{ns:w.useNamespace("flex-container"),getStyle:()=>{const o={};if(e.layout){const{alignContent:a,alignItems:u,flexDirection:l,flexWrap:s,justifyContent:d}=e.layout;a!=null&&(o.alignContent=a),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 a={};if(o){const{width:u,height:l}=o;u!=null&&(a.width=u),l!=null&&(a.height=l)}return a}}},render(){var t,r;let e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return e.length>0&&(e=e[0].children||[]),i.createVNode("div",{class:this.ns.b(),style:this.getStyle()},[e.map(n=>{if(!n)return null;const o=n.props.model.flexItem;return i.createVNode(Xn,{layout:o,style:this.getItemStyle(n.props.model)},fc(n)?n:{default:()=>[n]})})])}});function sa(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const ua=i.defineComponent({name:"GridContainer",props:{layout:Object},setup(){return{ns:w.useNamespace("grid-container")}},render(){var n,o;let e;const t=this.layout||{};let r=((o=(n=this.$slots).default)==null?void 0:o.call(n))||[];return r.length>0&&(r=r[0].children||[]),i.createVNode(i.resolveComponent("a-row"),{class:this.ns.b(),wrap:!0,gutter:t.gutter},sa(e=r.map(a=>{if(!a)return null;const u=a.props.model.gridItem;return i.createVNode(i.resolveComponent("a-col"),{span:u?u.span??24:24,offset:u?u.offset??0:0},sa(a)?a:{default:()=>[a]})}))?e:{default:()=>[e]})}}),ca=i.defineComponent({name:"ViewContainer",props:{context:{type:Object},params:{type:Object},modal:{type:Object,required:!0}},setup(){return{ns:w.useNamespace("view-container")}},render(){var e,t;return i.createVNode("div",{class:this.ns.b()},[this.$slots.header?i.createVNode("div",{class:this.ns.b("header")},[this.$slots.header()]):null,i.createVNode("div",{class:this.ns.b("content")},[(t=(e=this.$slots).default)==null?void 0:t.call(e)]),this.$slots.footer?i.createVNode("div",{class:this.ns.b("footer")},[this.$slots.footer()]):null])}}),pc=i.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 i.createVNode(i.resolveComponent("length-unit-editor"),i.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{constructor(){D(this,"component","gct-form-length-unit")}}const vc=w.widthEditorInstall(w.EditorType.LENGTH_UNIT,()=>new hc,pc);var $l=require("../internals/global-this"),Bl=require("../internals/function-call"),co=require("../internals/array-buffer-view-core"),gc=require("../internals/length-of-array-like"),mc=require("../internals/to-offset"),yc=require("../internals/to-object"),Fl=require("../internals/fails"),bc=$l.RangeError,Jn=$l.Int8Array,da=Jn&&Jn.prototype,Ml=da&&da.set,Cc=co.aTypedArray,wc=co.exportTypedArrayMethod,Zn=!Fl(function(){var e=new Uint8ClampedArray(2);return Bl(Ml,e,{length:1,0:3},1),e[1]!==3}),Sc=Zn&&co.NATIVE_ARRAY_BUFFER_VIEWS&&Fl(function(){var e=new Jn(2);return e.set(1),e.set("2",1),e[0]!==0||e[1]!==2});wc("set",function(t){Cc(this);var r=mc(arguments.length>1?arguments[1]:void 0,1),n=yc(t);if(Zn)return Bl(Ml,this,n,r);var o=this.length,a=gc(n),u=0;if(a+r>o)throw new bc("Wrong length");for(;u<a;)this[r+u]=n[u++]},!Zn||Sc);function ql(e){return i.getCurrentScope()?(i.onScopeDispose(e),!0):!1}function Le(e){return typeof e=="function"?e():i.unref(e)}const xr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const xc=Object.prototype.toString,Oc=e=>xc.call(e)==="[object Object]",it=()=>{},Ec=kc();function kc(){var e,t;return xr&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Dl(e,t){function r(...n){return new Promise((o,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(a)})}return r}const Gl=e=>e();function _c(e,t={}){let r,n,o=it;const a=l=>{clearTimeout(l),o(),o=it};return l=>{const s=Le(e),d=Le(t.maxWait);return r&&a(r),s<=0||d!==void 0&&d<=0?(n&&(a(n),n=null),Promise.resolve(l())):new Promise((c,f)=>{o=t.rejectOnCancel?f:c,d&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,c(l())},d)),r=setTimeout(()=>{n&&a(n),n=null,c(l())},s)})}}function Ac(e=Gl){const t=i.ref(!0);function r(){t.value=!1}function n(){t.value=!0}const o=(...a)=>{t.value&&e(...a)};return{isActive:i.readonly(t),pause:r,resume:n,eventFilter:o}}function Tc(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 Nc(e){return i.getCurrentInstance()}function Ee(e,t=200,r={}){return Dl(_c(t,r),e)}function Pc(e,t,r={}){const{eventFilter:n=Gl,...o}=r;return i.watch(e,Dl(n,t),o)}function Rc(e,t,r={}){const{eventFilter:n,...o}=r,{eventFilter:a,pause:u,resume:l,isActive:s}=Ac(n);return{stop:Pc(e,t,{...o,eventFilter:a}),pause:u,resume:l,isActive:s}}function We(e,t=!0,r){Nc()?i.onMounted(e,r):t?e():i.nextTick(e)}function jc(e,t,r={}){const{immediate:n=!0}=r,o=i.ref(!1);let a=null;function u(){a&&(clearTimeout(a),a=null)}function l(){o.value=!1,u()}function s(...d){u(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=null,e(...d)},Le(t))}return n&&(o.value=!0,xr&&s()),ql(l),{isPending:i.readonly(o),start:s,stop:l}}function J(e,t,r){const n=i.watch(e,(o,a,u)=>{o&&(r!=null&&r.once&&i.nextTick(()=>n()),t(o,a,u))},{...r,once:!1});return n}function At(e){var t;const r=Le(e);return(t=r==null?void 0:r.$el)!=null?t:r}const $t=xr?window:void 0,Ll=xr?window.navigator:void 0;function De(...e){let t,r,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,o]=e,t=$t):[t,r,n,o]=e,!t)return it;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],u=()=>{a.forEach(c=>c()),a.length=0},l=(c,f,p,h)=>(c.addEventListener(f,p,h),()=>c.removeEventListener(f,p,h)),s=i.watch(()=>[At(t),Le(o)],([c,f])=>{if(u(),!c)return;const p=Oc(f)?{...f}:f;a.push(...r.flatMap(h=>n.map(v=>l(c,h,v,p))))},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return ql(d),d}let fa=!1;function Ic(e,t,r={}){const{window:n=$t,ignore:o=[],capture:a=!0,detectIframe:u=!1}=r;if(!n)return it;Ec&&!fa&&(fa=!0,Array.from(n.document.body.children).forEach(p=>p.addEventListener("click",it)),n.document.documentElement.addEventListener("click",it));let l=!0;const s=p=>o.some(h=>{if(typeof h=="string")return Array.from(n.document.querySelectorAll(h)).some(v=>v===p.target||p.composedPath().includes(v));{const v=At(h);return v&&(p.target===v||p.composedPath().includes(v))}}),c=[De(n,"click",p=>{const h=At(e);if(!(!h||h===p.target||p.composedPath().includes(h))){if(p.detail===0&&(l=!s(p)),!l){l=!0;return}t(p)}},{passive:!0,capture:a}),De(n,"pointerdown",p=>{const h=At(e);l=!s(p)&&!!(h&&!p.composedPath().includes(h))},{passive:!0}),u&&De(n,"blur",p=>{setTimeout(()=>{var h;const v=At(e);((h=n.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(v!=null&&v.contains(n.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>c.forEach(p=>p())}function Vc(){const e=i.ref(!1),t=i.getCurrentInstance();return t&&i.onMounted(()=>{e.value=!0},t),e}function Hl(e){const t=Vc();return i.computed(()=>(t.value,!!e()))}function pa(e,t={}){const{controls:r=!1,navigator:n=Ll}=t,o=Hl(()=>n&&"permissions"in n);let a;const u=typeof e=="string"?{name:e}:e,l=i.ref(),s=()=>{a&&(l.value=a.state)},d=Tc(async()=>{if(o.value){if(!a)try{a=await n.permissions.query(u),De(a,"change",s),s()}catch{l.value="prompt"}return a}});return d(),r?{state:l,isSupported:o,query:d}:l}function $c(e={}){const{navigator:t=Ll,read:r=!1,source:n,copiedDuring:o=1500,legacy:a=!1}=e,u=Hl(()=>t&&"clipboard"in t),l=pa("clipboard-read"),s=pa("clipboard-write"),d=i.computed(()=>u.value||a),c=i.ref(""),f=i.ref(!1),p=jc(()=>f.value=!1,o);function h(){u.value&&b(l.value)?t.clipboard.readText().then(g=>{c.value=g}):c.value=m()}d.value&&r&&De(["copy","cut"],h);async function v(g=Le(n)){d.value&&g!=null&&(u.value&&b(s.value)?await t.clipboard.writeText(g):y(g),c.value=g,f.value=!0,p.start())}function y(g){const S=document.createElement("textarea");S.value=g??"",S.style.position="absolute",S.style.opacity="0",document.body.appendChild(S),S.select(),document.execCommand("copy"),S.remove()}function m(){var g,S,x;return(x=(S=(g=document==null?void 0:document.getSelection)==null?void 0:g.call(document))==null?void 0:S.toString())!=null?x:""}function b(g){return g==="granted"||g==="prompt"}return{isSupported:d,text:c,copied:f,copy:v}}const Zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qt="__vueuse_ssr_handlers__",Bc=Fc();function Fc(){return Qt in Zt||(Zt[Qt]=Zt[Qt]||{}),Zt[Qt]}function Mc(e,t){return Bc[e]||t}function qc(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 Dc={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ha="vueuse-storage";function Gc(e,t,r,n={}){var o;const{flush:a="pre",deep:u=!0,listenToStorageChanges:l=!0,writeDefaults:s=!0,mergeDefaults:d=!1,shallow:c,window:f=$t,eventFilter:p,onError:h=A=>{console.error(A)},initOnMounted:v}=n,y=(c?i.shallowRef:i.ref)(typeof t=="function"?t():t);if(!r)try{r=Mc("getDefaultStorage",()=>{var A;return(A=$t)==null?void 0:A.localStorage})()}catch(A){h(A)}if(!r)return y;const m=Le(t),b=qc(m),g=(o=n.serializer)!=null?o:Dc[b],{pause:S,resume:x}=Rc(y,()=>k(y.value),{flush:a,deep:u,eventFilter:p});f&&l&&We(()=>{De(f,"storage",V),De(f,ha,j),v&&V()}),v||V();function E(A,C){f&&f.dispatchEvent(new CustomEvent(ha,{detail:{key:e,oldValue:A,newValue:C,storageArea:r}}))}function k(A){try{const C=r.getItem(e);if(A==null)E(C,null),r.removeItem(e);else{const _=g.write(A);C!==_&&(r.setItem(e,_),E(C,_))}}catch(C){h(C)}}function P(A){const C=A?A.newValue:r.getItem(e);if(C==null)return s&&m!=null&&r.setItem(e,g.write(m)),m;if(!A&&d){const _=g.read(C);return typeof d=="function"?d(_,m):b==="object"&&!Array.isArray(_)?{...m,..._}:_}else return typeof C!="string"?C:g.read(C)}function V(A){if(!(A&&A.storageArea!==r)){if(A&&A.key==null){y.value=m;return}if(!(A&&A.key!==e)){S();try{(A==null?void 0:A.newValue)!==g.write(y.value)&&(y.value=P(A))}catch(C){h(C)}finally{A?i.nextTick(x):x()}}}}function j(A){V(A.detail)}return y}function fo(e,t,r={}){const{window:n=$t}=r;return Gc(e,t,n==null?void 0:n.localStorage,r)}function ur(e){"@babel/helpers - typeof";return ur=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},ur(e)}var Lc=/^\s+/,Hc=/\s+$/;function O(e,t){if(e=e||"",t=t||{},e instanceof O)return e;if(!(this instanceof O))return new O(e,t);var r=zc(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}O.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,a,u,l;return r=t.r/255,n=t.g/255,o=t.b/255,r<=.03928?a=r/12.92:a=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*a+.7152*u+.0722*l},setAlpha:function(t){return this._a=zl(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ga(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ga(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+o+"%)":"hsva("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=va(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=va(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+o+"%)":"hsla("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return ma(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return Yc(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(G(this._r,255)*100)+"%",g:Math.round(G(this._g,255)*100)+"%",b:Math.round(G(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(G(this._r,255)*100)+"%, "+Math.round(G(this._g,255)*100)+"%, "+Math.round(G(this._b,255)*100)+"%)":"rgba("+Math.round(G(this._r,255)*100)+"%, "+Math.round(G(this._g,255)*100)+"%, "+Math.round(G(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ld[ma(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+ya(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var a=O(t);n="#"+ya(a._r,a._g,a._b,a._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,a=!r&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?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 O(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(Qc,arguments)},brighten:function(){return this._applyModification(ed,arguments)},darken:function(){return this._applyModification(td,arguments)},desaturate:function(){return this._applyModification(Xc,arguments)},saturate:function(){return this._applyModification(Jc,arguments)},greyscale:function(){return this._applyModification(Zc,arguments)},spin:function(){return this._applyModification(rd,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(ad,arguments)},complement:function(){return this._applyCombination(nd,arguments)},monochromatic:function(){return this._applyCombination(id,arguments)},splitcomplement:function(){return this._applyCombination(od,arguments)},triad:function(){return this._applyCombination(ba,[3])},tetrad:function(){return this._applyCombination(ba,[4])}};O.fromRatio=function(e,t){if(ur(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=Tt(e[n]));e=r}return O(e,t)};function zc(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,a=null,u=!1,l=!1;return typeof e=="string"&&(e=dd(e)),ur(e)=="object"&&(xe(e.r)&&xe(e.g)&&xe(e.b)?(t=Uc(e.r,e.g,e.b),u=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):xe(e.h)&&xe(e.s)&&xe(e.v)?(n=Tt(e.s),o=Tt(e.v),t=Kc(e.h,n,o),u=!0,l="hsv"):xe(e.h)&&xe(e.s)&&xe(e.l)&&(n=Tt(e.s),a=Tt(e.l),t=Wc(e.h,n,a),u=!0,l="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=zl(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 Uc(e,t,r){return{r:G(e,255)*255,g:G(t,255)*255,b:G(r,255)*255}}function va(e,t,r){e=G(e,255),t=G(t,255),r=G(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,u,l=(n+o)/2;if(n==o)a=u=0;else{var s=n-o;switch(u=l>.5?s/(2-n-o):s/(n+o),n){case e:a=(t-r)/s+(t<r?6:0);break;case t:a=(r-e)/s+2;break;case r:a=(e-t)/s+4;break}a/=6}return{h:a,s:u,l}}function Wc(e,t,r){var n,o,a;e=G(e,360),t=G(t,100),r=G(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=a=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),a=u(s,l,e-1/3)}return{r:n*255,g:o*255,b:a*255}}function ga(e,t,r){e=G(e,255),t=G(t,255),r=G(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,u,l=n,s=n-o;if(u=n===0?0:s/n,n==o)a=0;else{switch(n){case e:a=(t-r)/s+(t<r?6:0);break;case t:a=(r-e)/s+2;break;case r:a=(e-t)/s+4;break}a/=6}return{h:a,s:u,v:l}}function Kc(e,t,r){e=G(e,360)*6,t=G(t,100),r=G(r,100);var n=Math.floor(e),o=e-n,a=r*(1-t),u=r*(1-o*t),l=r*(1-(1-o)*t),s=n%6,d=[r,u,a,a,l,r][s],c=[l,r,r,u,a,a][s],f=[a,a,l,r,r,u][s];return{r:d*255,g:c*255,b:f*255}}function ma(e,t,r,n){var o=[ve(Math.round(e).toString(16)),ve(Math.round(t).toString(16)),ve(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 Yc(e,t,r,n,o){var a=[ve(Math.round(e).toString(16)),ve(Math.round(t).toString(16)),ve(Math.round(r).toString(16)),ve(Ul(n))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function ya(e,t,r,n){var o=[ve(Ul(n)),ve(Math.round(e).toString(16)),ve(Math.round(t).toString(16)),ve(Math.round(r).toString(16))];return o.join("")}O.equals=function(e,t){return!e||!t?!1:O(e).toRgbString()==O(t).toRgbString()};O.random=function(){return O.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Xc(e,t){t=t===0?0:t||10;var r=O(e).toHsl();return r.s-=t/100,r.s=Or(r.s),O(r)}function Jc(e,t){t=t===0?0:t||10;var r=O(e).toHsl();return r.s+=t/100,r.s=Or(r.s),O(r)}function Zc(e){return O(e).desaturate(100)}function Qc(e,t){t=t===0?0:t||10;var r=O(e).toHsl();return r.l+=t/100,r.l=Or(r.l),O(r)}function ed(e,t){t=t===0?0:t||10;var r=O(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)))),O(r)}function td(e,t){t=t===0?0:t||10;var r=O(e).toHsl();return r.l-=t/100,r.l=Or(r.l),O(r)}function rd(e,t){var r=O(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,O(r)}function nd(e){var t=O(e).toHsl();return t.h=(t.h+180)%360,O(t)}function ba(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=O(e).toHsl(),n=[O(e)],o=360/t,a=1;a<t;a++)n.push(O({h:(r.h+a*o)%360,s:r.s,l:r.l}));return n}function od(e){var t=O(e).toHsl(),r=t.h;return[O(e),O({h:(r+72)%360,s:t.s,l:t.l}),O({h:(r+216)%360,s:t.s,l:t.l})]}function ad(e,t,r){t=t||6,r=r||30;var n=O(e).toHsl(),o=360/r,a=[O(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(O(n));return a}function id(e,t){t=t||6;for(var r=O(e).toHsv(),n=r.h,o=r.s,a=r.v,u=[],l=1/t;t--;)u.push(O({h:n,s:o,v:a})),a=(a+l)%1;return u}O.mix=function(e,t,r){r=r===0?0:r||50;var n=O(e).toRgb(),o=O(t).toRgb(),a=r/100,u={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return O(u)};O.readability=function(e,t){var r=O(e),n=O(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};O.isReadable=function(e,t,r){var n=O.readability(e,t),o,a;switch(a=!1,o=fd(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a};O.mostReadable=function(e,t,r){var n=null,o=0,a,u,l,s;r=r||{},u=r.includeFallbackColors,l=r.level,s=r.size;for(var d=0;d<t.length;d++)a=O.readability(e,t[d]),a>o&&(o=a,n=O(t[d]));return O.isReadable(e,n,{level:l,size:s})||!u?n:(r.includeFallbackColors=!1,O.mostReadable(e,["#fff","#000"],r))};var Qn=O.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"},ld=O.hexNames=sd(Qn);function sd(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function zl(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function G(e,t){ud(e)&&(e="100%");var r=cd(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 Or(e){return Math.min(1,Math.max(0,e))}function oe(e){return parseInt(e,16)}function ud(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function cd(e){return typeof e=="string"&&e.indexOf("%")!=-1}function ve(e){return e.length==1?"0"+e:""+e}function Tt(e){return e<=1&&(e=e*100+"%"),e}function Ul(e){return Math.round(parseFloat(e)*255).toString(16)}function Ca(e){return oe(e)/255}var he=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 xe(e){return!!he.CSS_UNIT.exec(e)}function dd(e){e=e.replace(Lc,"").replace(Hc,"").toLowerCase();var t=!1;if(Qn[e])e=Qn[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=he.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=he.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=he.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=he.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=he.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=he.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=he.hex8.exec(e))?{r:oe(r[1]),g:oe(r[2]),b:oe(r[3]),a:Ca(r[4]),format:t?"name":"hex8"}:(r=he.hex6.exec(e))?{r:oe(r[1]),g:oe(r[2]),b:oe(r[3]),format:t?"name":"hex"}:(r=he.hex4.exec(e))?{r:oe(r[1]+""+r[1]),g:oe(r[2]+""+r[2]),b:oe(r[3]+""+r[3]),a:Ca(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=he.hex3.exec(e))?{r:oe(r[1]+""+r[1]),g:oe(r[2]+""+r[2]),b:oe(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function fd(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var wa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},er={},Sa;function pd(){if(Sa)return er;Sa=1;var e=e||{};e.stringify=function(){var t={"visit_linear-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-linear-gradient":function(r){return t.visit_gradient(r)},"visit_radial-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-radial-gradient":function(r){return t.visit_gradient(r)},visit_gradient:function(r){var n=t.visit(r.orientation);return n&&(n+=", "),r.type+"("+n+t.visit(r.colorStops)+")"},visit_shape:function(r){var n=r.value,o=t.visit(r.at),a=t.visit(r.style);return a&&(n+=" "+a),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,a=t.visit(n.length);return a&&(o+=" "+a),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(a,u){n+=t.visit(a),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(T){var I=new Error(r+": "+T);throw I.source=r,I}function o(){var T=a();return r.length>0&&n("Invalid input not EOF"),T}function a(){return x(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(T,I,F){return s(I,function(ee){var me=F();return me&&(M(t.comma)||n("Missing comma before color stops")),{type:T,orientation:me,colorStops:x(E)}})}function s(T,I){var F=M(T);if(F){M(t.startCall)||n("Missing (");var ee=I(F);return M(t.endCall)||n("Missing )"),ee}}function d(){return c()||f()}function c(){return $("directional",t.sideOrCorner,1)}function f(){return $("angular",t.angleValue,1)}function p(){var T,I=h(),F;return I&&(T=[],T.push(I),F=r,M(t.comma)&&(I=h(),I?T.push(I):r=F)),T}function h(){var T=v()||y();if(T)T.at=b();else{var I=m();if(I){T=I;var F=b();F&&(T.at=F)}else{var ee=g();ee&&(T={type:"default-radial",at:ee})}}return T}function v(){var T=$("shape",/^(circle)/i,0);return T&&(T.style=B()||m()),T}function y(){var T=$("shape",/^(ellipse)/i,0);return T&&(T.style=_()||m()),T}function m(){return $("extent-keyword",t.extentKeywords,1)}function b(){if($("position",/^at/,0)){var T=g();return T||n("Missing positioning value"),T}}function g(){var T=S();if(T.x||T.y)return{type:"position",value:T}}function S(){return{x:_(),y:_()}}function x(T){var I=T(),F=[];if(I)for(F.push(I);M(t.comma);)I=T(),I?F.push(I):n("One extra comma");return F}function E(){var T=k();return T||n("Expected color definition"),T.length=_(),T}function k(){return V()||A()||j()||P()}function P(){return $("literal",t.literalColor,0)}function V(){return $("hex",t.hexColor,1)}function j(){return s(t.rgbColor,function(){return{type:"rgb",value:x(C)}})}function A(){return s(t.rgbaColor,function(){return{type:"rgba",value:x(C)}})}function C(){return M(t.number)[1]}function _(){return $("%",t.percentageValue,1)||R()||B()}function R(){return $("position-keyword",t.positionKeywords,1)}function B(){return $("px",t.pixelValue,1)||$("em",t.emValue,1)}function $(T,I,F){var ee=M(I);if(ee)return{type:T,value:ee[F]}}function M(T){var I,F;return F=/^[\n\r\t\s]+/.exec(r),F&&Y(F[0].length),I=T.exec(r),I&&Y(I[0].length),I}function Y(T){r=r.substr(T)}return function(T){return r=T.toString(),o()}}(),er.parse=e.parse,er.stringify=e.stringify,er}var xa=pd(),te="top",de="bottom",fe="right",re="left",po="auto",Lt=[te,de,fe,re],st="start",Bt="end",hd="clippingParents",Wl="viewport",St="popper",vd="reference",Oa=Lt.reduce(function(e,t){return e.concat([t+"-"+st,t+"-"+Bt])},[]),Kl=[].concat(Lt,[po]).reduce(function(e,t){return e.concat([t,t+"-"+st,t+"-"+Bt])},[]),gd="beforeRead",md="read",yd="afterRead",bd="beforeMain",Cd="main",wd="afterMain",Sd="beforeWrite",xd="write",Od="afterWrite",Ed=[gd,md,yd,bd,Cd,wd,Sd,xd,Od];function we(e){return e?(e.nodeName||"").toLowerCase():null}function ae(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function He(e){var t=ae(e).Element;return e instanceof t||e instanceof Element}function ue(e){var t=ae(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ho(e){if(typeof ShadowRoot>"u")return!1;var t=ae(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function kd(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!ue(a)||!we(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(u){var l=o[u];l===!1?a.removeAttribute(u):a.setAttribute(u,l===!0?"":l)}))})}function _d(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],a=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},{});!ue(o)||!we(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(s){o.removeAttribute(s)}))})}}const Ad={name:"applyStyles",enabled:!0,phase:"write",fn:kd,effect:_d,requires:["computeStyles"]};function Ce(e){return e.split("-")[0]}var Ge=Math.max,cr=Math.min,ut=Math.round;function eo(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Yl(){return!/^((?!chrome|android).)*safari/i.test(eo())}function ct(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&ue(e)&&(o=e.offsetWidth>0&&ut(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ut(n.height)/e.offsetHeight||1);var u=He(e)?ae(e):window,l=u.visualViewport,s=!Yl()&&r,d=(n.left+(s&&l?l.offsetLeft:0))/o,c=(n.top+(s&&l?l.offsetTop:0))/a,f=n.width/o,p=n.height/a;return{width:f,height:p,top:c,right:d+f,bottom:c+p,left:d,x:d,y:c}}function vo(e){var t=ct(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 Xl(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&ho(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function _e(e){return ae(e).getComputedStyle(e)}function Td(e){return["table","td","th"].indexOf(we(e))>=0}function Ve(e){return((He(e)?e.ownerDocument:e.document)||window.document).documentElement}function Er(e){return we(e)==="html"?e:e.assignedSlot||e.parentNode||(ho(e)?e.host:null)||Ve(e)}function Ea(e){return!ue(e)||_e(e).position==="fixed"?null:e.offsetParent}function Nd(e){var t=/firefox/i.test(eo()),r=/Trident/i.test(eo());if(r&&ue(e)){var n=_e(e);if(n.position==="fixed")return null}var o=Er(e);for(ho(o)&&(o=o.host);ue(o)&&["html","body"].indexOf(we(o))<0;){var a=_e(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Ht(e){for(var t=ae(e),r=Ea(e);r&&Td(r)&&_e(r).position==="static";)r=Ea(r);return r&&(we(r)==="html"||we(r)==="body"&&_e(r).position==="static")?t:r||Nd(e)||t}function go(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pt(e,t,r){return Ge(e,cr(t,r))}function Pd(e,t,r){var n=Pt(e,t,r);return n>r?r:n}function Jl(){return{top:0,right:0,bottom:0,left:0}}function Zl(e){return Object.assign({},Jl(),e)}function Ql(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Rd=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Zl(typeof t!="number"?t:Ql(t,Lt))};function jd(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,u=r.modifiersData.popperOffsets,l=Ce(r.placement),s=go(l),d=[re,fe].indexOf(l)>=0,c=d?"height":"width";if(!(!a||!u)){var f=Rd(o.padding,r),p=vo(a),h=s==="y"?te:re,v=s==="y"?de:fe,y=r.rects.reference[c]+r.rects.reference[s]-u[s]-r.rects.popper[c],m=u[s]-r.rects.reference[s],b=Ht(a),g=b?s==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-m/2,x=f[h],E=g-p[c]-f[v],k=g/2-p[c]/2+S,P=Pt(x,k,E),V=s;r.modifiersData[n]=(t={},t[V]=P,t.centerOffset=P-k,t)}}function Id(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)||Xl(t.elements.popper,o)&&(t.elements.arrow=o))}const Vd={name:"arrow",enabled:!0,phase:"main",fn:jd,effect:Id,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dt(e){return e.split("-")[1]}var $d={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bd(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:ut(r*o)/o||0,y:ut(n*o)/o||0}}function ka(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=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,v=u.y,y=v===void 0?0:v,m=typeof c=="function"?c({x:h,y}):{x:h,y};h=m.x,y=m.y;var b=u.hasOwnProperty("x"),g=u.hasOwnProperty("y"),S=re,x=te,E=window;if(d){var k=Ht(r),P="clientHeight",V="clientWidth";if(k===ae(r)&&(k=Ve(r),_e(k).position!=="static"&&l==="absolute"&&(P="scrollHeight",V="scrollWidth")),k=k,o===te||(o===re||o===fe)&&a===Bt){x=de;var j=f&&k===E&&E.visualViewport?E.visualViewport.height:k[P];y-=j-n.height,y*=s?1:-1}if(o===re||(o===te||o===de)&&a===Bt){S=fe;var A=f&&k===E&&E.visualViewport?E.visualViewport.width:k[V];h-=A-n.width,h*=s?1:-1}}var C=Object.assign({position:l},d&&$d),_=c===!0?Bd({x:h,y},ae(r)):{x:h,y};if(h=_.x,y=_.y,s){var R;return Object.assign({},C,(R={},R[x]=g?"0":"",R[S]=b?"0":"",R.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",R))}return Object.assign({},C,(t={},t[x]=g?y+"px":"",t[S]=b?h+"px":"",t.transform="",t))}function Fd(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,u=a===void 0?!0:a,l=r.roundOffsets,s=l===void 0?!0:l,d={placement:Ce(t.placement),variation:dt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ka(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ka(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Md={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fd,data:{}};var tr={passive:!0};function qd(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,u=n.resize,l=u===void 0?!0:u,s=ae(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(c){c.addEventListener("scroll",r.update,tr)}),l&&s.addEventListener("resize",r.update,tr),function(){a&&d.forEach(function(c){c.removeEventListener("scroll",r.update,tr)}),l&&s.removeEventListener("resize",r.update,tr)}}const Dd={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qd,data:{}};var Gd={left:"right",right:"left",bottom:"top",top:"bottom"};function ar(e){return e.replace(/left|right|bottom|top/g,function(t){return Gd[t]})}var Ld={start:"end",end:"start"};function _a(e){return e.replace(/start|end/g,function(t){return Ld[t]})}function mo(e){var t=ae(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function yo(e){return ct(Ve(e)).left+mo(e).scrollLeft}function Hd(e,t){var r=ae(e),n=Ve(e),o=r.visualViewport,a=n.clientWidth,u=n.clientHeight,l=0,s=0;if(o){a=o.width,u=o.height;var d=Yl();(d||!d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:u,x:l+yo(e),y:s}}function zd(e){var t,r=Ve(e),n=mo(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Ge(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),u=Ge(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+yo(e),s=-n.scrollTop;return _e(o||r).direction==="rtl"&&(l+=Ge(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:u,x:l,y:s}}function bo(e){var t=_e(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function es(e){return["html","body","#document"].indexOf(we(e))>=0?e.ownerDocument.body:ue(e)&&bo(e)?e:es(Er(e))}function Rt(e,t){var r;t===void 0&&(t=[]);var n=es(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=ae(n),u=o?[a].concat(a.visualViewport||[],bo(n)?n:[]):n,l=t.concat(u);return o?l:l.concat(Rt(Er(u)))}function to(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ud(e,t){var r=ct(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 Aa(e,t,r){return t===Wl?to(Hd(e,r)):He(t)?Ud(t,r):to(zd(Ve(e)))}function Wd(e){var t=Rt(Er(e)),r=["absolute","fixed"].indexOf(_e(e).position)>=0,n=r&&ue(e)?Ht(e):e;return He(n)?t.filter(function(o){return He(o)&&Xl(o,n)&&we(o)!=="body"}):[]}function Kd(e,t,r,n){var o=t==="clippingParents"?Wd(e):[].concat(t),a=[].concat(o,[r]),u=a[0],l=a.reduce(function(s,d){var c=Aa(e,d,n);return s.top=Ge(c.top,s.top),s.right=cr(c.right,s.right),s.bottom=cr(c.bottom,s.bottom),s.left=Ge(c.left,s.left),s},Aa(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 ts(e){var t=e.reference,r=e.element,n=e.placement,o=n?Ce(n):null,a=n?dt(n):null,u=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,s;switch(o){case te:s={x:u,y:t.y-r.height};break;case de:s={x:u,y:t.y+t.height};break;case fe:s={x:t.x+t.width,y:l};break;case re:s={x:t.x-r.width,y:l};break;default:s={x:t.x,y:t.y}}var d=o?go(o):null;if(d!=null){var c=d==="y"?"height":"width";switch(a){case st:s[d]=s[d]-(t[c]/2-r[c]/2);break;case Bt:s[d]=s[d]+(t[c]/2-r[c]/2);break}}return s}function Ft(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,u=a===void 0?e.strategy:a,l=r.boundary,s=l===void 0?hd:l,d=r.rootBoundary,c=d===void 0?Wl:d,f=r.elementContext,p=f===void 0?St:f,h=r.altBoundary,v=h===void 0?!1:h,y=r.padding,m=y===void 0?0:y,b=Zl(typeof m!="number"?m:Ql(m,Lt)),g=p===St?vd:St,S=e.rects.popper,x=e.elements[v?g:p],E=Kd(He(x)?x:x.contextElement||Ve(e.elements.popper),s,c,u),k=ct(e.elements.reference),P=ts({reference:k,element:S,placement:o}),V=to(Object.assign({},S,P)),j=p===St?V:k,A={top:E.top-j.top+b.top,bottom:j.bottom-E.bottom+b.bottom,left:E.left-j.left+b.left,right:j.right-E.right+b.right},C=e.modifiersData.offset;if(p===St&&C){var _=C[o];Object.keys(A).forEach(function(R){var B=[fe,de].indexOf(R)>=0?1:-1,$=[te,de].indexOf(R)>=0?"y":"x";A[R]+=_[$]*B})}return A}function Yd(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,u=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,d=s===void 0?Kl:s,c=dt(n),f=c?l?Oa:Oa.filter(function(v){return dt(v)===c}):Lt,p=f.filter(function(v){return d.indexOf(v)>=0});p.length===0&&(p=f);var h=p.reduce(function(v,y){return v[y]=Ft(e,{placement:y,boundary:o,rootBoundary:a,padding:u})[Ce(y)],v},{});return Object.keys(h).sort(function(v,y){return h[v]-h[y]})}function Xd(e){if(Ce(e)===po)return[];var t=ar(e);return[_a(e),t,_a(t)]}function Jd(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=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,v=h===void 0?!0:h,y=r.allowedAutoPlacements,m=t.options.placement,b=Ce(m),g=b===m,S=s||(g||!v?[ar(m)]:Xd(m)),x=[m].concat(S).reduce(function(Ne,ye){return Ne.concat(Ce(ye)===po?Yd(t,{placement:ye,boundary:c,rootBoundary:f,padding:d,flipVariations:v,allowedAutoPlacements:y}):ye)},[]),E=t.rects.reference,k=t.rects.popper,P=new Map,V=!0,j=x[0],A=0;A<x.length;A++){var C=x[A],_=Ce(C),R=dt(C)===st,B=[te,de].indexOf(_)>=0,$=B?"width":"height",M=Ft(t,{placement:C,boundary:c,rootBoundary:f,altBoundary:p,padding:d}),Y=B?R?fe:re:R?de:te;E[$]>k[$]&&(Y=ar(Y));var T=ar(Y),I=[];if(a&&I.push(M[_]<=0),l&&I.push(M[Y]<=0,M[T]<=0),I.every(function(Ne){return Ne})){j=C,V=!1;break}P.set(C,I)}if(V)for(var F=v?3:1,ee=function(ye){var wt=x.find(function(Yt){var Be=P.get(Yt);if(Be)return Be.slice(0,ye).every(function(jr){return jr})});if(wt)return j=wt,"break"},me=F;me>0;me--){var Qe=ee(me);if(Qe==="break")break}t.placement!==j&&(t.modifiersData[n]._skip=!0,t.placement=j,t.reset=!0)}}const Zd={name:"flip",enabled:!0,phase:"main",fn:Jd,requiresIfExists:["offset"],data:{_skip:!1}};function Ta(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 Na(e){return[te,fe,de,re].some(function(t){return e[t]>=0})}function Qd(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,u=Ft(t,{elementContext:"reference"}),l=Ft(t,{altBoundary:!0}),s=Ta(u,n),d=Ta(l,o,a),c=Na(s),f=Na(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 ef={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Qd};function tf(e,t,r){var n=Ce(e),o=[re,te].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=a[0],l=a[1];return u=u||0,l=(l||0)*o,[re,fe].indexOf(n)>=0?{x:l,y:u}:{x:u,y:l}}function rf(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,u=Kl.reduce(function(c,f){return c[f]=tf(f,t.rects,a),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 nf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rf};function of(e){var t=e.state,r=e.name;t.modifiersData[r]=ts({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const af={name:"popperOffsets",enabled:!0,phase:"read",fn:of,data:{}};function lf(e){return e==="x"?"y":"x"}function sf(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=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,v=r.tetherOffset,y=v===void 0?0:v,m=Ft(t,{boundary:s,rootBoundary:d,padding:f,altBoundary:c}),b=Ce(t.placement),g=dt(t.placement),S=!g,x=go(b),E=lf(x),k=t.modifiersData.popperOffsets,P=t.rects.reference,V=t.rects.popper,j=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(k){if(a){var R,B=x==="y"?te:re,$=x==="y"?de:fe,M=x==="y"?"height":"width",Y=k[x],T=Y+m[B],I=Y-m[$],F=h?-V[M]/2:0,ee=g===st?P[M]:V[M],me=g===st?-V[M]:-P[M],Qe=t.elements.arrow,Ne=h&&Qe?vo(Qe):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Jl(),wt=ye[B],Yt=ye[$],Be=Pt(0,P[M],Ne[M]),jr=S?P[M]/2-F-Be-wt-A.mainAxis:ee-Be-wt-A.mainAxis,fu=S?-P[M]/2+F+Be+Yt+A.mainAxis:me+Be+Yt+A.mainAxis,Ir=t.elements.arrow&&Ht(t.elements.arrow),pu=Ir?x==="y"?Ir.clientTop||0:Ir.clientLeft||0:0,zo=(R=C==null?void 0:C[x])!=null?R:0,hu=Y+jr-zo-pu,vu=Y+fu-zo,Uo=Pt(h?cr(T,hu):T,Y,h?Ge(I,vu):I);k[x]=Uo,_[x]=Uo-Y}if(l){var Wo,gu=x==="x"?te:re,mu=x==="x"?de:fe,Fe=k[E],Xt=E==="y"?"height":"width",Ko=Fe+m[gu],Yo=Fe-m[mu],Vr=[te,re].indexOf(b)!==-1,Xo=(Wo=C==null?void 0:C[E])!=null?Wo:0,Jo=Vr?Ko:Fe-P[Xt]-V[Xt]-Xo+A.altAxis,Zo=Vr?Fe+P[Xt]+V[Xt]-Xo-A.altAxis:Yo,Qo=h&&Vr?Pd(Jo,Fe,Zo):Pt(h?Jo:Ko,Fe,h?Zo:Yo);k[E]=Qo,_[E]=Qo-Fe}t.modifiersData[n]=_}}const uf={name:"preventOverflow",enabled:!0,phase:"main",fn:sf,requiresIfExists:["offset"]};function cf(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function df(e){return e===ae(e)||!ue(e)?mo(e):cf(e)}function ff(e){var t=e.getBoundingClientRect(),r=ut(t.width)/e.offsetWidth||1,n=ut(t.height)/e.offsetHeight||1;return r!==1||n!==1}function pf(e,t,r){r===void 0&&(r=!1);var n=ue(t),o=ue(t)&&ff(t),a=Ve(t),u=ct(e,o,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((we(t)!=="body"||bo(a))&&(l=df(t)),ue(t)?(s=ct(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=yo(a))),{x:u.left+l.scrollLeft-s.x,y:u.top+l.scrollTop-s.y,width:u.width,height:u.height}}function hf(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var u=[].concat(a.requires||[],a.requiresIfExists||[]);u.forEach(function(l){if(!r.has(l)){var s=t.get(l);s&&o(s)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function vf(e){var t=hf(e);return Ed.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function gf(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mf(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Pa={placement:"bottom",modifiers:[],strategy:"absolute"};function Ra(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function yf(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?Pa:o;return function(l,s,d){d===void 0&&(d=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pa,a),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},f=[],p=!1,h={state:c,setOptions:function(b){var g=typeof b=="function"?b(c.options):b;y(),c.options=Object.assign({},a,c.options,g),c.scrollParents={reference:He(l)?Rt(l):l.contextElement?Rt(l.contextElement):[],popper:Rt(s)};var S=vf(mf([].concat(n,c.options.modifiers)));return c.orderedModifiers=S.filter(function(x){return x.enabled}),v(),h.update()},forceUpdate:function(){if(!p){var b=c.elements,g=b.reference,S=b.popper;if(Ra(g,S)){c.rects={reference:pf(g,Ht(S),c.options.strategy==="fixed"),popper:vo(S)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(A){return c.modifiersData[A.name]=Object.assign({},A.data)});for(var x=0;x<c.orderedModifiers.length;x++){if(c.reset===!0){c.reset=!1,x=-1;continue}var E=c.orderedModifiers[x],k=E.fn,P=E.options,V=P===void 0?{}:P,j=E.name;typeof k=="function"&&(c=k({state:c,options:V,name:j,instance:h})||c)}}}},update:gf(function(){return new Promise(function(m){h.forceUpdate(),m(c)})}),destroy:function(){y(),p=!0}};if(!Ra(l,s))return h;h.setOptions(d).then(function(m){!p&&d.onFirstUpdate&&d.onFirstUpdate(m)});function v(){c.orderedModifiers.forEach(function(m){var b=m.name,g=m.options,S=g===void 0?{}:g,x=m.effect;if(typeof x=="function"){var E=x({state:c,name:b,instance:h,options:S}),k=function(){};f.push(E||k)}})}function y(){f.forEach(function(m){return m()}),f=[]}return h}}var bf=[Dd,af,Md,Ad,nf,Zd,uf,Vd,ef],Cf=yf({defaultModifiers:bf});function wf(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 rs(e,t,r){return r&&wf(e,r),e}function ir(){return(ir=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 ns(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function os(e,t){if(e==null)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}function ja(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var as=Object.prototype,is=as.toString,Sf=as.hasOwnProperty,ls=/^\s*function (\w+)/;function Ia(e){var t,r=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(r){var n=r.toString().match(ls);return n?n[1]:""}return""}var ze=function(e){var t,r;return ja(e)!==!1&&typeof(t=e.constructor)=="function"&&ja(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1},ss=function(e){return e},ne=ss;if(process.env.NODE_ENV!=="production"){var xf=typeof console<"u";ne=xf?function(e){console.warn("[VueTypes warn]: "+e)}:ss}var Mt=function(e,t){return Sf.call(e,t)},Of=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},ft=Array.isArray||function(e){return is.call(e)==="[object Array]"},pt=function(e){return is.call(e)==="[object Function]"},dr=function(e){return ze(e)&&Mt(e,"_vueTypes_name")},us=function(e){return ze(e)&&(Mt(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return Mt(e,t)}))};function Co(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function Ke(e,t,r){var n,o=!0,a="";n=ze(e)?e:{type:e};var u=dr(n)?n._vueTypes_name+" - ":"";if(us(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&t===void 0)return o;ft(n.type)?(o=n.type.some(function(f){return Ke(f,t)===!0}),a=n.type.map(function(f){return Ia(f)}).join(" or ")):o=(a=Ia(n))==="Array"?ft(t):a==="Object"?ze(t):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?function(f){if(f==null)return"";var p=f.constructor.toString().match(ls);return p?p[1]:""}(t)===a:t instanceof n.type}if(!o){var l=u+'value "'+t+'" should be of type "'+a+'"';return l}if(Mt(n,"validator")&&pt(n.validator)){var s=ne,d=[];if(ne=function(f){d.push(f)},o=n.validator(t),ne=s,!o){var c=(d.length>1?"* ":"")+d.join(`
|
|
12
|
-
* `);return d.length=0,c}}return o}function ie(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?pt(o)||Ke(this,o)===!0?(this.default=ft(o)?function(){return[].concat(o)}:
|
|
13
|
-
`+JSON.stringify(this)),this.validator=
|
|
11
|
+
`},ia=Yu(Qu)(Rl),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(a,u){return u(a)},o)}};function jl(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],jl(e[r],t[r]))}),ra(ra({},e),t)}var rc={type:"cancelation",msg:"operation is manually canceled"};function $r(e){var t=!1,r=new Promise(function(n,o){e.then(function(a){return t?o(rc):n(a)}),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}),Il=Ou(nc,2),Gt=Il[0],Sr=Il[1];function oc(e){var t=ec.config(e),r=t.monaco,n=Su(t,["monaco"]);Sr(function(o){return{config:jl(o.config,n),monaco:r}})}function ac(){var e=Gt(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(Sr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),$r(Br);if(window.monaco&&window.monaco.editor)return Vl(window.monaco),e.resolve(window.monaco),$r(Br);tc(ic,sc)(uc)}return $r(Br)}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=Gt(function(n){var o=n.config,a=n.reject;return{config:o,reject:a}}),r=lc("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function uc(){var e=Gt(function(r){var n=r.config,o=r.resolve,a=r.reject;return{config:n,resolve:o,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){Vl(r),e.resolve(r)},function(r){e.reject(r)})}function Vl(e){Gt().monaco||Sr({monaco:e})}function cc(){return Gt(function(e){var t=e.monaco;return t})}var Br=new Promise(function(e,t){return Sr({resolve:e,reject:t})}),dc={config:oc,init:ac,__getMonacoInstance:cc};const Xn=i.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=i.computed({get(){return e.value||""},set(u){t("update:value",u)}}),o=i.ref(null);let a=null;return i.onMounted(()=>{dc.init().then(u=>{o.value&&(a=u.editor.create(o.value,w.deepMerge({value:n.value,language:e.language,automaticLayout:!0,minimap:{enabled:!1}},e.config)),a.onDidBlurEditorText(()=>{n.value=a.getValue()}))})}),i.onUnmounted(()=>{a==null||a.dispose()}),{ns:r,el:o}},render(){return i.createVNode("div",{ref:"el",class:this.ns.b()},null)}}),Jn=i.defineComponent({name:"FlexItem",props:{layout:Object},setup(e){return{ns:w.useNamespace("flex-item"),getStyle:()=>{const n={};if(e.layout){const{order:o,alignSelf:a,flexBasis:u,flexGrow:l,flexShrink:s}=e.layout;o!=null&&(n.order=o),a!=null&&(n["align-self"]=a),u!=null&&(n["flex-basis"]=u),l!=null&&(n["flex-grow"]=l),s!=null&&(n["flex-shrink"]=s)}return n}}},render(){var e,t;return i.createVNode("div",{class:this.ns.b(),style:this.getStyle()},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}});function fc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const la=i.defineComponent({name:"FlexContainer",props:{layout:Object},setup(e){return{ns:w.useNamespace("flex-container"),getStyle:()=>{const o={};if(e.layout){const{alignContent:a,alignItems:u,flexDirection:l,flexWrap:s,justifyContent:d}=e.layout;a!=null&&(o.alignContent=a),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 a={};if(o){const{width:u,height:l}=o;u!=null&&(a.width=u),l!=null&&(a.height=l)}return a}}},render(){var t,r;let e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return e.length>0&&(e=e[0].children||[]),i.createVNode("div",{class:this.ns.b(),style:this.getStyle()},[e.map(n=>{if(!n)return null;const o=n.props.model.flexItem;return i.createVNode(Jn,{layout:o,style:this.getItemStyle(n.props.model)},fc(n)?n:{default:()=>[n]})})])}});function sa(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const ua=i.defineComponent({name:"GridContainer",props:{layout:Object},setup(){return{ns:w.useNamespace("grid-container")}},render(){var n,o;let e;const t=this.layout||{};let r=((o=(n=this.$slots).default)==null?void 0:o.call(n))||[];return r.length>0&&(r=r[0].children||[]),i.createVNode(i.resolveComponent("a-row"),{class:this.ns.b(),wrap:!0,gutter:t.gutter},sa(e=r.map(a=>{if(!a)return null;const u=a.props.model.gridItem;return i.createVNode(i.resolveComponent("a-col"),{span:u?u.span??24:24,offset:u?u.offset??0:0},sa(a)?a:{default:()=>[a]})}))?e:{default:()=>[e]})}}),ca=i.defineComponent({name:"ViewContainer",props:{context:{type:Object},params:{type:Object},modal:{type:Object,required:!0}},setup(){return{ns:w.useNamespace("view-container")}},render(){var e,t;return i.createVNode("div",{class:this.ns.b()},[this.$slots.header?i.createVNode("div",{class:this.ns.b("header")},[this.$slots.header()]):null,i.createVNode("div",{class:this.ns.b("content")},[(t=(e=this.$slots).default)==null?void 0:t.call(e)]),this.$slots.footer?i.createVNode("div",{class:this.ns.b("footer")},[this.$slots.footer()]):null])}}),pc=i.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 i.createVNode(i.resolveComponent("length-unit-editor"),i.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{constructor(){q(this,"component","gct-form-length-unit")}}const vc=w.widthEditorInstall(w.EditorType.LENGTH_UNIT,()=>new hc,pc),$l=i.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 i.createVNode(i.resolveComponent("color-picker"),i.mergeProps({pureColor:this.val,"onUpdate:pureColor":e=>this.val=e,format:"rgba",shape:"circle","use-type":"pure","picker-type":"chrome",class:[this.ns.b(),this.ns.is("readonly",this.model.readonly)]},this.model.props||{}),null)}});class Bl{constructor(){q(this,"component","gct-form-color")}}const gc=w.widthEditorInstall(w.EditorType.COLOR,()=>new Bl,$l),mc=w.widthEditorInstall(w.EditorTypeOld.COLOR,()=>new Bl,$l);class yc{constructor(){q(this,"component","gct-form-check-switch")}}const bc=i.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?i.createVNode("div",{class:[this.ns.b(),this.ns.m("switch"),this.ns.is("readonly",this.model.readonly)]},[i.createVNode(i.resolveComponent("a-switch"),i.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)]):i.createVNode(i.resolveComponent("a-checkbox"),i.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.EditorType.CHECK_SWITCH,()=>new yc,bc);class wc{constructor(){q(this,"component","gct-form-i18n")}}const Sc=i.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=i.computed({get:()=>r?r.value:"",set:a=>{r&&(r.value=a)}});return{ns:e,val:n,i18nConfigValue:o}},render(){return i.createVNode(i.resolveComponent("i18n-select-input"),i.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.EditorType.I18N,()=>new wc,Sc),xc=i.defineComponent({name:"GctFormIconSelect",props:{value:{type:Object},model:{type:Object,required:!0}},emits:["update:value"],setup(e,{emit:t}){var s,d,c;const r=w.useNamespace("gct-form-icon-select"),n=i.ref(e.value),o=i.ref(((s=n.value)==null?void 0:s.icon)||e.model.defaultIcon),a=i.ref(((d=n.value)==null?void 0:d.color)||e.model.defaultColor),u=i.ref(((c=n.value)==null?void 0:c.background)||e.model.defaultBackground);i.watch(()=>e.value,f=>{n.value=f,f&&(o.value=f.icon,a.value=f.color)}),i.watch([o,a,u],()=>{n.value={icon:o.value,color:a.value},t("update:value",n.value)});const l=i.computed(()=>{if(e.model.size)return{"--box-size":e.model.size+"px"}});return{ns:r,icon:o,color:a,background:u,nextPickerStyle:l}},render(){return i.createVNode("div",{class:this.ns.b()},[i.createVNode(i.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?i.createVNode("span",{class:this.ns.e("title")},[this.model.label]):null])}});let Ec=class{constructor(){q(this,"component","gct-form-icon-select")}};const kc=w.widthEditorInstall(w.EditorType.ICON_SELECT,()=>new Ec,xc);class Fl{constructor(){q(this,"component","gct-form-number")}}const Ml=i.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 i.createVNode(i.resolveComponent("a-input-number"),i.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 Fl,Ml),Ac=w.widthEditorInstall(w.EditorTypeOld.NUMBER,()=>new Fl,Ml);class Tc{constructor(){q(this,"component","gct-form-picker")}}const Nc=i.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=i.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=i.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)}}),a=()=>e.c.loadDictionary();return o.value!=null&&e.c.loadDictionary(),{ns:r,val:o,nameVal:n,loadOptions:a,onChange:(l,s)=>{n.value=s.label}}},render(){return i.createVNode(i.resolveComponent("a-select"),i.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)}}),Pc=w.widthEditorInstall(w.EditorType.PICKER,()=>new Tc,Nc);class Rc{constructor(){q(this,"component","gct-form-select")}}const jc=i.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=i.computed(()=>e.c.state.options&&e.c.state.options.length>0?e.c.state.options:[]);return{ns:t,val:r,options:n}},render(){return i.createVNode(i.resolveComponent("a-select"),i.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.EditorType.SELECT,()=>new Rc,jc);class Vc{constructor(){q(this,"component","gct-form-Modal-select")}}const $c=i.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=i.ref("1"),r=w.useGctFormValue(),n=i.computed({get(){return r.value||void 0},set(a){r.value=a}}),o=i.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 i.createVNode(i.resolveComponent("a-input-group"),{class:this.ns.b()},{default:()=>[i.createVNode(i.resolveComponent("a-form-item-rest"),null,{default:()=>[i.createVNode(i.resolveComponent("a-select"),i.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)]}),i.createVNode(i.resolveComponent("a-select"),i.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{constructor(){q(this,"component","gct-form-span")}}const Mc=i.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}=i.toRefs(e);function a(){const{isSuccessRef:l}=w.useCopyToClipboard(e.value);l.value&&qe.message.success(_gct.t("sys.copySuccess"))}o.value.loadDictionary();const u=i.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:a}},render(){return i.createVNode("div",{class:this.ns.b()},[i.createVNode("span",{class:this.ns.e("info")},[this.val]),this.model.copy&&i.createVNode("span",{class:this.ns.e("copy")},[i.createVNode("i",{class:"iconfont icon-fuzhi primary-gct",onClick:this.handleClipboardKey},null)])])}}),qc=w.widthEditorInstall(w.EditorType.SPAN,()=>new Fc,Mc);class ql{constructor(){q(this,"component","gct-form-switch")}}const Dl=i.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 i.createVNode("div",{class:this.ns.b()},[i.createVNode(i.resolveComponent("a-switch"),i.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)])}}),Dc=w.widthEditorInstall(w.EditorType.SWITCH,()=>new ql,Dl),Gc=w.widthEditorInstall(w.EditorTypeOld.SWITCH,()=>new ql,Dl);class Gl{constructor(){q(this,"component","gct-form-text")}}const Ll=i.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 i.createVNode(i.resolveComponent("a-select"),i.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)}}),Lc=w.widthEditorInstall(w.EditorType.TEXT,()=>new Gl,Ll),Hc=w.widthEditorInstall(w.EditorTypeOld.TEXT,()=>new Gl,Ll);class Uc{constructor(){q(this,"component","gct-form-textarea")}}const zc=i.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 i.createVNode(i.resolveComponent("a-textarea"),i.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)}}),Wc=w.widthEditorInstall(w.EditorType.TEXTAREA,()=>new Uc,zc);function Kc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Hl=i.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")),i.createVNode(qe.RadioGroup,i.mergeProps({value:this.val,"onUpdate:value":r=>this.val=r,size:"small","button-style":"solid"},e),Kc(t=this.c.state.options.map(r=>i.createVNode(qe.RadioButton,{key:r.value,value:r.value},{default:()=>[r.label]})))?t:{default:()=>[t]})}return e.class.push(this.ns.m("radio")),i.createVNode(qe.RadioGroup,i.mergeProps({value:this.val,"onUpdate:value":t=>this.val=t,options:this.c.state.options},e),null)}});let Ul=class{constructor(){q(this,"component","gct-form-radio")}};const Yc=w.widthEditorInstall(w.EditorType.RADIO,()=>new Ul,Hl),Xc=w.widthEditorInstall(w.EditorTypeOld.RADIO,()=>new Ul,Hl),Jc=i.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 i.createVNode("div",{class:this.ns.b()},[this.model.icon?i.createVNode("span",{class:this.ns.e("icon")},[i.createVNode("i",{class:`iconfont ${this.model.icon}`},null)]):null,i.createVNode("span",{class:this.ns.e("content")},[this.val||this.model.content])])}});let Zc=class{constructor(){q(this,"component","gct-form-info")}};const Qc=w.widthEditorInstall(w.EditorType.INFO,()=>new Zc,Jc),zl=i.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=i.computed(()=>n.value),a=i.computed(()=>mt.cloneDeep(e.c.state.options));return{ns:r,checked:o,onChange:l=>{a.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:a}},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 i.createVNode(qe.CheckboxGroup,i.mergeProps({value:this.checked,"onUpdate:value":t=>this.checked=t,options:this.options},e,{onChange:this.onChange}),null)}});class Wl{constructor(){q(this,"component","gct-form-checkbox")}}const ed=w.widthEditorInstall(w.EditorType.CHECKBOX,()=>new Wl,zl),td=w.widthEditorInstall(w.EditorTypeOld.CHECKBOX,()=>new Wl,zl);var Kl=require("../internals/global-this"),Yl=require("../internals/function-call"),fo=require("../internals/array-buffer-view-core"),rd=require("../internals/length-of-array-like"),nd=require("../internals/to-offset"),od=require("../internals/to-object"),Xl=require("../internals/fails"),ad=Kl.RangeError,Zn=Kl.Int8Array,da=Zn&&Zn.prototype,Jl=da&&da.set,id=fo.aTypedArray,ld=fo.exportTypedArrayMethod,Qn=!Xl(function(){var e=new Uint8ClampedArray(2);return Yl(Jl,e,{length:1,0:3},1),e[1]!==3}),sd=Qn&&fo.NATIVE_ARRAY_BUFFER_VIEWS&&Xl(function(){var e=new Zn(2);return e.set(1),e.set("2",1),e[0]!==0||e[1]!==2});ld("set",function(t){id(this);var r=nd(arguments.length>1?arguments[1]:void 0,1),n=od(t);if(Qn)return Yl(Jl,this,n,r);var o=this.length,a=rd(n),u=0;if(a+r>o)throw new ad("Wrong length");for(;u<a;)this[r+u]=n[u++]},!Qn||sd);function Zl(e){return i.getCurrentScope()?(i.onScopeDispose(e),!0):!1}function Le(e){return typeof e=="function"?e():i.unref(e)}const Or=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ud=Object.prototype.toString,cd=e=>ud.call(e)==="[object Object]",it=()=>{},dd=fd();function fd(){var e,t;return Or&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Ql(e,t){function r(...n){return new Promise((o,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(a)})}return r}const es=e=>e();function pd(e,t={}){let r,n,o=it;const a=l=>{clearTimeout(l),o(),o=it};return l=>{const s=Le(e),d=Le(t.maxWait);return r&&a(r),s<=0||d!==void 0&&d<=0?(n&&(a(n),n=null),Promise.resolve(l())):new Promise((c,f)=>{o=t.rejectOnCancel?f:c,d&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,c(l())},d)),r=setTimeout(()=>{n&&a(n),n=null,c(l())},s)})}}function hd(e=es){const t=i.ref(!0);function r(){t.value=!1}function n(){t.value=!0}const o=(...a)=>{t.value&&e(...a)};return{isActive:i.readonly(t),pause:r,resume:n,eventFilter:o}}function vd(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 gd(e){return i.getCurrentInstance()}function Ee(e,t=200,r={}){return Ql(pd(t,r),e)}function md(e,t,r={}){const{eventFilter:n=es,...o}=r;return i.watch(e,Ql(n,t),o)}function yd(e,t,r={}){const{eventFilter:n,...o}=r,{eventFilter:a,pause:u,resume:l,isActive:s}=hd(n);return{stop:md(e,t,{...o,eventFilter:a}),pause:u,resume:l,isActive:s}}function We(e,t=!0,r){gd()?i.onMounted(e,r):t?e():i.nextTick(e)}function bd(e,t,r={}){const{immediate:n=!0}=r,o=i.ref(!1);let a=null;function u(){a&&(clearTimeout(a),a=null)}function l(){o.value=!1,u()}function s(...d){u(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=null,e(...d)},Le(t))}return n&&(o.value=!0,Or&&s()),Zl(l),{isPending:i.readonly(o),start:s,stop:l}}function J(e,t,r){const n=i.watch(e,(o,a,u)=>{o&&(r!=null&&r.once&&i.nextTick(()=>n()),t(o,a,u))},{...r,once:!1});return n}function At(e){var t;const r=Le(e);return(t=r==null?void 0:r.$el)!=null?t:r}const $t=Or?window:void 0,ts=Or?window.navigator:void 0;function De(...e){let t,r,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,o]=e,t=$t):[t,r,n,o]=e,!t)return it;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],u=()=>{a.forEach(c=>c()),a.length=0},l=(c,f,p,h)=>(c.addEventListener(f,p,h),()=>c.removeEventListener(f,p,h)),s=i.watch(()=>[At(t),Le(o)],([c,f])=>{if(u(),!c)return;const p=cd(f)?{...f}:f;a.push(...r.flatMap(h=>n.map(v=>l(c,h,v,p))))},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return Zl(d),d}let fa=!1;function Cd(e,t,r={}){const{window:n=$t,ignore:o=[],capture:a=!0,detectIframe:u=!1}=r;if(!n)return it;dd&&!fa&&(fa=!0,Array.from(n.document.body.children).forEach(p=>p.addEventListener("click",it)),n.document.documentElement.addEventListener("click",it));let l=!0;const s=p=>o.some(h=>{if(typeof h=="string")return Array.from(n.document.querySelectorAll(h)).some(v=>v===p.target||p.composedPath().includes(v));{const v=At(h);return v&&(p.target===v||p.composedPath().includes(v))}}),c=[De(n,"click",p=>{const h=At(e);if(!(!h||h===p.target||p.composedPath().includes(h))){if(p.detail===0&&(l=!s(p)),!l){l=!0;return}t(p)}},{passive:!0,capture:a}),De(n,"pointerdown",p=>{const h=At(e);l=!s(p)&&!!(h&&!p.composedPath().includes(h))},{passive:!0}),u&&De(n,"blur",p=>{setTimeout(()=>{var h;const v=At(e);((h=n.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(v!=null&&v.contains(n.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>c.forEach(p=>p())}function wd(){const e=i.ref(!1),t=i.getCurrentInstance();return t&&i.onMounted(()=>{e.value=!0},t),e}function rs(e){const t=wd();return i.computed(()=>(t.value,!!e()))}function pa(e,t={}){const{controls:r=!1,navigator:n=ts}=t,o=rs(()=>n&&"permissions"in n);let a;const u=typeof e=="string"?{name:e}:e,l=i.ref(),s=()=>{a&&(l.value=a.state)},d=vd(async()=>{if(o.value){if(!a)try{a=await n.permissions.query(u),De(a,"change",s),s()}catch{l.value="prompt"}return a}});return d(),r?{state:l,isSupported:o,query:d}:l}function Sd(e={}){const{navigator:t=ts,read:r=!1,source:n,copiedDuring:o=1500,legacy:a=!1}=e,u=rs(()=>t&&"clipboard"in t),l=pa("clipboard-read"),s=pa("clipboard-write"),d=i.computed(()=>u.value||a),c=i.ref(""),f=i.ref(!1),p=bd(()=>f.value=!1,o);function h(){u.value&&b(l.value)?t.clipboard.readText().then(g=>{c.value=g}):c.value=m()}d.value&&r&&De(["copy","cut"],h);async function v(g=Le(n)){d.value&&g!=null&&(u.value&&b(s.value)?await t.clipboard.writeText(g):y(g),c.value=g,f.value=!0,p.start())}function y(g){const S=document.createElement("textarea");S.value=g??"",S.style.position="absolute",S.style.opacity="0",document.body.appendChild(S),S.select(),document.execCommand("copy"),S.remove()}function m(){var g,S,O;return(O=(S=(g=document==null?void 0:document.getSelection)==null?void 0:g.call(document))==null?void 0:S.toString())!=null?O:""}function b(g){return g==="granted"||g==="prompt"}return{isSupported:d,text:c,copied:f,copy:v}}const Zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qt="__vueuse_ssr_handlers__",Od=xd();function xd(){return Qt in Zt||(Zt[Qt]=Zt[Qt]||{}),Zt[Qt]}function Ed(e,t){return Od[e]||t}function kd(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 _d={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ha="vueuse-storage";function Ad(e,t,r,n={}){var o;const{flush:a="pre",deep:u=!0,listenToStorageChanges:l=!0,writeDefaults:s=!0,mergeDefaults:d=!1,shallow:c,window:f=$t,eventFilter:p,onError:h=A=>{console.error(A)},initOnMounted:v}=n,y=(c?i.shallowRef:i.ref)(typeof t=="function"?t():t);if(!r)try{r=Ed("getDefaultStorage",()=>{var A;return(A=$t)==null?void 0:A.localStorage})()}catch(A){h(A)}if(!r)return y;const m=Le(t),b=kd(m),g=(o=n.serializer)!=null?o:_d[b],{pause:S,resume:O}=yd(y,()=>k(y.value),{flush:a,deep:u,eventFilter:p});f&&l&&We(()=>{De(f,"storage",V),De(f,ha,j),v&&V()}),v||V();function E(A,C){f&&f.dispatchEvent(new CustomEvent(ha,{detail:{key:e,oldValue:A,newValue:C,storageArea:r}}))}function k(A){try{const C=r.getItem(e);if(A==null)E(C,null),r.removeItem(e);else{const _=g.write(A);C!==_&&(r.setItem(e,_),E(C,_))}}catch(C){h(C)}}function P(A){const C=A?A.newValue:r.getItem(e);if(C==null)return s&&m!=null&&r.setItem(e,g.write(m)),m;if(!A&&d){const _=g.read(C);return typeof d=="function"?d(_,m):b==="object"&&!Array.isArray(_)?{...m,..._}:_}else return typeof C!="string"?C:g.read(C)}function V(A){if(!(A&&A.storageArea!==r)){if(A&&A.key==null){y.value=m;return}if(!(A&&A.key!==e)){S();try{(A==null?void 0:A.newValue)!==g.write(y.value)&&(y.value=P(A))}catch(C){h(C)}finally{A?i.nextTick(O):O()}}}}function j(A){V(A.detail)}return y}function po(e,t,r={}){const{window:n=$t}=r;return Ad(e,t,n==null?void 0:n.localStorage,r)}function ur(e){"@babel/helpers - typeof";return ur=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},ur(e)}var Td=/^\s+/,Nd=/\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=Pd(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,a,u,l;return r=t.r/255,n=t.g/255,o=t.b/255,r<=.03928?a=r/12.92:a=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*a+.7152*u+.0722*l},setAlpha:function(t){return this._a=ns(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ga(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ga(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+o+"%)":"hsva("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=va(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=va(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+o+"%)":"hsla("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return ma(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return Vd(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(G(this._r,255)*100)+"%",g:Math.round(G(this._g,255)*100)+"%",b:Math.round(G(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(G(this._r,255)*100)+"%, "+Math.round(G(this._g,255)*100)+"%, "+Math.round(G(this._b,255)*100)+"%)":"rgba("+Math.round(G(this._r,255)*100)+"%, "+Math.round(G(this._g,255)*100)+"%, "+Math.round(G(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Wd[ma(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+ya(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var a=x(t);n="#"+ya(a._r,a._g,a._b,a._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,a=!r&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?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(Md,arguments)},brighten:function(){return this._applyModification(qd,arguments)},darken:function(){return this._applyModification(Dd,arguments)},desaturate:function(){return this._applyModification($d,arguments)},saturate:function(){return this._applyModification(Bd,arguments)},greyscale:function(){return this._applyModification(Fd,arguments)},spin:function(){return this._applyModification(Gd,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(Ud,arguments)},complement:function(){return this._applyCombination(Ld,arguments)},monochromatic:function(){return this._applyCombination(zd,arguments)},splitcomplement:function(){return this._applyCombination(Hd,arguments)},triad:function(){return this._applyCombination(ba,[3])},tetrad:function(){return this._applyCombination(ba,[4])}};x.fromRatio=function(e,t){if(ur(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=Tt(e[n]));e=r}return x(e,t)};function Pd(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,a=null,u=!1,l=!1;return typeof e=="string"&&(e=Jd(e)),ur(e)=="object"&&(Oe(e.r)&&Oe(e.g)&&Oe(e.b)?(t=Rd(e.r,e.g,e.b),u=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Oe(e.h)&&Oe(e.s)&&Oe(e.v)?(n=Tt(e.s),o=Tt(e.v),t=Id(e.h,n,o),u=!0,l="hsv"):Oe(e.h)&&Oe(e.s)&&Oe(e.l)&&(n=Tt(e.s),a=Tt(e.l),t=jd(e.h,n,a),u=!0,l="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=ns(r),{ok:u,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function Rd(e,t,r){return{r:G(e,255)*255,g:G(t,255)*255,b:G(r,255)*255}}function va(e,t,r){e=G(e,255),t=G(t,255),r=G(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,u,l=(n+o)/2;if(n==o)a=u=0;else{var s=n-o;switch(u=l>.5?s/(2-n-o):s/(n+o),n){case e:a=(t-r)/s+(t<r?6:0);break;case t:a=(r-e)/s+2;break;case r:a=(e-t)/s+4;break}a/=6}return{h:a,s:u,l}}function jd(e,t,r){var n,o,a;e=G(e,360),t=G(t,100),r=G(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=a=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),a=u(s,l,e-1/3)}return{r:n*255,g:o*255,b:a*255}}function ga(e,t,r){e=G(e,255),t=G(t,255),r=G(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,u,l=n,s=n-o;if(u=n===0?0:s/n,n==o)a=0;else{switch(n){case e:a=(t-r)/s+(t<r?6:0);break;case t:a=(r-e)/s+2;break;case r:a=(e-t)/s+4;break}a/=6}return{h:a,s:u,v:l}}function Id(e,t,r){e=G(e,360)*6,t=G(t,100),r=G(r,100);var n=Math.floor(e),o=e-n,a=r*(1-t),u=r*(1-o*t),l=r*(1-(1-o)*t),s=n%6,d=[r,u,a,a,l,r][s],c=[l,r,r,u,a,a][s],f=[a,a,l,r,r,u][s];return{r:d*255,g:c*255,b:f*255}}function ma(e,t,r,n){var o=[ve(Math.round(e).toString(16)),ve(Math.round(t).toString(16)),ve(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 Vd(e,t,r,n,o){var a=[ve(Math.round(e).toString(16)),ve(Math.round(t).toString(16)),ve(Math.round(r).toString(16)),ve(os(n))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function ya(e,t,r,n){var o=[ve(os(n)),ve(Math.round(e).toString(16)),ve(Math.round(t).toString(16)),ve(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 $d(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s-=t/100,r.s=xr(r.s),x(r)}function Bd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s+=t/100,r.s=xr(r.s),x(r)}function Fd(e){return x(e).desaturate(100)}function Md(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l+=t/100,r.l=xr(r.l),x(r)}function qd(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 Dd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l-=t/100,r.l=xr(r.l),x(r)}function Gd(e,t){var r=x(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,x(r)}function Ld(e){var t=x(e).toHsl();return t.h=(t.h+180)%360,x(t)}function ba(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=x(e).toHsl(),n=[x(e)],o=360/t,a=1;a<t;a++)n.push(x({h:(r.h+a*o)%360,s:r.s,l:r.l}));return n}function Hd(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 Ud(e,t,r){t=t||6,r=r||30;var n=x(e).toHsl(),o=360/r,a=[x(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(x(n));return a}function zd(e,t){t=t||6;for(var r=x(e).toHsv(),n=r.h,o=r.s,a=r.v,u=[],l=1/t;t--;)u.push(x({h:n,s:o,v:a})),a=(a+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(),a=r/100,u={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+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,a;switch(a=!1,o=Zd(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a};x.mostReadable=function(e,t,r){var n=null,o=0,a,u,l,s;r=r||{},u=r.includeFallbackColors,l=r.level,s=r.size;for(var d=0;d<t.length;d++)a=x.readability(e,t[d]),a>o&&(o=a,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"},Wd=x.hexNames=Kd(eo);function Kd(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function ns(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function G(e,t){Yd(e)&&(e="100%");var r=Xd(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 xr(e){return Math.min(1,Math.max(0,e))}function oe(e){return parseInt(e,16)}function Yd(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Xd(e){return typeof e=="string"&&e.indexOf("%")!=-1}function ve(e){return e.length==1?"0"+e:""+e}function Tt(e){return e<=1&&(e=e*100+"%"),e}function os(e){return Math.round(parseFloat(e)*255).toString(16)}function Ca(e){return oe(e)/255}var he=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 Oe(e){return!!he.CSS_UNIT.exec(e)}function Jd(e){e=e.replace(Td,"").replace(Nd,"").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=he.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=he.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=he.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=he.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=he.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=he.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=he.hex8.exec(e))?{r:oe(r[1]),g:oe(r[2]),b:oe(r[3]),a:Ca(r[4]),format:t?"name":"hex8"}:(r=he.hex6.exec(e))?{r:oe(r[1]),g:oe(r[2]),b:oe(r[3]),format:t?"name":"hex"}:(r=he.hex4.exec(e))?{r:oe(r[1]+""+r[1]),g:oe(r[2]+""+r[2]),b:oe(r[3]+""+r[3]),a:Ca(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=he.hex3.exec(e))?{r:oe(r[1]+""+r[1]),g:oe(r[2]+""+r[2]),b:oe(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function Zd(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var wa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},er={},Sa;function Qd(){if(Sa)return er;Sa=1;var e=e||{};e.stringify=function(){var t={"visit_linear-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-linear-gradient":function(r){return t.visit_gradient(r)},"visit_radial-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-radial-gradient":function(r){return t.visit_gradient(r)},visit_gradient:function(r){var n=t.visit(r.orientation);return n&&(n+=", "),r.type+"("+n+t.visit(r.colorStops)+")"},visit_shape:function(r){var n=r.value,o=t.visit(r.at),a=t.visit(r.style);return a&&(n+=" "+a),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,a=t.visit(n.length);return a&&(o+=" "+a),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(a,u){n+=t.visit(a),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(T){var I=new Error(r+": "+T);throw I.source=r,I}function o(){var T=a();return r.length>0&&n("Invalid input not EOF"),T}function a(){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(T,I,F){return s(I,function(ee){var me=F();return me&&(M(t.comma)||n("Missing comma before color stops")),{type:T,orientation:me,colorStops:O(E)}})}function s(T,I){var F=M(T);if(F){M(t.startCall)||n("Missing (");var ee=I(F);return M(t.endCall)||n("Missing )"),ee}}function d(){return c()||f()}function c(){return $("directional",t.sideOrCorner,1)}function f(){return $("angular",t.angleValue,1)}function p(){var T,I=h(),F;return I&&(T=[],T.push(I),F=r,M(t.comma)&&(I=h(),I?T.push(I):r=F)),T}function h(){var T=v()||y();if(T)T.at=b();else{var I=m();if(I){T=I;var F=b();F&&(T.at=F)}else{var ee=g();ee&&(T={type:"default-radial",at:ee})}}return T}function v(){var T=$("shape",/^(circle)/i,0);return T&&(T.style=B()||m()),T}function y(){var T=$("shape",/^(ellipse)/i,0);return T&&(T.style=_()||m()),T}function m(){return $("extent-keyword",t.extentKeywords,1)}function b(){if($("position",/^at/,0)){var T=g();return T||n("Missing positioning value"),T}}function g(){var T=S();if(T.x||T.y)return{type:"position",value:T}}function S(){return{x:_(),y:_()}}function O(T){var I=T(),F=[];if(I)for(F.push(I);M(t.comma);)I=T(),I?F.push(I):n("One extra comma");return F}function E(){var T=k();return T||n("Expected color definition"),T.length=_(),T}function k(){return V()||A()||j()||P()}function P(){return $("literal",t.literalColor,0)}function V(){return $("hex",t.hexColor,1)}function j(){return s(t.rgbColor,function(){return{type:"rgb",value:O(C)}})}function A(){return s(t.rgbaColor,function(){return{type:"rgba",value:O(C)}})}function C(){return M(t.number)[1]}function _(){return $("%",t.percentageValue,1)||R()||B()}function R(){return $("position-keyword",t.positionKeywords,1)}function B(){return $("px",t.pixelValue,1)||$("em",t.emValue,1)}function $(T,I,F){var ee=M(I);if(ee)return{type:T,value:ee[F]}}function M(T){var I,F;return F=/^[\n\r\t\s]+/.exec(r),F&&Y(F[0].length),I=T.exec(r),I&&Y(I[0].length),I}function Y(T){r=r.substr(T)}return function(T){return r=T.toString(),o()}}(),er.parse=e.parse,er.stringify=e.stringify,er}var Oa=Qd(),te="top",de="bottom",fe="right",re="left",ho="auto",Lt=[te,de,fe,re],st="start",Bt="end",ef="clippingParents",as="viewport",St="popper",tf="reference",xa=Lt.reduce(function(e,t){return e.concat([t+"-"+st,t+"-"+Bt])},[]),is=[].concat(Lt,[ho]).reduce(function(e,t){return e.concat([t,t+"-"+st,t+"-"+Bt])},[]),rf="beforeRead",nf="read",of="afterRead",af="beforeMain",lf="main",sf="afterMain",uf="beforeWrite",cf="write",df="afterWrite",ff=[rf,nf,of,af,lf,sf,uf,cf,df];function we(e){return e?(e.nodeName||"").toLowerCase():null}function ae(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function He(e){var t=ae(e).Element;return e instanceof t||e instanceof Element}function ue(e){var t=ae(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function vo(e){if(typeof ShadowRoot>"u")return!1;var t=ae(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function pf(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!ue(a)||!we(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(u){var l=o[u];l===!1?a.removeAttribute(u):a.setAttribute(u,l===!0?"":l)}))})}function hf(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],a=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},{});!ue(o)||!we(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(s){o.removeAttribute(s)}))})}}const vf={name:"applyStyles",enabled:!0,phase:"write",fn:pf,effect:hf,requires:["computeStyles"]};function Ce(e){return e.split("-")[0]}var Ge=Math.max,cr=Math.min,ut=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 ls(){return!/^((?!chrome|android).)*safari/i.test(to())}function ct(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&ue(e)&&(o=e.offsetWidth>0&&ut(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ut(n.height)/e.offsetHeight||1);var u=He(e)?ae(e):window,l=u.visualViewport,s=!ls()&&r,d=(n.left+(s&&l?l.offsetLeft:0))/o,c=(n.top+(s&&l?l.offsetTop:0))/a,f=n.width/o,p=n.height/a;return{width:f,height:p,top:c,right:d+f,bottom:c+p,left:d,x:d,y:c}}function go(e){var t=ct(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function ss(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&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 ae(e).getComputedStyle(e)}function gf(e){return["table","td","th"].indexOf(we(e))>=0}function Ve(e){return((He(e)?e.ownerDocument:e.document)||window.document).documentElement}function Er(e){return we(e)==="html"?e:e.assignedSlot||e.parentNode||(vo(e)?e.host:null)||Ve(e)}function Ea(e){return!ue(e)||_e(e).position==="fixed"?null:e.offsetParent}function mf(e){var t=/firefox/i.test(to()),r=/Trident/i.test(to());if(r&&ue(e)){var n=_e(e);if(n.position==="fixed")return null}var o=Er(e);for(vo(o)&&(o=o.host);ue(o)&&["html","body"].indexOf(we(o))<0;){var a=_e(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Ht(e){for(var t=ae(e),r=Ea(e);r&&gf(r)&&_e(r).position==="static";)r=Ea(r);return r&&(we(r)==="html"||we(r)==="body"&&_e(r).position==="static")?t:r||mf(e)||t}function mo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pt(e,t,r){return Ge(e,cr(t,r))}function yf(e,t,r){var n=Pt(e,t,r);return n>r?r:n}function us(){return{top:0,right:0,bottom:0,left:0}}function cs(e){return Object.assign({},us(),e)}function ds(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var bf=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,cs(typeof t!="number"?t:ds(t,Lt))};function Cf(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,u=r.modifiersData.popperOffsets,l=Ce(r.placement),s=mo(l),d=[re,fe].indexOf(l)>=0,c=d?"height":"width";if(!(!a||!u)){var f=bf(o.padding,r),p=go(a),h=s==="y"?te:re,v=s==="y"?de:fe,y=r.rects.reference[c]+r.rects.reference[s]-u[s]-r.rects.popper[c],m=u[s]-r.rects.reference[s],b=Ht(a),g=b?s==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-m/2,O=f[h],E=g-p[c]-f[v],k=g/2-p[c]/2+S,P=Pt(O,k,E),V=s;r.modifiersData[n]=(t={},t[V]=P,t.centerOffset=P-k,t)}}function wf(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||ss(t.elements.popper,o)&&(t.elements.arrow=o))}const Sf={name:"arrow",enabled:!0,phase:"main",fn:Cf,effect:wf,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dt(e){return e.split("-")[1]}var Of={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xf(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:ut(r*o)/o||0,y:ut(n*o)/o||0}}function ka(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=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,v=u.y,y=v===void 0?0:v,m=typeof c=="function"?c({x:h,y}):{x:h,y};h=m.x,y=m.y;var b=u.hasOwnProperty("x"),g=u.hasOwnProperty("y"),S=re,O=te,E=window;if(d){var k=Ht(r),P="clientHeight",V="clientWidth";if(k===ae(r)&&(k=Ve(r),_e(k).position!=="static"&&l==="absolute"&&(P="scrollHeight",V="scrollWidth")),k=k,o===te||(o===re||o===fe)&&a===Bt){O=de;var j=f&&k===E&&E.visualViewport?E.visualViewport.height:k[P];y-=j-n.height,y*=s?1:-1}if(o===re||(o===te||o===de)&&a===Bt){S=fe;var A=f&&k===E&&E.visualViewport?E.visualViewport.width:k[V];h-=A-n.width,h*=s?1:-1}}var C=Object.assign({position:l},d&&Of),_=c===!0?xf({x:h,y},ae(r)):{x:h,y};if(h=_.x,y=_.y,s){var R;return Object.assign({},C,(R={},R[O]=g?"0":"",R[S]=b?"0":"",R.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",R))}return Object.assign({},C,(t={},t[O]=g?y+"px":"",t[S]=b?h+"px":"",t.transform="",t))}function Ef(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,u=a===void 0?!0:a,l=r.roundOffsets,s=l===void 0?!0:l,d={placement:Ce(t.placement),variation:dt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ka(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ka(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const kf={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ef,data:{}};var tr={passive:!0};function _f(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,u=n.resize,l=u===void 0?!0:u,s=ae(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(c){c.addEventListener("scroll",r.update,tr)}),l&&s.addEventListener("resize",r.update,tr),function(){a&&d.forEach(function(c){c.removeEventListener("scroll",r.update,tr)}),l&&s.removeEventListener("resize",r.update,tr)}}const Af={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_f,data:{}};var Tf={left:"right",right:"left",bottom:"top",top:"bottom"};function ar(e){return e.replace(/left|right|bottom|top/g,function(t){return Tf[t]})}var Nf={start:"end",end:"start"};function _a(e){return e.replace(/start|end/g,function(t){return Nf[t]})}function yo(e){var t=ae(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function bo(e){return ct(Ve(e)).left+yo(e).scrollLeft}function Pf(e,t){var r=ae(e),n=Ve(e),o=r.visualViewport,a=n.clientWidth,u=n.clientHeight,l=0,s=0;if(o){a=o.width,u=o.height;var d=ls();(d||!d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:u,x:l+bo(e),y:s}}function Rf(e){var t,r=Ve(e),n=yo(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=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)-a),{width:a,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 fs(e){return["html","body","#document"].indexOf(we(e))>=0?e.ownerDocument.body:ue(e)&&Co(e)?e:fs(Er(e))}function Rt(e,t){var r;t===void 0&&(t=[]);var n=fs(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=ae(n),u=o?[a].concat(a.visualViewport||[],Co(n)?n:[]):n,l=t.concat(u);return o?l:l.concat(Rt(Er(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 jf(e,t){var r=ct(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 Aa(e,t,r){return t===as?ro(Pf(e,r)):He(t)?jf(t,r):ro(Rf(Ve(e)))}function If(e){var t=Rt(Er(e)),r=["absolute","fixed"].indexOf(_e(e).position)>=0,n=r&&ue(e)?Ht(e):e;return He(n)?t.filter(function(o){return He(o)&&ss(o,n)&&we(o)!=="body"}):[]}function Vf(e,t,r,n){var o=t==="clippingParents"?If(e):[].concat(t),a=[].concat(o,[r]),u=a[0],l=a.reduce(function(s,d){var c=Aa(e,d,n);return s.top=Ge(c.top,s.top),s.right=cr(c.right,s.right),s.bottom=cr(c.bottom,s.bottom),s.left=Ge(c.left,s.left),s},Aa(e,u,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ps(e){var t=e.reference,r=e.element,n=e.placement,o=n?Ce(n):null,a=n?dt(n):null,u=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,s;switch(o){case te:s={x:u,y:t.y-r.height};break;case de:s={x:u,y:t.y+t.height};break;case fe:s={x:t.x+t.width,y:l};break;case re: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(a){case st:s[d]=s[d]-(t[c]/2-r[c]/2);break;case Bt:s[d]=s[d]+(t[c]/2-r[c]/2);break}}return s}function Ft(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,u=a===void 0?e.strategy:a,l=r.boundary,s=l===void 0?ef:l,d=r.rootBoundary,c=d===void 0?as:d,f=r.elementContext,p=f===void 0?St:f,h=r.altBoundary,v=h===void 0?!1:h,y=r.padding,m=y===void 0?0:y,b=cs(typeof m!="number"?m:ds(m,Lt)),g=p===St?tf:St,S=e.rects.popper,O=e.elements[v?g:p],E=Vf(He(O)?O:O.contextElement||Ve(e.elements.popper),s,c,u),k=ct(e.elements.reference),P=ps({reference:k,element:S,placement:o}),V=ro(Object.assign({},S,P)),j=p===St?V:k,A={top:E.top-j.top+b.top,bottom:j.bottom-E.bottom+b.bottom,left:E.left-j.left+b.left,right:j.right-E.right+b.right},C=e.modifiersData.offset;if(p===St&&C){var _=C[o];Object.keys(A).forEach(function(R){var B=[fe,de].indexOf(R)>=0?1:-1,$=[te,de].indexOf(R)>=0?"y":"x";A[R]+=_[$]*B})}return A}function $f(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,u=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,d=s===void 0?is:s,c=dt(n),f=c?l?xa:xa.filter(function(v){return dt(v)===c}):Lt,p=f.filter(function(v){return d.indexOf(v)>=0});p.length===0&&(p=f);var h=p.reduce(function(v,y){return v[y]=Ft(e,{placement:y,boundary:o,rootBoundary:a,padding:u})[Ce(y)],v},{});return Object.keys(h).sort(function(v,y){return h[v]-h[y]})}function Bf(e){if(Ce(e)===ho)return[];var t=ar(e);return[_a(e),t,_a(t)]}function Ff(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=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,v=h===void 0?!0:h,y=r.allowedAutoPlacements,m=t.options.placement,b=Ce(m),g=b===m,S=s||(g||!v?[ar(m)]:Bf(m)),O=[m].concat(S).reduce(function(Ne,ye){return Ne.concat(Ce(ye)===ho?$f(t,{placement:ye,boundary:c,rootBoundary:f,padding:d,flipVariations:v,allowedAutoPlacements:y}):ye)},[]),E=t.rects.reference,k=t.rects.popper,P=new Map,V=!0,j=O[0],A=0;A<O.length;A++){var C=O[A],_=Ce(C),R=dt(C)===st,B=[te,de].indexOf(_)>=0,$=B?"width":"height",M=Ft(t,{placement:C,boundary:c,rootBoundary:f,altBoundary:p,padding:d}),Y=B?R?fe:re:R?de:te;E[$]>k[$]&&(Y=ar(Y));var T=ar(Y),I=[];if(a&&I.push(M[_]<=0),l&&I.push(M[Y]<=0,M[T]<=0),I.every(function(Ne){return Ne})){j=C,V=!1;break}P.set(C,I)}if(V)for(var F=v?3:1,ee=function(ye){var wt=O.find(function(Yt){var Be=P.get(Yt);if(Be)return Be.slice(0,ye).every(function(jr){return jr})});if(wt)return j=wt,"break"},me=F;me>0;me--){var Qe=ee(me);if(Qe==="break")break}t.placement!==j&&(t.modifiersData[n]._skip=!0,t.placement=j,t.reset=!0)}}const Mf={name:"flip",enabled:!0,phase:"main",fn:Ff,requiresIfExists:["offset"],data:{_skip:!1}};function Ta(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 Na(e){return[te,fe,de,re].some(function(t){return e[t]>=0})}function qf(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,u=Ft(t,{elementContext:"reference"}),l=Ft(t,{altBoundary:!0}),s=Ta(u,n),d=Ta(l,o,a),c=Na(s),f=Na(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 Df={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:qf};function Gf(e,t,r){var n=Ce(e),o=[re,te].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=a[0],l=a[1];return u=u||0,l=(l||0)*o,[re,fe].indexOf(n)>=0?{x:l,y:u}:{x:u,y:l}}function Lf(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,u=is.reduce(function(c,f){return c[f]=Gf(f,t.rects,a),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 Hf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Lf};function Uf(e){var t=e.state,r=e.name;t.modifiersData[r]=ps({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const zf={name:"popperOffsets",enabled:!0,phase:"read",fn:Uf,data:{}};function Wf(e){return e==="x"?"y":"x"}function Kf(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=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,v=r.tetherOffset,y=v===void 0?0:v,m=Ft(t,{boundary:s,rootBoundary:d,padding:f,altBoundary:c}),b=Ce(t.placement),g=dt(t.placement),S=!g,O=mo(b),E=Wf(O),k=t.modifiersData.popperOffsets,P=t.rects.reference,V=t.rects.popper,j=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(k){if(a){var R,B=O==="y"?te:re,$=O==="y"?de:fe,M=O==="y"?"height":"width",Y=k[O],T=Y+m[B],I=Y-m[$],F=h?-V[M]/2:0,ee=g===st?P[M]:V[M],me=g===st?-V[M]:-P[M],Qe=t.elements.arrow,Ne=h&&Qe?go(Qe):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:us(),wt=ye[B],Yt=ye[$],Be=Pt(0,P[M],Ne[M]),jr=S?P[M]/2-F-Be-wt-A.mainAxis:ee-Be-wt-A.mainAxis,fu=S?-P[M]/2+F+Be+Yt+A.mainAxis:me+Be+Yt+A.mainAxis,Ir=t.elements.arrow&&Ht(t.elements.arrow),pu=Ir?O==="y"?Ir.clientTop||0:Ir.clientLeft||0:0,zo=(R=C==null?void 0:C[O])!=null?R:0,hu=Y+jr-zo-pu,vu=Y+fu-zo,Wo=Pt(h?cr(T,hu):T,Y,h?Ge(I,vu):I);k[O]=Wo,_[O]=Wo-Y}if(l){var Ko,gu=O==="x"?te:re,mu=O==="x"?de:fe,Fe=k[E],Xt=E==="y"?"height":"width",Yo=Fe+m[gu],Xo=Fe-m[mu],Vr=[te,re].indexOf(b)!==-1,Jo=(Ko=C==null?void 0:C[E])!=null?Ko:0,Zo=Vr?Yo:Fe-P[Xt]-V[Xt]-Jo+A.altAxis,Qo=Vr?Fe+P[Xt]+V[Xt]-Jo-A.altAxis:Xo,ea=h&&Vr?yf(Zo,Fe,Qo):Pt(h?Zo:Yo,Fe,h?Qo:Xo);k[E]=ea,_[E]=ea-Fe}t.modifiersData[n]=_}}const Yf={name:"preventOverflow",enabled:!0,phase:"main",fn:Kf,requiresIfExists:["offset"]};function Xf(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Jf(e){return e===ae(e)||!ue(e)?yo(e):Xf(e)}function Zf(e){var t=e.getBoundingClientRect(),r=ut(t.width)/e.offsetWidth||1,n=ut(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Qf(e,t,r){r===void 0&&(r=!1);var n=ue(t),o=ue(t)&&Zf(t),a=Ve(t),u=ct(e,o,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((we(t)!=="body"||Co(a))&&(l=Jf(t)),ue(t)?(s=ct(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=bo(a))),{x:u.left+l.scrollLeft-s.x,y:u.top+l.scrollTop-s.y,width:u.width,height:u.height}}function ep(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var u=[].concat(a.requires||[],a.requiresIfExists||[]);u.forEach(function(l){if(!r.has(l)){var s=t.get(l);s&&o(s)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function tp(e){var t=ep(e);return ff.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function rp(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function np(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Pa={placement:"bottom",modifiers:[],strategy:"absolute"};function Ra(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function op(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?Pa:o;return function(l,s,d){d===void 0&&(d=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pa,a),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},f=[],p=!1,h={state:c,setOptions:function(b){var g=typeof b=="function"?b(c.options):b;y(),c.options=Object.assign({},a,c.options,g),c.scrollParents={reference:He(l)?Rt(l):l.contextElement?Rt(l.contextElement):[],popper:Rt(s)};var S=tp(np([].concat(n,c.options.modifiers)));return c.orderedModifiers=S.filter(function(O){return O.enabled}),v(),h.update()},forceUpdate:function(){if(!p){var b=c.elements,g=b.reference,S=b.popper;if(Ra(g,S)){c.rects={reference:Qf(g,Ht(S),c.options.strategy==="fixed"),popper:go(S)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(A){return c.modifiersData[A.name]=Object.assign({},A.data)});for(var O=0;O<c.orderedModifiers.length;O++){if(c.reset===!0){c.reset=!1,O=-1;continue}var E=c.orderedModifiers[O],k=E.fn,P=E.options,V=P===void 0?{}:P,j=E.name;typeof k=="function"&&(c=k({state:c,options:V,name:j,instance:h})||c)}}}},update:rp(function(){return new Promise(function(m){h.forceUpdate(),m(c)})}),destroy:function(){y(),p=!0}};if(!Ra(l,s))return h;h.setOptions(d).then(function(m){!p&&d.onFirstUpdate&&d.onFirstUpdate(m)});function v(){c.orderedModifiers.forEach(function(m){var b=m.name,g=m.options,S=g===void 0?{}:g,O=m.effect;if(typeof O=="function"){var E=O({state:c,name:b,instance:h,options:S}),k=function(){};f.push(E||k)}})}function y(){f.forEach(function(m){return m()}),f=[]}return h}}var ap=[Af,zf,kf,vf,Hf,Mf,Yf,Sf,Df],ip=op({defaultModifiers:ap});function lp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function hs(e,t,r){return r&&lp(e,r),e}function ir(){return(ir=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function vs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function gs(e,t){if(e==null)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}function ja(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var ms=Object.prototype,ys=ms.toString,sp=ms.hasOwnProperty,bs=/^\s*function (\w+)/;function Ia(e){var t,r=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(r){var n=r.toString().match(bs);return n?n[1]:""}return""}var Ue=function(e){var t,r;return ja(e)!==!1&&typeof(t=e.constructor)=="function"&&ja(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1},Cs=function(e){return e},ne=Cs;if(process.env.NODE_ENV!=="production"){var up=typeof console<"u";ne=up?function(e){console.warn("[VueTypes warn]: "+e)}:Cs}var Mt=function(e,t){return sp.call(e,t)},cp=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},ft=Array.isArray||function(e){return ys.call(e)==="[object Array]"},pt=function(e){return ys.call(e)==="[object Function]"},dr=function(e){return Ue(e)&&Mt(e,"_vueTypes_name")},ws=function(e){return Ue(e)&&(Mt(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return Mt(e,t)}))};function wo(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function Ke(e,t,r){var n,o=!0,a="";n=Ue(e)?e:{type:e};var u=dr(n)?n._vueTypes_name+" - ":"";if(ws(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&t===void 0)return o;ft(n.type)?(o=n.type.some(function(f){return Ke(f,t)===!0}),a=n.type.map(function(f){return Ia(f)}).join(" or ")):o=(a=Ia(n))==="Array"?ft(t):a==="Object"?Ue(t):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?function(f){if(f==null)return"";var p=f.constructor.toString().match(bs);return p?p[1]:""}(t)===a:t instanceof n.type}if(!o){var l=u+'value "'+t+'" should be of type "'+a+'"';return l}if(Mt(n,"validator")&&pt(n.validator)){var s=ne,d=[];if(ne=function(f){d.push(f)},o=n.validator(t),ne=s,!o){var c=(d.length>1?"* ":"")+d.join(`
|
|
12
|
+
* `);return d.length=0,c}}return o}function ie(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?pt(o)||Ke(this,o)===!0?(this.default=ft(o)?function(){return[].concat(o)}:Ue(o)?function(){return Object.assign({},o)}:o,this):(ne(this._vueTypes_name+' - invalid default value: "'+o+'"'),this):this}}}),n=r.validator;return pt(n)&&(r.validator=wo(n,r)),r}function Se(e,t){var r=ie(e,t);return Object.defineProperty(r,"validate",{value:function(n){return pt(this.validator)&&ne(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 Va(e,t,r){var n,o,a=(n=t,o={},Object.getOwnPropertyNames(n).forEach(function(f){o[f]=Object.getOwnPropertyDescriptor(n,f)}),Object.defineProperties({},o));if(a._vueTypes_name=e,!Ue(r))return a;var u,l,s=r.validator,d=gs(r,["validator"]);if(pt(s)){var c=a.validator;c&&(c=(l=(u=c).__original)!==null&&l!==void 0?l:u),a.validator=wo(c?function(f){return c.call(this,f)&&s.call(this,f)}:s,a)}return Object.assign(a,d)}function kr(e){return e.replace(/^(?!\s*$)/gm," ")}var dp=function(){return Se("any",{})},fp=function(){return Se("function",{type:Function})},pp=function(){return Se("boolean",{type:Boolean})},hp=function(){return Se("string",{type:String})},vp=function(){return Se("number",{type:Number})},gp=function(){return Se("array",{type:Array})},mp=function(){return Se("object",{type:Object})},yp=function(){return ie("integer",{type:Number,validator:function(e){return cp(e)}})},bp=function(){return ie("symbol",{validator:function(e){return typeof e=="symbol"}})};function Cp(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 ie(e.name||"<<anonymous function>>",{validator:function(r){var n=e(r);return n||ne(this._vueTypes_name+" - "+t),n}})}function wp(e){if(!ft(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 a=o.constructor;n.indexOf(a)===-1&&n.push(a)}return n},[]);return ie("oneOf",{type:r.length>0?r:void 0,validator:function(n){var o=e.indexOf(n)!==-1;return o||ne(t),o}})}function Sp(e){if(!ft(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(ws(o)){if(dr(o)&&o._vueTypes_name==="oneOf"){r=r.concat(o.type);continue}if(pt(o.validator)&&(t=!0),o.type!==!0&&o.type){r=r.concat(o.type);continue}}r.push(o)}return r=r.filter(function(a,u){return r.indexOf(a)===u}),ie("oneOfType",t?{type:r,validator:function(a){var u=[],l=e.some(function(s){var d=Ke(dr(s)&&s._vueTypes_name==="oneOf"?s.type||null:s,a);return typeof d=="string"&&u.push(d),d===!0});return l||ne("oneOfType - provided value does not match any of the "+u.length+` passed-in validators:
|
|
14
14
|
`+kr(u.join(`
|
|
15
|
-
`))),l}}:{type:r})}function
|
|
16
|
-
`+kr(r)),n}})}function
|
|
17
|
-
`+kr(r)),n}})}function
|
|
18
|
-
`+kr(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 be=function(){function e(){}return e.extend=function(t){var r=this;if(ft(t))return t.forEach(function(f){return r.extend(f)}),this;var n=t.name,o=t.validate,a=o!==void 0&&o,u=t.getter,l=u!==void 0&&u,s=os(t,["name","validate","getter"]);if(Mt(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var d,c=s.type;return dr(c)?(delete s.type,Object.defineProperty(this,n,l?{get:function(){return Va(n,c,s)}}:{value:function(){var f,p=Va(n,c,s);return p.validator&&(p.validator=(f=p.validator).bind.apply(f,[p].concat([].slice.call(arguments)))),p}})):(d=l?{get:function(){var f=Object.assign({},s);return a?Se(n,f):ie(n,f)},enumerable:!0}:{value:function(){var f,p,h=Object.assign({},s);return f=a?Se(n,h):ie(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))},rs(e,null,[{key:"any",get:function(){return Ef()}},{key:"func",get:function(){return kf().def(this.defaults.func)}},{key:"bool",get:function(){return _f().def(this.defaults.bool)}},{key:"string",get:function(){return Af().def(this.defaults.string)}},{key:"number",get:function(){return Tf().def(this.defaults.number)}},{key:"array",get:function(){return Nf().def(this.defaults.array)}},{key:"object",get:function(){return Pf().def(this.defaults.object)}},{key:"integer",get:function(){return Rf().def(this.defaults.integer)}},{key:"symbol",get:function(){return jf()}}]),e}();function Df(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 ns(n,r),rs(n,null,[{key:"sensibleDefaults",get:function(){return ir({},this.defaults)},set:function(o){this.defaults=o!==!1?ir({},o!==!0?o:e):{}}}]),n}(be)).defaults=ir({},e),t}be.defaults={},be.custom=If,be.oneOf=Vf,be.instanceOf=Ff,be.oneOfType=$f,be.arrayOf=Bf,be.objectOf=Mf,be.shape=qf,be.utils={validate:function(e,t){return Ke(t,e)===!0},toType:function(e,t,r){return r===void 0&&(r=!1),r?Se(e,t):ie(e,t)}};var N=function(e){function t(){return e.apply(this,arguments)||this}return ns(t,e),t}(Df()),$a={},xt,Ba;function ge(){if(Ba)return xt;Ba=1;var e=function(t){return t&&t.Math===Math&&t};return xt=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof wa=="object"&&wa)||e(typeof xt=="object"&&xt)||function(){return this}()||Function("return this")(),xt}var Fr,Fa;function Ye(){return Fa||(Fa=1,Fr=function(e){try{return!!e()}catch{return!0}}),Fr}var Mr,Ma;function Xe(){if(Ma)return Mr;Ma=1;var e=Ye();return Mr=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Mr}var qr={exports:{}},Dr,qa;function cs(){if(qa)return Dr;qa=1;var e=Ye();return Dr=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),Dr}var Gr,Da;function zt(){if(Da)return Gr;Da=1;var e=cs(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return Gr=e?n:function(o){return function(){return r.apply(o,arguments)}},Gr}var Lr,Ga;function $e(){if(Ga)return Lr;Ga=1;var e=typeof document=="object"&&document.all;return Lr=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},Lr}var Hr,La;function ds(){return La||(La=1,Hr=function(e){return e==null}),Hr}var zr,Ha;function Gf(){if(Ha)return zr;Ha=1;var e=ds(),t=TypeError;return zr=function(r){if(e(r))throw new t("Can't call method on "+r);return r},zr}var Ur,za;function Lf(){if(za)return Ur;za=1;var e=Gf(),t=Object;return Ur=function(r){return t(e(r))},Ur}var Wr,Ua;function _r(){if(Ua)return Wr;Ua=1;var e=zt(),t=Lf(),r=e({}.hasOwnProperty);return Wr=Object.hasOwn||function(o,a){return r(t(o),a)},Wr}var Kr,Wa;function Hf(){if(Wa)return Kr;Wa=1;var e=Xe(),t=_r(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,o=t(r,"name"),a=o&&(function(){}).name==="something",u=o&&(!e||e&&n(r,"name").configurable);return Kr={EXISTS:o,PROPER:a,CONFIGURABLE:u},Kr}var Yr={exports:{}},Xr,Ka;function zf(){return Ka||(Ka=1,Xr=!1),Xr}var Jr,Ya;function Uf(){if(Ya)return Jr;Ya=1;var e=ge(),t=Object.defineProperty;return Jr=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},Jr}var Xa;function wo(){if(Xa)return Yr.exports;Xa=1;var e=zf(),t=ge(),r=Uf(),n="__core-js_shared__",o=Yr.exports=t[n]||r(n,{});return(o.versions||(o.versions=[])).push({version:"3.41.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Yr.exports}var Zr,Ja;function Wf(){if(Ja)return Zr;Ja=1;var e=zt(),t=$e(),r=wo(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(o){return n(o)}),Zr=r.inspectSource,Zr}var Qr,Za;function Kf(){if(Za)return Qr;Za=1;var e=ge(),t=$e(),r=e.WeakMap;return Qr=t(r)&&/native code/.test(String(r)),Qr}var en,Qa;function Ut(){if(Qa)return en;Qa=1;var e=$e();return en=function(t){return typeof t=="object"?t!==null:e(t)},en}var tn={},rn,ei;function Yf(){if(ei)return rn;ei=1;var e=ge(),t=Ut(),r=e.document,n=t(r)&&t(r.createElement);return rn=function(o){return n?r.createElement(o):{}},rn}var nn,ti;function Xf(){if(ti)return nn;ti=1;var e=Xe(),t=Ye(),r=Yf();return nn=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),nn}var on,ri;function Jf(){if(ri)return on;ri=1;var e=Xe(),t=Ye();return on=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),on}var an,ni;function fs(){if(ni)return an;ni=1;var e=Ut(),t=String,r=TypeError;return an=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},an}var ln,oi;function ps(){if(oi)return ln;oi=1;var e=cs(),t=Function.prototype.call;return ln=e?t.bind(t):function(){return t.apply(t,arguments)},ln}var sn,ai;function Zf(){if(ai)return sn;ai=1;var e=ge(),t=$e(),r=function(n){return t(n)?n:void 0};return sn=function(n,o){return arguments.length<2?r(e[n]):e[n]&&e[n][o]},sn}var un,ii;function Qf(){if(ii)return un;ii=1;var e=zt();return un=e({}.isPrototypeOf),un}var cn,li;function ep(){if(li)return cn;li=1;var e=ge(),t=e.navigator,r=t&&t.userAgent;return cn=r?String(r):"",cn}var dn,si;function tp(){if(si)return dn;si=1;var e=ge(),t=ep(),r=e.process,n=e.Deno,o=r&&r.versions||n&&n.version,a=o&&o.v8,u,l;return a&&(u=a.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]))),dn=l,dn}var fn,ui;function hs(){if(ui)return fn;ui=1;var e=tp(),t=Ye(),r=ge(),n=r.String;return fn=!!Object.getOwnPropertySymbols&&!t(function(){var o=Symbol("symbol detection");return!n(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&e&&e<41}),fn}var pn,ci;function vs(){if(ci)return pn;ci=1;var e=hs();return pn=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",pn}var hn,di;function gs(){if(di)return hn;di=1;var e=Zf(),t=$e(),r=Qf(),n=vs(),o=Object;return hn=n?function(a){return typeof a=="symbol"}:function(a){var u=e("Symbol");return t(u)&&r(u.prototype,o(a))},hn}var vn,fi;function rp(){if(fi)return vn;fi=1;var e=String;return vn=function(t){try{return e(t)}catch{return"Object"}},vn}var gn,pi;function np(){if(pi)return gn;pi=1;var e=$e(),t=rp(),r=TypeError;return gn=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},gn}var mn,hi;function op(){if(hi)return mn;hi=1;var e=np(),t=ds();return mn=function(r,n){var o=r[n];return t(o)?void 0:e(o)},mn}var yn,vi;function ap(){if(vi)return yn;vi=1;var e=ps(),t=$e(),r=Ut(),n=TypeError;return yn=function(o,a){var u,l;if(a==="string"&&t(u=o.toString)&&!r(l=e(u,o))||t(u=o.valueOf)&&!r(l=e(u,o))||a!=="string"&&t(u=o.toString)&&!r(l=e(u,o)))return l;throw new n("Can't convert object to primitive value")},yn}var bn,gi;function ms(){if(gi)return bn;gi=1;var e=wo();return bn=function(t,r){return e[t]||(e[t]=r||{})},bn}var Cn,mi;function ys(){if(mi)return Cn;mi=1;var e=zt(),t=0,r=Math.random(),n=e(1 .toString);return Cn=function(o){return"Symbol("+(o===void 0?"":o)+")_"+n(++t+r,36)},Cn}var wn,yi;function ip(){if(yi)return wn;yi=1;var e=ge(),t=ms(),r=_r(),n=ys(),o=hs(),a=vs(),u=e.Symbol,l=t("wks"),s=a?u.for||u:u&&u.withoutSetter||n;return wn=function(d){return r(l,d)||(l[d]=o&&r(u,d)?u[d]:s("Symbol."+d)),l[d]},wn}var Sn,bi;function lp(){if(bi)return Sn;bi=1;var e=ps(),t=Ut(),r=gs(),n=op(),o=ap(),a=ip(),u=TypeError,l=a("toPrimitive");return Sn=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)},Sn}var xn,Ci;function sp(){if(Ci)return xn;Ci=1;var e=lp(),t=gs();return xn=function(r){var n=e(r,"string");return t(n)?n:n+""},xn}var wi;function bs(){if(wi)return tn;wi=1;var e=Xe(),t=Xf(),r=Jf(),n=fs(),o=sp(),a=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s="enumerable",d="configurable",c="writable";return tn.f=e?r?function(p,h,v){if(n(p),h=o(h),n(v),typeof p=="function"&&h==="prototype"&&"value"in v&&c in v&&!v[c]){var y=l(p,h);y&&y[c]&&(p[h]=v.value,v={configurable:d in v?v[d]:y[d],enumerable:s in v?v[s]:y[s],writable:!1})}return u(p,h,v)}:u:function(p,h,v){if(n(p),h=o(h),n(v),t)try{return u(p,h,v)}catch{}if("get"in v||"set"in v)throw new a("Accessors not supported");return"value"in v&&(p[h]=v.value),p},tn}var On,Si;function up(){return Si||(Si=1,On=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),On}var En,xi;function cp(){if(xi)return En;xi=1;var e=Xe(),t=bs(),r=up();return En=e?function(n,o,a){return t.f(n,o,r(1,a))}:function(n,o,a){return n[o]=a,n},En}var kn,Oi;function dp(){if(Oi)return kn;Oi=1;var e=ms(),t=ys(),r=e("keys");return kn=function(n){return r[n]||(r[n]=t(n))},kn}var _n,Ei;function fp(){return Ei||(Ei=1,_n={}),_n}var An,ki;function pp(){if(ki)return An;ki=1;var e=Kf(),t=ge(),r=Ut(),n=cp(),o=_r(),a=wo(),u=dp(),l=fp(),s="Object already initialized",d=t.TypeError,c=t.WeakMap,f,p,h,v=function(g){return h(g)?p(g):f(g,{})},y=function(g){return function(S){var x;if(!r(S)||(x=p(S)).type!==g)throw new d("Incompatible receiver, "+g+" required");return x}};if(e||a.state){var m=a.state||(a.state=new c);m.get=m.get,m.has=m.has,m.set=m.set,f=function(g,S){if(m.has(g))throw new d(s);return S.facade=g,m.set(g,S),S},p=function(g){return m.get(g)||{}},h=function(g){return m.has(g)}}else{var b=u("state");l[b]=!0,f=function(g,S){if(o(g,b))throw new d(s);return S.facade=g,n(g,b,S),S},p=function(g){return o(g,b)?g[b]:{}},h=function(g){return o(g,b)}}return An={set:f,get:p,has:h,enforce:v,getterFor:y},An}var _i;function hp(){if(_i)return qr.exports;_i=1;var e=zt(),t=Ye(),r=$e(),n=_r(),o=Xe(),a=Hf().CONFIGURABLE,u=Wf(),l=pp(),s=l.enforce,d=l.get,c=String,f=Object.defineProperty,p=e("".slice),h=e("".replace),v=e([].join),y=o&&!t(function(){return f(function(){},"length",{value:8}).length!==8}),m=String(String).split("String"),b=qr.exports=function(g,S,x){p(c(S),0,7)==="Symbol("&&(S="["+h(c(S),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),x&&x.getter&&(S="get "+S),x&&x.setter&&(S="set "+S),(!n(g,"name")||a&&g.name!==S)&&(o?f(g,"name",{value:S,configurable:!0}):g.name=S),y&&x&&n(x,"arity")&&g.length!==x.arity&&f(g,"length",{value:x.arity});try{x&&n(x,"constructor")&&x.constructor?o&&f(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch{}var E=s(g);return n(E,"source")||(E.source=v(m,typeof S=="string"?S:"")),g};return Function.prototype.toString=b(function(){return r(this)&&d(this).source||u(this)},"toString"),qr.exports}var Tn,Ai;function vp(){if(Ai)return Tn;Ai=1;var e=hp(),t=bs();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,Ti;function gp(){if(Ti)return Nn;Ti=1;var e=fs();return Nn=function(){var t=e(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},Nn}var Ni;function mp(){if(Ni)return $a;Ni=1;var e=ge(),t=Xe(),r=vp(),n=gp(),o=Ye(),a=e.RegExp,u=a.prototype,l=t&&o(function(){var s=!0;try{a(".","d")}catch{s=!1}var d={},c="",f=s?"dgimsy":"gimsy",p=function(m,b){Object.defineProperty(d,m,{get:function(){return c+=b,!0}})},h={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};s&&(h.hasIndices="d");for(var v in h)p(v,h[v]);var y=Object.getOwnPropertyDescriptor(u,"flags").get.call(d);return y!==f||c!==f});return l&&r(u,"flags",{configurable:!0,get:n}),$a}mp();var Pi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function So(e){var t={exports:{}};return e(t,t.exports),t.exports}var rr=function(e){return e&&e.Math==Math&&e},W=rr(typeof globalThis=="object"&&globalThis)||rr(typeof window=="object"&&window)||rr(typeof self=="object"&&self)||rr(typeof Pi=="object"&&Pi)||function(){return this}()||Function("return this")(),q=function(e){try{return!!e()}catch{return!0}},se=!q(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ri={}.propertyIsEnumerable,ji=Object.getOwnPropertyDescriptor,yp={f:ji&&!Ri.call({1:2},1)?function(e){var t=ji(this,e);return!!t&&t.enumerable}:Ri},Ar=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},bp={}.toString,ke=function(e){return bp.call(e).slice(8,-1)},Cp="".split,Tr=q(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return ke(e)=="String"?Cp.call(e,""):Object(e)}:Object,Re=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},yt=function(e){return Tr(Re(e))},K=function(e){return typeof e=="object"?e!==null:typeof e=="function"},xo=function(e,t){if(!K(e))return e;var r,n;if(t&&typeof(r=e.toString)=="function"&&!K(n=r.call(e))||typeof(r=e.valueOf)=="function"&&!K(n=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!K(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},wp={}.hasOwnProperty,U=function(e,t){return wp.call(e,t)},ro=W.document,Sp=K(ro)&&K(ro.createElement),Cs=function(e){return Sp?ro.createElement(e):{}},ws=!se&&!q(function(){return Object.defineProperty(Cs("div"),"a",{get:function(){return 7}}).a!=7}),Ii=Object.getOwnPropertyDescriptor,Oo={f:se?Ii:function(e,t){if(e=yt(e),t=xo(t,!0),ws)try{return Ii(e,t)}catch{}if(U(e,t))return Ar(!yp.f.call(e,t),e[t])}},Q=function(e){if(!K(e))throw TypeError(String(e)+" is not an object");return e},Vi=Object.defineProperty,Ae={f:se?Vi:function(e,t,r){if(Q(e),t=xo(t,!0),Q(r),ws)try{return Vi(e,t,r)}catch{}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},ce=se?function(e,t,r){return Ae.f(e,t,Ar(1,r))}:function(e,t,r){return e[t]=r,e},Eo=function(e,t){try{ce(W,e,t)}catch{W[e]=t}return t},Ue=W["__core-js_shared__"]||Eo("__core-js_shared__",{}),xp=Function.toString;typeof Ue.inspectSource!="function"&&(Ue.inspectSource=function(e){return xp.call(e)});var fr,jt,pr,Ss=Ue.inspectSource,$i=W.WeakMap,Op=typeof $i=="function"&&/native code/.test(Ss($i)),xs=So(function(e){(e.exports=function(t,r){return Ue[t]||(Ue[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Ep=0,kp=Math.random(),ko=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++Ep+kp).toString(36)},Bi=xs("keys"),_o=function(e){return Bi[e]||(Bi[e]=ko(e))},Nr={},_p=W.WeakMap;if(Op){var et=Ue.state||(Ue.state=new _p),Ap=et.get,Tp=et.has,Np=et.set;fr=function(e,t){return t.facade=e,Np.call(et,e,t),t},jt=function(e){return Ap.call(et,e)||{}},pr=function(e){return Tp.call(et,e)}}else{var Ot=_o("state");Nr[Ot]=!0,fr=function(e,t){return t.facade=e,ce(e,Ot,t),t},jt=function(e){return U(e,Ot)?e[Ot]:{}},pr=function(e){return U(e,Ot)}}var je={set:fr,get:jt,has:pr,enforce:function(e){return pr(e)?jt(e):fr(e,{})},getterFor:function(e){return function(t){var r;if(!K(t)||(r=jt(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},Ie=So(function(e){var t=je.get,r=je.enforce,n=String(String).split("String");(e.exports=function(o,a,u,l){var s,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet;typeof u=="function"&&(typeof a!="string"||U(u,"name")||ce(u,"name",a),(s=r(u)).source||(s.source=n.join(typeof a=="string"?a:""))),o!==W?(d?!f&&o[a]&&(c=!0):delete o[a],c?o[a]=u:ce(o,a,u)):c?o[a]=u:Eo(a,u)})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||Ss(this)})}),Pn=W,Fi=function(e){return typeof e=="function"?e:void 0},Pr=function(e,t){return arguments.length<2?Fi(Pn[e])||Fi(W[e]):Pn[e]&&Pn[e][t]||W[e]&&W[e][t]},Pp=Math.ceil,Rp=Math.floor,bt=function(e){return isNaN(e=+e)?0:(e>0?Rp:Pp)(e)},jp=Math.min,le=function(e){return e>0?jp(bt(e),9007199254740991):0},Ip=Math.max,Vp=Math.min,hr=function(e,t){var r=bt(e);return r<0?Ip(r+t,0):Vp(r,t)},$p=function(e){return function(t,r,n){var o,a=yt(t),u=le(a.length),l=hr(n,u);if(e&&r!=r){for(;u>l;)if((o=a[l++])!=o)return!0}else for(;u>l;l++)if((e||l in a)&&a[l]===r)return e||l||0;return!e&&-1}},Os={indexOf:$p(!1)},Bp=Os.indexOf,Es=function(e,t){var r,n=yt(e),o=0,a=[];for(r in n)!U(Nr,r)&&U(n,r)&&a.push(r);for(;t.length>o;)U(n,r=t[o++])&&(~Bp(a,r)||a.push(r));return a},vr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fp=vr.concat("length","prototype"),Mp={f:Object.getOwnPropertyNames||function(e){return Es(e,Fp)}},qp={f:Object.getOwnPropertySymbols},Dp=Pr("Reflect","ownKeys")||function(e){var t=Mp.f(Q(e)),r=qp.f;return r?t.concat(r(e)):t},Gp=function(e,t){for(var r=Dp(t),n=Ae.f,o=Oo.f,a=0;a<r.length;a++){var u=r[a];U(e,u)||n(e,u,o(t,u))}},Lp=/#|\.prototype\./,Wt=function(e,t){var r=zp[Hp(e)];return r==Wp||r!=Up&&(typeof t=="function"?q(t):!!t)},Hp=Wt.normalize=function(e){return String(e).replace(Lp,".").toLowerCase()},zp=Wt.data={},Up=Wt.NATIVE="N",Wp=Wt.POLYFILL="P",no=Wt,Kp=Oo.f,Z=function(e,t){var r,n,o,a,u,l=e.target,s=e.global,d=e.stat;if(r=s?W:d?W[l]||Eo(l,{}):(W[l]||{}).prototype)for(n in t){if(a=t[n],o=e.noTargetGet?(u=Kp(r,n))&&u.value:r[n],!no(s?n:l+(d?".":"#")+n,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;Gp(a,o)}(e.sham||o&&o.sham)&&ce(a,"sham",!0),Ie(r,n,a,e)}},Ao=function(e,t){var r=[][e];return!!r&&q(function(){r.call(null,t||function(){throw 1},1)})},Yp=Object.defineProperty,Rn={},Mi=function(e){throw e},Ct=function(e,t){if(U(Rn,e))return Rn[e];t||(t={});var r=[][e],n=!!U(t,"ACCESSORS")&&t.ACCESSORS,o=U(t,0)?t[0]:Mi,a=U(t,1)?t[1]:void 0;return Rn[e]=!!r&&!q(function(){if(n&&!se)return!0;var u={length:-1};n?Yp(u,1,{enumerable:!0,get:Mi}):u[1]=1,r.call(u,o,a)})},Xp=Os.indexOf,ks=[].indexOf,qi=!!ks&&1/[1].indexOf(1,-0)<0,Jp=Ao("indexOf"),Zp=Ct("indexOf",{ACCESSORS:!0,1:0});function Je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qp(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 Ze(e,t,r){return r&&Qp(e,r),e}Z({target:"Array",proto:!0,forced:qi||!Jp||!Zp},{indexOf:function(e){return qi?ks.apply(this,arguments)||0:Xp(this,e,arguments.length>1?arguments[1]:void 0)}});(function(){function e(){Je(this,e)}return Ze(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 eh=[].join,th=Tr!=Object,rh=Ao("join",",");Z({target:"Array",proto:!0,forced:th||!rh},{join:function(e){return eh.call(yt(this),e===void 0?",":e)}});var tt,gr,Te=function(e){return Object(Re(e))},ht=Array.isArray||function(e){return ke(e)=="Array"},_s=!!Object.getOwnPropertySymbols&&!q(function(){return!String(Symbol())}),nh=_s&&!Symbol.sham&&typeof Symbol.iterator=="symbol",nr=xs("wks"),It=W.Symbol,oh=nh?It:It&&It.withoutSetter||ko,H=function(e){return U(nr,e)||(_s&&U(It,e)?nr[e]=It[e]:nr[e]=oh("Symbol."+e)),nr[e]},ah=H("species"),Rr=function(e,t){var r;return ht(e)&&(typeof(r=e.constructor)!="function"||r!==Array&&!ht(r.prototype)?K(r)&&(r=r[ah])===null&&(r=void 0):r=void 0),new(r===void 0?Array:r)(t===0?0:t)},vt=function(e,t,r){var n=xo(t);n in e?Ae.f(e,n,Ar(0,r)):e[n]=r},jn=Pr("navigator","userAgent")||"",Di=W.process,Gi=Di&&Di.versions,Li=Gi&&Gi.v8;Li?gr=(tt=Li.split("."))[0]+tt[1]:jn&&(!(tt=jn.match(/Edge\/(\d+)/))||tt[1]>=74)&&(tt=jn.match(/Chrome\/(\d+)/))&&(gr=tt[1]);var mr=gr&&+gr,ih=H("species"),To=function(e){return mr>=51||!q(function(){var t=[];return(t.constructor={})[ih]=function(){return{foo:1}},t[e](Boolean).foo!==1})},lh=To("splice"),sh=Ct("splice",{ACCESSORS:!0,0:0,1:2}),uh=Math.max,ch=Math.min;Z({target:"Array",proto:!0,forced:!lh||!sh},{splice:function(e,t){var r,n,o,a,u,l,s=Te(this),d=le(s.length),c=hr(e,d),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=d-c):(r=f-2,n=ch(uh(bt(t),0),d-c)),d+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=Rr(s,n),a=0;a<n;a++)(u=c+a)in s&&vt(o,a,s[u]);if(o.length=n,r<n){for(a=c;a<d-n;a++)l=a+r,(u=a+n)in s?s[l]=s[u]:delete s[l];for(a=d;a>d-n+r;a--)delete s[a-1]}else if(r>n)for(a=d-n;a>c;a--)l=a+r-1,(u=a+n-1)in s?s[l]=s[u]:delete s[l];for(a=0;a<r;a++)s[a+c]=arguments[a+2];return s.length=d-n+r,o}});var As={};As[H("toStringTag")]="z";var No=String(As)==="[object z]",dh=H("toStringTag"),fh=ke(function(){return arguments}())=="Arguments",Ts=No?ke:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,a){try{return o[a]}catch{}}(t=Object(e),dh))=="string"?r:fh?ke(t):(n=ke(t))=="Object"&&typeof t.callee=="function"?"Arguments":n},ph=No?{}.toString:function(){return"[object "+Ts(this)+"]"};No||Ie(Object.prototype,"toString",ph,{unsafe:!0});var Ns=function(){var e=Q(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function Hi(e,t){return RegExp(e,t)}var In,Vn,zi={UNSUPPORTED_Y:q(function(){var e=Hi("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),BROKEN_CARET:q(function(){var e=Hi("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},yr=RegExp.prototype.exec,hh=String.prototype.replace,Ps=yr,$n=(In=/a/,Vn=/b*/g,yr.call(In,"a"),yr.call(Vn,"a"),In.lastIndex!==0||Vn.lastIndex!==0),Ui=zi.UNSUPPORTED_Y||zi.BROKEN_CARET,Bn=/()??/.exec("")[1]!==void 0;($n||Bn||Ui)&&(Ps=function(e){var t,r,n,o,a=this,u=Ui&&a.sticky,l=Ns.call(a),s=a.source,d=0,c=e;return u&&((l=l.replace("y","")).indexOf("g")===-1&&(l+="g"),c=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&e[a.lastIndex-1]!==`
|
|
19
|
-
`)&&(s="(?: "+s+")",c=" "+c,d++),r=new RegExp("^(?:"+s+")",l)),Bn&&(r=new RegExp("^"+s+"$(?!\\s)",l)),$n&&(t=a.lastIndex),n=yr.call(u?r:a,c),u?n?(n.input=n.input.slice(d),n[0]=n[0].slice(d),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:$n&&n&&(a.lastIndex=a.global?n.index+n[0].length:t),Bn&&n&&n.length>1&&
|
|
20
|
-
\v\f\r \u2028\u2029\uFEFF`,br="["+ao+"]",kh=RegExp("^"+br+br+"*"),_h=RegExp(br+br+"*$"),Ah=function(e){return function(t){var r=String(Re(t));return 1&e&&(r=r.replace(kh,"")),2&e&&(r=r.replace(_h,"")),r}},Th={trim:Ah(3)},Nh=Th.trim;Z({target:"String",proto:!0,forced:function(e){return q(function(){return!!ao[e]()||"
"[e]()!="
"||ao[e].name!==e})}("trim")},{trim:function(){return Nh(this)}});var Ph=To("slice"),Rh=Ct("slice",{ACCESSORS:!0,0:0,1:2}),jh=H("species"),Ih=[].slice,Vh=Math.max;Z({target:"Array",proto:!0,forced:!Ph||!Rh},{slice:function(e,t){var r,n,o,a=yt(this),u=le(a.length),l=hr(e,u),s=hr(t===void 0?u:t,u);if(ht(a)&&(typeof(r=a.constructor)!="function"||r!==Array&&!ht(r.prototype)?K(r)&&(r=r[jh])===null&&(r=void 0):r=void 0,r===Array||r===void 0))return Ih.call(a,l,s);for(n=new(r===void 0?Array:r)(Vh(s-l,0)),o=0;l<s;l++,o++)l in a&&vt(n,o,a[l]);return n.length=o,n}});var Ro=Object.keys||function(e){return Es(e,vr)},$h=q(function(){Ro(1)});Z({target:"Object",stat:!0,forced:$h},{keys:function(e){return Ro(Te(e))}});var Fn,Bh=function(e){if(Vs(e))throw TypeError("The method doesn't accept regular expressions");return e},Fh=H("match"),Mh=Oo.f,Xi="".startsWith,qh=Math.min,Fs=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Fh]=!1,"/./"[e](t)}catch{}}return!1}("startsWith"),Dh=!(Fs||(Fn=Mh(String.prototype,"startsWith"),!Fn||Fn.writable));function Ms(e){return(Ms=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)}Z({target:"String",proto:!0,forced:!Dh&&!Fs},{startsWith:function(e){var t=String(Re(this));Bh(e);var r=le(qh(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return Xi?Xi.call(t,n,r):t.slice(r,r+n.length)===n}});var nt=function(e){return typeof e=="string"},ot=function(e){return e!==null&&Ms(e)==="object"},Dt=function(){function e(){Je(this,e)}return Ze(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)},a=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",a),n=!0,(l=r.start)===null||l===void 0||l.call(r,u))})}},{key:"getBoundingClientRect",value:function(t){return t&&ot(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,r){return!!(t&&ot(t)&&nt(r)&&t.nodeType===1)&&t.classList.contains(r.trim())}},{key:"addClass",value:function(t,r){if(t&&ot(t)&&nt(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&&ot(t)&&nt(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&&ot(t)&&nt(r)&&t.nodeType===1&&t.classList.toggle(r,n)}},{key:"replaceClass",value:function(t,r,n){t&&ot(t)&&nt(r)&&nt(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,a=n.top+n.height/2,u=Math.abs(o-r.clientX),l=Math.abs(a-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>a&&(c=180-c),r.clientX==o&&r.clientY>a&&(c=180),r.clientX>o&&r.clientY==a&&(c=90),r.clientX<o&&r.clientY>a&&(c=180+c),r.clientX<o&&r.clientY==a&&(c=270),r.clientX<o&&r.clientY<a&&(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),a=1;a<n;a++)o[a-1]=arguments[a];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}(),Gh=Math.floor,Lh="".replace,Hh=/\$([$&'`]|\d\d?|<[^>]*>)/g,zh=/\$([$&'`]|\d\d?)/g,Uh=function(e,t,r,n,o,a){var u=r+e.length,l=n.length,s=zh;return o!==void 0&&(o=Te(o),s=Hh),Lh.call(a,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=Gh(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})},Wh=Math.max,Kh=Math.min;Is("replace",2,function(e,t,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,a=n.REPLACE_KEEPS_$0,u=o?"$":"$0";return[function(l,s){var d=Re(this),c=l==null?void 0:l[e];return c!==void 0?c.call(l,d,s):t.call(String(d),l,s)},function(l,s){if(!o&&a||typeof s=="string"&&s.indexOf(u)===-1){var d=r(t,l,this,s);if(d.done)return d.value}var c=Q(l),f=String(this),p=typeof s=="function";p||(s=String(s));var h=c.global;if(h){var v=c.unicode;c.lastIndex=0}for(var y=[];;){var m=oo(c,f);if(m===null||(y.push(m),!h))break;String(m[0])===""&&(c.lastIndex=Bs(f,le(c.lastIndex),v))}for(var b,g="",S=0,x=0;x<y.length;x++){m=y[x];for(var E=String(m[0]),k=Wh(Kh(bt(m.index),f.length),0),P=[],V=1;V<m.length;V++)P.push((b=m[V])===void 0?b:String(b));var j=m.groups;if(p){var A=[E].concat(P,k,f);j!==void 0&&A.push(j);var C=String(s.apply(void 0,A))}else C=Uh(E,f,k,P,j,s);k>=S&&(g+=f.slice(S,k)+C,S=k+E.length)}return g+f.slice(S)}]});(function(){function e(){Je(this,e)}return Ze(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(){Je(this,e)}return Ze(e,null,[{key:"_clone",value:function(){}}]),e})();var qs=H("isConcatSpreadable"),Yh=mr>=51||!q(function(){var e=[];return e[qs]=!1,e.concat()[0]!==e}),Xh=To("concat"),Jh=function(e){if(!K(e))return!1;var t=e[qs];return t!==void 0?!!t:ht(e)};Z({target:"Array",proto:!0,forced:!Yh||!Xh},{concat:function(e){var t,r,n,o,a,u=Te(this),l=Rr(u,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(Jh(a=t===-1?u:arguments[t])){if(s+(o=le(a.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in a&&vt(l,s,a[r])}else{if(s>=9007199254740991)throw TypeError("Maximum allowed index exceeded");vt(l,s++,a)}return l.length=s,l}});var Mn,Kt=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,a){return e.call(t,n,o,a)}}return function(){return e.apply(t,arguments)}},Ji=[].push,Zi=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,a=e==6,u=e==7,l=e==5||a;return function(s,d,c,f){for(var p,h,v=Te(s),y=Tr(v),m=Kt(d,c,3),b=le(y.length),g=0,S=f||Rr,x=t?S(s,b):r||u?S(s,0):void 0;b>g;g++)if((l||g in y)&&(h=m(p=y[g],g,v),e))if(t)x[g]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return g;case 2:Ji.call(x,p)}else switch(e){case 4:return!1;case 7:Ji.call(x,p)}return a?-1:n||o?o:x}},Ds={find:Zi(5),findIndex:Zi(6)},Zh=se?Object.defineProperties:function(e,t){Q(e);for(var r,n=Ro(t),o=n.length,a=0;o>a;)Ae.f(e,r=n[a++],t[r]);return e},Qh=Pr("document","documentElement"),Gs=_o("IE_PROTO"),qn=function(){},Qi=function(e){return"<script>"+e+"<\/script>"},lr=function(){try{Mn=document.domain&&new ActiveXObject("htmlfile")}catch{}var e,t;lr=Mn?function(n){n.write(Qi("")),n.close();var o=n.parentWindow.Object;return n=null,o}(Mn):((t=Cs("iframe")).style.display="none",Qh.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Qi("document.F=Object")),e.close(),e.F);for(var r=vr.length;r--;)delete lr.prototype[vr[r]];return lr()};Nr[Gs]=!0;var jo=Object.create||function(e,t){var r;return e!==null?(qn.prototype=Q(e),r=new qn,qn.prototype=null,r[Gs]=e):r=lr(),t===void 0?r:Zh(r,t)},io=H("unscopables"),lo=Array.prototype;lo[io]==null&&Ae.f(lo,io,{configurable:!0,value:jo(null)});var lt=function(e){lo[io][e]=!0},ev=Ds.find,el=!0,tv=Ct("find");"find"in[]&&Array(1).find(function(){el=!1}),Z({target:"Array",proto:!0,forced:el||!tv},{find:function(e){return ev(this,e,arguments.length>1?arguments[1]:void 0)}}),lt("find");var rv=Ds.findIndex,tl=!0,nv=Ct("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){tl=!1}),Z({target:"Array",proto:!0,forced:tl||!nv},{findIndex:function(e){return rv(this,e,arguments.length>1?arguments[1]:void 0)}}),lt("findIndex");var Ls=function(e,t,r,n,o,a,u,l){for(var s,d=o,c=0,f=!!u&&Kt(u,l,3);c<n;){if(c in r){if(s=f?f(r[c],c,t):r[c],a>0&&ht(s))d=Ls(e,t,s,le(s.length),d,a-1)-1;else{if(d>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[d]=s}d++}c++}return d},ov=Ls;Z({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Te(this),r=le(t.length),n=Rr(t,0);return n.length=ov(n,t,t,r,0,e===void 0?1:bt(e)),n}});var so=function(e){var t=e.return;if(t!==void 0)return Q(t.call(e)).value},av=function(e,t,r,n){try{return n?t(Q(r)[0],r[1]):t(r)}catch(o){throw so(e),o}},gt={},iv=H("iterator"),lv=Array.prototype,Hs=function(e){return e!==void 0&&(gt.Array===e||lv[iv]===e)},sv=H("iterator"),zs=function(e){if(e!=null)return e[sv]||e["@@iterator"]||gt[Ts(e)]},Us=H("iterator"),Ws=!1;try{var uv=0,rl={next:function(){return{done:!!uv++}},return:function(){Ws=!0}};rl[Us]=function(){return this},Array.from(rl,function(){throw 2})}catch{}var Ks=function(e,t){if(!Ws)return!1;var r=!1;try{var n={};n[Us]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},cv=!Ks(function(e){Array.from(e)});Z({target:"Array",stat:!0,forced:cv},{from:function(e){var t,r,n,o,a,u,l=Te(e),s=typeof this=="function"?this:Array,d=arguments.length,c=d>1?arguments[1]:void 0,f=c!==void 0,p=zs(l),h=0;if(f&&(c=Kt(c,d>2?arguments[2]:void 0,2)),p==null||s==Array&&Hs(p))for(r=new s(t=le(l.length));t>h;h++)u=f?c(l[h],h):l[h],vt(r,h,u);else for(a=(o=p.call(l)).next,r=new s;!(n=a.call(o)).done;h++)u=f?av(o,c,[n.value,h],!0):n.value,vt(r,h,u);return r.length=h,r}});var dv=function(e){return function(t,r,n,o){Po(r);var a=Te(t),u=Tr(a),l=le(a.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,a));return o}},fv={left:dv(!1)},pv=ke(W.process)=="process",hv=fv.left,vv=Ao("reduce"),gv=Ct("reduce",{1:0});Z({target:"Array",proto:!0,forced:!vv||!gv||!pv&&mr>79&&mr<83},{reduce:function(e){return hv(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}}),lt("flat");var Me,nl,ol,mv=!q(function(){return Object.isExtensible(Object.preventExtensions({}))}),Ys=So(function(e){var t=Ae.f,r=ko("meta"),n=0,o=Object.isExtensible||function(){return!0},a=function(l){t(l,r,{value:{objectID:"O"+ ++n,weakData:{}}})},u=e.exports={REQUIRED:!1,fastKey:function(l,s){if(!K(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";a(l)}return l[r].objectID},getWeakData:function(l,s){if(!U(l,r)){if(!o(l))return!0;if(!s)return!1;a(l)}return l[r].weakData},onFreeze:function(l){return mv&&u.REQUIRED&&o(l)&&!U(l,r)&&a(l),l}};Nr[r]=!0}),Et=function(e,t){this.stopped=e,this.result=t},al=function(e,t,r){var n,o,a,u,l,s,d,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),v=Kt(t,c,1+f+h),y=function(b){return n&&so(n),new Et(!0,b)},m=function(b){return f?(Q(b),h?v(b[0],b[1],y):v(b[0],b[1])):h?v(b,y):v(b)};if(p)n=e;else{if(typeof(o=zs(e))!="function")throw TypeError("Target is not iterable");if(Hs(o)){for(a=0,u=le(e.length);u>a;a++)if((l=m(e[a]))&&l instanceof Et)return l;return new Et(!1)}n=o.call(e)}for(s=n.next;!(d=s.call(n)).done;){try{l=m(d.value)}catch(b){throw so(n),b}if(typeof l=="object"&&l&&l instanceof Et)return l}return new Et(!1)},il=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e},yv=Ae.f,ll=H("toStringTag"),uo=function(e,t,r){e&&!U(e=r?e:e.prototype,ll)&&yv(e,ll,{configurable:!0,value:t})},Cr=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 Q(n),function(a){if(!K(a)&&a!==null)throw TypeError("Can't set "+String(a)+" as a prototype")}(o),t?e.call(n,o):n.__proto__=o,n}}():void 0),sl=function(e,t,r){for(var n in t)Ie(e,n,t[n],r);return e},bv=!q(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ul=_o("IE_PROTO"),Cv=Object.prototype,wr=bv?Object.getPrototypeOf:function(e){return e=Te(e),U(e,ul)?e[ul]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Cv:null},Dn=H("iterator"),Xs=!1;[].keys&&("next"in(ol=[].keys())?(nl=wr(wr(ol)))!==Object.prototype&&(Me=nl):Xs=!0),(Me==null||q(function(){var e={};return Me[Dn].call(e)!==e}))&&(Me={}),U(Me,Dn)||ce(Me,Dn,function(){return this});var Io={IteratorPrototype:Me,BUGGY_SAFARI_ITERATORS:Xs},wv=Io.IteratorPrototype,Sv=function(){return this},Gn=Io.IteratorPrototype,or=Io.BUGGY_SAFARI_ITERATORS,kt=H("iterator"),xv=function(){return this},Vo=function(e,t,r,n,o,a,u){(function(b,g,S){var x=g+" Iterator";b.prototype=jo(wv,{next:Ar(1,S)}),uo(b,x,!1),gt[x]=Sv})(r,t,n);var l,s,d,c=function(b){if(b===o&&y)return y;if(!or&&b in h)return h[b];switch(b){case"keys":case"values":case"entries":return function(){return new r(this,b)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,v=h[kt]||h["@@iterator"]||o&&h[o],y=!or&&v||c(o),m=t=="Array"&&h.entries||v;if(m&&(l=wr(m.call(new e)),Gn!==Object.prototype&&l.next&&(wr(l)!==Gn&&(Cr?Cr(l,Gn):typeof l[kt]!="function"&&ce(l,kt,xv)),uo(l,f,!0))),o=="values"&&v&&v.name!=="values"&&(p=!0,y=function(){return v.call(this)}),h[kt]!==y&&ce(h,kt,y),gt[t]=y,o)if(s={values:c("values"),keys:a?y:c("keys"),entries:c("entries")},u)for(d in s)(or||p||!(d in h))&&Ie(h,d,s[d]);else Z({target:t,proto:!0,forced:or||p},s);return s},cl=H("species"),Ov=Ae.f,dl=Ys.fastKey,fl=je.set,Ln=je.getterFor;(function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,a=n?"set":"add",u=W[e],l=u&&u.prototype,s=u,d={},c=function(m){var b=l[m];Ie(l,m,m=="add"?function(g){return b.call(this,g===0?0:g),this}:m=="delete"?function(g){return!(o&&!K(g))&&b.call(this,g===0?0:g)}:m=="get"?function(g){return o&&!K(g)?void 0:b.call(this,g===0?0:g)}:m=="has"?function(g){return!(o&&!K(g))&&b.call(this,g===0?0:g)}:function(g,S){return b.call(this,g===0?0:g,S),this})};if(no(e,typeof u!="function"||!(o||l.forEach&&!q(function(){new u().entries().next()}))))s=r.getConstructor(t,e,n,a),Ys.REQUIRED=!0;else if(no(e,!0)){var f=new s,p=f[a](o?{}:-0,1)!=f,h=q(function(){f.has(1)}),v=Ks(function(m){new u(m)}),y=!o&&q(function(){for(var m=new u,b=5;b--;)m[a](b,b);return!m.has(-0)});v||((s=t(function(m,b){il(m,s,e);var g=function(S,x,E){var k,P;return Cr&&typeof(k=x.constructor)=="function"&&k!==E&&K(P=k.prototype)&&P!==E.prototype&&Cr(S,P),S}(new u,m,s);return b!=null&&al(b,g[a],{that:g,AS_ENTRIES:n}),g})).prototype=l,l.constructor=s),(h||y)&&(c("delete"),c("has"),n&&c("get")),(y||p)&&c(a),o&&l.clear&&delete l.clear}d[e]=s,Z({global:!0,forced:s!=u},d),uo(s,e),o||r.setStrong(s,e,n)})("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},{getConstructor:function(e,t,r,n){var o=e(function(s,d){il(s,o,t),fl(s,{type:t,index:jo(null),first:void 0,last:void 0,size:0}),se||(s.size=0),d!=null&&al(d,s[n],{that:s,AS_ENTRIES:r})}),a=Ln(t),u=function(s,d,c){var f,p,h=a(s),v=l(s,d);return v?v.value=c:(h.last=v={index:p=dl(d,!0),key:d,value:c,previous:f=h.last,next:void 0,removed:!1},h.first||(h.first=v),f&&(f.next=v),se?h.size++:s.size++,p!=="F"&&(h.index[p]=v)),s},l=function(s,d){var c,f=a(s),p=dl(d);if(p!=="F")return f.index[p];for(c=f.first;c;c=c.next)if(c.key==d)return c};return sl(o.prototype,{clear:function(){for(var s=a(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,se?s.size=0:this.size=0},delete:function(s){var d=this,c=a(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),se?c.size--:d.size--}return!!f},forEach:function(s){for(var d,c=a(this),f=Kt(s,arguments.length>1?arguments[1]:void 0,3);d=d?d.next:c.first;)for(f(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(s){return!!l(this,s)}}),sl(o.prototype,r?{get:function(s){var d=l(this,s);return d&&d.value},set:function(s,d){return u(this,s===0?0:s,d)}}:{add:function(s){return u(this,s=s===0?0:s,s)}}),se&&Ov(o.prototype,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=Ln(t),a=Ln(n);Vo(e,t,function(u,l){fl(this,{type:n,target:u,state:o(u),kind:l,last:void 0})},function(){for(var u=a(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=Pr(u),s=Ae.f;se&&l&&!l[cl]&&s(l,cl,{configurable:!0,get:function(){return this}})}(t)}});var Ev=$s.charAt,kv=je.set,_v=je.getterFor("String Iterator");Vo(String,"String",function(e){kv(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=_v(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=Ev(r,n),t.index+=e.length,{value:e,done:!1})});var pl={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Av=je.set,Tv=je.getterFor("Array Iterator"),Nt=Vo(Array,"Array",function(e,t){Av(this,{type:"Array Iterator",target:yt(e),index:0,kind:t})},function(){var e=Tv(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");gt.Arguments=gt.Array,lt("keys"),lt("values"),lt("entries");var Hn=H("iterator"),hl=H("toStringTag"),zn=Nt.values;for(var Un in pl){var vl=W[Un],Oe=vl&&vl.prototype;if(Oe){if(Oe[Hn]!==zn)try{ce(Oe,Hn,zn)}catch{Oe[Hn]=zn}if(Oe[hl]||ce(Oe,hl,Un),pl[Un]){for(var at in Nt)if(Oe[at]!==Nt[at])try{ce(Oe,at,Nt[at])}catch{Oe[at]=Nt[at]}}}}(function(){function e(){Je(this,e)}return Ze(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(){Je(this,e)}return Ze(e,null,[{key:"today",value:function(){return new Date}}]),e})();(function(){function e(){Je(this,e)}return Ze(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 Nv=Object.defineProperty,Pv=(e,t,r)=>t in e?Nv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X=(e,t,r)=>(Pv(e,typeof t!="symbol"?t+"":t,r),r);const z=e=>Math.round(e*100)/100;class L{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=O(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=O(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=O({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=O({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=O({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=O({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=O({...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=O({...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=O({...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 gl(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,$o="color-history",Bo=8,pe=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},Rv=i.defineComponent({name:"Alpha",props:{color:N.instanceOf(L),size:N.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=i.ref(null),n=i.ref(null);let o=e.color||new L;const a=i.reactive({red:o.red,green:o.green,blue:o.blue,alpha:o.alpha});i.watch(()=>e.color,f=>{f&&(o=f,mt.merge(a,{red:f.red,green:f.green,blue:f.blue,alpha:f.alpha}))},{deep:!0});const u=i.computed(()=>{const f=gl(a.red,a.green,a.blue,0),p=gl(a.red,a.green,a.blue,100);return{background:`linear-gradient(to right, ${f} , ${p})`}}),l=()=>{if(r.value&&n.value){const f=a.alpha/100,p=r.value.getBoundingClientRect(),h=n.value.offsetWidth;return Math.round(f*(p.width-h)+h/2)}return 0},s=i.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 v=f.clientX-p.left;v=Math.max(h/2,v),v=Math.min(v,p.width-h/2);const y=Math.round((v-h/2)/(p.width-h)*100);o.alpha=y,a.alpha=y,t("change",y)}};return We(()=>{const f={drag:p=>{c(p)},end:p=>{c(p)}};r.value&&n.value&&Dt.triggerDragEvent(r.value,f)}),{barElement:r,cursorElement:n,getCursorStyle:s,getBackgroundStyle:u,onClickSider:d}}}),jv=e=>(i.pushScopeId("data-v-18925ba6"),e=e(),i.popScopeId(),e),Iv=jv(()=>i.createElementVNode("div",{class:"vc-alpha-slider__bar-handle"},null,-1)),Vv=[Iv];function $v(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-alpha-slider","transparent",{"small-slider":e.size==="small"}])},[i.createElementVNode("div",{ref:"barElement",class:"vc-alpha-slider__bar",style:i.normalizeStyle(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickSider&&e.onClickSider(...u))},[i.createElementVNode("div",{class:i.normalizeClass(["vc-alpha-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:i.normalizeStyle(e.getCursorStyle)},Vv,6)],4)],2)}const Fo=pe(Rv,[["render",$v],["__scopeId","data-v-18925ba6"]]),Bv=[["#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"]],Fv=i.defineComponent({name:"Palette",emits:["change"],setup(e,{emit:t}){return{palettes:Bv,computedBgStyle:r=>r==="transparent"?r:r==="advance"?{}:{background:O(r).toRgbString()},onColorChange:r=>{t("change",r)}}}}),Mv={class:"vc-compact"},qv=["onClick"];function Dv(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",Mv,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.palettes,(u,l)=>(i.openBlock(),i.createElementBlock("div",{key:l,class:"vc-compact__row"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u,(s,d)=>(i.openBlock(),i.createElementBlock("div",{key:d,class:"vc-compact__color-cube--wrap",onClick:c=>e.onColorChange(s)},[i.createElementVNode("div",{class:i.normalizeClass(["vc-compact__color_cube",{advance:s==="advance",transparent:s==="transparent"}]),style:i.normalizeStyle(e.computedBgStyle(s))},null,6)],8,qv))),128))]))),128))])}const Js=pe(Fv,[["render",Dv],["__scopeId","data-v-b969fd48"]]),Gv=i.defineComponent({name:"Board",props:{color:N.instanceOf(L),round:N.bool.def(!1),hide:N.bool.def(!0)},emits:["change"],setup(e,{emit:t}){var r,n,o;const a=i.getCurrentInstance(),u={h:((r=e.color)==null?void 0:r.hue)||0,s:1,v:1},l=new L(u).toHexString(),s=i.reactive({hueColor:l,saturation:((n=e.color)==null?void 0:n.saturation)||0,brightness:((o=e.color)==null?void 0:o.brightness)||0}),d=i.ref(0),c=i.ref(0),f=i.ref(),p=i.computed(()=>({top:d.value+"px",left:c.value+"px"})),h=()=>{if(a){const S=a.vnode.el;c.value=s.saturation*(S==null?void 0:S.clientWidth),d.value=(1-s.brightness)*(S==null?void 0:S.clientHeight)}};let v=!1;const y=S=>{v=!0,g(S)},m=S=>{v&&g(S)},b=()=>{v=!1},g=S=>{if(a){const x=a.vnode.el,E=x==null?void 0:x.getBoundingClientRect();let k=S.clientX-E.left,P=S.clientY-E.top;k=Wn(k,0,E.width),P=Wn(P,0,E.height);const V=k/E.width,j=Wn(-(P/E.height)+1,0,1);c.value=k,d.value=P,s.saturation=V,s.brightness=j,t("change",V,j)}};return We(()=>{a&&a.vnode.el&&f.value&&i.nextTick(()=>{h()})}),J(()=>e.color,S=>{mt.merge(s,{hueColor:new L({h:S.hue,s:1,v:1}).toHexString(),saturation:S.saturation,brightness:S.brightness}),h()},{deep:!0}),{state:s,cursorElement:f,getCursorStyle:p,onClickBoard:y,onDrag:m,onDragEnd:b}}}),Mo=e=>(i.pushScopeId("data-v-7f0cdcdf"),e=e(),i.popScopeId(),e),Lv=Mo(()=>i.createElementVNode("div",{class:"vc-saturation__white"},null,-1)),Hv=Mo(()=>i.createElementVNode("div",{class:"vc-saturation__black"},null,-1)),zv=Mo(()=>i.createElementVNode("div",null,null,-1)),Uv=[zv];function Wv(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",{ref:"boardElement",class:i.normalizeClass(["vc-saturation",{"vc-saturation__chrome":e.round,"vc-saturation__hidden":e.hide}]),style:i.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))},[Lv,Hv,i.createElementVNode("div",{class:"vc-saturation__cursor",ref:"cursorElement",style:i.normalizeStyle(e.getCursorStyle)},Uv,4)],38)}const qo=pe(Gv,[["render",Wv],["__scopeId","data-v-7f0cdcdf"]]),Kv=i.defineComponent({name:"Hue",props:{color:N.instanceOf(L),size:N.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=i.ref(null),n=i.ref(null);let o=e.color||new L;const a=i.reactive({hue:o.hue||0});i.watch(()=>e.color,c=>{c&&(o=c,mt.merge(a,{hue:o.hue}))},{deep:!0});const u=()=>{if(r.value&&n.value){const c=r.value.getBoundingClientRect(),f=n.value.offsetWidth;return a.hue===360?c.width-f/2:a.hue%360*(c.width-f)/360+f/2}return 0},l=i.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 v=Math.round((h-p/2)/(f.width-p)*360);o.hue=v,a.hue=v,t("change",v)}};return We(()=>{const c={drag:f=>{d(f)},end:f=>{d(f)}};r.value&&n.value&&Dt.triggerDragEvent(r.value,c)}),{barElement:r,cursorElement:n,getCursorStyle:l,onClickSider:s}}}),Yv=e=>(i.pushScopeId("data-v-e1a08576"),e=e(),i.popScopeId(),e),Xv=Yv(()=>i.createElementVNode("div",{class:"vc-hue-slider__bar-handle"},null,-1)),Jv=[Xv];function Zv(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-hue-slider",{"small-slider":e.size==="small"}])},[i.createElementVNode("div",{ref:"barElement",class:"vc-hue-slider__bar",onClick:t[0]||(t[0]=(...u)=>e.onClickSider&&e.onClickSider(...u))},[i.createElementVNode("div",{class:i.normalizeClass(["vc-hue-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:i.normalizeStyle(e.getCursorStyle)},Jv,6)],512)],2)}const Do=pe(Kv,[["render",Zv],["__scopeId","data-v-e1a08576"]]),Qv=i.defineComponent({name:"Lightness",props:{color:N.instanceOf(L),size:N.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=i.ref(null),n=i.ref(null);let o=e.color||new L;const[a,u,l]=o.HSL,s=i.reactive({hue:a,saturation:u,lightness:l});i.watch(()=>e.color,v=>{if(v){o=v;const[y,m,b]=o.HSL;mt.merge(s,{hue:y,saturation:m,lightness:b})}},{deep:!0});const d=i.computed(()=>{const v=O({h:s.hue,s:s.saturation,l:.8}).toPercentageRgbString(),y=O({h:s.hue,s:s.saturation,l:.6}).toPercentageRgbString(),m=O({h:s.hue,s:s.saturation,l:.4}).toPercentageRgbString(),b=O({h:s.hue,s:s.saturation,l:.2}).toPercentageRgbString();return{background:[`linear-gradient(to right, rgb(255, 255, 255), ${v}, ${y}, ${m}, ${b}, rgb(0, 0, 0))`,`-webkit-linear-gradient(left, rgb(255, 255, 255), ${v}, ${y}, ${m}, ${b}, rgb(0, 0, 0))`,`-moz-linear-gradient(left, rgb(255, 255, 255), ${v}, ${y}, ${m}, ${b}, rgb(0, 0, 0))`,`-ms-linear-gradient(left, rgb(255, 255, 255), ${v}, ${y}, ${m}, ${b}, rgb(0, 0, 0))`]}}),c=()=>{if(r.value&&n.value){const v=s.lightness,y=r.value.getBoundingClientRect(),m=n.value.offsetWidth;return(1-v)*(y.width-m)+m/2}return 0},f=i.computed(()=>({left:c()+"px",top:0})),p=v=>{v.target!==r.value&&h(v)},h=v=>{if(v.stopPropagation(),r.value&&n.value){const y=r.value.getBoundingClientRect(),m=n.value.offsetWidth;let b=v.clientX-y.left;b=Math.max(m/2,b),b=Math.min(b,y.width-m/2);const g=1-(b-m/2)/(y.width-m);o.lightness=g,t("change",g)}};return We(()=>{const v={drag:y=>{h(y)},end:y=>{h(y)}};r.value&&n.value&&Dt.triggerDragEvent(r.value,v)}),{barElement:r,cursorElement:n,getCursorStyle:f,getBackgroundStyle:d,onClickSider:p}}}),eg=e=>(i.pushScopeId("data-v-94a50a9e"),e=e(),i.popScopeId(),e),tg=eg(()=>i.createElementVNode("div",{class:"vc-lightness-slider__bar-handle"},null,-1)),rg=[tg];function ng(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-lightness-slider",{"small-slider":e.size==="small"}])},[i.createElementVNode("div",{ref:"barElement",class:"vc-lightness-slider__bar",style:i.normalizeStyle(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickSider&&e.onClickSider(...u))},[i.createElementVNode("div",{class:i.normalizeClass(["vc-lightness-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:i.normalizeStyle(e.getCursorStyle)},rg,6)],4)],2)}const Zs=pe(Qv,[["render",ng],["__scopeId","data-v-94a50a9e"]]),og=i.defineComponent({name:"History",props:{colors:N.arrayOf(String).def(()=>[]),round:N.bool.def(!1)},emits:["change"],setup(e,{emit:t}){return{onColorSelect:r=>{t("change",r)}}}}),ag={key:0,class:"vc-colorPicker__record"},ig={class:"color-list"},lg=["onClick"];function sg(e,t,r,n,o,a){return e.colors&&e.colors.length>0?(i.openBlock(),i.createElementBlock("div",ag,[i.createElementVNode("div",ig,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.colors,(u,l)=>(i.openBlock(),i.createElementBlock("div",{key:l,class:i.normalizeClass(["color-item","transparent",{"color-item__round":e.round}]),onClick:s=>e.onColorSelect(u)},[i.createElementVNode("div",{class:"color-item__display",style:i.normalizeStyle({backgroundColor:u})},null,4)],10,lg))),128))])])):i.createCommentVNode("",!0)}const Go=pe(og,[["render",sg],["__scopeId","data-v-0f657238"]]),ug=i.defineComponent({name:"Display",props:{color:N.instanceOf(L),disableAlpha:N.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){var r,n,o,a;const{copy:u,copied:l,isSupported:s}=$c(),d=i.ref("hex"),c=i.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:(a=e.color)==null?void 0:a.toRgbString()}),f=i.computed(()=>({background:c.previewBgColor})),p=()=>{d.value=d.value==="rgba"?"hex":"rgba"},h=Ee(b=>{if(!b.target.value)return;let g=parseInt(b.target.value.replace("%",""));g>100&&(b.target.value="100",g=100),g<0&&(b.target.value="0",g=0),isNaN(g)&&(b.target.value="100",g=100),!isNaN(g)&&c.color&&(c.color.alpha=g),t("change",c.color)},300),v=Ee((b,g)=>{if(c.color){if(d.value==="hex"){const S=b.target.value.replace("#","");O(S).isValid()?[3,4].includes(S.length)&&(c.color.hex=S):c.color.hex="000000",t("change",c.color)}else if(d.value==="rgba"&&g===3&&b.target.value.toString()==="0."&&c.rgba){c.rgba[g]=b.target.value;const[S,x,E,k]=c.rgba;c.color.hex=O({r:S,g:x,b:E}).toHex(),c.color.alpha=Math.round(k*100),t("change",c.color)}}},100),y=Ee((b,g)=>{if(b.target.value){if(d.value==="hex"){const S=b.target.value.replace("#","");O(S).isValid()&&c.color&&[6,8].includes(S.length)&&(c.color.hex=S)}else if(g!==void 0&&c.rgba&&c.color){if(b.target.value<0&&(b.target.value=0),g===3&&((b.target.value>1||isNaN(b.target.value))&&(b.target.value=1),b.target.value.toString()==="0."))return;g<3&&b.target.value>255&&(b.target.value=255),c.rgba[g]=b.target.value;const[S,x,E,k]=c.rgba;c.color.hex=O({r:S,g:x,b:E}).toHex(),c.color.alpha=Math.round(k*100)}t("change",c.color)}},300),m=()=>{if(s&&c.color){const b=d.value==="hex"?c.color.toString(c.color.alpha===100?"hex6":"hex8"):c.color.toRgbString();u(b||"")}};return J(()=>e.color,b=>{b&&(c.color=b,c.alpha=Math.round(c.color.alpha),c.hex=c.color.hex,c.rgba=c.color.RGB)},{deep:!0}),J(()=>c.color,()=>{c.color&&(c.previewBgColor=c.color.toRgbString())},{deep:!0}),{state:c,getBgColorStyle:f,inputType:d,copied:l,onInputTypeChange:p,onAlphaBlur:h,onInputChange:y,onBlurChange:v,onCopyColorStr:m}}}),cg={class:"vc-display"},dg={class:"vc-current-color vc-transparent"},fg={key:0,class:"copy-text"},pg={key:0,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},hg={class:"vc-color-input"},vg={key:0,class:"vc-alpha-input"},gg=["value"],mg={key:1,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},yg=["value","onInput","onBlur"];function bg(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",cg,[i.createElementVNode("div",dg,[i.createElementVNode("div",{class:"color-cube",style:i.normalizeStyle(e.getBgColorStyle),onClick:t[0]||(t[0]=(...u)=>e.onCopyColorStr&&e.onCopyColorStr(...u))},[e.copied?(i.openBlock(),i.createElementBlock("span",fg,"Copied!")):i.createCommentVNode("",!0)],4)]),e.inputType==="hex"?(i.openBlock(),i.createElementBlock("div",pg,[i.createElementVNode("div",hg,[i.withDirectives(i.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),[[i.vModelText,e.state.hex]])]),e.disableAlpha?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",vg,[i.createElementVNode("input",{class:"vc-alpha-input__inner",value:e.state.alpha,onInput:t[4]||(t[4]=(...u)=>e.onAlphaBlur&&e.onAlphaBlur(...u))},null,40,gg),i.createTextVNode("% ")]))])):e.state.rgba?(i.openBlock(),i.createElementBlock("div",mg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.state.rgba,(u,l)=>(i.openBlock(),i.createElementBlock("div",{class:"vc-color-input",key:l},[i.createElementVNode("input",{value:u,onInput:s=>e.onInputChange(s,l),onBlur:s=>e.onBlurChange(s,l)},null,40,yg)]))),128))])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"vc-input-toggle",onClick:t[5]||(t[5]=(...u)=>e.onInputTypeChange&&e.onInputTypeChange(...u))},i.toDisplayString(e.inputType),1)])}const Lo=pe(ug,[["render",bg],["__scopeId","data-v-7334ac20"]]),Cg=i.defineComponent({name:"FkColorPicker",components:{Display:Lo,Alpha:Fo,Palette:Js,Board:qo,Hue:Do,Lightness:Zs,History:Go},props:{color:N.instanceOf(L),disableHistory:N.bool.def(!1),roundHistory:N.bool.def(!1),disableAlpha:N.bool.def(!1)},emits:["update:color","change","advanceChange"],setup(e,{emit:t}){const r=e.color||new L,n=i.reactive({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=i.ref(!1),a=i.computed(()=>({background:n.rgb})),u=()=>{o.value=!1,t("advanceChange",!1)},l=fo($o,[],{}),s=Ee(()=>{if(e.disableHistory)return;const y=n.color.toRgbString();if(l.value=l.value.filter(m=>!O.equals(m,y)),!l.value.includes(y)){for(;l.value.length>Bo;)l.value.pop();l.value.unshift(y)}},500),d=y=>{y==="advance"?(o.value=!0,t("advanceChange",!0)):(n.color.hex=y,t("advanceChange",!1))},c=y=>{n.color.alpha=y},f=y=>{n.color.hue=y},p=(y,m)=>{n.color.saturation=y,n.color.brightness=m},h=y=>{n.color.lightness=y},v=y=>{const m=y.target.value.replace("#","");O(m).isValid()&&(n.color.hex=m)};return J(()=>e.color,y=>{y&&(n.color=y)},{deep:!0}),J(()=>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:v,previewStyle:a,historyColors:l}}}),wg=e=>(i.pushScopeId("data-v-48e3c224"),e=e(),i.popScopeId(),e),Sg={class:"vc-fk-colorPicker"},xg={class:"vc-fk-colorPicker__inner"},Og={class:"vc-fk-colorPicker__header"},Eg=wg(()=>i.createElementVNode("div",{class:"back"},null,-1)),kg=[Eg];function _g(e,t,r,n,o,a){const u=i.resolveComponent("Palette"),l=i.resolveComponent("Board"),s=i.resolveComponent("Hue"),d=i.resolveComponent("Lightness"),c=i.resolveComponent("Alpha"),f=i.resolveComponent("Display"),p=i.resolveComponent("History");return i.openBlock(),i.createElementBlock("div",Sg,[i.createElementVNode("div",xg,[i.createElementVNode("div",Og,[e.advancePanelShow?(i.openBlock(),i.createElementBlock("span",{key:0,style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...h)=>e.onBack&&e.onBack(...h))},kg)):i.createCommentVNode("",!0)]),e.advancePanelShow?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(u,{key:0,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?(i.openBlock(),i.createBlock(l,{key:1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"])):i.createCommentVNode("",!0),e.advancePanelShow?(i.openBlock(),i.createBlock(s,{key:2,color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"])):i.createCommentVNode("",!0),e.advancePanelShow?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:3,color:e.state.color,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(c,{key:4,color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"])),i.createVNode(f,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(p,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const ml=pe(Cg,[["render",_g],["__scopeId","data-v-48e3c224"]]),Ag=i.defineComponent({name:"ChromeColorPicker",components:{Display:Lo,Alpha:Fo,Board:qo,Hue:Do,History:Go},props:{color:N.instanceOf(L),disableHistory:N.bool.def(!1),roundHistory:N.bool.def(!1),disableAlpha:N.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){const r=e.color||new L,n=i.reactive({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=i.computed(()=>({background:n.rgb})),a=fo($o,[],{}),u=Ee(()=>{if(e.disableHistory)return;const p=n.color.toRgbString();if(a.value=a.value.filter(h=>!O.equals(h,p)),!a.value.includes(p)){for(;a.value.length>Bo;)a.value.pop();a.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 J(()=>e.color,p=>{p&&(n.color=p)},{deep:!0}),J(()=>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:a,onAlphaChange:l,onHueChange:s,onBoardChange:c,onInputChange:d,onCompactChange:f}}}),Tg={class:"vc-chrome-colorPicker"},Ng={class:"vc-chrome-colorPicker-body"},Pg={class:"chrome-controls"},Rg={class:"chrome-sliders"};function jg(e,t,r,n,o,a){const u=i.resolveComponent("Board"),l=i.resolveComponent("Hue"),s=i.resolveComponent("Alpha"),d=i.resolveComponent("Display"),c=i.resolveComponent("History");return i.openBlock(),i.createElementBlock("div",Tg,[i.createVNode(u,{round:!0,hide:!1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"]),i.createElementVNode("div",Ng,[i.createElementVNode("div",Pg,[i.createElementVNode("div",Rg,[i.createVNode(l,{size:"small",color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"]),e.disableAlpha?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(s,{key:0,size:"small",color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"]))])]),i.createVNode(d,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(c,{key:0,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const yl=pe(Ag,[["render",jg],["__scopeId","data-v-2611d66c"]]),Ho="Vue3ColorPickerProvider",Ig=(e,t)=>{const r=e.getBoundingClientRect(),n=r.left+r.width/2,o=r.top+r.height/2,a=Math.abs(n-t.clientX),u=Math.abs(o-t.clientY),l=Math.sqrt(Math.pow(a,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 Vg=(e,t)=>{const r=function(o){var a;(a=t.drag)==null||a.call(t,o)},n=function(o){var a;document.removeEventListener("mousemove",r,!1),document.removeEventListener("mouseup",n,!1),document.onselectstart=null,document.ondragstart=null,Kn=!1,(a=t.end)==null||a.call(t,o)};e&&e.addEventListener("mousedown",o=>{var a;Kn||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",n,!1),Kn=!0,(a=t.start)==null||a.call(t,o))})},$g={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"}},Bg=i.defineComponent({name:"Angle",props:$g,emits:["update:angle","change"],setup(e,{emit:t}){const r=i.ref(null),n=i.ref(0);i.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))},a=i.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=Ig(r.value,l)%360,o())};return i.onMounted(()=>{const l={drag:s=>{u(s)},end:s=>{u(s)}};r.value&&Vg(r.value,l)}),()=>i.createVNode("div",{class:"bee-angle"},[i.createVNode("div",{class:"bee-angle__round",ref:r,style:a.value},null)])}}),Fg=i.defineComponent({name:"GradientColorPicker",components:{Angle:Bg,Display:Lo,Alpha:Fo,Palette:Js,Board:qo,Hue:Do,Lightness:Zs,History:Go},props:{startColor:N.instanceOf(L).isRequired,endColor:N.instanceOf(L).isRequired,startColorStop:N.number.def(0),endColorStop:N.number.def(100),angle:N.number.def(0),type:N.oneOf(["linear","radial"]).def("linear"),disableHistory:N.bool.def(!1),roundHistory:N.bool.def(!1),disableAlpha:N.bool.def(!1),pickerType:N.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=i.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=i.inject(Ho),o=i.ref(e.pickerType==="chrome"),a=i.ref(),u=i.ref(),l=i.ref();i.watch(()=>[e.startColor,e.endColor,e.angle],C=>{r.startColor=C[0],r.endColor=C[1],r.angle=C[2]}),i.watch(()=>e.type,C=>{r.type=C});const s=i.computed({get:()=>r.startActive?r.startColor:r.endColor,set:C=>{if(r.startActive){r.startColor=C;return}r.endColor=C}}),d=i.computed(()=>{if(l.value&&a.value){const C=r.startColorStop/100,_=l.value.getBoundingClientRect(),R=a.value.offsetWidth;return Math.round(C*(_.width-R)+R/2)}return 0}),c=i.computed(()=>{if(l.value&&u.value){const C=r.endColorStop/100,_=l.value.getBoundingClientRect(),R=u.value.offsetWidth;return Math.round(C*(_.width-R)+R/2)}return 0}),f=i.computed(()=>{let C=`background: linear-gradient(${r.angle}deg, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`;return r.type==="radial"&&(C=`background: radial-gradient(circle, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`),C}),p=C=>{var _;if(r.startActive=!0,l.value&&a.value){const R=(_=l.value)==null?void 0:_.getBoundingClientRect();let B=C.clientX-R.left;B=Math.max(a.value.offsetWidth/2,B),B=Math.min(B,R.width-a.value.offsetWidth/2),r.startColorStop=Math.round((B-a.value.offsetWidth/2)/(R.width-a.value.offsetWidth)*100),t("update:startColorStop",r.startColorStop),t("startColorStopChange",r.startColorStop)}},h=C=>{var _;if(r.startActive=!1,l.value&&u.value){const R=(_=l.value)==null?void 0:_.getBoundingClientRect();let B=C.clientX-R.left;B=Math.max(u.value.offsetWidth/2,B),B=Math.min(B,R.width-u.value.offsetWidth/2),r.endColorStop=Math.round((B-u.value.offsetWidth/2)/(R.width-u.value.offsetWidth)*100),t("update:endColorStop",r.endColorStop),t("endColorStopChange",r.endColorStop)}},v=C=>{const _=C.target,R=parseInt(_.value.replace("°",""));isNaN(R)||(r.angle=R%360),t("update:angle",r.angle),t("angleChange",r.angle)},y=C=>{r.angle=C,t("update:angle",r.angle),t("angleChange",r.angle)},m=C=>{C==="advance"?(o.value=!0,t("advanceChange",!0)):(s.value.hex=C,t("advanceChange",!1)),k()},b=C=>{s.value.alpha=C,k()},g=C=>{s.value.hue=C,k()},S=(C,_)=>{s.value.saturation=C,s.value.brightness=_,k()},x=C=>{s.value.lightness=C,k()},E=()=>{k()},k=()=>{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)},V=()=>{r.type=r.type==="linear"?"radial":"linear",t("typeChange",r.type)},j=fo($o,[],{}),A=Ee(()=>{if(e.disableHistory)return;const C=s.value.toRgbString();if(j.value=j.value.filter(_=>!O.equals(_,C)),!j.value.includes(C)){for(;j.value.length>Bo;)j.value.pop();j.value.unshift(C)}},500);return We(()=>{u.value&&a.value&&(Dt.triggerDragEvent(u.value,{drag:C=>{h(C)},end:C=>{h(C)}}),Dt.triggerDragEvent(a.value,{drag:C=>{p(C)},end:C=>{p(C)}}))}),J(()=>r.startColor,C=>{r.startColorRgba=C.toRgbString()},{deep:!0}),J(()=>r.endColor,C=>{r.endColorRgba=C.toRgbString()},{deep:!0}),J(()=>s.value,()=>{A()},{deep:!0}),{startGradientRef:a,stopGradientRef:u,colorRangeRef:l,state:r,currentColor:s,getStartColorLeft:d,getEndColorLeft:c,gradientBg:f,advancePanelShow:o,onDegreeBlur:v,onCompactChange:m,onAlphaChange:b,onHueChange:g,onBoardChange:S,onLightChange:x,historyColors:j,onBack:P,onDegreeChange:y,onDisplayChange:E,onTypeChange:V,lang:n==null?void 0:n.lang}}}),Qs=e=>(i.pushScopeId("data-v-c4d6d6ea"),e=e(),i.popScopeId(),e),Mg={class:"vc-gradient-picker"},qg={class:"vc-gradient-picker__header"},Dg={class:"vc-gradient__types"},Gg={class:"vc-gradient-wrap__types"},Lg={class:"vc-picker-degree-input vc-degree-input"},Hg={class:"vc-degree-input__control"},zg=["value"],Ug={class:"vc-degree-input__panel"},Wg={class:"vc-degree-input__disk"},Kg={class:"vc-gradient-picker__body"},Yg={class:"vc-color-range",ref:"colorRangeRef"},Xg={class:"vc-color-range__container"},Jg={class:"vc-gradient__stop__container"},Zg=["title"],Qg=Qs(()=>i.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),em=[Qg],tm=["title"],rm=Qs(()=>i.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),nm=[rm];function om(e,t,r,n,o,a){var u,l;const s=i.resolveComponent("Angle"),d=i.resolveComponent("Board"),c=i.resolveComponent("Hue"),f=i.resolveComponent("Palette"),p=i.resolveComponent("Lightness"),h=i.resolveComponent("Alpha"),v=i.resolveComponent("Display"),y=i.resolveComponent("History");return i.openBlock(),i.createElementBlock("div",Mg,[i.createElementVNode("div",qg,[i.createElementVNode("div",null,[i.withDirectives(i.createElementVNode("div",{class:"back",style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...m)=>e.onBack&&e.onBack(...m))},null,512),[[i.vShow,e.pickerType==="fk"&&e.advancePanelShow]])]),i.createElementVNode("div",Dg,[i.createElementVNode("div",Gg,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(["linear","radial"],m=>i.createElementVNode("div",{class:i.normalizeClass(["vc-gradient__type",{active:e.state.type===m}]),key:m,onClick:t[1]||(t[1]=(...b)=>e.onTypeChange&&e.onTypeChange(...b))},i.toDisplayString(e.lang?e.lang[m]:m),3)),64))]),i.withDirectives(i.createElementVNode("div",Lg,[i.createElementVNode("div",Hg,[i.createElementVNode("input",{value:e.state.angle,onBlur:t[2]||(t[2]=(...m)=>e.onDegreeBlur&&e.onDegreeBlur(...m))},null,40,zg),i.createTextVNode("deg ")]),i.createElementVNode("div",Ug,[i.createElementVNode("div",Wg,[i.createVNode(s,{angle:e.state.angle,"onUpdate:angle":t[3]||(t[3]=m=>e.state.angle=m),size:40,onChange:e.onDegreeChange},null,8,["angle","onChange"])])])],512),[[i.vShow,e.state.type==="linear"]])])]),i.createElementVNode("div",Kg,[i.createElementVNode("div",Yg,[i.createElementVNode("div",Xg,[i.createElementVNode("div",{class:"vc-background",style:i.normalizeStyle(e.gradientBg)},null,4),i.createElementVNode("div",Jg,[i.createElementVNode("div",{class:i.normalizeClass(["vc-gradient__stop",{"vc-gradient__stop--current":e.state.startActive}]),ref:"startGradientRef",title:(u=e.lang)==null?void 0:u.start,style:i.normalizeStyle({left:e.getStartColorLeft+"px",backgroundColor:e.state.startColorRgba})},em,14,Zg),i.createElementVNode("div",{class:i.normalizeClass(["vc-gradient__stop",{"vc-gradient__stop--current":!e.state.startActive}]),ref:"stopGradientRef",title:(l=e.lang)==null?void 0:l.end,style:i.normalizeStyle({left:e.getEndColorLeft+"px",backgroundColor:e.state.endColorRgba})},nm,14,tm)])])],512)]),e.advancePanelShow?(i.openBlock(),i.createBlock(d,{key:0,color:e.currentColor,onChange:e.onBoardChange},null,8,["color","onChange"])):i.createCommentVNode("",!0),e.advancePanelShow?(i.openBlock(),i.createBlock(c,{key:1,color:e.currentColor,onChange:e.onHueChange},null,8,["color","onChange"])):i.createCommentVNode("",!0),e.advancePanelShow?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(f,{key:2,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(p,{key:3,color:e.currentColor,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(h,{key:4,color:e.currentColor,onChange:e.onAlphaChange},null,8,["color","onChange"])),i.createVNode(v,{color:e.currentColor,"disable-alpha":e.disableAlpha,onChange:e.onDisplayChange},null,8,["color","disable-alpha","onChange"]),e.disableHistory?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(y,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])}const bl=pe(Fg,[["render",om],["__scopeId","data-v-c4d6d6ea"]]),am=i.defineComponent({name:"WrapContainer",props:{theme:N.oneOf(["white","black"]).def("white"),showTab:N.bool.def(!1),activeKey:N.oneOf(["pure","gradient"]).def("pure")},emits:["update:activeKey","change"],setup(e,{emit:t}){const r=i.reactive({activeKey:e.activeKey}),n=i.inject(Ho),o=a=>{r.activeKey=a,t("update:activeKey",a),t("change",a)};return J(()=>e.activeKey,a=>{r.activeKey=a}),{state:r,onActiveKeyChange:o,lang:n==null?void 0:n.lang}}}),im={class:"vc-colorpicker--container"},lm={key:0,class:"vc-colorpicker--tabs"},sm={class:"vc-colorpicker--tabs__inner"},um={class:"vc-btn__content"},cm={class:"vc-btn__content"};function dm(e,t,r,n,o,a){var u,l;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-colorpicker",e.theme])},[i.createElementVNode("div",im,[e.showTab?(i.openBlock(),i.createElementBlock("div",lm,[i.createElementVNode("div",sm,[i.createElementVNode("div",{class:i.normalizeClass(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="pure"}]),onClick:t[0]||(t[0]=s=>e.onActiveKeyChange("pure"))},[i.createElementVNode("button",null,[i.createElementVNode("div",um,i.toDisplayString((u=e.lang)==null?void 0:u.pure),1)])],2),i.createElementVNode("div",{class:i.normalizeClass(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="gradient"}]),onClick:t[1]||(t[1]=s=>e.onActiveKeyChange("gradient"))},[i.createElementVNode("button",null,[i.createElementVNode("div",cm,i.toDisplayString((l=e.lang)==null?void 0:l.gradient),1)])],2),i.createElementVNode("div",{class:"vc-colorpicker--tabs__bg",style:i.normalizeStyle({width:"50%",left:`calc(${e.state.activeKey==="gradient"?50:0}%)`})},null,4)])])):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"default",{},void 0,!0)])],2)}const fm=pe(am,[["render",dm],["__scopeId","data-v-0492277d"]]),pm={start:"Start",end:"End",pure:"Pure",gradient:"Gradient",linear:"linear",radial:"radial"},hm={start:"开始",end:"结束",pure:"纯色",gradient:"渐变",linear:"线性",radial:"径向"},vm={En:pm,"ZH-cn":hm},gm={isWidget:N.bool.def(!1),pickerType:N.oneOf(["fk","chrome"]).def("fk"),shape:N.oneOf(["circle","square"]).def("square"),pureColor:{type:[String,Object],default:"#000000"},gradientColor:N.string.def("linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)"),format:{type:String,default:"rgb"},disableAlpha:N.bool.def(!1),disableHistory:N.bool.def(!1),roundHistory:N.bool.def(!1),useType:N.oneOf(["pure","gradient","both"]).def("pure"),activeKey:N.oneOf(["pure","gradient"]).def("pure"),lang:{type:String,default:"ZH-cn"},zIndex:N.number.def(9999),pickerContainer:{type:[String,HTMLElement],default:"body"},debounce:N.number.def(100),theme:N.oneOf(["white","black"]).def("white"),blurClose:N.bool.def(!1),defaultPopup:N.bool.def(!1)},mm=i.defineComponent({name:"ColorPicker",components:{FkColorPicker:ml,ChromeColorPicker:yl,GradientColorPicker:bl,WrapContainer:fm},inheritAttrs:!1,props:gm,emits:["update:pureColor","pureColorChange","update:gradientColor","gradientColorChange","update:activeKey","activeKeyChange"],setup(e,{emit:t}){i.provide(Ho,{lang:i.computed(()=>vm[e.lang||"ZH-cn"])});const r=!!i.useSlots().extra,n=i.reactive({pureColor:e.pureColor||"",activeKey:e.useType==="gradient"?"gradient":e.activeKey,isAdvanceMode:!1}),o=new L("#000"),a=new L("#000"),u=new L(n.pureColor),l=i.reactive({startColor:o,endColor:a,startColorStop:0,endColorStop:100,angle:0,type:"linear",gradientColor:e.gradientColor}),s=i.ref(u),d=i.ref(e.defaultPopup),c=i.ref(null),f=i.ref(null);let p=null;const h=i.computed(()=>({background:n.activeKey!=="gradient"?O(n.pureColor).toRgbString():l.gradientColor})),v=i.computed(()=>n.activeKey==="gradient"?bl.name:e.pickerType==="fk"?ml.name:yl.name),y=C=>{n.isAdvanceMode=C},m=i.computed(()=>{const C={disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,pickerType:e.pickerType};return n.activeKey==="gradient"?{...C,startColor:l.startColor,endColor:l.endColor,angle:l.angle,type:l.type,startColorStop:l.startColorStop,endColorStop:l.endColorStop,onStartColorChange:_=>{l.startColor=_,E()},onEndColorChange:_=>{l.endColor=_,E()},onStartColorStopChange:_=>{l.startColorStop=_,E()},onEndColorStopChange:_=>{l.endColorStop=_,E()},onAngleChange:_=>{l.angle=_,E()},onTypeChange:_=>{l.type=_,E()},onAdvanceChange:y}:{...C,disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,color:s.value,onChange:V,onAdvanceChange:y}}),b=()=>{d.value=!0,p?p.update():P()},g=()=>{d.value=!1},S=Ee(()=>{!e.isWidget&&e.blurClose&&g()},100);Ic(f,()=>{g()});const x=()=>{var C,_,R,B;try{const[$]=xa.parse(l.gradientColor);if($&&$.type.includes("gradient")&&$.colorStops.length>=2){const M=$.colorStops[0],Y=$.colorStops[1];l.startColorStop=Number((C=M.length)==null?void 0:C.value)||0,l.endColorStop=Number((_=Y.length)==null?void 0:_.value)||0,$.type==="linear-gradient"&&((R=$.orientation)==null?void 0:R.type)==="angular"&&(l.angle=Number((B=$.orientation)==null?void 0:B.value)||0),l.type=$.type.split("-")[0];const[T,I,F,ee]=M.value,[me,Qe,Ne,ye]=Y.value;l.startColor=new L({r:Number(T),g:Number(I),b:Number(F),a:Number(ee)}),l.endColor=new L({r:Number(me),g:Number(Qe),b:Number(Ne),a:Number(ye)})}}catch($){console.log(`[Parse Color]: ${$}`)}},E=Ee(()=>{const C=k();try{l.gradientColor=xa.stringify(C),t("update:gradientColor",l.gradientColor),t("gradientColorChange",l.gradientColor)}catch(_){console.log(_)}},e.debounce),k=()=>{const C=[],_=l.startColor.RGB.map($=>$.toString()),R=l.endColor.RGB.map($=>$.toString()),B=[{type:"rgba",value:[_[0],_[1],_[2],_[3]],length:{value:l.startColorStop+"",type:"%"}},{type:"rgba",value:[R[0],R[1],R[2],R[3]],length:{value:l.endColorStop+"",type:"%"}}];return l.type==="linear"?C.push({type:"linear-gradient",orientation:{type:"angular",value:l.angle+""},colorStops:B}):l.type==="radial"&&C.push({type:"radial-gradient",orientation:[{type:"shape",value:"circle"}],colorStops:B}),C},P=()=>{c.value&&f.value&&(p=Cf(c.value,f.value,{placement:"auto",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{allowedAutoPlacements:["top","bottom","left","right"],rootBoundary:"viewport"}}]}))},V=C=>{s.value=C,n.pureColor=C.toString(e.format),j()},j=Ee(()=>{t("update:pureColor",n.pureColor),t("pureColorChange",n.pureColor)},e.debounce),A=C=>{n.activeKey=C,t("update:activeKey",C),t("activeKeyChange",C)};return We(()=>{x(),p||P()}),J(()=>e.gradientColor,C=>{C!=l.gradientColor&&(l.gradientColor=C)}),J(()=>l.gradientColor,()=>{x()}),J(()=>e.activeKey,C=>{n.activeKey=C}),J(()=>e.useType,C=>{n.activeKey!=="gradient"&&C==="gradient"?n.activeKey="gradient":n.activeKey="pure"}),J(()=>e.pureColor,C=>{O.equals(C,n.pureColor)||(n.pureColor=C,s.value=new L(C))},{deep:!0}),{colorCubeRef:c,pickerRef:f,showPicker:d,colorInstance:s,getBgColorStyle:h,getComponentName:v,getBindArgs:m,state:n,hasExtra:r,onColorChange:V,onShowPicker:b,onActiveKeyChange:A,onAutoClose:S}}}),ym={key:0,class:"vc-color-extra"},bm={key:0,class:"vc-color-extra"};function Cm(e,t,r,n,o,a){const u=i.resolveComponent("WrapContainer");return i.openBlock(),i.createElementBlock(i.Fragment,null,[e.isWidget?(i.openBlock(),i.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:i.normalizeStyle({zIndex:e.zIndex}),theme:e.theme,onChange:e.onActiveKeyChange},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.getComponentName),i.mergeProps({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(i.openBlock(),i.createElementBlock("div",ym,[i.renderSlot(e.$slots,"extra",{},void 0,!0)])):i.createCommentVNode("",!0)]),_:3},8,["active-key","show-tab","style","theme","onChange"])):i.createCommentVNode("",!0),e.isWidget?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",{class:i.normalizeClass(["vc-color-wrap transparent",{round:e.shape==="circle"}]),ref:"colorCubeRef"},[i.createElementVNode("div",{class:"current-color",style:i.normalizeStyle(e.getBgColorStyle),onClick:t[1]||(t[1]=(...l)=>e.onShowPicker&&e.onShowPicker(...l))},null,4)],2),(i.openBlock(),i.createBlock(i.Teleport,{to:e.pickerContainer},[i.withDirectives(i.createElementVNode("div",{ref:"pickerRef",style:i.normalizeStyle({zIndex:e.zIndex}),onMouseleave:t[3]||(t[3]=(...l)=>e.onAutoClose&&e.onAutoClose(...l))},[e.showPicker?(i.openBlock(),i.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:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.getComponentName),i.mergeProps({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(i.openBlock(),i.createElementBlock("div",bm,[i.renderSlot(e.$slots,"extra",{},void 0,!0)])):i.createCommentVNode("",!0)]),_:3},8,["show-tab","theme","active-key","onChange"])):i.createCommentVNode("",!0)],36),[[i.vShow,e.showPicker]])],8,["to"]))],64))],64)}const wm=pe(mm,[["render",Cm],["__scopeId","data-v-354ca836"]]),eu=i.defineComponent({name:"GctFormColor",components:{ColorPicker:wm},inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String}},emits:["update:value"],setup(e){const t=w.useNamespace("form-color"),r=new w.ColorEditorController(e.model),n=w.useGctFormValue();return{ns:t,c:r,val:n}},render(){return i.createVNode(i.resolveComponent("color-picker"),i.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 tu{constructor(){D(this,"component","gct-form-color")}}const Sm=w.widthEditorInstall(w.EditorType.COLOR,()=>new tu,eu),xm=w.widthEditorInstall(w.EditorTypeOld.COLOR,()=>new tu,eu);class Om{constructor(){D(this,"component","gct-form-check-switch")}}const Em=i.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?i.createVNode("div",{class:[this.ns.b(),this.ns.m("switch"),this.ns.is("readonly",this.model.readonly)]},[i.createVNode(i.resolveComponent("a-switch"),i.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)]):i.createVNode(i.resolveComponent("a-checkbox"),i.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]})}}),km=w.widthEditorInstall(w.EditorType.CHECK_SWITCH,()=>new Om,Em);class _m{constructor(){D(this,"component","gct-form-i18n")}}const Am=i.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=i.computed({get:()=>r?r.value:"",set:a=>{r&&(r.value=a)}});return{ns:e,val:n,i18nConfigValue:o}},render(){return i.createVNode(i.resolveComponent("i18n-select-input"),i.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)}}),Tm=w.widthEditorInstall(w.EditorType.I18N,()=>new _m,Am),Nm=i.defineComponent({name:"GctFormIconSelect",props:{value:{type:Object},model:{type:Object,required:!0}},emits:["update:value"],setup(e,{emit:t}){var s,d,c;const r=w.useNamespace("gct-form-icon-select"),n=i.ref(e.value),o=i.ref(((s=n.value)==null?void 0:s.icon)||e.model.defaultIcon),a=i.ref(((d=n.value)==null?void 0:d.color)||e.model.defaultColor),u=i.ref(((c=n.value)==null?void 0:c.background)||e.model.defaultBackground);i.watch(()=>e.value,f=>{n.value=f,f&&(o.value=f.icon,a.value=f.color)}),i.watch([o,a,u],()=>{n.value={icon:o.value,color:a.value},t("update:value",n.value)});const l=i.computed(()=>{if(e.model.size)return{"--box-size":e.model.size+"px"}});return{ns:r,icon:o,color:a,background:u,nextPickerStyle:l}},render(){return i.createVNode("div",{class:this.ns.b()},[i.createVNode(i.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?i.createVNode("span",{class:this.ns.e("title")},[this.model.label]):null])}});let Pm=class{constructor(){D(this,"component","gct-form-icon-select")}};const Rm=w.widthEditorInstall(w.EditorType.ICON_SELECT,()=>new Pm,Nm);class ru{constructor(){D(this,"component","gct-form-number")}}const nu=i.defineComponent({name:"GctFormNumber",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=w.useNamespace("gct-form-number"),r=new w.EditorController(e.model),n=w.useGctFormValue();return{ns:t,c:r,val:n}},render(){return i.createVNode(i.resolveComponent("a-input-number"),i.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,max:this.model.max,min:this.model.min,precision:this.model.precision}),null)}}),jm=w.widthEditorInstall(w.EditorType.NUMBER,()=>new ru,nu),Im=w.widthEditorInstall(w.EditorTypeOld.NUMBER,()=>new ru,nu);class Vm{constructor(){D(this,"component","gct-form-picker")}}const $m=i.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=i.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=i.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)}}),a=()=>e.c.loadDictionary();return o.value!=null&&e.c.loadDictionary(),{ns:r,val:o,nameVal:n,loadOptions:a,onChange:(l,s)=>{n.value=s.label}}},render(){return i.createVNode(i.resolveComponent("a-select"),i.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)}}),Bm=w.widthEditorInstall(w.EditorType.PICKER,()=>new Vm,$m);class Fm{constructor(){D(this,"component","gct-form-select")}}const Mm=i.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=i.computed(()=>e.c.state.options&&e.c.state.options.length>0?e.c.state.options:[]);return{ns:t,val:r,options:n}},render(){return i.createVNode(i.resolveComponent("a-select"),i.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)}}),qm=w.widthEditorInstall(w.EditorType.SELECT,()=>new Fm,Mm);class Dm{constructor(){D(this,"component","gct-form-span")}}const Gm=i.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}=i.toRefs(e);function a(){const{isSuccessRef:l}=w.useCopyToClipboard(e.value);l.value&&qe.message.success(_gct.t("sys.copySuccess"))}o.value.loadDictionary();const u=i.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:a}},render(){return i.createVNode("div",{class:this.ns.b()},[i.createVNode("span",{class:this.ns.e("info")},[this.val]),this.model.copy&&i.createVNode("span",{class:this.ns.e("copy")},[i.createVNode("i",{class:"iconfont icon-fuzhi primary-gct",onClick:this.handleClipboardKey},null)])])}}),Lm=w.widthEditorInstall(w.EditorType.SPAN,()=>new Dm,Gm);class ou{constructor(){D(this,"component","gct-form-switch")}}const au=i.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 i.createVNode("div",{class:this.ns.b()},[i.createVNode(i.resolveComponent("a-switch"),i.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)])}}),Hm=w.widthEditorInstall(w.EditorType.SWITCH,()=>new ou,au),zm=w.widthEditorInstall(w.EditorTypeOld.SWITCH,()=>new ou,au);class iu{constructor(){D(this,"component","gct-form-text")}}const lu=i.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 i.createVNode(i.resolveComponent("a-input"),i.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)}}),Um=w.widthEditorInstall(w.EditorType.TEXT,()=>new iu,lu),Wm=w.widthEditorInstall(w.EditorTypeOld.TEXT,()=>new iu,lu);class Km{constructor(){D(this,"component","gct-form-textarea")}}const Ym=i.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 i.createVNode(i.resolveComponent("a-textarea"),i.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)}}),Xm=w.widthEditorInstall(w.EditorType.TEXTAREA,()=>new Km,Ym);function Jm(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const su=i.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")),i.createVNode(qe.RadioGroup,i.mergeProps({value:this.val,"onUpdate:value":r=>this.val=r,size:"small","button-style":"solid"},e),Jm(t=this.c.state.options.map(r=>i.createVNode(qe.RadioButton,{key:r.value,value:r.value},{default:()=>[r.label]})))?t:{default:()=>[t]})}return e.class.push(this.ns.m("radio")),i.createVNode(qe.RadioGroup,i.mergeProps({value:this.val,"onUpdate:value":t=>this.val=t,options:this.c.state.options},e),null)}});let uu=class{constructor(){D(this,"component","gct-form-radio")}};const Zm=w.widthEditorInstall(w.EditorType.RADIO,()=>new uu,su),Qm=w.widthEditorInstall(w.EditorTypeOld.RADIO,()=>new uu,su),ey=i.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 i.createVNode("div",{class:this.ns.b()},[this.model.icon?i.createVNode("span",{class:this.ns.e("icon")},[i.createVNode("i",{class:`iconfont ${this.model.icon}`},null)]):null,i.createVNode("span",{class:this.ns.e("content")},[this.val||this.model.content])])}});let ty=class{constructor(){D(this,"component","gct-form-info")}};const ry=w.widthEditorInstall(w.EditorType.INFO,()=>new ty,ey),cu=i.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=i.computed(()=>n.value),a=i.computed(()=>mt.cloneDeep(e.c.state.options));return{ns:r,checked:o,onChange:l=>{a.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:a}},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 i.createVNode(qe.CheckboxGroup,i.mergeProps({value:this.checked,"onUpdate:value":t=>this.checked=t,options:this.options},e,{onChange:this.onChange}),null)}});class du{constructor(){D(this,"component","gct-form-checkbox")}}const ny=w.widthEditorInstall(w.EditorType.CHECKBOX,()=>new du,cu),oy=w.widthEditorInstall(w.EditorTypeOld.CHECKBOX,()=>new du,cu),ay={install(e){e.use(vc),e.use(Sm),e.use(km),e.use(Tm),e.use(Rm),e.use(jm),e.use(Bm),e.use(qm),e.use(Lm),e.use(Hm),e.use(Um),e.use(Xm),e.use(Zm),e.use(ry),e.use(ny),e.use(oy),e.use(xm),e.use(Qm),e.use(zm),e.use(Wm),e.use(Im)}},Cl=i.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=i.ref(null),a=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=a,n.validateItem=u,i.watch(e.context,()=>{Object.assign(n.context,e.context),n.state.isNew=!n.context.id},{immediate:!0}),i.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:[mt.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=i.createVNode(i.resolveComponent("gct-form"),{class:"h-full",ref:"formRef",model:this.model,c:this.c},null)),i.createVNode("div",{class:this.ns.b()},[e])}}),iy={install(e){e.component(Cl.name,Cl)}};function ly(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const wl=i.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=i.computed(()=>{var a;return!!((a=e.model.rules)!=null&&a.find(u=>u.required))});return{ns:t,style:r,required:n,renderLabelTooltip:()=>e.model.labelTooltip?i.createVNode(i.resolveComponent("a-tooltip"),{class:t.e("label-tooltip"),placement:"topLeft",title:e.model.labelTooltip},{default:()=>[i.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=i.h(typeof e.component=="string"?i.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=[i.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=()=>[i.createVNode("span",null,[this.model.label]),this.renderLabelTooltip()]),i.createVNode(i.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"},ly(n)?n:{default:()=>[n]})}});function sy(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Sl=i.defineComponent({name:"GctForm",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form");i.provide("formController",e.c);const r=i.ref(null),n=e.c;Object.keys(n.item).forEach(d=>{const c=n.item[d];c.state=i.reactive(c.state)});const a=d=>i.createVNode(i.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 i.h(typeof c.component=="string"?i.resolveComponent(c.component):c.component,{key:d.name,model:d,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=a(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:a,renderContainer:u,renderChildren:l}},render(){let e;return i.createVNode(i.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},sy(e=this.model.children.map(t=>this.renderContainer(t)))?e:{default:()=>[e]})}});class uy{constructor(){D(this,"component","gct-form-item")}createController(t,r){return w.useFormItemController(()=>new w.FormItemController(t,r))}}class cy{constructor(){D(this,"component","gct-form-hidden-item")}createController(t,r){return w.useFormItemController(()=>new w.FormHiddenItemController(t,r))}}class dy{constructor(){D(this,"component","gct-form-collapse-pane")}createController(t,r){return w.useFormItemController(()=>new w.FormCollapsePaneController(t,r))}}function xl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Ol=i.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 i.createVNode(i.resolveComponent("flex-container"),{layout:e.model.flex},xl(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return i.createVNode(i.resolveComponent("grid-container"),{layout:e.model.grid},xl(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(){var r,n;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((n=(r=this.$slots).default)==null?void 0:n.call(r))||[],t=e[e.length-1];return t&&(t.props=i.mergeProps(t.props||{},{class:this.ns.e("last-child")})),i.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),fy={install(e){_gct.register.formItem.register("collapse-pane",()=>new dy),e.component(Ol.name,Ol)}};class py{constructor(){D(this,"component","gct-form-collapse")}createController(t,r){return w.useFormItemController(()=>new w.FormCollapseController(t,r))}}const El=i.defineComponent({name:"GctFormCollapse",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){var u;const t=w.useNamespace("form-collapse"),r=i.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=i.ref([]);o.value=((u=e.model.children)==null?void 0:u.map(l=>l.name))||[];const a=i.computed(()=>e.model.expandIconPosition==="left"?"left":"right");return{ns:t,keys:r,style:n,activeKeys:o,expandIconPosition:a}},render(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return i.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":n=>this.activeKeys=n},{default:()=>{var n;return[(n=this.model.children)==null?void 0:n.map((o,a)=>{if(e[a].props.c.state.visible===!1)return;const l=o.collapsible!==!1?void 0:"disabled";return i.createVNode(qe.Collapse.Panel,{key:o.name,header:o.title,collapsible:l},{default:()=>[e[a]]})})]}})}}),hy={install(e){_gct.register.formItem.register("collapse",()=>new py),e.component(El.name,El)}};class vy{constructor(){D(this,"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]"&&!i.isVNode(e)}const kl=i.defineComponent({name:"GctFormGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form-group"),r=i.ref([0]);function n(a){if(e.model.layout==="flex")return i.createVNode(i.resolveComponent("flex-container"),{layout:e.model.flex},Yn(a)?a:{default:()=>[a]});if(e.model.layout==="grid")return i.createVNode(i.resolveComponent("grid-container"),{layout:e.model.grid},Yn(a)?a:{default:()=>[a]});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(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];if(this.model.isCollapse){let n;return i.createVNode(i.resolveComponent("a-collapse"),{activeKey:this.keys,"onUpdate:activeKey":o=>this.keys=o,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:()=>[i.createVNode(i.resolveComponent("a-collapse-panel"),{key:"0",header:this.model.title},Yn(n=this.renderContainer(e))?n:{default:()=>[n]})]})}return i.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?i.createVNode("div",{class:this.ns.e("title")},[this.model.title]):null,i.createVNode("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),gy={install(e){_gct.register.formItem.register("container",()=>new vy),e.component(kl.name,kl)}};class my{constructor(){D(this,"component","gct-form-tab")}createController(t,r){return w.useFormItemController(()=>new w.FormTabController(t,r))}}const _l=i.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(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return i.createVNode(i.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:()=>{var n;return[(n=this.model.children)==null?void 0:n.map((o,a)=>i.createVNode(i.resolveComponent("a-tab-pane"),{key:o.name,tab:o.title},{default:()=>[e[a]]}))]}})}}),yy={install(e){_gct.register.formItem.register("tab",()=>new my),e.component(_l.name,_l)}};class by{constructor(){D(this,"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]"&&!i.isVNode(e)}const Tl=i.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 i.createVNode(i.resolveComponent("flex-container"),{layout:e.model.flex},Al(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return i.createVNode(i.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(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return i.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),Cy={install(e){_gct.register.formItem.register("tab-pane",()=>new by),e.component(Tl.name,Tl)}};class wy{constructor(){D(this,"component","gct-form-title-group")}createController(t,r){return w.useFormItemController(()=>new w.FormGroupController(t,r))}}function Nl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Pl=i.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=i.ref([0]);function n(a){if(e.model.layout==="flex")return i.createVNode(i.resolveComponent("flex-container"),{layout:e.model.flex},Nl(a)?a:{default:()=>[a]});if(e.model.layout==="grid")return i.createVNode(i.resolveComponent("grid-container"),{layout:e.model.grid},Nl(a)?a:{default:()=>[a]});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(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return i.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[i.createVNode("div",{class:this.ns.e("title")},[this.model.title]),i.createVNode("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),Sy={install(e){_gct.register.formItem.register(w.FormContainerType.FORM_TITLE_GROUP,()=>new wy),e.component(Pl.name,Pl)}},xy={install(e){_gct.register.formItem.register("item",()=>new uy),_gct.register.formItem.register("hidden",()=>new cy),e.use(fy),e.use(hy),e.use(gy),e.use(yy),e.use(Cy),e.use(Sy),e.component(Sl.name,Sl),e.component(wl.name,wl)}},Oy={install(e){e.use(ay),e.use(iy),e.use(xy),e.component(ia.name,ia),e.component(la.name,la),e.component(Xn.name,Xn),e.component(ua.name,ua),e.component(ca.name,ca)}};exports.default=Oy;
|
|
15
|
+
`))),l}}:{type:r})}function Op(e){return ie("arrayOf",{type:Array,validator:function(t){var r,n=t.every(function(o){return(r=Ke(e,o))===!0});return n||ne(`arrayOf - value validation error:
|
|
16
|
+
`+kr(r)),n}})}function xp(e){return ie("instanceOf",{type:e})}function Ep(e){return ie("objectOf",{type:Object,validator:function(t){var r,n=Object.keys(t).every(function(o){return(r=Ke(e,t[o]))===!0});return n||ne(`objectOf - value validation error:
|
|
17
|
+
`+kr(r)),n}})}function kp(e){var t=Object.keys(e),r=t.filter(function(o){var a;return!!(!((a=e[o])===null||a===void 0)&&a.required)}),n=ie("shape",{type:Object,validator:function(o){var a=this;if(!Ue(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 ne(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 a._vueTypes_isLoose===!0||(ne('shape - shape definition does not include a "'+s+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var d=Ke(e[s],o[s]);return typeof d=="string"&&ne('shape - "'+s+`" property validation error:
|
|
18
|
+
`+kr(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 be=function(){function e(){}return e.extend=function(t){var r=this;if(ft(t))return t.forEach(function(f){return r.extend(f)}),this;var n=t.name,o=t.validate,a=o!==void 0&&o,u=t.getter,l=u!==void 0&&u,s=gs(t,["name","validate","getter"]);if(Mt(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var d,c=s.type;return dr(c)?(delete s.type,Object.defineProperty(this,n,l?{get:function(){return Va(n,c,s)}}:{value:function(){var f,p=Va(n,c,s);return p.validator&&(p.validator=(f=p.validator).bind.apply(f,[p].concat([].slice.call(arguments)))),p}})):(d=l?{get:function(){var f=Object.assign({},s);return a?Se(n,f):ie(n,f)},enumerable:!0}:{value:function(){var f,p,h=Object.assign({},s);return f=a?Se(n,h):ie(n,h),h.validator&&(f.validator=(p=h.validator).bind.apply(p,[f].concat([].slice.call(arguments)))),f},enumerable:!0},Object.defineProperty(this,n,d))},hs(e,null,[{key:"any",get:function(){return dp()}},{key:"func",get:function(){return fp().def(this.defaults.func)}},{key:"bool",get:function(){return pp().def(this.defaults.bool)}},{key:"string",get:function(){return hp().def(this.defaults.string)}},{key:"number",get:function(){return vp().def(this.defaults.number)}},{key:"array",get:function(){return gp().def(this.defaults.array)}},{key:"object",get:function(){return mp().def(this.defaults.object)}},{key:"integer",get:function(){return yp().def(this.defaults.integer)}},{key:"symbol",get:function(){return bp()}}]),e}();function _p(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(r){function n(){return r.apply(this,arguments)||this}return vs(n,r),hs(n,null,[{key:"sensibleDefaults",get:function(){return ir({},this.defaults)},set:function(o){this.defaults=o!==!1?ir({},o!==!0?o:e):{}}}]),n}(be)).defaults=ir({},e),t}be.defaults={},be.custom=Cp,be.oneOf=wp,be.instanceOf=xp,be.oneOfType=Sp,be.arrayOf=Op,be.objectOf=Ep,be.shape=kp,be.utils={validate:function(e,t){return Ke(t,e)===!0},toType:function(e,t,r){return r===void 0&&(r=!1),r?Se(e,t):ie(e,t)}};var N=function(e){function t(){return e.apply(this,arguments)||this}return vs(t,e),t}(_p()),$a={},Ot,Ba;function ge(){if(Ba)return Ot;Ba=1;var e=function(t){return t&&t.Math===Math&&t};return Ot=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof wa=="object"&&wa)||e(typeof Ot=="object"&&Ot)||function(){return this}()||Function("return this")(),Ot}var Fr,Fa;function Ye(){return Fa||(Fa=1,Fr=function(e){try{return!!e()}catch{return!0}}),Fr}var Mr,Ma;function Xe(){if(Ma)return Mr;Ma=1;var e=Ye();return Mr=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Mr}var qr={exports:{}},Dr,qa;function Ss(){if(qa)return Dr;qa=1;var e=Ye();return Dr=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),Dr}var Gr,Da;function Ut(){if(Da)return Gr;Da=1;var e=Ss(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return Gr=e?n:function(o){return function(){return r.apply(o,arguments)}},Gr}var Lr,Ga;function $e(){if(Ga)return Lr;Ga=1;var e=typeof document=="object"&&document.all;return Lr=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},Lr}var Hr,La;function Os(){return La||(La=1,Hr=function(e){return e==null}),Hr}var Ur,Ha;function Ap(){if(Ha)return Ur;Ha=1;var e=Os(),t=TypeError;return Ur=function(r){if(e(r))throw new t("Can't call method on "+r);return r},Ur}var zr,Ua;function Tp(){if(Ua)return zr;Ua=1;var e=Ap(),t=Object;return zr=function(r){return t(e(r))},zr}var Wr,za;function _r(){if(za)return Wr;za=1;var e=Ut(),t=Tp(),r=e({}.hasOwnProperty);return Wr=Object.hasOwn||function(o,a){return r(t(o),a)},Wr}var Kr,Wa;function Np(){if(Wa)return Kr;Wa=1;var e=Xe(),t=_r(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,o=t(r,"name"),a=o&&(function(){}).name==="something",u=o&&(!e||e&&n(r,"name").configurable);return Kr={EXISTS:o,PROPER:a,CONFIGURABLE:u},Kr}var Yr={exports:{}},Xr,Ka;function Pp(){return Ka||(Ka=1,Xr=!1),Xr}var Jr,Ya;function Rp(){if(Ya)return Jr;Ya=1;var e=ge(),t=Object.defineProperty;return Jr=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},Jr}var Xa;function So(){if(Xa)return Yr.exports;Xa=1;var e=Pp(),t=ge(),r=Rp(),n="__core-js_shared__",o=Yr.exports=t[n]||r(n,{});return(o.versions||(o.versions=[])).push({version:"3.41.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Yr.exports}var Zr,Ja;function jp(){if(Ja)return Zr;Ja=1;var e=Ut(),t=$e(),r=So(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(o){return n(o)}),Zr=r.inspectSource,Zr}var Qr,Za;function Ip(){if(Za)return Qr;Za=1;var e=ge(),t=$e(),r=e.WeakMap;return Qr=t(r)&&/native code/.test(String(r)),Qr}var en,Qa;function zt(){if(Qa)return en;Qa=1;var e=$e();return en=function(t){return typeof t=="object"?t!==null:e(t)},en}var tn={},rn,ei;function Vp(){if(ei)return rn;ei=1;var e=ge(),t=zt(),r=e.document,n=t(r)&&t(r.createElement);return rn=function(o){return n?r.createElement(o):{}},rn}var nn,ti;function $p(){if(ti)return nn;ti=1;var e=Xe(),t=Ye(),r=Vp();return nn=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),nn}var on,ri;function Bp(){if(ri)return on;ri=1;var e=Xe(),t=Ye();return on=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),on}var an,ni;function xs(){if(ni)return an;ni=1;var e=zt(),t=String,r=TypeError;return an=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},an}var ln,oi;function Es(){if(oi)return ln;oi=1;var e=Ss(),t=Function.prototype.call;return ln=e?t.bind(t):function(){return t.apply(t,arguments)},ln}var sn,ai;function Fp(){if(ai)return sn;ai=1;var e=ge(),t=$e(),r=function(n){return t(n)?n:void 0};return sn=function(n,o){return arguments.length<2?r(e[n]):e[n]&&e[n][o]},sn}var un,ii;function Mp(){if(ii)return un;ii=1;var e=Ut();return un=e({}.isPrototypeOf),un}var cn,li;function qp(){if(li)return cn;li=1;var e=ge(),t=e.navigator,r=t&&t.userAgent;return cn=r?String(r):"",cn}var dn,si;function Dp(){if(si)return dn;si=1;var e=ge(),t=qp(),r=e.process,n=e.Deno,o=r&&r.versions||n&&n.version,a=o&&o.v8,u,l;return a&&(u=a.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]))),dn=l,dn}var fn,ui;function ks(){if(ui)return fn;ui=1;var e=Dp(),t=Ye(),r=ge(),n=r.String;return fn=!!Object.getOwnPropertySymbols&&!t(function(){var o=Symbol("symbol detection");return!n(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&e&&e<41}),fn}var pn,ci;function _s(){if(ci)return pn;ci=1;var e=ks();return pn=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",pn}var hn,di;function As(){if(di)return hn;di=1;var e=Fp(),t=$e(),r=Mp(),n=_s(),o=Object;return hn=n?function(a){return typeof a=="symbol"}:function(a){var u=e("Symbol");return t(u)&&r(u.prototype,o(a))},hn}var vn,fi;function Gp(){if(fi)return vn;fi=1;var e=String;return vn=function(t){try{return e(t)}catch{return"Object"}},vn}var gn,pi;function Lp(){if(pi)return gn;pi=1;var e=$e(),t=Gp(),r=TypeError;return gn=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},gn}var mn,hi;function Hp(){if(hi)return mn;hi=1;var e=Lp(),t=Os();return mn=function(r,n){var o=r[n];return t(o)?void 0:e(o)},mn}var yn,vi;function Up(){if(vi)return yn;vi=1;var e=Es(),t=$e(),r=zt(),n=TypeError;return yn=function(o,a){var u,l;if(a==="string"&&t(u=o.toString)&&!r(l=e(u,o))||t(u=o.valueOf)&&!r(l=e(u,o))||a!=="string"&&t(u=o.toString)&&!r(l=e(u,o)))return l;throw new n("Can't convert object to primitive value")},yn}var bn,gi;function Ts(){if(gi)return bn;gi=1;var e=So();return bn=function(t,r){return e[t]||(e[t]=r||{})},bn}var Cn,mi;function Ns(){if(mi)return Cn;mi=1;var e=Ut(),t=0,r=Math.random(),n=e(1 .toString);return Cn=function(o){return"Symbol("+(o===void 0?"":o)+")_"+n(++t+r,36)},Cn}var wn,yi;function zp(){if(yi)return wn;yi=1;var e=ge(),t=Ts(),r=_r(),n=Ns(),o=ks(),a=_s(),u=e.Symbol,l=t("wks"),s=a?u.for||u:u&&u.withoutSetter||n;return wn=function(d){return r(l,d)||(l[d]=o&&r(u,d)?u[d]:s("Symbol."+d)),l[d]},wn}var Sn,bi;function Wp(){if(bi)return Sn;bi=1;var e=Es(),t=zt(),r=As(),n=Hp(),o=Up(),a=zp(),u=TypeError,l=a("toPrimitive");return Sn=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)},Sn}var On,Ci;function Kp(){if(Ci)return On;Ci=1;var e=Wp(),t=As();return On=function(r){var n=e(r,"string");return t(n)?n:n+""},On}var wi;function Ps(){if(wi)return tn;wi=1;var e=Xe(),t=$p(),r=Bp(),n=xs(),o=Kp(),a=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s="enumerable",d="configurable",c="writable";return tn.f=e?r?function(p,h,v){if(n(p),h=o(h),n(v),typeof p=="function"&&h==="prototype"&&"value"in v&&c in v&&!v[c]){var y=l(p,h);y&&y[c]&&(p[h]=v.value,v={configurable:d in v?v[d]:y[d],enumerable:s in v?v[s]:y[s],writable:!1})}return u(p,h,v)}:u:function(p,h,v){if(n(p),h=o(h),n(v),t)try{return u(p,h,v)}catch{}if("get"in v||"set"in v)throw new a("Accessors not supported");return"value"in v&&(p[h]=v.value),p},tn}var xn,Si;function Yp(){return Si||(Si=1,xn=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),xn}var En,Oi;function Xp(){if(Oi)return En;Oi=1;var e=Xe(),t=Ps(),r=Yp();return En=e?function(n,o,a){return t.f(n,o,r(1,a))}:function(n,o,a){return n[o]=a,n},En}var kn,xi;function Jp(){if(xi)return kn;xi=1;var e=Ts(),t=Ns(),r=e("keys");return kn=function(n){return r[n]||(r[n]=t(n))},kn}var _n,Ei;function Zp(){return Ei||(Ei=1,_n={}),_n}var An,ki;function Qp(){if(ki)return An;ki=1;var e=Ip(),t=ge(),r=zt(),n=Xp(),o=_r(),a=So(),u=Jp(),l=Zp(),s="Object already initialized",d=t.TypeError,c=t.WeakMap,f,p,h,v=function(g){return h(g)?p(g):f(g,{})},y=function(g){return function(S){var O;if(!r(S)||(O=p(S)).type!==g)throw new d("Incompatible receiver, "+g+" required");return O}};if(e||a.state){var m=a.state||(a.state=new c);m.get=m.get,m.has=m.has,m.set=m.set,f=function(g,S){if(m.has(g))throw new d(s);return S.facade=g,m.set(g,S),S},p=function(g){return m.get(g)||{}},h=function(g){return m.has(g)}}else{var b=u("state");l[b]=!0,f=function(g,S){if(o(g,b))throw new d(s);return S.facade=g,n(g,b,S),S},p=function(g){return o(g,b)?g[b]:{}},h=function(g){return o(g,b)}}return An={set:f,get:p,has:h,enforce:v,getterFor:y},An}var _i;function eh(){if(_i)return qr.exports;_i=1;var e=Ut(),t=Ye(),r=$e(),n=_r(),o=Xe(),a=Np().CONFIGURABLE,u=jp(),l=Qp(),s=l.enforce,d=l.get,c=String,f=Object.defineProperty,p=e("".slice),h=e("".replace),v=e([].join),y=o&&!t(function(){return f(function(){},"length",{value:8}).length!==8}),m=String(String).split("String"),b=qr.exports=function(g,S,O){p(c(S),0,7)==="Symbol("&&(S="["+h(c(S),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),O&&O.getter&&(S="get "+S),O&&O.setter&&(S="set "+S),(!n(g,"name")||a&&g.name!==S)&&(o?f(g,"name",{value:S,configurable:!0}):g.name=S),y&&O&&n(O,"arity")&&g.length!==O.arity&&f(g,"length",{value:O.arity});try{O&&n(O,"constructor")&&O.constructor?o&&f(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch{}var E=s(g);return n(E,"source")||(E.source=v(m,typeof S=="string"?S:"")),g};return Function.prototype.toString=b(function(){return r(this)&&d(this).source||u(this)},"toString"),qr.exports}var Tn,Ai;function th(){if(Ai)return Tn;Ai=1;var e=eh(),t=Ps();return Tn=function(r,n,o){return o.get&&e(o.get,n,{getter:!0}),o.set&&e(o.set,n,{setter:!0}),t.f(r,n,o)},Tn}var Nn,Ti;function rh(){if(Ti)return Nn;Ti=1;var e=xs();return Nn=function(){var t=e(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},Nn}var Ni;function nh(){if(Ni)return $a;Ni=1;var e=ge(),t=Xe(),r=th(),n=rh(),o=Ye(),a=e.RegExp,u=a.prototype,l=t&&o(function(){var s=!0;try{a(".","d")}catch{s=!1}var d={},c="",f=s?"dgimsy":"gimsy",p=function(m,b){Object.defineProperty(d,m,{get:function(){return c+=b,!0}})},h={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};s&&(h.hasIndices="d");for(var v in h)p(v,h[v]);var y=Object.getOwnPropertyDescriptor(u,"flags").get.call(d);return y!==f||c!==f});return l&&r(u,"flags",{configurable:!0,get:n}),$a}nh();var Pi=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 rr=function(e){return e&&e.Math==Math&&e},W=rr(typeof globalThis=="object"&&globalThis)||rr(typeof window=="object"&&window)||rr(typeof self=="object"&&self)||rr(typeof Pi=="object"&&Pi)||function(){return this}()||Function("return this")(),D=function(e){try{return!!e()}catch{return!0}},se=!D(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ri={}.propertyIsEnumerable,ji=Object.getOwnPropertyDescriptor,oh={f:ji&&!Ri.call({1:2},1)?function(e){var t=ji(this,e);return!!t&&t.enumerable}:Ri},Ar=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ah={}.toString,ke=function(e){return ah.call(e).slice(8,-1)},ih="".split,Tr=D(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return ke(e)=="String"?ih.call(e,""):Object(e)}:Object,Re=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},yt=function(e){return Tr(Re(e))},K=function(e){return typeof e=="object"?e!==null:typeof e=="function"},xo=function(e,t){if(!K(e))return e;var r,n;if(t&&typeof(r=e.toString)=="function"&&!K(n=r.call(e))||typeof(r=e.valueOf)=="function"&&!K(n=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!K(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},lh={}.hasOwnProperty,z=function(e,t){return lh.call(e,t)},no=W.document,sh=K(no)&&K(no.createElement),Rs=function(e){return sh?no.createElement(e):{}},js=!se&&!D(function(){return Object.defineProperty(Rs("div"),"a",{get:function(){return 7}}).a!=7}),Ii=Object.getOwnPropertyDescriptor,Eo={f:se?Ii:function(e,t){if(e=yt(e),t=xo(t,!0),js)try{return Ii(e,t)}catch{}if(z(e,t))return Ar(!oh.f.call(e,t),e[t])}},Q=function(e){if(!K(e))throw TypeError(String(e)+" is not an object");return e},Vi=Object.defineProperty,Ae={f:se?Vi:function(e,t,r){if(Q(e),t=xo(t,!0),Q(r),js)try{return Vi(e,t,r)}catch{}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},ce=se?function(e,t,r){return Ae.f(e,t,Ar(1,r))}:function(e,t,r){return e[t]=r,e},ko=function(e,t){try{ce(W,e,t)}catch{W[e]=t}return t},ze=W["__core-js_shared__"]||ko("__core-js_shared__",{}),uh=Function.toString;typeof ze.inspectSource!="function"&&(ze.inspectSource=function(e){return uh.call(e)});var fr,jt,pr,Is=ze.inspectSource,$i=W.WeakMap,ch=typeof $i=="function"&&/native code/.test(Is($i)),Vs=Oo(function(e){(e.exports=function(t,r){return ze[t]||(ze[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),dh=0,fh=Math.random(),_o=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++dh+fh).toString(36)},Bi=Vs("keys"),Ao=function(e){return Bi[e]||(Bi[e]=_o(e))},Nr={},ph=W.WeakMap;if(ch){var et=ze.state||(ze.state=new ph),hh=et.get,vh=et.has,gh=et.set;fr=function(e,t){return t.facade=e,gh.call(et,e,t),t},jt=function(e){return hh.call(et,e)||{}},pr=function(e){return vh.call(et,e)}}else{var xt=Ao("state");Nr[xt]=!0,fr=function(e,t){return t.facade=e,ce(e,xt,t),t},jt=function(e){return z(e,xt)?e[xt]:{}},pr=function(e){return z(e,xt)}}var je={set:fr,get:jt,has:pr,enforce:function(e){return pr(e)?jt(e):fr(e,{})},getterFor:function(e){return function(t){var r;if(!K(t)||(r=jt(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,a,u,l){var s,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet;typeof u=="function"&&(typeof a!="string"||z(u,"name")||ce(u,"name",a),(s=r(u)).source||(s.source=n.join(typeof a=="string"?a:""))),o!==W?(d?!f&&o[a]&&(c=!0):delete o[a],c?o[a]=u:ce(o,a,u)):c?o[a]=u:ko(a,u)})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||Is(this)})}),Pn=W,Fi=function(e){return typeof e=="function"?e:void 0},Pr=function(e,t){return arguments.length<2?Fi(Pn[e])||Fi(W[e]):Pn[e]&&Pn[e][t]||W[e]&&W[e][t]},mh=Math.ceil,yh=Math.floor,bt=function(e){return isNaN(e=+e)?0:(e>0?yh:mh)(e)},bh=Math.min,le=function(e){return e>0?bh(bt(e),9007199254740991):0},Ch=Math.max,wh=Math.min,hr=function(e,t){var r=bt(e);return r<0?Ch(r+t,0):wh(r,t)},Sh=function(e){return function(t,r,n){var o,a=yt(t),u=le(a.length),l=hr(n,u);if(e&&r!=r){for(;u>l;)if((o=a[l++])!=o)return!0}else for(;u>l;l++)if((e||l in a)&&a[l]===r)return e||l||0;return!e&&-1}},$s={indexOf:Sh(!1)},Oh=$s.indexOf,Bs=function(e,t){var r,n=yt(e),o=0,a=[];for(r in n)!z(Nr,r)&&z(n,r)&&a.push(r);for(;t.length>o;)z(n,r=t[o++])&&(~Oh(a,r)||a.push(r));return a},vr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xh=vr.concat("length","prototype"),Eh={f:Object.getOwnPropertyNames||function(e){return Bs(e,xh)}},kh={f:Object.getOwnPropertySymbols},_h=Pr("Reflect","ownKeys")||function(e){var t=Eh.f(Q(e)),r=kh.f;return r?t.concat(r(e)):t},Ah=function(e,t){for(var r=_h(t),n=Ae.f,o=Eo.f,a=0;a<r.length;a++){var u=r[a];z(e,u)||n(e,u,o(t,u))}},Th=/#|\.prototype\./,Wt=function(e,t){var r=Ph[Nh(e)];return r==jh||r!=Rh&&(typeof t=="function"?D(t):!!t)},Nh=Wt.normalize=function(e){return String(e).replace(Th,".").toLowerCase()},Ph=Wt.data={},Rh=Wt.NATIVE="N",jh=Wt.POLYFILL="P",oo=Wt,Ih=Eo.f,Z=function(e,t){var r,n,o,a,u,l=e.target,s=e.global,d=e.stat;if(r=s?W:d?W[l]||ko(l,{}):(W[l]||{}).prototype)for(n in t){if(a=t[n],o=e.noTargetGet?(u=Ih(r,n))&&u.value:r[n],!oo(s?n:l+(d?".":"#")+n,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;Ah(a,o)}(e.sham||o&&o.sham)&&ce(a,"sham",!0),Ie(r,n,a,e)}},To=function(e,t){var r=[][e];return!!r&&D(function(){r.call(null,t||function(){throw 1},1)})},Vh=Object.defineProperty,Rn={},Mi=function(e){throw e},Ct=function(e,t){if(z(Rn,e))return Rn[e];t||(t={});var r=[][e],n=!!z(t,"ACCESSORS")&&t.ACCESSORS,o=z(t,0)?t[0]:Mi,a=z(t,1)?t[1]:void 0;return Rn[e]=!!r&&!D(function(){if(n&&!se)return!0;var u={length:-1};n?Vh(u,1,{enumerable:!0,get:Mi}):u[1]=1,r.call(u,o,a)})},$h=$s.indexOf,Fs=[].indexOf,qi=!!Fs&&1/[1].indexOf(1,-0)<0,Bh=To("indexOf"),Fh=Ct("indexOf",{ACCESSORS:!0,1:0});function Je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mh(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 Ze(e,t,r){return r&&Mh(e,r),e}Z({target:"Array",proto:!0,forced:qi||!Bh||!Fh},{indexOf:function(e){return qi?Fs.apply(this,arguments)||0:$h(this,e,arguments.length>1?arguments[1]:void 0)}});(function(){function e(){Je(this,e)}return Ze(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 qh=[].join,Dh=Tr!=Object,Gh=To("join",",");Z({target:"Array",proto:!0,forced:Dh||!Gh},{join:function(e){return qh.call(yt(this),e===void 0?",":e)}});var tt,gr,Te=function(e){return Object(Re(e))},ht=Array.isArray||function(e){return ke(e)=="Array"},Ms=!!Object.getOwnPropertySymbols&&!D(function(){return!String(Symbol())}),Lh=Ms&&!Symbol.sham&&typeof Symbol.iterator=="symbol",nr=Vs("wks"),It=W.Symbol,Hh=Lh?It:It&&It.withoutSetter||_o,H=function(e){return z(nr,e)||(Ms&&z(It,e)?nr[e]=It[e]:nr[e]=Hh("Symbol."+e)),nr[e]},Uh=H("species"),Rr=function(e,t){var r;return ht(e)&&(typeof(r=e.constructor)!="function"||r!==Array&&!ht(r.prototype)?K(r)&&(r=r[Uh])===null&&(r=void 0):r=void 0),new(r===void 0?Array:r)(t===0?0:t)},vt=function(e,t,r){var n=xo(t);n in e?Ae.f(e,n,Ar(0,r)):e[n]=r},jn=Pr("navigator","userAgent")||"",Di=W.process,Gi=Di&&Di.versions,Li=Gi&&Gi.v8;Li?gr=(tt=Li.split("."))[0]+tt[1]:jn&&(!(tt=jn.match(/Edge\/(\d+)/))||tt[1]>=74)&&(tt=jn.match(/Chrome\/(\d+)/))&&(gr=tt[1]);var mr=gr&&+gr,zh=H("species"),No=function(e){return mr>=51||!D(function(){var t=[];return(t.constructor={})[zh]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Wh=No("splice"),Kh=Ct("splice",{ACCESSORS:!0,0:0,1:2}),Yh=Math.max,Xh=Math.min;Z({target:"Array",proto:!0,forced:!Wh||!Kh},{splice:function(e,t){var r,n,o,a,u,l,s=Te(this),d=le(s.length),c=hr(e,d),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=d-c):(r=f-2,n=Xh(Yh(bt(t),0),d-c)),d+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=Rr(s,n),a=0;a<n;a++)(u=c+a)in s&&vt(o,a,s[u]);if(o.length=n,r<n){for(a=c;a<d-n;a++)l=a+r,(u=a+n)in s?s[l]=s[u]:delete s[l];for(a=d;a>d-n+r;a--)delete s[a-1]}else if(r>n)for(a=d-n;a>c;a--)l=a+r-1,(u=a+n-1)in s?s[l]=s[u]:delete s[l];for(a=0;a<r;a++)s[a+c]=arguments[a+2];return s.length=d-n+r,o}});var qs={};qs[H("toStringTag")]="z";var Po=String(qs)==="[object z]",Jh=H("toStringTag"),Zh=ke(function(){return arguments}())=="Arguments",Ds=Po?ke:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(o,a){try{return o[a]}catch{}}(t=Object(e),Jh))=="string"?r:Zh?ke(t):(n=ke(t))=="Object"&&typeof t.callee=="function"?"Arguments":n},Qh=Po?{}.toString:function(){return"[object "+Ds(this)+"]"};Po||Ie(Object.prototype,"toString",Qh,{unsafe:!0});var Gs=function(){var e=Q(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function Hi(e,t){return RegExp(e,t)}var In,Vn,Ui={UNSUPPORTED_Y:D(function(){var e=Hi("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),BROKEN_CARET:D(function(){var e=Hi("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},yr=RegExp.prototype.exec,ev=String.prototype.replace,Ls=yr,$n=(In=/a/,Vn=/b*/g,yr.call(In,"a"),yr.call(Vn,"a"),In.lastIndex!==0||Vn.lastIndex!==0),zi=Ui.UNSUPPORTED_Y||Ui.BROKEN_CARET,Bn=/()??/.exec("")[1]!==void 0;($n||Bn||zi)&&(Ls=function(e){var t,r,n,o,a=this,u=zi&&a.sticky,l=Gs.call(a),s=a.source,d=0,c=e;return u&&((l=l.replace("y","")).indexOf("g")===-1&&(l+="g"),c=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&e[a.lastIndex-1]!==`
|
|
19
|
+
`)&&(s="(?: "+s+")",c=" "+c,d++),r=new RegExp("^(?:"+s+")",l)),Bn&&(r=new RegExp("^"+s+"$(?!\\s)",l)),$n&&(t=a.lastIndex),n=yr.call(u?r:a,c),u?n?(n.input=n.input.slice(d),n[0]=n[0].slice(d),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:$n&&n&&(a.lastIndex=a.global?n.index+n[0].length:t),Bn&&n&&n.length>1&&ev.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(n[o]=void 0)}),n});var qt=Ls;Z({target:"RegExp",proto:!0,forced:/./.exec!==qt},{exec:qt});var Hs=RegExp.prototype,Us=Hs.toString,tv=D(function(){return Us.call({source:"a",flags:"b"})!="/a/b"}),rv=Us.name!="toString";(tv||rv)&&Ie(RegExp.prototype,"toString",function(){var e=Q(this),t=String(e.source),r=e.flags;return"/"+t+"/"+String(r===void 0&&e instanceof RegExp&&!("flags"in Hs)?Gs.call(e):r)},{unsafe:!0});var nv=H("species"),ov=!D(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}),Wi="a".replace(/./,"$0")==="$0",Ki=H("replace"),Yi=!!/./[Ki]&&/./[Ki]("a","$0")==="",av=!D(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"}),zs=function(e,t,r,n){var o=H(e),a=!D(function(){var f={};return f[o]=function(){return 7},""[e](f)!=7}),u=a&&!D(function(){var f=!1,p=/a/;return e==="split"&&((p={}).constructor={},p.constructor[nv]=function(){return p},p.flags="",p[o]=/./[o]),p.exec=function(){return f=!0,null},p[o](""),!f});if(!a||!u||e==="replace"&&(!ov||!Wi||Yi)||e==="split"&&!av){var l=/./[o],s=r(o,""[e],function(f,p,h,v,y){return p.exec===qt?a&&!y?{done:!0,value:l.call(p,h,v)}:{done:!0,value:f.call(h,p,v)}:{done:!1}},{REPLACE_KEEPS_$0:Wi,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Yi}),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&&ce(RegExp.prototype[o],"sham",!0)},iv=H("match"),Ws=function(e){var t;return K(e)&&((t=e[iv])!==void 0?!!t:ke(e)=="RegExp")},Ro=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},lv=H("species"),sv=function(e){return function(t,r){var n,o,a=String(Re(t)),u=bt(r),l=a.length;return u<0||u>=l?e?"":void 0:(n=a.charCodeAt(u))<55296||n>56319||u+1===l||(o=a.charCodeAt(u+1))<56320||o>57343?e?a.charAt(u):n:e?a.slice(u,u+2):o-56320+(n-55296<<10)+65536}},Ks={charAt:sv(!0)},uv=Ks.charAt,Ys=function(e,t,r){return t+(r?uv(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 qt.call(e,t)},cv=[].push,dv=Math.min,rt=!D(function(){return!RegExp(4294967295,"y")});zs("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,a){var u=String(Re(this)),l=a===void 0?4294967295:a>>>0;if(l===0)return[];if(o===void 0)return[u];if(!Ws(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,v=new RegExp(o.source,p+"g");(s=qt.call(v,u))&&!((d=v.lastIndex)>h&&(f.push(u.slice(h,s.index)),s.length>1&&s.index<u.length&&cv.apply(f,s.slice(1)),c=s[0].length,h=d,f.length>=l));)v.lastIndex===s.index&&v.lastIndex++;return h===u.length?!c&&v.test("")||f.push(""):f.push(u.slice(h)),f.length>l?f.slice(0,l):f}:"0".split(void 0,0).length?function(o,a){return o===void 0&&a===0?[]:t.call(this,o,a)}:t,[function(o,a){var u=Re(this),l=o==null?void 0:o[e];return l!==void 0?l.call(o,u,a):n.call(String(u),o,a)},function(o,a){var u=r(n,o,this,a,n!==t);if(u.done)return u.value;var l=Q(o),s=String(this),d=function(O,E){var k,P=Q(O).constructor;return P===void 0||(k=Q(P)[lv])==null?E:Ro(k)}(l,RegExp),c=l.unicode,f=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(rt?"y":"g"),p=new d(rt?l:"^(?:"+l.source+")",f),h=a===void 0?4294967295:a>>>0;if(h===0)return[];if(s.length===0)return ao(p,s)===null?[s]:[];for(var v=0,y=0,m=[];y<s.length;){p.lastIndex=rt?y:0;var b,g=ao(p,rt?s:s.slice(y));if(g===null||(b=dv(le(p.lastIndex+(rt?0:y)),s.length))===v)y=Ys(s,y,c);else{if(m.push(s.slice(v,y)),m.length===h)return m;for(var S=1;S<=g.length-1;S++)if(m.push(g[S]),m.length===h)return m;y=v=b}}return m.push(s.slice(v)),m}]},!rt);var io=`
|
|
20
|
+
\v\f\r \u2028\u2029\uFEFF`,br="["+io+"]",fv=RegExp("^"+br+br+"*"),pv=RegExp(br+br+"*$"),hv=function(e){return function(t){var r=String(Re(t));return 1&e&&(r=r.replace(fv,"")),2&e&&(r=r.replace(pv,"")),r}},vv={trim:hv(3)},gv=vv.trim;Z({target:"String",proto:!0,forced:function(e){return D(function(){return!!io[e]()||"
"[e]()!="
"||io[e].name!==e})}("trim")},{trim:function(){return gv(this)}});var mv=No("slice"),yv=Ct("slice",{ACCESSORS:!0,0:0,1:2}),bv=H("species"),Cv=[].slice,wv=Math.max;Z({target:"Array",proto:!0,forced:!mv||!yv},{slice:function(e,t){var r,n,o,a=yt(this),u=le(a.length),l=hr(e,u),s=hr(t===void 0?u:t,u);if(ht(a)&&(typeof(r=a.constructor)!="function"||r!==Array&&!ht(r.prototype)?K(r)&&(r=r[bv])===null&&(r=void 0):r=void 0,r===Array||r===void 0))return Cv.call(a,l,s);for(n=new(r===void 0?Array:r)(wv(s-l,0)),o=0;l<s;l++,o++)l in a&&vt(n,o,a[l]);return n.length=o,n}});var jo=Object.keys||function(e){return Bs(e,vr)},Sv=D(function(){jo(1)});Z({target:"Object",stat:!0,forced:Sv},{keys:function(e){return jo(Te(e))}});var Fn,Ov=function(e){if(Ws(e))throw TypeError("The method doesn't accept regular expressions");return e},xv=H("match"),Ev=Eo.f,Xi="".startsWith,kv=Math.min,Xs=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[xv]=!1,"/./"[e](t)}catch{}}return!1}("startsWith"),_v=!(Xs||(Fn=Ev(String.prototype,"startsWith"),!Fn||Fn.writable));function Js(e){return(Js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}Z({target:"String",proto:!0,forced:!_v&&!Xs},{startsWith:function(e){var t=String(Re(this));Ov(e);var r=le(kv(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return Xi?Xi.call(t,n,r):t.slice(r,r+n.length)===n}});var nt=function(e){return typeof e=="string"},ot=function(e){return e!==null&&Js(e)==="object"},Dt=function(){function e(){Je(this,e)}return Ze(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)},a=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",a),n=!0,(l=r.start)===null||l===void 0||l.call(r,u))})}},{key:"getBoundingClientRect",value:function(t){return t&&ot(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,r){return!!(t&&ot(t)&&nt(r)&&t.nodeType===1)&&t.classList.contains(r.trim())}},{key:"addClass",value:function(t,r){if(t&&ot(t)&&nt(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&&ot(t)&&nt(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&&ot(t)&&nt(r)&&t.nodeType===1&&t.classList.toggle(r,n)}},{key:"replaceClass",value:function(t,r,n){t&&ot(t)&&nt(r)&&nt(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,a=n.top+n.height/2,u=Math.abs(o-r.clientX),l=Math.abs(a-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>a&&(c=180-c),r.clientX==o&&r.clientY>a&&(c=180),r.clientX>o&&r.clientY==a&&(c=90),r.clientX<o&&r.clientY>a&&(c=180+c),r.clientX<o&&r.clientY==a&&(c=270),r.clientX<o&&r.clientY<a&&(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),a=1;a<n;a++)o[a-1]=arguments[a];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}(),Av=Math.floor,Tv="".replace,Nv=/\$([$&'`]|\d\d?|<[^>]*>)/g,Pv=/\$([$&'`]|\d\d?)/g,Rv=function(e,t,r,n,o,a){var u=r+e.length,l=n.length,s=Pv;return o!==void 0&&(o=Te(o),s=Nv),Tv.call(a,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=Av(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})},jv=Math.max,Iv=Math.min;zs("replace",2,function(e,t,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,a=n.REPLACE_KEEPS_$0,u=o?"$":"$0";return[function(l,s){var d=Re(this),c=l==null?void 0:l[e];return c!==void 0?c.call(l,d,s):t.call(String(d),l,s)},function(l,s){if(!o&&a||typeof s=="string"&&s.indexOf(u)===-1){var d=r(t,l,this,s);if(d.done)return d.value}var c=Q(l),f=String(this),p=typeof s=="function";p||(s=String(s));var h=c.global;if(h){var v=c.unicode;c.lastIndex=0}for(var y=[];;){var m=ao(c,f);if(m===null||(y.push(m),!h))break;String(m[0])===""&&(c.lastIndex=Ys(f,le(c.lastIndex),v))}for(var b,g="",S=0,O=0;O<y.length;O++){m=y[O];for(var E=String(m[0]),k=jv(Iv(bt(m.index),f.length),0),P=[],V=1;V<m.length;V++)P.push((b=m[V])===void 0?b:String(b));var j=m.groups;if(p){var A=[E].concat(P,k,f);j!==void 0&&A.push(j);var C=String(s.apply(void 0,A))}else C=Rv(E,f,k,P,j,s);k>=S&&(g+=f.slice(S,k)+C,S=k+E.length)}return g+f.slice(S)}]});(function(){function e(){Je(this,e)}return Ze(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(){Je(this,e)}return Ze(e,null,[{key:"_clone",value:function(){}}]),e})();var Zs=H("isConcatSpreadable"),Vv=mr>=51||!D(function(){var e=[];return e[Zs]=!1,e.concat()[0]!==e}),$v=No("concat"),Bv=function(e){if(!K(e))return!1;var t=e[Zs];return t!==void 0?!!t:ht(e)};Z({target:"Array",proto:!0,forced:!Vv||!$v},{concat:function(e){var t,r,n,o,a,u=Te(this),l=Rr(u,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(Bv(a=t===-1?u:arguments[t])){if(s+(o=le(a.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in a&&vt(l,s,a[r])}else{if(s>=9007199254740991)throw TypeError("Maximum allowed index exceeded");vt(l,s++,a)}return l.length=s,l}});var Mn,Kt=function(e,t,r){if(Ro(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,a){return e.call(t,n,o,a)}}return function(){return e.apply(t,arguments)}},Ji=[].push,Zi=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,a=e==6,u=e==7,l=e==5||a;return function(s,d,c,f){for(var p,h,v=Te(s),y=Tr(v),m=Kt(d,c,3),b=le(y.length),g=0,S=f||Rr,O=t?S(s,b):r||u?S(s,0):void 0;b>g;g++)if((l||g in y)&&(h=m(p=y[g],g,v),e))if(t)O[g]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return g;case 2:Ji.call(O,p)}else switch(e){case 4:return!1;case 7:Ji.call(O,p)}return a?-1:n||o?o:O}},Qs={find:Zi(5),findIndex:Zi(6)},Fv=se?Object.defineProperties:function(e,t){Q(e);for(var r,n=jo(t),o=n.length,a=0;o>a;)Ae.f(e,r=n[a++],t[r]);return e},Mv=Pr("document","documentElement"),eu=Ao("IE_PROTO"),qn=function(){},Qi=function(e){return"<script>"+e+"<\/script>"},lr=function(){try{Mn=document.domain&&new ActiveXObject("htmlfile")}catch{}var e,t;lr=Mn?function(n){n.write(Qi("")),n.close();var o=n.parentWindow.Object;return n=null,o}(Mn):((t=Rs("iframe")).style.display="none",Mv.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Qi("document.F=Object")),e.close(),e.F);for(var r=vr.length;r--;)delete lr.prototype[vr[r]];return lr()};Nr[eu]=!0;var Io=Object.create||function(e,t){var r;return e!==null?(qn.prototype=Q(e),r=new qn,qn.prototype=null,r[eu]=e):r=lr(),t===void 0?r:Fv(r,t)},lo=H("unscopables"),so=Array.prototype;so[lo]==null&&Ae.f(so,lo,{configurable:!0,value:Io(null)});var lt=function(e){so[lo][e]=!0},qv=Qs.find,el=!0,Dv=Ct("find");"find"in[]&&Array(1).find(function(){el=!1}),Z({target:"Array",proto:!0,forced:el||!Dv},{find:function(e){return qv(this,e,arguments.length>1?arguments[1]:void 0)}}),lt("find");var Gv=Qs.findIndex,tl=!0,Lv=Ct("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){tl=!1}),Z({target:"Array",proto:!0,forced:tl||!Lv},{findIndex:function(e){return Gv(this,e,arguments.length>1?arguments[1]:void 0)}}),lt("findIndex");var tu=function(e,t,r,n,o,a,u,l){for(var s,d=o,c=0,f=!!u&&Kt(u,l,3);c<n;){if(c in r){if(s=f?f(r[c],c,t):r[c],a>0&&ht(s))d=tu(e,t,s,le(s.length),d,a-1)-1;else{if(d>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[d]=s}d++}c++}return d},Hv=tu;Z({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Te(this),r=le(t.length),n=Rr(t,0);return n.length=Hv(n,t,t,r,0,e===void 0?1:bt(e)),n}});var uo=function(e){var t=e.return;if(t!==void 0)return Q(t.call(e)).value},Uv=function(e,t,r,n){try{return n?t(Q(r)[0],r[1]):t(r)}catch(o){throw uo(e),o}},gt={},zv=H("iterator"),Wv=Array.prototype,ru=function(e){return e!==void 0&&(gt.Array===e||Wv[zv]===e)},Kv=H("iterator"),nu=function(e){if(e!=null)return e[Kv]||e["@@iterator"]||gt[Ds(e)]},ou=H("iterator"),au=!1;try{var Yv=0,rl={next:function(){return{done:!!Yv++}},return:function(){au=!0}};rl[ou]=function(){return this},Array.from(rl,function(){throw 2})}catch{}var iu=function(e,t){if(!au)return!1;var r=!1;try{var n={};n[ou]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},Xv=!iu(function(e){Array.from(e)});Z({target:"Array",stat:!0,forced:Xv},{from:function(e){var t,r,n,o,a,u,l=Te(e),s=typeof this=="function"?this:Array,d=arguments.length,c=d>1?arguments[1]:void 0,f=c!==void 0,p=nu(l),h=0;if(f&&(c=Kt(c,d>2?arguments[2]:void 0,2)),p==null||s==Array&&ru(p))for(r=new s(t=le(l.length));t>h;h++)u=f?c(l[h],h):l[h],vt(r,h,u);else for(a=(o=p.call(l)).next,r=new s;!(n=a.call(o)).done;h++)u=f?Uv(o,c,[n.value,h],!0):n.value,vt(r,h,u);return r.length=h,r}});var Jv=function(e){return function(t,r,n,o){Ro(r);var a=Te(t),u=Tr(a),l=le(a.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,a));return o}},Zv={left:Jv(!1)},Qv=ke(W.process)=="process",eg=Zv.left,tg=To("reduce"),rg=Ct("reduce",{1:0});Z({target:"Array",proto:!0,forced:!tg||!rg||!Qv&&mr>79&&mr<83},{reduce:function(e){return eg(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}}),lt("flat");var Me,nl,ol,ng=!D(function(){return Object.isExtensible(Object.preventExtensions({}))}),lu=Oo(function(e){var t=Ae.f,r=_o("meta"),n=0,o=Object.isExtensible||function(){return!0},a=function(l){t(l,r,{value:{objectID:"O"+ ++n,weakData:{}}})},u=e.exports={REQUIRED:!1,fastKey:function(l,s){if(!K(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!z(l,r)){if(!o(l))return"F";if(!s)return"E";a(l)}return l[r].objectID},getWeakData:function(l,s){if(!z(l,r)){if(!o(l))return!0;if(!s)return!1;a(l)}return l[r].weakData},onFreeze:function(l){return ng&&u.REQUIRED&&o(l)&&!z(l,r)&&a(l),l}};Nr[r]=!0}),Et=function(e,t){this.stopped=e,this.result=t},al=function(e,t,r){var n,o,a,u,l,s,d,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),v=Kt(t,c,1+f+h),y=function(b){return n&&uo(n),new Et(!0,b)},m=function(b){return f?(Q(b),h?v(b[0],b[1],y):v(b[0],b[1])):h?v(b,y):v(b)};if(p)n=e;else{if(typeof(o=nu(e))!="function")throw TypeError("Target is not iterable");if(ru(o)){for(a=0,u=le(e.length);u>a;a++)if((l=m(e[a]))&&l instanceof Et)return l;return new Et(!1)}n=o.call(e)}for(s=n.next;!(d=s.call(n)).done;){try{l=m(d.value)}catch(b){throw uo(n),b}if(typeof l=="object"&&l&&l instanceof Et)return l}return new Et(!1)},il=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e},og=Ae.f,ll=H("toStringTag"),co=function(e,t,r){e&&!z(e=r?e:e.prototype,ll)&&og(e,ll,{configurable:!0,value:t})},Cr=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 Q(n),function(a){if(!K(a)&&a!==null)throw TypeError("Can't set "+String(a)+" as a prototype")}(o),t?e.call(n,o):n.__proto__=o,n}}():void 0),sl=function(e,t,r){for(var n in t)Ie(e,n,t[n],r);return e},ag=!D(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ul=Ao("IE_PROTO"),ig=Object.prototype,wr=ag?Object.getPrototypeOf:function(e){return e=Te(e),z(e,ul)?e[ul]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?ig:null},Dn=H("iterator"),su=!1;[].keys&&("next"in(ol=[].keys())?(nl=wr(wr(ol)))!==Object.prototype&&(Me=nl):su=!0),(Me==null||D(function(){var e={};return Me[Dn].call(e)!==e}))&&(Me={}),z(Me,Dn)||ce(Me,Dn,function(){return this});var Vo={IteratorPrototype:Me,BUGGY_SAFARI_ITERATORS:su},lg=Vo.IteratorPrototype,sg=function(){return this},Gn=Vo.IteratorPrototype,or=Vo.BUGGY_SAFARI_ITERATORS,kt=H("iterator"),ug=function(){return this},$o=function(e,t,r,n,o,a,u){(function(b,g,S){var O=g+" Iterator";b.prototype=Io(lg,{next:Ar(1,S)}),co(b,O,!1),gt[O]=sg})(r,t,n);var l,s,d,c=function(b){if(b===o&&y)return y;if(!or&&b in h)return h[b];switch(b){case"keys":case"values":case"entries":return function(){return new r(this,b)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,v=h[kt]||h["@@iterator"]||o&&h[o],y=!or&&v||c(o),m=t=="Array"&&h.entries||v;if(m&&(l=wr(m.call(new e)),Gn!==Object.prototype&&l.next&&(wr(l)!==Gn&&(Cr?Cr(l,Gn):typeof l[kt]!="function"&&ce(l,kt,ug)),co(l,f,!0))),o=="values"&&v&&v.name!=="values"&&(p=!0,y=function(){return v.call(this)}),h[kt]!==y&&ce(h,kt,y),gt[t]=y,o)if(s={values:c("values"),keys:a?y:c("keys"),entries:c("entries")},u)for(d in s)(or||p||!(d in h))&&Ie(h,d,s[d]);else Z({target:t,proto:!0,forced:or||p},s);return s},cl=H("species"),cg=Ae.f,dl=lu.fastKey,fl=je.set,Ln=je.getterFor;(function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,a=n?"set":"add",u=W[e],l=u&&u.prototype,s=u,d={},c=function(m){var b=l[m];Ie(l,m,m=="add"?function(g){return b.call(this,g===0?0:g),this}:m=="delete"?function(g){return!(o&&!K(g))&&b.call(this,g===0?0:g)}:m=="get"?function(g){return o&&!K(g)?void 0:b.call(this,g===0?0:g)}:m=="has"?function(g){return!(o&&!K(g))&&b.call(this,g===0?0:g)}:function(g,S){return b.call(this,g===0?0:g,S),this})};if(oo(e,typeof u!="function"||!(o||l.forEach&&!D(function(){new u().entries().next()}))))s=r.getConstructor(t,e,n,a),lu.REQUIRED=!0;else if(oo(e,!0)){var f=new s,p=f[a](o?{}:-0,1)!=f,h=D(function(){f.has(1)}),v=iu(function(m){new u(m)}),y=!o&&D(function(){for(var m=new u,b=5;b--;)m[a](b,b);return!m.has(-0)});v||((s=t(function(m,b){il(m,s,e);var g=function(S,O,E){var k,P;return Cr&&typeof(k=O.constructor)=="function"&&k!==E&&K(P=k.prototype)&&P!==E.prototype&&Cr(S,P),S}(new u,m,s);return b!=null&&al(b,g[a],{that:g,AS_ENTRIES:n}),g})).prototype=l,l.constructor=s),(h||y)&&(c("delete"),c("has"),n&&c("get")),(y||p)&&c(a),o&&l.clear&&delete l.clear}d[e]=s,Z({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){il(s,o,t),fl(s,{type:t,index:Io(null),first:void 0,last:void 0,size:0}),se||(s.size=0),d!=null&&al(d,s[n],{that:s,AS_ENTRIES:r})}),a=Ln(t),u=function(s,d,c){var f,p,h=a(s),v=l(s,d);return v?v.value=c:(h.last=v={index:p=dl(d,!0),key:d,value:c,previous:f=h.last,next:void 0,removed:!1},h.first||(h.first=v),f&&(f.next=v),se?h.size++:s.size++,p!=="F"&&(h.index[p]=v)),s},l=function(s,d){var c,f=a(s),p=dl(d);if(p!=="F")return f.index[p];for(c=f.first;c;c=c.next)if(c.key==d)return c};return sl(o.prototype,{clear:function(){for(var s=a(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,se?s.size=0:this.size=0},delete:function(s){var d=this,c=a(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),se?c.size--:d.size--}return!!f},forEach:function(s){for(var d,c=a(this),f=Kt(s,arguments.length>1?arguments[1]:void 0,3);d=d?d.next:c.first;)for(f(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(s){return!!l(this,s)}}),sl(o.prototype,r?{get:function(s){var d=l(this,s);return d&&d.value},set:function(s,d){return u(this,s===0?0:s,d)}}:{add:function(s){return u(this,s=s===0?0:s,s)}}),se&&cg(o.prototype,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=Ln(t),a=Ln(n);$o(e,t,function(u,l){fl(this,{type:n,target:u,state:o(u),kind:l,last:void 0})},function(){for(var u=a(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=Pr(u),s=Ae.f;se&&l&&!l[cl]&&s(l,cl,{configurable:!0,get:function(){return this}})}(t)}});var dg=Ks.charAt,fg=je.set,pg=je.getterFor("String Iterator");$o(String,"String",function(e){fg(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=pg(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=dg(r,n),t.index+=e.length,{value:e,done:!1})});var pl={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},hg=je.set,vg=je.getterFor("Array Iterator"),Nt=$o(Array,"Array",function(e,t){hg(this,{type:"Array Iterator",target:yt(e),index:0,kind:t})},function(){var e=vg(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");gt.Arguments=gt.Array,lt("keys"),lt("values"),lt("entries");var Hn=H("iterator"),hl=H("toStringTag"),Un=Nt.values;for(var zn in pl){var vl=W[zn],xe=vl&&vl.prototype;if(xe){if(xe[Hn]!==Un)try{ce(xe,Hn,Un)}catch{xe[Hn]=Un}if(xe[hl]||ce(xe,hl,zn),pl[zn]){for(var at in Nt)if(xe[at]!==Nt[at])try{ce(xe,at,Nt[at])}catch{xe[at]=Nt[at]}}}}(function(){function e(){Je(this,e)}return Ze(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(){Je(this,e)}return Ze(e,null,[{key:"today",value:function(){return new Date}}]),e})();(function(){function e(){Je(this,e)}return Ze(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 gg=Object.defineProperty,mg=(e,t,r)=>t in e?gg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X=(e,t,r)=>(mg(e,typeof t!="symbol"?t+"":t,r),r);const U=e=>Math.round(e*100)/100;class L{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=U(r),this.lightnessValue=U(n)}),X(this,"initRgb",()=>{const{r,g:n,b:o}=this.instance.toRgb();this.redValue=U(r),this.greenValue=U(n),this.blueValue=U(o)}),X(this,"initHsb",()=>{const{h:r,s:n,v:o}=this.instance.toHsv();this.hueValue=Math.min(360,Math.ceil(r)),this.saturationValue=U(n),this.brightnessValue=U(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:U(t),s:this.saturation,v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.hueValue=U(t)}get hue(){return this.hueValue}set saturation(t){this.instance=x({h:this.hue,s:U(t),v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.saturationValue=U(t)}get saturation(){return this.saturationValue}set brightness(t){this.instance=x({h:this.hue,s:this.saturation,v:U(t),a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.brightnessValue=U(t)}get brightness(){return this.brightnessValue}set lightness(t){this.instance=x({h:this.hue,s:this.hslSaturationValue,l:U(t),a:this.alphaValue/100}),this.initRgb(),this.initHsb(),this.lightnessValue=U(t)}get lightness(){return this.lightnessValue}set red(t){const r=this.instance.toRgb();this.instance=x({...r,r:U(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.redValue=U(t)}get red(){return this.redValue}set green(t){const r=this.instance.toRgb();this.instance=x({...r,g:U(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.greenValue=U(t)}get green(){return this.greenValue}set blue(t){const r=this.instance.toRgb();this.instance=x({...r,b:U(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.blueValue=U(t)}get blue(){return this.blueValue}set alpha(t){this.instance.setAlpha(t/100),this.alphaValue=t}get alpha(){return this.alphaValue}get RGB(){return[this.red,this.green,this.blue,parseFloat((this.alpha/100).toFixed(2))]}get HSB(){return[this.hue,this.saturation,this.brightness,parseFloat((this.alpha/100).toFixed(2))]}get HSL(){return[this.hue,this.hslSaturationValue,this.lightness,parseFloat((this.alpha/100).toFixed(2))]}}function gl(e,t,r,n){return`rgba(${[e,t,r,n/100].join(",")})`}const 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,pe=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},yg=i.defineComponent({name:"Alpha",props:{color:N.instanceOf(L),size:N.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=i.ref(null),n=i.ref(null);let o=e.color||new L;const a=i.reactive({red:o.red,green:o.green,blue:o.blue,alpha:o.alpha});i.watch(()=>e.color,f=>{f&&(o=f,mt.merge(a,{red:f.red,green:f.green,blue:f.blue,alpha:f.alpha}))},{deep:!0});const u=i.computed(()=>{const f=gl(a.red,a.green,a.blue,0),p=gl(a.red,a.green,a.blue,100);return{background:`linear-gradient(to right, ${f} , ${p})`}}),l=()=>{if(r.value&&n.value){const f=a.alpha/100,p=r.value.getBoundingClientRect(),h=n.value.offsetWidth;return Math.round(f*(p.width-h)+h/2)}return 0},s=i.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 v=f.clientX-p.left;v=Math.max(h/2,v),v=Math.min(v,p.width-h/2);const y=Math.round((v-h/2)/(p.width-h)*100);o.alpha=y,a.alpha=y,t("change",y)}};return We(()=>{const f={drag:p=>{c(p)},end:p=>{c(p)}};r.value&&n.value&&Dt.triggerDragEvent(r.value,f)}),{barElement:r,cursorElement:n,getCursorStyle:s,getBackgroundStyle:u,onClickSider:d}}}),bg=e=>(i.pushScopeId("data-v-18925ba6"),e=e(),i.popScopeId(),e),Cg=bg(()=>i.createElementVNode("div",{class:"vc-alpha-slider__bar-handle"},null,-1)),wg=[Cg];function Sg(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-alpha-slider","transparent",{"small-slider":e.size==="small"}])},[i.createElementVNode("div",{ref:"barElement",class:"vc-alpha-slider__bar",style:i.normalizeStyle(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickSider&&e.onClickSider(...u))},[i.createElementVNode("div",{class:i.normalizeClass(["vc-alpha-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:i.normalizeStyle(e.getCursorStyle)},wg,6)],4)],2)}const Mo=pe(yg,[["render",Sg],["__scopeId","data-v-18925ba6"]]),Og=[["#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"]],xg=i.defineComponent({name:"Palette",emits:["change"],setup(e,{emit:t}){return{palettes:Og,computedBgStyle:r=>r==="transparent"?r:r==="advance"?{}:{background:x(r).toRgbString()},onColorChange:r=>{t("change",r)}}}}),Eg={class:"vc-compact"},kg=["onClick"];function _g(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",Eg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.palettes,(u,l)=>(i.openBlock(),i.createElementBlock("div",{key:l,class:"vc-compact__row"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u,(s,d)=>(i.openBlock(),i.createElementBlock("div",{key:d,class:"vc-compact__color-cube--wrap",onClick:c=>e.onColorChange(s)},[i.createElementVNode("div",{class:i.normalizeClass(["vc-compact__color_cube",{advance:s==="advance",transparent:s==="transparent"}]),style:i.normalizeStyle(e.computedBgStyle(s))},null,6)],8,kg))),128))]))),128))])}const uu=pe(xg,[["render",_g],["__scopeId","data-v-b969fd48"]]),Ag=i.defineComponent({name:"Board",props:{color:N.instanceOf(L),round:N.bool.def(!1),hide:N.bool.def(!0)},emits:["change"],setup(e,{emit:t}){var r,n,o;const a=i.getCurrentInstance(),u={h:((r=e.color)==null?void 0:r.hue)||0,s:1,v:1},l=new L(u).toHexString(),s=i.reactive({hueColor:l,saturation:((n=e.color)==null?void 0:n.saturation)||0,brightness:((o=e.color)==null?void 0:o.brightness)||0}),d=i.ref(0),c=i.ref(0),f=i.ref(),p=i.computed(()=>({top:d.value+"px",left:c.value+"px"})),h=()=>{if(a){const S=a.vnode.el;c.value=s.saturation*(S==null?void 0:S.clientWidth),d.value=(1-s.brightness)*(S==null?void 0:S.clientHeight)}};let v=!1;const y=S=>{v=!0,g(S)},m=S=>{v&&g(S)},b=()=>{v=!1},g=S=>{if(a){const O=a.vnode.el,E=O==null?void 0:O.getBoundingClientRect();let k=S.clientX-E.left,P=S.clientY-E.top;k=Wn(k,0,E.width),P=Wn(P,0,E.height);const V=k/E.width,j=Wn(-(P/E.height)+1,0,1);c.value=k,d.value=P,s.saturation=V,s.brightness=j,t("change",V,j)}};return We(()=>{a&&a.vnode.el&&f.value&&i.nextTick(()=>{h()})}),J(()=>e.color,S=>{mt.merge(s,{hueColor:new L({h:S.hue,s:1,v:1}).toHexString(),saturation:S.saturation,brightness:S.brightness}),h()},{deep:!0}),{state:s,cursorElement:f,getCursorStyle:p,onClickBoard:y,onDrag:m,onDragEnd:b}}}),qo=e=>(i.pushScopeId("data-v-7f0cdcdf"),e=e(),i.popScopeId(),e),Tg=qo(()=>i.createElementVNode("div",{class:"vc-saturation__white"},null,-1)),Ng=qo(()=>i.createElementVNode("div",{class:"vc-saturation__black"},null,-1)),Pg=qo(()=>i.createElementVNode("div",null,null,-1)),Rg=[Pg];function jg(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",{ref:"boardElement",class:i.normalizeClass(["vc-saturation",{"vc-saturation__chrome":e.round,"vc-saturation__hidden":e.hide}]),style:i.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))},[Tg,Ng,i.createElementVNode("div",{class:"vc-saturation__cursor",ref:"cursorElement",style:i.normalizeStyle(e.getCursorStyle)},Rg,4)],38)}const Do=pe(Ag,[["render",jg],["__scopeId","data-v-7f0cdcdf"]]),Ig=i.defineComponent({name:"Hue",props:{color:N.instanceOf(L),size:N.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=i.ref(null),n=i.ref(null);let o=e.color||new L;const a=i.reactive({hue:o.hue||0});i.watch(()=>e.color,c=>{c&&(o=c,mt.merge(a,{hue:o.hue}))},{deep:!0});const u=()=>{if(r.value&&n.value){const c=r.value.getBoundingClientRect(),f=n.value.offsetWidth;return a.hue===360?c.width-f/2:a.hue%360*(c.width-f)/360+f/2}return 0},l=i.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 v=Math.round((h-p/2)/(f.width-p)*360);o.hue=v,a.hue=v,t("change",v)}};return We(()=>{const c={drag:f=>{d(f)},end:f=>{d(f)}};r.value&&n.value&&Dt.triggerDragEvent(r.value,c)}),{barElement:r,cursorElement:n,getCursorStyle:l,onClickSider:s}}}),Vg=e=>(i.pushScopeId("data-v-e1a08576"),e=e(),i.popScopeId(),e),$g=Vg(()=>i.createElementVNode("div",{class:"vc-hue-slider__bar-handle"},null,-1)),Bg=[$g];function Fg(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-hue-slider",{"small-slider":e.size==="small"}])},[i.createElementVNode("div",{ref:"barElement",class:"vc-hue-slider__bar",onClick:t[0]||(t[0]=(...u)=>e.onClickSider&&e.onClickSider(...u))},[i.createElementVNode("div",{class:i.normalizeClass(["vc-hue-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:i.normalizeStyle(e.getCursorStyle)},Bg,6)],512)],2)}const Go=pe(Ig,[["render",Fg],["__scopeId","data-v-e1a08576"]]),Mg=i.defineComponent({name:"Lightness",props:{color:N.instanceOf(L),size:N.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=i.ref(null),n=i.ref(null);let o=e.color||new L;const[a,u,l]=o.HSL,s=i.reactive({hue:a,saturation:u,lightness:l});i.watch(()=>e.color,v=>{if(v){o=v;const[y,m,b]=o.HSL;mt.merge(s,{hue:y,saturation:m,lightness:b})}},{deep:!0});const d=i.computed(()=>{const v=x({h:s.hue,s:s.saturation,l:.8}).toPercentageRgbString(),y=x({h:s.hue,s:s.saturation,l:.6}).toPercentageRgbString(),m=x({h:s.hue,s:s.saturation,l:.4}).toPercentageRgbString(),b=x({h:s.hue,s:s.saturation,l:.2}).toPercentageRgbString();return{background:[`linear-gradient(to right, rgb(255, 255, 255), ${v}, ${y}, ${m}, ${b}, rgb(0, 0, 0))`,`-webkit-linear-gradient(left, rgb(255, 255, 255), ${v}, ${y}, ${m}, ${b}, rgb(0, 0, 0))`,`-moz-linear-gradient(left, rgb(255, 255, 255), ${v}, ${y}, ${m}, ${b}, rgb(0, 0, 0))`,`-ms-linear-gradient(left, rgb(255, 255, 255), ${v}, ${y}, ${m}, ${b}, rgb(0, 0, 0))`]}}),c=()=>{if(r.value&&n.value){const v=s.lightness,y=r.value.getBoundingClientRect(),m=n.value.offsetWidth;return(1-v)*(y.width-m)+m/2}return 0},f=i.computed(()=>({left:c()+"px",top:0})),p=v=>{v.target!==r.value&&h(v)},h=v=>{if(v.stopPropagation(),r.value&&n.value){const y=r.value.getBoundingClientRect(),m=n.value.offsetWidth;let b=v.clientX-y.left;b=Math.max(m/2,b),b=Math.min(b,y.width-m/2);const g=1-(b-m/2)/(y.width-m);o.lightness=g,t("change",g)}};return We(()=>{const v={drag:y=>{h(y)},end:y=>{h(y)}};r.value&&n.value&&Dt.triggerDragEvent(r.value,v)}),{barElement:r,cursorElement:n,getCursorStyle:f,getBackgroundStyle:d,onClickSider:p}}}),qg=e=>(i.pushScopeId("data-v-94a50a9e"),e=e(),i.popScopeId(),e),Dg=qg(()=>i.createElementVNode("div",{class:"vc-lightness-slider__bar-handle"},null,-1)),Gg=[Dg];function Lg(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-lightness-slider",{"small-slider":e.size==="small"}])},[i.createElementVNode("div",{ref:"barElement",class:"vc-lightness-slider__bar",style:i.normalizeStyle(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickSider&&e.onClickSider(...u))},[i.createElementVNode("div",{class:i.normalizeClass(["vc-lightness-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:i.normalizeStyle(e.getCursorStyle)},Gg,6)],4)],2)}const cu=pe(Mg,[["render",Lg],["__scopeId","data-v-94a50a9e"]]),Hg=i.defineComponent({name:"History",props:{colors:N.arrayOf(String).def(()=>[]),round:N.bool.def(!1)},emits:["change"],setup(e,{emit:t}){return{onColorSelect:r=>{t("change",r)}}}}),Ug={key:0,class:"vc-colorPicker__record"},zg={class:"color-list"},Wg=["onClick"];function Kg(e,t,r,n,o,a){return e.colors&&e.colors.length>0?(i.openBlock(),i.createElementBlock("div",Ug,[i.createElementVNode("div",zg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.colors,(u,l)=>(i.openBlock(),i.createElementBlock("div",{key:l,class:i.normalizeClass(["color-item","transparent",{"color-item__round":e.round}]),onClick:s=>e.onColorSelect(u)},[i.createElementVNode("div",{class:"color-item__display",style:i.normalizeStyle({backgroundColor:u})},null,4)],10,Wg))),128))])])):i.createCommentVNode("",!0)}const Lo=pe(Hg,[["render",Kg],["__scopeId","data-v-0f657238"]]),Yg=i.defineComponent({name:"Display",props:{color:N.instanceOf(L),disableAlpha:N.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){var r,n,o,a;const{copy:u,copied:l,isSupported:s}=Sd(),d=i.ref("hex"),c=i.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:(a=e.color)==null?void 0:a.toRgbString()}),f=i.computed(()=>({background:c.previewBgColor})),p=()=>{d.value=d.value==="rgba"?"hex":"rgba"},h=Ee(b=>{if(!b.target.value)return;let g=parseInt(b.target.value.replace("%",""));g>100&&(b.target.value="100",g=100),g<0&&(b.target.value="0",g=0),isNaN(g)&&(b.target.value="100",g=100),!isNaN(g)&&c.color&&(c.color.alpha=g),t("change",c.color)},300),v=Ee((b,g)=>{if(c.color){if(d.value==="hex"){const S=b.target.value.replace("#","");x(S).isValid()?[3,4].includes(S.length)&&(c.color.hex=S):c.color.hex="000000",t("change",c.color)}else if(d.value==="rgba"&&g===3&&b.target.value.toString()==="0."&&c.rgba){c.rgba[g]=b.target.value;const[S,O,E,k]=c.rgba;c.color.hex=x({r:S,g:O,b:E}).toHex(),c.color.alpha=Math.round(k*100),t("change",c.color)}}},100),y=Ee((b,g)=>{if(b.target.value){if(d.value==="hex"){const S=b.target.value.replace("#","");x(S).isValid()&&c.color&&[6,8].includes(S.length)&&(c.color.hex=S)}else if(g!==void 0&&c.rgba&&c.color){if(b.target.value<0&&(b.target.value=0),g===3&&((b.target.value>1||isNaN(b.target.value))&&(b.target.value=1),b.target.value.toString()==="0."))return;g<3&&b.target.value>255&&(b.target.value=255),c.rgba[g]=b.target.value;const[S,O,E,k]=c.rgba;c.color.hex=x({r:S,g:O,b:E}).toHex(),c.color.alpha=Math.round(k*100)}t("change",c.color)}},300),m=()=>{if(s&&c.color){const b=d.value==="hex"?c.color.toString(c.color.alpha===100?"hex6":"hex8"):c.color.toRgbString();u(b||"")}};return J(()=>e.color,b=>{b&&(c.color=b,c.alpha=Math.round(c.color.alpha),c.hex=c.color.hex,c.rgba=c.color.RGB)},{deep:!0}),J(()=>c.color,()=>{c.color&&(c.previewBgColor=c.color.toRgbString())},{deep:!0}),{state:c,getBgColorStyle:f,inputType:d,copied:l,onInputTypeChange:p,onAlphaBlur:h,onInputChange:y,onBlurChange:v,onCopyColorStr:m}}}),Xg={class:"vc-display"},Jg={class:"vc-current-color vc-transparent"},Zg={key:0,class:"copy-text"},Qg={key:0,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},em={class:"vc-color-input"},tm={key:0,class:"vc-alpha-input"},rm=["value"],nm={key:1,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},om=["value","onInput","onBlur"];function am(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",Xg,[i.createElementVNode("div",Jg,[i.createElementVNode("div",{class:"color-cube",style:i.normalizeStyle(e.getBgColorStyle),onClick:t[0]||(t[0]=(...u)=>e.onCopyColorStr&&e.onCopyColorStr(...u))},[e.copied?(i.openBlock(),i.createElementBlock("span",Zg,"Copied!")):i.createCommentVNode("",!0)],4)]),e.inputType==="hex"?(i.openBlock(),i.createElementBlock("div",Qg,[i.createElementVNode("div",em,[i.withDirectives(i.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),[[i.vModelText,e.state.hex]])]),e.disableAlpha?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",tm,[i.createElementVNode("input",{class:"vc-alpha-input__inner",value:e.state.alpha,onInput:t[4]||(t[4]=(...u)=>e.onAlphaBlur&&e.onAlphaBlur(...u))},null,40,rm),i.createTextVNode("% ")]))])):e.state.rgba?(i.openBlock(),i.createElementBlock("div",nm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.state.rgba,(u,l)=>(i.openBlock(),i.createElementBlock("div",{class:"vc-color-input",key:l},[i.createElementVNode("input",{value:u,onInput:s=>e.onInputChange(s,l),onBlur:s=>e.onBlurChange(s,l)},null,40,om)]))),128))])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"vc-input-toggle",onClick:t[5]||(t[5]=(...u)=>e.onInputTypeChange&&e.onInputTypeChange(...u))},i.toDisplayString(e.inputType),1)])}const Ho=pe(Yg,[["render",am],["__scopeId","data-v-7334ac20"]]),im=i.defineComponent({name:"FkColorPicker",components:{Display:Ho,Alpha:Mo,Palette:uu,Board:Do,Hue:Go,Lightness:cu,History:Lo},props:{color:N.instanceOf(L),disableHistory:N.bool.def(!1),roundHistory:N.bool.def(!1),disableAlpha:N.bool.def(!1)},emits:["update:color","change","advanceChange"],setup(e,{emit:t}){const r=e.color||new L,n=i.reactive({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=i.ref(!1),a=i.computed(()=>({background:n.rgb})),u=()=>{o.value=!1,t("advanceChange",!1)},l=po(Bo,[],{}),s=Ee(()=>{if(e.disableHistory)return;const y=n.color.toRgbString();if(l.value=l.value.filter(m=>!x.equals(m,y)),!l.value.includes(y)){for(;l.value.length>Fo;)l.value.pop();l.value.unshift(y)}},500),d=y=>{y==="advance"?(o.value=!0,t("advanceChange",!0)):(n.color.hex=y,t("advanceChange",!1))},c=y=>{n.color.alpha=y},f=y=>{n.color.hue=y},p=(y,m)=>{n.color.saturation=y,n.color.brightness=m},h=y=>{n.color.lightness=y},v=y=>{const m=y.target.value.replace("#","");x(m).isValid()&&(n.color.hex=m)};return J(()=>e.color,y=>{y&&(n.color=y)},{deep:!0}),J(()=>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:v,previewStyle:a,historyColors:l}}}),lm=e=>(i.pushScopeId("data-v-48e3c224"),e=e(),i.popScopeId(),e),sm={class:"vc-fk-colorPicker"},um={class:"vc-fk-colorPicker__inner"},cm={class:"vc-fk-colorPicker__header"},dm=lm(()=>i.createElementVNode("div",{class:"back"},null,-1)),fm=[dm];function pm(e,t,r,n,o,a){const u=i.resolveComponent("Palette"),l=i.resolveComponent("Board"),s=i.resolveComponent("Hue"),d=i.resolveComponent("Lightness"),c=i.resolveComponent("Alpha"),f=i.resolveComponent("Display"),p=i.resolveComponent("History");return i.openBlock(),i.createElementBlock("div",sm,[i.createElementVNode("div",um,[i.createElementVNode("div",cm,[e.advancePanelShow?(i.openBlock(),i.createElementBlock("span",{key:0,style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...h)=>e.onBack&&e.onBack(...h))},fm)):i.createCommentVNode("",!0)]),e.advancePanelShow?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(u,{key:0,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?(i.openBlock(),i.createBlock(l,{key:1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"])):i.createCommentVNode("",!0),e.advancePanelShow?(i.openBlock(),i.createBlock(s,{key:2,color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"])):i.createCommentVNode("",!0),e.advancePanelShow?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:3,color:e.state.color,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(c,{key:4,color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"])),i.createVNode(f,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(p,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const ml=pe(im,[["render",pm],["__scopeId","data-v-48e3c224"]]),hm=i.defineComponent({name:"ChromeColorPicker",components:{Display:Ho,Alpha:Mo,Board:Do,Hue:Go,History:Lo},props:{color:N.instanceOf(L),disableHistory:N.bool.def(!1),roundHistory:N.bool.def(!1),disableAlpha:N.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){const r=e.color||new L,n=i.reactive({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=i.computed(()=>({background:n.rgb})),a=po(Bo,[],{}),u=Ee(()=>{if(e.disableHistory)return;const p=n.color.toRgbString();if(a.value=a.value.filter(h=>!x.equals(h,p)),!a.value.includes(p)){for(;a.value.length>Fo;)a.value.pop();a.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 J(()=>e.color,p=>{p&&(n.color=p)},{deep:!0}),J(()=>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:a,onAlphaChange:l,onHueChange:s,onBoardChange:c,onInputChange:d,onCompactChange:f}}}),vm={class:"vc-chrome-colorPicker"},gm={class:"vc-chrome-colorPicker-body"},mm={class:"chrome-controls"},ym={class:"chrome-sliders"};function bm(e,t,r,n,o,a){const u=i.resolveComponent("Board"),l=i.resolveComponent("Hue"),s=i.resolveComponent("Alpha"),d=i.resolveComponent("Display"),c=i.resolveComponent("History");return i.openBlock(),i.createElementBlock("div",vm,[i.createVNode(u,{round:!0,hide:!1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"]),i.createElementVNode("div",gm,[i.createElementVNode("div",mm,[i.createElementVNode("div",ym,[i.createVNode(l,{size:"small",color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"]),e.disableAlpha?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(s,{key:0,size:"small",color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"]))])]),i.createVNode(d,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(c,{key:0,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const yl=pe(hm,[["render",bm],["__scopeId","data-v-2611d66c"]]),Uo="Vue3ColorPickerProvider",Cm=(e,t)=>{const r=e.getBoundingClientRect(),n=r.left+r.width/2,o=r.top+r.height/2,a=Math.abs(n-t.clientX),u=Math.abs(o-t.clientY),l=Math.sqrt(Math.pow(a,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 wm=(e,t)=>{const r=function(o){var a;(a=t.drag)==null||a.call(t,o)},n=function(o){var a;document.removeEventListener("mousemove",r,!1),document.removeEventListener("mouseup",n,!1),document.onselectstart=null,document.ondragstart=null,Kn=!1,(a=t.end)==null||a.call(t,o)};e&&e.addEventListener("mousedown",o=>{var a;Kn||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",n,!1),Kn=!0,(a=t.start)==null||a.call(t,o))})},Sm={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"}},Om=i.defineComponent({name:"Angle",props:Sm,emits:["update:angle","change"],setup(e,{emit:t}){const r=i.ref(null),n=i.ref(0);i.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))},a=i.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=Cm(r.value,l)%360,o())};return i.onMounted(()=>{const l={drag:s=>{u(s)},end:s=>{u(s)}};r.value&&wm(r.value,l)}),()=>i.createVNode("div",{class:"bee-angle"},[i.createVNode("div",{class:"bee-angle__round",ref:r,style:a.value},null)])}}),xm=i.defineComponent({name:"GradientColorPicker",components:{Angle:Om,Display:Ho,Alpha:Mo,Palette:uu,Board:Do,Hue:Go,Lightness:cu,History:Lo},props:{startColor:N.instanceOf(L).isRequired,endColor:N.instanceOf(L).isRequired,startColorStop:N.number.def(0),endColorStop:N.number.def(100),angle:N.number.def(0),type:N.oneOf(["linear","radial"]).def("linear"),disableHistory:N.bool.def(!1),roundHistory:N.bool.def(!1),disableAlpha:N.bool.def(!1),pickerType:N.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=i.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=i.inject(Uo),o=i.ref(e.pickerType==="chrome"),a=i.ref(),u=i.ref(),l=i.ref();i.watch(()=>[e.startColor,e.endColor,e.angle],C=>{r.startColor=C[0],r.endColor=C[1],r.angle=C[2]}),i.watch(()=>e.type,C=>{r.type=C});const s=i.computed({get:()=>r.startActive?r.startColor:r.endColor,set:C=>{if(r.startActive){r.startColor=C;return}r.endColor=C}}),d=i.computed(()=>{if(l.value&&a.value){const C=r.startColorStop/100,_=l.value.getBoundingClientRect(),R=a.value.offsetWidth;return Math.round(C*(_.width-R)+R/2)}return 0}),c=i.computed(()=>{if(l.value&&u.value){const C=r.endColorStop/100,_=l.value.getBoundingClientRect(),R=u.value.offsetWidth;return Math.round(C*(_.width-R)+R/2)}return 0}),f=i.computed(()=>{let C=`background: linear-gradient(${r.angle}deg, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`;return r.type==="radial"&&(C=`background: radial-gradient(circle, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`),C}),p=C=>{var _;if(r.startActive=!0,l.value&&a.value){const R=(_=l.value)==null?void 0:_.getBoundingClientRect();let B=C.clientX-R.left;B=Math.max(a.value.offsetWidth/2,B),B=Math.min(B,R.width-a.value.offsetWidth/2),r.startColorStop=Math.round((B-a.value.offsetWidth/2)/(R.width-a.value.offsetWidth)*100),t("update:startColorStop",r.startColorStop),t("startColorStopChange",r.startColorStop)}},h=C=>{var _;if(r.startActive=!1,l.value&&u.value){const R=(_=l.value)==null?void 0:_.getBoundingClientRect();let B=C.clientX-R.left;B=Math.max(u.value.offsetWidth/2,B),B=Math.min(B,R.width-u.value.offsetWidth/2),r.endColorStop=Math.round((B-u.value.offsetWidth/2)/(R.width-u.value.offsetWidth)*100),t("update:endColorStop",r.endColorStop),t("endColorStopChange",r.endColorStop)}},v=C=>{const _=C.target,R=parseInt(_.value.replace("°",""));isNaN(R)||(r.angle=R%360),t("update:angle",r.angle),t("angleChange",r.angle)},y=C=>{r.angle=C,t("update:angle",r.angle),t("angleChange",r.angle)},m=C=>{C==="advance"?(o.value=!0,t("advanceChange",!0)):(s.value.hex=C,t("advanceChange",!1)),k()},b=C=>{s.value.alpha=C,k()},g=C=>{s.value.hue=C,k()},S=(C,_)=>{s.value.saturation=C,s.value.brightness=_,k()},O=C=>{s.value.lightness=C,k()},E=()=>{k()},k=()=>{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)},V=()=>{r.type=r.type==="linear"?"radial":"linear",t("typeChange",r.type)},j=po(Bo,[],{}),A=Ee(()=>{if(e.disableHistory)return;const C=s.value.toRgbString();if(j.value=j.value.filter(_=>!x.equals(_,C)),!j.value.includes(C)){for(;j.value.length>Fo;)j.value.pop();j.value.unshift(C)}},500);return We(()=>{u.value&&a.value&&(Dt.triggerDragEvent(u.value,{drag:C=>{h(C)},end:C=>{h(C)}}),Dt.triggerDragEvent(a.value,{drag:C=>{p(C)},end:C=>{p(C)}}))}),J(()=>r.startColor,C=>{r.startColorRgba=C.toRgbString()},{deep:!0}),J(()=>r.endColor,C=>{r.endColorRgba=C.toRgbString()},{deep:!0}),J(()=>s.value,()=>{A()},{deep:!0}),{startGradientRef:a,stopGradientRef:u,colorRangeRef:l,state:r,currentColor:s,getStartColorLeft:d,getEndColorLeft:c,gradientBg:f,advancePanelShow:o,onDegreeBlur:v,onCompactChange:m,onAlphaChange:b,onHueChange:g,onBoardChange:S,onLightChange:O,historyColors:j,onBack:P,onDegreeChange:y,onDisplayChange:E,onTypeChange:V,lang:n==null?void 0:n.lang}}}),du=e=>(i.pushScopeId("data-v-c4d6d6ea"),e=e(),i.popScopeId(),e),Em={class:"vc-gradient-picker"},km={class:"vc-gradient-picker__header"},_m={class:"vc-gradient__types"},Am={class:"vc-gradient-wrap__types"},Tm={class:"vc-picker-degree-input vc-degree-input"},Nm={class:"vc-degree-input__control"},Pm=["value"],Rm={class:"vc-degree-input__panel"},jm={class:"vc-degree-input__disk"},Im={class:"vc-gradient-picker__body"},Vm={class:"vc-color-range",ref:"colorRangeRef"},$m={class:"vc-color-range__container"},Bm={class:"vc-gradient__stop__container"},Fm=["title"],Mm=du(()=>i.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),qm=[Mm],Dm=["title"],Gm=du(()=>i.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),Lm=[Gm];function Hm(e,t,r,n,o,a){var u,l;const s=i.resolveComponent("Angle"),d=i.resolveComponent("Board"),c=i.resolveComponent("Hue"),f=i.resolveComponent("Palette"),p=i.resolveComponent("Lightness"),h=i.resolveComponent("Alpha"),v=i.resolveComponent("Display"),y=i.resolveComponent("History");return i.openBlock(),i.createElementBlock("div",Em,[i.createElementVNode("div",km,[i.createElementVNode("div",null,[i.withDirectives(i.createElementVNode("div",{class:"back",style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...m)=>e.onBack&&e.onBack(...m))},null,512),[[i.vShow,e.pickerType==="fk"&&e.advancePanelShow]])]),i.createElementVNode("div",_m,[i.createElementVNode("div",Am,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(["linear","radial"],m=>i.createElementVNode("div",{class:i.normalizeClass(["vc-gradient__type",{active:e.state.type===m}]),key:m,onClick:t[1]||(t[1]=(...b)=>e.onTypeChange&&e.onTypeChange(...b))},i.toDisplayString(e.lang?e.lang[m]:m),3)),64))]),i.withDirectives(i.createElementVNode("div",Tm,[i.createElementVNode("div",Nm,[i.createElementVNode("input",{value:e.state.angle,onBlur:t[2]||(t[2]=(...m)=>e.onDegreeBlur&&e.onDegreeBlur(...m))},null,40,Pm),i.createTextVNode("deg ")]),i.createElementVNode("div",Rm,[i.createElementVNode("div",jm,[i.createVNode(s,{angle:e.state.angle,"onUpdate:angle":t[3]||(t[3]=m=>e.state.angle=m),size:40,onChange:e.onDegreeChange},null,8,["angle","onChange"])])])],512),[[i.vShow,e.state.type==="linear"]])])]),i.createElementVNode("div",Im,[i.createElementVNode("div",Vm,[i.createElementVNode("div",$m,[i.createElementVNode("div",{class:"vc-background",style:i.normalizeStyle(e.gradientBg)},null,4),i.createElementVNode("div",Bm,[i.createElementVNode("div",{class:i.normalizeClass(["vc-gradient__stop",{"vc-gradient__stop--current":e.state.startActive}]),ref:"startGradientRef",title:(u=e.lang)==null?void 0:u.start,style:i.normalizeStyle({left:e.getStartColorLeft+"px",backgroundColor:e.state.startColorRgba})},qm,14,Fm),i.createElementVNode("div",{class:i.normalizeClass(["vc-gradient__stop",{"vc-gradient__stop--current":!e.state.startActive}]),ref:"stopGradientRef",title:(l=e.lang)==null?void 0:l.end,style:i.normalizeStyle({left:e.getEndColorLeft+"px",backgroundColor:e.state.endColorRgba})},Lm,14,Dm)])])],512)]),e.advancePanelShow?(i.openBlock(),i.createBlock(d,{key:0,color:e.currentColor,onChange:e.onBoardChange},null,8,["color","onChange"])):i.createCommentVNode("",!0),e.advancePanelShow?(i.openBlock(),i.createBlock(c,{key:1,color:e.currentColor,onChange:e.onHueChange},null,8,["color","onChange"])):i.createCommentVNode("",!0),e.advancePanelShow?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(f,{key:2,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(p,{key:3,color:e.currentColor,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(h,{key:4,color:e.currentColor,onChange:e.onAlphaChange},null,8,["color","onChange"])),i.createVNode(v,{color:e.currentColor,"disable-alpha":e.disableAlpha,onChange:e.onDisplayChange},null,8,["color","disable-alpha","onChange"]),e.disableHistory?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(y,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])}const bl=pe(xm,[["render",Hm],["__scopeId","data-v-c4d6d6ea"]]),Um=i.defineComponent({name:"WrapContainer",props:{theme:N.oneOf(["white","black"]).def("white"),showTab:N.bool.def(!1),activeKey:N.oneOf(["pure","gradient"]).def("pure")},emits:["update:activeKey","change"],setup(e,{emit:t}){const r=i.reactive({activeKey:e.activeKey}),n=i.inject(Uo),o=a=>{r.activeKey=a,t("update:activeKey",a),t("change",a)};return J(()=>e.activeKey,a=>{r.activeKey=a}),{state:r,onActiveKeyChange:o,lang:n==null?void 0:n.lang}}}),zm={class:"vc-colorpicker--container"},Wm={key:0,class:"vc-colorpicker--tabs"},Km={class:"vc-colorpicker--tabs__inner"},Ym={class:"vc-btn__content"},Xm={class:"vc-btn__content"};function Jm(e,t,r,n,o,a){var u,l;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-colorpicker",e.theme])},[i.createElementVNode("div",zm,[e.showTab?(i.openBlock(),i.createElementBlock("div",Wm,[i.createElementVNode("div",Km,[i.createElementVNode("div",{class:i.normalizeClass(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="pure"}]),onClick:t[0]||(t[0]=s=>e.onActiveKeyChange("pure"))},[i.createElementVNode("button",null,[i.createElementVNode("div",Ym,i.toDisplayString((u=e.lang)==null?void 0:u.pure),1)])],2),i.createElementVNode("div",{class:i.normalizeClass(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="gradient"}]),onClick:t[1]||(t[1]=s=>e.onActiveKeyChange("gradient"))},[i.createElementVNode("button",null,[i.createElementVNode("div",Xm,i.toDisplayString((l=e.lang)==null?void 0:l.gradient),1)])],2),i.createElementVNode("div",{class:"vc-colorpicker--tabs__bg",style:i.normalizeStyle({width:"50%",left:`calc(${e.state.activeKey==="gradient"?50:0}%)`})},null,4)])])):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"default",{},void 0,!0)])],2)}const Zm=pe(Um,[["render",Jm],["__scopeId","data-v-0492277d"]]),Qm={start:"Start",end:"End",pure:"Pure",gradient:"Gradient",linear:"linear",radial:"radial"},ey={start:"开始",end:"结束",pure:"纯色",gradient:"渐变",linear:"线性",radial:"径向"},ty={En:Qm,"ZH-cn":ey},ry={isWidget:N.bool.def(!1),pickerType:N.oneOf(["fk","chrome"]).def("fk"),shape:N.oneOf(["circle","square"]).def("square"),pureColor:{type:[String,Object],default:"#000000"},gradientColor:N.string.def("linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)"),format:{type:String,default:"rgb"},disableAlpha:N.bool.def(!1),disableHistory:N.bool.def(!1),roundHistory:N.bool.def(!1),useType:N.oneOf(["pure","gradient","both"]).def("pure"),activeKey:N.oneOf(["pure","gradient"]).def("pure"),lang:{type:String,default:"ZH-cn"},zIndex:N.number.def(9999),pickerContainer:{type:[String,HTMLElement],default:"body"},debounce:N.number.def(100),theme:N.oneOf(["white","black"]).def("white"),blurClose:N.bool.def(!1),defaultPopup:N.bool.def(!1)},ny=i.defineComponent({name:"ColorPicker",components:{FkColorPicker:ml,ChromeColorPicker:yl,GradientColorPicker:bl,WrapContainer:Zm},inheritAttrs:!1,props:ry,emits:["update:pureColor","pureColorChange","update:gradientColor","gradientColorChange","update:activeKey","activeKeyChange"],setup(e,{emit:t}){i.provide(Uo,{lang:i.computed(()=>ty[e.lang||"ZH-cn"])});const r=!!i.useSlots().extra,n=i.reactive({pureColor:e.pureColor||"",activeKey:e.useType==="gradient"?"gradient":e.activeKey,isAdvanceMode:!1}),o=new L("#000"),a=new L("#000"),u=new L(n.pureColor),l=i.reactive({startColor:o,endColor:a,startColorStop:0,endColorStop:100,angle:0,type:"linear",gradientColor:e.gradientColor}),s=i.ref(u),d=i.ref(e.defaultPopup),c=i.ref(null),f=i.ref(null);let p=null;const h=i.computed(()=>({background:n.activeKey!=="gradient"?x(n.pureColor).toRgbString():l.gradientColor})),v=i.computed(()=>n.activeKey==="gradient"?bl.name:e.pickerType==="fk"?ml.name:yl.name),y=C=>{n.isAdvanceMode=C},m=i.computed(()=>{const C={disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,pickerType:e.pickerType};return n.activeKey==="gradient"?{...C,startColor:l.startColor,endColor:l.endColor,angle:l.angle,type:l.type,startColorStop:l.startColorStop,endColorStop:l.endColorStop,onStartColorChange:_=>{l.startColor=_,E()},onEndColorChange:_=>{l.endColor=_,E()},onStartColorStopChange:_=>{l.startColorStop=_,E()},onEndColorStopChange:_=>{l.endColorStop=_,E()},onAngleChange:_=>{l.angle=_,E()},onTypeChange:_=>{l.type=_,E()},onAdvanceChange:y}:{...C,disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,color:s.value,onChange:V,onAdvanceChange:y}}),b=()=>{d.value=!0,p?p.update():P()},g=()=>{d.value=!1},S=Ee(()=>{!e.isWidget&&e.blurClose&&g()},100);Cd(f,()=>{g()});const O=()=>{var C,_,R,B;try{const[$]=Oa.parse(l.gradientColor);if($&&$.type.includes("gradient")&&$.colorStops.length>=2){const M=$.colorStops[0],Y=$.colorStops[1];l.startColorStop=Number((C=M.length)==null?void 0:C.value)||0,l.endColorStop=Number((_=Y.length)==null?void 0:_.value)||0,$.type==="linear-gradient"&&((R=$.orientation)==null?void 0:R.type)==="angular"&&(l.angle=Number((B=$.orientation)==null?void 0:B.value)||0),l.type=$.type.split("-")[0];const[T,I,F,ee]=M.value,[me,Qe,Ne,ye]=Y.value;l.startColor=new L({r:Number(T),g:Number(I),b:Number(F),a:Number(ee)}),l.endColor=new L({r:Number(me),g:Number(Qe),b:Number(Ne),a:Number(ye)})}}catch($){console.log(`[Parse Color]: ${$}`)}},E=Ee(()=>{const C=k();try{l.gradientColor=Oa.stringify(C),t("update:gradientColor",l.gradientColor),t("gradientColorChange",l.gradientColor)}catch(_){console.log(_)}},e.debounce),k=()=>{const C=[],_=l.startColor.RGB.map($=>$.toString()),R=l.endColor.RGB.map($=>$.toString()),B=[{type:"rgba",value:[_[0],_[1],_[2],_[3]],length:{value:l.startColorStop+"",type:"%"}},{type:"rgba",value:[R[0],R[1],R[2],R[3]],length:{value:l.endColorStop+"",type:"%"}}];return l.type==="linear"?C.push({type:"linear-gradient",orientation:{type:"angular",value:l.angle+""},colorStops:B}):l.type==="radial"&&C.push({type:"radial-gradient",orientation:[{type:"shape",value:"circle"}],colorStops:B}),C},P=()=>{c.value&&f.value&&(p=ip(c.value,f.value,{placement:"auto",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{allowedAutoPlacements:["top","bottom","left","right"],rootBoundary:"viewport"}}]}))},V=C=>{s.value=C,n.pureColor=C.toString(e.format),j()},j=Ee(()=>{t("update:pureColor",n.pureColor),t("pureColorChange",n.pureColor)},e.debounce),A=C=>{n.activeKey=C,t("update:activeKey",C),t("activeKeyChange",C)};return We(()=>{O(),p||P()}),J(()=>e.gradientColor,C=>{C!=l.gradientColor&&(l.gradientColor=C)}),J(()=>l.gradientColor,()=>{O()}),J(()=>e.activeKey,C=>{n.activeKey=C}),J(()=>e.useType,C=>{n.activeKey!=="gradient"&&C==="gradient"?n.activeKey="gradient":n.activeKey="pure"}),J(()=>e.pureColor,C=>{x.equals(C,n.pureColor)||(n.pureColor=C,s.value=new L(C))},{deep:!0}),{colorCubeRef:c,pickerRef:f,showPicker:d,colorInstance:s,getBgColorStyle:h,getComponentName:v,getBindArgs:m,state:n,hasExtra:r,onColorChange:V,onShowPicker:b,onActiveKeyChange:A,onAutoClose:S}}}),oy={key:0,class:"vc-color-extra"},ay={key:0,class:"vc-color-extra"};function iy(e,t,r,n,o,a){const u=i.resolveComponent("WrapContainer");return i.openBlock(),i.createElementBlock(i.Fragment,null,[e.isWidget?(i.openBlock(),i.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:i.normalizeStyle({zIndex:e.zIndex}),theme:e.theme,onChange:e.onActiveKeyChange},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.getComponentName),i.mergeProps({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(i.openBlock(),i.createElementBlock("div",oy,[i.renderSlot(e.$slots,"extra",{},void 0,!0)])):i.createCommentVNode("",!0)]),_:3},8,["active-key","show-tab","style","theme","onChange"])):i.createCommentVNode("",!0),e.isWidget?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",{class:i.normalizeClass(["vc-color-wrap transparent",{round:e.shape==="circle"}]),ref:"colorCubeRef"},[i.createElementVNode("div",{class:"current-color",style:i.normalizeStyle(e.getBgColorStyle),onClick:t[1]||(t[1]=(...l)=>e.onShowPicker&&e.onShowPicker(...l))},null,4)],2),(i.openBlock(),i.createBlock(i.Teleport,{to:e.pickerContainer},[i.withDirectives(i.createElementVNode("div",{ref:"pickerRef",style:i.normalizeStyle({zIndex:e.zIndex}),onMouseleave:t[3]||(t[3]=(...l)=>e.onAutoClose&&e.onAutoClose(...l))},[e.showPicker?(i.openBlock(),i.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:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.getComponentName),i.mergeProps({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(i.openBlock(),i.createElementBlock("div",ay,[i.renderSlot(e.$slots,"extra",{},void 0,!0)])):i.createCommentVNode("",!0)]),_:3},8,["show-tab","theme","active-key","onChange"])):i.createCommentVNode("",!0)],36),[[i.vShow,e.showPicker]])],8,["to"]))],64))],64)}const ly=pe(ny,[["render",iy],["__scopeId","data-v-354ca836"]]),sy={install(e){e.use(vc),e.use(gc),e.use(Cc),e.use(Oc),e.use(kc),e.use(_c),e.use(Pc),e.use(Ic),e.use(Bc),e.use(qc),e.use(Dc),e.use(Lc),e.use(Wc),e.use(Yc),e.use(Qc),e.use(ed),e.use(td),e.use(mc),e.use(Xc),e.use(Gc),e.use(Hc),e.use(Ac),e.component("ColorPicker",ly)}},Cl=i.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=i.ref(null),a=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=a,n.validateItem=u,i.watch(e.context,()=>{Object.assign(n.context,e.context),n.state.isNew=!n.context.id},{immediate:!0}),i.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:[mt.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=i.createVNode(i.resolveComponent("gct-form"),{class:"h-full",ref:"formRef",model:this.model,c:this.c},null)),i.createVNode("div",{class:this.ns.b()},[e])}}),uy={install(e){e.component(Cl.name,Cl)}};function cy(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const wl=i.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=i.computed(()=>{var a;return!!((a=e.model.rules)!=null&&a.find(u=>u.required))});return{ns:t,style:r,required:n,renderLabelTooltip:()=>e.model.labelTooltip?i.createVNode(i.resolveComponent("a-tooltip"),{class:t.e("label-tooltip"),placement:"topLeft",title:e.model.labelTooltip},{default:()=>[i.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=i.h(typeof e.component=="string"?i.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=[i.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=()=>[i.createVNode("span",null,[this.model.label]),this.renderLabelTooltip()]),i.createVNode(i.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"},cy(n)?n:{default:()=>[n]})}});function dy(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Sl=i.defineComponent({name:"GctForm",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form");i.provide("formController",e.c);const r=i.ref(null),n=e.c;Object.keys(n.item).forEach(d=>{const c=n.item[d];c.state=i.reactive(c.state)});const a=d=>i.createVNode(i.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 i.h(typeof c.component=="string"?i.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=a(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:a,renderContainer:u,renderChildren:l}},render(){let e;return i.createVNode(i.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},dy(e=this.model.children.map(t=>this.renderContainer(t)))?e:{default:()=>[e]})}});class fy{constructor(){q(this,"component","gct-form-item")}createController(t,r){return w.useFormItemController(()=>new w.FormItemController(t,r))}}class py{constructor(){q(this,"component","gct-form-hidden-item")}createController(t,r){return w.useFormItemController(()=>new w.FormHiddenItemController(t,r))}}class hy{constructor(){q(this,"component","gct-form-collapse-pane")}createController(t,r){return w.useFormItemController(()=>new w.FormCollapsePaneController(t,r))}}function Ol(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const xl=i.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 i.createVNode(i.resolveComponent("flex-container"),{layout:e.model.flex},Ol(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return i.createVNode(i.resolveComponent("grid-container"),{layout:e.model.grid},Ol(o)?o:{default:()=>[o]});console.error("不支持的layout类型"+e.model.layout)}return e.model.width&&(r[t.cssVarName("form-collapse-pane-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-collapse-pane-height")]=e.model.height),{ns:t,style:r,renderContainer:n}},render(){var r,n;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((n=(r=this.$slots).default)==null?void 0:n.call(r))||[],t=e[e.length-1];return t&&(t.props=i.mergeProps(t.props||{},{class:this.ns.e("last-child")})),i.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),vy={install(e){_gct.register.formItem.register("collapse-pane",()=>new hy),e.component(xl.name,xl)}};class gy{constructor(){q(this,"component","gct-form-collapse")}createController(t,r){return w.useFormItemController(()=>new w.FormCollapseController(t,r))}}const El=i.defineComponent({name:"GctFormCollapse",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){var u;const t=w.useNamespace("form-collapse"),r=i.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=i.ref([]);o.value=((u=e.model.children)==null?void 0:u.map(l=>l.name))||[];const a=i.computed(()=>e.model.expandIconPosition==="left"?"left":"right");return{ns:t,keys:r,style:n,activeKeys:o,expandIconPosition:a}},render(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return i.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":n=>this.activeKeys=n},{default:()=>{var n;return[(n=this.model.children)==null?void 0:n.map((o,a)=>{if(e[a].props.c.state.visible===!1)return;const l=o.collapsible!==!1?void 0:"disabled";return i.createVNode(qe.Collapse.Panel,{key:o.name,header:o.title,collapsible:l},{default:()=>[e[a]]})})]}})}}),my={install(e){_gct.register.formItem.register("collapse",()=>new gy),e.component(El.name,El)}};class yy{constructor(){q(this,"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]"&&!i.isVNode(e)}const kl=i.defineComponent({name:"GctFormGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form-group"),r=i.ref([0]);function n(a){if(e.model.layout==="flex")return i.createVNode(i.resolveComponent("flex-container"),{layout:e.model.flex},Yn(a)?a:{default:()=>[a]});if(e.model.layout==="grid")return i.createVNode(i.resolveComponent("grid-container"),{layout:e.model.grid},Yn(a)?a:{default:()=>[a]});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(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];if(this.model.isCollapse){let n;return i.createVNode(i.resolveComponent("a-collapse"),{activeKey:this.keys,"onUpdate:activeKey":o=>this.keys=o,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:()=>[i.createVNode(i.resolveComponent("a-collapse-panel"),{key:"0",header:this.model.title},Yn(n=this.renderContainer(e))?n:{default:()=>[n]})]})}return i.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?i.createVNode("div",{class:this.ns.e("title")},[this.model.title]):null,i.createVNode("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),by={install(e){_gct.register.formItem.register("container",()=>new yy),e.component(kl.name,kl)}};class Cy{constructor(){q(this,"component","gct-form-tab")}createController(t,r){return w.useFormItemController(()=>new w.FormTabController(t,r))}}const _l=i.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(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return i.createVNode(i.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:()=>{var n;return[(n=this.model.children)==null?void 0:n.map((o,a)=>i.createVNode(i.resolveComponent("a-tab-pane"),{key:o.name,tab:o.title},{default:()=>[e[a]]}))]}})}}),wy={install(e){_gct.register.formItem.register("tab",()=>new Cy),e.component(_l.name,_l)}};class Sy{constructor(){q(this,"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]"&&!i.isVNode(e)}const Tl=i.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 i.createVNode(i.resolveComponent("flex-container"),{layout:e.model.flex},Al(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return i.createVNode(i.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(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return i.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),Oy={install(e){_gct.register.formItem.register("tab-pane",()=>new Sy),e.component(Tl.name,Tl)}};class xy{constructor(){q(this,"component","gct-form-title-group")}createController(t,r){return w.useFormItemController(()=>new w.FormGroupController(t,r))}}function Nl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Pl=i.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=i.ref([0]);function n(a){if(e.model.layout==="flex")return i.createVNode(i.resolveComponent("flex-container"),{layout:e.model.flex},Nl(a)?a:{default:()=>[a]});if(e.model.layout==="grid")return i.createVNode(i.resolveComponent("grid-container"),{layout:e.model.grid},Nl(a)?a:{default:()=>[a]});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(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return i.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[i.createVNode("div",{class:this.ns.e("title")},[this.model.title]),i.createVNode("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),Ey={install(e){_gct.register.formItem.register(w.FormContainerType.FORM_TITLE_GROUP,()=>new xy),e.component(Pl.name,Pl)}},ky={install(e){_gct.register.formItem.register("item",()=>new fy),_gct.register.formItem.register("hidden",()=>new py),e.use(vy),e.use(my),e.use(by),e.use(wy),e.use(Oy),e.use(Ey),e.component(Sl.name,Sl),e.component(wl.name,wl)}},_y={install(e){e.use(sy),e.use(uy),e.use(ky),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=_y;
|