UNPKG

fade-color-pictogram

Version:

一个简单的渐变色象形图

1 lines 25.7 kB
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(self,(()=>(()=>{var t={212:(t,e,n)=>{var r=n(81),o=n(645)(r);o.push([t.id,".fade-color-pictogram[data-v-224189d9]{width:100%;height:100%;overflow:hidden;position:relative}.fade-color-pictogram .horizontal-bar[data-v-224189d9]{display:inline-flex;flex-direction:row}.fade-color-pictogram .vertical-bar[data-v-224189d9]{display:inline-flex;flex-direction:column-reverse}.fade-color-pictogram .pic-bar[data-v-224189d9]{width:100%;height:100%}.fade-color-pictogram .pic-bar .bar-item[data-v-224189d9]{display:inline-block}",""]),t.exports=o},645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,o,s){"string"==typeof t&&(t=[[null,t,void 0]]);var i={};if(r)for(var c=0;c<this.length;c++){var l=this[c][0];null!=l&&(i[l]=!0)}for(var a=0;a<t.length;a++){var u=[].concat(t[a]);r&&i[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),e.push(u))}},e}},81:t=>{"use strict";t.exports=function(t){return t[1]}},744:(t,e)=>{"use strict";e.Z=(t,e)=>{const n=t.__vccOpts||t;for(const[t,r]of e)n[t]=r;return n}},571:(t,e,n)=>{var r=n(212);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(346).Z)("e61482a0",r,!1,{})},346:(t,e,n)=>{"use strict";function r(t,e){for(var n=[],r={},o=0;o<e.length;o++){var s=e[o],i=s[0],c={id:t+":"+o,css:s[1],media:s[2],sourceMap:s[3]};r[i]?r[i].parts.push(c):n.push(r[i]={id:i,parts:[c]})}return n}n.d(e,{Z:()=>h});var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var s={},i=o&&(document.head||document.getElementsByTagName("head")[0]),c=null,l=0,a=!1,u=function(){},f=null,p="data-vue-ssr-id",d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(t,e,n,o){a=n,f=o||{};var i=r(t,e);return g(i),function(e){for(var n=[],o=0;o<i.length;o++){var c=i[o];(l=s[c.id]).refs--,n.push(l)}for(e?g(i=r(t,e)):i=[],o=0;o<n.length;o++){var l;if(0===(l=n[o]).refs){for(var a=0;a<l.parts.length;a++)l.parts[a]();delete s[l.id]}}}}function g(t){for(var e=0;e<t.length;e++){var n=t[e],r=s[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(y(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var i=[];for(o=0;o<n.parts.length;o++)i.push(y(n.parts[o]));s[n.id]={id:n.id,refs:1,parts:i}}}}function v(){var t=document.createElement("style");return t.type="text/css",i.appendChild(t),t}function y(t){var e,n,r=document.querySelector("style["+p+'~="'+t.id+'"]');if(r){if(a)return u;r.parentNode.removeChild(r)}if(d){var o=l++;r=c||(c=v()),e=b.bind(null,r,o,!1),n=b.bind(null,r,o,!0)}else r=v(),e=w.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var m,_=(m=[],function(t,e){return m[t]=e,m.filter(Boolean).join("\n")});function b(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=_(e,o);else{var s=document.createTextNode(o),i=t.childNodes;i[e]&&t.removeChild(i[e]),i.length?t.insertBefore(s,i[e]):t.appendChild(s)}}function w(t,e){var n=e.css,r=e.media,o=e.sourceMap;if(r&&t.setAttribute("media",r),f.ssrId&&t.setAttribute(p,e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var s=e[r]={id:r,exports:{}};return t[r](s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";function t(t,e){const n=Object.create(null),r=t.split(",");for(let t=0;t<r.length;t++)n[r[t]]=!0;return e?t=>!!n[t.toLowerCase()]:t=>!!n[t]}function e(t){if(v(t)){const n={};for(let r=0;r<t.length;r++){const o=t[r],s=_(o)?i(o):e(o);if(s)for(const t in s)n[t]=s[t]}return n}return _(t)||w(t)?t:void 0}n.r(r),n.d(r,{default:()=>Ke});const o=/;(?![^(]*\))/g,s=/:(.+)/;function i(t){const e={};return t.split(o).forEach((t=>{if(t){const n=t.split(s);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function c(t){let e="";if(_(t))e=t;else if(v(t))for(let n=0;n<t.length;n++){const r=c(t[n]);r&&(e+=r+" ")}else if(w(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const l={},a=[],u=()=>{},f=/^on[^a-z]/,p=t=>f.test(t),d=Object.assign,h=Object.prototype.hasOwnProperty,g=(t,e)=>h.call(t,e),v=Array.isArray,y=t=>"[object Map]"===S(t),m=t=>"function"==typeof t,_=t=>"string"==typeof t,b=t=>"symbol"==typeof t,w=t=>null!==t&&"object"==typeof t,x=Object.prototype.toString,S=t=>x.call(t),k=t=>_(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,C=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},M=/-(\w)/g,O=(C((t=>t.replace(M,((t,e)=>e?e.toUpperCase():"")))),/\B([A-Z])/g),j=(C((t=>t.replace(O,"-$1").toLowerCase())),C((t=>t.charAt(0).toUpperCase()+t.slice(1)))),R=(C((t=>t?`on${j(t)}`:"")),(t,e)=>!Object.is(t,e));const P=t=>{const e=new Set(t);return e.w=0,e.n=0,e},N=t=>(t.w&F)>0,B=t=>(t.n&F)>0,$=new WeakMap;let A,E=0,F=1;const I=Symbol(""),T=Symbol("");class W{constructor(t,e=null,n){this.fn=t,this.scheduler=e,this.active=!0,this.deps=[],this.parent=void 0,function(t,e){e&&e.active&&e.effects.push(t)}(this,n)}run(){if(!this.active)return this.fn();let t=A,e=z;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=A,A=this,z=!0,F=1<<++E,E<=30?(({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=F})(this):U(this),this.fn()}finally{E<=30&&(t=>{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r<e.length;r++){const o=e[r];N(o)&&!B(o)?o.delete(t):e[n++]=o,o.w&=~F,o.n&=~F}e.length=n}})(this),F=1<<--E,A=this.parent,z=e,this.parent=void 0,this.deferStop&&this.stop()}}stop(){A===this?this.deferStop=!0:this.active&&(U(this),this.onStop&&this.onStop(),this.active=!1)}}function U(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let z=!0;const V=[];function L(){V.push(z),z=!1}function Z(){const t=V.pop();z=void 0===t||t}function D(t,e,n){if(z&&A){let e=$.get(t);e||$.set(t,e=new Map);let r=e.get(n);r||e.set(n,r=P()),function(t,e){let n=!1;E<=30?B(t)||(t.n|=F,n=!N(t)):n=!t.has(A),n&&(t.add(A),A.deps.push(t))}(r)}}function G(t,e,n,r,o,s){const i=$.get(t);if(!i)return;let c=[];if("clear"===e)c=[...i.values()];else if("length"===n&&v(t))i.forEach(((t,e)=>{("length"===e||e>=r)&&c.push(t)}));else switch(void 0!==n&&c.push(i.get(n)),e){case"add":v(t)?k(n)&&c.push(i.get("length")):(c.push(i.get(I)),y(t)&&c.push(i.get(T)));break;case"delete":v(t)||(c.push(i.get(I)),y(t)&&c.push(i.get(T)));break;case"set":y(t)&&c.push(i.get(I))}if(1===c.length)c[0]&&q(c[0]);else{const t=[];for(const e of c)e&&t.push(...e);q(P(t))}}function q(t,e){const n=v(t)?t:[...t];for(const t of n)t.computed&&H(t);for(const t of n)t.computed||H(t)}function H(t,e){(t!==A||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const K=t("__proto__,__v_isRef,__isVue"),J=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(b)),Q=et(),X=et(!0),Y=tt();function tt(){const t={};return["includes","indexOf","lastIndexOf"].forEach((e=>{t[e]=function(...t){const n=Ft(this);for(let t=0,e=this.length;t<e;t++)D(n,0,t+"");const r=n[e](...t);return-1===r||!1===r?n[e](...t.map(Ft)):r}})),["push","pop","shift","unshift","splice"].forEach((e=>{t[e]=function(...t){L();const n=Ft(this)[e].apply(this,t);return Z(),n}})),t}function et(t=!1,e=!1){return function(n,r,o){if("__v_isReactive"===r)return!t;if("__v_isReadonly"===r)return t;if("__v_isShallow"===r)return e;if("__v_raw"===r&&o===(t?e?jt:Ot:e?Mt:Ct).get(n))return n;const s=v(n);if(!t&&s&&g(Y,r))return Reflect.get(Y,r,o);const i=Reflect.get(n,r,o);return(b(r)?J.has(r):K(r))?i:(t||D(n,0,r),e?i:Ut(i)?s&&k(r)?i:i.value:w(i)?t?Pt(i):Rt(i):i)}}function nt(t=!1){return function(e,n,r,o){let s=e[n];if($t(s)&&Ut(s)&&!Ut(r))return!1;if(!t&&(At(r)||$t(r)||(s=Ft(s),r=Ft(r)),!v(e)&&Ut(s)&&!Ut(r)))return s.value=r,!0;const i=v(e)&&k(n)?Number(n)<e.length:g(e,n),c=Reflect.set(e,n,r,o);return e===Ft(o)&&(i?R(r,s)&&G(e,"set",n,r):G(e,"add",n,r)),c}}const rt={get:Q,set:nt(),deleteProperty:function(t,e){const n=g(t,e),r=(t[e],Reflect.deleteProperty(t,e));return r&&n&&G(t,"delete",e,void 0),r},has:function(t,e){const n=Reflect.has(t,e);return b(e)&&J.has(e)||D(t,0,e),n},ownKeys:function(t){return D(t,0,v(t)?"length":I),Reflect.ownKeys(t)}},ot={get:X,set:(t,e)=>!0,deleteProperty:(t,e)=>!0},st=t=>t,it=t=>Reflect.getPrototypeOf(t);function ct(t,e,n=!1,r=!1){const o=Ft(t=t.__v_raw),s=Ft(e);n||(e!==s&&D(o,0,e),D(o,0,s));const{has:i}=it(o),c=r?st:n?Wt:Tt;return i.call(o,e)?c(t.get(e)):i.call(o,s)?c(t.get(s)):void(t!==o&&t.get(e))}function lt(t,e=!1){const n=this.__v_raw,r=Ft(n),o=Ft(t);return e||(t!==o&&D(r,0,t),D(r,0,o)),t===o?n.has(t):n.has(t)||n.has(o)}function at(t,e=!1){return t=t.__v_raw,!e&&D(Ft(t),0,I),Reflect.get(t,"size",t)}function ut(t){t=Ft(t);const e=Ft(this);return it(e).has.call(e,t)||(e.add(t),G(e,"add",t,t)),this}function ft(t,e){e=Ft(e);const n=Ft(this),{has:r,get:o}=it(n);let s=r.call(n,t);s||(t=Ft(t),s=r.call(n,t));const i=o.call(n,t);return n.set(t,e),s?R(e,i)&&G(n,"set",t,e):G(n,"add",t,e),this}function pt(t){const e=Ft(this),{has:n,get:r}=it(e);let o=n.call(e,t);o||(t=Ft(t),o=n.call(e,t)),r&&r.call(e,t);const s=e.delete(t);return o&&G(e,"delete",t,void 0),s}function dt(){const t=Ft(this),e=0!==t.size,n=t.clear();return e&&G(t,"clear",void 0,void 0),n}function ht(t,e){return function(n,r){const o=this,s=o.__v_raw,i=Ft(s),c=e?st:t?Wt:Tt;return!t&&D(i,0,I),s.forEach(((t,e)=>n.call(r,c(t),c(e),o)))}}function gt(t,e,n){return function(...r){const o=this.__v_raw,s=Ft(o),i=y(s),c="entries"===t||t===Symbol.iterator&&i,l="keys"===t&&i,a=o[t](...r),u=n?st:e?Wt:Tt;return!e&&D(s,0,l?T:I),{next(){const{value:t,done:e}=a.next();return e?{value:t,done:e}:{value:c?[u(t[0]),u(t[1])]:u(t),done:e}},[Symbol.iterator](){return this}}}}function vt(t){return function(...e){return"delete"!==t&&this}}function yt(){const t={get(t){return ct(this,t)},get size(){return at(this)},has:lt,add:ut,set:ft,delete:pt,clear:dt,forEach:ht(!1,!1)},e={get(t){return ct(this,t,!1,!0)},get size(){return at(this)},has:lt,add:ut,set:ft,delete:pt,clear:dt,forEach:ht(!1,!0)},n={get(t){return ct(this,t,!0)},get size(){return at(this,!0)},has(t){return lt.call(this,t,!0)},add:vt("add"),set:vt("set"),delete:vt("delete"),clear:vt("clear"),forEach:ht(!0,!1)},r={get(t){return ct(this,t,!0,!0)},get size(){return at(this,!0)},has(t){return lt.call(this,t,!0)},add:vt("add"),set:vt("set"),delete:vt("delete"),clear:vt("clear"),forEach:ht(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{t[o]=gt(o,!1,!1),n[o]=gt(o,!0,!1),e[o]=gt(o,!1,!0),r[o]=gt(o,!0,!0)})),[t,n,e,r]}const[mt,_t,bt,wt]=yt();function xt(t,e){const n=e?t?wt:bt:t?_t:mt;return(e,r,o)=>"__v_isReactive"===r?!t:"__v_isReadonly"===r?t:"__v_raw"===r?e:Reflect.get(g(n,r)&&r in e?n:e,r,o)}const St={get:xt(!1,!1)},kt={get:xt(!0,!1)},Ct=new WeakMap,Mt=new WeakMap,Ot=new WeakMap,jt=new WeakMap;function Rt(t){return $t(t)?t:Nt(t,!1,rt,St,Ct)}function Pt(t){return Nt(t,!0,ot,kt,Ot)}function Nt(t,e,n,r,o){if(!w(t))return t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const s=o.get(t);if(s)return s;const i=(c=t).__v_skip||!Object.isExtensible(c)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((t=>S(t).slice(8,-1))(c));var c;if(0===i)return t;const l=new Proxy(t,2===i?r:n);return o.set(t,l),l}function Bt(t){return $t(t)?Bt(t.__v_raw):!(!t||!t.__v_isReactive)}function $t(t){return!(!t||!t.__v_isReadonly)}function At(t){return!(!t||!t.__v_isShallow)}function Et(t){return Bt(t)||$t(t)}function Ft(t){const e=t&&t.__v_raw;return e?Ft(e):t}function It(t){return((t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})})(t,"__v_skip",!0),t}const Tt=t=>w(t)?Rt(t):t,Wt=t=>w(t)?Pt(t):t;function Ut(t){return!(!t||!0!==t.__v_isRef)}const zt={get:(t,e,n)=>{return Ut(r=Reflect.get(t,e,n))?r.value:r;var r},set:(t,e,n,r)=>{const o=t[e];return Ut(o)&&!Ut(n)?(o.value=n,!0):Reflect.set(t,e,n,r)}};function Vt(t,e,n,r){let o;try{o=r?t(...r):t()}catch(t){Zt(t,e,n)}return o}function Lt(t,e,n,r){if(m(t)){const s=Vt(t,e,n,r);return s&&(w(o=s)&&m(o.then)&&m(o.catch))&&s.catch((t=>{Zt(t,e,n)})),s}var o;const s=[];for(let o=0;o<t.length;o++)s.push(Lt(t[o],e,n,r));return s}function Zt(t,e,n,r=!0){if(e&&e.vnode,e){let r=e.parent;const o=e.proxy,s=n;for(;r;){const e=r.ec;if(e)for(let n=0;n<e.length;n++)if(!1===e[n](t,o,s))return;r=r.parent}const i=e.appContext.config.errorHandler;if(i)return void Vt(i,null,10,[t,o,s])}!function(t,e,n,r=!0){console.error(t)}(t,0,0,r)}let Dt=!1,Gt=!1;const qt=[];let Ht=0;const Kt=[];let Jt=null,Qt=0;const Xt=Promise.resolve();let Yt=null;function te(t){const e=Yt||Xt;return t?e.then(this?t.bind(this):t):e}function ee(t){qt.length&&qt.includes(t,Dt&&t.allowRecurse?Ht+1:Ht)||(null==t.id?qt.push(t):qt.splice(function(t){let e=Ht+1,n=qt.length;for(;e<n;){const r=e+n>>>1;re(qt[r])<t?e=r+1:n=r}return e}(t.id),0,t),ne())}function ne(){Dt||Gt||(Gt=!0,Yt=Xt.then(se))}const re=t=>null==t.id?1/0:t.id,oe=(t,e)=>{const n=re(t)-re(e);if(0===n){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function se(t){Gt=!1,Dt=!0,qt.sort(oe);try{for(Ht=0;Ht<qt.length;Ht++){const t=qt[Ht];t&&!1!==t.active&&Vt(t,null,14)}}finally{Ht=0,qt.length=0,function(t){if(Kt.length){const t=[...new Set(Kt)];if(Kt.length=0,Jt)return void Jt.push(...t);for(Jt=t,Jt.sort(((t,e)=>re(t)-re(e))),Qt=0;Qt<Jt.length;Qt++)Jt[Qt]();Jt=null,Qt=0}}(),Dt=!1,Yt=null,(qt.length||Kt.length)&&se(t)}}new Set,new Map;let ie=null;const ce={};function le(t,e,{immediate:n,deep:r,flush:o,onTrack:s,onTrigger:i}=l){const c=We;let a,f,p=!1,d=!1;if(Ut(t)?(a=()=>t.value,p=At(t)):Bt(t)?(a=()=>t,r=!0):v(t)?(d=!0,p=t.some((t=>Bt(t)||At(t))),a=()=>t.map((t=>Ut(t)?t.value:Bt(t)?ue(t):m(t)?Vt(t,c,2):void 0))):a=m(t)?e?()=>Vt(t,c,2):()=>{if(!c||!c.isUnmounted)return f&&f(),Lt(t,c,3,[h])}:u,e&&r){const t=a;a=()=>ue(t())}let h=t=>{f=b.onStop=()=>{Vt(t,c,4)}};if(Ve)return h=u,e?n&&Lt(e,c,3,[a(),d?[]:void 0,h]):a(),u;let g=d?[]:ce;const y=()=>{if(b.active)if(e){const t=b.run();(r||p||(d?t.some(((t,e)=>R(t,g[e]))):R(t,g)))&&(f&&f(),Lt(e,c,3,[t,g===ce?void 0:g,h]),g=t)}else b.run()};let _;y.allowRecurse=!!e,"sync"===o?_=y:"post"===o?_=()=>xe(y,c&&c.suspense):(y.pre=!0,c&&(y.id=c.uid),_=()=>ee(y));const b=new W(a,_);return e?n?y():g=b.run():"post"===o?xe(b.run.bind(b),c&&c.suspense):b.run(),()=>{b.stop(),c&&c.scope&&((t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)})(c.scope.effects,b)}}function ae(t,e,n){const r=this.proxy,o=_(t)?t.includes(".")?function(t,e){const n=e.split(".");return()=>{let e=t;for(let t=0;t<n.length&&e;t++)e=e[n[t]];return e}}(r,t):()=>r[t]:t.bind(r,r);let s;m(e)?s=e:(s=e.handler,n=e);const i=We;Ue(this);const c=le(o,s.bind(r),n);return i?Ue(i):ze(),c}function ue(t,e){if(!w(t)||t.__v_skip)return t;if((e=e||new Set).has(t))return t;if(e.add(t),Ut(t))ue(t.value,e);else if(v(t))for(let n=0;n<t.length;n++)ue(t[n],e);else if("[object Set]"===S(t)||y(t))t.forEach((t=>{ue(t,e)}));else if((t=>"[object Object]"===S(t))(t))for(const n in t)ue(t[n],e);return t}Boolean,Boolean;RegExp,RegExp;const fe=t=>(e,n=We)=>(!Ve||"sp"===t)&&function(t,e,n=We,r=!1){if(n){const o=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...r)=>{if(n.isUnmounted)return;L(),Ue(n);const o=Lt(e,n,t,r);return ze(),Z(),o});return r?o.unshift(s):o.push(s),s}}(t,((...t)=>e(...t)),n);fe("bm"),fe("m"),fe("bu"),fe("u"),fe("bum");fe("um"),fe("sp"),fe("rtg"),fe("rtc");const pe=Symbol();function de(t,e,n,r){let o;const s=n&&n[r];if(v(t)||_(t)){o=new Array(t.length);for(let n=0,r=t.length;n<r;n++)o[n]=e(t[n],n,void 0,s&&s[n])}else if("number"==typeof t){o=new Array(t);for(let n=0;n<t;n++)o[n]=e(n+1,n,void 0,s&&s[n])}else if(w(t))if(t[Symbol.iterator])o=Array.from(t,((t,n)=>e(t,n,void 0,s&&s[n])));else{const n=Object.keys(t);o=new Array(n.length);for(let r=0,i=n.length;r<i;r++){const i=n[r];o[r]=e(t[i],i,r,s&&s[r])}}else o=[];return n&&(n[r]=o),o}const he=t=>t?4&t.vnode.shapeFlag?function(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy((e=It(t.exposed),Bt(e)?e:new Proxy(e,zt)),{get:(e,n)=>n in e?e[n]:n in ge?ge[n](t):void 0}));var e}(t)||t.proxy:he(t.parent):null,ge=d(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>he(t.parent),$root:t=>he(t.root),$emit:t=>t.emit,$options:t=>__VUE_OPTIONS_API__?function(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=t.appContext,c=s.get(e);let l;return c?l=c:o.length||n||r?(l={},o.length&&o.forEach((t=>ve(l,t,i,!0))),ve(l,e,i)):l=e,w(e)&&s.set(e,l),l}(t):t.type,$forceUpdate:t=>t.f||(t.f=()=>ee(t.update)),$nextTick:t=>t.n||(t.n=te.bind(t.proxy)),$watch:t=>__VUE_OPTIONS_API__?ae.bind(t):u});function ve(t,e,n,r=!1){const{mixins:o,extends:s}=e;s&&ve(t,s,n,!0),o&&o.forEach((e=>ve(t,e,n,!0)));for(const o in e)if(r&&"expose"===o);else{const r=ye[o]||n&&n[o];t[o]=r?r(t[o],e[o]):e[o]}return t}const ye={data:me,props:we,emits:we,methods:we,computed:we,beforeCreate:be,created:be,beforeMount:be,mounted:be,beforeUpdate:be,updated:be,beforeDestroy:be,beforeUnmount:be,destroyed:be,unmounted:be,activated:be,deactivated:be,errorCaptured:be,serverPrefetch:be,components:we,directives:we,watch:function(t,e){if(!t)return e;if(!e)return t;const n=d(Object.create(null),t);for(const r in e)n[r]=be(t[r],e[r]);return n},provide:me,inject:function(t,e){return we(_e(t),_e(e))}};function me(t,e){return e?t?function(){return d(m(t)?t.call(this,this):t,m(e)?e.call(this,this):e)}:e:t}function _e(t){if(v(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function be(t,e){return t?[...new Set([].concat(t,e))]:e}function we(t,e){return t?d(d(Object.create(null),t),e):e}const xe=function(t,e){var n;e&&e.pendingBranch?v(t)?e.effects.push(...t):e.effects.push(t):(v(n=t)?Kt.push(...n):Jt&&Jt.includes(n,n.allowRecurse?Qt+1:Qt)||Kt.push(n),ne())},Se=Symbol(void 0),ke=Symbol(void 0),Ce=Symbol(void 0),Me=(Symbol(void 0),[]);let Oe=null;function je(t=!1){Me.push(Oe=t?null:[])}function Re(t){return t.dynamicChildren=Oe||a,Me.pop(),Oe=Me[Me.length-1]||null,Oe&&Oe.push(t),t}function Pe(t,e,n,r,o,s){return Re(Ae(t,e,n,r,o,s,!0))}const Ne="__vInternal",Be=({key:t})=>null!=t?t:null,$e=({ref:t,ref_key:e,ref_for:n})=>null!=t?_(t)||Ut(t)||m(t)?{i:ie,r:t,k:e,f:!!n}:t:null;function Ae(t,e=null,n=null,r=0,o=null,s=(t===Se?0:1),i=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Be(e),ref:e&&$e(e),scopeId:null,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null};return c?(Te(l,n),128&s&&t.normalize(l)):n&&(l.shapeFlag|=_(n)?8:16),!i&&Oe&&(l.patchFlag>0||6&s)&&32!==l.patchFlag&&Oe.push(l),l}const Ee=function(t,n=null,r=null,o=0,s=null,i=!1){if(t&&t!==pe||(t=Ce),l=t,l&&!0===l.__v_isVNode){const e=Fe(t,n,!0);return r&&Te(e,r),!i&&Oe&&(6&e.shapeFlag?Oe[Oe.indexOf(t)]=e:Oe.push(e)),e.patchFlag|=-2,e}var l;if(function(t){return m(t)&&"__vccOpts"in t}(t)&&(t=t.__vccOpts),n){n=function(t){return t?Et(t)||Ne in t?d({},t):t:null}(n);let{class:t,style:r}=n;t&&!_(t)&&(n.class=c(t)),w(r)&&(Et(r)&&!v(r)&&(r=d({},r)),n.style=e(r))}return Ae(t,n,r,o,s,_(t)?1:(t=>t.__isSuspense)(t)?128:(t=>t.__isTeleport)(t)?64:w(t)?4:m(t)?2:0,i,!0)};function Fe(t,n,r=!1){const{props:o,ref:s,patchFlag:i,children:l}=t,a=n?function(...t){const n={};for(let r=0;r<t.length;r++){const o=t[r];for(const t in o)if("class"===t)n.class!==o.class&&(n.class=c([n.class,o.class]));else if("style"===t)n.style=e([n.style,o.style]);else if(p(t)){const e=n[t],r=o[t];!r||e===r||v(e)&&e.includes(r)||(n[t]=e?[].concat(e,r):r)}else""!==t&&(n[t]=o[t])}return n}(o||{},n):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&Be(a),ref:n&&n.ref?r&&s?v(s)?s.concat($e(n)):[s,$e(n)]:$e(n):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:n&&t.type!==Se?-1===i?16:16|i:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Fe(t.ssContent),ssFallback:t.ssFallback&&Fe(t.ssFallback),el:t.el,anchor:t.anchor}}function Ie(t=" ",e=0){return Ee(ke,null,t,e)}function Te(t,e){let n=0;const{shapeFlag:r}=t;if(null==e)e=null;else if(v(e))n=16;else if("object"==typeof e){if(65&r){const n=e.default;return void(n&&(n._c&&(n._d=!1),Te(t,n()),n._c&&(n._d=!0)))}{n=32;const t=e._;!t&&!(Ne in e)&&(e._ctx=ie)}}else m(e)?(e={default:e,_ctx:ie},n=32):(e=String(e),64&r?(n=16,e=[Ie(e)]):n=8);t.children=e,t.shapeFlag|=n}Object.create(null),new WeakMap,new WeakMap,new WeakMap;let We=null;const Ue=t=>{We=t,t.scope.on()},ze=()=>{We&&We.scope.off(),We=null};let Ve=!1;Symbol("");const Le={ref:"fade-color-pictogram",class:"fade-color-pictogram"};function Ze(t){let e=t.toLowerCase();if(e&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e)){if(4===e.length){for(var n="#",r=1;r<4;r+=1)n+=e.slice(r,r+1).concat(e.slice(r,r+1));e=n}var o=[];for(let t=1;t<7;t+=2)o.push(parseInt("0x"+e.slice(t,t+2)));return o}return e}function De(t){var e=t;if(/^(rgb|RGB)/.test(e)){for(var n=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),r="#",o=0;o<n.length;o++){var s=Number(n[o]).toString(16);"0"===(s=s<10?"0"+s:s)&&(s+=s),r+=s}return 7!==r.length&&(r=e),r}if(!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e))return e;var i=e.replace(/#/,"").split("");if(6===i.length)return e;if(3===i.length){var c="#";for(let t=0;t<i.length;t+=1)c+=i[t]+i[t];return c}}const Ge={gradientColor(t,e,n){const r=Ze(t),o=r[0],s=r[1],i=r[2],c=Ze(e),l=(c[0]-o)/n,a=(c[1]-s)/n,u=(c[2]-i)/n;for(var f=[],p=0;p<n;p++){var d=De("rgb("+parseInt(l*p+o)+","+parseInt(a*p+s)+","+parseInt(u*p+i)+")");f.push(d)}return f}},qe={name:"FadeColorPictogram",props:{type:{type:String,default:"horizontal"},itemFadeColor:{type:Boolean,default:!0},preVal:{type:Number,required:!0,validator:function(t){return t>0||0===t}},barWidth:{type:Number,default:4,validator:function(t){return t>0}},barMargin:{type:Number,default:4,validator:function(t){return t>0}},defaultBarBackground:{type:String,default:"rgba(46,70,89,0.30)"},gradualBarBackground:{type:Array,default:()=>["#17303A","#73C8F3"]}},data:()=>({picMax:[],picNum:0,color:[],max:100}),watch:{preVal:function(t,e){this.getPicNum()}},beforeDestroy(){this.observer=null},mounted(){this.getPicMax();let t=this.$refs["fade-color-pictogram"];this.observer=new ResizeObserver((()=>{this.getPicMax()})),this.observer.observe(t)},methods:{getBarStyle(t){let e,n=this.itemFadeColor?`linear-gradient(120deg,${this.color[t]},${this.color[t+1>this.color.length-1?t:t+1]})`:this.color[t];return e="horizontal"===this.type?{background:t<this.picNum?n:this.defaultBarBackground,width:this.barWidth+"px",marginRight:this.barMargin+"px",height:"100%"}:{background:t<this.picNum?n:this.defaultBarBackground,width:"100%",height:this.barWidth+"px",marginTop:this.barMargin+"px"},console.log(e),e},getPicMax(){this.$nextTick((()=>{this.picMax=[];const t="horizontal"===this.type?this.$refs["fade-color-pictogram"].clientWidth:this.$refs["fade-color-pictogram"].clientHeight,e=Math.round(t/(this.barWidth+this.barMargin));for(let t=0;t<e;t++)this.picMax.push("");this.getPicNum()}))},getPicNum(){this.color=[],this.picNum=0,0!==this.max&&this.preVal/this.max&&(this.picNum=Math.round(this.preVal/this.max*this.picMax.length),this.color=Ge.gradientColor(this.gradualBarBackground[0],this.gradualBarBackground[1],this.picNum))}}};n(571);const He=(0,n(744).Z)(qe,[["render",function(t,n,r,o,s,i){return je(),Pe("div",Le,[Ae("div",{class:c(["pic-bar",r.type+"-bar"])},[(je(!0),Pe(Se,null,de(s.picMax,((t,n)=>(je(),Pe("div",{key:n,class:"bar-item",style:e(i.getBarStyle(n))},null,4)))),128))],2)],512)}],["__scopeId","data-v-224189d9"]]),Ke={install:function(t,e){t.component(He.name,He)}}})(),r})()));