@sisense/sdk-ui 2.28.0 → 2.29.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 +1 -1
- package/dist/ai.js +5 -5
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +1256 -1203
- package/dist/analytics-composer.cjs +7 -7
- package/dist/analytics-composer.js +19 -18
- package/dist/apply-styled-options-to-query-CaP4IMrQ.js +6379 -0
- package/dist/apply-styled-options-to-query-D5D8pRl2.cjs +1 -0
- package/dist/index.cjs +398 -398
- package/dist/index.js +22490 -21772
- package/dist/index.umd.js +700 -700
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/get-dashboard-model.d.ts +7 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/translate-dashboard-utils.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/persist-dashboard-model-middleware.d.ts +10 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.d.ts +29 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-widget-updates-persistence.d.ts +27 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/deep-merge.d.ts +17 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/types.d.ts +15 -0
- package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/update-types.d.ts +51 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data.d.ts +0 -1
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data/filter-and-aggregate-chart-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/types.d.ts +27 -23
- package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/utils.d.ts +4 -4
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/filter-to-readable-label.d.ts +14 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-definition.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-pill.d.ts +5 -0
- package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/truncate-pill-label.d.ts +10 -0
- package/dist/packages/sdk-ui/src/domains/widgets/change-events.d.ts +6 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/custom-widget/types.d.ts +11 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/pivot-table-widget.d.ts +15 -0
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/to-widget-dto-style.d.ts +41 -2
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/types.d.ts +6 -0
- package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-track-widget-init.d.ts +44 -0
- package/dist/packages/sdk-ui/src/domains/widgets/hooks/widget-entity-id.d.ts +30 -0
- package/dist/packages/sdk-ui/src/domains/widgets/hooks/widget-tracking-adapters.d.ts +41 -0
- package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-style-utils.d.ts +29 -0
- package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/to-widget-dto-panels.d.ts +29 -1
- package/dist/packages/sdk-ui/src/infra/api/rest-api.d.ts +2 -1
- package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +1 -7
- package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +1 -9
- package/dist/packages/sdk-ui/src/infra/app/types.d.ts +14 -0
- package/dist/packages/sdk-ui/src/infra/contexts/sisense-context/sisense-context-provider.d.ts +1 -1
- package/dist/packages/sdk-ui/src/infra/formatting/format-data-set.d.ts +21 -0
- package/dist/packages/sdk-ui/src/infra/formatting/format-date.d.ts +67 -0
- package/dist/packages/sdk-ui/src/infra/formatting/format-number.d.ts +24 -0
- package/dist/packages/sdk-ui/src/infra/formatting/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/infra/modules/build-module-graph.d.ts +31 -0
- package/dist/packages/sdk-ui/src/infra/modules/build-module-registry.d.ts +31 -0
- package/dist/packages/sdk-ui/src/infra/modules/core-module-providers-tree.d.ts +11 -0
- package/dist/packages/sdk-ui/src/infra/modules/core-module.d.ts +26 -0
- package/dist/packages/sdk-ui/src/infra/modules/index.d.ts +3 -0
- package/dist/packages/sdk-ui/src/infra/modules/module-provider.d.ts +17 -0
- package/dist/packages/sdk-ui/src/infra/modules/modules-context.d.ts +20 -0
- package/dist/packages/sdk-ui/src/infra/modules/types.d.ts +79 -0
- package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/types.d.ts +52 -2
- package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/widget-plugin-registry.d.ts +3 -3
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/get-dimension-name.d.ts +9 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/translate-dimensions-to-json.d.ts +4 -3
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/filters/get-filter-name.d.ts +10 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/filters/translate-filters-to-json.d.ts +3 -3
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/get-query-element-summary.d.ts +23 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/measures/get-measure-name.d.ts +10 -0
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/measures/translate-measures-to-json.d.ts +4 -3
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/index.d.ts +3 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/translate-query-from-json.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/translate-query-to-json.d.ts +4 -3
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/adapters.d.ts +3 -2
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/types.d.ts +70 -9
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/widget/helpers/to-widget-props.d.ts +3 -3
- package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/widget/helpers/translate-envelope-widget-from-json.d.ts +2 -3
- package/dist/packages/sdk-ui/src/modules/analytics-composer/types.d.ts +1 -18
- package/dist/packages/sdk-ui/src/props.d.ts +9 -0
- package/dist/packages/sdk-ui/src/public-api/alpha.d.ts +3 -0
- package/dist/packages/sdk-ui/src/public-api/public.d.ts +3 -1
- package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +1 -1
- package/dist/packages/sdk-ui/src/shared/components/loading-overlay.d.ts +1 -0
- package/dist/packages/sdk-ui/src/shared/hooks/use-element-height.d.ts +19 -0
- package/dist/packages/sdk-ui/src/shared/hooks/use-synced-state.d.ts +23 -2
- package/dist/packages/sdk-ui/src/shared/utils/filter-relations.d.ts +8 -0
- package/dist/packages/sdk-ui/src/shared/utils/gradient.d.ts +5 -0
- package/dist/types-7YG0uOzO.js +74 -0
- package/dist/{types-CzgBH2kL.cjs → types-DlYJ_DZ0.cjs} +1 -1
- package/dist/{use-hover-CaSOzp0i.cjs → use-hover-CANskYrn.cjs} +127 -127
- package/dist/{use-hover-B6VmMb06.js → use-hover-Dju4Dcv3.js} +11021 -10942
- package/dist/{utils-CsV-iYtb.js → utils-BKRpWUGm.js} +1061 -1058
- package/dist/{utils-BwGnDoB0.cjs → utils-C4PIba42.cjs} +10 -10
- package/dist/{widget-composer-C72Io-3c.cjs → widget-composer-BXEyx308.cjs} +1 -1
- package/dist/{widget-composer-Bv_OVu1o.js → widget-composer-DRDw1oBF.js} +3 -3
- package/package.json +9 -8
- package/dist/apply-styled-options-to-query-23D9br-S.cjs +0 -1
- package/dist/apply-styled-options-to-query-BagjzMqm.js +0 -5992
- package/dist/dimensions-Bn1EaWiP.js +0 -204
- package/dist/dimensions-D8r34WRI.cjs +0 -1
- package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-widget-scroll-persistence.d.ts +0 -16
- package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/with-navigator-scroll-save.d.ts +0 -10
- package/dist/types-D3fPN43o.js +0 -74
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";var Gs=Object.defineProperty,Hs=Object.defineProperties;var xs=Object.getOwnPropertyDescriptors;var Pe=Object.getOwnPropertySymbols;var Rt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable;var ct=(s,e)=>(e=Symbol[s])?e:Symbol.for("Symbol."+s),zs=s=>{throw TypeError(s)};var ft=(s,e,t)=>e in s?Gs(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,J=(s,e)=>{for(var t in e||(e={}))Rt.call(e,t)&&ft(s,t,e[t]);if(Pe)for(var t of Pe(e))Ut.call(e,t)&&ft(s,t,e[t]);return s},x=(s,e)=>Hs(s,xs(e));var Jt=(s,e)=>{var t={};for(var n in s)Rt.call(s,n)&&e.indexOf(n)<0&&(t[n]=s[n]);if(s!=null&&Pe)for(var n of Pe(s))e.indexOf(n)<0&&Ut.call(s,n)&&(t[n]=s[n]);return t};var ut=(s,e,t)=>ft(s,typeof e!="symbol"?e+"":e,t);var ht=(s,e,t)=>new Promise((n,i)=>{var r=l=>{try{a(t.next(l))}catch(c){i(c)}},o=l=>{try{a(t.throw(l))}catch(c){i(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,o);a((t=t.apply(s,e)).next())}),Xs=function(s,e){this[0]=s,this[1]=e};var d=s=>{var e=s[ct("asyncIterator")],t=!1,n,i={};return e==null?(e=s[ct("iterator")](),n=r=>i[r]=o=>e[r](o)):(e=e.call(s),n=r=>i[r]=o=>{if(t){if(t=!1,r==="throw")throw o;return o}return t=!0,{done:!1,value:new Xs(new Promise(a=>{var l=e[r](o);l instanceof Object||zs("Object expected"),a(l)}),1)}}),i[ct("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=r=>{throw r},"return"in e&&n("return"),i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("./types-
|
|
2
|
-
`)}}j.defaultYaml={explicit:!1,version:"1.2"};j.defaultTags={"!!":"tag:yaml.org,2002:"};function as(s){if(/[\x00-\x19\s,[\]{}]/.test(s)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;throw new Error(t)}return!0}function ls(s){const e=new Set;return X(s,{Value(t,n){n.anchor&&e.add(n.anchor)}}),e}function cs(s,e){for(let t=1;;++t){const n=`${s}${t}`;if(!e.has(n))return n}}function sn(s,e){const t=[],n=new Map;let i=null;return{onAnchor:r=>{t.push(r),i||(i=ls(s));const o=cs(e,i);return i.add(o),o},setAnchors:()=>{for(const r of t){const o=n.get(r);if(typeof o=="object"&&o.anchor&&(A(o.node)||_(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 he(s,e,t,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=he(s,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=he(s,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=he(s,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=he(s,n,i,r);o===void 0?delete n[i]:o!==r&&(n[i]=o)}return s.call(e,t,n)}function
|
|
1
|
+
"use strict";var Gs=Object.defineProperty,Hs=Object.defineProperties;var xs=Object.getOwnPropertyDescriptors;var Pe=Object.getOwnPropertySymbols;var Rt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable;var ct=(s,e)=>(e=Symbol[s])?e:Symbol.for("Symbol."+s),zs=s=>{throw TypeError(s)};var ft=(s,e,t)=>e in s?Gs(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,J=(s,e)=>{for(var t in e||(e={}))Rt.call(e,t)&&ft(s,t,e[t]);if(Pe)for(var t of Pe(e))Ut.call(e,t)&&ft(s,t,e[t]);return s},x=(s,e)=>Hs(s,xs(e));var Jt=(s,e)=>{var t={};for(var n in s)Rt.call(s,n)&&e.indexOf(n)<0&&(t[n]=s[n]);if(s!=null&&Pe)for(var n of Pe(s))e.indexOf(n)<0&&Ut.call(s,n)&&(t[n]=s[n]);return t};var ut=(s,e,t)=>ft(s,typeof e!="symbol"?e+"":e,t);var ht=(s,e,t)=>new Promise((n,i)=>{var r=l=>{try{a(t.next(l))}catch(c){i(c)}},o=l=>{try{a(t.throw(l))}catch(c){i(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,o);a((t=t.apply(s,e)).next())}),Xs=function(s,e){this[0]=s,this[1]=e};var d=s=>{var e=s[ct("asyncIterator")],t=!1,n,i={};return e==null?(e=s[ct("iterator")](),n=r=>i[r]=o=>e[r](o)):(e=e.call(s),n=r=>i[r]=o=>{if(t){if(t=!1,r==="throw")throw o;return o}return t=!0,{done:!1,value:new Xs(new Promise(a=>{var l=e[r](o);l instanceof Object||zs("Object expected"),a(l)}),1)}}),i[ct("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=r=>{throw r},"return"in e&&n("return"),i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("./types-DlYJ_DZ0.cjs"),k=require("./widget-composer-BXEyx308.cjs"),Qe=require("./utils-C4PIba42.cjs"),F=require("./analytics-composer/node.cjs"),De=require("./apply-styled-options-to-query-D5D8pRl2.cjs"),It=Symbol.for("yaml.alias"),St=Symbol.for("yaml.document"),z=Symbol.for("yaml.map"),ss=Symbol.for("yaml.pair"),H=Symbol.for("yaml.scalar"),be=Symbol.for("yaml.seq"),U=Symbol.for("yaml.node.type"),oe=s=>!!s&&typeof s=="object"&&s[U]===It,we=s=>!!s&&typeof s=="object"&&s[U]===St,Se=s=>!!s&&typeof s=="object"&&s[U]===z,C=s=>!!s&&typeof s=="object"&&s[U]===ss,A=s=>!!s&&typeof s=="object"&&s[U]===H,ke=s=>!!s&&typeof s=="object"&&s[U]===be;function _(s){if(s&&typeof s=="object")switch(s[U]){case z:case be:return!0}return!1}function v(s){if(s&&typeof s=="object")switch(s[U]){case It:case z:case H:case be:return!0}return!1}const Zs=s=>(A(s)||_(s))&&!!s.anchor,q=Symbol("break visit"),ns=Symbol("skip children"),Y=Symbol("remove node");function X(s,e){const t=is(e);we(s)?fe(null,s.contents,t,Object.freeze([s]))===Y&&(s.contents=null):fe(null,s,t,Object.freeze([]))}X.BREAK=q;X.SKIP=ns;X.REMOVE=Y;function fe(s,e,t,n){const i=rs(s,e,t,n);if(v(i)||C(i))return os(s,n,i),fe(s,i,t,n);if(typeof i!="symbol"){if(_(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){const o=fe(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===q)return q;o===Y&&(e.items.splice(r,1),r-=1)}}}else if(C(e)){n=Object.freeze(n.concat(e));const r=fe("key",e.key,t,n);if(r===q)return q;r===Y&&(e.key=null);const o=fe("value",e.value,t,n);if(o===q)return q;o===Y&&(e.value=null)}}return i}function He(s,e){return ht(this,null,function*(){const t=is(e);we(s)?(yield ue(null,s.contents,t,Object.freeze([s])))===Y&&(s.contents=null):yield ue(null,s,t,Object.freeze([]))})}He.BREAK=q;He.SKIP=ns;He.REMOVE=Y;function ue(s,e,t,n){return ht(this,null,function*(){const i=yield rs(s,e,t,n);if(v(i)||C(i))return os(s,n,i),ue(s,i,t,n);if(typeof i!="symbol"){if(_(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){const o=yield ue(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===q)return q;o===Y&&(e.items.splice(r,1),r-=1)}}}else if(C(e)){n=Object.freeze(n.concat(e));const r=yield ue("key",e.key,t,n);if(r===q)return q;r===Y&&(e.key=null);const o=yield ue("value",e.value,t,n);if(o===q)return q;o===Y&&(e.value=null)}}return i})}function is(s){return typeof s=="object"&&(s.Collection||s.Node||s.Value)?Object.assign({Alias:s.Node,Map:s.Node,Scalar:s.Node,Seq:s.Node},s.Value&&{Map:s.Value,Scalar:s.Value,Seq:s.Value},s.Collection&&{Map:s.Collection,Seq:s.Collection},s):s}function rs(s,e,t,n){var i,r,o,a,l;if(typeof t=="function")return t(s,e,n);if(Se(e))return(i=t.Map)==null?void 0:i.call(t,s,e,n);if(ke(e))return(r=t.Seq)==null?void 0:r.call(t,s,e,n);if(C(e))return(o=t.Pair)==null?void 0:o.call(t,s,e,n);if(A(e))return(a=t.Scalar)==null?void 0:a.call(t,s,e,n);if(oe(e))return(l=t.Alias)==null?void 0:l.call(t,s,e,n)}function os(s,e,t){const n=e[e.length-1];if(_(n))n.items[s]=t;else if(C(n))s==="key"?n.key=t:n.value=t;else if(we(n))n.contents=t;else{const i=oe(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const en={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},tn=s=>s.replace(/[!,[\]{}]/g,e=>en[e]);class j{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},j.defaultYaml,e),this.tags=Object.assign({},j.defaultTags,t)}clone(){const e=new j(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new j(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:j.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},j.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:j.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},j.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),i=n.shift();switch(i){case"%TAG":{if(n.length!==2&&(t(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 t(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 t(6,`Unsupported YAML version ${r}`,o),!1}}default:return t(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),o)}const[,n,i]=e.match(new RegExp("^(.*!)([^!]*)$","s"));i||t(`The ${e} tag has no suffix`);const r=this.tags[n];if(r)try{return r+decodeURIComponent(i)}catch(o){return t(String(o)),null}return n==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+tn(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let i;if(e&&n.length>0&&v(e.contents)){const r={};X(e.contents,(o,a)=>{v(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:"||(!e||i.some(a=>a.startsWith(o)))&&t.push(`%TAG ${r} ${o}`);return t.join(`
|
|
2
|
+
`)}}j.defaultYaml={explicit:!1,version:"1.2"};j.defaultTags={"!!":"tag:yaml.org,2002:"};function as(s){if(/[\x00-\x19\s,[\]{}]/.test(s)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;throw new Error(t)}return!0}function ls(s){const e=new Set;return X(s,{Value(t,n){n.anchor&&e.add(n.anchor)}}),e}function cs(s,e){for(let t=1;;++t){const n=`${s}${t}`;if(!e.has(n))return n}}function sn(s,e){const t=[],n=new Map;let i=null;return{onAnchor:r=>{t.push(r),i||(i=ls(s));const o=cs(e,i);return i.add(o),o},setAnchors:()=>{for(const r of t){const o=n.get(r);if(typeof o=="object"&&o.anchor&&(A(o.node)||_(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 he(s,e,t,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=he(s,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=he(s,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=he(s,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=he(s,n,i,r);o===void 0?delete n[i]:o!==r&&(n[i]=o)}return s.call(e,t,n)}function R(s,e,t){if(Array.isArray(s))return s.map((n,i)=>R(n,String(i),t));if(s&&typeof s.toJSON=="function"){if(!t||!Zs(s))return s.toJSON(e,t);const n={aliasCount:0,count:1,res:void 0};t.anchors.set(s,n),t.onCreate=r=>{n.res=r,delete t.onCreate};const i=s.toJSON(e,t);return t.onCreate&&t.onCreate(i),i}return typeof s=="bigint"&&!(t!=null&&t.keep)?Number(s):s}class At{constructor(e){Object.defineProperty(this,U,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:i,reviver:r}={}){if(!we(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},a=R(this,"",o);if(typeof i=="function")for(const{count:l,res:c}of o.anchors.values())i(c,l);return typeof r=="function"?he(r,{"":a},"",a):a}}class xe extends At{constructor(e){super(It),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return X(e,{Node:(n,i)=>{if(i===this)return X.BREAK;i.anchor===this.source&&(t=i)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:i,maxAliasCount:r}=t,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||(R(o,null,t),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=Fe(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(e,t,n){const i=`*${this.source}`;if(e){if(as(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(e.implicitKey)return`${i} `}return i}}function Fe(s,e,t){if(oe(e)){const n=e.resolve(s),i=t&&n&&t.get(n);return i?i.count*i.aliasCount:0}else if(_(e)){let n=0;for(const i of e.items){const r=Fe(s,i,t);r>n&&(n=r)}return n}else if(C(e)){const n=Fe(s,e.key,t),i=Fe(s,e.value,t);return Math.max(n,i)}return 1}const fs=s=>!s||typeof s!="function"&&typeof s!="object";class N extends At{constructor(e){super(H),this.value=e}toJSON(e,t){return t!=null&&t.keep?this.value:R(this.value,e,t)}toString(){return String(this.value)}}N.BLOCK_FOLDED="BLOCK_FOLDED";N.BLOCK_LITERAL="BLOCK_LITERAL";N.PLAIN="PLAIN";N.QUOTE_DOUBLE="QUOTE_DOUBLE";N.QUOTE_SINGLE="QUOTE_SINGLE";const nn="tag:yaml.org,2002:";function rn(s,e,t){var n;if(e){const i=t.filter(o=>o.tag===e),r=(n=i.find(o=>!o.format))!=null?n:i[0];if(!r)throw new Error(`Tag ${e} not found`);return r}return t.find(i=>{var r;return((r=i.identify)==null?void 0:r.call(i,s))&&!i.format})}function Ce(s,e,t){var f,p,m;if(we(s)&&(s=s.contents),v(s))return s;if(C(s)){const y=(p=(f=t.schema[z]).createNode)==null?void 0:p.call(f,t.schema,null,t);return y.items.push(s),y}(s instanceof String||s instanceof Number||s instanceof Boolean||typeof BigInt!="undefined"&&s instanceof BigInt)&&(s=s.valueOf());const{aliasDuplicateObjects:n,onAnchor:i,onTagObj:r,schema:o,sourceObjects:a}=t;let l;if(n&&s&&typeof s=="object"){if(l=a.get(s),l)return l.anchor||(l.anchor=i(s)),new xe(l.anchor);l={anchor:null,node:null},a.set(s,l)}e!=null&&e.startsWith("!!")&&(e=nn+e.slice(2));let c=rn(s,e,o.tags);if(!c){if(s&&typeof s.toJSON=="function"&&(s=s.toJSON()),!s||typeof s!="object"){const y=new N(s);return l&&(l.node=y),y}c=s instanceof Map?o[z]:Symbol.iterator in Object(s)?o[be]:o[z]}r&&(r(c),delete t.onTagObj);const h=c!=null&&c.createNode?c.createNode(t.schema,s,t):typeof((m=c==null?void 0:c.nodeClass)==null?void 0:m.from)=="function"?c.nodeClass.from(t.schema,s,t):new N(s);return e?h.tag=e:c.default||(h.tag=c.tag),l&&(l.node=h),h}function Ve(s,e,t){let n=t;for(let i=e.length-1;i>=0;--i){const r=e[i];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){const o=[];o[r]=n,n=o}else n=new Map([[r,n]])}return Ce(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:s,sourceObjects:new Map})}const Ie=s=>s==null||typeof s=="object"&&!!s[Symbol.iterator]().next().done;class us extends At{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(n=>v(n)||C(n)?n.clone(e):n),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Ie(e))this.add(t);else{const[n,...i]=e,r=this.get(n,!0);if(_(r))r.addIn(i,t);else if(r===void 0&&this.schema)this.set(n,Ve(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}deleteIn(e){const[t,...n]=e;if(n.length===0)return this.delete(t);const i=this.get(t,!0);if(_(i))return i.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...i]=e,r=this.get(n,!0);return i.length===0?!t&&A(r)?r.value:r:_(r)?r.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!C(t))return!1;const n=t.value;return n==null||e&&A(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){const[t,...n]=e;if(n.length===0)return this.has(t);const i=this.get(t,!0);return _(i)?i.hasIn(n):!1}setIn(e,t){const[n,...i]=e;if(i.length===0)this.set(n,t);else{const r=this.get(n,!0);if(_(r))r.setIn(i,t);else if(r===void 0&&this.schema)this.set(n,Ve(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}}const on=s=>s.replace(/^(?!$)(?: $)?/gm,"#");function W(s,e){return/^\n+$/.test(s)?s.substring(1):e?s.replace(/^(?! *$)/gm,e):s}const se=(s,e,t)=>s.endsWith(`
|
|
3
3
|
`)?W(t,e):t.includes(`
|
|
4
4
|
`)?`
|
|
5
5
|
`+W(t,e):(s.endsWith(" ")?"":" ")+t,hs="flow",kt="block",Re="quoted";function ze(s,e,t="flow",{indentAtStart:n,lineWidth:i=80,minContentWidth:r=20,onFold:o,onOverflow:a}={}){if(!i||i<0)return s;i<r&&(r=0);const l=Math.max(1+r,1+i-e.length);if(s.length<=l)return s;const c=[],h={};let f=i-e.length;typeof n=="number"&&(n>i-Math.max(2,r)?c.push(0):f=i-n);let p,m,y=!1,u=-1,g=-1,b=-1;t===kt&&(u=Qt(s,u,e.length),u!==-1&&(f=u+l));for(let I;I=s[u+=1];){if(t===Re&&I==="\\"){switch(g=u,s[u+1]){case"x":u+=3;break;case"u":u+=5;break;case"U":u+=9;break;default:u+=1}b=u}if(I===`
|
|
@@ -41,20 +41,20 @@ ${W(L,t.indent)}`}T===""&&!t.inFlow?E===`
|
|
|
41
41
|
${t.indent}`}else if(!m&&_(e)){const L=T[0],M=T.indexOf(`
|
|
42
42
|
`),D=M!==-1,ee=(w=($=t.inFlow)!=null?$:e.flow)!=null?w:e.items.length===0;if(D||!ee){let ae=!1;if(D&&(L==="&"||L==="!")){let P=T.indexOf(" ");L==="&"&&P!==-1&&P<M&&T[P+1]==="!"&&(P=T.indexOf(" ",P+1)),(P===-1||M<P)&&(ae=!0)}ae||(E=`
|
|
43
43
|
${t.indent}`)}}else(T===""||T[0]===`
|
|
44
|
-
`)&&(E="");return g+=E+T,t.inFlow?O&&n&&n():I&&!O?g+=se(g,t.indent,c(I)):u&&i&&i(),g}function ps(s,e){(s==="debug"||s==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(e):console.warn(e))}const Vt="<<";function ms(s,e,{key:t,value:n}){if(s!=null&&s.doc.schema.merge&&hn(t))if(n=oe(n)?n.resolve(s.doc):n,ke(n))for(const i of n.items)dt(s,e,i);else if(Array.isArray(n))for(const i of n)dt(s,e,i);else dt(s,e,n);else{const i=
|
|
44
|
+
`)&&(E="");return g+=E+T,t.inFlow?O&&n&&n():I&&!O?g+=se(g,t.indent,c(I)):u&&i&&i(),g}function ps(s,e){(s==="debug"||s==="warn")&&(typeof process!="undefined"&&process.emitWarning?process.emitWarning(e):console.warn(e))}const Vt="<<";function ms(s,e,{key:t,value:n}){if(s!=null&&s.doc.schema.merge&&hn(t))if(n=oe(n)?n.resolve(s.doc):n,ke(n))for(const i of n.items)dt(s,e,i);else if(Array.isArray(n))for(const i of n)dt(s,e,i);else dt(s,e,n);else{const i=R(t,"",s);if(e instanceof Map)e.set(i,R(n,i,s));else if(e instanceof Set)e.add(i);else{const r=dn(t,i,s),o=R(n,r,s);r in e?Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[r]=o}}return e}const hn=s=>s===Vt||A(s)&&s.value===Vt&&(!s.type||s.type===N.PLAIN);function dt(s,e,t){const n=s&&oe(t)?t.resolve(s.doc):t;if(!Se(n))throw new Error("Merge sources must be maps or map aliases");const i=n.toJSON(null,s,Map);for(const[r,o]of i)e instanceof Map?e.has(r)||e.set(r,o):e instanceof Set?e.add(r):Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}function dn(s,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(v(s)&&(t!=null&&t.doc)){const n=ds(t.doc,{});n.anchors=new Set;for(const r of t.anchors.keys())n.anchors.add(r.anchor);n.inFlow=!0,n.inStringifyKey=!0;const i=s.toString(n);if(!t.mapKeyWarned){let r=JSON.stringify(i);r.length>40&&(r=r.substring(0,36)+'..."'),ps(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return i}return JSON.stringify(e)}function Ct(s,e,t){const n=Ce(s,void 0,t),i=Ce(e,void 0,t);return new B(n,i)}class B{constructor(e,t=null){Object.defineProperty(this,U,{value:ss}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return v(t)&&(t=t.clone(e)),v(n)&&(n=n.clone(e)),new B(t,n)}toJSON(e,t){const n=t!=null&&t.mapAsMap?new Map:{};return ms(t,n,this)}toString(e,t,n){return e!=null&&e.doc?un(this,e,t,n):JSON.stringify(this)}}function ys(s,e,t){var r;return(((r=e.inFlow)!=null?r:s.flow)?mn:pn)(s,e,t)}function pn({comment:s,items:e},t,{blockItemPrefix:n,flowChars:i,itemIndent:r,onChompKeep:o,onComment:a}){const{indent:l,options:{commentString:c}}=t,h=Object.assign({},t,{indent:r,type:null});let f=!1;const p=[];for(let y=0;y<e.length;++y){const u=e[y];let g=null;if(v(u))!f&&u.spaceBefore&&p.push(""),Ye(t,p,u.commentBefore,f),u.comment&&(g=u.comment);else if(C(u)){const S=v(u.key)?u.key:null;S&&(!f&&S.spaceBefore&&p.push(""),Ye(t,p,S.commentBefore,f))}f=!1;let b=ye(u,h,()=>g=null,()=>f=!0);g&&(b+=se(b,r,c(g))),f&&g&&(f=!1),p.push(n+b)}let m;if(p.length===0)m=i.start+i.end;else{m=p[0];for(let y=1;y<p.length;++y){const u=p[y];m+=u?`
|
|
45
45
|
${l}${u}`:`
|
|
46
46
|
`}}return s?(m+=`
|
|
47
47
|
`+W(c(s),l),a&&a()):f&&o&&o(),m}function mn({items:s},e,{flowChars:t,itemIndent:n}){const{indent:i,indentStep:r,flowCollectionPadding:o,options:{commentString:a}}=e;n+=r;const l=Object.assign({},e,{indent:n,inFlow:!0,type:null});let c=!1,h=0;const f=[];for(let y=0;y<s.length;++y){const u=s[y];let g=null;if(v(u))u.spaceBefore&&f.push(""),Ye(e,f,u.commentBefore,!1),u.comment&&(g=u.comment);else if(C(u)){const S=v(u.key)?u.key:null;S&&(S.spaceBefore&&f.push(""),Ye(e,f,S.commentBefore,!1),S.comment&&(c=!0));const I=v(u.value)?u.value:null;I?(I.comment&&(g=I.comment),I.commentBefore&&(c=!0)):u.value==null&&(S!=null&&S.comment)&&(g=S.comment)}g&&(c=!0);let b=ye(u,l,()=>g=null);y<s.length-1&&(b+=","),g&&(b+=se(b,n,a(g))),!c&&(f.length>h||b.includes(`
|
|
48
48
|
`))&&(c=!0),f.push(b),h=f.length}const{start:p,end:m}=t;if(f.length===0)return p+m;if(!c){const y=f.reduce((u,g)=>u+g.length+2,2);c=e.options.lineWidth>0&&y>e.options.lineWidth}if(c){let y=p;for(const u of f)y+=u?`
|
|
49
49
|
${r}${i}${u}`:`
|
|
50
50
|
`;return`${y}
|
|
51
|
-
${i}${m}`}else return`${p}${o}${f.join(" ")}${o}${m}`}function Ye({indent:s,options:{commentString:e}},t,n,i){if(n&&i&&(n=n.replace(/^\n+/,"")),n){const r=W(e(n),s);t.push(r.trimStart())}}function ne(s,e){const t=A(e)?e.value:e;for(const n of s)if(C(n)&&(n.key===e||n.key===t||A(n.key)&&n.key.value===t))return n}class K extends us{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(z,e),this.items=[]}static from(e,t,n){const{keepUndefined:i,replacer:r}=n,o=new this(e),a=(l,c)=>{if(typeof r=="function")c=r.call(t,l,c);else if(Array.isArray(r)&&!r.includes(l))return;(c!==void 0||i)&&o.items.push(Ct(l,c,n))};if(t instanceof Map)for(const[l,c]of t)a(l,c);else if(t&&typeof t=="object")for(const l of Object.keys(t))a(l,t[l]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,t){var o;let n;C(e)?n=e:!e||typeof e!="object"||!("key"in e)?n=new B(e,e==null?void 0:e.value):n=new B(e.key,e.value);const i=ne(this.items,n.key),r=(o=this.schema)==null?void 0:o.sortMapEntries;if(i){if(!t)throw new Error(`Key ${n.key} already set`);A(i.value)&&fs(n.value)?i.value.value=n.value:i.value=n.value}else if(r){const a=this.items.findIndex(l=>r(n,l)<0);a===-1?this.items.push(n):this.items.splice(a,0,n)}else this.items.push(n)}delete(e){const t=ne(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){var r;const n=ne(this.items,e),i=n==null?void 0:n.value;return(r=!t&&A(i)?i.value:i)!=null?r:void 0}has(e){return!!ne(this.items,e)}set(e,t){this.add(new B(e,t),!0)}toJSON(e,t,n){const i=n?new n:t!=null&&t.mapAsMap?new Map:{};t!=null&&t.onCreate&&t.onCreate(i);for(const r of this.items)ms(t,i,r);return i}toString(e,t,n){if(!e)return JSON.stringify(this);for(const i of this.items)if(!C(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),ys(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const Oe={collection:"map",default:!0,nodeClass:K,tag:"tag:yaml.org,2002:map",resolve(s,e){return Se(s)||e("Expected a mapping for this tag"),s},createNode:(s,e,t)=>K.from(s,e,t)};class Z extends us{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(be,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=Be(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){const n=Be(e);if(typeof n!="number")return;const i=this.items[n];return!t&&A(i)?i.value:i}has(e){const t=Be(e);return typeof t=="number"&&t<this.items.length}set(e,t){const n=Be(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);const i=this.items[n];A(i)&&fs(t)?i.value=t:this.items[n]=t}toJSON(e,t){const n=[];t!=null&&t.onCreate&&t.onCreate(n);let i=0;for(const r of this.items)n.push(
|
|
51
|
+
${i}${m}`}else return`${p}${o}${f.join(" ")}${o}${m}`}function Ye({indent:s,options:{commentString:e}},t,n,i){if(n&&i&&(n=n.replace(/^\n+/,"")),n){const r=W(e(n),s);t.push(r.trimStart())}}function ne(s,e){const t=A(e)?e.value:e;for(const n of s)if(C(n)&&(n.key===e||n.key===t||A(n.key)&&n.key.value===t))return n}class K extends us{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(z,e),this.items=[]}static from(e,t,n){const{keepUndefined:i,replacer:r}=n,o=new this(e),a=(l,c)=>{if(typeof r=="function")c=r.call(t,l,c);else if(Array.isArray(r)&&!r.includes(l))return;(c!==void 0||i)&&o.items.push(Ct(l,c,n))};if(t instanceof Map)for(const[l,c]of t)a(l,c);else if(t&&typeof t=="object")for(const l of Object.keys(t))a(l,t[l]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,t){var o;let n;C(e)?n=e:!e||typeof e!="object"||!("key"in e)?n=new B(e,e==null?void 0:e.value):n=new B(e.key,e.value);const i=ne(this.items,n.key),r=(o=this.schema)==null?void 0:o.sortMapEntries;if(i){if(!t)throw new Error(`Key ${n.key} already set`);A(i.value)&&fs(n.value)?i.value.value=n.value:i.value=n.value}else if(r){const a=this.items.findIndex(l=>r(n,l)<0);a===-1?this.items.push(n):this.items.splice(a,0,n)}else this.items.push(n)}delete(e){const t=ne(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){var r;const n=ne(this.items,e),i=n==null?void 0:n.value;return(r=!t&&A(i)?i.value:i)!=null?r:void 0}has(e){return!!ne(this.items,e)}set(e,t){this.add(new B(e,t),!0)}toJSON(e,t,n){const i=n?new n:t!=null&&t.mapAsMap?new Map:{};t!=null&&t.onCreate&&t.onCreate(i);for(const r of this.items)ms(t,i,r);return i}toString(e,t,n){if(!e)return JSON.stringify(this);for(const i of this.items)if(!C(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),ys(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const Oe={collection:"map",default:!0,nodeClass:K,tag:"tag:yaml.org,2002:map",resolve(s,e){return Se(s)||e("Expected a mapping for this tag"),s},createNode:(s,e,t)=>K.from(s,e,t)};class Z extends us{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(be,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=Be(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){const n=Be(e);if(typeof n!="number")return;const i=this.items[n];return!t&&A(i)?i.value:i}has(e){const t=Be(e);return typeof t=="number"&&t<this.items.length}set(e,t){const n=Be(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);const i=this.items[n];A(i)&&fs(t)?i.value=t:this.items[n]=t}toJSON(e,t){const n=[];t!=null&&t.onCreate&&t.onCreate(n);let i=0;for(const r of this.items)n.push(R(r,String(i++),t));return n}toString(e,t,n){return e?ys(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){const{replacer:i}=n,r=new this(e);if(t&&Symbol.iterator in Object(t)){let o=0;for(let a of t){if(typeof i=="function"){const l=t instanceof Set?a:String(o++);a=i.call(t,l,a)}r.items.push(Ce(a,void 0,n))}}return r}}function Be(s){let e=A(s)?s.value:s;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}const Ne={collection:"seq",default:!0,nodeClass:Z,tag:"tag:yaml.org,2002:seq",resolve(s,e){return ke(s)||e("Expected a sequence for this tag"),s},createNode:(s,e,t)=>Z.from(s,e,t)},et={identify:s=>typeof s=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:s=>s,stringify(s,e,t,n){return e=Object.assign({actualString:!0},e),$e(s,e,t,n)}},tt={identify:s=>s==null,createNode:()=>new N(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new N(null),stringify:({source:s},e)=>typeof s=="string"&&tt.test.test(s)?s:e.options.nullStr},Lt={identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:s=>new N(s[0]==="t"||s[0]==="T"),stringify({source:s,value:e},t){if(s&&Lt.test.test(s)){const n=s[0]==="t"||s[0]==="T";if(e===n)return s}return e?t.options.trueStr:t.options.falseStr}};function V({format:s,minFractionDigits:e,tag:t,value:n}){if(typeof n=="bigint")return String(n);const i=typeof n=="number"?n:Number(n);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let r=JSON.stringify(n);if(!s&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^\d/.test(r)){let o=r.indexOf(".");o<0&&(o=r.length,r+=".");let a=e-(r.length-o-1);for(;a-- >0;)r+="0"}return r}const gs={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:V},bs={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:s=>parseFloat(s),stringify(s){const e=Number(s.value);return isFinite(e)?e.toExponential():V(s)}},ws={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(s){const e=new N(parseFloat(s)),t=s.indexOf(".");return t!==-1&&s[s.length-1]==="0"&&(e.minFractionDigits=s.length-t-1),e},stringify:V},st=s=>typeof s=="bigint"||Number.isInteger(s),_t=(s,e,t,{intAsBigInt:n})=>n?BigInt(s):parseInt(s.substring(e),t);function Ss(s,e,t){const{value:n}=s;return st(n)&&n>=0?t+n.toString(e):V(s)}const ks={identify:s=>st(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(s,e,t)=>_t(s,2,8,t),stringify:s=>Ss(s,8,"0o")},Os={identify:st,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(s,e,t)=>_t(s,0,10,t),stringify:V},Ns={identify:s=>st(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(s,e,t)=>_t(s,2,16,t),stringify:s=>Ss(s,16,"0x")},yn=[Oe,Ne,et,tt,Lt,ks,Os,Ns,gs,bs,ws];function Yt(s){return typeof s=="bigint"||Number.isInteger(s)}const je=({value:s})=>JSON.stringify(s),gn=[{identify:s=>typeof s=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:s=>s,stringify:je},{identify:s=>s==null,createNode:()=>new N(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:je},{identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:s=>s==="true",stringify:je},{identify:Yt,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(s,e,{intAsBigInt:t})=>t?BigInt(s):parseInt(s,10),stringify:({value:s})=>Yt(s)?s.toString():JSON.stringify(s)},{identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:s=>parseFloat(s),stringify:je}],bn={default:!0,tag:"",test:/^/,resolve(s,e){return e(`Unresolved plain scalar ${JSON.stringify(s)}`),s}},wn=[Oe,Ne].concat(gn,bn),$t={identify:s=>s instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(s,e){if(typeof Buffer=="function")return Buffer.from(s,"base64");if(typeof atob=="function"){const t=atob(s.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let i=0;i<t.length;++i)n[i]=t.charCodeAt(i);return n}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),s},stringify({comment:s,type:e,value:t},n,i,r){const o=t;let a;if(typeof Buffer=="function")a=o instanceof Buffer?o.toString("base64"):Buffer.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let l="";for(let c=0;c<o.length;++c)l+=String.fromCharCode(o[c]);a=btoa(l)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e||(e=N.BLOCK_LITERAL),e!==N.QUOTE_DOUBLE){const l=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),c=Math.ceil(a.length/l),h=new Array(c);for(let f=0,p=0;f<c;++f,p+=l)h[f]=a.substr(p,l);a=h.join(e===N.BLOCK_LITERAL?`
|
|
52
52
|
`:" ")}return $e({comment:s,type:e,value:a},n,i,r)}};function Ts(s,e){var t;if(ke(s))for(let n=0;n<s.items.length;++n){let i=s.items[n];if(!C(i)){if(Se(i)){i.items.length>1&&e("Each pair must have its own sequence indicator");const r=i.items[0]||new B(new N(null));if(i.commentBefore&&(r.key.commentBefore=r.key.commentBefore?`${i.commentBefore}
|
|
53
53
|
${r.key.commentBefore}`:i.commentBefore),i.comment){const o=(t=r.value)!=null?t:r.key;o.comment=o.comment?`${i.comment}
|
|
54
|
-
${o.comment}`:i.comment}i=r}s.items[n]=C(i)?i:new B(i)}}else e("Expected a sequence for this tag");return s}function Es(s,e,t){const{replacer:n}=t,i=new Z(s);i.tag="tag:yaml.org,2002:pairs";let r=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof n=="function"&&(o=n.call(e,String(r++),o));let a,l;if(Array.isArray(o))if(o.length===2)a=o[0],l=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const c=Object.keys(o);if(c.length===1)a=c[0],l=o[a];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=o;i.items.push(Ct(a,l,t))}return i}const Mt={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Ts,createNode:Es};class pe extends Z{constructor(){super(),this.add=K.prototype.add.bind(this),this.delete=K.prototype.delete.bind(this),this.get=K.prototype.get.bind(this),this.has=K.prototype.has.bind(this),this.set=K.prototype.set.bind(this),this.tag=pe.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t!=null&&t.onCreate&&t.onCreate(n);for(const i of this.items){let r,o;if(C(i)?(r=
|
|
54
|
+
${o.comment}`:i.comment}i=r}s.items[n]=C(i)?i:new B(i)}}else e("Expected a sequence for this tag");return s}function Es(s,e,t){const{replacer:n}=t,i=new Z(s);i.tag="tag:yaml.org,2002:pairs";let r=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof n=="function"&&(o=n.call(e,String(r++),o));let a,l;if(Array.isArray(o))if(o.length===2)a=o[0],l=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const c=Object.keys(o);if(c.length===1)a=c[0],l=o[a];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=o;i.items.push(Ct(a,l,t))}return i}const Mt={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Ts,createNode:Es};class pe extends Z{constructor(){super(),this.add=K.prototype.add.bind(this),this.delete=K.prototype.delete.bind(this),this.get=K.prototype.get.bind(this),this.has=K.prototype.has.bind(this),this.set=K.prototype.set.bind(this),this.tag=pe.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t!=null&&t.onCreate&&t.onCreate(n);for(const i of this.items){let r,o;if(C(i)?(r=R(i.key,"",t),o=R(i.value,r,t)):r=R(i,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}static from(e,t,n){const i=Es(e,t,n),r=new this;return r.items=i.items,r}}pe.tag="tag:yaml.org,2002:omap";const vt={collection:"seq",identify:s=>s instanceof Map,nodeClass:pe,default:!1,tag:"tag:yaml.org,2002:omap",resolve(s,e){const t=Ts(s,e),n=[];for(const{key:i}of t.items)A(i)&&(n.includes(i.value)?e(`Ordered maps must not include duplicate keys: ${i.value}`):n.push(i.value));return Object.assign(new pe,t)},createNode:(s,e,t)=>pe.from(s,e,t)};function Is({value:s,source:e},t){return e&&(s?As:Cs).test.test(e)?e:s?t.options.trueStr:t.options.falseStr}const As={identify:s=>s===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new N(!0),stringify:Is},Cs={identify:s=>s===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new N(!1),stringify:Is},Sn={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:V},kn={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:s=>parseFloat(s.replace(/_/g,"")),stringify(s){const e=Number(s.value);return isFinite(e)?e.toExponential():V(s)}},On={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(s){const e=new N(parseFloat(s.replace(/_/g,""))),t=s.indexOf(".");if(t!==-1){const n=s.substring(t+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:V},Me=s=>typeof s=="bigint"||Number.isInteger(s);function nt(s,e,t,{intAsBigInt:n}){const i=s[0];if((i==="-"||i==="+")&&(e+=1),s=s.substring(e).replace(/_/g,""),n){switch(t){case 2:s=`0b${s}`;break;case 8:s=`0o${s}`;break;case 16:s=`0x${s}`;break}const o=BigInt(s);return i==="-"?BigInt(-1)*o:o}const r=parseInt(s,t);return i==="-"?-1*r:r}function Pt(s,e,t){const{value:n}=s;if(Me(n)){const i=n.toString(e);return n<0?"-"+t+i.substr(1):t+i}return V(s)}const Nn={identify:Me,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(s,e,t)=>nt(s,2,2,t),stringify:s=>Pt(s,2,"0b")},Tn={identify:Me,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(s,e,t)=>nt(s,1,8,t),stringify:s=>Pt(s,8,"0")},En={identify:Me,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(s,e,t)=>nt(s,0,10,t),stringify:V},In={identify:Me,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(s,e,t)=>nt(s,2,16,t),stringify:s=>Pt(s,16,"0x")};class me extends K{constructor(e){super(e),this.tag=me.tag}add(e){let t;C(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new B(e.key,null):t=new B(e,null),ne(this.items,t.key)||this.items.push(t)}get(e,t){const n=ne(this.items,e);return!t&&C(n)?A(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const n=ne(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new B(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}static from(e,t,n){const{replacer:i}=n,r=new this(e);if(t&&Symbol.iterator in Object(t))for(let o of t)typeof i=="function"&&(o=i.call(t,o,o)),r.items.push(Ct(o,null,n));return r}}me.tag="tag:yaml.org,2002:set";const Dt={collection:"map",identify:s=>s instanceof Set,nodeClass:me,default:!1,tag:"tag:yaml.org,2002:set",createNode:(s,e,t)=>me.from(s,e,t),resolve(s,e){if(Se(s)){if(s.hasAllNullValues(!0))return Object.assign(new me,s);e("Set items must all have null values")}else e("Expected a mapping for this tag");return s}};function Bt(s,e){const t=s[0],n=t==="-"||t==="+"?s.substring(1):s,i=o=>e?BigInt(o):Number(o),r=n.replace(/_/g,"").split(":").reduce((o,a)=>o*i(60)+i(a),i(0));return t==="-"?i(-1)*r:r}function Ls(s){let{value:e}=s,t=o=>o;if(typeof e=="bigint")t=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return V(s);let n="";e<0&&(n="-",e*=t(-1));const i=t(60),r=[e%i];return e<60?r.unshift(0):(e=(e-r[0])/i,r.unshift(e%i),e>=60&&(e=(e-r[0])/i,r.unshift(e))),n+r.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const _s={identify:s=>typeof s=="bigint"||Number.isInteger(s),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(s,e,{intAsBigInt:t})=>Bt(s,t),stringify:Ls},$s={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:s=>Bt(s,!1),stringify:Ls},it={identify:s=>s instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(s){const e=s.match(it.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,t,n,i,r,o,a]=e.map(Number),l=e[7]?Number((e[7]+"00").substr(1,3)):0;let c=Date.UTC(t,n-1,i,r||0,o||0,a||0,l);const h=e[8];if(h&&h!=="Z"){let f=Bt(h,!1);Math.abs(f)<30&&(f*=60),c-=6e4*f}return new Date(c)},stringify:({value:s})=>s.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},Wt=[Oe,Ne,et,tt,As,Cs,Nn,Tn,En,In,Sn,kn,On,$t,vt,Mt,Dt,_s,$s,it],Gt=new Map([["core",yn],["failsafe",[Oe,Ne,et]],["json",wn],["yaml11",Wt],["yaml-1.1",Wt]]),Ht={binary:$t,bool:Lt,float:ws,floatExp:bs,floatNaN:gs,floatTime:$s,int:Os,intHex:Ns,intOct:ks,intTime:_s,map:Oe,null:tt,omap:vt,pairs:Mt,seq:Ne,set:Dt,timestamp:it},An={"tag:yaml.org,2002:binary":$t,"tag:yaml.org,2002:omap":vt,"tag:yaml.org,2002:pairs":Mt,"tag:yaml.org,2002:set":Dt,"tag:yaml.org,2002:timestamp":it};function pt(s,e){let t=Gt.get(e);if(!t)if(Array.isArray(s))t=[];else{const n=Array.from(Gt.keys()).filter(i=>i!=="yaml11").map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${n} or define customTags array`)}if(Array.isArray(s))for(const n of s)t=t.concat(n);else typeof s=="function"&&(t=s(t.slice()));return t.map(n=>{if(typeof n!="string")return n;const i=Ht[n];if(i)return i;const r=Object.keys(Ht).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${r}`)})}const Cn=(s,e)=>s.key<e.key?-1:s.key>e.key?1:0;class rt{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:i,schema:r,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(e)?pt(e,"compat"):e?pt(null,e):null,this.merge=!!n,this.name=typeof r=="string"&&r||"core",this.knownTags=i?An:{},this.tags=pt(t,this.name),this.toStringOptions=a!=null?a:null,Object.defineProperty(this,z,{value:Oe}),Object.defineProperty(this,H,{value:et}),Object.defineProperty(this,be,{value:Ne}),this.sortMapEntries=typeof o=="function"?o:o===!0?Cn:null}clone(){const e=Object.create(rt.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function Ln(s,e){var l;const t=[];let n=e.directives===!0;if(e.directives!==!1&&s.directives){const c=s.directives.toString(s);c?(t.push(c),n=!0):s.directives.docStart&&(n=!0)}n&&t.push("---");const i=ds(s,e),{commentString:r}=i.options;if(s.commentBefore){t.length!==1&&t.unshift("");const c=r(s.commentBefore);t.unshift(W(c,""))}let o=!1,a=null;if(s.contents){if(v(s.contents)){if(s.contents.spaceBefore&&n&&t.push(""),s.contents.commentBefore){const f=r(s.contents.commentBefore);t.push(W(f,""))}i.forceBlockIndent=!!s.comment,a=s.contents.comment}const c=a?void 0:()=>o=!0;let h=ye(s.contents,i,()=>a=null,c);a&&(h+=se(h,"",r(a))),(h[0]==="|"||h[0]===">")&&t[t.length-1]==="---"?t[t.length-1]=`--- ${h}`:t.push(h)}else t.push(ye(s.contents,i));if((l=s.directives)!=null&&l.docEnd)if(s.comment){const c=r(s.comment);c.includes(`
|
|
55
55
|
`)?(t.push("..."),t.push(W(c,""))):t.push(`... ${c}`)}else t.push("...");else{let c=s.comment;c&&o&&(c=c.replace(/^\n+/,"")),c&&((!o||a)&&t[t.length-1]!==""&&t.push(""),t.push(W(r(c),"")))}return t.join(`
|
|
56
56
|
`)+`
|
|
57
|
-
`}class Te{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,
|
|
57
|
+
`}class Te{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,U,{value:St});let i=null;typeof t=="function"||Array.isArray(t)?i=t:n===void 0&&t&&(n=t,t=void 0);const r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=r;let{version:o}=r;n!=null&&n._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new j({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,i,n)}clone(){const e=Object.create(Te.prototype,{[U]:{value:St}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=v(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){le(this.contents)&&this.contents.add(e)}addIn(e,t){le(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=ls(this);e.anchor=!t||n.has(t)?cs(t||"a",n):t}return new xe(e.anchor)}createNode(e,t,n){let i;if(typeof t=="function")e=t.call({"":e},"",e),i=t;else if(Array.isArray(t)){const g=S=>typeof S=="number"||S instanceof String||S instanceof Number,b=t.filter(g).map(String);b.length>0&&(t=t.concat(b)),i=t}else n===void 0&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:r,anchorPrefix:o,flow:a,keepUndefined:l,onTagObj:c,tag:h}=n!=null?n:{},{onAnchor:f,setAnchors:p,sourceObjects:m}=sn(this,o||"a"),y={aliasDuplicateObjects:r!=null?r:!0,keepUndefined:l!=null?l:!1,onAnchor:f,onTagObj:c,replacer:i,schema:this.schema,sourceObjects:m},u=Ce(e,h,y);return a&&_(u)&&(u.flow=!0),p(),u}createPair(e,t,n={}){const i=this.createNode(e,null,n),r=this.createNode(t,null,n);return new B(i,r)}delete(e){return le(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Ie(e)?this.contents==null?!1:(this.contents=null,!0):le(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return _(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Ie(e)?!t&&A(this.contents)?this.contents.value:this.contents:_(this.contents)?this.contents.getIn(e,t):void 0}has(e){return _(this.contents)?this.contents.has(e):!1}hasIn(e){return Ie(e)?this.contents!==void 0:_(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=Ve(this.schema,[e],t):le(this.contents)&&this.contents.set(e,t)}setIn(e,t){Ie(e)?this.contents=t:this.contents==null?this.contents=Ve(this.schema,Array.from(e),t):le(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let n;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new j({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new j({version:e}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const i=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new rt(Object.assign(n,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:i,onAnchor:r,reviver:o}={}){const a={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=R(this.contents,t!=null?t:"",a);if(typeof r=="function")for(const{count:c,res:h}of a.anchors.values())r(h,c);return typeof o=="function"?he(o,{"":l},"",l):l}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return Ln(this,e)}}function le(s){if(_(s))return!0;throw new Error("Expected a YAML collection as document contents")}class jt extends Error{constructor(e,t,n,i){super(),this.name=e,this.code=n,this.message=i,this.pos=t}}class ie extends jt{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class Ms extends jt{constructor(e,t,n){super("YAMLWarning",e,t,n)}}const We=(s,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(a=>e.linePos(a));const{line:n,col:i}=t.linePos[0];t.message+=` at line ${n}, column ${i}`;let r=i-1,o=s.substring(e.lineStarts[n-1],e.lineStarts[n]).replace(/[\n\r]+$/,"");if(r>=60&&o.length>80){const a=Math.min(r-39,o.length-79);o="…"+o.substring(a),r-=a-1}if(o.length>80&&(o=o.substring(0,79)+"…"),n>1&&/^ *$/.test(o.substring(0,r))){let a=s.substring(e.lineStarts[n-2],e.lineStarts[n-1]);a.length>80&&(a=a.substring(0,79)+`…
|
|
58
58
|
`),o=a+o}if(/[^ ]/.test(o)){let a=1;const l=t.linePos[1];l&&l.line===n&&l.col>i&&(a=Math.max(1,Math.min(l.col-i,80-r)));const c=" ".repeat(r)+"^".repeat(a);t.message+=`:
|
|
59
59
|
|
|
60
60
|
${o}
|
|
@@ -178,4 +178,4 @@ model: {{dataSourceTitle}}
|
|
|
178
178
|
# - name: Dimension2
|
|
179
179
|
# - name: Measure1
|
|
180
180
|
# - name: Measure2`;class fi{constructor(e,t){ut(this,"contextTitle");ut(this,"indexedFields",{});this.contextTitle=e,this.indexedFields=this.indexFields(t)}indexFields(e){return e.reduce((t,n)=>{const i=n.id;t[i]=n;const r=k.sanitizeDimensionId(i);return i!==r&&(t[r]=x(J({},n),{id:r})),t},{})}concatAggTypes(){return Object.values(De.AggregationTypes).map(t=>De.DimensionalBaseMeasure.aggregationToJAQL(t)).join("|")}simplifyAggFormula(e){const{formula:t,context:n,filter:i}=e;if(!n||!t)return e;const r=Object.keys(n);if(r.length!==1)return e;const o=r[0],a=n[o],l=this.concatAggTypes(),c=new RegExp(`^\\s*(${l})\\(\\[\\w+\\]\\)$`),h=t.match(c);if(h&&t.includes(o)){const f=h[1];return{dim:a.dim,agg:f,title:e.title,filter:i?J({},i):void 0}}return e}simplifyMetadataItemJaql(e){let t=e;if("formula"in e&&(t=this.simplifyAggFormula(e)),delete t.table,delete t.column,delete t.datatype,"context"in t){const n=J({},t.context);Object.keys(n).forEach(i=>{n[i]=this.simplifyMetadataItemJaql(n[i])}),t.context=n}return t}simplifyMetadataItemFilter(e){var i;const t=e;if(t.panel!=="scope")return t;delete t.format;const{jaql:n}=t;return(i=n.filter)!=null&&i.by&&(n.filter.by=this.simplifyAggFormula(n.filter.by)),x(J({},t),{jaql:n})}simplifyMetadataItemFormat(e){const{jaql:{level:t},format:{mask:n}={}}=e;return t&&(n!=null&&n[t])?x(J({},e),{format:{mask:{[t]:n[t]}}}):e}simplifyMetadataItem(e){let t=e;t.panel&&["rows","columns","measures"].includes(t.panel)&&delete t.panel,t=this.simplifyMetadataItemFilter(t),t=this.simplifyMetadataItemFormat(t);const{jaql:n,measure:i,by:r}=t;return x(J({},t),{jaql:this.simplifyMetadataItemJaql(n),by:r?this.simplifyMetadataItemJaql(r):void 0,measure:i?this.simplifyMetadataItemJaql(i):void 0})}simplifyChartRecommendations(e){if(!("axesMapping"in e))return{};const{chartType:t,axesMapping:n,styleOptions:i}=e,r=Object.entries(n).reduce((o,[a,l])=>(o[a]=l.map(c=>Qe.normalizeAnyColumn(c)),o),{});return{chartType:t,dataOptions:r,styleOptions:i}}getQueryTitleWithChartType(e,t){let n="chartType"in t?t.chartType:"table";return n!=="table"&&(n+=" chart"),`${n} showing ${e.toLowerCase()}`}translateToSimple(e){try{const{jaql:t,chartRecommendations:n,queryTitle:i}=De.cloneDeep(e);return{model:t.datasource.title,metadata:t.metadata.map(r=>this.simplifyMetadataItem(r)),chart:this.simplifyChartRecommendations(n),queryTitle:this.getQueryTitleWithChartType(i,n)}}catch(t){return console.error("Error running toSimpleQuery",t),G.EMPTY_SIMPLE_QUERY_MODEL}}stringifySimple(e){const r=e,{queryTitle:t}=r,n=Jt(r,["queryTitle"]),i=new ts.Document(n);return i.commentBefore=` ${k.capitalizeFirstLetter(t)}`,i.directives&&(i.directives.docStart=!0),String(i)}getQueryTemplate(){return k.populatePlaceholders(ci,{dataSourceTitle:this.contextTitle})}parseSimple(e){try{const t=ts.parseDocument(e),{commentBefore:n}=t,i=k.validateQueryModel(t.toJS());return i.queryTitle=(n==null?void 0:n.trim())||"",i}catch(t){console.error("Error parsing the YAML string",t)}return G.EMPTY_SIMPLE_QUERY_MODEL}expandChartRecommendations(e){if(!e||!("dataOptions"in e))return{};const{chartType:t,dataOptions:n,styleOptions:i}=e;return{chartFamily:Qe.deriveChartFamily(t),chartType:t,axesMapping:n,styleOptions:i}}expandMetadataItemJaql(e){const{dim:t="",agg:n,context:i}=e;i&&(Object.keys(i).forEach(a=>{i[a]=this.expandMetadataItemJaql(i[a])}),e.context=i);const r=this.indexedFields[t];if(!r)return e;let{filter:o}=e;return o!=null&&o.by&&(o=x(J({},o),{by:this.expandMetadataItemJaql(o.by)}),e.filter=o),J({table:r.table,column:r.column,datatype:r.dimtype,title:n?n+" "+r.title:r.title},e)}expandMetadataItem(e){const{jaql:t,measure:n}=e;return n?x(J({},e),{jaql:this.expandMetadataItemJaql(t),measure:this.expandMetadataItemJaql(n)}):x(J({},e),{jaql:this.expandMetadataItemJaql(t)})}translateToExpanded(e){const{model:t,metadata:n,chart:i,queryTitle:r}=De.cloneDeep(e),o={datasource:{title:t},metadata:n.map(l=>this.expandMetadataItem(l))},a=this.expandChartRecommendations(i);return{jaql:o,chartRecommendations:a,queryTitle:r}}}const ui=(s,e)=>{const t={chart:"chartWidgetPropsTmpl",pivot:"pivotTableWidgetPropsTmpl"};return`[${s.map(n=>k.getWidgetCode(n,e,t)).join(`,
|
|
181
|
-
`)}]`},hi="dashboardByIdTmpl",di="dashboardTmpl",pi=({dashboardOid:s,uiFramework:e="react",config:t})=>{const i=t&&Object.keys(t).length>0?k.stringifyProps(t,k.CODE_TEMPLATES_INDENT):"{}",r={dashboardOid:s,configString:i};return k.generateCode(hi,r,e)},mi=({dashboardProps:s,uiFramework:e="react"})=>{var r;const t=di,n=s.widgets.some(o=>(Qe.isChartWidgetProps(o)||Qe.isPivotTableWidgetProps(o))&&k.checkIfMeasuresExist(o)),i={titleString:s.title,defaultDataSourceString:k.stringifyDataSource(s.defaultDataSource),widgetsString:ui(s.widgets,e),filtersString:k.stringifyFilters(s.filters),componentString:"Dashboard",extraImportsString:k.stringifyExtraImports(s.filters||s.widgets.map(o=>"filters"in o?o.filters:[]).flat().filter(o=>o!==void 0)||[],n),configString:k.stringifyProps({toolbar:{visible:!0},filtersPanel:{visible:!0},tabbers:((r=s.config)==null?void 0:r.tabbers)||{}},k.CODE_TEMPLATES_INDENT),layoutOptionsString:k.stringifyProps(s.layoutOptions||{},k.CODE_TEMPLATES_INDENT),widgetsOptionsString:k.stringifyProps(s.widgetsOptions||{},k.CODE_TEMPLATES_INDENT,!0),styleOptionsString:k.stringifyProps(s.styleOptions||{},k.CODE_TEMPLATES_INDENT)};return k.generateCode(t,i,e)},yi=s=>G.isByIdDashboardCodeParams(s)?pi(s):mi(s),gi=Object.freeze(Object.defineProperty({__proto__:null,toDashboardCode:yi},Symbol.toStringTag,{value:"Module"})),bi="executeQueryTmpl",wi="executePivotQueryTmpl",Si=(s,e,t)=>{const n=k.checkIfMeasuresExist(s),i={dataSourceString:k.stringifyDataSource(s.dataSource),dimensionsString:k.stringifyProps(s.dimensions||[]),measuresString:k.stringifyProps(s.measures||[]),filtersString:k.stringifyFilters(s.filters),highlightsString:k.stringifyProps(s.highlights||[]),extraImportsString:k.stringifyExtraImports(s.filters||[],n)};return k.generateCode(t,i,e)},ki=(s,e,t)=>{const n=k.checkIfMeasuresExist(s),i={dataSourceString:k.stringifyDataSource(s.dataSource),rowsString:k.stringifyProps(s.rows||[]),valuesString:k.stringifyProps(s.values||[]),filtersString:k.stringifyFilters(s.filters),extraImportsString:k.stringifyExtraImports(s.filters||[],n)};return k.generateCode(t,i,e)},Oi=({queryParams:s,uiFramework:e="react"})=>Si(s,e,bi),Ni=({pivotQueryParams:s,uiFramework:e="react"})=>ki(s,e,wi),Ti=s=>Oi(s),Ei=s=>Ni(s),Ii=Object.freeze(Object.defineProperty({__proto__:null,toExecutePivotQueryCode:Ei,toExecuteQueryCode:Ti},Symbol.toStringTag,{value:"Module"}));exports.EMPTY_EXPANDED_QUERY_MODEL=G.EMPTY_EXPANDED_QUERY_MODEL;exports.EMPTY_SIMPLE_QUERY_MODEL=G.EMPTY_SIMPLE_QUERY_MODEL;exports.isByIdDashboardCodeParams=G.isByIdDashboardCodeParams;exports.isByIdWidgetCodeParams=G.isByIdWidgetCodeParams;exports.isClientSideDashboardCodeParams=G.isClientSideDashboardCodeParams;exports.isClientSideWidgetCodeParams=G.isClientSideWidgetCodeParams;exports.getChartDataOptions=k.getChartDataOptions;exports.getChartOptions=k.getChartOptions;exports.getChartRecommendationsOrDefault=k.getChartRecommendationsOrDefault;exports.getChartStyleOptions=k.getChartStyleOptions;exports.getMinimalChartStyleOptions=k.getMinimalChartStyleOptions;exports.simplifyMetadataItem=k.simplifyMetadataItem;exports.widgetComposer=k.widgetComposer;exports.CustomSuperJSON=
|
|
181
|
+
`)}]`},hi="dashboardByIdTmpl",di="dashboardTmpl",pi=({dashboardOid:s,uiFramework:e="react",config:t})=>{const i=t&&Object.keys(t).length>0?k.stringifyProps(t,k.CODE_TEMPLATES_INDENT):"{}",r={dashboardOid:s,configString:i};return k.generateCode(hi,r,e)},mi=({dashboardProps:s,uiFramework:e="react"})=>{var r;const t=di,n=s.widgets.some(o=>(Qe.isChartWidgetProps(o)||Qe.isPivotTableWidgetProps(o))&&k.checkIfMeasuresExist(o)),i={titleString:s.title,defaultDataSourceString:k.stringifyDataSource(s.defaultDataSource),widgetsString:ui(s.widgets,e),filtersString:k.stringifyFilters(s.filters),componentString:"Dashboard",extraImportsString:k.stringifyExtraImports(s.filters||s.widgets.map(o=>"filters"in o?o.filters:[]).flat().filter(o=>o!==void 0)||[],n),configString:k.stringifyProps({toolbar:{visible:!0},filtersPanel:{visible:!0},tabbers:((r=s.config)==null?void 0:r.tabbers)||{}},k.CODE_TEMPLATES_INDENT),layoutOptionsString:k.stringifyProps(s.layoutOptions||{},k.CODE_TEMPLATES_INDENT),widgetsOptionsString:k.stringifyProps(s.widgetsOptions||{},k.CODE_TEMPLATES_INDENT,!0),styleOptionsString:k.stringifyProps(s.styleOptions||{},k.CODE_TEMPLATES_INDENT)};return k.generateCode(t,i,e)},yi=s=>G.isByIdDashboardCodeParams(s)?pi(s):mi(s),gi=Object.freeze(Object.defineProperty({__proto__:null,toDashboardCode:yi},Symbol.toStringTag,{value:"Module"})),bi="executeQueryTmpl",wi="executePivotQueryTmpl",Si=(s,e,t)=>{const n=k.checkIfMeasuresExist(s),i={dataSourceString:k.stringifyDataSource(s.dataSource),dimensionsString:k.stringifyProps(s.dimensions||[]),measuresString:k.stringifyProps(s.measures||[]),filtersString:k.stringifyFilters(s.filters),highlightsString:k.stringifyProps(s.highlights||[]),extraImportsString:k.stringifyExtraImports(s.filters||[],n)};return k.generateCode(t,i,e)},ki=(s,e,t)=>{const n=k.checkIfMeasuresExist(s),i={dataSourceString:k.stringifyDataSource(s.dataSource),rowsString:k.stringifyProps(s.rows||[]),valuesString:k.stringifyProps(s.values||[]),filtersString:k.stringifyFilters(s.filters),extraImportsString:k.stringifyExtraImports(s.filters||[],n)};return k.generateCode(t,i,e)},Oi=({queryParams:s,uiFramework:e="react"})=>Si(s,e,bi),Ni=({pivotQueryParams:s,uiFramework:e="react"})=>ki(s,e,wi),Ti=s=>Oi(s),Ei=s=>Ni(s),Ii=Object.freeze(Object.defineProperty({__proto__:null,toExecutePivotQueryCode:Ei,toExecuteQueryCode:Ti},Symbol.toStringTag,{value:"Module"}));exports.EMPTY_EXPANDED_QUERY_MODEL=G.EMPTY_EXPANDED_QUERY_MODEL;exports.EMPTY_SIMPLE_QUERY_MODEL=G.EMPTY_SIMPLE_QUERY_MODEL;exports.isByIdDashboardCodeParams=G.isByIdDashboardCodeParams;exports.isByIdWidgetCodeParams=G.isByIdWidgetCodeParams;exports.isClientSideDashboardCodeParams=G.isClientSideDashboardCodeParams;exports.isClientSideWidgetCodeParams=G.isClientSideWidgetCodeParams;exports.getChartDataOptions=k.getChartDataOptions;exports.getChartOptions=k.getChartOptions;exports.getChartRecommendationsOrDefault=k.getChartRecommendationsOrDefault;exports.getChartStyleOptions=k.getChartStyleOptions;exports.getMinimalChartStyleOptions=k.getMinimalChartStyleOptions;exports.simplifyMetadataItem=k.simplifyMetadataItem;exports.widgetComposer=k.widgetComposer;exports.CustomSuperJSON=F.CustomSuperJSON;exports.getQueryElementSummary=F.getQueryElementSummary;exports.translateChartFromJSON=F.translateChartFromJSON;exports.translateChartToJSON=F.translateChartToJSON;exports.translateDashboardFromJSON=F.translateDashboardFromJSON;exports.translateDashboardToJSON=F.translateDashboardToJSON;exports.translatePivotTableFromJSON=F.translatePivotTableFromJSON;exports.translatePivotTableToJSON=F.translatePivotTableToJSON;exports.translateQueryFromJSON=F.translateQueryFromJSON;exports.translateQueryToJSON=F.translateQueryToJSON;exports.translateQueryToJaql=F.translateQueryToJaql;exports.translateWidgetFromJSON=F.translateWidgetFromJSON;exports.translateWidgetToJSON=F.translateWidgetToJSON;exports.QueryTranslator=fi;exports.dashboardComposer=gi;exports.executeQueryComposer=Ii;
|
|
@@ -59,13 +59,13 @@ var d = (s) => {
|
|
|
59
59
|
throw r;
|
|
60
60
|
}, "return" in e && n("return"), i;
|
|
61
61
|
};
|
|
62
|
-
import { E as Yt, a as nn } from "./types-
|
|
63
|
-
import { b as xi, i as zi, e as Xi, d as Zi } from "./types-
|
|
64
|
-
import { s as rn, c as on, p as ln, v as an, g as cn, a as V, b as Ye, d as Tt, e as It, f as Et, h as At, C as Te } from "./widget-composer-
|
|
65
|
-
import { k as tr, n as sr, j as nr, m as ir, l as rr, i as or, w as lr } from "./widget-composer-
|
|
66
|
-
import { n as fn, d as un, i as hn, a as dn } from "./utils-
|
|
67
|
-
import { CustomSuperJSON as cr,
|
|
68
|
-
import {
|
|
62
|
+
import { E as Yt, a as nn } from "./types-7YG0uOzO.js";
|
|
63
|
+
import { b as xi, i as zi, e as Xi, d as Zi } from "./types-7YG0uOzO.js";
|
|
64
|
+
import { s as rn, c as on, p as ln, v as an, g as cn, a as V, b as Ye, d as Tt, e as It, f as Et, h as At, C as Te } from "./widget-composer-DRDw1oBF.js";
|
|
65
|
+
import { k as tr, n as sr, j as nr, m as ir, l as rr, i as or, w as lr } from "./widget-composer-DRDw1oBF.js";
|
|
66
|
+
import { n as fn, d as un, i as hn, a as dn } from "./utils-BKRpWUGm.js";
|
|
67
|
+
import { CustomSuperJSON as cr, getQueryElementSummary as fr, translateChartFromJSON as ur, translateChartToJSON as hr, translateDashboardFromJSON as dr, translateDashboardToJSON as pr, translatePivotTableFromJSON as mr, translatePivotTableToJSON as yr, translateQueryFromJSON as gr, translateQueryToJSON as br, translateQueryToJaql as wr, translateWidgetFromJSON as Sr, translateWidgetToJSON as kr } from "./analytics-composer/node.js";
|
|
68
|
+
import { e as pn, h as Wt, f as mn } from "./apply-styled-options-to-query-CaP4IMrQ.js";
|
|
69
69
|
const Lt = Symbol.for("yaml.alias"), bt = Symbol.for("yaml.document"), H = Symbol.for("yaml.map"), os = Symbol.for("yaml.pair"), W = Symbol.for("yaml.scalar"), ye = Symbol.for("yaml.seq"), F = Symbol.for("yaml.node.type"), ie = (s) => !!s && typeof s == "object" && s[F] === Lt, ge = (s) => !!s && typeof s == "object" && s[F] === bt, be = (s) => !!s && typeof s == "object" && s[F] === H, A = (s) => !!s && typeof s == "object" && s[F] === os, E = (s) => !!s && typeof s == "object" && s[F] === W, we = (s) => !!s && typeof s == "object" && s[F] === ye;
|
|
70
70
|
function C(s) {
|
|
71
71
|
if (s && typeof s == "object")
|
|
@@ -5226,21 +5226,22 @@ export {
|
|
|
5226
5226
|
nr as getChartRecommendationsOrDefault,
|
|
5227
5227
|
ir as getChartStyleOptions,
|
|
5228
5228
|
rr as getMinimalChartStyleOptions,
|
|
5229
|
+
fr as getQueryElementSummary,
|
|
5229
5230
|
nn as isByIdDashboardCodeParams,
|
|
5230
5231
|
zi as isByIdWidgetCodeParams,
|
|
5231
5232
|
Xi as isClientSideDashboardCodeParams,
|
|
5232
5233
|
Zi as isClientSideWidgetCodeParams,
|
|
5233
5234
|
or as simplifyMetadataItem,
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5235
|
+
ur as translateChartFromJSON,
|
|
5236
|
+
hr as translateChartToJSON,
|
|
5237
|
+
dr as translateDashboardFromJSON,
|
|
5238
|
+
pr as translateDashboardToJSON,
|
|
5239
|
+
mr as translatePivotTableFromJSON,
|
|
5240
|
+
yr as translatePivotTableToJSON,
|
|
5241
|
+
gr as translateQueryFromJSON,
|
|
5242
|
+
br as translateQueryToJSON,
|
|
5243
|
+
wr as translateQueryToJaql,
|
|
5244
|
+
Sr as translateWidgetFromJSON,
|
|
5245
|
+
kr as translateWidgetToJSON,
|
|
5245
5246
|
lr as widgetComposer
|
|
5246
5247
|
};
|