zkrt-component
Version:
<p align="center"> <img width="420" src="https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/logo-v3-md.png"> </p>
1 lines • 347 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ZkrtComponent={},e.Vue)}(this,(function(e,t){"use strict";var n=Object.defineProperty,o=Object.defineProperties,r=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,l=(e,t,o)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,c=(e,t)=>{for(var n in t||(t={}))a.call(t,n)&&l(e,n,t[n]);if(i)for(var n of i(t))s.call(t,n)&&l(e,n,t[n]);return e},u=(e,t)=>o(e,r(t)),d=(e,t,n)=>(l(e,"symbol"!=typeof t?t+"":t,n),n),p=(e,t,n)=>new Promise(((o,r)=>{var i=e=>{try{s(n.next(e))}catch(ir){r(ir)}},a=e=>{try{s(n.throw(e))}catch(ir){r(ir)}},s=e=>e.done?o(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==f(t)?t:String(t)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){var o,r,i;o=e,r=t,i=n[t],(r=h(r))in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},g.apply(this,arguments)}const y=Array.isArray,b=e=>"string"==typeof e,w=e=>null!==e&&"object"==typeof e,S=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},C=/-(\w)/g,x=S((e=>e.replace(C,((e,t)=>t?t.toUpperCase():"")))),O=/\B([A-Z])/g,E=S((e=>e.replace(O,"-$1").toLowerCase())),k=Object.prototype.hasOwnProperty,N=(e,t)=>k.call(e,t);function A(e){let t=arguments.length>2?arguments[2]:void 0;return"function"==typeof e?e(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}):null!=e?e:t}function P(){const e=[];for(let t=0;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];if(n)if(b(n))e.push(n);else if(y(n))for(let t=0;t<n.length;t++){const o=P(n[t]);o&&e.push(o)}else if(w(n))for(const t in n)n[t]&&e.push(t)}return e.join(" ")}var T=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),M="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,j="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),_="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(j):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var D=["top","right","bottom","left","width","height","size","weight"],I="undefined"!=typeof MutationObserver,$=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function i(){n&&(n=!1,e()),o&&s()}function a(){_(i)}function s(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(a,t);r=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){M&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),I?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){M&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;D.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),R=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},L=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||j},z=U(0,0,0,0);function B(e){return parseFloat(e)||0}function V(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+B(e["border-"+n+"-width"])}),0)}function H(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return z;var o=L(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=B(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,s=B(o.width),l=B(o.height);if("border-box"===o.boxSizing&&(Math.round(s+i)!==t&&(s-=V(o,"left","right")+i),Math.round(l+a)!==n&&(l-=V(o,"top","bottom")+a)),!function(e){return e===L(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return U(r.left,r.top,s,l)}var F="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof L(e).SVGGraphicsElement}:function(e){return e instanceof L(e).SVGElement&&"function"==typeof e.getBBox};function W(e){return M?F(e)?function(e){var t=e.getBBox();return U(0,0,t.width,t.height)}(e):H(e):z}function U(e,t,n,o){return{x:e,y:t,width:n,height:o}}var X=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=U(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=W(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),G=function(){return function(e,t){var n,o,r,i,a,s,l,c=(o=(n=t).x,r=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),R(l,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),l);R(this,{target:e,contentRect:c})}}(),K=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new T,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof L(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new X(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof L(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new G(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),q="undefined"!=typeof WeakMap?new WeakMap:new T,Y=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=$.getInstance(),o=new K(t,n,this);q.set(this,o)}}();["observe","unobserve","disconnect"].forEach((function(e){Y.prototype[e]=function(){var t;return(t=q.get(this))[e].apply(t,arguments)}}));const Q=void 0!==j.ResizeObserver?j.ResizeObserver:Y,J=(e,t)=>{const n=g({},e);return Object.keys(t).forEach((e=>{const o=n[e];if(!o)throw new Error(`not have ${e} prop`);o.type||o.default?o.default=t[e]:o.def?o.def(t[e]):n[e]={type:o,default:t[e]}})),n},Z=Symbol("skipFlatten"),ee=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=Array.isArray(e)?e:[e],r=[];return o.forEach((e=>{var o;Array.isArray(e)?r.push(...ee(e,n)):e&&e.type===t.Fragment?e.key===Z?r.push(e):r.push(...ee(e.children,n)):e&&t.isVNode(e)?n&&!ne(e)?r.push(e):n||r.push(e):null!=(o=e)&&""!==o&&r.push(e)})),r},te=e=>{const n={};if(e.$&&e.$.vnode){const t=e.$.vnode.props||{};Object.keys(e.$props).forEach((o=>{const r=e.$props[o],i=E(o);(void 0!==r||i in t)&&(n[o]=r)}))}else if(t.isVNode(e)&&"object"==typeof e.type){const t=e.props||{},o={};Object.keys(t).forEach((e=>{o[x(e)]=t[e]}));const r=e.type.props||{};Object.keys(r).forEach((e=>{const t=function(e,t,n,o){const r=e[n];if(null!=r){const e=N(r,"default");if(e&&void 0===o){const e=r.default;o=r.type!==Function&&"function"==typeof e?e():e}r.type===Boolean&&(N(t,n)||e?""===o&&(o=!0):o=!1)}return o}(r,o,e,o[e]);(void 0!==t||e in o)&&(n[e]=t)}))}return n};function ne(e){return e&&(e.type===t.Comment||e.type===t.Fragment&&0===e.children.length||e.type===t.Text&&""===e.children.trim())}function oe(){const e=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((n=>{Array.isArray(n)?e.push(...n):(null==n?void 0:n.type)===t.Fragment?e.push(...oe(n.children)):e.push(n)})),e.filter((e=>!ne(e)))}let re=e=>setTimeout(e,16),ie=e=>clearTimeout(e);"undefined"!=typeof window&&"requestAnimationFrame"in window&&(re=e=>window.requestAnimationFrame(e),ie=e=>window.cancelAnimationFrame(e));let ae=0;const se=new Map;function le(e){se.delete(e)}function ce(e){ae+=1;const t=ae;return function n(o){if(0===o)le(t),e();else{const e=re((()=>{n(o-1)}));se.set(t,e)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t}ce.cancel=e=>{const t=se.get(e);return le(t),ie(t)};const ue=e=>{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function de(e){return{type:Object,default:e}}function pe(e){return{type:Boolean,default:e}}function fe(e){return{type:Function,default:e}}function he(e,t){const n={validator:()=>!0,default:e};return n}function ve(e){return{type:Array,default:e}}function me(e){return{type:String,default:e}}let ge=!1;try{const e=Object.defineProperty({},"passive",{get(){ge=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(Im){}const ye=ge;function be(e,t,n,o){if(e&&e.addEventListener){let r=o;void 0!==r||!ye||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r={passive:!1}),e.addEventListener(t,n,r)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}const we="anticon",Se=Symbol("GlobalFormContextKey"),Ce=Symbol("configProvider"),xe={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:t.computed((()=>we)),getPopupContainer:t.computed((()=>()=>document.body)),direction:t.computed((()=>"ltr"))},Oe=()=>t.inject(Ce,xe),Ee=Symbol("DisabledContextKey"),ke=()=>t.inject(Ee,t.ref(void 0)),Ne={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ae={lang:g({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:g({},Ne)},Pe="${label} is not a valid ${type}",Te={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},DatePicker:Ae,TimePicker:Ne,Calendar:Ae,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Pe,method:Pe,array:Pe,object:Pe,number:Pe,date:Pe,boolean:Pe,integer:Pe,float:Pe,regexp:Pe,email:Pe,url:Pe,hex:Pe},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"}},Me=t.defineComponent({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,n){let{slots:o}=n;const r=t.inject("localeData",{}),i=t.computed((()=>{const{componentName:t="global",defaultLocale:n}=e,o=n||Te[t||"global"],{antLocale:i}=r,a=t&&i?i[t]:{};return g(g({},"function"==typeof o?o():o),a||{})})),a=t.computed((()=>{const{antLocale:e}=r,t=e&&e.locale;return e&&e.exist&&!t?Te.locale:t}));return()=>{const t=e.children||o.default,{antLocale:n}=r;return null==t?void 0:t(i.value,a.value,n)}}});function je(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}const _e=class{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join("%"):e)||null}update(e,t){const n=Array.isArray(e)?e.join("%"):e,o=t(this.cache.get(n));null===o?this.cache.delete(n):this.cache.set(n,o)}},De="data-token-hash",Ie="data-css-hash",$e="data-cache-path",Re="__cssinjs_instance__";function Le(){const e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Ie}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach((t=>{t[Re]=t[Re]||e,t[Re]===e&&document.head.insertBefore(t,n)}));const o={};Array.from(document.querySelectorAll(`style[${Ie}]`)).forEach((t=>{var n;const r=t.getAttribute(Ie);o[r]?t[Re]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0}))}return new _e(e)}const ze=Symbol("StyleContextKey"),Be={cache:Le(),defaultCache:!0,hashPriority:"low"},Ve=()=>{const e=(()=>{var e,n,o;const r=t.getCurrentInstance();let i;if(r&&r.appContext){const t=null===(o=null===(n=null===(e=r.appContext)||void 0===e?void 0:e.config)||void 0===n?void 0:n.globalProperties)||void 0===o?void 0:o.__ANTDV_CSSINJS_CACHE__;t?i=t:(i=Le(),r.appContext.config.globalProperties&&(r.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=i))}else i=Le();return i})();return t.inject(ze,t.shallowRef(g(g({},Be),{cache:e})))};var He,Fe;ue(t.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:{autoClear:pe(),mock:me(),cache:de(),defaultCache:pe(),hashPriority:me(),container:He?{type:He,default:Fe}:he(Fe),ssrInline:pe(),transformers:ve(),linters:ve()},setup(e,n){let{slots:o}=n;return(e=>{const n=Ve(),o=t.shallowRef(g(g({},Be),{cache:Le()}));t.watch([()=>t.unref(e),n],(()=>{const r=g({},n.value),i=t.unref(e);Object.keys(i).forEach((e=>{const t=i[e];void 0!==i[e]&&(r[e]=t)}));const{cache:a}=i;r.cache=r.cache||Le(),r.defaultCache=!a&&n.value.defaultCache,o.value=r}),{immediate:!0}),t.provide(ze,o)})(e),()=>{var e;return null===(e=o.default)||void 0===e?void 0:e.call(o)}}}));let We=!1;const Ue="production"===process.env.NODE_ENV?function(){return!1}:function(){return We};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){const e=window;if("function"==typeof e.webpackHotUpdate){const t=e.webpackHotUpdate;e.webpackHotUpdate=function(){return We=!0,setTimeout((()=>{We=!1}),0),t(...arguments)}}}function Xe(e,n,o,r){const i=Ve(),a=t.shallowRef(""),s=t.shallowRef();t.watchEffect((()=>{a.value=[e,...n.value].join("%")}));const l=Ue(),c=e=>{i.value.cache.update(e,(e=>{const[t=0,n]=e||[];return 0===t-1?(null==r||r(n,!1),null):[t-1,n]}))};return t.watch(a,((e,t)=>{t&&c(t),i.value.cache.update(e,(e=>{const[t=0,n]=e||[];let i=n;"production"!==process.env.NODE_ENV&&n&&l&&(null==r||r(i,l),i=null);return[t+1,i||o()]})),s.value=i.value.cache.get(a.value)[1]}),{immediate:!0}),t.onBeforeUnmount((()=>{c(a.value)})),s}function Ge(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Ke(e,t){return!!e&&(!!e.contains&&e.contains(t))}const qe="data-vc-order",Ye="vc-util-key",Qe=new Map;function Je(){let{mark:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:Ye}function Ze(e){if(e.attachTo)return e.attachTo;return document.querySelector("head")||document.body}function et(e){return Array.from((Qe.get(e)||e).children).filter((e=>"STYLE"===e.tagName))}function tt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ge())return null;const{csp:n,prepend:o}=t,r=document.createElement("style");r.setAttribute(qe,function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o)),(null==n?void 0:n.nonce)&&(r.nonce=null==n?void 0:n.nonce),r.innerHTML=e;const i=Ze(t),{firstChild:a}=i;if(o){if("queue"===o){const e=et(i).filter((e=>["prepend","prependQueue"].includes(e.getAttribute(qe))));if(e.length)return i.insertBefore(r,e[e.length-1].nextSibling),r}i.insertBefore(r,a)}else i.appendChild(r);return r}function nt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return et(Ze(t)).find((n=>n.getAttribute(Je(t))===e))}function ot(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=nt(e,t);if(n){Ze(t).removeChild(n)}}function rt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var o,r,i;!function(e,t){const n=Qe.get(e);if(!n||!Ke(document,n)){const n=tt("",t),{parentNode:o}=n;Qe.set(e,o),e.removeChild(n)}}(Ze(n),n);const a=nt(t,n);if(a)return(null===(o=n.csp)||void 0===o?void 0:o.nonce)&&a.nonce!==(null===(r=n.csp)||void 0===r?void 0:r.nonce)&&(a.nonce=null===(i=n.csp)||void 0===i?void 0:i.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const s=tt(e,n);return s.setAttribute(Je(n),t),s}class it{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={map:this.cache};return e.forEach((e=>{var t;n=n?null===(t=null==n?void 0:n.map)||void 0===t?void 0:t.get(e):void 0})),(null==n?void 0:n.value)&&t&&(n.value[1]=this.cacheCallTimes++),null==n?void 0:n.value}get(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}has(e){return!!this.internalGet(e)}set(e,t){if(!this.has(e)){if(this.size()+1>it.MAX_CACHE_SIZE+it.MAX_CACHE_OFFSET){const[e]=this.keys.reduce(((e,t)=>{const[,n]=e;return this.internalGet(t)[1]<n?[t,this.internalGet(t)[1]]:e}),[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(e)}let n=this.cache;e.forEach(((o,r)=>{if(r===e.length-1)n.set(o,{value:[t,this.cacheCallTimes++]});else{const e=n.get(o);e?e.map||(e.map=new Map):n.set(o,{map:new Map}),n=n.get(o).map}}))}deleteByPath(e,t){var n;const o=e.get(t[0]);if(1===t.length)return o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null===(n=o.value)||void 0===n?void 0:n[0];const r=this.deleteByPath(o.map,t.slice(1));return o.map&&0!==o.map.size||o.value||e.delete(t[0]),r}delete(e){if(this.has(e))return this.keys=this.keys.filter((t=>!function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e))),this.deleteByPath(this.cache,e)}}it.MAX_CACHE_SIZE=20,it.MAX_CACHE_OFFSET=5;let at={};function st(e,t){"production"!==process.env.NODE_ENV&&!e&&console}function lt(e,t){!function(e,t,n){t||at[n]||(e(!1,n),at[n]=!0)}(st,e,t)}let ct=function(){};"production"!==process.env.NODE_ENV&&(ct=(e,t,n)=>{lt(e,`[ant-design-vue: ${t}] ${n}`),"test"===process.env.NODE_ENV&&(at={})});let ut=0;class dt{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=ut,0===e.length&&ct(e.length>0,"[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."),ut+=1}getDerivativeToken(e){return this.derivatives.reduce(((t,n)=>n(e,t)),void 0)}}const pt=new it;function ft(e){const t=Array.isArray(e)?e:[e];return pt.has(t)||pt.set(t,new dt(t)),pt.get(t)}const ht=new WeakMap;function vt(e){let t=ht.get(e)||"";return t||(Object.keys(e).forEach((n=>{const o=e[n];t+=n,t+=o instanceof dt?o.id:o&&"object"==typeof o?vt(o):o})),ht.set(e,t)),t}const mt=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),gt="_bAmBoO_";let yt;function bt(){return void 0===yt&&(yt=function(e,t,n){var o,r;if(Ge()){rt(e,mt);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null==t||t(i),document.body.appendChild(i),"production"!==process.env.NODE_ENV&&(i.innerHTML="Test",i.style.zIndex="9999999");const a=n?n(i):null===(o=getComputedStyle(i).content)||void 0===o?void 0:o.includes(gt);return null===(r=i.parentNode)||void 0===r||r.removeChild(i),ot(mt),a}return!1}(`@layer ${mt} { .${mt} { content: "${gt}"!important; } }`,(e=>{e.className=mt}))),yt}const wt={},St="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",Ct=new Map;const xt=0;function Ot(e,t){Ct.set(e,(Ct.get(e)||0)-1);const n=Array.from(Ct.keys()),o=n.filter((e=>(Ct.get(e)||0)<=0));n.length-o.length>xt&&o.forEach((e=>{!function(e,t){"undefined"!=typeof document&&document.querySelectorAll(`style[${De}="${e}"]`).forEach((e=>{var n;e[Re]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),Ct.delete(e)}))}const Et=(e,t,n,o)=>{let r=g(g({},n.getDerivativeToken(e)),t);return o&&(r=o(r)),r};function kt(e,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.ref({});const r=Ve(),i=t.computed((()=>g({},...n.value))),a=t.computed((()=>vt(i.value))),s=t.computed((()=>vt(o.value.override||wt)));return Xe("token",t.computed((()=>[o.value.salt||"",e.value.id,a.value,s.value])),(()=>{const{salt:t="",override:n=wt,formatToken:r,getComputedToken:a}=o.value,s=a?a(i.value,n,e.value):Et(i.value,n,e.value,r),l=function(e,t){return je(`${t}_${vt(e)}`)}(s,t);s._tokenKey=l,function(e){Ct.set(e,(Ct.get(e)||0)+1)}(l);const c=`${St}-${je(l)}`;return s._hashId=c,[s,c]}),(e=>{var t;Ot(e[0]._tokenKey,null===(t=r.value)||void 0===t?void 0:t.cache.instanceId)}))}var Nt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},At="comm",Pt="rule",Tt="decl",Mt="@import",jt="@keyframes",_t="@layer",Dt=Math.abs,It=String.fromCharCode;function $t(e){return e.trim()}function Rt(e,t,n){return e.replace(t,n)}function Lt(e,t,n){return e.indexOf(t,n)}function zt(e,t){return 0|e.charCodeAt(t)}function Bt(e,t,n){return e.slice(t,n)}function Vt(e){return e.length}function Ht(e,t){return t.push(e),e}var Ft=1,Wt=1,Ut=0,Xt=0,Gt=0,Kt="";function qt(e,t,n,o,r,i,a,s){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Ft,column:Wt,length:a,return:"",siblings:s}}function Yt(){return Gt=Xt<Ut?zt(Kt,Xt++):0,Wt++,10===Gt&&(Wt=1,Ft++),Gt}function Qt(){return zt(Kt,Xt)}function Jt(){return Xt}function Zt(e,t){return Bt(Kt,e,t)}function en(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tn(e){return $t(Zt(Xt-1,rn(91===e?e+2:40===e?e+1:e)))}function nn(e){for(;(Gt=Qt())&&Gt<33;)Yt();return en(e)>2||en(Gt)>3?"":" "}function on(e,t){for(;--t&&Yt()&&!(Gt<48||Gt>102||Gt>57&&Gt<65||Gt>70&&Gt<97););return Zt(e,Jt()+(t<6&&32==Qt()&&32==Yt()))}function rn(e){for(;Yt();)switch(Gt){case e:return Xt;case 34:case 39:34!==e&&39!==e&&rn(Gt);break;case 40:41===e&&rn(e);break;case 92:Yt()}return Xt}function an(e,t){for(;Yt()&&e+Gt!==57&&(e+Gt!==84||47!==Qt()););return"/*"+Zt(t,Xt-1)+"*"+It(47===e?e:Yt())}function sn(e){for(;!en(Qt());)Yt();return Zt(e,Xt)}function ln(e){return function(e){return Kt="",e}(cn("",null,null,null,[""],e=function(e){return Ft=Wt=1,Ut=Vt(Kt=e),Xt=0,[]}(e),0,[0],e))}function cn(e,t,n,o,r,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,v=1,m=1,g=1,y=0,b="",w=r,S=i,C=o,x=b;m;)switch(h=y,y=Yt()){case 40:if(108!=h&&58==zt(x,d-1)){-1!=Lt(x+=Rt(tn(y),"&","&\f"),"&\f",Dt(c?s[c-1]:0))&&(g=-1);break}case 34:case 39:case 91:x+=tn(y);break;case 9:case 10:case 13:case 32:x+=nn(h);break;case 92:x+=on(Jt()-1,7);continue;case 47:switch(Qt()){case 42:case 47:Ht(dn(an(Yt(),Jt()),t,n,l),l);break;default:x+="/"}break;case 123*v:s[c++]=Vt(x)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:-1==g&&(x=Rt(x,/\f/g,"")),f>0&&Vt(x)-d&&Ht(f>32?pn(x+";",o,n,d-1,l):pn(Rt(x," ","")+";",o,n,d-2,l),l);break;case 59:x+=";";default:if(Ht(C=un(x,t,n,c,u,r,s,b,w=[],S=[],d,i),i),123===y)if(0===u)cn(x,t,C,C,w,i,d,s,S);else switch(99===p&&110===zt(x,3)?100:p){case 100:case 108:case 109:case 115:cn(e,C,C,o&&Ht(un(e,C,C,0,0,r,s,b,r,w=[],d,S),S),r,S,d,s,o?w:S);break;default:cn(x,C,C,C,[""],S,0,s,S)}}c=u=f=0,v=g=1,b=x="",d=a;break;case 58:d=1+Vt(x),f=h;default:if(v<1)if(123==y)--v;else if(125==y&&0==v++&&125==(Gt=Xt>0?zt(Kt,--Xt):0,Wt--,10===Gt&&(Wt=1,Ft--),Gt))continue;switch(x+=It(y),y*v){case 38:g=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(Vt(x)-1)*g,g=1;break;case 64:45===Qt()&&(x+=tn(Yt())),p=Qt(),u=d=Vt(b=x+=sn(Jt())),y++;break;case 45:45===h&&2==Vt(x)&&(v=0)}}return i}function un(e,t,n,o,r,i,a,s,l,c,u,d){for(var p=r-1,f=0===r?i:[""],h=function(e){return e.length}(f),v=0,m=0,g=0;v<o;++v)for(var y=0,b=Bt(e,p+1,p=Dt(m=a[v])),w=e;y<h;++y)(w=$t(m>0?f[y]+" "+b:Rt(b,/&\f/g,f[y])))&&(l[g++]=w);return qt(e,t,n,0===r?Pt:s,l,c,u,d)}function dn(e,t,n,o){return qt(e,t,n,At,It(Gt),Bt(e,2,-2),0,o)}function pn(e,t,n,o,r){return qt(e,t,n,Tt,Bt(e,0,o),Bt(e,o+1,-1),o,r)}function fn(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function hn(e,t,n,o){switch(e.type){case _t:if(e.children.length)break;case Mt:case Tt:return e.return=e.return||e.value;case At:return"";case jt:return e.return=e.value+"{"+fn(e.children,o)+"}";case Pt:if(!Vt(e.value=e.props.join(",")))return""}return Vt(n=fn(e.children,o))?e.return=e.value+"{"+n+"}":""}function vn(e,t){const{path:n,parentSelectors:o}=t;lt(!1,`[Ant Design Vue CSS-in-JS] ${n?`Error in '${n}': `:""}${e}${o.length?` Selector info: ${o.join(" -> ")}`:""}`)}const mn=(e,t,n)=>{if("content"===e){const e=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;("string"!=typeof t||-1===["normal","none","initial","inherit","unset"].indexOf(t)&&!e.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&vn(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${t}"'\`.`,n)}},gn=(e,t,n)=>{"animation"===e&&n.hashId&&"none"!==t&&vn(`You seem to be using hashed animation '${t}', in which case 'animationName' with Keyframe as value is recommended.`,n)},yn="data-ant-cssinjs-cache-path",bn="_FILE_STYLE__";let wn,Sn=!0;function Cn(e){return function(){var e;if(!wn&&(wn={},Ge())){const t=document.createElement("div");t.className=yn,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach((e=>{const[t,n]=e.split(":");wn[t]=n}));const o=document.querySelector(`style[${yn}]`);o&&(Sn=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}(),!!wn[e]}const xn=Ge(),On="_skip_check_",En="_multi_value_";function kn(e){return fn(ln(e),hn).replace(/\{%%%\:[^;];}/g,";")}const Nn=new Set;process.env.NODE_ENV;const An=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{root:n,injectHash:o,parentSelectors:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:i,layer:a,path:s,hashPriority:l,transformers:c=[],linters:u=[]}=t;let d="",p={};function f(e){const n=e.getName(i);if(!p[n]){const[o]=An(e.style,t,{root:!1,parentSelectors:r});p[n]=`@keyframes ${e.getName(i)}${o}`}}const h=function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((t=>{Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(e)?e:[e]);if(h.forEach((e=>{const a="string"!=typeof e||n?e:{};if("string"==typeof a)d+=`${a}\n`;else if(a._keyframe)f(a);else{const e=c.reduce(((e,t)=>{var n;return(null===(n=null==t?void 0:t.visit)||void 0===n?void 0:n.call(t,e))||e}),a);Object.keys(e).forEach((a=>{var c;const h=e[a];if("object"!=typeof h||!h||"animationName"===a&&h._keyframe||function(e){return"object"==typeof e&&e&&(On in e||En in e)}(h)){let e=function(e,t){"production"===process.env.NODE_ENV||"object"==typeof h&&(null==h?void 0:h[On])||[mn,gn,...u].forEach((n=>n(e,t,{path:s,hashId:i,parentSelectors:r})));const n=e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`));let o=t;Nt[e]||"number"!=typeof o||0===o||(o=`${o}px`),"animationName"===e&&(null==t?void 0:t._keyframe)&&(f(t),o=t.getName(i)),d+=`${n}:${o};`};const t=null!==(c=null==h?void 0:h.value)&&void 0!==c?c:h;"object"==typeof h&&(null==h?void 0:h[En])&&Array.isArray(t)?t.forEach((t=>{e(a,t)})):e(a,t)}else{let e=!1,s=a.trim(),c=!1;(n||o)&&i?s.startsWith("@")?e=!0:s=function(e,t,n){if(!t)return e;const o=`.${t}`,r="low"===n?`:where(${o})`:o;return e.split(",").map((e=>{var t;const n=e.trim().split(/\s+/);let o=n[0]||"";const i=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return o=`${i}${r}${o.slice(i.length)}`,[o,...n.slice(1)].join(" ")})).join(",")}(a,i,l):!n||i||"&"!==s&&""!==s||(s="",c=!0);const[u,f]=An(h,t,{root:c,injectHash:e,parentSelectors:[...r,s]});p=g(g({},p),f),d+=`${s}${u}`}}))}})),n){if(a&&bt()){const e=a.split(","),t=e[e.length-1].trim();d=`@layer ${t} {${d}}`,e.length>1&&(d=`@layer ${a}{%%%:%}${d}`)}}else d=`{${d}}`;return[d,p]};function Pn(e,n){const o=Ve(),r=t.computed((()=>e.value.token._tokenKey)),i=t.computed((()=>[r.value,...e.value.path]));let a=xn;return"production"!==process.env.NODE_ENV&&void 0!==o.value.mock&&(a="client"===o.value.mock),Xe("style",i,(()=>{const{path:t,hashId:s,layer:l,nonce:c,clientOnly:u,order:d=0}=e.value,p=i.value.join("|");if(Cn(p)){const[e,t]=function(e){const t=wn[e];let n=null;if(t&&Ge())if(Sn)n=bn;else{const t=document.querySelector(`style[${Ie}="${wn[e]}"]`);t?n=t.innerHTML:delete wn[e]}return[n,t]}(p);if(e)return[e,r.value,t,{},u,d]}const f=n(),{hashPriority:h,container:v,transformers:m,linters:g,cache:y}=o.value,[b,w]=An(f,{hashId:s,hashPriority:h,layer:l,path:t.join("-"),transformers:m,linters:g}),S=kn(b),C=function(e,t){return je(`${e.join("%")}${t}`)}(i.value,S);if(a){const e={mark:Ie,prepend:"queue",attachTo:v,priority:d},t="function"==typeof c?c():c;t&&(e.csp={nonce:t});const n=rt(S,C,e);n[Re]=y.instanceId,n.setAttribute(De,r.value),"production"!==process.env.NODE_ENV&&n.setAttribute($e,i.value.join("|")),Object.keys(w).forEach((e=>{Nn.has(e)||(Nn.add(e),rt(kn(w[e]),`_effect-${e}`,{mark:Ie,prepend:"queue",attachTo:v}))}))}return[S,r.value,C,w,u,d]}),((e,t)=>{let[,,n]=e;(t||o.value.autoClear)&&xn&&ot(n,{mark:Ie})})),e=>e}class Tn{constructor(e,t){this._keyframe=!0,this.name=e,this.style=t}getName(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?`${e}-${this.name}`:this.name}}const Mn="4.1.0";function jn(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function _n(e){return Math.min(1,Math.max(0,e))}function Dn(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function In(e){return e<=1?"".concat(100*Number(e),"%"):e}function $n(e){return 1===e.length?"0"+e:String(e)}function Rn(e,t,n){e=jn(e,255),t=jn(t,255),n=jn(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=0,s=(o+r)/2;if(o===r)a=0,i=0;else{var l=o-r;switch(a=s>.5?l/(2-o-r):l/(o+r),o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:a,l:s}}function Ln(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function zn(e,t,n){e=jn(e,255),t=jn(t,255),n=jn(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=o,s=o-r,l=0===o?0:s/o;if(o===r)i=0;else{switch(o){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4}i/=6}return{h:i,s:l,v:a}}function Bn(e,t,n,o){var r=[$n(Math.round(e).toString(16)),$n(Math.round(t).toString(16)),$n(Math.round(n).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function Vn(e){return Hn(e)/255}function Hn(e){return parseInt(e,16)}var Fn={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Wn(e){var t,n,o,r={r:0,g:0,b:0},i=1,a=null,s=null,l=null,c=!1,u=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(Fn[e])e=Fn[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Kn.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=Kn.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=Kn.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=Kn.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=Kn.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=Kn.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=Kn.hex8.exec(e),n)return{r:Hn(n[1]),g:Hn(n[2]),b:Hn(n[3]),a:Vn(n[4]),format:t?"name":"hex8"};if(n=Kn.hex6.exec(e),n)return{r:Hn(n[1]),g:Hn(n[2]),b:Hn(n[3]),format:t?"name":"hex"};if(n=Kn.hex4.exec(e),n)return{r:Hn(n[1]+n[1]),g:Hn(n[2]+n[2]),b:Hn(n[3]+n[3]),a:Vn(n[4]+n[4]),format:t?"name":"hex8"};if(n=Kn.hex3.exec(e),n)return{r:Hn(n[1]+n[1]),g:Hn(n[2]+n[2]),b:Hn(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(qn(e.r)&&qn(e.g)&&qn(e.b)?(t=e.r,n=e.g,o=e.b,r={r:255*jn(t,255),g:255*jn(n,255),b:255*jn(o,255)},c=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):qn(e.h)&&qn(e.s)&&qn(e.v)?(a=In(e.s),s=In(e.v),r=function(e,t,n){e=6*jn(e,360),t=jn(t,100),n=jn(n,100);var o=Math.floor(e),r=e-o,i=n*(1-t),a=n*(1-r*t),s=n*(1-(1-r)*t),l=o%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}(e.h,a,s),c=!0,u="hsv"):qn(e.h)&&qn(e.s)&&qn(e.l)&&(a=In(e.s),l=In(e.l),r=function(e,t,n){var o,r,i;if(e=jn(e,360),t=jn(t,100),n=jn(n,100),0===t)r=n,i=n,o=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;o=Ln(s,a,e+1/3),r=Ln(s,a,e),i=Ln(s,a,e-1/3)}return{r:255*o,g:255*r,b:255*i}}(e.h,a,l),c=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(i=e.a)),i=Dn(i),{ok:c,format:e.format||u,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:i}}var Un="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),Xn="[\\s|\\(]+(".concat(Un,")[,|\\s]+(").concat(Un,")[,|\\s]+(").concat(Un,")\\s*\\)?"),Gn="[\\s|\\(]+(".concat(Un,")[,|\\s]+(").concat(Un,")[,|\\s]+(").concat(Un,")[,|\\s]+(").concat(Un,")\\s*\\)?"),Kn={CSS_UNIT:new RegExp(Un),rgb:new RegExp("rgb"+Xn),rgba:new RegExp("rgba"+Gn),hsl:new RegExp("hsl"+Xn),hsla:new RegExp("hsla"+Gn),hsv:new RegExp("hsv"+Xn),hsva:new RegExp("hsva"+Gn),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 qn(e){return Boolean(Kn.CSS_UNIT.exec(String(e)))}var Yn=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var r=Wn(t);this.originalInput=t,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=null!==(o=n.format)&&void 0!==o?o:r.format,this.gradientType=n.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.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,o=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Dn(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=zn(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=zn(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Rn(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Rn(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Bn(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,o,r){var i,a=[$n(Math.round(e).toString(16)),$n(Math.round(t).toString(16)),$n(Math.round(n).toString(16)),$n((i=o,Math.round(255*parseFloat(i)).toString(16)))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*jn(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*jn(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Bn(this.r,this.g,this.b,!1),t=0,n=Object.entries(Fn);t<n.length;t++){var o=n[t],r=o[0];if(e===o[1])return r}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,o=this.a<1&&this.a>=0;return t||!o||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=_n(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=_n(n.l),new e(n)},e.prototype.tint=functio