@sisense/sdk-ui 2.3.1 → 2.4.0
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/ai.cjs +17 -16
- package/dist/ai.js +767 -670
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +4 -4
- package/dist/{derive-chart-family-5O0nGmIH.cjs → derive-chart-family-Cqw-HJq1.cjs} +9 -9
- package/dist/{derive-chart-family-H5uuw6lv.js → derive-chart-family-woVAnbRi.js} +6909 -6862
- package/dist/{dimensions-aqixuZxM.js → dimensions-BHdLQaOB.js} +1 -1
- package/dist/{dimensions-R6yuR7CB.cjs → dimensions-oGJ_aWd5.cjs} +1 -1
- package/dist/index.cjs +15 -15
- package/dist/index.js +7589 -7286
- package/dist/index.umd.js +274 -273
- package/dist/packages/sdk-ui/src/ai/api/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/common/icon-button.d.ts +1 -1
- package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/api/rest-api.d.ts +9 -4
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/components/button.d.ts +1 -0
- package/dist/packages/sdk-ui/src/common/components/menu/context-menu/context-menu.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/components/menu/context-menu/menu.d.ts +4 -2
- package/dist/packages/sdk-ui/src/common/components/menu/menu-button.d.ts +8 -0
- package/dist/packages/sdk-ui/src/common/components/menu/types.d.ts +3 -1
- package/dist/packages/sdk-ui/src/common/components/popper.d.ts +6 -1
- package/dist/packages/sdk-ui/src/common/hooks/use-defaults.d.ts +1 -2
- package/dist/packages/sdk-ui/src/common/icons/drag-handle-icon.d.ts +3 -0
- package/dist/packages/sdk-ui/src/custom-widgets-provider/custom-widgets-context.d.ts +8 -0
- package/dist/packages/sdk-ui/src/custom-widgets-provider/custom-widgets-provider-adapter.d.ts +17 -0
- package/dist/packages/sdk-ui/src/custom-widgets-provider/custom-widgets-provider.d.ts +9 -0
- package/dist/packages/sdk-ui/src/custom-widgets-provider/index.d.ts +6 -0
- package/dist/packages/sdk-ui/src/custom-widgets-provider/types.d.ts +19 -0
- package/dist/packages/sdk-ui/src/custom-widgets-provider/use-custom-widgets.d.ts +25 -0
- package/dist/packages/sdk-ui/src/custom-widgets-provider/use-execute-custom-widget-query.d.ts +35 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-widget-wrapper.d.ts +12 -3
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/editable-layout.d.ts +12 -1
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/helpers.d.ts +57 -1
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +13 -0
- package/dist/packages/sdk-ui/src/dashboard/constants.d.ts +11 -3
- package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +11 -1
- package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +72 -21
- package/dist/packages/sdk-ui/src/dashboard/use-dashboard-theme.d.ts +10 -0
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel.d.ts +35 -4
- package/dist/packages/sdk-ui/src/filters/hooks/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/hooks/use-get-filter-members.d.ts +62 -24
- package/dist/packages/sdk-ui/src/index.d.ts +5 -5
- package/dist/packages/sdk-ui/src/indicator-canvas.d.ts +2 -0
- package/dist/packages/sdk-ui/src/models/dashboard/get-dashboard-model.d.ts +7 -0
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model-reducer.d.ts +21 -4
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-persistence.d.ts +8 -1
- package/dist/packages/sdk-ui/src/models/widget/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/widget/widget-model-translator.d.ts +3 -3
- package/dist/packages/sdk-ui/src/models/widget/widget-model.d.ts +3 -3
- package/dist/packages/sdk-ui/src/props.d.ts +52 -11
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +7 -2
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +14 -4
- package/dist/packages/sdk-ui/src/types.d.ts +59 -5
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +6 -6
- package/dist/packages/sdk-ui/src/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
- package/dist/packages/sdk-ui/src/widgets/custom-widget.d.ts +8 -0
- package/dist/{use-common-filters-CN2YnxBs.cjs → use-common-filters-B2TXBt4b.cjs} +62 -62
- package/dist/{use-common-filters-CSwVz8Hy.js → use-common-filters-B3lFbmtY.js} +3792 -3850
- package/dist/{widget-composer-BpeW0NNz.js → widget-composer-BCNu5BzM.js} +12 -12
- package/dist/{widget-composer-BB1-bv-q.cjs → widget-composer-DheWJukc.cjs} +2 -2
- package/package.json +7 -7
- package/dist/packages/sdk-ui/src/plugins-provider/custom-plugins-provider.d.ts +0 -19
- package/dist/packages/sdk-ui/src/plugins-provider/index.d.ts +0 -2
- package/dist/packages/sdk-ui/src/plugins-provider/plugins-context.d.ts +0 -9
- package/dist/packages/sdk-ui/src/plugins-provider/plugins-provider.d.ts +0 -18
- package/dist/packages/sdk-ui/src/plugins-provider/types.d.ts +0 -23
- package/dist/packages/sdk-ui/src/plugins-provider/use-execute-plugin-query.d.ts +0 -24
- package/dist/packages/sdk-ui/src/widgets/plugin-widget.d.ts +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Fn=Object.defineProperty,Kn=Object.defineProperties;var jn=Object.getOwnPropertyDescriptors;var Qe=Object.getOwnPropertySymbols;var as=Object.prototype.hasOwnProperty,ls=Object.prototype.propertyIsEnumerable;var kt=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e);var os=(e,t,s)=>t in e?Fn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,K=(e,t)=>{for(var s in t||(t={}))as.call(t,s)&&os(e,s,t[s]);if(Qe)for(var s of Qe(t))ls.call(t,s)&&os(e,s,t[s]);return e},J=(e,t)=>Kn(e,jn(t));var cs=(e,t)=>{var s={};for(var n in e)as.call(e,n)&&t.indexOf(n)<0&&(s[n]=e[n]);if(e!=null&&Qe)for(var n of Qe(e))t.indexOf(n)<0&&ls.call(e,n)&&(s[n]=e[n]);return s};var Ot=(e,t,s)=>new Promise((n,i)=>{var r=l=>{try{a(s.next(l))}catch(c){i(c)}},o=l=>{try{a(s.throw(l))}catch(c){i(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,o);a((s=s.apply(e,t)).next())}),qn=function(e,t){this[0]=e,this[1]=t};var d=e=>{var t=e[kt("asyncIterator")],s=!1,n,i={};return t==null?(t=e[kt("iterator")](),n=r=>i[r]=o=>t[r](o)):(t=t.call(e),n=r=>i[r]=o=>{if(s){if(s=!1,r==="throw")throw o;return o}return s=!0,{done:!1,value:new qn(new Promise(a=>{var l=t[r](o);if(!(l instanceof Object))throw TypeError("Object expected");a(l)}),1)}}),i[kt("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=r=>{throw r},"return"in t&&n("return"),i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./widget-composer-
|
|
1
|
+
"use strict";var Fn=Object.defineProperty,Kn=Object.defineProperties;var jn=Object.getOwnPropertyDescriptors;var Qe=Object.getOwnPropertySymbols;var as=Object.prototype.hasOwnProperty,ls=Object.prototype.propertyIsEnumerable;var kt=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e);var os=(e,t,s)=>t in e?Fn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,K=(e,t)=>{for(var s in t||(t={}))as.call(t,s)&&os(e,s,t[s]);if(Qe)for(var s of Qe(t))ls.call(t,s)&&os(e,s,t[s]);return e},J=(e,t)=>Kn(e,jn(t));var cs=(e,t)=>{var s={};for(var n in e)as.call(e,n)&&t.indexOf(n)<0&&(s[n]=e[n]);if(e!=null&&Qe)for(var n of Qe(e))t.indexOf(n)<0&&ls.call(e,n)&&(s[n]=e[n]);return s};var Ot=(e,t,s)=>new Promise((n,i)=>{var r=l=>{try{a(s.next(l))}catch(c){i(c)}},o=l=>{try{a(s.throw(l))}catch(c){i(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,o);a((s=s.apply(e,t)).next())}),qn=function(e,t){this[0]=e,this[1]=t};var d=e=>{var t=e[kt("asyncIterator")],s=!1,n,i={};return t==null?(t=e[kt("iterator")](),n=r=>i[r]=o=>t[r](o)):(t=t.call(e),n=r=>i[r]=o=>{if(s){if(s=!1,r==="throw")throw o;return o}return s=!0,{done:!1,value:new qn(new Promise(a=>{var l=t[r](o);if(!(l instanceof Object))throw TypeError("Object expected");a(l)}),1)}}),i[kt("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=r=>{throw r},"return"in t&&n("return"),i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./widget-composer-DheWJukc.cjs"),T=require("./derive-chart-family-Cqw-HJq1.cjs"),rt=require("./dimensions-oGJ_aWd5.cjs"),zt=Symbol.for("yaml.alias"),Mt=Symbol.for("yaml.document"),ee=Symbol.for("yaml.map"),Is=Symbol.for("yaml.pair"),Z=Symbol.for("yaml.scalar"),Ne=Symbol.for("yaml.seq"),Y=Symbol.for("yaml.node.type"),fe=e=>!!e&&typeof e=="object"&&e[Y]===zt,Te=e=>!!e&&typeof e=="object"&&e[Y]===Mt,Ie=e=>!!e&&typeof e=="object"&&e[Y]===ee,_=e=>!!e&&typeof e=="object"&&e[Y]===Is,L=e=>!!e&&typeof e=="object"&&e[Y]===Z,Ce=e=>!!e&&typeof e=="object"&&e[Y]===Ne;function D(e){if(e&&typeof e=="object")switch(e[Y]){case ee:case Ne:return!0}return!1}function B(e){if(e&&typeof e=="object")switch(e[Y]){case zt:case ee:case Z:case Ne:return!0}return!1}const zn=e=>(L(e)||D(e))&&!!e.anchor,U=Symbol("break visit"),Cs=Symbol("skip children"),H=Symbol("remove node");function te(e,t){const s=Ls(t);Te(e)?me(null,e.contents,s,Object.freeze([e]))===H&&(e.contents=null):me(null,e,s,Object.freeze([]))}te.BREAK=U;te.SKIP=Cs;te.REMOVE=H;function me(e,t,s,n){const i=_s(e,t,s,n);if(B(i)||_(i))return Ms(e,n,i),me(e,i,s,n);if(typeof i!="symbol"){if(D(t)){n=Object.freeze(n.concat(t));for(let r=0;r<t.items.length;++r){const o=me(r,t.items[r],s,n);if(typeof o=="number")r=o-1;else{if(o===U)return U;o===H&&(t.items.splice(r,1),r-=1)}}}else if(_(t)){n=Object.freeze(n.concat(t));const r=me("key",t.key,s,n);if(r===U)return U;r===H&&(t.key=null);const o=me("value",t.value,s,n);if(o===U)return U;o===H&&(t.value=null)}}return i}function ot(e,t){return Ot(this,null,function*(){const s=Ls(t);Te(e)?(yield ye(null,e.contents,s,Object.freeze([e])))===H&&(e.contents=null):yield ye(null,e,s,Object.freeze([]))})}ot.BREAK=U;ot.SKIP=Cs;ot.REMOVE=H;function ye(e,t,s,n){return Ot(this,null,function*(){const i=yield _s(e,t,s,n);if(B(i)||_(i))return Ms(e,n,i),ye(e,i,s,n);if(typeof i!="symbol"){if(D(t)){n=Object.freeze(n.concat(t));for(let r=0;r<t.items.length;++r){const o=yield ye(r,t.items[r],s,n);if(typeof o=="number")r=o-1;else{if(o===U)return U;o===H&&(t.items.splice(r,1),r-=1)}}}else if(_(t)){n=Object.freeze(n.concat(t));const r=yield ye("key",t.key,s,n);if(r===U)return U;r===H&&(t.key=null);const o=yield ye("value",t.value,s,n);if(o===U)return U;o===H&&(t.value=null)}}return i})}function Ls(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function _s(e,t,s,n){var i,r,o,a,l;if(typeof s=="function")return s(e,t,n);if(Ie(t))return(i=s.Map)==null?void 0:i.call(s,e,t,n);if(Ce(t))return(r=s.Seq)==null?void 0:r.call(s,e,t,n);if(_(t))return(o=s.Pair)==null?void 0:o.call(s,e,t,n);if(L(t))return(a=s.Scalar)==null?void 0:a.call(s,e,t,n);if(fe(t))return(l=s.Alias)==null?void 0:l.call(s,e,t,n)}function Ms(e,t,s){const n=t[t.length-1];if(D(n))n.items[e]=s;else if(_(n))e==="key"?n.key=s:n.value=s;else if(Te(n))n.contents=s;else{const i=fe(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const Un={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},vn=e=>e.replace(/[!,[\]{}]/g,t=>Un[t]);class z{constructor(t,s){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},z.defaultYaml,t),this.tags=Object.assign({},z.defaultTags,s)}clone(){const t=new z(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new z(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:z.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},z.defaultTags);break}return t}add(t,s){this.atNextDocument&&(this.yaml={explicit:z.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},z.defaultTags),this.atNextDocument=!1);const n=t.trim().split(/[ \t]+/),i=n.shift();switch(i){case"%TAG":{if(n.length!==2&&(s(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[r,o]=n;return this.tags[r]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return s(0,"%YAML directive should contain exactly one part"),!1;const[r]=n;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{const o=/^\d+\.\d+$/.test(r);return s(6,`Unsupported YAML version ${r}`,o),!1}}default:return s(0,`Unknown directive ${i}`,!0),!1}}tagName(t,s){if(t==="!")return"!";if(t[0]!=="!")return s(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const o=t.slice(2,-1);return o==="!"||o==="!!"?(s(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&s("Verbatim tags must end with a >"),o)}const[,n,i]=t.match(new RegExp("^(.*!)([^!]*)$","s"));i||s(`The ${t} tag has no suffix`);const r=this.tags[n];if(r)try{return r+decodeURIComponent(i)}catch(o){return s(String(o)),null}return n==="!"?t:(s(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[s,n]of Object.entries(this.tags))if(t.startsWith(n))return s+vn(t.substring(n.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const s=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let i;if(t&&n.length>0&&B(t.contents)){const r={};te(t.contents,(o,a)=>{B(a)&&a.tag&&(r[a.tag]=!0)}),i=Object.keys(r)}else i=[];for(const[r,o]of n)r==="!!"&&o==="tag:yaml.org,2002:"||(!t||i.some(a=>a.startsWith(o)))&&s.push(`%TAG ${r} ${o}`);return s.join(`
|
|
2
2
|
`)}}z.defaultYaml={explicit:!1,version:"1.2"};z.defaultTags={"!!":"tag:yaml.org,2002:"};function Ds(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const s=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(s)}return!0}function $s(e){const t=new Set;return te(e,{Value(s,n){n.anchor&&t.add(n.anchor)}}),t}function Ps(e,t){for(let s=1;;++s){const n=`${e}${s}`;if(!t.has(n))return n}}function Vn(e,t){const s=[],n=new Map;let i=null;return{onAnchor:r=>{s.push(r),i||(i=$s(e));const o=Ps(t,i);return i.add(o),o},setAnchors:()=>{for(const r of s){const o=n.get(r);if(typeof o=="object"&&o.anchor&&(L(o.node)||D(o.node)))o.node.anchor=o.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=r,a}}},sourceObjects:n}}function ge(e,t,s,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let i=0,r=n.length;i<r;++i){const o=n[i],a=ge(e,n,String(i),o);a===void 0?delete n[i]:a!==o&&(n[i]=a)}else if(n instanceof Map)for(const i of Array.from(n.keys())){const r=n.get(i),o=ge(e,n,i,r);o===void 0?n.delete(i):o!==r&&n.set(i,o)}else if(n instanceof Set)for(const i of Array.from(n)){const r=ge(e,n,i,i);r===void 0?n.delete(i):r!==i&&(n.delete(i),n.add(r))}else for(const[i,r]of Object.entries(n)){const o=ge(e,n,i,r);o===void 0?delete n[i]:o!==r&&(n[i]=o)}return e.call(t,s,n)}function Q(e,t,s){if(Array.isArray(e))return e.map((n,i)=>Q(n,String(i),s));if(e&&typeof e.toJSON=="function"){if(!s||!zn(e))return e.toJSON(t,s);const n={aliasCount:0,count:1,res:void 0};s.anchors.set(e,n),s.onCreate=r=>{n.res=r,delete s.onCreate};const i=e.toJSON(t,s);return s.onCreate&&s.onCreate(i),i}return typeof e=="bigint"&&!(s!=null&&s.keep)?Number(e):e}class Ut{constructor(t){Object.defineProperty(this,Y,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:s,maxAliasCount:n,onAnchor:i,reviver:r}={}){if(!Te(t))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:t,keep:!0,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},a=Q(this,"",o);if(typeof i=="function")for(const{count:l,res:c}of o.anchors.values())i(c,l);return typeof r=="function"?ge(r,{"":a},"",a):a}}class at extends Ut{constructor(t){super(zt),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let s;return te(t,{Node:(n,i)=>{if(i===this)return te.BREAK;i.anchor===this.source&&(s=i)}}),s}toJSON(t,s){if(!s)return{source:this.source};const{anchors:n,doc:i,maxAliasCount:r}=s,o=this.resolve(i);if(!o){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=n.get(o);if(a||(Q(o,null,s),a=n.get(o)),!a||a.res===void 0){const l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(r>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=Ge(i,o,n)),a.count*a.aliasCount>r)){const l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(t,s,n){const i=`*${this.source}`;if(t){if(Ds(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(t.implicitKey)return`${i} `}return i}}function Ge(e,t,s){if(fe(t)){const n=t.resolve(e),i=s&&n&&s.get(n);return i?i.count*i.aliasCount:0}else if(D(t)){let n=0;for(const i of t.items){const r=Ge(e,i,s);r>n&&(n=r)}return n}else if(_(t)){const n=Ge(e,t.key,s),i=Ge(e,t.value,s);return Math.max(n,i)}return 1}const Bs=e=>!e||typeof e!="function"&&typeof e!="object";class A extends Ut{constructor(t){super(Z),this.value=t}toJSON(t,s){return s!=null&&s.keep?this.value:Q(this.value,t,s)}toString(){return String(this.value)}}A.BLOCK_FOLDED="BLOCK_FOLDED";A.BLOCK_LITERAL="BLOCK_LITERAL";A.PLAIN="PLAIN";A.QUOTE_DOUBLE="QUOTE_DOUBLE";A.QUOTE_SINGLE="QUOTE_SINGLE";const Qn="tag:yaml.org,2002:";function Yn(e,t,s){var n;if(t){const i=s.filter(o=>o.tag===t),r=(n=i.find(o=>!o.format))!=null?n:i[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return s.find(i=>{var r;return((r=i.identify)==null?void 0:r.call(i,e))&&!i.format})}function Re(e,t,s){var u,p,y;if(Te(e)&&(e=e.contents),B(e))return e;if(_(e)){const m=(p=(u=s.schema[ee]).createNode)==null?void 0:p.call(u,s.schema,null,s);return m.items.push(e),m}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!="undefined"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:n,onAnchor:i,onTagObj:r,schema:o,sourceObjects:a}=s;let l;if(n&&e&&typeof e=="object"){if(l=a.get(e),l)return l.anchor||(l.anchor=i(e)),new at(l.anchor);l={anchor:null,node:null},a.set(e,l)}t!=null&&t.startsWith("!!")&&(t=Qn+t.slice(2));let c=Yn(e,t,o.tags);if(!c){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const m=new A(e);return l&&(l.node=m),m}c=e instanceof Map?o[ee]:Symbol.iterator in Object(e)?o[Ne]:o[ee]}r&&(r(c),delete s.onTagObj);const h=c!=null&&c.createNode?c.createNode(s.schema,e,s):typeof((y=c==null?void 0:c.nodeClass)==null?void 0:y.from)=="function"?c.nodeClass.from(s.schema,e,s):new A(e);return t?h.tag=t:c.default||(h.tag=c.tag),l&&(l.node=h),h}function tt(e,t,s){let n=s;for(let i=t.length-1;i>=0;--i){const r=t[i];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){const o=[];o[r]=n,n=o}else n=new Map([[r,n]])}return Re(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const $e=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Rs extends Ut{constructor(t,s){super(t),Object.defineProperty(this,"schema",{value:s,configurable:!0,enumerable:!1,writable:!0})}clone(t){const s=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(s.schema=t),s.items=s.items.map(n=>B(n)||_(n)?n.clone(t):n),this.range&&(s.range=this.range.slice()),s}addIn(t,s){if($e(t))this.add(s);else{const[n,...i]=t,r=this.get(n,!0);if(D(r))r.addIn(i,s);else if(r===void 0&&this.schema)this.set(n,tt(this.schema,i,s));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}deleteIn(t){const[s,...n]=t;if(n.length===0)return this.delete(s);const i=this.get(s,!0);if(D(i))return i.deleteIn(n);throw new Error(`Expected YAML collection at ${s}. Remaining path: ${n}`)}getIn(t,s){const[n,...i]=t,r=this.get(n,!0);return i.length===0?!s&&L(r)?r.value:r:D(r)?r.getIn(i,s):void 0}hasAllNullValues(t){return this.items.every(s=>{if(!_(s))return!1;const n=s.value;return n==null||t&&L(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(t){const[s,...n]=t;if(n.length===0)return this.has(s);const i=this.get(s,!0);return D(i)?i.hasIn(n):!1}setIn(t,s){const[n,...i]=t;if(i.length===0)this.set(n,s);else{const r=this.get(n,!0);if(D(r))r.setIn(i,s);else if(r===void 0&&this.schema)this.set(n,tt(this.schema,i,s));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}}const Jn=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function X(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const oe=(e,t,s)=>e.endsWith(`
|
|
3
3
|
`)?X(s,t):s.includes(`
|
|
4
4
|
`)?`
|
|
@@ -59,10 +59,10 @@ var d = (e) => {
|
|
|
59
59
|
throw r;
|
|
60
60
|
}, "return" in t && n("return"), i;
|
|
61
61
|
};
|
|
62
|
-
import { s as hi, E as ms, c as di, p as pi, v as mi, g as yi, a as rt, b as zt, d as Ut, e as Vt, f as vt, h as x, C as Je, i as gi, J as Bs } from "./widget-composer-
|
|
63
|
-
import { j as Ro, q as Ko, u as jo, o as qo, r as Fo, l as zo, m as Uo, k as Vo, n as vo, w as Jo } from "./widget-composer-
|
|
64
|
-
import { aP as Jt, aG as bi,
|
|
65
|
-
import { D as xs, b as Hs } from "./dimensions-
|
|
62
|
+
import { s as hi, E as ms, c as di, p as pi, v as mi, g as yi, a as rt, b as zt, d as Ut, e as Vt, f as vt, h as x, C as Je, i as gi, J as Bs } from "./widget-composer-BCNu5BzM.js";
|
|
63
|
+
import { j as Ro, q as Ko, u as jo, o as qo, r as Fo, l as zo, m as Uo, k as Vo, n as vo, w as Jo } from "./widget-composer-BCNu5BzM.js";
|
|
64
|
+
import { aP as Jt, aG as bi, bI as ys, cG as wi, dI as Si, ay as ki, b0 as Oi, dJ as Ps, ap as Rs, dK as Ks, dL as js, dM as qs, dN as Fs, a9 as zs, dO as Us, dP as Vs, dQ as vs, dR as Js, dS as Qs, dT as Ys, dU as Ws, dV as Gs, al as Ai } from "./derive-chart-family-woVAnbRi.js";
|
|
65
|
+
import { D as xs, b as Hs } from "./dimensions-BHdLQaOB.js";
|
|
66
66
|
const Qt = Symbol.for("yaml.alias"), $t = Symbol.for("yaml.document"), Z = Symbol.for("yaml.map"), Xs = Symbol.for("yaml.pair"), X = Symbol.for("yaml.scalar"), Ne = Symbol.for("yaml.seq"), v = Symbol.for("yaml.node.type"), ce = (e) => !!e && typeof e == "object" && e[v] === Qt, Ee = (e) => !!e && typeof e == "object" && e[v] === $t, Te = (e) => !!e && typeof e == "object" && e[v] === Z, C = (e) => !!e && typeof e == "object" && e[v] === Xs, I = (e) => !!e && typeof e == "object" && e[v] === X, Ie = (e) => !!e && typeof e == "object" && e[v] === Ne;
|
|
67
67
|
function _(e) {
|
|
68
68
|
if (e && typeof e == "object")
|