@advt-gpt-chart/package 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +11 -3
- package/dist/index.es.js.gz +0 -0
- package/dist/index.umd.js +7 -3
- package/dist/index.umd.js.gz +0 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -181551,7 +181551,7 @@ function FQe() {
|
|
|
181551
181551
|
throw new Error("useGPTVisContext must be used within a GPTVisContext.Provider");
|
|
181552
181552
|
return i;
|
|
181553
181553
|
}
|
|
181554
|
-
const Nxi = "3.0.
|
|
181554
|
+
const Nxi = "3.0.2", _ce = /* @__PURE__ */ Qy({});
|
|
181555
181555
|
function NQe(i) {
|
|
181556
181556
|
var e, t, n = "";
|
|
181557
181557
|
if (typeof i == "string" || typeof i == "number") n += i;
|
|
@@ -183037,7 +183037,10 @@ const KSi = (i) => i ? i == null ? void 0 : i.map((e) => Me({}, e.subFilter)) :
|
|
|
183037
183037
|
return c.value === "metricTime" && (h = "metric_time__" + n), h;
|
|
183038
183038
|
});
|
|
183039
183039
|
a.dimensions = {};
|
|
183040
|
-
let l = r == null ? void 0 : r.map((c) =>
|
|
183040
|
+
let l = r == null ? void 0 : r.map((c) => {
|
|
183041
|
+
var h;
|
|
183042
|
+
return c.type === "basic" ? rwi(c == null ? void 0 : c.basic) : c.type === "customSql" ? (h = c == null ? void 0 : c.sql) == null ? void 0 : h.filterCondition : null;
|
|
183043
|
+
}).filter((c) => c !== null && c.trim() !== "");
|
|
183041
183044
|
return e == null || e.forEach((c) => {
|
|
183042
183045
|
const h = (c == null ? void 0 : c.displayName) || (c == null ? void 0 : c.label);
|
|
183043
183046
|
a.metrics.push(h), a.dimensions[h] = s, a.metricDefinitions[h] = c.metricDefinitions, a.timeConstraints[h] = c.timeConstraints, a.filters[h] = l || [], a.timeConstraints[h] = i || {};
|
|
@@ -204932,6 +204935,10 @@ const L9i = ({ className: i, chartStyle: e, components: t = vw }) => {
|
|
|
204932
204935
|
width: 100%;
|
|
204933
204936
|
padding: 0;
|
|
204934
204937
|
margin: 0;
|
|
204938
|
+
|
|
204939
|
+
&:not(:first-of-type) {
|
|
204940
|
+
margin-top: 16px;
|
|
204941
|
+
}
|
|
204935
204942
|
}
|
|
204936
204943
|
|
|
204937
204944
|
.rc-virtual-list-scrollbar {
|
|
@@ -221612,7 +221619,8 @@ const UHi = () => {
|
|
|
221612
221619
|
] });
|
|
221613
221620
|
}, dNi = qP(hNi), fNi = W9i(), gNi = (i) => {
|
|
221614
221621
|
try {
|
|
221615
|
-
|
|
221622
|
+
const e = JSON.parse(i);
|
|
221623
|
+
return e !== null && typeof e == "object" && !Array.isArray(e);
|
|
221616
221624
|
} catch (e) {
|
|
221617
221625
|
return !1;
|
|
221618
221626
|
}
|
package/dist/index.es.js.gz
CHANGED
|
Binary file
|
package/dist/index.umd.js
CHANGED
|
@@ -10585,7 +10585,7 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
|
|
|
10585
10585
|
`,Pae=({loadingText:i})=>we.jsxs(L3i,{className:"gpt-vis-loading",children:[we.jsx("div",{className:"gpt-vis-loading-icon",children:we.jsxs("div",{className:"loading-svg-ele",children:[we.jsx("svg",{width:"0",height:"0",children:we.jsx("defs",{children:we.jsxs("linearGradient",{id:"loadingCircleStrokeGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[we.jsx("stop",{offset:"0%",stopColor:"#008CD6"}),we.jsx("stop",{offset:"100%",stopColor:"#00CC66"})]})})}),we.jsx("svg",{viewBox:"22 22 44 44",children:we.jsx("circle",{className:"loading-svg-circle",cx:"44",cy:"44",r:"20.2",fill:"none",strokeWidth:"3.6"})})]})}),we.jsx("p",{children:i})]}),B3i=Bs.div`
|
|
10586
10586
|
height: 100%;
|
|
10587
10587
|
width: 100%;
|
|
10588
|
-
`,EGe=({visible:i,title:e,message:t})=>i?we.jsx(B3i,{className:"error-container",children:we.jsx(ZA,{status:"error",title:e,subTitle:t})}):null,AGe=ce.createContext(null);function TGe(){const i=ce.useContext(AGe);if(i===void 0||Object.keys(i).length===0)throw new Error("useGPTVisContext must be used within a GPTVisContext.Provider");return i}const RGe="3.0.1",Lae=ce.createContext({});function MGe(i){var e,t,n="";if(typeof i=="string"||typeof i=="number")n+=i;else if(typeof i=="object")if(Array.isArray(i)){var r=i.length;for(e=0;e<r;e++)i[e]&&(t=MGe(i[e]))&&(n&&(n+=" "),n+=t)}else for(t in i)i[t]&&(n&&(n+=" "),n+=t);return n}function Bae(){for(var i,e,t=0,n="",r=arguments.length;t<r;t++)(i=arguments[t])&&(e=MGe(i))&&(n&&(n+=" "),n+=e);return n}const F3i={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},ou=Math.round;function Fae(i,e){const t=i.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=t.map(r=>parseFloat(r));for(let r=0;r<3;r+=1)n[r]=e(n[r]||0,t[r]||"",r);return t[3]?n[3]=t[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const kGe=(i,e,t)=>t===0?i:i/100;function NT(i,e){const t=e||255;return i>t?t:i<0?0:i}class bS{constructor(e){sc(this,"isValid",!0);sc(this,"r",0);sc(this,"g",0);sc(this,"b",0);sc(this,"a",1);sc(this,"_h");sc(this,"_s");sc(this,"_l");sc(this,"_v");sc(this,"_max");sc(this,"_min");sc(this,"_brightness");function t(n){return n[0]in e&&n[1]in e&&n[2]in e}if(e)if(typeof e=="string"){let r=function(o){return n.startsWith(o)};const n=e.trim();if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(r("rgb"))this.fromRgbString(n);else if(r("hsl"))this.fromHslString(n);else if(r("hsv")||r("hsb"))this.fromHsvString(n);else{const o=F3i[n.toLowerCase()];o&&this.fromHexString(parseInt(o,36).toString(16).padStart(6,"0"))}}else if(e instanceof bS)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=NT(e.r),this.g=NT(e.g),this.b=NT(e.b),this.a=typeof e.a=="number"?NT(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const t=e(this.r),n=e(this.g),r=e(this.b);return .2126*t+.7152*n+.0722*r}getHue(){if(typeof this._h=="undefined"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=ou(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s=="undefined"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l=="undefined"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v=="undefined"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness=="undefined"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=s=>(n[s]-this[s])*r+this[s],a={r:ou(o("r")),g:ou(o("g")),b:ou(o("b")),a:ou(o("a")*100)/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=o=>ou((this[o]*this.a+t[o]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=t.length===2?t:"0"+t;const n=(this.g||0).toString(16);e+=n.length===2?n:"0"+n;const r=(this.b||0).toString(16);if(e+=r.length===2?r:"0"+r,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=ou(this.a*255).toString(16);e+=o.length===2?o:"0"+o}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=ou(this.getSaturation()*100),n=ou(this.getLightness()*100);return this.a!==1?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=NT(t,n),r}_c(e){return new this.constructor(e)}getMax(){return typeof this._max=="undefined"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min=="undefined"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(r,o){return parseInt(t[r]+t[o||r],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a=typeof r=="number"?r:1,t<=0){const d=ou(n*255);this.r=d,this.g=d,this.b=d}let o=0,a=0,s=0;const l=e/60,u=(1-Math.abs(2*n-1))*t,c=u*(1-Math.abs(l%2-1));l>=0&&l<1?(o=u,a=c):l>=1&&l<2?(o=c,a=u):l>=2&&l<3?(a=u,s=c):l>=3&&l<4?(a=c,s=u):l>=4&&l<5?(o=c,s=u):l>=5&&l<6&&(o=u,s=c);const h=n-u/2;this.r=ou((o+h)*255),this.g=ou((a+h)*255),this.b=ou((s+h)*255)}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a=typeof r=="number"?r:1;const o=ou(n*255);if(this.r=o,this.g=o,this.b=o,t<=0)return;const a=e/60,s=Math.floor(a),l=a-s,u=ou(n*(1-t)*255),c=ou(n*(1-t*l)*255),h=ou(n*(1-t*(1-l))*255);switch(s){case 0:this.g=h,this.b=u;break;case 1:this.r=c,this.b=u;break;case 2:this.r=u,this.b=h;break;case 3:this.r=u,this.g=c;break;case 4:this.r=h,this.g=u;break;case 5:default:this.g=u,this.b=c;break}}fromHsvString(e){const t=Fae(e,kGe);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=Fae(e,kGe);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=Fae(e,(n,r)=>r.includes("%")?ou(n/100*255):n);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const BL=2,OGe=.16,N3i=.05,H3i=.05,$3i=.15,IGe=5,DGe=4,z3i=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function PGe(i,e,t){let n;return Math.round(i.h)>=60&&Math.round(i.h)<=240?n=t?Math.round(i.h)-BL*e:Math.round(i.h)+BL*e:n=t?Math.round(i.h)+BL*e:Math.round(i.h)-BL*e,n<0?n+=360:n>=360&&(n-=360),n}function LGe(i,e,t){if(i.h===0&&i.s===0)return i.s;let n;return t?n=i.s-OGe*e:e===DGe?n=i.s+OGe:n=i.s+N3i*e,n>1&&(n=1),t&&e===IGe&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function BGe(i,e,t){let n;return t?n=i.v+H3i*e:n=i.v-$3i*e,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function W3i(i,e={}){const t=[],n=new bS(i),r=n.toHsv();for(let o=IGe;o>0;o-=1){const a=new bS({h:PGe(r,o,!0),s:LGe(r,o,!0),v:BGe(r,o,!0)});t.push(a)}t.push(n);for(let o=1;o<=DGe;o+=1){const a=new bS({h:PGe(r,o),s:LGe(r,o),v:BGe(r,o)});t.push(a)}return e.theme==="dark"?z3i.map(({index:o,amount:a})=>new bS(e.backgroundColor||"#141414").mix(t[o],a).toHexString()):t.map(o=>o.toHexString())}const Nae=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Nae.primary=Nae[5];function V3i(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function j3i(i,e){if(!i)return!1;if(i.contains)return i.contains(e);let t=e;for(;t;){if(t===i)return!0;t=t.parentNode}return!1}const FGe="data-rc-order",NGe="data-rc-priority",U3i="rc-util-key",Hae=new Map;function HGe({mark:i}={}){return i?i.startsWith("data-")?i:`data-${i}`:U3i}function $ae(i){return i.attachTo?i.attachTo:document.querySelector("head")||document.body}function G3i(i){return i==="queue"?"prependQueue":i?"prepend":"append"}function zae(i){return Array.from((Hae.get(i)||i).children).filter(e=>e.tagName==="STYLE")}function $Ge(i,e={}){if(!V3i())return null;const{csp:t,prepend:n,priority:r=0}=e,o=G3i(n),a=o==="prependQueue",s=document.createElement("style");s.setAttribute(FGe,o),a&&r&&s.setAttribute(NGe,`${r}`),t!=null&&t.nonce&&(s.nonce=t==null?void 0:t.nonce),s.innerHTML=i;const l=$ae(e),{firstChild:u}=l;if(n){if(a){const c=(e.styles||zae(l)).filter(h=>{if(!["prepend","prependQueue"].includes(h.getAttribute(FGe)))return!1;const d=Number(h.getAttribute(NGe)||0);return r>=d});if(c.length)return l.insertBefore(s,c[c.length-1].nextSibling),s}l.insertBefore(s,u)}else l.appendChild(s);return s}function q3i(i,e={}){let{styles:t}=e;return t||(t=zae($ae(e))),t.find(n=>n.getAttribute(HGe(e))===i)}function Y3i(i,e){const t=Hae.get(i);if(!t||!j3i(document,t)){const n=$Ge("",e),{parentNode:r}=n;Hae.set(i,r),i.removeChild(n)}}function X3i(i,e,t={}){var l,u,c;const n=$ae(t),r=zae(n),o=Hi(ke({},t),{styles:r});Y3i(n,o);const a=q3i(e,o);if(a)return(l=o.csp)!=null&&l.nonce&&a.nonce!==((u=o.csp)==null?void 0:u.nonce)&&(a.nonce=(c=o.csp)==null?void 0:c.nonce),a.innerHTML!==i&&(a.innerHTML=i),a;const s=$Ge(i,o);return s.setAttribute(HGe(o),e),s}function zGe(i){var e;return(e=i==null?void 0:i.getRootNode)==null?void 0:e.call(i)}function K3i(i){return zGe(i)instanceof ShadowRoot}function Z3i(i){return K3i(i)?zGe(i):null}var WGe={};let Wae={};const Vae=[],Q3i=i=>{Vae.push(i)};function J3i(i,e){if(WGe.NODE_ENV!=="production"&&!i&&console!==void 0){const t=Vae.reduce((n,r)=>r(n!=null?n:"","warning"),e);t&&console.error(`Warning: ${t}`)}}function exi(i,e){if(WGe.NODE_ENV!=="production"&&!i&&console!==void 0){const t=Vae.reduce((n,r)=>r(n!=null?n:"","note"),e);t&&console.warn(`Note: ${t}`)}}function txi(){Wae={}}function VGe(i,e,t){!e&&!Wae[t]&&(i(!1,t),Wae[t]=!0)}function FL(i,e){VGe(J3i,i,e)}function ixi(i,e){VGe(exi,i,e)}FL.preMessage=Q3i,FL.resetWarned=txi,FL.noteOnce=ixi;function nxi(i){return i.replace(/-(.)/g,(e,t)=>t.toUpperCase())}function jae(i,e){FL(i,`[@ant-design/icons] ${e}`)}function jGe(i){return typeof i=="object"&&typeof i.name=="string"&&typeof i.theme=="string"&&(typeof i.icon=="object"||typeof i.icon=="function")}function UGe(i={}){return Object.keys(i).reduce((e,t)=>{const n=i[t];switch(t){case"class":e.className=n,delete e.class;break;default:delete e[t],e[nxi(t)]=n}return e},{})}function Uae(i,e,t){return t?ce.createElement(i.tag,ke(ke({key:e},UGe(i.attrs)),t),(i.children||[]).map((n,r)=>Uae(n,`${e}-${i.tag}-${r}`))):ce.createElement(i.tag,ke({key:e},UGe(i.attrs)),(i.children||[]).map((n,r)=>Uae(n,`${e}-${i.tag}-${r}`)))}function GGe(i){return W3i(i)[0]}function qGe(i){return i?Array.isArray(i)?i:[i]:[]}const rxi={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},oxi=`
|
|
10588
|
+
`,EGe=({visible:i,title:e,message:t})=>i?we.jsx(B3i,{className:"error-container",children:we.jsx(ZA,{status:"error",title:e,subTitle:t})}):null,AGe=ce.createContext(null);function TGe(){const i=ce.useContext(AGe);if(i===void 0||Object.keys(i).length===0)throw new Error("useGPTVisContext must be used within a GPTVisContext.Provider");return i}const RGe="3.0.2",Lae=ce.createContext({});function MGe(i){var e,t,n="";if(typeof i=="string"||typeof i=="number")n+=i;else if(typeof i=="object")if(Array.isArray(i)){var r=i.length;for(e=0;e<r;e++)i[e]&&(t=MGe(i[e]))&&(n&&(n+=" "),n+=t)}else for(t in i)i[t]&&(n&&(n+=" "),n+=t);return n}function Bae(){for(var i,e,t=0,n="",r=arguments.length;t<r;t++)(i=arguments[t])&&(e=MGe(i))&&(n&&(n+=" "),n+=e);return n}const F3i={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},ou=Math.round;function Fae(i,e){const t=i.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=t.map(r=>parseFloat(r));for(let r=0;r<3;r+=1)n[r]=e(n[r]||0,t[r]||"",r);return t[3]?n[3]=t[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const kGe=(i,e,t)=>t===0?i:i/100;function NT(i,e){const t=e||255;return i>t?t:i<0?0:i}class bS{constructor(e){sc(this,"isValid",!0);sc(this,"r",0);sc(this,"g",0);sc(this,"b",0);sc(this,"a",1);sc(this,"_h");sc(this,"_s");sc(this,"_l");sc(this,"_v");sc(this,"_max");sc(this,"_min");sc(this,"_brightness");function t(n){return n[0]in e&&n[1]in e&&n[2]in e}if(e)if(typeof e=="string"){let r=function(o){return n.startsWith(o)};const n=e.trim();if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(r("rgb"))this.fromRgbString(n);else if(r("hsl"))this.fromHslString(n);else if(r("hsv")||r("hsb"))this.fromHsvString(n);else{const o=F3i[n.toLowerCase()];o&&this.fromHexString(parseInt(o,36).toString(16).padStart(6,"0"))}}else if(e instanceof bS)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=NT(e.r),this.g=NT(e.g),this.b=NT(e.b),this.a=typeof e.a=="number"?NT(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const t=e(this.r),n=e(this.g),r=e(this.b);return .2126*t+.7152*n+.0722*r}getHue(){if(typeof this._h=="undefined"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=ou(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s=="undefined"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l=="undefined"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v=="undefined"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness=="undefined"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=s=>(n[s]-this[s])*r+this[s],a={r:ou(o("r")),g:ou(o("g")),b:ou(o("b")),a:ou(o("a")*100)/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=o=>ou((this[o]*this.a+t[o]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=t.length===2?t:"0"+t;const n=(this.g||0).toString(16);e+=n.length===2?n:"0"+n;const r=(this.b||0).toString(16);if(e+=r.length===2?r:"0"+r,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=ou(this.a*255).toString(16);e+=o.length===2?o:"0"+o}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=ou(this.getSaturation()*100),n=ou(this.getLightness()*100);return this.a!==1?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=NT(t,n),r}_c(e){return new this.constructor(e)}getMax(){return typeof this._max=="undefined"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min=="undefined"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(r,o){return parseInt(t[r]+t[o||r],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a=typeof r=="number"?r:1,t<=0){const d=ou(n*255);this.r=d,this.g=d,this.b=d}let o=0,a=0,s=0;const l=e/60,u=(1-Math.abs(2*n-1))*t,c=u*(1-Math.abs(l%2-1));l>=0&&l<1?(o=u,a=c):l>=1&&l<2?(o=c,a=u):l>=2&&l<3?(a=u,s=c):l>=3&&l<4?(a=c,s=u):l>=4&&l<5?(o=c,s=u):l>=5&&l<6&&(o=u,s=c);const h=n-u/2;this.r=ou((o+h)*255),this.g=ou((a+h)*255),this.b=ou((s+h)*255)}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a=typeof r=="number"?r:1;const o=ou(n*255);if(this.r=o,this.g=o,this.b=o,t<=0)return;const a=e/60,s=Math.floor(a),l=a-s,u=ou(n*(1-t)*255),c=ou(n*(1-t*l)*255),h=ou(n*(1-t*(1-l))*255);switch(s){case 0:this.g=h,this.b=u;break;case 1:this.r=c,this.b=u;break;case 2:this.r=u,this.b=h;break;case 3:this.r=u,this.g=c;break;case 4:this.r=h,this.g=u;break;case 5:default:this.g=u,this.b=c;break}}fromHsvString(e){const t=Fae(e,kGe);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=Fae(e,kGe);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=Fae(e,(n,r)=>r.includes("%")?ou(n/100*255):n);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const BL=2,OGe=.16,N3i=.05,H3i=.05,$3i=.15,IGe=5,DGe=4,z3i=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function PGe(i,e,t){let n;return Math.round(i.h)>=60&&Math.round(i.h)<=240?n=t?Math.round(i.h)-BL*e:Math.round(i.h)+BL*e:n=t?Math.round(i.h)+BL*e:Math.round(i.h)-BL*e,n<0?n+=360:n>=360&&(n-=360),n}function LGe(i,e,t){if(i.h===0&&i.s===0)return i.s;let n;return t?n=i.s-OGe*e:e===DGe?n=i.s+OGe:n=i.s+N3i*e,n>1&&(n=1),t&&e===IGe&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function BGe(i,e,t){let n;return t?n=i.v+H3i*e:n=i.v-$3i*e,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function W3i(i,e={}){const t=[],n=new bS(i),r=n.toHsv();for(let o=IGe;o>0;o-=1){const a=new bS({h:PGe(r,o,!0),s:LGe(r,o,!0),v:BGe(r,o,!0)});t.push(a)}t.push(n);for(let o=1;o<=DGe;o+=1){const a=new bS({h:PGe(r,o),s:LGe(r,o),v:BGe(r,o)});t.push(a)}return e.theme==="dark"?z3i.map(({index:o,amount:a})=>new bS(e.backgroundColor||"#141414").mix(t[o],a).toHexString()):t.map(o=>o.toHexString())}const Nae=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Nae.primary=Nae[5];function V3i(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function j3i(i,e){if(!i)return!1;if(i.contains)return i.contains(e);let t=e;for(;t;){if(t===i)return!0;t=t.parentNode}return!1}const FGe="data-rc-order",NGe="data-rc-priority",U3i="rc-util-key",Hae=new Map;function HGe({mark:i}={}){return i?i.startsWith("data-")?i:`data-${i}`:U3i}function $ae(i){return i.attachTo?i.attachTo:document.querySelector("head")||document.body}function G3i(i){return i==="queue"?"prependQueue":i?"prepend":"append"}function zae(i){return Array.from((Hae.get(i)||i).children).filter(e=>e.tagName==="STYLE")}function $Ge(i,e={}){if(!V3i())return null;const{csp:t,prepend:n,priority:r=0}=e,o=G3i(n),a=o==="prependQueue",s=document.createElement("style");s.setAttribute(FGe,o),a&&r&&s.setAttribute(NGe,`${r}`),t!=null&&t.nonce&&(s.nonce=t==null?void 0:t.nonce),s.innerHTML=i;const l=$ae(e),{firstChild:u}=l;if(n){if(a){const c=(e.styles||zae(l)).filter(h=>{if(!["prepend","prependQueue"].includes(h.getAttribute(FGe)))return!1;const d=Number(h.getAttribute(NGe)||0);return r>=d});if(c.length)return l.insertBefore(s,c[c.length-1].nextSibling),s}l.insertBefore(s,u)}else l.appendChild(s);return s}function q3i(i,e={}){let{styles:t}=e;return t||(t=zae($ae(e))),t.find(n=>n.getAttribute(HGe(e))===i)}function Y3i(i,e){const t=Hae.get(i);if(!t||!j3i(document,t)){const n=$Ge("",e),{parentNode:r}=n;Hae.set(i,r),i.removeChild(n)}}function X3i(i,e,t={}){var l,u,c;const n=$ae(t),r=zae(n),o=Hi(ke({},t),{styles:r});Y3i(n,o);const a=q3i(e,o);if(a)return(l=o.csp)!=null&&l.nonce&&a.nonce!==((u=o.csp)==null?void 0:u.nonce)&&(a.nonce=(c=o.csp)==null?void 0:c.nonce),a.innerHTML!==i&&(a.innerHTML=i),a;const s=$Ge(i,o);return s.setAttribute(HGe(o),e),s}function zGe(i){var e;return(e=i==null?void 0:i.getRootNode)==null?void 0:e.call(i)}function K3i(i){return zGe(i)instanceof ShadowRoot}function Z3i(i){return K3i(i)?zGe(i):null}var WGe={};let Wae={};const Vae=[],Q3i=i=>{Vae.push(i)};function J3i(i,e){if(WGe.NODE_ENV!=="production"&&!i&&console!==void 0){const t=Vae.reduce((n,r)=>r(n!=null?n:"","warning"),e);t&&console.error(`Warning: ${t}`)}}function exi(i,e){if(WGe.NODE_ENV!=="production"&&!i&&console!==void 0){const t=Vae.reduce((n,r)=>r(n!=null?n:"","note"),e);t&&console.warn(`Note: ${t}`)}}function txi(){Wae={}}function VGe(i,e,t){!e&&!Wae[t]&&(i(!1,t),Wae[t]=!0)}function FL(i,e){VGe(J3i,i,e)}function ixi(i,e){VGe(exi,i,e)}FL.preMessage=Q3i,FL.resetWarned=txi,FL.noteOnce=ixi;function nxi(i){return i.replace(/-(.)/g,(e,t)=>t.toUpperCase())}function jae(i,e){FL(i,`[@ant-design/icons] ${e}`)}function jGe(i){return typeof i=="object"&&typeof i.name=="string"&&typeof i.theme=="string"&&(typeof i.icon=="object"||typeof i.icon=="function")}function UGe(i={}){return Object.keys(i).reduce((e,t)=>{const n=i[t];switch(t){case"class":e.className=n,delete e.class;break;default:delete e[t],e[nxi(t)]=n}return e},{})}function Uae(i,e,t){return t?ce.createElement(i.tag,ke(ke({key:e},UGe(i.attrs)),t),(i.children||[]).map((n,r)=>Uae(n,`${e}-${i.tag}-${r}`))):ce.createElement(i.tag,ke({key:e},UGe(i.attrs)),(i.children||[]).map((n,r)=>Uae(n,`${e}-${i.tag}-${r}`)))}function GGe(i){return W3i(i)[0]}function qGe(i){return i?Array.isArray(i)?i:[i]:[]}const rxi={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},oxi=`
|
|
10589
10589
|
.anticon {
|
|
10590
10590
|
display: inline-flex;
|
|
10591
10591
|
align-items: center;
|
|
@@ -10722,7 +10722,7 @@ ${r}
|
|
|
10722
10722
|
}
|
|
10723
10723
|
}
|
|
10724
10724
|
`}
|
|
10725
|
-
`,td=i=>{var l;const s=i,{prefix:e,allowClear:t}=s,n=Rh(s,["prefix","allowClear"]),[r,o]=ce.useState((l=i==null?void 0:i.open)!=null?l:!1);ce.useEffect(()=>{(i==null?void 0:i.open)!==void 0&&o(i==null?void 0:i.open)},[i==null?void 0:i.open]);const a=u=>{if(i!=null&&i.onOpenChange){i==null||i.onOpenChange(u);return}o(u)};return we.jsxs(Yf,{theme:Hxi,children:[we.jsx(zxi,{}),we.jsx($xi,{className:r?"open":"",children:we.jsx(hm,ke({prefix:e?we.jsx("span",{className:r?"open":"",children:e}):void 0,suffixIcon:we.jsxs(we.Fragment,{children:[r&&we.jsx("div",{className:"suffixIcon",children:we.jsx(Jae,{style:{color:"#008CD6",pointerEvents:"none"}})}),!r&&we.jsx("div",{className:"suffixIcon",children:we.jsx(Yae,{style:{color:"#89898a",pointerEvents:"none"}})})]}),maxTagCount:"responsive",allowClear:t?{clearIcon:we.jsx(tse,{className:"clear-icon"})}:!1,onOpenChange:a},n))})]})},Wxi="http://localhost";class Vxi{constructor({baseURL:e=Wxi,host:t,protocol:n,timeout:r=6e5,headers:o}={}){var s,l,u;this.host=t||((s=window.location)==null?void 0:s.host),this.protocol=n||(["http:","https:"].includes((l=window==null?void 0:window.location)==null?void 0:l.protocol)?(u=window==null?void 0:window.location)==null?void 0:u.protocol:void 0);const a=new URL(this.host||this.protocol?`${this.protocol||"https:"}//${this.host||"localhost"}`:e,window.location.href);this.baseURL=a.href.replace(/\/+$/,""),this.host=a.host,this.protocol=a.protocol,this.timeout=r,this.headers=o||{"Content-Type":"application/json"},this.instance=Xs.create({baseURL:this.baseURL,timeout:this.timeout,headers:this.headers})}get(e){return Sa(this,null,function*(){return this.request(Hi(ke({},e),{method:"GET"}))})}delete(e){return Sa(this,null,function*(){return this.request(Hi(ke({},e),{method:"DELETE"}))})}put(e){return Sa(this,null,function*(){return this.request(Hi(ke({},e),{method:"PUT"}))})}post(e){return Sa(this,null,function*(){return this.request(Hi(ke({},e),{method:"POST"}))})}patch(e){return Sa(this,null,function*(){return this.request(Hi(ke({},e),{method:"PATCH"}))})}ping(){return this.request({url:"/api/ping",method:"GET",retry:1})}request(e){return Sa(this,null,function*(){return this.instance(e).then(t=>{const{status:n,config:r}=t;return(r==null?void 0:r.method)==="delete"&&(n===200||n===201)?{message:"delete success"}:{data:t.data}}).catch(t=>Promise.reject(t))})}}const $T=new Vxi,jxi=i=>hAt({},d$e,i,t=>{if(Array.isArray(t))return t}),Uxi=[{key:"basic",label:"Basic",value:"basic"},{key:"customSql",label:"Custom SQL",value:"customSql"}],ase=[{key:"equal",label:"Equal",value:"equal"},{key:"notEqual",label:"Not equal",value:"not equal"},{key:"isNull",label:"Is null",value:"is null"},{key:"isNotNull",label:"Is not null",value:"is not null"},{key:"greaterThan",label:"Greater than",value:"greater than"},{key:"greaterThanOrEqualto",label:"Greater than or equal to",value:"greater than or equal to"},{key:"lessThan",label:"Less than",value:"less than"},{key:"lessThanEqualTo",label:"Less than or equal to",value:"less than or equal to"},{key:"contains",label:"Contains",value:"contains"},{key:"notContains",label:"Not contains",value:"not contains"},{key:"StartsWith",label:"Starts with",value:"starts with"},{key:"doesNotStartWith",label:"Does not start with",value:"does not start with"},{key:"endsWith",label:"Ends with",value:"ends with"},{key:"doesNotEndWith",label:"Does not end with",value:"does not end with"}],Gxi={equal:"=",notEqual:"!=",isNull:"IS NULL",isNotNull:"IS NOT NULL",greaterThan:">",greaterThanOrEqualto:">=",lessThan:"<",lessThanEqualTo:"<=",contains:"LIKE",notContains:"NOT LIKE",StartsWith:"LIKE",doesNotStartWith:"NOT LIKE",endsWith:"LIKE",doesNotEndWith:"NOT LIKE"},qxi=[{key:"where",label:"WHERE",value:"WHERE"},{key:"having",label:"HAVING",value:"HAVING"}];function sse(i,e){const t=e==null?void 0:e.find(n=>n.value===i.dimensionId||n.label===i.name);return t?{datasetName:t.datasetName,dimensionColumn:t.dimensionColumn,dimensionId:t.value}:null}const Yxi=i=>i?i==null?void 0:i.map(e=>ke({},e.subFilter)):[],Xxi=i=>{const e="/metricInsight/api/v1/metric/"+i;return $T.get({url:e}).then(t=>t.data||[])},Kxi=i=>{const e="/metricInsight/api/v1/dimension/metric?metricIds="+i.join(",");return $T.get({url:e}).then(t=>{var n;return((n=t==null?void 0:t.data)==null?void 0:n.items)||[]})},Zxi=i=>$T.post({url:"/metricInsight/api/v1/mql/params",data:i}).then(t=>(t==null?void 0:t.data)||[]),Qxi=(i,e)=>i==="mql"?eSi(e):Jxi(e),Jxi=({timeRange:i,metrics:e,dimensions:t,timeGrain:n,filters:r,queryMetricOrgId:o})=>{const a=e==null?void 0:e.map(f=>f.value),s=a==null?void 0:a[0],l=t==null?void 0:t.some(f=>f.value==="metricTime");let u=t,c;l&&(u=t==null?void 0:t.filter(f=>f.value!=="metricTime"),c={dimensionName:"metricTime",dimensionUnit:n});const h={orgId:o,metricIds:a,timeRange:i,dimensionIds:u==null?void 0:u.map(f=>f.value)};(i==null?void 0:i.type)==="custom"&&(i!=null&&i.custom)&&(h.timeRange.custom={from:Fr(i.custom.from).format(jM),to:Fr(i.custom.to).format(jM)}),c&&(h.timeDimension=c),r&&r.length>0&&(h.filters=r.map(f=>({conjunction:"AND",subFilter:ke({},f)})));const d=`/metricInsight/api/v1/metric/${s}/preview`;return $T.post({url:d,data:h}).then(f=>(f==null?void 0:f.data)||[])},eSi=({timeRange:i,metrics:e,dimensions:t,timeGrain:n,filters:r,queryMetricOrgId:o})=>{const a={dimensions:[],metricDefinitions:{},metrics:[],timeConstraints:{},filters:{},orders:{},limit:{},orgId:o},s=t==null?void 0:t.map(c=>{let h=(c==null?void 0:c.englishName)||(c==null?void 0:c.label);return c.value==="metricTime"&&(h="metric_time__"+n),h});a.dimensions={};let l=r==null?void 0:r.map(c=>c.type==="basic"?iSi(c==null?void 0:c.basic):"");return e==null||e.forEach(c=>{const h=(c==null?void 0:c.displayName)||(c==null?void 0:c.label);a.metrics.push(h),a.dimensions[h]=s,a.metricDefinitions[h]=c.metricDefinitions,a.timeConstraints[h]=c.timeConstraints,a.filters[h]=l||[],a.timeConstraints[h]=i||{}}),$T.post({url:"/metricInsight/api/v1/mql/query",data:a}).then(c=>{var h;return((h=c==null?void 0:c.data)==null?void 0:h[0])||[]})},tSi=i=>{const{data:e}=i;if(!e)return[];if(!(e!=null&&e.columns)||!(e!=null&&e.rows))return[];const{columns:t,rows:n}=e,r={};return t.forEach((a,s)=>{r[a.name]=s}),n.map(a=>{const s={};return t.forEach((l,u)=>{if(a.row[u]!==void 0){const c=l.name;s[c]=a.row[u].v}}),s})},iSi=i=>{var s;const e=i==null?void 0:i.dimensionColumn,t=i==null?void 0:i.condition,n=i==null?void 0:i.value,r=(s=ase.find(l=>l.value===t))==null?void 0:s.key,o=Gxi[r];if(!e||!o)throw new Error("Invalid filter configuration");if(r==="isNull"||r==="isNotNull")return`${e} ${o}`;if(o==="LIKE"||o==="NOT LIKE"){let l=n;return t==="contains"?l=`%${n}%`:t==="StartsWith"?l=`${n}%`:t==="endsWith"?l=`%${n}`:t==="notContains"?l=`%${n}%`:t==="doesNotStartWith"?l=`${n}%`:t==="doesNotEndWith"&&(l=`%${n}`),`${e} ${o} '${l}'`}const a=typeof n=="string"?`'${n}'`:n;return`${e} ${o} ${a}`},nSi={metricInsight:{queryMql2Params:Zxi,queryChartData:Qxi,queryMetricId:Xxi,queryDimensions:Kxi,transformData:tSi},simpleJson:{}},tqe=i=>{const e=$d(),{setError:t,setLoading:n}=Od();return ce.useMemo(()=>{const o=nSi[i];return{queryMql2Params:o.queryMql2Params?lse(o.queryMql2Params,t,n,e):()=>Promise.resolve({}),queryMetricId:o.queryMetricId?lse(o.queryMetricId,t,n,e):()=>Promise.resolve({}),queryDimensions:o.queryDimensions?lse(o.queryDimensions,t,n,e):()=>Promise.resolve({}),queryChartData:o.queryChartData?o.queryChartData:()=>Promise.resolve({}),transformData:a=>o.transformData?o.transformData({data:a}):a}},[i])};function lse(i,e,t,n){return((...r)=>Sa(null,null,function*(){try{return yield i(...r)}catch(o){let a=o==null?void 0:o.message;throw typeof o=="string"&&(a=o),t(!1),e({visible:!0,title:n.formatMessage({id:"metricError"}),message:a||"error"}),o}}))}const iqe=i=>{const e=$d(),t=i.type,n=i!=null&&i.mql?"mql":"json",{queryChartData:r,transformData:o}=tqe(t),{chartJson:a,drillBy:s,setLoading:l,setChartJson:u,setError:c,setDataSourceQueryInfo:h,setChartDrillBy:d}=Od();return{queryChartDataFromDatasource:(p,m)=>Sa(null,null,function*(){var S;const{metrics:v,dimensions:b,timeGrain:y,dataFormat:_}=p;if(c({visible:!1,title:"",message:""}),v!=null&&v.length){const x=yield r(n,p).catch(R=>{c({visible:!0,title:e.formatMessage({id:"chartDataLoadingFailed"}),message:R.message}),l(!1)});h({fieldInfo:(S=x==null?void 0:x.columns)==null?void 0:S.map(R=>({fieldName:R==null?void 0:R.name,type:R.type}))});const w=o(x);let E=a;$ke(a)&&(E=yield zke(Hi(ke({},a),{data:w})));let A=MV({chartJson:E,metrics:v,dimensions:b,isInit:m});const T=Hi(ke({},A),{data:w,timeGrain:y,dataFormat:_});u(T),l(!1),x&&c({visible:!1,title:"",message:""})}}),queryDrillByChartData:b=>Sa(null,[b],function*({queryData:p,setDrillLoading:m,setDrillError:v}){var S;const{metrics:y,dimensions:_}=p;if(y!=null&&y.length){const x=yield r(n,p).catch(k=>{v({visible:!0,title:e.formatMessage({id:"drillDataLoadingFailed"}),message:k.message}),m(!1)}),w=o(x),E=MV({chartJson:a,metrics:y,dimensions:_}),A=Hi(ke({},E),{data:w}),T=NJ(A),R=s;d(Hi(ke({},R),{chartState:{chartJson:A,dataset:T,history:[...((S=R.chartState)==null?void 0:S.history)||[],{chartJson:A,dataset:T}]}})),m(!1),x&&v({visible:!1,title:"",message:""})}})}},rSi=Bs(kl)`
|
|
10725
|
+
`,td=i=>{var l;const s=i,{prefix:e,allowClear:t}=s,n=Rh(s,["prefix","allowClear"]),[r,o]=ce.useState((l=i==null?void 0:i.open)!=null?l:!1);ce.useEffect(()=>{(i==null?void 0:i.open)!==void 0&&o(i==null?void 0:i.open)},[i==null?void 0:i.open]);const a=u=>{if(i!=null&&i.onOpenChange){i==null||i.onOpenChange(u);return}o(u)};return we.jsxs(Yf,{theme:Hxi,children:[we.jsx(zxi,{}),we.jsx($xi,{className:r?"open":"",children:we.jsx(hm,ke({prefix:e?we.jsx("span",{className:r?"open":"",children:e}):void 0,suffixIcon:we.jsxs(we.Fragment,{children:[r&&we.jsx("div",{className:"suffixIcon",children:we.jsx(Jae,{style:{color:"#008CD6",pointerEvents:"none"}})}),!r&&we.jsx("div",{className:"suffixIcon",children:we.jsx(Yae,{style:{color:"#89898a",pointerEvents:"none"}})})]}),maxTagCount:"responsive",allowClear:t?{clearIcon:we.jsx(tse,{className:"clear-icon"})}:!1,onOpenChange:a},n))})]})},Wxi="http://localhost";class Vxi{constructor({baseURL:e=Wxi,host:t,protocol:n,timeout:r=6e5,headers:o}={}){var s,l,u;this.host=t||((s=window.location)==null?void 0:s.host),this.protocol=n||(["http:","https:"].includes((l=window==null?void 0:window.location)==null?void 0:l.protocol)?(u=window==null?void 0:window.location)==null?void 0:u.protocol:void 0);const a=new URL(this.host||this.protocol?`${this.protocol||"https:"}//${this.host||"localhost"}`:e,window.location.href);this.baseURL=a.href.replace(/\/+$/,""),this.host=a.host,this.protocol=a.protocol,this.timeout=r,this.headers=o||{"Content-Type":"application/json"},this.instance=Xs.create({baseURL:this.baseURL,timeout:this.timeout,headers:this.headers})}get(e){return Sa(this,null,function*(){return this.request(Hi(ke({},e),{method:"GET"}))})}delete(e){return Sa(this,null,function*(){return this.request(Hi(ke({},e),{method:"DELETE"}))})}put(e){return Sa(this,null,function*(){return this.request(Hi(ke({},e),{method:"PUT"}))})}post(e){return Sa(this,null,function*(){return this.request(Hi(ke({},e),{method:"POST"}))})}patch(e){return Sa(this,null,function*(){return this.request(Hi(ke({},e),{method:"PATCH"}))})}ping(){return this.request({url:"/api/ping",method:"GET",retry:1})}request(e){return Sa(this,null,function*(){return this.instance(e).then(t=>{const{status:n,config:r}=t;return(r==null?void 0:r.method)==="delete"&&(n===200||n===201)?{message:"delete success"}:{data:t.data}}).catch(t=>Promise.reject(t))})}}const $T=new Vxi,jxi=i=>hAt({},d$e,i,t=>{if(Array.isArray(t))return t}),Uxi=[{key:"basic",label:"Basic",value:"basic"},{key:"customSql",label:"Custom SQL",value:"customSql"}],ase=[{key:"equal",label:"Equal",value:"equal"},{key:"notEqual",label:"Not equal",value:"not equal"},{key:"isNull",label:"Is null",value:"is null"},{key:"isNotNull",label:"Is not null",value:"is not null"},{key:"greaterThan",label:"Greater than",value:"greater than"},{key:"greaterThanOrEqualto",label:"Greater than or equal to",value:"greater than or equal to"},{key:"lessThan",label:"Less than",value:"less than"},{key:"lessThanEqualTo",label:"Less than or equal to",value:"less than or equal to"},{key:"contains",label:"Contains",value:"contains"},{key:"notContains",label:"Not contains",value:"not contains"},{key:"StartsWith",label:"Starts with",value:"starts with"},{key:"doesNotStartWith",label:"Does not start with",value:"does not start with"},{key:"endsWith",label:"Ends with",value:"ends with"},{key:"doesNotEndWith",label:"Does not end with",value:"does not end with"}],Gxi={equal:"=",notEqual:"!=",isNull:"IS NULL",isNotNull:"IS NOT NULL",greaterThan:">",greaterThanOrEqualto:">=",lessThan:"<",lessThanEqualTo:"<=",contains:"LIKE",notContains:"NOT LIKE",StartsWith:"LIKE",doesNotStartWith:"NOT LIKE",endsWith:"LIKE",doesNotEndWith:"NOT LIKE"},qxi=[{key:"where",label:"WHERE",value:"WHERE"},{key:"having",label:"HAVING",value:"HAVING"}];function sse(i,e){const t=e==null?void 0:e.find(n=>n.value===i.dimensionId||n.label===i.name);return t?{datasetName:t.datasetName,dimensionColumn:t.dimensionColumn,dimensionId:t.value}:null}const Yxi=i=>i?i==null?void 0:i.map(e=>ke({},e.subFilter)):[],Xxi=i=>{const e="/metricInsight/api/v1/metric/"+i;return $T.get({url:e}).then(t=>t.data||[])},Kxi=i=>{const e="/metricInsight/api/v1/dimension/metric?metricIds="+i.join(",");return $T.get({url:e}).then(t=>{var n;return((n=t==null?void 0:t.data)==null?void 0:n.items)||[]})},Zxi=i=>$T.post({url:"/metricInsight/api/v1/mql/params",data:i}).then(t=>(t==null?void 0:t.data)||[]),Qxi=(i,e)=>i==="mql"?eSi(e):Jxi(e),Jxi=({timeRange:i,metrics:e,dimensions:t,timeGrain:n,filters:r,queryMetricOrgId:o})=>{const a=e==null?void 0:e.map(f=>f.value),s=a==null?void 0:a[0],l=t==null?void 0:t.some(f=>f.value==="metricTime");let u=t,c;l&&(u=t==null?void 0:t.filter(f=>f.value!=="metricTime"),c={dimensionName:"metricTime",dimensionUnit:n});const h={orgId:o,metricIds:a,timeRange:i,dimensionIds:u==null?void 0:u.map(f=>f.value)};(i==null?void 0:i.type)==="custom"&&(i!=null&&i.custom)&&(h.timeRange.custom={from:Fr(i.custom.from).format(jM),to:Fr(i.custom.to).format(jM)}),c&&(h.timeDimension=c),r&&r.length>0&&(h.filters=r.map(f=>({conjunction:"AND",subFilter:ke({},f)})));const d=`/metricInsight/api/v1/metric/${s}/preview`;return $T.post({url:d,data:h}).then(f=>(f==null?void 0:f.data)||[])},eSi=({timeRange:i,metrics:e,dimensions:t,timeGrain:n,filters:r,queryMetricOrgId:o})=>{const a={dimensions:[],metricDefinitions:{},metrics:[],timeConstraints:{},filters:{},orders:{},limit:{},orgId:o},s=t==null?void 0:t.map(c=>{let h=(c==null?void 0:c.englishName)||(c==null?void 0:c.label);return c.value==="metricTime"&&(h="metric_time__"+n),h});a.dimensions={};let l=r==null?void 0:r.map(c=>{var h;return c.type==="basic"?iSi(c==null?void 0:c.basic):c.type==="customSql"?(h=c==null?void 0:c.sql)==null?void 0:h.filterCondition:null}).filter(c=>c!==null&&c.trim()!=="");return e==null||e.forEach(c=>{const h=(c==null?void 0:c.displayName)||(c==null?void 0:c.label);a.metrics.push(h),a.dimensions[h]=s,a.metricDefinitions[h]=c.metricDefinitions,a.timeConstraints[h]=c.timeConstraints,a.filters[h]=l||[],a.timeConstraints[h]=i||{}}),$T.post({url:"/metricInsight/api/v1/mql/query",data:a}).then(c=>{var h;return((h=c==null?void 0:c.data)==null?void 0:h[0])||[]})},tSi=i=>{const{data:e}=i;if(!e)return[];if(!(e!=null&&e.columns)||!(e!=null&&e.rows))return[];const{columns:t,rows:n}=e,r={};return t.forEach((a,s)=>{r[a.name]=s}),n.map(a=>{const s={};return t.forEach((l,u)=>{if(a.row[u]!==void 0){const c=l.name;s[c]=a.row[u].v}}),s})},iSi=i=>{var s;const e=i==null?void 0:i.dimensionColumn,t=i==null?void 0:i.condition,n=i==null?void 0:i.value,r=(s=ase.find(l=>l.value===t))==null?void 0:s.key,o=Gxi[r];if(!e||!o)throw new Error("Invalid filter configuration");if(r==="isNull"||r==="isNotNull")return`${e} ${o}`;if(o==="LIKE"||o==="NOT LIKE"){let l=n;return t==="contains"?l=`%${n}%`:t==="StartsWith"?l=`${n}%`:t==="endsWith"?l=`%${n}`:t==="notContains"?l=`%${n}%`:t==="doesNotStartWith"?l=`${n}%`:t==="doesNotEndWith"&&(l=`%${n}`),`${e} ${o} '${l}'`}const a=typeof n=="string"?`'${n}'`:n;return`${e} ${o} ${a}`},nSi={metricInsight:{queryMql2Params:Zxi,queryChartData:Qxi,queryMetricId:Xxi,queryDimensions:Kxi,transformData:tSi},simpleJson:{}},tqe=i=>{const e=$d(),{setError:t,setLoading:n}=Od();return ce.useMemo(()=>{const o=nSi[i];return{queryMql2Params:o.queryMql2Params?lse(o.queryMql2Params,t,n,e):()=>Promise.resolve({}),queryMetricId:o.queryMetricId?lse(o.queryMetricId,t,n,e):()=>Promise.resolve({}),queryDimensions:o.queryDimensions?lse(o.queryDimensions,t,n,e):()=>Promise.resolve({}),queryChartData:o.queryChartData?o.queryChartData:()=>Promise.resolve({}),transformData:a=>o.transformData?o.transformData({data:a}):a}},[i])};function lse(i,e,t,n){return((...r)=>Sa(null,null,function*(){try{return yield i(...r)}catch(o){let a=o==null?void 0:o.message;throw typeof o=="string"&&(a=o),t(!1),e({visible:!0,title:n.formatMessage({id:"metricError"}),message:a||"error"}),o}}))}const iqe=i=>{const e=$d(),t=i.type,n=i!=null&&i.mql?"mql":"json",{queryChartData:r,transformData:o}=tqe(t),{chartJson:a,drillBy:s,setLoading:l,setChartJson:u,setError:c,setDataSourceQueryInfo:h,setChartDrillBy:d}=Od();return{queryChartDataFromDatasource:(p,m)=>Sa(null,null,function*(){var S;const{metrics:v,dimensions:b,timeGrain:y,dataFormat:_}=p;if(c({visible:!1,title:"",message:""}),v!=null&&v.length){const x=yield r(n,p).catch(R=>{c({visible:!0,title:e.formatMessage({id:"chartDataLoadingFailed"}),message:R.message}),l(!1)});h({fieldInfo:(S=x==null?void 0:x.columns)==null?void 0:S.map(R=>({fieldName:R==null?void 0:R.name,type:R.type}))});const w=o(x);let E=a;$ke(a)&&(E=yield zke(Hi(ke({},a),{data:w})));let A=MV({chartJson:E,metrics:v,dimensions:b,isInit:m});const T=Hi(ke({},A),{data:w,timeGrain:y,dataFormat:_});u(T),l(!1),x&&c({visible:!1,title:"",message:""})}}),queryDrillByChartData:b=>Sa(null,[b],function*({queryData:p,setDrillLoading:m,setDrillError:v}){var S;const{metrics:y,dimensions:_}=p;if(y!=null&&y.length){const x=yield r(n,p).catch(k=>{v({visible:!0,title:e.formatMessage({id:"drillDataLoadingFailed"}),message:k.message}),m(!1)}),w=o(x),E=MV({chartJson:a,metrics:y,dimensions:_}),A=Hi(ke({},E),{data:w}),T=NJ(A),R=s;d(Hi(ke({},R),{chartState:{chartJson:A,dataset:T,history:[...((S=R.chartState)==null?void 0:S.history)||[],{chartJson:A,dataset:T}]}})),m(!1),x&&v({visible:!1,title:"",message:""})}})}},rSi=Bs(kl)`
|
|
10726
10726
|
${()=>vl`
|
|
10727
10727
|
&.advt-vis-chart-antd-btn {
|
|
10728
10728
|
color: #89898a;
|
|
@@ -11474,6 +11474,10 @@ ${r}
|
|
|
11474
11474
|
width: 100%;
|
|
11475
11475
|
padding: 0;
|
|
11476
11476
|
margin: 0;
|
|
11477
|
+
|
|
11478
|
+
&:not(:first-of-type) {
|
|
11479
|
+
margin-top: 16px;
|
|
11480
|
+
}
|
|
11477
11481
|
}
|
|
11478
11482
|
|
|
11479
11483
|
.rc-virtual-list-scrollbar {
|
|
@@ -11521,4 +11525,4 @@ ${r}
|
|
|
11521
11525
|
`))+1))}const a="#".repeat(r),s=t.enter("headingAtx"),l=t.enter("phrasing");o.move(a+" ");let u=t.containerPhrasing(i,ke({before:"# ",after:`
|
|
11522
11526
|
`},o.current()));return/^[\t ]/.test(u)&&(u=M8(u.charCodeAt(0))+u.slice(1)),u=u?a+" "+u:a,t.options.closeAtx&&(u+=" "+a),l(),s(),u}Gtt.peek=ILi;function Gtt(i){return i.value||""}function ILi(){return"<"}qtt.peek=DLi;function qtt(i,e,t,n){const r=Mce(t),o=r==='"'?"Quote":"Apostrophe",a=t.enter("image");let s=t.enter("label");const l=t.createTracker(n);let u=l.move("![");return u+=l.move(t.safe(i.alt,ke({before:u,after:"]"},l.current()))),u+=l.move("]("),s(),!i.url&&i.title||/[\0- \u007F]/.test(i.url)?(s=t.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(t.safe(i.url,ke({before:u,after:">"},l.current()))),u+=l.move(">")):(s=t.enter("destinationRaw"),u+=l.move(t.safe(i.url,ke({before:u,after:i.title?" ":")"},l.current())))),s(),i.title&&(s=t.enter(`title${o}`),u+=l.move(" "+r),u+=l.move(t.safe(i.title,ke({before:u,after:r},l.current()))),u+=l.move(r),s()),u+=l.move(")"),a(),u}function DLi(){return"!"}Ytt.peek=PLi;function Ytt(i,e,t,n){const r=i.referenceType,o=t.enter("imageReference");let a=t.enter("label");const s=t.createTracker(n);let l=s.move("![");const u=t.safe(i.alt,ke({before:l,after:"]"},s.current()));l+=s.move(u+"]["),a();const c=t.stack;t.stack=[],a=t.enter("reference");const h=t.safe(t.associationId(i),ke({before:l,after:"]"},s.current()));return a(),t.stack=c,o(),r==="full"||!u||u!==h?l+=s.move(h+"]"):r==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function PLi(){return"!"}Xtt.peek=LLi;function Xtt(i,e,t){let n=i.value||"",r="`",o=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(n);)r+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<t.unsafe.length;){const a=t.unsafe[o],s=t.compilePattern(a);let l;if(a.atBreak)for(;l=s.exec(n);){let u=l.index;n.charCodeAt(u)===10&&n.charCodeAt(u-1)===13&&u--,n=n.slice(0,u)+" "+n.slice(l.index+1)}}return r+n+r}function LLi(){return"`"}function Ktt(i,e){const t=Vue(i);return!!(!e.options.resourceLink&&i.url&&!i.title&&i.children&&i.children.length===1&&i.children[0].type==="text"&&(t===i.url||"mailto:"+t===i.url)&&/^[a-z][a-z+.-]+:/i.test(i.url)&&!/[\0- <>\u007F]/.test(i.url))}Ztt.peek=BLi;function Ztt(i,e,t,n){const r=Mce(t),o=r==='"'?"Quote":"Apostrophe",a=t.createTracker(n);let s,l;if(Ktt(i,t)){const c=t.stack;t.stack=[],s=t.enter("autolink");let h=a.move("<");return h+=a.move(t.containerPhrasing(i,ke({before:h,after:">"},a.current()))),h+=a.move(">"),s(),t.stack=c,h}s=t.enter("link"),l=t.enter("label");let u=a.move("[");return u+=a.move(t.containerPhrasing(i,ke({before:u,after:"]("},a.current()))),u+=a.move("]("),l(),!i.url&&i.title||/[\0- \u007F]/.test(i.url)?(l=t.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(t.safe(i.url,ke({before:u,after:">"},a.current()))),u+=a.move(">")):(l=t.enter("destinationRaw"),u+=a.move(t.safe(i.url,ke({before:u,after:i.title?" ":")"},a.current())))),l(),i.title&&(l=t.enter(`title${o}`),u+=a.move(" "+r),u+=a.move(t.safe(i.title,ke({before:u,after:r},a.current()))),u+=a.move(r),l()),u+=a.move(")"),s(),u}function BLi(i,e,t){return Ktt(i,t)?"<":"["}Qtt.peek=FLi;function Qtt(i,e,t,n){const r=i.referenceType,o=t.enter("linkReference");let a=t.enter("label");const s=t.createTracker(n);let l=s.move("[");const u=t.containerPhrasing(i,ke({before:l,after:"]"},s.current()));l+=s.move(u+"]["),a();const c=t.stack;t.stack=[],a=t.enter("reference");const h=t.safe(t.associationId(i),ke({before:l,after:"]"},s.current()));return a(),t.stack=c,o(),r==="full"||!u||u!==h?l+=s.move(h+"]"):r==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function FLi(){return"["}function kce(i){const e=i.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function NLi(i){const e=kce(i),t=i.options.bulletOther;if(!t)return e==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+t+"`) to be different");return t}function HLi(i){const e=i.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function Jtt(i){const e=i.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function $Li(i,e,t,n){const r=t.enter("list"),o=t.bulletCurrent;let a=i.ordered?HLi(t):kce(t);const s=i.ordered?a==="."?")":".":NLi(t);let l=e&&t.bulletLastUsed?a===t.bulletLastUsed:!1;if(!i.ordered){const c=i.children?i.children[0]:void 0;if((a==="*"||a==="-")&&c&&(!c.children||!c.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(l=!0),Jtt(t)===a&&c){let h=-1;for(;++h<i.children.length;){const d=i.children[h];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(a=s),t.bulletCurrent=a;const u=t.containerFlow(i,n);return t.bulletLastUsed=a,t.bulletCurrent=o,r(),u}function zLi(i){const e=i.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}function WLi(i,e,t,n){const r=zLi(t);let o=t.bulletCurrent||kce(t);e&&e.type==="list"&&e.ordered&&(o=(typeof e.start=="number"&&e.start>-1?e.start:1)+(t.options.incrementListMarker===!1?0:e.children.indexOf(i))+o);let a=o.length+1;(r==="tab"||r==="mixed"&&(e&&e.type==="list"&&e.spread||i.spread))&&(a=Math.ceil(a/4)*4);const s=t.createTracker(n);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=t.enter("listItem"),u=t.indentLines(t.containerFlow(i,s.current()),c);return l(),u;function c(h,d,f){return d?(f?"":" ".repeat(a))+h:(f?o:o+" ".repeat(a-o.length))+h}}function VLi(i,e,t,n){const r=t.enter("paragraph"),o=t.enter("phrasing"),a=t.containerPhrasing(i,n);return o(),r(),a}const jLi=wF(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ULi(i,e,t,n){return(i.children.some(function(a){return jLi(a)})?t.containerPhrasing:t.containerFlow).call(t,i,n)}function GLi(i){const e=i.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}eit.peek=qLi;function eit(i,e,t,n){const r=GLi(t),o=t.enter("strong"),a=t.createTracker(n),s=a.move(r+r);let l=a.move(t.containerPhrasing(i,ke({after:r,before:s},a.current())));const u=l.charCodeAt(0),c=NF(n.before.charCodeAt(n.before.length-1),u,r);c.inside&&(l=M8(u)+l.slice(1));const h=l.charCodeAt(l.length-1),d=NF(n.after.charCodeAt(0),h,r);d.inside&&(l=l.slice(0,-1)+M8(h));const f=a.move(r+r);return o(),t.attentionEncodeSurroundingInfo={after:d.outside,before:c.outside},s+l+f}function qLi(i,e,t){return t.options.strong||"*"}function YLi(i,e,t,n){return t.safe(i.value,n)}function XLi(i){const e=i.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function KLi(i,e,t){const n=(Jtt(t)+(t.options.ruleSpaces?" ":"")).repeat(XLi(t));return t.options.ruleSpaces?n.slice(0,-1):n}const tit={blockquote:yLi,break:jtt,code:ELi,definition:TLi,emphasis:Utt,hardBreak:jtt,heading:OLi,html:Gtt,image:qtt,imageReference:Ytt,inlineCode:Xtt,link:Ztt,linkReference:Qtt,list:$Li,listItem:WLi,paragraph:VLi,root:ULi,strong:eit,text:YLi,thematicBreak:KLi};function ZLi(){return{enter:{table:QLi,tableData:iit,tableHeader:iit,tableRow:eBi},exit:{codeText:tBi,table:JLi,tableData:Oce,tableHeader:Oce,tableRow:Oce}}}function QLi(i){const e=i._align;this.enter({type:"table",align:e.map(function(t){return t==="none"?null:t}),children:[]},i),this.data.inTable=!0}function JLi(i){this.exit(i),this.data.inTable=void 0}function eBi(i){this.enter({type:"tableRow",children:[]},i)}function Oce(i){this.exit(i)}function iit(i){this.enter({type:"tableCell",children:[]},i)}function tBi(i){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,iBi));const t=this.stack[this.stack.length-1];t.type,t.value=e,this.exit(i)}function iBi(i,e){return e==="|"?e:i}function nBi(i){const e=i||{},t=e.tableCellPadding,n=e.tablePipeAlign,r=e.stringLength,o=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
11523
11527
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:a,tableCell:l,tableRow:s}};function a(f,g,p,m){return u(c(f,p,m),f.align)}function s(f,g,p,m){const v=h(f,p,m),b=u([v]);return b.slice(0,b.indexOf(`
|
|
11524
|
-
`))}function l(f,g,p,m){const v=p.enter("tableCell"),b=p.enter("phrasing"),y=p.containerPhrasing(f,Hi(ke({},m),{before:o,after:o}));return b(),v(),y}function u(f,g){return vLi(f,{align:g,alignDelimiters:n,padding:t,stringLength:r})}function c(f,g,p){const m=f.children;let v=-1;const b=[],y=g.enter("table");for(;++v<m.length;)b[v]=h(m[v],g,p);return y(),b}function h(f,g,p){const m=f.children;let v=-1;const b=[],y=g.enter("tableRow");for(;++v<m.length;)b[v]=l(m[v],f,g,p);return y(),b}function d(f,g,p){let m=tit.inlineCode(f,g,p);return p.stack.includes("tableCell")&&(m=m.replace(/\|/g,"\\$&")),m}}function rBi(){return{exit:{taskListCheckValueChecked:nit,taskListCheckValueUnchecked:nit,paragraph:aBi}}}function oBi(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:sBi}}}function nit(i){const e=this.stack[this.stack.length-2];e.type,e.checked=i.type==="taskListCheckValueChecked"}function aBi(i){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const n=t.children[0];if(n&&n.type==="text"){const r=e.children;let o=-1,a;for(;++o<r.length;){const s=r[o];if(s.type==="paragraph"){a=s;break}}a===t&&(n.value=n.value.slice(1),n.value.length===0?t.children.shift():t.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,t.position.start=Object.assign({},n.position.start)))}}this.exit(i)}function sBi(i,e,t,n){const r=i.children[0],o=typeof i.checked=="boolean"&&r&&r.type==="paragraph",a="["+(i.checked?"x":" ")+"] ",s=t.createTracker(n);o&&s.move(a);let l=tit.listItem(i,e,t,ke(ke({},n),s.current()));return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+a}}function lBi(){return[$Pi(),sLi(),hLi(),ZLi(),rBi()]}function uBi(i){return{extensions:[zPi(),lLi(i),dLi(),nBi(i),oBi()]}}const cBi={tokenize:mBi,partial:!0},rit={tokenize:vBi,partial:!0},oit={tokenize:bBi,partial:!0},ait={tokenize:yBi,partial:!0},hBi={tokenize:_Bi,partial:!0},sit={name:"wwwAutolink",tokenize:gBi,previous:uit},lit={name:"protocolAutolink",tokenize:pBi,previous:cit},Pm={name:"emailAutolink",tokenize:fBi,previous:hit},Yp={};function dBi(){return{text:Yp}}let y_=48;for(;y_<123;)Yp[y_]=Pm,y_++,y_===58?y_=65:y_===91&&(y_=97);Yp[43]=Pm,Yp[45]=Pm,Yp[46]=Pm,Yp[95]=Pm,Yp[72]=[Pm,lit],Yp[104]=[Pm,lit],Yp[87]=[Pm,sit],Yp[119]=[Pm,sit];function fBi(i,e,t){const n=this;let r,o;return a;function a(h){return!Ice(h)||!hit.call(n,n.previous)||Dce(n.events)?t(h):(i.enter("literalAutolink"),i.enter("literalAutolinkEmail"),s(h))}function s(h){return Ice(h)?(i.consume(h),s):h===64?(i.consume(h),l):t(h)}function l(h){return h===46?i.check(hBi,c,u)(h):h===45||h===95||nc(h)?(o=!0,i.consume(h),l):c(h)}function u(h){return i.consume(h),r=!0,l}function c(h){return o&&r&&Oc(n.previous)?(i.exit("literalAutolinkEmail"),i.exit("literalAutolink"),e(h)):t(h)}}function gBi(i,e,t){const n=this;return r;function r(a){return a!==87&&a!==119||!uit.call(n,n.previous)||Dce(n.events)?t(a):(i.enter("literalAutolink"),i.enter("literalAutolinkWww"),i.check(cBi,i.attempt(rit,i.attempt(oit,o),t),t)(a))}function o(a){return i.exit("literalAutolinkWww"),i.exit("literalAutolink"),e(a)}}function pBi(i,e,t){const n=this;let r="",o=!1;return a;function a(h){return(h===72||h===104)&&cit.call(n,n.previous)&&!Dce(n.events)?(i.enter("literalAutolink"),i.enter("literalAutolinkHttp"),r+=String.fromCodePoint(h),i.consume(h),s):t(h)}function s(h){if(Oc(h)&&r.length<5)return r+=String.fromCodePoint(h),i.consume(h),s;if(h===58){const d=r.toLowerCase();if(d==="http"||d==="https")return i.consume(h),l}return t(h)}function l(h){return h===47?(i.consume(h),o?u:(o=!0,l)):t(h)}function u(h){return h===null||mF(h)||Fa(h)||p_(h)||vF(h)?t(h):i.attempt(rit,i.attempt(oit,c),t)(h)}function c(h){return i.exit("literalAutolinkHttp"),i.exit("literalAutolink"),e(h)}}function mBi(i,e,t){let n=0;return r;function r(a){return(a===87||a===119)&&n<3?(n++,i.consume(a),r):a===46&&n===3?(i.consume(a),o):t(a)}function o(a){return a===null?t(a):e(a)}}function vBi(i,e,t){let n,r,o;return a;function a(u){return u===46||u===95?i.check(ait,l,s)(u):u===null||Fa(u)||p_(u)||u!==45&&vF(u)?l(u):(o=!0,i.consume(u),a)}function s(u){return u===95?n=!0:(r=n,n=void 0),i.consume(u),a}function l(u){return r||n||!o?t(u):e(u)}}function bBi(i,e){let t=0,n=0;return r;function r(a){return a===40?(t++,i.consume(a),r):a===41&&n<t?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?i.check(ait,e,o)(a):a===null||Fa(a)||p_(a)?e(a):(i.consume(a),r)}function o(a){return a===41&&n++,i.consume(a),r}}function yBi(i,e,t){return n;function n(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(i.consume(s),n):s===38?(i.consume(s),o):s===93?(i.consume(s),r):s===60||s===null||Fa(s)||p_(s)?e(s):t(s)}function r(s){return s===null||s===40||s===91||Fa(s)||p_(s)?e(s):n(s)}function o(s){return Oc(s)?a(s):t(s)}function a(s){return s===59?(i.consume(s),n):Oc(s)?(i.consume(s),a):t(s)}}function _Bi(i,e,t){return n;function n(o){return i.consume(o),r}function r(o){return nc(o)?t(o):e(o)}}function uit(i){return i===null||i===40||i===42||i===95||i===91||i===93||i===126||Fa(i)}function cit(i){return!Oc(i)}function hit(i){return!(i===47||Ice(i))}function Ice(i){return i===43||i===45||i===46||i===95||nc(i)}function Dce(i){let e=i.length,t=!1;for(;e--;){const n=i[e][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){t=!0;break}if(n._gfmAutolinkLiteralWalkedInto){t=!1;break}}return i.length>0&&!t&&(i[i.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const CBi={tokenize:MBi,partial:!0};function xBi(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:ABi,continuation:{tokenize:TBi},exit:RBi}},text:{91:{name:"gfmFootnoteCall",tokenize:EBi},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:SBi,resolveTo:wBi}}}}function SBi(i,e,t){const n=this;let r=n.events.length;const o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a;for(;r--;){const l=n.events[r][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return t(l);const u=Rg(n.sliceSerialize({start:a.end,end:n.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?t(l):(i.enter("gfmFootnoteCallLabelMarker"),i.consume(l),i.exit("gfmFootnoteCallLabelMarker"),e(l))}}function wBi(i,e){let t=i.length;for(;t--;)if(i[t][1].type==="labelImage"&&i[t][0]==="enter"){i[t][1];break}i[t+1][1].type="data",i[t+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},i[t+3][1].start),end:Object.assign({},i[i.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},i[t+3][1].end),end:Object.assign({},i[t+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},i[i.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[i[t+1],i[t+2],["enter",n,e],i[t+3],i[t+4],["enter",r,e],["exit",r,e],["enter",o,e],["enter",a,e],["exit",a,e],["exit",o,e],i[i.length-2],i[i.length-1],["exit",n,e]];return i.splice(t,i.length-t+1,...s),i}function EBi(i,e,t){const n=this,r=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o=0,a;return s;function s(h){return i.enter("gfmFootnoteCall"),i.enter("gfmFootnoteCallLabelMarker"),i.consume(h),i.exit("gfmFootnoteCallLabelMarker"),l}function l(h){return h!==94?t(h):(i.enter("gfmFootnoteCallMarker"),i.consume(h),i.exit("gfmFootnoteCallMarker"),i.enter("gfmFootnoteCallString"),i.enter("chunkString").contentType="string",u)}function u(h){if(o>999||h===93&&!a||h===null||h===91||Fa(h))return t(h);if(h===93){i.exit("chunkString");const d=i.exit("gfmFootnoteCallString");return r.includes(Rg(n.sliceSerialize(d)))?(i.enter("gfmFootnoteCallLabelMarker"),i.consume(h),i.exit("gfmFootnoteCallLabelMarker"),i.exit("gfmFootnoteCall"),e):t(h)}return Fa(h)||(a=!0),o++,i.consume(h),h===92?c:u}function c(h){return h===91||h===92||h===93?(i.consume(h),o++,u):u(h)}}function ABi(i,e,t){const n=this,r=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(g){return i.enter("gfmFootnoteDefinition")._container=!0,i.enter("gfmFootnoteDefinitionLabel"),i.enter("gfmFootnoteDefinitionLabelMarker"),i.consume(g),i.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(i.enter("gfmFootnoteDefinitionMarker"),i.consume(g),i.exit("gfmFootnoteDefinitionMarker"),i.enter("gfmFootnoteDefinitionLabelString"),i.enter("chunkString").contentType="string",c):t(g)}function c(g){if(a>999||g===93&&!s||g===null||g===91||Fa(g))return t(g);if(g===93){i.exit("chunkString");const p=i.exit("gfmFootnoteDefinitionLabelString");return o=Rg(n.sliceSerialize(p)),i.enter("gfmFootnoteDefinitionLabelMarker"),i.consume(g),i.exit("gfmFootnoteDefinitionLabelMarker"),i.exit("gfmFootnoteDefinitionLabel"),d}return Fa(g)||(s=!0),a++,i.consume(g),g===92?h:c}function h(g){return g===91||g===92||g===93?(i.consume(g),a++,c):c(g)}function d(g){return g===58?(i.enter("definitionMarker"),i.consume(g),i.exit("definitionMarker"),r.includes(o)||r.push(o),Ko(i,f,"gfmFootnoteDefinitionWhitespace")):t(g)}function f(g){return e(g)}}function TBi(i,e,t){return i.check(d8,e,i.attempt(CBi,e,t))}function RBi(i){i.exit("gfmFootnoteDefinition")}function MBi(i,e,t){const n=this;return Ko(i,r,"gfmFootnoteDefinitionIndent",5);function r(o){const a=n.events[n.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?e(o):t(o)}}function kBi(i){let t=(i||{}).singleTilde;const n={name:"strikethrough",tokenize:o,resolveAll:r};return t==null&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(a,s){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let u=l;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[l][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[l][1].end)},h={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[l][1].start)},d=[["enter",c,s],["enter",a[u][1],s],["exit",a[u][1],s],["enter",h,s]],f=s.parser.constructs.insideSpan.null;f&&ef(d,d.length,0,bF(f,a.slice(u+1,l),s)),ef(d,d.length,0,[["exit",h,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",c,s]]),ef(a,u-1,l-u+3,d),l=u+d.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,s,l){const u=this.previous,c=this.events;let h=0;return d;function d(g){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(g):(a.enter("strikethroughSequenceTemporary"),f(g))}function f(g){const p=KS(u);if(g===126)return h>1?l(g):(a.consume(g),h++,f);if(h<2&&!t)return l(g);const m=a.exit("strikethroughSequenceTemporary"),v=KS(g);return m._open=!v||v===2&&!!p,m._close=!p||p===2&&!!v,s(g)}}}class OBi{constructor(){this.map=[]}add(e,t,n){IBi(this,e,t,n)}consume(e){if(this.map.sort(function(o,a){return o[0]-a[0]}),this.map.length===0)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const o of r)e.push(o);r=n.pop()}this.map.length=0}}function IBi(i,e,t,n){let r=0;if(!(t===0&&n.length===0)){for(;r<i.map.length;){if(i.map[r][0]===e){i.map[r][1]+=t,i.map[r][2].push(...n);return}r+=1}i.map.push([e,t,n])}}function DBi(i,e){let t=!1;const n=[];for(;e<i.length;){const r=i[e];if(t){if(r[0]==="enter")r[1].type==="tableContent"&&n.push(i[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(i[e-1][1].type==="tableDelimiterMarker"){const o=n.length-1;n[o]=n[o]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(t=!0);e+=1}return n}function PBi(){return{flow:{null:{name:"table",tokenize:LBi,resolveAll:BBi}}}}function LBi(i,e,t){const n=this;let r=0,o=0,a;return s;function s(T){let R=n.events.length-1;for(;R>-1;){const P=n.events[R][1].type;if(P==="lineEnding"||P==="linePrefix")R--;else break}const k=R>-1?n.events[R][1].type:null,O=k==="tableHead"||k==="tableRow"?x:l;return O===x&&n.parser.lazy[n.now().line]?t(T):O(T)}function l(T){return i.enter("tableHead"),i.enter("tableRow"),u(T)}function u(T){return T===124||(a=!0,o+=1),c(T)}function c(T){return T===null?t(T):kr(T)?o>1?(o=0,n.interrupt=!0,i.exit("tableRow"),i.enter("lineEnding"),i.consume(T),i.exit("lineEnding"),f):t(T):Ro(T)?Ko(i,c,"whitespace")(T):(o+=1,a&&(a=!1,r+=1),T===124?(i.enter("tableCellDivider"),i.consume(T),i.exit("tableCellDivider"),a=!0,c):(i.enter("data"),h(T)))}function h(T){return T===null||T===124||Fa(T)?(i.exit("data"),c(T)):(i.consume(T),T===92?d:h)}function d(T){return T===92||T===124?(i.consume(T),h):h(T)}function f(T){return n.interrupt=!1,n.parser.lazy[n.now().line]?t(T):(i.enter("tableDelimiterRow"),a=!1,Ro(T)?Ko(i,g,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):g(T))}function g(T){return T===45||T===58?m(T):T===124?(a=!0,i.enter("tableCellDivider"),i.consume(T),i.exit("tableCellDivider"),p):S(T)}function p(T){return Ro(T)?Ko(i,m,"whitespace")(T):m(T)}function m(T){return T===58?(o+=1,a=!0,i.enter("tableDelimiterMarker"),i.consume(T),i.exit("tableDelimiterMarker"),v):T===45?(o+=1,v(T)):T===null||kr(T)?_(T):S(T)}function v(T){return T===45?(i.enter("tableDelimiterFiller"),b(T)):S(T)}function b(T){return T===45?(i.consume(T),b):T===58?(a=!0,i.exit("tableDelimiterFiller"),i.enter("tableDelimiterMarker"),i.consume(T),i.exit("tableDelimiterMarker"),y):(i.exit("tableDelimiterFiller"),y(T))}function y(T){return Ro(T)?Ko(i,_,"whitespace")(T):_(T)}function _(T){return T===124?g(T):T===null||kr(T)?!a||r!==o?S(T):(i.exit("tableDelimiterRow"),i.exit("tableHead"),e(T)):S(T)}function S(T){return t(T)}function x(T){return i.enter("tableRow"),w(T)}function w(T){return T===124?(i.enter("tableCellDivider"),i.consume(T),i.exit("tableCellDivider"),w):T===null||kr(T)?(i.exit("tableRow"),e(T)):Ro(T)?Ko(i,w,"whitespace")(T):(i.enter("data"),E(T))}function E(T){return T===null||T===124||Fa(T)?(i.exit("data"),w(T)):(i.consume(T),T===92?A:E)}function A(T){return T===92||T===124?(i.consume(T),E):E(T)}}function BBi(i,e){let t=-1,n=!0,r=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,u,c,h;const d=new OBi;for(;++t<i.length;){const f=i[t],g=f[1];f[0]==="enter"?g.type==="tableHead"?(s=!1,l!==0&&(dit(d,e,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(t,0,[["enter",u,e]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(n=!0,h=void 0,o=[0,0,0,0],a=[0,t+1,0,0],s&&(s=!1,c={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(t,0,[["enter",c,e]])),r=g.type==="tableDelimiterRow"?2:c?3:1):r&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(n=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],h=HF(d,e,o,r,void 0,h),o=[0,0,0,0]),a[2]=t)):g.type==="tableCellDivider"&&(n?n=!1:(o[1]!==0&&(a[0]=a[1],h=HF(d,e,o,r,void 0,h)),o=a,a=[o[1],t,0,0])):g.type==="tableHead"?(s=!0,l=t):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=t,o[1]!==0?(a[0]=a[1],h=HF(d,e,o,r,t,h)):a[1]!==0&&(h=HF(d,e,a,r,t,h)),r=0):r&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(a[3]=t)}for(l!==0&&dit(d,e,l,u,c),d.consume(e.events),t=-1;++t<e.events.length;){const f=e.events[t];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=DBi(e.events,t))}return i}function HF(i,e,t,n,r,o){const a=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",s="tableContent";t[0]!==0&&(o.end=Object.assign({},rw(e.events,t[0])),i.add(t[0],0,[["exit",o,e]]));const l=rw(e.events,t[1]);if(o={type:a,start:Object.assign({},l),end:Object.assign({},l)},i.add(t[1],0,[["enter",o,e]]),t[2]!==0){const u=rw(e.events,t[2]),c=rw(e.events,t[3]),h={type:s,start:Object.assign({},u),end:Object.assign({},c)};if(i.add(t[2],0,[["enter",h,e]]),n!==2){const d=e.events[t[2]],f=e.events[t[3]];if(d[1].end=Object.assign({},f[1].end),d[1].type="chunkText",d[1].contentType="text",t[3]>t[2]+1){const g=t[2]+1,p=t[3]-t[2]-1;i.add(g,p,[])}}i.add(t[3]+1,0,[["exit",h,e]])}return r!==void 0&&(o.end=Object.assign({},rw(e.events,r)),i.add(r,0,[["exit",o,e]]),o=void 0),o}function dit(i,e,t,n,r){const o=[],a=rw(e.events,t);r&&(r.end=Object.assign({},a),o.push(["exit",r,e])),n.end=Object.assign({},a),o.push(["exit",n,e]),i.add(t+1,0,o)}function rw(i,e){const t=i[e],n=t[0]==="enter"?"start":"end";return t[1][n]}const FBi={name:"tasklistCheck",tokenize:HBi};function NBi(){return{text:{91:FBi}}}function HBi(i,e,t){const n=this;return r;function r(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?t(l):(i.enter("taskListCheck"),i.enter("taskListCheckMarker"),i.consume(l),i.exit("taskListCheckMarker"),o)}function o(l){return Fa(l)?(i.enter("taskListCheckValueUnchecked"),i.consume(l),i.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(i.enter("taskListCheckValueChecked"),i.consume(l),i.exit("taskListCheckValueChecked"),a):t(l)}function a(l){return l===93?(i.enter("taskListCheckMarker"),i.consume(l),i.exit("taskListCheckMarker"),i.exit("taskListCheck"),s):t(l)}function s(l){return kr(l)?e(l):Ro(l)?i.check({tokenize:$Bi},e,t)(l):t(l)}}function $Bi(i,e,t){return Ko(i,n,"whitespace");function n(r){return r===null?t(r):e(r)}}function zBi(i){return UJe([dBi(),xBi(),kBi(i),PBi(),NBi()])}const WBi={};function VBi(i){const e=this,t=i||WBi,n=e.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(zBi(t)),o.push(lBi()),a.push(uBi(t))}const jBi=()=>{const{eventBus:i}=TGe();return i.emit.bind(i)},UBi=s=>{var l=s,{renderMode:i="md",children:e,components:t,rehypePlugins:n,remarkPlugins:r,eventSubs:o}=l,a=Rh(l,["renderMode","children","components","rehypePlugins","remarkPlugins","eventSubs"]);const u=ce.useMemo(()=>new _9i,[]),c=ce.useMemo(()=>({eventBus:u}),[u]);return ce.useEffect(()=>{if(o){const h=Object.keys(o);for(const d of h)u.on(d,o[d]);return()=>{for(const d of h)u.off(d,o[d])}}},[u,o]),we.jsxs(AGe.Provider,{value:c,children:[i==="md"&&we.jsx(bOi,Hi(ke({components:t,rehypePlugins:[PPi,...n||[]],remarkPlugins:[VBi,...r||[]]},a),{children:e})),i==="json"&&we.jsx(CQe,{content:e,components:ke({},Qy),loadingTimeout:50})]})},fit=ce.memo(UBi),GBi=SQe(),qBi=i=>{try{return!!JSON.parse(i)}catch(e){return!1}},YBi=n=>{var r=n,{children:i,components:e}=r,t=Rh(r,["children","components"]);const o=ce.Children.toArray(i).join("").trim(),a=qBi(o)?"json":"md";return we.jsx(fit,Hi(ke({renderMode:a,components:ke({code:GBi},e)},t),{children:o}))},XBi=ce.memo(YBi);Ki.Area=p$e,Ki.Bar=m$e,Ki.ChartType=Gs,Ki.ConfigProvider=b9i,Ki.DEFAULT_CHART_COMPONENTS=Qy,Ki.Donut=cze,Ki.Funnel=hze,Ki.GPTVis=XBi,Ki.GPTVisLite=fit,Ki.Gauge=dze,Ki.Heatmap=fze,Ki.Indicator=pze,Ki.Line=mze,Ki.Pie=vze,Ki.Radar=bze,Ki.Rank=yze,Ki.Scatter=_ze,Ki.Table=wGe,Ki.VisText=_fi,Ki.chartTypeOptions=w3e,Ki.getChartCategory=Lf,Ki.handleChartDataSourceChange=dTt,Ki.handleChartTypeChange=E3e,Ki.transformQueryData2ChartJson=MV,Ki.useEventPublish=jBi,Ki.version=RGe,Ki.withChartCode=xQe,Ki.withDefaultChartCode=SQe,Object.defineProperty(Ki,Symbol.toStringTag,{value:"Module"})}));
|
|
11528
|
+
`))}function l(f,g,p,m){const v=p.enter("tableCell"),b=p.enter("phrasing"),y=p.containerPhrasing(f,Hi(ke({},m),{before:o,after:o}));return b(),v(),y}function u(f,g){return vLi(f,{align:g,alignDelimiters:n,padding:t,stringLength:r})}function c(f,g,p){const m=f.children;let v=-1;const b=[],y=g.enter("table");for(;++v<m.length;)b[v]=h(m[v],g,p);return y(),b}function h(f,g,p){const m=f.children;let v=-1;const b=[],y=g.enter("tableRow");for(;++v<m.length;)b[v]=l(m[v],f,g,p);return y(),b}function d(f,g,p){let m=tit.inlineCode(f,g,p);return p.stack.includes("tableCell")&&(m=m.replace(/\|/g,"\\$&")),m}}function rBi(){return{exit:{taskListCheckValueChecked:nit,taskListCheckValueUnchecked:nit,paragraph:aBi}}}function oBi(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:sBi}}}function nit(i){const e=this.stack[this.stack.length-2];e.type,e.checked=i.type==="taskListCheckValueChecked"}function aBi(i){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const n=t.children[0];if(n&&n.type==="text"){const r=e.children;let o=-1,a;for(;++o<r.length;){const s=r[o];if(s.type==="paragraph"){a=s;break}}a===t&&(n.value=n.value.slice(1),n.value.length===0?t.children.shift():t.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,t.position.start=Object.assign({},n.position.start)))}}this.exit(i)}function sBi(i,e,t,n){const r=i.children[0],o=typeof i.checked=="boolean"&&r&&r.type==="paragraph",a="["+(i.checked?"x":" ")+"] ",s=t.createTracker(n);o&&s.move(a);let l=tit.listItem(i,e,t,ke(ke({},n),s.current()));return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+a}}function lBi(){return[$Pi(),sLi(),hLi(),ZLi(),rBi()]}function uBi(i){return{extensions:[zPi(),lLi(i),dLi(),nBi(i),oBi()]}}const cBi={tokenize:mBi,partial:!0},rit={tokenize:vBi,partial:!0},oit={tokenize:bBi,partial:!0},ait={tokenize:yBi,partial:!0},hBi={tokenize:_Bi,partial:!0},sit={name:"wwwAutolink",tokenize:gBi,previous:uit},lit={name:"protocolAutolink",tokenize:pBi,previous:cit},Pm={name:"emailAutolink",tokenize:fBi,previous:hit},Yp={};function dBi(){return{text:Yp}}let y_=48;for(;y_<123;)Yp[y_]=Pm,y_++,y_===58?y_=65:y_===91&&(y_=97);Yp[43]=Pm,Yp[45]=Pm,Yp[46]=Pm,Yp[95]=Pm,Yp[72]=[Pm,lit],Yp[104]=[Pm,lit],Yp[87]=[Pm,sit],Yp[119]=[Pm,sit];function fBi(i,e,t){const n=this;let r,o;return a;function a(h){return!Ice(h)||!hit.call(n,n.previous)||Dce(n.events)?t(h):(i.enter("literalAutolink"),i.enter("literalAutolinkEmail"),s(h))}function s(h){return Ice(h)?(i.consume(h),s):h===64?(i.consume(h),l):t(h)}function l(h){return h===46?i.check(hBi,c,u)(h):h===45||h===95||nc(h)?(o=!0,i.consume(h),l):c(h)}function u(h){return i.consume(h),r=!0,l}function c(h){return o&&r&&Oc(n.previous)?(i.exit("literalAutolinkEmail"),i.exit("literalAutolink"),e(h)):t(h)}}function gBi(i,e,t){const n=this;return r;function r(a){return a!==87&&a!==119||!uit.call(n,n.previous)||Dce(n.events)?t(a):(i.enter("literalAutolink"),i.enter("literalAutolinkWww"),i.check(cBi,i.attempt(rit,i.attempt(oit,o),t),t)(a))}function o(a){return i.exit("literalAutolinkWww"),i.exit("literalAutolink"),e(a)}}function pBi(i,e,t){const n=this;let r="",o=!1;return a;function a(h){return(h===72||h===104)&&cit.call(n,n.previous)&&!Dce(n.events)?(i.enter("literalAutolink"),i.enter("literalAutolinkHttp"),r+=String.fromCodePoint(h),i.consume(h),s):t(h)}function s(h){if(Oc(h)&&r.length<5)return r+=String.fromCodePoint(h),i.consume(h),s;if(h===58){const d=r.toLowerCase();if(d==="http"||d==="https")return i.consume(h),l}return t(h)}function l(h){return h===47?(i.consume(h),o?u:(o=!0,l)):t(h)}function u(h){return h===null||mF(h)||Fa(h)||p_(h)||vF(h)?t(h):i.attempt(rit,i.attempt(oit,c),t)(h)}function c(h){return i.exit("literalAutolinkHttp"),i.exit("literalAutolink"),e(h)}}function mBi(i,e,t){let n=0;return r;function r(a){return(a===87||a===119)&&n<3?(n++,i.consume(a),r):a===46&&n===3?(i.consume(a),o):t(a)}function o(a){return a===null?t(a):e(a)}}function vBi(i,e,t){let n,r,o;return a;function a(u){return u===46||u===95?i.check(ait,l,s)(u):u===null||Fa(u)||p_(u)||u!==45&&vF(u)?l(u):(o=!0,i.consume(u),a)}function s(u){return u===95?n=!0:(r=n,n=void 0),i.consume(u),a}function l(u){return r||n||!o?t(u):e(u)}}function bBi(i,e){let t=0,n=0;return r;function r(a){return a===40?(t++,i.consume(a),r):a===41&&n<t?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?i.check(ait,e,o)(a):a===null||Fa(a)||p_(a)?e(a):(i.consume(a),r)}function o(a){return a===41&&n++,i.consume(a),r}}function yBi(i,e,t){return n;function n(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(i.consume(s),n):s===38?(i.consume(s),o):s===93?(i.consume(s),r):s===60||s===null||Fa(s)||p_(s)?e(s):t(s)}function r(s){return s===null||s===40||s===91||Fa(s)||p_(s)?e(s):n(s)}function o(s){return Oc(s)?a(s):t(s)}function a(s){return s===59?(i.consume(s),n):Oc(s)?(i.consume(s),a):t(s)}}function _Bi(i,e,t){return n;function n(o){return i.consume(o),r}function r(o){return nc(o)?t(o):e(o)}}function uit(i){return i===null||i===40||i===42||i===95||i===91||i===93||i===126||Fa(i)}function cit(i){return!Oc(i)}function hit(i){return!(i===47||Ice(i))}function Ice(i){return i===43||i===45||i===46||i===95||nc(i)}function Dce(i){let e=i.length,t=!1;for(;e--;){const n=i[e][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){t=!0;break}if(n._gfmAutolinkLiteralWalkedInto){t=!1;break}}return i.length>0&&!t&&(i[i.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const CBi={tokenize:MBi,partial:!0};function xBi(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:ABi,continuation:{tokenize:TBi},exit:RBi}},text:{91:{name:"gfmFootnoteCall",tokenize:EBi},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:SBi,resolveTo:wBi}}}}function SBi(i,e,t){const n=this;let r=n.events.length;const o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a;for(;r--;){const l=n.events[r][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return t(l);const u=Rg(n.sliceSerialize({start:a.end,end:n.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?t(l):(i.enter("gfmFootnoteCallLabelMarker"),i.consume(l),i.exit("gfmFootnoteCallLabelMarker"),e(l))}}function wBi(i,e){let t=i.length;for(;t--;)if(i[t][1].type==="labelImage"&&i[t][0]==="enter"){i[t][1];break}i[t+1][1].type="data",i[t+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},i[t+3][1].start),end:Object.assign({},i[i.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},i[t+3][1].end),end:Object.assign({},i[t+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},i[i.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[i[t+1],i[t+2],["enter",n,e],i[t+3],i[t+4],["enter",r,e],["exit",r,e],["enter",o,e],["enter",a,e],["exit",a,e],["exit",o,e],i[i.length-2],i[i.length-1],["exit",n,e]];return i.splice(t,i.length-t+1,...s),i}function EBi(i,e,t){const n=this,r=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o=0,a;return s;function s(h){return i.enter("gfmFootnoteCall"),i.enter("gfmFootnoteCallLabelMarker"),i.consume(h),i.exit("gfmFootnoteCallLabelMarker"),l}function l(h){return h!==94?t(h):(i.enter("gfmFootnoteCallMarker"),i.consume(h),i.exit("gfmFootnoteCallMarker"),i.enter("gfmFootnoteCallString"),i.enter("chunkString").contentType="string",u)}function u(h){if(o>999||h===93&&!a||h===null||h===91||Fa(h))return t(h);if(h===93){i.exit("chunkString");const d=i.exit("gfmFootnoteCallString");return r.includes(Rg(n.sliceSerialize(d)))?(i.enter("gfmFootnoteCallLabelMarker"),i.consume(h),i.exit("gfmFootnoteCallLabelMarker"),i.exit("gfmFootnoteCall"),e):t(h)}return Fa(h)||(a=!0),o++,i.consume(h),h===92?c:u}function c(h){return h===91||h===92||h===93?(i.consume(h),o++,u):u(h)}}function ABi(i,e,t){const n=this,r=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(g){return i.enter("gfmFootnoteDefinition")._container=!0,i.enter("gfmFootnoteDefinitionLabel"),i.enter("gfmFootnoteDefinitionLabelMarker"),i.consume(g),i.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(i.enter("gfmFootnoteDefinitionMarker"),i.consume(g),i.exit("gfmFootnoteDefinitionMarker"),i.enter("gfmFootnoteDefinitionLabelString"),i.enter("chunkString").contentType="string",c):t(g)}function c(g){if(a>999||g===93&&!s||g===null||g===91||Fa(g))return t(g);if(g===93){i.exit("chunkString");const p=i.exit("gfmFootnoteDefinitionLabelString");return o=Rg(n.sliceSerialize(p)),i.enter("gfmFootnoteDefinitionLabelMarker"),i.consume(g),i.exit("gfmFootnoteDefinitionLabelMarker"),i.exit("gfmFootnoteDefinitionLabel"),d}return Fa(g)||(s=!0),a++,i.consume(g),g===92?h:c}function h(g){return g===91||g===92||g===93?(i.consume(g),a++,c):c(g)}function d(g){return g===58?(i.enter("definitionMarker"),i.consume(g),i.exit("definitionMarker"),r.includes(o)||r.push(o),Ko(i,f,"gfmFootnoteDefinitionWhitespace")):t(g)}function f(g){return e(g)}}function TBi(i,e,t){return i.check(d8,e,i.attempt(CBi,e,t))}function RBi(i){i.exit("gfmFootnoteDefinition")}function MBi(i,e,t){const n=this;return Ko(i,r,"gfmFootnoteDefinitionIndent",5);function r(o){const a=n.events[n.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?e(o):t(o)}}function kBi(i){let t=(i||{}).singleTilde;const n={name:"strikethrough",tokenize:o,resolveAll:r};return t==null&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(a,s){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let u=l;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[l][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[l][1].end)},h={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[l][1].start)},d=[["enter",c,s],["enter",a[u][1],s],["exit",a[u][1],s],["enter",h,s]],f=s.parser.constructs.insideSpan.null;f&&ef(d,d.length,0,bF(f,a.slice(u+1,l),s)),ef(d,d.length,0,[["exit",h,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",c,s]]),ef(a,u-1,l-u+3,d),l=u+d.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,s,l){const u=this.previous,c=this.events;let h=0;return d;function d(g){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(g):(a.enter("strikethroughSequenceTemporary"),f(g))}function f(g){const p=KS(u);if(g===126)return h>1?l(g):(a.consume(g),h++,f);if(h<2&&!t)return l(g);const m=a.exit("strikethroughSequenceTemporary"),v=KS(g);return m._open=!v||v===2&&!!p,m._close=!p||p===2&&!!v,s(g)}}}class OBi{constructor(){this.map=[]}add(e,t,n){IBi(this,e,t,n)}consume(e){if(this.map.sort(function(o,a){return o[0]-a[0]}),this.map.length===0)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const o of r)e.push(o);r=n.pop()}this.map.length=0}}function IBi(i,e,t,n){let r=0;if(!(t===0&&n.length===0)){for(;r<i.map.length;){if(i.map[r][0]===e){i.map[r][1]+=t,i.map[r][2].push(...n);return}r+=1}i.map.push([e,t,n])}}function DBi(i,e){let t=!1;const n=[];for(;e<i.length;){const r=i[e];if(t){if(r[0]==="enter")r[1].type==="tableContent"&&n.push(i[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(i[e-1][1].type==="tableDelimiterMarker"){const o=n.length-1;n[o]=n[o]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(t=!0);e+=1}return n}function PBi(){return{flow:{null:{name:"table",tokenize:LBi,resolveAll:BBi}}}}function LBi(i,e,t){const n=this;let r=0,o=0,a;return s;function s(T){let R=n.events.length-1;for(;R>-1;){const P=n.events[R][1].type;if(P==="lineEnding"||P==="linePrefix")R--;else break}const k=R>-1?n.events[R][1].type:null,O=k==="tableHead"||k==="tableRow"?x:l;return O===x&&n.parser.lazy[n.now().line]?t(T):O(T)}function l(T){return i.enter("tableHead"),i.enter("tableRow"),u(T)}function u(T){return T===124||(a=!0,o+=1),c(T)}function c(T){return T===null?t(T):kr(T)?o>1?(o=0,n.interrupt=!0,i.exit("tableRow"),i.enter("lineEnding"),i.consume(T),i.exit("lineEnding"),f):t(T):Ro(T)?Ko(i,c,"whitespace")(T):(o+=1,a&&(a=!1,r+=1),T===124?(i.enter("tableCellDivider"),i.consume(T),i.exit("tableCellDivider"),a=!0,c):(i.enter("data"),h(T)))}function h(T){return T===null||T===124||Fa(T)?(i.exit("data"),c(T)):(i.consume(T),T===92?d:h)}function d(T){return T===92||T===124?(i.consume(T),h):h(T)}function f(T){return n.interrupt=!1,n.parser.lazy[n.now().line]?t(T):(i.enter("tableDelimiterRow"),a=!1,Ro(T)?Ko(i,g,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):g(T))}function g(T){return T===45||T===58?m(T):T===124?(a=!0,i.enter("tableCellDivider"),i.consume(T),i.exit("tableCellDivider"),p):S(T)}function p(T){return Ro(T)?Ko(i,m,"whitespace")(T):m(T)}function m(T){return T===58?(o+=1,a=!0,i.enter("tableDelimiterMarker"),i.consume(T),i.exit("tableDelimiterMarker"),v):T===45?(o+=1,v(T)):T===null||kr(T)?_(T):S(T)}function v(T){return T===45?(i.enter("tableDelimiterFiller"),b(T)):S(T)}function b(T){return T===45?(i.consume(T),b):T===58?(a=!0,i.exit("tableDelimiterFiller"),i.enter("tableDelimiterMarker"),i.consume(T),i.exit("tableDelimiterMarker"),y):(i.exit("tableDelimiterFiller"),y(T))}function y(T){return Ro(T)?Ko(i,_,"whitespace")(T):_(T)}function _(T){return T===124?g(T):T===null||kr(T)?!a||r!==o?S(T):(i.exit("tableDelimiterRow"),i.exit("tableHead"),e(T)):S(T)}function S(T){return t(T)}function x(T){return i.enter("tableRow"),w(T)}function w(T){return T===124?(i.enter("tableCellDivider"),i.consume(T),i.exit("tableCellDivider"),w):T===null||kr(T)?(i.exit("tableRow"),e(T)):Ro(T)?Ko(i,w,"whitespace")(T):(i.enter("data"),E(T))}function E(T){return T===null||T===124||Fa(T)?(i.exit("data"),w(T)):(i.consume(T),T===92?A:E)}function A(T){return T===92||T===124?(i.consume(T),E):E(T)}}function BBi(i,e){let t=-1,n=!0,r=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,u,c,h;const d=new OBi;for(;++t<i.length;){const f=i[t],g=f[1];f[0]==="enter"?g.type==="tableHead"?(s=!1,l!==0&&(dit(d,e,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(t,0,[["enter",u,e]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(n=!0,h=void 0,o=[0,0,0,0],a=[0,t+1,0,0],s&&(s=!1,c={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(t,0,[["enter",c,e]])),r=g.type==="tableDelimiterRow"?2:c?3:1):r&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(n=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],h=HF(d,e,o,r,void 0,h),o=[0,0,0,0]),a[2]=t)):g.type==="tableCellDivider"&&(n?n=!1:(o[1]!==0&&(a[0]=a[1],h=HF(d,e,o,r,void 0,h)),o=a,a=[o[1],t,0,0])):g.type==="tableHead"?(s=!0,l=t):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=t,o[1]!==0?(a[0]=a[1],h=HF(d,e,o,r,t,h)):a[1]!==0&&(h=HF(d,e,a,r,t,h)),r=0):r&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(a[3]=t)}for(l!==0&&dit(d,e,l,u,c),d.consume(e.events),t=-1;++t<e.events.length;){const f=e.events[t];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=DBi(e.events,t))}return i}function HF(i,e,t,n,r,o){const a=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",s="tableContent";t[0]!==0&&(o.end=Object.assign({},rw(e.events,t[0])),i.add(t[0],0,[["exit",o,e]]));const l=rw(e.events,t[1]);if(o={type:a,start:Object.assign({},l),end:Object.assign({},l)},i.add(t[1],0,[["enter",o,e]]),t[2]!==0){const u=rw(e.events,t[2]),c=rw(e.events,t[3]),h={type:s,start:Object.assign({},u),end:Object.assign({},c)};if(i.add(t[2],0,[["enter",h,e]]),n!==2){const d=e.events[t[2]],f=e.events[t[3]];if(d[1].end=Object.assign({},f[1].end),d[1].type="chunkText",d[1].contentType="text",t[3]>t[2]+1){const g=t[2]+1,p=t[3]-t[2]-1;i.add(g,p,[])}}i.add(t[3]+1,0,[["exit",h,e]])}return r!==void 0&&(o.end=Object.assign({},rw(e.events,r)),i.add(r,0,[["exit",o,e]]),o=void 0),o}function dit(i,e,t,n,r){const o=[],a=rw(e.events,t);r&&(r.end=Object.assign({},a),o.push(["exit",r,e])),n.end=Object.assign({},a),o.push(["exit",n,e]),i.add(t+1,0,o)}function rw(i,e){const t=i[e],n=t[0]==="enter"?"start":"end";return t[1][n]}const FBi={name:"tasklistCheck",tokenize:HBi};function NBi(){return{text:{91:FBi}}}function HBi(i,e,t){const n=this;return r;function r(l){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?t(l):(i.enter("taskListCheck"),i.enter("taskListCheckMarker"),i.consume(l),i.exit("taskListCheckMarker"),o)}function o(l){return Fa(l)?(i.enter("taskListCheckValueUnchecked"),i.consume(l),i.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(i.enter("taskListCheckValueChecked"),i.consume(l),i.exit("taskListCheckValueChecked"),a):t(l)}function a(l){return l===93?(i.enter("taskListCheckMarker"),i.consume(l),i.exit("taskListCheckMarker"),i.exit("taskListCheck"),s):t(l)}function s(l){return kr(l)?e(l):Ro(l)?i.check({tokenize:$Bi},e,t)(l):t(l)}}function $Bi(i,e,t){return Ko(i,n,"whitespace");function n(r){return r===null?t(r):e(r)}}function zBi(i){return UJe([dBi(),xBi(),kBi(i),PBi(),NBi()])}const WBi={};function VBi(i){const e=this,t=i||WBi,n=e.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),a=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(zBi(t)),o.push(lBi()),a.push(uBi(t))}const jBi=()=>{const{eventBus:i}=TGe();return i.emit.bind(i)},UBi=s=>{var l=s,{renderMode:i="md",children:e,components:t,rehypePlugins:n,remarkPlugins:r,eventSubs:o}=l,a=Rh(l,["renderMode","children","components","rehypePlugins","remarkPlugins","eventSubs"]);const u=ce.useMemo(()=>new _9i,[]),c=ce.useMemo(()=>({eventBus:u}),[u]);return ce.useEffect(()=>{if(o){const h=Object.keys(o);for(const d of h)u.on(d,o[d]);return()=>{for(const d of h)u.off(d,o[d])}}},[u,o]),we.jsxs(AGe.Provider,{value:c,children:[i==="md"&&we.jsx(bOi,Hi(ke({components:t,rehypePlugins:[PPi,...n||[]],remarkPlugins:[VBi,...r||[]]},a),{children:e})),i==="json"&&we.jsx(CQe,{content:e,components:ke({},Qy),loadingTimeout:50})]})},fit=ce.memo(UBi),GBi=SQe(),qBi=i=>{try{const e=JSON.parse(i);return e!==null&&typeof e=="object"&&!Array.isArray(e)}catch(e){return!1}},YBi=n=>{var r=n,{children:i,components:e}=r,t=Rh(r,["children","components"]);const o=ce.Children.toArray(i).join("").trim(),a=qBi(o)?"json":"md";return we.jsx(fit,Hi(ke({renderMode:a,components:ke({code:GBi},e)},t),{children:o}))},XBi=ce.memo(YBi);Ki.Area=p$e,Ki.Bar=m$e,Ki.ChartType=Gs,Ki.ConfigProvider=b9i,Ki.DEFAULT_CHART_COMPONENTS=Qy,Ki.Donut=cze,Ki.Funnel=hze,Ki.GPTVis=XBi,Ki.GPTVisLite=fit,Ki.Gauge=dze,Ki.Heatmap=fze,Ki.Indicator=pze,Ki.Line=mze,Ki.Pie=vze,Ki.Radar=bze,Ki.Rank=yze,Ki.Scatter=_ze,Ki.Table=wGe,Ki.VisText=_fi,Ki.chartTypeOptions=w3e,Ki.getChartCategory=Lf,Ki.handleChartDataSourceChange=dTt,Ki.handleChartTypeChange=E3e,Ki.transformQueryData2ChartJson=MV,Ki.useEventPublish=jBi,Ki.version=RGe,Ki.withChartCode=xQe,Ki.withDefaultChartCode=SQe,Object.defineProperty(Ki,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/index.umd.js.gz
CHANGED
|
Binary file
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const version = "3.0.
|
|
1
|
+
declare const version = "3.0.2";
|
|
2
2
|
export default version;
|