helper-GLbCIdrD.js 143 KB

123
  1. var Ei=Object.defineProperty,Oi=Object.defineProperties;var $i=Object.getOwnPropertyDescriptors;var pa=Object.getOwnPropertySymbols;var Ti=Object.prototype.hasOwnProperty,Pi=Object.prototype.propertyIsEnumerable;var ha=(e,t,r)=>t in e?Ei(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,le=(e,t)=>{for(var r in t||(t={}))Ti.call(t,r)&&ha(e,r,t[r]);if(pa)for(var r of pa(t))Pi.call(t,r)&&ha(e,r,t[r]);return e},we=(e,t)=>Oi(e,$i(t));var ee=(e,t,r)=>new Promise((n,a)=>{var o=l=>{try{i(r.next(l))}catch(c){a(c)}},s=l=>{try{i(r.throw(l))}catch(c){a(c)}},i=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,s);i((r=r.apply(e,t)).next())});import{u as je,C as Mi}from"./index-BvywwHGE.js";import{p as X,aI as ct,b as _n,B as Le,i as xn,_ as tt,aJ as L,aK as Tt,aL as he,aM as Fi,aN as kn,aO as Ii,u as Bi,aP as Hi,aQ as Nt,a as Li,aG as Di,az as Ni}from"./entry/index-W3jW1nIG.js";import{o as Or,a as un,l as Q,ao as We,as as St,h as ji,v as Ui,at as Vi,au as Jt,av as An,af as zi,aw as So,ax as wo,ah as _o,ay as $r,az as Wi,ae as xo,V as Ki,aA as Gi,aB as Xi,U as qi,aC as Yi,aD as Ji,X as Zi,E as rr,aE as Qi,aF as el,aG as tl,aH as ko,aI as rl,aJ as nl,aK as Tr,aL as Ao,ab as al}from"./antd-Cume0_44.js";import{d as Y,f as T,c as q,u as P,w as oe,a5 as V,_ as w,a6 as re,Z as F,F as Ce,a8 as Se,G as Ie,a0 as se,aa as Be,H as nr,ab as Pr,a9 as _t,ag as Pt,ah as Mt,k as G,$ as x,K as Ro,o as Rn,h as ol,a4 as W,r as Oe,g as il,y as ll,e as Eo,ad as de,a1 as fe,a7 as z,n as gr,an as sl,ao as Ft,ap as It,af as va,A as cn,E as ul,p as cl,ae as fl,I as dl}from"./vue-4umLpMSY.js";import{I as pl,B as hl}from"./index-w7Vd8LfC.js";import{S as vl}from"./index-BlXwa6k2.js";import{_ as gl}from"./IconPicker.vue_vue_type_script_setup_true_lang-E4mDcJBd.js";import{C as ml}from"./index-DQKKpka6.js";import{T as yl}from"./index-DwKSf7fW.js";import{u as fn,a as Oo,B as $o}from"./index-tUUDMOj4.js";import{g as bl}from"./index-C6UzVZkw.js";import{U as Cl}from"./UploadPreviewModal-DWlTF4YI.js";import{d as Sl}from"./download-C0CG1OjY.js";import{a as wl}from"./uuid-BUBnBT7J.js";import{c as _l}from"./cateApi-BoCoTBel.js";import{a as xl}from"./resourceApi-nEBFxX9L.js";import{h as kl}from"./common-B2cy0fGI.js";const Al=Y({name:"ApiRadioGroup",__name:"ApiRadioGroup",props:{api:{type:Function,default:null},params:{type:[Object,String],default:()=>({})},value:{type:[String,Number,Boolean]},isBtn:{type:[Boolean],default:!1},numberToString:X.bool,resultField:X.string.def(""),labelField:X.string.def("label"),valueField:X.string.def("value"),immediate:X.bool.def(!0),beforeFetch:{type:Function,default:null},afterFetch:{type:Function,default:null}},emits:["options-change","change","update:value"],setup(e,{emit:t}){const r=e,n=t,a=T([]),o=T(!1),s=T([]),i=ct(),[l]=je(r,"value","change",s),c=q(()=>{const{labelField:d,valueField:g,numberToString:m}=r;return P(a).reduce((y,h)=>{if(h){const v=h[g];y.push(le({label:h[d],value:m?`${v}`:v},Or(h,[d,g])))}return y},[])});oe(()=>r.params,(d,g)=>{un(d,g)||u()},{deep:!0,immediate:r.immediate});function u(){return ee(this,null,function*(){let{api:d,beforeFetch:g,afterFetch:m,params:y,resultField:h}=r;if(!(!d||!Q(d))){a.value=[];try{o.value=!0,g&&Q(g)&&(y=(yield g(y))||y);let v=yield d(y);if(m&&Q(m)&&(v=(yield m(v))||v),Array.isArray(v)){a.value=v,f();return}h&&(a.value=We(v,h)||[]),f()}catch(v){}finally{o.value=!1}}})}function f(){n("options-change",P(c))}function p(...d){s.value=d}return(d,g)=>(w(),V(P(St).Group,Be(P(i),{value:P(l),"onUpdate:value":g[0]||(g[0]=m=>nr(l)?l.value=m:null),"button-style":"solid"}),{default:re(()=>[(w(!0),F(Ce,null,Se(c.value,m=>(w(),F(Ce,{key:`${m.value}`},[r.isBtn?(w(),V(P(St).Button,{key:0,value:m.value,disabled:m.disabled,onClick:y=>p(m)},{default:re(()=>[Ie(se(m.label),1)]),_:2},1032,["value","disabled","onClick"])):(w(),V(P(St),{key:1,value:m.value,disabled:m.disabled,onClick:y=>p(m)},{default:re(()=>[Ie(se(m.label),1)]),_:2},1032,["value","disabled","onClick"]))],64))),128))]),_:1},16,["value"]))}}),Rl=Y({name:"RadioButtonGroup",__name:"RadioButtonGroup",props:{value:{type:[String,Number,Boolean]},options:{type:Array,default:()=>[]}},setup(e){const t=e,r=ct(),n=T([]),[a]=je(t,"value","change",n),o=q(()=>{const{options:i}=t;return!i||(i==null?void 0:i.length)===0?[]:i.some(c=>ji(c))?i.map(c=>({label:c,value:c})):i});function s(...i){n.value=i}return(i,l)=>(w(),V(P(St).Group,Be(P(r),{value:P(a),"onUpdate:value":l[0]||(l[0]=c=>nr(a)?a.value=c:null),"button-style":"solid"}),{default:re(()=>[(w(!0),F(Ce,null,Se(o.value,c=>(w(),V(P(St).Button,{key:`${c.value}`,value:c.value,disabled:c.disabled,onClick:u=>s(c)},{default:re(()=>[Ie(se(c.label),1)]),_:2},1032,["value","disabled","onClick"]))),128))]),_:1},16,["value"]))}}),El=Y({name:"ApiSelect",inheritAttrs:!1,__name:"ApiSelect",props:{value:{type:[Array,Object,String,Number]},numberToString:X.bool,api:{type:Function,default:null},params:X.any.def({}),resultField:X.string.def(""),labelField:X.string.def("label"),valueField:X.string.def("value"),immediate:X.bool.def(!0),alwaysLoad:X.bool.def(!1),options:{type:Array,default:[]},apiSearch:{type:Object,default:()=>null},beforeFetch:{type:Function,default:null},afterFetch:{type:Function,default:null}},emits:["options-change","change","update:value"],setup(e,{emit:t}){const r=e,n=t,a=T([]),o=T(!1),s=T(!1),i=T([]),l=T({}),{t:c}=_n(),[u]=je(r,"value","change",i),f=q(()=>{const{labelField:v,valueField:C,numberToString:S}=r;let _=P(a).reduce((R,E)=>{if(E){const I=We(E,C);R.push(we(le({},Or(E,[v,C])),{label:We(E,v),value:S?`${I}`:I}))}return R},[]);return _.length>0?_:r.options});oe(()=>u.value,v=>{n("update:value",v)}),oe(()=>r.params,(v,C)=>{un(v,C)||p()},{deep:!0,immediate:r.immediate}),oe(()=>l.value,(v,C)=>{Ui(v)||un(v,C)||ee(this,null,function*(){yield p(),l.value={}})},{deep:!0,immediate:r.immediate});function p(){return ee(this,null,function*(){let{api:v,beforeFetch:C,afterFetch:S,params:_,resultField:R}=r;if(!(!v||!Q(v)||o.value)){a.value=[];try{o.value=!0;let E=Vi({},_,l.value);C&&Q(C)&&(E=(yield C(E))||E);let I=yield v(E);if(S&&Q(S)&&(I=(yield S(I))||I),s.value=!0,Array.isArray(I)){a.value=I,y();return}R&&(a.value=We(I,R)||[]),y()}catch(E){s.value=!1}finally{o.value=!1}}})}function d(v){return ee(this,null,function*(){v&&(r.alwaysLoad?yield p():!r.immediate&&!P(s)&&(r.apiSearch&&r.apiSearch.show&&!r.apiSearch.emptySearch?(a.value=[],y()):yield p()))})}let g=Le(m,500);function m(v){return ee(this,null,function*(){if(!r.apiSearch)return;const{show:C,searchName:S,beforeFetch:_,interceptFetch:R}=r.apiSearch;!C||!S||(v=v||void 0,_&&Q(_)&&(v=(yield _(v))||v),!(R&&Q(R)&&!(yield R(v)))&&(l.value={[S]:v}))})}function y(){n("options-change",P(f))}function h(v,...C){i.value=C}return(v,C)=>(w(),V(P(An),Be({onDropdownVisibleChange:d},v.$attrs,{onChange:h,onSearch:P(g),options:f.value,value:P(u),"onUpdate:value":C[0]||(C[0]=S=>nr(u)?u.value=S:null)}),Pr({_:2},[Se(Object.keys(v.$slots),S=>({name:S,fn:re(_=>[_t(v.$slots,S,Pt(Mt(_||{})))])})),o.value?{name:"suffixIcon",fn:re(()=>[G(P(Jt),{spin:""})]),key:"0"}:void 0,o.value?{name:"notFoundContent",fn:re(()=>[x("span",null,[G(P(Jt),{spin:"",class:"mr-1"}),Ie(" "+se(P(c)("component.form.apiSelectNotFound")),1)])]),key:"1"}:void 0]),1040,["onSearch","options","value"]))}}),Ol=Y({name:"ApiTree",__name:"ApiTree",props:{api:{type:Function},params:{type:Object},immediate:{type:Boolean,default:!0},resultField:{type:String,default:""},beforeFetch:{type:Function,default:null},afterFetch:{type:Function,default:null},value:{type:Array}},emits:["options-change","change","update:value"],setup(e,{emit:t}){const r=e,n=t,a=Ro(),o=T([]),s=T(!1),i=T(!1),l=T([]),[c]=je(r,"value","change",l),u=q(()=>le(le({},r.api?{treeData:P(o)}:{}),a));oe(()=>c.value,p=>{n("update:value",p)}),oe(()=>r.params,()=>{!P(s)&&f()},{deep:!0}),oe(()=>r.immediate,p=>{p&&!s.value&&f()}),Rn(()=>{r.immediate&&f()});function f(){return ee(this,null,function*(){let{api:p,beforeFetch:d,afterFetch:g,params:m,resultField:y}=r;if(!p||!Q(p))return;i.value=!0,o.value=[];let h;try{d&&Q(d)&&(m=(yield d(m))||m),h=yield p(m),g&&Q(g)&&(h=(yield g(h))||h)}catch(v){}i.value=!1,h&&(y&&(h=We(h,y)||[]),o.value=h||[],s.value=!0,n("options-change",o.value))})}return(p,d)=>(w(),V(P(zi),Be(u.value,{selectedKeys:P(c),"onUpdate:selectedKeys":d[0]||(d[0]=g=>nr(c)?c.value=g:null)}),Pr({_:2},[Se(Object.keys(p.$slots),g=>({name:g,fn:re(m=>[_t(p.$slots,g,Pt(Mt(m||{})))])}))]),1040,["selectedKeys"]))}}),$l=Y({name:"ApiTreeSelect",__name:"ApiTreeSelect",props:{api:{type:Function},params:{type:Object},immediate:{type:Boolean,default:!0},async:{type:Boolean,default:!1},resultField:X.string.def(""),labelField:X.string.def("title"),valueField:X.string.def("value"),childrenField:X.string.def("children"),beforeFetch:{type:Function,default:null},afterFetch:{type:Function,default:null}},emits:["options-change","change","load-data"],setup(e,{emit:t}){const r=e,n=t,a=Ro(),o=T([]),s=T(!1),i=T(!1),l=q(()=>le(le({},r.api?{treeData:P(o)}:{}),a)),c={children:r.childrenField,value:r.valueField,label:r.labelField};function u(...d){n("change",...d)}oe(()=>r.params,()=>{!P(s)&&p()},{deep:!0}),oe(()=>r.immediate,d=>{d&&!s.value&&p()}),Rn(()=>{r.immediate&&p()});function f(d){return new Promise(g=>{if(xn(d.children)&&d.children.length>0){g();return}n("load-data",{treeData:o,treeNode:d,resolve:g})})}function p(){return ee(this,null,function*(){let{api:d,beforeFetch:g,afterFetch:m,params:y,resultField:h}=r;if(!d||!Q(d)||i.value)return;i.value=!0,o.value=[];let v;try{g&&Q(g)&&(y=(yield g(y))||y),v=yield d(y),m&&Q(m)&&(v=(yield m(v))||v)}catch(C){}i.value=!1,v&&(h&&(v=We(v,h)||[]),o.value=v||[],s.value=!0,n("options-change",o.value))})}return(d,g)=>(w(),V(P(So),Be(l.value,{onChange:u,"field-names":c,"load-data":e.async?f:void 0}),Pr({_:2},[Se(Object.keys(d.$slots),m=>({name:m,fn:re(y=>[_t(d.$slots,m,Pt(Mt(y||{})))])})),i.value?{name:"suffixIcon",fn:re(()=>[G(P(Jt),{spin:""})]),key:"0"}:void 0]),1040,["load-data"]))}}),Tl=Y({name:"ApiCascader",__name:"ApiCascader",props:{value:{type:Array},api:{type:Function,default:null},numberToString:X.bool,resultField:X.string.def(""),labelField:X.string.def("label"),valueField:X.string.def("value"),childrenField:X.string.def("children"),apiParamKey:X.string.def("parentCode"),immediate:X.bool.def(!0),initFetchParams:{type:Object,default:()=>({})},isLeaf:{type:Function,default:null},displayRenderArray:{type:Array},beforeFetch:{type:Function,default:null},afterFetch:{type:Function,default:null}},emits:["change","defaultChange"],setup(e,{emit:t}){const r=e,n=t,a=T([]),o=T([]),s=T(!1),i=T([]),l=T(!0),{t:c}=_n(),[u]=je(r,"value","change",i);oe(a,y=>{const h=f(y);o.value=h},{deep:!0});function f(y){const{labelField:h,valueField:v,numberToString:C,childrenField:S,isLeaf:_}=r;return y.reduce((R,E)=>{if(E){const I=E[v],k=we(le({},Or(E,[h,v])),{label:E[h],value:C?`${I}`:I,isLeaf:_&&typeof _=="function"?_(E):!1}),M=Reflect.get(E,S);M&&Reflect.set(k,S,f(M)),R.push(k)}return R},[])}function p(){return ee(this,null,function*(){let{api:y,beforeFetch:h,initFetchParams:v,afterFetch:C,resultField:S}=r;if(!(!y||!Q(y))){a.value=[],s.value=!0;try{h&&Q(h)&&(v=(yield h(v))||v);let _=yield y(v);if(C&&Q(C)&&(_=(yield C(_))||_),Array.isArray(_)){a.value=_;return}S&&(a.value=We(_,S)||[])}catch(_){}finally{s.value=!1}}})}const d=y=>ee(this,null,function*(){const h=y[y.length-1];h.loading=!0;let{api:v,beforeFetch:C,afterFetch:S,resultField:_,apiParamKey:R}=r;if(!(!v||!Q(v)))try{let E={[R]:Reflect.get(h,"value")};C&&Q(C)&&(E=(yield C(E))||E);let I=yield v(E);if(S&&Q(S)&&(I=(yield S(I))||I),Array.isArray(I)){const k=f(I);h.children=k;return}if(_){const k=f(We(I,_)||[]);h.children=k}}catch(E){}finally{h.loading=!1}});oe(()=>r.immediate,()=>{r.immediate&&p()},{immediate:!0}),oe(()=>r.initFetchParams,()=>{!P(l)&&p()},{deep:!0});function g(y,h){i.value=h,n("defaultChange",y,h)}const m=({labels:y,selectedOptions:h})=>P(i).length===(h==null?void 0:h.length)?y.join(" / "):r.displayRenderArray?r.displayRenderArray.join(" / "):"";return(y,h)=>(w(),V(P(wo),{value:P(u),"onUpdate:value":h[0]||(h[0]=v=>nr(u)?u.value=v:null),options:o.value,"load-data":d,"change-on-select":"",onChange:g,displayRender:m},Pr({_:2},[s.value?{name:"suffixIcon",fn:re(()=>[G(P(Jt),{spin:""})]),key:"0"}:void 0,s.value?{name:"notFoundContent",fn:re(()=>[x("span",null,[G(P(Jt),{spin:"",class:"mr-1"}),Ie(" "+se(P(c)("component.form.apiSelectNotFound")),1)])]),key:"1"}:void 0]),1032,["value","options"]))}}),Pl=Y({name:"ApiTransfer",__name:"ApiTransfer",props:{value:{type:Array},api:{type:Function,default:null},params:{type:Object},dataSource:{type:Array},immediate:X.bool.def(!0),alwaysLoad:X.bool.def(!1),beforeFetch:{type:Function,default:null},afterFetch:{type:Function,default:null},resultField:X.string.def(""),labelField:X.string.def("title"),valueField:X.string.def("key"),showSearch:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},filterOption:{type:Function},selectedKeys:{type:Array},showSelectAll:{type:Boolean,default:!1},targetKeys:{type:Array}},emits:["options-change","change"],setup(e,{emit:t}){const r=e,n=t,a=T([]),o=T([]),s=q(()=>{const{labelField:f,valueField:p}=r;return P(a).reduce((d,g)=>(g&&d.push(we(le({},Or(g,[f,p])),{title:g[f],key:g[p]})),d),[])}),i=q(()=>Array.isArray(r.value)?r.value:Array.isArray(r.targetKeys)?r.targetKeys:[]);function l(f,p,d){o.value=f,n("change",f)}ol(()=>{r.immediate&&!r.alwaysLoad&&c()}),oe(()=>r.params,()=>{c()},{deep:!0});function c(){return ee(this,null,function*(){let{api:f,beforeFetch:p,afterFetch:d,params:g,resultField:m,dataSource:y}=r;if(!f||!Q(f)){Array.isArray(y)&&(a.value=y);return}a.value=[];try{p&&Q(p)&&(g=(yield p(g))||g);let h=yield f(g);if(d&&Q(d)&&(h=(yield d(h))||h),Array.isArray(h)){a.value=h,u();return}m&&(a.value=We(h,m)||[]),u()}catch(h){}})}function u(){n("options-change",P(s))}return(f,p)=>(w(),V(P(_o),{"data-source":s.value,"filter-option":e.filterOption,render:d=>d.title,showSelectAll:e.showSelectAll,selectedKeys:e.selectedKeys,targetKeys:i.value,showSearch:e.showSearch,disabled:e.disabled,onChange:l},null,8,["data-source","filter-option","render","showSelectAll","selectedKeys","targetKeys","showSearch","disabled"]))}}),Ml=Y({name:"PlainText",props:{value:{type:[String,Number],default:""}},setup(e){var a,o;const t=ct(),[r]=je(e),n=(o=(a=r.value)==null?void 0:a.toString())!=null?o:"";return{attrs:t,state:r,title:n}}}),Fl=["title"];function Il(e,t,r,n,a,o){return w(),F("div",Pt(Mt(e.attrs)),[x("span",{class:"ant-form-text",title:e.title},se(e.state),9,Fl)],16)}const Bl=tt(Ml,[["render",Il],["__scopeId","data-v-79eb5031"]]),Hl=Y({name:"PlainTitle",props:{value:{type:[String,Number],default:""}},setup(e){var a,o;const t=ct(),[r]=je(e),n=(o=(a=r.value)==null?void 0:a.toString())!=null?o:"";return{attrs:t,state:r,title:n}}}),Ll=["title"];function Dl(e,t,r,n,a,o){return w(),F("div",Pt(Mt(e.attrs)),[x("div",{class:"form-plainTit",title:e.title},[x("span",null,se(e.title),1)],8,Ll)],16)}const Nl=tt(Hl,[["render",Dl],["__scopeId","data-v-09b333d1"]]),jl=Y({name:"PlainSlot",props:{value:{type:[String,Number],default:""}},setup(e){var a,o;const t=ct(),[r]=je(e),n=(o=(a=r.value)==null?void 0:a.toString())!=null?o:"";return{attrs:t,state:r,title:n}}}),Ul=["title"];function Vl(e,t,r,n,a,o){return w(),F("div",Pt(Mt(e.attrs)),[x("div",{class:"form-plainSlot",title:e.title},null,8,Ul)],16)}const zl=tt(jl,[["render",Vl]]),Wl=Y({name:"TextEditor",components:{Tinymce:yl},props:{value:{type:[String,Number]},content:{type:String,default:"请输入文本内容"},height:{type:Number,default:600},reference:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const r=ct(),[n]=je(e);function a(o){t("change",o)}return{attrs:r,state:n,handleChange:a}}});function Kl(e,t,r,n,a,o){const s=W("Tinymce");return w(),F("div",Be(e.attrs,{"button-style":"solid",class:"text-editor"}),[G(s,{modelValue:e.state,"onUpdate:modelValue":t[0]||(t[0]=i=>e.state=i),height:e.height,showReference:e.reference,onChange:e.handleChange},null,8,["modelValue","height","showReference","onChange"])],16)}const Gl=tt(Wl,[["render",Kl],["__scopeId","data-v-0ea9be76"]]);function mr(e){"@babel/helpers - typeof";return mr=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},mr(e)}var Xl=/^\s+/,ql=/\s+$/;function A(e,t){if(e=e||"",t=t||{},e instanceof A)return e;if(!(this instanceof A))return new A(e,t);var r=Yl(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}A.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,a,o,s,i;return r=t.r/255,n=t.g/255,a=t.b/255,r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),n<=.03928?s=n/12.92:s=Math.pow((n+.055)/1.055,2.4),a<=.03928?i=a/12.92:i=Math.pow((a+.055)/1.055,2.4),.2126*o+.7152*s+.0722*i},setAlpha:function(t){return this._a=To(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ma(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ma(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+a+"%)":"hsva("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=ga(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=ga(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+a+"%)":"hsla("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return ya(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return es(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(Z(this._r,255)*100)+"%",g:Math.round(Z(this._g,255)*100)+"%",b:Math.round(Z(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Z(this._r,255)*100)+"%, "+Math.round(Z(this._g,255)*100)+"%, "+Math.round(Z(this._b,255)*100)+"%)":"rgba("+Math.round(Z(this._r,255)*100)+"%, "+Math.round(Z(this._g,255)*100)+"%, "+Math.round(Z(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ds[ya(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+ba(this._r,this._g,this._b,this._a),n=r,a=this._gradientType?"GradientType = 1, ":"";if(t){var o=A(t);n="#"+ba(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,a=this._a<1&&this._a>=0,o=!r&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?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 A(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(as,arguments)},brighten:function(){return this._applyModification(os,arguments)},darken:function(){return this._applyModification(is,arguments)},desaturate:function(){return this._applyModification(ts,arguments)},saturate:function(){return this._applyModification(rs,arguments)},greyscale:function(){return this._applyModification(ns,arguments)},spin:function(){return this._applyModification(ls,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(cs,arguments)},complement:function(){return this._applyCombination(ss,arguments)},monochromatic:function(){return this._applyCombination(fs,arguments)},splitcomplement:function(){return this._applyCombination(us,arguments)},triad:function(){return this._applyCombination(Ca,[3])},tetrad:function(){return this._applyCombination(Ca,[4])}};A.fromRatio=function(e,t){if(mr(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=Wt(e[n]));e=r}return A(e,t)};function Yl(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,o=null,s=!1,i=!1;return typeof e=="string"&&(e=gs(e)),mr(e)=="object"&&(Ue(e.r)&&Ue(e.g)&&Ue(e.b)?(t=Jl(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ue(e.h)&&Ue(e.s)&&Ue(e.v)?(n=Wt(e.s),a=Wt(e.v),t=Ql(e.h,n,a),s=!0,i="hsv"):Ue(e.h)&&Ue(e.s)&&Ue(e.l)&&(n=Wt(e.s),o=Wt(e.l),t=Zl(e.h,n,o),s=!0,i="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=To(r),{ok:s,format:e.format||i,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 Jl(e,t,r){return{r:Z(e,255)*255,g:Z(t,255)*255,b:Z(r,255)*255}}function ga(e,t,r){e=Z(e,255),t=Z(t,255),r=Z(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o,s,i=(n+a)/2;if(n==a)o=s=0;else{var l=n-a;switch(s=i>.5?l/(2-n-a):l/(n+a),n){case e:o=(t-r)/l+(t<r?6:0);break;case t:o=(r-e)/l+2;break;case r:o=(e-t)/l+4;break}o/=6}return{h:o,s,l:i}}function Zl(e,t,r){var n,a,o;e=Z(e,360),t=Z(t,100),r=Z(r,100);function s(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}if(t===0)n=a=o=r;else{var i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;n=s(l,i,e+1/3),a=s(l,i,e),o=s(l,i,e-1/3)}return{r:n*255,g:a*255,b:o*255}}function ma(e,t,r){e=Z(e,255),t=Z(t,255),r=Z(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),o,s,i=n,l=n-a;if(s=n===0?0:l/n,n==a)o=0;else{switch(n){case e:o=(t-r)/l+(t<r?6:0);break;case t:o=(r-e)/l+2;break;case r:o=(e-t)/l+4;break}o/=6}return{h:o,s,v:i}}function Ql(e,t,r){e=Z(e,360)*6,t=Z(t,100),r=Z(r,100);var n=Math.floor(e),a=e-n,o=r*(1-t),s=r*(1-a*t),i=r*(1-(1-a)*t),l=n%6,c=[r,s,o,o,i,r][l],u=[i,r,r,s,o,o][l],f=[o,o,i,r,r,s][l];return{r:c*255,g:u*255,b:f*255}}function ya(e,t,r,n){var a=[Fe(Math.round(e).toString(16)),Fe(Math.round(t).toString(16)),Fe(Math.round(r).toString(16))];return n&&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[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function es(e,t,r,n,a){var o=[Fe(Math.round(e).toString(16)),Fe(Math.round(t).toString(16)),Fe(Math.round(r).toString(16)),Fe(Po(n))];return a&&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[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function ba(e,t,r,n){var a=[Fe(Po(n)),Fe(Math.round(e).toString(16)),Fe(Math.round(t).toString(16)),Fe(Math.round(r).toString(16))];return a.join("")}A.equals=function(e,t){return!e||!t?!1:A(e).toRgbString()==A(t).toRgbString()};A.random=function(){return A.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function ts(e,t){t=t===0?0:t||10;var r=A(e).toHsl();return r.s-=t/100,r.s=Mr(r.s),A(r)}function rs(e,t){t=t===0?0:t||10;var r=A(e).toHsl();return r.s+=t/100,r.s=Mr(r.s),A(r)}function ns(e){return A(e).desaturate(100)}function as(e,t){t=t===0?0:t||10;var r=A(e).toHsl();return r.l+=t/100,r.l=Mr(r.l),A(r)}function os(e,t){t=t===0?0:t||10;var r=A(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)))),A(r)}function is(e,t){t=t===0?0:t||10;var r=A(e).toHsl();return r.l-=t/100,r.l=Mr(r.l),A(r)}function ls(e,t){var r=A(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,A(r)}function ss(e){var t=A(e).toHsl();return t.h=(t.h+180)%360,A(t)}function Ca(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=A(e).toHsl(),n=[A(e)],a=360/t,o=1;o<t;o++)n.push(A({h:(r.h+o*a)%360,s:r.s,l:r.l}));return n}function us(e){var t=A(e).toHsl(),r=t.h;return[A(e),A({h:(r+72)%360,s:t.s,l:t.l}),A({h:(r+216)%360,s:t.s,l:t.l})]}function cs(e,t,r){t=t||6,r=r||30;var n=A(e).toHsl(),a=360/r,o=[A(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(A(n));return o}function fs(e,t){t=t||6;for(var r=A(e).toHsv(),n=r.h,a=r.s,o=r.v,s=[],i=1/t;t--;)s.push(A({h:n,s:a,v:o})),o=(o+i)%1;return s}A.mix=function(e,t,r){r=r===0?0:r||50;var n=A(e).toRgb(),a=A(t).toRgb(),o=r/100,s={r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a};return A(s)};A.readability=function(e,t){var r=A(e),n=A(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};A.isReadable=function(e,t,r){var n=A.readability(e,t),a,o;switch(o=!1,a=ms(r),a.level+a.size){case"AAsmall":case"AAAlarge":o=n>=4.5;break;case"AAlarge":o=n>=3;break;case"AAAsmall":o=n>=7;break}return o};A.mostReadable=function(e,t,r){var n=null,a=0,o,s,i,l;r=r||{},s=r.includeFallbackColors,i=r.level,l=r.size;for(var c=0;c<t.length;c++)o=A.readability(e,t[c]),o>a&&(a=o,n=A(t[c]));return A.isReadable(e,n,{level:i,size:l})||!s?n:(r.includeFallbackColors=!1,A.mostReadable(e,["#fff","#000"],r))};var dn=A.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"},ds=A.hexNames=ps(dn);function ps(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function To(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Z(e,t){hs(e)&&(e="100%");var r=vs(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 Mr(e){return Math.min(1,Math.max(0,e))}function _e(e){return parseInt(e,16)}function hs(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function vs(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Fe(e){return e.length==1?"0"+e:""+e}function Wt(e){return e<=1&&(e=e*100+"%"),e}function Po(e){return Math.round(parseFloat(e)*255).toString(16)}function Sa(e){return _e(e)/255}var Me=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),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 Ue(e){return!!Me.CSS_UNIT.exec(e)}function gs(e){e=e.replace(Xl,"").replace(ql,"").toLowerCase();var t=!1;if(dn[e])e=dn[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Me.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Me.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Me.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Me.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Me.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Me.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Me.hex8.exec(e))?{r:_e(r[1]),g:_e(r[2]),b:_e(r[3]),a:Sa(r[4]),format:t?"name":"hex8"}:(r=Me.hex6.exec(e))?{r:_e(r[1]),g:_e(r[2]),b:_e(r[3]),format:t?"name":"hex"}:(r=Me.hex4.exec(e))?{r:_e(r[1]+""+r[1]),g:_e(r[2]+""+r[2]),b:_e(r[3]+""+r[3]),a:Sa(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=Me.hex3.exec(e))?{r:_e(r[1]+""+r[1]),g:_e(r[2]+""+r[2]),b:_e(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function ms(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 ft=ft||{};ft.stringify=function(){var e={"visit_linear-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-linear-gradient":function(t){return e.visit_gradient(t)},"visit_radial-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-radial-gradient":function(t){return e.visit_gradient(t)},visit_gradient:function(t){var r=e.visit(t.orientation);return r&&(r+=", "),t.type+"("+r+e.visit(t.colorStops)+")"},visit_shape:function(t){var r=t.value,n=e.visit(t.at),a=e.visit(t.style);return a&&(r+=" "+a),n&&(r+=" at "+n),r},"visit_default-radial":function(t){var r="",n=e.visit(t.at);return n&&(r+=n),r},"visit_extent-keyword":function(t){var r=t.value,n=e.visit(t.at);return n&&(r+=" at "+n),r},"visit_position-keyword":function(t){return t.value},visit_position:function(t){return e.visit(t.value.x)+" "+e.visit(t.value.y)},"visit_%":function(t){return t.value+"%"},visit_em:function(t){return t.value+"em"},visit_px:function(t){return t.value+"px"},visit_literal:function(t){return e.visit_color(t.value,t)},visit_hex:function(t){return e.visit_color("#"+t.value,t)},visit_rgb:function(t){return e.visit_color("rgb("+t.value.join(", ")+")",t)},visit_rgba:function(t){return e.visit_color("rgba("+t.value.join(", ")+")",t)},visit_color:function(t,r){var n=t,a=e.visit(r.length);return a&&(n+=" "+a),n},visit_angular:function(t){return t.value+"deg"},visit_directional:function(t){return"to "+t.value},visit_array:function(t){var r="",n=t.length;return t.forEach(function(a,o){r+=e.visit(a),o<n-1&&(r+=", ")}),r},visit:function(t){if(!t)return"";var r="";if(t instanceof Array)return e.visit_array(t,r);if(t.type){var n=e["visit_"+t.type];if(n)return n(t);throw Error("Missing visitor visit_"+t.type)}else throw Error("Invalid node.")}};return function(t){return e.visit(t)}}();var ft=ft||{};ft.parse=function(){var e={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]+\.?))/},t="";function r(O){var U=new Error(t+": "+O);throw U.source=t,U}function n(){var O=a();return t.length>0&&r("Invalid input not EOF"),O}function a(){return C(o)}function o(){return s("linear-gradient",e.linearGradient,l)||s("repeating-linear-gradient",e.repeatingLinearGradient,l)||s("radial-gradient",e.radialGradient,f)||s("repeating-radial-gradient",e.repeatingRadialGradient,f)}function s(O,U,K){return i(U,function(ge){var Ye=K();return Ye&&(N(e.comma)||r("Missing comma before color stops")),{type:O,orientation:Ye,colorStops:C(S)}})}function i(O,U){var K=N(O);if(K){N(e.startCall)||r("Missing (");var ge=U(K);return N(e.endCall)||r("Missing )"),ge}}function l(){return c()||u()}function c(){return H("directional",e.sideOrCorner,1)}function u(){return H("angular",e.angleValue,1)}function f(){var O,U=p(),K;return U&&(O=[],O.push(U),K=t,N(e.comma)&&(U=p(),U?O.push(U):t=K)),O}function p(){var O=d()||g();if(O)O.at=y();else{var U=m();if(U){O=U;var K=y();K&&(O.at=K)}else{var ge=h();ge&&(O={type:"default-radial",at:ge})}}return O}function d(){var O=H("shape",/^(circle)/i,0);return O&&(O.style=B()||m()),O}function g(){var O=H("shape",/^(ellipse)/i,0);return O&&(O.style=b()||m()),O}function m(){return H("extent-keyword",e.extentKeywords,1)}function y(){if(H("position",/^at/,0)){var O=h();return O||r("Missing positioning value"),O}}function h(){var O=v();if(O.x||O.y)return{type:"position",value:O}}function v(){return{x:b(),y:b()}}function C(O){var U=O(),K=[];if(U)for(K.push(U);N(e.comma);)U=O(),U?K.push(U):r("One extra comma");return K}function S(){var O=_();return O||r("Expected color definition"),O.length=b(),O}function _(){return E()||k()||I()||R()}function R(){return H("literal",e.literalColor,0)}function E(){return H("hex",e.hexColor,1)}function I(){return i(e.rgbColor,function(){return{type:"rgb",value:C(M)}})}function k(){return i(e.rgbaColor,function(){return{type:"rgba",value:C(M)}})}function M(){return N(e.number)[1]}function b(){return H("%",e.percentageValue,1)||$()||B()}function $(){return H("position-keyword",e.positionKeywords,1)}function B(){return H("px",e.pixelValue,1)||H("em",e.emValue,1)}function H(O,U,K){var ge=N(U);if(ge)return{type:O,value:ge[K]}}function N(O){var U,K;return K=/^[\n\r\t\s]+/.exec(t),K&&j(K[0].length),U=O.exec(t),U&&j(U[0].length),U}function j(O){t=t.substr(O)}return function(O){return t=O.toString(),n()}}();var ys=ft.parse,bs=ft.stringify,ye="top",$e="bottom",Te="right",be="left",En="auto",ar=[ye,$e,Te,be],xt="start",Zt="end",Cs="clippingParents",Mo="viewport",jt="popper",Ss="reference",wa=ar.reduce(function(e,t){return e.concat([t+"-"+xt,t+"-"+Zt])},[]),Fo=[].concat(ar,[En]).reduce(function(e,t){return e.concat([t,t+"-"+xt,t+"-"+Zt])},[]),ws="beforeRead",_s="read",xs="afterRead",ks="beforeMain",As="main",Rs="afterMain",Es="beforeWrite",Os="write",$s="afterWrite",Ts=[ws,_s,xs,ks,As,Rs,Es,Os,$s];function Ne(e){return e?(e.nodeName||"").toLowerCase():null}function xe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function st(e){var t=xe(e).Element;return e instanceof t||e instanceof Element}function Re(e){var t=xe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function On(e){if(typeof ShadowRoot=="undefined")return!1;var t=xe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ps(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!Re(o)||!Ne(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(s){var i=a[s];i===!1?o.removeAttribute(s):o.setAttribute(s,i===!0?"":i)}))})}function Ms(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 a=t.elements[n],o=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),i=s.reduce(function(l,c){return l[c]="",l},{});!Re(a)||!Ne(a)||(Object.assign(a.style,i),Object.keys(o).forEach(function(l){a.removeAttribute(l)}))})}}const Fs={name:"applyStyles",enabled:!0,phase:"write",fn:Ps,effect:Ms,requires:["computeStyles"]};function De(e){return e.split("-")[0]}var lt=Math.max,yr=Math.min,kt=Math.round;function pn(){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 Io(){return!/^((?!chrome|android).)*safari/i.test(pn())}function At(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&Re(e)&&(a=e.offsetWidth>0&&kt(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&kt(n.height)/e.offsetHeight||1);var s=st(e)?xe(e):window,i=s.visualViewport,l=!Io()&&r,c=(n.left+(l&&i?i.offsetLeft:0))/a,u=(n.top+(l&&i?i.offsetTop:0))/o,f=n.width/a,p=n.height/o;return{width:f,height:p,top:u,right:c+f,bottom:u+p,left:c,x:c,y:u}}function $n(e){var t=At(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 Bo(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&On(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ge(e){return xe(e).getComputedStyle(e)}function Is(e){return["table","td","th"].indexOf(Ne(e))>=0}function rt(e){return((st(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fr(e){return Ne(e)==="html"?e:e.assignedSlot||e.parentNode||(On(e)?e.host:null)||rt(e)}function _a(e){return!Re(e)||Ge(e).position==="fixed"?null:e.offsetParent}function Bs(e){var t=/firefox/i.test(pn()),r=/Trident/i.test(pn());if(r&&Re(e)){var n=Ge(e);if(n.position==="fixed")return null}var a=Fr(e);for(On(a)&&(a=a.host);Re(a)&&["html","body"].indexOf(Ne(a))<0;){var o=Ge(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function or(e){for(var t=xe(e),r=_a(e);r&&Is(r)&&Ge(r).position==="static";)r=_a(r);return r&&(Ne(r)==="html"||Ne(r)==="body"&&Ge(r).position==="static")?t:r||Bs(e)||t}function Tn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Gt(e,t,r){return lt(e,yr(t,r))}function Hs(e,t,r){var n=Gt(e,t,r);return n>r?r:n}function Ho(){return{top:0,right:0,bottom:0,left:0}}function Lo(e){return Object.assign({},Ho(),e)}function Do(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Ls=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Lo(typeof t!="number"?t:Do(t,ar))};function Ds(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,i=De(r.placement),l=Tn(i),c=[be,Te].indexOf(i)>=0,u=c?"height":"width";if(!(!o||!s)){var f=Ls(a.padding,r),p=$n(o),d=l==="y"?ye:be,g=l==="y"?$e:Te,m=r.rects.reference[u]+r.rects.reference[l]-s[l]-r.rects.popper[u],y=s[l]-r.rects.reference[l],h=or(o),v=h?l==="y"?h.clientHeight||0:h.clientWidth||0:0,C=m/2-y/2,S=f[d],_=v-p[u]-f[g],R=v/2-p[u]/2+C,E=Gt(S,R,_),I=l;r.modifiersData[n]=(t={},t[I]=E,t.centerOffset=E-R,t)}}function Ns(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Bo(t.elements.popper,a)&&(t.elements.arrow=a))}const js={name:"arrow",enabled:!0,phase:"main",fn:Ds,effect:Ns,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Rt(e){return e.split("-")[1]}var Us={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vs(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:kt(r*a)/a||0,y:kt(n*a)/a||0}}function xa(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,p=s.x,d=p===void 0?0:p,g=s.y,m=g===void 0?0:g,y=typeof u=="function"?u({x:d,y:m}):{x:d,y:m};d=y.x,m=y.y;var h=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),C=be,S=ye,_=window;if(c){var R=or(r),E="clientHeight",I="clientWidth";if(R===xe(r)&&(R=rt(r),Ge(R).position!=="static"&&i==="absolute"&&(E="scrollHeight",I="scrollWidth")),R=R,a===ye||(a===be||a===Te)&&o===Zt){S=$e;var k=f&&R===_&&_.visualViewport?_.visualViewport.height:R[E];m-=k-n.height,m*=l?1:-1}if(a===be||(a===ye||a===$e)&&o===Zt){C=Te;var M=f&&R===_&&_.visualViewport?_.visualViewport.width:R[I];d-=M-n.width,d*=l?1:-1}}var b=Object.assign({position:i},c&&Us),$=u===!0?Vs({x:d,y:m},xe(r)):{x:d,y:m};if(d=$.x,m=$.y,l){var B;return Object.assign({},b,(B={},B[S]=v?"0":"",B[C]=h?"0":"",B.transform=(_.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",B))}return Object.assign({},b,(t={},t[S]=v?m+"px":"",t[C]=h?d+"px":"",t.transform="",t))}function zs(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,s=o===void 0?!0:o,i=r.roundOffsets,l=i===void 0?!0:i,c={placement:De(t.placement),variation:Rt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,xa(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,xa(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ws={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zs,data:{}};var cr={passive:!0};function Ks(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,s=n.resize,i=s===void 0?!0:s,l=xe(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",r.update,cr)}),i&&l.addEventListener("resize",r.update,cr),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",r.update,cr)}),i&&l.removeEventListener("resize",r.update,cr)}}const Gs={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ks,data:{}};var Xs={left:"right",right:"left",bottom:"top",top:"bottom"};function hr(e){return e.replace(/left|right|bottom|top/g,function(t){return Xs[t]})}var qs={start:"end",end:"start"};function ka(e){return e.replace(/start|end/g,function(t){return qs[t]})}function Pn(e){var t=xe(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Mn(e){return At(rt(e)).left+Pn(e).scrollLeft}function Ys(e,t){var r=xe(e),n=rt(e),a=r.visualViewport,o=n.clientWidth,s=n.clientHeight,i=0,l=0;if(a){o=a.width,s=a.height;var c=Io();(c||!c&&t==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}return{width:o,height:s,x:i+Mn(e),y:l}}function Js(e){var t,r=rt(e),n=Pn(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=lt(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=lt(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-n.scrollLeft+Mn(e),l=-n.scrollTop;return Ge(a||r).direction==="rtl"&&(i+=lt(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:i,y:l}}function Fn(e){var t=Ge(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function No(e){return["html","body","#document"].indexOf(Ne(e))>=0?e.ownerDocument.body:Re(e)&&Fn(e)?e:No(Fr(e))}function Xt(e,t){var r;t===void 0&&(t=[]);var n=No(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=xe(n),s=a?[o].concat(o.visualViewport||[],Fn(n)?n:[]):n,i=t.concat(s);return a?i:i.concat(Xt(Fr(s)))}function hn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Zs(e,t){var r=At(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===Mo?hn(Ys(e,r)):st(t)?Zs(t,r):hn(Js(rt(e)))}function Qs(e){var t=Xt(Fr(e)),r=["absolute","fixed"].indexOf(Ge(e).position)>=0,n=r&&Re(e)?or(e):e;return st(n)?t.filter(function(a){return st(a)&&Bo(a,n)&&Ne(a)!=="body"}):[]}function eu(e,t,r,n){var a=t==="clippingParents"?Qs(e):[].concat(t),o=[].concat(a,[r]),s=o[0],i=o.reduce(function(l,c){var u=Aa(e,c,n);return l.top=lt(u.top,l.top),l.right=yr(u.right,l.right),l.bottom=yr(u.bottom,l.bottom),l.left=lt(u.left,l.left),l},Aa(e,s,n));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function jo(e){var t=e.reference,r=e.element,n=e.placement,a=n?De(n):null,o=n?Rt(n):null,s=t.x+t.width/2-r.width/2,i=t.y+t.height/2-r.height/2,l;switch(a){case ye:l={x:s,y:t.y-r.height};break;case $e:l={x:s,y:t.y+t.height};break;case Te:l={x:t.x+t.width,y:i};break;case be:l={x:t.x-r.width,y:i};break;default:l={x:t.x,y:t.y}}var c=a?Tn(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case xt:l[c]=l[c]-(t[u]/2-r[u]/2);break;case Zt:l[c]=l[c]+(t[u]/2-r[u]/2);break}}return l}function Qt(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,s=o===void 0?e.strategy:o,i=r.boundary,l=i===void 0?Cs:i,c=r.rootBoundary,u=c===void 0?Mo:c,f=r.elementContext,p=f===void 0?jt:f,d=r.altBoundary,g=d===void 0?!1:d,m=r.padding,y=m===void 0?0:m,h=Lo(typeof y!="number"?y:Do(y,ar)),v=p===jt?Ss:jt,C=e.rects.popper,S=e.elements[g?v:p],_=eu(st(S)?S:S.contextElement||rt(e.elements.popper),l,u,s),R=At(e.elements.reference),E=jo({reference:R,element:C,placement:a}),I=hn(Object.assign({},C,E)),k=p===jt?I:R,M={top:_.top-k.top+h.top,bottom:k.bottom-_.bottom+h.bottom,left:_.left-k.left+h.left,right:k.right-_.right+h.right},b=e.modifiersData.offset;if(p===jt&&b){var $=b[a];Object.keys(M).forEach(function(B){var H=[Te,$e].indexOf(B)>=0?1:-1,N=[ye,$e].indexOf(B)>=0?"y":"x";M[B]+=$[N]*H})}return M}function tu(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,s=r.padding,i=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?Fo:l,u=Rt(n),f=u?i?wa:wa.filter(function(g){return Rt(g)===u}):ar,p=f.filter(function(g){return c.indexOf(g)>=0});p.length===0&&(p=f);var d=p.reduce(function(g,m){return g[m]=Qt(e,{placement:m,boundary:a,rootBoundary:o,padding:s})[De(m)],g},{});return Object.keys(d).sort(function(g,m){return d[g]-d[m]})}function ru(e){if(De(e)===En)return[];var t=hr(e);return[ka(e),t,ka(t)]}function nu(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,i=s===void 0?!0:s,l=r.fallbackPlacements,c=r.padding,u=r.boundary,f=r.rootBoundary,p=r.altBoundary,d=r.flipVariations,g=d===void 0?!0:d,m=r.allowedAutoPlacements,y=t.options.placement,h=De(y),v=h===y,C=l||(v||!g?[hr(y)]:ru(y)),S=[y].concat(C).reduce(function(Je,He){return Je.concat(De(He)===En?tu(t,{placement:He,boundary:u,rootBoundary:f,padding:c,flipVariations:g,allowedAutoPlacements:m}):He)},[]),_=t.rects.reference,R=t.rects.popper,E=new Map,I=!0,k=S[0],M=0;M<S.length;M++){var b=S[M],$=De(b),B=Rt(b)===xt,H=[ye,$e].indexOf($)>=0,N=H?"width":"height",j=Qt(t,{placement:b,boundary:u,rootBoundary:f,altBoundary:p,padding:c}),O=H?B?Te:be:B?$e:ye;_[N]>R[N]&&(O=hr(O));var U=hr(O),K=[];if(o&&K.push(j[$]<=0),i&&K.push(j[O]<=0,j[U]<=0),K.every(function(Je){return Je})){k=b,I=!1;break}E.set(b,K)}if(I)for(var ge=g?3:1,Ye=function(He){var Dt=S.find(function(sr){var at=E.get(sr);if(at)return at.slice(0,He).every(function(Nr){return Nr})});if(Dt)return k=Dt,"break"},nt=ge;nt>0;nt--){var ht=Ye(nt);if(ht==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}const au={name:"flip",enabled:!0,phase:"main",fn:nu,requiresIfExists:["offset"],data:{_skip:!1}};function Ra(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 Ea(e){return[ye,Te,$e,be].some(function(t){return e[t]>=0})}function ou(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=Qt(t,{elementContext:"reference"}),i=Qt(t,{altBoundary:!0}),l=Ra(s,n),c=Ra(i,a,o),u=Ea(l),f=Ea(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const iu={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ou};function lu(e,t,r){var n=De(e),a=[be,ye].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],i=o[1];return s=s||0,i=(i||0)*a,[be,Te].indexOf(n)>=0?{x:i,y:s}:{x:s,y:i}}function su(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,s=Fo.reduce(function(u,f){return u[f]=lu(f,t.rects,o),u},{}),i=s[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}const uu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:su};function cu(e){var t=e.state,r=e.name;t.modifiersData[r]=jo({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const fu={name:"popperOffsets",enabled:!0,phase:"read",fn:cu,data:{}};function du(e){return e==="x"?"y":"x"}function pu(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,i=s===void 0?!1:s,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,f=r.padding,p=r.tether,d=p===void 0?!0:p,g=r.tetherOffset,m=g===void 0?0:g,y=Qt(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),h=De(t.placement),v=Rt(t.placement),C=!v,S=Tn(h),_=du(S),R=t.modifiersData.popperOffsets,E=t.rects.reference,I=t.rects.popper,k=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,M=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),b=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(R){if(o){var B,H=S==="y"?ye:be,N=S==="y"?$e:Te,j=S==="y"?"height":"width",O=R[S],U=O+y[H],K=O-y[N],ge=d?-I[j]/2:0,Ye=v===xt?E[j]:I[j],nt=v===xt?-I[j]:-E[j],ht=t.elements.arrow,Je=d&&ht?$n(ht):{width:0,height:0},He=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ho(),Dt=He[H],sr=He[N],at=Gt(0,E[j],Je[j]),Nr=C?E[j]/2-ge-at-Dt-M.mainAxis:Ye-at-Dt-M.mainAxis,wi=C?-E[j]/2+ge+at+sr+M.mainAxis:nt+at+sr+M.mainAxis,jr=t.elements.arrow&&or(t.elements.arrow),_i=jr?S==="y"?jr.clientTop||0:jr.clientLeft||0:0,aa=(B=b==null?void 0:b[S])!=null?B:0,xi=O+Nr-aa-_i,ki=O+wi-aa,oa=Gt(d?yr(U,xi):U,O,d?lt(K,ki):K);R[S]=oa,$[S]=oa-O}if(i){var ia,Ai=S==="x"?ye:be,Ri=S==="x"?$e:Te,ot=R[_],ur=_==="y"?"height":"width",la=ot+y[Ai],sa=ot-y[Ri],Ur=[ye,be].indexOf(h)!==-1,ua=(ia=b==null?void 0:b[_])!=null?ia:0,ca=Ur?la:ot-E[ur]-I[ur]-ua+M.altAxis,fa=Ur?ot+E[ur]+I[ur]-ua-M.altAxis:sa,da=d&&Ur?Hs(ca,ot,fa):Gt(d?ca:la,ot,d?fa:sa);R[_]=da,$[_]=da-ot}t.modifiersData[n]=$}}const hu={name:"preventOverflow",enabled:!0,phase:"main",fn:pu,requiresIfExists:["offset"]};function vu(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function gu(e){return e===xe(e)||!Re(e)?Pn(e):vu(e)}function mu(e){var t=e.getBoundingClientRect(),r=kt(t.width)/e.offsetWidth||1,n=kt(t.height)/e.offsetHeight||1;return r!==1||n!==1}function yu(e,t,r){r===void 0&&(r=!1);var n=Re(t),a=Re(t)&&mu(t),o=rt(t),s=At(e,a,r),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Ne(t)!=="body"||Fn(o))&&(i=gu(t)),Re(t)?(l=At(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Mn(o))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function bu(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(i){if(!r.has(i)){var l=t.get(i);l&&a(l)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function Cu(e){var t=bu(e);return Ts.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function Su(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function wu(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Oa={placement:"bottom",modifiers:[],strategy:"absolute"};function $a(){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 _u(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,o=a===void 0?Oa:a;return function(i,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Oa,o),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},f=[],p=!1,d={state:u,setOptions:function(h){var v=typeof h=="function"?h(u.options):h;m(),u.options=Object.assign({},o,u.options,v),u.scrollParents={reference:st(i)?Xt(i):i.contextElement?Xt(i.contextElement):[],popper:Xt(l)};var C=Cu(wu([].concat(n,u.options.modifiers)));return u.orderedModifiers=C.filter(function(S){return S.enabled}),g(),d.update()},forceUpdate:function(){if(!p){var h=u.elements,v=h.reference,C=h.popper;if($a(v,C)){u.rects={reference:yu(v,or(C),u.options.strategy==="fixed"),popper:$n(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(M){return u.modifiersData[M.name]=Object.assign({},M.data)});for(var S=0;S<u.orderedModifiers.length;S++){if(u.reset===!0){u.reset=!1,S=-1;continue}var _=u.orderedModifiers[S],R=_.fn,E=_.options,I=E===void 0?{}:E,k=_.name;typeof R=="function"&&(u=R({state:u,options:I,name:k,instance:d})||u)}}}},update:Su(function(){return new Promise(function(y){d.forceUpdate(),y(u)})}),destroy:function(){m(),p=!0}};if(!$a(i,l))return d;d.setOptions(c).then(function(y){!p&&c.onFirstUpdate&&c.onFirstUpdate(y)});function g(){u.orderedModifiers.forEach(function(y){var h=y.name,v=y.options,C=v===void 0?{}:v,S=y.effect;if(typeof S=="function"){var _=S({state:u,name:h,instance:d,options:C}),R=function(){};f.push(_||R)}})}function m(){f.forEach(function(y){return y()}),f=[]}return d}}var xu=[Gs,fu,Ws,Fs,uu,au,hu,js,iu],ku=_u({defaultModifiers:xu}),Ta=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function In(e){var t={exports:{}};return e(t,t.exports),t.exports}var fr=function(e){return e&&e.Math==Math&&e},ue=fr(typeof globalThis=="object"&&globalThis)||fr(typeof window=="object"&&window)||fr(typeof self=="object"&&self)||fr(typeof Ta=="object"&&Ta)||function(){return this}()||Function("return this")(),J=function(e){try{return!!e()}catch(t){return!0}},Ae=!J(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Pa={}.propertyIsEnumerable,Ma=Object.getOwnPropertyDescriptor,Au={f:Ma&&!Pa.call({1:2},1)?function(e){var t=Ma(this,e);return!!t&&t.enumerable}:Pa},Ir=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ru={}.toString,Ke=function(e){return Ru.call(e).slice(8,-1)},Eu="".split,Br=J(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return Ke(e)=="String"?Eu.call(e,""):Object(e)}:Object,Ze=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},Bt=function(e){return Br(Ze(e))},ce=function(e){return typeof e=="object"?e!==null:typeof e=="function"},Bn=function(e,t){if(!ce(e))return e;var r,n;if(t&&typeof(r=e.toString)=="function"&&!ce(n=r.call(e))||typeof(r=e.valueOf)=="function"&&!ce(n=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!ce(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},Ou={}.hasOwnProperty,ie=function(e,t){return Ou.call(e,t)},vn=ue.document,$u=ce(vn)&&ce(vn.createElement),Uo=function(e){return $u?vn.createElement(e):{}},Vo=!Ae&&!J(function(){return Object.defineProperty(Uo("div"),"a",{get:function(){return 7}}).a!=7}),Fa=Object.getOwnPropertyDescriptor,Hn={f:Ae?Fa:function(e,t){if(e=Bt(e),t=Bn(t,!0),Vo)try{return Fa(e,t)}catch(r){}if(ie(e,t))return Ir(!Au.f.call(e,t),e[t])}},me=function(e){if(!ce(e))throw TypeError(String(e)+" is not an object");return e},Ia=Object.defineProperty,Xe={f:Ae?Ia:function(e,t,r){if(me(e),t=Bn(t,!0),me(r),Vo)try{return Ia(e,t,r)}catch(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Ee=Ae?function(e,t,r){return Xe.f(e,t,Ir(1,r))}:function(e,t,r){return e[t]=r,e},Ln=function(e,t){try{Ee(ue,e,t)}catch(r){ue[e]=t}return t},ut=ue["__core-js_shared__"]||Ln("__core-js_shared__",{}),Tu=Function.toString;typeof ut.inspectSource!="function"&&(ut.inspectSource=function(e){return Tu.call(e)});var br,qt,Cr,zo=ut.inspectSource,Ba=ue.WeakMap,Pu=typeof Ba=="function"&&/native code/.test(zo(Ba)),Wo=In(function(e){(e.exports=function(t,r){return ut[t]||(ut[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Mu=0,Fu=Math.random(),Dn=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++Mu+Fu).toString(36)},Ha=Wo("keys"),Nn=function(e){return Ha[e]||(Ha[e]=Dn(e))},Hr={},Iu=ue.WeakMap;if(Pu){var vt=ut.state||(ut.state=new Iu),Bu=vt.get,Hu=vt.has,Lu=vt.set;br=function(e,t){return t.facade=e,Lu.call(vt,e,t),t},qt=function(e){return Bu.call(vt,e)||{}},Cr=function(e){return Hu.call(vt,e)}}else{var Ut=Nn("state");Hr[Ut]=!0,br=function(e,t){return t.facade=e,Ee(e,Ut,t),t},qt=function(e){return ie(e,Ut)?e[Ut]:{}},Cr=function(e){return ie(e,Ut)}}var Qe={set:br,get:qt,has:Cr,enforce:function(e){return Cr(e)?qt(e):br(e,{})},getterFor:function(e){return function(t){var r;if(!ce(t)||(r=qt(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},et=In(function(e){var t=Qe.get,r=Qe.enforce,n=String(String).split("String");(e.exports=function(a,o,s,i){var l,c=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,f=!!i&&!!i.noTargetGet;typeof s=="function"&&(typeof o!="string"||ie(s,"name")||Ee(s,"name",o),(l=r(s)).source||(l.source=n.join(typeof o=="string"?o:""))),a!==ue?(c?!f&&a[o]&&(u=!0):delete a[o],u?a[o]=s:Ee(a,o,s)):u?a[o]=s:Ln(o,s)})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||zo(this)})}),Vr=ue,La=function(e){return typeof e=="function"?e:void 0},Lr=function(e,t){return arguments.length<2?La(Vr[e])||La(ue[e]):Vr[e]&&Vr[e][t]||ue[e]&&ue[e][t]},Du=Math.ceil,Nu=Math.floor,Ht=function(e){return isNaN(e=+e)?0:(e>0?Nu:Du)(e)},ju=Math.min,ke=function(e){return e>0?ju(Ht(e),9007199254740991):0},Uu=Math.max,Vu=Math.min,Sr=function(e,t){var r=Ht(e);return r<0?Uu(r+t,0):Vu(r,t)},zu=function(e){return function(t,r,n){var a,o=Bt(t),s=ke(o.length),i=Sr(n,s);if(e&&r!=r){for(;s>i;)if((a=o[i++])!=a)return!0}else for(;s>i;i++)if((e||i in o)&&o[i]===r)return e||i||0;return!e&&-1}},Ko={indexOf:zu(!1)},Wu=Ko.indexOf,Go=function(e,t){var r,n=Bt(e),a=0,o=[];for(r in n)!ie(Hr,r)&&ie(n,r)&&o.push(r);for(;t.length>a;)ie(n,r=t[a++])&&(~Wu(o,r)||o.push(r));return o},wr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ku=wr.concat("length","prototype"),Gu={f:Object.getOwnPropertyNames||function(e){return Go(e,Ku)}},Xu={f:Object.getOwnPropertySymbols},qu=Lr("Reflect","ownKeys")||function(e){var t=Gu.f(me(e)),r=Xu.f;return r?t.concat(r(e)):t},Yu=function(e,t){for(var r=qu(t),n=Xe.f,a=Hn.f,o=0;o<r.length;o++){var s=r[o];ie(e,s)||n(e,s,a(t,s))}},Ju=/#|\.prototype\./,ir=function(e,t){var r=Qu[Zu(e)];return r==tc||r!=ec&&(typeof t=="function"?J(t):!!t)},Zu=ir.normalize=function(e){return String(e).replace(Ju,".").toLowerCase()},Qu=ir.data={},ec=ir.NATIVE="N",tc=ir.POLYFILL="P",gn=ir,rc=Hn.f,ve=function(e,t){var r,n,a,o,s,i=e.target,l=e.global,c=e.stat;if(r=l?ue:c?ue[i]||Ln(i,{}):(ue[i]||{}).prototype)for(n in t){if(o=t[n],a=e.noTargetGet?(s=rc(r,n))&&s.value:r[n],!gn(l?n:i+(c?".":"#")+n,e.forced)&&a!==void 0){if(typeof o==typeof a)continue;Yu(o,a)}(e.sham||a&&a.sham)&&Ee(o,"sham",!0),et(r,n,o,e)}},jn=function(e,t){var r=[][e];return!!r&&J(function(){r.call(null,t||function(){throw 1},1)})},nc=Object.defineProperty,zr={},Da=function(e){throw e},Lt=function(e,t){if(ie(zr,e))return zr[e];t||(t={});var r=[][e],n=!!ie(t,"ACCESSORS")&&t.ACCESSORS,a=ie(t,0)?t[0]:Da,o=ie(t,1)?t[1]:void 0;return zr[e]=!!r&&!J(function(){if(n&&!Ae)return!0;var s={length:-1};n?nc(s,1,{enumerable:!0,get:Da}):s[1]=1,r.call(s,a,o)})},ac=Ko.indexOf,Xo=[].indexOf,Na=!!Xo&&1/[1].indexOf(1,-0)<0,oc=jn("indexOf"),ic=Lt("indexOf",{ACCESSORS:!0,1:0});function dt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lc(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 pt(e,t,r){return r&&lc(e,r),e}ve({target:"Array",proto:!0,forced:Na||!oc||!ic},{indexOf:function(e){return Na?Xo.apply(this,arguments)||0:ac(this,e,arguments.length>1?arguments[1]:void 0)}});(function(){function e(){dt(this,e)}return pt(e,null,[{key:"isInBrowser",value:function(){return typeof window!="undefined"}},{key:"isServer",value:function(){return typeof window=="undefined"}},{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 sc=[].join,uc=Br!=Object,cc=jn("join",",");ve({target:"Array",proto:!0,forced:uc||!cc},{join:function(e){return sc.call(Bt(this),e===void 0?",":e)}});var gt,_r,qe=function(e){return Object(Ze(e))},Et=Array.isArray||function(e){return Ke(e)=="Array"},qo=!!Object.getOwnPropertySymbols&&!J(function(){return!String(Symbol())}),fc=qo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",dr=Wo("wks"),Yt=ue.Symbol,dc=fc?Yt:Yt&&Yt.withoutSetter||Dn,ne=function(e){return ie(dr,e)||(qo&&ie(Yt,e)?dr[e]=Yt[e]:dr[e]=dc("Symbol."+e)),dr[e]},pc=ne("species"),Dr=function(e,t){var r;return Et(e)&&(typeof(r=e.constructor)!="function"||r!==Array&&!Et(r.prototype)?ce(r)&&(r=r[pc])===null&&(r=void 0):r=void 0),new(r===void 0?Array:r)(t===0?0:t)},Ot=function(e,t,r){var n=Bn(t);n in e?Xe.f(e,n,Ir(0,r)):e[n]=r},Wr=Lr("navigator","userAgent")||"",ja=ue.process,Ua=ja&&ja.versions,Va=Ua&&Ua.v8;Va?_r=(gt=Va.split("."))[0]+gt[1]:Wr&&(!(gt=Wr.match(/Edge\/(\d+)/))||gt[1]>=74)&&(gt=Wr.match(/Chrome\/(\d+)/))&&(_r=gt[1]);var xr=_r&&+_r,hc=ne("species"),Un=function(e){return xr>=51||!J(function(){var t=[];return(t.constructor={})[hc]=function(){return{foo:1}},t[e](Boolean).foo!==1})},vc=Un("splice"),gc=Lt("splice",{ACCESSORS:!0,0:0,1:2}),mc=Math.max,yc=Math.min;ve({target:"Array",proto:!0,forced:!vc||!gc},{splice:function(e,t){var r,n,a,o,s,i,l=qe(this),c=ke(l.length),u=Sr(e,c),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=c-u):(r=f-2,n=yc(mc(Ht(t),0),c-u)),c+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(a=Dr(l,n),o=0;o<n;o++)(s=u+o)in l&&Ot(a,o,l[s]);if(a.length=n,r<n){for(o=u;o<c-n;o++)i=o+r,(s=o+n)in l?l[i]=l[s]:delete l[i];for(o=c;o>c-n+r;o--)delete l[o-1]}else if(r>n)for(o=c-n;o>u;o--)i=o+r-1,(s=o+n-1)in l?l[i]=l[s]:delete l[i];for(o=0;o<r;o++)l[o+u]=arguments[o+2];return l.length=c-n+r,a}});var Yo={};Yo[ne("toStringTag")]="z";var Vn=String(Yo)==="[object z]",bc=ne("toStringTag"),Cc=Ke(function(){return arguments}())=="Arguments",Jo=Vn?Ke:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=function(a,o){try{return a[o]}catch(s){}}(t=Object(e),bc))=="string"?r:Cc?Ke(t):(n=Ke(t))=="Object"&&typeof t.callee=="function"?"Arguments":n},Sc=Vn?{}.toString:function(){return"[object "+Jo(this)+"]"};Vn||et(Object.prototype,"toString",Sc,{unsafe:!0});var Zo=function(){var e=me(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 za(e,t){return RegExp(e,t)}var Kr,Gr,Wa={UNSUPPORTED_Y:J(function(){var e=za("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),BROKEN_CARET:J(function(){var e=za("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},kr=RegExp.prototype.exec,wc=String.prototype.replace,Qo=kr,Xr=(Kr=/a/,Gr=/b*/g,kr.call(Kr,"a"),kr.call(Gr,"a"),Kr.lastIndex!==0||Gr.lastIndex!==0),Ka=Wa.UNSUPPORTED_Y||Wa.BROKEN_CARET,qr=/()??/.exec("")[1]!==void 0;(Xr||qr||Ka)&&(Qo=function(e){var t,r,n,a,o=this,s=Ka&&o.sticky,i=Zo.call(o),l=o.source,c=0,u=e;return s&&((i=i.replace("y","")).indexOf("g")===-1&&(i+="g"),u=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&e[o.lastIndex-1]!==`
  2. `)&&(l="(?: "+l+")",u=" "+u,c++),r=new RegExp("^(?:"+l+")",i)),qr&&(r=new RegExp("^"+l+"$(?!\\s)",i)),Xr&&(t=o.lastIndex),n=kr.call(s?r:o,u),s?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=o.lastIndex,o.lastIndex+=n[0].length):o.lastIndex=0:Xr&&n&&(o.lastIndex=o.global?n.index+n[0].length:t),qr&&n&&n.length>1&&wc.call(n[0],r,function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(n[a]=void 0)}),n});var er=Qo;ve({target:"RegExp",proto:!0,forced:/./.exec!==er},{exec:er});var ei=RegExp.prototype,ti=ei.toString,_c=J(function(){return ti.call({source:"a",flags:"b"})!="/a/b"}),xc=ti.name!="toString";(_c||xc)&&et(RegExp.prototype,"toString",function(){var e=me(this),t=String(e.source),r=e.flags;return"/"+t+"/"+String(r===void 0&&e instanceof RegExp&&!("flags"in ei)?Zo.call(e):r)},{unsafe:!0});var kc=ne("species"),Ac=!J(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}),Ga="a".replace(/./,"$0")==="$0",Xa=ne("replace"),qa=!!/./[Xa]&&/./[Xa]("a","$0")==="",Rc=!J(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"}),ri=function(e,t,r,n){var a=ne(e),o=!J(function(){var f={};return f[a]=function(){return 7},""[e](f)!=7}),s=o&&!J(function(){var f=!1,p=/a/;return e==="split"&&((p={}).constructor={},p.constructor[kc]=function(){return p},p.flags="",p[a]=/./[a]),p.exec=function(){return f=!0,null},p[a](""),!f});if(!o||!s||e==="replace"&&(!Ac||!Ga||qa)||e==="split"&&!Rc){var i=/./[a],l=r(a,""[e],function(f,p,d,g,m){return p.exec===er?o&&!m?{done:!0,value:i.call(p,d,g)}:{done:!0,value:f.call(d,p,g)}:{done:!1}},{REPLACE_KEEPS_$0:Ga,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:qa}),c=l[0],u=l[1];et(String.prototype,e,c),et(RegExp.prototype,a,function(f,p){return u.call(f,this,p)})}n&&Ee(RegExp.prototype[a],"sham",!0)},Ec=ne("match"),ni=function(e){var t;return ce(e)&&((t=e[Ec])!==void 0?!!t:Ke(e)=="RegExp")},zn=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},Oc=ne("species"),$c=function(e){return function(t,r){var n,a,o=String(Ze(t)),s=Ht(r),i=o.length;return s<0||s>=i?e?"":void 0:(n=o.charCodeAt(s))<55296||n>56319||s+1===i||(a=o.charCodeAt(s+1))<56320||a>57343?e?o.charAt(s):n:e?o.slice(s,s+2):a-56320+(n-55296<<10)+65536}},ai={charAt:$c(!0)},Tc=ai.charAt,oi=function(e,t,r){return t+(r?Tc(e,t).length:1)},mn=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 er.call(e,t)},Pc=[].push,Mc=Math.min,mt=!J(function(){return!RegExp(4294967295,"y")});ri("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(a,o){var s=String(Ze(this)),i=o===void 0?4294967295:o>>>0;if(i===0)return[];if(a===void 0)return[s];if(!ni(a))return t.call(s,a,i);for(var l,c,u,f=[],p=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),d=0,g=new RegExp(a.source,p+"g");(l=er.call(g,s))&&!((c=g.lastIndex)>d&&(f.push(s.slice(d,l.index)),l.length>1&&l.index<s.length&&Pc.apply(f,l.slice(1)),u=l[0].length,d=c,f.length>=i));)g.lastIndex===l.index&&g.lastIndex++;return d===s.length?!u&&g.test("")||f.push(""):f.push(s.slice(d)),f.length>i?f.slice(0,i):f}:"0".split(void 0,0).length?function(a,o){return a===void 0&&o===0?[]:t.call(this,a,o)}:t,[function(a,o){var s=Ze(this),i=a==null?void 0:a[e];return i!==void 0?i.call(a,s,o):n.call(String(s),a,o)},function(a,o){var s=r(n,a,this,o,n!==t);if(s.done)return s.value;var i=me(a),l=String(this),c=function(S,_){var R,E=me(S).constructor;return E===void 0||(R=me(E)[Oc])==null?_:zn(R)}(i,RegExp),u=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(mt?"y":"g"),p=new c(mt?i:"^(?:"+i.source+")",f),d=o===void 0?4294967295:o>>>0;if(d===0)return[];if(l.length===0)return mn(p,l)===null?[l]:[];for(var g=0,m=0,y=[];m<l.length;){p.lastIndex=mt?m:0;var h,v=mn(p,mt?l:l.slice(m));if(v===null||(h=Mc(ke(p.lastIndex+(mt?0:m)),l.length))===g)m=oi(l,m,u);else{if(y.push(l.slice(g,m)),y.length===d)return y;for(var C=1;C<=v.length-1;C++)if(y.push(v[C]),y.length===d)return y;m=g=h}}return y.push(l.slice(g)),y}]},!mt);var yn=`
  3. \v\f\r                 \u2028\u2029\uFEFF`,Ar="["+yn+"]",Fc=RegExp("^"+Ar+Ar+"*"),Ic=RegExp(Ar+Ar+"*$"),Bc=function(e){return function(t){var r=String(Ze(t));return 1&e&&(r=r.replace(Fc,"")),2&e&&(r=r.replace(Ic,"")),r}},Hc={trim:Bc(3)},Lc=Hc.trim;ve({target:"String",proto:!0,forced:function(e){return J(function(){return!!yn[e]()||"​…᠎"[e]()!="​…᠎"||yn[e].name!==e})}("trim")},{trim:function(){return Lc(this)}});var Dc=Un("slice"),Nc=Lt("slice",{ACCESSORS:!0,0:0,1:2}),jc=ne("species"),Uc=[].slice,Vc=Math.max;ve({target:"Array",proto:!0,forced:!Dc||!Nc},{slice:function(e,t){var r,n,a,o=Bt(this),s=ke(o.length),i=Sr(e,s),l=Sr(t===void 0?s:t,s);if(Et(o)&&(typeof(r=o.constructor)!="function"||r!==Array&&!Et(r.prototype)?ce(r)&&(r=r[jc])===null&&(r=void 0):r=void 0,r===Array||r===void 0))return Uc.call(o,i,l);for(n=new(r===void 0?Array:r)(Vc(l-i,0)),a=0;i<l;i++,a++)i in o&&Ot(n,a,o[i]);return n.length=a,n}});var Wn=Object.keys||function(e){return Go(e,wr)},zc=J(function(){Wn(1)});ve({target:"Object",stat:!0,forced:zc},{keys:function(e){return Wn(qe(e))}});var Yr,Wc=function(e){if(ni(e))throw TypeError("The method doesn't accept regular expressions");return e},Kc=ne("match"),Gc=Hn.f,Ya="".startsWith,Xc=Math.min,ii=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Kc]=!1,"/./"[e](t)}catch(n){}}return!1}("startsWith"),qc=!(ii||(Yr=Gc(String.prototype,"startsWith"),!Yr||Yr.writable));function li(e){return(li=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)}ve({target:"String",proto:!0,forced:!qc&&!ii},{startsWith:function(e){var t=String(Ze(this));Wc(e);var r=ke(Xc(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return Ya?Ya.call(t,n,r):t.slice(r,r+n.length)===n}});var yt=function(e){return typeof e=="string"},bt=function(e){return e!==null&&li(e)==="object"},tr=function(){function e(){dt(this,e)}return pt(e,null,[{key:"isWindow",value:function(t){return t===window}},{key:"addEventListener",value:function(t,r,n){var a=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&r&&n&&t.addEventListener(r,n,a)}},{key:"removeEventListener",value:function(t,r,n){var a=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&r&&n&&t.removeEventListener(r,n,a)}},{key:"triggerDragEvent",value:function(t,r){var n=!1,a=function(s){var i;(i=r.drag)===null||i===void 0||i.call(r,s)},o=function s(i){var l;e.removeEventListener(document,"mousemove",a),e.removeEventListener(document,"mouseup",s),document.onselectstart=null,document.ondragstart=null,n=!1,(l=r.end)===null||l===void 0||l.call(r,i)};e.addEventListener(t,"mousedown",function(s){var i;n||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},e.addEventListener(document,"mousemove",a),e.addEventListener(document,"mouseup",o),n=!0,(i=r.start)===null||i===void 0||i.call(r,s))})}},{key:"getBoundingClientRect",value:function(t){return t&&bt(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,r){return!!(t&&bt(t)&&yt(r)&&t.nodeType===1)&&t.classList.contains(r.trim())}},{key:"addClass",value:function(t,r){if(t&&bt(t)&&yt(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&&bt(t)&&yt(r)&&t.nodeType===1&&typeof t.className=="string"){r=r.trim();for(var n=t.className.trim().split(" "),a=n.length-1;a>=0;a--)n[a]=n[a].trim(),n[a]&&n[a]!==r||n.splice(a,1);t.className=n.join(" ")}}},{key:"toggleClass",value:function(t,r,n){t&&bt(t)&&yt(r)&&t.nodeType===1&&t.classList.toggle(r,n)}},{key:"replaceClass",value:function(t,r,n){t&&bt(t)&&yt(r)&&yt(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",a=t.offsetParent===null&&r.position!=="fixed";return n||a}},{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(),a=n.left+n.width/2,o=n.top+n.height/2,s=Math.abs(a-r.clientX),i=Math.abs(o-r.clientY),l=i/Math.sqrt(Math.pow(s,2)+Math.pow(i,2)),c=Math.acos(l),u=Math.floor(180/(Math.PI/c));return r.clientX>a&&r.clientY>o&&(u=180-u),r.clientX==a&&r.clientY>o&&(u=180),r.clientX>a&&r.clientY==o&&(u=90),r.clientX<a&&r.clientY>o&&(u=180+u),r.clientX<a&&r.clientY==o&&(u=270),r.clientX<a&&r.clientY<o&&(u=360-u),u}},{key:"querySelector",value:function(t,r){return r?r.querySelector(t):document.querySelector(t)}},{key:"createElement",value:function(t){for(var r=document.createElement(t),n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];for(var s=0;s<a.length;s++)a[s]&&r.classList.add(a[s]);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!="undefined"&&(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}(),Yc=Math.floor,Jc="".replace,Zc=/\$([$&'`]|\d\d?|<[^>]*>)/g,Qc=/\$([$&'`]|\d\d?)/g,ef=function(e,t,r,n,a,o){var s=r+e.length,i=n.length,l=Qc;return a!==void 0&&(a=qe(a),l=Zc),Jc.call(o,l,function(c,u){var f;switch(u.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(s);case"<":f=a[u.slice(1,-1)];break;default:var p=+u;if(p===0)return c;if(p>i){var d=Yc(p/10);return d===0?c:d<=i?n[d-1]===void 0?u.charAt(1):n[d-1]+u.charAt(1):c}f=n[p-1]}return f===void 0?"":f})},tf=Math.max,rf=Math.min;ri("replace",2,function(e,t,r,n){var a=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=n.REPLACE_KEEPS_$0,s=a?"$":"$0";return[function(i,l){var c=Ze(this),u=i==null?void 0:i[e];return u!==void 0?u.call(i,c,l):t.call(String(c),i,l)},function(i,l){if(!a&&o||typeof l=="string"&&l.indexOf(s)===-1){var c=r(t,i,this,l);if(c.done)return c.value}var u=me(i),f=String(this),p=typeof l=="function";p||(l=String(l));var d=u.global;if(d){var g=u.unicode;u.lastIndex=0}for(var m=[];;){var y=mn(u,f);if(y===null||(m.push(y),!d))break;String(y[0])===""&&(u.lastIndex=oi(f,ke(u.lastIndex),g))}for(var h,v="",C=0,S=0;S<m.length;S++){y=m[S];for(var _=String(y[0]),R=tf(rf(Ht(y.index),f.length),0),E=[],I=1;I<y.length;I++)E.push((h=y[I])===void 0?h:String(h));var k=y.groups;if(p){var M=[_].concat(E,R,f);k!==void 0&&M.push(k);var b=String(l.apply(void 0,M))}else b=ef(_,f,R,E,k,l);R>=C&&(v+=f.slice(C,R)+b,C=R+_.length)}return v+f.slice(C)}]});(function(){function e(){dt(this,e)}return pt(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(){dt(this,e)}return pt(e,null,[{key:"_clone",value:function(){}}]),e})();var si=ne("isConcatSpreadable"),nf=xr>=51||!J(function(){var e=[];return e[si]=!1,e.concat()[0]!==e}),af=Un("concat"),of=function(e){if(!ce(e))return!1;var t=e[si];return t!==void 0?!!t:Et(e)};ve({target:"Array",proto:!0,forced:!nf||!af},{concat:function(e){var t,r,n,a,o,s=qe(this),i=Dr(s,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(of(o=t===-1?s:arguments[t])){if(l+(a=ke(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<a;r++,l++)r in o&&Ot(i,l,o[r])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ot(i,l++,o)}return i.length=l,i}});var Jr,lr=function(e,t,r){if(zn(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,a){return e.call(t,n,a)};case 3:return function(n,a,o){return e.call(t,n,a,o)}}return function(){return e.apply(t,arguments)}},Ja=[].push,Za=function(e){var t=e==1,r=e==2,n=e==3,a=e==4,o=e==6,s=e==7,i=e==5||o;return function(l,c,u,f){for(var p,d,g=qe(l),m=Br(g),y=lr(c,u,3),h=ke(m.length),v=0,C=f||Dr,S=t?C(l,h):r||s?C(l,0):void 0;h>v;v++)if((i||v in m)&&(d=y(p=m[v],v,g),e))if(t)S[v]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return v;case 2:Ja.call(S,p)}else switch(e){case 4:return!1;case 7:Ja.call(S,p)}return o?-1:n||a?a:S}},ui={find:Za(5),findIndex:Za(6)},lf=Ae?Object.defineProperties:function(e,t){me(e);for(var r,n=Wn(t),a=n.length,o=0;a>o;)Xe.f(e,r=n[o++],t[r]);return e},sf=Lr("document","documentElement"),ci=Nn("IE_PROTO"),Zr=function(){},Qa=function(e){return"<script>"+e+"<\/script>"},vr=function(){try{Jr=document.domain&&new ActiveXObject("htmlfile")}catch(n){}var e,t;vr=Jr?function(n){n.write(Qa("")),n.close();var a=n.parentWindow.Object;return n=null,a}(Jr):((t=Uo("iframe")).style.display="none",sf.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Qa("document.F=Object")),e.close(),e.F);for(var r=wr.length;r--;)delete vr.prototype[wr[r]];return vr()};Hr[ci]=!0;var Kn=Object.create||function(e,t){var r;return e!==null?(Zr.prototype=me(e),r=new Zr,Zr.prototype=null,r[ci]=e):r=vr(),t===void 0?r:lf(r,t)},bn=ne("unscopables"),Cn=Array.prototype;Cn[bn]==null&&Xe.f(Cn,bn,{configurable:!0,value:Kn(null)});var wt=function(e){Cn[bn][e]=!0},uf=ui.find,eo=!0,cf=Lt("find");"find"in[]&&Array(1).find(function(){eo=!1}),ve({target:"Array",proto:!0,forced:eo||!cf},{find:function(e){return uf(this,e,arguments.length>1?arguments[1]:void 0)}}),wt("find");var ff=ui.findIndex,to=!0,df=Lt("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){to=!1}),ve({target:"Array",proto:!0,forced:to||!df},{findIndex:function(e){return ff(this,e,arguments.length>1?arguments[1]:void 0)}}),wt("findIndex");var fi=function(e,t,r,n,a,o,s,i){for(var l,c=a,u=0,f=!!s&&lr(s,i,3);u<n;){if(u in r){if(l=f?f(r[u],u,t):r[u],o>0&&Et(l))c=fi(e,t,l,ke(l.length),c,o-1)-1;else{if(c>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[c]=l}c++}u++}return c},pf=fi;ve({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=qe(this),r=ke(t.length),n=Dr(t,0);return n.length=pf(n,t,t,r,0,e===void 0?1:Ht(e)),n}});var Sn=function(e){var t=e.return;if(t!==void 0)return me(t.call(e)).value},hf=function(e,t,r,n){try{return n?t(me(r)[0],r[1]):t(r)}catch(a){throw Sn(e),a}},$t={},vf=ne("iterator"),gf=Array.prototype,di=function(e){return e!==void 0&&($t.Array===e||gf[vf]===e)},mf=ne("iterator"),pi=function(e){if(e!=null)return e[mf]||e["@@iterator"]||$t[Jo(e)]},hi=ne("iterator"),vi=!1;try{var yf=0,ro={next:function(){return{done:!!yf++}},return:function(){vi=!0}};ro[hi]=function(){return this},Array.from(ro,function(){throw 2})}catch(e){}var gi=function(e,t){if(!vi)return!1;var r=!1;try{var n={};n[hi]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(a){}return r},bf=!gi(function(e){Array.from(e)});ve({target:"Array",stat:!0,forced:bf},{from:function(e){var t,r,n,a,o,s,i=qe(e),l=typeof this=="function"?this:Array,c=arguments.length,u=c>1?arguments[1]:void 0,f=u!==void 0,p=pi(i),d=0;if(f&&(u=lr(u,c>2?arguments[2]:void 0,2)),p==null||l==Array&&di(p))for(r=new l(t=ke(i.length));t>d;d++)s=f?u(i[d],d):i[d],Ot(r,d,s);else for(o=(a=p.call(i)).next,r=new l;!(n=o.call(a)).done;d++)s=f?hf(a,u,[n.value,d],!0):n.value,Ot(r,d,s);return r.length=d,r}});var Cf=function(e){return function(t,r,n,a){zn(r);var o=qe(t),s=Br(o),i=ke(o.length),l=e?i-1:0,c=e?-1:1;if(n<2)for(;;){if(l in s){a=s[l],l+=c;break}if(l+=c,e?l<0:i<=l)throw TypeError("Reduce of empty array with no initial value")}for(;e?l>=0:i>l;l+=c)l in s&&(a=r(a,s[l],l,o));return a}},Sf={left:Cf(!1)},wf=Ke(ue.process)=="process",_f=Sf.left,xf=jn("reduce"),kf=Lt("reduce",{1:0});ve({target:"Array",proto:!0,forced:!xf||!kf||!wf&&xr>79&&xr<83},{reduce:function(e){return _f(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}}),wt("flat");var it,no,ao,Af=!J(function(){return Object.isExtensible(Object.preventExtensions({}))}),mi=In(function(e){var t=Xe.f,r=Dn("meta"),n=0,a=Object.isExtensible||function(){return!0},o=function(i){t(i,r,{value:{objectID:"O"+ ++n,weakData:{}}})},s=e.exports={REQUIRED:!1,fastKey:function(i,l){if(!ce(i))return typeof i=="symbol"?i:(typeof i=="string"?"S":"P")+i;if(!ie(i,r)){if(!a(i))return"F";if(!l)return"E";o(i)}return i[r].objectID},getWeakData:function(i,l){if(!ie(i,r)){if(!a(i))return!0;if(!l)return!1;o(i)}return i[r].weakData},onFreeze:function(i){return Af&&s.REQUIRED&&a(i)&&!ie(i,r)&&o(i),i}};Hr[r]=!0}),Vt=function(e,t){this.stopped=e,this.result=t},oo=function(e,t,r){var n,a,o,s,i,l,c,u=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),g=lr(t,u,1+f+d),m=function(h){return n&&Sn(n),new Vt(!0,h)},y=function(h){return f?(me(h),d?g(h[0],h[1],m):g(h[0],h[1])):d?g(h,m):g(h)};if(p)n=e;else{if(typeof(a=pi(e))!="function")throw TypeError("Target is not iterable");if(di(a)){for(o=0,s=ke(e.length);s>o;o++)if((i=y(e[o]))&&i instanceof Vt)return i;return new Vt(!1)}n=a.call(e)}for(l=n.next;!(c=l.call(n)).done;){try{i=y(c.value)}catch(h){throw Sn(n),h}if(typeof i=="object"&&i&&i instanceof Vt)return i}return new Vt(!1)},io=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e},Rf=Xe.f,lo=ne("toStringTag"),wn=function(e,t,r){e&&!ie(e=r?e:e.prototype,lo)&&Rf(e,lo,{configurable:!0,value:t})},Rr=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(n){}return function(n,a){return me(n),function(o){if(!ce(o)&&o!==null)throw TypeError("Can't set "+String(o)+" as a prototype")}(a),t?e.call(n,a):n.__proto__=a,n}}():void 0),so=function(e,t,r){for(var n in t)et(e,n,t[n],r);return e},Ef=!J(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),uo=Nn("IE_PROTO"),Of=Object.prototype,Er=Ef?Object.getPrototypeOf:function(e){return e=qe(e),ie(e,uo)?e[uo]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Of:null},Qr=ne("iterator"),yi=!1;[].keys&&("next"in(ao=[].keys())?(no=Er(Er(ao)))!==Object.prototype&&(it=no):yi=!0),(it==null||J(function(){var e={};return it[Qr].call(e)!==e}))&&(it={}),ie(it,Qr)||Ee(it,Qr,function(){return this});var Gn={IteratorPrototype:it,BUGGY_SAFARI_ITERATORS:yi},$f=Gn.IteratorPrototype,Tf=function(){return this},en=Gn.IteratorPrototype,pr=Gn.BUGGY_SAFARI_ITERATORS,zt=ne("iterator"),Pf=function(){return this},Xn=function(e,t,r,n,a,o,s){(function(h,v,C){var S=v+" Iterator";h.prototype=Kn($f,{next:Ir(1,C)}),wn(h,S,!1),$t[S]=Tf})(r,t,n);var i,l,c,u=function(h){if(h===a&&m)return m;if(!pr&&h in d)return d[h];switch(h){case"keys":case"values":case"entries":return function(){return new r(this,h)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,d=e.prototype,g=d[zt]||d["@@iterator"]||a&&d[a],m=!pr&&g||u(a),y=t=="Array"&&d.entries||g;if(y&&(i=Er(y.call(new e)),en!==Object.prototype&&i.next&&(Er(i)!==en&&(Rr?Rr(i,en):typeof i[zt]!="function"&&Ee(i,zt,Pf)),wn(i,f,!0))),a=="values"&&g&&g.name!=="values"&&(p=!0,m=function(){return g.call(this)}),d[zt]!==m&&Ee(d,zt,m),$t[t]=m,a)if(l={values:u("values"),keys:o?m:u("keys"),entries:u("entries")},s)for(c in l)(pr||p||!(c in d))&&et(d,c,l[c]);else ve({target:t,proto:!0,forced:pr||p},l);return l},co=ne("species"),Mf=Xe.f,fo=mi.fastKey,po=Qe.set,tn=Qe.getterFor;(function(e,t,r){var n=e.indexOf("Map")!==-1,a=e.indexOf("Weak")!==-1,o=n?"set":"add",s=ue[e],i=s&&s.prototype,l=s,c={},u=function(y){var h=i[y];et(i,y,y=="add"?function(v){return h.call(this,v===0?0:v),this}:y=="delete"?function(v){return!(a&&!ce(v))&&h.call(this,v===0?0:v)}:y=="get"?function(v){return a&&!ce(v)?void 0:h.call(this,v===0?0:v)}:y=="has"?function(v){return!(a&&!ce(v))&&h.call(this,v===0?0:v)}:function(v,C){return h.call(this,v===0?0:v,C),this})};if(gn(e,typeof s!="function"||!(a||i.forEach&&!J(function(){new s().entries().next()}))))l=r.getConstructor(t,e,n,o),mi.REQUIRED=!0;else if(gn(e,!0)){var f=new l,p=f[o](a?{}:-0,1)!=f,d=J(function(){f.has(1)}),g=gi(function(y){new s(y)}),m=!a&&J(function(){for(var y=new s,h=5;h--;)y[o](h,h);return!y.has(-0)});g||((l=t(function(y,h){io(y,l,e);var v=function(C,S,_){var R,E;return Rr&&typeof(R=S.constructor)=="function"&&R!==_&&ce(E=R.prototype)&&E!==_.prototype&&Rr(C,E),C}(new s,y,l);return h!=null&&oo(h,v[o],{that:v,AS_ENTRIES:n}),v})).prototype=i,i.constructor=l),(d||m)&&(u("delete"),u("has"),n&&u("get")),(m||p)&&u(o),a&&i.clear&&delete i.clear}c[e]=l,ve({global:!0,forced:l!=s},c),wn(l,e),a||r.setStrong(l,e,n)})("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},{getConstructor:function(e,t,r,n){var a=e(function(l,c){io(l,a,t),po(l,{type:t,index:Kn(null),first:void 0,last:void 0,size:0}),Ae||(l.size=0),c!=null&&oo(c,l[n],{that:l,AS_ENTRIES:r})}),o=tn(t),s=function(l,c,u){var f,p,d=o(l),g=i(l,c);return g?g.value=u:(d.last=g={index:p=fo(c,!0),key:c,value:u,previous:f=d.last,next:void 0,removed:!1},d.first||(d.first=g),f&&(f.next=g),Ae?d.size++:l.size++,p!=="F"&&(d.index[p]=g)),l},i=function(l,c){var u,f=o(l),p=fo(c);if(p!=="F")return f.index[p];for(u=f.first;u;u=u.next)if(u.key==c)return u};return so(a.prototype,{clear:function(){for(var l=o(this),c=l.index,u=l.first;u;)u.removed=!0,u.previous&&(u.previous=u.previous.next=void 0),delete c[u.index],u=u.next;l.first=l.last=void 0,Ae?l.size=0:this.size=0},delete:function(l){var c=this,u=o(c),f=i(c,l);if(f){var p=f.next,d=f.previous;delete u.index[f.index],f.removed=!0,d&&(d.next=p),p&&(p.previous=d),u.first==f&&(u.first=p),u.last==f&&(u.last=d),Ae?u.size--:c.size--}return!!f},forEach:function(l){for(var c,u=o(this),f=lr(l,arguments.length>1?arguments[1]:void 0,3);c=c?c.next:u.first;)for(f(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!i(this,l)}}),so(a.prototype,r?{get:function(l){var c=i(this,l);return c&&c.value},set:function(l,c){return s(this,l===0?0:l,c)}}:{add:function(l){return s(this,l=l===0?0:l,l)}}),Ae&&Mf(a.prototype,"size",{get:function(){return o(this).size}}),a},setStrong:function(e,t,r){var n=t+" Iterator",a=tn(t),o=tn(n);Xn(e,t,function(s,i){po(this,{type:n,target:s,state:a(s),kind:i,last:void 0})},function(){for(var s=o(this),i=s.kind,l=s.last;l&&l.removed;)l=l.previous;return s.target&&(s.last=l=l?l.next:s.state.first)?i=="keys"?{value:l.key,done:!1}:i=="values"?{value:l.value,done:!1}:{value:[l.key,l.value],done:!1}:(s.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),function(s){var i=Lr(s),l=Xe.f;Ae&&i&&!i[co]&&l(i,co,{configurable:!0,get:function(){return this}})}(t)}});var Ff=ai.charAt,If=Qe.set,Bf=Qe.getterFor("String Iterator");Xn(String,"String",function(e){If(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=Bf(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=Ff(r,n),t.index+=e.length,{value:e,done:!1})});var ho={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},Hf=Qe.set,Lf=Qe.getterFor("Array Iterator"),Kt=Xn(Array,"Array",function(e,t){Hf(this,{type:"Array Iterator",target:Bt(e),index:0,kind:t})},function(){var e=Lf(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");$t.Arguments=$t.Array,wt("keys"),wt("values"),wt("entries");var rn=ne("iterator"),vo=ne("toStringTag"),nn=Kt.values;for(var an in ho){var go=ue[an],Ve=go&&go.prototype;if(Ve){if(Ve[rn]!==nn)try{Ee(Ve,rn,nn)}catch(e){Ve[rn]=nn}if(Ve[vo]||Ee(Ve,vo,an),ho[an]){for(var Ct in Kt)if(Ve[Ct]!==Kt[Ct])try{Ee(Ve,Ct,Kt[Ct])}catch(e){Ve[Ct]=Kt[Ct]}}}}(function(){function e(){dt(this,e)}return pt(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 a=Array.isArray(n)?e.flat(n):n;return r.concat(a)},[])}},{key:"find",value:function(t,r){return t.find(r)}},{key:"findIndex",value:function(t,r){return t.findIndex(r)}}]),e})();(function(){function e(){dt(this,e)}return pt(e,null,[{key:"today",value:function(){return new Date}}]),e})();(function(){function e(){dt(this,e)}return pt(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 Df=Object.defineProperty,Nf=(e,t,r)=>t in e?Df(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pe=(e,t,r)=>(Nf(e,typeof t!="symbol"?t+"":t,r),r);const ae=e=>Math.round(e*100)/100;class te{constructor(t){pe(this,"instance"),pe(this,"alphaValue",0),pe(this,"redValue",0),pe(this,"greenValue",0),pe(this,"blueValue",0),pe(this,"hueValue",0),pe(this,"saturationValue",0),pe(this,"brightnessValue",0),pe(this,"hslSaturationValue",0),pe(this,"lightnessValue",0),pe(this,"initAlpha",()=>{const r=this.instance.getAlpha();this.alphaValue=Math.min(1,r)*100}),pe(this,"initLightness",()=>{const{s:r,l:n}=this.instance.toHsl();this.hslSaturationValue=ae(r),this.lightnessValue=ae(n)}),pe(this,"initRgb",()=>{const{r,g:n,b:a}=this.instance.toRgb();this.redValue=ae(r),this.greenValue=ae(n),this.blueValue=ae(a)}),pe(this,"initHsb",()=>{const{h:r,s:n,v:a}=this.instance.toHsv();this.hueValue=Math.min(360,Math.ceil(r)),this.saturationValue=ae(n),this.brightnessValue=ae(a)}),pe(this,"toHexString",()=>this.instance.toHexString()),pe(this,"toRgbString",()=>this.instance.toRgbString()),this.instance=A(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=A(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=A({h:ae(t),s:this.saturation,v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.hueValue=ae(t)}get hue(){return this.hueValue}set saturation(t){this.instance=A({h:this.hue,s:ae(t),v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.saturationValue=ae(t)}get saturation(){return this.saturationValue}set brightness(t){this.instance=A({h:this.hue,s:this.saturation,v:ae(t),a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.brightnessValue=ae(t)}get brightness(){return this.brightnessValue}set lightness(t){this.instance=A({h:this.hue,s:this.hslSaturationValue,l:ae(t),a:this.alphaValue/100}),this.initRgb(),this.initHsb(),this.lightnessValue=ae(t)}get lightness(){return this.lightnessValue}set red(t){const r=this.instance.toRgb();this.instance=A(we(le({},r),{r:ae(t),a:this.alphaValue/100})),this.initHsb(),this.initLightness(),this.redValue=ae(t)}get red(){return this.redValue}set green(t){const r=this.instance.toRgb();this.instance=A(we(le({},r),{g:ae(t),a:this.alphaValue/100})),this.initHsb(),this.initLightness(),this.greenValue=ae(t)}get green(){return this.greenValue}set blue(t){const r=this.instance.toRgb();this.instance=A(we(le({},r),{b:ae(t),a:this.alphaValue/100})),this.initHsb(),this.initLightness(),this.blueValue=ae(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 mo(e,t,r,n){return`rgba(${[e,t,r,n/100].join(",")})`}const on=(e,t,r)=>t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e,qn="color-history",Yn=8,Pe=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},jf=Y({name:"Alpha",props:{color:L.instanceOf(te),size:L.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=T(null),n=T(null);let a=e.color||new te;const o=Oe({red:a.red,green:a.green,blue:a.blue,alpha:a.alpha});oe(()=>e.color,f=>{f&&(a=f,$r(o,{red:f.red,green:f.green,blue:f.blue,alpha:f.alpha}))},{deep:!0});const s=q(()=>{const f=mo(o.red,o.green,o.blue,0),p=mo(o.red,o.green,o.blue,100);return{background:`linear-gradient(to right, ${f} , ${p})`}}),i=()=>{if(r.value&&n.value){const f=o.alpha/100,p=r.value.getBoundingClientRect(),d=n.value.offsetWidth;return Math.round(f*(p.width-d)+d/2)}return 0},l=q(()=>({left:i()+"px",top:0})),c=f=>{f.target!==r.value&&u(f)},u=f=>{if(f.stopPropagation(),r.value&&n.value){const p=r.value.getBoundingClientRect(),d=n.value.offsetWidth;let g=f.clientX-p.left;g=Math.max(d/2,g),g=Math.min(g,p.width-d/2);const m=Math.round((g-d/2)/(p.width-d)*100);a.alpha=m,o.alpha=m,t("change",m)}};return Tt(()=>{const f={drag:p=>{u(p)},end:p=>{u(p)}};r.value&&n.value&&tr.triggerDragEvent(r.value,f)}),{barElement:r,cursorElement:n,getCursorStyle:l,getBackgroundStyle:s,onClickSider:c}}}),Uf=e=>(Ft("data-v-18925ba6"),e=e(),It(),e),Vf=Uf(()=>x("div",{class:"vc-alpha-slider__bar-handle"},null,-1)),zf=[Vf];function Wf(e,t,r,n,a,o){return w(),F("div",{class:fe(["vc-alpha-slider","transparent",{"small-slider":e.size==="small"}])},[x("div",{ref:"barElement",class:"vc-alpha-slider__bar",style:de(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickSider&&e.onClickSider(...s))},[x("div",{class:fe(["vc-alpha-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:de(e.getCursorStyle)},zf,6)],4)],2)}const Jn=Pe(jf,[["render",Wf],["__scopeId","data-v-18925ba6"]]),Kf=[["#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"]],Gf=Y({name:"Palette",emits:["change"],setup(e,{emit:t}){return{palettes:Kf,computedBgStyle:r=>r==="transparent"?r:r==="advance"?{}:{background:A(r).toRgbString()},onColorChange:r=>{t("change",r)}}}}),Xf={class:"vc-compact"},qf=["onClick"];function Yf(e,t,r,n,a,o){return w(),F("div",Xf,[(w(!0),F(Ce,null,Se(e.palettes,(s,i)=>(w(),F("div",{key:i,class:"vc-compact__row"},[(w(!0),F(Ce,null,Se(s,(l,c)=>(w(),F("div",{key:c,class:"vc-compact__color-cube--wrap",onClick:u=>e.onColorChange(l)},[x("div",{class:fe(["vc-compact__color_cube",{advance:l==="advance",transparent:l==="transparent"}]),style:de(e.computedBgStyle(l))},null,6)],8,qf))),128))]))),128))])}const bi=Pe(Gf,[["render",Yf],["__scopeId","data-v-b969fd48"]]),Jf=Y({name:"Board",props:{color:L.instanceOf(te),round:L.bool.def(!1),hide:L.bool.def(!0)},emits:["change"],setup(e,{emit:t}){var r,n,a;const o=il(),s={h:((r=e.color)==null?void 0:r.hue)||0,s:1,v:1},i=new te(s).toHexString(),l=Oe({hueColor:i,saturation:((n=e.color)==null?void 0:n.saturation)||0,brightness:((a=e.color)==null?void 0:a.brightness)||0}),c=T(0),u=T(0),f=T(),p=q(()=>({top:c.value+"px",left:u.value+"px"})),d=()=>{if(o){const C=o.vnode.el;u.value=l.saturation*(C==null?void 0:C.clientWidth),c.value=(1-l.brightness)*(C==null?void 0:C.clientHeight)}};let g=!1;const m=C=>{g=!0,v(C)},y=C=>{g&&v(C)},h=()=>{g=!1},v=C=>{if(o){const S=o.vnode.el,_=S==null?void 0:S.getBoundingClientRect();let R=C.clientX-_.left,E=C.clientY-_.top;R=on(R,0,_.width),E=on(E,0,_.height);const I=R/_.width,k=on(-(E/_.height)+1,0,1);u.value=R,c.value=E,l.saturation=I,l.brightness=k,t("change",I,k)}};return Tt(()=>{o&&o.vnode.el&&f.value&&ll(()=>{d()})}),he(()=>e.color,C=>{$r(l,{hueColor:new te({h:C.hue,s:1,v:1}).toHexString(),saturation:C.saturation,brightness:C.brightness}),d()},{deep:!0}),{state:l,cursorElement:f,getCursorStyle:p,onClickBoard:m,onDrag:y,onDragEnd:h}}}),Zn=e=>(Ft("data-v-7f0cdcdf"),e=e(),It(),e),Zf=Zn(()=>x("div",{class:"vc-saturation__white"},null,-1)),Qf=Zn(()=>x("div",{class:"vc-saturation__black"},null,-1)),ed=Zn(()=>x("div",null,null,-1)),td=[ed];function rd(e,t,r,n,a,o){return w(),F("div",{ref:"boardElement",class:fe(["vc-saturation",{"vc-saturation__chrome":e.round,"vc-saturation__hidden":e.hide}]),style:de({backgroundColor:e.state.hueColor}),onMousedown:t[0]||(t[0]=(...s)=>e.onClickBoard&&e.onClickBoard(...s)),onMousemove:t[1]||(t[1]=(...s)=>e.onDrag&&e.onDrag(...s)),onMouseup:t[2]||(t[2]=(...s)=>e.onDragEnd&&e.onDragEnd(...s))},[Zf,Qf,x("div",{class:"vc-saturation__cursor",ref:"cursorElement",style:de(e.getCursorStyle)},td,4)],38)}const Qn=Pe(Jf,[["render",rd],["__scopeId","data-v-7f0cdcdf"]]),nd=Y({name:"Hue",props:{color:L.instanceOf(te),size:L.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=T(null),n=T(null);let a=e.color||new te;const o=Oe({hue:a.hue||0});oe(()=>e.color,u=>{u&&(a=u,$r(o,{hue:a.hue}))},{deep:!0});const s=()=>{if(r.value&&n.value){const u=r.value.getBoundingClientRect(),f=n.value.offsetWidth;return o.hue===360?u.width-f/2:o.hue%360*(u.width-f)/360+f/2}return 0},i=q(()=>({left:s()+"px",top:0})),l=u=>{u.target!==r.value&&c(u)},c=u=>{if(u.stopPropagation(),r.value&&n.value){const f=r.value.getBoundingClientRect(),p=n.value.offsetWidth;let d=u.clientX-f.left;d=Math.min(d,f.width-p/2),d=Math.max(p/2,d);const g=Math.round((d-p/2)/(f.width-p)*360);a.hue=g,o.hue=g,t("change",g)}};return Tt(()=>{const u={drag:f=>{c(f)},end:f=>{c(f)}};r.value&&n.value&&tr.triggerDragEvent(r.value,u)}),{barElement:r,cursorElement:n,getCursorStyle:i,onClickSider:l}}}),ad=e=>(Ft("data-v-e1a08576"),e=e(),It(),e),od=ad(()=>x("div",{class:"vc-hue-slider__bar-handle"},null,-1)),id=[od];function ld(e,t,r,n,a,o){return w(),F("div",{class:fe(["vc-hue-slider",{"small-slider":e.size==="small"}])},[x("div",{ref:"barElement",class:"vc-hue-slider__bar",onClick:t[0]||(t[0]=(...s)=>e.onClickSider&&e.onClickSider(...s))},[x("div",{class:fe(["vc-hue-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:de(e.getCursorStyle)},id,6)],512)],2)}const ea=Pe(nd,[["render",ld],["__scopeId","data-v-e1a08576"]]),sd=Y({name:"Lightness",props:{color:L.instanceOf(te),size:L.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=T(null),n=T(null);let a=e.color||new te;const[o,s,i]=a.HSL,l=Oe({hue:o,saturation:s,lightness:i});oe(()=>e.color,g=>{if(g){a=g;const[m,y,h]=a.HSL;$r(l,{hue:m,saturation:y,lightness:h})}},{deep:!0});const c=q(()=>{const g=A({h:l.hue,s:l.saturation,l:.8}).toPercentageRgbString(),m=A({h:l.hue,s:l.saturation,l:.6}).toPercentageRgbString(),y=A({h:l.hue,s:l.saturation,l:.4}).toPercentageRgbString(),h=A({h:l.hue,s:l.saturation,l:.2}).toPercentageRgbString();return{background:[`linear-gradient(to right, rgb(255, 255, 255), ${g}, ${m}, ${y}, ${h}, rgb(0, 0, 0))`,`-webkit-linear-gradient(left, rgb(255, 255, 255), ${g}, ${m}, ${y}, ${h}, rgb(0, 0, 0))`,`-moz-linear-gradient(left, rgb(255, 255, 255), ${g}, ${m}, ${y}, ${h}, rgb(0, 0, 0))`,`-ms-linear-gradient(left, rgb(255, 255, 255), ${g}, ${m}, ${y}, ${h}, rgb(0, 0, 0))`]}}),u=()=>{if(r.value&&n.value){const g=l.lightness,m=r.value.getBoundingClientRect(),y=n.value.offsetWidth;return(1-g)*(m.width-y)+y/2}return 0},f=q(()=>({left:u()+"px",top:0})),p=g=>{g.target!==r.value&&d(g)},d=g=>{if(g.stopPropagation(),r.value&&n.value){const m=r.value.getBoundingClientRect(),y=n.value.offsetWidth;let h=g.clientX-m.left;h=Math.max(y/2,h),h=Math.min(h,m.width-y/2);const v=1-(h-y/2)/(m.width-y);a.lightness=v,t("change",v)}};return Tt(()=>{const g={drag:m=>{d(m)},end:m=>{d(m)}};r.value&&n.value&&tr.triggerDragEvent(r.value,g)}),{barElement:r,cursorElement:n,getCursorStyle:f,getBackgroundStyle:c,onClickSider:p}}}),ud=e=>(Ft("data-v-94a50a9e"),e=e(),It(),e),cd=ud(()=>x("div",{class:"vc-lightness-slider__bar-handle"},null,-1)),fd=[cd];function dd(e,t,r,n,a,o){return w(),F("div",{class:fe(["vc-lightness-slider",{"small-slider":e.size==="small"}])},[x("div",{ref:"barElement",class:"vc-lightness-slider__bar",style:de(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickSider&&e.onClickSider(...s))},[x("div",{class:fe(["vc-lightness-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:de(e.getCursorStyle)},fd,6)],4)],2)}const Ci=Pe(sd,[["render",dd],["__scopeId","data-v-94a50a9e"]]),pd=Y({name:"History",props:{colors:L.arrayOf(String).def(()=>[]),round:L.bool.def(!1)},emits:["change"],setup(e,{emit:t}){return{onColorSelect:r=>{t("change",r)}}}}),hd={key:0,class:"vc-colorPicker__record"},vd={class:"color-list"},gd=["onClick"];function md(e,t,r,n,a,o){return e.colors&&e.colors.length>0?(w(),F("div",hd,[x("div",vd,[(w(!0),F(Ce,null,Se(e.colors,(s,i)=>(w(),F("div",{key:i,class:fe(["color-item","transparent",{"color-item__round":e.round}]),onClick:l=>e.onColorSelect(s)},[x("div",{class:"color-item__display",style:de({backgroundColor:s})},null,4)],10,gd))),128))])])):z("",!0)}const ta=Pe(pd,[["render",md],["__scopeId","data-v-0f657238"]]),yd=Y({name:"Display",props:{color:L.instanceOf(te),disableAlpha:L.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){var r,n,a,o;const{copy:s,copied:i,isSupported:l}=Fi(),c=T("hex"),u=Oe({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:(a=e.color)==null?void 0:a.RGB,previewBgColor:(o=e.color)==null?void 0:o.toRgbString()}),f=q(()=>({background:u.previewBgColor})),p=()=>{c.value=c.value==="rgba"?"hex":"rgba"},d=Le(h=>{if(!h.target.value)return;let v=parseInt(h.target.value.replace("%",""));v>100&&(h.target.value="100",v=100),v<0&&(h.target.value="0",v=0),isNaN(v)&&(h.target.value="100",v=100),!isNaN(v)&&u.color&&(u.color.alpha=v),t("change",u.color)},300),g=Le((h,v)=>{if(u.color){if(c.value==="hex"){const C=h.target.value.replace("#","");A(C).isValid()?[3,4].includes(C.length)&&(u.color.hex=C):u.color.hex="000000",t("change",u.color)}else if(c.value==="rgba"&&v===3&&h.target.value.toString()==="0."&&u.rgba){u.rgba[v]=h.target.value;const[C,S,_,R]=u.rgba;u.color.hex=A({r:C,g:S,b:_}).toHex(),u.color.alpha=Math.round(R*100),t("change",u.color)}}},100),m=Le((h,v)=>{if(h.target.value){if(c.value==="hex"){const C=h.target.value.replace("#","");A(C).isValid()&&u.color&&[6,8].includes(C.length)&&(u.color.hex=C)}else if(v!==void 0&&u.rgba&&u.color){if(h.target.value<0&&(h.target.value=0),v===3&&((h.target.value>1||isNaN(h.target.value))&&(h.target.value=1),h.target.value.toString()==="0."))return;v<3&&h.target.value>255&&(h.target.value=255),u.rgba[v]=h.target.value;const[C,S,_,R]=u.rgba;u.color.hex=A({r:C,g:S,b:_}).toHex(),u.color.alpha=Math.round(R*100)}t("change",u.color)}},300),y=()=>{if(l&&u.color){const h=c.value==="hex"?u.color.toString(u.color.alpha===100?"hex6":"hex8"):u.color.toRgbString();s(h||"")}};return he(()=>e.color,h=>{h&&(u.color=h,u.alpha=Math.round(u.color.alpha),u.hex=u.color.hex,u.rgba=u.color.RGB)},{deep:!0}),he(()=>u.color,()=>{u.color&&(u.previewBgColor=u.color.toRgbString())},{deep:!0}),{state:u,getBgColorStyle:f,inputType:c,copied:i,onInputTypeChange:p,onAlphaBlur:d,onInputChange:m,onBlurChange:g,onCopyColorStr:y}}}),bd={class:"vc-display"},Cd={class:"vc-current-color vc-transparent"},Sd={key:0,class:"copy-text"},wd={key:0,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},_d={class:"vc-color-input"},xd={key:0,class:"vc-alpha-input"},kd=["value"],Ad={key:1,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},Rd=["value","onInput","onBlur"];function Ed(e,t,r,n,a,o){return w(),F("div",bd,[x("div",Cd,[x("div",{class:"color-cube",style:de(e.getBgColorStyle),onClick:t[0]||(t[0]=(...s)=>e.onCopyColorStr&&e.onCopyColorStr(...s))},[e.copied?(w(),F("span",Sd,"Copied!")):z("",!0)],4)]),e.inputType==="hex"?(w(),F("div",wd,[x("div",_d,[gr(x("input",{"onUpdate:modelValue":t[1]||(t[1]=s=>e.state.hex=s),maxlength:"8",onInput:t[2]||(t[2]=(...s)=>e.onInputChange&&e.onInputChange(...s)),onBlur:t[3]||(t[3]=(...s)=>e.onBlurChange&&e.onBlurChange(...s))},null,544),[[sl,e.state.hex]])]),e.disableAlpha?z("",!0):(w(),F("div",xd,[x("input",{class:"vc-alpha-input__inner",value:e.state.alpha,onInput:t[4]||(t[4]=(...s)=>e.onAlphaBlur&&e.onAlphaBlur(...s))},null,40,kd),Ie("% ")]))])):e.state.rgba?(w(),F("div",Ad,[(w(!0),F(Ce,null,Se(e.state.rgba,(s,i)=>(w(),F("div",{class:"vc-color-input",key:i},[x("input",{value:s,onInput:l=>e.onInputChange(l,i),onBlur:l=>e.onBlurChange(l,i)},null,40,Rd)]))),128))])):z("",!0),x("div",{class:"vc-input-toggle",onClick:t[5]||(t[5]=(...s)=>e.onInputTypeChange&&e.onInputTypeChange(...s))},se(e.inputType),1)])}const ra=Pe(yd,[["render",Ed],["__scopeId","data-v-7334ac20"]]),Od=Y({name:"FkColorPicker",components:{Display:ra,Alpha:Jn,Palette:bi,Board:Qn,Hue:ea,Lightness:Ci,History:ta},props:{color:L.instanceOf(te),disableHistory:L.bool.def(!1),roundHistory:L.bool.def(!1),disableAlpha:L.bool.def(!1)},emits:["update:color","change","advanceChange"],setup(e,{emit:t}){const r=e.color||new te,n=Oe({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),a=T(!1),o=q(()=>({background:n.rgb})),s=()=>{a.value=!1,t("advanceChange",!1)},i=kn(qn,[],{}),l=Le(()=>{if(e.disableHistory)return;const m=n.color.toRgbString();if(i.value=i.value.filter(y=>!A.equals(y,m)),!i.value.includes(m)){for(;i.value.length>Yn;)i.value.pop();i.value.unshift(m)}},500),c=m=>{m==="advance"?(a.value=!0,t("advanceChange",!0)):(n.color.hex=m,t("advanceChange",!1))},u=m=>{n.color.alpha=m},f=m=>{n.color.hue=m},p=(m,y)=>{n.color.saturation=m,n.color.brightness=y},d=m=>{n.color.lightness=m},g=m=>{const y=m.target.value.replace("#","");A(y).isValid()&&(n.color.hex=y)};return he(()=>e.color,m=>{m&&(n.color=m)},{deep:!0}),he(()=>n.color,()=>{n.hex=n.color.hex,n.rgb=n.color.toRgbString(),l(),t("update:color",n.color),t("change",n.color)},{deep:!0}),{state:n,advancePanelShow:a,onBack:s,onCompactChange:c,onAlphaChange:u,onHueChange:f,onBoardChange:p,onLightChange:d,onInputChange:g,previewStyle:o,historyColors:i}}}),$d=e=>(Ft("data-v-48e3c224"),e=e(),It(),e),Td={class:"vc-fk-colorPicker"},Pd={class:"vc-fk-colorPicker__inner"},Md={class:"vc-fk-colorPicker__header"},Fd=$d(()=>x("div",{class:"back"},null,-1)),Id=[Fd];function Bd(e,t,r,n,a,o){const s=W("Palette"),i=W("Board"),l=W("Hue"),c=W("Lightness"),u=W("Alpha"),f=W("Display"),p=W("History");return w(),F("div",Td,[x("div",Pd,[x("div",Md,[e.advancePanelShow?(w(),F("span",{key:0,style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...d)=>e.onBack&&e.onBack(...d))},Id)):z("",!0)]),e.advancePanelShow?z("",!0):(w(),V(s,{key:0,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?(w(),V(i,{key:1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"])):z("",!0),e.advancePanelShow?(w(),V(l,{key:2,color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"])):z("",!0),e.advancePanelShow?z("",!0):(w(),V(c,{key:3,color:e.state.color,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?z("",!0):(w(),V(u,{key:4,color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"])),G(f,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?z("",!0):(w(),V(p,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const yo=Pe(Od,[["render",Bd],["__scopeId","data-v-48e3c224"]]),Hd=Y({name:"ChromeColorPicker",components:{Display:ra,Alpha:Jn,Board:Qn,Hue:ea,History:ta},props:{color:L.instanceOf(te),disableHistory:L.bool.def(!1),roundHistory:L.bool.def(!1),disableAlpha:L.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){const r=e.color||new te,n=Oe({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),a=q(()=>({background:n.rgb})),o=kn(qn,[],{}),s=Le(()=>{if(e.disableHistory)return;const p=n.color.toRgbString();if(o.value=o.value.filter(d=>!A.equals(d,p)),!o.value.includes(p)){for(;o.value.length>Yn;)o.value.pop();o.value.unshift(p)}},500),i=p=>{n.color.alpha=p},l=p=>{n.color.hue=p},c=p=>{p.hex!==void 0&&(n.color.hex=p.hex),p.alpha!==void 0&&(n.color.alpha=p.alpha)},u=(p,d)=>{n.color.saturation=p,n.color.brightness=d},f=p=>{p!=="advance"&&(n.color.hex=p)};return he(()=>e.color,p=>{p&&(n.color=p)},{deep:!0}),he(()=>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,previewStyle:a,historyColors:o,onAlphaChange:i,onHueChange:l,onBoardChange:u,onInputChange:c,onCompactChange:f}}}),Ld={class:"vc-chrome-colorPicker"},Dd={class:"vc-chrome-colorPicker-body"},Nd={class:"chrome-controls"},jd={class:"chrome-sliders"};function Ud(e,t,r,n,a,o){const s=W("Board"),i=W("Hue"),l=W("Alpha"),c=W("Display"),u=W("History");return w(),F("div",Ld,[G(s,{round:!0,hide:!1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"]),x("div",Dd,[x("div",Nd,[x("div",jd,[G(i,{size:"small",color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"]),e.disableAlpha?z("",!0):(w(),V(l,{key:0,size:"small",color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"]))])]),G(c,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?z("",!0):(w(),V(u,{key:0,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const bo=Pe(Hd,[["render",Ud],["__scopeId","data-v-2611d66c"]]),na="Vue3ColorPickerProvider",Vd=(e,t)=>{const r=e.getBoundingClientRect(),n=r.left+r.width/2,a=r.top+r.height/2,o=Math.abs(n-t.clientX),s=Math.abs(a-t.clientY),i=Math.sqrt(Math.pow(o,2)+Math.pow(s,2)),l=s/i,c=Math.acos(l);let u=Math.floor(180/(Math.PI/c));return t.clientX>n&&t.clientY>a&&(u=180-u),t.clientX==n&&t.clientY>a&&(u=180),t.clientX>n&&t.clientY==a&&(u=90),t.clientX<n&&t.clientY>a&&(u=180+u),t.clientX<n&&t.clientY==a&&(u=270),t.clientX<n&&t.clientY<a&&(u=360-u),u};let ln=!1;const zd=(e,t)=>{const r=function(a){var o;(o=t.drag)==null||o.call(t,a)},n=function(a){var o;document.removeEventListener("mousemove",r,!1),document.removeEventListener("mouseup",n,!1),document.onselectstart=null,document.ondragstart=null,ln=!1,(o=t.end)==null||o.call(t,a)};e&&e.addEventListener("mousedown",a=>{var o;ln||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",n,!1),ln=!0,(o=t.start)==null||o.call(t,a))})},Wd={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"}},Kd=Y({name:"Angle",props:Wd,emits:["update:angle","change"],setup(e,{emit:t}){const r=T(null),n=T(0);oe(()=>e.angle,i=>{n.value=i});const a=()=>{let i=Number(n.value);isNaN(i)||(i=i>360||i<0?e.angle:i,n.value=i===360?0:i,t("update:angle",n.value),t("change",n.value))},o=q(()=>({width:e.size+"px",height:e.size+"px",borderWidth:e.borderWidth+"px",borderColor:e.borderColor,transform:`rotate(${n.value}deg)`})),s=i=>{r.value&&(n.value=Vd(r.value,i)%360,a())};return Rn(()=>{const i={drag:l=>{s(l)},end:l=>{s(l)}};r.value&&zd(r.value,i)}),()=>G("div",{class:"bee-angle"},[G("div",{class:"bee-angle__round",ref:r,style:o.value},null)])}}),Gd=Y({name:"GradientColorPicker",components:{Angle:Kd,Display:ra,Alpha:Jn,Palette:bi,Board:Qn,Hue:ea,Lightness:Ci,History:ta},props:{startColor:L.instanceOf(te).isRequired,endColor:L.instanceOf(te).isRequired,startColorStop:L.number.def(0),endColorStop:L.number.def(100),angle:L.number.def(0),type:L.oneOf(["linear","radial"]).def("linear"),disableHistory:L.bool.def(!1),roundHistory:L.bool.def(!1),disableAlpha:L.bool.def(!1),pickerType:L.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=Oe({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=Eo(na),a=T(e.pickerType==="chrome"),o=T(),s=T(),i=T();oe(()=>[e.startColor,e.endColor,e.angle],b=>{r.startColor=b[0],r.endColor=b[1],r.angle=b[2]}),oe(()=>e.type,b=>{r.type=b});const l=q({get:()=>r.startActive?r.startColor:r.endColor,set:b=>{if(r.startActive){r.startColor=b;return}r.endColor=b}}),c=q(()=>{if(i.value&&o.value){const b=r.startColorStop/100,$=i.value.getBoundingClientRect(),B=o.value.offsetWidth;return Math.round(b*($.width-B)+B/2)}return 0}),u=q(()=>{if(i.value&&s.value){const b=r.endColorStop/100,$=i.value.getBoundingClientRect(),B=s.value.offsetWidth;return Math.round(b*($.width-B)+B/2)}return 0}),f=q(()=>{let b=`background: linear-gradient(${r.angle}deg, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`;return r.type==="radial"&&(b=`background: radial-gradient(circle, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`),b}),p=b=>{var $;if(r.startActive=!0,i.value&&o.value){const B=($=i.value)==null?void 0:$.getBoundingClientRect();let H=b.clientX-B.left;H=Math.max(o.value.offsetWidth/2,H),H=Math.min(H,B.width-o.value.offsetWidth/2),r.startColorStop=Math.round((H-o.value.offsetWidth/2)/(B.width-o.value.offsetWidth)*100),t("update:startColorStop",r.startColorStop),t("startColorStopChange",r.startColorStop)}},d=b=>{var $;if(r.startActive=!1,i.value&&s.value){const B=($=i.value)==null?void 0:$.getBoundingClientRect();let H=b.clientX-B.left;H=Math.max(s.value.offsetWidth/2,H),H=Math.min(H,B.width-s.value.offsetWidth/2),r.endColorStop=Math.round((H-s.value.offsetWidth/2)/(B.width-s.value.offsetWidth)*100),t("update:endColorStop",r.endColorStop),t("endColorStopChange",r.endColorStop)}},g=b=>{const $=b.target,B=parseInt($.value.replace("°",""));isNaN(B)||(r.angle=B%360),t("update:angle",r.angle),t("angleChange",r.angle)},m=b=>{r.angle=b,t("update:angle",r.angle),t("angleChange",r.angle)},y=b=>{b==="advance"?(a.value=!0,t("advanceChange",!0)):(l.value.hex=b,t("advanceChange",!1)),R()},h=b=>{l.value.alpha=b,R()},v=b=>{l.value.hue=b,R()},C=(b,$)=>{l.value.saturation=b,l.value.brightness=$,R()},S=b=>{l.value.lightness=b,R()},_=()=>{R()},R=()=>{r.startActive?(t("update:startColor",r.startColor),t("startColorChange",r.startColor)):(t("update:endColor",r.endColor),t("endColorChange",r.endColor))},E=()=>{a.value=!1,t("advanceChange",!1)},I=()=>{r.type=r.type==="linear"?"radial":"linear",t("typeChange",r.type)},k=kn(qn,[],{}),M=Le(()=>{if(e.disableHistory)return;const b=l.value.toRgbString();if(k.value=k.value.filter($=>!A.equals($,b)),!k.value.includes(b)){for(;k.value.length>Yn;)k.value.pop();k.value.unshift(b)}},500);return Tt(()=>{s.value&&o.value&&(tr.triggerDragEvent(s.value,{drag:b=>{d(b)},end:b=>{d(b)}}),tr.triggerDragEvent(o.value,{drag:b=>{p(b)},end:b=>{p(b)}}))}),he(()=>r.startColor,b=>{r.startColorRgba=b.toRgbString()},{deep:!0}),he(()=>r.endColor,b=>{r.endColorRgba=b.toRgbString()},{deep:!0}),he(()=>l.value,()=>{M()},{deep:!0}),{startGradientRef:o,stopGradientRef:s,colorRangeRef:i,state:r,currentColor:l,getStartColorLeft:c,getEndColorLeft:u,gradientBg:f,advancePanelShow:a,onDegreeBlur:g,onCompactChange:y,onAlphaChange:h,onHueChange:v,onBoardChange:C,onLightChange:S,historyColors:k,onBack:E,onDegreeChange:m,onDisplayChange:_,onTypeChange:I,lang:n==null?void 0:n.lang}}}),Si=e=>(Ft("data-v-c4d6d6ea"),e=e(),It(),e),Xd={class:"vc-gradient-picker"},qd={class:"vc-gradient-picker__header"},Yd={class:"vc-gradient__types"},Jd={class:"vc-gradient-wrap__types"},Zd={class:"vc-picker-degree-input vc-degree-input"},Qd={class:"vc-degree-input__control"},ep=["value"],tp={class:"vc-degree-input__panel"},rp={class:"vc-degree-input__disk"},np={class:"vc-gradient-picker__body"},ap={class:"vc-color-range",ref:"colorRangeRef"},op={class:"vc-color-range__container"},ip={class:"vc-gradient__stop__container"},lp=["title"],sp=Si(()=>x("span",{class:"vc-gradient__stop--inner"},null,-1)),up=[sp],cp=["title"],fp=Si(()=>x("span",{class:"vc-gradient__stop--inner"},null,-1)),dp=[fp];function pp(e,t,r,n,a,o){var s,i;const l=W("Angle"),c=W("Board"),u=W("Hue"),f=W("Palette"),p=W("Lightness"),d=W("Alpha"),g=W("Display"),m=W("History");return w(),F("div",Xd,[x("div",qd,[x("div",null,[gr(x("div",{class:"back",style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...y)=>e.onBack&&e.onBack(...y))},null,512),[[cn,e.pickerType==="fk"&&e.advancePanelShow]])]),x("div",Yd,[x("div",Jd,[(w(),F(Ce,null,Se(["linear","radial"],y=>x("div",{class:fe(["vc-gradient__type",{active:e.state.type===y}]),key:y,onClick:t[1]||(t[1]=(...h)=>e.onTypeChange&&e.onTypeChange(...h))},se(e.lang?e.lang[y]:y),3)),64))]),gr(x("div",Zd,[x("div",Qd,[x("input",{value:e.state.angle,onBlur:t[2]||(t[2]=(...y)=>e.onDegreeBlur&&e.onDegreeBlur(...y))},null,40,ep),Ie("deg ")]),x("div",tp,[x("div",rp,[G(l,{angle:e.state.angle,"onUpdate:angle":t[3]||(t[3]=y=>e.state.angle=y),size:40,onChange:e.onDegreeChange},null,8,["angle","onChange"])])])],512),[[cn,e.state.type==="linear"]])])]),x("div",np,[x("div",ap,[x("div",op,[x("div",{class:"vc-background",style:de(e.gradientBg)},null,4),x("div",ip,[x("div",{class:fe(["vc-gradient__stop",{"vc-gradient__stop--current":e.state.startActive}]),ref:"startGradientRef",title:(s=e.lang)==null?void 0:s.start,style:de({left:e.getStartColorLeft+"px",backgroundColor:e.state.startColorRgba})},up,14,lp),x("div",{class:fe(["vc-gradient__stop",{"vc-gradient__stop--current":!e.state.startActive}]),ref:"stopGradientRef",title:(i=e.lang)==null?void 0:i.end,style:de({left:e.getEndColorLeft+"px",backgroundColor:e.state.endColorRgba})},dp,14,cp)])])],512)]),e.advancePanelShow?(w(),V(c,{key:0,color:e.currentColor,onChange:e.onBoardChange},null,8,["color","onChange"])):z("",!0),e.advancePanelShow?(w(),V(u,{key:1,color:e.currentColor,onChange:e.onHueChange},null,8,["color","onChange"])):z("",!0),e.advancePanelShow?z("",!0):(w(),V(f,{key:2,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?z("",!0):(w(),V(p,{key:3,color:e.currentColor,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?z("",!0):(w(),V(d,{key:4,color:e.currentColor,onChange:e.onAlphaChange},null,8,["color","onChange"])),G(g,{color:e.currentColor,"disable-alpha":e.disableAlpha,onChange:e.onDisplayChange},null,8,["color","disable-alpha","onChange"]),e.disableHistory?z("",!0):(w(),V(m,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])}const Co=Pe(Gd,[["render",pp],["__scopeId","data-v-c4d6d6ea"]]),hp=Y({name:"WrapContainer",props:{theme:L.oneOf(["white","black"]).def("white"),showTab:L.bool.def(!1),activeKey:L.oneOf(["pure","gradient"]).def("pure")},emits:["update:activeKey","change"],setup(e,{emit:t}){const r=Oe({activeKey:e.activeKey}),n=Eo(na),a=o=>{r.activeKey=o,t("update:activeKey",o),t("change",o)};return he(()=>e.activeKey,o=>{r.activeKey=o}),{state:r,onActiveKeyChange:a,lang:n==null?void 0:n.lang}}}),vp={class:"vc-colorpicker--container"},gp={key:0,class:"vc-colorpicker--tabs"},mp={class:"vc-colorpicker--tabs__inner"},yp={class:"vc-btn__content"},bp={class:"vc-btn__content"};function Cp(e,t,r,n,a,o){var s,i;return w(),F("div",{class:fe(["vc-colorpicker",e.theme])},[x("div",vp,[e.showTab?(w(),F("div",gp,[x("div",mp,[x("div",{class:fe(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="pure"}]),onClick:t[0]||(t[0]=l=>e.onActiveKeyChange("pure"))},[x("button",null,[x("div",yp,se((s=e.lang)==null?void 0:s.pure),1)])],2),x("div",{class:fe(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="gradient"}]),onClick:t[1]||(t[1]=l=>e.onActiveKeyChange("gradient"))},[x("button",null,[x("div",bp,se((i=e.lang)==null?void 0:i.gradient),1)])],2),x("div",{class:"vc-colorpicker--tabs__bg",style:de({width:"50%",left:`calc(${e.state.activeKey==="gradient"?50:0}%)`})},null,4)])])):z("",!0),_t(e.$slots,"default",{},void 0,!0)])],2)}const Sp=Pe(hp,[["render",Cp],["__scopeId","data-v-0492277d"]]),wp={start:"Start",end:"End",pure:"Pure",gradient:"Gradient",linear:"linear",radial:"radial"},_p={start:"开始",end:"结束",pure:"纯色",gradient:"渐变",linear:"线性",radial:"径向"},xp={En:wp,"ZH-cn":_p},kp={isWidget:L.bool.def(!1),pickerType:L.oneOf(["fk","chrome"]).def("fk"),shape:L.oneOf(["circle","square"]).def("square"),pureColor:{type:[String,Object],default:"#000000"},gradientColor:L.string.def("linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)"),format:{type:String,default:"rgb"},disableAlpha:L.bool.def(!1),disableHistory:L.bool.def(!1),roundHistory:L.bool.def(!1),useType:L.oneOf(["pure","gradient","both"]).def("pure"),activeKey:L.oneOf(["pure","gradient"]).def("pure"),lang:{type:String,default:"ZH-cn"},zIndex:L.number.def(9999),pickerContainer:{type:[String,HTMLElement],default:"body"},debounce:L.number.def(100),theme:L.oneOf(["white","black"]).def("white"),blurClose:L.bool.def(!1),defaultPopup:L.bool.def(!1)},Ap=Y({name:"ColorPicker",components:{FkColorPicker:yo,ChromeColorPicker:bo,GradientColorPicker:Co,WrapContainer:Sp},inheritAttrs:!1,props:kp,emits:["update:pureColor","pureColorChange","update:gradientColor","gradientColorChange","update:activeKey","activeKeyChange"],setup(e,{emit:t}){cl(na,{lang:q(()=>xp[e.lang||"ZH-cn"])});const r=!!fl().extra,n=Oe({pureColor:e.pureColor||"",activeKey:e.useType==="gradient"?"gradient":e.activeKey,isAdvanceMode:!1}),a=new te("#000"),o=new te("#000"),s=new te(n.pureColor),i=Oe({startColor:a,endColor:o,startColorStop:0,endColorStop:100,angle:0,type:"linear",gradientColor:e.gradientColor}),l=T(s),c=T(e.defaultPopup),u=T(null),f=T(null);let p=null;const d=q(()=>({background:n.activeKey!=="gradient"?A(n.pureColor).toRgbString():i.gradientColor})),g=q(()=>n.activeKey==="gradient"?Co.name:e.pickerType==="fk"?yo.name:bo.name),m=b=>{n.isAdvanceMode=b},y=q(()=>{const b={disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,pickerType:e.pickerType};return n.activeKey==="gradient"?we(le({},b),{startColor:i.startColor,endColor:i.endColor,angle:i.angle,type:i.type,startColorStop:i.startColorStop,endColorStop:i.endColorStop,onStartColorChange:$=>{i.startColor=$,_()},onEndColorChange:$=>{i.endColor=$,_()},onStartColorStopChange:$=>{i.startColorStop=$,_()},onEndColorStopChange:$=>{i.endColorStop=$,_()},onAngleChange:$=>{i.angle=$,_()},onTypeChange:$=>{i.type=$,_()},onAdvanceChange:m}):we(le({},b),{disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,color:l.value,onChange:I,onAdvanceChange:m})}),h=()=>{c.value=!0,p?p.update():E()},v=()=>{c.value=!1},C=Le(()=>{!e.isWidget&&e.blurClose&&v()},100);Ii(f,()=>{v()});const S=()=>{var b,$,B,H;try{const[N]=ys(i.gradientColor);if(N&&N.type.includes("gradient")&&N.colorStops.length>=2){const j=N.colorStops[0],O=N.colorStops[1];i.startColorStop=Number((b=j.length)==null?void 0:b.value)||0,i.endColorStop=Number(($=O.length)==null?void 0:$.value)||0,N.type==="linear-gradient"&&((B=N.orientation)==null?void 0:B.type)==="angular"&&(i.angle=Number((H=N.orientation)==null?void 0:H.value)||0),i.type=N.type.split("-")[0];const[U,K,ge,Ye]=j.value,[nt,ht,Je,He]=O.value;i.startColor=new te({r:Number(U),g:Number(K),b:Number(ge),a:Number(Ye)}),i.endColor=new te({r:Number(nt),g:Number(ht),b:Number(Je),a:Number(He)})}}catch(N){}},_=Le(()=>{const b=R();try{i.gradientColor=bs(b),t("update:gradientColor",i.gradientColor),t("gradientColorChange",i.gradientColor)}catch($){}},e.debounce),R=()=>{const b=[],$=i.startColor.RGB.map(N=>N.toString()),B=i.endColor.RGB.map(N=>N.toString()),H=[{type:"rgba",value:[$[0],$[1],$[2],$[3]],length:{value:i.startColorStop+"",type:"%"}},{type:"rgba",value:[B[0],B[1],B[2],B[3]],length:{value:i.endColorStop+"",type:"%"}}];return i.type==="linear"?b.push({type:"linear-gradient",orientation:{type:"angular",value:i.angle+""},colorStops:H}):i.type==="radial"&&b.push({type:"radial-gradient",orientation:[{type:"shape",value:"circle"}],colorStops:H}),b},E=()=>{u.value&&f.value&&(p=ku(u.value,f.value,{placement:"auto",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{allowedAutoPlacements:["top","bottom","left","right"],rootBoundary:"viewport"}}]}))},I=b=>{l.value=b,n.pureColor=b.toString(e.format),k()},k=Le(()=>{t("update:pureColor",n.pureColor),t("pureColorChange",n.pureColor)},e.debounce),M=b=>{n.activeKey=b,t("update:activeKey",b),t("activeKeyChange",b)};return Tt(()=>{S(),p||E()}),he(()=>e.gradientColor,b=>{b!=i.gradientColor&&(i.gradientColor=b)}),he(()=>i.gradientColor,()=>{S()}),he(()=>e.activeKey,b=>{n.activeKey=b}),he(()=>e.useType,b=>{n.activeKey!=="gradient"&&b==="gradient"?n.activeKey="gradient":n.activeKey="pure"}),he(()=>e.pureColor,b=>{A.equals(b,n.pureColor)||(n.pureColor=b,l.value=new te(b))},{deep:!0}),{colorCubeRef:u,pickerRef:f,showPicker:c,colorInstance:l,getBgColorStyle:d,getComponentName:g,getBindArgs:y,state:n,hasExtra:r,onColorChange:I,onShowPicker:h,onActiveKeyChange:M,onAutoClose:C}}}),Rp={key:0,class:"vc-color-extra"},Ep={key:0,class:"vc-color-extra"};function Op(e,t,r,n,a,o){const s=W("WrapContainer");return w(),F(Ce,null,[e.isWidget?(w(),V(s,{key:0,"active-key":e.state.activeKey,"onUpdate:activeKey":t[0]||(t[0]=i=>e.state.activeKey=i),"show-tab":e.useType==="both",style:de({zIndex:e.zIndex}),theme:e.theme,onChange:e.onActiveKeyChange},{default:re(()=>[(w(),V(va(e.getComponentName),Be({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(w(),F("div",Rp,[_t(e.$slots,"extra",{},void 0,!0)])):z("",!0)]),_:3},8,["active-key","show-tab","style","theme","onChange"])):z("",!0),e.isWidget?z("",!0):(w(),F(Ce,{key:1},[x("div",{class:fe(["vc-color-wrap transparent",{round:e.shape==="circle"}]),ref:"colorCubeRef"},[x("div",{class:"current-color",style:de(e.getBgColorStyle),onClick:t[1]||(t[1]=(...i)=>e.onShowPicker&&e.onShowPicker(...i))},null,4)],2),(w(),V(ul,{to:e.pickerContainer},[gr(x("div",{ref:"pickerRef",style:de({zIndex:e.zIndex}),onMouseleave:t[3]||(t[3]=(...i)=>e.onAutoClose&&e.onAutoClose(...i))},[e.showPicker?(w(),V(s,{key:0,"show-tab":e.useType==="both"&&!e.state.isAdvanceMode,theme:e.theme,"active-key":e.state.activeKey,"onUpdate:activeKey":t[2]||(t[2]=i=>e.state.activeKey=i),onChange:e.onActiveKeyChange},{default:re(()=>[(w(),V(va(e.getComponentName),Be({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(w(),F("div",Ep,[_t(e.$slots,"extra",{},void 0,!0)])):z("",!0)]),_:3},8,["show-tab","theme","active-key","onChange"])):z("",!0)],36),[[cn,e.showPicker]])],8,["to"]))],64))],64)}const $p=Pe(Ap,[["render",Op],["__scopeId","data-v-354ca836"]]),Tp=Y({name:"FColorPicker",components:{ColorPicker:$p},props:{value:X.string.def("")},emits:["change"],setup(e,{emit:t}){const r=ct(),[n]=je(e,"value","change"),a=q(()=>n.value||"#000");return{attrs:r,pureColor:a,update:s=>{n.value=s,t("change",s)}}}}),Pp={class:"form-color-picker_info"};function Mp(e,t,r,n,a,o){const s=W("ColorPicker");return w(),F("div",Be(e.attrs,{class:"form-color-picker"}),[G(s,{format:"hex",pureColor:e.pureColor,"onUpdate:pureColor":e.update},null,8,["pureColor","onUpdate:pureColor"]),x("div",Pp,se(e.pureColor),1)],16)}const Fp=tt(Tp,[["render",Mp]]),Ip={helpText:{type:String,default:""},titleText:{type:String,default:"上传文件"},maxSize:{type:Number,default:2},maxNumber:{type:Number,default:1/0},accept:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},uploadParams:{type:Object,default:()=>({})},api:{type:Function,default:null,required:!0},name:{type:String,default:"file"},filename:{type:String,default:null},showAlert:{type:Boolean,default:!0},showFileList:{type:Boolean,default:!0},showTemplate:{type:Boolean,default:!1},tamplateApi:{type:Function,default:null}},Bp=we(le({value:{type:Array,default:()=>[]}},Ip),{showPreviewNumber:{type:Boolean,default:!0},emptyHidePreview:{type:Boolean,default:!1}});var ze=(e=>(e.SUCCESS="success",e.ERROR="error",e.UPLOADING="uploading",e))(ze||{});function Hp({acceptRef:e,helpTextRef:t,maxNumberRef:r,maxSizeRef:n}){const a=q(()=>{const i=P(e);return i&&i.length>0?i:[]}),o=q(()=>P(a).map(i=>i.indexOf("/")>0||i.startsWith(".")?i:`.${i}`).join(",")),s=q(()=>{const i=P(t);if(i)return i;const l=[],c=P(e);c.length>0&&l.push(`只能上传${[c.join(",")]}格式文件`);const u=P(n);u&&l.push(`单个文件不超过${u}MB`);const f=P(r);return f&&f!==1/0&&l.push(`最多只能上传${f}个文件`),l.join(",")});return{getAccept:a,getStringAccept:o,getHelpText:s}}const Lp=Y({name:"XTUpload",components:{UploadOutlined:qi,DownloadOutlined:Xi,PaperClipOutlined:Gi,Upload:Ki,Alert:xo,UploadPreviewModal:Cl,Progress:Wi},props:we(le({},Bp),{previewFileList:{type:Array,default:()=>[]}}),emits:["change","delete","success"],setup(e,{emit:t}){const r=Oe({fileList:[]}),[n,{openModal:a}]=fn(),o=T(!1),s=T([]),i=T([]),l=T(0),c=T({}),{accept:u,helpText:f,maxNumber:p,maxSize:d}=dl(e),{getStringAccept:g,getHelpText:m}=Hp({acceptRef:u,helpTextRef:f,maxNumberRef:p,maxSizeRef:d}),{createMessage:y}=Bi();oe(()=>e.value,(k=[])=>{s.value=xn(k)?k:[]},{immediate:!0});function h(k,M){return ee(this,null,function*(){if(M.length==1){if(!v(k))return;yield E()}else l.value+=1,l.value==M.length&&(M.forEach(b=>{v(b)}),yield E());return!1})}function v(k){const{maxSize:M,maxNumber:b}=e,{size:$,name:B}=k;if(M&&k.size/1024/1024>=M)return y.error(`只能上传不超过${M}MB的文件!`),!1;const H={uuid:wl(),file:k,size:$,name:B,percent:0,type:B.split(".").pop()},N=[...P(i),H];return(N.length+s.value.length||0)>b?(y.warning(`最多只能上传${b}个文件`),!1):(i.value=N,!0)}function C(k,M){return ee(this,null,function*(){if(M){const b=s.value.findIndex($=>$.id===k.id);b!==-1&&s.value.splice(b,1),t("delete",k)}else{const b=i.value.findIndex($=>$.uuid===k.uuid);b!==-1&&i.value.splice(b,1),t("delete",k)}})}function S(k){return ee(this,null,function*(){const M=yield bl(k.id);c.value=we(le({},k),{previewUrl:M}),a(!0,we(le({},k),{previewUrl:M}))})}function _(k){let M="normal";return k===ze.ERROR?M="exception":k===ze.UPLOADING?M="active":k===ze.SUCCESS&&(M="success"),M}function R(k,M,b){return ee(this,null,function*(){var B;const{api:$}=e;if(!$||!Q($))return Hi();try{const{data:H}=yield(B=e==null?void 0:e.api)==null?void 0:B.call(e,{data:le({},e.uploadParams||{}),file:k.file,name:e.name,filename:e.filename},function(j){const O=j.loaded/j.total*100|0;k.percent=O});return k.status=H.code==Nt.SUCCESS?ze.SUCCESS:ze.ERROR,k.responseData=H,M<=b&&(l.value=0,i.value.forEach(N=>{const j=N.responseData;(j==null?void 0:j.code)==Nt.SUCCESS?(s.value.push(j.data),t("success",j.data)):j&&y.error(j==null?void 0:j.errorMsg)}),i.value=i.value.filter(N=>{var j;return N.status!=ze.SUCCESS||String((j=N.responseData)==null?void 0:j.code)!=Nt.SUCCESS})),{success:H.code==Nt.SUCCESS,error:H.code==Nt.SUCCESS?null:H.errorMsg}}catch(H){return k.status=ze.ERROR,{success:!1,error:H}}})}function E(){return ee(this,null,function*(){try{o.value=!0;const k=i.value.filter($=>$.status!==ze.SUCCESS)||[],M=yield Promise.all(k.map(($,B)=>R($,B,k.length)));t("change",s.value),o.value=!1;const b=M.filter($=>!$.success);if(b.length>0)throw b}catch(k){throw o.value=!1,k}})}function I(){return ee(this,null,function*(){const k=yield e.tamplateApi([]);Sl(k.base64,k.fileName)})}return{getHelpText:m,getStringAccept:g,beforeUpload:h,fileListRef:i,state:r,isUploadingRef:o,handleStartUpload:E,fileList:s,handleRemove:C,handlePreview:S,previewFile:c,registerPreviewModal:n,setProgressSataus:_,handleTemplate:I}}}),Dp={class:"flex upload-toolbar"},Np={key:0,class:"upload-filelist"},jp={class:"mr-2"},Up={class:"color-muted"},Vp={class:"flex"},zp=["onClick","title"],Wp=["onClick"],Kp={key:1,class:"upload-filelist"},Gp={class:"upload-filelist__item-info"},Xp={class:"mr-2"},qp={class:"upload-filelist__item-progress"},Yp={class:"flex"},Jp={key:0,class:"upload-filelist--error"},Zp=["onClick"];function Qp(e,t,r,n,a,o){const s=W("upload-outlined"),i=W("a-button"),l=W("Upload"),c=W("download-outlined"),u=W("Alert"),f=W("paper-clip-outlined"),p=W("Progress"),d=W("UploadPreviewModal");return w(),F("div",null,[x("div",Dp,[G(l,{accept:e.getStringAccept,multiple:e.multiple,"before-upload":e.beforeUpload,"show-upload-list":!1,class:"upload-toolbar__btn"},{default:re(()=>[G(i,null,{default:re(()=>[G(s),Ie(" "+se(e.titleText),1)]),_:1})]),_:1},8,["accept","multiple","before-upload"]),e.showTemplate?(w(),V(i,{key:0,class:"mr-1",onClick:e.handleTemplate,type:"dashed"},{default:re(()=>[G(c),t[0]||(t[0]=Ie(" 下载模板 "))]),_:1},8,["onClick"])):z("",!0),e.showAlert?(w(),V(u,{key:1,message:e.getHelpText,type:"info",banner:"",class:"upload-toolbar__text"},null,8,["message"])):z("",!0)]),e.showFileList?(w(),F("div",Np,[(w(!0),F(Ce,null,Se(e.fileList,g=>(w(),F("div",{class:"upload-filelist__item",key:g.id},[x("div",null,[G(f,{class:"mr-1"}),x("span",jp,se(g.realName),1),x("span",Up,"("+se(g.size)+"kb)",1)]),x("div",Vp,[x("span",{class:"upload-filelist--color pointer",style:{cursor:"pointer"},onClick:m=>e.handlePreview(g),title:"预览-"+g.realName},"预览",8,zp),x("span",{class:"cursor-pointer upload-filelist--color pointer",style:{cursor:"pointer"},onClick:m=>e.handleRemove(g,1)},"删除",8,Wp)])]))),128))])):z("",!0),e.showFileList?(w(),F("div",Kp,[(w(!0),F(Ce,null,Se(e.fileListRef,g=>(w(),F("div",{class:fe(["upload-filelist__item",g.status=="error"?"upload-filelist__item--error":""]),key:g.uuid},[x("div",Gp,[G(f,{class:"mr-1"}),x("span",Xp,se(g.name),1),x("span",null,"("+se(g.size)+"kb)",1)]),x("div",qp,[G(p,{percent:g.percent,size:"small",status:e.setProgressSataus(g.status)},null,8,["percent","status"])]),x("div",Yp,[g.status=="error"?(w(),F("span",Jp,"上传失败")):z("",!0),x("span",{class:"upload-filelist--color pointer",onClick:m=>e.handleRemove(g,0)},"删除",8,Zp)])],2))),128))])):z("",!0),G(d,{onRegister:e.registerPreviewModal},null,8,["onRegister"])])}const eh=tt(Lp,[["render",Qp],["__scopeId","data-v-3ecf1a33"]]),th={class:"reference-form-modal__cnt"},rh={class:"flex justify-center mb-4 ml-4 search-input"},nh={key:0,class:"search-list"},ah=["onClick"],oh={key:1,class:"search-list"},ih=Y({__name:"FormModal",emits:["close","select","change","register"],setup(e,{emit:t}){const r=t,n=T({id:null,realName:"",previewUrl:""}),a=T("插入引用"),o=T([]),s=T(""),i=T({}),l=T([]),c=T(""),[u,{closeModal:f}]=Oo(h=>ee(this,null,function*(){i.value={},n.value=h,o.value=[],yield p()}));function p(){return ee(this,null,function*(){const h=yield _l({});l.value=h.map(v=>({value:v.id,label:v.name})),c.value=h[0].id})}function d(){return ee(this,null,function*(){const h=yield xl({blurry:s.value,categoryId:c.value});o.value=h.map(v=>{let C="";return v.ownerRegionPath=="pingtai"?C=`${v.platformName}/${v.resourceName}`:C=`${v.ownerRegion}/${v.repositoryName}/${v.menuName}/${v.resourceName}`,v.id=v.resourceId,v.text=C,v.path=kl(v),v})||[]})}function g(h){i.value=h,h&&r("select",h)}function m(h){return ee(this,null,function*(){c.value=h,yield d()})}function y(){i.value&&r("change",i.value),f()}return(h,v)=>(w(),V(P($o),Be({width:n.value.width||600,minHeight:n.value.height||400,title:a.value,class:"reference-form-modal"},h.$attrs,{onRegister:P(u),"cancel-text":"取消",onOk:y}),{default:re(()=>[x("div",th,[x("div",rh,[G(P(Yi),{compact:""},{default:re(()=>[G(P(An),{size:"large",value:c.value,"onUpdate:value":v[0]||(v[0]=C=>c.value=C),style:{width:"200px"},options:l.value,onChange:m},null,8,["value","options"]),G(P(Ji),{value:s.value,"onUpdate:value":v[1]||(v[1]=C=>s.value=C),placeholder:"请输入关键字",style:{width:"280px"},onSearch:d,size:"large"},null,8,["value"])]),_:1})]),o.value.length?(w(),F("div",nh,[(w(!0),F(Ce,null,Se(o.value,(C,S)=>(w(),F("div",{class:fe(["search-item",i.value.id==C.id?"search-item--active":""]),key:S,onClick:_=>g(C)},[i.value.id==C.id?(w(),V(Li,{key:0,icon:"icon-yixuan|iconfont",size:"16",color:"#0960bd"})):z("",!0),Ie(" "+se(C.text),1)],10,ah))),128))])):(w(),F("div",oh,[G(P(Zi),{description:"暂无数据"})]))])]),_:1},16,["width","minHeight","title","onRegister"]))}}),lh=tt(ih,[["__scopeId","data-v-68d9a5c5"]]),sh=Y({__name:"PreviewModal",setup(e){const t=T({id:null,realName:"",previewUrl:""}),r=T(""),[n,{closeModal:a}]=Oo(o=>ee(this,null,function*(){t.value=o,r.value=`预览-${o.realName}`}));return(o,s)=>(w(),V(P($o),Be({width:t.value.width||800,minHeight:t.value.height||600,title:r.value,class:"upload-preview-modal"},o.$attrs,{onRegister:P(n),"cancel-text":"关闭","show-ok-btn":!1}),{default:re(()=>s[0]||(s[0]=[x("div",{class:"upload-preview-modal__cnt"},null,-1)])),_:1},16,["width","minHeight","title","onRegister"]))}}),uh={class:"flex upload-toolbar"},ch={key:0,class:"reference-list"},fh={class:"flex"},dh=["onClick"],ph=Y({__name:"Reference",props:{showAlert:{type:Boolean,default:!1},showList:{type:Boolean,default:!0},value:{type:Array,default:()=>[]},titleText:{type:String,default:"插入引用"},getHelpText:{type:String,default:"帮助文本"}},emits:["change","delete","success"],setup(e,{emit:t}){const r=t,n=e,[a,{openModal:o}]=fn(),[s,{openModal:i}]=fn(),l=T([]);oe(()=>n.value,(p=[])=>{l.value=xn(p)?p:[]},{immediate:!0});function c(){o(!0,{})}function u(p,d){return ee(this,null,function*(){{const g=l.value.findIndex(m=>m.id===p.id);g!==-1&&l.value.splice(g,1),r("delete",p)}})}function f(p){JSON.stringify(p)!=="{}"&&l.value.push(p),r("change",l.value)}return(p,d)=>(w(),F("div",null,[x("div",uh,[G(P(Di),{preIcon:"icon-cite|iconfont",onClick:c},{default:re(()=>d[0]||(d[0]=[Ie("插入引用")])),_:1}),e.showAlert?(w(),V(P(xo),{key:0,message:e.getHelpText,type:"info",banner:"",class:"upload-toolbar__text"},null,8,["message"])):z("",!0)]),e.showList?(w(),F("div",ch,[(w(!0),F(Ce,null,Se(l.value,g=>(w(),F("div",{class:"reference-list_item",key:g.id},[x("div",null,se(g.text),1),x("div",fh,[x("span",{class:"reference-list_item--color pointer",onClick:m=>u(g)},"删除",8,dh)])]))),128))])):z("",!0),G(lh,{onRegister:P(a),onChange:f},null,8,["onRegister"]),G(sh,{onRegister:P(s)},null,8,["onRegister"])]))}}),hh=tt(ph,[["__scopeId","data-v-a154c99c"]]),D=new Map;D.set("Input",rr);D.set("InputGroup",rr.Group);D.set("InputPassword",rr.Password);D.set("InputSearch",rr.Search);D.set("InputTextArea",rr.TextArea);D.set("InputNumber",Qi);D.set("AutoComplete",el);D.set("ImageUpload",pl);D.set("Select",An);D.set("ApiSelect",El);D.set("ApiTree",Ol);D.set("TreeSelect",So);D.set("ApiTreeSelect",$l);D.set("ApiRadioGroup",Al);D.set("Switch",tl);D.set("RadioButtonGroup",Rl);D.set("RadioGroup",St.Group);D.set("Checkbox",ko);D.set("CheckboxGroup",ko.Group);D.set("ApiCascader",Tl);D.set("Cascader",wo);D.set("Slider",rl);D.set("Rate",nl);D.set("Transfer",_o);D.set("ApiTransfer",Pl);D.set("DatePicker",Tr);D.set("MonthPicker",Tr.MonthPicker);D.set("RangePicker",Tr.RangePicker);D.set("WeekPicker",Tr.WeekPicker);D.set("TimePicker",Ao);D.set("TimeRangePicker",Ao.TimeRangePicker);D.set("StrengthMeter",vl);D.set("IconPicker",gl);D.set("InputCountDown",Mi);D.set("FormColorPicker",Fp);D.set("Upload",hl);D.set("Divider",al);D.set("CropperAvatar",ml);D.set("BasicTitle",Ni);D.set("PlainText",Bl);D.set("PlainTitle",Nl);D.set("PlainSlot",zl);D.set("TextEditor",Gl);D.set("XTUpload",eh);D.set("Reference",hh);const{t:sn}=_n();function Bh(e){return e.includes("Input")||e.includes("Complete")?sn("common.inputText"):e.includes("Picker")||e.includes("Select")||e.includes("Cascader")||e.includes("Checkbox")||e.includes("Radio")||e.includes("Switch")?sn("common.chooseText"):""}const vh=["DatePicker","MonthPicker","WeekPicker","TimePicker"],Hh=["Upload","ImageUpload"];function gh(){return[...vh,"RangePicker","TimeRangePicker"]}function Lh(e,t,r){Reflect.has(e,"type")||(["DatePicker","MonthPicker","WeekPicker","TimePicker"].includes(t)?e.type=r?"string":"object":["RangePicker","CheckboxGroup"].includes(t)?e.type="array":["InputNumber"].includes(t)&&(e.type="number"))}const Dh=["Input","InputPassword","InputNumber","InputSearch","InputTextArea"],Nh=gh(),jh=["Upload","ApiTransfer","ApiTree","ApiTreeSelect","ApiRadioGroup","ApiCascader","AutoComplete","RadioButtonGroup","ImageUpload","ApiSelect"],mh=["Divider","BasicTitle"];function Uh(e){return mh.includes(e||"")}export{jh as N,El as _,Dh as a,Bh as b,D as c,Nh as d,$l as e,Ol as f,Al as g,Rl as h,Uh as i,Tl as j,Pl as k,Lh as s,Hh as u};