dash-ant-design 0.1.2 → 0.1.4

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.
Files changed (89) hide show
  1. package/dash_antd_components/async-audio-player.js +1 -1
  2. package/dash_antd_components/async-chart.js +1 -1
  3. package/dash_antd_components/async-data-entry.js +1 -1
  4. package/dash_antd_components/async-display.js +1 -1
  5. package/dash_antd_components/async-dnd.js +1 -1
  6. package/dash_antd_components/async-feedback.js +1 -1
  7. package/dash_antd_components/async-form-controls.js +1 -0
  8. package/dash_antd_components/async-form-upload.js +1 -1
  9. package/dash_antd_components/async-highlight.js +1 -1
  10. package/dash_antd_components/async-icon-outlined.js +1 -1
  11. package/dash_antd_components/async-infographic.js +1 -1
  12. package/dash_antd_components/async-locale-ar.js +1 -1
  13. package/dash_antd_components/async-locale-az.js +1 -1
  14. package/dash_antd_components/async-locale-bg.js +1 -1
  15. package/dash_antd_components/async-locale-bn.js +1 -1
  16. package/dash_antd_components/async-locale-by.js +1 -1
  17. package/dash_antd_components/async-locale-ca.js +1 -1
  18. package/dash_antd_components/async-locale-cs.js +1 -1
  19. package/dash_antd_components/async-locale-da.js +1 -1
  20. package/dash_antd_components/async-locale-de.js +1 -1
  21. package/dash_antd_components/async-locale-el.js +1 -1
  22. package/dash_antd_components/async-locale-en.js +1 -1
  23. package/dash_antd_components/async-locale-es.js +1 -1
  24. package/dash_antd_components/async-locale-et.js +1 -1
  25. package/dash_antd_components/async-locale-eu.js +1 -1
  26. package/dash_antd_components/async-locale-fa.js +1 -1
  27. package/dash_antd_components/async-locale-fi.js +1 -1
  28. package/dash_antd_components/async-locale-fr.js +1 -1
  29. package/dash_antd_components/async-locale-ga.js +1 -1
  30. package/dash_antd_components/async-locale-gl.js +1 -1
  31. package/dash_antd_components/async-locale-he.js +1 -1
  32. package/dash_antd_components/async-locale-hi.js +1 -1
  33. package/dash_antd_components/async-locale-hr.js +1 -1
  34. package/dash_antd_components/async-locale-hu.js +1 -1
  35. package/dash_antd_components/async-locale-hy.js +1 -1
  36. package/dash_antd_components/async-locale-id.js +1 -1
  37. package/dash_antd_components/async-locale-is.js +1 -1
  38. package/dash_antd_components/async-locale-it.js +1 -1
  39. package/dash_antd_components/async-locale-ja.js +1 -1
  40. package/dash_antd_components/async-locale-ka.js +1 -1
  41. package/dash_antd_components/async-locale-kk.js +1 -1
  42. package/dash_antd_components/async-locale-km.js +1 -1
  43. package/dash_antd_components/async-locale-kmr.js +1 -1
  44. package/dash_antd_components/async-locale-kn.js +1 -1
  45. package/dash_antd_components/async-locale-ko.js +1 -1
  46. package/dash_antd_components/async-locale-ku.js +1 -1
  47. package/dash_antd_components/async-locale-lt.js +1 -1
  48. package/dash_antd_components/async-locale-lv.js +1 -1
  49. package/dash_antd_components/async-locale-mk.js +1 -1
  50. package/dash_antd_components/async-locale-ml.js +1 -1
  51. package/dash_antd_components/async-locale-mn.js +1 -1
  52. package/dash_antd_components/async-locale-mr.js +1 -1
  53. package/dash_antd_components/async-locale-ms.js +1 -1
  54. package/dash_antd_components/async-locale-my.js +1 -1
  55. package/dash_antd_components/async-locale-nb.js +1 -1
  56. package/dash_antd_components/async-locale-ne.js +1 -1
  57. package/dash_antd_components/async-locale-nl.js +1 -1
  58. package/dash_antd_components/async-locale-pl.js +1 -1
  59. package/dash_antd_components/async-locale-pt.js +1 -1
  60. package/dash_antd_components/async-locale-ro.js +1 -1
  61. package/dash_antd_components/async-locale-ru.js +1 -1
  62. package/dash_antd_components/async-locale-si.js +1 -1
  63. package/dash_antd_components/async-locale-sk.js +1 -1
  64. package/dash_antd_components/async-locale-sl.js +1 -1
  65. package/dash_antd_components/async-locale-sq.js +1 -1
  66. package/dash_antd_components/async-locale-sr.js +1 -1
  67. package/dash_antd_components/async-locale-sv.js +1 -1
  68. package/dash_antd_components/async-locale-ta.js +1 -1
  69. package/dash_antd_components/async-locale-th.js +1 -1
  70. package/dash_antd_components/async-locale-tk.js +1 -1
  71. package/dash_antd_components/async-locale-tr.js +1 -1
  72. package/dash_antd_components/async-locale-uk.js +1 -1
  73. package/dash_antd_components/async-locale-ur.js +1 -1
  74. package/dash_antd_components/async-locale-uz.js +1 -1
  75. package/dash_antd_components/async-locale-vi.js +1 -1
  76. package/dash_antd_components/async-locale-zh.js +1 -1
  77. package/dash_antd_components/async-markdown.js +1 -1
  78. package/dash_antd_components/async-media-shared.js +1 -1
  79. package/dash_antd_components/async-media.js +1 -1
  80. package/dash_antd_components/async-navigation.js +1 -1
  81. package/dash_antd_components/async-picker.js +1 -1
  82. package/dash_antd_components/async-select.js +1 -1
  83. package/dash_antd_components/async-sheet.js +1 -1
  84. package/dash_antd_components/async-table.js +1 -1
  85. package/dash_antd_components/async-tree.js +1 -1
  86. package/dash_antd_components/async-video-player.js +1 -1
  87. package/dash_antd_components/async-viz-shared.js +1 -1
  88. package/dash_antd_components/dash_antd_components.js +1 -1
  89. package/package.json +2 -2
@@ -1 +1 @@
1
- (self.webpackChunkdash_antd_components=self.webpackChunkdash_antd_components||[]).push([["async-infographic"],{"./node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.browser.js"(t){var e=String,n=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};t.exports=n(),t.exports.createColors=n},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/at-rule.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js");class r extends i{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}}t.exports=r,r.default=r,i.registerAtRule(r)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js");class r extends i{constructor(t){super(t),this.type="comment"}}t.exports=r,r.default=r},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"(t,e,n){"use strict";let i,r,o,s,a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"),c=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js"),{isClean:h,my:u}=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/symbols.js");class d extends c{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...t){for(let e of t){let t=this.normalize(e,this.last);for(let e of t)this.proxyOf.nodes.push(e)}return this.markDirty(),this}cleanRaws(t){let e=[this];for(;e.length>0;){let n=e.pop();if(n===this||n.cleanRaws===d.prototype.cleanRaws){if(c.prototype.cleanRaws.call(n,t),n.nodes)for(let t of n.nodes)e.push(t)}else n.cleanRaws(t)}}each(t){if(!this.proxyOf.nodes)return;let e,n,i=this.getIterator();for(;this.indexes[i]<this.proxyOf.nodes.length&&(e=this.indexes[i],n=t(this.proxyOf.nodes[e],e),!1!==n);)this.indexes[i]+=1;return delete this.indexes[i],n}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?(...n)=>t[e](...n.map(t=>"function"==typeof t?(e,n)=>t(e.toProxy(),n):t)):"every"===e||"some"===e?n=>t[e]((t,...e)=>n(t.toProxy(),...e)):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map(t=>t.toProxy()):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,n)=>(t[e]===n||(t[e]=n,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){let n,i=this.index(t),r=this.normalize(e,this.proxyOf.nodes[i]).reverse();i=this.index(t);for(let t of r)this.proxyOf.nodes.splice(i+1,0,t);for(let t in this.indexes)n=this.indexes[t],i<n&&(this.indexes[t]=n+r.length);return this.markDirty(),this}insertBefore(t,e){let n,i=this.index(t),r=this.normalize(e,this.proxyOf.nodes[i],0===i&&"prepend").reverse();i=this.index(t);for(let t of r)this.proxyOf.nodes.splice(i,0,t);for(let t in this.indexes)n=this.indexes[t],i<=n&&(this.indexes[t]=n+r.length);return this.markDirty(),this}normalize(t,e){if("string"==typeof t)t=function(t){let e=t.slice();for(;e.length>0;){let t=e.pop();if(delete t.source,t.nodes){t.nodes=t.nodes.slice();for(let n of t.nodes)e.push(n)}}return t.slice()}(r(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new l(t)]}else if(t.selector||t.selectors)t=[new s(t)];else if(t.name)t=[new i(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new a(t)]}return t.map(t=>(t[u]||d.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[h]&&function(t){let e=[t];for(;e.length>0;){let t=e.pop();if(t[h]=!1,t.proxyOf.nodes)for(let n of t.proxyOf.nodes)e.push(n)}}(t),t.raws||(t.raws={}),void 0===t.raws.before&&e&&void 0!==e.raws.before&&(t.raws.before=e.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...t){t=t.reverse();for(let e of t){let t=this.normalize(e,this.first,"prepend").reverse();for(let e of t)this.proxyOf.nodes.unshift(e);for(let e in this.indexes)this.indexes[e]=this.indexes[e]+t.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){let e;t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);for(let n in this.indexes)e=this.indexes[n],e>=t&&(this.indexes[n]=e-1);return this.markDirty(),this}replaceValues(t,e,n){return n||(n=e,e={}),this.walkDecls(i=>{e.props&&!e.props.includes(i.prop)||e.fast&&!i.value.includes(e.fast)||(i.value=i.value.replace(t,n))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){if(!this.proxyOf.nodes)return;let e=[{iterator:this.getIterator(),node:this.proxyOf}];for(;e.length>0;){let{iterator:n,node:i}=e[e.length-1],r=i.indexes[n];if(r>=i.proxyOf.nodes.length){delete i.indexes[n],e.pop();let t=e[e.length-1];t&&(t.node.indexes[t.iterator]+=1);continue}let o,s=i.proxyOf.nodes[r];try{o=t(s,r)}catch(t){throw s.addToError(t)}if(!1===o){for(let t of e)delete t.node.indexes[t.iterator];return!1}s.walk&&s.proxyOf.nodes?e.push({iterator:s.getIterator(),node:s}):i.indexes[n]+=1}}walkAtRules(t,e){return e?t instanceof RegExp?this.walk((n,i)=>{if("atrule"===n.type&&t.test(n.name))return e(n,i)}):this.walk((n,i)=>{if("atrule"===n.type&&n.name===t)return e(n,i)}):(e=t,this.walk((t,n)=>{if("atrule"===t.type)return e(t,n)}))}walkComments(t){return this.walk((e,n)=>{if("comment"===e.type)return t(e,n)})}walkDecls(t,e){return e?t instanceof RegExp?this.walk((n,i)=>{if("decl"===n.type&&t.test(n.prop))return e(n,i)}):this.walk((n,i)=>{if("decl"===n.type&&n.prop===t)return e(n,i)}):(e=t,this.walk((t,n)=>{if("decl"===t.type)return e(t,n)}))}walkRules(t,e){return e?t instanceof RegExp?this.walk((n,i)=>{if("rule"===n.type&&t.test(n.selector))return e(n,i)}):this.walk((n,i)=>{if("rule"===n.type&&n.selector===t)return e(n,i)}):(e=t,this.walk((t,n)=>{if("rule"===t.type)return e(t,n)}))}}d.registerParse=t=>{r=t},d.registerRule=t=>{s=t},d.registerAtRule=t=>{i=t},d.registerRoot=t=>{o=t},t.exports=d,d.default=d,d.rebuild=t=>{let e=[t];for(;e.length>0;){let t=e.pop();if("atrule"===t.type?Object.setPrototypeOf(t,i.prototype):"rule"===t.type?Object.setPrototypeOf(t,s.prototype):"decl"===t.type?Object.setPrototypeOf(t,l.prototype):"comment"===t.type?Object.setPrototypeOf(t,a.prototype):"root"===t.type&&Object.setPrototypeOf(t,o.prototype),t[u]=!0,t.nodes)for(let n of t.nodes)e.push(n)}}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/css-syntax-error.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.browser.js"),r=n("?c3ee");class o extends Error{constructor(t,e,n,i,r,s){super(t),this.name="CssSyntaxError",this.reason=t,r&&(this.file=r),i&&(this.source=i),s&&(this.plugin=s),void 0!==e&&void 0!==n&&("number"==typeof e?(this.line=e,this.column=n):(this.line=e.line,this.column=e.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let e=this.source;null==t&&(t=i.isColorSupported);let n=t=>t,o=t=>t,s=t=>t;if(t){let{bold:t,gray:e,red:a}=i.createColors(!0);o=e=>t(a(e)),n=t=>e(t),r&&(s=t=>r(t))}let a=e.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),h=String(c).length;return a.slice(l,c).map((t,e)=>{let i=l+1+e,r=" "+(" "+i).slice(-h)+" | ";if(i===this.line){if(t.length>160){let e=20,i=Math.max(0,this.column-e),a=Math.max(this.column+e,this.endColumn+e),l=t.slice(i,a),c=n(r.replace(/\d/g," "))+t.slice(0,Math.min(this.column-1,e-1)).replace(/[^\t]/g," ");return o(">")+n(r)+s(l)+"\n "+c+o("^")}let e=n(r.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(r)+s(t)+"\n "+e+o("^")}return" "+n(r)+s(t)}).join("\n")}toString(){let t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}}t.exports=o,o.default=o},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js");class r extends i{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}}t.exports=r,r.default=r},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/document.js"(t,e,n){"use strict";let i,r,o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js");class s extends o{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new i(new r,this,t).stringify()}}s.registerLazyResult=t=>{i=t},s.registerProcessor=t=>{r=t},t.exports=s,s.default=s},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/fromJSON.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/at-rule.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"),a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/previous-map.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"),c=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/rule.js");function h(t,e){return t.inputs?t.inputs.map(t=>{let e={...t,__proto__:s.prototype};return e.map&&(e.map={...e.map,__proto__:a.prototype}),e}):e}function u(t,e,n){let s,a={...t};if(delete a.inputs,delete a.nodes,a.source){let{inputId:t,...n}=a.source;a.source=n,null!=t&&(a.source.input=e[t])}if("root"===a.type)s=new l(a);else if("decl"===a.type)s=new o(a);else if("rule"===a.type)s=new c(a);else if("comment"===a.type)s=new r(a);else{if("atrule"!==a.type)throw new Error("Unknown node type: "+t.type);s=new i(a)}if(n){s.nodes=n;for(let t of n)t.parent=s}return s}function d(t,e){if(Array.isArray(t))return t.map(t=>d(t));let n,i=[{childIndex:0,children:[],inputs:h(t,e),json:t}];for(;i.length>0;){let t=i[i.length-1],e=t.json.nodes;if(e&&t.childIndex<e.length){let n=e[t.childIndex];t.childIndex+=1,i.push({childIndex:0,children:[],inputs:h(n,t.inputs),json:n});continue}i.pop();let r=u(t.json,t.inputs,e?t.children:void 0);i.length>0?i[i.length-1].children.push(r):n=r}return n}t.exports=d,d.default=d},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"(t,e,n){"use strict";let{nanoid:i}=n("./node_modules/.pnpm/nanoid@3.3.16/node_modules/nanoid/non-secure/index.cjs"),{isAbsolute:r,resolve:o}=n("?9d3a"),{SourceMapConsumer:s,SourceMapGenerator:a}=n("?0348"),{fileURLToPath:l,pathToFileURL:c}=n("?2bf4"),h=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/css-syntax-error.js"),u=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/previous-map.js"),d=n("?c3ee"),f=Symbol("lineToIndexCache"),p=Boolean(s&&a),g=Boolean(o&&r);function m(t){if(t[f])return t[f];let e=t.css.split("\n"),n=new Array(e.length),i=0;for(let t=0,r=e.length;t<r;t++)n[t]=i,i+=e[t].length+1;return t[f]=n,n}class y{get from(){return this.file||this.id}constructor(t,e={}){if(null==t||"object"==typeof t&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,e.document&&(this.document=e.document.toString()),e.from&&(this.file=!g||/^\w+:\/\//.test(e.from)||r(e.from)?e.from:o(e.from)),g&&p){let t=new u(this.css,e);if(t.text){this.map=t;let e=t.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}}this.file||(this.id="<input css "+i(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,n,i={}){let r,o,s,a,l;if(e&&"object"==typeof e){let t=e,i=n;if("number"==typeof t.offset){a=t.offset;let i=this.fromOffset(a);e=i.line,n=i.col}else a=this.fromLineAndColumn(e=t.line,n=t.column);if("number"==typeof i.offset){s=i.offset;let t=this.fromOffset(s);o=t.line,r=t.col}else o=i.line,r=i.column,s=this.fromLineAndColumn(i.line,i.column)}else if(n)a=this.fromLineAndColumn(e,n);else{a=e;let t=this.fromOffset(a);e=t.line,n=t.col}let u=this.origin(e,n,o,r);return l=u?new h(t,void 0===u.endLine?u.line:{column:u.column,line:u.line},void 0===u.endLine?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,i.plugin):new h(t,void 0===o?e:{column:n,line:e},void 0===o?n:{column:r,line:o},this.css,this.file,i.plugin),l.input={column:n,endColumn:r,endLine:o,endOffset:s,line:e,offset:a,source:this.css},this.file&&(c&&(l.input.url=c(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(t,e){return m(this)[t-1]+e-1}fromOffset(t){let e=m(this),n=0;if(t>=e[e.length-1])n=e.length-1;else{let i,r=e.length-2;for(;n<r;)if(i=n+(r-n>>1),t<e[i])r=i-1;else{if(!(t>=e[i+1])){n=i;break}n=i+1}}return{col:t-e[n]+1,line:n+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:o(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,n,i){if(!this.map)return!1;let o,s,a=this.map.consumer(),h=a.originalPositionFor({column:e-1,line:t});if(!h.source)return!1;if("number"==typeof n){let t=a.originalPositionFor({column:i-1,line:n});t.source&&(o=t)}s=r(h.source)?c(h.source):new URL(h.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let u={column:h.column+1,endColumn:o&&o.column+1,endLine:o&&o.line,line:h.line,url:s.toString()};if("file:"===s.protocol){if(!l)throw new Error("file: protocol is not available in this PostCSS build");u.file=l(s)}let d=a.sourceContentFor(h.source);return d&&(u.source=d),u}toJSON(){let t={};for(let e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}}t.exports=y,y.default=y,d&&d.registerInput&&d.registerInput(y)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/lazy-result.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/document.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/map-generator.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parse.js"),a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/result.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"),c=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js"),{isClean:h,my:u}=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/symbols.js");n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warn-once.js");const d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0};function g(t){return"object"==typeof t&&"function"==typeof t.then}function m(t){let e=!1,n=d[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[n,n+"-"+e,0,n+"Exit",n+"Exit-"+e]:e?[n,n+"-"+e,n+"Exit",n+"Exit-"+e]:t.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function y(t){let e;return e="document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:m(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function v(t){let e=[t];for(;e.length>0;){let t=e.pop();if(t[h]=!1,t.nodes)for(let n of t.nodes)e.push(n)}return t}let x={};class b{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(t,e,n){let r;if(this.stringified=!1,this.processed=!1,"object"!=typeof e||null===e||"root"!==e.type&&"document"!==e.type)if(e instanceof b||e instanceof a)r=v(e.root),e.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=e.map);else{let t=s;n.syntax&&(t=n.syntax.parse),n.parser&&(t=n.parser),t.parse&&(t=t.parse);try{r=t(e,n)}catch(t){this.processed=!0,this.error=t}r&&!r[u]&&i.rebuild(r)}else r=v(e);this.result=new a(t,r,n),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(t=>"object"==typeof t&&t.prepare?{...t,...t.prepare(this.result)}:t)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){let n=this.result.lastPlugin;try{e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin||(t.plugin=n.postcssPlugin,t.setMessage())}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};let t=(t,e,n)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,n])};for(let e of this.plugins)if("object"==typeof e)for(let n in e){if(!f[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[n])if("object"==typeof e[n])for(let i in e[n])t(e,"*"===i?n:n+"-"+i.toLowerCase(),e[n][i]);else"function"==typeof e[n]&&t(e,n,e[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let e=this.runOnRoot(this.plugins[t]);if(g(e))try{await e}catch(t){throw this.handleError(t)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[h];){t[h]=!0;let e=[y(t)];for(;e.length>0;){let t=this.visitTick(e);if(g(t))try{await t}catch(t){throw this.handleError(t,e[e.length-1].node)}}}if(this.listeners.OnceExit)for(let[e,n]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map(t=>n(t,this.helpers));await Promise.all(e)}else await n(t,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){let e=this.result.root.nodes.map(e=>t.Once(e,this.helpers));return g(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,e=c;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let n=this.result.root.source;if(void 0===t.map&&!(n&&n.input&&n.input.map)){let t="";return e(this.result.root,e=>{t+=e}),this.result.css=t,this.result}let i=new o(e,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){if(g(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[h];)t[h]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,e){return this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(let[n,i]of t){let t;this.result.lastPlugin=n;try{t=i(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(g(t))throw this.getAsyncError()}}visitTick(t){let e=t[t.length-1],{node:n,visitors:i}=e;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void t.pop();if(i.length>0&&e.visitorIndex<i.length){let[t,r]=i[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===i.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=t;try{return r(n.toProxy(),this.helpers)}catch(t){throw this.handleError(t,n)}}if(0!==e.iterator){let i,r=e.iterator;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[h])return i[h]=!0,void t.push(y(i));e.iterator=0,delete n.indexes[r]}let r=e.events;for(;e.eventIndex<r.length;){let t=r[e.eventIndex];if(e.eventIndex+=1,0===t)return void(n.nodes&&n.nodes.length&&(n[h]=!0,e.iterator=n.getIterator()));if(this.listeners[t])return void(e.visitors=this.listeners[t])}t.pop()}walkSync(t){t[h]=!0;let e=[{eventIndex:0,events:m(t),iterator:0,node:t}];for(;e.length>0;){let t=e[e.length-1],n=t.node;if(0!==t.iterator){let i,r=t.iterator,o=!1;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[h]){i[h]=!0,e.push({eventIndex:0,events:m(i),iterator:0,node:i}),o=!0;break}if(o)continue;t.iterator=0,delete n.indexes[r]}if(t.eventIndex<t.events.length){let i=t.events[t.eventIndex];if(t.eventIndex+=1,0===i)n.nodes&&n.nodes.length&&(t.iterator=n.getIterator());else{let t=this.listeners[i];t&&this.visitSync(t,n.toProxy())&&e.pop()}continue}e.pop()}}warnings(){return this.sync().warnings()}}b.registerPostcss=t=>{x=t},t.exports=b,b.default=b,l.registerLazyResult(b),r.registerLazyResult(b)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/list.js"(t){"use strict";let e={comma:t=>e.split(t,[","],!0),space:t=>e.split(t,[" ","\n","\t"]),split(t,e,n){let i=[],r="",o=!1,s=0,a=!1,l="",c=!1;for(let n of t)c?c=!1:"\\"===n?c=!0:a?n===l&&(a=!1):'"'===n||"'"===n?(a=!0,l=n):"("===n?s+=1:")"===n?s>0&&(s-=1):0===s&&e.includes(n)&&(o=!0),o?(""!==r&&i.push(r.trim()),r="",o=!1):r+=n;return(n||""!==r)&&i.push(r.trim()),i}};t.exports=e,e.default=e},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/map-generator.js"(t,e,n){"use strict";let{dirname:i,relative:r,resolve:o,sep:s}=n("?9d3a"),{SourceMapConsumer:a,SourceMapGenerator:l}=n("?0348"),{pathToFileURL:c}=n("?2bf4"),h=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"),u=Boolean(a&&l),d=Boolean(i&&o&&r&&s);t.exports=class{constructor(t,e,n,i){this.stringify=t,this.mapOpts=n.map||{},this.root=e,this.opts=n,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let e,n=this.toUrl(this.path(t.file)),r=t.root||i(t.file);!1===this.mapOpts.sourcesContent?(e=new a(t.text),e.sourcesContent&&(e.sourcesContent=null)):e=t.consumer(),this.map.applySourceMap(e,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let t;for(let e=this.root.nodes.length-1;e>=0;e--)t=this.root.nodes[e],"comment"===t.type&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(e)}else if(this.css){let t;for(;-1!==(t=this.css.lastIndexOf("/*#"));){let e=this.css.indexOf("*/",t+3);if(-1===e)break;for(;t>0&&"\n"===this.css[t-1];)t--;this.css=this.css.slice(0,t)+this.css.slice(e+2)}}}generate(){if(this.clearAnnotation(),d&&u&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,e=>{t+=e}),[t]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=l.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0});let t,e,n=1,i=1,r="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(s,a,l)=>{if(this.css+=s,a&&"end"!==l&&(o.generated.line=n,o.generated.column=i-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1,this.map.addMapping(o)):(o.source=r,o.original.line=1,o.original.column=0,this.map.addMapping(o))),e=s.match(/\n/g),e?(n+=e.length,t=s.lastIndexOf("\n"),i=s.length-t):i+=s.length,a&&"start"!==l){let t=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===t.last&&!t.raws.semicolon||(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=n,o.generated.column=i-2,this.map.addMapping(o)):(o.source=r,o.original.line=1,o.original.column=0,o.generated.line=n,o.generated.column=i-1,this.map.addMapping(o)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(t=>t.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some(t=>t.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(t=>t.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;let e=this.memoizedPaths.get(t);if(e)return e;let n=this.opts.to?i(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=i(o(n,this.mapOpts.annotation)));let s=r(n,t);return this.memoizedPaths.set(t,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}});else{let t=new h(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(e=>{if(e.source){let n=e.source.input.from;if(n&&!t[n]){t[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,e.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let e=this.memoizedFileURLs.get(t);if(e)return e;if(c){let e=c(t).toString();return this.memoizedFileURLs.set(t,e),e}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let e=this.memoizedURLs.get(t);if(e)return e;"\\"===s&&(t=t.replace(/\\/g,"/"));let n=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,n),n}}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/no-work-result.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/map-generator.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parse.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/result.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js");n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warn-once.js");class a{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,e=r;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,e,n){e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=n,this._map=void 0;let r=s;this.result=new o(this._processor,void 0,this._opts),this.result.css=e;let a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});let l=new i(r,void 0,this._opts,e);if(l.isMap()){let[t,e]=l.generate();t&&(this.result.css=t),e&&(this.result.map=e)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return this.async().then(t,e)}toString(){return this._css}warnings(){return[]}}t.exports=a,a.default=a},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/css-syntax-error.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringifier.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js"),{isClean:s,my:a}=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/symbols.js");function l(t,e){if(e&&void 0!==e.offset)return e.offset;let n=1,i=1,r=0;for(let o=0;o<t.length;o++){if(i===e.line&&n===e.column){r=o;break}"\n"===t[o]?(n=1,i+=1):n+=1}return r}class c{get proxyOf(){return this}constructor(t={}){this.raws={},this[s]=!1,this[a]=!0;for(let e of Object.keys(t))if("__proto__"!==e)if("nodes"===e){this.nodes=[];for(let n of t[e])this.append("function"==typeof n.clone&&n.parent?n.clone():n)}else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let e in t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let e=function(t,e){let n=new t.constructor,i=[[t,n,e]];for(;i.length>0;){let[t,e,n]=i.pop();for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;if("proxyCache"===r)continue;let o=t[r],s=typeof o;if("parent"===r&&"object"===s)n&&(e[r]=n);else if("source"===r)e[r]=o;else if(Array.isArray(o)){let t=[];e[r]=t;for(let n of o){let r=new n.constructor;t.push(r),i.push([n,r,e])}}else{if("object"===s&&null!==o){let t=new o.constructor;i.push([o,t,void 0]),o=t}e[r]=o}}}return n}(this);for(let n in t)e[n]=t[n];return e}cloneAfter(t={}){let e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t={}){let e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t,e={}){if(this.source){let{end:n,start:i}=this.rangeBy(e);return this.source.input.error(t,{column:i.column,line:i.line},{column:n.column,line:n.line},e)}return new i(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,n)=>(t[e]===n||(t[e]=n,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markClean(){this[s]=!0}markDirty(){if(this[s]){this[s]=!1;let t=this;for(;t=t.parent;)t[s]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let e="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:l(e,this.source.start)};if(t.index)n=this.positionInside(t.index);else if(t.word){let i=e.slice(l(e,this.source.start),l(e,this.source.end)).indexOf(t.word);-1!==i&&(n=this.positionInside(i))}return n}positionInside(t){let e=this.source.start.column,n=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,r=l(i,this.source.start),o=r+t;for(let t=r;t<o;t++)"\n"===i[t]?(e=1,n+=1):e+=1;return{column:e,line:n,offset:o}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let e="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:l(e,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:"number"==typeof this.source.end.offset?this.source.end.offset:l(e,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(t.word){let r=e.slice(l(e,this.source.start),l(e,this.source.end)).indexOf(t.word);-1!==r&&(n=this.positionInside(r),i=this.positionInside(r+t.word.length))}else t.start?n={column:t.start.column,line:t.start.line,offset:l(e,t.start)}:"number"==typeof t.index&&(n=this.positionInside(t.index)),t.end?i={column:t.end.column,line:t.end.line,offset:l(e,t.end)}:"number"==typeof t.endIndex?i=this.positionInside(t.endIndex):"number"==typeof t.index&&(i=this.positionInside(t.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={column:n.column+1,line:n.line,offset:n.offset+1}),{end:i,start:n}}raw(t,e){return(new r).raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let e=this,n=!1;for(let i of t)i===this?n=!0:n?(this.parent.insertAfter(e,i),e=i):this.parent.insertBefore(e,i);n||this.remove()}return this}root(){let t=this;for(;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){let n=null==e;e=e||new Map;let i=[],r=[[this,i,0]];for(let t=0;t<r.length;t++){let[n,i,o]=r[t],s={};i[o]=s;for(let t in n){if(!Object.prototype.hasOwnProperty.call(n,t))continue;if("parent"===t||"proxyCache"===t)continue;let i=n[t];if(Array.isArray(i)){let n=[];s[t]=n;for(let t=0;t<i.length;t++){let o=i[t];"object"==typeof o&&o.toJSON?o.toJSON===c.prototype.toJSON?r.push([o,n,t]):n[t]=o.toJSON(null,e):n[t]=o}}else if("object"==typeof i&&i.toJSON)i.toJSON===c.prototype.toJSON?r.push([i,s,t]):s[t]=i.toJSON(null,e);else if("source"===t){if(null==i)continue;let n=e.get(i.input);null==n&&(n=e.size,e.set(i.input,n)),s[t]={end:i.end,inputId:n,start:i.start}}else s[t]=i}}let o=i[0];return n&&(o.inputs=[...e.keys()].map(t=>t.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=o){t.stringify&&(t=t.stringify);let e="";return t(this,t=>{e+=t}),e}warn(t,e,n={}){let i={node:this};for(let t in n)i[t]=n[t];return t.warn(e,i)}}t.exports=c,c.default=c},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parse.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parser.js");function s(t,e){let n=new r(t,e),i=new o(n);try{i.parse()}catch(t){throw t}return i.root}t.exports=s,s.default=s,i.registerParse(s)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parser.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/at-rule.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"),a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/rule.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/tokenize.js");const c={empty:!0,space:!0};function h(t,e,n){let i="";for(let r=e;r<n;r++)i+=t[r][1];return i}t.exports=class{constructor(t){this.input=t,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let e,n,r,o=new i;o.name=t[1].slice(1),""===o.name&&this.unnamedAtrule(o,t),this.init(o,t[2]);let s=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=(t=this.tokenizer.nextToken())[0],"("===e||"["===e?c.push("("===e?")":"]"):"{"===e&&c.length>0?c.push("}"):e===c[c.length-1]&&c.pop(),0===c.length){if(";"===e){o.source.end=this.getPosition(t[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===e){a=!0;break}if("}"===e){if(l.length>0){for(r=l.length-1,n=l[r];n&&"space"===n[0];)n=l[--r];n&&(o.source.end=this.getPosition(n[3]||n[2]),o.source.end.offset++)}this.end(t);break}l.push(t)}else l.push(t);if(this.tokenizer.endOfFile()){s=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(o.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(o,"params",l),s&&(o.source.end=this.getPosition((t=l[l.length-1])[3]||t[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),a&&(o.nodes=[],this.current=o)}checkMissedSemicolon(t){let e=this.colon(t);if(!1===e)return;let n,i=0;for(let r=e-1;r>=0&&(n=t[r],"space"===n[0]||(i+=1,2!==i));r--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(t){let e,n,i,r=0;for(let[o,s]of t.entries()){if(n=s,i=n[0],"("===i&&(r+=1),")"===i&&(r-=1),0===r&&":"===i){if(e){if("word"===e[0]&&"progid"===e[1])continue;return o}this.doubleColon(n)}e=n}return!1}comment(t){let e=new r;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;let n=t[1].slice(2,-2);if(n.trim()){let t=n.match(/^(\s*)([^]*\S)(\s*)$/);e.text=t[2],e.raws.left=t[1],e.raws.right=t[3]}else e.text="",e.raws.left=n,e.raws.right=""}createTokenizer(){this.tokenizer=l(this.input)}decl(t,e){let n=new o;this.init(n,t[0][2]);let i=t[t.length-1];";"===i[0]&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(t){for(let e=t.length-1;e>=0;e--){let n=t[e],i=n[3]||n[2];if(i)return i}}(t)),n.source.end.offset++;let r=0;for(;"word"!==t[r][0];)r===t.length-1&&this.unknownWord([t[r]]),r++;n.raws.before+=h(t,0,r),n.source.start=this.getPosition(t[r][2]);let s=r;for(;r<t.length;){let e=t[r][0];if(":"===e||"space"===e||"comment"===e)break;r++}n.prop=h(t,s,r);let a,l=r;for(;r<t.length&&(a=t[r],r++,":"!==a[0]);)"word"===a[0]&&/\w/.test(a[1])&&this.unknownWord([a]);n.raws.between=h(t,l,r),"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let c=r;for(;r<t.length;){let e=t[r][0];if("space"!==e&&"comment"!==e)break;r++}let u=t.slice(c,r);t=t.slice(r),this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(a=t[e],"!important"===a[1].toLowerCase()){n.important=!0;let i=this.stringFrom(t,e);i=this.spacesFromEnd(t)+i," !important"!==i&&(n.raws.important=i);break}if("important"===a[1].toLowerCase()){let i=t.slice(0),r="";for(let t=e;t>0;t--){let e=i[t][0];if(r.trim().startsWith("!")&&"space"!==e)break;r=i.pop()[1]+r}r.trim().startsWith("!")&&(n.important=!0,n.raws.important=r,t=i)}if("space"!==a[0]&&"comment"!==a[0])break}t.some(t=>"space"!==t[0]&&"comment"!==t[0])&&(n.raws.between+=u.map(t=>t[1]).join(""),u=[]),this.raw(n,"value",u.concat(t),e),n.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let e=new a;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="",e.source.end=this.getPosition(t[2]),e.source.end.offset+=e.raws.ownSemicolon.length)}}getPosition(t){let e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){let e=!1,n=null,i=!1,r=null,o=[],s=t[1].startsWith("--"),a=[],l=t;for(;l;){if(n=l[0],a.push(l),"("===n||"["===n)r||(r=l),o.push("("===n?")":"]");else if(s&&i&&"{"===n)r||(r=l),o.push("}");else if(0===o.length){if(";"===n){if(i)return void this.decl(a,s);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),e=!0;break}":"===n&&(i=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(r=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),o.length>0&&this.unclosedBracket(r),e&&i){if(!s)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,n,i){let r,o,s,a,l=n.length,h="",u=!0;for(let t=0;t<l;t+=1)r=n[t],o=r[0],"space"!==o||t!==l-1||i?"comment"===o?(a=n[t-1]?n[t-1][0]:"empty",s=n[t+1]?n[t+1][0]:"empty",c[a]||c[s]||","===h.slice(-1)?u=!1:h+=r[1]):h+=r[1]:u=!1;if(!u){let i=n.reduce((t,e)=>t+e[1],"");t.raws[e]={raw:i,value:h}}t[e]=h}rule(t){t.pop();let e=new a;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){let e,n="";for(;t.length&&(e=t[t.length-1][0],"space"===e||"comment"===e);)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let e,n="";for(;t.length&&(e=t[0][0],"space"===e||"comment"===e);)n+=t.shift()[1];return n}spacesFromEnd(t){let e,n="";for(;t.length&&(e=t[t.length-1][0],"space"===e);)n=t.pop()[1]+n;return n}stringFrom(t,e){let n="";for(let i=e;i<t.length;i++)n+=t[i][1];return t.splice(e,t.length-e),n}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word "+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/postcss.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/at-rule.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/css-syntax-error.js"),a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/document.js"),c=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/fromJSON.js"),h=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"),u=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/lazy-result.js"),d=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/list.js"),f=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js"),p=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parse.js"),g=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/processor.js"),m=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/result.js"),y=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"),v=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/rule.js"),x=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js"),b=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warning.js");function w(...t){return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new g(t)}w.plugin=function(t,e){let n,i=!1;function r(...n){console&&console.warn&&!i&&(i=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let r=e(...n);return r.postcssPlugin=t,r.postcssVersion=(new g).version,r}return Object.defineProperty(r,"postcss",{get:()=>(n||(n=r()),n)}),r.process=function(t,e,n){return w([r(n)]).process(t,e)},r},w.stringify=x,w.parse=p,w.fromJSON=c,w.list=d,w.comment=t=>new r(t),w.atRule=t=>new i(t),w.decl=t=>new a(t),w.rule=t=>new v(t),w.root=t=>new y(t),w.document=t=>new l(t),w.CssSyntaxError=s,w.Declaration=a,w.Container=o,w.Processor=g,w.Document=l,w.Comment=r,w.Warning=b,w.AtRule=i,w.Result=m,w.Input=h,w.Rule=v,w.Root=y,w.Node=f,u.registerPostcss(w),t.exports=w,w.default=w},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/previous-map.js"(t,e,n){"use strict";let{existsSync:i,readFileSync:r}=n("?b251"),{dirname:o,isAbsolute:s,join:a,relative:l,sep:c}=n("?9d3a"),{SourceMapConsumer:h,SourceMapGenerator:u}=n("?0348");class d{constructor(t,e){if(!1===e.map)return;e.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let n=this.loadMap(e.from,e.map?e.map.prev:void 0);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=o(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new h(this.json||this.text)),this.consumerCache}decodeInline(t){let e=t.match(/^data:application\/json;charset=utf-?8,/)||t.match(/^data:application\/json,/);if(e)return decodeURIComponent(t.substr(e[0].length));let n=t.match(/^data:application\/json;charset=utf-?8;base64,/)||t.match(/^data:application\/json;base64,/);if(n)return i=t.substr(n[0].length),Buffer?Buffer.from(i,"base64").toString():window.atob(i);var i;let r=t.slice(22);throw r=r.slice(0,r.indexOf(",")),new Error("Unsupported source map encoding "+r)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){let e=t.match(/\/\*\s*# sourceMappingURL=/g);if(!e)return;let n=t.lastIndexOf(e.pop()),i=t.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(t.substring(n,i)))}loadFile(t,e,n){if(!n&&!this.unsafeMap){if(!/\.map$/i.test(t))return;if(e){let n=l(o(e),t);if(".."===n||n.startsWith(".."+c)||s(n))return}}if(this.root=o(t),i(t))return this.mapFile=t,r(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof h)return u.fromSourceMap(e).toString();if(e instanceof u)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}{let n=e(t);if(n){let e=this.loadFile(n,t,!0);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;t&&(e=a(o(t),e));let n=this.loadFile(e,t,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}t.exports=d,d.default=d},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/processor.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/document.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/lazy-result.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/no-work-result.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js");class a{constructor(t=[]){this.version="8.5.19",this.plugins=this.normalize(t)}normalize(t){let e=[];for(let n of t)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))e=e.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)e.push(n);else if("function"==typeof n)e.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return e}process(t,e={}){return this.plugins.length||e.parser||e.stringifier||e.syntax?new r(this,t,e):new o(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}}t.exports=a,a.default=a,s.registerProcessor(a),i.registerProcessor(a)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/result.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warning.js");class r{get content(){return this.css}constructor(t,e,n){this.processor=t,this.messages=[],this.root=e,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(t,e={}){e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);let n=new i(t,e);return this.messages.push(n),n}warnings(){return this.messages.filter(t=>"warning"===t.type)}}t.exports=r,r.default=r},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"(t,e,n){"use strict";let i,r,o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js");class s extends o{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,n){let i=new Set;for(let e of Array.isArray(t)?t:[t])e&&"object"==typeof e&&!e.parent&&e.raws&&void 0!==e.raws.before&&i.add(e.raws);let r=super.normalize(t);if(e)if("prepend"===n)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(let t of r)i.has(t.raws)||(t.raws.before=e.raws.before);return r}removeChild(t,e){let n=this.index(t);return!e&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(t)}toResult(t={}){return new i(new r,this,t).stringify()}}s.registerLazyResult=t=>{i=t},s.registerProcessor=t=>{r=t},t.exports=s,s.default=s,o.registerRoot(s)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/rule.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/list.js");class o extends i{get selectors(){return r.comma(this.selector)}set selectors(t){let e=this.selector?this.selector.match(/,\s*/):null,n=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(n)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}}t.exports=o,o.default=o,i.registerRule(o)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringifier.js"(t){"use strict";const e=/(<)(\/?style\b)/gi,n=/(<)(!--)/g;function i(t){return"string"!=typeof t?t:t.includes("<")?t.replace(e,"\\3c $2").replace(n,"\\3c $2"):t}const r={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function o(t,e){let n="@"+e.name,i=e.params?t.rawValue(e,"params"):"";return void 0!==e.raws.afterName?n+=e.raws.afterName:i&&(n+=" "),n+i}function s(t,e,n){let i=n.nodes,r=i.length-1;for(;r>0&&"comment"===i[r].type;)r-=1;let o=t.raw(n,"semicolon"),s="document"===n.type;for(let t=i.length-1;t>=0;t--)e.push({document:s,node:i[t],semicolon:r!==t||o})}function a(t,e,n,r){let o=t.raw(n,"between","beforeOpen");t.builder(i(r+o)+"{",n,"start");let a=n.nodes&&n.nodes.length,l=()=>{let e=a?t.raw(n,"after"):t.raw(n,"after","emptyBody");e&&t.builder(i(e)),t.builder("}",n,"end"),"rule"===n.type&&n.raws.ownSemicolon&&t.builder(i(n.raws.ownSemicolon),n,"end")};a?(e.push(l),s(t,e,n)):l()}class l{constructor(t){this.builder=t}atrule(t,e){let n=o(this,t);if(t.nodes)this.block(t,n);else{this.builder(i(n+((t.raws.between||"")+(e?";":""))),t)}}beforeAfter(t,e){let n;n=this.raw(t,null,"decl"===t.type?"beforeDecl":"comment"===t.type?"beforeComment":"before"===e?"beforeRule":"beforeClose");let i=t.parent,r=0;for(;i&&"root"!==i.type;)r+=1,i=i.parent;if(n.includes("\n")){let e=this.raw(t,null,"indent");if(e.length)for(let t=0;t<r;t++)n+=e}return n}block(t,e){let n,r=this.raw(t,"between","beforeOpen");this.builder(i(e+r)+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),n=this.raw(t,"after")):n=this.raw(t,"after","emptyBody"),n&&this.builder(i(n)),this.builder("}",t,"end")}body(t){let e=l.prototype,n=["atrule","block","body","rule","stringify"].every(t=>this[t]===e[t]),r=[];for(s(this,r,t);r.length>0;){let t=r.pop();if("function"==typeof t){t();continue}let e=t.node,s=this.raw(e,"before");s&&this.builder(t.document?s:i(s)),n&&"rule"===e.type?a(this,r,e,this.rawValue(e,"selector")):n&&"atrule"===e.type&&e.nodes?a(this,r,e,o(this,e)):this.stringify(e,t.semicolon)}}comment(t){let e=this.raw(t,"left","commentLeft"),n=this.raw(t,"right","commentRight");this.builder(i("/*"+e+t.text+n+"*/"),t)}decl(t,e){let n=t.raws,r=this.raw(t,"between","colon"),o=t.prop+r+this.rawValue(t,"value");t.important&&(o+=n.important||" !important"),e&&(o+=";"),this.builder(i(o),t)}document(t){this.body(t)}raw(t,e,n){let i;if(n||(n=e),e&&(i=t.raws[e],void 0!==i))return i;let o=t.parent;if("before"===n){if(!o||"root"===o.type&&o.first===t)return"";if(o&&"document"===o.type)return""}if(!o)return r[n];let s=t.root(),a=s.rawCache||(s.rawCache={});if(void 0!==a[n])return a[n];if("before"===n||"after"===n)return this.beforeAfter(t,n);{let r="raw"+((l=n)[0].toUpperCase()+l.slice(1));this[r]?i=this[r](s,t):s.walk(t=>{if(i=t.raws[e],void 0!==i)return!1})}var l;return void 0===i&&(i=r[n]),a[n]=i,i}rawBeforeClose(t){let e;return t.walk(t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return e=t.raws.after,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){let n;return t.walkComments(t=>{if(void 0!==t.raws.before)return n=t.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(e,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(t,e){let n;return t.walkDecls(t=>{if(void 0!==t.raws.before)return n=t.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(e,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(t){let e;return t.walk(t=>{if("decl"!==t.type&&(e=t.raws.between,void 0!==e))return!1}),e}rawBeforeRule(t){let e;return t.walk(n=>{if(n.nodes&&(n.parent!==t||t.first!==n)&&void 0!==n.raws.before)return e=n.raws.before,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){let e;return t.walkDecls(t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1}),e}rawEmptyBody(t){let e;return t.walk(t=>{if(t.nodes&&0===t.nodes.length&&(e=t.raws.after,void 0!==e))return!1}),e}rawIndent(t){if(t.raws.indent)return t.raws.indent;let e;return t.walk(n=>{let i=n.parent;if(i&&i!==t&&i.parent&&i.parent===t&&void 0!==n.raws.before){let t=n.raws.before.split("\n");return e=t[t.length-1],e=e.replace(/\S/g,""),!1}}),e}rawSemicolon(t){let e;return t.walk(t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&(e=t.raws.semicolon,void 0!==e))return!1}),e}rawValue(t,e){let n=t[e],i=t.raws[e];return i&&i.value===n?i.raw:n}root(t){if(this.body(t),t.raws.after){let e=t.raws.after;this.builder(t.parent&&"document"===t.parent.type?e:i(e))}}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(i(t.raws.ownSemicolon),t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}}t.exports=l,l.default=l},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringifier.js");function r(t,e){new i(e).stringify(t)}t.exports=r,r.default=r},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/symbols.js"(t){"use strict";t.exports.isClean=Symbol("isClean"),t.exports.my=Symbol("my")},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/tokenize.js"(t){"use strict";const e="'".charCodeAt(0),n='"'.charCodeAt(0),i="\\".charCodeAt(0),r="/".charCodeAt(0),o="\n".charCodeAt(0),s=" ".charCodeAt(0),a="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),h="[".charCodeAt(0),u="]".charCodeAt(0),d="(".charCodeAt(0),f=")".charCodeAt(0),p="{".charCodeAt(0),g="}".charCodeAt(0),m=";".charCodeAt(0),y="*".charCodeAt(0),v=":".charCodeAt(0),x="@".charCodeAt(0),b=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,M=/.[\r\n"'(/\\]/,k=/[\da-f]/i;t.exports=function(t,C={}){let O,j,E,_,S,$,A,z,P,L,I=t.css.valueOf(),T=C.ignoreErrors,R=I.length,B=0,W=[],H=[],N=-1;function F(e){throw t.error("Unclosed "+e,B)}return{back:function(t){H.push(t)},endOfFile:function(){return 0===H.length&&B>=R},nextToken:function(t){if(H.length)return H.pop();if(B>=R)return;let C=!!t&&t.ignoreUnclosed;switch(O=I.charCodeAt(B),O){case o:case s:case l:case c:case a:_=B;do{_+=1,O=I.charCodeAt(_)}while(O===s||O===o||O===l||O===c||O===a);$=["space",I.slice(B,_)],B=_-1;break;case h:case u:case p:case g:case v:case m:case f:{let t=String.fromCharCode(O);$=[t,t,B];break}case d:if(L=W.length?W.pop()[1]:"",P=I.charCodeAt(B+1),"url"===L&&P!==e&&P!==n&&P!==s&&P!==o&&P!==l&&P!==a&&P!==c){_=B;do{if(A=!1,_=I.indexOf(")",_+1),-1===_){if(T||C){_=B;break}F("bracket")}for(z=_;I.charCodeAt(z-1)===i;)z-=1,A=!A}while(A);$=["brackets",I.slice(B,_+1),B,_],B=_}else B<=N?$=["(","(",B]:(_=I.indexOf(")",B+1),j=I.slice(B,_+1),-1===_||M.test(j)?(N=-1===_?R:_,$=["(","(",B]):($=["brackets",j,B,_],B=_));break;case e:case n:S=O===e?"'":'"',_=B;do{if(A=!1,_=I.indexOf(S,_+1),-1===_){if(T||C){_=B+1;break}F("string")}for(z=_;I.charCodeAt(z-1)===i;)z-=1,A=!A}while(A);$=["string",I.slice(B,_+1),B,_],B=_;break;case x:b.lastIndex=B+1,b.test(I),_=0===b.lastIndex?I.length-1:b.lastIndex-2,$=["at-word",I.slice(B,_+1),B,_],B=_;break;case i:for(_=B,E=!0;I.charCodeAt(_+1)===i;)_+=1,E=!E;if(O=I.charCodeAt(_+1),E&&O!==r&&O!==s&&O!==o&&O!==l&&O!==c&&O!==a&&(_+=1,k.test(I.charAt(_)))){for(;k.test(I.charAt(_+1));)_+=1;I.charCodeAt(_+1)===s&&(_+=1)}$=["word",I.slice(B,_+1),B,_],B=_;break;default:O===r&&I.charCodeAt(B+1)===y?(_=I.indexOf("*/",B+2)+1,0===_&&(T||C?_=I.length:F("comment")),$=["comment",I.slice(B,_+1),B,_],B=_):(w.lastIndex=B+1,w.test(I),_=0===w.lastIndex?I.length-1:w.lastIndex-2,$=["word",I.slice(B,_+1),B,_],W.push($),B=_)}return B++,$},position:function(){return B}}}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warn-once.js"(t){"use strict";let e={};t.exports=function(t){e[t]||(e[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warning.js"(t){"use strict";class e{constructor(t,e={}){if(this.type="warning",this.text=t,e.node&&e.node.source){let t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in e)this[t]=e[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}t.exports=e,e.default=e},"./src/components/fragments/async/extensions/Infographic.tsx"(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>CH});var i={};n.r(i),n.d(i,{diamond:()=>Ol,dot:()=>jl,hex:()=>El,line:()=>_l,mosaic:()=>Sl,square:()=>$l});var r=n("react"),o=n.n(r);function s(t){return t.trim().toLowerCase().replace(/[_\s]+/g,"-").replace(/-+/g,"-")}function a(t,e){if(t===e)return 0;if(!t.length)return e.length;if(!e.length)return t.length;const n=Array.from({length:e.length+1},(t,e)=>e),i=new Array(e.length+1);for(let r=1;r<=t.length;r+=1){i[0]=r;const o=t.charCodeAt(r-1);for(let t=1;t<=e.length;t+=1){const r=o===e.charCodeAt(t-1)?0:1;i[t]=Math.min(n[t]+1,i[t-1]+1,n[t-1]+r)}for(let t=0;t<i.length;t+=1)n[t]=i[t]}return n[e.length]}function l(t,e){const n=Math.min(t.length,e.length);let i=0;for(;i<n&&t.charCodeAt(i)===e.charCodeAt(i);)i+=1;return i}function c(t,e,n,i,r,o){return r<e||r===e&&o>n||r===e&&o===n&&(!t||i<t)}const h=new Map;function u(t){return h.has(t)?t:function(t,e){const n=s(t);if(!n)return;let i,r=Number.POSITIVE_INFINITY,o=-1;for(const t of e){const e=s(t);if(e===n)return t;const h=a(n,e),u=l(n,e);c(i,r,o,t,h,u)&&(i=t,r=h,o=u)}return i}(t,h.keys())}const d=new Set,f={};Object.entries({"compare-quadrant-quarter-simple-card":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-simple-card"}]}},"compare-quadrant-quarter-circular":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-circular"}]}},"compare-quadrant-simple-illus":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"simple-illus"}]}}}).forEach(([t,e])=>{f[t]=e;const n=t.replace("compare-quadrant","quadrant");f[n]=new Proxy(e,{get:(e,i,r)=>(d.has(n)||(console.warn(`[Deprecated] "${n}" 已被废弃,将在下个版本移除,请使用 "${t}"`),d.add(n)),Reflect.get(e,i,r))})});const p=f,g={edgeType:"curved",edgeColorMode:"gradient",edgeWidth:2,colorMode:"branch",levelGap:80,nodeGap:18},m={edgeType:"curved",edgeWidth:2,edgeColorMode:"gradient",colorMode:"level",levelGap:80,nodeGap:18},y={type:"lined-text",usePaletteColor:!0,showUnderline:!0,underlineThickness:2},v={type:"capsule-item"},x={type:"circular-progress"},b={type:"rounded-rect-node",positionH:"center"},w={type:"compact-card"},M=(t,e)=>Object.assign(Object.assign({type:"hierarchy-mindmap"},void 0!==e?{edgeAlign:e}:{}),t),k=(t,e,n,i)=>[t,{design:{structure:M(e,i),item:n}}],C=Object.fromEntries([k("hierarchy-mindmap-branch-gradient-lined-palette",g,y,"bottom"),k("hierarchy-mindmap-level-gradient-lined-palette",m,y,"bottom"),k("hierarchy-mindmap-branch-gradient-capsule-item",g,v),k("hierarchy-mindmap-level-gradient-capsule-item",m,v),k("hierarchy-mindmap-branch-gradient-circle-progress",g,x,.4),k("hierarchy-mindmap-level-gradient-circle-progress",m,x,.4),k("hierarchy-mindmap-branch-gradient-rounded-rect",g,b),k("hierarchy-mindmap-level-gradient-rounded-rect",m,b),k("hierarchy-mindmap-branch-gradient-compact-card",g,w),k("hierarchy-mindmap-level-gradient-compact-card",m,w)]),O={"tech-style":{edgeType:"straight",edgeStyle:"solid",edgeColorMode:"gradient",edgeMarker:"arrow",markerSize:12,edgeCornerRadius:5},"dashed-line":{edgeStyle:"dashed",edgeCornerRadius:10,edgeDashPattern:"10,5",edgeColorMode:"gradient",edgeMarker:"dot",markerSize:6,edgeOffset:6},"distributed-origin":{edgeOrigin:"distributed",edgeOriginPadding:30,edgeMarker:"arrow",edgeCornerRadius:10,markerSize:12,edgeColorMode:"gradient"},"curved-line":{edgeType:"curved",edgeColorMode:"gradient",edgeMarker:"none"},"dashed-arrow":{edgeType:"straight",edgeStyle:"dashed",edgeDashPattern:"8,4",edgeMarker:"arrow",markerSize:10,edgeCornerRadius:0}},j=["capsule-item","rounded-rect-node","compact-card","badge-card","ribbon-card"],E={},_="hierarchy-tree",S=[{key:""},{key:"bt",orientation:"bottom-top"},{key:"lr",orientation:"left-right"},{key:"rl",orientation:"right-left"}],$=(t,e,n)=>t?`${_}-${t}-${e}-${n}`:`${_}-${e}-${n}`;for(const t of j)for(const[e,n]of Object.entries(O))for(const{key:i,orientation:r}of S){E[$(i,e,t)]={design:{structure:Object.assign(Object.assign({type:"hierarchy-tree"},r?{orientation:r}:{}),n),item:{type:t}}}}const A={"simple-circle-node":{type:"simple-circle-node"},"badge-card":{type:"badge-card"},capsule:{type:"capsule-item"},"compact-card":{type:"compact-card"}},z={type:"relation-dagre-flow",edgeColorMode:"gradient",showArrow:!0,arrowType:"triangle",colorMode:"node"},P={tb:Object.assign(Object.assign({},z),{rankdir:"TB",edgeRouting:"orth"}),lr:Object.assign(Object.assign({},z),{rankdir:"LR",edgeRouting:"orth"}),"tb-animated":Object.assign(Object.assign({},z),{rankdir:"TB",edgeCornerRadius:12,edgeRouting:"orth",edgeAnimation:"ant-line",edgeDashPattern:"8,4",edgeAnimationSpeed:1}),"lr-animated":Object.assign(Object.assign({},z),{rankdir:"LR",edgeCornerRadius:12,edgeRouting:"orth",edgeAnimation:"ant-line",edgeDashPattern:"8,4",edgeAnimationSpeed:1})},L={},I=["lr-capsule","tb-capsule"];Object.entries(P).forEach(([t,e])=>{Object.entries(A).forEach(([n,i])=>{const r=`${t}-${n}`;if(I.includes(r))return;L[`relation-dagre-flow-${r}`]={design:{title:"default",structure:e,item:i}}})});const T={"badge-card":{type:"badge-card",width:160,height:60},"compact-card":{type:"compact-card",width:180,height:60},"capsule-item":{type:"capsule-item",width:150,height:60},"rounded-rect-node":{type:"rounded-rect-node",width:140,height:60}},R={type:"sequence-interaction",showLaneHeader:!0,arrowType:"triangle"},B={default:{},dashed:{edgeStyle:"dashed"},animated:{edgeStyle:"dashed",animated:!0}},W={default:Object.assign(Object.assign({},R),{showLifeline:!0,nodeGap:40}),compact:Object.assign(Object.assign({},R),{showLifeline:!0,nodeGap:20}),wide:Object.assign(Object.assign({},R),{showLifeline:!0,nodeGap:60})},H={},N=[];Object.entries(W).forEach(([t,e])=>{Object.entries(B).forEach(([n,i])=>{Object.entries(T).forEach(([r,o])=>{const s=[t];"default"!==n&&s.push(n),s.push(r);const a=s.join("-");if(N.includes(a))return;H[`sequence-interaction-${a}`]={design:{title:"default",structure:Object.assign(Object.assign({},e),i),item:o}}})})});const F=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"compare-hierarchy-left-right-circle-node-pill-badge":{design:{structure:{type:"compare-hierarchy-left-right",decoration:"split-line",surround:!1,groupGap:-20},title:"default",items:[{type:"circle-node",width:240},"pill-badge"]},themeConfig:{}},"compare-hierarchy-left-right-circle-node-plain-text":{design:{title:"default",structure:{type:"compare-hierarchy-left-right",decoration:"dot-line",flipLeaf:!0,groupGap:-10},items:[{type:"circle-node",width:180},{type:"plain-text"}]}},"list-pyramid-rounded-rect-node":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"rounded-rect-node"}]}},"list-pyramid-badge-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"badge-card"}]}},"list-pyramid-compact-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"compact-card"}]}},"list-column-done-list":{design:{title:"default",structure:{type:"list-column"},items:[{type:"done-list"}]}},"list-column-vertical-icon-arrow":{design:{title:"default",structure:{type:"list-column",gap:-5,zigzag:!0},items:[{type:"vertical-icon-arrow"}]}},"list-grid-badge-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"badge-card"}]}},"list-grid-candy-card-lite":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"candy-card-lite"}]}},"chart-column-simple":{design:{title:"default",structure:{type:"chart-column"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-grid-circular-progress":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"circular-progress"}]}},"list-grid-compact-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"compact-card"}]}},"list-grid-done-list":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"done-list"}]}},"list-grid-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-grid",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"list-grid-progress-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"progress-card"}]}},"list-grid-ribbon-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"ribbon-card"}]}},"list-grid-simple":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"simple"}]}},"list-row-circular-progress":{design:{title:"default",structure:{type:"list-row"},items:[{type:"circular-progress"}]}},"list-row-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"relation-circle-circular-progress":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"circular-progress"}]}},"relation-circle-icon-badge":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"icon-badge"}]}},"relation-network-icon-badge":{design:{title:"default",structure:{type:"relation-network"},items:[{type:"icon-badge"}]}},"relation-network-simple-circle-node":{design:{title:"default",structure:{type:"relation-network"},items:[{type:"simple-circle-node"}]}},"sequence-steps-badge-card":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"badge-card"}]}},"sequence-steps-simple":{design:{title:"default",structure:{type:"sequence-steps",gap:10},items:[{type:"simple"}]}},"sequence-timeline-done-list":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"done-list"}]}},"sequence-timeline-plain-text":{design:{title:"default",structure:{type:"sequence-timeline",showStepLabels:!1},items:[{type:"plain-text"}]}},"sequence-timeline-rounded-rect-node":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"rounded-rect-node"}]}},"sequence-ascending-steps":{design:{title:"default",structure:{type:"sequence-ascending-steps",vGap:-46,hGap:-20},items:[{type:"l-corner-card"}]}},"sequence-timeline-simple":{design:{title:"default",structure:{type:"sequence-timeline",gap:20,showStepLabels:!1},items:[{type:"simple",positionV:"middle"}]}},"sequence-cylinders-3d-simple":{design:{title:"default",structure:{type:"sequence-cylinders-3d",gapY:20},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-column-simple-vertical-arrow":{design:{title:"default",structure:{type:"list-column",gap:0,zigzag:!0},items:[{type:"simple-vertical-arrow"}]}},"list-row-simple-horizontal-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"simple-horizontal-arrow"}]}},"compare-swot":{design:{title:"default",structure:{type:"compare-hierarchy-row",itemGap:32,itemPadding:40,showColumnBackground:!0,columnBackgroundAlpha:.08},items:[{type:"letter-card",showBottomShade:!1},{type:"plain-text",formatter:t=>`● ${t}`,usePaletteColor:!0}]}},"compare-hierarchy-row-letter-card-compact-card":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"compact-card"}]}},"compare-hierarchy-row-letter-card-rounded-rect-node":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"rounded-rect-node"}]}},"sequence-snake-steps-compact-card":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"compact-card"}]}},"sequence-snake-steps-pill-badge":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"pill-badge"}]}},"sequence-snake-steps-simple":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple"}]}},"sequence-color-snake-steps-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"horizontal-icon-line"}]}},"sequence-pyramid-simple":{design:{title:"default",structure:{type:"sequence-pyramid"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]},themeConfig:{colorPrimary:"#1677ff"}},"sequence-funnel-simple":{design:{title:"default",structure:{type:"sequence-funnel"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]},themeConfig:{palette:"#1677ff"}},"list-row-horizontal-icon-line":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-line"}]}},"list-sector-simple":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"simple"}]}},"list-sector-plain-text":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"plain-text"}]}},"list-sector-half-plain-text":{design:{title:"default",structure:{type:"list-sector",startAngle:-180,endAngle:0},items:[{type:"plain-text"}]}},"list-waterfall-badge-card":{design:{title:"default",structure:{type:"list-waterfall"},items:[{type:"badge-card"}]}},"list-waterfall-compact-card":{design:{title:"default",structure:{type:"list-waterfall"},items:[{type:"compact-card"}]}},"sequence-roadmap-vertical-plain-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"plain-text"}]}},"sequence-roadmap-vertical-simple":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"simple",showIcon:!1}]}},"sequence-roadmap-vertical-badge-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"badge-card"}]}},"sequence-roadmap-vertical-pill-badge":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"pill-badge"}]}},"sequence-roadmap-vertical-quarter-circular":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"quarter-circular"}]}},"sequence-roadmap-vertical-quarter-simple-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical",flipped:!0},items:[{type:"quarter-simple-card"}]}},"sequence-horizontal-zigzag-simple-illus":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-illus"}]}},"sequence-horizontal-zigzag-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"horizontal-icon-line"}]}},"sequence-horizontal-zigzag-plain-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"plain-text"}]}},"sequence-horizontal-zigzag-simple-horizontal-arrow":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-horizontal-arrow"}]}},"sequence-horizontal-zigzag-simple":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple"}]}},"list-row-simple-illus":{design:{title:"default",structure:{type:"list-row"},items:[{type:"simple-illus"}]}},"sequence-color-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"simple-illus"}]}},"sequence-timeline-simple-illus":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"simple-illus",usePaletteColor:!0}]}},"sequence-zigzag-steps-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-steps"},items:[{type:"underline-text"}]}},"sequence-horizontal-zigzag-underline-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"underline-text"}]}},"sequence-roadmap-vertical-underline-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"underline-text"}]}},"sequence-snake-steps-underline-text":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"underline-text"}]}},"sequence-circle-arrows-indexed-card":{design:{title:"default",structure:{type:"sequence-circle-arrows"},items:[{type:"indexed-card"}]}},"sequence-zigzag-pucks-3d-simple":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-zigzag-pucks-3d-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"underline-text"}]}},"sequence-zigzag-pucks-3d-indexed-card":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"indexed-card"}]}},"sequence-ascending-stairs-3d-simple":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-ascending-stairs-3d-underline-text":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"underline-text"}]}},"sequence-circular-underline-text":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"underline-text"}]}},"sequence-circular-simple":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-filter-mesh-underline-text":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"underline-text"}]}},"sequence-filter-mesh-simple":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-mountain-underline-text":{design:{title:"default",structure:{type:"sequence-mountain"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-simple-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"compact-card"}]}},"chart-bar-plain-text":{design:{title:"default",structure:{type:"chart-bar"},items:[{type:"plain-text",positionH:"flipped"}]}},"chart-line-plain-text":{design:{title:"default",structure:{type:"chart-line"},items:[{type:"plain-text",lineNumber:2}]}}},{"chart-pie-plain-text":{design:{title:"default",structure:{type:"chart-pie"},items:[{type:"plain-text"}]}},"chart-pie-compact-card":{design:{title:"default",structure:{type:"chart-pie",avoidLabelOverlap:!0},items:[{type:"compact-card"}]}},"chart-pie-pill-badge":{design:{title:"default",structure:{type:"chart-pie",avoidLabelOverlap:!0},items:[{type:"pill-badge"}]}},"chart-pie-donut-plain-text":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90},items:[{type:"plain-text"}]}},"chart-pie-donut-compact-card":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90,avoidLabelOverlap:!0},items:[{type:"compact-card"}]}},"chart-pie-donut-pill-badge":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90,avoidLabelOverlap:!0},items:[{type:"pill-badge"}]}}}),p),E),C),{"sequence-stairs-front-pill-badge":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"pill-badge"}]}},"sequence-stairs-front-compact-card":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"compact-card"}]}},"sequence-stairs-front-simple":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"simple",usePaletteColor:!0}]}}}),{"chart-wordcloud-rotate":{design:{structure:{type:"chart-wordcloud"},item:"simple"}},"chart-wordcloud":{design:{structure:{type:"chart-wordcloud",enableRotate:!1},item:"simple"}}}),{"list-zigzag-up-compact-card":{design:{title:"default",structure:{type:"list-zigzag-up"},items:[{type:"compact-card"}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-up-simple":{design:{title:"default",structure:{type:"list-zigzag-up"},items:[{type:"simple",usePaletteColor:!0}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-down-compact-card":{design:{title:"default",structure:{type:"list-zigzag-down"},items:[{type:"compact-card"}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-down-simple":{design:{title:"default",structure:{type:"list-zigzag-down"},items:[{type:"simple",usePaletteColor:!0}]},themeConfig:{colorPrimary:"#17CA2C"}}}),L),H),{"hierarchy-structure":{design:{title:"default",structure:{type:"hierarchy-structure"},item:"simple"}},"hierarchy-structure-mirror":{design:{title:"default",structure:{type:"hierarchy-structure",layerLabelPosition:"right"},item:"simple"}}});Object.entries(F).forEach(([t,e])=>{!function(t,e){h.set(t,e)}(t,e)});const D=Symbol.for("@antv/infographic/Fragment");function V(t,e={}){return{type:t,props:e}}const U=V,Y=Symbol.for("@antv/infographic/Defs");function q(t){return{type:Y,props:t}}function G(t){var e,n,i,r;const{x:o=0,y:s=0,width:a=0,height:l=0}=t;null!==(e=t.cx)&&void 0!==e||(t.cx=o+a/2),null!==(n=t.cy)&&void 0!==n||(t.cy=s+l/2),null!==(i=t.rx)&&void 0!==i||(t.rx=a/2),null!==(r=t.ry)&&void 0!==r||(t.ry=l/2);return{type:"ellipse",props:t}}function X(t){const{x:e=0,y:n=0}=t;(e||n)&&(t.transform||(t.transform=`translate(${e}, ${n})`));return{type:"g",props:t}}function K(t){const{x:e,y:n}=t,i=Object.assign({},t);void 0===e&&void 0===n||(i.transform=`translate(${null!=e?e:0}, ${null!=n?n:0})`);return{type:"path",props:i}}var Z=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function Q(t){var{points:e=[]}=t,n=Z(t,["points"]);const{x:i,y:r}=n,o=e.map(({x:t,y:e})=>`${t},${e}`).join(" "),s=Object.assign(Object.assign({},n),{points:o});void 0===i&&void 0===r||(s.transform=`translate(${null!=i?i:0}, ${null!=r?r:0})`+(s.transform||""));return{type:"polygon",props:s}}function J(t){return{type:"rect",props:t}}function tt(t){return Object.keys(t[0]).reduce((e,n)=>{const i=n;return t.every(e=>e[i]===t[0][i])&&(e[i]=t[0][i]),e},{})}const et=(t,e)=>{if("number"==typeof t)return 3===e?{mode:"rgb",r:(t>>8&15|t>>4&240)/255,g:(t>>4&15|240&t)/255,b:(15&t|t<<4&240)/255}:4===e?{mode:"rgb",r:(t>>12&15|t>>8&240)/255,g:(t>>8&15|t>>4&240)/255,b:(t>>4&15|240&t)/255,alpha:(15&t|t<<4&240)/255}:6===e?{mode:"rgb",r:(t>>16&255)/255,g:(t>>8&255)/255,b:(255&t)/255}:8===e?{mode:"rgb",r:(t>>24&255)/255,g:(t>>16&255)/255,b:(t>>8&255)/255,alpha:(255&t)/255}:void 0},nt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},it=t=>et(nt[t.toLowerCase()],6),rt=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,ot=t=>{let e;return(e=t.match(rt))?et(parseInt(e[1],16),e[1].length):void 0},st="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",at=`${st}%`,lt=`(?:${st}%|${st})`,ct=`(?:${st}(deg|grad|rad|turn)|${st})`,ht="\\s*,\\s*",ut=(new RegExp("^"+`(?:${st}%|${st}|none)`+"$"),new RegExp(`^rgba?\\(\\s*${st}${ht}${st}${ht}${st}\\s*(?:,\\s*${lt}\\s*)?\\)$`)),dt=new RegExp(`^rgba?\\(\\s*${at}${ht}${at}${ht}${at}\\s*(?:,\\s*${lt}\\s*)?\\)$`),ft=t=>{let e,n={mode:"rgb"};if(e=t.match(ut))void 0!==e[1]&&(n.r=e[1]/255),void 0!==e[2]&&(n.g=e[2]/255),void 0!==e[3]&&(n.b=e[3]/255);else{if(!(e=t.match(dt)))return;void 0!==e[1]&&(n.r=e[1]/100),void 0!==e[2]&&(n.g=e[2]/100),void 0!==e[3]&&(n.b=e[3]/100)}return void 0!==e[4]?n.alpha=Math.max(0,Math.min(1,e[4]/100)):void 0!==e[5]&&(n.alpha=Math.max(0,Math.min(1,+e[5]))),n},pt=(t,e)=>void 0===t?void 0:"object"!=typeof t?Dt(t):void 0!==t.mode?t:e?{...t,mode:e}:void 0,gt=(t="rgb")=>e=>void 0!==(e=pt(e,t))?e.mode===t?e:mt[e.mode][t]?mt[e.mode][t](e):"rgb"===t?mt[e.mode].rgb(e):mt.rgb[t](mt[e.mode].rgb(e)):void 0,mt={},yt={},vt=[],xt={},bt=t=>t,wt=t=>(mt[t.mode]={...mt[t.mode],...t.toMode},Object.keys(t.fromMode||{}).forEach(e=>{mt[e]||(mt[e]={}),mt[e][t.mode]=t.fromMode[e]}),t.ranges||(t.ranges={}),t.difference||(t.difference={}),t.channels.forEach(e=>{if(void 0===t.ranges[e]&&(t.ranges[e]=[0,1]),!t.interpolate[e])throw new Error(`Missing interpolator for: ${e}`);"function"==typeof t.interpolate[e]&&(t.interpolate[e]={use:t.interpolate[e]}),t.interpolate[e].fixup||(t.interpolate[e].fixup=bt)}),yt[t.mode]=t,(t.parse||[]).forEach(e=>{Mt(e,t.mode)}),gt(t.mode)),Mt=(t,e)=>{if("string"==typeof t){if(!e)throw new Error("'mode' required when 'parser' is a string");xt[t]=e}else"function"==typeof t&&vt.indexOf(t)<0&&vt.push(t)},kt=/[^\x00-\x7F]|[a-zA-Z_]/,Ct=/[^\x00-\x7F]|[-\w]/,Ot="function",jt="ident",Et="number",_t="percentage",St=")",$t="none",At="hue",zt="alpha";let Pt=0;function Lt(t){let e=t[Pt],n=t[Pt+1];return"-"===e||"+"===e?/\d/.test(n)||"."===n&&/\d/.test(t[Pt+2]):/\d/.test("."===e?n:e)}function It(t){if(Pt>=t.length)return!1;let e=t[Pt];if(kt.test(e))return!0;if("-"===e){if(t.length-Pt<2)return!1;let e=t[Pt+1];return!("-"!==e&&!kt.test(e))}return!1}const Tt={deg:1,rad:180/Math.PI,grad:.9,turn:360};function Rt(t){let e="";if("-"!==t[Pt]&&"+"!==t[Pt]||(e+=t[Pt++]),e+=Bt(t),"."===t[Pt]&&/\d/.test(t[Pt+1])&&(e+=t[Pt++]+Bt(t)),"e"!==t[Pt]&&"E"!==t[Pt]||("-"!==t[Pt+1]&&"+"!==t[Pt+1]||!/\d/.test(t[Pt+2])?/\d/.test(t[Pt+1])&&(e+=t[Pt++]+Bt(t)):e+=t[Pt++]+t[Pt++]+Bt(t)),It(t)){let n=Wt(t);return"deg"===n||"rad"===n||"turn"===n||"grad"===n?{type:At,value:e*Tt[n]}:void 0}return"%"===t[Pt]?(Pt++,{type:_t,value:+e}):{type:Et,value:+e}}function Bt(t){let e="";for(;/\d/.test(t[Pt]);)e+=t[Pt++];return e}function Wt(t){let e="";for(;Pt<t.length&&Ct.test(t[Pt]);)e+=t[Pt++];return e}function Ht(t){let e=Wt(t);return"("===t[Pt]?(Pt++,{type:Ot,value:e}):"none"===e?{type:$t,value:void 0}:{type:jt,value:e}}function Nt(t){t._i=0;let e=t[t._i++];if(!e||e.type!==Ot||"color"!==e.value)return;if(e=t[t._i++],e.type!==jt)return;const n=xt[e.value];if(!n)return;const i={mode:n},r=Ft(t,!1);if(!r)return;const o=(t=>yt[t])(n).channels;for(let t,e,n=0;n<o.length;n++)t=r[n],e=o[n],t.type!==$t&&(i[e]=t.type===Et?t.value:t.value/100,"alpha"===e&&(i[e]=Math.max(0,Math.min(1,i[e]))));return i}function Ft(t,e){const n=[];let i;for(;t._i<t.length;)if(i=t[t._i++],i.type===$t||i.type===Et||i.type===zt||i.type===_t||e&&i.type===At)n.push(i);else{if(i.type!==St)return;if(t._i<t.length)return}if(!(n.length<3||n.length>4)){if(4===n.length){if(n[3].type!==zt)return;n[3]=n[3].value}return 3===n.length&&n.push({type:$t,value:void 0}),n.every(t=>t.type!==zt)?n:void 0}}const Dt=t=>{if("string"!=typeof t)return;const e=function(t=""){let e,n=t.trim(),i=[];for(Pt=0;Pt<n.length;)if(e=n[Pt++],"\n"!==e&&"\t"!==e&&" "!==e){if(","===e)return;if(")"!==e){if("+"===e){if(Pt--,Lt(n)){i.push(Rt(n));continue}return}if("-"===e){if(Pt--,Lt(n)){i.push(Rt(n));continue}if(It(n)){i.push({type:jt,value:Wt(n)});continue}return}if("."===e){if(Pt--,Lt(n)){i.push(Rt(n));continue}return}if("/"===e){for(;Pt<n.length&&("\n"===n[Pt]||"\t"===n[Pt]||" "===n[Pt]);)Pt++;let t;if(Lt(n)&&(t=Rt(n),t.type!==At)){i.push({type:zt,value:t});continue}if(It(n)&&"none"===Wt(n)){i.push({type:zt,value:{type:$t,value:void 0}});continue}return}if(/\d/.test(e))Pt--,i.push(Rt(n));else{if(!kt.test(e))return;Pt--,i.push(Ht(n))}}else i.push({type:St})}else for(;Pt<n.length&&("\n"===n[Pt]||"\t"===n[Pt]||" "===n[Pt]);)Pt++;return i}(t),n=e?function(t,e){t._i=0;let n=t[t._i++];if(!n||n.type!==Ot)return;let i=Ft(t,e);return i?(i.unshift(n.value),i):void 0}(e,!0):void 0;let i,r=0,o=vt.length;for(;r<o;)if(void 0!==(i=vt[r++](t,n)))return i;return e?Nt(e):void 0};const Vt=function(t,e){if(!e||"rgb"!==e[0]&&"rgba"!==e[0])return;const n={mode:"rgb"},[,i,r,o,s]=e;return i.type!==At&&r.type!==At&&o.type!==At?(i.type!==$t&&(n.r=i.type===Et?i.value/255:i.value/100),r.type!==$t&&(n.g=r.type===Et?r.value/255:r.value/100),o.type!==$t&&(n.b=o.type===Et?o.value/255:o.value/100),s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n):void 0},Ut=t=>"transparent"===t?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Yt=(t,e,n)=>t+n*(e-t),qt=(Gt=Yt,t=>{let e=(t=>{let e=[];for(let n=0;n<t.length-1;n++){let i=t[n],r=t[n+1];e.push(void 0===i&&void 0===r?void 0:void 0!==i&&void 0!==r?[i,r]:void 0!==i?[i,i]:[r,r])}return e})(t);return t=>{let n=t*e.length,i=t>=1?e.length-1:Math.max(Math.floor(n),0),r=e[i];return void 0===r?void 0:Gt(r[0],r[1],n-i)}});var Gt;const Xt=t=>{let e=!1,n=t.map(t=>void 0!==t?(e=!0,t):1);return e?n:t},Kt={mode:"rgb",channels:["r","g","b","alpha"],parse:[Vt,ot,ft,it,Ut,"srgb"],serialize:"srgb",interpolate:{r:qt,g:qt,b:qt,alpha:{use:qt,fixup:Xt}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Zt=(t=0)=>Math.pow(Math.abs(t),563/256)*Math.sign(t),Qt=t=>{let e=Zt(t.r),n=Zt(t.g),i=Zt(t.b),r={mode:"xyz65",x:.5766690429101305*e+.1855582379065463*n+.1882286462349947*i,y:.297344975250536*e+.6273635662554661*n+.0752914584939979*i,z:.0270313613864123*e+.0706888525358272*n+.9913375368376386*i};return void 0!==t.alpha&&(r.alpha=t.alpha),r},Jt=t=>Math.pow(Math.abs(t),256/563)*Math.sign(t),te=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r={mode:"a98",r:Jt(2.0415879038107465*t-.5650069742788597*e-.3447313507783297*n),g:Jt(-.9692436362808798*t+1.8759675015077206*e+.0415550574071756*n),b:Jt(.0134442806320312*t-.1183623922310184*e+1.0151749943912058*n)};return void 0!==i&&(r.alpha=i),r},ee=(t=0)=>{const e=Math.abs(t);return e<=.04045?t/12.92:(Math.sign(t)||1)*Math.pow((e+.055)/1.055,2.4)},ne=({r:t,g:e,b:n,alpha:i})=>{let r={mode:"lrgb",r:ee(t),g:ee(e),b:ee(n)};return void 0!==i&&(r.alpha=i),r},ie=t=>{let{r:e,g:n,b:i,alpha:r}=ne(t),o={mode:"xyz65",x:.4123907992659593*e+.357584339383878*n+.1804807884018343*i,y:.2126390058715102*e+.715168678767756*n+.0721923153607337*i,z:.0193308187155918*e+.119194779794626*n+.9505321522496607*i};return void 0!==r&&(o.alpha=r),o},re=(t=0)=>{const e=Math.abs(t);return e>.0031308?(Math.sign(t)||1)*(1.055*Math.pow(e,1/2.4)-.055):12.92*t},oe=({r:t,g:e,b:n,alpha:i},r="rgb")=>{let o={mode:r,r:re(t),g:re(e),b:re(n)};return void 0!==i&&(o.alpha=i),o},se=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=oe({r:3.2409699419045226*t-1.537383177570094*e-.4986107602930034*n,g:-.9692436362808796*t+1.8759675015077204*e+.0415550574071756*n,b:.0556300796969936*t-.2039769588889765*e+1.0569715142428784*n});return void 0!==i&&(r.alpha=i),r},ae={...Kt,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:t=>te(ie(t)),xyz65:te},toMode:{rgb:t=>se(Qt(t)),xyz65:Qt}},le=ae,ce=t=>(t%=360)<0?t+360:t,he=(t,e)=>t.map((n,i,r)=>{if(void 0===n)return n;let o=ce(n);return 0===i||void 0===t[i-1]?o:e(o-ce(r[i-1]))}).reduce((t,e)=>t.length&&void 0!==e&&void 0!==t[t.length-1]?(t.push(e+t[t.length-1]),t):(t.push(e),t),[]),ue=t=>he(t,t=>Math.abs(t)<=180?t:t-360*Math.sign(t)),de=[-.14861,1.78277,-.29227,-.90649,1.97294,0],fe=Math.PI/180,pe=180/Math.PI;let ge=de[3]*de[4],me=de[1]*de[4],ye=de[1]*de[2]-de[0]*de[3];const ve=({r:t,g:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=(ye*n+t*ge-e*me)/(ye+ge-me),o=n-r,s=(de[4]*(e-r)-de[2]*o)/de[3],a={mode:"cubehelix",l:r,s:0===r||1===r?void 0:Math.sqrt(o*o+s*s)/(de[4]*r*(1-r))};return a.s&&(a.h=Math.atan2(s,o)*pe-120),void 0!==i&&(a.alpha=i),a},xe=({h:t,s:e,l:n,alpha:i})=>{let r={mode:"rgb"};t=(void 0===t?0:t+120)*fe,void 0===n&&(n=0);let o=void 0===e?0:e*n*(1-n),s=Math.cos(t),a=Math.sin(t);return r.r=n+o*(de[0]*s+de[1]*a),r.g=n+o*(de[2]*s+de[3]*a),r.b=n+o*(de[4]*s+de[5]*a),void 0!==i&&(r.alpha=i),r};const be=(t,e)=>{if(void 0===t.h||void 0===e.h||!t.s||!e.s)return 0;let n=ce(t.h),i=ce(e.h),r=Math.sin((i-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.s*e.s)*r},we=(t,e)=>{if(void 0===t.h||void 0===e.h||!t.c||!e.c)return 0;let n=ce(t.h),i=ce(e.h),r=Math.sin((i-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.c*e.c)*r};const Me=t=>{let e=t.reduce((t,e)=>{if(void 0!==e){let n=e*Math.PI/180;t.sin+=Math.sin(n),t.cos+=Math.cos(n)}return t},{sin:0,cos:0}),n=180*Math.atan2(e.sin,e.cos)/Math.PI;return n<0?360+n:n};const ke={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:ve},toMode:{rgb:xe},interpolate:{h:{use:qt,fixup:ue},s:qt,l:qt,alpha:{use:qt,fixup:Xt}},difference:{h:be},average:{h:Me}},Ce=({l:t,a:e,b:n,alpha:i},r="lch")=>{void 0===e&&(e=0),void 0===n&&(n=0);let o=Math.sqrt(e*e+n*n),s={mode:r,l:t,c:o};return o&&(s.h=ce(180*Math.atan2(n,e)/Math.PI)),void 0!==i&&(s.alpha=i),s},Oe=({l:t,c:e,h:n,alpha:i},r="lab")=>{void 0===n&&(n=0);let o={mode:r,l:t,a:e?e*Math.cos(n/180*Math.PI):0,b:e?e*Math.sin(n/180*Math.PI):0};return void 0!==i&&(o.alpha=i),o},je=Math.pow(29,3)/Math.pow(3,3),Ee=Math.pow(6,3)/Math.pow(29,3),_e=.3457/.3585,Se=1,$e=.2958/.3585,Ae=.3127/.329,ze=1,Pe=.3583/.329;Math.pow(29,3),Math.pow(3,3),Math.pow(6,3),Math.pow(29,3);let Le=t=>Math.pow(t,3)>Ee?Math.pow(t,3):(116*t-16)/je;const Ie=({l:t,a:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=(t+16)/116,o=r-n/200,s={mode:"xyz65",x:Le(e/500+r)*Ae,y:Le(r)*ze,z:Le(o)*Pe};return void 0!==i&&(s.alpha=i),s},Te=t=>se(Ie(t)),Re=t=>t>Ee?Math.cbrt(t):(je*t+16)/116,Be=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=Re(t/Ae),o=Re(e/ze),s={mode:"lab65",l:116*o-16,a:500*(r-o),b:200*(o-Re(n/Pe))};return void 0!==i&&(s.alpha=i),s},We=t=>{let e=Be(ie(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},He=26/180*Math.PI,Ne=Math.cos(He),Fe=Math.sin(He),De=100/Math.log(1.39),Ve=({l:t,c:e,h:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r={mode:"lab65",l:(Math.exp(1*t/De)-1)/.0039},o=(Math.exp(.0435*e*1*1)-1)/.075,s=o*Math.cos(n/180*Math.PI-He),a=o*Math.sin(n/180*Math.PI-He);return r.a=s*Ne-a/.83*Fe,r.b=s*Fe+a/.83*Ne,void 0!==i&&(r.alpha=i),r},Ue=({l:t,a:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=e*Ne+n*Fe,o=.83*(n*Ne-e*Fe),s=Math.sqrt(r*r+o*o),a={mode:"dlch",l:De/1*Math.log(1+.0039*t),c:Math.log(1+.075*s)/.0435};return a.c&&(a.h=ce((Math.atan2(o,r)+He)/Math.PI*180)),void 0!==i&&(a.alpha=i),a},Ye=t=>Ve(Ce(t,"dlch")),qe=t=>Oe(Ue(t),"dlab"),Ge={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Ye,rgb:t=>Te(Ye(t))},fromMode:{lab65:qe,rgb:t=>qe(We(t))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:qt,a:qt,b:qt,alpha:{use:qt,fixup:Xt}}},Xe=Ge,Ke={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Ve,dlab:t=>Oe(t,"dlab"),rgb:t=>Te(Ve(t))},fromMode:{lab65:Ue,dlab:t=>Ce(t,"dlch"),rgb:t=>Ue(We(t))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:qt,c:qt,h:{use:qt,fixup:ue},alpha:{use:qt,fixup:Xt}},difference:{h:we},average:{h:Me}},Ze=Ke;const Qe={mode:"hsi",toMode:{rgb:function({h:t,s:e,i:n,alpha:i}){t=ce(void 0!==t?t:0),void 0===e&&(e=0),void 0===n&&(n=0);let r,o=Math.abs(t/60%2-1);switch(Math.floor(t/60)){case 0:r={r:n*(1+e*(3/(2-o)-1)),g:n*(1+e*(3*(1-o)/(2-o)-1)),b:n*(1-e)};break;case 1:r={r:n*(1+e*(3*(1-o)/(2-o)-1)),g:n*(1+e*(3/(2-o)-1)),b:n*(1-e)};break;case 2:r={r:n*(1-e),g:n*(1+e*(3/(2-o)-1)),b:n*(1+e*(3*(1-o)/(2-o)-1))};break;case 3:r={r:n*(1-e),g:n*(1+e*(3*(1-o)/(2-o)-1)),b:n*(1+e*(3/(2-o)-1))};break;case 4:r={r:n*(1+e*(3*(1-o)/(2-o)-1)),g:n*(1-e),b:n*(1+e*(3/(2-o)-1))};break;case 5:r={r:n*(1+e*(3/(2-o)-1)),g:n*(1-e),b:n*(1+e*(3*(1-o)/(2-o)-1))};break;default:r={r:n*(1-e),g:n*(1-e),b:n*(1-e)}}return r.mode="rgb",void 0!==i&&(r.alpha=i),r}},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:function({r:t,g:e,b:n,alpha:i}){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsi",s:t+e+n===0?0:1-3*o/(t+e+n),i:(t+e+n)/3};return r-o!==0&&(s.h=60*(r===t?(e-n)/(r-o)+6*(e<n):r===e?(n-t)/(r-o)+2:(t-e)/(r-o)+4)),void 0!==i&&(s.alpha=i),s}},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:qt,fixup:ue},s:qt,i:qt,alpha:{use:qt,fixup:Xt}},difference:{h:be},average:{h:Me}},Je=Qe;const tn=(t,e)=>{switch(e){case"deg":return+t;case"rad":return t/Math.PI*180;case"grad":return t/10*9;case"turn":return 360*t}},en=new RegExp(`^hsla?\\(\\s*${ct}${ht}${at}${ht}${at}\\s*(?:,\\s*${lt}\\s*)?\\)$`),nn=t=>{let e=t.match(en);if(!e)return;let n={mode:"hsl"};return void 0!==e[3]?n.h=+e[3]:void 0!==e[1]&&void 0!==e[2]&&(n.h=tn(e[1],e[2])),void 0!==e[4]&&(n.s=Math.min(Math.max(0,e[4]/100),1)),void 0!==e[5]&&(n.l=Math.min(Math.max(0,e[5]/100),1)),void 0!==e[6]?n.alpha=Math.max(0,Math.min(1,e[6]/100)):void 0!==e[7]&&(n.alpha=Math.max(0,Math.min(1,+e[7]))),n};const rn=function(t,e){if(!e||"hsl"!==e[0]&&"hsla"!==e[0])return;const n={mode:"hsl"},[,i,r,o,s]=e;if(i.type!==$t){if(i.type===_t)return;n.h=i.value}if(r.type!==$t){if(r.type===At)return;n.s=r.value/100}if(o.type!==$t){if(o.type===At)return;n.l=o.value/100}return s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n},on={mode:"hsl",toMode:{rgb:function({h:t,s:e,l:n,alpha:i}){t=ce(void 0!==t?t:0),void 0===e&&(e=0),void 0===n&&(n=0);let r,o=n+e*(n<.5?n:1-n),s=o-2*(o-n)*Math.abs(t/60%2-1);switch(Math.floor(t/60)){case 0:r={r:o,g:s,b:2*n-o};break;case 1:r={r:s,g:o,b:2*n-o};break;case 2:r={r:2*n-o,g:o,b:s};break;case 3:r={r:2*n-o,g:s,b:o};break;case 4:r={r:s,g:2*n-o,b:o};break;case 5:r={r:o,g:2*n-o,b:s};break;default:r={r:2*n-o,g:2*n-o,b:2*n-o}}return r.mode="rgb",void 0!==i&&(r.alpha=i),r}},fromMode:{rgb:function({r:t,g:e,b:n,alpha:i}){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsl",s:r===o?0:(r-o)/(1-Math.abs(r+o-1)),l:.5*(r+o)};return r-o!==0&&(s.h=60*(r===t?(e-n)/(r-o)+6*(e<n):r===e?(n-t)/(r-o)+2:(t-e)/(r-o)+4)),void 0!==i&&(s.alpha=i),s}},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[rn,nn],serialize:t=>`hsl(${void 0!==t.h?t.h:"none"} ${void 0!==t.s?100*t.s+"%":"none"} ${void 0!==t.l?100*t.l+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:qt,fixup:ue},s:qt,l:qt,alpha:{use:qt,fixup:Xt}},difference:{h:be},average:{h:Me}},sn=on;function an({h:t,s:e,v:n,alpha:i}){t=ce(void 0!==t?t:0),void 0===e&&(e=0),void 0===n&&(n=0);let r,o=Math.abs(t/60%2-1);switch(Math.floor(t/60)){case 0:r={r:n,g:n*(1-e*o),b:n*(1-e)};break;case 1:r={r:n*(1-e*o),g:n,b:n*(1-e)};break;case 2:r={r:n*(1-e),g:n,b:n*(1-e*o)};break;case 3:r={r:n*(1-e),g:n*(1-e*o),b:n};break;case 4:r={r:n*(1-e*o),g:n*(1-e),b:n};break;case 5:r={r:n,g:n*(1-e),b:n*(1-e*o)};break;default:r={r:n*(1-e),g:n*(1-e),b:n*(1-e)}}return r.mode="rgb",void 0!==i&&(r.alpha=i),r}function ln({r:t,g:e,b:n,alpha:i}){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsv",s:0===r?0:1-o/r,v:r};return r-o!==0&&(s.h=60*(r===t?(e-n)/(r-o)+6*(e<n):r===e?(n-t)/(r-o)+2:(t-e)/(r-o)+4)),void 0!==i&&(s.alpha=i),s}const cn={mode:"hsv",toMode:{rgb:an},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:ln},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:qt,fixup:ue},s:qt,v:qt,alpha:{use:qt,fixup:Xt}},difference:{h:be},average:{h:Me}};const hn=function(t,e){if(!e||"hwb"!==e[0])return;const n={mode:"hwb"},[,i,r,o,s]=e;if(i.type!==$t){if(i.type===_t)return;n.h=i.value}if(r.type!==$t){if(r.type===At)return;n.w=r.value/100}if(o.type!==$t){if(o.type===At)return;n.b=o.value/100}return s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n},un={mode:"hwb",toMode:{rgb:function({h:t,w:e,b:n,alpha:i}){if(void 0===e&&(e=0),void 0===n&&(n=0),e+n>1){let t=e+n;e/=t,n/=t}return an({h:t,s:1===n?1:1-e/(1-n),v:1-n,alpha:i})}},fromMode:{rgb:function(t){let e=ln(t);if(void 0===e)return;let n=void 0!==e.v?e.v:0,i={mode:"hwb",w:(1-(void 0!==e.s?e.s:0))*n,b:1-n};return void 0!==e.h&&(i.h=e.h),void 0!==e.alpha&&(i.alpha=e.alpha),i}},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[hn],serialize:t=>`hwb(${void 0!==t.h?t.h:"none"} ${void 0!==t.w?100*t.w+"%":"none"} ${void 0!==t.b?100*t.b+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:qt,fixup:ue},w:qt,b:qt,alpha:{use:qt,fixup:Xt}},difference:{h:(t,e)=>{if(void 0===t.h||void 0===e.h)return 0;let n=ce(t.h),i=ce(e.h);return Math.abs(i-n)>180?n-(i-360*Math.sign(i-n)):i-n}},average:{h:Me}},dn=un,fn=.1593017578125,pn=78.84375,gn=.8359375,mn=18.8515625,yn=18.6875;function vn(t){if(t<0)return 0;const e=Math.pow(t,1/pn);return 1e4*Math.pow(Math.max(0,e-gn)/(mn-yn*e),1/fn)}function xn(t){if(t<0)return 0;const e=Math.pow(t/1e4,fn);return Math.pow((gn+mn*e)/(1+yn*e),pn)}const bn=t=>Math.max(t/203,0),wn=({i:t,t:e,p:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);const r=vn(t+.008609037037932761*e+.11102962500302593*n),o=vn(t-.00860903703793275*e-.11102962500302599*n),s=vn(t+.5600313357106791*e-.32062717498731885*n),a={mode:"xyz65",x:bn(2.070152218389422*r-1.3263473389671556*o+.2066510476294051*s),y:bn(.3647385209748074*r+.680566024947227*o-.0453045459220346*s),z:bn(-.049747207535812*r-.0492609666966138*o+1.1880659249923042*s)};return void 0!==i&&(a.alpha=i),a},Mn=(t=0)=>Math.max(203*t,0),kn=({x:t,y:e,z:n,alpha:i})=>{const r=Mn(t),o=Mn(e),s=Mn(n),a=xn(.3592832590121217*r+.6976051147779502*o-.0358915932320289*s),l=xn(-.1920808463704995*r+1.1004767970374323*o+.0753748658519118*s),c=xn(.0070797844607477*r+.0748396662186366*o+.8433265453898765*s),h={mode:"itp",i:.5*a+.5*l,t:1.61376953125*a-3.323486328125*l+1.709716796875*c,p:4.378173828125*a-4.24560546875*l-.132568359375*c};return void 0!==i&&(h.alpha=i),h},Cn={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:wn,rgb:t=>se(wn(t))},fromMode:{xyz65:kn,rgb:t=>kn(ie(t))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:qt,t:qt,p:qt,alpha:{use:qt,fixup:Xt}}},On=Cn,jn=t=>{if(t<0)return 0;let e=Math.pow(t/1e4,fn);return Math.pow((gn+mn*e)/(1+yn*e),134.03437499999998)},En=(t=0)=>Math.max(203*t,0),_n=({x:t,y:e,z:n,alpha:i})=>{t=En(t),e=En(e);let r=1.15*t-.15*(n=En(n)),o=.66*e+.34*t,s=jn(.41478972*r+.579999*o+.014648*n),a=jn(-.20151*r+1.120649*o+.0531008*n),l=jn(-.0166008*r+.2648*o+.6684799*n),c=(s+a)/2,h={mode:"jab",j:.44*c/(1-.56*c)-16295499532821565e-27,a:3.524*s-4.066708*a+.542708*l,b:.199076*s+1.096799*a-1.295875*l};return void 0!==i&&(h.alpha=i),h},Sn=16295499532821565e-27,$n=t=>{if(t<0)return 0;let e=Math.pow(t,.007460772656268216);return 1e4*Math.pow((gn-e)/(yn*e-mn),1/fn)},An=t=>t/203,zn=({j:t,a:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=(t+Sn)/(.44+.56*(t+Sn)),o=$n(r+.13860504*e+.058047316*n),s=$n(r-.13860504*e-.058047316*n),a=$n(r-.096019242*e-.8118919*n),l={mode:"xyz65",x:An(1.661373024652174*o-.914523081304348*s+.23136208173913045*a),y:An(-.3250758611844533*o+1.571847026732543*s-.21825383453227928*a),z:An(-.090982811*o-.31272829*s+1.5227666*a)};return void 0!==i&&(l.alpha=i),l},Pn=t=>{let e=_n(ie(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},Ln=t=>se(zn(t)),In={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:Pn,xyz65:_n},toMode:{rgb:Ln,xyz65:zn},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:qt,a:qt,b:qt,alpha:{use:qt,fixup:Xt}}},Tn=({j:t,a:e,b:n,alpha:i})=>{void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.sqrt(e*e+n*n),o={mode:"jch",j:t,c:r};return r&&(o.h=ce(180*Math.atan2(n,e)/Math.PI)),void 0!==i&&(o.alpha=i),o},Rn=({j:t,c:e,h:n,alpha:i})=>{void 0===n&&(n=0);let r={mode:"jab",j:t,a:e?e*Math.cos(n/180*Math.PI):0,b:e?e*Math.sin(n/180*Math.PI):0};return void 0!==i&&(r.alpha=i),r},Bn={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Rn,rgb:t=>Ln(Rn(t))},fromMode:{rgb:t=>Tn(Pn(t)),jab:Tn},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:qt,fixup:ue},c:qt,j:qt,alpha:{use:qt,fixup:Xt}},difference:{h:we},average:{h:Me}},Wn=Bn,Hn=Math.pow(29,3)/Math.pow(3,3),Nn=Math.pow(6,3)/Math.pow(29,3);let Fn=t=>Math.pow(t,3)>Nn?Math.pow(t,3):(116*t-16)/Hn;const Dn=({l:t,a:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=(t+16)/116,o=r-n/200,s={mode:"xyz50",x:Fn(e/500+r)*_e,y:Fn(r)*Se,z:Fn(o)*$e};return void 0!==i&&(s.alpha=i),s},Vn=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=oe({r:3.1341359569958707*t-1.6173863321612538*e-.4906619460083532*n,g:-.978795502912089*t+1.916254567259524*e+.03344273116131949*n,b:.07195537988411677*t-.2289768264158322*e+1.405386058324125*n});return void 0!==i&&(r.alpha=i),r},Un=t=>Vn(Dn(t)),Yn=t=>{let{r:e,g:n,b:i,alpha:r}=ne(t),o={mode:"xyz50",x:.436065742824811*e+.3851514688337912*n+.14307845442264197*i,y:.22249319175623702*e+.7168870538238823*n+.06061979053616537*i,z:.013923904500943465*e+.09708128566574634*n+.7140993584005155*i};return void 0!==r&&(o.alpha=r),o},qn=t=>t>Nn?Math.cbrt(t):(Hn*t+16)/116,Gn=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=qn(t/_e),o=qn(e/Se),s={mode:"lab",l:116*o-16,a:500*(r-o),b:200*(o-qn(n/$e))};return void 0!==i&&(s.alpha=i),s},Xn=t=>{let e=Gn(Yn(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e};const Kn=function(t,e){if(!e||"lab"!==e[0])return;const n={mode:"lab"},[,i,r,o,s]=e;return i.type!==At&&r.type!==At&&o.type!==At?(i.type!==$t&&(n.l=Math.min(Math.max(0,i.value),100)),r.type!==$t&&(n.a=r.type===Et?r.value:125*r.value/100),o.type!==$t&&(n.b=o.type===Et?o.value:125*o.value/100),s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n):void 0},Zn={mode:"lab",toMode:{xyz50:Dn,rgb:Un},fromMode:{xyz50:Gn,rgb:Xn},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Kn],serialize:t=>`lab(${void 0!==t.l?t.l:"none"} ${void 0!==t.a?t.a:"none"} ${void 0!==t.b?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{l:qt,a:qt,b:qt,alpha:{use:qt,fixup:Xt}}},Qn=Zn,Jn={...Qn,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Ie,rgb:Te},fromMode:{xyz65:Be,rgb:We},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}};const ti=function(t,e){if(!e||"lch"!==e[0])return;const n={mode:"lch"},[,i,r,o,s]=e;if(i.type!==$t){if(i.type===At)return;n.l=Math.min(Math.max(0,i.value),100)}if(r.type!==$t&&(n.c=Math.max(0,r.type===Et?r.value:150*r.value/100)),o.type!==$t){if(o.type===_t)return;n.h=o.value}return s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n},ei={mode:"lch",toMode:{lab:Oe,rgb:t=>Un(Oe(t))},fromMode:{rgb:t=>Ce(Xn(t)),lab:Ce},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[ti],serialize:t=>`lch(${void 0!==t.l?t.l:"none"} ${void 0!==t.c?t.c:"none"} ${void 0!==t.h?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:qt,fixup:ue},c:qt,l:qt,alpha:{use:qt,fixup:Xt}},difference:{h:we},average:{h:Me}},ni=ei,ii={...ni,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:t=>Oe(t,"lab65"),rgb:t=>Te(Oe(t,"lab65"))},fromMode:{rgb:t=>Ce(We(t),"lch65"),lab65:t=>Ce(t,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},ri=ii,oi=({l:t,u:e,v:n,alpha:i})=>{void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.sqrt(e*e+n*n),o={mode:"lchuv",l:t,c:r};return r&&(o.h=ce(180*Math.atan2(n,e)/Math.PI)),void 0!==i&&(o.alpha=i),o},si=({l:t,c:e,h:n,alpha:i})=>{void 0===n&&(n=0);let r={mode:"luv",l:t,u:e?e*Math.cos(n/180*Math.PI):0,v:e?e*Math.sin(n/180*Math.PI):0};return void 0!==i&&(r.alpha=i),r},ai=(t,e,n)=>4*t/(t+15*e+3*n),li=(t,e,n)=>9*e/(t+15*e+3*n),ci=ai(_e,Se,$e),hi=li(_e,Se,$e),ui=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=(t=>t<=Nn?Hn*t:116*Math.cbrt(t)-16)(e/Se),o=ai(t,e,n),s=li(t,e,n);isFinite(o)&&isFinite(s)?(o=13*r*(o-ci),s=13*r*(s-hi)):r=o=s=0;let a={mode:"luv",l:r,u:o,v:s};return void 0!==i&&(a.alpha=i),a},di=((t,e,n)=>4*t/(t+15*e+3*n))(_e,Se,$e),fi=((t,e,n)=>9*e/(t+15*e+3*n))(_e,Se,$e),pi=({l:t,u:e,v:n,alpha:i})=>{if(void 0===t&&(t=0),0===t)return{mode:"xyz50",x:0,y:0,z:0};void 0===e&&(e=0),void 0===n&&(n=0);let r=e/(13*t)+di,o=n/(13*t)+fi,s=Se*(t<=8?t/Hn:Math.pow((t+16)/116,3)),a={mode:"xyz50",x:s*(9*r)/(4*o),y:s,z:s*(12-3*r-20*o)/(4*o)};return void 0!==i&&(a.alpha=i),a},gi={mode:"lchuv",toMode:{luv:si,rgb:t=>Vn(pi(si(t)))},fromMode:{rgb:t=>oi(ui(Yn(t))),luv:oi},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:qt,fixup:ue},c:qt,l:qt,alpha:{use:qt,fixup:Xt}},difference:{h:we},average:{h:Me}},mi=gi,yi={...Kt,mode:"lrgb",toMode:{rgb:oe},fromMode:{rgb:ne},parse:["srgb-linear"],serialize:"srgb-linear"},vi={mode:"luv",toMode:{xyz50:pi,rgb:t=>Vn(pi(t))},fromMode:{xyz50:ui,rgb:t=>ui(Yn(t))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:qt,u:qt,v:qt,alpha:{use:qt,fixup:Xt}}},xi=vi,bi=({r:t,g:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.cbrt(.412221469470763*t+.5363325372617348*e+.0514459932675022*n),o=Math.cbrt(.2119034958178252*t+.6806995506452344*e+.1073969535369406*n),s=Math.cbrt(.0883024591900564*t+.2817188391361215*e+.6299787016738222*n),a={mode:"oklab",l:.210454268309314*r+.7936177747023054*o-.0040720430116193*s,a:1.9779985324311684*r-2.42859224204858*o+.450593709617411*s,b:.0259040424655478*r+.7827717124575296*o-.8086757549230774*s};return void 0!==i&&(a.alpha=i),a},wi=t=>{let e=bi(ne(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},Mi=({l:t,a:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.pow(t+.3963377773761749*e+.2158037573099136*n,3),o=Math.pow(t-.1055613458156586*e-.0638541728258133*n,3),s=Math.pow(t-.0894841775298119*e-1.2914855480194092*n,3),a={mode:"lrgb",r:4.076741636075957*r-3.3077115392580616*o+.2309699031821044*s,g:-1.2684379732850317*r+2.6097573492876887*o-.3413193760026573*s,b:-.0041960761386756*r-.7034186179359362*o+1.7076146940746117*s};return void 0!==i&&(a.alpha=i),a},ki=t=>oe(Mi(t));function Ci(t){const e=.206,n=1.206/1.03;return.5*(n*t-e+Math.sqrt((n*t-e)*(n*t-e)+.12*n*t))}function Oi(t){return(t*t+.206*t)/(1.206/1.03*(t+.03))}function ji(t,e){let n=function(t,e){let n,i,r,o,s,a,l,c;-1.88170328*t-.80936493*e>1?(n=1.19086277,i=1.76576728,r=.59662641,o=.75515197,s=.56771245,a=4.0767416621,l=-3.3077115913,c=.2309699292):1.81444104*t-1.19445276*e>1?(n=.73956515,i=-.45954404,r=.08285427,o=.1254107,s=.14503204,a=-1.2684380046,l=2.6097574011,c=-.3413193965):(n=1.35733652,i=-.00915799,r=-1.1513021,o=-.50559606,s=.00692167,a=-.0041960863,l=-.7034186147,c=1.707614701);let h=n+i*t+r*e+o*t*t+s*t*e,u=.3963377774*t+.2158037573*e,d=-.1055613458*t-.0638541728*e,f=-.0894841775*t-1.291485548*e;{let t=1+h*u,e=1+h*d,n=1+h*f,i=a*(t*t*t)+l*(e*e*e)+c*(n*n*n),r=a*(3*u*t*t)+l*(3*d*e*e)+c*(3*f*n*n);h-=i*r/(r*r-.5*i*(a*(6*u*u*t)+l*(6*d*d*e)+c*(6*f*f*n)))}return h}(t,e),i=Mi({l:1,a:n*t,b:n*e}),r=Math.cbrt(1/Math.max(i.r,i.g,i.b));return[r,r*n]}function Ei(t,e,n=null){n||(n=ji(t,e));let i=n[0],r=n[1];return[r/i,r/(1-i)]}function _i(t,e,n){let i=ji(e,n),r=function(t,e,n,i,r,o=null){let s;if(o||(o=ji(t,e)),(n-r)*o[1]-(o[0]-r)*i<=0)s=o[1]*r/(i*o[0]+o[1]*(r-n));else{s=o[1]*(r-1)/(i*(o[0]-1)+o[1]*(r-n));{let o=n-r,a=.3963377774*t+.2158037573*e,l=-.1055613458*t-.0638541728*e,c=-.0894841775*t-1.291485548*e,h=o+i*a,u=o+i*l,d=o+i*c;{let t=r*(1-s)+s*n,e=s*i,o=t+e*a,f=t+e*l,p=t+e*c,g=o*o*o,m=f*f*f,y=p*p*p,v=3*h*o*o,x=3*u*f*f,b=3*d*p*p,w=6*h*h*o,M=6*u*u*f,k=6*d*d*p,C=4.0767416621*g-3.3077115913*m+.2309699292*y-1,O=4.0767416621*v-3.3077115913*x+.2309699292*b,j=O/(O*O-.5*C*(4.0767416621*w-3.3077115913*M+.2309699292*k)),E=-C*j,_=-1.2684380046*g+2.6097574011*m-.3413193965*y-1,S=-1.2684380046*v+2.6097574011*x-.3413193965*b,$=S/(S*S-.5*_*(-1.2684380046*w+2.6097574011*M-.3413193965*k)),A=-_*$,z=-.0041960863*g-.7034186147*m+1.707614701*y-1,P=-.0041960863*v-.7034186147*x+1.707614701*b,L=P/(P*P-.5*z*(-.0041960863*w-.7034186147*M+1.707614701*k)),I=-z*L;E=j>=0?E:1e6,A=$>=0?A:1e6,I=L>=0?I:1e6,s+=Math.min(E,Math.min(A,I))}}}return s}(e,n,t,1,t,i),o=Ei(e,n,i),s=t*(.11516993+1/(7.4477897+4.1590124*n+e*(1.75198401*n-2.19557347+e*(-2.13704948-10.02301043*n+e*(5.38770819*n-4.24894561+4.69891013*e))))),a=(1-t)*(.11239642+1/(1.6132032-.68124379*n+e*(.40370612+.90148123*n+e*(.6122399*n-.27087943+e*(.00299215-.45399568*n-.14661872*e))))),l=.9*(r/Math.min(t*o[0],(1-t)*o[1]))*Math.sqrt(Math.sqrt(1/(1/(s*s*s*s)+1/(a*a*a*a))));return s=.4*t,a=.8*(1-t),[Math.sqrt(1/(1/(s*s)+1/(a*a))),l,r]}function Si(t){const e=void 0!==t.l?t.l:0,n=void 0!==t.a?t.a:0,i=void 0!==t.b?t.b:0,r={mode:"okhsl",l:Ci(e)};void 0!==t.alpha&&(r.alpha=t.alpha);let o=Math.sqrt(n*n+i*i);if(!o)return r.s=0,r;let s,[a,l,c]=_i(e,n/o,i/o);if(o<l){let t=0,e=.8*a;s=.8*((o-t)/(e+(1-e/l)*(o-t)))}else{let t=.2*l*l*1.25*1.25/a;s=.8+.2*((o-l)/(t+(1-t/(c-l))*(o-l)))}return s&&(r.s=s,r.h=ce(180*Math.atan2(i,n)/Math.PI)),r}function $i(t){let e=void 0!==t.h?t.h:0,n=void 0!==t.s?t.s:0,i=void 0!==t.l?t.l:0;const r={mode:"oklab",l:Oi(i)};if(void 0!==t.alpha&&(r.alpha=t.alpha),!n||1===i)return r.a=r.b=0,r;let o,s,a,l,c=Math.cos(e/180*Math.PI),h=Math.sin(e/180*Math.PI),[u,d,f]=_i(r.l,c,h);n<.8?(o=1.25*n,s=0,a=.8*u,l=1-a/d):(o=5*(n-.8),s=d,a=.2*d*d*1.25*1.25/u,l=1-a/(f-d));let p=s+o*a/(1-l*o);return r.a=p*c,r.b=p*h,r}const Ai={...sn,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Si,rgb:t=>Si(wi(t))},toMode:{oklab:$i,rgb:t=>ki($i(t))}},zi=Ai;function Pi(t){let e=void 0!==t.l?t.l:0,n=void 0!==t.a?t.a:0,i=void 0!==t.b?t.b:0,r=Math.sqrt(n*n+i*i),o=r?n/r:1,s=r?i/r:1,[a,l]=Ei(o,s),c=1-.5/a,h=l/(r+e*l),u=h*e,d=h*r,f=Oi(u),p=d*f/u,g=Mi({l:f,a:o*p,b:s*p}),m=Math.cbrt(1/Math.max(g.r,g.g,g.b,0));e/=m,r=r/m*Ci(e)/e,e=Ci(e);const y={mode:"okhsv",s:r?(.5+l)*d/(.5*l+l*c*d):0,v:e?e/u:0};return y.s&&(y.h=ce(180*Math.atan2(i,n)/Math.PI)),void 0!==t.alpha&&(y.alpha=t.alpha),y}function Li(t){const e={mode:"oklab"};void 0!==t.alpha&&(e.alpha=t.alpha);const n=void 0!==t.h?t.h:0,i=void 0!==t.s?t.s:0,r=void 0!==t.v?t.v:0,o=Math.cos(n/180*Math.PI),s=Math.sin(n/180*Math.PI),[a,l]=Ei(o,s),c=.5,h=1-c/a,u=1-i*c/(c+l-l*h*i),d=i*l*c/(c+l-l*h*i),f=Oi(u),p=d*f/u,g=Mi({l:f,a:o*p,b:s*p}),m=Math.cbrt(1/Math.max(g.r,g.g,g.b,0)),y=Oi(r*u),v=d*y/u;return e.l=y*m,e.a=v*o*m,e.b=v*s*m,e}const Ii={...cn,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:Pi,rgb:t=>Pi(wi(t))},toMode:{oklab:Li,rgb:t=>ki(Li(t))}},Ti=Ii;const Ri=function(t,e){if(!e||"oklab"!==e[0])return;const n={mode:"oklab"},[,i,r,o,s]=e;return i.type!==At&&r.type!==At&&o.type!==At?(i.type!==$t&&(n.l=Math.min(Math.max(0,i.type===Et?i.value:i.value/100),1)),r.type!==$t&&(n.a=r.type===Et?r.value:.4*r.value/100),o.type!==$t&&(n.b=o.type===Et?o.value:.4*o.value/100),s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n):void 0},Bi={...Qn,mode:"oklab",toMode:{lrgb:Mi,rgb:ki},fromMode:{lrgb:bi,rgb:wi},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Ri],serialize:t=>`oklab(${void 0!==t.l?t.l:"none"} ${void 0!==t.a?t.a:"none"} ${void 0!==t.b?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`},Wi=Bi;const Hi=function(t,e){if(!e||"oklch"!==e[0])return;const n={mode:"oklch"},[,i,r,o,s]=e;if(i.type!==$t){if(i.type===At)return;n.l=Math.min(Math.max(0,i.type===Et?i.value:i.value/100),1)}if(r.type!==$t&&(n.c=Math.max(0,r.type===Et?r.value:.4*r.value/100)),o.type!==$t){if(o.type===_t)return;n.h=o.value}return s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n},Ni={...ni,mode:"oklch",toMode:{oklab:t=>Oe(t,"oklab"),rgb:t=>ki(Oe(t,"oklab"))},fromMode:{rgb:t=>Ce(wi(t),"oklch"),oklab:t=>Ce(t,"oklch")},parse:[Hi],serialize:t=>`oklch(${void 0!==t.l?t.l:"none"} ${void 0!==t.c?t.c:"none"} ${void 0!==t.h?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},Fi=Ni,Di=t=>{let{r:e,g:n,b:i,alpha:r}=ne(t),o={mode:"xyz65",x:.486570948648216*e+.265667693169093*n+.1982172852343625*i,y:.2289745640697487*e+.6917385218365062*n+.079286914093745*i,z:0*e+.0451133818589026*n+1.043944368900976*i};return void 0!==r&&(o.alpha=r),o},Vi=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=oe({r:2.4934969119414263*t-.9313836179191242*e-.402710784450717*n,g:-.8294889695615749*t+1.7626640603183465*e+.0236246858419436*n,b:.0358458302437845*t-.0761723892680418*e+.9568845240076871*n},"p3");return void 0!==i&&(r.alpha=i),r},Ui={...Kt,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:t=>Vi(ie(t)),xyz65:Vi},toMode:{rgb:t=>se(Di(t)),xyz65:Di}},Yi=Ui,qi=t=>{let e=Math.abs(t);return e>=1/512?Math.sign(t)*Math.pow(e,1/1.8):16*t},Gi=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r={mode:"prophoto",r:qi(1.3457868816471585*t-.2555720873797946*e-.0511018649755453*n),g:qi(-.5446307051249019*t+1.5082477428451466*e+.0205274474364214*n),b:qi(0*t+0*e+1.2119675456389452*n)};return void 0!==i&&(r.alpha=i),r},Xi=(t=0)=>{let e=Math.abs(t);return e>=16/512?Math.sign(t)*Math.pow(e,1.8):t/16},Ki=t=>{let e=Xi(t.r),n=Xi(t.g),i=Xi(t.b),r={mode:"xyz50",x:.7977666449006423*e+.1351812974005331*n+.0313477341283922*i,y:.2880748288194013*e+.7118352342418731*n+899369387256e-16*i,z:0*e+0*n+.8251046025104602*i};return void 0!==t.alpha&&(r.alpha=t.alpha),r},Zi={...Kt,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:Gi,rgb:t=>Gi(Yn(t))},toMode:{xyz50:Ki,rgb:t=>Vn(Ki(t))}},Qi=Zi,Ji=1.09929682680944,tr=t=>{const e=Math.abs(t);return e>.018053968510807?(Math.sign(t)||1)*(Ji*Math.pow(e,.45)-(Ji-1)):4.5*t},er=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r={mode:"rec2020",r:tr(1.7166511879712683*t-.3556707837763925*e-.2533662813736599*n),g:tr(-.6666843518324893*t+1.6164812366349395*e+.0157685458139111*n),b:tr(.0176398574453108*t-.0427706132578085*e+.9421031212354739*n)};return void 0!==i&&(r.alpha=i),r},nr=1.09929682680944,ir=(t=0)=>{let e=Math.abs(t);return e<.08124285829863151?t/4.5:(Math.sign(t)||1)*Math.pow((e+nr-1)/nr,1/.45)},rr=t=>{let e=ir(t.r),n=ir(t.g),i=ir(t.b),r={mode:"xyz65",x:.6369580483012911*e+.1446169035862083*n+.1688809751641721*i,y:.262700212011267*e+.6779980715188708*n+.059301716469862*i,z:0*e+.0280726930490874*n+1.0609850577107909*i};return void 0!==t.alpha&&(r.alpha=t.alpha),r},or={...Kt,mode:"rec2020",fromMode:{xyz65:er,rgb:t=>er(ie(t))},toMode:{xyz65:rr,rgb:t=>se(rr(t))},parse:["rec2020"],serialize:"rec2020"},sr=or,ar=.0037930732552754493,lr=Math.cbrt(ar),cr=t=>Math.cbrt(t)-lr,hr=t=>{const{r:e,g:n,b:i,alpha:r}=ne(t),o=cr(.3*e+.622*n+.078*i+ar),s=cr(.23*e+.692*n+.078*i+ar),a={mode:"xyb",x:(o-s)/2,y:(o+s)/2,b:cr(.2434226892454782*e+.2047674442449682*n+.5518098665095535*i+ar)-(o+s)/2};return void 0!==r&&(a.alpha=r),a},ur=t=>Math.pow(t+lr,3),dr=({x:t,y:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);const r=ur(t+e)-ar,o=ur(e-t)-ar,s=ur(n+e)-ar,a=oe({r:11.031566904639861*r-9.866943908131562*o-.16462299650829934*s,g:-3.2541473810744237*r+4.418770377582723*o-.16462299650829934*s,b:-3.6588512867136815*r+2.7129230459360922*o+1.9459282407775895*s});return void 0!==i&&(a.alpha=i),a},fr={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:dr},fromMode:{rgb:hr},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:qt,y:qt,b:qt,alpha:{use:qt,fixup:Xt}}},pr={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Vn,lab:Gn},fromMode:{rgb:Yn,lab:Dn},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:qt,y:qt,z:qt,alpha:{use:qt,fixup:Xt}}},gr=t=>{let{x:e,y:n,z:i,alpha:r}=t;void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0);let o={mode:"xyz50",x:1.0479298208405488*e+.0229467933410191*n-.0501922295431356*i,y:.0296278156881593*e+.990434484573249*n-.0170738250293851*i,z:-.0092430581525912*e+.0150551448965779*n+.7518742899580008*i};return void 0!==r&&(o.alpha=r),o},mr=t=>{let{x:e,y:n,z:i,alpha:r}=t;void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0);let o={mode:"xyz65",x:.9554734527042182*e-.0230985368742614*n+.0632593086610217*i,y:-.0283697069632081*e+1.0099954580058226*n+.021041398966943*i,z:.0123140016883199*e-.0205076964334779*n+1.3303659366080753*i};return void 0!==r&&(o.alpha=r),o},yr={mode:"xyz65",toMode:{rgb:se,xyz50:gr},fromMode:{rgb:ie,xyz50:mr},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:qt,y:qt,z:qt,alpha:{use:qt,fixup:Xt}}},vr=({r:t,g:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);const r={mode:"yiq",y:.29889531*t+.58662247*e+.11448223*n,i:.59597799*t-.2741761*e-.32180189*n,q:.21147017*t-.52261711*e+.31114694*n};return void 0!==i&&(r.alpha=i),r},xr=({y:t,i:e,q:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);const r={mode:"rgb",r:t+.95608445*e+.6208885*n,g:t-.27137664*e-.6486059*n,b:t-1.10561724*e+1.70250126*n};return void 0!==i&&(r.alpha=i),r},br={mode:"yiq",toMode:{rgb:xr},fromMode:{rgb:vr},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:qt,i:qt,q:qt,alpha:{use:qt,fixup:Xt}}},wr=(t=4)=>e=>"number"==typeof e?((t,e)=>Math.round(t*(e=Math.pow(10,e)))/e)(e,t):e;wr(2);const Mr=t=>Math.max(0,Math.min(1,t||0)),kr=t=>Math.round(255*Mr(t)),Cr=gt("rgb"),Or=(gt("hsl"),t=>{if(void 0===t)return;return"#"+(1<<24|kr(t.r)<<16|kr(t.g)<<8|kr(t.b)).toString(16).slice(1)}),jr=t=>Or(Cr(t)),Er=t=>(t=>{if(void 0===t)return;let e=kr(void 0!==t.alpha?t.alpha:1);return Or(t)+(256|e).toString(16).slice(1)})(Cr(t));function _r(t){let e=gt("lrgb")(t);return.2126*e.r+.7152*e.g+.0722*e.b}function Sr(t,e){let n=_r(t),i=_r(e);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}wt(le),wt(ke),wt(Xe),wt(Ze),wt(Je),wt(sn),wt(cn),wt(dn),wt(On),wt(In),wt(Wn),wt(Qn),wt(Jn),wt(ni),wt(ri),wt(mi),wt(yi),wt(xi),wt(zi),wt(Ti),wt(Wi);const $r=wt(Fi);wt(Yi),wt(Qi),wt(sr),wt(Kt),wt(fr),wt(pr),wt(yr),wt(br);function Ar(t){if(!t)return!1;const e=t.trim().toLowerCase();return"none"!==e&&"transparent"!==e&&""!==e}function zr(t){const e=Dt(t);if(!e)return!1;return _r(e)<.5}const Pr=Array.isArray;const Lr="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;var Ir="object"==typeof self&&self&&self.Object===Object&&self;const Tr=Lr||Ir||Function("return this")();const Rr=Tr.Symbol;var Br=Object.prototype,Wr=Br.hasOwnProperty,Hr=Br.toString,Nr=Rr?Rr.toStringTag:void 0;const Fr=function(t){var e=Wr.call(t,Nr),n=t[Nr];try{t[Nr]=void 0;var i=!0}catch(t){}var r=Hr.call(t);return i&&(e?t[Nr]=n:delete t[Nr]),r};var Dr=Object.prototype.toString;const Vr=function(t){return Dr.call(t)};var Ur=Rr?Rr.toStringTag:void 0;const Yr=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Ur&&Ur in Object(t)?Fr(t):Vr(t)};const qr=function(t){return null!=t&&"object"==typeof t};const Gr=function(t){return"symbol"==typeof t||qr(t)&&"[object Symbol]"==Yr(t)};var Xr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kr=/^\w*$/;const Zr=function(t,e){if(Pr(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Gr(t))||(Kr.test(t)||!Xr.test(t)||null!=e&&t in Object(e))};const Qr=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const Jr=function(t){if(!Qr(t))return!1;var e=Yr(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};var to=Tr["__core-js_shared__"];var eo,no=(eo=/[^.]+$/.exec(to&&to.keys&&to.keys.IE_PROTO||""))?"Symbol(src)_1."+eo:"";const io=function(t){return!!no&&no in t};var ro=Function.prototype.toString;const oo=function(t){if(null!=t){try{return ro.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var so=/^\[object .+?Constructor\]$/,ao=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const lo=function(t){return!(!Qr(t)||io(t))&&(Jr(t)?ao:so).test(oo(t))};const co=function(t,e){return null==t?void 0:t[e]};const ho=function(t,e){var n=co(t,e);return lo(n)?n:void 0};const uo=ho(Object,"create");const fo=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var po=Object.prototype.hasOwnProperty;const go=function(t){var e=this.__data__;if(uo){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return po.call(e,t)?e[t]:void 0};var mo=Object.prototype.hasOwnProperty;const yo=function(t){var e=this.__data__;return uo?void 0!==e[t]:mo.call(e,t)};const vo=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=uo&&void 0===e?"__lodash_hash_undefined__":e,this};function xo(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}xo.prototype.clear=function(){this.__data__=uo?uo(null):{},this.size=0},xo.prototype.delete=fo,xo.prototype.get=go,xo.prototype.has=yo,xo.prototype.set=vo;const bo=xo;const wo=function(t,e){return t===e||t!=t&&e!=e};const Mo=function(t,e){for(var n=t.length;n--;)if(wo(t[n][0],e))return n;return-1};var ko=Array.prototype.splice;const Co=function(t){var e=this.__data__,n=Mo(e,t);return!(n<0)&&(n==e.length-1?e.pop():ko.call(e,n,1),--this.size,!0)};const Oo=function(t){var e=this.__data__,n=Mo(e,t);return n<0?void 0:e[n][1]};const jo=function(t){return Mo(this.__data__,t)>-1};const Eo=function(t,e){var n=this.__data__,i=Mo(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function _o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}_o.prototype.clear=function(){this.__data__=[],this.size=0},_o.prototype.delete=Co,_o.prototype.get=Oo,_o.prototype.has=jo,_o.prototype.set=Eo;const So=_o;const $o=ho(Tr,"Map");const Ao=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zo=function(t,e){var n=t.__data__;return Ao(e)?n["string"==typeof e?"string":"hash"]:n.map};const Po=function(t){var e=zo(this,t).delete(t);return this.size-=e?1:0,e};const Lo=function(t){return zo(this,t).get(t)};const Io=function(t){return zo(this,t).has(t)};const To=function(t,e){var n=zo(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};function Ro(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Ro.prototype.clear=function(){this.size=0,this.__data__={hash:new bo,map:new($o||So),string:new bo}},Ro.prototype.delete=Po,Ro.prototype.get=Lo,Ro.prototype.has=Io,Ro.prototype.set=To;const Bo=Ro;function Wo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(Wo.Cache||Bo),n}Wo.Cache=Bo;const Ho=Wo;var No=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fo=/\\(\\)?/g,Do=function(t){var e=Ho(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(No,function(t,n,i,r){e.push(i?r.replace(Fo,"$1"):n||t)}),e});const Vo=Do;const Uo=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r};var Yo=Rr?Rr.prototype:void 0,qo=Yo?Yo.toString:void 0;const Go=function t(e){if("string"==typeof e)return e;if(Pr(e))return Uo(e,t)+"";if(Gr(e))return qo?qo.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n};const Xo=function(t){return null==t?"":Go(t)};const Ko=function(t,e){return Pr(t)?t:Zr(t,e)?[t]:Vo(Xo(t))};const Zo=function(t){if("string"==typeof t||Gr(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e};const Qo=function(t,e){for(var n=0,i=(e=Ko(e,t)).length;null!=t&&n<i;)t=t[Zo(e[n++])];return n&&n==i?t:void 0};const Jo=function(t,e,n){var i=null==t?void 0:Qo(t,e);return void 0===i?n:i};function ts(t,e){if(0===e.length)return{};const n=Array.isArray(t)?t[e[0]]:t.items[e[0]];if(1===e.length)return n;const i=e.slice(1).map(t=>`children[${t}]`).join(".");return Jo(n,i)}function es(t){const{structure:e,item:n,items:i}=t;return!!e&&(!!n&&!i.some(t=>!t))}const ns="infographic-component";const is=function(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(r);++i<r;)o[i]=t[i+e];return o};const rs=function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:is(t,e,n)};var os=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const ss=function(t){return os.test(t)};const as=function(t){return t.split("")};var ls="\\ud800-\\udfff",cs="["+ls+"]",hs="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",us="\\ud83c[\\udffb-\\udfff]",ds="[^"+ls+"]",fs="(?:\\ud83c[\\udde6-\\uddff]){2}",ps="[\\ud800-\\udbff][\\udc00-\\udfff]",gs="(?:"+hs+"|"+us+")"+"?",ms="[\\ufe0e\\ufe0f]?",ys=ms+gs+("(?:\\u200d(?:"+[ds,fs,ps].join("|")+")"+ms+gs+")*"),vs="(?:"+[ds+hs+"?",hs,fs,ps,cs].join("|")+")",xs=RegExp(us+"(?="+us+")|"+vs+ys,"g");const bs=function(t){return t.match(xs)||[]};const ws=function(t){return ss(t)?bs(t):as(t)};const Ms=function(t){return function(e){e=Xo(e);var n=ss(e)?ws(e):void 0,i=n?n[0]:e.charAt(0),r=n?rs(n,1).join(""):e.slice(1);return i[t]()+r}};const ks=Ms("toUpperCase");const Cs=function(t){return ks(Xo(t).toLowerCase())};const Os=function(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n};const js=function(t){return function(e){return null==t?void 0:t[e]}};const Es=js({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});var _s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ss=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");const $s=function(t){return(t=Xo(t))&&t.replace(_s,Es).replace(Ss,"")};var As=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;const zs=function(t){return t.match(As)||[]};var Ps=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;const Ls=function(t){return Ps.test(t)};var Is="\\ud800-\\udfff",Ts="\\u2700-\\u27bf",Rs="a-z\\xdf-\\xf6\\xf8-\\xff",Bs="A-Z\\xc0-\\xd6\\xd8-\\xde",Ws="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Hs="["+Ws+"]",Ns="\\d+",Fs="["+Ts+"]",Ds="["+Rs+"]",Vs="[^"+Is+Ws+Ns+Ts+Rs+Bs+"]",Us="(?:\\ud83c[\\udde6-\\uddff]){2}",Ys="[\\ud800-\\udbff][\\udc00-\\udfff]",qs="["+Bs+"]",Gs="(?:"+Ds+"|"+Vs+")",Xs="(?:"+qs+"|"+Vs+")",Ks="(?:['’](?:d|ll|m|re|s|t|ve))?",Zs="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qs="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Js="[\\ufe0e\\ufe0f]?",ta=Js+Qs+("(?:\\u200d(?:"+["[^"+Is+"]",Us,Ys].join("|")+")"+Js+Qs+")*"),ea="(?:"+[Fs,Us,Ys].join("|")+")"+ta,na=RegExp([qs+"?"+Ds+"+"+Ks+"(?="+[Hs,qs,"$"].join("|")+")",Xs+"+"+Zs+"(?="+[Hs,qs+Gs,"$"].join("|")+")",qs+"?"+Gs+"+"+Ks,qs+"+"+Zs,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ns,ea].join("|"),"g");const ia=function(t){return t.match(na)||[]};const ra=function(t,e,n){return t=Xo(t),void 0===(e=n?void 0:e)?Ls(t)?ia(t):zs(t):t.match(e)||[]};var oa=RegExp("['’]","g");const sa=function(t){return function(e){return Os(ra($s(e).replace(oa,"")),t,"")}};const aa=sa(function(t,e,n){return e=e.toLowerCase(),t+(n?Cs(e):e)}),la=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","-apple-system","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong"]);function ca(t){const e=[];let n="",i=null;const r=()=>{const t=n.trim();t&&e.push(t),n=""};for(let e=0;e<t.length;e+=1){const o=t[e];i?(n+=o,o===i&&(i=null)):'"'!==o&&"'"!==o?","!==o?n+=o:r():(i=o,n+=o)}return r(),e}function ha(t){const e=t.trim();return e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'")?e.slice(1,-1):e}function ua(t){const e=ca(t);return e.length?1===e.length?ha(e[0]):e.map(t=>ha(t)).join(", "):""}function da(t){const e=ca(t);return e.length?e.map(t=>function(t){const e=t.trim();if(!e)return e;if(function(t){const e=t.trim();return e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'")}(e))return e;if(la.has(e.toLowerCase()))return e;if(!function(t){return/^\d/.test(t)||/\s/.test(t)}(e))return e;const n=e.includes('"')&&!e.includes("'")?"'":'"';return`${n}${e}${n}`}(t)).join(", "):t.trim()}const fa={100:"thin",hairline:"thin",thin:"thin",200:"extralight",ultralight:"extralight",extralight:"extralight",300:"light",light:"light",400:"regular",normal:"regular",regular:"regular",500:"medium",medium:"medium",600:"semibold",demibold:"semibold",semibold:"semibold",700:"bold",bold:"bold",800:"extrabold",ultrabold:"extrabold",extrabold:"extrabold",900:"black",heavy:"black",black:"black",950:"extrablack",ultrablack:"extrablack",extrablack:"extrablack"};function pa(t){const e=String(t).toLowerCase();return fa[e]||"regular"}const ga=new Map,ma=new Map;let ya="sans-serif";const va={fontFamily:"sans-serif",fontWeight:400,fontStyle:"normal",unitsPerEm:2048,metrics:{ascender:2189,descender:-555,lineGap:0},glyphs:{'"':727,"%":1821,"'":391,"(":682,")":682,"*":797,"+":1196,"-":682,"<":1196,"=":1196,">":1196,"@":2079,C:1479,D:1479,F:1251,G:1593,H:1479,J:1024,M:1706,N:1479,O:1593,Q:1593,R:1479,T:1251,U:1479,W:1933,Z:1251,"^":961,_:1024,"`":682,c:1024,i:455,j:455,k:1024,l:455,m:1706,r:682,s:1024,v:1024,w:1479,x:1024,y:1024,z:1024,"{":684,"|":532,"}":684,"~":1196},glyphsByWidth:{569:" !,./:;I[\\]ft",1139:"#$0123456789?Labdeghnopqu",1366:"&ABEKPSVXY"},defaultWidth:1139};function xa(t){if(void 0===t||"normal"===t)return"400";if("bold"===t)return"700";if("string"==typeof t){return{thin:"100",hairline:"100","extra-light":"200","ultra-light":"200",light:"300",regular:"400",normal:"400",medium:"500","semi-bold":"600",semibold:"600","demi-bold":"600",demibold:"600","extra-bold":"800",extrabold:"800","ultra-bold":"800",ultrabold:"800",black:"900",heavy:"900","extra-black":"950",extrablack:"950","ultra-black":"950",ultrablack:"950",bolder:"900",lighter:"300"}[t.toLowerCase()]||t}return String(t)}function ba(t){return t||"normal"}function wa(t){const e=t.fontFamily,n=xa(t.fontWeight),i=ba(t.fontStyle);if(t.aliases)for(const n of t.aliases)ma.has(n)||ma.set(n,e);if(t.glyphsByWidth){const e={...t.glyphs||{}};for(const[n,i]of Object.entries(t.glyphsByWidth))if("string"==typeof i){const t=Number(n);for(const n of i)e[n]=t}else e[n]=i;t={...t,glyphs:e,glyphsByWidth:void 0}}ga.has(e)||ga.set(e,new Map);const r=ga.get(e);r.has(n)||r.set(n,new Map);r.get(n).set(i,t)}function Ma(t,e,n){const i=function(t){return t?ga.has(t)?t:ma.get(t)||t:t}(t||ya),r=xa(e),o=ba(n),s=ga.get(i);if(!s)return console.warn(`Font family "${i}" not registered, using fallback font data`),va;let a=s.get(r);if(a){let t=a.get(o);if(t)return t;if("normal"!==o&&(t=a.get("normal"),t))return t;const e=a.values().next().value;if(e)return e}if(a=s.get("400"),a){let t=a.get(o);if(t)return t;if("normal"!==o&&(t=a.get("normal"),t))return t;const e=a.values().next().value;if(e)return e}const l=s.values().next().value;if(l){const t=l.values().next().value;if(t)return t}throw new Error(`No font data found for family "${i}" with weight "${r}" and style "${o}"`)}function ka(t){if(void 0===t)return 14;if("number"==typeof t)return t;const e=parseFloat(t);return isNaN(e)?16:e}function Ca(t,e={}){const n=function(t,e){if(!e||"none"===e)return t;switch(e){case"uppercase":return t.toUpperCase();case"lowercase":return t.toLowerCase();case"capitalize":return t.split(" ").map(t=>0===t.length?t:t[0].toUpperCase()+t.slice(1).toLowerCase()).join(" ");default:return t}}(t,e.textTransform),i=Ma(e.fontFamily,e.fontWeight,e.fontStyle),r=ka(e.fontSize),o=e.letterSpacing||0,s=e.wordSpacing||0;let a=0;const l=Array.from(n);for(let t=0;t<l.length;t++){const e=l[t],n=t<l.length-1?l[t+1]:void 0;let c=i.glyphs?.[e];void 0===c&&(c=i.defaultWidth||i.unitsPerEm/2);if(a+=c/i.unitsPerEm*r,n&&i.kerning){const t=i.kerning[e+n];void 0!==t&&(a+=t/i.unitsPerEm*r)}t<l.length-1&&(a+=o)," "===e&&(a+=s)}const c=function(t,e){const n=ka(t.fontSize),i=t.lineHeight;if(void 0===i){const{ascender:t,descender:i,lineGap:r=0}=e.metrics;return(t-i+r)/e.unitsPerEm*n}return"number"==typeof i?i*n:"pixel"===i.type?i.value:"percent"===i.type?i.value/100*n:n}(e,i),{ascender:h}=i.metrics;return{width:a,height:c,baseline:h/i.unitsPerEm*r}}var Oa=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};const ja=new WeakMap;function Ea(t){const e=ja.get(t);return e?Array.from(e.values()):[]}function _a(t,e){var n;return null===(n=ja.get(t))||void 0===n?void 0:n.get(e)}function Sa(t,e,n){let i=ja.get(t);return i||(i=new Map,ja.set(t,i)),i.set(e,n),n.finally(()=>{const i=ja.get(t);i&&(i.get(e)===n&&i.delete(e),0===i.size&&ja.delete(t))}),n}const $a=new Map;let Aa="Alibaba PuHuiTi";function za(t){const e=ca(t);for(const t of e){const e=$a.get(ua(t));if(e)return e}return null}function Pa(){return Array.from($a.values())}function La(t){Aa=da(t)}function Ia(t){const e=ca(t).flatMap(t=>{const e=za(t);if(!e)return[];const{baseUrl:n,fontWeight:i}=e;return Object.values(i).filter(t=>!!t).map(t=>Kh(n,t))});return Array.from(new Set(e))}const Ta=new WeakMap,Ra=new WeakMap;function Ba(t,e,n){let i=Ra.get(t);return i||(i=new Map,Ra.set(t,i)),i.set(e,n),n.finally(()=>{const i=Ra.get(t);i&&(i.get(e)===n&&i.delete(e),0===i.size&&Ra.delete(t))}),n}function Wa(t,e){const n=t.ownerDocument,i=(null==n?void 0:n.head)||document.head;if(!i)return;Ta.has(i)||Ta.set(i,new Map);const r=Ta.get(i),o=Ia(e);if(!o.length)return;const s=[];o.forEach(o=>{const a=`${e}-${o}`,l=`font:${a}`;if(_a(t,l))return;let c=r.get(a);c||(c=n.createElement("link"),c.id=a,c.rel="stylesheet",c.href=o,s.push(c),r.set(a,c));const h=function(t,e,n){var i;const r=null===(i=Ra.get(t))||void 0===i?void 0:i.get(e);return r||(!n||function(t){if("true"===t.getAttribute("data-infographic-font-loaded"))return!0;try{return!!t.sheet}catch(t){return!1}}(n)?Ba(t,e,Promise.resolve()):Ba(t,e,new Promise(t=>{const e=()=>{n.setAttribute("data-infographic-font-loaded","true"),t()};n.addEventListener("load",e,{once:!0}),n.addEventListener("error",e,{once:!0})})))}(i,a,c);Sa(t,l,h)}),s.length&&"HEAD"===i.tagName&&s.forEach(t=>i.appendChild(t))}const Ha="https://assets.antv.antgroup.com",Na=t=>`${t}/result.css`;[{fontFamily:"Alibaba PuHuiTi",name:"阿里巴巴普惠体",baseUrl:Ha,fontWeight:{regular:Na("AlibabaPuHuiTi-Regular"),bold:Na("AlibabaPuHuiTi-Bold")}},{fontFamily:"Source Han Sans",name:"黑体",baseUrl:Ha,fontWeight:{regular:Na("SourceHanSansCN-Regular")}},{fontFamily:"Source Han Serif",name:"宋体",baseUrl:Ha,fontWeight:{regular:Na("SourceHanSerifCN-Regular")}},{fontFamily:"LXGW WenKai",name:"楷体",baseUrl:Ha,fontWeight:{regular:Na("LXGWWenKai-Regular")}},{fontFamily:"851tegakizatsu",name:"手写体",baseUrl:Ha,fontWeight:{regular:Na("851tegakizatsu-Regular")}}].forEach(function(t){const e=Object.assign({},t);return $a.set(e.fontFamily,e),e.fontFamily=da(e.fontFamily),e});const Fa=new Map;function Da(t,e){Fa.set(t,e)}Da("antv",["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#70CAF8"]);Da("spectral",(t,e,n)=>{const i=Math.min(Math.max(n,3),11);return[["#fc8d59","#ffffbf","#99d594"],["#d7191c","#fdae61","#abdda4","#2b83ba"],["#d7191c","#fdae61","#ffffbf","#abdda4","#2b83ba"],["#d53e4f","#fc8d59","#fee08b","#e6f598","#99d594","#3288bd"],["#d53e4f","#fc8d59","#fee08b","#ffffbf","#e6f598","#99d594","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]][i-3][e%i]});const Va=(t=[],e,n)=>{var i;const r="string"==typeof t?function(t){return Fa.get(t)}(t)||[]:t,o=null!==(i=e[0])&&void 0!==i?i:0;if("function"==typeof r){return r(n?o/n:0,o,null!=n?n:0)}if(Array.isArray(r)){if(0===r.length)return;return r[o%r.length]}};function Ua(t,e){const n=Object.entries(e).reduce((e,[n,i])=>{if("function"==typeof i){const r=i(t.getAttribute(n),t);null!=r&&(e[n]=r)}else Object.assign(e,{[n]:i});return e},{});return n}const Ya="btn-add-icon",qa="btn-remove-icon";function Ga(t,e){Jc(e,{display:"none"});const n=e.querySelectorAll('[id^="btn-add-"]'),i=e.querySelectorAll('[id^="btn-remove-"]');!function(t){const e=Zc("defs");zh(e,Xa);const n=Qc('<symbol class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">\n <path\n d="M512 1024C229.216 1024 0 794.784 0 512S229.216 0 512 0s512 229.216 512 512-229.216 512-512 512z m0-960C264.576 64 64 264.576 64 512s200.576 448 448 448 448-200.576 448-448S759.424 64 512 64z m192 480h-160v160a32 32 0 0 1-64 0v-160h-160a32 32 0 0 1 0-64h160v-160a32 32 0 0 1 64 0v160h160a32 32 0 0 1 0 64z"\n fill="#339900"></path>\n</symbol>');n&&(n.setAttribute("id",Ya),e.appendChild(n));const i=Qc('<symbol viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">\n <path d="M874.971429 149.942857C776.228571 54.857143 648.228571 0 512.914286 0S245.942857 54.857143 150.857143 149.942857c-201.142857 201.142857-201.142857 522.971429 0 724.114286C245.942857 969.142857 377.6 1024 512.914286 1024s266.971429-54.857143 362.057143-149.942857c201.142857-201.142857 201.142857-522.971429 0-724.114286m-51.2 672.914286C739.657143 906.971429 629.942857 950.857143 512.914286 950.857143s-226.742857-43.885714-310.857143-128c-171.885714-171.885714-171.885714-449.828571 0-621.714286C286.171429 117.028571 395.885714 73.142857 512.914286 73.142857s226.742857 43.885714 310.857143 128c171.885714 171.885714 171.885714 449.828571 0 621.714286" fill="#E63C33"></path>\n <path d="M772.571429 475.428571H253.257143c-21.942857 0-36.571429 14.628571-36.571429 36.571429 0 10.971429 3.657143 18.285714 10.971429 25.6s14.628571 10.971429 25.6 10.971429H768.914286c21.942857 0 36.571429-14.628571 36.571428-36.571429s-14.628571-36.571429-32.914285-36.571429" fill="#E63C33"></path>\n</symbol>');i&&(i.setAttribute("id",qa),e.appendChild(i));t.prepend(e)}(t),n.forEach(Za),i.forEach(Qa)}const Xa="btn-icon-defs";function Ka(t,e){const{id:n,x:i=0,y:r=0,width:o=0,height:s=0}=th(t,["id","x","y","width","height"]),a=Zc("g",{id:n,class:"btn-group",transform:`translate(${i}, ${r})`}),l=t.getAttribute("data-items");l&&a.setAttribute("data-items",l);const c=Math.max(+o,+s)/2,h=Zc("circle",{cx:c,cy:c,r:c,fill:"#fff",stroke:"transparent"});a.appendChild(h);const u=Zc("use",{href:`#${e}`,width:o,height:s});a.appendChild(u),a.style.cursor="pointer",t.replaceWith(a)}function Za(t){Ka(t,Ya)}function Qa(t){Ka(t,qa)}var Ja=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};function tl(t){return Ja(this,void 0,void 0,function*(){var e;if(!t||!t.startsWith("data:"))return null;const n=null===(e=t.match(/^data:([^;]+)/))||void 0===e?void 0:e[1];if(!n)return null;const{width:i,height:r,hasAlpha:o}=yield new Promise((e,i)=>{const r=new Image;r.onload=()=>{const t=r.naturalWidth,i=r.naturalHeight,o=document.createElement("canvas"),s=o.getContext("2d");if(!s)return e({width:t,height:i,hasAlpha:!1});if(["image/jpeg","image/jpg","image/webp","image/gif"].includes(n))return e({width:t,height:i,hasAlpha:!1});o.width=t,o.height=i,s.drawImage(r,0,0);let a=!1;for(let e=0;e<t&&!a;e+=10)for(let t=0;t<i;t+=10)if(s.getImageData(e,t,1,1).data[3]<255){a=!0;break}e({width:t,height:i,hasAlpha:a})},r.onerror=()=>i(new Error("Failed to analysis image")),r.src=t}),s=(()=>{if(o)return"xMidYMid meet";if((null==n?void 0:n.includes("image/gif"))||(null==n?void 0:n.includes("image/svg")))return"xMidYMid meet";if(Math.min(i,r)<=200)return"xMidYMid meet";const t=i/r;return t>=.6&&t<=1.67||t<.3||t>3.33?"xMidYMid meet":"xMidYMid slice"})();return Qc(`\n<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${i} ${r}" preserveAspectRatio="${s}">\n <image href="${t}" width="${i}" height="${r}" />\n</symbol>`)})}function el(t){if(!t||!function(t){const e=t.trim();return/^(?:<\?xml[^>]*>\s*)?<svg[\s>]/i.test(e)||e.startsWith("<symbol")}(t))return null;return Qc(t.replace(/<svg(?=[\s/>])/i,"<symbol").replace(/<\/svg>/i,"</symbol>"))}var nl=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};function il(t,e){return nl(this,void 0,void 0,function*(){if(!t||!function(t){try{return Boolean(new URL(t))}catch(t){return!1}}(t))return null;const n=yield Fh(t);if(!n.ok)throw new Error("Failed to load resource");if(function(t,e){return!!t.toLowerCase().includes("image/svg")||!t&&"svg"===e}(n.headers.get("Content-Type")||"",e)){return el(yield n.text())}const i=yield n.blob(),r=yield function(t){return new Promise((e,n)=>{const i=new FileReader;i.onloadend=()=>{e(i.result)},i.onerror=n,i.readAsDataURL(t)})}(i);return tl(r)})}var rl=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};function ol(t,e){return rl(this,void 0,void 0,function*(){var n;if(!t)return null;const i=yield(t=>rl(void 0,void 0,void 0,function*(){try{const e=`https://www.weavefox.cn/api/v1/infographic/icon?${new URLSearchParams({text:t,topK:"1"}).toString()}`,n=yield Fh(e);if(!n.ok)return null;const i=yield n.json();return(null==i?void 0:i.success)&&Array.isArray(i.data)&&i.data[0]||null}catch(e){return console.error(`Failed to query icon for "${t}":`,e),null}}))(t);if(!i)return null;if(function(t){const e=t.trim();return e.startsWith("<svg")||e.startsWith("<symbol")}(i))return el(i);if(i.startsWith("data:")){const t=(null===(n=i.match(/^data:([^;]+)/))||void 0===n?void 0:n[1])||"",e=i.includes(";base64,");if("image/svg+xml"===t&&!e){const t=i.indexOf(",");return el(t>=0?i.slice(t+1):i)}return tl(i)}return il(i,e)})}let sl=null;const al=new Set(["svg","png","jpg","jpeg","webp","gif"]);function ll(t){const e=t.toLowerCase();return e.endsWith(".svg")||e.includes(".svg?")?"svg":e.endsWith(".png")||e.endsWith(".jpg")||e.endsWith(".jpeg")||e.endsWith(".webp")||e.endsWith(".gif")?"image":void 0}function cl(t){if(!t)return null;if("string"!=typeof t){if(t.source)return t;return"image"===t.type?{source:"inline",format:"image",data:t.data}:"svg"===t.type?{source:"inline",format:"svg",encoding:"raw",data:t.data}:"remote"===t.type?{source:"remote",format:t.format,data:t.data}:"search"===t.type?{source:"search",format:t.format||"svg",data:t.data}:"custom"===t.type?{source:"custom",data:t.data}:null}const e=function(t){if(!t.startsWith("data:"))return null;const e=t.indexOf(",");if(-1===e)return null;const n=t.slice(5,e),i=t.slice(e+1),r=n.split(";"),o=r[0],s=r.includes("base64");if("image/svg+xml"===o&&!s)return{source:"inline",format:"svg",encoding:"raw",data:i.startsWith("%3C")?decodeURIComponent(i):i};if(o.startsWith("image/"))return{source:"inline",format:"image/svg+xml"===o?"svg":"image",encoding:s?"base64":"data-uri",data:t};return null}(t);if(e)return e;const n=function(t){var e;if(!t.startsWith("ref:"))return null;const n=t.slice(4),[i,...r]=n.split(":");if(!i||0===r.length)return null;let o;r.length>1&&al.has(r[0].toLowerCase())&&(o=null===(e=r.shift())||void 0===e?void 0:e.toLowerCase());const s=r.join(":");if(!s)return null;const a="url"===i?"remote":i;return"remote"===a?{source:"remote",format:o||ll(s)||void 0,data:s}:"search"===a?{source:"search",format:o||"svg",data:s}:"svg"===a?{source:"inline",format:"svg",data:s,encoding:"raw"}:{source:"custom",data:t,format:o}}(t);return n||(function(t){const e=t.trim();return e.startsWith("<svg")||e.startsWith("<symbol")}(t)?{source:"inline",format:"svg",encoding:"raw",data:t}:{source:"custom",data:t})}function hl(t){const e="string"==typeof t?cl(t):t;return e?"rsc-"+Dh(JSON.stringify(e)):null}function ul(t){const e=hl(t);return e?`#${e}`:null}var dl=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};function fl(t,e,n){return dl(this,void 0,void 0,function*(){const i=cl(e);if(!i)return null;i.scene||(i.scene=t);const{source:r,data:o,format:s,encoding:a}=i;let l=null;try{if("inline"===r){const t=o.startsWith("data:");l="svg"===s&&"raw"===a?el(o):"svg"===s&&t||t||"image"===s?yield tl(o):el(o)}else if("remote"===r)l=yield il(o,s);else if("search"===r)l=yield ol(o,s);else{const t=sl;t&&(l=yield t(i))}}catch(t){l=null}return l||(yield ol(function(t,e,n){const i="illus"===e?"illustration":"icon",r=yl(t.data)||yl(null==n?void 0:n.label)||yl(null==n?void 0:n.desc);if(r)return r;const o=yl(t.data);return o?"inline"===t.source||o.startsWith("data:")||o.startsWith("<svg")||o.startsWith("<symbol")?i:o:i}(i,t,n),s))})}const pl=new Map,gl=new WeakMap;function ml(t,e,n,i){return dl(this,void 0,void 0,function*(){if(!t)return null;const r=cl(n);if(!r)return null;const o=hl(r),s=`resource:${o}`,a=gl.get(t);if(null==a?void 0:a.has(o))return o;const l=_a(t,s);if(l)return yield l;const c=(()=>dl(this,void 0,void 0,function*(){const n=pl.has(o)?pl.get(o)||null:yield fl(e,r,i);if(!n)return null;gl.has(t)||gl.set(t,new Map);const s=gl.get(t);if(s.has(o))return o;const a=nh(t);return n.id=o,a.appendChild(n),s.set(o,n),o}))();return Sa(t,s,c),yield c})}function yl(t){if("string"!=typeof t)return null;const e=t.trim();return e||null}function vl(t,e,n,i){var r,o;const s=n.icon;if(!s)return null;const{themeConfig:a}=i,l=null===(r=n.attributes)||void 0===r?void 0:r.icon;return function(t,e,n,i,r){return ml(t,"icon",n,r),function(t,e={}){const n=Zc("use",Object.assign(Object.assign({},e),{href:ul(t)}));return Uh(n),Vh.set(n,t),n}(n,Object.assign(Object.assign({},th(e,["id","x","y","width","height","fill","stroke","data-element-type","data-indexes"])),i))}(t,e,s,Ua(e,Object.assign(Object.assign({},null===(o=a.item)||void 0===o?void 0:o.icon),l)),n)}var xl=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function bl(t,e,n,i,r={}){if(!n)return null;const o=cl(n);if(!o)return null;const s=hl(o);r&&Object.keys(r).length>0&&Jc(e,r);const a=function(t,e,n){const i=`clip-${n}-${function(){if(crypto&&crypto.randomUUID)return crypto.randomUUID();return"xxxx-xxxx-4xxx-yxxx".replace(/[xy]/g,function(t){const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}()}`;if(t.querySelector(`#${i}`))return i;const r=nh(t),o=Zc("clipPath",{id:i}),s=e.cloneNode();return function(t,e){e.forEach(e=>{t.removeAttribute(e)})}(s,["id","data-illus-bounds","data-element-type"]),o.appendChild(s),r.appendChild(o),i}(t,e,s);ml(t,"illus",o,i);const{data:l,color:c}=o;return function(t,e,n){const{"clip-path":i}=e,r=xl(e,["clip-path"]),{x:o="0",y:s="0",width:a="0",height:l="0"}=r,c=Zc("rect",{id:`${t}-volume`,"data-element-type":"illus-volume",x:o,y:s,width:a,height:l,fill:"transparent"}),h=Zc("g",{"data-element-type":"illus-group","clip-path":i,id:`${t}-group`});h.appendChild(c);const u=Zc("use",Object.assign(Object.assign({id:t,fill:"lightgray"},r),{href:ul(n),"data-element-type":"illus"}));return h.appendChild(u),h}(s,Object.assign(Object.assign(Object.assign(Object.assign({},function(t){const e=t.getAttribute("data-illus-bounds");if(!e)return Object.assign({x:"0",y:"0",width:"0",height:"0"},th(t,["x","y","width","height"]));const[n,i,r,o]=e.split(" ");return{x:n,y:i,width:r,height:o}}(e)),c?{color:c}:{}),r),{"clip-path":`url(#${a})`}),l)}var wl=n("./node_modules/.pnpm/tinycolor2@1.6.0/node_modules/tinycolor2/esm/tinycolor.js");function Ml(t){return t.replace(/#|%|\.| |\/|\(|\)/g,"").replace(/,/g,"-")}function kl(t,e,n,i){const r=function(t,e){var n;if((null===(n=e.colors)||void 0===n?void 0:n.length)||!t)return e;const i=(0,wl.A)(t),r=Object.assign({},e);r.colors=i.isDark()?[t,i.lighten(20).toHexString()]:[i.darken(20).toHexString(),t],"angle"in e||"linear-gradient"!==r.type||(r.angle=225);return r}(t.getAttribute(i),n),{type:o,colors:s=[]}=r,a=s.length-1,l=s.map((t,e)=>Zc("stop","string"==typeof t?{offset:""+e/a,"stop-color":t}:{offset:`${t.offset}`,"stop-color":t.color})),c=function(t){const{type:e,colors:n=[]}=t,i=Ml(n.map(t=>"string"==typeof t?t:`${t.color}_${t.offset}`).join("-"));if("linear-gradient"===e){const{angle:n=0}=t;return`${e}-${i}-${n}`}return`${e}-${i}`}(r);if("linear-gradient"===o){const{angle:t=0}=r,[[n,i],[o,s]]=function(t){const e=Math.PI/180*t,n=Math.cos(e),i=Math.sin(e);return[[.5-n/2,.5-i/2],[.5+n/2,.5+i/2]]}(t),a=Zc("linearGradient",{id:c,x1:n,y1:i,x2:o,y2:s});l.forEach(t=>a.appendChild(t)),Cl(e,c,a)}else if("radial-gradient"===o){const t=Zc("radialGradient",{id:c});l.forEach(e=>t.appendChild(e)),Cl(e,c,t)}const h=t.getAttribute("fill"),u=t.getAttribute("stroke");Ar(h)&&t.setAttribute("fill",`url(#${c})`),Ar(u)&&t.setAttribute("stroke",`url(#${c})`)}function Cl(t,e,n){const i=nh(t);n.setAttribute("id",e);const r=i.querySelector(`#${e}`);r?r.replaceWith(n):i.appendChild(n)}const Ol=({scale:t=.5,backgroundColor:e,foregroundColor:n})=>{const i=Zc("pattern",{id:"pattern-diamond",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),r=Zc("rect",{width:"100%",height:"100%",fill:e}),o=Zc("path",{d:"M0,0 L20,20 M20,0 L0,20",stroke:n,"stroke-width":"1"});return i.appendChild(r),i.appendChild(o),i},jl=({scale:t=1,backgroundColor:e,foregroundColor:n})=>{const i=Zc("pattern",{id:"pattern-dot",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),r=Zc("rect",{width:"100%",height:"100%",fill:e}),o=Zc("circle",{cx:"5",cy:"5",r:"3",fill:n}),s=Zc("circle",{cx:"15",cy:"15",r:"3",fill:n});return i.appendChild(r),i.appendChild(o),i.appendChild(s),i},El=({scale:t=.3,backgroundColor:e,foregroundColor:n})=>{const i=Zc("pattern",{id:"pattern-hex",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),r=Zc("rect",{width:"100%",height:"100%",fill:e}),o=Zc("path",{d:"M10,0 L20,5 L20,15 L10,20 L0,15 L0,5 Z",fill:n});return i.appendChild(r),i.appendChild(o),i},_l=({scale:t=1,backgroundColor:e,foregroundColor:n})=>{const i=Zc("pattern",{id:"pattern-line",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),r=Zc("rect",{width:"100%",height:"100%",fill:e}),o=Zc("line",{x1:"7",y1:"-3",x2:"23",y2:"13",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"}),s=Zc("line",{x1:"-3",y1:"7",x2:"13",y2:"23",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"});return i.appendChild(r),i.appendChild(o),i.appendChild(s),i},Sl=({scale:t=1,backgroundColor:e="#ffffff",foregroundColor:n="#000000"})=>{const i=Zc("pattern",{id:"pattern-mosaic",width:20,height:20,patternUnits:"userSpaceOnUse",patternTransform:`scale(${t})`}),r=Zc("rect",{width:"100%",height:"100%",fill:e});i.appendChild(r);for(let t=0;t<4;t++)for(let e=0;e<4;e++)if((e+t)%2==0){const r=Zc("rect",{x:5*e,y:5*t,width:5,height:5,fill:n});i.appendChild(r)}return i},$l=({scale:t=.3,backgroundColor:e,foregroundColor:n})=>{const i=Zc("pattern",{id:"pattern-square",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),r=Zc("rect",{width:"100%",height:"100%",fill:e}),o=Zc("path",{d:"M0,0 L20,0 L20,20 L0,20 Z",fill:n});return i.appendChild(r),i.appendChild(o),i};var Al=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const zl=new Map;function Pl(t,e){zl.has(t)&&console.warn(`Pattern ${t} will be overwritten`),zl.set(t,e)}for(const[t,e]of Object.entries(i))Pl(t,e);function Ll(t,e,n){const i=n.themeConfig.stylize;if(!i||"pattern"!==i.type)return;const{pattern:r}=i,o=Al(i,["pattern"]),s=zl.get(r);if(!s)return console.warn(`Pattern ${r} not found`);const{fill:a}=th(t,["fill","stroke"]),l=a,c=Object.assign({backgroundColor:l?(0,wl.A)(l).setAlpha(.5).toRgbString():l,foregroundColor:l},o),h=function(t){const{pattern:e,foregroundColor:n="unset",backgroundColor:i="unset",scale:r="unset"}=t;return Ml(`pattern-${e}-${n}-${i}-${r}`)}(Object.assign(Object.assign({},i),c));!function(t,e,n){const i=nh(t);n.setAttribute("id",e);const r=i.querySelector(`pattern#${e}`);r?r.replaceWith(n):i.appendChild(n)}(e,h,s(c)),Ar(a)&&(t.setAttribute("fill",`url(#${h})`),!t.getAttribute("stroke")&&a&&t.setAttribute("stroke",a))}function Il(t,e,n){if(t&&t.length){const[i,r]=e,o=Math.PI/180*n,s=Math.cos(o),a=Math.sin(o);for(const e of t){const[t,n]=e;e[0]=(t-i)*s-(n-r)*a+i,e[1]=(t-i)*a+(n-r)*s+r}}}function Tl(t,e){return t[0]===e[0]&&t[1]===e[1]}function Rl(t,e,n,i=1){const r=n,o=Math.max(e,.1),s=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,a=[0,0];if(r)for(const t of s)Il(t,a,r);const l=function(t,e,n){const i=[];for(const e of t){const t=[...e];Tl(t[0],t[t.length-1])||t.push([t[0][0],t[0][1]]),t.length>2&&i.push(t)}const r=[];e=Math.max(e,.1);const o=[];for(const t of i)for(let e=0;e<t.length-1;e++){const n=t[e],i=t[e+1];if(n[1]!==i[1]){const t=Math.min(n[1],i[1]);o.push({ymin:t,ymax:Math.max(n[1],i[1]),x:t===n[1]?n[0]:i[0],islope:(i[0]-n[0])/(i[1]-n[1])})}}if(o.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!o.length)return r;let s=[],a=o[0].ymin,l=0;for(;s.length||o.length;){if(o.length){let t=-1;for(let e=0;e<o.length&&!(o[e].ymin>a);e++)t=e;o.splice(0,t+1).forEach(t=>{s.push({s:a,edge:t})})}if(s=s.filter(t=>!(t.edge.ymax<=a)),s.sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==n||l%e==0)&&s.length>1)for(let t=0;t<s.length;t+=2){const e=t+1;if(e>=s.length)break;const n=s[e].edge;r.push([[Math.round(s[t].edge.x),a],[Math.round(n.x),a]])}a+=n,s.forEach(t=>{t.edge.x=t.edge.x+n*t.edge.islope}),l++}return r}(s,o,i);if(r){for(const t of s)Il(t,a,-r);!function(t,e,n){const i=[];t.forEach(t=>i.push(...t)),Il(i,e,n)}(l,a,-r)}return l}function Bl(t,e){var n;const i=e.hachureAngle+90;let r=e.hachureGap;r<0&&(r=4*e.strokeWidth),r=Math.round(Math.max(r,.1));let o=1;return e.roughness>=1&&((null===(n=e.randomizer)||void 0===n?void 0:n.next())||Math.random())>.7&&(o=r),Rl(t,r,i,o||1)}class Wl{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){const n=Bl(t,e);return{type:"fillSketch",ops:this.renderLines(n,e)}}renderLines(t,e){const n=[];for(const i of t)n.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],e));return n}}function Hl(t){const e=t[0],n=t[1];return Math.sqrt(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))}class Nl extends Wl{fillPolygons(t,e){let n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);const i=Bl(t,Object.assign({},e,{hachureGap:n})),r=Math.PI/180*e.hachureAngle,o=[],s=.5*n*Math.cos(r),a=.5*n*Math.sin(r);for(const[t,e]of i)Hl([t,e])&&o.push([[t[0]-s,t[1]+a],[...e]],[[t[0]+s,t[1]-a],[...e]]);return{type:"fillSketch",ops:this.renderLines(o,e)}}}class Fl extends Wl{fillPolygons(t,e){const n=this._fillPolygons(t,e),i=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),r=this._fillPolygons(t,i);return n.ops=n.ops.concat(r.ops),n}}class Dl{constructor(t){this.helper=t}fillPolygons(t,e){const n=Bl(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(n,e)}dotsOnLines(t,e){const n=[];let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.max(i,.1);let r=e.fillWeight;r<0&&(r=e.strokeWidth/2);const o=i/4;for(const s of t){const t=Hl(s),a=Math.ceil(t/i)-1,l=t-a*i,c=(s[0][0]+s[1][0])/2-i/4,h=Math.min(s[0][1],s[1][1]);for(let t=0;t<a;t++){const s=h+l+t*i,a=c-o+2*Math.random()*o,u=s-o+2*Math.random()*o,d=this.helper.ellipse(a,u,r,r,e);n.push(...d.ops)}}return{type:"fillSketch",ops:n}}}class Vl{constructor(t){this.helper=t}fillPolygons(t,e){const n=Bl(t,e);return{type:"fillSketch",ops:this.dashedLine(n,e)}}dashedLine(t,e){const n=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,i=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,r=[];return t.forEach(t=>{const o=Hl(t),s=Math.floor(o/(n+i)),a=(o+i-s*(n+i))/2;let l=t[0],c=t[1];l[0]>c[0]&&(l=t[1],c=t[0]);const h=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let t=0;t<s;t++){const o=t*(n+i),s=o+n,c=[l[0]+o*Math.cos(h)+a*Math.cos(h),l[1]+o*Math.sin(h)+a*Math.sin(h)],u=[l[0]+s*Math.cos(h)+a*Math.cos(h),l[1]+s*Math.sin(h)+a*Math.sin(h)];r.push(...this.helper.doubleLineOps(c[0],c[1],u[0],u[1],e))}}),r}}class Ul{constructor(t){this.helper=t}fillPolygons(t,e){const n=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,i=e.zigzagOffset<0?n:e.zigzagOffset,r=Bl(t,e=Object.assign({},e,{hachureGap:n+i}));return{type:"fillSketch",ops:this.zigzagLines(r,i,e)}}zigzagLines(t,e,n){const i=[];return t.forEach(t=>{const r=Hl(t),o=Math.round(r/(2*e));let s=t[0],a=t[1];s[0]>a[0]&&(s=t[1],a=t[0]);const l=Math.atan((a[1]-s[1])/(a[0]-s[0]));for(let t=0;t<o;t++){const r=2*t*e,o=2*(t+1)*e,a=Math.sqrt(2*Math.pow(e,2)),c=[s[0]+r*Math.cos(l),s[1]+r*Math.sin(l)],h=[s[0]+o*Math.cos(l),s[1]+o*Math.sin(l)],u=[c[0]+a*Math.cos(l+Math.PI/4),c[1]+a*Math.sin(l+Math.PI/4)];i.push(...this.helper.doubleLineOps(c[0],c[1],u[0],u[1],n),...this.helper.doubleLineOps(u[0],u[1],h[0],h[1],n))}}),i}}const Yl={};class ql{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const Gl={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Xl(t,e){return t.type===e}function Kl(t){const e=[],n=function(t){const e=new Array;for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t);let i="BOD",r=0,o=n[r];for(;!Xl(o,2);){let s=0;const a=[];if("BOD"===i){if("M"!==o.text&&"m"!==o.text)return Kl("M0,0"+t);r++,s=Gl[o.text],i=o.text}else Xl(o,1)?s=Gl[i]:(r++,s=Gl[o.text],i=o.text);if(!(r+s<n.length))throw new Error("Path data ended short");for(let t=r;t<r+s;t++){const e=n[t];if(!Xl(e,1))throw new Error("Param not a number: "+i+","+e.text);a[a.length]=+e.text}if("number"!=typeof Gl[i])throw new Error("Bad segment: "+i);e.push({key:i,data:a}),r+=s,o=n[r],"M"===i&&(i="L"),"m"===i&&(i="l")}return e}function Zl(t){let e=0,n=0,i=0,r=0;const o=[];for(const{key:s,data:a}of t)switch(s){case"M":o.push({key:"M",data:[...a]}),[e,n]=a,[i,r]=a;break;case"m":e+=a[0],n+=a[1],o.push({key:"M",data:[e,n]}),i=e,r=n;break;case"L":o.push({key:"L",data:[...a]}),[e,n]=a;break;case"l":e+=a[0],n+=a[1],o.push({key:"L",data:[e,n]});break;case"C":o.push({key:"C",data:[...a]}),e=a[4],n=a[5];break;case"c":{const t=a.map((t,i)=>i%2?t+n:t+e);o.push({key:"C",data:t}),e=t[4],n=t[5];break}case"Q":o.push({key:"Q",data:[...a]}),e=a[2],n=a[3];break;case"q":{const t=a.map((t,i)=>i%2?t+n:t+e);o.push({key:"Q",data:t}),e=t[2],n=t[3];break}case"A":o.push({key:"A",data:[...a]}),e=a[5],n=a[6];break;case"a":e+=a[5],n+=a[6],o.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,n]});break;case"H":o.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],o.push({key:"H",data:[e]});break;case"V":o.push({key:"V",data:[...a]}),n=a[0];break;case"v":n+=a[0],o.push({key:"V",data:[n]});break;case"S":o.push({key:"S",data:[...a]}),e=a[2],n=a[3];break;case"s":{const t=a.map((t,i)=>i%2?t+n:t+e);o.push({key:"S",data:t}),e=t[2],n=t[3];break}case"T":o.push({key:"T",data:[...a]}),e=a[0],n=a[1];break;case"t":e+=a[0],n+=a[1],o.push({key:"T",data:[e,n]});break;case"Z":case"z":o.push({key:"Z",data:[]}),e=i,n=r}return o}function Ql(t){const e=[];let n="",i=0,r=0,o=0,s=0,a=0,l=0;for(const{key:c,data:h}of t){switch(c){case"M":e.push({key:"M",data:[...h]}),[i,r]=h,[o,s]=h;break;case"C":e.push({key:"C",data:[...h]}),i=h[4],r=h[5],a=h[2],l=h[3];break;case"L":e.push({key:"L",data:[...h]}),[i,r]=h;break;case"H":i=h[0],e.push({key:"L",data:[i,r]});break;case"V":r=h[0],e.push({key:"L",data:[i,r]});break;case"S":{let t=0,o=0;"C"===n||"S"===n?(t=i+(i-a),o=r+(r-l)):(t=i,o=r),e.push({key:"C",data:[t,o,...h]}),a=h[0],l=h[1],i=h[2],r=h[3];break}case"T":{const[t,o]=h;let s=0,c=0;"Q"===n||"T"===n?(s=i+(i-a),c=r+(r-l)):(s=i,c=r);e.push({key:"C",data:[i+2*(s-i)/3,r+2*(c-r)/3,t+2*(s-t)/3,o+2*(c-o)/3,t,o]}),a=s,l=c,i=t,r=o;break}case"Q":{const[t,n,o,s]=h;e.push({key:"C",data:[i+2*(t-i)/3,r+2*(n-r)/3,o+2*(t-o)/3,s+2*(n-s)/3,o,s]}),a=t,l=n,i=o,r=s;break}case"A":{const t=Math.abs(h[0]),n=Math.abs(h[1]),o=h[2],s=h[3],a=h[4],l=h[5],c=h[6];0===t||0===n?(e.push({key:"C",data:[i,r,l,c,l,c]}),i=l,r=c):i===l&&r===c||(tc(i,r,l,c,t,n,o,s,a).forEach(function(t){e.push({key:"C",data:t})}),i=l,r=c);break}case"Z":e.push({key:"Z",data:[]}),i=o,r=s}n=c}return e}function Jl(t,e,n){return[t*Math.cos(n)-e*Math.sin(n),t*Math.sin(n)+e*Math.cos(n)]}function tc(t,e,n,i,r,o,s,a,l,c){const h=Math.PI*s/180;let u=[],d=0,f=0,p=0,g=0;if(c)[d,f,p,g]=c;else{[t,e]=Jl(t,e,-h),[n,i]=Jl(n,i,-h);const s=(t-n)/2,c=(e-i)/2;let u=s*s/(r*r)+c*c/(o*o);u>1&&(u=Math.sqrt(u),r*=u,o*=u);const m=r*r,y=o*o,v=(a===l?-1:1)*Math.sqrt(Math.abs((m*y-m*c*c-y*s*s)/(m*c*c+y*s*s)));p=v*r*c/o+(t+n)/2,g=v*-o*s/r+(e+i)/2,d=Math.asin(parseFloat(((e-g)/o).toFixed(9))),f=Math.asin(parseFloat(((i-g)/o).toFixed(9))),t<p&&(d=Math.PI-d),n<p&&(f=Math.PI-f),d<0&&(d=2*Math.PI+d),f<0&&(f=2*Math.PI+f),l&&d>f&&(d-=2*Math.PI),!l&&f>d&&(f-=2*Math.PI)}let m=f-d;if(Math.abs(m)>120*Math.PI/180){const t=f,e=n,a=i;f=l&&f>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,u=tc(n=p+r*Math.cos(f),i=g+o*Math.sin(f),e,a,r,o,s,0,l,[f,t,p,g])}m=f-d;const y=Math.cos(d),v=Math.sin(d),x=Math.cos(f),b=Math.sin(f),w=Math.tan(m/4),M=4/3*r*w,k=4/3*o*w,C=[t,e],O=[t+M*v,e-k*y],j=[n+M*b,i-k*x],E=[n,i];if(O[0]=2*C[0]-O[0],O[1]=2*C[1]-O[1],c)return[O,j,E].concat(u);{u=[O,j,E].concat(u);const t=[];for(let e=0;e<u.length;e+=3){const n=Jl(u[e][0],u[e][1],h),i=Jl(u[e+1][0],u[e+1][1],h),r=Jl(u[e+2][0],u[e+2][1],h);t.push([n[0],n[1],i[0],i[1],r[0],r[1]])}return t}}const ec={randOffset:function(t,e){return pc(t,e)},randOffsetWithRange:function(t,e,n){return fc(t,e,n)},ellipse:function(t,e,n,i,r){return sc(t,e,r,oc(n,i,r)).opset},doubleLineOps:function(t,e,n,i,r){return gc(t,e,n,i,r,!0)}};function nc(t,e,n,i,r){return{type:"path",ops:gc(t,e,n,i,r)}}function ic(t,e,n){const i=(t||[]).length;if(i>2){const r=[];for(let e=0;e<i-1;e++)r.push(...gc(t[e][0],t[e][1],t[e+1][0],t[e+1][1],n));return e&&r.push(...gc(t[i-1][0],t[i-1][1],t[0][0],t[0][1],n)),{type:"path",ops:r}}return 2===i?nc(t[0][0],t[0][1],t[1][0],t[1][1],n):{type:"path",ops:[]}}function rc(t,e){if(t.length){const n="number"==typeof t[0][0]?[t]:t,i=yc(n[0],1*(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:yc(n[0],1.5*(1+.22*e.roughness),uc(e));for(let t=1;t<n.length;t++){const o=n[t];if(o.length){const t=yc(o,1*(1+.2*e.roughness),e),n=e.disableMultiStroke?[]:yc(o,1.5*(1+.22*e.roughness),uc(e));for(const e of t)"move"!==e.op&&i.push(e);for(const t of n)"move"!==t.op&&r.push(t)}}return{type:"path",ops:i.concat(r)}}return{type:"path",ops:[]}}function oc(t,e,n){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),r=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*i)),o=2*Math.PI/r;let s=Math.abs(t/2),a=Math.abs(e/2);const l=1-n.curveFitting;return s+=pc(s*l,n),a+=pc(a*l,n),{increment:o,rx:s,ry:a}}function sc(t,e,n,i){const[r,o]=xc(i.increment,t,e,i.rx,i.ry,1,i.increment*fc(.1,fc(.4,1,n),n),n);let s=vc(r,null,n);if(!n.disableMultiStroke&&0!==n.roughness){const[r]=xc(i.increment,t,e,i.rx,i.ry,1.5,0,n),o=vc(r,null,n);s=s.concat(o)}return{estimatedPoints:o,opset:{type:"path",ops:s}}}function ac(t,e,n,i,r,o,s,a,l){const c=t,h=e;let u=Math.abs(n/2),d=Math.abs(i/2);u+=pc(.01*u,l),d+=pc(.01*d,l);let f=r,p=o;for(;f<0;)f+=2*Math.PI,p+=2*Math.PI;p-f>2*Math.PI&&(f=0,p=2*Math.PI);const g=2*Math.PI/l.curveStepCount,m=Math.min(g/2,(p-f)/2),y=bc(m,c,h,u,d,f,p,1,l);if(!l.disableMultiStroke){const t=bc(m,c,h,u,d,f,p,1.5,l);y.push(...t)}return s&&(a?y.push(...gc(c,h,c+u*Math.cos(f),h+d*Math.sin(f),l),...gc(c,h,c+u*Math.cos(p),h+d*Math.sin(p),l)):y.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(f),h+d*Math.sin(f)]})),{type:"path",ops:y}}function lc(t,e){const n=Ql(Zl(Kl(t))),i=[];let r=[0,0],o=[0,0];for(const{key:t,data:s}of n)switch(t){case"M":o=[s[0],s[1]],r=[s[0],s[1]];break;case"L":i.push(...gc(o[0],o[1],s[0],s[1],e)),o=[s[0],s[1]];break;case"C":{const[t,n,r,a,l,c]=s;i.push(...wc(t,n,r,a,l,c,o,e)),o=[l,c];break}case"Z":i.push(...gc(o[0],o[1],r[0],r[1],e)),o=[r[0],r[1]]}return{type:"path",ops:i}}function cc(t,e){const n=[];for(const i of t)if(i.length){const t=e.maxRandomnessOffset||0,r=i.length;if(r>2){n.push({op:"move",data:[i[0][0]+pc(t,e),i[0][1]+pc(t,e)]});for(let o=1;o<r;o++)n.push({op:"lineTo",data:[i[o][0]+pc(t,e),i[o][1]+pc(t,e)]})}}return{type:"fillPath",ops:n}}function hc(t,e){return function(t,e){let n=t.fillStyle||"hachure";if(!Yl[n])switch(n){case"zigzag":Yl[n]||(Yl[n]=new Nl(e));break;case"cross-hatch":Yl[n]||(Yl[n]=new Fl(e));break;case"dots":Yl[n]||(Yl[n]=new Dl(e));break;case"dashed":Yl[n]||(Yl[n]=new Vl(e));break;case"zigzag-line":Yl[n]||(Yl[n]=new Ul(e));break;default:n="hachure",Yl[n]||(Yl[n]=new Wl(e))}return Yl[n]}(e,ec).fillPolygons(t,e)}function uc(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function dc(t){return t.randomizer||(t.randomizer=new ql(t.seed||0)),t.randomizer.next()}function fc(t,e,n,i=1){return n.roughness*i*(dc(n)*(e-t)+t)}function pc(t,e,n=1){return fc(-t,t,e,n)}function gc(t,e,n,i,r,o=!1){const s=o?r.disableMultiStrokeFill:r.disableMultiStroke,a=mc(t,e,n,i,r,!0,!1);if(s)return a;const l=mc(t,e,n,i,r,!0,!0);return a.concat(l)}function mc(t,e,n,i,r,o,s){const a=Math.pow(t-n,2)+Math.pow(e-i,2),l=Math.sqrt(a);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let h=r.maxRandomnessOffset||0;h*h*100>a&&(h=l/10);const u=h/2,d=.2+.2*dc(r);let f=r.bowing*r.maxRandomnessOffset*(i-e)/200,p=r.bowing*r.maxRandomnessOffset*(t-n)/200;f=pc(f,r,c),p=pc(p,r,c);const g=[],m=()=>pc(u,r,c),y=()=>pc(h,r,c),v=r.preserveVertices;return o&&g.push(s?{op:"move",data:[t+(v?0:m()),e+(v?0:m())]}:{op:"move",data:[t+(v?0:pc(h,r,c)),e+(v?0:pc(h,r,c))]}),g.push(s?{op:"bcurveTo",data:[f+t+(n-t)*d+m(),p+e+(i-e)*d+m(),f+t+2*(n-t)*d+m(),p+e+2*(i-e)*d+m(),n+(v?0:m()),i+(v?0:m())]}:{op:"bcurveTo",data:[f+t+(n-t)*d+y(),p+e+(i-e)*d+y(),f+t+2*(n-t)*d+y(),p+e+2*(i-e)*d+y(),n+(v?0:y()),i+(v?0:y())]}),g}function yc(t,e,n){if(!t.length)return[];const i=[];i.push([t[0][0]+pc(e,n),t[0][1]+pc(e,n)]),i.push([t[0][0]+pc(e,n),t[0][1]+pc(e,n)]);for(let r=1;r<t.length;r++)i.push([t[r][0]+pc(e,n),t[r][1]+pc(e,n)]),r===t.length-1&&i.push([t[r][0]+pc(e,n),t[r][1]+pc(e,n)]);return vc(i,null,n)}function vc(t,e,n){const i=t.length,r=[];if(i>3){const o=[],s=1-n.curveTightness;r.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<i;e++){const n=t[e];o[0]=[n[0],n[1]],o[1]=[n[0]+(s*t[e+1][0]-s*t[e-1][0])/6,n[1]+(s*t[e+1][1]-s*t[e-1][1])/6],o[2]=[t[e+1][0]+(s*t[e][0]-s*t[e+2][0])/6,t[e+1][1]+(s*t[e][1]-s*t[e+2][1])/6],o[3]=[t[e+1][0],t[e+1][1]],r.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}if(e&&2===e.length){const t=n.maxRandomnessOffset;r.push({op:"lineTo",data:[e[0]+pc(t,n),e[1]+pc(t,n)]})}}else 3===i?(r.push({op:"move",data:[t[1][0],t[1][1]]}),r.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===i&&r.push(...mc(t[0][0],t[0][1],t[1][0],t[1][1],n,!0,!0));return r}function xc(t,e,n,i,r,o,s,a){const l=[],c=[];if(0===a.roughness){t/=4,c.push([e+i*Math.cos(-t),n+r*Math.sin(-t)]);for(let o=0;o<=2*Math.PI;o+=t){const t=[e+i*Math.cos(o),n+r*Math.sin(o)];l.push(t),c.push(t)}c.push([e+i*Math.cos(0),n+r*Math.sin(0)]),c.push([e+i*Math.cos(t),n+r*Math.sin(t)])}else{const h=pc(.5,a)-Math.PI/2;c.push([pc(o,a)+e+.9*i*Math.cos(h-t),pc(o,a)+n+.9*r*Math.sin(h-t)]);const u=2*Math.PI+h-.01;for(let s=h;s<u;s+=t){const t=[pc(o,a)+e+i*Math.cos(s),pc(o,a)+n+r*Math.sin(s)];l.push(t),c.push(t)}c.push([pc(o,a)+e+i*Math.cos(h+2*Math.PI+.5*s),pc(o,a)+n+r*Math.sin(h+2*Math.PI+.5*s)]),c.push([pc(o,a)+e+.98*i*Math.cos(h+s),pc(o,a)+n+.98*r*Math.sin(h+s)]),c.push([pc(o,a)+e+.9*i*Math.cos(h+.5*s),pc(o,a)+n+.9*r*Math.sin(h+.5*s)])}return[c,l]}function bc(t,e,n,i,r,o,s,a,l){const c=o+pc(.1,l),h=[];h.push([pc(a,l)+e+.9*i*Math.cos(c-t),pc(a,l)+n+.9*r*Math.sin(c-t)]);for(let o=c;o<=s;o+=t)h.push([pc(a,l)+e+i*Math.cos(o),pc(a,l)+n+r*Math.sin(o)]);return h.push([e+i*Math.cos(s),n+r*Math.sin(s)]),h.push([e+i*Math.cos(s),n+r*Math.sin(s)]),vc(h,null,l)}function wc(t,e,n,i,r,o,s,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let h=[0,0];const u=a.disableMultiStroke?1:2,d=a.preserveVertices;for(let f=0;f<u;f++)l.push(0===f?{op:"move",data:[s[0],s[1]]}:{op:"move",data:[s[0]+(d?0:pc(c[0],a)),s[1]+(d?0:pc(c[0],a))]}),h=d?[r,o]:[r+pc(c[f],a),o+pc(c[f],a)],l.push({op:"bcurveTo",data:[t+pc(c[f],a),e+pc(c[f],a),n+pc(c[f],a),i+pc(c[f],a),h[0],h[1]]});return l}function Mc(t){return[...t]}function kc(t,e=0){const n=t.length;if(n<3)throw new Error("A curve must have at least three points.");const i=[];if(3===n)i.push(Mc(t[0]),Mc(t[1]),Mc(t[2]),Mc(t[2]));else{const n=[];n.push(t[0],t[0]);for(let e=1;e<t.length;e++)n.push(t[e]),e===t.length-1&&n.push(t[e]);const r=[],o=1-e;i.push(Mc(n[0]));for(let t=1;t+2<n.length;t++){const e=n[t];r[0]=[e[0],e[1]],r[1]=[e[0]+(o*n[t+1][0]-o*n[t-1][0])/6,e[1]+(o*n[t+1][1]-o*n[t-1][1])/6],r[2]=[n[t+1][0]+(o*n[t][0]-o*n[t+2][0])/6,n[t+1][1]+(o*n[t][1]-o*n[t+2][1])/6],r[3]=[n[t+1][0],n[t+1][1]],i.push(r[1],r[2],r[3])}}return i}function Cc(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function Oc(t,e,n){const i=Cc(e,n);if(0===i)return Cc(t,e);let r=((t[0]-e[0])*(n[0]-e[0])+(t[1]-e[1])*(n[1]-e[1]))/i;return r=Math.max(0,Math.min(1,r)),Cc(t,jc(e,n,r))}function jc(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function Ec(t,e,n,i){const r=i||[];if(function(t,e){const n=t[e+0],i=t[e+1],r=t[e+2],o=t[e+3];let s=3*i[0]-2*n[0]-o[0];s*=s;let a=3*i[1]-2*n[1]-o[1];a*=a;let l=3*r[0]-2*o[0]-n[0];l*=l;let c=3*r[1]-2*o[1]-n[1];return c*=c,s<l&&(s=l),a<c&&(a=c),s+a}(t,e)<n){const n=t[e+0];r.length?Math.sqrt(Cc(r[r.length-1],n))>1&&r.push(n):r.push(n),r.push(t[e+3])}else{const i=.5,o=t[e+0],s=t[e+1],a=t[e+2],l=t[e+3],c=jc(o,s,i),h=jc(s,a,i),u=jc(a,l,i),d=jc(c,h,i),f=jc(h,u,i),p=jc(d,f,i);Ec([o,c,d,p],0,n,r),Ec([p,f,u,l],0,n,r)}return r}function _c(t,e){return Sc(t,0,t.length,e)}function Sc(t,e,n,i,r){const o=r||[],s=t[e],a=t[n-1];let l=0,c=1;for(let i=e+1;i<n-1;++i){const e=Oc(t[i],s,a);e>l&&(l=e,c=i)}return Math.sqrt(l)>i?(Sc(t,e,c+1,i,o),Sc(t,c,n,i,o)):(o.length||o.push(s),o.push(a)),o}function $c(t,e=.15,n){const i=[],r=(t.length-1)/3;for(let n=0;n<r;n++)Ec(t,3*n,e,i);return n&&n>0?Sc(i,0,i.length,n):i}const Ac="none";class zc{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,n){return{shape:t,sets:e||[],options:n||this.defaultOptions}}line(t,e,n,i,r){const o=this._o(r);return this._d("line",[nc(t,e,n,i,o)],o)}rectangle(t,e,n,i,r){const o=this._o(r),s=[],a=function(t,e,n,i,r){return function(t,e){return ic(t,!0,e)}([[t,e],[t+n,e],[t+n,e+i],[t,e+i]],r)}(t,e,n,i,o);if(o.fill){const r=[[t,e],[t+n,e],[t+n,e+i],[t,e+i]];s.push("solid"===o.fillStyle?cc([r],o):hc([r],o))}return o.stroke!==Ac&&s.push(a),this._d("rectangle",s,o)}ellipse(t,e,n,i,r){const o=this._o(r),s=[],a=oc(n,i,o),l=sc(t,e,o,a);if(o.fill)if("solid"===o.fillStyle){const n=sc(t,e,o,a).opset;n.type="fillPath",s.push(n)}else s.push(hc([l.estimatedPoints],o));return o.stroke!==Ac&&s.push(l.opset),this._d("ellipse",s,o)}circle(t,e,n,i){const r=this.ellipse(t,e,n,n,i);return r.shape="circle",r}linearPath(t,e){const n=this._o(e);return this._d("linearPath",[ic(t,!1,n)],n)}arc(t,e,n,i,r,o,s=!1,a){const l=this._o(a),c=[],h=ac(t,e,n,i,r,o,s,!0,l);if(s&&l.fill)if("solid"===l.fillStyle){const s=Object.assign({},l);s.disableMultiStroke=!0;const a=ac(t,e,n,i,r,o,!0,!1,s);a.type="fillPath",c.push(a)}else c.push(function(t,e,n,i,r,o,s){const a=t,l=e;let c=Math.abs(n/2),h=Math.abs(i/2);c+=pc(.01*c,s),h+=pc(.01*h,s);let u=r,d=o;for(;u<0;)u+=2*Math.PI,d+=2*Math.PI;d-u>2*Math.PI&&(u=0,d=2*Math.PI);const f=(d-u)/s.curveStepCount,p=[];for(let t=u;t<=d;t+=f)p.push([a+c*Math.cos(t),l+h*Math.sin(t)]);return p.push([a+c*Math.cos(d),l+h*Math.sin(d)]),p.push([a,l]),hc([p],s)}(t,e,n,i,r,o,l));return l.stroke!==Ac&&c.push(h),this._d("arc",c,l)}curve(t,e){const n=this._o(e),i=[],r=rc(t,n);if(n.fill&&n.fill!==Ac)if("solid"===n.fillStyle){const e=rc(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{const e=[],r=t;if(r.length){const t="number"==typeof r[0][0]?[r]:r;for(const i of t)i.length<3?e.push(...i):3===i.length?e.push(...$c(kc([i[0],i[0],i[1],i[2]]),10,(1+n.roughness)/2)):e.push(...$c(kc(i),10,(1+n.roughness)/2))}e.length&&i.push(hc([e],n))}return n.stroke!==Ac&&i.push(r),this._d("curve",i,n)}polygon(t,e){const n=this._o(e),i=[],r=ic(t,!0,n);return n.fill&&i.push("solid"===n.fillStyle?cc([t],n):hc([t],n)),n.stroke!==Ac&&i.push(r),this._d("polygon",i,n)}path(t,e){const n=this._o(e),i=[];if(!t)return this._d("path",i,n);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const r=n.fill&&"transparent"!==n.fill&&n.fill!==Ac,o=n.stroke!==Ac,s=!!(n.simplification&&n.simplification<1),a=function(t,e,n){const i=Ql(Zl(Kl(t))),r=[];let o=[],s=[0,0],a=[];const l=()=>{a.length>=4&&o.push(...$c(a,1)),a=[]},c=()=>{l(),o.length&&(r.push(o),o=[])};for(const{key:t,data:e}of i)switch(t){case"M":c(),s=[e[0],e[1]],o.push(s);break;case"L":l(),o.push([e[0],e[1]]);break;case"C":if(!a.length){const t=o.length?o[o.length-1]:s;a.push([t[0],t[1]])}a.push([e[0],e[1]]),a.push([e[2],e[3]]),a.push([e[4],e[5]]);break;case"Z":l(),o.push([s[0],s[1]])}if(c(),!n)return r;const h=[];for(const t of r){const e=_c(t,n);e.length&&h.push(e)}return h}(t,0,s?4-4*(n.simplification||1):(1+n.roughness)/2),l=lc(t,n);if(r)if("solid"===n.fillStyle)if(1===a.length){const e=lc(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else i.push(cc(a,n));else i.push(hc(a,n));return o&&(s?a.forEach(t=>{i.push(ic(t,!1,n))}):i.push(l)),this._d("path",i,n)}opsToPath(t,e){let n="";for(const i of t.ops){const t="number"==typeof e&&e>=0?i.data.map(t=>+t.toFixed(e)):i.data;switch(i.op){case"move":n+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":n+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":n+=`L${t[0]} ${t[1]} `}}return n.trim()}toPaths(t){const e=t.sets||[],n=t.options||this.defaultOptions,i=[];for(const t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:Ac};break;case"fillPath":e={d:this.opsToPath(t),stroke:Ac,strokeWidth:0,fill:n.fill||Ac};break;case"fillSketch":e=this.fillSketch(t,n)}e&&i.push(e)}return i}fillSketch(t,e){let n=e.fillWeight;return n<0&&(n=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||Ac,strokeWidth:n,fill:Ac}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}const Pc="http://www.w3.org/2000/svg";class Lc{constructor(t,e){this.svg=t,this.gen=new zc(e)}draw(t){const e=t.sets||[],n=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,r=i.createElementNS(Pc,"g"),o=t.options.fixedDecimalPlaceDigits;for(const s of e){let e=null;switch(s.type){case"path":e=i.createElementNS(Pc,"path"),e.setAttribute("d",this.opsToPath(s,o)),e.setAttribute("stroke",n.stroke),e.setAttribute("stroke-width",n.strokeWidth+""),e.setAttribute("fill","none"),n.strokeLineDash&&e.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":e=i.createElementNS(Pc,"path"),e.setAttribute("d",this.opsToPath(s,o)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",n.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(i,s,n)}e&&r.appendChild(e)}return r}fillSketch(t,e,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2);const r=t.createElementNS(Pc,"path");return r.setAttribute("d",this.opsToPath(e,n.fixedDecimalPlaceDigits)),r.setAttribute("stroke",n.fill||""),r.setAttribute("stroke-width",i+""),r.setAttribute("fill","none"),n.fillLineDash&&r.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&r.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),r}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,n,i,r){const o=this.gen.line(t,e,n,i,r);return this.draw(o)}rectangle(t,e,n,i,r){const o=this.gen.rectangle(t,e,n,i,r);return this.draw(o)}ellipse(t,e,n,i,r){const o=this.gen.ellipse(t,e,n,i,r);return this.draw(o)}circle(t,e,n,i){const r=this.gen.circle(t,e,n,i);return this.draw(r)}linearPath(t,e){const n=this.gen.linearPath(t,e);return this.draw(n)}polygon(t,e){const n=this.gen.polygon(t,e);return this.draw(n)}arc(t,e,n,i,r,o,s=!1,a){const l=this.gen.arc(t,e,n,i,r,o,s,a);return this.draw(l)}curve(t,e){const n=this.gen.curve(t,e);return this.draw(n)}path(t,e){const n=this.gen.path(t,e);return this.draw(n)}}var Ic=(t,e)=>new Lc(t,e);function Tc(t,e,n){if(!t||!e)return void console.warn("Invalid node or svg element");const i=Ic(e,{options:{seed:1e3}}),r=Zc("g");t.hasAttribute("transform")&&r.setAttribute("transform",t.getAttribute("transform")||"");const o=t.cloneNode();Jc(o,{opacity:.5}),o.hasAttribute("transform")&&o.removeAttribute("transform"),o.dataset.elementType="rough-volume",r.appendChild(o);const s=function(t,e,n){const i=e.nodeName.toLowerCase(),r=(t,e)=>{const i=th(t,[...e,"fill","fill-opacity","stroke","stroke-opacity","stroke-width","stroke-dasharray","stroke-linecap","stroke-linejoin","opacity","filter","clip-path","mask"],!0),r={},o=Object.assign({},n),s={};e.forEach(t=>{void 0!==i[t]&&(r[t]=i[t])});const{fill:a,"fill-opacity":l,stroke:c,"stroke-opacity":h,"stroke-width":u,"stroke-dasharray":d,"stroke-linecap":f,"stroke-linejoin":p,opacity:g,filter:m,"clip-path":y,mask:v}=i;if(o.fill=a||"none",o.stroke=c||(a&&"none"!==a?a:"currentColor"),u&&(o.strokeWidth=parseFloat(u)),d&&"none"!==d){const t=d.split(/[\s,]+/).map(t=>parseFloat(t)).filter(t=>!isNaN(t));t.length>0&&(o.strokeLineDash=t)}return l&&(s.fillOpacity=parseFloat(l)),h&&(s.strokeOpacity=parseFloat(h)),g&&(s.opacity=parseFloat(g)),f&&(s.strokeLinecap=f),p&&(s.strokeLinejoin=p),d&&"none"!==d&&(s.strokeDasharray=d),m&&(s.filter=m),y&&(s.clipPath=y),v&&(s.mask=v),[r,o,s]};try{let n=null,o={};switch(i){case"circle":{const[i,s,a]=r(e,["cx","cy","r"]),l=parseFloat(i.cx)||0,c=parseFloat(i.cy)||0,h=parseFloat(i.r)||0;n=t.circle(l,c,2*h,s),o=a;break}case"ellipse":{const[i,s,a]=r(e,["cx","cy","rx","ry"]),l=parseFloat(i.cx)||0,c=parseFloat(i.cy)||0,h=parseFloat(i.rx)||0,u=parseFloat(i.ry)||0;n=t.ellipse(l,c,2*h,2*u,s),o=a;break}case"line":{const[i,s,a]=r(e,["x1","y1","x2","y2"]),l=parseFloat(i.x1)||0,c=parseFloat(i.y1)||0,h=parseFloat(i.x2)||0,u=parseFloat(i.y2)||0;n=t.line(l,c,h,u,s),o=a;break}case"rect":{const[i,s,a]=r(e,["x","y","width","height","rx","ry"]),l=parseFloat(i.x)||0,c=parseFloat(i.y)||0,h=parseFloat(i.width)||0,u=parseFloat(i.height)||0,d=parseFloat(i.rx)||0,f=parseFloat(i.ry)||0;if(d>0||f>0){const e=function(t,e,n,i,r,o){return r=Math.min(r,n/2),o=Math.min(o,i/2),`\n M ${t+r} ${e}\n L ${t+n-r} ${e}\n A ${r} ${o} 0 0 1 ${t+n} ${e+o}\n L ${t+n} ${e+i-o}\n A ${r} ${o} 0 0 1 ${t+n-r} ${e+i}\n L ${t+r} ${e+i}\n A ${r} ${o} 0 0 1 ${t} ${e+i-o}\n L ${t} ${e+o}\n A ${r} ${o} 0 0 1 ${t+r} ${e}\n Z\n `.replace(/\s+/g," ").trim()}(l,c,h,u,d||f,f||d);n=t.path(e,s)}else n=t.rectangle(l,c,h,u,s);o=a;break}case"path":{const[i,s,a]=r(e,["d"]),l=i.d||"";if(!l)return console.warn("Path element has no d attribute"),null;n=t.path(l,s),o=a;break}case"polygon":{const[i,s,a]=r(e,["points"]),l=Rc(i.points||"");if(l.length<3)return console.warn("Polygon needs at least 3 points"),null;n=t.polygon(l,s),o=a;break}case"polyline":{const[i,s,a]=r(e,["points"]),l=Rc(i.points||"");if(l.length<2)return console.warn("Polyline needs at least 2 points"),null;n=t.linearPath(l,s),o=a;break}default:return console.warn(`Unsupported shape type: ${i}`),null}return n?{element:n,svgAttributes:o}:null}catch(t){return console.error(`Error creating rough shape for ${i}:`,t),null}}(i,t,n);if(s){const{element:t,svgAttributes:e}=s;t.dataset.elementType="rough-element",t.style.pointerEvents="none",function(t,e){void 0!==e.opacity&&t.setAttribute("opacity",String(e.opacity));void 0!==e.fillOpacity&&t.setAttribute("fill-opacity",String(e.fillOpacity));void 0!==e.strokeOpacity&&t.setAttribute("stroke-opacity",String(e.strokeOpacity));e.strokeLinecap&&t.setAttribute("stroke-linecap",e.strokeLinecap);e.strokeLinejoin&&t.setAttribute("stroke-linejoin",e.strokeLinejoin);e.strokeDasharray&&t.setAttribute("stroke-dasharray",e.strokeDasharray);e.filter&&t.setAttribute("filter",e.filter);e.clipPath&&t.setAttribute("clip-path",e.clipPath);e.mask&&t.setAttribute("mask",e.mask)}(t,e),r.appendChild(t)}t.id&&(r.id=t.id);Array.from(t.classList).forEach(t=>{r.classList.contains(t)||r.classList.add(t)}),Array.from(t.attributes).forEach(t=>{t.name.startsWith("data-")&&r.setAttribute(t.name,t.value)}),r.childElementCount>0?t.replaceWith(r):t.remove()}function Rc(t){if(!t||"string"!=typeof t)return[];try{const e=t.trim().replace(/,/g," ").replace(/\s+/g," ").split(" ").filter(Boolean),n=[];for(let t=0;t<e.length-1;t+=2){const i=parseFloat(e[t]),r=parseFloat(e[t+1]);isNaN(i)||isNaN(r)?console.warn(`Invalid coordinate pair at index ${t}: "${e[t]}", "${e[t+1]}"`):n.push([i,r])}return e.length%2!=0&&console.warn(`Odd number of coordinates in points attribute, last value ignored: "${e[e.length-1]}"`),n}catch(e){return console.error("Failed to parse polygon points:",t,e),[]}}function Bc(t,e,n){var i;const{themeConfig:r}=n;return Jc(e,Ua(e,Object.assign({},null===(i=r.base)||void 0===i?void 0:i.shape,r.shape))),function(t,e,n){const i=n.themeConfig.stylize;if(!i)return t;const{type:r}=i;if(!r)return t;if("rough"===r)return Tc(t,e,i);if("pattern"===r)return Ll(t,e,n);if("linear-gradient"===r||"radial-gradient"===r){const{fill:n,stroke:r}=th(t,["fill","stroke"]);Ar(n)&&kl(t,e,i,"fill"),Ar(r)&&kl(t,e,i,"stroke")}}(e,t,n),e}const Wc=sa(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()});function Hc(t,e,n={}){if(!e)return null;const i=t;Jc(i,Ua(i,n));const r=function(t,e){const n=Nc(e.dataset.x,0),i=Nc(e.dataset.y,0),r=Nc(e.getAttribute("width")),o=Nc(e.getAttribute("height")),s=function(t){const e=th(t,["font-family","font-size","font-weight","font-style","font-variant","letter-spacing","line-height","fill","stroke","stroke-width"]);return e}(e);Object.assign(s,{x:n,y:i,width:r,height:o,"data-horizontal-align":e.dataset.horizontalAlign||"LEFT","data-vertical-align":e.dataset.verticalAlign||"TOP"});return function(t,e){const n=document.createElement("span");n.setAttribute("xmlns","http://www.w3.org/1999/xhtml");const i=Zc("foreignObject",{overflow:"visible"});return i.appendChild(n),oh(i,{textContent:t,attributes:e}),i}(t,s)}(e,i);for(const t in i.dataset)r.setAttribute(`data-${Wc(t)}`,i.dataset[t]);return r}const Nc=(t,e)=>t?parseFloat(t):e;const Fc=(t,e)=>{t!==e&&(e?t.replaceWith(e):t.remove())};class Dc{constructor(t,e){this.options=t,this.template=e,this.rendered=!1}getOptions(){return this.options}getSVG(){return this.template}render(){const t=this.getSVG();if(this.rendered)return t;!function(t,e){(function(t,e){var n;const{themeConfig:i,data:r}=e;!function(t,e){e&&Object.keys(e).length>0&&eh(t,t=>{Jc(t,Ua(t,e))})}(t,null===(n=i.base)||void 0===n?void 0:n.global);const o=t.querySelectorAll("[data-element-type]");o.forEach(n=>{var o,s,a,l,c,h,u;const d=n.id||"";if(uh(n)){const t=Hc(n,r.title||"",Object.assign({},null===(o=i.base)||void 0===o?void 0:o.text,i.title,null===(s=r.attributes)||void 0===s?void 0:s.title));return Fc(n,t)}if(dh(n)){const t=Hc(n,r.desc||"",Object.assign({},null===(a=i.base)||void 0===a?void 0:a.text,i.desc,null===(l=r.attributes)||void 0===l?void 0:l.desc));return Fc(n,t)}if(gh(n)){const e=bl(t,n,null===(c=r.illus)||void 0===c?void 0:c[d],void 0,null===(h=r.attributes)||void 0===h?void 0:h.illus);return Fc(n,e)}if(ph(n))return Array.from(n.children).forEach(n=>{Bc(t,n,e)});if(fh(n)){const i=Bc(t,n,e);return Fc(n,i)}if(Ch(n))return Ga(t,n);if(null===(u=n.dataset.elementType)||void 0===u?void 0:u.startsWith("item-")){const i=Xh(n.dataset.indexes||"0"),o=n.dataset.elementType.replace("item-",""),s=ts(r,i);if(bh(n)||wh(n)||Mh(n)){const t=function(t,e,n){var i,r,o;const s="text"===e.nodeName?e:null;if(!s)return null;const{data:a,themeConfig:l}=n,c=ts(a,Xh(e.dataset.indexes||"0")),h=String(Jo(c,t,"")),u=null===(i=null==c?void 0:c.attributes)||void 0===i?void 0:i[t],d=Ua(s,Object.assign({},null===(r=l.base)||void 0===r?void 0:r.text,null===(o=l.item)||void 0===o?void 0:o[t],u));return Hc(e,e.textContent||h,d)}(o,n,e);return Fc(n,t)}if(!s)return;if(kh(n)){const e=function(t,e,n){var i;return bl(t,e,n.illus,n,null===(i=n.attributes)||void 0===i?void 0:i.illus)}(t,n,s);return Fc(n,e)}if(vh(n)){const i=vl(t,n,s,e);return Fc(n,i)}}return mh(n)?function(t,e){var n;const i=(null===(n=e.themeConfig.base)||void 0===n?void 0:n.text)||{};Jc(t,i),i["font-family"]&&t.setAttribute("font-family",da(i["font-family"])),t.style.userSelect="none",t.style.pointerEvents="none"}(n,e):yh(n)?void 0:function(t,e){var n;Jc(t,(null===(n=e.themeConfig.base)||void 0===n?void 0:n.shape)||{})}(n,e)}),function(t,e){var n;const{themeConfig:i}=e,{"font-family":r=Aa}=(null===(n=i.base)||void 0===n?void 0:n.text)||{};t.setAttribute("font-family",r)}(t,e)})(t,e),function(t,e){const{width:n,height:i}=e,{style:r={},attributes:o={},id:s,className:a}=e.svg||{};s&&(t.id=s);a&&t.classList.add(a);void 0!==n&&t.setAttribute("width","number"==typeof n?`${n}px`:n);void 0!==i&&t.setAttribute("height","number"==typeof i?`${i}px`:i);Object.assign(t.style,r),Jc(t,o)}(t,e),function(t,e){var n,i;if(!1===(null===(n=e.svg)||void 0===n?void 0:n.background))return;const{themeConfig:{colorBg:r}}=e;if(!r)return;const o=t.parentElement;o&&(o.style.backgroundColor=r||"none");const s=Ph(t,"background");if(t.style.backgroundColor=r,s)s.setAttribute("fill",r);else if(null===(i=t.viewBox)||void 0===i?void 0:i.baseVal){const{x:e,y:n,width:i,height:o}=t.viewBox.baseVal,s=Zc("rect",{x:e,y:n,width:i,height:o,fill:r,"data-element-type":"background"});t.prepend(s)}}(t,e)}(t,this.options),t.style.visibility="hidden";const e=()=>{!function(t,e){const{padding:n=0,viewBox:i}=e;i?t.setAttribute("viewBox",i):void 0!==n&&tu(t,Jh(n))}(this.template,this.options),function(t){if(Gh)return;Pa().forEach(e=>Wa(t,e.fontFamily))}(this.template),t.style.removeProperty("visibility")};if(Gh)e();else{const n=new MutationObserver(i=>{i.forEach(i=>{i.addedNodes.forEach(i=>{(i===t||i.contains(t))&&(e(),n.disconnect())})})});try{n.observe(this.options.container,{childList:!0,subtree:!0})}catch(t){e(),console.error(t)}}return this.rendered=!0,t}}let Vc=1.015;wa({fontFamily:"Alibaba PuHuiTi",aliases:["AlibabaPuHuiTi","AlibabaPuHuiTi-Regular"],fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:1060,descender:-340,lineGap:0},glyphs:{" ":257,"!":361,'"':405,"#":600,"%":821,"&":640,"'":253,"(":359,")":359,"*":430,",":302,"-":440,".":302,"/":500,":":378,";":378,"?":431,"@":860,B:620,C:599,D:699,F:527,G:685,H:708,J:271,K:614,L:507,M:830,N:737,P:597,R:614,S:566,T:528,V:617,W:898,X:624,Y:594,Z:626,"[":294,"\\":510,"]":294,_:500,"`":346,b:635,c:497,d:635,f:349,g:636,k:518,l:286,m:921,p:635,q:636,r:379,s:479,t:337,v:526,w:828,x:516,y:527,z:506,"{":299,"|":183,"}":299," ":257,"¡":357,"¦":183,"§":479,"¨":346,"©":806,ª:483,"«":511,"­":440,"®":404,"¯":346,"°":363,"´":346,"¶":593,"·":357,"¸":346,º:445,"»":511,"¼":902,"½":914,"¾":902,"¿":431,Æ:889,Ç:599,Ð:719,Ñ:737,Ý:594,Þ:597,ß:610,æ:926,ç:497,ý:527,þ:635,ÿ:527,Ć:599,ć:497,Ĉ:599,ĉ:497,Ċ:599,ċ:497,Č:599,č:497,Ď:699,ď:640,Đ:719,đ:635,Ĝ:685,ĝ:636,Ğ:685,ğ:636,Ġ:685,ġ:636,Ģ:685,ģ:636,Ĥ:708,Ħ:708,IJ:545,ij:536,Ĵ:271,Ķ:614,ķ:518,ĸ:518,Ĺ:507,ĺ:286,Ļ:507,ļ:286,Ľ:507,ľ:290,Ŀ:507,ŀ:291,Ł:507,ł:286,Ń:737,Ņ:737,Ň:737,ʼn:669,Ŋ:737,Œ:987,œ:917,Ŕ:614,ŕ:379,Ŗ:614,ŗ:379,Ř:614,ř:379,Ś:566,ś:479,Ŝ:566,ŝ:479,Ş:566,ş:479,Š:566,š:479,Ţ:528,ţ:337,Ť:528,ť:340,Ŧ:528,ŧ:337,Ŵ:898,ŵ:828,Ŷ:594,ŷ:527,Ÿ:594,Ź:626,ź:506,Ż:626,ż:506,Ž:626,ž:506,ſ:310,Ə:719,ǎ:608,ǐ:265,ǒ:614,ǔ:609,ǖ:609,ǘ:609,ǚ:609,ǜ:609,Ǽ:889,ǽ:926,Ș:566,ș:479,Ț:528,ț:337,ʹ:255,"͵":255,";":378,"΄":346,"΅":346,Ά:670,"·":357,Έ:628,Ή:779,Ί:346,Ό:765,Ύ:726,Ώ:765,ΐ:312,Β:620,Γ:507,Ζ:626,Η:708,Κ:614,Λ:617,Μ:830,Ν:737,Π:708,Ρ:597,Σ:596,Τ:528,Υ:594,Φ:831,Χ:624,Ψ:804,Ϋ:594,έ:509,ή:643,ί:312,ΰ:593,β:610,γ:526,ε:509,ζ:465,η:643,θ:638,ι:312,κ:518,λ:514,ν:526,ξ:465,π:616,ρ:619,ς:497,σ:639,τ:437,υ:593,φ:774,χ:509,ψ:745,ω:782,ϊ:312,ϋ:593,ύ:593,ώ:782,"‐":440,"‑":440,"–":495,"—":684,"―":684,"‗":500,"‘":270,"’":270,"‚":270,"‛":270,"“":784,"”":784,"„":468,"†":500,"‡":500,"•":308,"…":1085,"‰":1174,"′":256,"″":472,"‴":689,"‵":256,"‶":472,"‷":689,"‹":312,"›":312,"‼":589,"‽":433,"‾":500,"⁄":120,"⁺":407,"⁻":407,"⁼":407,"⁽":225,"⁾":225,ⁿ:486,"₊":407,"₋":407,"₌":407,"₍":225,"₎":225,ₙ:486,"₡":599,"₣":527,"₤":600,"₥":921,"₦":625,"₨":1093,"₩":769,"₪":754,"₫":635,"₭":614,"₮":528,"₯":1288,"₰":950,"₲":685,"₴":576,"₵":599,"₶":576,"₷":700,"₸":528,"₻":750,"₼":683,"₾":577,"₿":620,"℃":915,"℅":825,"℉":868,ℓ:385,"№":1176,"℗":806,"℡":1022,"™":903,℮:903,"⅛":930,"⅜":931,"⅝":931,"⅞":871,Ⅶ:1166,"∂":587,"∈":663,"∏":708,"∑":596,"√":604,"∞":679,"∧":617,"∫":531,"∮":654,"≈":600,"≒":662,"◊":600," ":0,"〞":472},glyphsByWidth:{268:"ijìíîïĩīĭįıĵȷ",274:"IÌÍÎÏĨĪĬĮİΙΪ",406:"²³¹⁰⁴⁵⁶⁷⁸⁹₀₁₂₃₄₅₆₇₈₉",552:"+<=>^~¬±×÷−∕∙≠≤≥≦≧≮≯",556:"EÈÉÊËĒĔĖĘĚΕΞ",575:"$0123456789¢£¤¥ƒ₢₧€₱₹₺₽",578:"eèéêëēĕėęě",612:"aàáâãäåāăąǻ",613:"uµùúûüũūŭůűųάαμ∨",618:"hnoðñòóôõöøĥħńņňŋōŏőǿδοό",667:"AÀÁÂÃÄÅĀĂĄǺΑΔ₳∆",701:"UÙÚÛÜŨŪŬŮŰŲ",743:"OQÒÓÔÕÖØŌŎŐǾΘΟΩΩ",1e3:"─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▓▔▕■□▲△▼▽◆◇○◎●◢◣◤◥★☆☉♀♂〾"},defaultWidth:984,kerning:{'""':-56,"\"'":-57,'",':-179,'".':-179,"'\"":-56,"''":-57,"',":-179,"'.":-179,"(j":60,',"':-160,",'":-160,",1":-140,",7":-41,",9":-39,'."':-160,".'":-160,".1":-140,".7":-41,".9":-39,"//":-120,"1,":-99,"1.":-99,"1:":-99,"1;":-99,"7,":-160,"7.":-160,"7:":-99,"7;":-99,":1":-79,":7":-59,";1":-79,";7":-59,'A"':-100,"A'":-100,AC:-20,AG:-20,AO:-20,AQ:-20,AT:-80,AU:-10,AV:-70,AW:-39,AY:-81,Af:-20,Al:-10,At:-20,Av:-20,Ay:-20,BC:-10,BG:-10,BO:-10,BQ:-10,BT:-40,BV:-20,BX:-20,BY:-21,"D,":-59,"D.":-59,DA:-20,DT:-36,DV:-30,DW:-19,DX:-20,DY:-40,DZ:-20,Da:-39,Ej:19,"F,":-159,"F.":-159,FA:-40,Fa:-59,Fh:1,Fk:1,GV:-11,GY:-21,JJ:7,KA:-19,KC:-20,KG:-20,KO:-20,KQ:-20,KT:-19,KU:-39,KV:-39,KW:-39,KY:-40,Kc:-39,Kd:-39,Ke:-39,Kg:-39,Kl:-39,Ko:-39,Kq:-39,Ks:-19,Kt:-10,Ku:-40,Kv:-60,Kw:-40,Ky:-60,'L"':-99,"L'":-99,LA:20,LC:-59,LG:-59,LO:-59,LQ:-59,LT:-79,LU:-19,LV:-79,LW:-39,LY:-100,Lv:-41,Lw:-21,Ly:-41,"O,":-59,"O.":-59,OA:-20,OT:-36,OV:-30,OW:-19,OX:-20,OY:-40,OZ:-20,Oa:-39,"P,":-199,"P.":-199,PA:-60,PT:-29,PV:-10,PW:-10,PX:-50,PY:-20,PZ:-39,Pa:-60,"Q,":-59,"Q.":-59,QA:-20,QJ:7,QT:-36,QV:-30,QW:-19,QX:-20,QY:-40,QZ:-20,Qa:-39,RC:-15,RG:-15,RO:-15,RQ:-15,RT:-40,RU:-10,RV:-21,RW:-10,RX:-29,RY:-41,Rc:-20,Rd:-20,Re:-20,Rg:-20,Ro:-20,Rq:-20,Rt:-20,Ru:-10,Rv:-10,Rx:20,Ry:-10,"S,":-20,"S.":-20,SS:-1,ST:-1,SV:-21,SW:-10,SY:-21,St:-1,Sv:-20,Sw:-10,Sx:-1,Sy:-20,'T"':2,"T'":2,"T,":-154,"T.":-154,TA:-80,TC:-20,TG:-20,TO:-20,TQ:-20,TS:-1,Ta:-80,Tc:-59,Td:-59,Te:-59,Tg:-59,Ti:-20,Tj:-19,Tm:-59,Tn:-59,To:-59,Tp:-58,Tq:-59,Tr:-59,Ts:-60,Tt:20,Tu:-79,Tv:-39,Tw:-19,Tx:-39,Ty:-39,Tz:-59,UA:-10,UX:-19,Ux:-1,"V,":-140,"V.":-140,"V:":-41,"V;":-41,VA:-70,VC:-30,VG:-30,VO:-30,VQ:-30,VS:-10,Va:-41,Vc:-21,Vd:-21,Ve:-21,Vg:-21,Vh:1,Vk:1,Vo:-21,Vq:-21,Vs:-21,Vv:-1,Vy:-1,"W,":-79,"W.":-79,"W:":-39,"W;":-39,WA:-40,WC:-19,WG:-19,WO:-19,WQ:-19,Wa:-40,Wc:-20,Wd:-20,We:-20,Wg:-20,Wo:-20,Wq:-20,Ws:-20,XA:-19,XC:-20,XG:-20,XO:-20,XQ:-20,XT:-19,XU:-39,XV:-39,XW:-39,XY:-40,Xc:-39,Xd:-39,Xe:-39,Xg:-39,Xl:-39,Xo:-39,Xq:-39,Xs:-19,Xt:-10,Xu:-40,Xv:-60,Xw:-40,Xy:-60,'Y"':1,"Y'":1,"Y,":-141,"Y.":-141,"Y:":-60,"Y;":-60,YA:-81,YC:-40,YG:-40,YO:-40,YQ:-40,YS:-1,Ya:-101,Yc:-60,Yd:-60,Ye:-60,Yf:-1,Yg:-60,Yh:1,Yi:-19,Yk:1,Ym:-41,Yn:-41,Yo:-60,Yp:-40,Yq:-60,Yr:-41,Ys:-61,Yt:-1,Yu:-40,Yv:-40,Yx:-41,Yy:-40,Yz:-41,ZC:-20,ZG:-20,ZO:-20,ZQ:-20,"[j":80,aT:-60,aV:-21,aY:-61,av:-10,aw:-10,ay:-10,"b,":-40,"b.":-40,bT:-59,bV:-21,bW:-20,bX:-39,bY:-60,bv:-10,bx:-20,by:-10,"e,":-20,"e.":-20,eT:-59,eY:-40,ej:20,'f"':3,"f'":3,"f)":1,"f*":61,"f,":-1,"f.":-1,"f?":40,fT:40,fV:21,fW:21,fX:21,fY:1,"f]":21,fa:-29,fc:-19,fd:-19,fe:-19,ff:1,fg:-39,fh:-19,fi:-19,fj:-19,fk:-19,fl:-19,fo:-19,fq:-19,fs:-19,ft:1,"f}":3,hT:-58,hY:-39,hv:-10,hy:-10,'i"':2,"i'":2,"i)":2,"i?":3,iT:-20,"i]":41,"i}":22,jT:-20,kT:-39,kU:-1,kW:-20,ka:-20,kc:-20,kd:-20,ke:-20,kg:-20,kl:-20,ko:-20,kq:-20,ku:-10,lf:-20,lv:-19,lw:-10,ly:-19,mT:-58,mY:-39,mv:-10,my:-10,nT:-58,nY:-39,nv:-10,ny:-10,"o,":-40,"o.":-40,oT:-59,oV:-21,oW:-20,oX:-39,oY:-60,ov:-10,ox:-20,oy:-10,"p,":-40,"p.":-40,pT:-59,pV:-21,pW:-20,pX:-39,pY:-60,pv:-10,px:-20,py:-10,qT:-19,qY:-19,qj:20,'r"':2,"r'":2,"r,":-90,"r.":-90,ra:-49,rc:-19,rd:-19,re:-19,rf:1,ro:-19,rq:-19,rt:20,sT:-59,sV:-21,sW:-20,sX:-19,sY:-60,sv:-19,sx:-10,sy:-19,tf:1,uT:-40,uY:-19,"v,":-90,"v.":-90,vT:-39,vX:-39,va:-35,vc:-10,vd:-10,ve:-10,vo:-10,vq:-10,"w,":-50,"w.":-50,wT:-19,wX:-39,wa:-30,xT:-39,xU:-1,xW:-20,xa:-20,xc:-20,xd:-20,xe:-20,xg:-20,xl:-20,xo:-20,xq:-20,xu:-10,"y,":-90,"y.":-90,yT:-39,yX:-39,ya:-35,yc:-10,yd:-10,ye:-10,yo:-10,yq:-10,zT:-59,"{h":2,"{j":79,"{k":2}});const Uc={"851tegakizatsu":{fontFamily:"851tegakizatsu",fontWeight:400,fontStyle:"normal",unitsPerEm:1024,metrics:{ascender:880,descender:-144,lineGap:0},glyphs:{" ":341," ":256," ":171," ":10,"​":0,"‿":0,"⁀":0,"⁄":0,"\t":512,"\n":512,"\r":512},glyphsByWidth:{512:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦©ª­®°²³¹º¼½¾¿ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåçèéêëìíîïðñòóôõöøùúûüýþÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıĴĵĶķĸĹĺĻļĽľĿŀŁłŃńŅņŇňʼnŊŋŌōŎŏŐőŔŕŖŗŘřŚśŜŝŞşŠšŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵŶŷŸŹźŻżŽžſƀƁƂƃƄƅƆƇƈƉƊƋƌƍƎƏƐƑƒƓƔƕƖƗƘƙƚƛƜƝƞƟƠơƢƣƤƥƦƧƨƩƪƫƬƭƮƯưƱƲƳƴƵƶƷƸƹƺƻƼƽƾƿǀǁǂǃǍǎǏǐǑǒǓǔǕǖǗǘǙǚǛǜǝǞǟǠǡǤǥǦǧǨǩǪǫǬǭǮǯǰǴǵǶǷǸǹǺǻǾǿȀȁȂȃȄȅȆȇȈȉȊȋȌȍȎȏȐȑȒȓȔȕȖȗȘșȚțȜȝȞȟȠȡȢȣȤȥȦȧȨȩȪȫȬȭȮȯȰȱȲȳȴȵȶȷȸȹȺȻȼȽȾȿɀɁɂɃɄɅɆɇɈɉɊɋɌɍɎɏͰͱͲͳʹ͵Ͷͷ͸͹ͺͻͼͽ;Ϳ΀΁΂΃΄΅Ά·ΈΉΊ΋Ό΍ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ΢ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώϏϐϑϒϓϔϕϖϗϘϙϚϛϜϝϞϟϠϡϢϣϤϥϦϧϨϩϪϫϬϭϮϯϰϱϲϳϴϵ϶ϷϸϹϺϻϼϽϾϿ ‌‍‎‏–‗•\u2029‪‫‬‭‮‵‹›‽‾⁅⁆⁡⁢⁣⁤⁰ⁱ⁲⁳⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾ⁿ₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎₏ₐₑₒₓₔₕₖₗₘₙₚₛₜ₝₞₟₠₡₢₣₤₥₦₧₨₩₪₫€₭₮₰₱₲₳₴₵₶₷₸₹₺₼₽₾₿⃀⃁⃂⃃⃄⃅⃆⃇⃈⃉⃊⃋⃌⃍⃎⃏ℏ℩KÅℵℶℷℸ⅐⅑⅒⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞⅟↉↊↋↌↍↎↏↔↕↚↛↜↝↞↟↠↡↢↣↤↥↦↧↨↩↪↫↬↭↮↯↰↱↲↳↴↵↶↷↸↹↺↻↼↽↾↿⇀⇁⇂⇃⇄⇅⇆⇇⇈⇉⇊⇋⇌⇜⇝⇞⇟⇠⇡⇢⇣⇤⇥⇪⇫⇬⇭⇮⇯⇰⇱⇲⇳⇴⇵⇶⇷⇸⇹⇺⇻⇼⇽⇾⇿∁∅∎−∓∔∕∖∗∘∙√∛∜∣∤∦∱∲∳∶∷∸∹∺∻∼∿≀≁≂≃≄≅≆≇≈≉≊≋≌≍≎≏≐≑≓≔≕≖≗≘≙≚≛≜≝≞≟≢≣≤≥≨≩≬≭≮≯≰≱≲≳≴≵≶≷≸≹≺≻≼≽≾≿⊀⊁⊄⊅⊈⊉⊊⊋⊌⊍⊎⊏⊐⊑⊒⊓⊔⊦⊧⊨⊩⊪⊫⊬⊭⊮⊯⊲⊳⊴⊵⊹⊺⊻⊼⊽⊾⋀⋁⋂⋃⋄⋅⋆⋇⋈⋉⋊⋋⋌⋍⋎⋏⋐⋑⋒⋓⋔⋕⋖⋗⋚⋛⋜⋝⋞⋟⋠⋡⋢⋣⋤⋥⋦⋧⋨⋩⋪⋫⋬⋭⋮⌀⌁⌂⌃⌄⌅⌆⌈⌉⌊⌋⌌⌍⌎⌏⌜⌝⌞⌟⌠⌡⌢⌣⌯⌰⍳⍴⍵⍶⍷⍸⍹⍺⎛⎜⎝⎞⎟⎠⎡⎢⎣⎤⎥⎦⎧⎨⎩⎪⎫⎬⎭⎮⎰⎱⎷⎸⎹⎺⎻⎼⎽⏎⏐⏑⏒⏓⏨⏻⏼⏽⏾⏿╌╍╎╏═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╱╲╳╴╵╶╷╸╹╺╻╼╽╾╿♩♪♭♮♯ㆻㆼㆽㆾㆿ힤힥힦힧힨힩힪힫힬힭힮힯＀。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᅠᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑᄒ﾿￀￁ᅡᅢᅣᅤᅥᅦ￈￉ᅧᅨᅩᅪᅫᅬ￐￑ᅭᅮᅯᅰᅱᅲ￘￙ᅳᅴᅵ￝￞￟│←↑→↓■○￯"},defaultWidth:1024},Arial:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal",unitsPerEm:2048,metrics:{ascender:2189,descender:-555,lineGap:0},glyphs:{'"':727,"%":1821,"'":391,"*":797,"@":2079,M:1706,W:1933,"^":961,m:1706,"{":684,"|":532,"}":684,"¦":532,"©":1509,ª:758,"®":1509,"°":819,"¶":1100,º:748,æ:1821,ď:1284,IJ:1538,ij:909,ĸ:895,ŀ:651,ʼn:1282,Ŋ:1481,œ:1933,ť:831,Ŵ:1933,Ɓ:1516,Ƃ:1341,Ƈ:1569,ƈ:1186,Ɗ:1616,Ƌ:1341,ƍ:1141,Ə:1493,Ɛ:1237,Ɠ:1620,Ɣ:1329,ƕ:1651,Ɩ:502,Ɨ:659,ƚ:659,Ɯ:1706,Ơ:1589,Ƣ:2087,ƣ:1602,Ƥ:1505,Ʃ:1233,ƪ:750,Ƭ:1169,Ư:1589,ư:1270,Ʊ:1532,Ƴ:1540,ƴ:1260,Ʒ:1286,Ƹ:1286,ƹ:1077,ƺ:983,ƽ:1077,ǁ:950,ǂ:971,DŽ:2730,Dž:2503,dž:2163,LJ:2109,lj:909,NJ:2503,Nj:1933,ǣ:1821,Ǯ:1094,ǯ:1094,DZ:2730,Dz:2503,dz:2163,ǽ:1821,ʹ:631,"͵":631,Έ:1442,Ή:1554,Ί:645,Ύ:1528,Ώ:1552,Γ:1126,Δ:1397,Μ:1706,Ξ:1331,Σ:1233,Φ:1655,Ψ:1647,Ω:1552,ά:1180,έ:889,ΰ:1128,α:1180,β:1153,δ:1141,ε:889,ζ:901,κ:1020,μ:1133,ξ:885,ρ:1169,ς:967,σ:1268,τ:782,υ:1128,φ:1329,χ:1069,ψ:1493,ω:1569,ϋ:1128,ύ:1128,ώ:1569,ϐ:1153,ϑ:1262,ϒ:1292,ϓ:1487,ϔ:1292,ϕ:1319,ϖ:1599,Ϝ:1184,Ϟ:1167,Ϡ:1417,Ϣ:1802,ϣ:1706,Ϥ:1401,ϥ:1143,Ϧ:1393,ϧ:1083,Ϩ:1141,ϩ:1034,Ϫ:1276,ϫ:1235,Ϭ:1249,Ϯ:1163,ϯ:889,ϱ:1169," ":512," ":342," ":205," ":102,"​":0,"‌":0,"‍":0,"―":1155,"‖":877,"•":717,"‣":717,"\u2028":0,"\u2029":0,"‱":2724,"″":762,"‴":1069,"‵":422,"‶":729,"‷":1036,"‸":639,"‼":965,"‿":1935,"⁀":1935,"⁁":639,"⁂":1679,"⁄":342,"⁽":430,"⁾":430,"₍":430,"₎":430,"₥":1706,"₨":2097,"₩":1925,"₪":1606,"℀":1821,"℁":1821,"℃":2093,"℅":1821,"℆":1821,ℇ:1026,"℉":1886,ℊ:1044,ℋ:1855,ℌ:2023,ℐ:1409,ℑ:1133,ℒ:1450,ℓ:596,"№":2198,"℗":1509,℘:1516,ℛ:1898,ℜ:1628,"℡":2404,"℥":1110,Ω:1573,"℧":1573,ℨ:1430,"℩":657,ℬ:1898,ℭ:1323,ℯ:788,ℰ:1260,ℱ:1409,ℳ:2284,ℴ:831,ℵ:1409,ℶ:1409,ℷ:705,ℸ:1409,Ⅱ:1137,Ⅲ:1704,Ⅳ:1911,Ⅵ:1913,Ⅶ:2111,Ⅷ:2597,Ⅸ:1933,Ⅺ:1933,Ⅻ:2120,Ⅿ:1706,ⅱ:909,ⅲ:1364,ⅳ:1434,ⅵ:1434,ⅶ:1888,ⅷ:2343,ⅸ:1458,ⅺ:1458,ⅻ:1913,ⅿ:1706,ↀ:2013,ↂ:2013,"↭":1665,"↮":1665,"⇎":1946,"⇔":1767,"⇜":1665,"⇝":1665,"∂":1012,"∆":1253,"∇":1253,"∏":1686,"∐":1686,"∕":342,"∗":797,"∘":819,"∙":819,"∣":532,"∤":909,"∥":856,"∦":1233,"∫":1036,"∬":1651,"∭":2265,"∮":1036,"∯":1651,"∰":2265,"∱":1036,"∲":1036,"∳":1036,"∶":864,"≀":864,"≔":1509,"≕":1509,"≪":1985,"≫":1985,"⊑":1378,"⊒":1378,"⊦":817,"⊧":817,"⊫":1376,"⊯":1376,"⋅":512,"⋇":1329,"⋈":1290,"⋉":1290,"⋊":1290,"⋋":1290,"⋌":1290,"⋐":1368,"⋑":1368,"⋒":1368,"⋓":1368,"⋕":1233,"⋘":2773,"⋙":2773,"⋢":1378,"⋣":1378,"⋤":1378,"⋥":1378,"⌈":920,"⌉":920,"⌊":920,"⌋":920,"⌗":1331,"⌘":1597,"⌠":1036,"⌡":1036,"〈":674,"〉":674,"★":1671,"☆":1686,"☎":1473,"☏":1473,"☐":1503,"☑":1503,"☒":1503,"☓":1561,"☚":1966,"☛":1966,"☜":1923,"☝":1923,"☞":1923,"☟":1923,"☤":1188,"☥":942,"☦":909,"☧":1331,"☨":909,"☩":1573,"☫":1741,"☬":1382,"☰":1843,"☱":1843,"☲":1843,"☳":1843,"☴":1843,"☵":1843,"☶":1843,"☷":1843,"☿":1516,"♀":1516,"♁":1516,"♂":1516,"♃":1337,"♄":1004,"♅":1294,"♆":1597,"♇":1147,"♈":1716,"♉":1597,"♊":1503,"♋":1817,"♌":1597,"♍":2212,"♎":1835,"♏":2212,"♐":1647,"♑":1778,"♒":1888,"♓":1425,"♡":1503,"♢":1380,"♣":1647,"♥":1503,"♦":1380,"♧":1647,"♨":1761,"♩":866,"♪":1212,"♭":899,"♮":899,"♯":899,"✁":1995,"✂":1968,"✃":1995,"✄":2007,"✆":1616,"✇":1618,"✈":1620,"✉":1413,"✍":1751,"✎":1866,"✏":1911,"✐":1866,"✑":1935,"✒":1995,"✓":1546,"✔":1733,"✕":1561,"✖":1559,"✗":1169,"✘":1386,"✙":1563,"✚":1556,"✛":1554,"✜":1544,"✝":1012,"✞":1130,"✟":1100,"✠":1182,"✡":1417,"✢":1610,"✥":1618,"✦":1624,"✧":1626,"✩":1686,"✪":1616,"✫":1722,"✬":1686,"✭":1706,"✮":1671,"✯":1702,"✰":1890,"✱":1524,"✲":1481,"✳":1534,"✴":1618,"✵":1622,"✶":1423,"✷":1589,"✸":1573,"✹":1622,"✺":1554,"✻":1448,"✼":1450,"✽":1397,"✾":1436,"✿":1692,"❀":1669,"❁":1616,"❂":1616,"❃":1448,"❄":1407,"❅":1425,"❆":1411,"❇":1610,"❈":1612,"❊":1620,"❋":1608,"❍":1788,"❏":1561,"❐":1561,"❑":1554,"❒":1554,"❖":1606,"❘":283,"❙":567,"❚":850,"❛":803,"❜":803,"❝":1368,"❞":1368,"❡":1499,"❢":1114,"❣":1114,"❤":1864,"❦":1556,"❧":1556,"➔":1831,"➘":1532,"➙":1892,"➚":1532,"➛":1880,"➜":1898,"➝":1901,"➞":1901,"➠":1788,"➡":1696,"➢":1892,"➣":1892,"➤":1878,"➥":1905,"➦":1907,"➧":948,"➨":1808,"➩":1712,"➪":1712,"➫":1776,"➬":1776,"➭":1425,"➮":1425,"➯":1790,"➱":1790,"➲":1556,"➳":1937,"➴":1579,"➵":1772,"➶":1579,"➷":1819,"➸":1980,"➹":1819,"➺":1702,"➻":1788,"➼":1898,"➽":1987,"➾":1880,匭:2036,憁:2050,鐧:2044},glyphsByWidth:{455:"ijlĩīĭįĵĺļľłſǰΐίιϊϳ‘’‚‛′ⅰⅼ",569:" \t\n\r!,./:;I[\\]ft ·ÌÍÎÏìíîïĨĪĬĮİıţŧƒƫƭǀǃǏǐȈȉȊȋͺ;΄΅·ΙΪ ․‧⁅⁆Ⅰ∖⋮",682:"()-`r¡¨­²³´¸¹ŕŗřȑȓ ‐‑“”„‟‹›⁃⁰⁴⁵⁶⁷⁸⁹⁺⁻⁼ⁿ₀₁₂₃₄₅₆₇₈₉₊₋₌",1024:"J_cksvxyz¯çýÿćĉċčĴķśŝşšŷźżžƙƛƨƶǩγλνϲ  –‗‾ℎℏⅴⅹⅽ☇☈。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᅠᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ│←↑→↓■○",1124:"∈∉∊∋∌∍∎∝∞⊢⊣⊤⊥⊨⊩⊪⊬⊭⊮⊰⊱⊲⊳⊴⊵⊹⊺⋄⋆⌀⌂⌃⌄⌅⌆⌇⌌⌍⌎⌏⌐⌑⌔⌕⌖⌙⌚⌛⌜⌝⌞⌟⌬⌭⌮⌯⌰⌱⌲⌳⌴⌵✌",1139:"#$0123456789?Labdeghnopqu¢£¤¥§«µ»àáâãäåèéêëðñòóôõöùúûüþāăąđēĕėęěĝğġģĥħĹĻĽĿŁńņňŋōŏőũūŭůűųƀƃƄƅƌƞơƥƻƼƾƿǎǒǔǖǘǚǜǝǟǡǥǧǫǭǵǻȁȃȅȇȍȏȕȗήηθοό ‒†‡‥‽₠₡₢₣₤₦₧₫€ℙ℮Ⅼⅾ",1149:"∧∨∩∪∴∵∷⊌⊍⊎⊓⊔⋀⋁⋂⋃⋎⋏⋔",1196:"+<=>~¬±×÷−∓∔∟∠∡∢∸∹∺∻∼∽∾∿≁≂≃≄≅≆≇≈≉≊≋≌≍≎≏≐≑≒≓≖≗≘≙≚≛≜≝≞≟≠≡≢≣≤≥≦≧≨≩≬≭≮≯≰≱≲≳≴≵≶≷≸≹≺≻≼≽≾≿⊀⊁⊻⊼⊽⊾⊿⋍⋖⋗⋚⋛⋜⋝⋞⋟⋠⋡⋦⋧⋨⋩⋪⋫⋬⋭",1229:"ϰ∀∁∃∄√∛∜⌶⌷⌸⌹⌺⌻⌼⌽⌾⌿⍀⍁⍂⍃⍄⍅⍆⍇⍈⍉⍊⍋⍌⍍⍎⍏⍐⍑⍒⍓⍔⍕⍖⍗⍘⍙⍚⍛⍜⍝⍞⍟⍠⍡⍢⍣⍤⍥⍦⍧⍨⍩⍪⍫⍬⍭⍮⍯⍰⍱⍲⍳⍴⍵⍶⍷⍸⍹⍺⎕─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋╌╍╎╏═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳╴╵╶╷╸╹╺╻╼╽╾╿▀▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▐░▒▓▔▕■□▢▣▤▥▦▧▨▩▪▫▬▭▮▯▰▱▲△▴▵▶▷▸▹►▻▼▽▾▿◀◁◂◃◄◅◆◇◈◉◊○◌◍◎●◐◑◒◓◔◕◖◗◘◙◚◛◜◝◞◟◠◡◢◣◤◥◦◧◨◩◪◫◬◭◮◯☡",1251:"FTZ¿ßøŢŤŦŹŻŽƑƮƵǿΖΤϭ℄ℤℲ",1366:"&ABEKPSVXYÀÁÂÃÄÅÈÉÊËÝÞĀĂĄĒĔĖĘĚĶŚŜŞŠŶŸƎƘƧƲǍǞǠǨǺȀȂȄȆΆΑΒΕΚΛΡΥΧΫℂ℈ℝ℞℟KÅⅤⅩ❥",1389:"π⊂⊃⊄⊅⊆⊇⊈⊉⊊⊋⊏⊐",1460:"←↑→↓↔↕↖↗↘↙↚↛↜↝↞↟↠↡↢↣↤↥↦↧↨↩↪↫↬↯↰↱↲↳↴↵↶↷↸↹↼↽↾↿⇀⇁⇂⇃⇄⇅⇆⇇⇈⇉⇊⇋⇌⇍⇏⇐⇑⇒⇓⇕⇖⇗⇘⇙⇚⇛⇞⇟⇠⇡⇢⇣⇤⇥⇦⇧⇨⇩⇪∑⊶⊷⊸⌢⌣❉",1479:"CDHNRUwÇÐÑÙÚÛÜĆĈĊČĎĐĤĦŃŅŇŔŖŘŨŪŬŮŰŲŵƆƉƝƦǓǕǗǙǛȐȒȔȖΗΝΠϚℍℕℚ℣ⅭⅮↁ♠♤",1536:"☀☂☃☠☢☣☮☯☸☹☺☻☼☽☾♫♬",1593:"GOQÒÓÔÕÖØĜĞĠĢŌŎŐƟLjnjǑǤǦǪǬǴǾȌȎΌΘΟ℔",1614:"✣✤❶❷❸❹❺❻❼❽❾❿➀➁➂➃➄➅➆➇➈➉➊➋➌➍➎➏➐➑➒➓",1638:"↺↻∅⊕⊖⊗⊘⊙⊚⊛⊜⊝⊞⊟⊠⊡⌒⌓☉☊☋☌☍☪☭",1708:"¼½¾⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞⅟➟"},defaultWidth:2048},"LXGW WenKai":{fontFamily:"LXGW WenKai",fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:928,descender:-256,lineGap:0},glyphs:{"%":800,"&":700,"@":784,B:650,D:728,F:582,H:700,J:492,K:630,L:547,M:855,P:618,R:635,S:617,V:620,W:880,b:573,f:370,j:301,m:816,p:572,q:576,r:430,t:360,v:490,w:730,z:490,"¢":556,"£":713,"§":675,"©":780,ª:320,"®":780,"°":320,º:320,Æ:900,Ð:728,Þ:618,ß:610,æ:900,ð:622,þ:572,Ď:728,Đ:728,đ:583,Ĥ:700,Ħ:700,IJ:492,Ĵ:492,ĵ:301,Ķ:630,ĸ:445,Ĺ:547,Ļ:547,Ľ:547,ľ:302,Ŀ:547,ŀ:300,Ł:547,Œ:945,œ:948,Ŕ:635,ŕ:430,Ŗ:635,ŗ:430,Ř:635,ř:430,Ś:617,Ŝ:617,Ş:617,Š:617,ţ:360,ť:360,ŧ:360,Ŵ:880,ŵ:730,ź:490,ż:490,ž:490,ſ:370,ƀ:573,Ɓ:677,Ƃ:629,ƃ:573,Ƅ:604,ƅ:523,Ɔ:725,Ɖ:728,Ɗ:766,Ƌ:629,ƍ:556,Ɛ:627,Ƒ:582,Ɣ:620,ƕ:883,Ɩ:314,Ƙ:669,ƛ:534,Ɯ:816,Ƣ:869,ƣ:683,ƥ:572,Ʀ:635,Ƨ:617,Ʃ:557,ƪ:430,ƫ:360,ƭ:360,Ʊ:762,ƶ:490,Ʒ:552,Ƹ:552,ƹ:540,ƺ:491,ƽ:512,ƾ:540,ƿ:572,ǀ:351,ǁ:351,DŽ:1310,Dž:1200,dž:1037,LJ:983,Lj:776,lj:541,NJ:1203,Nj:1004,nj:855,Ǣ:900,ǣ:900,Ǩ:630,ǩ:542,Ǯ:552,ǯ:540,ǰ:301,DZ:1310,Dz:1200,dz:1037,Ƕ:1004,Ƿ:556,Ǽ:900,ǽ:900,Ȑ:635,ȑ:430,Ȓ:635,ȓ:430,Ș:617,ț:360,ȝ:456,Ȟ:700,Ƞ:675,ȡ:625,Ȣ:627,ȣ:586,ȥ:490,ȴ:318,ȵ:637,ȶ:360,ȷ:301,ȸ:880,ȹ:880,Ƚ:547,ɀ:490,Ɂ:570,ɂ:511,Ƀ:650,Ʌ:620,Ɉ:492,ɉ:301,Ɋ:788,ɋ:576,Ɍ:635,ɍ:430,Ͱ:568,ͱ:464,Ͳ:617,ʹ:200,"͵":200,ͷ:583,Ϳ:492,"΄":286,"΅":424,Έ:727,Ή:790,Ί:383,Ό:811,Ύ:759,Ώ:821,ΐ:294,Β:636,Γ:573,Δ:650,Η:701,Κ:630,Μ:855,Ξ:599,Π:627,Ρ:618,Σ:557,Φ:737,Ψ:754,Ω:755,ί:294,ΰ:558,β:565,γ:480,δ:556,ζ:514,θ:570,ι:294,κ:501,λ:534,ν:515,ξ:528,ο:568,ρ:578,ς:516,σ:572,τ:446,υ:558,φ:621,χ:486,ψ:611,ω:687,ϊ:294,ϋ:558,ό:568,ύ:558,ώ:687,Ϗ:630,ϒ:644,ϓ:759,ϔ:644,ϕ:574,ϖ:668,ϗ:586,ϛ:516,Ϝ:573,ϝ:476,Ϟ:585,ϟ:560,Ϡ:625,ϡ:675,ϰ:586,ϱ:578,ϳ:301,ϵ:522,"϶":522,Ϸ:618,ϸ:572,Ϻ:817,ϻ:639,ϼ:578,Ͻ:725,Ͽ:725," ":333," ":250," ":167," ":200," ":100,"​":0,"•":392,"′":286,"″":388,"‴":520,"‶":388,"‷":520,"⁂":900,"⁄":330,"⁒":330,ⁱ:180,ⁿ:340,ₐ:320,ₑ:320,ₒ:320,ₓ:300,ₔ:330,ₕ:320,ₖ:305,ₗ:180,ₘ:457,ₙ:340,ₚ:320,ₛ:300,ₜ:300,"₠":700,"₣":582,"₤":713,"₨":1099,"₩":880,"₪":802,"€":750,"₭":630,"₯":1069,"₱":618,"₴":617,"₶":595,"₷":637,"₹":554,"₺":649,"₻":781,"₼":754,"₽":618,"₿":650,ℏ:618,ℓ:557,"℞":633,"℠":810,"™":790,"℩":294,Ⅎ:596,"⅂":547,"⅃":596,ⅎ:476,"∂":630,"∏":627,"∑":557,"√":640,"∛":640,"∜":640,"⍳":294,"⍴":578,"⍵":687,"⍸":294,"⍹":687,"⏨":635,"❛":371,"❜":371,"❝":648,"❞":648,"❟":371,"❠":648,"〪":0,"〫":0,"〬":0,"〭":0,"゙":0,"゚":0},glyphsByWidth:{263:"ilìíîïĩīĭįıĺļƚǐȉȋ",304:"IÌÍÎÏĨĪĬĮİłƗǏȈȊΙΪ",350:" !\"'(),-./:;[\\]{|} ¡¦·ijǃͺ;· ‘’‚‛“”„‟−∕∖⋅\t\n\r",380:"²³¹⁰⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎",500:"*_`xy¨¯´¸ýÿŷƒƴȳɏ  ‒‵‾⁑∁∊∍⌃❲❳〿。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᅠᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ│←↑→↓■○",510:"ksķśŝşšƙƨșȿέε",530:"c¤«»çćĉċčƈȼͻͼͽϐϑϲ‹›⃀⍷",543:"eèéêëēĕėęěǝȅȇȩɇήη",562:"oòóôõöøōŏőơǒǫǭǿȍȏȫȭȯȱμϙ",575:"adàáâãäåāăąďƌǎǟǡǻȁȃȧ₫",577:"TŢŤŦƬƮȚȾͳΤπ₮₸",580:"gĝğġģǥǧǵάαℊ⍶⍺",588:"hnñĥħńņňʼnŋƞǹȟℎ",590:"u¬µùúûüũūŭůűųưǔǖǘǚǜȕȗ",600:"#$+0123456789<=>?XYZ^~¥±¿×Ý÷ŶŸŹŻŽƳƵƻƼǂȜȤȲɎΖΥΧΫ ‽₰⅄↊↋ㆴㆵㆶㆷㆻ",638:"E¶ÈÉÊËĒĔĖĘĚƎƤȄȆȨɆΕ",690:"AÀÁÂÃÄÅĀĂĄǍǞǠǺȀȂȦȺΆΑΛ₳",703:"CÇĆĈĊČƇƏȻϚϹϾ₡₢₵₾",710:"UÙÚÛÜŨŪŬŮŰŲƯƲǓǕǗǙǛȔȖɄ",738:"NÑŃŅŇŊƝǸͶΝ₦",745:"OQÒÓÔÕÖØŌŎŐƟƠǑǪǬǾȌȎȪȬȮȰΘΟϘϴΩ℧",752:"GĜĞĠĢƓǤǦǴ₲⅁"},defaultWidth:1e3},"Source Han Sans":{fontFamily:"Source Han Sans",fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:880,descender:-120,lineGap:500},glyphs:{" ":224,"\t":224,"\n":224,"\r":224,"!":323,'"':475,"%":921,"&":680,"'":278,"(":338,")":338,"*":467,",":278,"-":347,".":278,"/":392,":":278,";":278,"?":474,"@":946,B:657,C:638,D:687,E:588,F:552,G:689,H:728,I:293,J:536,K:646,L:542,M:812,N:722,P:632,R:635,S:597,T:599,V:575,W:878,X:573,Y:531,Z:603,"[":338,"\\":392,"]":338,_:559,b:618,c:509,d:620,e:554,f:325,g:563,i:275,j:275,k:552,l:285,m:926,n:611,p:620,q:620,r:388,s:468,t:377,v:521,w:802,x:498,y:521,z:474,"{":338,"|":269,"}":338,"¡":323,"¦":269,"©":832,ª:385,"«":479,"®":473,"°":370,"²":410,"³":410,µ:628,"·":561,"¹":410,º:407,"»":479,"¼":872,"½":903,"¾":889,"¿":474,Æ:918,Ç:638,È:588,É:588,Ê:588,Ë:588,Ì:293,Í:293,Î:293,Ï:293,Ð:712,Ñ:722,Ý:531,Þ:651,ß:642,æ:877,ç:509,è:554,é:554,ê:554,ë:554,ì:275,í:275,î:275,ï:275,ð:608,ñ:611,ý:521,þ:620,ÿ:521,Đ:712,đ:620,Ē:588,ē:554,Ě:588,ě:554,Ĩ:293,ĩ:275,Ī:293,ī:275,Ń:722,ń:611,Ň:722,ň:611,Œ:947,œ:937,Ư:736,Ǐ:293,ǐ:275,Ǹ:722,ǹ:611,Β:657,Γ:557,Δ:657,Ε:588,Ζ:603,Η:728,Ι:293,Κ:646,Λ:575,Μ:812,Ν:722,Ξ:595,Π:720,Ρ:632,Σ:601,Τ:599,Υ:531,Φ:803,Χ:573,Ψ:780,Ω:758,α:625,β:631,γ:540,δ:594,ε:501,ζ:473,η:604,θ:583,ι:292,κ:551,λ:552,μ:628,ν:528,ξ:481,ο:597,π:654,ρ:613,σ:610,τ:513,υ:569,φ:759,χ:537,ψ:769,ω:782,"‒":536,"—":894,"‚":278,"„":475,"•":339,"′":278,"″":475,"‹":302,"›":302,"‼":613,"⁇":910,"⁈":758,"⁉":758,ℓ:457,"№":997,"™":711,℮:894,"✓":683,"〪":0,"〫":0,"〬":0,"〭":0,"〮":250,"〯":250},glyphsByWidth:{500:" 。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ│←↑→↓■○",555:"#$+0123456789<=>^~¢£¤¥¬­ƒ₩€",564:"aàáâãäåāăǎ",606:"`o¨¯´¸òóôõöøōŏơǒ",607:"AhuÀÁÂÃÄÅùúûüĀĂũūŭưǍǔǖǘǚǜΑ",721:"UÙÚÛÜŨŪŬǓǕǗǙǛ",742:"OQÒÓÔÕÖØŌŎƠǑΘΟ",920:"ㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣㅥㅦㅧㅨㅩㅪㅫㅬㅭㅮㅯㅰㅱㅲㅳㅴㅵㅶㅷㅸㅹㅺㅻㅼㅽㅾㅿㆀㆁㆂㆃㆄㆅㆆㆇㆈㆉㆊㆋㆌㆍㆎ"},defaultWidth:1e3,kerning:{'",':-128,'".':-128,'"A':-61,'"J':-106,'"S':-11,'"X':-11,'"c':-33,'"d':-33,'"e':-33,'"o':-33,'"q':-33,'"s':-22,"',":-128,"'.":-128,"'A":-61,"'J":-106,"'S":-11,"'X":-11,"'c":-33,"'d":-33,"'e":-33,"'o":-33,"'q":-33,"'s":-22,"(J":-22,"(j":89,',"':-107,",'":-107,",*":-154,",T":-110,",U":-22,",V":-73,",W":-38,",Y":-103,",c":-13,",d":-13,",e":-13,",j":29,",o":-13,",q":-13,",t":-51,",v":-38,",w":-25,",y":-22,"-J":-22,"-S":-19,"-T":-53,"-V":-21,"-W":-11,"-X":-30,"-Y":-74,"-Z":-22,"-t":-29,"-v":-8,"-x":-15,'."':-107,".'":-107,".*":-154,".T":-110,".U":-22,".V":-73,".W":-38,".Y":-103,".c":-13,".d":-13,".e":-13,".j":29,".o":-13,".q":-13,".t":-51,".v":-38,".w":-25,".y":-22,"/A":-45,"/C":-11,"/G":-11,"/J":-89,"/O":-11,"/Q":-11,"/a":-27,"/c":-35,"/d":-35,"/e":-35,"/g":-11,"/i":29,"/j":29,"/o":-35,"/q":-35,"/t":10,"/u":-22,":*":-55,":Y":-29,":j":4,";*":-55,";Y":-29,";j":4,'A"':-61,"A'":-61,"A*":-105,"A?":-29,AA:-7,AC:-11,AG:-11,AO:-11,AQ:-11,AT:-61,AU:-17,AV:-15,AX:4,AY:-15,AZ:-8,"A\\":-45,Aa:26,Af:-11,As:26,At:-15,Au:-7,Av:-8,Aw:-4,Ax:-4,Ay:-8,"B*":-34,BJ:-18,BS:-15,BT:-27,BV:-6,BW:-4,BX:-4,BY:-15,BZ:-4,Bt:-11,Bv:-15,Bw:-11,Bx:-11,By:-15,"C-":-29,CC:-32,CG:-32,CJ:-11,CO:-32,CQ:-32,CS:-27,CT:-20,CU:-15,CV:-4,CW:-4,CX:-4,CY:-8,CZ:-11,Cg:-22,Ct:-30,Cu:-11,Cv:-15,Cw:-11,Cy:-15,"D*":-38,"D/":-20,DA:-11,DJ:-44,DT:-27,DV:-11,DW:-7,DX:-19,DY:-22,DZ:-22,Dx:-15,Dz:-8,Ec:-11,Ed:-11,Ee:-11,Eo:-11,Eq:-11,Et:-27,Ev:-11,Ex:-34,Ey:-11,"F,":-81,"F.":-81,"F/":-78,FA:-42,FC:-11,FG:-11,FJ:-155,FO:-11,FQ:-11,FS:-22,FV:4,FW:4,FX:-27,FZ:-34,Fa:-38,Fc:-15,Fd:-15,Fe:-15,Fg:-27,Fm:-22,Fn:-22,Fo:-15,Fp:-22,Fq:-15,Fr:-22,Fs:-22,Ft:-11,Fu:-18,Fv:-22,Fw:-18,Fx:-29,Fy:-18,Fz:-33,"G*":-31,GA:-4,GT:-22,GV:-15,GW:-4,"J,":-27,"J.":-27,JJ:-45,'K"':-23,"K'":-23,"K*":-45,"K-":-33,"K?":-8,KA:-11,KC:-22,KG:-22,KO:-22,KQ:-22,KS:-10,KT:-19,KU:-15,KV:-14,KW:-11,KY:-18,Kc:-8,Kd:-8,Ke:-8,Kj:-11,Ko:-8,Kq:-8,Kt:-37,Ku:-16,Kv:-22,Kw:-18,Kx:-18,Ky:-22,Kz:-15,'L"':-99,"L'":-99,"L*":-170,"L-":-60,"L?":-36,LA:3,LC:-29,LG:-29,LO:-29,LQ:-29,LS:-25,LT:-134,LU:-32,LV:-85,LW:-63,LY:-85,"L\\":-89,Lc:-13,Ld:-13,Le:-13,Lf:-15,Lg:-4,Lo:-13,Lq:-13,Lt:-22,Lu:-11,Lv:-40,Lw:-38,Ly:-40,"O*":-38,"O/":-20,OA:-11,OJ:-44,OT:-27,OV:-11,OW:-7,OX:-19,OY:-22,OZ:-22,Ox:-15,Oz:-8,"P,":-125,"P-":-37,"P.":-125,"P/":-85,PA:-56,PJ:-164,PS:-11,PT:-27,PX:-27,PY:-11,PZ:-87,Pa:-48,Pc:-27,Pd:-27,Pe:-27,Pg:-34,Po:-27,Pq:-27,Ps:-11,Px:-15,Pz:-22,"Q*":-38,"Q/":-20,QA:-11,QJ:-44,QT:-27,QV:-11,QW:-7,QX:-19,QY:-22,QZ:-22,Qx:-15,Qz:-8,"R*":-11,"R-":-35,RA:-4,RJ:-20,RS:-15,RT:-15,RV:6,RW:7,RX:-4,RZ:-11,Ra:-4,Rc:-11,Rd:-11,Re:-11,Rg:-4,Ro:-11,Rq:-11,Rx:-8,Rz:-8,"S*":-18,"S-":15,SJ:-15,SS:-15,ST:-22,SY:-15,St:-27,"T,":-119,"T-":-81,"T.":-119,"T/":-100,"T:":-22,"T;":-22,TA:-45,TC:-27,TG:-27,TJ:-141,TO:-27,TQ:-27,TS:-44,TX:-22,TY:-15,TZ:-60,Ta:-81,Tc:-74,Td:-74,Te:-74,Tf:-20,Tg:-81,Tm:-52,Tn:-52,To:-74,Tp:-52,Tq:-74,Tr:-52,Ts:-66,Tt:-20,Tu:-52,Tv:-37,Tw:-38,Tx:-44,Ty:-37,Tz:-84,"U,":-18,"U.":-18,"U/":-35,UA:-18,UJ:-53,US:-11,UV:-4,UX:-11,UY:-15,Ua:-4,Ug:-11,Us:-4,Ux:-8,"V,":-73,"V-":-21,"V.":-73,"V/":-52,VA:-15,VC:-11,VG:-11,VJ:-81,VO:-11,VQ:-11,VS:-11,VU:-11,VV:11,VZ:-21,Va:-25,Vc:-17,Vd:-17,Ve:-17,Vg:-24,Vm:-22,Vn:-22,Vo:-17,Vp:-22,Vq:-17,Vr:-22,Vs:-14,Vu:-34,Vv:-10,Vw:-10,Vx:-17,Vy:-10,Vz:-28,"W,":-38,"W-":-11,"W.":-38,"W/":-33,WC:-7,WG:-7,WJ:-73,WO:-7,WQ:-7,WS:-7,WZ:-7,Wa:-18,Wg:-14,Wz:-11,'X"':-11,"X'":-11,"X*":-11,"X-":-30,XA:3,XC:-19,XG:-19,XO:-19,XQ:-19,XS:-15,XT:-22,XU:-11,Xa:-11,Xc:-8,Xd:-8,Xe:-8,Xf:-18,Xo:-8,Xq:-8,Xt:-18,Xu:-11,Xv:-18,Xw:-15,Xx:-11,Xy:-18,Xz:-15,"Y,":-101,"Y-":-74,"Y.":-101,"Y/":-75,"Y:":-28,"Y;":-28,"Y?":-8,YA:-15,YC:-15,YG:-15,YJ:-112,YO:-15,YQ:-15,YS:-18,YT:-15,YU:-11,YZ:-29,Ya:-75,Yc:-46,Yd:-46,Ye:-46,Yg:-67,Ym:-45,Yn:-45,Yo:-46,Yp:-45,Yq:-46,Yr:-45,Ys:-46,Yt:-31,Yu:-38,Yv:-15,Yw:-27,Yx:-38,Yy:-15,Yz:-53,"Z-":-38,ZA:-7,ZC:-22,ZG:-22,ZJ:-37,ZO:-22,ZQ:-22,ZS:-34,ZU:-11,ZV:-7,ZW:-7,ZY:-15,ZZ:-18,Za:-18,Zc:-24,Zd:-24,Ze:-24,Zf:-22,Zg:-16,Zo:-24,Zq:-24,Zt:-15,Zu:-26,Zv:-18,Zw:-18,Zx:-27,Zy:-18,"[J":-22,"[j":89,"\\T":-96,"\\U":-33,"\\V":-59,"\\W":-33,"\\Y":-81,"\\g":37,"\\j":81,"\\v":-22,"\\w":-11,"\\y":14,"a*":-60,"a?":-14,aT:-27,aV:-18,aW:-4,aY:-27,at:-15,'b"':-33,"b'":-33,"b*":-29,"b,":-11,"b-":7,"b.":-11,"b?":-14,bT:-64,bV:-21,bX:-4,bY:-52,"b\\":-29,ba:-16,bt:-19,bv:-4,bw:-4,bx:-19,by:-4,bz:-6,"c-":-22,cT:-22,cV:-15,cY:-27,ca:-11,cc:-24,cd:-24,ce:-24,cg:-11,co:-24,cq:-24,ct:-11,cv:7,cw:7,cx:9,cy:7,"e*":-38,"e-":11,"e?":-8,eJ:-22,eS:-22,eT:-27,eV:-18,eW:-11,eY:-29,"e\\":-22,ea:-16,eg:-11,et:-11,ev:5,ew:5,ex:-8,ey:5,"f!":16,'f"':45,"f'":45,"f)":55,"f,":-56,"f-":-15,"f.":-56,"f/":-16,"f?":29,fT:52,fV:74,fW:52,fX:37,fY:66,"f\\":70,"f]":55,fa:-22,fc:-11,fd:-11,fe:-11,fg:-16,fj:-11,fo:-11,fq:-11,fs:-4,fv:14,fx:-4,fz:-15,"f}":55,"g)":16,"g*":-37,"g/":53,"g?":-40,gT:-29,gY:-15,"g]":16,ga:-18,gc:-15,gd:-15,ge:-15,gj:41,go:-15,gq:-15,gv:-4,gw:-4,gy:17,gz:-15,"g}":16,"h*":-38,"h?":-8,hT:-27,hV:-11,hY:-18,"k*":-24,"k,":14,"k-":-49,"k.":14,"k:":14,"k;":14,"k?":-14,kT:-39,kY:-13,ka:-11,kc:-20,kd:-20,ke:-20,kg:-11,kj:-11,ko:-20,kq:-20,kt:-23,ku:-15,kx:-8,kz:-8,lj:9,"m*":-38,"m?":-8,mT:-27,mV:-11,mY:-18,"n*":-38,"n?":-8,nT:-27,nV:-11,nY:-18,'o"':-33,"o'":-33,"o*":-29,"o,":-11,"o-":7,"o.":-11,"o?":-14,oT:-64,oV:-21,oX:-4,oY:-52,"o\\":-29,oa:-16,ot:-19,ov:-4,ow:-4,ox:-19,oy:-4,oz:-6,'p"':-33,"p'":-33,"p*":-29,"p,":-11,"p-":7,"p.":-11,"p?":-14,pT:-64,pV:-21,pX:-4,pY:-52,"p\\":-29,pa:-16,pt:-19,pv:-4,pw:-4,px:-19,py:-4,pz:-6,"q*":-27,qT:-22,qV:-15,qY:-34,"r,":-63,"r-":-27,"r.":-63,"r/":-38,"r:":29,"r;":29,rA:-15,rJ:-61,rZ:-11,"r\\":14,ra:-27,rc:-11,rd:-11,re:-11,rg:-11,ro:-11,rq:-11,rs:-4,rv:29,rw:21,ry:29,rz:-4,"s*":-55,"s-":11,"s?":-12,sT:-27,sV:-11,sY:-22,st:-22,"t,":7,"t-":-29,"t.":7,"t/":11,"t:":16,"t;":16,"t?":-29,tT:-15,tY:-4,ta:-24,tc:-15,td:-15,te:-15,tg:-11,to:-15,tq:-15,ts:-11,tt:-22,tx:-18,"u*":-27,uT:-22,uV:-15,uY:-34,"v*":-13,"v,":-38,"v-":-8,"v.":-38,"v/":-22,vA:-13,vJ:-45,vT:-22,vV:-10,vY:-15,vZ:-11,va:-22,vc:-4,vd:-4,ve:-4,vj:-11,vo:-4,vq:-4,vz:-27,"w*":-13,"w,":-45,"w.":-45,"w/":-8,wA:-4,wJ:-34,wT:-27,wV:-10,wX:-15,wY:-27,wa:-11,wc:-4,wd:-4,we:-4,wj:-11,wo:-4,wq:-4,wz:-19,"x!":-15,"x*":-25,"x,":8,"x-":-15,"x.":-8,"x;":8,xC:-11,xG:-11,xO:-11,xQ:-11,xS:-4,xT:-37,xV:-17,xX:-11,xY:-38,xa:-11,xc:-19,xd:-19,xe:-19,xo:-19,xq:-19,xt:-27,"y,":-38,"y.":-38,"y/":-16,yJ:-45,yT:-22,yV:-4,yX:-4,yY:-8,ya:-22,yc:-4,yd:-4,ye:-4,yj:-11,yo:-4,yq:-4,yx:-15,yz:-27,"z-":-18,zT:-29,zY:-33,za:-26,zc:-11,zd:-11,ze:-11,zg:-7,zo:-11,zq:-11,zu:-11,zv:-4,zy:-4,"{J":-22,"{j":89}},"Source Han Serif":{fontFamily:"Source Han Serif",fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:1151,descender:-286,lineGap:0},glyphs:{" ":258,"\t":258,"\n":258,"\r":258,"!":303,'"':367,"#":567,"%":935,"&":780,"'":189,"(":361,")":361,"*":479,"+":576,",":326,"-":338,".":326,"/":348,":":326,";":326,"<":576,"=":576,">":576,"?":438,"@":901,B:675,C:690,D:772,E:655,F:629,G:742,H:859,I:401,J:402,K:723,L:640,M:979,N:798,P:637,R:707,S:557,T:653,V:726,W:1047,X:702,Y:688,Z:599,"[":341,"\\":348,"]":341,"^":576,_:555,"`":435,b:627,c:529,d:617,e:549,f:385,g:560,h:655,i:325,j:301,k:592,l:324,m:976,n:658,p:630,q:602,r:454,s:470,t:354,v:546,w:829,x:564,y:551,z:496,"{":375,"|":270,"}":375,"~":576,"¡":303,"¤":542,"¦":270,"¨":435,"©":822,ª:376,"«":524,"¬":576,"®":498,"¯":435,"°":350,"²":395,"³":395,"´":435,µ:619,"·":326,"¸":435,"¹":395,º:404,"»":524,"¼":935,"½":935,"¾":935,"¿":438,Æ:997,Ç:690,È:655,É:655,Ê:655,Ë:655,Ì:401,Í:401,Î:401,Ï:401,Ð:772,Ñ:798,Ý:688,Þ:659,ß:636,æ:852,ç:529,è:549,é:549,ê:549,ë:549,ì:325,í:325,î:325,ï:325,ð:591,ñ:658,ý:551,þ:608,ÿ:551,Đ:772,đ:617,Ē:655,ē:549,Ě:655,ě:549,Ĩ:401,ĩ:325,Ī:401,ī:325,Ń:798,ń:658,Ň:798,ň:658,Œ:1012,œ:949,Ǐ:401,ǐ:325,Ǹ:798,ǹ:658,Β:675,Γ:608,Δ:688,Ε:655,Ζ:599,Η:859,Ι:401,Κ:723,Λ:716,Μ:979,Ν:798,Ξ:636,Π:844,Ρ:637,Σ:591,Τ:653,Υ:688,Φ:770,Χ:702,Ψ:822,Ω:797,α:604,β:616,γ:529,δ:565,ε:455,ζ:450,ι:303,κ:571,λ:570,μ:619,ν:529,ξ:471,ο:563,π:645,ρ:591,ς:495,σ:636,τ:522,υ:586,φ:754,χ:527,ψ:776,ω:788,"‒":555,"—":882,"‚":229,"„":436,"′":265,"″":449,"‹":309,"›":309,"‼":584,"⁇":832,"⁉":713,ℓ:495,"№":1089,"™":780,℮:870,"−":576,"✓":646,"〪":0,"〫":0,"〬":0,"〭":0,"〮":250,"〯":250,"゙":0,"゚":0},glyphsByWidth:{500:" 。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ│←↑→↓■○",539:"$0123456789¢£¥ƒ₩₫€",552:"aàáâãäåāăǎθ",594:"oòóôõöøōŏơǒη",639:"uùúûüũūŭưǔǖǘǚǜ",719:"AÀÁÂÃÄÅĀĂǍΑ⁈",769:"OQÒÓÔÕÖØŌŎƠǑΘΟ",792:"UÙÚÛÜŨŪŬƯǓǕǗǙǛ",966:"ㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣㅥㅦㅧㅨㅩㅪㅫㅬㅭㅮㅯㅰㅱㅲㅳㅴㅵㅶㅷㅸㅹㅺㅻㅼㅽㅾㅿㆀㆁㆂㆃㆄㆅㆆㆇㆈㆉㆊㆋㆌㆍㆎ"},defaultWidth:1e3,kerning:{'",':-114,'".':-114,'"/':-86,'"A':-133,'"C':-27,'"G':-27,'"J':-10,'"O':-27,'"Q':-27,'"S':-10,'"T':32,'"U':-4,'"a':-32,'"c':-43,'"d':-43,'"e':-43,'"f':-5,'"g':-56,'"m':-8,'"n':-8,'"o':-43,'"p':-19,'"q':-43,'"r':-8,'"s':-32,'"z':-10,"#/":-32,"#A":-41,"#C":14,"#G":14,"#O":14,"#Q":14,"#V":-21,"#W":-21,"#Y":-5,"#f":-5,"#g":-7,"#t":10,"#v":5,"#w":5,"#y":5,"&)":-21,"&,":-7,"&-":-25,"&.":-7,"&J":-8,"&T":-59,"&U":-30,"&V":-68,"&W":-63,"&Y":-63,"&]":-21,"&c":-10,"&d":-10,"&e":-10,"&o":-10,"&q":-10,"&}":-21,"',":-114,"'.":-114,"'/":-86,"'A":-133,"'C":-27,"'G":-27,"'J":-10,"'O":-27,"'Q":-27,"'S":-10,"'T":32,"'U":-4,"'a":-32,"'c":-43,"'d":-43,"'e":-43,"'f":-5,"'g":-56,"'m":-8,"'n":-8,"'o":-43,"'p":-19,"'q":-43,"'r":-8,"'s":-32,"'z":-10,"(#":-21,"(&":-21,"((":-54,"()":13,"(-":-43,"(:":-43,"(;":-43,"(A":-32,"(C":-21,"(G":-21,"(J":36,"(O":-21,"(Q":-21,"(S":-10,"(U":-10,"([":-54,"(]":13,"(c":-30,"(d":-30,"(e":-30,"(f":-5,"(j":106,"(m":-16,"(n":-16,"(o":-30,"(q":-30,"(r":-16,"(s":-21,"(t":-10,"(u":-23,"(v":-21,"(w":-21,"(x":-10,"(y":16,"(z":-10,"({":-54,"(}":13,"))":-54,"),":-43,").":-43,")A":-31,")T":-21,")U":-21,")V":-53,")W":-43,")X":-21,")Y":-43,")]":-54,")}":-54,"*,":-108,"*.":-108,"*A":-122,"*C":-10,"*G":-10,"*J":-21,"*O":-10,"*Q":-10,"*T":23,"*X":-7,"*a":-41,"*c":-27,"*d":-27,"*e":-27,"*f":-8,"*g":-46,"*m":-7,"*n":-7,"*o":-27,"*p":-10,"*q":-27,"*r":-7,"*s":-25,"*z":-14,',"':-86,",'":-86,",(":-54,",)":-48,",*":-141,",-":-43,",C":-59,",G":-59,",O":-59,",Q":-59,",T":-86,",U":-65,",V":-144,",W":-128,",Y":-127,",[":-54,",\\":-141,",]":-48,",a":-21,",c":-32,",d":-32,",e":-32,",g":-21,",j":8,",o":-32,",p":-32,",q":-32,",s":-16,",t":-43,",u":-45,",v":-97,",w":-97,",y":-43,",z":-21,",{":-54,",}":-48,"-)":-43,"-,":-53,"-.":-53,"-/":-32,"-A":-32,"-C":10,"-G":10,"-J":-21,"-M":-10,"-N":-10,"-O":10,"-Q":10,"-T":-44,"-U":-10,"-V":-85,"-W":-75,"-X":-43,"-Y":-76,"-Z":-10,"-\\":-43,"-]":-43,"-b":-3,"-c":10,"-d":10,"-e":10,"-f":-7,"-g":5,"-h":-3,"-k":-3,"-l":-3,"-o":10,"-q":10,"-v":-7,"-w":-7,"-x":-21,"-y":-8,"-}":-43,'."':-86,".'":-86,".(":-54,".)":-48,".*":-141,".-":-43,".C":-59,".G":-59,".O":-59,".Q":-59,".T":-86,".U":-65,".V":-144,".W":-128,".Y":-127,".[":-54,".\\":-141,".]":-48,".a":-21,".c":-32,".d":-32,".e":-32,".g":-21,".j":8,".o":-32,".p":-32,".q":-32,".s":-16,".t":-43,".u":-45,".v":-97,".w":-97,".y":-43,".z":-21,".{":-54,".}":-48,"/#":-21,"/,":-148,"/-":-65,"/.":-148,"//":-82,"/A":-76,"/T":5,"/V":13,"/W":13,"/a":-35,"/c":-32,"/d":-32,"/e":-32,"/g":-35,"/m":-19,"/n":-19,"/o":-32,"/p":-19,"/q":-32,"/r":-19,"/s":-21,"/u":-14,"/x":-10,"/z":-21,":T":-5,":U":-10,":V":-32,":W":-32,":X":-7,":Y":-54,":c":-3,":d":-3,":e":-3,":o":-3,":q":-3,";T":-5,";U":-10,";V":-32,";W":-32,";X":-7,";Y":-54,";c":-3,";d":-3,";e":-3,";o":-3,";q":-3,"?)":-33,"?,":-121,"?.":-121,"?/":-76,"?]":-33,"?}":-33,"@,":-16,"@.":-16,"@A":-6,"@C":5,"@G":5,"@O":5,"@Q":5,"@V":-3,"@W":-3,"@X":-3,"@Y":-5,"@_":-86,"@b":-13,"@f":-5,"@g":-10,"@h":-13,"@k":-13,"@l":-13,"@p":-8,"@y":5,'A"':-122,"A'":-122,"A(":-20,"A)":-32,"A*":-117,"A-":-34,AA:10,AB:-10,AC:-38,AD:-10,AE:-10,AF:-10,AG:-38,AH:-10,AI:-10,AJ:-13,AK:-10,AL:-10,AM:-7,AN:-7,AO:-38,AP:-10,AQ:-38,AR:-10,AT:-63,AU:-72,AV:-132,AW:-108,AY:-97,"A[":-20,"A\\":-65,"A]":-32,Aa:-4,Ac:-19,Ad:-19,Ae:-19,Ag:-3,Aj:-8,Ao:-19,Ap:-30,Aq:-19,At:-21,Au:-21,Av:-57,Aw:-57,Ay:-48,"A{":-20,"A}":-32,'B"':-21,"B'":-21,"B)":-16,"B*":-10,"B,":-29,"B.":-29,"B/":-19,BA:-32,BB:-27,BC:-7,BD:-27,BE:-27,BF:-27,BG:-7,BH:-27,BI:-27,BJ:-11,BK:-27,BL:-27,BM:-16,BN:-16,BO:-7,BP:-27,BQ:-7,BR:-27,BT:-21,BU:-32,BV:-54,BW:-40,BX:-32,BY:-54,BZ:-7,"B\\":-16,"B]":-16,B_:-27,Bb:-10,Bf:-16,Bh:-10,Bk:-10,Bl:-10,Bp:-10,Bu:-16,Bv:-18,Bw:-18,Bx:-10,By:-8,"B}":-16,'C"':21,"C'":21,"C)":3,"C*":3,"C@":5,CU:-10,CV:-10,CW:-10,CY:-21,"C]":3,C_:-7,Cp:-10,Cu:-10,"C}":3,'D"':-3,"D'":-3,"D)":-21,"D,":-45,"D-":3,"D.":-45,"D/":-30,"D@":16,DA:-57,DB:-28,DC:10,DD:-28,DE:-28,DF:-28,DG:10,DH:-28,DI:-28,DJ:-10,DK:-28,DL:-28,DM:-21,DN:-21,DO:10,DP:-28,DQ:10,DR:-28,DT:-19,DU:-21,DV:-48,DW:-51,DX:-43,DY:-65,DZ:-8,"D\\":-16,"D]":-21,D_:-76,Db:-10,Dg:-10,Dh:-10,Dk:-10,Dl:-10,Dp:-10,Ds:-10,Dx:-10,"D}":-21,EU:-15,EV:-15,EW:-15,EY:-15,Eg:-7,Ep:-19,Eu:-10,Ev:-19,Ew:-19,Ey:-21,'F"':13,"F&":-8,"F'":13,"F(":-10,"F*":10,"F,":-103,"F-":-21,"F.":-103,"F/":-65,"F:":-5,"F;":-5,"F@":-22,FA:-77,FB:-10,FC:-9,FD:-10,FE:-10,FF:-10,FG:-9,FH:-10,FI:-10,FK:-10,FL:-10,FO:-9,FP:-10,FQ:-9,FR:-10,FT:10,"F[":-10,"F\\":14,F_:-130,Fa:-43,Fb:-3,Fc:-46,Fd:-46,Fe:-46,Ff:-30,Fg:-67,Fh:-3,Fi:-8,Fk:-3,Fl:-3,Fm:-21,Fn:-21,Fo:-46,Fp:-43,Fq:-46,Fr:-21,Fs:-47,Fu:-21,Fv:-21,Fw:-21,Fx:-32,Fy:-21,Fz:-32,"F{":-10,"G(":10,"G)":-5,"G,":-8,"G-":23,"G.":-8,"G/":-16,"G@":13,GA:-10,GB:-8,GC:10,GD:-8,GE:-8,GF:-8,GG:10,GH:-8,GI:-8,GK:-8,GL:-8,GO:10,GP:-8,GQ:10,GR:-8,GT:-8,GU:-15,GV:-38,GW:-38,GX:-19,GY:-48,GZ:-8,"G[":10,"G]":-5,G_:-41,Gp:-10,"G{":10,"G}":-5,HC:-23,HG:-23,HO:-23,HQ:-23,Ha:-21,Hc:-25,Hd:-25,He:-25,Hf:-18,Hg:-18,Ho:-25,Hp:-34,Hq:-25,Hs:-21,Ht:-10,Hu:-25,Hv:-40,Hw:-40,Hy:-30,IC:-23,IG:-23,IO:-23,IQ:-23,Ia:-21,Ic:-25,Id:-25,Ie:-25,If:-18,Ig:-18,Io:-25,Ip:-34,Iq:-25,Is:-21,It:-10,Iu:-25,Iv:-40,Iw:-40,Iy:-30,"J,":-57,"J-":-10,"J.":-57,"J/":-30,"J:":-23,"J;":-23,"J@":-14,JA:-41,JC:-10,JG:-10,JO:-10,JQ:-10,JS:-8,J_:-79,Ja:-26,Jc:-25,Jd:-25,Je:-25,Jf:-40,Jg:-32,Ji:-8,Jj:-8,Jm:-27,Jn:-27,Jo:-25,Jp:-41,Jq:-25,Jr:-27,Js:-30,Jt:-19,Ju:-32,Jv:-32,Jw:-32,Jx:-21,Jy:-30,Jz:-21,"K-":-32,KA:10,KC:-30,KG:-30,KJ:-16,KO:-30,KQ:-30,KU:-10,KV:-8,KW:-8,KY:-10,KZ:8,Ka:-8,Kc:-21,Kd:-21,Ke:-21,Kg:-10,Ko:-21,Kp:-30,Kq:-21,Kt:-21,Ku:-21,Kv:-59,Kw:-59,Ky:-52,'L"':-141,"L'":-141,"L)":-27,"L*":-108,LB:-18,LC:-16,LD:-18,LE:-18,LF:-18,LG:-16,LH:-18,LI:-18,LJ:-18,LK:-18,LL:-18,LM:-7,LN:-7,LO:-16,LP:-18,LQ:-16,LR:-18,LS:-16,LT:-77,LU:-48,LV:-117,LW:-101,LX:-16,LY:-108,LZ:-16,"L\\":-59,"L]":-27,Lf:-7,Lp:-18,Lt:-8,Lu:-22,Lv:-41,Lw:-41,Ly:-32,"L}":-27,MC:-23,MG:-23,MO:-23,MQ:-23,Ma:-21,Mc:-25,Md:-25,Me:-25,Mf:-18,Mg:-18,Mo:-25,Mp:-34,Mq:-25,Ms:-21,Mt:-10,Mu:-25,Mv:-40,Mw:-40,My:-30,"N,":-32,"N-":-3,"N.":-32,"N/":-33,"N:":-14,"N;":-14,NA:-39,NB:-8,NC:-17,ND:-8,NE:-8,NF:-8,NG:-17,NH:-8,NI:-8,NK:-8,NL:-8,NO:-17,NP:-8,NQ:-17,NR:-8,NS:-8,NU:-10,NX:-10,NZ:-3,N_:-59,Na:-14,Nc:-11,Nd:-11,Ne:-11,Nf:-21,Ng:-21,Nm:-10,Nn:-10,No:-11,Np:-22,Nq:-11,Nr:-10,Ns:-11,Nt:-10,Nu:-21,Nv:-21,Nw:-21,Nx:-19,Ny:-21,Nz:-21,'O"':-27,"O'":-27,"O)":-21,"O*":-10,"O,":-43,"O-":10,"O.":-43,"O/":-21,"O@":21,OA:-38,OB:-23,OC:10,OD:-23,OE:-23,OF:-23,OG:10,OH:-23,OI:-23,OJ:-8,OK:-23,OL:-23,OM:-16,ON:-16,OO:10,OP:-23,OQ:10,OR:-23,OT:-8,OU:-19,OV:-38,OW:-29,OX:-32,OY:-43,"O\\":-7,"O]":-21,O_:-59,"O}":-21,'P"':10,"P&":-6,"P'":10,"P)":-9,"P*":23,"P,":-111,"P-":-5,"P.":-111,"P/":-54,"P:":8,"P;":8,PA:-66,PB:-10,PD:-10,PE:-10,PF:-10,PH:-10,PI:-10,PJ:-10,PK:-10,PL:-10,PP:-10,PR:-10,PS:7,PT:10,PU:-21,PV:-10,PW:-10,PX:-21,PY:-23,PZ:10,"P\\":10,"P]":-9,P_:-155,Pa:-5,Pb:-3,Pc:-21,Pd:-21,Pe:-21,Pg:-21,Ph:-3,Pk:-3,Pl:-3,Pm:-7,Pn:-7,Po:-21,Pq:-21,Pr:-7,Ps:-3,Pt:16,Pv:8,Pw:8,Py:16,"P}":-9,'Q"':-27,"Q'":-27,"Q)":-21,"Q*":-10,"Q,":-43,"Q-":10,"Q.":-43,"Q/":-21,"Q@":21,QA:-38,QB:-23,QC:10,QD:-23,QE:-23,QF:-23,QG:10,QH:-23,QI:-23,QJ:-8,QK:-23,QL:-23,QM:-16,QN:-16,QO:10,QP:-23,QQ:10,QR:-23,QT:-8,QU:-19,QV:-38,QW:-29,QX:-32,QY:-43,"Q\\":-7,"Q]":-21,Q_:-59,"Q}":-21,'R"':-43,"R'":-43,"R*":-14,"R-":-16,RA:10,RC:-20,RG:-20,RJ:-10,RO:-20,RQ:-20,RT:-32,RU:-35,RV:-59,RW:-52,RX:7,RY:-52,RZ:7,"R\\":-21,R_:18,Rc:-10,Rd:-10,Re:-10,Ro:-10,Rp:-14,Rq:-10,Rt:-10,Ru:-14,Rv:-21,Rw:-21,Ry:-21,"S)":-10,"S,":-21,"S.":-21,"S/":-16,"S@":5,SA:-19,SB:-7,SD:-7,SE:-7,SF:-7,SH:-7,SI:-7,SJ:-8,SK:-7,SL:-7,SM:-7,SN:-7,SP:-7,SR:-7,SS:-8,ST:-10,SU:-27,SV:-29,SW:-27,SX:-10,SY:-32,"S]":-10,S_:-43,Sb:-7,Sf:-16,Sg:-7,Sh:-7,Sk:-7,Sl:-7,Sp:-10,St:-10,Su:-10,Sv:-19,Sw:-19,Sx:-8,Sy:-19,"S}":-10,'T"':32,"T'":32,"T(":-21,"T*":23,"T,":-86,"T-":-44,"T.":-86,"T/":-50,"T:":-5,"T;":-5,"T@":-21,TA:-70,TC:-8,TG:-8,TO:-8,TQ:-8,TT:10,TU:-10,TX:-3,TZ:7,"T[":-21,"T\\":27,T_:-88,Ta:-43,Tc:-73,Td:-73,Te:-73,Tf:-10,Tg:-43,Tm:-32,Tn:-32,To:-73,Tp:-72,Tq:-73,Tr:-32,Ts:-54,Tu:-30,Tv:-43,Tw:-43,Tx:-38,Ty:-43,Tz:-65,"T{":-21,"U&":-14,"U(":-21,"U)":-10,"U,":-86,"U-":-14,"U.":-86,"U/":-60,"U:":-14,"U;":-14,UA:-79,UB:-21,UC:-28,UD:-21,UE:-21,UF:-21,UG:-28,UH:-21,UI:-21,UJ:-15,UK:-21,UL:-21,UM:-10,UN:-10,UO:-28,UP:-21,UQ:-28,UR:-21,US:-19,UT:-10,UU:-21,UV:-18,UW:-7,UX:-10,UZ:-9,"U[":-21,"U]":-10,U_:-90,Ua:-43,Ub:-7,Uc:-32,Ud:-32,Ue:-32,Uf:-21,Ug:-43,Uh:-7,Ui:-19,Uj:-8,Uk:-7,Ul:-7,Um:-27,Un:-27,Uo:-32,Up:-46,Uq:-32,Ur:-27,Us:-43,Ut:-21,Uu:-32,Uv:-25,Uw:-25,Ux:-35,Uy:-32,Uz:-38,"U{":-21,"U}":-10,"V&":-42,"V(":-54,"V,":-166,"V-":-80,"V.":-166,"V/":-95,"V:":-43,"V;":-43,"V@":-52,VA:-122,VC:-48,VG:-48,VO:-48,VQ:-48,VS:-21,VU:-10,VZ:-10,"V[":-54,"V\\":13,V_:-171,Va:-86,Vb:-5,Vc:-79,Vd:-79,Ve:-79,Vf:-54,Vg:-90,Vh:-5,Vi:-30,Vj:-21,Vk:-5,Vl:-5,Vm:-63,Vn:-63,Vo:-79,Vp:-78,Vq:-79,Vr:-63,Vs:-92,Vt:-32,Vu:-65,Vv:-43,Vw:-43,Vx:-76,Vy:-65,Vz:-68,"V{":-54,"W&":-33,"W(":-43,"W,":-133,"W-":-70,"W.":-133,"W/":-97,"W:":-43,"W;":-43,"W@":-52,WA:-114,WC:-41,WG:-41,WM:-7,WN:-7,WO:-41,WQ:-41,WS:-21,WU:-10,WZ:-10,"W[":-43,"W\\":13,W_:-142,Wa:-79,Wb:-5,Wc:-81,Wd:-81,We:-81,Wf:-43,Wg:-90,Wh:-5,Wi:-21,Wj:-21,Wk:-5,Wl:-5,Wm:-54,Wn:-54,Wo:-81,Wp:-76,Wq:-81,Wr:-54,Ws:-78,Wt:-28,Wu:-59,Wv:-46,Ww:-46,Wx:-59,Wy:-46,Wz:-68,"W{":-43,"X(":-21,"X*":-7,"X-":-46,"X:":-7,"X;":-7,XC:-32,XG:-32,XO:-32,XQ:-32,XT:-10,XU:-10,XZ:7,"X[":-21,Xa:-3,Xc:-33,Xd:-33,Xe:-33,Xj:-16,Xo:-33,Xp:-34,Xq:-33,Xs:-10,Xt:-32,Xu:-43,Xv:-70,Xw:-70,Xy:-52,"X{":-21,"Y&":-41,"Y(":-54,"Y,":-113,"Y-":-86,"Y.":-113,"Y/":-97,"Y:":-65,"Y;":-65,"Y@":-52,YA:-96,YC:-54,YG:-54,YO:-54,YQ:-54,YS:-43,"Y[":-54,"Y\\":14,Y_:-119,Ya:-84,Yb:-5,Yc:-100,Yd:-100,Ye:-100,Yf:-65,Yg:-104,Yh:-5,Yi:-43,Yj:-27,Yk:-5,Yl:-5,Ym:-72,Yn:-72,Yo:-100,Yp:-97,Yq:-100,Yr:-72,Ys:-89,Yt:-65,Yu:-89,Yv:-76,Yw:-76,Yx:-68,Yy:-76,Yz:-92,"Y{":-54,"Z@":5,ZC:-7,ZG:-7,ZO:-7,ZQ:-7,ZT:-10,ZU:-20,ZV:-10,ZW:-10,ZY:-10,Zp:-10,Zu:-14,Zv:-27,Zw:-27,Zy:-27,"[#":-21,"[&":-21,"[(":-54,"[)":13,"[-":-43,"[:":-43,"[;":-43,"[A":-32,"[C":-21,"[G":-21,"[J":36,"[O":-21,"[Q":-21,"[S":-10,"[U":-10,"[[":-54,"[]":13,"[c":-30,"[d":-30,"[e":-30,"[f":-5,"[j":106,"[m":-16,"[n":-16,"[o":-30,"[q":-30,"[r":-16,"[s":-21,"[t":-10,"[u":-23,"[v":-21,"[w":-21,"[x":-10,"[y":16,"[z":-10,"[{":-54,"[}":13,'\\"':-86,"\\'":-86,"\\,":16,"\\-":-21,"\\.":16,"\\C":-32,"\\G":-32,"\\J":76,"\\O":-32,"\\Q":-32,"\\T":-65,"\\U":-57,"\\V":-103,"\\W":-90,"\\Y":-86,"\\\\":-82,"\\g":5,"\\j":93,"\\t":-10,"\\u":-5,"\\v":-21,"\\w":-21,"\\y":32,"])":-54,"],":-43,"].":-43,"]A":-31,"]T":-21,"]U":-21,"]V":-53,"]W":-43,"]X":-21,"]Y":-43,"]]":-54,"]}":-54,_C:-59,_G:-59,_J:35,_O:-59,_Q:-59,_S:-21,_T:-88,_U:-108,_V:-163,_W:-152,_Y:-119,_a:-16,_c:-54,_d:-54,_e:-54,_o:-54,_p:-23,_q:-54,_s:-19,_t:-54,_u:-51,_v:-79,_w:-79,_y:-64,'a"':-67,"a'":-67,"a*":-48,"a-":-10,"a?":-3,aA:7,aB:-7,aC:-14,aD:-7,aE:-7,aF:-7,aG:-14,aH:-7,aI:-7,aJ:-19,aK:-7,aL:-7,aO:-14,aP:-7,aQ:-14,aR:-7,aT:-59,aU:-55,aV:-105,aW:-97,aY:-86,"a\\":-46,ag:-8,am:-4,an:-4,ap:-19,ar:-4,av:-19,aw:-19,ay:-10,'b"':-43,"b'":-43,"b)":-14,"b*":-27,"b,":-27,"b-":10,"b.":-27,"b/":-19,"b:":-3,"b;":-3,"b?":-3,bA:-43,bB:-23,bD:-23,bE:-23,bF:-23,bH:-23,bI:-23,bJ:-25,bK:-23,bL:-23,bM:-8,bN:-8,bP:-23,bR:-23,bS:-7,bT:-65,bU:-41,bV:-81,bW:-70,bX:-21,bY:-81,"b\\":-21,"b]":-14,b_:-54,bb:-7,bh:-7,bk:-7,bl:-7,bp:-8,bt:-7,bu:-7,bx:-19,by:-10,"b}":-14,'c"':-5,"c'":-5,"c*":-3,"c,":-3,"c.":-3,cA:-10,cB:-14,cD:-14,cE:-14,cF:-14,cH:-14,cI:-14,cJ:-21,cK:-14,cL:-14,cP:-14,cR:-14,cT:-43,cU:-32,cV:-73,cW:-65,cX:-21,cY:-65,"c\\":-5,c_:-27,cb:-10,ch:-10,ck:-10,cl:-10,cp:-10,'d"':-23,"d&":-13,"d'":-23,"d)":-3,"d*":-21,"d-":-5,"d?":-5,dJ:-3,dT:-23,dU:-26,dV:-43,dW:-38,dY:-45,"d\\":-5,"d]":-3,da:-8,dg:-8,dp:-18,du:-10,dv:-10,dw:-10,dy:-10,"d}":-3,'e"':-21,"e'":-21,"e)":-16,"e*":-21,"e,":-29,"e.":-29,"e/":-8,"e?":-3,eA:-19,eB:-10,eD:-10,eE:-10,eF:-10,eH:-10,eI:-10,eJ:-21,eK:-10,eL:-10,eP:-10,eR:-10,eT:-52,eU:-32,eV:-71,eW:-63,eX:-21,eY:-77,"e\\":-21,"e]":-16,e_:-43,ea:-7,eb:-10,ef:-7,eh:-10,ek:-10,el:-10,ep:-8,ev:-7,ew:-7,ey:-7,"e}":-16,"f!":41,'f"':84,"f'":84,"f)":97,"f*":57,"f,":-38,"f-":-13,"f.":-38,"f/":-18,"f?":39,fA:-7,fB:18,fD:18,fE:18,fF:18,fH:18,fI:18,fJ:26,fK:18,fL:18,fM:42,fN:42,fP:18,fR:18,fS:25,fT:58,fU:42,fV:58,fW:58,fX:51,fY:58,fZ:42,"f\\":104,"f]":97,f_:-23,fb:-10,fc:-17,fd:-17,fe:-17,fg:-5,fh:-10,fi:25,fj:25,fk:-10,fl:-10,fo:-17,fq:-17,fu:-10,fv:10,fw:10,fy:10,"f}":97,"g&":-21,"g-":-3,"g/":14,"g?":-5,gB:-7,gD:-7,gE:-7,gF:-7,gH:-7,gI:-7,gJ:52,gK:-7,gL:-7,gM:-5,gN:-5,gP:-7,gR:-7,gT:-27,gU:-34,gV:-43,gW:-43,gY:-72,"g\\":-16,ga:-19,gb:-13,gc:-8,gd:-8,ge:-8,gg:-8,gh:-13,gj:20,gk:-13,gl:-13,go:-8,gq:-8,gv:4,gw:4,gy:9,'h"':-59,"h'":-59,"h)":-14,"h*":-72,"h?":-7,hB:-5,hC:-3,hD:-5,hE:-5,hF:-5,hG:-3,hH:-5,hI:-5,hJ:-21,hK:-5,hL:-5,hO:-3,hP:-5,hQ:-3,hR:-5,hT:-63,hU:-35,hV:-92,hW:-84,hY:-76,"h\\":-54,"h]":-14,hp:-15,ht:-4,hu:-4,hv:-27,hw:-27,hy:-27,"h}":-14,"i!":-5,'i"':-7,"i&":-5,"i'":-7,"i*":-5,"i?":-7,iB:-5,iD:-5,iE:-5,iF:-5,iH:-5,iI:-5,iK:-5,iL:-5,iP:-5,iR:-5,iT:-21,iU:-21,iV:-21,iW:-21,iY:-21,ip:-11,iv:-15,iw:-15,iy:-15,'j"':-5,"j&":-5,"j'":-5,"j*":-5,"j,":-16,"j.":-16,"j/":-13,"j:":-14,"j;":-14,"j?":-3,jA:-14,jB:-7,jC:-3,jD:-7,jE:-7,jF:-7,jG:-3,jH:-7,jI:-7,jK:-7,jL:-7,jO:-3,jP:-7,jQ:-3,jR:-7,jU:-26,jV:-18,jW:-18,jX:-10,jY:-21,j_:-35,jb:-3,jg:-10,jh:-3,jk:-3,jl:-3,jp:-3,"k)":-10,"k*":-3,"k-":-21,"k:":-3,"k;":-3,"k?":-5,kA:16,kB:-5,kC:-4,kD:-5,kE:-5,kF:-5,kG:-4,kH:-5,kI:-5,kJ:-21,kK:-5,kL:-5,kO:-4,kP:-5,kQ:-4,kR:-5,kT:-43,kU:-43,kV:-72,kW:-59,kX:5,kY:-76,kZ:8,"k\\":-3,"k]":-10,kc:-19,kd:-19,ke:-19,ko:-19,kp:-10,kq:-19,ks:-7,"k}":-10,'l"':-23,"l&":-13,"l'":-23,"l)":-3,"l*":-21,"l-":-5,"l?":-5,lJ:-3,lT:-23,lU:-26,lV:-43,lW:-38,lY:-45,"l\\":-5,"l]":-3,la:-8,lg:-8,lp:-18,lu:-10,lv:-10,lw:-10,ly:-10,"l}":-3,'m"':-59,"m'":-59,"m)":-14,"m*":-72,"m?":-7,mB:-5,mC:-3,mD:-5,mE:-5,mF:-5,mG:-3,mH:-5,mI:-5,mJ:-21,mK:-5,mL:-5,mO:-3,mP:-5,mQ:-3,mR:-5,mT:-63,mU:-35,mV:-92,mW:-84,mY:-76,"m\\":-54,"m]":-14,mp:-15,mt:-4,mu:-4,mv:-27,mw:-27,my:-27,"m}":-14,'n"':-59,"n'":-59,"n)":-14,"n*":-72,"n?":-7,nB:-5,nC:-3,nD:-5,nE:-5,nF:-5,nG:-3,nH:-5,nI:-5,nJ:-21,nK:-5,nL:-5,nO:-3,nP:-5,nQ:-3,nR:-5,nT:-63,nU:-35,nV:-92,nW:-84,nY:-76,"n\\":-54,"n]":-14,np:-15,nt:-4,nu:-4,nv:-27,nw:-27,ny:-27,"n}":-14,'o"':-43,"o'":-43,"o)":-14,"o*":-27,"o,":-27,"o-":10,"o.":-27,"o/":-19,"o:":-3,"o;":-3,"o?":-3,oA:-43,oB:-23,oD:-23,oE:-23,oF:-23,oH:-23,oI:-23,oJ:-25,oK:-23,oL:-23,oM:-8,oN:-8,oP:-23,oR:-23,oS:-7,oT:-65,oU:-41,oV:-81,oW:-70,oX:-21,oY:-81,"o\\":-21,"o]":-14,o_:-54,ob:-7,oh:-7,ok:-7,ol:-7,op:-8,ot:-7,ou:-7,ox:-19,oy:-10,"o}":-14,'p"':-43,"p'":-43,"p)":-14,"p*":-27,"p,":-27,"p-":10,"p.":-27,"p/":-19,"p:":-3,"p;":-3,"p?":-3,pA:-43,pB:-23,pD:-23,pE:-23,pF:-23,pH:-23,pI:-23,pJ:-25,pK:-23,pL:-23,pM:-8,pN:-8,pP:-23,pR:-23,pS:-7,pT:-65,pU:-41,pV:-81,pW:-70,pX:-21,pY:-81,"p\\":-21,"p]":-14,p_:-54,pb:-7,ph:-7,pk:-7,pl:-7,pp:-8,pt:-7,pu:-7,px:-19,py:-10,"p}":-14,'q"':-25,"q&":-3,"q'":-25,"q)":10,"q*":-23,"q,":32,"q.":13,"q/":10,"q;":33,"q?":-3,qA:-14,qB:-23,qD:-23,qE:-23,qF:-23,qH:-23,qI:-23,qJ:33,qK:-23,qL:-23,qM:-16,qN:-16,qP:-23,qR:-23,qT:-54,qU:-45,qV:-86,qW:-72,qX:-5,qY:-86,"q\\":-14,"q]":10,q_:-3,qa:-8,qb:-7,qh:-7,qj:39,qk:-7,ql:-7,qy:19,"q}":10,'r"':5,"r&":-11,"r'":5,"r)":-25,"r*":16,"r,":-93,"r-":-32,"r.":-93,"r/":-52,"r:":-8,"r;":-8,"r?":-5,"r@":-13,rA:-60,rB:-25,rD:-25,rE:-25,rF:-25,rH:-25,rI:-25,rJ:-30,rK:-25,rL:-25,rM:-16,rN:-16,rP:-25,rR:-25,rT:-5,rU:-30,rV:-51,rW:-43,rX:-59,rY:-52,"r]":-25,r_:-71,ra:-10,rb:-10,rc:-14,rd:-14,re:-14,rg:-14,rh:-10,rk:-10,rl:-10,ro:-14,rq:-14,rs:-8,rt:18,rv:10,rw:10,ry:10,"r}":-25,'s"':-21,"s'":-21,"s)":-14,"s*":-14,"s,":-23,"s.":-23,sA:-10,sB:-21,sD:-21,sE:-21,sF:-21,sH:-21,sI:-21,sJ:-27,sK:-21,sL:-21,sM:-10,sN:-10,sP:-21,sR:-21,sT:-35,sU:-25,sV:-76,sW:-65,sY:-94,"s\\":-25,"s]":-14,s_:-41,sb:-10,sf:-4,sh:-10,sk:-10,sl:-10,sp:-9,"s}":-14,'t"':5,"t'":5,"t-":-10,tA:16,tJ:-10,tU:-13,tV:-43,tW:-32,tY:-48,tZ:7,t_:13,tt:7,tv:8,tw:8,'u"':-40,"u'":-40,"u)":-23,"u*":-38,"u:":-10,"u;":-10,uC:-13,uG:-13,uJ:-29,uO:-13,uQ:-13,uT:-41,uU:-40,uV:-83,uW:-76,uY:-78,"u\\":-21,"u]":-23,uc:-7,ud:-7,ue:-7,ug:-10,uj:-7,uo:-7,up:-11,uq:-7,uv:-21,uw:-21,uy:-21,"u}":-23,'v"':-3,"v&":-17,"v'":-3,"v)":-36,"v*":-3,"v,":-101,"v-":-14,"v.":-101,"v/":-43,"v:":-3,"v;":-3,"v?":-5,"v@":-8,vA:-71,vB:-27,vD:-27,vE:-27,vF:-27,vH:-27,vI:-27,vJ:-41,vK:-27,vL:-27,vM:-21,vN:-21,vP:-27,vR:-27,vT:-14,vU:-25,vV:-54,vW:-45,vX:-54,vY:-59,vZ:-6,"v]":-36,v_:-84,va:-15,vb:-23,vc:-19,vd:-19,ve:-19,vg:-19,vh:-23,vk:-23,vl:-23,vo:-19,vq:-19,vs:-9,vt:7,vv:11,vw:11,vy:11,"v}":-36,'w"':-3,"w&":-17,"w'":-3,"w)":-36,"w*":-3,"w,":-101,"w-":-14,"w.":-101,"w/":-43,"w:":-3,"w;":-3,"w?":-5,"w@":-8,wA:-71,wB:-27,wD:-27,wE:-27,wF:-27,wH:-27,wI:-27,wJ:-41,wK:-27,wL:-27,wM:-21,wN:-21,wP:-27,wR:-27,wT:-14,wU:-25,wV:-54,wW:-45,wX:-54,wY:-59,wZ:-6,"w]":-36,w_:-84,wa:-15,wb:-23,wc:-19,wd:-19,we:-19,wg:-19,wh:-23,wk:-23,wl:-23,wo:-19,wq:-19,ws:-9,wt:7,wv:11,ww:11,wy:11,"w}":-36,"x)":-14,"x-":-25,xA:7,xC:-8,xG:-8,xJ:-19,xO:-8,xQ:-8,xT:-30,xU:-32,xV:-76,xW:-54,xY:-68,"x]":-14,xa:-11,xc:-19,xd:-19,xe:-19,xg:-8,xo:-19,xp:-19,xq:-19,xx:5,"x}":-14,'y"':-3,"y&":-17,"y'":-3,"y)":-36,"y*":-3,"y,":-101,"y-":-14,"y.":-101,"y/":-43,"y:":-3,"y;":-3,"y?":-5,"y@":-8,yA:-71,yB:-27,yD:-27,yE:-27,yF:-27,yH:-27,yI:-27,yJ:-41,yK:-27,yL:-27,yM:-21,yN:-21,yP:-27,yR:-27,yT:-14,yU:-25,yV:-54,yW:-45,yX:-54,yY:-59,yZ:-6,"y]":-36,y_:-84,ya:-15,yb:-23,yc:-19,yd:-19,ye:-19,yg:-19,yh:-23,yk:-23,yl:-23,yo:-19,yq:-19,ys:-9,yt:7,yv:11,yw:11,yy:11,"y}":-36,"z)":-10,"z*":-5,zT:-16,zU:-27,zV:-65,zW:-56,zY:-61,"z]":-10,zp:-8,"z}":-10,"{#":-21,"{&":-21,"{(":-54,"{)":13,"{-":-43,"{:":-43,"{;":-43,"{A":-32,"{C":-21,"{G":-21,"{J":36,"{O":-21,"{Q":-21,"{S":-10,"{U":-10,"{[":-54,"{]":13,"{c":-30,"{d":-30,"{e":-30,"{f":-5,"{j":106,"{m":-16,"{n":-16,"{o":-30,"{q":-30,"{r":-16,"{s":-21,"{t":-10,"{u":-23,"{v":-21,"{w":-21,"{x":-10,"{y":16,"{z":-10,"{{":-54,"{}":13,"})":-54,"},":-43,"}.":-43,"}A":-31,"}T":-21,"}U":-21,"}V":-53,"}W":-43,"}X":-21,"}Y":-43,"}]":-54,"}}":-54}}},Yc=new Set;let qc,Gc=null;function Xc(t,{fontFamily:e,fontSize:n,fontWeight:i,lineHeight:r}){const o=t.split(/\r?\n/),s=da(e),a=i||"normal",l=function(t,e){if(null==e)return 1.4*t;if("string"==typeof e){const n=e.trim();if(n.endsWith("px")){const e=Number.parseFloat(n);return Number.isFinite(e)?e:1.4*t}e=Number(n)}return"number"==typeof e&&Number.isFinite(e)?e>4?e:e*t:1.4*t}(n,r),c=function(){if("undefined"==typeof document)return null;if(void 0!==qc)return qc;const t=document.createElement("canvas");return qc=t.getContext("2d"),qc}();if(c){c.font=`${a} ${n}px ${s}`;const t=o.reduce((t,e)=>{const n=c.measureText(e);return Math.max(t,n.width)},0);return{width:t,height:l*Math.max(o.length,1)}}const h="undefined"==typeof document?null:document.body?Gc||(Gc=document.createElement("span"),Gc.style.position="absolute",Gc.style.top="-10000px",Gc.style.left="-10000px",Gc.style.visibility="hidden",Gc.style.pointerEvents="none",Gc.style.whiteSpace="pre",Gc.style.display="inline-block",Gc.style.padding="0",Gc.style.margin="0",document.body.appendChild(Gc),Gc):null;if(!h)return null;h.style.fontFamily=s,h.style.fontSize=`${n}px`,h.style.fontWeight=String(a),h.style.lineHeight=`${l}px`,h.textContent=t;const u=h.getBoundingClientRect();return t&&u.width<=0&&u.height<=0?null:{width:u.width,height:u.height}}function Kc(t="",e){var n;if(e.width&&e.height)return{width:e.width,height:e.height};if("string"!=typeof t&&"number"!=typeof t)return{width:0,height:0};const{fontFamily:i=Aa,fontSize:r=14,fontWeight:o="normal",lineHeight:s=1.4}=e,a=t.toString();!function(t){var e,n;const i=null===(n=null===(e=ua(t))||void 0===e?void 0:e.split(",")[0])||void 0===n?void 0:n.trim();if(!i||Yc.has(i))return;const r=Uc[i];r&&(wa(r),Yc.add(i))}(i);const l={fontFamily:i,fontSize:parseFloat(r.toString()),fontWeight:o,lineHeight:s},c=null!==(n=Xc(a,l))&&void 0!==n?n:Ca(a,Object.assign(Object.assign({},l),{fontFamily:ua(i)}));return{width:Math.ceil(c.width*Vc),height:Math.ceil(c.height*Vc)}}function Zc(t,e={}){const n=document.createElementNS("http://www.w3.org/2000/svg",t);return Jc(n,e),n}function Qc(t){const e=(new DOMParser).parseFromString(t,"image/svg+xml");if(e.querySelector("parsererror"))throw new Error("Invalid SVG string");return e.documentElement}function Jc(t,e){Object.entries(e).forEach(([e,n])=>{null==n?t.removeAttribute(e):t.setAttribute(e,n)})}function th(t,e,n=!0){return e.reduce((e,i)=>{const r=t.getAttribute(i);return(!n||null!==r&&""!==r&&void 0!==r)&&(e[i]=r),e},{})}function eh(t,e){if(!1===e(t))return;Array.from(t.children).forEach(t=>{eh(t,e)})}function nh(t,e="infographic-defs"){const n=t.querySelector(e?`defs#${e}`:"defs");if(n)return n;const i=Zc("defs");return e&&(i.id=e),t.prepend(i),i}var ih=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function rh(t){return Eh(t)?t.querySelector("span"):null}function oh(t,e){const{textContent:n,attributes:i}=e;if(void 0!==n&&ah(t,n),!i)return;const r=rh(t);let{width:o,height:s}=i;const a={};if(r){if(Object.assign(r.style,function(t){const{"font-size":e,"letter-spacing":n,"line-height":i,fill:r,"stroke-width":o,"font-family":s}=t,a=ih(t,["x","y","width","height","data-horizontal-align","data-vertical-align","font-size","letter-spacing","line-height","fill","stroke-width","text-anchor","dominant-baseline","font-family"]),l={overflow:"visible"};r&&(l.color=r);Object.entries(a).forEach(([t,e])=>{l[aa(t)]=e}),e&&(l.fontSize=`${e}px`);i&&(l.lineHeight="string"==typeof i&&i.endsWith("px")?i:+i);n&&(l.letterSpacing=`${n}px`);o&&(l.strokeWidth=`${o}px`);s&&(l.fontFamily=da(s));return l}(i)),!o||!s){const e=null!=n?n:sh(t),{fontFamily:i,fontSize:a,fontWeight:l,lineHeight:c}=r.style,h=a?parseFloat(String(a)):12,u=Kc(e,{fontFamily:i,fontSize:h,fontWeight:l,lineHeight:c.endsWith("px")?parseFloat(c):(parseFloat(c)||1.4)*h});o||t.hasAttribute("width")||(o=String(u.width)),s||t.hasAttribute("height")||(s=String(u.height))}const{"data-horizontal-align":e,"data-vertical-align":a}=i;Object.assign(r.style,function(t,e){const n={width:"100%",height:"100%",display:"flex",flexWrap:"wrap",wordBreak:"break-word",whiteSpace:"pre-wrap"};switch(t){case"LEFT":n.textAlign="left",n.justifyContent="flex-start";break;case"CENTER":n.textAlign="center",n.justifyContent="center";break;case"RIGHT":n.textAlign="right",n.justifyContent="flex-end"}switch(e){case"TOP":n.alignContent="flex-start",n.alignItems="flex-start";break;case"MIDDLE":n.alignContent="center",n.alignItems="center";break;case"BOTTOM":n.alignContent="flex-end",n.alignItems="flex-end"}return n}(e,a))}const{id:l,x:c,y:h}=i;l&&(a.id=l),void 0!==c&&(a.x=String(c)),void 0!==h&&(a.y=String(h)),void 0!==o&&(a.width=String(o)),void 0!==s&&(a.height=String(s)),Jc(t,a)}function sh(t){const e=rh(t);return e&&(e.innerText||e.textContent)||""}function ah(t,e){const n=rh(t);if(n)try{n.innerText=e}catch(t){n.textContent=e}}function lh(t){const e=rh(t);if(!e)return{};const{color:n,fontSize:i,fontFamily:r,justifyContent:o,alignContent:s,fontWeight:a}=e.style,[l,c]=function(t,e){let n="LEFT",i="TOP";switch(t){case"flex-start":n="LEFT";break;case"center":n="CENTER";break;case"flex-end":n="RIGHT"}switch(e){case"flex-start":i="TOP";break;case"center":i="MIDDLE";break;case"flex-end":i="BOTTOM"}return[n,i]}(o,s),h={"data-horizontal-align":l,"data-vertical-align":c};return r&&(h["font-family"]=ua(r)),a&&(h["font-weight"]=a),i&&(h["font-size"]=String(parseInt(i))),n&&(h.fill=n),{attributes:h,textContent:sh(t)}}const ch=(t,e)=>{var n;return(null===(n=null==t?void 0:t.dataset)||void 0===n?void 0:n.elementType)===e},hh=(t,e)=>t.tagName.toLowerCase()===e.toLowerCase(),uh=t=>ch(t,"title"),dh=t=>ch(t,"desc"),fh=t=>ch(t,"shape"),ph=t=>ch(t,"shapes-group"),gh=t=>ch(t,"illus"),mh=t=>t instanceof SVGElement&&hh(t,"text"),yh=t=>t instanceof SVGElement&&hh(t,"g"),vh=t=>ch(t,"item-icon"),xh=t=>ch(t,"item-icon-group"),bh=t=>ch(t,"item-label"),wh=t=>ch(t,"item-desc"),Mh=t=>ch(t,"item-value"),kh=t=>ch(t,"item-illus"),Ch=t=>ch(t,"btns-group"),Oh=t=>ch(t,"rough-element"),jh=t=>ch(t,"rough-volume");function Eh(t){return hh(t,"foreignObject")}function _h(t){const e=Lh(t);return["title","desc","item-label","item-desc"].includes(e)}function Sh(t){if(!t)return!1;if(!_h(t))return!1;const e=rh(t);return!!e&&e.hasAttribute("contenteditable")}function $h(t){const e=t.tagName.toLowerCase();return["rect","circle","ellipse","line","polygon","polyline","path"].includes(e)}function Ah(t){return vh(t)||xh(t)}function zh(t,e){t.setAttribute("data-element-type",e)}function Ph(t,e){return t.querySelector(`[data-element-type="${e}"]`)}function Lh(t){return Ah(t)?"item-icon":t.getAttribute("data-element-type")||"unknown"}var Ih=n("./node_modules/.pnpm/flru@1.0.2/node_modules/flru/dist/flru.mjs"),Th=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};const Rh=globalThis.fetch,Bh=(0,Ih.A)(1024),Wh=new Map;function Hh(t){const e=function(t){const e=Array.from(t.headers.entries());return 0===e.length?"":(e.sort(([t],[e])=>t.toLowerCase().localeCompare(e.toLowerCase())),e.map(([t,e])=>`${t.toLowerCase()}:${e}`).join("|"))}(t);return e?`${t.method}:${t.url}:${e}`:`${t.method}:${t.url}`}function Nh(t){return new Response(t.body.slice(0),t.init)}function Fh(t,e){return Th(this,void 0,void 0,function*(){const n=new Request(t,e);if("GET"!==n.method)return Rh(n);const i=Hh(n);if(Bh.has(i))return Nh(Bh.get(i));let r=Wh.get(i);r||(r=function(t,e){return Th(this,void 0,void 0,function*(){try{const n=yield Rh(t),i={body:yield n.arrayBuffer(),init:{status:n.status,statusText:n.statusText,headers:Array.from(n.headers.entries())}};return n.ok&&Bh.set(e,i),i}finally{Wh.delete(e)}})}(n,i),Wh.set(i,r));return Nh(yield r)})}function Dh(t){let e=0;if(0===t.length)return e.toString();for(let n=0;n<t.length;n++){e=(e<<5)-e+t.charCodeAt(n),e&=e}return Math.abs(e).toString()}const Vh=new WeakMap;function Uh(t){const{stroke:e,fill:n}=th(t,["fill","stroke"]);t.style.color=n||e||"currentColor"}function Yh(t){return"use"===t.tagName?t:t.querySelector("use")}function qh(t){const e=Yh(t);if(!e)return{};return th(e,["width","height","x","y","width","height","fill","fill-opacity","stroke","opacity"])}const Gh=!("undefined"==typeof process||!process.versions||!process.versions.node),Xh=t=>((t,e=",")=>t.split(e).map(t=>parseInt(t,10)))(t);function Kh(...t){return t.map(t=>t.replace(/^\/+|\/+$/g,"")).filter(t=>t.trim().length>0).join("/")}function Zh(t){const e=t.getAttribute("viewBox");if(e){const[t,n,i,r]=e.split(" ").map(Number);return{x:t,y:n,width:i,height:r}}const n=t.getAttribute("width"),i=t.getAttribute("height");return{x:0,y:0,width:Number(n)||0,height:Number(i)||0}}function Qh(t){return`${t.x} ${t.y} ${t.width} ${t.height}`}function Jh(t){return t?"number"==typeof t?[t,t,t,t]:1===t.length?[t[0],t[0],t[0],t[0]]:2===t.length?[t[0],t[1],t[0],t[1]]:3===t.length?[t[0],t[1],t[2],t[1]]:4===t.length?[t[0],t[1],t[2],t[3]]:[0,0,0,0]:[0,0,0,0]}function tu(t,e){if(Gh)eu(t,e);else if(t.isConnected)iu(t,e);else try{const n=new MutationObserver(i=>{i.forEach(i=>{i.addedNodes.forEach(i=>{var r,o;(i===t||i.contains(t))&&(r=t,o=()=>{iu(t,e)},requestAnimationFrame(()=>{const t=()=>{const e=r.getBoundingClientRect();e.width>0&&e.height>0?o():requestAnimationFrame(t)};t()}),n.disconnect())})})});n.observe(document,{childList:!0,subtree:!0})}catch(n){eu(t,e)}}function eu(t,e){const n=Zh(t),[i,r,o,s]=e;Jc(t,{viewBox:`${n.x-s} ${n.y-i} ${n.width+s+r} ${n.height+i+o}`})}function nu(t,e){const n=t.getBBox(),i=t.getBoundingClientRect(),r=i.width>0?n.width/i.width:1,o=i.height>0?n.height/i.height:1,[s,a,l,c]=e,h=s*o,u=c*r;return`${n.x-u} ${n.y-h} ${n.width+u+a*r} ${n.height+h+l*o}`}function iu(t,e){Jc(t,{viewBox:nu(t,e)})}function ru(t,e,n){var i;const r=function(t){if(!t)return document;if(t instanceof Document||t instanceof ShadowRoot)return t;if(!t.isConnected)return document;const e=t.getRootNode();return e instanceof ShadowRoot?e:document}(n);if(function(t,e){return t instanceof Document?Boolean(t.getElementById(e)):Boolean(t.querySelector(`#${e}`))}(r,t))return;const o=(r instanceof Document?r:null!==(i=r.ownerDocument)&&void 0!==i?i:document).createElement("style");o.id=t,o.textContent=e,r instanceof Document?r.head.appendChild(o):r.appendChild(o)}var ou=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function su(t){const{id:e,x:n=0,y:i=0,width:r,height:o,alignHorizontal:s="left",alignVertical:a="top",children:l,fontSize:c=14,fontFamily:h,fontStyle:u,fontWeight:d,textDecoration:f,letterSpacing:p,wordSpacing:g,opacity:m,fill:y="black",lineHeight:v,wordWrap:x,backgroundColor:b="none",backgroundOpacity:w=1,backgroundRadius:M=0}=t,k=ou(t,["id","x","y","width","height","alignHorizontal","alignVertical","children","fontSize","fontFamily","fontStyle","fontWeight","textDecoration","letterSpacing","wordSpacing","opacity","fill","lineHeight","wordWrap","backgroundColor","backgroundOpacity","backgroundRadius"]);let C=r,O=o,j=0,E=0;if(!C||!O){const e=Kc(l,t);C||(C=e.width),O||(O=e.height)}r&&(j="center"===s?C/2:"right"===s?C:0),o&&(E="middle"===a?O/2:"bottom"===a?O:0);const _=Object.entries(Object.assign(Object.assign({width:C,height:O},void 0!==v&&{"line-height":v}),void 0!==x&&{"data-word-wrap":x})).reduce((t,[e,n])=>Object.assign(Object.assign({},t),{[e]:n}),{}),S=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"data-element-type":"text",width:C,height:O,x:j,y:E,"data-x":0,"data-y":0,fill:y,fontSize:c,textAnchor:"center"===s?"middle":"right"===s?"end":"start",dominantBaseline:"middle"===a?"central":"bottom"===a?"baseline":"hanging","data-horizontal-align":s.toUpperCase(),"data-vertical-align":a.toUpperCase(),children:l},_),k),h&&{fontFamily:h}),u&&{fontStyle:u}),d&&{fontWeight:d}),f&&"none"!==f&&{textDecoration:f}),p&&{letterSpacing:p}),g&&{wordSpacing:g}),void 0!==m&&1!==m&&{opacity:m}),$=Object.assign(Object.assign(Object.assign({},0!==n||0!==i?{x:n,y:i,transform:`translate(${n}, ${i})`}:{}),{width:C,height:O}),e&&{id:e}),A=b&&"none"!==b?{"data-element-type":"shape",x:0,y:0,width:C,height:O,fill:b,fillOpacity:w,rx:M,ry:M}:void 0;return{type:"g",props:Object.assign(Object.assign({},$),{children:[...A?[{type:"rect",props:A}]:[],{type:"text",props:S}]})}}function au(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)&&"type"in t}function lu(t){return cu(t).filter(au)}function cu(t,e=[]){var n;if(!t||"boolean"==typeof t)return e;if(Array.isArray(t))t.forEach(t=>cu(t,e));else if(function(t){return!(!t||"object"!=typeof t||Array.isArray(t))&&t.type===D}(t)){const i=null===(n=t.props)||void 0===n?void 0:n.children;(Array.isArray(i)?i:[i]).filter(Boolean).forEach(t=>{cu(t,e)})}else e.push(t);return e}function hu(t){return"number"==typeof t&&!Number.isNaN(t)&&Number.isFinite(t)}function uu(t){if(!t||0===t.length)return{x:0,y:0,width:0,height:0};let e=1/0,n=1/0,i=-1/0,r=-1/0;for(const o of t){const{x:t,y:s,width:a,height:l}=o,c=t+a,h=s+l;t<e&&(e=t),s<n&&(n=s),c>i&&(i=c),h>r&&(r=h)}return e===1/0||n===1/0||i===-1/0||r===-1/0?{x:0,y:0,width:0,height:0}:{x:e,y:n,width:Math.max(0,i-e),height:Math.max(0,r-n)}}function du(t){var e,n,i,r;if(!t)return{x:0,y:0,width:0,height:0};if(Array.isArray(t)){return fu(lu(t))}if("object"!=typeof t)return{x:0,y:0,width:0,height:0};const{type:o,props:s={}}=t;if(ku(t)){return du(Cu(t))}if("function"==typeof o){const t=null!==(e=s.x)&&void 0!==e?e:0,i=null!==(n=s.y)&&void 0!==n?n:0,r=s.width,a=s.height;if(hu(r)&&hu(a))return{x:t,y:i,width:r,height:a};const l=o(s);if(!l)return{x:t,y:i,width:null!=r?r:0,height:null!=a?a:0};if(Array.isArray(l)){const e=fu(lu(l));if(hu(r)&&hu(a))return{x:t,y:i,width:r,height:a};return{x:t+e.x,y:i+e.y,width:0!==e.width?e.width:null!=r?r:0,height:0!==e.height?e.height:null!=a?a:0}}if(au(l)){const e=l,n=du(e);if(function(t,e){if(!(null==t?void 0:t.props)||!e)return!1;const n=t.props;if(hu(n.x)&&hu(n.y)&&hu(e.x)&&hu(e.y)&&n.x===e.x&&n.y===e.y){const t=hu(n.width)&&hu(n.height),i=hu(e.width)&&hu(e.height);if(!t&&!i)return!0}if(hu(n.x)&&hu(n.y)&&hu(n.width)&&hu(n.height)&&hu(e.x)&&hu(e.y)&&hu(e.width)&&hu(e.height))return n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height;return!1}(e,s))return n;const o=e.props&&hu(e.props.width)&&hu(e.props.height),c=pu(e).flatMap(t=>lu(t)).length>0,h=e.props&&e.props.x===s.x&&e.props.y===s.y;if(o)return{x:h?n.x:t+n.x,y:h?n.y:i+n.y,width:n.width,height:n.height};if(hu(r)&&hu(a))return c?{x:h?n.x:t,y:h?n.y:i,width:r,height:a}:{x:h?n.x:t+n.x,y:h?n.y:i+n.y,width:r,height:a};return{x:h?n.x:t+n.x,y:h?n.y:i+n.y,width:0!==n.width?n.width:null!=r?r:0,height:0!==n.height?n.height:null!=a?a:0}}return{x:t,y:i,width:null!=r?r:0,height:null!=a?a:0}}const a=null!==(i=s.x)&&void 0!==i?i:0,l=null!==(r=s.y)&&void 0!==r?r:0,c=hu(s.width)?s.width:void 0,h=hu(s.height)?s.height:void 0;if(hu(c)&&hu(h))return{x:a,y:l,width:c,height:h};const u=pu(t).flatMap(t=>lu(t));if(u.length>0){const t=fu(u);return{x:a+t.x,y:l+t.y,width:hu(c)?c:t.width,height:hu(h)?h:t.height}}return{x:a,y:l,width:null!=c?c:0,height:null!=h?h:0}}function fu(t){if(!t||!Array.isArray(t)||0===t.length)return{x:0,y:0,width:0,height:0};const e=[];for(const n of t){const t=lu(n);for(const n of t){const t=du(n);t&&e.push(t)}}return uu(e)}function pu(t){var e;const n=null===(e=t.props)||void 0===e?void 0:e.children;return n?Array.isArray(n)?n:[n]:[]}function gu(t){var e;return null==t||"boolean"==typeof t?[]:Array.isArray(t)?cu(t):"object"==typeof t?cu(null===(e=t.props)||void 0===e?void 0:e.children):[t]}var mu=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const yu=(t,e)=>{const{type:n,props:i}=t,r=mu(t,["type","props"]);return Object.assign({type:n,props:Object.assign(Object.assign({},i),e)},r)},vu=()=>({defs:new Map});function xu(t){const e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return String(t).replace(/[&<>"']/g,t=>e[t])}const bu={className:"class",viewBox:"viewBox",preserveAspectRatio:"preserveAspectRatio",gradientUnits:"gradientUnits",gradientTransform:"gradientTransform",patternUnits:"patternUnits",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",maskUnits:"maskUnits",maskContentUnits:"maskContentUnits",clipPathUnits:"clipPathUnits",primitiveUnits:"primitiveUnits",filterUnits:"filterUnits",markerUnits:"markerUnits",markerWidth:"markerWidth",markerHeight:"markerHeight",refX:"refX",refY:"refY",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink",xlinkHref:"href",xlinkTitle:"xlink:title",xlinkShow:"xlink:show",xlinkActuate:"xlink:actuate",textLength:"textLength",lengthAdjust:"lengthAdjust",attributeName:"attributeName",attributeType:"attributeType",repeatCount:"repeatCount",repeatDur:"repeatDur",calcMode:"calcMode",keyTimes:"keyTimes",keySplines:"keySplines",keyPoints:"keyPoints",stdDeviation:"stdDeviation",baseFrequency:"baseFrequency",numOctaves:"numOctaves",pathLength:"pathLength",systemLanguage:"systemLanguage",requiredFeatures:"requiredFeatures",requiredExtensions:"requiredExtensions"};const wu=new Map;function Mu(t){const e=Symbol("layout");wu.set(e,t);return t=>({type:e,props:t})}function ku(t){return null!=t&&"object"==typeof t&&!Array.isArray(t)&&"symbol"==typeof t.type&&wu.has(t.type)}function Cu(t,e=vu()){const n=wu.get(t.type);if(!n)return console.warn("Layout function not found for symbol:",t.type),t;return n(gu(t).filter(t=>"object"==typeof t),t.props,e)}var Ou=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function ju(t,e){if(null==t||"boolean"==typeof t)return null;if("string"==typeof t||"number"==typeof t)return t;if(Array.isArray(t))return t.map(t=>ju(t,e)).filter(Boolean);if(ku(t)){return ju(Cu(t,e),e)}if("function"==typeof t.type){return ju(t.type(t.props),e)}const n=gu(t).map(t=>ju(t,e)).filter(Boolean);return t.type===D?n:t.type===Y?(n.forEach(t=>{"object"==typeof t&&t.props.id&&e.defs.set(t.props.id,t)}),null):n.length?yu(t,{children:n}):t}function Eu(t,e){if(null==t)return"";if("string"==typeof t)return xu(t);if("number"==typeof t)return String(t);const{type:n,props:i}=t;if(!n)return"";const r=gu(t);if(n===D)return r.map(t=>Eu(t,e)).filter(Boolean).join("");if(n===Y)return"";if("function"==typeof n||ku(t))return console.warn("Unexpected unprocessed component in render:",t),"";const o=Su(i),s=r.map(t=>Eu(t,e)).filter(Boolean).join(""),a=String(n);return s?`<${a}${o}>${s}</${a}>`:`<${a}${o} />`}function _u(t,e={}){const n=vu(),i=ju(t,n);if(!i)return"";const r=Array.isArray(i)?i.map(t=>Eu(t,n)).join(""):Eu(i,n),{x:o,y:s,width:a,height:l,style:c}=e,h=Ou(e,["x","y","width","height","style"]),u=Object.assign(Object.assign({},h),{xmlns:"http://www.w3.org/2000/svg"});if(!u.viewBox)if(a&&l)u.viewBox=`${null!=o?o:0} ${null!=s?s:0} ${null!=a?a:0} ${null!=l?l:0}`;else{const t=du(i);if(t){const{x:e,y:n,width:i,height:r}=t;u.viewBox=`${e} ${n} ${i} ${r}`}}const d=Su(u),f=function(t){if(!t||0===Object.keys(t).length)return"";const e=Object.entries(t).map(([t,e])=>`${t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}: ${e};`).join("");return` style="${xu(e)}"`}(c);return`<svg${d}${f}>${n.defs.size?`<defs>${Array.from(n.defs.values()).map(t=>Eu(t,n)).join("")}</defs>`:""}${r}</svg>`}function Su(t){if(!t)return"";const e=Ou(t,["children"]);return Object.entries(e).filter(([,t])=>null!=t).map(([t,e])=>{var n;return` ${bu[n=t]?bu[n]:n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}="${"string"==typeof e?xu(String(e)):String(e)}"`}).join("")}var $u=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Au=t=>{const{indexes:e}=t,n=$u(t,["indexes"]);return V(J,Object.assign({},{fill:"#B9EBCA",fillOpacity:.3,width:20,height:20,"data-indexes":e,"data-element-type":"btn-add"},n))},zu=t=>{const{indexes:e}=t,n=$u(t,["indexes"]);return V(J,Object.assign({},{fill:"#F9C0C0",fillOpacity:.3,width:20,height:20,"data-indexes":e,"data-element-type":"btn-remove"},n))},Pu=t=>V(X,Object.assign({"data-element-type":"btns-group",width:0,height:0},t,{display:"none"})),Lu=()=>V(D,{});var Iu=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Tu=t=>{var{indexes:e}=t,n=Iu(t,["indexes"]);const i=Object.assign(Object.assign({},{fill:"lightgray"}),n);return e?(i["data-indexes"]=e,i["data-element-type"]="item-illus"):i["data-element-type"]="illus",V(J,Object.assign({},i))};var Ru=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Bu=t=>{var e,{indexes:n,lineNumber:i=2,children:r}=t,o=Ru(t,["indexes","lineNumber","children"]);if(!r)return null;const s=Object.assign({fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:r},o);return null!==(e=s.height)&&void 0!==e||(s.height=Math.ceil(i*+s.lineHeight*+s.fontSize)),V(su,Object.assign({},s,{"data-indexes":n,"data-element-type":"item-desc"}))};var Wu=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Hu=t=>{const{indexes:e,size:n=32}=t,i=Wu(t,["indexes","size"]),r=Object.assign({fill:"lightgray",width:n,height:n},i);return V(J,Object.assign({},r,{"data-indexes":e,"data-element-type":"item-icon"}))},Nu=t=>{const{indexes:e,size:n=50,fill:i,colorBg:r="white"}=t,o=Wu(t,["indexes","size","fill","colorBg"]),s=n/Math.SQRT2*.9,a=(n-s)/2,l=Object.assign(Object.assign({fill:r},o),{x:a,y:a,width:s,height:s});return U(X,Object.assign({},o,{width:n,height:n,"data-element-type":"item-icon-group",children:[V(G,{width:n,height:n,fill:i,"data-element-type":"shape"}),V(J,Object.assign({},l,{"data-indexes":e,"data-element-type":"item-icon"}))]}))};var Fu=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Du=t=>{var e,{indexes:n,children:i}=t,r=Fu(t,["indexes","children"]);const o=Object.assign({fontSize:18,fontWeight:"bold",fill:"#252525",lineHeight:1.4,children:i},r);return null!==(e=o.height)&&void 0!==e||(o.height=Math.ceil(+o.lineHeight*+o.fontSize)),V(su,Object.assign({},o,{"data-indexes":n,"data-element-type":"item-label"}))},Vu=t=>V(X,Object.assign({"data-element-type":"items-group"},t));var Uu=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Yu=t=>{var e,{indexes:n,value:i,formatter:r=t=>String(t)}=t,o=Uu(t,["indexes","value","formatter"]);const s=Object.assign({fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:r(i),"data-value":i},o);return null!==(e=s.height)&&void 0!==e||(s.height=Math.ceil(+s.lineHeight*+s.fontSize)),V(su,Object.assign({},s,{"data-indexes":n,"data-element-type":"item-value"}))},qu=t=>V(X,Object.assign({"data-element-type":"shapes-group"},t));var Gu=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Xu=Mu((t,e)=>{var n,i,r,o,{horizontal:s,vertical:a}=e,l=Gu(e,["horizontal","vertical"]);if(!t||0===t.length)return V(X,Object.assign({},l));const c=t.map(t=>du(t)),h=fu(t),u=null!==(n=l.x)&&void 0!==n?n:h.x,d=null!==(i=l.y)&&void 0!==i?i:h.y,f=null!==(r=l.width)&&void 0!==r?r:h.width,p=null!==(o=l.height)&&void 0!==o?o:h.height,g=t.map((t,e)=>{const n=c[e],i=Object.assign({},t.props);if(void 0!==s)switch(s){case"left":i.x=-n.x;break;case"center":i.x=(f-n.width)/2-n.x;break;case"right":i.x=f-n.width-n.x}else void 0===i.x&&(i.x=n.x-u);if(void 0!==a)switch(a){case"top":i.y=-n.y;break;case"middle":i.y=(p-n.height)/2-n.y;break;case"bottom":i.y=p-n.height-n.y}else void 0===i.y&&(i.y=n.y-d);return yu(t,i)}),m=Object.assign(Object.assign({},l),{x:u,y:d,width:f,height:p});return V(X,Object.assign({},m,{children:g}))});var Ku=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Zu=Mu((t,e)=>{var n,i,r,o,s,a,{flexDirection:l="row",justifyContent:c="flex-start",alignItems:h="flex-start",alignContent:u="flex-start",flexWrap:d="nowrap",gap:f=0}=e,p=Ku(e,["flexDirection","justifyContent","alignItems","alignContent","flexWrap","gap"]);if(!t||0===t.length)return V(X,Object.assign({},p));const g="row"===l||"row-reverse"===l,m="row-reverse"===l||"column-reverse"===l,y=t.map(t=>du(t)),v=fu(t),x=null!==(n=p.width)&&void 0!==n?n:v.width,b=null!==(i=p.height)&&void 0!==i?i:v.height,w=void 0!==p.width&&void 0!==p.height,M=[];if("wrap"===d&&w){let e=[],n=[],i=0;for(let r=0;r<t.length;r++){const o=t[r],s=y[r],a=g?s.width:s.height;0===e.length||i+f+a<=(g?x:b)?(e.push(o),n.push(s),i+=(e.length>1?f:0)+a):(M.push({children:e,bounds:n}),e=[o],n=[s],i=a)}e.length>0&&M.push({children:e,bounds:n})}else M.push({children:t,bounds:y});const k=[];let C=0;const O=[];if(M.forEach(t=>{const{children:e,bounds:n}=t,i=n.reduce((t,e,n)=>t+(g?e.width:e.height)+(n>0?f:0),0),r=Math.max(...n.map(t=>g?t.height:t.width));O.push(r);let o=0;const s=(g?x:b)-i;if(w)switch(c){case"flex-end":o=s;break;case"center":o=s/2;break;default:o=0}let a=f;w&&"space-between"===c&&e.length>1&&(a=s/(e.length-1)+f);let l=o;e.forEach((t,e)=>{const i=n[e],o=g?i.width:i.height,s=g?i.height:i.width,c=g?i.x:i.y,u=g?i.y:i.x;let d,f,p=C;if(w)switch(h){case"flex-end":p=C+r-s;break;case"center":p=C+(r-s)/2;break;default:p=C}g?(d=m?x-l-o-c:l-c,f=p-u):(d=p-u,f=m?b-l-o-c:l-c);const y=yu(t,{x:d,y:f});k.push(y),l+=o+a}),C+=r+f}),M.length>1&&w){const t=O.reduce((t,e)=>t+e,0)+(M.length-1)*f,e=(g?b:x)-t;let n=0;switch(u){case"flex-end":n=e;break;case"center":n=e/2;break;case"space-between":if(M.length>1){const t=e/(M.length-1);let n=0;M.forEach((e,i)=>{const r=M.slice(0,i).reduce((t,e)=>t+e.children.length,0),o=r+e.children.length;for(let t=r;t<o;t++){const e=k[t],i=Object.assign({},e.props);g?i.y=(i.y||0)+n:i.x=(i.x||0)+n,k[t]=yu(e,i)}n+=O[i]+f+(i<M.length-1?t:0)});break}break;default:n=0}0!==n&&"space-between"!==u&&k.forEach((t,e)=>{const i=Object.assign({},t.props);g?i.y=(i.y||0)+n:i.x=(i.x||0)+n,k[e]=yu(t,i)})}if(!w&&"center"===h)if(g){const t=Math.max(...y.map(t=>t.height));k.forEach((e,n)=>{const i=(t-y[n].height)/2,r=Object.assign({},e.props);r.y=(r.y||0)+i,k[n]=yu(e,r)})}else{const t=Math.max(...y.map(t=>t.width));k.forEach((e,n)=>{const i=(t-y[n].width)/2,r=Object.assign({},e.props);r.x=(r.x||0)+i,k[n]=yu(e,r)})}const j=fu(k),E=Object.assign(Object.assign({},p),{x:null!==(r=p.x)&&void 0!==r?r:v.x,y:null!==(o=p.y)&&void 0!==o?o:v.y,width:null!==(s=p.width)&&void 0!==s?s:j.width,height:null!==(a=p.height)&&void 0!==a?a:j.height});return V(X,Object.assign({},E,{children:k}))}),Qu=new Map;function Ju(t,e){Qu.set(t,e)}Ju("light",{colorBg:"#ffffff"}),Ju("dark",{colorBg:"#1F1F1F",base:{text:{fill:"#fff"}}}),Ju("hand-drawn",{base:{text:{"font-family":"851tegakizatsu"}},stylize:{type:"rough"}}),wt(Fi);const td=({colorPrimary:t,colorBg:e="#ffffff",isDarkMode:n=!1})=>{const i=Dt(t),r=Dt(e),o=rd({primaryColor:i,bgColor:r});return od(o,{primaryColor:i,bgColor:r,isDarkMode:n})},ed=t=>{const e=$r(Dt(t)),n=Object.assign(Object.assign({},e),{l:Math.min(1,e.l+.2)});return jr(n)},nd=(t,e)=>{const n=Dt(t),i=Dt("#262626"),r=Dt("#ffffff"),o=Sr(i,n);return Sr(r,n)>=3?jr(r):o>=4.5?jr(i):"#ffffff"},id=(t,e)=>{const n=$r(t);if(e){return sd(Object.assign(Object.assign({},n),{l:Math.min(1,n.l+.1)}),"#1f1f1f")}if(n.l>.95)return"#ffffff";return sd(Object.assign(Object.assign({},n),{l:Math.min(1,n.l+.05)}),"#ffffff")},rd=({primaryColor:t,bgColor:e})=>({colorPrimary:sd(t,"#FF356A"),colorBg:sd(e,"#ffffff"),colorWhite:"#ffffff"}),od=(t,{primaryColor:e,bgColor:n,isDarkMode:i})=>{const r=((t,e)=>{if(e)return"#ffffff";const n=Dt("#262626");return Sr(n,t)>=7?jr(n):"#000000"})(n,i),o=((t,e)=>Er(Object.assign(Object.assign({},t),{alpha:e?.2:.1}))||"#ffffff")(e,i);return Object.assign(Object.assign({},t),{isDarkMode:i,colorPrimaryBg:o,colorText:r,colorTextSecondary:ed(r),colorPrimaryText:nd(o),colorBgElevated:id(n,i)})};function sd(t,e="#000000"){var n;return null!==(n=jr(t))&&void 0!==n?n:e}const ad="#FF356A";function ld(t){var e;return(null===(e=null==t?void 0:t.themeConfig)||void 0===e?void 0:e.colorPrimary)||ad}function cd(t){var e;const{themeConfig:n={},data:i}=t,{colorPrimary:r,palette:o}=n;return o&&0!==o.length?i.items.map((t,e)=>Va(o,[e],i.items.length)||ad):Array((null===(e=null==i?void 0:i.items)||void 0===e?void 0:e.length)||1).fill(r||ad)}function hd(t,e){var n,i,r;return Va(null===(n=null==t?void 0:t.themeConfig)||void 0===n?void 0:n.palette,e,null===(r=null===(i=t.data)||void 0===i?void 0:i.items)||void 0===r?void 0:r.length)}function ud(t,e){var n;const{colorBg:i=(null===(n=null==e?void 0:e.themeConfig)||void 0===n?void 0:n.colorBg)||"white",colorPrimary:r=(e?ld(e):"black")}=t;return td({colorPrimary:r,isDarkMode:zr(i),colorBg:i})}const dd=(t,e,n,i,r,o,s)=>{const a=Math.cos(n),l=Math.sin(n),c=-l,h=a,u=s,d=.55*s;if("arrow"===i){return[V(K,{d:`M ${t-a*u+c*d} ${e-l*u+h*d} L ${t} ${e} L ${t-a*u-c*d} ${e-l*u-h*d}`,stroke:r,strokeWidth:Math.max(1.5,o),strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]}if("diamond"===i){const n=1.25*u,i=.75*d,s=t-a*n*.5,f=e-l*n*.5;return[V(Q,{points:[{x:t,y:e},{x:s+c*i,y:f+h*i},{x:t-a*n,y:e-l*n},{x:s-c*i,y:f-h*i}],fill:r,stroke:r,strokeWidth:Math.max(1,.8*o)})]}return[V(Q,{points:[{x:t,y:e},{x:t-a*u+c*d,y:e-l*u+h*d},{x:t-a*u-c*d,y:e-l*u-h*d}],fill:r,stroke:r,strokeWidth:Math.max(1,.8*o)})]},fd=t=>{const{x:e,y:n,width:i,height:r,radio:o=.25}=t,s=r*o,a=.5*r,l=r*(1-o);return{LT:{x:e,y:n+s},LC:{x:e,y:n+a},LB:{x:e,y:n+l},RT:{x:e+i,y:n+s},RC:{x:e+i,y:n+a},RB:{x:e+i,y:n+l}}},pd=(t,e)=>{const n=t.length;if(4===n){const n=t[0],i=t[1],r=t[2],o=t[3];return 0===e?Math.atan2(i[1]-n[1],i[0]-n[0]):Math.atan2(o[1]-r[1],o[0]-r[0])}if(3===n){const n=t[0],i=t[1],r=t[2];return 0===e?Math.atan2(i[1]-n[1],i[0]-n[0]):Math.atan2(r[1]-i[1],r[0]-i[0])}if(2===n){const e=t[0],n=t[1];return Math.atan2(n[1]-e[1],n[0]-e[0])}return 0},gd=(t,e=10)=>{const n=t.length,i=((t,e=.5)=>{const n=t.length;if(4===n){const[n,i,r,o]=t,s=1-e;return[Math.pow(s,3)*n[0]+3*Math.pow(s,2)*e*i[0]+3*s*Math.pow(e,2)*r[0]+Math.pow(e,3)*o[0],Math.pow(s,3)*n[1]+3*Math.pow(s,2)*e*i[1]+3*s*Math.pow(e,2)*r[1]+Math.pow(e,3)*o[1]]}if(3===n){const[n,i,r]=t,o=1-e;return[Math.pow(o,2)*n[0]+2*o*e*i[0]+Math.pow(e,2)*r[0],Math.pow(o,2)*n[1]+2*o*e*i[1]+Math.pow(e,2)*r[1]]}if(2===n){const[n,i]=t;return[n[0]+(i[0]-n[0])*e,n[1]+(i[1]-n[1])*e]}return t[0]||[0,0]})(t);return 4===n&&(i[0]+=e),i};function md(t,e){const{depth:n,originalIndexes:i,flatIndex:r}=t;switch(e){case"level":return[n];case"branch":return 0===n?[0]:[i[1]+1];case"node":return i;case"node-flat":return void 0!==r?[r]:(console.warn("node-flat mode requires flatIndex in HierarchyNode, falling back to originalIndexes"),i);default:return[0]}}function yd(t,e=[]){const n=Object.assign({},t),i={};return["indexes","data","datum","positionH","positionV","themeColors","valueFormatter",...e].forEach(t=>{t in n&&(i[t]=n[t],delete n[t])}),["x","y","width","height"].forEach(e=>{e in t&&(n[e]=t[e])}),[i,n]}function vd(t,e){var n;return 0===t.length?()=>null:void 0===e?t[0]:null!==(n=t[e])&&void 0!==n?n:t[0]}const xd=new Map;function bd(t,e){xd.set(t,e)}bd("badge-card",{component:t=>{const[{datum:e,indexes:n,width:i=200,height:r=80,iconSize:o=24,badgeSize:s=32,gap:a=8,positionH:l="normal",themeColors:c,valueFormatter:h},u]=yd(t,["width","height","iconSize","badgeSize","gap"]),d=e.value,f=void 0!==d,p=!!e.desc,g=!!e.icon,m=`${c.colorPrimary}-badge`,y="flipped"===l?i-a-s:a,v=g?"flipped"===l?a:s+2*a:a,x=i-2*a,b=g?i-s-3*a:x,w=a+14+18+8,M=w-a,k=p?a:(r-s)/2,C=f||p?a:(r-14)/2,O=g||"center"!==l?"flipped"===l?"right":"left":"center";return U(X,Object.assign({},u,{width:i,height:r,children:[V(q,{children:U("radialGradient",{id:m,cx:"50%",cy:"50%",r:"50%",children:[V("stop",{offset:"0%",stopColor:c.colorPrimary}),V("stop",{offset:"100%",stopColor:(0,wl.A)(c.colorPrimary).darken(20).toHexString()})]})}),V(J,{"data-element-type":"shape",x:0,y:0,width:i,height:r,fill:c.colorPrimaryBg,rx:8,ry:8}),g&&U(D,{children:[V(G,{x:y,y:k,width:s,height:s,fill:`url(#${m})`}),V(Hu,{indexes:n,x:y+(s-o)/2,y:k+(s-o)/2,size:o,fill:c.colorWhite})]}),U(Zu,{flexDirection:"column",x:v,y:C,width:b,height:f||p?M:void 0,alignItems:"center",justifyContent:"center",children:[V(Du,{indexes:n,width:b,alignHorizontal:O,alignVertical:"middle",fontSize:14,fill:c.colorText,children:e.label}),f&&V(Yu,{indexes:n,width:b,alignHorizontal:"flipped"===l?"right":"left",alignVertical:"middle",fontSize:18,lineHeight:1,fontWeight:"bold",fill:c.colorPrimary,value:d,formatter:h})]}),p&&V(Bu,{indexes:n,x:a,y:w,width:x,alignHorizontal:O,fontSize:11,fill:c.colorTextSecondary,lineNumber:2,lineHeight:1.2,wordWrap:!0,children:e.desc})]}))},composites:["icon","label","value","desc"]});bd("candy-card-lite",{component:t=>{const[{indexes:e,datum:n,width:i=280,height:r=140,themeColors:o},s]=yd(t,["width","height"]);return U(X,Object.assign({},s,{children:[V("rect",{x:0,y:0,width:i,height:r,rx:22,ry:22,fill:o.colorPrimaryBg,stroke:o.colorPrimary,"data-element-type":"shape"}),V(K,{x:i-85,y:.5,width:85,height:65,d:"M0 0H62.4495C74.9557 0 85.4549 10.8574 84.4557 23.1875V60.1875L77.8772 62.5839C64.3776 67.6876 48.51 64.6893 37.8662 53.7441L10.2361 25.3312C4.91402 19.8571 1.65356 13.1736 0.435652 6.21819L0 0Z",fill:o.colorBg,"data-element-type":"shape"}),V(Du,{indexes:e,x:20,y:24,width:200,alignHorizontal:"left",alignVertical:"middle",fill:o.colorText,children:n.label}),V(Bu,{indexes:e,x:20,y:58,width:220,height:70,fill:o.colorTextSecondary,alignHorizontal:"left",alignVertical:"top",children:n.desc}),V(Hu,{indexes:e,x:i-48,y:12,width:32,height:32,fill:o.colorPrimary})]}))},composites:["icon","label","desc"]});var wd=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Md=t=>{const{color:e="black",opacity:n=.8}=t,i=wd(t,["color","opacity"]);return V("filter",Object.assign({id:"drop-shadow",x:"-25%",y:"-25%",width:"200%",height:"200%"},i,{children:V("feDropShadow",{dx:"4",dy:"4",stdDeviation:"4","flood-color":e,"flood-opacity":n})}))},kd=t=>{const{id:e="linear-gradient",startColor:n="black",stopColor:i="white",direction:r="left-right"}=t;return U("linearGradient",Object.assign({id:e},{"left-right":{x1:"0%",y1:"0%",x2:"100%",y2:"0%"},"right-left":{x1:"100%",y1:"0%",x2:"0%",y2:"0%"},"top-bottom":{x1:"0%",y1:"0%",x2:"0%",y2:"100%"},"bottom-top":{x1:"0%",y1:"100%",x2:"0%",y2:"0%"}}[r],{children:[V("stop",{offset:"0%",stopColor:n}),V("stop",{offset:"100%",stopColor:i})]}))};bd("capsule-item",{component:t=>{const[{datum:e,indexes:n,width:i=300,height:r=80,gap:o=12,positionH:s="normal",iconPadding:a=r/10,themeColors:l},c]=yd(t,["width","height","gap","iconPadding"]),h=r/2,u=r-2*a,d="flipped"===s,f=!!e.icon,p=f?i-r-o:i-2*o,g=f?d?o:r:o,m=f?d?"right":"left":"center",y={indexes:n,width:p,alignHorizontal:m,alignVertical:"middle",fontSize:16,fontWeight:"600",fill:l.colorWhite},v=du(V(Du,Object.assign({},y,{children:e.label}))),x={indexes:n,width:p,alignHorizontal:m,alignVertical:"top",fontSize:12,lineNumber:1,fill:l.colorWhite},b=du(e.desc?V(Bu,Object.assign({},x,{children:e.desc})):null),w=(r-(v.height+4+b.height))/2,M=w+v.height+4,k=d?i-r+a:a,C=a;return U(X,Object.assign({},c,{children:[V(q,{children:V(Md,{})}),V(J,{x:0,y:0,width:i,height:r,fill:l.colorPrimary,rx:h,ry:h,"data-element-type":"shape"}),e.icon&&U(D,{children:[V(G,{x:k,y:C,width:u,height:u,fillOpacity:.5,fill:l.colorBg,filter:"url(#drop-shadow)"}),V(Nu,{indexes:n,x:k,y:C,size:u,fill:l.colorBg,colorBg:l.colorPrimary})]}),e.label&&V(Du,Object.assign({x:g,y:w},y,{children:e.label})),e.desc&&V(Bu,Object.assign({x:g,y:M},x,{children:e.desc}))]}))},composites:["icon","label","desc"]});function Cd(t,e,n){return wl.A.mix(t,"#ffffff",e).setAlpha(n).toRgbString()}bd("circle-node",{component:t=>{const[{indexes:e,datum:n,themeColors:i,positionH:r="normal",width:o=240,height:s=o},a]=yd(t,["width","height"]),l=Math.min(o,s),c=.7*l,h=(l-c)/2,u=c*Math.sqrt(2)/2,d=(l-u)/2,f=(0,wl.A)(i.colorPrimary),p=Cd(f,80,.2),g=Cd(f,20,.8),m=Cd(f,75,.32),y=Cd(f,45,.4),v=f.clone().darken(5).toRgbString(),x=`${i.colorPrimary}-${r}-outer`,b=`${i.colorPrimary}-${r}-inner`,w="flipped"===r?{x1:"0%",y1:"0%",x2:"100%",y2:"0%"}:{x1:"100%",y1:"0%",x2:"0%",y2:"0%"};return U(X,Object.assign({},a,{children:[U(q,{children:[U("linearGradient",Object.assign({id:x},w,{children:[V("stop",{offset:"0%",stopColor:p}),V("stop",{offset:"100%",stopColor:g})]})),U("linearGradient",Object.assign({id:b},w,{children:[V("stop",{offset:"0%",stopColor:m}),V("stop",{offset:"100%",stopColor:y})]}))]}),V(G,{width:l,height:l,fill:`url(#${x})`,"data-element-type":"shape"}),V(G,{x:h,y:h,width:c,height:c,fill:`url(#${b})`,stroke:"#FFFFFF",strokeWidth:1,"data-element-type":"shape"}),V(Du,{indexes:e,x:d,y:d,width:u,height:u,lineHeight:1.1,alignHorizontal:"center",alignVertical:"middle",fill:v,fontWeight:"500",children:n.label})]}))},composites:["label"]});function Od(t,e,n,i){const r=(i-90)*Math.PI/180;return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}}bd("circular-progress",{component:t=>{var e;const[{datum:n,indexes:i,size:r=120,strokeWidth:o=12,gap:s=8,themeColors:a,valueFormatter:l=t=>`${Math.round(t)}%`},c]=yd(t,["size","strokeWidth","gap"]),h=null!==(e=n.value)&&void 0!==e?e:0,u=Math.min(Math.max(h/100,0),1),d=r/2,f=o/2,p=r-o,g=u>=1,m=function(t,e,n,i,r){const o=Od(t,e,n,r),s=Od(t,e,n,i);return`M ${o.x} ${o.y} A ${n} ${n} 0 ${r-i<=180?"0":"1"} 0 ${s.x} ${s.y}`}(d,d,(r-o)/2,0,360*u),y={x:f,y:f,width:p,height:p};return U(X,Object.assign({},c,{width:r,height:r+s+20,children:[V(J,{width:r,height:r,fill:"none"}),V(G,Object.assign({},y,{fill:"none",stroke:"#f0f0f0",strokeWidth:o,"data-element-type":"shape"})),g?V(G,Object.assign({},y,{fill:"none",stroke:a.colorPrimary,strokeWidth:o,"data-element-type":"shape"})):V(K,{d:m,fill:"none",stroke:a.colorPrimary,strokeWidth:o,strokeLinecap:"round","data-element-type":"shape"}),V(Yu,{indexes:i,x:o,y:o,width:p-o,height:p-o,fontSize:24,fontWeight:"bold",fill:a.colorPrimary,alignHorizontal:"center",alignVertical:"middle",value:h,formatter:l}),V(Du,{indexes:i,x:0,y:r+s,width:r,alignHorizontal:"center",fontSize:12,fill:a.colorTextSecondary,children:n.label})]}))},composites:["label","value"]});bd("compact-card",{component:t=>{const[{datum:e,indexes:n,width:i=200,height:r=60,iconSize:o=20,gap:s=8,positionH:a="normal",themeColors:l,valueFormatter:c},h]=yd(t,["width","height","iconSize","gap"]),u=e.value,d=null!=u,f="compact-shadow",p="flipped"===a?i-s-o:s,g="flipped"===a?s:o+2*s,m=i-o-3*s,y=d?.8*m:m,v=d?.2*m:0;return U(X,Object.assign({},h,{children:[V(q,{children:V("filter",{id:f,children:V("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodOpacity:"0.15"})})}),V(J,{x:0,y:0,width:i,height:r,fill:l.colorBgElevated,stroke:l.colorBgElevated,strokeWidth:1,rx:6,ry:6,filter:`url(#${f})`,"data-element-type":"shape"}),V(J,{x:"flipped"===a?i-3:0,y:0,width:3,height:r,fill:l.colorPrimary,rx:1.5,ry:1.5,"data-element-type":"shape"}),V(Hu,{indexes:n,x:p,y:(r-o)/2,size:o,fill:l.colorPrimary}),U(Zu,{x:g,y:s,width:m,height:r-2*s,flexDirection:"column",justifyContent:"center",alignItems:"flex-start",children:[U(Zu,{width:m,flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[V(Du,{indexes:n,width:y,alignHorizontal:"left",fontSize:12,fill:l.colorText,children:e.label}),d&&V(Yu,{indexes:n,width:v,alignHorizontal:"right",fontSize:12,fontWeight:"bold",fill:l.colorPrimary,value:u,formatter:c})]}),V(Bu,{indexes:n,width:m,alignHorizontal:"left",alignVertical:"middle",fontSize:10,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]})]}))},composites:["icon","label","value","desc"]});bd("done-list",{component:t=>{const[{datum:e,indexes:n,width:i=300,height:r=30,iconSize:o=30,gap:s=5,positionH:a="normal",positionV:l="middle",themeColors:c},h]=yd(t,["width","height","iconSize","gap"]),u=i-o-s;return U(X,Object.assign({},h,{children:[V(K,{"data-element-type":"shape",x:"flipped"===a?u+s:0,y:"middle"===l?(r-o)/2:"flipped"===l?r-o:0,fill:c.colorPrimary,width:o,height:o,d:"M14.7273 30C6.54538 30 0 22.9077 0 14.7269C0 6.54617 6.54538 0 14.7273 0C22.9092 0 30 6.54617 30 14.7269C30 22.9077 22.9092 30 14.7273 30ZM24.5454 10.9077C22.9092 9.27307 22.9092 9.27307 22.9092 9.27307C22.3638 8.72692 22.3638 8.7269 21.8181 8.7269C21.2727 8.7269 21.2727 8.72692 20.7273 9.27307C13.0908 16.9077 13.0908 16.9077 13.0908 16.9077C8.72731 12.5461 8.72731 12.5462 8.72731 12.5462C8.18193 12.5462 8.18193 12 7.63654 12L7.09077 12.5462C4.90923 14.1808 4.90923 14.1808 4.90923 14.1808C4.90923 14.7269 4.90923 14.7269 4.90923 15.2731C4.90923 15.8192 4.90923 15.8192 4.90923 16.3654C12 23.4539 12 23.4538 12 23.4538C12.5454 23.4538 12.5454 23.4538 13.0908 23.4538C13.6365 23.4538 13.6365 23.4538 14.1819 23.4538C24.5454 12.5461 24.5454 12.5462 24.5454 12.5462L25.0908 12C25.0908 11.4538 24.5454 10.9077 24.5454 10.9077Z"}),V(Du,{indexes:n,x:"flipped"===a?0:o+s,width:u,height:r,fontWeight:"normal",alignVertical:"middle",wordWrap:!1,fill:"#666",children:e.label||e.desc})]}))},composites:["label"]});const jd=t=>{const{x:e=0,y:n=0,width:i=100,height:r=40,fill:o="#FF356A",size:s=10}=t;return V(Q,{width:i,height:r,points:[{x:e,y:n},{x:e+i-s,y:n},{x:e+i,y:n+r/2},{x:e+i-s,y:n+r},{x:e,y:n+r},{x:e+s,y:n+r/2}],fill:o,"data-element-type":"shape"})},Ed=t=>{const{x:e=0,y:n=0,width:i=10,height:r=50,fill:o,positionV:s="top"}=t,a=i/2,l=r-a,c=a;return U(qu,{x:e,y:n,width:i,height:r,children:[V(G,{width:i,height:i,fill:o,y:"top"===s?0:l-a}),V(K,{d:"top"===s?`M${c},${a} L${c},${a+l}`:`M${c},0 L${c},${l-a}`,strokeWidth:2,stroke:o})]})};bd("horizontal-icon-arrow",{component:t=>{const[{indexes:e,datum:n,width:i=140,themeColors:r,positionV:o="normal"},s]=yd(t,["width"]),a="flipped"!==o,l="normal"===o?"bottom":"top",c=V(Du,{indexes:e,width:i,fill:r.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),h=V(Bu,{indexes:e,width:i,fill:r.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),u=V(Nu,{indexes:e,fill:r.colorPrimary,colorBg:r.colorWhite}),d=V(Ed,{width:8,height:30,fill:r.colorPrimary,positionV:o}),f=du(c),p=du(h),g=du(u),m=du(d),y=f.height+p.height+5+m.height-g.height-25;return V(X,Object.assign({width:i,height:g.height+25+30+m.height+5+f.height+p.height},s,{children:U(Zu,{flexDirection:"column",alignItems:"center",children:[U(D,a?{children:[h,c,V(Lu,{height:5}),d]}:{children:[V(Lu,{height:y}),u,V(Lu,{height:25})]}),U(Xu,{horizontal:"center",vertical:"middle",width:i,height:30,children:[V(jd,{width:i,height:30,fill:r.colorPrimary}),V(su,{width:i,height:30,alignHorizontal:"center",alignVertical:"middle",fill:r.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(e[0]+1).padStart(2,"0").slice(-2)})]}),U(D,a?{children:[V(Lu,{height:25}),u]}:{children:[d,V(Lu,{height:5}),c,h]})]})}))},composites:["icon","label","desc","time"]});bd("horizontal-icon-line",{component:t=>{const[{indexes:e,datum:n,width:i=160,themeColors:r,positionH:o="center",positionV:s="normal"},a]=yd(t,["width"]),l="normal"===o?"left":"flipped"===o?"right":"center",c=V(Du,{indexes:e,width:i,alignHorizontal:l,fill:r.colorPrimary,children:n.label}),h=du(c),u=n.desc?V(Bu,{indexes:e,width:i,fill:r.colorTextSecondary,alignHorizontal:l,alignVertical:"flipped"===s?"top":"bottom",children:n.desc}):null,d=du(u),f=n.icon?V(Nu,{size:45,indexes:e,colorBg:r.colorBg,fill:r.colorPrimary}):null,p=du(f),g=n.time?V(su,{width:i,height:30,alignHorizontal:"center",alignVertical:"middle",fill:r.colorPrimary,fontSize:18,fontWeight:"bold",children:n.time}):null,m=du(g),y=U(Xu,{horizontal:"center",vertical:"middle",width:i,height:18,children:[V(J,{width:i,height:18,fill:r.colorPrimary,"data-element-type":"shape"}),V(G,{width:24,height:24,fill:r.colorBg,fillOpacity:.5,"data-element-type":"shape"}),V(G,{width:12,height:12,fill:"white","data-element-type":"shape"})]}),v=h.height+d.height,x=p.height+m.height+5,b=Math.abs(x-v),w=x>v?b:0,M=v>x?b:0;return U(Zu,Object.assign({},a,"flipped"===s?{flexDirection:"column",alignItems:"center",children:[V(Lu,{height:M}),g,f,V(Lu,{height:5}),y,c,u,V(Lu,{height:w})]}:{flexDirection:"column",alignItems:"center",children:[V(Lu,{height:w}),c,u,y,V(Lu,{height:5}),f,g,V(Lu,{height:M})]}))},composites:["icon","label","desc"]});bd("icon-badge",{component:t=>{var e;const[{datum:n,indexes:i,size:r=80,iconSize:o=28,badgeSize:s=24,gap:a=8,themeColors:l,width:c=84,height:h=105},u]=yd(t,["size","iconSize","badgeSize","gap"]),d=null!==(e=n.value)&&void 0!==e?e:0,f=`${l.colorPrimary}-icon`,p="#ff6b6b-badge";return U(X,Object.assign({},u,{width:c,height:h,children:[U(q,{children:[U("radialGradient",{id:f,cx:"50%",cy:"30%",r:"70%",children:[V("stop",{offset:"0%",stopColor:(0,wl.A)(l.colorPrimary).lighten(30).toHexString()}),V("stop",{offset:"100%",stopColor:l.colorPrimary})]}),U("linearGradient",{id:p,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:"#ff6b6b"}),V("stop",{offset:"100%",stopColor:"#ee5a52"})]})]}),V(G,{x:0,y:0,width:r,height:r,fill:`url(#${f})`,"data-element-type":"shape"}),V(Hu,{indexes:i,x:(r-o)/2,y:(r-o)/2,size:o,fill:l.colorPrimaryText}),V(G,{x:r-s+4,width:s,height:s,fill:`url(#${p})`}),V(su,{x:r-s+4,width:s,height:s,fontSize:10,fontWeight:"bold",fill:l.colorWhite,alignHorizontal:"center",alignVertical:"middle",children:d>99?"99+":Math.round(d)}),V(Du,{indexes:i,x:0,y:r+a,width:r,alignHorizontal:"center",fontSize:12,fill:l.colorText,children:n.label})]}))},composites:["icon","label"]});bd("indexed-card",{component:t=>{const[{datum:e,indexes:n,width:i=200,borderRadius:r=12,padding:o=16,separatorHeight:s=2,indexFontSize:a=20,labelFontSize:l=16,gap:c=8,themeColors:h},u]=yd(t,["width","height","borderRadius","padding","separatorHeight","indexFontSize","labelFontSize","gap"]),d=String(n[0]+1).padStart(2,"0"),f=void 0!==e.label,p=void 0!==e.desc,g=wl.A.mix(h.colorPrimary,h.colorWhite,40).toHexString(),m=h.colorBgElevated||h.colorWhite,y=i-2*o,v=du(V(su,{fontSize:a,fontWeight:"bold",children:d})),x=y-v.width-c,b=f?du(V(Du,{indexes:n,width:x,fontSize:l,fontWeight:"bold",x:a,children:e.label})):{width:0,height:0},w=p?du(V(Bu,{indexes:n,width:y,fontSize:14,lineHeight:1.5,wordWrap:!0,children:e.desc})):{width:0,height:0},M=Math.max(v.height,b.height),k=2*o+M+(f||p?c:0)+s+(p?c:0)+w.height;return U(X,Object.assign({},u,{width:i,height:k,children:[V(J,{x:0,y:0,width:i,height:k,rx:r,ry:r,fill:m,stroke:(0,wl.A)(m).darken(5).toHexString(),strokeWidth:.5,"data-element-type":"shape"}),U(X,{x:o,y:o,children:[U(X,{x:0,y:0,children:[V(su,{x:0,y:0,fontSize:a,fontWeight:"bold",fill:h.colorPrimary,alignVertical:"top",children:d}),f&&V(Du,{indexes:n,x:a+c,y:0,width:x,fontSize:l,fontWeight:"bold",fill:h.colorTextSecondary,alignVertical:"top",children:e.label})]}),V(J,{x:0,y:M+c,width:y,height:s,fill:g,"data-element-type":"shape"}),p&&V(Bu,{indexes:n,x:0,y:M+c+s+c,width:y,fontSize:14,lineHeight:1.5,wordWrap:!0,fill:h.colorTextSecondary,children:e.desc})]})]}))},composites:["label","desc"]});bd("l-corner-card",{component:t=>{const[{indexes:e,datum:n,width:i=140,iconSize:r=24,themeColors:o},s]=yd(t,["width","iconSize"]),{label:a,desc:l}=n,c=[{x:0,y:88},{x:16,y:72},{x:16,y:88}],h=i-16-12,u=`M 28 ${76+(r+44)} L 28 76 L ${28+h} 76`;return U(X,Object.assign({},s,{children:[V(Bu,{indexes:e,x:28,width:i-28,height:60,fontSize:12,alignHorizontal:"left",alignVertical:"bottom",fill:o.colorTextSecondary,children:l}),V(Q,{points:c,fill:o.colorPrimary,opacity:.9,width:16,height:16,"data-element-type":"shape"}),V(K,{d:u,stroke:o.colorPrimary,strokeWidth:8,fill:"none","data-element-type":"shape"}),V(Hu,{indexes:e,x:32+h/2-r/2,y:88,size:r,fill:o.colorPrimary}),V(Du,{indexes:e,x:32,y:80+r+16,width:h,fontSize:14,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:o.colorText,children:a})]}))},composites:["icon","label","desc"]});bd("letter-card",{component:t=>{var e,n;const[{datum:i,indexes:r,width:o=280,height:s=160,showStripe:a=!0,showGradient:l=!0,showBottomShade:c=!0,themeColors:h},u]=yd(t,["width","height","showStripe","showGradient","showBottomShade"]),d=null===(e=i.label)||void 0===e?void 0:e[0].toUpperCase(),f=null===(n=i.label)||void 0===n?void 0:n.toUpperCase(),p=h.colorPrimary,g=(0,wl.A)(p),m=g.clone().darken(4).toHexString(),y=g.clone().lighten(12).toHexString(),v=`letter-card-${r.join("-")}`,x=`${v}-gradient`,b=`${v}-pattern`,w=`${v}-shade`,M=s/16,k=(s-(96+M+16))/2,C=k+96+M;return U(X,Object.assign({},u,{width:o,height:s,children:[U(q,{children:[l&&U("linearGradient",{id:x,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:m}),V("stop",{offset:"100%",stopColor:y})]}),a&&U("pattern",{id:b,patternUnits:"userSpaceOnUse",width:10,height:10,patternTransform:"rotate(45)",children:[V("rect",{x:"0",y:"0",width:10,height:10,fill:"rgba(255, 255, 255, 0)"}),V("rect",{x:"0",y:"0",width:4,height:10,fill:"rgba(0, 0, 0, 0.03)"})]}),c&&U("linearGradient",{id:w,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:"rgba(0,0,0,0)"}),V("stop",{offset:"100%",stopColor:"rgba(0,0,0,0.16)"})]})]}),V(J,{x:0,y:0,width:o,height:s,fill:l?`url(#${x})`:p,rx:0,ry:0,"data-element-type":"shape"}),a&&V(J,{x:0,y:0,width:o,height:s,fill:`url(#${b})`,rx:0,ry:0}),c&&V(J,{x:0,y:s-40,width:o,height:40,fill:`url(#${w})`,rx:0,ry:0}),d&&V(Du,{indexes:r,x:0,y:k,width:o,fontSize:96,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"top",lineHeight:1,children:d}),V(Du,{indexes:r,x:0,y:C,width:o,fontSize:16,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"middle",lineHeight:1,children:f})]}))},composites:["label"]});bd("lined-text",{component:t=>{var e,n,i;const[{datum:r,indexes:o,width:s,themeColors:a,positionH:l="normal",positionV:c="center",formatter:h=t=>t||"",usePaletteColor:u=!1,showUnderline:d=!1,underlineGap:f=6,underlineExtend:p=8,underlineThickness:g=2},m]=yd(t,["width","formatter","usePaletteColor","showUnderline","underlineGap","underlineExtend","underlineThickness"]),y=h(null!==(n=null!==(e=r.label)&&void 0!==e?e:r.desc)&&void 0!==n?n:""),v="flipped"===l?"right":"center"===l?"center":"left",x=du(V(Du,{indexes:o,width:s,children:y})),b=null!=s?s:x.width,w=x.height,M=d?b+2*p:0,k=w+(d?f+g:0),C=d?Math.max(b,M):b,O=null!==(i=m.height)&&void 0!==i?i:k,j="right"===v?C-M:"center"===v?(C-M)/2:0,E=O;return U(X,Object.assign({},m,{width:C,height:O,children:[V(Du,{indexes:o,x:"right"===v?C-b:"center"===v?(C-b)/2:0,y:"middle"===c?(O-k)/2:"flipped"===c?O-k:0,width:b,height:w,alignHorizontal:v,alignVertical:"flipped"===c?"bottom":"center"===c?"middle":"top",fill:u?a.colorPrimary:a.colorText,children:y}),d&&V(K,{d:`M 0 ${g/2} L ${M} ${g/2}`,x:j,y:E-g/2,width:M,height:g,stroke:a.colorPrimary,strokeWidth:g,fill:"none",strokeLinecap:"round","data-element-type":"shape"})]}))},composites:["label"]});bd("pill-badge",{component:t=>{const[{datum:e,indexes:n,width:i=300,pillWidth:r=120,pillHeight:o=36,gap:s=16,positionH:a="normal",themeColors:l},c]=yd(t,["width","pillWidth","pillHeight","gap"]),h=!!e.desc,u=h?i:r,d=h?"center"===a?(u-r)/2:"flipped"===a?u-r:0:0,f=o+s,p=u,g=`drop-shadow-${l.colorPrimary}`,m="linear-gradient-white-top-bottom";return U(X,Object.assign({},c,{children:[U(q,{children:[V(Md,{id:g,color:l.colorPrimary}),V(kd,{id:m,startColor:"#fff",stopColor:"#ffffff33",direction:"top-bottom"})]}),V(J,{x:d,y:0,width:r,height:o,fill:l.colorPrimaryBg,stroke:l.colorPrimary,rx:o/2,ry:o/2,filter:`url(#${g})`,"data-element-type":"shape"}),V(J,{x:d,y:0,width:r,height:o,fill:`url(#${m})`,opacity:l.isDarkMode?.4:.7,rx:o/2,ry:o/2}),V(Du,{indexes:n,x:d,y:0,width:r,height:o,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:l.colorText,children:e.label}),e.desc&&V(Bu,{indexes:n,x:0,y:f,width:p,alignHorizontal:"center"===a?"center":"flipped"===a?"right":"left",fontSize:12,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]}))},composites:["label","desc"]});function _d(){}function Sd(t){return null==t?_d:function(){return this.querySelector(t)}}function $d(){return[]}function Ad(t){return null==t?$d:function(){return this.querySelectorAll(t)}}function zd(t){return function(){return function(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}(t.apply(this,arguments))}}function Pd(t){return function(){return this.matches(t)}}function Ld(t){return function(e){return e.matches(t)}}bd("plain-text",{component:t=>{var e;const[{indexes:n,datum:i,width:r=120,themeColors:o,positionH:s="normal",positionV:a="center",formatter:l=t=>t||"",usePaletteColor:c=!1,lineNumber:h=1},u]=yd(t,["width","formatter","usePaletteColor","lineNumber"]),d=null!==(e=u.height)&&void 0!==e?e:Math.ceil(1.4*h*14);return V(Du,Object.assign({},u,{indexes:n,width:r,height:d,lineHeight:1.4,fill:c?o.colorPrimary:o.colorText,fontSize:14,fontWeight:"regular",alignHorizontal:"flipped"===s?"right":"center"===s?"center":"left",alignVertical:"flipped"===a?"bottom":"center"===a?"middle":"top",children:l(i.label||i.desc)}))},composites:["label"]});var Id=Array.prototype.find;function Td(){return this.firstElementChild}var Rd=Array.prototype.filter;function Bd(){return Array.from(this.children)}function Wd(t){return new Array(t.length)}function Hd(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Nd(t,e,n,i,r,o){for(var s,a=0,l=e.length,c=o.length;a<c;++a)(s=e[a])?(s.__data__=o[a],i[a]=s):n[a]=new Hd(t,o[a]);for(;a<l;++a)(s=e[a])&&(r[a]=s)}function Fd(t,e,n,i,r,o,s){var a,l,c,h=new Map,u=e.length,d=o.length,f=new Array(u);for(a=0;a<u;++a)(l=e[a])&&(f[a]=c=s.call(l,l.__data__,a,e)+"",h.has(c)?r[a]=l:h.set(c,l));for(a=0;a<d;++a)c=s.call(t,o[a],a,o)+"",(l=h.get(c))?(i[a]=l,l.__data__=o[a],h.delete(c)):n[a]=new Hd(t,o[a]);for(a=0;a<u;++a)(l=e[a])&&h.get(f[a])===l&&(r[a]=l)}function Dd(t){return t.__data__}function Vd(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Ud(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Hd.prototype={constructor:Hd,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Yd="http://www.w3.org/1999/xhtml";const qd={svg:"http://www.w3.org/2000/svg",xhtml:Yd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Gd(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),qd.hasOwnProperty(e)?{space:qd[e],local:t}:t}function Xd(t){return function(){this.removeAttribute(t)}}function Kd(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Zd(t,e){return function(){this.setAttribute(t,e)}}function Qd(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Jd(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function tf(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function ef(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function nf(t){return function(){this.style.removeProperty(t)}}function rf(t,e,n){return function(){this.style.setProperty(t,e,n)}}function of(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function sf(t,e){return t.style.getPropertyValue(e)||ef(t).getComputedStyle(t,null).getPropertyValue(e)}function af(t){return function(){delete this[t]}}function lf(t,e){return function(){this[t]=e}}function cf(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function hf(t){return t.trim().split(/^|\s+/)}function uf(t){return t.classList||new df(t)}function df(t){this._node=t,this._names=hf(t.getAttribute("class")||"")}function ff(t,e){for(var n=uf(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function pf(t,e){for(var n=uf(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function gf(t){return function(){ff(this,t)}}function mf(t){return function(){pf(this,t)}}function yf(t,e){return function(){(e.apply(this,arguments)?ff:pf)(this,t)}}function vf(){this.textContent=""}function xf(t){return function(){this.textContent=t}}function bf(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function wf(){this.innerHTML=""}function Mf(t){return function(){this.innerHTML=t}}function kf(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Cf(){this.nextSibling&&this.parentNode.appendChild(this)}function Of(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function jf(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Yd&&e.documentElement.namespaceURI===Yd?e.createElement(t):e.createElementNS(n,t)}}function Ef(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function _f(t){var e=Gd(t);return(e.local?Ef:jf)(e)}function Sf(){return null}function $f(){var t=this.parentNode;t&&t.removeChild(this)}function Af(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function zf(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Pf(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,o=e.length;i<o;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.options);++r?e.length=r:delete this.__on}}}function Lf(t,e,n){return function(){var i,r=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(r)for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),void(i.value=e);this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function If(t,e,n){var i=ef(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function Tf(t,e){return function(){return If(this,t,e)}}function Rf(t,e){return function(){return If(this,t,e.apply(this,arguments))}}df.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Bf=[null];function Wf(t,e){this._groups=t,this._parents=e}function Hf(){return new Wf([[document.documentElement]],Bf)}Wf.prototype=Hf.prototype={constructor:Wf,select:function(t){"function"!=typeof t&&(t=Sd(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,s,a=e[r],l=a.length,c=i[r]=new Array(l),h=0;h<l;++h)(o=a[h])&&(s=t.call(o,o.__data__,h,a))&&("__data__"in o&&(s.__data__=o.__data__),c[h]=s);return new Wf(i,this._parents)},selectAll:function(t){t="function"==typeof t?zd(t):Ad(t);for(var e=this._groups,n=e.length,i=[],r=[],o=0;o<n;++o)for(var s,a=e[o],l=a.length,c=0;c<l;++c)(s=a[c])&&(i.push(t.call(s,s.__data__,c,a)),r.push(s));return new Wf(i,r)},selectChild:function(t){return this.select(null==t?Td:function(t){return function(){return Id.call(this.children,t)}}("function"==typeof t?t:Ld(t)))},selectChildren:function(t){return this.selectAll(null==t?Bd:function(t){return function(){return Rd.call(this.children,t)}}("function"==typeof t?t:Ld(t)))},filter:function(t){"function"!=typeof t&&(t=Pd(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,s=e[r],a=s.length,l=i[r]=[],c=0;c<a;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&l.push(o);return new Wf(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Dd);var n=e?Fd:Nd,i=this._parents,r=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var o=r.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var h=i[c],u=r[c],d=u.length,f=Vd(t.call(h,h&&h.__data__,c,i)),p=f.length,g=a[c]=new Array(p),m=s[c]=new Array(p);n(h,u,g,m,l[c]=new Array(d),f,e);for(var y,v,x=0,b=0;x<p;++x)if(y=g[x]){for(x>=b&&(b=x+1);!(v=m[b])&&++b<p;);y._next=v||null}}return(s=new Wf(s,i))._enter=a,s._exit=l,s},enter:function(){return new Wf(this._enter||this._groups.map(Wd),this._parents)},exit:function(){return new Wf(this._exit||this._groups.map(Wd),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,o=this.exit();return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(r=e(r))&&(r=r.selection()),null==n?o.remove():n(o),i&&r?i.merge(r).order():r},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,o=Math.min(r,i.length),s=new Array(r),a=0;a<o;++a)for(var l,c=n[a],h=i[a],u=c.length,d=s[a]=new Array(u),f=0;f<u;++f)(l=c[f]||h[f])&&(d[f]=l);for(;a<r;++a)s[a]=n[a];return new Wf(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],o=r.length-1,s=r[o];--o>=0;)(i=r[o])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Ud);for(var n=this._groups,i=n.length,r=new Array(i),o=0;o<i;++o){for(var s,a=n[o],l=a.length,c=r[o]=new Array(l),h=0;h<l;++h)(s=a[h])&&(c[h]=s);c.sort(e)}return new Wf(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length;r<o;++r){var s=i[r];if(s)return s}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,o=e[n],s=0,a=o.length;s<a;++s)(r=o[s])&&t.call(r,r.__data__,s,o);return this},attr:function(t,e){var n=Gd(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?Kd:Xd:"function"==typeof e?n.local?tf:Jd:n.local?Qd:Zd)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?nf:"function"==typeof e?of:rf)(t,e,n??"")):sf(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?af:"function"==typeof e?cf:lf)(t,e)):this.node()[t]},classed:function(t,e){var n=hf(t+"");if(arguments.length<2){for(var i=uf(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?yf:e?gf:mf)(n,e))},text:function(t){return arguments.length?this.each(null==t?vf:("function"==typeof t?bf:xf)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?wf:("function"==typeof t?kf:Mf)(t)):this.node().innerHTML},raise:function(){return this.each(Cf)},lower:function(){return this.each(Of)},append:function(t){var e="function"==typeof t?t:_f(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:_f(t),i=null==e?Sf:"function"==typeof e?e:Sd(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each($f)},clone:function(t){return this.select(t?zf:Af)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,o=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),s=o.length;if(!(arguments.length<2)){for(a=e?Lf:Pf,i=0;i<s;++i)this.each(a(o[i],e,n));return this}var a=this.node().__on;if(a)for(var l,c=0,h=a.length;c<h;++c)for(i=0,l=a[c];i<s;++i)if((r=o[i]).type===l.type&&r.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Rf:Tf)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,r=t[e],o=0,s=r.length;o<s;++o)(i=r[o])&&(yield i)}};const Nf=Hf;var Ff=n("./node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js"),Df=n("./node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js");function Vf(t,e,n){var i=new Df.M4;return i.restart(n=>{i.stop(),t(n+e)},e=null==e?0:+e,n),i}var Uf=(0,Ff.A)("start","end","cancel","interrupt"),Yf=[];function qf(t,e,n,i,r,o){var s=t.__transition;if(s){if(n in s)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function o(t){n.state=1,n.timer.restart(s,n.delay,n.time),n.delay<=t&&s(t-n.delay)}function s(o){var c,h,u,d;if(1!==n.state)return l();for(c in r)if((d=r[c]).name===n.name){if(3===d.state)return Vf(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[c]):+c<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[c])}if(Vf(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(o))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,i=new Array(u=n.tween.length),c=0,h=-1;c<u;++c)(d=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++h]=d);i.length=h+1}}function a(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=5,1),o=-1,s=i.length;++o<s;)i[o].call(t,r);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){for(var i in n.state=6,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=(0,Df.O1)(o,0,n.time)}(t,n,{name:e,index:i,group:r,on:Uf,tween:Yf,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function Gf(t,e){var n=Kf(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function Xf(t,e){var n=Kf(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Kf(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var Zf,Qf=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.js"),Jf=180/Math.PI,tp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ep(t,e,n,i,r,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*Jf,skewX:Math.atan(l)*Jf,scaleX:s,scaleY:a}}function np(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}return function(o,s){var a=[],l=[];return o=t(o),s=t(s),function(t,i,r,o,s,a){if(t!==r||i!==o){var l=s.push("translate(",null,e,null,n);a.push({i:l-4,x:(0,Qf.A)(t,r)},{i:l-2,x:(0,Qf.A)(i,o)})}else(r||o)&&s.push("translate("+r+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,a,l),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(r(n)+"rotate(",null,i)-2,x:(0,Qf.A)(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(o.rotate,s.rotate,a,l),function(t,e,n,o){t!==e?o.push({i:n.push(r(n)+"skewX(",null,i)-2,x:(0,Qf.A)(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(o.skewX,s.skewX,a,l),function(t,e,n,i,o,s){if(t!==n||e!==i){var a=o.push(r(o)+"scale(",null,",",null,")");s.push({i:a-4,x:(0,Qf.A)(t,n)},{i:a-2,x:(0,Qf.A)(e,i)})}else 1===n&&1===i||o.push(r(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,l),o=s=null,function(t){for(var e,n=-1,i=l.length;++n<i;)a[(e=l[n]).i]=e.x(t);return a.join("")}}}var ip=np(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tp:ep(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),rp=np(function(t){return null==t?tp:(Zf||(Zf=document.createElementNS("http://www.w3.org/2000/svg","g")),Zf.setAttribute("transform",t),(t=Zf.transform.baseVal.consolidate())?ep((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tp)},", ",")",")");function op(t,e){var n,i;return function(){var r=Xf(this,t),o=r.tween;if(o!==n)for(var s=0,a=(i=n=o).length;s<a;++s)if(i[s].name===e){(i=i.slice()).splice(s,1);break}r.tween=i}}function sp(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var o=Xf(this,t),s=o.tween;if(s!==i){r=(i=s).slice();for(var a={name:e,value:n},l=0,c=r.length;l<c;++l)if(r[l].name===e){r[l]=a;break}l===c&&r.push(a)}o.tween=r}}function ap(t,e,n){var i=t._id;return t.each(function(){var t=Xf(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return Kf(t,i).value[e]}}var lp=n("./node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js"),cp=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.js"),hp=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.js");function up(t,e){var n;return("number"==typeof e?Qf.A:e instanceof lp.Ay?cp.Ay:(n=(0,lp.Ay)(e))?(e=n,cp.Ay):hp.A)(t,e)}function dp(t){return function(){this.removeAttribute(t)}}function fp(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pp(t,e,n){var i,r,o=n+"";return function(){var s=this.getAttribute(t);return s===o?null:s===i?r:r=e(i=s,n)}}function gp(t,e,n){var i,r,o=n+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===o?null:s===i?r:r=e(i=s,n)}}function mp(t,e,n){var i,r,o;return function(){var s,a,l=n(this);if(null!=l)return(s=this.getAttribute(t))===(a=l+"")?null:s===i&&a===r?o:(r=a,o=e(i=s,l));this.removeAttribute(t)}}function yp(t,e,n){var i,r,o;return function(){var s,a,l=n(this);if(null!=l)return(s=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:s===i&&a===r?o:(r=a,o=e(i=s,l));this.removeAttributeNS(t.space,t.local)}}function vp(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,r)),n}return r._value=e,r}function xp(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,r)),n}return r._value=e,r}function bp(t,e){return function(){Gf(this,t).delay=+e.apply(this,arguments)}}function wp(t,e){return e=+e,function(){Gf(this,t).delay=e}}function Mp(t,e){return function(){Xf(this,t).duration=+e.apply(this,arguments)}}function kp(t,e){return e=+e,function(){Xf(this,t).duration=e}}var Cp=Nf.prototype.constructor;function Op(t){return function(){this.style.removeProperty(t)}}var jp=0;function Ep(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function _p(){return++jp}var Sp=Nf.prototype;Ep.prototype=function(t){return Nf().transition(t)}.prototype={constructor:Ep,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Sd(t));for(var i=this._groups,r=i.length,o=new Array(r),s=0;s<r;++s)for(var a,l,c=i[s],h=c.length,u=o[s]=new Array(h),d=0;d<h;++d)(a=c[d])&&(l=t.call(a,a.__data__,d,c))&&("__data__"in a&&(l.__data__=a.__data__),u[d]=l,qf(u[d],e,n,d,u,Kf(a,n)));return new Ep(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Ad(t));for(var i=this._groups,r=i.length,o=[],s=[],a=0;a<r;++a)for(var l,c=i[a],h=c.length,u=0;u<h;++u)if(l=c[u]){for(var d,f=t.call(l,l.__data__,u,c),p=Kf(l,n),g=0,m=f.length;g<m;++g)(d=f[g])&&qf(d,e,n,g,f,p);o.push(f),s.push(l)}return new Ep(o,s,e,n)},selectChild:Sp.selectChild,selectChildren:Sp.selectChildren,filter:function(t){"function"!=typeof t&&(t=Pd(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,s=e[r],a=s.length,l=i[r]=[],c=0;c<a;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&l.push(o);return new Ep(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=Math.min(i,n.length),o=new Array(i),s=0;s<r;++s)for(var a,l=e[s],c=n[s],h=l.length,u=o[s]=new Array(h),d=0;d<h;++d)(a=l[d]||c[d])&&(u[d]=a);for(;s<i;++s)o[s]=e[s];return new Ep(o,this._parents,this._name,this._id)},selection:function(){return new Cp(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=_p(),i=this._groups,r=i.length,o=0;o<r;++o)for(var s,a=i[o],l=a.length,c=0;c<l;++c)if(s=a[c]){var h=Kf(s,e);qf(s,t,n,c,a,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Ep(i,this._parents,t,n)},call:Sp.call,nodes:Sp.nodes,node:Sp.node,size:Sp.size,empty:Sp.empty,each:Sp.each,on:function(t,e){var n=this._id;return arguments.length<2?Kf(this.node(),n).on.on(t):this.each(function(t,e,n){var i,r,o=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Gf:Xf;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(e,n),s.on=r}}(n,t,e))},attr:function(t,e){var n=Gd(t),i="transform"===n?rp:up;return this.attrTween(t,"function"==typeof e?(n.local?yp:mp)(n,i,ap(this,"attr."+t,e)):null==e?(n.local?fp:dp)(n):(n.local?gp:pp)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=Gd(t);return this.tween(n,(i.local?vp:xp)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?ip:up;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var o=sf(this,t),s=(this.style.removeProperty(t),sf(this,t));return o===s?null:o===n&&s===i?r:r=e(n=o,i=s)}}(t,i)).on("end.style."+t,Op(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,o;return function(){var s=sf(this,t),a=n(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=sf(this,t)),s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a))}}(t,i,ap(this,"style."+t,e))).each(function(t,e){var n,i,r,o,s="style."+e,a="end."+s;return function(){var l=Xf(this,t),c=l.on,h=null==l.value[s]?o||(o=Op(e)):void 0;c===n&&r===h||(i=(n=c).copy()).on(a,r=h),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r,o=n+"";return function(){var s=sf(this,t);return s===o?null:s===i?r:r=e(i=s,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,function(t,e,n){var i,r;function o(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&function(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}(t,o,n)),i}return o._value=e,o}(t,e,n??""))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=e??""}}(ap(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=Kf(this.node(),n).tween,o=0,s=r.length;o<s;++o)if((i=r[o]).name===t)return i.value;return null}return this.each((null==e?op:sp)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?bp:wp)(e,t)):Kf(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Mp:kp)(e,t)):Kf(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Xf(this,t).ease=e}}(e,t)):Kf(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;Xf(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,i=n._id,r=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){0===--r&&o()}};n.each(function(){var n=Xf(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e}),0===r&&o()})},[Symbol.iterator]:Sp[Symbol.iterator]};var $p={time:null,delay:0,duration:250,ease:n("./node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js").wq};function Ap(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}Nf.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var n,i,r,o=t.__transition,s=!0;if(o){for(r in e=null==e?null:e+"",o)(n=o[r]).name===e?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[r]):s=!1;s&&delete t.__transition}}(this,t)})},Nf.prototype.transition=function(t){var e,n;t instanceof Ep?(e=t._id,t=t._name):(e=_p(),(n=$p).time=(0,Df.tB)(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var s,a=i[o],l=a.length,c=0;c<l;++c)(s=a[c])&&qf(s,t,e,c,a,n||Ap(s,e));return new Ep(i,this._parents,t,e)};const{abs:zp,max:Pp,min:Lp}=Math;function Ip(t){return[+t[0],+t[1]]}function Tp(t){return[Ip(t[0]),Ip(t[1])]}["w","e"].map(Rp),["n","s"].map(Rp),["n","w","e","s","nw","ne","sw","se"].map(Rp);function Rp(t){return{type:t}}var Bp=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/center.js"),Wp=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/collide.js"),Hp=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/link.js"),Np=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/manyBody.js"),Fp=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/simulation.js"),Dp=n("./node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/index.js"),Vp=n("./node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/tree.js"),Up=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.js"),Yp=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.js"),qp=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.js");function Gp(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Xp(t){return+t}var Kp=[0,1];function Zp(t){return t}function Qp(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function Jp(t,e,n){var i=t[0],r=t[1],o=e[0],s=e[1];return r<i?(i=Qp(r,i),o=n(s,o)):(i=Qp(i,r),o=n(o,s)),function(t){return o(i(t))}}function tg(t,e,n){var i=Math.min(t.length,e.length)-1,r=new Array(i),o=new Array(i),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)r[s]=Qp(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(e){var n=(0,Yp.Ay)(t,e,1,i)-1;return o[n](r[n](e))}}function eg(){var t,e,n,i,r,o,s=Kp,a=Kp,l=qp.A,c=Zp;function h(){var t=Math.min(s.length,a.length);return c!==Zp&&(c=function(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(s[0],s[t-1])),i=t>2?tg:Jp,r=o=null,u}function u(e){return null==e||isNaN(e=+e)?n:(r||(r=i(s.map(t),a,l)))(t(c(e)))}return u.invert=function(n){return c(e((o||(o=i(a,s.map(t),Qf.A)))(n)))},u.domain=function(t){return arguments.length?(s=Array.from(t,Xp),h()):s.slice()},u.range=function(t){return arguments.length?(a=Array.from(t),h()):a.slice()},u.rangeRound=function(t){return a=Array.from(t),l=Gp,h()},u.clamp=function(t){return arguments.length?(c=!!t||Zp,h()):c!==Zp},u.interpolate=function(t){return arguments.length?(l=t,h()):l},u.unknown=function(t){return arguments.length?(n=t,u):n},function(n,i){return t=n,e=i,h()}}function ng(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var ig=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatSpecifier.js"),rg=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/exponent.js");var og=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/defaultLocale.js");function sg(t,e,n,i){var r,o=(0,Up.sG)(t,e,n);switch((i=(0,ig.A)(i??",f")).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(r=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,rg.A)(e)/3)))-(0,rg.A)(Math.abs(t)))}(o,s))||(i.precision=r),(0,og.s)(i,s);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(r=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,(0,rg.A)(e)-(0,rg.A)(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=r-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(r=function(t){return Math.max(0,-(0,rg.A)(Math.abs(t)))}(o))||(i.precision=r-2*("%"===i.type))}return(0,og.GP)(i)}function ag(){var t=eg()(Zp,Zp);return t.copy=function(){return e=t,ag().domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());var e},ng.apply(t,arguments),function(t){var e=t.domain;return t.ticks=function(t){var n=e();return(0,Up.Ay)(n[0],n[n.length-1],t??10)},t.tickFormat=function(t,n){var i=e();return sg(i[0],i[i.length-1],t??10,n)},t.nice=function(n){null==n&&(n=10);var i,r,o=e(),s=0,a=o.length-1,l=o[s],c=o[a],h=10;for(c<l&&(r=l,l=c,c=r,r=s,s=a,a=r);h-- >0;){if((r=(0,Up.lq)(l,c,n))===i)return o[s]=l,o[a]=c,e(o);if(r>0)l=Math.floor(l/r)*r,c=Math.ceil(c/r)*r;else{if(!(r<0))break;l=Math.ceil(l*r)/r,c=Math.floor(c*r)/r}i=r}return t},t}(t)}var lg=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/arc.js"),cg=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/line.js"),hg=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/array.js"),ug=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.js");function dg(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function fg(t){return t}var pg=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/math.js");var gg=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.js");function mg(t,e,n){this.k=t,this.x=e,this.y=n}mg.prototype={constructor:mg,scale:function(t){return 1===t?this:new mg(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new mg(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new mg(1,0,0);bd("progress-card",{component:t=>{const[{datum:e,data:n,indexes:i,width:r=280,height:o=120,iconSize:s=32,gap:a=12,progressHeight:l=8,borderRadius:c=12,positionH:h="normal",themeColors:u,valueFormatter:d=t=>`${t}%`},f]=yd(t,["width","height","iconSize","gap","progressHeight","borderRadius"]),p=e.value,g=null!=p?p:0,m=Math.max(...n.items.map(t=>{var e;return null!==(e=t.value)&&void 0!==e?e:0}),100),y=r-2*a,v=ag().domain([0,m]).range([0,y])(g),x=`${u.colorPrimary}-progress`,b=`${u.colorPrimaryBg}-progress-bg`,w=du(V(Du,{indexes:i})),M="flipped"===h?r-a-s:a,k=a,C="flipped"===h?a:s+2*a,O=r-s-3*a,j=k,E=o-a-l,_=void 0!==p;return U(X,Object.assign({},f,{children:[U(q,{children:[U("linearGradient",{id:x,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[V("stop",{offset:"0%",stopColor:u.colorPrimary}),V("stop",{offset:"100%",stopColor:wl.A.mix(u.colorPrimary,"#fff",20).toHexString()})]}),U("linearGradient",{id:b,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[V("stop",{offset:"0%",stopColor:u.colorPrimaryBg}),V("stop",{offset:"100%",stopColor:u.colorBg})]})]}),V(J,{x:0,y:0,width:r,height:o,fill:u.colorBgElevated,stroke:u.colorPrimaryBg,strokeWidth:1,rx:c,ry:c,"data-element-type":"shape"}),V(Hu,{indexes:i,x:M,y:k,size:s,fill:u.colorPrimary}),V(Du,{indexes:i,x:C,y:j,width:O,alignHorizontal:"flipped"===h?"right":"left",alignVertical:"top",fontSize:16,fontWeight:"medium",fill:u.colorText,children:e.label}),_&&V(Yu,{indexes:i,x:C,y:j+w.height,width:O,alignHorizontal:"flipped"===h?"right":"left",alignVertical:"top",lineHeight:1,fontSize:24,fontWeight:"bold",fill:u.colorPrimary,value:g,formatter:d}),V(Bu,{indexes:i,x:C,y:j+w.height+(_?27:4),width:O,alignHorizontal:"flipped"===h?"right":"left",alignVertical:"top",fontSize:11,fill:u.colorTextSecondary,lineNumber:_?2:3,wordWrap:!0,children:e.desc}),V(J,{x:a,y:E,width:y,height:l,fill:`url(#${b})`,rx:l/2,ry:l/2,"data-element-type":"shape"}),V(J,{x:a,y:E,width:v,height:l,fill:`url(#${x})`,rx:l/2,ry:l/2,"data-element-type":"shape"})]}))},composites:["icon","label","value","desc"]});bd("quarter-circular",{component:t=>{const[{datum:e,indexes:n,width:i=280,height:r=120,iconSize:o=30,circleRadius:s=80,positionH:a="normal",positionV:l="normal",themeColors:c},h]=yd(t,["width","height","iconSize","circleRadius"]),u=4*s/(3*Math.PI),d=40,f=String(n[0]+1).padStart(2,"0"),p="flipped"===a,g="flipped"===l,m=p?{diagonalStartX:i-4,diagonalStartY:g?r-35:35,diagonalEndX:i-d,diagonalEndY:g?r-4:4,topLineStartX:i-d,topLineEndX:u,topLineY:g?r-4:4}:{diagonalStartX:4,diagonalStartY:g?r-35:35,diagonalEndX:d,diagonalEndY:g?r-4:4,topLineStartX:d,topLineEndX:i-u,topLineY:g?r-4:4},y=(()=>{if(p){const t=s+10;return{valueX:i-30,contentX:t,contentWidth:i-t-d,circleX:0,circleY:g?0:r,iconX:u-o/2}}return{valueX:0,contentX:d,contentWidth:i-d-s-10,circleX:i,circleY:g?0:r,iconX:i-u-o/2}})(),v=g?u-o/2:r-u-o/2,x=20+du(V(Du,{indexes:n,width:y.contentWidth,children:e.label})).height+8;return U(X,Object.assign({},h,{width:i,height:r,children:[U(qu,{children:[V(K,{d:`M ${m.diagonalStartX} ${m.diagonalStartY} L ${m.diagonalEndX} ${m.diagonalEndY}`,stroke:c.colorPrimary,strokeWidth:2,fill:"none"}),V(K,{d:`M ${m.topLineStartX} ${m.topLineY} L ${m.topLineEndX} ${m.topLineY}`,stroke:c.colorPrimary,strokeWidth:2,fill:"none"}),V(G,{x:m.diagonalStartX-4,y:m.diagonalStartY-4,width:8,height:8,fill:c.colorPrimary}),V(G,{x:m.topLineEndX-4,y:m.topLineY-4,width:8,height:8,fill:c.colorPrimary})]}),U(X,{children:[V(su,{x:y.valueX,y:40,fontSize:28,fontWeight:"bold",fill:c.colorPrimary,children:f}),V(K,{d:(()=>{const{circleX:t,circleY:e}=y;return p?g?`M ${t} ${e} L ${t} ${e+s} A ${s} ${s} 0 0 0 ${t+s} ${e} Z`:`M ${t} ${e} L ${t} ${e-s} A ${s} ${s} 0 0 1 ${t+s} ${e} Z`:g?`M ${t} ${e} L ${t} ${e+s} A ${s} ${s} 0 0 1 ${t-s} ${e} Z`:`M ${t} ${e} L ${t} ${e-s} A ${s} ${s} 0 0 0 ${t-s} ${e} Z`})(),fill:c.colorPrimary,"data-element-type":"shape"}),e.icon&&V(Hu,{indexes:n,x:y.iconX,y:v,size:o,fill:c.colorWhite}),e.label&&V(Du,{indexes:n,x:y.contentX,y:20,width:y.contentWidth,fontWeight:"bold",fill:c.colorText,alignHorizontal:p?"right":"left",children:e.label}),e.desc&&V(Bu,{indexes:n,x:y.contentX,y:x,width:y.contentWidth,fill:c.colorTextSecondary,alignHorizontal:p?"right":"left",children:e.desc})]})]}))},composites:["icon","label","desc"]});bd("quarter-simple-card",{component:t=>{const[{datum:e,indexes:n,width:i=150,height:r=150,iconSize:o=30,padding:s=20,borderRadius:a=16,positionH:l="center",positionV:c="middle",themeColors:h},u]=yd(t,["width","height","iconSize","padding","borderRadius"]),d=i-2*s,f="flipped"===l?i-s-o:"center"===l?(i-o)/2:s,p=s,g=p+o+8,m="flipped"===l?i-s-d:"center"===l?s:s,y=g+du(V(Du,{indexes:n,width:d,children:e.label})).height+4,v=m;let x="";return x="center"===l&&"middle"===c?`\n M ${a} 0\n L ${i-a} 0\n Q ${i} 0 ${i} ${a}\n L ${i} ${r-a}\n Q ${i} ${r} ${i-a} ${r}\n L ${a} ${r}\n Q 0 ${r} 0 ${r-a}\n L 0 ${a}\n Q 0 0 ${a} 0\n Z\n`:"flipped"===l&&"flipped"===c?`\n M ${a} 0\n L ${i-a} 0\n Q ${i} 0 ${i} ${a}\n L ${i} ${r-a}\n Q ${i} ${r} ${i-a} ${r}\n L ${a} ${r}\n Q 0 ${r} 0 ${r-a}\n L 0 0\n L ${a} 0\n Z\n`:"normal"===l&&"flipped"===c?`\n M 0 0\n L ${i} 0\n L ${i} ${r-a}\n Q ${i} ${r} ${i-a} ${r}\n L ${a} ${r}\n Q 0 ${r} 0 ${r-a}\n L 0 ${a}\n Q 0 0 ${a} 0\n Z\n`:"flipped"===l?`\n M ${a} 0\n L ${i-a} 0\n Q ${i} 0 ${i} ${a}\n L ${i} ${r-a}\n Q ${i} ${r} ${i-a} ${r}\n L 0 ${r}\n L 0 ${a}\n Q 0 0 ${a} 0\n Z\n`:`\n M ${a} 0\n L ${i-a} 0\n Q ${i} 0 ${i} ${a}\n L ${i} ${r}\n L ${a} ${r}\n Q 0 ${r} 0 ${r-a}\n L 0 ${a}\n Q 0 0 ${a} 0\n Z\n`,U(X,Object.assign({},u,{children:[V(K,{d:x,x:0,y:0,width:i,height:r,fill:h.colorPrimary,"data-element-type":"shape"}),V(Hu,{indexes:n,x:f,y:p,size:o,fill:h.colorBg}),V(Du,{indexes:n,x:m,y:g,width:d,fontSize:14,fontWeight:"bold",fill:h.colorBg,alignHorizontal:"flipped"===l?"right":"left",children:e.label}),e.desc&&V(Bu,{indexes:n,x:v,y,width:d,fontSize:11,wordWrap:!0,fill:h.colorBg,alignHorizontal:"flipped"===l?"right":"left",children:e.desc})]}))},composites:["icon","label","desc"]});bd("ribbon-card",{component:t=>{const[{datum:e,indexes:n,width:i=240,height:r=140,iconSize:o=28,gap:s=12,ribbonHeight:a=32,themeColors:l},c]=yd(t,["width","height","iconSize","gap","ribbonHeight"]),h=`${l.colorPrimary}-ribbon`;return U(X,Object.assign({},c,{children:[V(q,{children:U("linearGradient",{id:h,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[V("stop",{offset:"0%",stopColor:l.colorPrimary}),V("stop",{offset:"100%",stopColor:(0,wl.A)(l.colorPrimary).darken(15).toHexString()})]})}),U(qu,{children:[V(J,{x:0,y:0,width:i,height:r,fill:l.colorBgElevated,stroke:l.colorPrimaryBg,strokeWidth:1,rx:8,ry:8}),V(J,{x:0,y:0,width:i,height:a,fill:`url(#${h})`,rx:8,ry:8}),V(J,{x:0,y:8,width:i,height:a-8,fill:`url(#${h})`}),V(K,{x:i-20,y:a,width:20,height:8,fill:(0,wl.A)(l.colorPrimary).darken(25).toHexString(),d:"M0,0 L20,0 L15,8 L5,8 Z"})]}),V(Hu,{indexes:n,x:s,y:a+s,size:o,fill:l.colorPrimary}),V(Du,{indexes:n,x:o+2*s,y:a+s,width:i-o-3*s,height:o,alignHorizontal:"left",alignVertical:"middle",lineHeight:1,fontWeight:"bold",fill:l.colorText,children:e.label}),V(Bu,{indexes:n,x:s,y:a+o+s+5,width:i-2*s,alignHorizontal:"left",fill:l.colorTextSecondary,lineNumber:3,wordWrap:!0,children:e.desc}),V(Hu,{indexes:n,x:i-s-8,y:s/2,size:16,fill:l.colorWhite})]}))},composites:["icon","label","desc"]});bd("rounded-rect-node",{component:t=>{const[{indexes:e,datum:n,themeColors:i,width:r=300,height:o=40,padding:s=4,positionH:a="normal"},l]=yd(t,["width","height","borderRadius","padding"]),c=o/2,h=c,u=s,d=r-2*c,f=o-2*s;return U(X,Object.assign({},l,{children:[V(J,{"data-element-type":"shape",width:r,height:o,rx:c,ry:c,fill:i.colorPrimaryBg,stroke:i.colorPrimary,strokeWidth:1,opacity:.8}),V(Du,{indexes:e,x:h,y:u,width:d,height:f,alignHorizontal:"flipped"===a?"right":"center"===a?"center":"left",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:i.colorText,children:n.label})]}))},composites:["label"]});bd("simple-circle-node",{component:t=>{const[{width:e=24,height:n=e,strokeWidth:i=2,themeColors:r,datum:o},s]=yd(t,["width","height"]),a=Math.min(e,n)-i,l=i/2;return U(X,Object.assign({},s,{width:e,height:n,children:[V(J,{width:e,height:n,fill:"none",visibility:"hidden"}),V(G,{x:l,y:l,width:a,height:a,fill:r.colorPrimary,stroke:r.isDarkMode?"#FFF":"#000",strokeWidth:i,"data-element-type":"shape",children:V("title",{children:o.label||o.desc})})]}))},composites:[]});const yg=t=>{const{x:e=0,y:n=0,width:i=100,height:r=40,fill:o="#FF356A",size:s=10}=t;return V(Q,{width:i,height:r,points:[{x:e,y:n},{x:e+i-s,y:n},{x:e+i,y:n+r/2},{x:e+i-s,y:n+r},{x:e,y:n+r},{x:e+s,y:n+r/2}],fill:o,"data-element-type":"shape"})};bd("simple-horizontal-arrow",{component:t=>{const[{indexes:e,datum:n,width:i=140,themeColors:r,positionV:o="normal"},s]=yd(t,["width"]),a="flipped"!==o,l=a?"bottom":"top",c=V(Du,{indexes:e,width:i,fill:r.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),h=V(Bu,{indexes:e,width:i,fill:r.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),u=10,d=du(c),f=du(h),p=d.height+f.height;return V(X,Object.assign({width:i,height:p+u+30+u+p},s,{children:U(Zu,{flexDirection:"column",alignItems:"center",children:[a?U(D,{children:[h,c,V(Lu,{height:u})]}):V(D,{children:V(Lu,{height:p+u})}),U(Xu,{horizontal:"center",vertical:"middle",children:[V(yg,{width:i,height:30,fill:r.colorPrimary}),V(su,{width:i,height:30,alignHorizontal:"center",alignVertical:"middle",fill:r.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(e[0]+1).padStart(2,"0").slice(-2)})]}),a?V(D,{children:V(Lu,{height:p+u})}):U(D,{children:[V(Lu,{height:u}),c,h]})]})}))},composites:["label","desc","time"]});bd("simple-illus",{component:t=>{const[{indexes:e,datum:n,width:i=180,illusSize:r=i,gap:o=8,themeColors:s,usePaletteColor:a=!1},l]=yd(t,["width","illusSize","gap","usePaletteColor"]),{label:c,desc:h}=n,u=V(Du,{indexes:e,width:i,alignHorizontal:"center",alignVertical:"middle",fill:a?s.colorPrimary:s.colorText,children:c}),d=du(u);return U(Zu,Object.assign({},l,{width:i,height:r+o+d.height+o+48,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:o,children:[V(Tu,{indexes:e,width:r,height:r}),u,V(Bu,{indexes:e,width:i,alignHorizontal:"center",alignVertical:"top",fill:s.colorTextSecondary,lineNumber:3,children:h})]}))},composites:["illus","label","desc"]});bd("simple",{component:t=>{const[{indexes:e,datum:n,width:i=200,height:r,gap:o=4,showIcon:s=!0,iconSize:a=30,iconType:l="default",positionH:c="normal",positionV:h="normal",usePaletteColor:u=!1,themeColors:d},f]=yd(t,["width","height","gap","showIcon","iconSize","iconType","usePaletteColor"]),{label:p,desc:g,icon:m}=n,y="normal"===(v=c)?"left":"flipped"===v?"right":"center";var v;const x=u?d.colorPrimary:d.colorText,b=du(V(Du,{indexes:e,width:i,alignHorizontal:"center",alignVertical:"middle",fill:x,children:p})),w=s?"circle"===l?V(Nu,{indexes:e,size:a,fill:d.colorPrimary,colorBg:d.colorBg}):V(Hu,{indexes:e,size:a,fill:d.colorTextSecondary}):null;if(!s||!m){const t=r?Math.max(0,r-b.height-o):void 0,n=t?t<=60?1:Math.floor(t/(1.4*14)):2,s=r?"middle"===h?(r-b.height-(t||0)-o)/2:"flipped"===h?r-b.height-(t||0)-o:0:0;return U(X,Object.assign({},f,{children:[V(Du,{indexes:e,width:i,y:s,alignHorizontal:y,alignVertical:"middle",fill:x,children:p}),V(Bu,{indexes:e,width:i,height:t,y:s+b.height+o,alignHorizontal:y,alignVertical:"top",lineNumber:n,fill:d.colorTextSecondary,children:g})]}))}if("center"===c){const t=s&&m?a:0,n=r?Math.max(0,r-b.height-t-2*o):void 0,l=n?n<=60?1:Math.floor(n/(1.4*14)):2,c=b.height+(n||0)+o,u=r?"middle"===h?(r-c-t-o)/2:"flipped"===h?r-c-t-o:0:0;return V(Zu,Object.assign({},f,{flexDirection:"column",gap:o,alignItems:"center",children:U(D,"flipped"===h?{children:[U(X,{children:[V(Du,{indexes:e,width:i,y:u,alignHorizontal:"center",alignVertical:"middle",fill:x,children:p}),V(Bu,{indexes:e,width:i,height:n,y:u+b.height+o,alignHorizontal:"center",alignVertical:"bottom",lineNumber:l,fill:d.colorTextSecondary,children:g})]}),w]}:{children:[w,U(X,{children:[V(Du,{indexes:e,width:i,y:u,alignHorizontal:"center",alignVertical:"middle",fill:x,children:p}),V(Bu,{indexes:e,width:i,height:n,y:u+b.height+o,alignHorizontal:"center",alignVertical:"top",lineNumber:l,fill:d.colorTextSecondary,children:g})]})]})}))}const M=du(w),k=Math.max(i-M.width-o,0),C=r?Math.max(0,r-b.height-o):void 0,O=C?C<=60?1:Math.floor(C/(1.4*14)):2,j=r?"middle"===h?(r-b.height-(C||0)-o)/2:"flipped"===h?r-b.height-(C||0)-o:0:0;return V(Zu,Object.assign({},f,{flexDirection:"row",gap:o,alignItems:function(t){return"normal"===t?"flex-start":"flipped"===t?"flex-end":"center"}(h),children:U(D,"flipped"===c?{children:[U(X,{children:[V(Du,{indexes:e,width:k,y:j,alignHorizontal:"right",alignVertical:"middle",fill:x,children:p}),V(Bu,{indexes:e,width:k,height:C,y:j+b.height+o,alignHorizontal:"right",alignVertical:"top",lineNumber:O,fill:d.colorTextSecondary,children:g})]}),w]}:{children:[w,U(X,{children:[V(Du,{indexes:e,width:k,y:j,alignHorizontal:"left",alignVertical:"middle",fill:x,children:p}),V(Bu,{indexes:e,width:k,height:C,y:j+b.height+o,alignHorizontal:"left",alignVertical:"top",lineNumber:O,fill:d.colorTextSecondary,children:g})]})]})}))},composites:["icon","label","desc"]});const vg=t=>{const{x:e=0,y:n=0,width:i=30,height:r=100,fill:o="#FF356A",size:s=10}=t;return V(Q,{width:i,height:r,points:[{x:e,y:n},{x:e+i/2,y:n+s},{x:e+i,y:n},{x:e+i,y:n+r-s},{x:e+i/2,y:n+r},{x:e,y:n+r-s}],fill:o,"data-element-type":"shape"})};bd("simple-vertical-arrow",{component:t=>{const[{indexes:e,datum:n,height:i=140,themeColors:r,positionH:o="normal"},s]=yd(t,["height"]),a="normal"===o?"right":"left",l=V(Du,{indexes:e,width:120,fill:r.colorText,alignHorizontal:a,alignVertical:"middle",fontSize:14,children:n.label}),c=V(Bu,{indexes:e,width:120,fill:r.colorTextSecondary,alignHorizontal:a,alignVertical:"top",children:n.desc}),h="flipped"!==o,u=15;return V(X,Object.assign({width:300,height:i},s,{children:U(Zu,{flexDirection:"row",alignItems:"center",children:[h?U(D,{children:[U(Zu,{flexDirection:"column",alignItems:"flex-end",children:[l,c]}),V(Lu,{width:u})]}):V(D,{children:V(Lu,{width:135})}),U(Xu,{horizontal:"center",vertical:"middle",children:[V(vg,{width:30,height:i,fill:r.colorPrimary}),V(su,{width:30,height:i,alignHorizontal:"center",alignVertical:"middle",fill:r.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),h?V(D,{children:V(Lu,{width:135})}):U(D,{children:[V(Lu,{width:u}),U(Zu,{flexDirection:"column",alignItems:"flex-start",children:[l,c]})]})]})}))},composites:["label","desc"]});bd("underline-text",{component:t=>{const[{datum:e,indexes:n,width:i=200,gap:r=4,positionH:o="center",themeColors:s},a]=yd(t,["width","height","gap"]),l=du(V(Du,{indexes:n,fontSize:18,fontWeight:"bold",width:i,children:e.label})),c=e.desc?du(V(Bu,{indexes:n,width:i,wordWrap:!0,children:e.desc})):{width:0,height:0},h="center"===o?"center":"flipped"===o?"right":"left",u="center"===o?(i-80)/2:"flipped"===o?i-80:0,d=0+l.height+r,f=d+3+2*r;return U(X,Object.assign({width:i,height:l.height+r+3+(e.desc?2*r+c.height:0)},a,{children:[e.label&&V(Du,{indexes:n,x:0,y:0,width:i,alignHorizontal:h,fill:s.colorPrimary,fontSize:18,fontWeight:"bold",children:e.label}),e.label&&V(J,{x:u,y:d,width:80,height:3,fill:s.colorPrimary,"data-element-type":"shape"}),e.desc&&V(Bu,{indexes:n,width:i,x:0,y:f,alignHorizontal:h,wordWrap:!0,fill:s.colorText,children:e.desc})]}))},composites:["label","desc"]});const xg=t=>{const{x:e=0,y:n=0,width:i=30,height:r=100,fill:o="#FF356A",size:s=10}=t;return V(Q,{width:i,height:r,points:[{x:e,y:n},{x:e+i/2,y:n+s},{x:e+i,y:n},{x:e+i,y:n+r-s},{x:e+i/2,y:n+r},{x:e,y:n+r-s}],fill:o,"data-element-type":"shape"})},bg=t=>{const{x:e=0,y:n=0,width:i=50,height:r=10,fill:o,positionH:s="normal"}=t,a=r/2,l=i-a,c=a;return U(X,{x:e,y:n,width:i,height:r,children:[V(G,{width:r,height:r,fill:o,x:"normal"===s?0:l-a,"data-element-type":"shape"}),V(K,{d:"normal"===s?`M${a},${c} L${a+l},${c}`:`M0,${c} L${l-a},${c}`,strokeWidth:2,stroke:o,"data-element-type":"shape"})]})};bd("vertical-icon-arrow",{component:t=>{const[{indexes:e,datum:n,height:i=140,themeColors:r,positionH:o="normal"},s]=yd(t,["height"]),a="flipped"!==o?"right":"left",l=V(Du,{indexes:e,width:120,fill:r.colorText,alignHorizontal:a,alignVertical:"middle",fontSize:14,children:n.label}),c=V(Bu,{indexes:e,width:120,fill:r.colorTextSecondary,alignHorizontal:a,alignVertical:"top",children:n.desc}),h=V(Nu,{indexes:e,fill:r.colorPrimary,colorBg:r.colorWhite}),u=V(bg,{width:30,height:8,fill:r.colorPrimary,positionH:o}),d="flipped"!==o,f=du(l),p=du(h),g=du(u),m=f.width+5+g.width-p.width-25,y=2*Math.max(f.width+5+g.width,25+p.width)+30;return V(X,Object.assign({width:y,height:i},s,{children:U(Zu,{flexDirection:"row",alignItems:"center",children:[U(D,d?{children:[U(Zu,{flexDirection:"column",alignItems:"flex-end",children:[l,c]}),V(Lu,{width:5}),u]}:{children:[V(Lu,{width:m}),h,V(Lu,{width:25})]}),U(Xu,{horizontal:"center",vertical:"middle",children:[V(xg,{width:30,height:i,fill:r.colorPrimary}),V(su,{width:30,height:i,alignHorizontal:"center",alignVertical:"middle",fill:r.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),U(D,d?{children:[V(Lu,{width:25}),h]}:{children:[u,V(Lu,{width:5}),U(Zu,{flexDirection:"column",alignItems:"flex-start",children:[l,c]})]})]})}))},composites:["icon","label","desc"]});const wg=new Map;function Mg(t,e){wg.set(t,e)}Mg("chart-bar",{component:t=>{var e,n,i;const{Title:r,Item:o,data:s,width:a,gap:l,barGap:c,barHeight:h=28,barAreaWidth:u,labelGap:d=16,padding:f=24,showValue:p=!0,options:g,valueFormatter:m=t=>t.toString()}=t,y=null!==(e=null!=u?u:a)&&void 0!==e?e:480,{title:v,desc:x,items:b=[],xTitle:w,yTitle:M}=s,k=r?V(r,{title:v,desc:x}):null;if(0===b.length)return V(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:k});const[C,O,j,E]=Jh(f),_=null!==(n=b[0])&&void 0!==n?n:{label:"",value:0},S=du(V(o,{indexes:[0],datum:_,data:s})),$=S.width||140,A=S.height||h,z=Math.max(h,A),P=Math.max(12,.35*z),L=null!==(i=null!=c?c:l)&&void 0!==i?i:P,I=b.map(t=>{var e;return null!==(e=t.value)&&void 0!==e?e:0}),T=Math.max(...I,0),R=Math.min(...I,0),B=R<0?1.1*R:0;let W=T>0?1.1*T:0;W===B&&(W=B+1);const H=ag().domain([B,W]).range([0,y]),N=Math.min(Math.max(H(0),0),y),F=Math.max(2,.02*y),D=b.length*(z+L)-L,Y=M?24:0,q=w?24:0,G=C+Y,Z=E+$+d,Q=p?80:0,tt=Math.max(8,.2*z),et=Z+y+Q+O,nt=G+D+tt+20+q+j,it=ud(g.themeConfig),rt=it.colorText||"#666",ot=ld(g),st=[],at=[],lt=[],ct=[],ht=[],ut=[],dt=[],ft=G+D+tt,pt=t=>Number.isInteger(t)?t.toString():t.toFixed(1);b.forEach((t,e)=>{var n;const i=[e],r=null!==(n=t.value)&&void 0!==n?n:0,a=G+e*(z+L),l=a+(z-h)/2,c=r>=0?Z+N:Z+H(r),u=r>=0?H(r)-N:N-H(r),d=0===u?F:u,f=hd(g,[e])||it.colorPrimary;if(st.push(V(J,{x:c,y:l,width:d,height:h,fill:f,rx:6,ry:6,"data-element-type":"shape"})),p){at.push(V(su,{x:r>=0?c+d+8:c-8,y:l+h/2,alignHorizontal:r>=0?"left":"right",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:f,children:m(r,t)}))}lt.push(V(o,{indexes:i,datum:t,data:s,x:E,y:a+(z-A)/2,width:$,height:A,positionV:"middle"}))});const gt=Math.max(3,Math.min(7,Math.floor(y/80)));return H.ticks(gt).forEach(t=>{const e=Z+H(t);ut.push(V(K,{d:`M${e} ${G} L${e} ${G+D}`,stroke:rt,strokeOpacity:.08,"data-element-type":"shape"})),ht.push(V(K,{d:`M${e-.5} ${ft} L${e-.5} ${ft+6}`,stroke:rt,"data-element-type":"shape"})),ht.push(V(su,{x:e,y:ft+14,alignHorizontal:"center",alignVertical:"middle",fontSize:12,fill:rt,children:pt(t)}))}),ct.push(V(K,{d:`M${Z} ${ft} L${Z+y} ${ft}`,stroke:rt,"data-element-type":"shape"})),B<0&&ct.push(V(J,{x:Z+N-.5,y:G,width:1,height:D,fill:ot,"data-element-type":"shape"})),M&&dt.push(V(su,{x:E+$/2,y:C+Y/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:rt,children:M})),w&&dt.push(V(su,{x:Z+y/2,y:ft+20+q/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:rt,children:w})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[k,U(X,{width:et,height:nt,children:[V(X,{children:ut}),V(X,{children:st}),V(X,{children:at}),V(X,{children:dt}),V(X,{children:[...ct,...ht]}),V(Vu,{children:lt})]})]})},composites:["title","item","xTitle","yTitle"]});Mg("chart-column",{component:t=>{const{Title:e,Item:n,data:i,columnGap:r=60,columnWidth:o=50,padding:s=20,showValue:a=!0,options:l,valueFormatter:c=t=>t.toString()}=t,{title:h,desc:u,items:d=[]}=i,f=e?V(e,{title:h,desc:u}):null;if(0===d.length)return V(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:f});const p=ud(l.themeConfig),g=[...d.map(t=>{var e;return null!==(e=t.value)&&void 0!==e?e:0}),0].sort((t,e)=>t-e),m=g[0]<0,y=d.length*o+(d.length-1)*r,[v,x,b,w]=Jh(s),M=m&&a?(a?24:0)+10:10,k=y+w+x,C=300+v+b+M,O=ag().domain([g[0],g[g.length-1]]).range([300,0]),j=O(0),E=[],_=[],S=[],$=[];return d.forEach((t,e)=>{var s;const h=[e],u=null!==(s=t.value)&&void 0!==s?s:0,d=w+e*(o+r),f=u>=0?O(u):j,g=Math.abs(O(u)-j),m=hd(l,[e])||p.colorPrimary,y=`${m}-column-positive-${e}`,x=`${m}-column-negative-${e}`;$.push(U("linearGradient",{id:u>=0?y:x,x1:"0%",y1:u>=0?"0%":"100%",x2:"0%",y2:u>=0?"100%":"0%",children:[V("stop",{offset:"0%",stopColor:m}),V("stop",{offset:"100%",stopColor:wl.A.mix(m,"#fff",40).toHexString()})]})),E.push(V(J,{x:d,y:v+f,width:o,height:g,fill:`url(#${u>=0?y:x})`,rx:8,ry:8,"data-element-type":"shape"})),a&&_.push(V(su,{x:d+o/2,y:u>=0?v+f-10:v+f+g+20,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:u>=0?"bottom":"top",fill:m,children:c(u,t)}));const b=o+r;S.push(V(n,{indexes:h,datum:t,data:i,x:d+o/2-b/2,y:v+300+M,width:b,positionH:"center"}))}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,U(X,{width:k,height:C,children:[V(q,{children:$}),V(X,{children:E}),V(X,{children:_}),V(Vu,{children:S})]})]})},composites:["title","item"]});Mg("chart-line",{component:t=>{const{Title:e,Item:n,data:i,width:r,height:o=260,gap:s=10,padding:a=24,showValue:l=!0,options:c,valueFormatter:h=t=>t.toString()}=t,{title:u,desc:d,items:f=[],xTitle:p,yTitle:g}=i,m=e?V(e,{title:u,desc:d}):null;if(0===f.length)return V(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:m});const[y,v,x,b]=Jh(a),w={indexes:[0],datum:f[0],data:i,positionH:"center",positionV:"normal"},M=du(V(n,Object.assign({},w))),k=M.width,C=Math.max(28,M.height+14),O=g?26:0,j=p?22:0,E=k+s,_=void 0!==r?r:Math.max(200,(f.length>0?(f.length-1)*E+k:0)||320),S=f.length>1?Math.max(E,(_-k)/(f.length-1)):0,$=f.length>0?Math.max(k,(f.length-1)*S+k):0,A=b+44+O,z=y+O,P=A+$+v,L=z+o+C+j+x,I=f.map(t=>{var e;return null!==(e=t.value)&&void 0!==e?e:0}),T=Math.max(...I,0),R=Math.min(...I,0),B=.1*Math.max(Math.abs(T),Math.abs(R)),W=R<0?R-B:0;let H=T>0?T+B:1;H===W&&(H=W+1);const N=ag().domain([W,H]).nice().range([o,0]),F=Math.max(0,Math.min(o,N(0))),D=H<=0?0:W>=0?o:F,Y=ld(c),Z=ud(c.themeConfig),Q=Z.colorText||"#666",J=[],tt=[],et=[],nt=[],it=[],rt=[],ot=[],st=N.ticks(6),at=N.tickFormat(6);st.forEach(t=>{const e=z+N(t);J.push(V(K,{d:`M ${A} ${e} L ${A+$} ${e}`,width:$,height:1,stroke:Q,strokeWidth:1,"data-element-type":"shape",opacity:.08})),ot.push(V(su,{x:A-8,y:e,alignHorizontal:"right",alignVertical:"middle",fontSize:12,fill:Q,children:at(t)}))});const lt=[],ct=[],ht=[];f.forEach((t,e)=>{var i;const r=A+e*S+k/2,s=z+N(null!==(i=t.value)&&void 0!==i?i:0);ct.push({x:r,y:s,datum:t}),lt.push(V(n,Object.assign({},w,{indexes:[e],datum:t,x:r-k/2,y:z+o+4})));const a=hd(c,[e])||Z.colorPrimary;ht.push({x:r,color:a})});const ut=ht.length>0?Math.min(...ht.map(t=>t.x)):A,dt=ht.length>0?Math.max(...ht.map(t=>t.x)):A+$,ft=Math.max(1,dt-ut),pt=ht.map(t=>V("stop",{offset:(t.x-ut)/ft*100+"%",stopColor:t.color})),gt=ht.map(t=>V("stop",{offset:(t.x-ut)/ft*100+"%",stopColor:t.color,stopOpacity:"0.18"}));if(ht.length>0){const t=ht[ht.length-1].color;pt.push(V("stop",{offset:"100%",stopColor:t})),gt.push(V("stop",{offset:"100%",stopColor:t,stopOpacity:"0.04"}))}const mt=`chart-line-${Dh([$,o,Q,Y,ht.map(t=>`${t.x.toFixed(2)}-${t.color}`).join()].join(":"))}`,yt=`${mt}-stroke`,vt=`${mt}-area`,xt=(t=>{if(0===t.length)return"";if(1===t.length){const e=t[0];return`M ${e.x} ${e.y}`}const e=[];e.push(`M ${t[0].x} ${t[0].y}`);for(let n=0;n<t.length-1;n++){const i=t[n-1]||t[n],r=t[n],o=t[n+1],s=t[n+2]||o;e.push(`C ${r.x+(o.x-i.x)/6} ${r.y+(o.y-i.y)/6} ${o.x-(s.x-r.x)/6} ${o.y-(s.y-r.y)/6} ${o.x} ${o.y}`)}return e.join(" ")})(ct);et.push(V(K,{d:xt,width:$,height:o,stroke:`url(#${yt})`,strokeWidth:3,fill:"none","data-element-type":"shape"}));const bt=xt.includes("C")?xt.slice(xt.indexOf("C")):"",wt=[`M ${ct[0].x} ${z+D}`,`L ${ct[0].x} ${ct[0].y}`,bt,`L ${ct[ct.length-1].x} ${z+D}`,"Z"].join(" ");return et.push(V(K,{d:wt,width:$,height:o,fill:`url(#${vt})`,stroke:"none","data-element-type":"shape"})),ct.forEach((t,e)=>{var n;const i=hd(c,[e])||Z.colorPrimary;nt.push(V(G,{x:t.x-6,y:t.y-6,width:12,height:12,fill:i,"data-element-type":"shape"})),l&&it.push(V(su,{x:t.x,y:t.y-12,alignHorizontal:"center",alignVertical:"bottom",fontSize:12,fontWeight:"bold",fill:i,children:h(null!==(n=t.datum.value)&&void 0!==n?n:0,t.datum)}))}),tt.push(V(K,{d:`M ${A} ${z+D} L ${A+$} ${z+D}`,width:$,height:1,stroke:Q,strokeWidth:1,"data-element-type":"shape"})),tt.push(V(K,{d:`M ${A} ${z} L ${A} ${z+o}`,width:1,height:o,stroke:Q,strokeWidth:1,"data-element-type":"shape"})),p&&rt.push(V(su,{x:A+$/2,y:z+o+C+j/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:Q,children:p})),g&&rt.push(V(su,{x:b+O/2,y:z+o/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:Q,children:g})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,U(X,{width:P,height:L,children:[U(q,{children:[V("linearGradient",{id:yt,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:pt}),V("linearGradient",{id:vt,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:gt})]}),V(X,{children:J}),V(X,{children:[...tt,...ot]}),V(X,{children:et}),V(X,{children:nt}),V(X,{children:it}),V(X,{children:rt}),V(Vu,{children:lt})]})]})},composites:["title","item","xTitle","yTitle"]});const kg=1.35;function Cg(t,e,n,i){if(t.length<=1)return t.map(t=>Object.assign({},t));const r=t.map(t=>Object.assign({},t)).sort((t,e)=>t.y-e.y),o=r.some((t,e)=>{if(0===e)return!1;const n=r[e-1];return t.y-n.y<(n.height+t.height)/2}),s=r[0],a=r[r.length-1];if(!o&&!(s.y-s.height/2<n||a.y+a.height/2>i))return r;const l=r.reduce((t,e)=>t+e.height,0),c=i-n;let h=e;if(l+e*(r.length-1)>c){h=Math.max(0,(c-l)/(r.length-1))}for(let t=1;t<r.length;t++){const e=r[t-1],n=r[t],i=e.y+(e.height+n.height)/2+h;n.y<i&&(n.y=i)}const u=r.length-1,d=r[u];if(d.y+d.height/2>i){d.y=i-d.height/2;for(let t=u-1;t>=0;t--){const e=r[t+1],n=r[t],i=e.y-(e.height+n.height)/2-h;n.y>i&&(n.y=i)}}const f=r[0];if(f.y-f.height/2<n){const t=n-(f.y-f.height/2);r.forEach(e=>e.y+=t)}return r}Mg("chart-pie",{component:t=>{var e;const{Title:n,Item:i,data:r,radius:o=140,innerRadius:s=0,padding:a=30,showPercentage:l=!0,avoidLabelOverlap:c=!1,minShowLabelPercent:h=0,options:u}=t,d=function(t){if(null==t)return 0;if("string"==typeof t){const e=t.trim(),n=e.endsWith("%")?e.slice(0,-1):e,i=parseFloat(n);return isNaN(i)?0:i}return t}(h),{title:f,desc:p,items:g=[]}=r,m=n?V(n,{title:f,desc:p}):null,y=du(V(Au,{indexes:[0]})),v=null!==(e=g[0])&&void 0!==e?e:{label:"",value:0},x=du(V(i,{indexes:[0],datum:v,data:r,positionH:"center",positionV:"middle"})),b=x.width||140,w=x.height||32,M=Math.max(o,60),k=M,C=a+(M*kg+8+b),O=a+k,j=2*C,E=2*O;if(0===g.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,V(X,{width:j,height:E,children:V(Pu,{children:V(Au,{indexes:[0],x:C-y.width/2,y:O-y.height/2})})})]});const _=g.reduce((t,e)=>{var n;return t+Math.max(null!==(n=e.value)&&void 0!==n?n:0,0)},0),S=ld(u),$=ud(u.themeConfig),A=function(){var t=fg,e=dg,n=null,i=(0,ug.A)(0),r=(0,ug.A)(pg.FA),o=(0,ug.A)(0);function s(s){var a,l,c,h,u,d=(s=(0,hg.A)(s)).length,f=0,p=new Array(d),g=new Array(d),m=+i.apply(this,arguments),y=Math.min(pg.FA,Math.max(-pg.FA,r.apply(this,arguments)-m)),v=Math.min(Math.abs(y)/d,o.apply(this,arguments)),x=v*(y<0?-1:1);for(a=0;a<d;++a)(u=g[p[a]=a]=+t(s[a],a,s))>0&&(f+=u);for(null!=e?p.sort(function(t,n){return e(g[t],g[n])}):null!=n&&p.sort(function(t,e){return n(s[t],s[e])}),a=0,c=f?(y-d*x)/f:0;a<d;++a,m=h)g[l=p[a]]={data:s[l],index:a,value:u=g[l],startAngle:m,endAngle:h=m+(u>0?u*c:0)+x,padAngle:v};return g}return s.value=function(e){return arguments.length?(t="function"==typeof e?e:(0,ug.A)(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:(0,ug.A)(+t),s):i},s.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:(0,ug.A)(+t),s):r},s.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:(0,ug.A)(+t),s):o},s}().value(t=>{var e;return Math.max(null!==(e=t.value)&&void 0!==e?e:0,0)}).sort(null).startAngle(0).endAngle(2*Math.PI),z=A(g),P=(0,lg.A)().innerRadius(s).outerRadius(M).cornerRadius(2),L=(0,lg.A)().innerRadius(M).outerRadius(M),I=(0,lg.A)().innerRadius(1.15*M).outerRadius(1.15*M),T=s+.5*(M-s),R=(0,lg.A)().innerRadius(T).outerRadius(T),B=(0,lg.A)().innerRadius(.85*M).outerRadius(.85*M),W=[],H=[],N=[],F=[],D=[],Y=[];z.forEach(t=>{const e=t.index,n=hd(u,[e])||$.colorPrimary||S,i=P(t)||"";W.push(V(K,{d:i,fill:n,stroke:$.colorBg,strokeWidth:1,"data-element-type":"shape",width:2*M,height:2*M}));const r=t.startAngle+(t.endAngle-t.startAngle)/2,o=(r<0?r+2*Math.PI:r)<Math.PI;if((_>0?t.value/_*100:0)<d)return;const s=I.centroid(t);Y.push({arcDatum:t,originalIndex:e,x:s[0],y:s[1],height:w,isRight:o,color:n})});let q=Y;if(c){const t=-k*kg,e=k*kg,n=Y.filter(t=>!t.isRight),i=Y.filter(t=>t.isRight),r=w,o=Cg(i,r,t,e);q=[...Cg(n,r,t,e),...o]}return q.forEach(t=>{const{arcDatum:e,originalIndex:n,isRight:o,color:s,y:a}=t,c=L.centroid(e),h=I.centroid(e),d=a,f=Math.abs(d-h[1]),p=M*kg,g=p+.2*M+20,m=[Math.min(p+.3*f,g)*(o?1:-1),d],v=[g*(o?1:-1),d];N.push(V(K,{d:`M${C+c[0]} ${O+c[1]} \n L${C+h[0]} ${O+h[1]} \n L${C+m[0]} ${O+m[1]}\n L${C+v[0]} ${O+v[1]}\n `,stroke:s,strokeOpacity:.45,strokeWidth:2,fill:"none","data-element-type":"shape"}));if(F.push(V(i,{indexes:[n],datum:e.data,data:r,x:C+v[0]+(o?8:-8-b),y:O+a-w/2,width:b,height:w,positionH:o?"normal":"flipped",positionV:"middle",themeColors:ud({colorPrimary:s},u)})),l&&_>0){const t=R.centroid(e),i=Math.max(e.value,0),r=(100*i/_).toFixed(1),o=50,s=20;H.push(V(su,{x:C+t[0]-o/2,y:O+t[1]-s/2,width:o,height:s,alignHorizontal:"center",alignVertical:"middle",fontSize:12,fontWeight:"bold",fill:"#ffffff","data-value":i,"data-indexes":[n],"data-element-type":"item-value",children:`${r}%`}))}const x=B.centroid(e);D.push(V(zu,{indexes:[n],x:C+x[0]-y.width/2,y:O+x[1]-y.height/2}))}),z.forEach((t,e)=>{const n=(e+1)%z.length,i=(t.endAngle+(z[n].startAngle+(0===n?2*Math.PI:0)))/2,r=1*M,o=Math.sin(i)*r,s=-Math.cos(i)*r;D.push(V(Au,{indexes:[e+1],x:C+o-y.width/2,y:O+s-y.height/2}))}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[m,U(X,{width:j,height:E,children:[V(X,{x:C,y:O,children:W}),V(X,{children:N}),V(X,{children:H}),V(Vu,{children:F}),V(Pu,{children:D})]})]})},composites:["title","item"]});const Og=[0,30,-30,60,-60],jg=Math.PI*(3-Math.sqrt(5));function Eg(t,e,n){const i=Math.PI/180*n,r=Math.cos(i),o=Math.sin(i);return{width:Math.abs(t*r)+Math.abs(e*o),height:Math.abs(t*o)+Math.abs(e*r)}}function _g(t,e,n,i,r,o){const s=t-o,a=t+n+o,l=e-o,c=e+i+o;return r.some(t=>!(a<=t.box.x-o||s>=t.box.x+t.box.width+o||c<=t.box.y-o||l>=t.box.y+t.box.height+o))}Mg("chart-wordcloud",{component:t=>{const{data:e,options:n,minFontSize:i=16,maxFontSize:r=48,enableRotate:o=!0,padding:s=6,spiralStep:a=.45,radiusStep:l=10}=t,{items:c=[]}=e,h=c.map((t,e)=>({datum:t,index:e})).filter(({datum:t})=>t.label);if(0===h.length)return V(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:V(X,{children:V(Vu,{})})});const u=h.map(({datum:t})=>t.value).filter(t=>"number"==typeof t),d=u.length>0,f=d?Math.min(...u):0,p=d?Math.max(...u):0,g=d&&f===p,m=(i+r)/2,y=h.map(({datum:t,index:e})=>{const o=(t=>!d||g?m:null==t?i:i+(t-f)/(p-f||1)*(r-i))(t.value),s=du(V(su,{fontSize:o,fontWeight:"bold",children:t.label})),a=hd(n,[e])||ld(n)||"#333333";return{label:t.label,value:t.value,color:a,fontSize:o,width:1.05*s.width,height:s.height}}).sort((t,e)=>e.fontSize-t.fontSize),v=function(t,e,n,i,r){const o=[],s=e?Og:[0],a=Math.max(1600,28*t.length);return t.forEach((t,e)=>{const l=Math.max(t.width,t.height),c=e*jg;let h=0,u=null;for(let e=0;e<a&&!u;e++){e===Math.floor(.6*a)&&(h=l);const d=c+e*i,f=r*Math.sqrt(e+1)+h+.25*l,p=f*Math.cos(d),g=f*Math.sin(d);for(const e of s){const i=Eg(t.width,t.height,e),r=p-i.width/2,s=g-i.height/2;if(!_g(r,s,i.width,i.height,o,n)){u=Object.assign(Object.assign({},t),{angle:e,centerX:p,centerY:g,box:{x:r,y:s,width:i.width,height:i.height}});break}}}if(!u){const n=s[e%s.length],i=r*Math.sqrt(a+1)+l,o=c,h=i*Math.cos(o),d=i*Math.sin(o),f=Eg(t.width,t.height,n);u=Object.assign(Object.assign({},t),{angle:n,centerX:h,centerY:d,box:{x:h-f.width/2,y:d-f.height/2,width:f.width,height:f.height}})}o.push(u)}),o}(y,o,s,a,l),x=Math.min(...v.map(t=>t.box.x)),b=Math.min(...v.map(t=>t.box.y)),w=Math.max(...v.map(t=>t.box.x+t.box.width)),M=Math.max(...v.map(t=>t.box.y+t.box.height)),k=-x+s,C=-b+s,O=w-x+2*s,j=M-b+2*s,E=v.map((t,e)=>V(X,{transform:`translate(${t.centerX-t.width/2+k}, ${t.centerY-t.height/2+C}) rotate(${t.angle}, ${t.width/2}, ${t.height/2})`,children:V(su,{width:t.width,height:t.height,fontSize:t.fontSize,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:t.color,"data-indexes":e,"data-element-type":"item-label",children:t.label})}));return V(Vu,{id:"infographic-container",width:O,height:j,children:E})},composites:[]});const Sg=new Map,$g=(t,e)=>{Sg.set(t,e)};$g("pros-cons-arrow",t=>{const{x:e,y:n,colorPositive:i,colorNegative:r,colorBg:o}=t,s={width:90,height:40,fontSize:22,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return U(X,{x:e,y:n,width:200,height:141,children:[U(qu,{children:[V("path",{d:"M137 54C137 54.2903 137 54.5806 136.706 54.7742L108.614 86.0323H64.7619C64.4071 86.0204 64.0557 86.1043 63.7453 86.2747C63.4349 86.4452 63.1773 86.6959 63 87C63.0037 86.7447 63.1092 86.5012 63.2936 86.3226L91.3862 55.0645H135.238C135.593 55.0763 135.944 54.9925 136.255 54.822C136.565 54.6516 136.823 54.4009 137 54.0968V54Z",fill:"#D9D9D9"}),V("path",{d:"M39.3272 0.484649C39.6146 0.234929 39.9662 0.0736935 40.3407 0.0198929C40.7152 -0.0339076 41.0971 0.0219605 41.4414 0.180925C41.7857 0.33989 42.0783 0.595358 42.2846 0.917314C42.491 1.23927 42.6026 1.61434 42.6063 1.99848V14.8156H136.013C136.54 14.8156 137.045 15.0282 137.418 15.4068C137.791 15.7853 138 16.2987 138 16.834V53.166C138 53.7013 137.791 54.2147 137.418 54.5932C137.045 54.9718 136.54 55.1844 136.013 55.1844H42.6063V68.0015C42.6026 68.3857 42.491 68.7607 42.2846 69.0827C42.0783 69.4046 41.7857 69.6601 41.4414 69.8191C41.0971 69.9781 40.7152 70.0339 40.3407 69.9801C39.9662 69.9263 39.6146 69.7651 39.3272 69.5154L0.672847 36.5138C0.461378 36.3244 0.292014 36.0915 0.176005 35.8305C0.0599968 35.5695 0 35.2864 0 35C0 34.7136 0.0599968 34.4306 0.176005 34.1696C0.292014 33.9085 0.461378 33.6756 0.672847 33.4862L39.4265 0.484649H39.3272Z",fill:i}),V("path",{d:"M157.394 73.0007C157.397 72.6162 157.509 72.2407 157.715 71.9183C157.922 71.596 158.214 71.3403 158.559 71.1811C158.903 71.022 159.285 70.9661 159.659 71.0199C160.034 71.0738 160.385 71.2352 160.673 71.4852L199.327 104.524C199.539 104.714 199.708 104.947 199.824 105.208C199.94 105.47 200 105.753 200 106.04C200 106.326 199.94 106.61 199.824 106.871C199.708 107.132 199.539 107.366 199.327 107.555L160.573 140.594C160.285 140.815 159.943 140.951 159.584 140.989C159.225 141.027 158.862 140.965 158.535 140.809C158.208 140.653 157.929 140.41 157.728 140.105C157.527 139.8 157.411 139.445 157.394 139.078V126.247H63.9874C63.4603 126.247 62.9548 126.034 62.5821 125.655C62.2094 125.276 62 124.762 62 124.226V87.8531C62 87.3172 62.2094 86.8032 62.5821 86.4242C62.9548 86.0453 63.4603 85.8324 63.9874 85.8324H157.394V73.0007Z",fill:r})]}),V(su,Object.assign({x:40,y:15},s,{children:"Pros"})),V(su,Object.assign({x:70,y:85},s,{children:"Cons"}))]})});$g("pros-cons-fold",t=>{const{x:e,y:n,colorPositive:i,colorNegative:r,colorBg:o}=t,s={width:85,height:30,fontSize:20,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return U(X,{x:e,y:n,width:240,height:300,children:[U(qu,{children:[V("path",{d:"M136.914 38.7755C137.303 38.7733 137.683 38.6617 138.011 38.4534C138.339 38.2451 138.602 37.9485 138.77 37.5977C138.937 37.247 139.002 36.8561 138.957 36.4701C138.913 36.084 138.76 35.7183 138.517 35.415L110.741 0.982313C110.548 0.735138 110.301 0.535238 110.018 0.397762C109.736 0.260286 109.426 0.188841 109.112 0.188841C108.798 0.188841 108.488 0.260286 108.206 0.397762C107.924 0.535238 107.676 0.735138 107.483 0.982313L79.7069 35.415C79.4639 35.7183 79.3113 36.084 79.2667 36.4701C79.222 36.8561 79.2871 37.247 79.4545 37.5977C79.6219 37.9485 79.8847 38.2451 80.213 38.4534C80.5412 38.6617 80.9216 38.7733 81.3104 38.7755H92.8965C93.0517 57.1293 97.5517 64.9878 105.259 73.7252C107.017 75.7932 108.983 77.8612 111.103 80.1361C113.276 82.4626 122.121 88.9252 131.069 95.181C129.362 88.7701 128.172 81.2218 127.293 73.7252C125.224 55.9918 125.017 38.7755 125.017 38.7755H136.914Z",fill:i,fillOpacity:.4}),V("path",{d:"M237.931 109.967C238.48 109.967 239.006 109.749 239.394 109.362C239.782 108.974 240 108.448 240 107.899V75.7932C240 75.2447 239.782 74.7187 239.394 74.3309C239.006 73.9431 238.48 73.7252 237.931 73.7252H127.241C128.172 81.2218 129.362 88.7701 131.069 95.181C138.182 100.171 145.337 105.1 152.534 109.967H237.931Z",fill:i}),V("path",{d:"M152.586 109.967C152.586 109.967 141.724 102.678 131.069 95.181C124.122 90.5838 117.455 85.5772 111.103 80.1878C109.034 77.8612 107.017 75.7415 105.259 73.7252H48.6207V56.6639C48.6091 56.2797 48.4905 55.9063 48.2784 55.5857C48.0662 55.2651 47.7689 55.0099 47.4197 54.8488C47.0705 54.6878 46.6833 54.6271 46.3016 54.6738C45.9199 54.7204 45.5587 54.8725 45.2586 55.1129L1.50002 90.2694C1.26208 90.4633 1.07029 90.7078 0.938585 90.985C0.80688 91.2622 0.738558 91.5652 0.738558 91.8721C0.738558 92.179 0.80688 92.482 0.938585 92.7592C1.07029 93.0365 1.26208 93.2809 1.50002 93.4748L45.2586 128.631C45.5621 128.874 45.928 129.027 46.3142 129.071C46.7005 129.116 47.0914 129.051 47.4424 128.884C47.7933 128.716 48.09 128.454 48.2984 128.125C48.5068 127.797 48.6185 127.417 48.6207 127.029V109.967H152.586Z",fill:"#BFBFBF"}),V("path",{d:"M36.1034 88.9252H28.9655V93.785H36.1034V101.85H41.4828V93.785H48.6207V88.8735H41.4828V81.1701H36.1034V88.9252Z",fill:"#404040"}),V("path",{d:"M103.086 261.224C102.697 261.227 102.317 261.338 101.989 261.547C101.661 261.755 101.398 262.051 101.23 262.402C101.063 262.753 100.998 263.144 101.043 263.53C101.087 263.916 101.24 264.282 101.483 264.585L129.259 299.018C129.452 299.265 129.699 299.465 129.982 299.602C130.264 299.74 130.574 299.811 130.888 299.811C131.202 299.811 131.512 299.74 131.794 299.602C132.076 299.465 132.324 299.265 132.517 299.018L160.293 264.585C160.536 264.282 160.689 263.916 160.733 263.53C160.778 263.144 160.713 262.753 160.546 262.402C160.378 262.051 160.115 261.755 159.787 261.547C159.459 261.338 159.078 261.227 158.69 261.224H147.103C146.948 242.871 142.448 235.012 134.741 226.275C132.983 224.207 131.017 222.139 128.897 219.864C126.724 217.537 117.879 211.075 108.931 204.819C110.677 211.877 111.938 219.045 112.707 226.275C114.776 244.008 114.983 261.224 114.983 261.224H103.086Z",fill:r,fillOpacity:.4}),V("path",{d:"M2.06897 190.033C1.52025 190.033 0.993996 190.251 0.605989 190.638C0.217983 191.026 5.00679e-06 191.552 5.00679e-06 192.101V224.207C5.00679e-06 224.755 0.217983 225.281 0.605989 225.669C0.993996 226.057 1.52025 226.275 2.06897 226.275H112.759C111.828 218.778 110.638 211.23 108.931 204.819C99.9827 198.512 90.931 192.411 88.2414 190.55C87.7206 190.204 87.1077 190.024 86.4828 190.033H2.06897Z",fill:r}),V("path",{d:"M87.4138 190.033C87.4138 190.033 98.2759 197.322 108.931 204.819C115.878 209.416 122.545 214.423 128.897 219.812C130.966 222.139 132.983 224.258 134.741 226.275H191.379V243.336C191.391 243.72 191.51 244.094 191.722 244.414C191.934 244.735 192.231 244.99 192.58 245.151C192.929 245.312 193.317 245.373 193.698 245.326C194.08 245.28 194.441 245.128 194.741 244.887L238.5 209.731C238.738 209.537 238.93 209.292 239.061 209.015C239.193 208.738 239.261 208.435 239.261 208.128C239.261 207.821 239.193 207.518 239.061 207.241C238.93 206.964 238.738 206.719 238.5 206.525L194.741 171.369C194.438 171.126 194.072 170.973 193.686 170.929C193.3 170.884 192.909 170.949 192.558 171.116C192.207 171.284 191.91 171.546 191.702 171.875C191.493 172.203 191.382 172.583 191.379 172.971V190.033H87.4138Z",fill:"#BFBFBF"}),V("path",{d:"M192.414 205.905V210.816H212.069V205.905H192.414Z",fill:"#404040"})]}),V(su,Object.assign({x:153,y:77},s,{children:"PROS"})),V(su,Object.assign({x:2,y:193},s,{children:"CONS"}))]})});$g("vs",t=>{const{x:e,y:n,colorPrimary:i,colorBg:r}=t,o=100,s=100,a=(0,wl.A)(i).lighten(20).toString();return U(X,{x:e,y:n,width:o,height:s,children:[U(q,{children:[V("filter",{id:"vs-divider-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:V("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"8",result:"blur"})}),V(Md,{})]}),V(G,{x:0,y:0,width:o,height:s,fill:a,filter:"url(#vs-divider-glow-filter)",opacity:.6}),V(G,{x:0,y:0,width:o,height:s,fill:i,"data-element-type":"shape"}),V("text",{x:50,y:50,fontSize:Math.min(o,s)/1.5,fontWeight:"bold",fill:r,textAnchor:"middle",dominantBaseline:"central",filter:"url(#drop-shadow)",children:"VS"})]})});Mg("compare-binary-horizontal",{component:t=>{const{Title:e,Item:n,data:i,gap:r=20,groupGap:o=20,opposite:s=!0,flipped:a=!0,dividerType:l="vs",options:c}=t,{title:h,desc:u,items:d=[]}=i,f=e?V(e,{title:h,desc:u}):null;if(0===d.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,V(X,{children:V(Pu,{children:V(Au,{indexes:[0],x:0,y:0})})})]});const p=(d[0]||{children:[]}).children||[],g=(d[1]||{children:[]}).children||[],m=ud(c.themeConfig),y=du(V(n,{indexes:[0,0],data:i,datum:p[0]||{}})),v=du(V(Au,{indexes:[0]})),x=(t=>{var e;return t&&null!==(e=Sg.get(t))&&void 0!==e?e:null})(l),b=x?du(V(x,{x:0,y:0,colorPrimary:m.colorPrimary,colorBg:m.colorBg,colorPositive:m.colorPrimary,colorNegative:m.colorPrimary})):{width:0,height:0},w=[],M=[],k=[],C=Math.max(p.length,g.length),O=C>0?C*(y.height+r)-r:0,j=C>0?r/2+v.height/2:v.height/2,E=v.width+5,_=E+y.width+o,S=_+b.width+o,$=a?"flipped":"normal",A=a?"normal":s?"flipped":"normal";if(p.forEach((t,e)=>{const o=j+e*(y.height+r),s=[0,e];w.push(V(n,{indexes:s,datum:t,data:i,x:E,y:o,positionH:$,positionV:"middle"})),M.push(V(zu,{indexes:s,x:E-v.width-5,y:o+(y.height-v.height)/2})),e<p.length-1&&M.push(V(Au,{indexes:[0,e+1],x:E+(y.width-v.width)/2,y:o+y.height+r/2-v.height/2}))}),p.length>0){M.push(V(Au,{indexes:[0,0],x:E+(y.width-v.width)/2,y:j-r/2-v.height/2}));M.push(V(Au,{indexes:[0,p.length],x:E+(y.width-v.width)/2,y:j+(p.length-1)*(y.height+r)+y.height+r/2-v.height/2}))}else d.length>=1&&M.push(V(Au,{indexes:[0,0],x:E+(y.width-v.width)/2,y:j-v.height/2}));if(g.forEach((t,e)=>{const o=j+e*(y.height+r),s=[1,e];w.push(V(n,{indexes:s,datum:t,data:i,x:S,y:o,positionH:A,positionV:"middle"})),M.push(V(zu,{indexes:s,x:S+y.width+5,y:o+(y.height-v.height)/2})),e<g.length-1&&M.push(V(Au,{indexes:[1,e+1],x:S+(y.width-v.width)/2,y:o+y.height+r/2-v.height/2}))}),g.length>0){M.push(V(Au,{indexes:[1,0],x:S+(y.width-v.width)/2,y:j-r/2-v.height/2}));M.push(V(Au,{indexes:[1,g.length],x:S+(y.width-v.width)/2,y:j+(g.length-1)*(y.height+r)+y.height+r/2-v.height/2}))}else d.length>=2&&M.push(V(Au,{indexes:[1,0],x:S+(y.width-v.width)/2,y:j-v.height/2}));return d.length<2&&M.push(V(Au,{indexes:[1],x:S+(y.width-v.width)/2,y:j+(O-v.height)/2})),x&&k.push(V(x,{x:_,y:j+(O-b.height)/2,colorPrimary:m.colorPrimary,colorBg:m.colorBg,colorPositive:hd(c,[0])||m.colorPrimary,colorNegative:hd(c,[1])||m.colorPrimary})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,U(X,{children:[V(X,{children:k}),V(Vu,{children:w}),V(Pu,{children:M})]})]})},composites:["title","item"]});const Ag={none:5,"dot-line":100,"arc-dot":20,"split-line":5},zg=t=>{const{x:e,y:n,width:i,height:r,color:o,colorBg:s,side:a}=t,l=n+r,c=`split-line-linear-gradient-${a}`;return U(D,{children:[V(q,{children:V(kd,{id:c,startColor:o,stopColor:s,direction:"left"===a?"left-right":"right-left"})}),V(J,{x:e,y:l,width:i,height:1,fill:`url(#${c})`})]})},Pg=t=>{const{x:e,y:n,side:i,width:r,height:o,color:s,colorBg:a}=t,l="left"===i?e+r+6+5:e-6-5,c=n+o/2,h=l-2,u=c-2,d="left"===i?80:-80,f=`dot-line-linear-gradient-${i}`;return U(X,{children:[V(q,{children:V(kd,{id:f,startColor:s,stopColor:a,direction:"left"===i?"left-right":"right-left"})}),U(qu,{children:[V(G,{x:l-6,y:c-6,width:12,height:12,fill:"none",strokeWidth:1,stroke:s}),V(G,{x:h,y:u,width:4,height:4,fill:s})]}),V(J,{x:"left"===i?l:l+d,y:c-.5,width:80,height:1,fill:`url(#${f})`})]})};Mg("compare-hierarchy-left-right",{component:t=>{var e,n;const{Title:i,Items:r,data:o,gap:s=20,groupGap:a=0,decoration:l="none",surround:c=!0,flipRoot:h=!1,flipLeaf:u=!1,options:d}=t,[f,p]=r,{title:g,desc:m,items:y=[]}=o,v=i?V(i,{title:g,desc:m}):null,x=V(f,{indexes:[0],data:o,datum:o.items[0],themeColors:{}}),b=V(p,{indexes:[0,0],data:o,datum:(null===(n=null===(e=y[0])||void 0===e?void 0:e.children)||void 0===n?void 0:n[0])||y[2]}),w=du(x),M=du(b),k=[],C=[],[O,j]=y,E=(null==O?void 0:O.children)||[],_=(null==j?void 0:j.children)||[],S=Math.max(w.height,E.length*(M.height+s)-s,_.length*(M.height+s)-s),$=Ag[l]||0,A=M.width+$,z=A+w.width+a,P=(S-w.height)/2;O&&k.push(V(f,{indexes:[0],x:A,y:P,data:o,datum:O,positionH:h?"normal":"flipped"})),j&&k.push(V(f,{indexes:[1],x:z,y:P,data:o,datum:j,positionH:h?"flipped":"normal"}));const L=(t,e,n)=>{if("none"===l)return;const[i,r]=e,o=hd(d,n),s={x:i,y:r,width:M.width,height:M.height,side:t,color:o||"#ccc",colorBg:d.themeConfig.colorBg||"#fff"};"split-line"===l?C.push(V(zg,Object.assign({},s))):"dot-line"===l&&C.push(V(Pg,Object.assign({},s)))};if(c){const t=(2*w.width+a+M.width)/2+$,e=A+w.width+a/2,n=P+w.height/2;E.forEach((i,r)=>{const a=(S-(E.length*(M.height+s)-s))/2+r*(M.height+s),l=a+M.height/2-n,c=Math.max(0,t*t-l*l),h=e-Math.sqrt(c)-M.width/2;k.push(V(p,{indexes:[0,r],datum:i,data:o,x:h,y:a,positionH:u?"flipped":"normal"})),L("left",[h,a],[0,r])}),_.forEach((i,r)=>{const a=(S-(_.length*(M.height+s)-s))/2+r*(M.height+s),l=a+M.height/2-n,c=Math.max(0,t*t-l*l),h=e+Math.sqrt(c)-M.width/2;k.push(V(p,{indexes:[1,r],datum:i,data:o,x:h,y:a,positionH:u?"normal":"flipped"})),L("right",[h,a],[1,r])})}else E.forEach((t,e)=>{const n=(S-(E.length*(M.height+s)-s))/2+e*(M.height+s),i=[0,e];k.push(V(p,{indexes:i,datum:t,data:o,x:0,y:n,positionH:u?"flipped":"normal"})),L("left",[0,n],i)}),_.forEach((t,e)=>{const n=(S-(_.length*(M.height+s)-s))/2+e*(M.height+s),i=[1,e],r=z+w.width+$;k.push(V(p,{indexes:i,datum:t,data:o,x:r,y:n,positionH:u?"normal":"flipped"})),L("right",[r,n],i)});return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,U(X,{children:[V(Vu,{children:k}),V(X,{width:0,height:0,children:C})]})]})},composites:["title","item"]});Mg("compare-hierarchy-row",{component:t=>{var e,n;const{Title:i,Items:r,data:o,gap:s=0,itemGap:a=20,columnWidth:l=280,itemPadding:c=5,showColumnBackground:h=!0,columnBackgroundAlpha:u=.08,options:d}=t,[f,p]=r,{title:g,desc:m,items:y=[]}=o,v=i?V(i,{title:g,desc:m}):null,x=cd(d),b=[],w=[],M=l-2*c,k=du(V(f,{indexes:[0],data:o,datum:y[0],width:l})),C=du(V(p,{indexes:[0,0],data:o,datum:(null===(n=null===(e=y[0])||void 0===e?void 0:e.children)||void 0===n?void 0:n[0])||{},width:M})),O=du(V(Au,{indexes:[0]})),j=Math.max(...y.map(t=>{var e;return(null===(e=t.children)||void 0===e?void 0:e.length)||0}),0),E=k.height+a+j*(C.height+a);if(y.forEach((t,e)=>{const{children:n=[]}=t,i=e*(l+s),r=i;if(h){const t=`${x[e%x.length]}${Math.round(255*u).toString(16).padStart(2,"0")}`;b.push(V(J,{x:i,y:0,width:l,height:E,fill:t,rx:0,ry:0,"data-element-type":"shape"}))}b.push(V(f,{indexes:[e],datum:t,data:o,x:r,y:0,width:l})),w.push(V(zu,{indexes:[e],x:r+k.width-O.width-10,y:10})),0===e&&w.push(V(Au,{indexes:[e],x:r+k.width/2-O.width/2,y:0-O.height-5}));const d=0+k.height+a;n.forEach((t,i)=>{const s=d+i*(C.height+a),l=r+c,h=[e,i];b.push(V(p,{indexes:h,datum:t,data:o,x:l,y:s,width:M})),w.push(V(zu,{indexes:h,x:l+C.width-O.width-10,y:s+(C.height-O.height)/2})),i<n.length-1&&w.push(V(Au,{indexes:[e,i+1],x:l+C.width/2-O.width/2,y:s+C.height-O.height/2}))});const g=r+c;if(n.length>0){w.push(V(Au,{indexes:[e,n.length],x:g+C.width/2-O.width/2,y:d+n.length*(C.height+a)-C.height/2-O.height/2}))}else w.push(V(Au,{indexes:[e,0],x:g+C.width/2-O.width/2,y:d-a/2-O.height/2}))}),y.length>0){w.push(V(Au,{indexes:[y.length],x:y.length*(l+s)-s/2-O.width/2,y:-O.height-5}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,U(X,{children:[V(Vu,{children:b}),V(Pu,{children:w})]})]})},composites:["title","item"]});const Lg={axisColor:"#D9D9D9",axisArrowSize:5,strokeWidth:1,dashArray:"4,2",defaultExtraSpacing:20};Mg("quadrant",{component:t=>{const{Title:e,Item:n,data:i,quadrantWidth:r,quadrantHeight:o,showAxis:s=!0,dashedAxis:a=!0}=t,{title:l,desc:c,items:h=[]}=i,u=e?V(e,{title:l,desc:c}):null,d=Array.from({length:4},(t,e)=>h[e]),f=d[0]?du(V(n,{indexes:[0],data:i,datum:d[0]})):{width:0,height:0},p=null!=r?r:f.width+Lg.defaultExtraSpacing,g=null!=o?o:f.height+Lg.defaultExtraSpacing,m=function(t,e,n){const i=t/2,r=e/2;return[{x:i-n.width/2,y:r-n.height/2},{x:t+i-n.width/2,y:r-n.height/2},{x:i-n.width/2,y:e+r-n.height/2},{x:t+i-n.width/2,y:e+r-n.height/2}]}(p,g,f),y=d.map((t,e)=>{if(!t)return null;const r=m[e];return V(n,{indexes:[e],datum:t,data:i,x:r.x,y:r.y,positionH:e%2?"flipped":"normal",positionV:e<2?"normal":"flipped"})}).filter(Boolean),v=function(t,e,n,i){if(!n)return[];const{axisColor:r,axisArrowSize:o,strokeWidth:s,dashArray:a}=Lg,l=t,c=e,h=2*t,u=2*e,d=i?a:void 0;return[V(K,{d:`M 0 ${c} L ${h} ${c}`,stroke:r,strokeWidth:s,strokeDasharray:d,fill:"none","data-element-type":"shape"}),U(qu,{transform:`translate(${h}, ${c})`,children:[V(K,{d:`M 0 0 L ${-o} ${-o/2}`,stroke:r,strokeWidth:s,fill:"none"}),V(K,{d:`M 0 0 L ${-o} ${o/2}`,stroke:r,strokeWidth:s,fill:"none"})]}),U(qu,{transform:`translate(0, ${c})`,children:[V(K,{d:`M 0 0 L ${o} ${-o/2}`,stroke:r,strokeWidth:s,fill:"none"}),V(K,{d:`M 0 0 L ${o} ${o/2}`,stroke:r,strokeWidth:s,fill:"none"})]}),V(K,{d:`M ${l} 0 L ${l} ${u}`,stroke:r,strokeWidth:s,strokeDasharray:d,fill:"none","data-element-type":"shape"}),U(qu,{transform:`translate(${l}, 0)`,children:[V(K,{d:`M 0 0 L ${-o/2} ${o}`,stroke:r,strokeWidth:s,fill:"none"}),V(K,{d:`M 0 0 L ${o/2} ${o}`,stroke:r,strokeWidth:s,fill:"none"})]}),U(qu,{transform:`translate(${l}, ${u})`,children:[V(K,{d:`M 0 0 L ${-o/2} ${-o}`,stroke:r,strokeWidth:s,fill:"none"}),V(K,{d:`M 0 0 L ${o/2} ${-o}`,stroke:r,strokeWidth:s,fill:"none"})]})]}(p,g,s,a);return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,U(X,{width:2*p,height:2*g,children:[v,V(Vu,{children:y})]})]})},composites:["title","item"]});const Ig=Object.assign,Tg={getId:t=>t.id||t.name,getPreH:t=>t.preH||0,getPreV:t=>t.preV||0,getHGap:t=>t.hgap||18,getVGap:t=>t.vgap||18,getChildren:t=>t.children,getHeight:t=>t.height||36,getWidth:t=>t.width||18*(t.label||" ").split("").length};class Rg{constructor(t,e){if(this.x=0,this.y=0,this.depth=0,this.children=[],this.hgap=0,this.vgap=0,t instanceof Rg||"x"in t&&"y"in t&&"children"in t){const e=t;return this.data=e.data,this.id=e.id,this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this.depth=e.depth,this.children=e.children,this.parent=e.parent,this.hgap=e.hgap,this.vgap=e.vgap,this.preH=e.preH,void(this.preV=e.preV)}this.data=t;const n=e.getHGap(t),i=e.getVGap(t);this.preH=e.getPreH(t),this.preV=e.getPreV(t),this.width=e.getWidth(t),this.height=e.getHeight(t),this.width+=this.preH,this.height+=this.preV,this.id=e.getId(t),this.addGap(n,i)}isRoot(){return 0===this.depth}isLeaf(){return 0===this.children.length}addGap(t,e){this.hgap+=t,this.vgap+=e,this.width+=2*t,this.height+=2*e}eachNode(t){let e,n=[this];for(;e=n.shift();)t(e),n=e.children.concat(n)}DFTraverse(t){this.eachNode(t)}BFTraverse(t){let e,n=[this];for(;e=n.shift();)t(e),n=n.concat(e.children)}getBoundingBox(){const t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(e=>{t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)}),t}translate(t=0,e=0){this.eachNode(n=>{n.x+=t,n.y+=e,n.x+=n.preH,n.y+=n.preV})}right2left(){const t=this.getBoundingBox();this.eachNode(e=>{e.x=e.x-2*(e.x-t.left)-e.width}),this.translate(t.width,0)}bottom2top(){const t=this.getBoundingBox();this.eachNode(e=>{e.y=e.y-2*(e.y-t.top)-e.height}),this.translate(0,t.height)}}function Bg(t,e={},n){e=Ig({},Tg,e);const i=new Rg(t,e),r=[i];let o;if(!n&&!t.collapsed)for(;o=r.shift();)if(!o.data.collapsed){const t=e.getChildren(o.data),n=t?t.length:0;if(o.children=new Array(n),t&&n)for(let i=0;i<n;i++){const n=new Rg(t[i],e);o.children[i]=n,r.push(n),n.parent=o,n.depth=o.depth+1}}return i}class Wg{constructor(t,e={}){this.options=e,this.rootNode=Bg(t,e)}execute(){throw new Error("please override this method")}}function Hg(t,e){const n=Bg(t.data,e,!0),i=Bg(t.data,e,!0),r=t.children.length,o=Math.round(r/2),s=e.getSide||function(t,e){return e<o?"right":"left"};for(let e=0;e<r;e++){const r=t.children[e];"right"===s(r,e)?i.children.push(r):n.children.push(r)}return n.eachNode(t=>{t.isRoot()||(t.side="left")}),i.eachNode(t=>{t.isRoot()||(t.side="right")}),{left:n,right:i}}const Ng=["LR","RL","TB","BT","H","V"],Fg=["LR","RL","H"],Dg=Ng[0];function Vg(t,e,n){const i=e.direction||Dg;if(e.isHorizontal=(t=>Fg.indexOf(t)>-1)(i),i&&-1===Ng.indexOf(i))throw new TypeError(`Invalid direction: ${i}`);if(i===Ng[0])n(t,e);else if(i===Ng[1])n(t,e),t.right2left();else if(i===Ng[2])n(t,e);else if(i===Ng[3])n(t,e),t.bottom2top();else if(i===Ng[4]||i===Ng[5]){const{left:i,right:r}=Hg(t,e);n(i,e),n(r,e),e.isHorizontal?i.right2left():i.bottom2top(),r.translate(i.x-r.x,i.y-r.y),t.x=i.x,t.y=r.y;const o=t.getBoundingBox();e.isHorizontal?o.top<0&&t.translate(0,-o.top):o.left<0&&t.translate(-o.left,0)}let r=e.fixedRoot;return void 0===r&&(r=!0),r&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),function(t,e){if(e.radial){const[n,i]=e.isHorizontal?["x","y"]:["y","x"],r={x:1/0,y:1/0},o={x:-1/0,y:-1/0};let s=0;t.DFTraverse(t=>{s++;const{x:e,y:n}=t;r.x=Math.min(r.x,e),r.y=Math.min(r.y,n),o.x=Math.max(o.x,e),o.y=Math.max(o.y,n)});const a=o[i]-r[i];if(0===a)return;const l=2*Math.PI/s;t.DFTraverse(e=>{const o=(e[i]-r[i])/a*(2*Math.PI-l)+l,s=e[n]-t[n];e.x=Math.cos(o)*s,e.y=Math.sin(o)*s})}}(t,e),t}function Ug(t,e){let n=0;return t.children.length?t.children.forEach(t=>{n+=Ug(t,e)}):n=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,n)+2*t._subTreeSep,t.totalHeight}function Yg(t){const e=t.children,n=e.length;if(n){e.forEach(t=>{Yg(t)});const i=e[0],r=e[n-1],o=r.y-i.y+r.height;let s=0;if(e.forEach(t=>{s+=t.totalHeight}),o>t.height)t.y=i.y+o/2-t.height/2;else if(1!==e.length||t.height>s){const n=t.y+(t.height-o)/2-i.y;e.forEach(t=>{t.translate(0,n)})}else t.y=(i.y+i.height/2+r.y+r.height/2)/2-t.height/2}}const qg={getSubTreeSep:()=>0};function Gg(t,e={}){return e=Ig({},qg,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse(t=>{t.x=t.parent.x+t.parent.width}),t.parent=void 0,Ug(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode(t=>{const e=t.children,n=e.length;if(n){const i=e[0];if(i.startY=t.startY+t._subTreeSep,1===n)i.y=t.y+t.height/2-i.height/2;else{i.y=i.startY+i.totalHeight/2-i.height/2;for(let t=1;t<n;t++){const n=e[t];n.startY=e[t-1].startY+e[t-1].totalHeight,n.y=n.startY+n.totalHeight/2-n.height/2}}}}),Yg(t),t}class Xg extends Wg{execute(){return Vg(this.rootNode,this.options,Gg)}}const Kg={};function Zg(t,e){const n=Ig({},Kg,e);return new Xg(t,n).execute()}const Qg=60,Jg=14,tm="center",em="curved",nm=2,im="node",rm="solid",om=(t,e=[],n=0)=>{var i,r;const o=[...e,n];return Object.assign(Object.assign({},t),{_indexes:o,children:null!==(r=null===(i=t.children)||void 0===i?void 0:i.map((t,e)=>om(t,o,e)))&&void 0!==r?r:[]})},sm=(t,e,n,i)=>{var r,o;e.push(t),null!==(r=(o=t.data)._flatIndex)&&void 0!==r||(o._flatIndex=e.length-1),i&&n.push({parent:i,child:t});const s=t.children;null==s||s.forEach(i=>sm(i,e,n,t))},am=(t,e,n,i=tm)=>{const r=(t=>"top"===t?0:"bottom"===t?1:"center"===t?.5:Math.max(0,Math.min(1,t)))(i),o=t.y+t.height*r,s=e.y+e.height*r;return"left"===n?{sx:t.x,sy:o,tx:e.x+e.width,ty:s}:{sx:t.x+t.width,sy:o,tx:e.x,ty:s}};Mg("hierarchy-mindmap",{component:t=>{var e,n;const{Title:i,Items:r,data:o,levelGap:s=Qg,nodeGap:a=Jg,edgeAlign:l=tm,colorMode:c=im,edgeColorMode:h=rm,edgeType:u=em,edgeWidth:d=nm,options:f}=t,{title:p,desc:g,items:m=[]}=o,y=i?V(i,{title:p,desc:g}):null,v=ld(f),x=du(V(Au,{indexes:[0]})),b=new Map;let w=0;if(!m.length||!(null==r?void 0:r.length))return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[y,V(X,{children:V(Au,{indexes:[0],x:0,y:0})})]});const M=om(m[0]),k=new WeakMap,C=new WeakMap,O=new WeakMap,j=(t,e)=>{var n;if("group"===c){const e=String(null!==(n=t.group)&&void 0!==n?n:"");let i=b.get(e);return null==i&&(i=w,b.set(e,i),w+=1),[i]}return md({depth:e,originalIndexes:t._indexes,flatIndex:t._flatIndex},c)},E=(t,e)=>{const n=O.get(t);if(n)return n;const i=j(t,e),r=hd(f,i),o=ud({colorPrimary:r},f);return O.set(t,o),C.set(t,r),o},_=t=>{const e=k.get(t);if(e)return e;const n=Math.max(t._indexes.length-1,0),i=du(V(vd(r,n),{indexes:t._indexes,data:o,datum:t,positionH:"center",positionV:"middle",themeColors:E(t,n)}));return k.set(t,i),i},S=Zg(M,{direction:"H",getSide:(t,e)=>{if(!t.parent)return"right";const n=(t.parent.children||[]).indexOf(t);return(n>=0?n:e)%2==0?"left":"right"},getWidth:t=>_(t).width,getHeight:t=>_(t).height,getHGap:()=>s,getVGap:()=>a}),$=[],A=[];sm(S,$,A);const z=$.length>0?Math.min(...$.map(t=>t.x)):0,P=$.length>0?Math.min(...$.map(t=>t.y)):0,L=30-z,I=30-P,T=[],R=[],B=[],W=[],H=new WeakMap;$.forEach(t=>{var e,n;const i=t.data,s=_(i),a=t.x+L+(null!==(e=t.hgap)&&void 0!==e?e:0),l=t.y+I+(null!==(n=t.vgap)&&void 0!==n?n:0),c=vd(r,t.depth),h=0===t.depth?"center":"left"===t.side?"flipped":"normal",u=E(i,t.depth);B.push(V(c,{indexes:i._indexes,data:o,datum:i,x:a,y:l,positionH:h,positionV:"middle",themeColors:u})),H.set(t,{x:a,y:l,width:s.width,height:s.height,centerX:a+s.width/2,centerY:l+s.height/2})}),A.forEach(t=>{var e,n,i,r;const{parent:o,child:s}=t,a=H.get(s),c=H.get(o);if(!a||!c)return;const p=s.data,{sx:g,sy:m,tx:y,ty:b}=am(c,a,s.side,l),w=null!==(e=C.get(p))&&void 0!==e?e:hd(f,j(p,s.depth)),M=null!==(n=C.get(o.data))&&void 0!==n?n:hd(f,j(o.data,o.depth)),k="straight"===u?((t,e,n,i)=>`M ${t} ${e} L ${n} ${i}`)(g,m,y,b):((t,e,n,i)=>{const r=Math.abs(n-t)/2;return`M ${t} ${e} C ${n>t?t+r:t-r} ${e} ${n>t?n-r:n+r} ${i} ${n} ${i}`})(g,m,y,b),O=`edge-gradient-${p._indexes.join("-")}`;R.push(V(K,{d:k,stroke:"gradient"===h?`url(#${O})`:null!=w?w:v,strokeWidth:d,fill:"none"})),"gradient"===h&&T.push(U("linearGradient",{id:O,gradientUnits:"userSpaceOnUse",x1:g,y1:m,x2:y,y2:b,children:[V("stop",{offset:"0%",stopColor:null!=M?M:v}),V("stop",{offset:"100%",stopColor:null!=w?w:v})]}));const E=null!==(r=null===(i=p.children)||void 0===i?void 0:i.length)&&void 0!==r?r:0,_=[...p._indexes,E],S=a.x+(a.width-x.width)/2,$=a.y+a.height+8,A=$+x.height+6;s.depth>0&&W.push(V(zu,{indexes:p._indexes,x:S,y:$})),W.push(V(Au,{indexes:_,x:S,y:A}))});const N=H.get(S);if(N){const t=S.data,i=null!==(n=null===(e=t.children)||void 0===e?void 0:e.length)&&void 0!==n?n:0,r=[...t._indexes,i];W.push(V(Au,{indexes:r,x:N.x+(N.width-x.width)/2,y:N.y+N.height+8+x.height+6}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[y,U(X,{children:[T.length>0?V(q,{children:T}):null,V(X,{children:R}),V(Vu,{children:B}),V(Pu,{children:W})]})]})},composites:["title","item"]});const lm=(t,e)=>{if(!t||"#"!==t[0]||7!==t.length)return t;const n=Math.max(0,Math.min(1,e));return`${t}${Math.round(255*n).toString(16).padStart(2,"0")}`},cm=t=>null==t?"":String(t),hm=(t,e,n)=>du(V(su,{fontSize:e,fontWeight:n,children:t})),um=(t,e,n,i)=>{const r=((t,e,n,i=" ")=>{const r=hm(i,e,n);let o=r.width,s=r.height;return t.forEach(t=>{const i=hm(t||" ",e,n);o=Math.max(o,i.width),s=Math.max(s,i.height)}),{width:o,height:s}})(t,e,"normal","Item");return{pillWidth:r.width+2*n,pillHeight:r.height+2*i}};Mg("hierarchy-structure",{component:t=>{const{Title:e,data:n,options:i,rowGap:r=20,labelGap:o=20,groupGap:s=20,pillGap:a=14,pillColumns:l=2,ungroupedColumns:c=6,layerLabelPosition:h="left",rowPadding:u=20,groupPadding:d=16,labelPaddingX:f=28,labelPaddingY:p=16,pillPaddingX:g=18,pillPaddingY:m=10,labelFontSize:y=20,groupTitleFontSize:v=18,pillFontSize:x=16,groupTitleGap:b=10,rowRadius:w=12,groupRadius:M=10,pillRadius:k=12}=t,{title:C,desc:O,items:j=[]}=n,E=e?V(e,{title:C,desc:O}):null;if(0===j.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[E,V(X,{children:V(Vu,{})})]});const _=ud(i.themeConfig),S=[],$=[],A="right"===h,z=j.map(t=>{const e=cm(t.label),n=hm(e||" ",y,"bold"),i=n.width+2*f,r=n.height+2*p,o=t.children||[];if(o.some(t=>{var e;return((null===(e=t.children)||void 0===e?void 0:e.length)||0)>0})){const t=[];o.forEach(e=>{(e.children||[]).forEach(e=>{t.push(cm(e.label))})});const{pillWidth:n,pillHeight:c}=um(t,x,g,m),h=o.map(t=>{const e=cm(t.label),i=hm(e||" ",v,"bold"),r=t.children||[],o=r.length>0?Math.min(l,r.length):0,s=o>0?Math.ceil(r.length/o):0,h=o>0?o*n+(o-1)*a:0,u=s>0?s*c+(s-1)*a:0;return{label:e,children:r,width:Math.max(i.width,h)+2*d,height:2*d+i.height+(s>0?b+u:0),titleHeight:i.height,columns:o,contentWidth:h,pillWidth:n,pillHeight:c}}),u=h.reduce((t,e)=>t+e.width,0)+(h.length>1?(h.length-1)*s:0),f=h.reduce((t,e)=>Math.max(t,e.height),0);return{label:e,labelWidth:i,labelHeight:r,hasGroups:!0,children:o,groupMetrics:h,contentInnerWidth:u,contentInnerHeight:f}}const h=o.map(t=>cm(t.label)),{pillWidth:u,pillHeight:w}=um(h,x,g,m),M=o.length>0?Math.min(c,o.length):0,k=M>0?Math.ceil(o.length/M):0;return{label:e,labelWidth:i,labelHeight:r,hasGroups:!1,children:o,pillWidth:u,pillHeight:w,columns:M,contentInnerWidth:M>0?M*u+(M-1)*a:0,contentInnerHeight:k>0?k*w+(k-1)*a:0}}),P=z.reduce((t,e)=>Math.max(t,e.labelWidth),0),L=z.reduce((t,e)=>Math.max(t,e.contentInnerWidth),0),I=(t,e,n,i,r,o,s,a,l,c,h,u,d,f)=>{S.push(V(J,{x:n,y:s,width:r,height:a,fill:d,stroke:f,rx:w,ry:w,"data-element-type":"shape"})),S.push(V(J,{x:l,y:c,width:h,height:u,fill:d,stroke:f,rx:w,ry:w,"data-element-type":"shape"})),$.push(V(su,{x:n,y:i,width:r,height:o,fontSize:y,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:_.colorText,"data-element-type":"item-label","data-indexes":e,children:t}))};let T=0,R=0;z.forEach((t,e)=>{const n=(t=>{const e=hd(i,[t])||_.colorPrimary||"#6c7dff";return{rowFill:lm(e,.12),rowStroke:lm(e,.55),groupFill:lm(e,.08),groupStroke:lm(e,.4),pillFill:lm(e,.06),pillStroke:lm(e,.35)}})(e),{rowWidth:l,rowHeight:c}=t.hasGroups?((t,e,n,i)=>{const r=t.groupMetrics||[],l=t.label,c=[e],h=P,f=t.labelHeight,p=t.contentInnerHeight,g=Math.max(0,L-t.contentInnerWidth),m=r.length>0?g/r.length:0,y=t.contentInnerWidth+(r.length>0?g:0)+2*u,w=p+2*u,C=Math.max(f,w),O=A?0:h+o,j=A?O+y+o:0,E=n+(C-w)/2;I(l,c,j,n+(C-f)/2,h,f,n,C,O,E,y,w,i.rowFill,i.rowStroke);let z=O+u;return r.forEach((t,e)=>{const n=[...c,e],r=t.width+m,o=E+u+(p-t.height)/2;S.push(V(J,{x:z,y:o,width:r,height:t.height,fill:i.groupFill,stroke:i.groupStroke,rx:M,ry:M,"data-element-type":"shape"}));const l=t.children.length>0;if($.push(V(su,{x:z+d,y:l?o+d:o,width:r-2*d,height:l?t.titleHeight:t.height,fontSize:v,fontWeight:"bold",alignHorizontal:"center",alignVertical:l?"top":"middle",fill:_.colorText,"data-element-type":"item-label","data-indexes":n,children:t.label})),t.columns>0){const e=r-2*d,s=e-t.contentWidth,l=t.pillWidth+(s>0?s/t.columns:0),c=z+d+Math.max(0,(e-(t.columns*l+(t.columns-1)*a))/2),h=o+d+t.titleHeight+b;t.children.forEach((e,r)=>{const o=[...n,r],s=Math.floor(r/t.columns),u=c+r%t.columns*(l+a),d=h+s*(t.pillHeight+a),f=Math.min(k,t.pillHeight/2);S.push(V(J,{x:u,y:d,width:l,height:t.pillHeight,fill:i.pillFill,stroke:i.pillStroke,rx:f,ry:f,"data-element-type":"shape"})),$.push(V(su,{x:u,y:d,width:l,height:t.pillHeight,fontSize:x,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:_.colorText,"data-element-type":"item-label","data-indexes":o,children:cm(e.label)}))})}z+=r+s}),{rowWidth:A?j+h:O+y,rowHeight:C}})(t,e,T,n):((t,e,n,i)=>{const r=t.label,s=[e],l=P,c=t.labelHeight,h=t.contentInnerHeight,d=Math.max(0,L-t.contentInnerWidth),f=t.columns||0,p=t.pillHeight||0,g=(t.pillWidth||0)+(f>0?d/f:0),m=(f>0?f*g+(f-1)*a:0)+2*u,y=h+2*u,v=Math.max(c,y),b=A?0:l+o,w=A?b+m+o:0,M=n+(v-y)/2;if(I(r,s,w,n+(v-c)/2,l,c,n,v,b,M,m,y,i.rowFill,i.rowStroke),f>0){const e=b+u,n=M+u;(t.children||[]).forEach((t,r)=>{const o=[...s,r],l=Math.floor(r/f),c=e+r%f*(g+a),h=n+l*(p+a),u=Math.min(k,p/2);S.push(V(J,{x:c,y:h,width:g,height:p,fill:i.pillFill,stroke:i.pillStroke,rx:u,ry:u,"data-element-type":"shape"})),$.push(V(su,{x:c,y:h,width:g,height:p,fontSize:x,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:_.colorText,"data-element-type":"item-label","data-indexes":o,children:cm(t.label)}))})}return{rowWidth:A?w+l:b+m,rowHeight:v}})(t,e,T,n);R=Math.max(R,l),T+=c+r});const B=Math.max(T-r,0);return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[E,U(X,{width:R,height:B,children:[V(X,{children:S}),V(Vu,{children:$})]})]})},composites:["title"]});const dm=(t,e)=>{const n=Math.max(0,e/2-1);return Math.min(t,n)};Mg("hierarchy-tree",{component:t=>{const{Title:e,Items:n,data:i,levelGap:r=80,nodeGap:o=60,edgeType:s="straight",edgeColorMode:a="gradient",edgeWidth:l=3,edgeStyle:c="solid",edgeDashPattern:h="5,5",edgeCornerRadius:u=0,edgeOffset:d=0,edgeOrigin:f="center",edgeOriginPadding:p=20,edgeMarker:g="none",markerSize:m=12,colorMode:y="branch",orientation:v="top-bottom",options:x}=t,b="left-right"===v||"right-left"===v,w="bottom-top"===v||"right-left"===v?-1:1,{title:M,desc:k}=i,C=ld(x),O=new Map;let j=0;const E=t=>{const{x:e,y:n}=t;return b?{x:n*w,y:e}:{x:e,y:n*w}},_=(t,e,n)=>{const{x:i,y:r}=E(t),o=i+n.x,s=r+n.y;return{centerX:o,centerY:s+e.height/2,left:o-e.width/2,right:o+e.width/2,top:s,bottom:s+e.height}},S=(t,e)=>{var n;if("group"===y){const e=String(null!==(n=null==t?void 0:t.group)&&void 0!==n?n:"");let i=O.get(e);return null==i&&(i=j,O.set(e,i),j+=1),[i]}return md({depth:e,originalIndexes:t._originalIndex,flatIndex:t._flatIndex},y)},$=(t,e,r,o,y,v)=>{const{depth:M,data:k,parent:O}=t,j=k._originalIndex,E=vd(n,M),$=e.get(M),A=_(t,$,o),z=A.left,P=A.top,L={items:[],btns:[],deco:[]},I=S(k,M),T=ud({colorPrimary:hd(x,I)},x);if(L.items.push(V(E,{indexes:j,datum:k,data:i,x:z,y:P,positionH:"center",themeColors:T})),L.btns.push(V(zu,{indexes:j,x:z+($.width-r.width)/2,y:P+$.height+5}),V(Au,{indexes:[...j,0],x:z+($.width-r.width)/2,y:P+$.height+r.height+10})),O){const n=e.get(O.depth),i=_(O,n,o),r=v.filter(t=>t.parent===O),E=r.findIndex(e=>e===t),$=r.length;let z,P;if("distributed"===f&&$>1)if(b){const t=dm(p,n.height),e=i.top+t,r=(i.bottom-t-e)/$;P=e+r*E+r/2,z=(w>0?i.right:i.left)+d*w}else{const t=dm(p,n.width),e=i.left+t,r=(i.right-t-e)/$;z=e+r*E+r/2,P=(w>0?i.bottom:i.top)+d*w}else z=b?(w>0?i.right:i.left)+d*w:i.centerX,P=b?i.centerY:(w>0?i.bottom:i.top)+d*w;const T=b?(w>0?A.left:A.right)-d*w:A.centerX,R=b?A.centerY:(w>0?A.top:A.bottom)-d*w;let B,W=T,H=R;if("arrow"===g&&(b?W-=m*w:H-=m*w),"curved"===s)if(b){const t=z+(W-z)/2;B=`M ${z} ${P} C ${t} ${P}, ${t} ${H}, ${W} ${H}`}else{const t=P+(H-P)/2;B=`M ${z} ${P} C ${z} ${t}, ${W} ${t}, ${W} ${H}`}else if(u>0)B=((t,e,n,i,r,o="vertical")=>{const s="vertical"===o,a=s?i-e:n-t,l=s?n-t:i-e,c=0===a?1:Math.sign(a),h=0===l?1:Math.sign(l),u=s?e+a/2:t+a/2,d=Math.min(r,Math.abs(a)/2,Math.abs(l)/2);return 0===d?s?`M ${t} ${e} L ${t} ${u} L ${n} ${u} L ${n} ${i}`:`M ${t} ${e} L ${u} ${e} L ${u} ${i} L ${n} ${i}`:s?`M ${t} ${e}\n L ${t} ${u-c*d}\n Q ${t} ${u} ${t+h*d} ${u}\n L ${n-h*d} ${u}\n Q ${n} ${u} ${n} ${u+c*d}\n L ${n} ${i}`:`M ${t} ${e}\n L ${u-c*d} ${e}\n Q ${u} ${e} ${u} ${e+h*d}\n L ${u} ${i-h*d}\n Q ${u} ${i} ${u+c*d} ${i}\n L ${n} ${i}`})(z,P,W,H,u,b?"horizontal":"vertical");else if(b){const t=z+(W-z)/2;B=`M ${z} ${P} L ${t} ${P} L ${t} ${H} L ${W} ${H}`}else{const t=P+(H-P)/2;B=`M ${z} ${P} L ${z} ${t} L ${W} ${t} L ${W} ${H}`}let N=C;if("gradient"===a){const t=S(O.data,O.depth),e=S(k,M),n=hd(x,t),i=hd(x,e),r=`gradient-${O.data._originalIndex.join("-")}-${j.join("-")}`;y.push(U("linearGradient",{id:r,x1:z,y1:P,x2:W,y2:H,gradientUnits:"userSpaceOnUse",children:[V("stop",{offset:"0%",stopColor:n}),V("stop",{offset:"100%",stopColor:i})]})),N=`url(#${r})`}if(L.deco.push(V(K,{d:B,stroke:N,strokeWidth:l,strokeDasharray:"dashed"===c?h:"",fill:"none"})),"arrow"===g){const t="gradient"===a?hd(x,I):ld(x);L.deco.push(V(Q,{points:b?[{x:T,y:R},{x:T-m*w,y:R-m/2},{x:T-m*w,y:R+m/2}]:[{x:T,y:R},{x:T-m/2,y:R-m*w},{x:T+m/2,y:R-m*w}],fill:t,width:m,height:m}))}if("dot"===g){const t=S(O.data,O.depth),e="gradient"===a?hd(x,t):ld(x);L.deco.push(V(G,{x:(b?w>0?i.right+d:i.left-d:z)-m,y:(b?P:w>0?i.bottom+d:i.top-d)-m,width:2*m,height:2*m,fill:e}));const n="gradient"===a?hd(x,I):ld(x);L.deco.push(V(G,{x:T-m,y:R-m,width:2*m,height:2*m,fill:n}))}}return L},A=(t=>{var e;const n=[...t];return(null===(e=n[0])||void 0===e?void 0:e.children)||(n[0]=Object.assign(Object.assign({},n[0]),{children:n.slice(1)}),n.splice(1)),n})(i.items),z=e?V(e,{title:M,desc:k}):null,P=du(V(Au,{indexes:[0]}));if(!A.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[z,V(X,{children:V(Pu,{children:V(Au,{indexes:[0],x:-P.width/2,y:-P.height/2})})})]});const L=(t=>{var e;if(!t.length)return null;const n=t[0],i=(t,e=[],n=0)=>{var r,o;const s=[...e,n];return Object.assign(Object.assign({},t),{_originalIndex:s,_depth:s.length-1,children:null!==(o=null===(r=t.children)||void 0===r?void 0:r.map((t,e)=>i(t,s,e)))&&void 0!==o?o:[]})};return(null===(e=n.children)||void 0===e?void 0:e.length)?i(n):Object.assign(Object.assign({},n),{_originalIndex:[0],_depth:0,children:t.slice(1).map((t,e)=>Object.assign(Object.assign({},t),{_originalIndex:[e+1],_depth:1}))})})(A),I=Dp.Ay(L),{levelBounds:T,maxWidth:R,maxHeight:B}=(t=>{var e,r;let o=0,s=0;const a=new Map,l=new Map;t.each(t=>{l.has(t.depth)||l.set(t.depth,t.data)});for(let c=0;c<t.height+1;c++){const t=vd(n,c),h=null!==(e=l.get(c))&&void 0!==e?e:{},u=du(V(t,{indexes:null!==(r=h._originalIndex)&&void 0!==r?r:Array(c+1).fill(0),data:i,datum:h,positionH:"center"}));a.set(c,u),o=Math.max(o,u.width),s=Math.max(s,u.height)}return{levelBounds:a,maxWidth:o,maxHeight:s}})(I),W=Vp.A().nodeSize(b?[B+o,R+r]:[R+o,B+r]).separation(()=>1)(I).descendants(),H=W.map(t=>E(t)),N=Math.min(...H.map(t=>t.x)),F=Math.min(...H.map(t=>t.y)),D={x:Math.max(0,R/2-N),y:Math.max(0,-F+P.height+10)},Y=[],Z=[],J=[],tt=[];return W.forEach((t,e)=>{t.data._flatIndex=e;const{x:n,y:i}=E(t);t.__layout={x:n,y:i}}),W.forEach(t=>{const{items:e,btns:n,deco:i}=$(t,T,P,D,tt,W);Y.push(...e),Z.push(...n),J.push(...i)}),Z.push(...((t,e,n)=>{const i=new Map;t.forEach(t=>{var e;const n=t.parent?t.parent.data._originalIndex.join("-"):"root";(null!==(e=i.get(n))&&void 0!==e?e:i.set(n,[]).get(n)).push(t)});const r=[];return i.forEach(t=>{if(t.length<=1)return;const i=t.slice().sort((t,e)=>b?E(t).y-E(e).y:E(t).x-E(e).x);if(0!==i.length)for(let t=0;t<i.length-1;t++){const o=E(i[t]),s=E(i[t+1]),a=i[t].data._originalIndex.slice(0,-1),l=i[t].data._originalIndex.at(-1)+1;if(b){const t=o.x+n.x+(w>0?-e.width-5:e.width+5),i=(o.y+s.y)/2+n.y-e.height/2;r.push(V(Au,{indexes:[...a,l],x:t,y:i}))}else{const t=o.y+n.y-e.height-5,i=(o.x+s.x)/2+n.x-e.width/2;r.push(V(Au,{indexes:[...a,l],x:i,y:t}))}}}),r})(W,P,D)),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[z,U(X,{children:[tt.length>0&&V(q,{children:tt}),V(qu,{children:J}),V(Vu,{children:Y}),V(Pu,{children:Z})]})]})},composites:["title","item"]});Mg("list-column",{component:t=>{const{Title:e,Item:n,data:i,gap:r=20,width:o,zigzag:s}=t,{title:a,desc:l,items:c=[]}=i,h=du(V(Au,{indexes:[0]})),u=du(V(n,{indexes:[0],data:i,datum:c[0]})),d=o||u.width,f=e?V(e,{title:a,desc:l}):null,p=[],g=[],m=(d-h.width)/2;if(c.forEach((t,e)=>{const o=(u.height+r)*e,a=[e];g.push(V(n,{indexes:a,datum:t,data:i,y:o,width:d,positionV:"middle",positionH:s?e%2==0?"normal":"flipped":"normal"})),p.push(V(zu,{indexes:a,x:-h.width-10,y:o+(u.height-h.height)/2}));p.push(V(Au,{indexes:a,x:m,y:0===e?-h.height:o-r/2-h.height/2}))}),c.length>0){p.push(V(Au,{indexes:[c.length],x:m,y:(u.height+r)*(c.length-1)+u.height}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,U(X,{children:[V(Vu,{children:g}),V(Pu,{children:p})]})]})},composites:["title","item"]});Mg("list-grid",{component:t=>{const{Title:e,Item:n,data:i,columns:r=3,gap:o=24,zigzag:s}=t,{title:a,desc:l,items:c=[]}=i,h=e?V(e,{title:a,desc:l}):null,u=du(V(Au,{indexes:[0]})),d=du(V(n,{indexes:[0],data:i,datum:c[0],positionH:"center"})),f=[],p=[],g=d.height+o,m=d.width+o,y=new Set;return c.forEach((t,e)=>{const a=Math.floor(e/r),l=e%r,h=l*m,v=a*g,x=[e];p.push(V(n,{indexes:x,datum:t,data:i,x:h,y:v,positionH:"center",positionV:s&&e%2==0?"normal":"flipped"})),f.push(V(zu,{indexes:x,x:h+(d.width-u.width)/2,y:v+d.height})),l<r-1&&f.push(V(Au,{indexes:[e+1],x:h+d.width+(o-u.width)/2,y:v+(d.height-u.height)/2})),0!==l||y.has(a)||(f.push(V(Au,{indexes:[e],x:h-o/2-u.width/2,y:v+(d.height-u.height)/2})),y.add(a));(l===r-1||e===c.length-1)&&f.push(V(Au,{indexes:[e+1],x:h+d.width+o/2-u.width/2,y:v+(d.height-u.height)/2}))}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,U(X,{children:[V(Vu,{children:p}),V(Pu,{children:f})]})]})},composites:["title","item"]});Mg("list-pyramid",{component:t=>{const{Title:e,Item:n,data:i,gap:r=20,levelGap:o=20}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null,h=du(V(Au,{indexes:[0]})),u=du(V(n,{indexes:[0],data:i,datum:l[0],positionH:"center"})),d=[],f=[],p=Math.ceil(Math.sqrt(l.length)),g=[];let m=l.length;for(let t=0;t<p;t++){const e=Math.min(t+1,m);if(g.push(e),m-=e,m<=0)break}let y=0;const v=Math.max(...g),x=(v*u.width+(v-1)*r)/2;return g.forEach((t,e)=>{const s=e*(u.height+o),a=x-(t*u.width+(t-1)*r)/2;for(let e=0;e<t&&y<l.length;e++){const o=a+e*(u.width+r),c=[y];f.push(V(n,{indexes:c,datum:l[y],data:i,x:o,y:s,positionH:"center"})),d.push(V(zu,{indexes:c,x:o+(u.width-h.width)/2,y:s+u.height})),e<t-1&&d.push(V(Au,{indexes:[y+1],x:o+u.width+(r-h.width)/2,y:s+(u.height-h.height)/2})),0===e&&d.push(V(Au,{indexes:[y],x:o-r/2-h.width/2,y:s+(u.height-h.height)/2})),e===t-1&&d.push(V(Au,{indexes:[y+1],x:o+u.width+r/2-h.width/2,y:s+(u.height-h.height)/2})),y++}}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,U(X,{children:[V(Vu,{children:f}),V(Pu,{children:d})]})]})},composites:["title","item"]});Mg("list-row",{component:t=>{const{Title:e,Item:n,data:i,gap:r=20,zigzag:o}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null,h=du(V(Au,{indexes:[0]})),u=du(V(n,{indexes:[0],data:i,datum:l[0],positionH:"center"})),d=[],f=[],p=(u.height-h.height)/2,g=u.height;if(l.forEach((t,e)=>{const s=(u.width+r)*e,a=[e];f.push(V(n,{indexes:a,datum:t,data:i,x:s,positionH:"center",positionV:o&&e%2==0?"normal":"flipped"})),d.push(V(zu,{indexes:a,x:s+(u.width-h.width)/2,y:g}));d.push(V(Au,{indexes:a,x:0===e?-(r+h.width)/2:s-(r+h.width)/2,y:p}))}),l.length>0){d.push(V(Au,{indexes:[l.length],x:(u.width+r)*(l.length-1)+u.width+(r-h.width)/2,y:p}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,U(X,{children:[V(Vu,{children:f}),V(Pu,{children:d})]})]})},composites:["title","item"]});Mg("list-sector",{component:t=>{const{Item:e,data:n,outerRadius:i=250,innerRadius:r=120,startAngle:o=-90,endAngle:s=270,gapAngle:a=1,options:l}=t,{title:c,items:h=[]}=n,u=ud(l.themeConfig),d=du(V(Au,{indexes:[0]})),f=[],p=[],g=[],m=i+100,y=i+100,v=s-o,x=Math.abs(v-360)<.01,b=h.length>0?(v-(h.length>0?a*(x?h.length:h.length-1):0))/h.length:0;if(h.forEach((t,s)=>{var c;const u=[s],v=o+(b+a)*s,w=v+b,M=a*Math.PI*i/180/r*(180/Math.PI),k=(v+a/2)*Math.PI/180,C=(w-a/2)*Math.PI/180,O=(v+M/2)*Math.PI/180,j=(w-M/2)*Math.PI/180,E=m+i*Math.cos(k),_=y+i*Math.sin(k),S=m+i*Math.cos(C),$=y+i*Math.sin(C),A=m+r*Math.cos(O),z=y+r*Math.sin(O),P=m+r*Math.cos(j),L=y+r*Math.sin(j),I=b>180?1:0,T=`\n M ${E} ${_}\n A ${i} ${i} 0 ${I} 1 ${S} ${$}\n L ${P} ${L}\n A ${r} ${r} 0 ${I} 0 ${A} ${z}\n Z\n `.trim(),R=hd(l,u);g.push(V(K,{id:"shape-sector",d:T,fill:R,width:2*i+200,height:2*i+200,"data-element-type":"shape"}));const B=(v+b/2)*Math.PI/180,W=(i+r)/2,H=i-r,N=W*(b*Math.PI/180),F=Math.min(.8*N,.9*H),D=Math.min(.9*H,.8*N),U=du(V(e,{indexes:[0],data:n,datum:h[0],positionH:"center",width:F,height:D})),Y=m+W*Math.cos(B)-U.width/2,q=y+W*Math.sin(B)-U.height/2;p.push(V(e,{indexes:u,datum:t,data:n,x:Y,y:q,positionH:"center",width:F,height:D,themeColors:Object.assign({},ud({colorBg:hd(l,u),colorPrimary:(null===(c=l.themeConfig)||void 0===c?void 0:c.colorBg)||"white"}))}));const G=i+10,X=m+G*Math.cos(B)-d.width/2,Z=y+G*Math.sin(B)-d.height/2;if(f.push(V(zu,{indexes:u,x:X,y:Z})),x||s<h.length-1){const t=(w+a/2)*Math.PI/180,e=W,n=m+e*Math.cos(t)-d.width/2,i=y+e*Math.sin(t)-d.height/2;f.push(V(Au,{indexes:[s+1],x:n,y:i}))}}),h.length>0){const t=(o-a/2)*Math.PI/180,e=(i+r)/2,n=m+e*Math.cos(t)-d.width/2,s=y+e*Math.sin(t)-d.height/2;f.push(V(Au,{indexes:[0],x:n,y:s}))}const w=.9*r;let M=m,k=y,C=1.4*w,O=1.4*w;if(!x){const t=(o+s)/2*Math.PI/180,e=.5*w;M=m+e*Math.cos(t),k=y+e*Math.sin(t);const n=v*Math.PI*e/180;C=Math.min(.8*n,1.4*w),O=Math.min(1.5*e,1.4*w)}let j="";if(x)j="";else{const t=o*Math.PI/180,e=s*Math.PI/180,n=m+w*Math.cos(t),i=y+w*Math.sin(t),r=m+w*Math.cos(e),a=y+w*Math.sin(e);j=`\n M ${m} ${y}\n L ${n} ${i}\n A ${w} ${w} 0 ${v>180?1:0} 1 ${r} ${a}\n Z\n `.trim()}return U(X,{id:"infographic-container",children:[V(X,{children:g}),x?V(G,{id:"shape-center-circle",x:m-w,y:y-w,width:2*w,height:2*w,fill:u.colorPrimaryBg,fillOpacity:.5,"data-element-type":"shape"}):V(K,{id:"shape-center-sector",d:j,fill:u.colorPrimaryBg,fillOpacity:.5,width:2*i+200,height:2*i+200,"data-element-type":"shape"}),V(su,{x:M-C/2,y:k-O/2,width:C,height:O,alignHorizontal:"center",alignVertical:"middle",fontSize:24,fontWeight:"bold",fill:u.colorText,"data-element-type":"title",children:c}),V(Vu,{children:p}),V(Pu,{children:f})]})},composites:["title","item"]});Mg("list-waterfall",{component:t=>{const{Title:e,Item:n,data:i,columns:r=4,gap:o=20,stepOffset:s=40}=t,{title:a,desc:l,items:c=[]}=i,h=e?V(e,{title:a,desc:l}):null,u=du(V(Au,{indexes:[0]})),d=du(V(n,{indexes:[0],data:i,datum:c[0],positionH:"center"})),f=[],p=[],g=d.width+o;return c.forEach((t,e)=>{const a=e%r,l=Math.floor(e/r),c=a*g,h=l*(d.height+o)+a*s,m=[e];p.push(V(n,{indexes:m,datum:t,data:i,x:c,y:h,positionH:"center"})),f.push(V(zu,{indexes:m,x:c+(d.width-u.width)/2,y:h+d.height+5}))}),c.forEach((t,e)=>{const n=e%r,i=Math.floor(e/r),a=n*g,l=i*(d.height+o)+n*s;if(0===e&&f.push(V(Au,{indexes:[0],x:a-o/2-u.width/2,y:l+(d.height-u.height)/2})),n<r-1&&e<c.length-1){i===Math.floor((e+1)/r)&&f.push(V(Au,{indexes:[e+1],x:a+d.width+(o-u.width)/2,y:l+(d.height-u.height)/2}))}n!==r-1&&e!==c.length-1||f.push(V(Au,{indexes:[e+1],x:a+d.width+(o-u.width)/2,y:l+(d.height-u.height)/2}))}),0===c.length&&f.push(V(Au,{indexes:[0],x:(r-1)*g/2+(d.width-u.width)/2,y:0})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,U(X,{children:[V(Vu,{children:p}),V(Pu,{children:f})]})]})},composites:["title","item"]});const fm=(t,e,n)=>{const i=e[t];return i?i.map(t=>({x:700*t.x,y:t.y*n,anchor:t.anchor})):null},pm=(t,e)=>{const n=e.x-t.x,i=e.y-t.y,r=Math.hypot(n,i)||1;return{x:n/r,y:i/r}},gm=t=>{const{presetRatios:e,arrowHeight:n,Arrow:i}=t;return t=>{var r;const{Title:o,Item:s,data:a,options:l,itemGap:c=24}=t,{title:h,desc:u,items:d=[]}=a,f=Math.min(d.length,6),p=d.slice(0,f),g=o?V(o,{title:h,desc:u}):null,m=ld(l),y=ud({colorPrimary:m},l).colorTextSecondary||"#737373",v=du(V(Au,{indexes:[0]}));if(0===d.length){const t=null===(r=fm(1,e,n))||void 0===r?void 0:r[0];if(!t)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,V(X,{children:V(i,{colorPrimary:m,colorShadow:y})})]});const o=t.x-v.width/2,s=t.y-v.height/2;return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,U(X,{children:[V(i,{colorPrimary:m,colorShadow:y}),V(Vu,{}),V(Pu,{children:V(Au,{indexes:[0],x:o,y:s})})]})]})}const x=du(V(s,{indexes:[0],data:a,datum:d[0],positionH:"center"})),b=[],w=[],M=fm(f,e,n);if(!M)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,U(X,{children:[V(i,{colorPrimary:m,colorShadow:y}),V(Vu,{})]})]});const k=M,C=k.length>1?pm(k[0],k[k.length-1]):{x:1,y:0},O=k.length>1?pm(k[0],k[1]):C,j=k.length>1?pm(k[k.length-2],k[k.length-1]):C,E=.45*Math.max(x.width,x.height)+c;if(k.forEach((t,e)=>{const i=(t=>{const{x:e,y:n,centerY:i}=((t,e)=>{let n=t.x-e.width/2,i=t.y-e.height/2,r=t.y;switch(t.anchor||"center"){case"top":n=t.x-e.width/2,i=t.y,r=t.y+e.height/2;break;case"bottom":n=t.x-e.width/2,i=t.y-e.height,r=t.y-e.height/2;break;case"top-left":n=t.x,i=t.y,r=t.y+e.height/2;break;case"top-right":n=t.x-e.width,i=t.y,r=t.y+e.height/2;break;case"bottom-left":n=t.x,i=t.y-e.height,r=t.y-e.height/2;break;case"bottom-right":n=t.x-e.width,i=t.y-e.height,r=t.y-e.height/2}return{x:n,y:i,centerY:r}})(t,x);return{x:e,y:n,centerY:i}})(t),r=i.centerY<n/2,o=[e],l=p[e];if(!l)return;w.push(V(s,{indexes:o,datum:l,data:a,x:i.x,y:i.y,positionH:"center"}));b.push(V(zu,{indexes:o,x:i.x+x.width-v.width/2,y:r?i.y-v.height/2:i.y+x.height-v.height/2}))}),k.length>0){const t=k[0];b.push(V(Au,{indexes:[0],x:t.x-O.x*E-v.width/2,y:t.y-O.y*E-v.height/2}));for(let t=0;t<k.length-1;t++){const e=k[t],n=k[t+1];b.push(V(Au,{indexes:[t+1],x:(e.x+n.x)/2-v.width/2,y:(e.y+n.y)/2-v.height/2}))}const e=k[k.length-1];b.push(V(Au,{indexes:[f],x:e.x+j.x*E-v.width/2,y:e.y+j.y*E-v.height/2}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,U(X,{children:[V(i,{colorPrimary:m,colorShadow:y}),V(Vu,{children:w}),V(Pu,{children:b})]})]})}},mm=gm({arrowHeight:330,presetRatios:{1:[{x:.5,y:.6,anchor:"top-right"}],2:[{x:.42,y:.5,anchor:"top-right"},{x:.72,y:.4,anchor:"bottom"}],3:[{x:.3,y:.5,anchor:"top-right"},{x:.48,y:.3,anchor:"bottom-left"},{x:.8,y:.75,anchor:"top-right"}],4:[{x:.3,y:.5,anchor:"top-right"},{x:.35,y:.2,anchor:"bottom-left"},{x:.65,y:.73,anchor:"top-right"},{x:.8,y:.52,anchor:"bottom-left"}],5:[{x:.19,y:.4,anchor:"top-right"},{x:.38,y:.2,anchor:"bottom"},{x:.52,y:.62,anchor:"top-right"},{x:.7,y:.43,anchor:"bottom"},{x:.82,y:.8,anchor:"top-right"}],6:[{x:.16,y:.35,anchor:"top-right"},{x:.38,y:.2,anchor:"bottom"},{x:.48,y:.54,anchor:"top-right"},{x:.55,y:.43,anchor:"bottom-left"},{x:.8,y:.75,anchor:"top-right"},{x:.86,y:.65,anchor:"bottom-left"}]},Arrow:({colorPrimary:t="#17CA2C",colorShadow:e="#737373"})=>{const n=(0,wl.A)(t).darken(20).toHexString();return U(X,{width:700,height:330,children:[V("path",{d:"M228.864 159.446C230.266 159.446 231.623 158.768 232.689 157.535L274.263 110.162L265.717 102.923L227.311 148.082C225.977 149.623 224.281 150.47 222.529 150.47H175.404L182.03 158.367C182.795 159.445 182.795 159.446 183.734 159.446H228.864Z",fill:e}),V("path",{d:"M462.869 234.92C464.271 234.92 465.628 234.242 466.695 233.01L508.268 185.636L499.722 178.397L461.316 223.557C459.983 225.098 458.287 225.945 456.534 225.945H409.409L416.035 233.841C416.8 234.92 416.8 234.92 417.74 234.92H462.869Z",fill:e}),V("path",{d:"M697.005 330C698.783 330 700 328.82 700 327.001V256.638C700 254.857 697.848 253.965 696.591 255.225L693.409 258.411V320.402C693.409 322.058 692.069 323.401 690.414 323.401H630.718L627.536 326.587C626.278 327.847 627.169 330 628.947 330H697.005Z",fill:e}),V("path",{d:"M689.642 321.89C690.744 321.89 691.638 320.995 691.638 319.891V250.743C691.638 248.962 689.488 248.07 688.23 249.329L662.647 274.947L520.987 153.863C519.541 152.627 517.703 151.948 515.802 151.948H469.518C470.236 151.949 470.956 152.206 471.53 152.729L498.163 176.978L498.13 177.018L639.84 297.784L619.174 318.477C617.916 319.737 618.807 321.89 620.586 321.89H689.642Z",fill:t}),V("path",{d:"M429.279 198.995L467.208 153.03C468.3 151.716 470.268 151.579 471.531 152.729L498.163 176.978L460.69 221.107C459.173 222.894 456.946 223.924 454.6 223.924H408.473C409.366 223.924 410.252 223.527 410.845 222.764L429.279 198.995Z",fill:n}),V("path",{d:"M408.473 223.924H408.314L408.318 223.92C408.369 223.922 408.421 223.924 408.473 223.924Z",fill:n}),V("path",{d:"M406.524 223.203C407.826 224.318 409.796 224.116 410.845 222.761L429.279 198.932L287.411 77.8866C285.964 76.6523 284.125 75.9742 282.223 75.9742H234.606L234.625 75.9907C235.429 75.9118 236.263 76.1557 236.915 76.7378L263.662 100.621L263.546 100.758L406.524 223.203Z",fill:t}),V("path",{d:"M236.914 76.7386C235.651 75.6097 233.707 75.7513 232.621 77.0513L194.557 123.104L175.644 146.821C175.076 147.535 174.25 147.917 173.409 147.947L173.407 147.95H219.923C222.271 147.95 224.499 146.915 226.017 145.122L263.645 100.649L236.914 76.7386Z",fill:n}),V("path",{d:"M175.648 146.816C174.589 148.145 172.637 148.329 171.348 147.221L4.09334 3.51697C2.68586 2.30767 3.54106 0 5.39671 0H47.5805C49.4864 0 51.3297 0.680433 52.7785 1.91877L194.557 123.104L175.648 146.816Z",fill:t})]})}}),ym=gm({arrowHeight:333,presetRatios:{1:[{x:.5,y:.4,anchor:"bottom-right"}],2:[{x:.42,y:.5,anchor:"bottom-right"},{x:.72,y:.6,anchor:"top"}],3:[{x:.3,y:.5,anchor:"bottom-right"},{x:.48,y:.7,anchor:"top-left"},{x:.8,y:.25,anchor:"bottom-right"}],4:[{x:.3,y:.5,anchor:"bottom-right"},{x:.35,y:.8,anchor:"top-left"},{x:.65,y:.27,anchor:"bottom-right"},{x:.8,y:.48,anchor:"top-left"}],5:[{x:.19,y:.6,anchor:"bottom-right"},{x:.38,y:.8,anchor:"top"},{x:.52,y:.38,anchor:"bottom-right"},{x:.7,y:.57,anchor:"top"},{x:.82,y:.2,anchor:"bottom-right"}],6:[{x:.16,y:.65,anchor:"bottom-right"},{x:.38,y:.8,anchor:"top"},{x:.48,y:.46,anchor:"bottom-right"},{x:.55,y:.57,anchor:"top-left"},{x:.8,y:.25,anchor:"bottom-right"},{x:.86,y:.35,anchor:"top-left"}]},Arrow:({colorPrimary:t="#17CA2C",colorShadow:e="#737373"})=>{const n=(0,wl.A)(t).darken(20).toHexString();return U(X,{width:700,height:333,children:[V("path",{d:"M19.0526 324L12.6762 329.482C11.2703 330.691 12.1234 333 13.976 333H56.1578C58.058 333 59.896 332.321 61.3413 331.085L201.854 210.901L194.249 201.693L54.0527 321.606C52.246 323.151 49.9486 324 47.5732 324H19.0526Z",fill:e}),V("path",{d:"M234.587 248L241.131 255.922C241.656 256.552 242.382 256.909 243.134 256.983L243.115 257H290.716C292.618 257 294.457 256.322 295.903 255.087L437.091 134.536L429.305 125.5L288.613 245.609C286.805 247.153 284.507 248 282.132 248H234.587Z",fill:e}),V("path",{d:"M461.123 162.429L475.642 179.918C476.237 180.635 477.092 181.001 477.951 181H524.22C526.121 181 527.959 180.321 529.404 179.085L670.786 58.1578L662.326 49.6809L522.115 169.606C520.309 171.151 518.011 172 515.636 172H469.369L461.123 162.429Z",fill:e}),V("path",{d:"M687.912 74.8875C690.374 75.9052 693.412 74.1668 693.412 71.1716V11H698.004C699.106 11 700 11.8954 700 13V82.1716C700 83.9534 697.85 84.8457 696.593 83.5858L687.912 74.8875Z",fill:e}),V("path",{d:"M689.419 0C690.522 0 691.415 0.895432 691.415 2V71.1716C691.415 72.9534 689.265 73.8457 688.008 72.5858L662.433 46.9598L520.819 168.085C519.374 169.321 517.536 170 515.636 170H469.367C470.084 169.999 470.804 169.742 471.379 169.219L498.003 144.961L497.969 144.922L639.634 24.115L618.975 3.41421C617.717 2.15428 618.608 0 620.386 0H689.419Z",fill:t}),V("path",{d:"M429.141 122.937L467.058 168.918C468.149 170.232 470.116 170.369 471.378 169.219L498.003 144.961L460.542 100.818C459.025 99.0305 456.798 98 454.453 98H408.341C409.234 98.0001 410.12 98.3968 410.712 99.1606L429.141 122.937Z",fill:n}),V("path",{d:"M408.341 98H408.183L408.186 98.004C408.237 98.0013 408.289 98 408.341 98Z",fill:n}),V("path",{d:"M406.393 98.721C407.695 97.606 409.664 97.8077 410.712 99.1633L429.141 123L287.318 244.087C285.872 245.322 284.033 246 282.132 246H234.53L234.55 245.983C235.353 246.062 236.187 245.818 236.839 245.236L263.577 221.345L263.461 221.208L406.393 98.721Z",fill:t}),V("path",{d:"M236.837 245.235C235.575 246.365 233.631 246.223 232.546 244.922L194.494 198.854L175.588 175.129C175.019 174.415 174.194 174.032 173.353 174.002L173.351 174H219.852C222.199 174 224.427 175.035 225.944 176.829L263.56 221.317L236.837 245.235Z",fill:n}),V("path",{d:"M175.593 175.135C174.533 173.805 172.581 173.622 171.291 174.73L4.09013 318.484C2.68329 319.693 3.53868 322 5.394 322H47.5627C49.4695 322 51.3136 321.319 52.7627 320.08L194.494 198.854L175.593 175.135Z",fill:t})]})}});Mg("list-zigzag-down",{component:mm,composites:["title","item"]}),Mg("list-zigzag-up",{component:ym,composites:["title","item"]});function vm(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})}Mg("relation-circle",{component:t=>{const{Title:e,Item:n,data:i,radius:r=150,startMode:o="top"}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null,h=du(V(Au,{indexes:[0]})),u=du(V(n,{indexes:[0],data:i,datum:l[0],positionH:"center"})),d=[],f=[];if(0===l.length)return d.push(V(Au,{indexes:[0],x:-h.width/2,y:-h.height/2})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,V(X,{children:V(Pu,{children:d})})]});const p=Math.max(u.width,u.height),g=Math.max(r,p),m=g+p/2,y=l.map(()=>(u.width+u.height)/2),v=y.reduce((t,e)=>t+e,0);let x;x="equal"===o?-Math.PI/2:-Math.PI/2+2*Math.PI/l.length/2;let b=x;l.forEach((t,e)=>{const r=y[e]/v*2*Math.PI,o=b+r/2;b+=r;const s=m+g*Math.cos(o)-u.width/2,a=m+g*Math.sin(o)-u.height/2;f.push(V(n,{indexes:[e],datum:t,data:i,x:s,y:a}));const l=g-Math.max(u.width,u.height)/2-20,c=m+l*Math.cos(o)-h.width/2,p=m+l*Math.sin(o)-h.height/2;d.push(V(zu,{indexes:[e],x:c,y:p}))});const w=g-Math.max(u.width,u.height)/2-20;if(l.length>0)for(let t=0;t<l.length;t++){const e=2*t*Math.PI/l.length-Math.PI/2,n=(t+1)%l.length*2*Math.PI/l.length-Math.PI/2;let i;if(t===l.length-1){i=e+(n+2*Math.PI-e)/2}else i=(e+n)/2;const r=m+w*Math.cos(i)-h.width/2,o=m+w*Math.sin(i)-h.height/2;d.push(V(Au,{indexes:[t+1],x:r,y:o}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,U(X,{children:[V(Vu,{children:f}),V(Pu,{children:d})]})]})},composites:["title","item"]}),"function"==typeof SuppressedError&&SuppressedError;var xm,bm,wm,Mm,km,Cm,Om,jm,Em,_m,Sm,$m,Am,zm,Pm,Lm,Im,Tm,Rm,Bm,Wm,Hm,Nm,Fm,Dm,Vm,Um,Ym,qm,Gm,Xm,Km,Zm,Qm,Jm,ty,ey,ny,iy,ry,oy,sy,ay,ly,cy,hy,uy,dy,fy,py,gy,my,yy,vy,xy,by,wy,My,ky,Cy,Oy,jy,Ey,_y,Sy,$y,Ay,zy,Py,Ly,Iy,Ty,Ry,By,Wy,Hy,Ny,Fy,Dy,Vy,Uy,Yy,qy,Gy,Xy,Ky,Zy,Qy,Jy,tv,ev,nv,iv,rv,ov,sv,av,lv,cv,hv,uv,dv,fv,pv,gv,mv,yv,vv,xv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function bv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function wv(){if(Mm)return wm;return Mm=1,wm=function(t,e){return t===e||t!=t&&e!=e},wm}function Mv(){if(Cm)return km;Cm=1;var t=wv();return km=function(e,n){for(var i=e.length;i--;)if(t(e[i][0],n))return i;return-1},km}function kv(){if(Lm)return Pm;Lm=1;var t=bm?xm:(bm=1,xm=function(){this.__data__=[],this.size=0}),e=function(){if(jm)return Om;jm=1;var t=Mv(),e=Array.prototype.splice;return Om=function(n){var i=this.__data__,r=t(i,n);return!(r<0||(r==i.length-1?i.pop():e.call(i,r,1),--this.size,0))},Om}(),n=function(){if(_m)return Em;_m=1;var t=Mv();return Em=function(e){var n=this.__data__,i=t(n,e);return i<0?void 0:n[i][1]},Em}(),i=function(){if($m)return Sm;$m=1;var t=Mv();return Sm=function(e){return t(this.__data__,e)>-1}}(),r=function(){if(zm)return Am;zm=1;var t=Mv();return Am=function(e,n){var i=this.__data__,r=t(i,e);return r<0?(++this.size,i.push([e,n])):i[r][1]=n,this},Am}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=i,o.prototype.set=r,Pm=o}function Cv(){return Vm?Dm:(Vm=1,Dm="object"==typeof xv&&xv&&xv.Object===Object&&xv)}function Ov(){if(Ym)return Um;Ym=1;var t=Cv(),e="object"==typeof self&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return Um=n}function jv(){if(Gm)return qm;Gm=1;var t=Ov();return qm=t.Symbol}function Ev(){if(ty)return Jm;ty=1;var t=jv(),e=function(){if(Km)return Xm;Km=1;var t=jv(),e=Object.prototype,n=e.hasOwnProperty,i=e.toString,r=t?t.toStringTag:void 0;return Xm=function(t){var e=n.call(t,r),o=t[r];try{t[r]=void 0;var s=!0}catch(t){}var a=i.call(t);return s&&(e?t[r]=o:delete t[r]),a},Xm}(),n=function(){if(Qm)return Zm;Qm=1;var t=Object.prototype.toString;return Zm=function(e){return t.call(e)},Zm}(),i=t?t.toStringTag:void 0;return Jm=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":i&&i in Object(t)?e(t):n(t)},Jm}function _v(){if(ny)return ey;return ny=1,ey=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},ey}function Sv(){if(ry)return iy;ry=1;var t=Ev(),e=_v();return iy=function(n){if(!e(n))return!1;var i=t(n);return"[object Function]"==i||"[object GeneratorFunction]"==i||"[object AsyncFunction]"==i||"[object Proxy]"==i},iy}function $v(){if(ly)return ay;ly=1;var t=function(){if(sy)return oy;sy=1;var t=Ov();return oy=t["__core-js_shared__"]}(),e=function(){var e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();return ay=function(t){return!!e&&e in t}}function Av(){if(hy)return cy;hy=1;var t=Function.prototype.toString;return cy=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function zv(){if(my)return gy;my=1;var t=function(){if(dy)return uy;dy=1;var t=Sv(),e=$v(),n=_v(),i=Av(),r=/^\[object .+?Constructor\]$/,o=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return uy=function(s){return!(!n(s)||e(s))&&(t(s)?o:r).test(i(s))},uy}(),e=(py||(py=1,fy=function(t,e){return null==t?void 0:t[e]}),fy);return gy=function(n,i){var r=e(n,i);return t(r)?r:void 0},gy}function Pv(){if(vy)return yy;vy=1;var t=zv()(Ov(),"Map");return yy=t}function Lv(){if(by)return xy;by=1;var t=zv()(Object,"create");return xy=t}function Iv(){if(zy)return Ay;zy=1;var t=function(){if(My)return wy;My=1;var t=Lv();return wy=function(){this.__data__=t?t(null):{},this.size=0}}(),e=Cy?ky:(Cy=1,ky=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),n=function(){if(jy)return Oy;jy=1;var t=Lv(),e=Object.prototype.hasOwnProperty;return Oy=function(n){var i=this.__data__;if(t){var r=i[n];return"__lodash_hash_undefined__"===r?void 0:r}return e.call(i,n)?i[n]:void 0},Oy}(),i=function(){if(_y)return Ey;_y=1;var t=Lv(),e=Object.prototype.hasOwnProperty;return Ey=function(n){var i=this.__data__;return t?void 0!==i[n]:e.call(i,n)},Ey}(),r=function(){if($y)return Sy;$y=1;var t=Lv();return Sy=function(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=t&&void 0===n?"__lodash_hash_undefined__":n,this},Sy}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=i,o.prototype.set=r,Ay=o}function Tv(){if(By)return Ry;By=1;var t=(Ty||(Ty=1,Iy=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}),Iy);return Ry=function(e,n){var i=e.__data__;return t(n)?i["string"==typeof n?"string":"hash"]:i.map},Ry}function Rv(){if(Gy)return qy;Gy=1;var t=function(){if(Ly)return Py;Ly=1;var t=Iv(),e=kv(),n=Pv();return Py=function(){this.size=0,this.__data__={hash:new t,map:new(n||e),string:new t}}}(),e=function(){if(Hy)return Wy;Hy=1;var t=Tv();return Wy=function(e){var n=t(this,e).delete(e);return this.size-=n?1:0,n}}(),n=function(){if(Fy)return Ny;Fy=1;var t=Tv();return Ny=function(e){return t(this,e).get(e)}}(),i=function(){if(Vy)return Dy;Vy=1;var t=Tv();return Dy=function(e){return t(this,e).has(e)}}(),r=function(){if(Yy)return Uy;Yy=1;var t=Tv();return Uy=function(e,n){var i=t(this,e),r=i.size;return i.set(e,n),this.size+=i.size==r?0:1,this},Uy}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=i,o.prototype.set=r,qy=o}function Bv(){if(Qy)return Zy;Qy=1;var t=kv(),e=function(){if(Tm)return Im;Tm=1;var t=kv();return Im=function(){this.__data__=new t,this.size=0}}(),n=(Bm||(Bm=1,Rm=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}),Rm),i=Hm?Wm:(Hm=1,Wm=function(t){return this.__data__.get(t)}),r=Fm?Nm:(Fm=1,Nm=function(t){return this.__data__.has(t)}),o=function(){if(Ky)return Xy;Ky=1;var t=kv(),e=Pv(),n=Rv();return Xy=function(i,r){var o=this.__data__;if(o instanceof t){var s=o.__data__;if(!e||s.length<199)return s.push([i,r]),this.size=++o.size,this;o=this.__data__=new n(s)}return o.set(i,r),this.size=o.size,this},Xy}();function s(e){var n=this.__data__=new t(e);this.size=n.size}return s.prototype.clear=e,s.prototype.delete=n,s.prototype.get=i,s.prototype.has=r,s.prototype.set=o,Zy=s}function Wv(){if(tv)return Jy;return tv=1,Jy=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t},Jy}function Hv(){if(nv)return ev;nv=1;var t=zv(),e=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();return ev=e}function Nv(){if(rv)return iv;rv=1;var t=Hv();return iv=function(e,n,i){"__proto__"==n&&t?t(e,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[n]=i},iv}function Fv(){if(sv)return ov;sv=1;var t=Nv(),e=wv(),n=Object.prototype.hasOwnProperty;return ov=function(i,r,o){var s=i[r];n.call(i,r)&&e(s,o)&&(void 0!==o||r in i)||t(i,r,o)},ov}function Dv(){if(lv)return av;lv=1;var t=Fv(),e=Nv();return av=function(n,i,r,o){var s=!r;r||(r={});for(var a=-1,l=i.length;++a<l;){var c=i[a],h=o?o(r[c],n[c],c,r,n):void 0;void 0===h&&(h=n[c]),s?e(r,c,h):t(r,c,h)}return r},av}function Vv(){if(dv)return uv;return dv=1,uv=function(t){return null!=t&&"object"==typeof t},uv}function Uv(){if(mv)return gv;mv=1;var t=function(){if(pv)return fv;pv=1;var t=Ev(),e=Vv();return fv=function(n){return e(n)&&"[object Arguments]"==t(n)},fv}(),e=Vv(),n=Object.prototype,i=n.hasOwnProperty,r=n.propertyIsEnumerable,o=t(function(){return arguments}())?t:function(t){return e(t)&&i.call(t,"callee")&&!r.call(t,"callee")};return gv=o}function Yv(){return vv?yv:(vv=1,yv=Array.isArray)}var qv,Gv,Xv,Kv,Zv,Qv,Jv,tx,ex,nx,ix,rx={exports:{}};function ox(){return Xv||(Xv=1,function(t,e){var n=Ov(),i=Gv?qv:(Gv=1,qv=function(){return!1}),r=e&&!e.nodeType&&e,o=r&&t&&!t.nodeType&&t,s=o&&o.exports===r?n.Buffer:void 0;t.exports=(s?s.isBuffer:void 0)||i}(rx,rx.exports)),rx.exports}function sx(){if(Zv)return Kv;Zv=1;var t=/^(?:0|[1-9]\d*)$/;return Kv=function(e,n){var i=typeof e;return!!(n=n??9007199254740991)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<n},Kv}function ax(){if(Jv)return Qv;Jv=1;return Qv=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Qv}function lx(){if(ix)return nx;return ix=1,nx=function(t){return function(e){return t(e)}},nx}var cx,hx,ux,dx,fx,px,gx,mx,yx,vx,xx,bx,wx,Mx,kx,Cx,Ox,jx,Ex,_x,Sx,$x,Ax,zx,Px,Lx,Ix,Tx={exports:{}};function Rx(){return cx||(cx=1,function(t,e){var n=Cv(),i=e&&!e.nodeType&&e,r=i&&t&&!t.nodeType&&t,o=r&&r.exports===i&&n.process,s=function(){try{var t=r&&r.require&&r.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=s}(Tx,Tx.exports)),Tx.exports}function Bx(){if(ux)return hx;ux=1;var t=function(){if(ex)return tx;ex=1;var t=Ev(),e=ax(),n=Vv(),i={};return i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,tx=function(r){return n(r)&&e(r.length)&&!!i[t(r)]},tx}(),e=lx(),n=Rx(),i=n&&n.isTypedArray,r=i?e(i):t;return hx=r}function Wx(){if(fx)return dx;fx=1;var t=(hv||(hv=1,cv=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}),cv),e=Uv(),n=Yv(),i=ox(),r=sx(),o=Bx(),s=Object.prototype.hasOwnProperty;return dx=function(a,l){var c=n(a),h=!c&&e(a),u=!c&&!h&&i(a),d=!c&&!h&&!u&&o(a),f=c||h||u||d,p=f?t(a.length,String):[],g=p.length;for(var m in a)!l&&!s.call(a,m)||f&&("length"==m||u&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||r(m,g))||p.push(m);return p},dx}function Hx(){if(gx)return px;gx=1;var t=Object.prototype;return px=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)},px}function Nx(){if(yx)return mx;return yx=1,mx=function(t,e){return function(n){return t(e(n))}},mx}function Fx(){if(wx)return bx;wx=1;var t=Hx(),e=function(){if(xx)return vx;xx=1;var t=Nx()(Object.keys,Object);return vx=t}(),n=Object.prototype.hasOwnProperty;return bx=function(i){if(!t(i))return e(i);var r=[];for(var o in Object(i))n.call(i,o)&&"constructor"!=o&&r.push(o);return r},bx}function Dx(){if(kx)return Mx;kx=1;var t=Sv(),e=ax();return Mx=function(n){return null!=n&&e(n.length)&&!t(n)},Mx}function Vx(){if(Ox)return Cx;Ox=1;var t=Wx(),e=Fx(),n=Dx();return Cx=function(i){return n(i)?t(i):e(i)},Cx}function Ux(){if(Ax)return $x;Ax=1;var t=_v(),e=Hx(),n=(Sx||(Sx=1,_x=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}),_x),i=Object.prototype.hasOwnProperty;return $x=function(r){if(!t(r))return n(r);var o=e(r),s=[];for(var a in r)("constructor"!=a||!o&&i.call(r,a))&&s.push(a);return s},$x}function Yx(){if(Px)return zx;Px=1;var t=Wx(),e=Ux(),n=Dx();return zx=function(i){return n(i)?t(i,!0):e(i)},zx}var qx,Gx,Xx,Kx,Zx,Qx,Jx,tb,eb,nb,ib,rb,ob,sb,ab,lb,cb,hb,ub,db,fb,pb,gb,mb,yb,vb,xb,bb,wb,Mb,kb,Cb,Ob,jb,Eb,_b,Sb,$b,Ab,zb,Pb,Lb,Ib,Tb,Rb,Bb,Wb,Hb,Nb,Fb,Db,Vb,Ub,Yb,qb,Gb,Xb,Kb,Zb,Qb,Jb,tw,ew,nw,iw,rw,ow,sw,aw,lw,cw,hw,uw,dw,fw,pw,gw,mw,yw,vw,xw,bw,ww,Mw,kw,Cw,Ow,jw,Ew,_w,Sw,$w,Aw,zw,Pw,Lw,Iw,Tw,Rw,Bw,Ww,Hw,Nw,Fw,Dw,Vw,Uw,Yw,qw,Gw,Xw,Kw,Zw,Qw,Jw,tM,eM,nM,iM,rM,oM,sM,aM,lM,cM,hM,uM,dM,fM,pM,gM,mM,yM,vM,xM,bM,wM,MM,kM,CM,OM,jM,EM,_M,SM,$M,AM,zM,PM,LM,IM,TM,RM,BM,WM,HM,NM,FM,DM,VM,UM,YM,qM,GM,XM,KM,ZM,QM,JM,tk,ek,nk,ik,rk,ok,sk,ak,lk,ck,hk,uk,dk,fk,pk,gk,mk,yk,vk,xk,bk,wk,Mk,kk,Ck,Ok,jk,Ek,_k,Sk,$k,Ak,zk,Pk,Lk,Ik,Tk,Rk,Bk,Wk,Hk,Nk,Fk,Dk,Vk,Uk,Yk,qk,Gk,Xk,Kk,Zk,Qk,Jk,tC,eC,nC,iC,rC,oC,sC,aC,lC,cC,hC,uC,dC,fC,pC,gC,mC,yC,vC,xC,bC,wC,MC,kC,CC,OC,jC,EC,_C,SC,$C,AC,zC,PC,LC,IC,TC,RC,BC,WC,HC,NC,FC,DC,VC,UC,YC,qC,GC,XC,KC,ZC,QC,JC,tO,eO,nO,iO,rO,oO,sO,aO,lO,cO,hO,uO,dO,fO,pO,gO,mO,yO,vO,xO,bO,wO,MO,kO,CO,OO,jO,EO,_O,SO,$O,AO,zO,PO,LO,IO,TO,RO,BO,WO,HO,NO,FO,DO,VO,UO,YO,qO,GO,XO,KO,ZO,QO,JO,tj,ej,nj,ij,rj,oj,sj,aj,lj,cj,hj,uj,dj,fj,pj,gj,mj,yj,vj,xj,bj,wj,Mj,kj,Cj,Oj,jj,Ej,_j,Sj,$j,Aj,zj,Pj,Lj,Ij,Tj,Rj,Bj,Wj,Hj,Nj,Fj,Dj,Vj,Uj,Yj,qj,Gj,Xj,Kj,Zj,Qj,Jj,tE,eE,nE,iE,rE,oE,sE,aE,lE,cE,hE,uE,dE,fE,pE,gE,mE,yE,vE,xE,bE,wE,ME,kE,CE,OE,jE,EE,_E,SE,$E,AE,zE,PE,LE,IE,TE,RE,BE,WE,HE,NE,FE,DE,VE,UE,YE={exports:{}};function qE(){return qx||(qx=1,function(t,e){var n=Ov(),i=e&&!e.nodeType&&e,r=i&&t&&!t.nodeType&&t,o=r&&r.exports===i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,i=s?s(n):new t.constructor(n);return t.copy(i),i}}(YE,YE.exports)),YE.exports}function GE(){if(Xx)return Gx;return Xx=1,Gx=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e},Gx}function XE(){if(Zx)return Kx;return Zx=1,Kx=function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=s)}return o},Kx}function KE(){if(Jx)return Qx;return Jx=1,Qx=function(){return[]}}function ZE(){if(eb)return tb;eb=1;var t=XE(),e=KE(),n=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,r=i?function(e){return null==e?[]:(e=Object(e),t(i(e),function(t){return n.call(e,t)}))}:e;return tb=r}function QE(){if(ob)return rb;return ob=1,rb=function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t},rb}function JE(){if(ab)return sb;ab=1;var t=Nx()(Object.getPrototypeOf,Object);return sb=t}function t_(){if(cb)return lb;cb=1;var t=QE(),e=JE(),n=ZE(),i=KE(),r=Object.getOwnPropertySymbols?function(i){for(var r=[];i;)t(r,n(i)),i=e(i);return r}:i;return lb=r}function e_(){if(fb)return db;fb=1;var t=QE(),e=Yv();return db=function(n,i,r){var o=i(n);return e(n)?o:t(o,r(n))},db}function n_(){if(gb)return pb;gb=1;var t=e_(),e=ZE(),n=Vx();return pb=function(i){return t(i,n,e)},pb}function i_(){if(kb)return Mb;kb=1;var t=zv()(Ov(),"Set");return Mb=t}function r_(){if(Eb)return jb;Eb=1;var t=function(){if(xb)return vb;xb=1;var t=zv()(Ov(),"DataView");return vb=t}(),e=Pv(),n=function(){if(wb)return bb;wb=1;var t=zv()(Ov(),"Promise");return bb=t}(),i=i_(),r=function(){if(Ob)return Cb;Ob=1;var t=zv()(Ov(),"WeakMap");return Cb=t}(),o=Ev(),s=Av(),a="[object Map]",l="[object Promise]",c="[object Set]",h="[object WeakMap]",u="[object DataView]",d=s(t),f=s(e),p=s(n),g=s(i),m=s(r),y=o;return(t&&y(new t(new ArrayBuffer(1)))!=u||e&&y(new e)!=a||n&&y(n.resolve())!=l||i&&y(new i)!=c||r&&y(new r)!=h)&&(y=function(t){var e=o(t),n="[object Object]"==e?t.constructor:void 0,i=n?s(n):"";if(i)switch(i){case d:return u;case f:return a;case p:return l;case g:return c;case m:return h}return e}),jb=y}function o_(){if(Ab)return $b;Ab=1;var t=Ov();return $b=t.Uint8Array}function s_(){if(Pb)return zb;Pb=1;var t=o_();return zb=function(e){var n=new e.constructor(e.byteLength);return new t(n).set(new t(e)),n}}function a_(){if(Nb)return Hb;Nb=1;var t=s_();return Hb=function(e,n){var i=n?t(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}}function l_(){if(Db)return Fb;Db=1;var t=s_(),e=function(){if(Ib)return Lb;Ib=1;var t=s_();return Lb=function(e,n){var i=n?t(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}}(),n=function(){if(Rb)return Tb;Rb=1;var t=/\w*$/;return Tb=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}}(),i=function(){if(Wb)return Bb;Wb=1;var t=jv(),e=t?t.prototype:void 0,n=e?e.valueOf:void 0;return Bb=function(t){return n?Object(n.call(t)):{}}}(),r=a_();return Fb=function(o,s,a){var l=o.constructor;switch(s){case"[object ArrayBuffer]":return t(o);case"[object Boolean]":case"[object Date]":return new l(+o);case"[object DataView]":return e(o,a);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return r(o,a);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(o);case"[object RegExp]":return n(o);case"[object Symbol]":return i(o)}},Fb}function c_(){if(Ub)return Vb;Ub=1;var t=_v(),e=Object.create,n=function(){function n(){}return function(i){if(!t(i))return{};if(e)return e(i);n.prototype=i;var r=new n;return n.prototype=void 0,r}}();return Vb=n}function h_(){if(qb)return Yb;qb=1;var t=c_(),e=JE(),n=Hx();return Yb=function(i){return"function"!=typeof i.constructor||n(i)?{}:t(e(i))},Yb}function u_(){if(Zb)return Kb;Zb=1;var t=function(){if(Xb)return Gb;Xb=1;var t=r_(),e=Vv();return Gb=function(n){return e(n)&&"[object Map]"==t(n)},Gb}(),e=lx(),n=Rx(),i=n&&n.isMap,r=i?e(i):t;return Kb=r}function d_(){if(ew)return tw;ew=1;var t=function(){if(Jb)return Qb;Jb=1;var t=r_(),e=Vv();return Qb=function(n){return e(n)&&"[object Set]"==t(n)},Qb}(),e=lx(),n=Rx(),i=n&&n.isSet,r=i?e(i):t;return tw=r}function f_(){if(iw)return nw;iw=1;var t=Bv(),e=Wv(),n=Fv(),i=function(){if(Ex)return jx;Ex=1;var t=Dv(),e=Vx();return jx=function(n,i){return n&&t(i,e(i),n)},jx}(),r=function(){if(Ix)return Lx;Ix=1;var t=Dv(),e=Yx();return Lx=function(n,i){return n&&t(i,e(i),n)},Lx}(),o=qE(),s=GE(),a=function(){if(ib)return nb;ib=1;var t=Dv(),e=ZE();return nb=function(n,i){return t(n,e(n),i)},nb}(),l=function(){if(ub)return hb;ub=1;var t=Dv(),e=t_();return hb=function(n,i){return t(n,e(n),i)},hb}(),c=n_(),h=function(){if(yb)return mb;yb=1;var t=e_(),e=t_(),n=Yx();return mb=function(i){return t(i,n,e)},mb}(),u=r_(),d=function(){if(Sb)return _b;Sb=1;var t=Object.prototype.hasOwnProperty;return _b=function(e){var n=e.length,i=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(i.index=e.index,i.input=e.input),i},_b}(),f=l_(),p=h_(),g=Yv(),m=ox(),y=u_(),v=_v(),x=d_(),b=Vx(),w=Yx(),M="[object Arguments]",k="[object Function]",C="[object Object]",O={};return O[M]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[C]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[k]=O["[object WeakMap]"]=!1,nw=function j(E,_,S,$,A,z){var P,L=1&_,I=2&_,T=4&_;if(S&&(P=A?S(E,$,A,z):S(E)),void 0!==P)return P;if(!v(E))return E;var R=g(E);if(R){if(P=d(E),!L)return s(E,P)}else{var B=u(E),W=B==k||"[object GeneratorFunction]"==B;if(m(E))return o(E,L);if(B==C||B==M||W&&!A){if(P=I||W?{}:p(E),!L)return I?l(E,r(P,E)):a(E,i(P,E))}else{if(!O[B])return A?E:{};P=f(E,B,L)}}z||(z=new t);var H=z.get(E);if(H)return H;z.set(E,P),x(E)?E.forEach(function(t){P.add(j(t,_,S,t,E,z))}):y(E)&&E.forEach(function(t,e){P.set(e,j(t,_,S,e,E,z))});var N=R?void 0:(T?I?h:c:I?w:b)(E);return e(N||E,function(t,e){N&&(t=E[e=t]),n(P,e,j(t,_,S,e,E,z))}),P},nw}function p_(){if(ow)return rw;ow=1;var t=f_();return rw=function(e){return t(e,4)},rw}function g_(){if(aw)return sw;return aw=1,sw=function(t){return function(){return t}},sw}function m_(){if(uw)return hw;uw=1;var t=(cw||(cw=1,lw=function(t){return function(e,n,i){for(var r=-1,o=Object(e),s=i(e),a=s.length;a--;){var l=s[t?a:++r];if(!1===n(o[l],l,o))break}return e}}),lw),e=t();return hw=e}function y_(){if(fw)return dw;fw=1;var t=m_(),e=Vx();return dw=function(n,i){return n&&t(n,i,e)},dw}function v_(){if(yw)return mw;yw=1;var t=y_(),e=function(){if(gw)return pw;gw=1;var t=Dx();return pw=function(e,n){return function(i,r){if(null==i)return i;if(!t(i))return e(i,r);for(var o=i.length,s=n?o:-1,a=Object(i);(n?s--:++s<o)&&!1!==r(a[s],s,a););return i}}}(),n=e(t);return mw=n}function x_(){if(xw)return vw;return xw=1,vw=function(t){return t},vw}function b_(){if(ww)return bw;ww=1;var t=x_();return bw=function(e){return"function"==typeof e?e:t},bw}function w_(){if(kw)return Mw;kw=1;var t=Wv(),e=v_(),n=b_(),i=Yv();return Mw=function(r,o){return(i(r)?t:e)(r,n(o))}}function M_(){return Ow?Cw:(Ow=1,Cw=w_())}function k_(){if(Pw)return zw;Pw=1;var t=Rv(),e=(Sw||(Sw=1,_w=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),_w),n=(Aw||(Aw=1,$w=function(t){return this.__data__.has(t)}),$w);function i(e){var n=-1,i=null==e?0:e.length;for(this.__data__=new t;++n<i;)this.add(e[n])}return i.prototype.add=i.prototype.push=e,i.prototype.has=n,zw=i}function C_(){if(Rw)return Tw;return Rw=1,Tw=function(t,e){return t.has(e)}}function O_(){if(Ww)return Bw;Ww=1;var t=k_(),e=(Iw||(Iw=1,Lw=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}),Lw),n=C_();return Bw=function(i,r,o,s,a,l){var c=1&o,h=i.length,u=r.length;if(h!=u&&!(c&&u>h))return!1;var d=l.get(i),f=l.get(r);if(d&&f)return d==r&&f==i;var p=-1,g=!0,m=2&o?new t:void 0;for(l.set(i,r),l.set(r,i);++p<h;){var y=i[p],v=r[p];if(s)var x=c?s(v,y,p,r,i,l):s(y,v,p,i,r,l);if(void 0!==x){if(x)continue;g=!1;break}if(m){if(!e(r,function(t,e){if(!n(m,e)&&(y===t||a(y,t,o,s,l)))return m.push(e)})){g=!1;break}}else if(y!==v&&!a(y,v,o,s,l)){g=!1;break}}return l.delete(i),l.delete(r),g},Bw}function j_(){if(Dw)return Fw;return Dw=1,Fw=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n},Fw}function E_(){if(Uw)return Vw;Uw=1;var t=jv(),e=o_(),n=wv(),i=O_(),r=(Nw||(Nw=1,Hw=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n}),Hw),o=j_(),s=t?t.prototype:void 0,a=s?s.valueOf:void 0;return Vw=function(t,s,l,c,h,u,d){switch(l){case"[object DataView]":if(t.byteLength!=s.byteLength||t.byteOffset!=s.byteOffset)return!1;t=t.buffer,s=s.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=s.byteLength||!u(new e(t),new e(s)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+t,+s);case"[object Error]":return t.name==s.name&&t.message==s.message;case"[object RegExp]":case"[object String]":return t==s+"";case"[object Map]":var f=r;case"[object Set]":if(f||(f=o),t.size!=s.size&&!(1&c))return!1;var p=d.get(t);if(p)return p==s;c|=2,d.set(t,s);var g=i(f(t),f(s),c,h,u,d);return d.delete(t),g;case"[object Symbol]":if(a)return a.call(t)==a.call(s)}return!1},Vw}function __(){if(Xw)return Gw;Xw=1;var t=Bv(),e=O_(),n=E_(),i=function(){if(qw)return Yw;qw=1;var t=n_(),e=Object.prototype.hasOwnProperty;return Yw=function(n,i,r,o,s,a){var l=1&r,c=t(n),h=c.length;if(h!=t(i).length&&!l)return!1;for(var u=h;u--;){var d=c[u];if(!(l?d in i:e.call(i,d)))return!1}var f=a.get(n),p=a.get(i);if(f&&p)return f==i&&p==n;var g=!0;a.set(n,i),a.set(i,n);for(var m=l;++u<h;){var y=n[d=c[u]],v=i[d];if(o)var x=l?o(v,y,d,i,n,a):o(y,v,d,n,i,a);if(!(void 0===x?y===v||s(y,v,r,o,a):x)){g=!1;break}m||(m="constructor"==d)}if(g&&!m){var b=n.constructor,w=i.constructor;b==w||!("constructor"in n)||!("constructor"in i)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(g=!1)}return a.delete(n),a.delete(i),g},Yw}(),r=r_(),o=Yv(),s=ox(),a=Bx(),l="[object Arguments]",c="[object Array]",h="[object Object]",u=Object.prototype.hasOwnProperty;return Gw=function(d,f,p,g,m,y){var v=o(d),x=o(f),b=v?c:r(d),w=x?c:r(f),M=(b=b==l?h:b)==h,k=(w=w==l?h:w)==h,C=b==w;if(C&&s(d)){if(!s(f))return!1;v=!0,M=!1}if(C&&!M)return y||(y=new t),v||a(d)?e(d,f,p,g,m,y):n(d,f,b,p,g,m,y);if(!(1&p)){var O=M&&u.call(d,"__wrapped__"),j=k&&u.call(f,"__wrapped__");if(O||j){var E=O?d.value():d,_=j?f.value():f;return y||(y=new t),m(E,_,p,g,y)}}return!!C&&(y||(y=new t),i(d,f,p,g,m,y))},Gw}function S_(){if(Zw)return Kw;Zw=1;var t=__(),e=Vv();return Kw=function n(i,r,o,s,a){return i===r||(null==i||null==r||!e(i)&&!e(r)?i!=i&&r!=r:t(i,r,o,s,n,a))},Kw}function $_(){if(eM)return tM;eM=1;var t=_v();return tM=function(e){return e==e&&!t(e)},tM}function A_(){if(oM)return rM;return oM=1,rM=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}},rM}function z_(){if(aM)return sM;aM=1;var t=function(){if(Jw)return Qw;Jw=1;var t=Bv(),e=S_();return Qw=function(n,i,r,o){var s=r.length,a=s,l=!o;if(null==n)return!a;for(n=Object(n);s--;){var c=r[s];if(l&&c[2]?c[1]!==n[c[0]]:!(c[0]in n))return!1}for(;++s<a;){var h=(c=r[s])[0],u=n[h],d=c[1];if(l&&c[2]){if(void 0===u&&!(h in n))return!1}else{var f=new t;if(o)var p=o(u,d,h,n,i,f);if(!(void 0===p?e(d,u,3,o,f):p))return!1}}return!0},Qw}(),e=function(){if(iM)return nM;iM=1;var t=$_(),e=Vx();return nM=function(n){for(var i=e(n),r=i.length;r--;){var o=i[r],s=n[o];i[r]=[o,s,t(s)]}return i},nM}(),n=A_();return sM=function(i){var r=e(i);return 1==r.length&&r[0][2]?n(r[0][0],r[0][1]):function(e){return e===i||t(e,i,r)}},sM}function P_(){if(cM)return lM;cM=1;var t=Ev(),e=Vv();return lM=function(n){return"symbol"==typeof n||e(n)&&"[object Symbol]"==t(n)},lM}function L_(){if(uM)return hM;uM=1;var t=Yv(),e=P_(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;return hM=function(r,o){if(t(r))return!1;var s=typeof r;return!("number"!=s&&"symbol"!=s&&"boolean"!=s&&null!=r&&!e(r))||(i.test(r)||!n.test(r)||null!=o&&r in Object(o))},hM}function I_(){if(gM)return pM;gM=1;var t=function(){if(fM)return dM;fM=1;var t=Rv();function e(n,i){if("function"!=typeof n||null!=i&&"function"!=typeof i)throw new TypeError("Expected a function");var r=function(){var t=arguments,e=i?i.apply(this,t):t[0],o=r.cache;if(o.has(e))return o.get(e);var s=n.apply(this,t);return r.cache=o.set(e,s)||o,s};return r.cache=new(e.Cache||t),r}return e.Cache=t,dM=e}();return pM=function(e){var n=t(e,function(t){return 500===i.size&&i.clear(),t}),i=n.cache;return n}}function T_(){if(xM)return vM;return xM=1,vM=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r},vM}function R_(){if(kM)return MM;kM=1;var t=function(){if(wM)return bM;wM=1;var t=jv(),e=T_(),n=Yv(),i=P_(),r=t?t.prototype:void 0,o=r?r.toString:void 0;return bM=function t(r){if("string"==typeof r)return r;if(n(r))return e(r,t)+"";if(i(r))return o?o.call(r):"";var s=r+"";return"0"==s&&1/r==-1/0?"-0":s},bM}();return MM=function(e){return null==e?"":t(e)},MM}function B_(){if(OM)return CM;OM=1;var t=Yv(),e=L_(),n=function(){if(yM)return mM;yM=1;var t=I_(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,i=t(function(t){var i=[];return 46===t.charCodeAt(0)&&i.push(""),t.replace(e,function(t,e,r,o){i.push(r?o.replace(n,"$1"):e||t)}),i});return mM=i}(),i=R_();return CM=function(r,o){return t(r)?r:e(r,o)?[r]:n(i(r))},CM}function W_(){if(EM)return jM;EM=1;var t=P_();return jM=function(e){if("string"==typeof e||t(e))return e;var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},jM}function H_(){if(SM)return _M;SM=1;var t=B_(),e=W_();return _M=function(n,i){for(var r=0,o=(i=t(i,n)).length;null!=n&&r<o;)n=n[e(i[r++])];return r&&r==o?n:void 0},_M}function N_(){if(IM)return LM;IM=1;var t=B_(),e=Uv(),n=Yv(),i=sx(),r=ax(),o=W_();return LM=function(s,a,l){for(var c=-1,h=(a=t(a,s)).length,u=!1;++c<h;){var d=o(a[c]);if(!(u=null!=s&&l(s,d)))break;s=s[d]}return u||++c!=h?u:!!(h=null==s?0:s.length)&&r(h)&&i(d,h)&&(n(s)||e(s))},LM}function F_(){if(RM)return TM;RM=1;var t=(PM||(PM=1,zM=function(t,e){return null!=t&&e in Object(t)}),zM),e=N_();return TM=function(n,i){return null!=n&&e(n,i,t)},TM}function D_(){if(WM)return BM;WM=1;var t=S_(),e=function(){if(AM)return $M;AM=1;var t=H_();return $M=function(e,n,i){var r=null==e?void 0:t(e,n);return void 0===r?i:r},$M}(),n=F_(),i=L_(),r=$_(),o=A_(),s=W_();return BM=function(a,l){return i(a)&&r(l)?o(s(a),l):function(i){var r=e(i,a);return void 0===r&&r===l?n(i,a):t(l,r,3)}},BM}function V_(){if(NM)return HM;return NM=1,HM=function(t){return function(e){return null==e?void 0:e[t]}},HM}function U_(){if(UM)return VM;UM=1;var t=V_(),e=function(){if(DM)return FM;DM=1;var t=H_();return FM=function(e){return function(n){return t(n,e)}},FM}(),n=L_(),i=W_();return VM=function(r){return n(r)?t(i(r)):e(r)}}function Y_(){if(qM)return YM;qM=1;var t=z_(),e=D_(),n=x_(),i=Yv(),r=U_();return YM=function(o){return"function"==typeof o?o:null==o?n:"object"==typeof o?i(o)?e(o[0],o[1]):t(o):r(o)},YM}function q_(){if(XM)return GM;XM=1;var t=XE(),e=function(){if(Ew)return jw;Ew=1;var t=v_();return jw=function(e,n){var i=[];return t(e,function(t,e,r){n(t,e,r)&&i.push(t)}),i},jw}(),n=Y_(),i=Yv();return GM=function(r,o){return(i(r)?t:e)(r,n(o,3))}}function G_(){if(JM)return QM;JM=1;var t=function(){if(ZM)return KM;ZM=1;var t=Object.prototype.hasOwnProperty;return KM=function(e,n){return null!=e&&t.call(e,n)},KM}(),e=N_();return QM=function(n,i){return null!=n&&e(n,i,t)},QM}function X_(){if(ek)return tk;ek=1;var t=Fx(),e=r_(),n=Uv(),i=Yv(),r=Dx(),o=ox(),s=Hx(),a=Bx(),l=Object.prototype.hasOwnProperty;return tk=function(c){if(null==c)return!0;if(r(c)&&(i(c)||"string"==typeof c||"function"==typeof c.splice||o(c)||a(c)||n(c)))return!c.length;var h=e(c);if("[object Map]"==h||"[object Set]"==h)return!c.size;if(s(c))return!t(c).length;for(var u in c)if(l.call(c,u))return!1;return!0},tk}function K_(){if(ik)return nk;return ik=1,nk=function(t){return void 0===t},nk}function Z_(){if(ok)return rk;ok=1;var t=v_(),e=Dx();return rk=function(n,i){var r=-1,o=e(n)?Array(n.length):[];return t(n,function(t,e,n){o[++r]=i(t,e,n)}),o},rk}function Q_(){if(ak)return sk;ak=1;var t=T_(),e=Y_(),n=Z_(),i=Yv();return sk=function(r,o){return(i(r)?t:n)(r,e(o,3))}}function J_(){if(fk)return dk;fk=1;var t=(ck||(ck=1,lk=function(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}),lk),e=v_(),n=Y_(),i=(uk||(uk=1,hk=function(t,e,n,i,r){return r(t,function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)}),n}),hk),r=Yv();return dk=function(o,s,a){var l=r(o)?t:i,c=arguments.length<3;return l(o,n(s,4),a,c,e)},dk}function tS(){if(kk)return Mk;kk=1;var t=function(){if(yk)return mk;yk=1;var t=V_()("length");return mk=t}(),e=function(){if(xk)return vk;xk=1;var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return vk=function(e){return t.test(e)},vk}(),n=function(){if(wk)return bk;wk=1;var t="\\ud800-\\udfff",e="["+t+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",r="[^"+t+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+n+"|"+i+")?",l="[\\ufe0e\\ufe0f]?",c=l+a+"(?:\\u200d(?:"+[r,o,s].join("|")+")"+l+a+")*",h="(?:"+[r+n+"?",n,o,s,e].join("|")+")",u=RegExp(i+"(?="+i+")|"+h+c,"g");return bk=function(t){for(var e=u.lastIndex=0;u.test(t);)++e;return e},bk}();return Mk=function(i){return e(i)?n(i):t(i)},Mk}function eS(){if(Ok)return Ck;Ok=1;var t=Fx(),e=r_(),n=Dx(),i=function(){if(gk)return pk;gk=1;var t=Ev(),e=Yv(),n=Vv();return pk=function(i){return"string"==typeof i||!e(i)&&n(i)&&"[object String]"==t(i)},pk}(),r=tS();return Ck=function(o){if(null==o)return 0;if(n(o))return i(o)?r(o):o.length;var s=e(o);return"[object Map]"==s||"[object Set]"==s?o.size:t(o).length}}function nS(){if(Ek)return jk;Ek=1;var t=Wv(),e=c_(),n=y_(),i=Y_(),r=JE(),o=Yv(),s=ox(),a=Sv(),l=_v(),c=Bx();return jk=function(h,u,d){var f=o(h),p=f||s(h)||c(h);if(u=i(u,4),null==d){var g=h&&h.constructor;d=p?f?new g:[]:l(h)&&a(g)?e(r(h)):{}}return(p?t:n)(h,function(t,e,n){return u(d,t,e,n)}),d},jk}function iS(){if(Ak)return $k;Ak=1;var t=QE(),e=function(){if(Sk)return _k;Sk=1;var t=jv(),e=Uv(),n=Yv(),i=t?t.isConcatSpreadable:void 0;return _k=function(t){return n(t)||e(t)||!!(i&&t&&t[i])},_k}();return $k=function n(i,r,o,s,a){var l=-1,c=i.length;for(o||(o=e),a||(a=[]);++l<c;){var h=i[l];r>0&&o(h)?r>1?n(h,r-1,o,s,a):t(a,h):s||(a[a.length]=h)}return a},$k}function rS(){if(Ik)return Lk;Ik=1;var t=Pk?zk:(Pk=1,zk=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}),e=Math.max;return Lk=function(n,i,r){return i=e(void 0===i?n.length-1:i,0),function(){for(var o=arguments,s=-1,a=e(o.length-i,0),l=Array(a);++s<a;)l[s]=o[i+s];s=-1;for(var c=Array(i+1);++s<i;)c[s]=o[s];return c[i]=r(l),t(n,this,c)}},Lk}function oS(){if(Nk)return Hk;Nk=1;var t=function(){if(Rk)return Tk;Rk=1;var t=g_(),e=Hv(),n=x_(),i=e?function(n,i){return e(n,"toString",{configurable:!0,enumerable:!1,value:t(i),writable:!0})}:n;return Tk=i}(),e=function(){if(Wk)return Bk;Wk=1;var t=Date.now;return Bk=function(e){var n=0,i=0;return function(){var r=t(),o=16-(r-i);if(i=r,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}},Bk}(),n=e(t);return Hk=n}function sS(){if(Dk)return Fk;Dk=1;var t=x_(),e=rS(),n=oS();return Fk=function(i,r){return n(e(i,r,t),i+"")},Fk}function aS(){if(Uk)return Vk;return Uk=1,Vk=function(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1},Vk}function lS(){if(Zk)return Kk;Zk=1;var t=aS(),e=(qk||(qk=1,Yk=function(t){return t!=t}),Yk),n=(Xk||(Xk=1,Gk=function(t,e,n){for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return-1}),Gk);return Kk=function(i,r,o){return r==r?n(i,r,o):t(i,e,o)},Kk}function cS(){if(oC)return rC;oC=1;var t=i_(),e=iC?nC:(iC=1,nC=function(){}),n=j_(),i=t&&1/n(new t([,-0]))[1]==1/0?function(e){return new t(e)}:e;return rC=i}function hS(){if(aC)return sC;aC=1;var t=k_(),e=function(){if(Jk)return Qk;Jk=1;var t=lS();return Qk=function(e,n){return!(null==e||!e.length)&&t(e,n,0)>-1},Qk}(),n=(eC||(eC=1,tC=function(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}),tC),i=C_(),r=cS(),o=j_();return sC=function(s,a,l){var c=-1,h=e,u=s.length,d=!0,f=[],p=f;if(l)d=!1,h=n;else if(u>=200){var g=a?null:r(s);if(g)return o(g);d=!1,h=i,p=new t}else p=a?[]:f;t:for(;++c<u;){var m=s[c],y=a?a(m):m;if(m=l||0!==m?m:0,d&&y==y){for(var v=p.length;v--;)if(p[v]===y)continue t;a&&p.push(y),f.push(m)}else h(p,y,l)||(p!==f&&p.push(y),f.push(m))}return f},sC}function uS(){if(cC)return lC;cC=1;var t=Dx(),e=Vv();return lC=function(n){return e(n)&&t(n)},lC}function dS(){if(uC)return hC;uC=1;var t=iS(),e=sS(),n=hS(),i=uS(),r=e(function(e){return n(t(e,1,i,!0))});return hC=r}function fS(){if(gC)return pC;gC=1;var t=function(){if(fC)return dC;fC=1;var t=T_();return dC=function(e,n){return t(n,function(t){return e[t]})},dC}(),e=Vx();return pC=function(n){return null==n?[]:t(n,e(n))},pC}function pS(){if(yC)return mC;var t;yC=1;try{t={clone:p_(),constant:g_(),each:M_(),filter:q_(),has:G_(),isArray:Yv(),isEmpty:X_(),isFunction:Sv(),isUndefined:K_(),keys:Vx(),map:Q_(),reduce:J_(),size:eS(),transform:nS(),union:dS(),values:fS()}}catch(t){}return t||(t=window._),mC=t}function gS(){if(xC)return vC;xC=1;var t=pS();vC=n;var e="\0";function n(n){this._isDirected=!t.has(n,"directed")||n.directed,this._isMultigraph=!!t.has(n,"multigraph")&&n.multigraph,this._isCompound=!!t.has(n,"compound")&&n.compound,this._label=void 0,this._defaultNodeLabelFn=t.constant(void 0),this._defaultEdgeLabelFn=t.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[e]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function i(t,e){t[e]?t[e]++:t[e]=1}function r(t,e){--t[e]||delete t[e]}function o(e,n,i,r){var o=""+n,s=""+i;if(!e&&o>s){var a=o;o=s,s=a}return o+""+s+""+(t.isUndefined(r)?"\0":r)}function s(t,e){return o(t,e.v,e.w,e.name)}return n.prototype._nodeCount=0,n.prototype._edgeCount=0,n.prototype.isDirected=function(){return this._isDirected},n.prototype.isMultigraph=function(){return this._isMultigraph},n.prototype.isCompound=function(){return this._isCompound},n.prototype.setGraph=function(t){return this._label=t,this},n.prototype.graph=function(){return this._label},n.prototype.setDefaultNodeLabel=function(e){return t.isFunction(e)||(e=t.constant(e)),this._defaultNodeLabelFn=e,this},n.prototype.nodeCount=function(){return this._nodeCount},n.prototype.nodes=function(){return t.keys(this._nodes)},n.prototype.sources=function(){var e=this;return t.filter(this.nodes(),function(n){return t.isEmpty(e._in[n])})},n.prototype.sinks=function(){var e=this;return t.filter(this.nodes(),function(n){return t.isEmpty(e._out[n])})},n.prototype.setNodes=function(e,n){var i=arguments,r=this;return t.each(e,function(t){i.length>1?r.setNode(t,n):r.setNode(t)}),this},n.prototype.setNode=function(n,i){return t.has(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=i),this):(this._nodes[n]=arguments.length>1?i:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=e,this._children[n]={},this._children[e][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)},n.prototype.node=function(t){return this._nodes[t]},n.prototype.hasNode=function(e){return t.has(this._nodes,e)},n.prototype.removeNode=function(e){var n=this;if(t.has(this._nodes,e)){var i=function(t){n.removeEdge(n._edgeObjs[t])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],t.each(this.children(e),function(t){n.setParent(t)}),delete this._children[e]),t.each(t.keys(this._in[e]),i),delete this._in[e],delete this._preds[e],t.each(t.keys(this._out[e]),i),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},n.prototype.setParent=function(n,i){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(t.isUndefined(i))i=e;else{for(var r=i+="";!t.isUndefined(r);r=this.parent(r))if(r===n)throw new Error("Setting "+i+" as parent of "+n+" would create a cycle");this.setNode(i)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=i,this._children[i][n]=!0,this},n.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},n.prototype.parent=function(t){if(this._isCompound){var n=this._parent[t];if(n!==e)return n}},n.prototype.children=function(n){if(t.isUndefined(n)&&(n=e),this._isCompound){var i=this._children[n];if(i)return t.keys(i)}else{if(n===e)return this.nodes();if(this.hasNode(n))return[]}},n.prototype.predecessors=function(e){var n=this._preds[e];if(n)return t.keys(n)},n.prototype.successors=function(e){var n=this._sucs[e];if(n)return t.keys(n)},n.prototype.neighbors=function(e){var n=this.predecessors(e);if(n)return t.union(n,this.successors(e))},n.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},n.prototype.filterNodes=function(e){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var i=this;t.each(this._nodes,function(t,i){e(i)&&n.setNode(i,t)}),t.each(this._edgeObjs,function(t){n.hasNode(t.v)&&n.hasNode(t.w)&&n.setEdge(t,i.edge(t))});var r={};function o(t){var e=i.parent(t);return void 0===e||n.hasNode(e)?(r[t]=e,e):e in r?r[e]:o(e)}return this._isCompound&&t.each(n.nodes(),function(t){n.setParent(t,o(t))}),n},n.prototype.setDefaultEdgeLabel=function(e){return t.isFunction(e)||(e=t.constant(e)),this._defaultEdgeLabelFn=e,this},n.prototype.edgeCount=function(){return this._edgeCount},n.prototype.edges=function(){return t.values(this._edgeObjs)},n.prototype.setPath=function(e,n){var i=this,r=arguments;return t.reduce(e,function(t,e){return r.length>1?i.setEdge(t,e,n):i.setEdge(t,e),e}),this},n.prototype.setEdge=function(){var e,n,r,s,a=!1,l=arguments[0];"object"==typeof l&&null!==l&&"v"in l?(e=l.v,n=l.w,r=l.name,2===arguments.length&&(s=arguments[1],a=!0)):(e=l,n=arguments[1],r=arguments[3],arguments.length>2&&(s=arguments[2],a=!0)),e=""+e,n=""+n,t.isUndefined(r)||(r=""+r);var c=o(this._isDirected,e,n,r);if(t.has(this._edgeLabels,c))return a&&(this._edgeLabels[c]=s),this;if(!t.isUndefined(r)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(n),this._edgeLabels[c]=a?s:this._defaultEdgeLabelFn(e,n,r);var h=function(t,e,n,i){var r=""+e,o=""+n;if(!t&&r>o){var s=r;r=o,o=s}var a={v:r,w:o};i&&(a.name=i);return a}(this._isDirected,e,n,r);return e=h.v,n=h.w,Object.freeze(h),this._edgeObjs[c]=h,i(this._preds[n],e),i(this._sucs[e],n),this._in[n][c]=h,this._out[e][c]=h,this._edgeCount++,this},n.prototype.edge=function(t,e,n){var i=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,t,e,n);return this._edgeLabels[i]},n.prototype.hasEdge=function(e,n,i){var r=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,e,n,i);return t.has(this._edgeLabels,r)},n.prototype.removeEdge=function(t,e,n){var i=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,t,e,n),a=this._edgeObjs[i];return a&&(t=a.v,e=a.w,delete this._edgeLabels[i],delete this._edgeObjs[i],r(this._preds[e],t),r(this._sucs[t],e),delete this._in[e][i],delete this._out[t][i],this._edgeCount--),this},n.prototype.inEdges=function(e,n){var i=this._in[e];if(i){var r=t.values(i);return n?t.filter(r,function(t){return t.v===n}):r}},n.prototype.outEdges=function(e,n){var i=this._out[e];if(i){var r=t.values(i);return n?t.filter(r,function(t){return t.w===n}):r}},n.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))},vC}function mS(){return kC?MC:(kC=1,MC={Graph:gS(),version:wC?bC:(wC=1,bC="2.1.8")})}function yS(){if(OC)return CC;OC=1;var t=pS(),e=gS();function n(e){return t.map(e.nodes(),function(n){var i=e.node(n),r=e.parent(n),o={v:n};return t.isUndefined(i)||(o.value=i),t.isUndefined(r)||(o.parent=r),o})}function i(e){return t.map(e.edges(),function(n){var i=e.edge(n),r={v:n.v,w:n.w};return t.isUndefined(n.name)||(r.name=n.name),t.isUndefined(i)||(r.value=i),r})}return CC={write:function(e){var r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:n(e),edges:i(e)};t.isUndefined(e.graph())||(r.value=t.clone(e.graph()));return r},read:function(n){var i=new e(n.options).setGraph(n.value);return t.each(n.nodes,function(t){i.setNode(t.v,t.value),t.parent&&i.setParent(t.v,t.parent)}),t.each(n.edges,function(t){i.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),i}},CC}function vS(){if(EC)return jC;EC=1;var t=pS();return jC=function(e){var n,i={},r=[];function o(r){t.has(i,r)||(i[r]=!0,n.push(r),t.each(e.successors(r),o),t.each(e.predecessors(r),o))}return t.each(e.nodes(),function(t){n=[],o(t),n.length&&r.push(n)}),r},jC}function xS(){if(SC)return _C;SC=1;var t=pS();function e(){this._arr=[],this._keyIndices={}}return _C=e,e.prototype.size=function(){return this._arr.length},e.prototype.keys=function(){return this._arr.map(function(t){return t.key})},e.prototype.has=function(e){return t.has(this._keyIndices,e)},e.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},e.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},e.prototype.add=function(e,n){var i=this._keyIndices;if(e=String(e),!t.has(i,e)){var r=this._arr,o=r.length;return i[e]=o,r.push({key:e,priority:n}),this._decrease(o),!0}return!1},e.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},e.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},e.prototype._heapify=function(t){var e=this._arr,n=2*t,i=n+1,r=t;n<e.length&&(r=e[n].priority<e[r].priority?n:r,i<e.length&&(r=e[i].priority<e[r].priority?i:r),r!==t&&(this._swap(t,r),this._heapify(r)))},e.prototype._decrease=function(t){for(var e,n=this._arr,i=n[t].priority;0!==t&&!(n[e=t>>1].priority<i);)this._swap(t,e),t=e},e.prototype._swap=function(t,e){var n=this._arr,i=this._keyIndices,r=n[t],o=n[e];n[t]=o,n[e]=r,i[o.key]=t,i[r.key]=e},_C}function bS(){if(AC)return $C;AC=1;var t=pS(),e=xS();$C=function(t,i,r,o){return function(t,n,i,r){var o,s,a={},l=new e,c=function(t){var e=t.v!==o?t.v:t.w,n=a[e],r=i(t),c=s.distance+r;if(r<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+r);c<n.distance&&(n.distance=c,n.predecessor=o,l.decrease(e,c))};t.nodes().forEach(function(t){var e=t===n?0:Number.POSITIVE_INFINITY;a[t]={distance:e},l.add(t,e)});for(;l.size()>0&&(o=l.removeMin(),(s=a[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(c);return a}(t,String(i),r||n,o||function(e){return t.outEdges(e)})};var n=t.constant(1);return $C}function wS(){if(PC)return zC;PC=1;var t=bS(),e=pS();return zC=function(n,i,r){return e.transform(n.nodes(),function(e,o){e[o]=t(n,o,i,r)},{})},zC}function MS(){if(IC)return LC;IC=1;var t=pS();return LC=function(e){var n=0,i=[],r={},o=[];function s(a){var l=r[a]={onStack:!0,lowlink:n,index:n++};if(i.push(a),e.successors(a).forEach(function(e){t.has(r,e)?r[e].onStack&&(l.lowlink=Math.min(l.lowlink,r[e].index)):(s(e),l.lowlink=Math.min(l.lowlink,r[e].lowlink))}),l.lowlink===l.index){var c,h=[];do{c=i.pop(),r[c].onStack=!1,h.push(c)}while(a!==c);o.push(h)}}return e.nodes().forEach(function(e){t.has(r,e)||s(e)}),o},LC}function kS(){if(RC)return TC;RC=1;var t=pS(),e=MS();return TC=function(n){return t.filter(e(n),function(t){return t.length>1||1===t.length&&n.hasEdge(t[0],t[0])})},TC}function CS(){if(WC)return BC;WC=1;var t=pS();BC=function(t,n,i){return function(t,e,n){var i={},r=t.nodes();return r.forEach(function(t){i[t]={},i[t][t]={distance:0},r.forEach(function(e){t!==e&&(i[t][e]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var r=n.v===t?n.w:n.v,o=e(n);i[t][r]={distance:o,predecessor:t}})}),r.forEach(function(t){var e=i[t];r.forEach(function(n){var o=i[n];r.forEach(function(n){var i=e[n],r=o[n],s=o[t].distance+i.distance;s<r.distance&&(r.distance=s,r.predecessor=i.predecessor)})})}),i}(t,n||e,i||function(e){return t.outEdges(e)})};var e=t.constant(1);return BC}function OS(){if(NC)return HC;NC=1;var t=pS();function e(e){var i={},r={},o=[];if(t.each(e.sinks(),function s(a){if(t.has(r,a))throw new n;t.has(i,a)||(r[a]=!0,i[a]=!0,t.each(e.predecessors(a),s),delete r[a],o.push(a))}),t.size(i)!==e.nodeCount())throw new n;return o}function n(){}return HC=e,e.CycleException=n,n.prototype=new Error,HC}function jS(){if(DC)return FC;DC=1;var t=OS();return FC=function(e){try{t(e)}catch(e){if(e instanceof t.CycleException)return!1;throw e}return!0},FC}function ES(){if(UC)return VC;UC=1;var t=pS();function e(n,i,r,o,s,a){t.has(o,i)||(o[i]=!0,r||a.push(i),t.each(s(i),function(t){e(n,t,r,o,s,a)}),r&&a.push(i))}return VC=function(n,i,r){t.isArray(i)||(i=[i]);var o=(n.isDirected()?n.successors:n.neighbors).bind(n),s=[],a={};return t.each(i,function(t){if(!n.hasNode(t))throw new Error("Graph does not have node: "+t);e(n,t,"post"===r,a,o,s)}),s},VC}function _S(){if(qC)return YC;qC=1;var t=ES();return YC=function(e,n){return t(e,n,"post")},YC}function SS(){if(XC)return GC;XC=1;var t=ES();return GC=function(e,n){return t(e,n,"pre")},GC}function $S(){if(ZC)return KC;ZC=1;var t=pS(),e=gS(),n=xS();return KC=function(i,r){var o,s=new e,a={},l=new n;function c(t){var e=t.v===o?t.w:t.v,n=l.priority(e);if(void 0!==n){var i=r(t);i<n&&(a[e]=o,l.decrease(e,i))}}if(0===i.nodeCount())return s;t.each(i.nodes(),function(t){l.add(t,Number.POSITIVE_INFINITY),s.setNode(t)}),l.decrease(i.nodes()[0],0);var h=!1;for(;l.size()>0;){if(o=l.removeMin(),t.has(a,o))s.setEdge(o,a[o]);else{if(h)throw new Error("Input graph is not connected: "+i);h=!0}i.nodeEdges(o).forEach(c)}return s},KC}function AS(){if(eO)return tO;eO=1;var t=mS();return tO={Graph:t.Graph,json:yS(),alg:JC?QC:(JC=1,QC={components:vS(),dijkstra:bS(),dijkstraAll:wS(),findCycles:kS(),floydWarshall:CS(),isAcyclic:jS(),postorder:_S(),preorder:SS(),prim:$S(),tarjan:MS(),topsort:OS()}),version:t.version}}function zS(){if(iO)return nO;var t;iO=1;try{t=AS()}catch(t){}return t||(t=window.graphlib),nO=t}function PS(){if(oO)return rO;oO=1;var t=f_();return rO=function(e){return t(e,5)},rO}function LS(){if(aO)return sO;aO=1;var t=wv(),e=Dx(),n=sx(),i=_v();return sO=function(r,o,s){if(!i(s))return!1;var a=typeof o;return!!("number"==a?e(s)&&n(o,s.length):"string"==a&&o in s)&&t(s[o],r)},sO}function IS(){if(cO)return lO;cO=1;var t=sS(),e=wv(),n=LS(),i=Yx(),r=Object.prototype,o=r.hasOwnProperty,s=t(function(t,s){t=Object(t);var a=-1,l=s.length,c=l>2?s[2]:void 0;for(c&&n(s[0],s[1],c)&&(l=1);++a<l;)for(var h=s[a],u=i(h),d=-1,f=u.length;++d<f;){var p=u[d],g=t[p];(void 0===g||e(g,r[p])&&!o.call(t,p))&&(t[p]=h[p])}return t});return lO=s}function TS(){if(gO)return pO;gO=1;var t=function(){if(fO)return dO;fO=1;var t=/\s/;return dO=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n},dO}(),e=/^\s+/;return pO=function(n){return n?n.slice(0,t(n)+1).replace(e,""):n},pO}function RS(){if(xO)return vO;xO=1;var t=function(){if(yO)return mO;yO=1;var t=TS(),e=_v(),n=P_(),i=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;return mO=function(a){if("number"==typeof a)return a;if(n(a))return NaN;if(e(a)){var l="function"==typeof a.valueOf?a.valueOf():a;a=e(l)?l+"":l}if("string"!=typeof a)return 0===a?a:+a;a=t(a);var c=r.test(a);return c||o.test(a)?s(a.slice(2),c?2:8):i.test(a)?NaN:+a},mO}(),e=1/0;return vO=function(n){return n?(n=t(n))===e||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0},vO}function BS(){if(kO)return MO;kO=1;var t=aS(),e=Y_(),n=function(){if(wO)return bO;wO=1;var t=RS();return bO=function(e){var n=t(e),i=n%1;return n==n?i?n-i:n:0},bO}(),i=Math.max;return MO=function(r,o,s){var a=null==r?0:r.length;if(!a)return-1;var l=null==s?0:n(s);return l<0&&(l=i(a+l,0)),t(r,e(o,3),l)},MO}function WS(){if(OO)return CO;OO=1;var t=function(){if(uO)return hO;uO=1;var t=Y_(),e=Dx(),n=Vx();return hO=function(i){return function(r,o,s){var a=Object(r);if(!e(r)){var l=t(o,3);r=n(r),o=function(t){return l(a[t],t,a)}}var c=i(r,o,s);return c>-1?a[l?r[c]:c]:void 0}}}(),e=t(BS());return CO=e}function HS(){if(EO)return jO;EO=1;var t=iS();return jO=function(e){return(null==e?0:e.length)?t(e,1):[]},jO}function NS(){if(SO)return _O;SO=1;var t=m_(),e=b_(),n=Yx();return _O=function(i,r){return null==i?i:t(i,e(r),n)},_O}function FS(){if(AO)return $O;return AO=1,$O=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},$O}function DS(){if(PO)return zO;PO=1;var t=Nv(),e=y_(),n=Y_();return zO=function(i,r){var o={};return r=n(r,3),e(i,function(e,n,i){t(o,n,r(e,n,i))}),o},zO}function VS(){if(IO)return LO;IO=1;var t=P_();return LO=function(e,n,i){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=n(s);if(null!=a&&(void 0===l?a==a&&!t(a):i(a,l)))var l=a,c=s}return c},LO}function US(){if(WO)return BO;WO=1;var t=VS(),e=(RO||(RO=1,TO=function(t,e){return t>e}),TO),n=x_();return BO=function(i){return i&&i.length?t(i,n,e):void 0},BO}function YS(){if(NO)return HO;NO=1;var t=Nv(),e=wv();return HO=function(n,i,r){(void 0!==r&&!e(n[i],r)||void 0===r&&!(i in n))&&t(n,i,r)},HO}function qS(){if(UO)return VO;return UO=1,VO=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},VO}function GS(){if(XO)return GO;XO=1;var t=YS(),e=qE(),n=a_(),i=GE(),r=h_(),o=Uv(),s=Yv(),a=uS(),l=ox(),c=Sv(),h=_v(),u=function(){if(DO)return FO;DO=1;var t=Ev(),e=JE(),n=Vv(),i=Function.prototype.toString,r=Object.prototype.hasOwnProperty,o=i.call(Object);return FO=function(s){if(!n(s)||"[object Object]"!=t(s))return!1;var a=e(s);if(null===a)return!0;var l=r.call(a,"constructor")&&a.constructor;return"function"==typeof l&&l instanceof l&&i.call(l)==o},FO}(),d=Bx(),f=qS(),p=function(){if(qO)return YO;qO=1;var t=Dv(),e=Yx();return YO=function(n){return t(n,e(n))},YO}();return GO=function(g,m,y,v,x,b,w){var M=f(g,y),k=f(m,y),C=w.get(k);if(C)t(g,y,C);else{var O=b?b(M,k,y+"",g,m,w):void 0,j=void 0===O;if(j){var E=s(k),_=!E&&l(k),S=!E&&!_&&d(k);O=k,E||_||S?s(M)?O=M:a(M)?O=i(M):_?(j=!1,O=e(k,!0)):S?(j=!1,O=n(k,!0)):O=[]:u(k)||o(k)?(O=M,o(M)?O=p(M):h(M)&&!c(M)||(O=r(k))):j=!1}j&&(w.set(k,O),x(O,k,v,b,w),w.delete(k)),t(g,y,O)}},GO}function XS(){if(ej)return tj;ej=1;var t=function(){if(ZO)return KO;ZO=1;var t=Bv(),e=YS(),n=m_(),i=GS(),r=_v(),o=Yx(),s=qS();return KO=function a(l,c,h,u,d){l!==c&&n(c,function(n,o){if(d||(d=new t),r(n))i(l,c,o,h,a,u,d);else{var f=u?u(s(l,o),n,o+"",l,c,d):void 0;void 0===f&&(f=n),e(l,o,f)}},o)},KO}(),e=function(){if(JO)return QO;JO=1;var t=sS(),e=LS();return QO=function(n){return t(function(t,i){var r=-1,o=i.length,s=o>1?i[o-1]:void 0,a=o>2?i[2]:void 0;for(s=n.length>3&&"function"==typeof s?(o--,s):void 0,a&&e(i[0],i[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++r<o;){var l=i[r];l&&n(t,l,r,s)}return t})},QO}(),n=e(function(e,n,i){t(e,n,i)});return tj=n}function KS(){if(ij)return nj;return ij=1,nj=function(t,e){return t<e},nj}function ZS(){if(oj)return rj;oj=1;var t=VS(),e=KS(),n=x_();return rj=function(i){return i&&i.length?t(i,n,e):void 0},rj}function QS(){if(aj)return sj;aj=1;var t=VS(),e=Y_(),n=KS();return sj=function(i,r){return i&&i.length?t(i,e(r,2),n):void 0},sj}function JS(){if(cj)return lj;cj=1;var t=Ov();return lj=function(){return t.Date.now()}}function t$(){if(fj)return dj;fj=1;var t=H_(),e=function(){if(uj)return hj;uj=1;var t=Fv(),e=B_(),n=sx(),i=_v(),r=W_();return hj=function(o,s,a,l){if(!i(o))return o;for(var c=-1,h=(s=e(s,o)).length,u=h-1,d=o;null!=d&&++c<h;){var f=r(s[c]),p=a;if("__proto__"===f||"constructor"===f||"prototype"===f)return o;if(c!=u){var g=d[f];void 0===(p=l?l(g,f,d):void 0)&&(p=i(g)?g:n(s[c+1])?[]:{})}t(d,f,p),d=d[f]}return o},hj}(),n=B_();return dj=function(i,r,o){for(var s=-1,a=r.length,l={};++s<a;){var c=r[s],h=t(i,c);o(h,c)&&e(l,n(c,i),h)}return l},dj}function e$(){if(xj)return vj;xj=1;var t=function(){if(gj)return pj;gj=1;var t=t$(),e=F_();return pj=function(n,i){return t(n,i,function(t,i){return e(n,i)})},pj}(),e=function(){if(yj)return mj;yj=1;var t=HS(),e=rS(),n=oS();return mj=function(i){return n(e(i,void 0,t),i+"")}}(),n=e(function(e,n){return null==e?{}:t(e,n)});return vj=n}function n$(){if(kj)return Mj;kj=1;var t=function(){if(wj)return bj;wj=1;var t=Math.ceil,e=Math.max;return bj=function(n,i,r,o){for(var s=-1,a=e(t((i-n)/(r||1)),0),l=Array(a);a--;)l[o?a:++s]=n,n+=r;return l},bj}(),e=LS(),n=RS();return Mj=function(i){return function(r,o,s){return s&&"number"!=typeof s&&e(r,o,s)&&(o=s=void 0),r=n(r),void 0===o?(o=r,r=0):o=n(o),s=void 0===s?r<o?1:-1:n(s),t(r,o,s,i)}},Mj}function i$(){if(Oj)return Cj;Oj=1;var t=n$()();return Cj=t}function r$(){if(Aj)return $j;Aj=1;var t=function(){if(Sj)return _j;Sj=1;var t=P_();return _j=function(e,n){if(e!==n){var i=void 0!==e,r=null===e,o=e==e,s=t(e),a=void 0!==n,l=null===n,c=n==n,h=t(n);if(!l&&!h&&!s&&e>n||s&&a&&c&&!l&&!h||r&&a&&c||!i&&c||!o)return 1;if(!r&&!s&&!h&&e<n||h&&i&&o&&!r&&!s||l&&i&&o||!a&&o||!c)return-1}return 0},_j}();return $j=function(e,n,i){for(var r=-1,o=e.criteria,s=n.criteria,a=o.length,l=i.length;++r<a;){var c=t(o[r],s[r]);if(c)return r>=l?c:c*("desc"==i[r]?-1:1)}return e.index-n.index},$j}function o$(){if(Pj)return zj;Pj=1;var t=T_(),e=H_(),n=Y_(),i=Z_(),r=(Ej||(Ej=1,jj=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}),jj),o=lx(),s=r$(),a=x_(),l=Yv();return zj=function(c,h,u){h=h.length?t(h,function(t){return l(t)?function(n){return e(n,1===t.length?t[0]:t)}:t}):[a];var d=-1;h=t(h,o(n));var f=i(c,function(e,n,i){return{criteria:t(h,function(t){return t(e)}),index:++d,value:e}});return r(f,function(t,e){return s(t,e,u)})},zj}function s$(){if(Ij)return Lj;Ij=1;var t=iS(),e=o$(),n=sS(),i=LS(),r=n(function(n,r){if(null==n)return[];var o=r.length;return o>1&&i(n,r[0],r[1])?r=[]:o>2&&i(r[0],r[1],r[2])&&(r=[r[0]]),e(n,t(r,1),[])});return Lj=r}function a$(){if(Rj)return Tj;Rj=1;var t=R_(),e=0;return Tj=function(n){var i=++e;return t(n)+i},Tj}function l$(){if(Nj)return Hj;Nj=1;var t=Fv(),e=Wj?Bj:(Wj=1,Bj=function(t,e,n){for(var i=-1,r=t.length,o=e.length,s={};++i<r;)n(s,t[i],i<o?e[i]:void 0);return s});return Hj=function(n,i){return e(n||[],i||[],t)}}function c$(){if(Dj)return Fj;var t;Dj=1;try{t={cloneDeep:PS(),constant:g_(),defaults:IS(),each:M_(),filter:q_(),find:WS(),flatten:HS(),forEach:w_(),forIn:NS(),has:G_(),isUndefined:K_(),last:FS(),map:Q_(),mapValues:DS(),max:US(),merge:XS(),min:ZS(),minBy:QS(),now:JS(),pick:e$(),range:i$(),reduce:J_(),sortBy:s$(),uniqueId:a$(),values:fS(),zipObject:l$()}}catch(t){}return t||(t=window._),Fj=t}function h$(){if(qj)return Yj;qj=1;var t=c$(),e=zS().Graph,n=function(){if(Uj)return Vj;function t(){var t={};t._next=t._prev=t,this._sentinel=t}function e(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function n(t,e){if("_next"!==t&&"_prev"!==t)return e}return Uj=1,Vj=t,t.prototype.dequeue=function(){var t=this._sentinel,n=t._prev;if(n!==t)return e(n),n},t.prototype.enqueue=function(t){var n=this._sentinel;t._prev&&t._next&&e(t),t._next=n._next,n._next._prev=t,n._next=t,t._prev=n},t.prototype.toString=function(){for(var t=[],e=this._sentinel,i=e._prev;i!==e;)t.push(JSON.stringify(i,n)),i=i._prev;return"["+t.join(", ")+"]"},Vj}();Yj=function(s,a){if(s.nodeCount()<=1)return[];var l=function(i,r){var s=new e,a=0,l=0;t.forEach(i.nodes(),function(t){s.setNode(t,{v:t,in:0,out:0})}),t.forEach(i.edges(),function(t){var e=s.edge(t.v,t.w)||0,n=r(t);s.setEdge(t.v,t.w,e+n),l=Math.max(l,s.node(t.v).out+=n),a=Math.max(a,s.node(t.w).in+=n)});var c=t.range(l+a+3).map(function(){return new n}),h=a+1;return t.forEach(s.nodes(),function(t){o(c,h,s.node(t))}),{graph:s,buckets:c,zeroIdx:h}}(s,a||i),c=function(t,e,n){var i,o=[],s=e[e.length-1],a=e[0];for(;t.nodeCount();){for(;i=a.dequeue();)r(t,e,n,i);for(;i=s.dequeue();)r(t,e,n,i);if(t.nodeCount())for(var l=e.length-2;l>0;--l)if(i=e[l].dequeue()){o=o.concat(r(t,e,n,i,!0));break}}return o}(l.graph,l.buckets,l.zeroIdx);return t.flatten(t.map(c,function(t){return s.outEdges(t.v,t.w)}),!0)};var i=t.constant(1);function r(e,n,i,r,s){var a=s?[]:void 0;return t.forEach(e.inEdges(r.v),function(t){var r=e.edge(t),l=e.node(t.v);s&&a.push({v:t.v,w:t.w}),l.out-=r,o(n,i,l)}),t.forEach(e.outEdges(r.v),function(t){var r=e.edge(t),s=e.node(t.w);s.in-=r,o(n,i,s)}),e.removeNode(r.v),a}function o(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}return Yj}function u$(){if(Xj)return Gj;Xj=1;var t=c$(),e=h$();return Gj={run:function(n){var i="greedy"===n.graph().acyclicer?e(n,function(t){return function(e){return t.edge(e).weight}}(n)):function(e){var n=[],i={},r={};function o(s){t.has(r,s)||(r[s]=!0,i[s]=!0,t.forEach(e.outEdges(s),function(e){t.has(i,e.w)?n.push(e):o(e.w)}),delete i[s])}return t.forEach(e.nodes(),o),n}(n);t.forEach(i,function(e){var i=n.edge(e);n.removeEdge(e),i.forwardName=e.name,i.reversed=!0,n.setEdge(e.w,e.v,i,t.uniqueId("rev"))})},undo:function(e){t.forEach(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var i=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,i)}})}},Gj}function d$(){if(Zj)return Kj;Zj=1;var t=c$(),e=zS().Graph;function n(e,n,i,r){var o;do{o=t.uniqueId(r)}while(e.hasNode(o));return i.dummy=n,e.setNode(o,i),o}function i(e){return t.max(t.map(e.nodes(),function(n){var i=e.node(n).rank;if(!t.isUndefined(i))return i}))}return Kj={addDummyNode:n,simplify:function(n){var i=(new e).setGraph(n.graph());return t.forEach(n.nodes(),function(t){i.setNode(t,n.node(t))}),t.forEach(n.edges(),function(t){var e=i.edge(t.v,t.w)||{weight:0,minlen:1},r=n.edge(t);i.setEdge(t.v,t.w,{weight:e.weight+r.weight,minlen:Math.max(e.minlen,r.minlen)})}),i},asNonCompoundGraph:function(n){var i=new e({multigraph:n.isMultigraph()}).setGraph(n.graph());return t.forEach(n.nodes(),function(t){n.children(t).length||i.setNode(t,n.node(t))}),t.forEach(n.edges(),function(t){i.setEdge(t,n.edge(t))}),i},successorWeights:function(e){var n=t.map(e.nodes(),function(n){var i={};return t.forEach(e.outEdges(n),function(t){i[t.w]=(i[t.w]||0)+e.edge(t).weight}),i});return t.zipObject(e.nodes(),n)},predecessorWeights:function(e){var n=t.map(e.nodes(),function(n){var i={};return t.forEach(e.inEdges(n),function(t){i[t.v]=(i[t.v]||0)+e.edge(t).weight}),i});return t.zipObject(e.nodes(),n)},intersectRect:function(t,e){var n,i,r=t.x,o=t.y,s=e.x-r,a=e.y-o,l=t.width/2,c=t.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(a)*l>Math.abs(s)*c?(a<0&&(c=-c),n=c*s/a,i=c):(s<0&&(l=-l),n=l,i=l*a/s);return{x:r+n,y:o+i}},buildLayerMatrix:function(e){var n=t.map(t.range(i(e)+1),function(){return[]});return t.forEach(e.nodes(),function(i){var r=e.node(i),o=r.rank;t.isUndefined(o)||(n[o][r.order]=i)}),n},normalizeRanks:function(e){var n=t.min(t.map(e.nodes(),function(t){return e.node(t).rank}));t.forEach(e.nodes(),function(i){var r=e.node(i);t.has(r,"rank")&&(r.rank-=n)})},removeEmptyRanks:function(e){var n=t.min(t.map(e.nodes(),function(t){return e.node(t).rank})),i=[];t.forEach(e.nodes(),function(t){var r=e.node(t).rank-n;i[r]||(i[r]=[]),i[r].push(t)});var r=0,o=e.graph().nodeRankFactor;t.forEach(i,function(n,i){t.isUndefined(n)&&i%o!==0?--r:r&&t.forEach(n,function(t){e.node(t).rank+=r})})},addBorderNode:function(t,e,i,r){var o={width:0,height:0};arguments.length>=4&&(o.rank=i,o.order=r);return n(t,"border",o,e)},maxRank:i,partition:function(e,n){var i={lhs:[],rhs:[]};return t.forEach(e,function(t){n(t)?i.lhs.push(t):i.rhs.push(t)}),i},time:function(e,n){var i=t.now();try{return n()}finally{console.log(e+" time: "+(t.now()-i)+"ms")}},notime:function(t,e){return e()}},Kj}function f$(){if(Jj)return Qj;Jj=1;var t=c$(),e=d$();return Qj={run:function(n){n.graph().dummyChains=[],t.forEach(n.edges(),function(t){!function(t,n){var i,r,o,s=n.v,a=t.node(s).rank,l=n.w,c=t.node(l).rank,h=n.name,u=t.edge(n),d=u.labelRank;if(c===a+1)return;for(t.removeEdge(n),o=0,++a;a<c;++o,++a)u.points=[],i=e.addDummyNode(t,"edge",r={width:0,height:0,edgeLabel:u,edgeObj:n,rank:a},"_d"),a===d&&(r.width=u.width,r.height=u.height,r.dummy="edge-label",r.labelpos=u.labelpos),t.setEdge(s,i,{weight:u.weight},h),0===o&&t.graph().dummyChains.push(i),s=i;t.setEdge(s,l,{weight:u.weight},h)}(n,t)})},undo:function(e){t.forEach(e.graph().dummyChains,function(t){var n,i=e.node(t),r=i.edgeLabel;for(e.setEdge(i.edgeObj,r);i.dummy;)n=e.successors(t)[0],e.removeNode(t),r.points.push({x:i.x,y:i.y}),"edge-label"===i.dummy&&(r.x=i.x,r.y=i.y,r.width=i.width,r.height=i.height),i=e.node(t=n)})}},Qj}function p$(){if(eE)return tE;eE=1;var t=c$();return tE={longestPath:function(e){var n={};t.forEach(e.sources(),function i(r){var o=e.node(r);if(t.has(n,r))return o.rank;n[r]=!0;var s=t.min(t.map(e.outEdges(r),function(t){return i(t.w)-e.edge(t).minlen}));return s!==Number.POSITIVE_INFINITY&&null!=s||(s=0),o.rank=s})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}},tE}function g$(){if(iE)return nE;iE=1;var t=c$(),e=zS().Graph,n=p$().slack;function i(e,i){return t.forEach(e.nodes(),function r(o){t.forEach(i.nodeEdges(o),function(t){var s=t.v,a=o===s?t.w:s;e.hasNode(a)||n(i,t)||(e.setNode(a,{}),e.setEdge(o,a,{}),r(a))})}),e.nodeCount()}function r(e,i){return t.minBy(i.edges(),function(t){if(e.hasNode(t.v)!==e.hasNode(t.w))return n(i,t)})}function o(e,n,i){t.forEach(e.nodes(),function(t){n.node(t).rank+=i})}return nE=function(t){var s,a,l=new e({directed:!1}),c=t.nodes()[0],h=t.nodeCount();l.setNode(c,{});for(;i(l,t)<h;)s=r(l,t),a=l.hasNode(s.v)?n(t,s):-n(t,s),o(l,t,a);return l},nE}function m$(){if(oE)return rE;oE=1;var t=c$(),e=g$(),n=p$().slack,i=p$().longestPath,r=zS().alg.preorder,o=zS().alg.postorder,s=d$().simplify;function a(t){t=s(t),i(t);var n,r=e(t);for(h(r),l(r,t);n=d(r);)p(r,t,n,f(r,t,n))}function l(e,n){var i=o(e,e.nodes());i=i.slice(0,i.length-1),t.forEach(i,function(t){!function(t,e,n){var i=t.node(n);t.edge(n,i.parent).cutvalue=c(t,e,n)}(e,n,t)})}function c(e,n,i){var r=e.node(i).parent,o=!0,s=n.edge(i,r),a=0;return s||(o=!1,s=n.edge(r,i)),a=s.weight,t.forEach(n.nodeEdges(i),function(t){var s=t.v===i,l=s?t.w:t.v;if(l!==r){var c=s===o,h=n.edge(t).weight;if(a+=c?h:-h,function(t,e,n){return t.hasEdge(e,n)}(e,i,l)){var u=e.edge(i,l).cutvalue;a+=c?-u:u}}}),a}function h(t,e){arguments.length<2&&(e=t.nodes()[0]),u(t,{},1,e)}function u(e,n,i,r,o){var s=i,a=e.node(r);return n[r]=!0,t.forEach(e.neighbors(r),function(o){t.has(n,o)||(i=u(e,n,i,o,r))}),a.low=s,a.lim=i++,o?a.parent=o:delete a.parent,i}function d(e){return t.find(e.edges(),function(t){return e.edge(t).cutvalue<0})}function f(e,i,r){var o=r.v,s=r.w;i.hasEdge(o,s)||(o=r.w,s=r.v);var a=e.node(o),l=e.node(s),c=a,h=!1;a.lim>l.lim&&(c=l,h=!0);var u=t.filter(i.edges(),function(t){return h===g(e,e.node(t.v),c)&&h!==g(e,e.node(t.w),c)});return t.minBy(u,function(t){return n(i,t)})}function p(e,n,i,o){e.removeEdge(i.v,i.w),e.setEdge(o.v,o.w,{}),h(e),l(e,n),function(e,n){var i=t.find(e.nodes(),function(t){return!n.node(t).parent}),o=r(e,i);o=o.slice(1),t.forEach(o,function(t){var i=e.node(t).parent,r=n.edge(t,i),o=!1;r||(r=n.edge(i,t),o=!0),n.node(t).rank=n.node(i).rank+(o?r.minlen:-r.minlen)})}(e,n)}function g(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}return rE=a,a.initLowLimValues=h,a.initCutValues=l,a.calcCutValue=c,a.leaveEdge=d,a.enterEdge=f,a.exchangeEdges=p,rE}function y$(){if(aE)return sE;aE=1;var t=p$().longestPath,e=g$(),n=m$();sE=function(n){switch(n.graph().ranker){case"network-simplex":default:r(n);break;case"tight-tree":!function(n){t(n),e(n)}(n);break;case"longest-path":i(n)}};var i=t;function r(t){n(t)}return sE}function v$(){if(cE)return lE;cE=1;var t=c$();return lE=function(e){var n=function(e){var n={},i=0;function r(o){var s=i;t.forEach(e.children(o),r),n[o]={low:s,lim:i++}}return t.forEach(e.children(),r),n}(e);t.forEach(e.graph().dummyChains,function(t){for(var i=e.node(t),r=i.edgeObj,o=function(t,e,n,i){var r,o,s=[],a=[],l=Math.min(e[n].low,e[i].low),c=Math.max(e[n].lim,e[i].lim);r=n;do{r=t.parent(r),s.push(r)}while(r&&(e[r].low>l||c>e[r].lim));o=r,r=i;for(;(r=t.parent(r))!==o;)a.push(r);return{path:s.concat(a.reverse()),lca:o}}(e,n,r.v,r.w),s=o.path,a=o.lca,l=0,c=s[l],h=!0;t!==r.w;){if(i=e.node(t),h){for(;(c=s[l])!==a&&e.node(c).maxRank<i.rank;)l++;c===a&&(h=!1)}if(!h){for(;l<s.length-1&&e.node(c=s[l+1]).minRank<=i.rank;)l++;c=s[l]}e.setParent(t,c),t=e.successors(t)[0]}})},lE}function x$(){if(uE)return hE;uE=1;var t=c$(),e=d$();function n(i,r,o,s,a,l,c){var h=i.children(c);if(h.length){var u=e.addBorderNode(i,"_bt"),d=e.addBorderNode(i,"_bb"),f=i.node(c);i.setParent(u,c),f.borderTop=u,i.setParent(d,c),f.borderBottom=d,t.forEach(h,function(t){n(i,r,o,s,a,l,t);var e=i.node(t),h=e.borderTop?e.borderTop:t,f=e.borderBottom?e.borderBottom:t,p=e.borderTop?s:2*s,g=h!==f?1:a-l[c]+1;i.setEdge(u,h,{weight:p,minlen:g,nestingEdge:!0}),i.setEdge(f,d,{weight:p,minlen:g,nestingEdge:!0})}),i.parent(c)||i.setEdge(r,u,{weight:0,minlen:a+l[c]})}else c!==r&&i.setEdge(r,c,{weight:0,minlen:o})}return hE={run:function(i){var r=e.addDummyNode(i,"root",{},"_root"),o=function(e){var n={};function i(r,o){var s=e.children(r);s&&s.length&&t.forEach(s,function(t){i(t,o+1)}),n[r]=o}return t.forEach(e.children(),function(t){i(t,1)}),n}(i),s=t.max(t.values(o))-1,a=2*s+1;i.graph().nestingRoot=r,t.forEach(i.edges(),function(t){i.edge(t).minlen*=a});var l=function(e){return t.reduce(e.edges(),function(t,n){return t+e.edge(n).weight},0)}(i)+1;t.forEach(i.children(),function(t){n(i,r,a,l,s,o,t)}),i.graph().nodeRankFactor=a},cleanup:function(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,t.forEach(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}},hE}function b$(){if(gE)return pE;gE=1;var t=c$();function e(e){t.forEach(e.nodes(),function(t){n(e.node(t))}),t.forEach(e.edges(),function(t){n(e.edge(t))})}function n(t){var e=t.width;t.width=t.height,t.height=e}function i(t){t.y=-t.y}function r(t){var e=t.x;t.x=t.y,t.y=e}return pE={adjust:function(t){var n=t.graph().rankdir.toLowerCase();"lr"!==n&&"rl"!==n||e(t)},undo:function(n){var o=n.graph().rankdir.toLowerCase();"bt"!==o&&"rl"!==o||function(e){t.forEach(e.nodes(),function(t){i(e.node(t))}),t.forEach(e.edges(),function(n){var r=e.edge(n);t.forEach(r.points,i),t.has(r,"y")&&i(r)})}(n);"lr"!==o&&"rl"!==o||(!function(e){t.forEach(e.nodes(),function(t){r(e.node(t))}),t.forEach(e.edges(),function(n){var i=e.edge(n);t.forEach(i.points,r),t.has(i,"x")&&r(i)})}(n),e(n))}},pE}function w$(){if(kE)return ME;kE=1;var t=c$();return ME=function(e,n){var i={};return t.forEach(e,function(e,n){var r=i[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:n};t.isUndefined(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),t.forEach(n.edges(),function(e){var n=i[e.v],r=i[e.w];t.isUndefined(n)||t.isUndefined(r)||(r.indegree++,n.out.push(i[e.w]))}),function(e){var n=[];function i(e){return function(n){n.merged||(t.isUndefined(n.barycenter)||t.isUndefined(e.barycenter)||n.barycenter>=e.barycenter)&&function(t,e){var n=0,i=0;t.weight&&(n+=t.barycenter*t.weight,i+=t.weight);e.weight&&(n+=e.barycenter*e.weight,i+=e.weight);t.vs=e.vs.concat(t.vs),t.barycenter=n/i,t.weight=i,t.i=Math.min(e.i,t.i),e.merged=!0}(e,n)}}function r(t){return function(n){n.in.push(t),0===--n.indegree&&e.push(n)}}for(;e.length;){var o=e.pop();n.push(o),t.forEach(o.in.reverse(),i(o)),t.forEach(o.out,r(o))}return t.map(t.filter(n,function(t){return!t.merged}),function(e){return t.pick(e,["vs","i","barycenter","weight"])})}(t.filter(i,function(t){return!t.indegree}))},ME}function M$(){if(EE)return jE;EE=1;var t=c$(),e=function(){if(wE)return bE;wE=1;var t=c$();return bE=function(e,n){return t.map(n,function(n){var i=e.inEdges(n);if(i.length){var r=t.reduce(i,function(t,n){var i=e.edge(n),r=e.node(n.v);return{sum:t.sum+i.weight*r.order,weight:t.weight+i.weight}},{sum:0,weight:0});return{v:n,barycenter:r.sum/r.weight,weight:r.weight}}return{v:n}})},bE}(),n=w$(),i=function(){if(OE)return CE;OE=1;var t=c$(),e=d$();function n(e,n,i){for(var r;n.length&&(r=t.last(n)).i<=i;)n.pop(),e.push(r.vs),i++;return i}return CE=function(i,r){var o=e.partition(i,function(e){return t.has(e,"barycenter")}),s=o.lhs,a=t.sortBy(o.rhs,function(t){return-t.i}),l=[],c=0,h=0,u=0;s.sort(function(t){return function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:t?n.i-e.i:e.i-n.i}}(!!r)),u=n(l,a,u),t.forEach(s,function(t){u+=t.vs.length,l.push(t.vs),c+=t.barycenter*t.weight,h+=t.weight,u=n(l,a,u)});var d={vs:t.flatten(l,!0)};return h&&(d.barycenter=c/h,d.weight=h),d},CE}();return jE=function r(o,s,a,l){var c=o.children(s),h=o.node(s),u=h?h.borderLeft:void 0,d=h?h.borderRight:void 0,f={};u&&(c=t.filter(c,function(t){return t!==u&&t!==d}));var p=e(o,c);t.forEach(p,function(e){if(o.children(e.v).length){var n=r(o,e.v,a,l);f[e.v]=n,t.has(n,"barycenter")&&(s=n,t.isUndefined((i=e).barycenter)?(i.barycenter=s.barycenter,i.weight=s.weight):(i.barycenter=(i.barycenter*i.weight+s.barycenter*s.weight)/(i.weight+s.weight),i.weight+=s.weight))}var i,s});var g=n(p,a);!function(e,n){t.forEach(e,function(e){e.vs=t.flatten(e.vs.map(function(t){return n[t]?n[t].vs:t}),!0)})}(g,f);var m=i(g,l);if(u&&(m.vs=t.flatten([u,m.vs,d],!0),o.predecessors(u).length)){var y=o.node(o.predecessors(u)[0]),v=o.node(o.predecessors(d)[0]);t.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+y.order+v.order)/(m.weight+2),m.weight+=2}return m},jE}function k$(){if(SE)return _E;SE=1;var t=c$(),e=zS().Graph;return _E=function(n,i,r){var o=function(e){var n;for(;e.hasNode(n=t.uniqueId("_root")););return n}(n),s=new e({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(t){return n.node(t)});return t.forEach(n.nodes(),function(e){var a=n.node(e),l=n.parent(e);(a.rank===i||a.minRank<=i&&i<=a.maxRank)&&(s.setNode(e),s.setParent(e,l||o),t.forEach(n[r](e),function(i){var r=i.v===e?i.w:i.v,o=s.edge(r,e),a=t.isUndefined(o)?0:o.weight;s.setEdge(r,e,{weight:n.edge(i).weight+a})}),t.has(a,"minRank")&&s.setNode(e,{borderLeft:a.borderLeft[i],borderRight:a.borderRight[i]}))}),s},_E}function C$(){if(PE)return zE;PE=1;var t=c$(),e=function(){if(yE)return mE;yE=1;var t=c$();return mE=function(e){var n={},i=t.filter(e.nodes(),function(t){return!e.children(t).length}),r=t.max(t.map(i,function(t){return e.node(t).rank})),o=t.map(t.range(r+1),function(){return[]});function s(i){if(!t.has(n,i)){n[i]=!0;var r=e.node(i);o[r.rank].push(i),t.forEach(e.successors(i),s)}}var a=t.sortBy(i,function(t){return e.node(t).rank});return t.forEach(a,s),o},mE}(),n=function(){if(xE)return vE;xE=1;var t=c$();function e(e,n,i){for(var r=t.zipObject(i,t.map(i,function(t,e){return e})),o=t.flatten(t.map(n,function(n){return t.sortBy(t.map(e.outEdges(n),function(t){return{pos:r[t.w],weight:e.edge(t).weight}}),"pos")}),!0),s=1;s<i.length;)s<<=1;var a=2*s-1;s-=1;var l=t.map(new Array(a),function(){return 0}),c=0;return t.forEach(o.forEach(function(t){var e=t.pos+s;l[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=l[e+1]),l[e=e-1>>1]+=t.weight;c+=t.weight*n})),c}return vE=function(t,n){for(var i=0,r=1;r<n.length;++r)i+=e(t,n[r-1],n[r]);return i},vE}(),i=M$(),r=k$(),o=function(){if(AE)return $E;AE=1;var t=c$();return $E=function(e,n,i){var r,o={};t.forEach(i,function(t){for(var i,s,a=e.parent(t);a;){if((i=e.parent(a))?(s=o[i],o[i]=a):(s=r,r=a),s&&s!==a)return void n.setEdge(s,a);a=i}})},$E}(),s=zS().Graph,a=d$();function l(e,n,i){return t.map(n,function(t){return r(e,t,i)})}function c(e,n){var r=new s;t.forEach(e,function(e){var s=e.graph().root,a=i(e,s,r,n);t.forEach(a.vs,function(t,n){e.node(t).order=n}),o(e,r,a.vs)})}function h(e,n){t.forEach(n,function(n){t.forEach(n,function(t,n){e.node(t).order=n})})}return zE=function(i){var r=a.maxRank(i),o=l(i,t.range(1,r+1),"inEdges"),s=l(i,t.range(r-1,-1,-1),"outEdges"),u=e(i);h(i,u);for(var d,f=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){c(p%2?o:s,p%4>=2),u=a.buildLayerMatrix(i);var m=n(i,u);m<f&&(g=0,d=t.cloneDeep(u),f=m)}h(i,d)},zE}function O$(){if(IE)return LE;IE=1;var t=c$(),e=zS().Graph,n=d$();function i(e,n){var i={};return t.reduce(n,function(n,r){var s=0,a=0,l=n.length,c=t.last(r);return t.forEach(r,function(n,h){var u=function(e,n){if(e.node(n).dummy)return t.find(e.predecessors(n),function(t){return e.node(t).dummy})}(e,n),d=u?e.node(u).order:l;(u||n===c)&&(t.forEach(r.slice(a,h+1),function(n){t.forEach(e.predecessors(n),function(t){var r=e.node(t),a=r.order;!(a<s||d<a)||r.dummy&&e.node(n).dummy||o(i,t,n)})}),a=h+1,s=d)}),r}),i}function r(e,n){var i={};function r(n,r,s,a,l){var c;t.forEach(t.range(r,s),function(r){e.node(c=n[r]).dummy&&t.forEach(e.predecessors(c),function(t){var n=e.node(t);n.dummy&&(n.order<a||n.order>l)&&o(i,t,c)})})}return t.reduce(n,function(n,i){var o,s=-1,a=0;return t.forEach(i,function(t,l){if("border"===e.node(t).dummy){var c=e.predecessors(t);c.length&&(o=e.node(c[0]).order,r(i,a,l,s,o),a=l,s=o)}r(i,a,i.length,o,n.length)}),i}),i}function o(t,e,n){if(e>n){var i=e;e=n,n=i}var r=t[e];r||(t[e]=r={}),r[n]=!0}function s(e,n,i){if(n>i){var r=n;n=i,i=r}return t.has(e[n],i)}function a(e,n,i,r){var o={},a={},l={};return t.forEach(n,function(e){t.forEach(e,function(t,e){o[t]=t,a[t]=t,l[t]=e})}),t.forEach(n,function(e){var n=-1;t.forEach(e,function(e){var c=r(e);if(c.length){c=t.sortBy(c,function(t){return l[t]});for(var h=(c.length-1)/2,u=Math.floor(h),d=Math.ceil(h);u<=d;++u){var f=c[u];a[e]===e&&n<l[f]&&!s(i,e,f)&&(a[f]=e,a[e]=o[e]=o[f],n=l[f])}}})}),{root:o,align:a}}function l(n,i,r,o,s){var a={},l=function(n,i,r,o){var s=new e,a=n.graph(),l=function(e,n,i){return function(r,o,s){var a,l=r.node(o),c=r.node(s),h=0;if(h+=l.width/2,t.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":a=-l.width/2;break;case"r":a=l.width/2}if(a&&(h+=i?a:-a),a=0,h+=(l.dummy?n:e)/2,h+=(c.dummy?n:e)/2,h+=c.width/2,t.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":a=c.width/2;break;case"r":a=-c.width/2}return a&&(h+=i?a:-a),a=0,h}}(a.nodesep,a.edgesep,o);return t.forEach(i,function(e){var i;t.forEach(e,function(t){var e=r[t];if(s.setNode(e),i){var o=r[i],a=s.edge(o,e);s.setEdge(o,e,Math.max(l(n,t,i),a||0))}i=t})}),s}(n,i,r,s),c=s?"borderLeft":"borderRight";function h(t,e){for(var n=l.nodes(),i=n.pop(),r={};i;)r[i]?t(i):(r[i]=!0,n.push(i),n=n.concat(e(i))),i=n.pop()}return h(function(t){a[t]=l.inEdges(t).reduce(function(t,e){return Math.max(t,a[e.v]+l.edge(e))},0)},l.predecessors.bind(l)),h(function(t){var e=l.outEdges(t).reduce(function(t,e){return Math.min(t,a[e.w]-l.edge(e))},Number.POSITIVE_INFINITY),i=n.node(t);e!==Number.POSITIVE_INFINITY&&i.borderType!==c&&(a[t]=Math.max(a[t],e))},l.successors.bind(l)),t.forEach(o,function(t){a[t]=a[r[t]]}),a}function c(e,n){return t.minBy(t.values(n),function(n){var i=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return t.forIn(n,function(t,n){var o=function(t,e){return t.node(e).width}(e,n)/2;i=Math.max(t+o,i),r=Math.min(t-o,r)}),i-r})}function h(e,n){var i=t.values(n),r=t.min(i),o=t.max(i);t.forEach(["u","d"],function(i){t.forEach(["l","r"],function(s){var a,l=i+s,c=e[l];if(c!==n){var h=t.values(c);(a="l"===s?r-t.min(h):o-t.max(h))&&(e[l]=t.mapValues(c,function(t){return t+a}))}})})}function u(e,n){return t.mapValues(e.ul,function(i,r){if(n)return e[n.toLowerCase()][r];var o=t.sortBy(t.map(e,r));return(o[1]+o[2])/2})}return LE={positionX:function(e){var o,s=n.buildLayerMatrix(e),d=t.merge(i(e,s),r(e,s)),f={};t.forEach(["u","d"],function(n){o="u"===n?s:t.values(s).reverse(),t.forEach(["l","r"],function(i){"r"===i&&(o=t.map(o,function(e){return t.values(e).reverse()}));var r=("u"===n?e.predecessors:e.successors).bind(e),s=a(e,o,d,r),c=l(e,o,s.root,s.align,"r"===i);"r"===i&&(c=t.mapValues(c,function(t){return-t})),f[n+i]=c})});var p=c(e,f);return h(f,p),u(f,e.graph().align)},findType1Conflicts:i,findType2Conflicts:r,addConflict:o,hasConflict:s,verticalAlignment:a,horizontalCompaction:l,alignCoordinates:h,findSmallestWidthAlignment:c,balance:u},LE}function j$(){if(RE)return TE;RE=1;var t=c$(),e=d$(),n=O$().positionX;return TE=function(i){i=e.asNonCompoundGraph(i),function(n){var i=e.buildLayerMatrix(n),r=n.graph().ranksep,o=0;t.forEach(i,function(e){var i=t.max(t.map(e,function(t){return n.node(t).height}));t.forEach(e,function(t){n.node(t).y=o+i/2}),o+=i+r})}(i),t.forEach(n(i),function(t,e){i.node(e).x=t})},TE}function E$(){if(WE)return BE;WE=1;var t=c$(),e=u$(),n=f$(),i=y$(),r=d$().normalizeRanks,o=v$(),s=d$().removeEmptyRanks,a=x$(),l=function(){if(fE)return dE;fE=1;var t=c$(),e=d$();function n(t,n,i,r,o,s){var a=o[n][s-1],l=e.addDummyNode(t,"border",{width:0,height:0,rank:s,borderType:n},i);o[n][s]=l,t.setParent(l,r),a&&t.setEdge(a,l,{weight:1})}return dE=function(e){t.forEach(e.children(),function i(r){var o=e.children(r),s=e.node(r);if(o.length&&t.forEach(o,i),t.has(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var a=s.minRank,l=s.maxRank+1;a<l;++a)n(e,"borderLeft","_bl",r,s,a),n(e,"borderRight","_br",r,s,a)}})},dE}(),c=b$(),h=C$(),u=j$(),d=d$(),f=zS().Graph;BE=function(C,O){var j=O&&O.debugTiming?d.time:d.notime;j("layout",function(){var O=j(" buildLayoutGraph",function(){return function(e){var n=new f({multigraph:!0,compound:!0}),i=k(e.graph());return n.setGraph(t.merge({},g,M(i,p),t.pick(i,m))),t.forEach(e.nodes(),function(i){var r=k(e.node(i));n.setNode(i,t.defaults(M(r,y),v)),n.setParent(i,e.parent(i))}),t.forEach(e.edges(),function(i){var r=k(e.edge(i));n.setEdge(i,t.merge({},b,M(r,x),t.pick(r,w)))}),n}(C)});j(" runLayout",function(){!function(f,p){p(" makeSpaceForEdgeLabels",function(){!function(e){var n=e.graph();n.ranksep/=2,t.forEach(e.edges(),function(t){var i=e.edge(t);i.minlen*=2,"c"!==i.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?i.width+=i.labeloffset:i.height+=i.labeloffset)})}(f)}),p(" removeSelfEdges",function(){!function(e){t.forEach(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}(f)}),p(" acyclic",function(){e.run(f)}),p(" nestingGraph.run",function(){a.run(f)}),p(" rank",function(){i(d.asNonCompoundGraph(f))}),p(" injectEdgeLabelProxies",function(){!function(e){t.forEach(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var i=e.node(t.v),r=e.node(t.w);d.addDummyNode(e,"edge-proxy",{rank:(r.rank-i.rank)/2+i.rank,e:t},"_ep")}})}(f)}),p(" removeEmptyRanks",function(){s(f)}),p(" nestingGraph.cleanup",function(){a.cleanup(f)}),p(" normalizeRanks",function(){r(f)}),p(" assignRankMinMax",function(){!function(e){var n=0;t.forEach(e.nodes(),function(i){var r=e.node(i);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,n=t.max(n,r.maxRank))}),e.graph().maxRank=n}(f)}),p(" removeEdgeLabelProxies",function(){!function(e){t.forEach(e.nodes(),function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}(f)}),p(" normalize.run",function(){n.run(f)}),p(" parentDummyChains",function(){o(f)}),p(" addBorderSegments",function(){l(f)}),p(" order",function(){h(f)}),p(" insertSelfEdges",function(){!function(e){var n=d.buildLayerMatrix(e);t.forEach(n,function(n){var i=0;t.forEach(n,function(n,r){var o=e.node(n);o.order=r+i,t.forEach(o.selfEdges,function(t){d.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:o.rank,order:r+ ++i,e:t.e,label:t.label},"_se")}),delete o.selfEdges})})}(f)}),p(" adjustCoordinateSystem",function(){c.adjust(f)}),p(" position",function(){u(f)}),p(" positionSelfEdges",function(){!function(e){t.forEach(e.nodes(),function(t){var n=e.node(t);if("selfedge"===n.dummy){var i=e.node(n.e.v),r=i.x+i.width/2,o=i.y,s=n.x-r,a=i.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:r+2*s/3,y:o-a},{x:r+5*s/6,y:o-a},{x:r+s,y:o},{x:r+5*s/6,y:o+a},{x:r+2*s/3,y:o+a}],n.label.x=n.x,n.label.y=n.y}})}(f)}),p(" removeBorderNodes",function(){!function(e){t.forEach(e.nodes(),function(n){if(e.children(n).length){var i=e.node(n),r=e.node(i.borderTop),o=e.node(i.borderBottom),s=e.node(t.last(i.borderLeft)),a=e.node(t.last(i.borderRight));i.width=Math.abs(a.x-s.x),i.height=Math.abs(o.y-r.y),i.x=s.x+i.width/2,i.y=r.y+i.height/2}}),t.forEach(e.nodes(),function(t){"border"===e.node(t).dummy&&e.removeNode(t)})}(f)}),p(" normalize.undo",function(){n.undo(f)}),p(" fixupEdgeLabelCoords",function(){!function(e){t.forEach(e.edges(),function(n){var i=e.edge(n);if(t.has(i,"x"))switch("l"!==i.labelpos&&"r"!==i.labelpos||(i.width-=i.labeloffset),i.labelpos){case"l":i.x-=i.width/2+i.labeloffset;break;case"r":i.x+=i.width/2+i.labeloffset}})}(f)}),p(" undoCoordinateSystem",function(){c.undo(f)}),p(" translateGraph",function(){!function(e){var n=Number.POSITIVE_INFINITY,i=0,r=Number.POSITIVE_INFINITY,o=0,s=e.graph(),a=s.marginx||0,l=s.marginy||0;function c(t){var e=t.x,s=t.y,a=t.width,l=t.height;n=Math.min(n,e-a/2),i=Math.max(i,e+a/2),r=Math.min(r,s-l/2),o=Math.max(o,s+l/2)}t.forEach(e.nodes(),function(t){c(e.node(t))}),t.forEach(e.edges(),function(n){var i=e.edge(n);t.has(i,"x")&&c(i)}),n-=a,r-=l,t.forEach(e.nodes(),function(t){var i=e.node(t);i.x-=n,i.y-=r}),t.forEach(e.edges(),function(i){var o=e.edge(i);t.forEach(o.points,function(t){t.x-=n,t.y-=r}),t.has(o,"x")&&(o.x-=n),t.has(o,"y")&&(o.y-=r)}),s.width=i-n+a,s.height=o-r+l}(f)}),p(" assignNodeIntersects",function(){!function(e){t.forEach(e.edges(),function(t){var n,i,r=e.edge(t),o=e.node(t.v),s=e.node(t.w);r.points?(n=r.points[0],i=r.points[r.points.length-1]):(r.points=[],n=s,i=o),r.points.unshift(d.intersectRect(o,n)),r.points.push(d.intersectRect(s,i))})}(f)}),p(" reversePoints",function(){!function(e){t.forEach(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}(f)}),p(" acyclic.undo",function(){e.undo(f)})}(O,j)}),j(" updateInputGraph",function(){!function(e,n){t.forEach(e.nodes(),function(t){var i=e.node(t),r=n.node(t);i&&(i.x=r.x,i.y=r.y,n.children(t).length&&(i.width=r.width,i.height=r.height))}),t.forEach(e.edges(),function(i){var r=e.edge(i),o=n.edge(i);r.points=o.points,t.has(o,"x")&&(r.x=o.x,r.y=o.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}(C,O)})})};var p=["nodesep","edgesep","ranksep","marginx","marginy"],g={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},m=["acyclicer","ranker","rankdir","align"],y=["width","height"],v={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],b={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},w=["labelpos"];function M(e,n){return t.mapValues(t.pick(e,n),Number)}function k(e){var n={};return t.forEach(e,function(t,e){n[e.toLowerCase()]=t}),n}return BE}function _$(){if(NE)return HE;NE=1;var t=c$(),e=d$(),n=zS().Graph;return HE={debugOrdering:function(i){var r=e.buildLayerMatrix(i),o=new n({compound:!0,multigraph:!0}).setGraph({});return t.forEach(i.nodes(),function(t){o.setNode(t,{label:t}),o.setParent(t,"layer"+i.node(t).rank)}),t.forEach(i.edges(),function(t){o.setEdge(t.v,t.w,{},t.name)}),t.forEach(r,function(e,n){o.setNode("layer"+n,{rank:"same"}),t.reduce(e,function(t,e){return o.setEdge(t,e,{style:"invis"}),e})}),o}},HE}var S$=UE?VE:(UE=1,VE={graphlib:zS(),layout:E$(),debug:_$(),util:{time:d$().time,notime:d$().notime},version:DE?FE:(DE=1,FE="0.8.5")}),$$=bv(S$);const A$={abs:Math.abs,ceil:Math.ceil,floor:Math.floor,max:Math.max,min:Math.min,round:Math.round,sqrt:Math.sqrt,pow:Math.pow};class z$ extends Error{constructor(t,e,n){super(t),this.position=e,this.token=n,this.name="ExpressionError"}}var P$;!function(t){t[t.STRING=0]="STRING",t[t.NUMBER=1]="NUMBER",t[t.BOOLEAN=2]="BOOLEAN",t[t.NULL=3]="NULL",t[t.IDENTIFIER=4]="IDENTIFIER",t[t.OPERATOR=5]="OPERATOR",t[t.FUNCTION=6]="FUNCTION",t[t.DOT=7]="DOT",t[t.BRACKET_LEFT=8]="BRACKET_LEFT",t[t.BRACKET_RIGHT=9]="BRACKET_RIGHT",t[t.PAREN_LEFT=10]="PAREN_LEFT",t[t.PAREN_RIGHT=11]="PAREN_RIGHT",t[t.COMMA=12]="COMMA",t[t.QUESTION=13]="QUESTION",t[t.COLON=14]="COLON",t[t.DOLLAR=15]="DOLLAR"}(P$||(P$={}));const L$=new Set([32,9,10,13]),I$=new Set([43,45,42,47,37,33,38,124,61,60,62]),T$=new Map([["true",P$.BOOLEAN],["false",P$.BOOLEAN],["null",P$.NULL]]),R$=new Map([["===",!0],["!==",!0],["<=",!0],[">=",!0],["&&",!0],["||",!0],["+",!0],["-",!0],["*",!0],["/",!0],["%",!0],["!",!0],["<",!0],[">",!0]]),B$=new Map([[46,P$.DOT],[91,P$.BRACKET_LEFT],[93,P$.BRACKET_RIGHT],[40,P$.PAREN_LEFT],[41,P$.PAREN_RIGHT],[44,P$.COMMA],[63,P$.QUESTION],[58,P$.COLON],[36,P$.DOLLAR]]),W$=new Map;for(const[t,e]of B$.entries())W$.set(t,{type:e,value:String.fromCharCode(t)});function H$(t){return t>=48&&t<=57}function N$(t){return t>=97&&t<=122||t>=65&&t<=90||95===t}function F$(t){return N$(t)||H$(t)}function D$(t){return I$.has(t)}var V$;!function(t){t[t.Program=0]="Program",t[t.Literal=1]="Literal",t[t.Identifier=2]="Identifier",t[t.MemberExpression=3]="MemberExpression",t[t.CallExpression=4]="CallExpression",t[t.BinaryExpression=5]="BinaryExpression",t[t.UnaryExpression=6]="UnaryExpression",t[t.ConditionalExpression=7]="ConditionalExpression"}(V$||(V$={}));const U$=new Map([["||",2],["&&",3],["===",4],["!==",4],[">",5],[">=",5],["<",5],["<=",5],["+",6],["-",6],["*",7],["/",7],["%",7],["!",8]]),Y$={type:V$.Literal,value:null},q$={type:V$.Literal,value:!0},G$={type:V$.Literal,value:!1};function X$(t){const e=(t=>{const e=t,n=e.length,i=new Array(Math.ceil(n/3));let r=0,o=0;function s(t){const i=o+1;o++;let r="",s=!1;for(;o<n;){const n=e.charCodeAt(o);if(n===t)return s||(r=e.substring(i,o)),o++,{type:P$.STRING,value:r};92===n?(s||(r=e.substring(i,o),s=!0),o++,r+=e[o]):s&&(r+=e[o]),o++}throw new z$(`Unterminated string starting with ${String.fromCharCode(t)}`,o,e.substring(Math.max(0,o-10),o))}function a(){const t=o;for(45===e.charCodeAt(o)&&o++;o<n&&H$(e.charCodeAt(o));)o++;if(o<n&&46===e.charCodeAt(o))for(o++;o<n&&H$(e.charCodeAt(o));)o++;const i=e.slice(t,o);return{type:P$.NUMBER,value:i}}function l(){o++;const t=o;if(o<n&&N$(e.charCodeAt(o)))for(o++;o<n&&F$(e.charCodeAt(o));)o++;const i=e.slice(t,o);return{type:P$.FUNCTION,value:i}}function c(){const t=o++;for(;o<n&&F$(e.charCodeAt(o));)o++;const i=e.slice(t,o),r=T$.get(i);return r?{type:r,value:i}:{type:P$.IDENTIFIER,value:i}}function h(){if(o+2<n){const t=e.substring(o,o+3);if(R$.has(t))return o+=3,{type:P$.OPERATOR,value:t}}if(o+1<n){const t=e.substring(o,o+2);if(R$.has(t))return o+=2,{type:P$.OPERATOR,value:t}}const t=e[o];if(R$.has(t))return o++,{type:P$.OPERATOR,value:t};throw new z$(`Unknown operator at position ${o}: ${e.substring(o,o+1)}`,o,e.substring(Math.max(0,o-10),o))}for(;o<n;){const t=e.charCodeAt(o);if(L$.has(t)){o++;continue}const u=W$.get(t);if(u)i[r++]=u,o++;else if(34!==t&&39!==t)if(H$(t)||45===t&&o+1<n&&H$(e.charCodeAt(o+1)))i[r++]=a();else if(64!==t)if(N$(t))i[r++]=c();else{if(!D$(t))throw new z$(`Unexpected character: ${e[o]}`,o,e.substring(Math.max(0,o-10),o));i[r++]=h()}else i[r++]=l();else i[r++]=s(t)}return r===i.length?i:i.slice(0,r)})(t),n=(t=>{let e=0;const n=t.length,i=()=>e>=n?null:t[e],r=()=>t[e++],o=t=>{const e=i();return null!==e&&e.type===t},s=t=>t.type===P$.OPERATOR?U$.get(t.value)||-1:t.type===P$.DOT||t.type===P$.BRACKET_LEFT?9:t.type===P$.QUESTION?1:-1,a=t=>{let n,s;if(r().type===P$.DOT){if(!o(P$.IDENTIFIER)){const t=i();throw new z$("Expected property name",e,t?t.value:"<end of input>")}const t=r();n={type:V$.Identifier,name:t.value},s=!1}else{if(n=c(0),!o(P$.BRACKET_RIGHT)){const t=i();throw new z$("Expected closing bracket",e,t?t.value:"<end of input>")}r(),s=!0}return{type:V$.MemberExpression,object:t,property:n,computed:s}},l=()=>{const t=i();if(!t)throw new z$("Unexpected end of input",e,"<end of input>");if(t.type===P$.OPERATOR&&("!"===t.value||"-"===t.value)){r();const e=l();return{type:V$.UnaryExpression,operator:t.value,argument:e,prefix:!0}}switch(t.type){case P$.NUMBER:return r(),{type:V$.Literal,value:Number(t.value)};case P$.STRING:return r(),{type:V$.Literal,value:t.value};case P$.BOOLEAN:return r(),"true"===t.value?q$:G$;case P$.NULL:return r(),Y$;case P$.IDENTIFIER:return r(),{type:V$.Identifier,name:t.value};case P$.FUNCTION:return(()=>{const t=r(),n=[];if(!o(P$.PAREN_LEFT)){const t=i();throw new z$("Expected opening parenthesis after function name",e,t?t.value:"<end of input>")}for(r();;){if(o(P$.PAREN_RIGHT)){r();break}if(!i()){const t=i();throw new z$("Expected closing parenthesis",e,t?t.value:"<end of input>")}if(n.length>0){if(!o(P$.COMMA)){const t=i();throw new z$("Expected comma between function arguments",e,t?t.value:"<end of input>")}r()}const t=c(0);n.push(t)}return{type:V$.CallExpression,callee:{type:V$.Identifier,name:t.value},arguments:n}})();case P$.PAREN_LEFT:{r();const t=c(0);if(!o(P$.PAREN_RIGHT)){const t=i();throw new z$("Expected closing parenthesis",e,t?t.value:"<end of input>")}return r(),t}default:throw new z$(`Unexpected token: ${t.type}`,e,t.value)}},c=(h=0)=>{let u=l();for(;e<n;){const n=t[e],l=s(n);if(l<=h)break;if(n.type!==P$.QUESTION)if(n.type!==P$.OPERATOR){if(n.type!==P$.DOT&&n.type!==P$.BRACKET_LEFT)break;u=a(u)}else{r();const t=c(l);u={type:V$.BinaryExpression,operator:n.value,left:u,right:t}}else{r();const t=c(0);if(!o(P$.COLON)){const t=i();throw new z$("Expected : in conditional expression",e,t?t.value:"<end of input>")}r();const n=c(0);u={type:V$.ConditionalExpression,test:u,consequent:t,alternate:n}}}return u},h=c();return{type:V$.Program,body:h}})(e),i=((t={},e={})=>({context:t,functions:e}))({},A$);return(t={})=>((t,e,n)=>{let i=e;n&&(i={...e,context:{...e.context,...n}});const r=t=>{switch(t.type){case V$.Literal:return(t=>t.value)(t);case V$.Identifier:return(t=>{if(!(t.name in i.context))throw new z$(`Undefined variable: ${t.name}`);return i.context[t.name]})(t);case V$.MemberExpression:return(t=>{const e=r(t.object);if(null==e)throw new z$("Cannot access property of null or undefined");return e[t.computed?r(t.property):t.property.name]})(t);case V$.CallExpression:return(t=>{const e=i.functions[t.callee.name];if(!e)throw new z$(`Undefined function: ${t.callee.name}`);return e(...t.arguments.map(t=>r(t)))})(t);case V$.BinaryExpression:return(t=>{if("&&"===t.operator){const e=r(t.left);return e?r(t.right):e}if("||"===t.operator)return r(t.left)||r(t.right);const e=r(t.left),n=r(t.right);switch(t.operator){case"+":return e+n;case"-":return e-n;case"*":return e*n;case"/":return e/n;case"%":return e%n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e<n;case"<=":return e<=n;default:throw new z$(`Unknown operator: ${t.operator}`)}})(t);case V$.UnaryExpression:return(t=>{const e=r(t.argument);if(t.prefix)switch(t.operator){case"!":return!e;case"-":if("number"!=typeof e)throw new z$(`Cannot apply unary - to non-number: ${e}`);return-e;default:throw new z$(`Unknown operator: ${t.operator}`)}throw new z$(`Postfix operators are not supported: ${t.operator}`)})(t);case V$.ConditionalExpression:return(t=>{const e=r(t.test);return r(e?t.consequent:t.alternate)})(t);default:throw new z$(`Evaluation error: Unsupported node type: ${t.type}`)}};return r(t.body)})(n,i,t)}function K$(t,e){if("string"!=typeof t)return;const n=t.trim();if(n)try{return X$(n),function(t,e={}){return X$(t)(e)}(n,e)}catch(t){return}}function Z$(t){return"number"==typeof t}function Q$(t){if(!t)return[0,0,0];if(Z$(t))return[t,t,t];if(Array.isArray(t)&&0===t.length)return[0,0,0];const[e,n=e,i=e]=t;return[e,n,i]}function J$(t){return null==t}function tA(t){return"string"==typeof t}function eA(t){return"function"==typeof t}function nA(t,e){if("function"==typeof t)return t;if("string"==typeof t){const n=t;return(...t)=>{const i={};for(let n=0;n<e.length;n++)i[e[n]]=t[n];return K$(n,i)}}return()=>t}function iA(t,e,n="node"){if(J$(t))return()=>e;if(tA(t)){const i=nA(t,[n]);return t=>{const n=i(t);return Z$(n)?n:e}}return eA(t)?t:Z$(t)?()=>t:()=>e}function rA(t,e=10,n="node"){if(J$(t))return()=>e;if(tA(t)){const i=nA(t,[n]);return t=>{const n=i(t);return function(t){return!!Z$(t)||!!Array.isArray(t)&&t.every(t=>Z$(t))}(n)?n:e}}return eA(t)?t:Z$(t)||Array.isArray(t)?()=>t:()=>e}function oA(t){var e;return[t.x,t.y,null!==(e=t.z)&&void 0!==e?e:0]}class sA{constructor(t,e={}){this.edgeIdCounter=new Map,this.nodeMap=function(t,e){if(!t)throw new Error("Data.nodes is required");const n=new Map;for(const i of t){const t={_original:i};for(const e of aA){const n=i[e];J$(n)||(t[e]=n)}if(e){const n=e(i);for(const e in n){const i=n[e];J$(i)||(t[e]=i)}}if(J$(t.id))throw new Error("Node is missing id field");n.set(t.id,t)}return n}(t.nodes,e.node),this.edgeMap=function(t,e,n){const i=new Map;for(const r of t){const t={_original:r};for(const e of lA){const n=r[e];J$(n)||(t[e]=n)}if(e){const n=e(r);for(const e in n){const i=n[e];J$(i)||(t[e]=i)}}if(J$(t.source)||J$(t.target))throw new Error("Edge is missing source or target field");J$(t.id)&&(t.id=null==n?void 0:n(r)),i.set(t.id,t)}return i}(t.edges||[],e.edge,this.getEdgeId.bind(this))}data(){return{nodes:this.nodeMap,edges:this.edgeMap}}replace(t){this.nodeMap=t.nodes,this.edgeMap=t.edges,this.clearCache()}nodes(){return Array.from(this.nodeMap.values())}node(t){return this.nodeMap.get(t)}nodeAt(t){this.indexNodeCache||this.buildNodeIndexCache();const e=this.indexNodeCache.get(t);return e?this.nodeMap.get(e):void 0}nodeIndexOf(t){var e;return this.nodeIndexCache||this.buildNodeIndexCache(),null!==(e=this.nodeIndexCache.get(t))&&void 0!==e?e:-1}firstNode(){return this.nodeMap.values().next().value}forEachNode(t){let e=0;this.nodeMap.forEach(n=>t(n,e++))}originalNode(t){const e=this.nodeMap.get(t);return null==e?void 0:e._original}nodeCount(){return this.nodeMap.size}edges(){return Array.from(this.edgeMap.values())}edge(t){return this.edgeMap.get(t)}firstEdge(){return this.edgeMap.values().next().value}forEachEdge(t){let e=0;this.edgeMap.forEach(n=>t(n,e++))}originalEdge(t){const e=this.edgeMap.get(t);return null==e?void 0:e._original}edgeCount(){return this.edgeMap.size}getEdgeId(t){if(t.id)return t.id;const e=`${t.source}-${t.target}`,n=this.edgeIdCounter.get(e)||0,i=0===n?e:`${e}-${n}`;return this.edgeIdCounter.set(e,n+1),i}degree(t,e="both"){this.degreeCache||this.buildDegreeCache();const n=this.degreeCache.get(t);return n?n[e]:0}neighbors(t,e="both"){if(this.outAdjacencyCache&&this.inAdjacencyCache||this.buildAdjacencyCache(),"out"===e)return Array.from(this.outAdjacencyCache.get(t)||[]);if("in"===e)return Array.from(this.inAdjacencyCache.get(t)||[]);if(this.bothAdjacencyCache)return Array.from(this.bothAdjacencyCache.get(t)||[]);const n=this.inAdjacencyCache.get(t),i=this.outAdjacencyCache.get(t);if(!n&&!i)return[];if(!n)return Array.from(i);if(!i)return Array.from(n);const r=new Set;return n.forEach(t=>r.add(t)),i.forEach(t=>r.add(t)),Array.from(r)}successors(t){return this.neighbors(t,"out")}predecessors(t){return this.neighbors(t,"in")}setNodeOrder(t){const e=new Map;for(const n of t)e.set(n.id,n);this.nodeMap=e,this.nodeIndexCache=void 0,this.indexNodeCache=void 0}clearCache(){this.degreeCache=void 0,this.inAdjacencyCache=void 0,this.outAdjacencyCache=void 0,this.bothAdjacencyCache=void 0,this.nodeIndexCache=void 0,this.indexNodeCache=void 0}buildDegreeCache(){this.degreeCache=new Map;for(const t of this.edges()){const{source:e,target:n}=t;if(t.source===t.target)continue;this.degreeCache.has(e)||this.degreeCache.set(e,{in:0,out:0,both:0});const i=this.degreeCache.get(t.source);i&&(i.out++,i.both++),this.degreeCache.has(n)||this.degreeCache.set(n,{in:0,out:0,both:0});const r=this.degreeCache.get(t.target);r&&(r.in++,r.both++)}}buildAdjacencyCache(){this.inAdjacencyCache=new Map,this.outAdjacencyCache=new Map;for(const t of this.edges())this.nodeMap.has(t.source)&&this.nodeMap.has(t.target)&&(this.outAdjacencyCache.has(t.source)||this.outAdjacencyCache.set(t.source,new Set),this.outAdjacencyCache.get(t.source).add(t.target),this.inAdjacencyCache.has(t.target)||this.inAdjacencyCache.set(t.target,new Set),this.inAdjacencyCache.get(t.target).add(t.source))}buildNodeIndexCache(){this.nodeIndexCache=new Map,this.indexNodeCache=new Map;let t=0;this.nodeMap.forEach((e,n)=>{this.nodeIndexCache.set(n,t),this.indexNodeCache.set(t,n),t++})}destroy(){this.clearCache(),this.nodeMap.clear(),this.edgeMap.clear(),this.edgeIdCounter.clear()}}const aA=["id","x","y","z","vx","vy","vz","fx","fy","fz","parentId"],lA=["id","source","target","points"];class cA{constructor(t,e={}){this.graph=new sA(t,e)}export(){return this.graph.data()}replace(t){this.graph.replace(t)}forEachNode(t){this.graph.forEachNode(t)}forEachEdge(t){this.graph.forEachEdge((e,n)=>{e.sourceNode=this.graph.node(e.source),e.targetNode=this.graph.node(e.target),t(e,n)})}destroy(){this.graph.destroy()}}const hA=Symbol("Comlink.proxy"),uA=Symbol("Comlink.endpoint"),dA=Symbol("Comlink.releaseProxy"),fA=Symbol("Comlink.finalizer"),pA=Symbol("Comlink.thrown"),gA=t=>"object"==typeof t&&null!==t||"function"==typeof t,mA={canHandle:t=>gA(t)&&t[hA],serialize(t){const{port1:e,port2:n}=new MessageChannel;return xA(t,e),[n,[n]]},deserialize:t=>(t.start(),wA(t))},yA={canHandle:t=>gA(t)&&pA in t,serialize({value:t}){let e;return e=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}},vA=new Map([["proxy",mA],["throw",yA]]);function xA(t,e=globalThis,n=["*"]){e.addEventListener("message",function i(r){if(!r||!r.data)return;if(!function(t,e){for(const n of t){if(e===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}return!1}(n,r.origin))return void console.warn(`Invalid origin '${r.origin}' for comlink proxy`);const{id:o,type:s,path:a}=Object.assign({path:[]},r.data),l=(r.data.argumentList||[]).map($A);let c;try{const e=a.slice(0,-1).reduce((t,e)=>t[e],t),n=a.reduce((t,e)=>t[e],t);switch(s){case"GET":c=n;break;case"SET":e[a.slice(-1)[0]]=$A(r.data.value),c=!0;break;case"APPLY":c=n.apply(e,l);break;case"CONSTRUCT":c=function(t){return Object.assign(t,{[hA]:!0})}(new n(...l));break;case"ENDPOINT":{const{port1:e,port2:n}=new MessageChannel;xA(t,n),c=function(t,e){return _A.set(t,e),t}(e,[e])}break;case"RELEASE":c=void 0;break;default:return}}catch(t){c={value:t,[pA]:0}}Promise.resolve(c).catch(t=>({value:t,[pA]:0})).then(n=>{const[r,a]=SA(n);e.postMessage(Object.assign(Object.assign({},r),{id:o}),a),"RELEASE"===s&&(e.removeEventListener("message",i),bA(e),fA in t&&"function"==typeof t[fA]&&t[fA]())}).catch(t=>{const[n,i]=SA({value:new TypeError("Unserializable return value"),[pA]:0});e.postMessage(Object.assign(Object.assign({},n),{id:o}),i)})}),e.start&&e.start()}function bA(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function wA(t,e){const n=new Map;return t.addEventListener("message",function(t){const{data:e}=t;if(!e||!e.id)return;const i=n.get(e.id);if(i)try{i(e)}finally{n.delete(e.id)}}),jA(t,n,[],e)}function MA(t){if(t)throw new Error("Proxy has been released and is not useable")}function kA(t){return AA(t,new Map,{type:"RELEASE"}).then(()=>{bA(t)})}const CA=new WeakMap,OA="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{const e=(CA.get(t)||0)-1;CA.set(t,e),0===e&&kA(t)});function jA(t,e,n=[],i=function(){}){let r=!1;const o=new Proxy(i,{get(i,s){if(MA(r),s===dA)return()=>{!function(t){OA&&OA.unregister(t)}(o),kA(t),e.clear(),r=!0};if("then"===s){if(0===n.length)return{then:()=>o};const i=AA(t,e,{type:"GET",path:n.map(t=>t.toString())}).then($A);return i.then.bind(i)}return jA(t,e,[...n,s])},set(i,o,s){MA(r);const[a,l]=SA(s);return AA(t,e,{type:"SET",path:[...n,o].map(t=>t.toString()),value:a},l).then($A)},apply(i,o,s){MA(r);const a=n[n.length-1];if(a===uA)return AA(t,e,{type:"ENDPOINT"}).then($A);if("bind"===a)return jA(t,e,n.slice(0,-1));const[l,c]=EA(s);return AA(t,e,{type:"APPLY",path:n.map(t=>t.toString()),argumentList:l},c).then($A)},construct(i,o){MA(r);const[s,a]=EA(o);return AA(t,e,{type:"CONSTRUCT",path:n.map(t=>t.toString()),argumentList:s},a).then($A)}});return function(t,e){const n=(CA.get(e)||0)+1;CA.set(e,n),OA&&OA.register(t,e,t)}(o,t),o}function EA(t){const e=t.map(SA);return[e.map(t=>t[0]),(n=e.map(t=>t[1]),Array.prototype.concat.apply([],n))];var n}const _A=new WeakMap;function SA(t){for(const[e,n]of vA)if(n.canHandle(t)){const[i,r]=n.serialize(t);return[{type:"HANDLER",name:e,value:i},r]}return[{type:"RAW",value:t},_A.get(t)||[]]}function $A(t){switch(t.type){case"HANDLER":return vA.get(t.name).deserialize(t.value);case"RAW":return t.value}}function AA(t,e,n,i){return new Promise(r=>{const o=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");e.set(o,r),t.start&&t.start(),t.postMessage(Object.assign({id:o},n),i)})}class zA{constructor(){this.worker=null,this.workerApi=null}execute(t,e,n){return vm(this,void 0,void 0,function*(){if(this.worker||(yield this.initWorker()),!this.workerApi)throw new Error("Worker API not initialized");return yield this.workerApi.execute(t,e,n)})}destroy(){this.workerApi&&this.workerApi.destroy(),this.worker&&(this.worker.terminate(),this.worker=null,this.workerApi=null)}initWorker(){return vm(this,void 0,void 0,function*(){const t=this.resolveWorkerPath(),e=t.includes("/lib/")||t.endsWith(".mjs");this.worker=new Worker(t,{type:e?"module":"classic"}),this.workerApi=wA(this.worker)})}resolveWorkerPath(){const t=(()=>{if("undefined"==typeof document)return null;const t=document.currentScript;if(null==t?void 0:t.src)return t.src;const e=document.getElementsByTagName("script");for(let t=e.length-1;t>=0;t--){const n=e[t].src;if(n&&(n.includes("index.js")||n.includes("index.min.js")))return n}return null})();if(t){if(t.includes("index.js")||t.includes("index.min.js")){const e=t.replace(/index(\.min)?\.(m?js)(\?.*)?$/,"worker.js");if(e!==t)return e}const e=t.replace(/\/runtime\/[^/]+\.(m?js)(\?.*)?$/,"/worker.js");if(e!==t)return e;const n=t.replace(/\/[^/]+\.(m?js)(\?.*)?$/,"/worker.js");if(n!==t)return n}return"./worker.js"}}class PA{constructor(t){this.supervisor=null,this.initialOptions=this.mergeOptions(this.getDefaultOptions(),t)}get options(){return this.runtimeOptions||this.initialOptions}mergeOptions(t,e){return Object.assign({},t,e||{})}execute(t,e){return vm(this,void 0,void 0,function*(){this.runtimeOptions=this.mergeOptions(this.initialOptions,e);const{node:n,edge:i,enableWorker:r}=this.runtimeOptions;this.context=new cA(t,{node:n,edge:i}),this.model=this.context.graph;r&&"undefined"!=typeof Worker?yield this.layoutInWorker(t,this.runtimeOptions):yield this.layout(this.runtimeOptions)})}layoutInWorker(t,e){var n;return vm(this,void 0,void 0,function*(){try{this.supervisor||(this.supervisor=new zA);const i=yield this.supervisor.execute(this.id,t,e);null===(n=this.context)||void 0===n||n.replace(i)}catch(t){console.error("Layout in worker failed, fallback to main thread layout.",t),yield this.layout(e)}})}forEachNode(t){this.context.forEachNode(t)}forEachEdge(t){this.context.forEachEdge(t)}destroy(){var t;null===(t=this.context)||void 0===t||t.destroy(),this.model=null,this.context=null,this.supervisor&&(this.supervisor.destroy(),this.supervisor=null)}}var LA={}.toString,IA=function(t,e){return LA.call(t)==="[object "+e+"]"};function TA(t,e){if(t)if(function(t){return Array.isArray(t)}(t))for(var n=0,i=t.length;n<i&&!1!==e(t[n],n);n++);else if(function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}(t))for(var r in t)if(t.hasOwnProperty(r)&&!1===e(t[r],r))break}var RA=Object.prototype.hasOwnProperty,BA=function(t,e){if(null===t||!function(t){if(!function(t){return"object"==typeof t&&null!==t}(t)||!IA(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))return{};var n={};return TA(e,function(e){RA.call(t,e)&&(n[e]=t[e])}),n};class WA extends PA{constructor(){super(...arguments),this.id="dagre",this.isCompoundGraph=null,this.config={graphAttributes:["rankdir","align","nodesep","edgesep","ranksep","marginx","marginy","acyclicer","ranker"],nodeAttributes:["width","height"],edgeAttributes:["minlen","weight","width","height","labelpos","labeloffset"]}}getDefaultOptions(){return{directed:!0,multigraph:!0,rankdir:"TB",align:void 0,nodesep:50,edgesep:10,ranksep:50,marginx:0,marginy:0,acyclicer:void 0,ranker:"network-simplex",nodeSize:[0,0],edgeMinLen:1,edgeWeight:1,edgeLabelSize:[0,0],edgeLabelPos:"r",edgeLabelOffset:10}}layout(){return vm(this,void 0,void 0,function*(){const t=new S$.graphlib.Graph({directed:!!this.options.directed,multigraph:!!this.options.multigraph,compound:this.isCompound()});t.setGraph(BA(this.options,this.config.graphAttributes)),t.setDefaultEdgeLabel(()=>({}));const e=rA(this.options.nodeSize,0);this.model.forEachNode(n=>{const i=n._original,[r,o]=Q$(e(i)),s={width:r,height:o};if(t.setNode(String(n.id),s),this.isCompound()){if(J$(n.parentId))return;t.setParent(String(n.id),String(n.parentId))}});const{edgeLabelSize:n,edgeLabelOffset:i,edgeLabelPos:r,edgeMinLen:o,edgeWeight:s}=this.options,a=rA(n,0,"edge"),l=iA(i,10,"edge"),c="string"==typeof r?()=>r:nA(r,["edge"]),h=iA(o,1,"edge"),u=iA(s,1,"edge");this.model.forEachEdge(e=>{const n=e._original,[i,r]=Q$(a(n)),o={width:i,height:r,labelpos:c(n),labeloffset:l(n),minlen:h(n),weight:u(n)};t.setEdge(String(e.source),String(e.target),o,String(e.id))}),$$.layout(t),this.model.forEachNode(e=>{const n=t.node(String(e.id));n&&(e.x=n.x,e.y=n.y,e.size=[n.width,n.height])}),this.model.forEachEdge(e=>{const n=t.edge(String(e.source),String(e.target),String(e.id));if(!n)return;const{width:i,height:r,weight:o,minlen:s,labelpos:a,labeloffset:l,points:c}=n;e.labelSize=[i,r],e.weight=o,e.minLen=s,e.labelPos=a,e.labelOffset=l,e.points=c.map(oA)})})}isCompound(){return null!==this.isCompoundGraph?this.isCompoundGraph:function(t){return IA(t,"Boolean")}(this.options.compound)?this.isCompoundGraph=this.options.compound:(this.isCompoundGraph=this.model.nodes().some(t=>!J$(t.parentId)),this.isCompoundGraph)}}const HA=50,NA=70,FA=10,DA=2,VA=30;Mg("relation-dagre-flow",{component:t=>{var e,n;const{Title:i,Item:r,data:o,rankdir:s="TB",nodesep:a=HA,ranksep:l=NA,edgesep:c=FA,edgeWidth:h=DA,showConnections:u=!0,edgeColorMode:d="gradient",edgeStyle:f="solid",edgeDashPattern:p="5,5",edgeCornerRadius:g=12,edgeRouting:m="orth",showArrow:y=!0,arrowType:v="triangle",padding:x=VA,edgeAnimation:b="none",edgeAnimationSpeed:w=1,options:M}=t,{title:k,desc:C,items:O=[],relations:j=[]}=o,E=i?V(i,{title:k,desc:C}):null;if(!r||0===O.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[E,V(X,{children:V(Au,{indexes:[0],x:0,y:0})})]});const _=new Map,S=new Map,$=new Map,A=new Map,z=new Set,P=new Map;let L=0;const I=O.map((t,e)=>{var n,i;const s=t,a=String(null!==(n=s.id)&&void 0!==n?n:e),l=[e];let c;const h=String(null!==(i=s.group)&&void 0!==i?i:"");if(h){let t=P.get(h);null==t&&(t=L,P.set(h,t),L+=1),c=hd(M,[t])}else c=hd(M,l);const u=c?ud({colorPrimary:c},M):void 0;c&&$.set(a,c);const d=du(V(r,{indexes:l,data:o,datum:s,positionH:"center",positionV:"middle",themeColors:u}));return S.set(a,d),_.set(a,{id:a,indexes:l,datum:s,themeColors:u}),A.set(e,a),z.add(a),{id:a,parentId:s.parentId}}),T=t=>{if(null==t)return null;const e=String(t);if(z.has(e))return e;const n=Number(t);if(!Number.isNaN(n)){const t=A.get(n);if(t)return t}return null},R=j.map((t,e)=>{const n=T(t.from),i=T(t.to);return n&&i?{id:t.id?String(t.id):`edge-${e}`,source:n,target:i,relation:t}:null}).filter(Boolean),B=((t,e)=>{var n,i;const r=new Map;t.forEach(t=>r.set(t,[]));for(const t of e){if(t.source===t.target)return!0;null===(n=r.get(t.source))||void 0===n||n.push({target:t.target,edgeId:t.id}),null===(i=r.get(t.target))||void 0===i||i.push({target:t.source,edgeId:t.id})}const o=new Set,s=(t,e)=>{o.add(t);const n=r.get(t)||[];for(const{target:t,edgeId:i}of n)if(i!==e){if(o.has(t))return!0;if(s(t,i))return!0}return!1};for(const e of t)if(!o.has(e)&&s(e,null))return!0;return!1})(Array.from(z),R),W=B?"dagre":m,H=new WA({rankdir:s,nodesep:a,ranksep:l,edgesep:c,controlPoints:!0,nodeSize:t=>{var e;const n=String(null!==(e=t.id)&&void 0!==e?e:""),i=S.get(n);return i?[i.width,i.height]:[0,0]}});H.execute({nodes:I,edges:R});const N=[];if(H.forEachNode(t=>{var e,n,i,r;const o=String(t.id),s=_.get(o);if(!s)return;const a=S.get(o),l=null!==(e=null==a?void 0:a.width)&&void 0!==e?e:0,c=null!==(n=null==a?void 0:a.height)&&void 0!==n?n:0,h=(null!==(i=t.x)&&void 0!==i?i:0)-l/2,u=(null!==(r=t.y)&&void 0!==r?r:0)-c/2;N.push(Object.assign(Object.assign({},s),{x:h,y:u,width:l,height:c,centerX:h+l/2,centerY:u+c/2}))}),0===N.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[E,V(X,{children:V(Au,{indexes:[0],x:0,y:0})})]});const F=Math.min(...N.map(t=>t.x)),D=Math.min(...N.map(t=>t.y)),Y=x-F,G=x-D,Z=new Map,Q=[];N.forEach(t=>{const e=t.x+Y,n=t.y+G;Q.push(V(r,{indexes:t.indexes,datum:t.datum,data:o,x:e,y:n,positionH:"LR"===s?"normal":"RL"===s?"flipped":"center",positionV:"TB"===s?"normal":"BT"===s?"flipped":"middle",themeColors:t.themeColors})),Z.set(t.id,Object.assign(Object.assign({},t),{x:e,y:n,centerX:e+t.width/2,centerY:n+t.height/2}))});const J=[],tt=[];if(u){const t=ld(M),i=ud(M.themeConfig,M),r=null!==(e=null==i?void 0:i.colorBg)&&void 0!==e?e:"#ffffff",o=null!==(n=null==i?void 0:i.colorText)&&void 0!==n?n:t,a=Math.max(10,4*h),l="TB"===s||"BT"===s,c="ant-line"===b,u=c?p:"",m=c?u:c||"dashed"!==f?"":p,x=c?u.split(",").reduce((t,e)=>t+parseFloat(e.trim()||"0"),0):0,k=c&&x>0?x/(10*w)+"s":"1s",C=g,O=(t,e)=>{const n=Z.get(t),i=Z.get(e);return n&&i?"TB"===s?{start:[n.centerX,n.y+n.height],end:[i.centerX,i.y]}:"BT"===s?{start:[n.centerX,n.y],end:[i.centerX,i.y+i.height]}:"LR"===s?{start:[n.x+n.width,n.centerY],end:[i.x,i.centerY]}:{start:[n.x,n.centerY],end:[i.x+i.width,i.centerY]}:null},j=(t,e)=>{const n=O(t,e);if(!n)return null;const{start:i,end:r}=n;if(l){const t=i[1]+(r[1]-i[1])/2;return{start:i,end:r,points:[i,[i[0],t],[r[0],t],r]}}const o=i[0]+(r[0]-i[0])/2;return{start:i,end:r,points:[i,[o,i[1]],[o,r[1]],r]}};H.forEachEdge(e=>{var n,i,s,l,u,f,p,g,b;const w="orth"===W,M=w?j(String(e.source),String(e.target)):null,O=w?[]:(E=e.points,Array.isArray(E)?E.map(t=>t&&Array.isArray(t)&&t.length>=2?[Number(t[0]),Number(t[1])]:null).filter(t=>!!t&&Number.isFinite(t[0])&&Number.isFinite(t[1])):[]);var E;const _=w?null!==(n=null==M?void 0:M.points)&&void 0!==n?n:[]:O.length?O:(()=>{const t=Z.get(String(e.source)),n=Z.get(String(e.target));return t&&n?[[t.centerX-Y,t.centerY-G],[n.centerX-Y,n.centerY-G]]:[]})();if(!_.length)return;const S=w?0:Y,A=w?0:G,z=w&&null!==(i=null==M?void 0:M.start)&&void 0!==i?i:_[0],P=w&&null!==(s=null==M?void 0:M.end)&&void 0!==s?s:_[_.length-1],L=null===(l=e._original)||void 0===l?void 0:l.relation,I=null!==(u=$.get(String(e.source)))&&void 0!==u?u:t,T=null!==(f=$.get(String(e.target)))&&void 0!==f?f:t,R=`edge-gradient-${String(I)}-${String(T)}`.replace(/[^a-zA-Z0-9_-]/g,""),B="gradient"===d?`url(#${R})`:t;let H="";if(H=C>0?((t,e,n,i)=>{if(t.length<2)return"";const r=(t,e,n)=>Math.min(n,Math.max(e,t)),o=([t,e])=>({x:t+n,y:e+i}),s=[],a=o(t[0]);if(s.push(`M ${a.x} ${a.y}`),2===t.length){const e=o(t[1]);return s.push(`L ${e.x} ${e.y}`),s.join(" ")}for(let n=1;n<t.length-1;n+=1){const i=t[n-1],a=t[n],l=t[n+1],c=a[0]-i[0],h=a[1]-i[1],u=l[0]-a[0],d=l[1]-a[1],f=Math.hypot(c,h),p=Math.hypot(u,d);if(0===f||0===p){const t=o(a);s.push(`L ${t.x} ${t.y}`);continue}const g=r(e,0,Math.min(f,p)/2);if(0===g){const t=o(a);s.push(`L ${t.x} ${t.y}`);continue}const m=u/p,y=d/p,v=o([a[0]-c/f*g,a[1]-h/f*g]),x=o([a[0]+m*g,a[1]+y*g]);s.push(`L ${v.x} ${v.y}`);const b=o(a);s.push(`Q ${b.x} ${b.y} ${x.x} ${x.y}`)}const l=o(t[t.length-1]);return s.push(`L ${l.x} ${l.y}`),s.join(" ")})(_,C,S,A):((t,e,n)=>t.map(([t,i],r)=>`${0===r?"M":"L"} ${t+e} ${i+n}`).join(" "))(_,S,A),!H)return;const N=V(K,{d:H,stroke:B,strokeWidth:h,strokeDasharray:m,fill:"none","data-element-type":"shape",children:c&&V("animate",{attributeName:"stroke-dashoffset",from:String(x),to:"0",dur:k,repeatCount:"indefinite"})});if(tt.push(N),"gradient"===d){J.push(U("linearGradient",{id:R,gradientUnits:"userSpaceOnUse",x1:z[0]+S,y1:z[1]+A,x2:P[0]+S,y2:P[1]+A,children:[V("stop",{offset:"0%",stopColor:I}),V("stop",{offset:"100%",stopColor:T})]}))}if(null==L?void 0:L.label){let t=null;const e=(t=>{if(0===t.length)return null;if(1===t.length)return t[0];let e=0;const n=[];for(let i=0;i<t.length-1;i+=1){const r=t[i],o=t[i+1],s=Math.hypot(o[0]-r[0],o[1]-r[1]);n.push({length:s,start:r,end:o}),e+=s}if(0===e)return t[0];let i=e/2;for(let t=0;t<n.length;t+=1){const e=n[t];if(i<=e.length||t===n.length-1){const t=0===e.length?0:Math.max(0,Math.min(1,i/e.length));return[e.start[0]+(e.end[0]-e.start[0])*t,e.start[1]+(e.end[1]-e.start[1])*t]}i-=e.length}return t[Math.floor(t.length/2)]})(_);if(e&&(t=[e[0]+S,e[1]+A]),t){const e=String(L.label),n=du(V(su,{fontSize:14,fontWeight:"normal",children:e}));tt.push(V(su,{x:t[0]-n.width/2,y:t[1]-n.height/2,width:n.width,height:n.height,fontSize:14,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:o,backgroundColor:r,children:e}))}}const F=null!==(p=null==L?void 0:L.showArrow)&&void 0!==p?p:y,D=null!==(g=null==L?void 0:L.direction)&&void 0!==g?g:"forward",q=null!==(b=null==L?void 0:L.arrowType)&&void 0!==b?b:v,X=_.length-1;if(F&&_.length>1){if("forward"===D||"both"===D){const e=_[X],n=_[X-1],i=Math.atan2(e[1]-n[1],e[0]-n[0]),r=dd(e[0]+S,e[1]+A,i,q,"gradient"===d?T:t,h,a);tt.push(...r)}if("both"===D){const e=_[0],n=_[1],i=Math.atan2(e[1]-n[1],e[0]-n[0]),r=dd(e[0]+S,e[1]+A,i,q,"gradient"===d?I:t,h,a);tt.push(...r)}}})}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[E,U(X,{children:[V(q,{children:J}),V(X,{width:0,height:0,children:tt}),V(Vu,{children:Q}),V(Pu,{})]})]})},composites:["title","item"]});Mg("relation-network",{component:t=>{const{Title:e,Item:n,data:i,spacing:r=120,showConnections:o=!0,options:s}=t,{title:a,desc:l,items:c=[]}=i,h=e?V(e,{title:a,desc:l}):null;if(0===c.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,V(X,{children:V(Vu,{})})]});const u=du(V(n,{indexes:[0],data:i,datum:c[0],positionH:"center"}));const{nodes:d,links:f}=function(){const t=c.map((t,e)=>({id:e,data:t,isCenter:0===e,_originalIndex:[e]})),e=c.slice(1).map((t,e)=>({source:0,target:e+1})),n=Fp.A(t).force("link",Hp.A(e).id(t=>t.id).distance(r)).force("charge",Np.A().strength(-50)).force("center",Bp.A(0,0)).force("collision",Wp.A().radius(Math.max(u.width,u.height)/2+10));for(let t=0;t<300;++t)n.tick();return{nodes:t,links:e}}(),p=Math.min(...d.map(t=>{var e;return null!==(e=t.x)&&void 0!==e?e:0})),g=Math.min(...d.map(t=>{var e;return null!==(e=t.y)&&void 0!==e?e:0})),m=Math.max(0,u.width/2-p),y=Math.max(0,u.height/2-g),v=d.map(t=>{if(null==t.x||null==t.y)return null;const e=t.x+m-u.width/2,r=t.y+y-u.height/2,{positionH:o,positionV:s}=((t,e)=>({positionH:t<-50?"flipped":t>50?"normal":"center",positionV:e<-50?"flipped":e>50?"normal":"middle"}))(t.x,t.y);return V(n,{indexes:t._originalIndex,datum:t.data,data:i,x:e,y:r,positionH:o,positionV:s})}).filter(Boolean),x=new Map(d.map(t=>[t.id,t])),b=o?f.map(t=>{const e="object"==typeof t.source?t.source:x.get(t.source),n="object"==typeof t.target?t.target:x.get(t.target);if(!e||!n||null==e.x||null==e.y||null==n.x||null==n.y)return null;return V(K,{d:`M ${e.x+m} ${e.y+y} L ${n.x+m} ${n.y+y}`,stroke:ld(s),strokeWidth:2,strokeOpacity:.6})}).filter(Boolean):[];return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,U(X,{children:[V(X,{children:b}),V(Vu,{children:v})]})]})},composites:["title","item"]});var UA=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const YA=t=>{var{width:e=25,height:n=25,colorPrimary:i="#6699FF",rotation:r=0}=t,o=UA(t,["width","height","colorPrimary","rotation"]);const s=`gradient-arrow-stroke-${i.replace("#","")}`,a=`gradient-arrow-fill-${i.replace("#","")}`,l=Math.round(.515*e),c=Math.round(.275*n),h=Math.round(.875*n);return U(D,{children:[V(Q,Object.assign({},o,{width:e,height:n,points:[{x:0,y:c},{x:l,y:c},{x:l,y:.075*n},{x:e,y:.575*n},{x:l,y:1.075*n},{x:l,y:h},{x:0,y:h}],fill:`url(#${a})`,stroke:`url(#${s})`,transform:`rotate(${r} ${e/2} ${n/2})`,"data-element-type":"shape"})),U(q,{children:[U("linearGradient",{id:a,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[V("stop",{offset:"0%","stop-color":i,"stop-opacity":"0.36"}),V("stop",{offset:"100%","stop-color":i,"stop-opacity":"0"})]}),U("linearGradient",{id:s,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[V("stop",{offset:"0%","stop-color":i}),V("stop",{offset:"58%","stop-color":i,"stop-opacity":"0"})]})]})]})},qA=({text:t,x:e=0,y:n=0,fontSize:i=56,fontWeight:r="bold",fill:o="#FFFFFF",textAnchor:s="middle",dominantBaseline:a="middle",shadowOffsetX:l=2,shadowOffsetY:c=4,midShadowOffsetX:h=1,midShadowOffsetY:u=2,deepShadowOpacity:d=.3,midShadowOpacity:f=.5})=>U(X,{children:[V("text",{x:e,y:n,fontSize:i,fontWeight:r,fill:o,fillOpacity:d,textAnchor:s,dominantBaseline:a,transform:`translate(${l}, ${c})`,children:t}),V("text",{x:e,y:n,fontSize:i,fontWeight:r,fill:o,fillOpacity:f,textAnchor:s,dominantBaseline:a,transform:`translate(${h}, ${u})`,children:t}),V("text",{x:e,y:n,fontSize:i,fontWeight:r,fill:o,textAnchor:s,dominantBaseline:a,children:t})]});var GA=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const XA=t=>{var{width:e=25,height:n=25,colorPrimary:i="#6699FF",rotation:r=0,strokeWidth:o=4}=t,s=GA(t,["width","height","colorPrimary","rotation","strokeWidth"]);return V(Q,Object.assign({},s,{width:e,height:n,points:[{x:e/2,y:0},{x:e,y:n},{x:0,y:n}],fill:i,stroke:i,strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",transform:`rotate(${r} ${e/2} ${n/2})`}))},KA=240,ZA=U("filter",{id:"sequence-ascending-stairs-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[V("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),V("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),V("feOffset",{dx:"0",dy:"4"}),V("feGaussianBlur",{stdDeviation:"6"}),V("feComposite",{in2:"hardAlpha",operator:"out"}),V("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),V("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),V("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]});Mg("sequence-ascending-stairs-3d",{component:t=>{const{Title:e,Item:n,data:i,options:r,cubeWidth:o=KA}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null;if(0===l.length){const t=V(Au,{indexes:[0],x:0,y:0});return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[V(q,{children:ZA}),c,V(X,{children:V(Pu,{children:t})})]})}const h=du(V(Au,{indexes:[0]})),u=[],d=[],f=[],p=o/KA,g=180*p;return l.forEach((t,e)=>{const s=[e],a=hd(r,s),c=e*(o+-118),m=118*(l.length-1-e),y=`cube-gradient-bottom-${e}`,v=`cube-gradient-top-${e}`,x=`cube-gradient-stroke-${e}`;f.push(U(X,{x:c,y:m,id:`cube-${e}`,width:o,height:g,filter:"url(#sequence-ascending-stairs-3d-shadow-filter)",children:[U(q,{children:[U("linearGradient",{id:y,x1:"0",y1:"124.5",x2:"238.9",y2:"124.5",gradientUnits:"userSpaceOnUse",children:[V("stop",{offset:"0",stopColor:a,stopOpacity:"0.8"}),V("stop",{offset:"1",stopColor:a,stopOpacity:"0.4"})]}),U("linearGradient",{id:v,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[V("stop",{offset:"0",stopColor:a,stopOpacity:"0.9"}),V("stop",{offset:"1",stopColor:a,stopOpacity:"0.5"})]}),U("linearGradient",{id:x,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[V("stop",{offset:"0",stopColor:a}),V("stop",{offset:"1",stopColor:a,stopOpacity:"0.7"})]})]}),U(qu,{transform:`scale(${p})`,children:[V(K,{d:"M238.9 69.7a6 6 0 0 1-.1 1v.2l-.2.3v.3l-.1.3a6.2 6.2 0 0 1-.3.6l-.1.3-.2.3-.2.4-.3.5-.1.1a10.9 10.9 0 0 1-.8 1v.1l-.5.5h-.1l-.4.4-.3.3-.3.2-.3.3-.4.2a13 13 0 0 1-.7.5l-.4.3-.5.3-97.5 56.7-.7.4h-.2l-.6.4h-.1l-.8.4h-.2l-.6.4h-.2l-.8.3h-.2l-.5.3-.5.1-.5.1-.5.2h-.5a33.7 33.7 0 0 1-3.2.7h-.2l-1 .2h-1.6l-.7.1h-4.7l-.8-.1h-.2a38.2 38.2 0 0 1-2-.4h-.4l-.7-.2h-.4l-.7-.2-.4-.1a27.3 27.3 0 0 1-2.2-.7h-.2a44.2 44.2 0 0 1-.9-.3l-.5-.3-.4-.1-.5-.2-.3-.2-.5-.2-.3-.2-.8-.4L6.5 78C2.2 75.6 0 72.4 0 69v41.7c0 3.2 2.1 6.5 6.4 9l98.1 56.6a23.2 23.2 0 0 0 1 .6l.6.3.3.1.5.2.4.2.3.1h.2l.2.2a21.4 21.4 0 0 0 1.9.6l.3.1h.2l.7.2a77.6 77.6 0 0 1 1.1.3h.3l.7.2h.4a42.5 42.5 0 0 0 1 .2l1 .2h1.1l.4.1h2.1l.7.1h1.5a22 22 0 0 0 1.8-.2h.4l1.1-.1h.2l1.2-.2h.1l.3-.1.6-.1a12.5 12.5 0 0 0 1-.3h.5l.5-.2a29 29 0 0 0 1-.3h.2l.3-.2h.2a27 27 0 0 0 1.6-.7h.2l.8-.4a19.4 19.4 0 0 0 1.6-.9l97.5-56.7.3-.1.2-.2.4-.2.4-.3.3-.2.3-.3.4-.2.3-.3.3-.3h.1l.3-.3.5-.6h.1l.3-.5h.1v-.1l.4-.4v-.1l.4-.5v-.1l.1-.2.1-.2.2-.3.1-.3.1-.3.1-.1a6.9 6.9 0 0 0 .2-.8l.1-.3v-.4l.1-.3v-1l.2-41.4v.4Z",fill:`url(#${y})`}),V(K,{d:"M232.5 60.4c8.5 4.9 8.5 12.8.1 17.7l-97.5 56.7c-8.4 4.9-22 4.9-30.5 0L6.5 78C-2 73-2 65.3 6.4 60.4l97.5-56.7c8.4-5 22-5 30.5 0l98.1 56.7Z",fill:`url(#${v})`}),V(K,{d:"M119.1 0A31 31 0 0 0 104 3.7L6.4 60.4C-2 65.3-2 73.2 6.4 78l98.2 56.7c4.2 2.4 9.8 3.7 15.3 3.7a31 31 0 0 0 15.2-3.7L232.6 78c8.4-5 8.4-12.8 0-17.7L134.3 3.7A31.2 31.2 0 0 0 119.1 0Zm0 2.5c5.4 0 10.3 1.2 14 3.3l98.2 56.7c3.3 2 5.1 4.3 5.1 6.8 0 2.4-1.8 4.7-5 6.6l-97.5 56.7a28.3 28.3 0 0 1-14 3.4c-5.3 0-10.3-1.2-14-3.4L7.7 76c-3.3-1.9-5-4.3-5-6.7 0-2.4 1.7-4.8 5-6.7L105 5.8a29 29 0 0 1 14-3.3Z",fill:`url(#${x})`})]}),V(qA,{text:e+1,x:115,y:65,fontSize:56})]}));if(d.push(V(n,{indexes:s,datum:t,data:i,x:c+o+40,y:m+g/2,positionH:"normal"})),u.push(V(zu,{indexes:s,x:c+o-h.width/2,y:m-h.height/2})),0===e&&u.push(V(Au,{indexes:[0],x:c-30-h.width/2,y:m+g/2-h.height/2})),e<l.length-1){u.push(V(Au,{indexes:[e+1],x:c+o-h.width/2,y:(m+g/2+118*(l.length-1-(e+1))+g/2)/2-h.height/2}))}else u.push(V(Au,{indexes:[l.length],x:c+o+30-h.width/2,y:m+g/2-h.height/2}))}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[V(q,{children:ZA}),c,U(X,{x:0,y:0,children:[V(X,{children:f}),V(Vu,{children:d}),V(Pu,{children:u})]})]})},composites:["title","item"]});Mg("sequence-ascending-steps",{component:t=>{const{Title:e,Item:n,data:i,hGap:r=0,vGap:o=0}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null,h=du(V(n,{indexes:[0],data:i,datum:l[0]})),u=[],d=[],f=h.width+r,p=h.height/2+o,g=h.width/2,m=0+(l.length-1)*p;return l.forEach((t,e)=>{const o=g+e*f,s=m-e*p,a=[e];u.push(V(n,{indexes:a,datum:t,data:i,x:o,y:s})),d.push(V(zu,{indexes:a,x:o+h.width-30,y:s+h.height/2+10})),d.push(V(Au,{indexes:a,x:o+h.width+r/2,y:s-30}))}),U(Zu,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,U(X,{children:[V(Vu,{children:u}),V(Pu,{children:d})]})]})},composites:["title","item"]});Mg("sequence-circle-arrows",{component:t=>{const{Title:e,Item:n,data:i,options:r,radius:o=150,arrowSize:s=4,strokeWidth:a=10}=t,{title:l,desc:c,items:h=[]}=i,u=du(V(Au,{indexes:[0]})),d=ld(r);if(!n){const t=e?V(e,{title:l,desc:c}):null;return U(Zu,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[t,V(X,{children:V(Pu,{children:V(Au,{indexes:[0],x:0,y:0})})})]})}const f=h.length;if(0===f){const t=e?V(e,{title:l,desc:c}):null;return U(Zu,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[t,V(X,{children:V(Pu,{children:V(Au,{indexes:[0],x:0,y:0})})})]})}const p=du(V(n,{indexes:[0],data:i,datum:h[0]})),g=2*Math.PI/f,m=[];let y=1/0,v=1/0,x=-1/0,b=-1/0;for(let t=0;t<f;t++){const e=t*g-Math.PI/2,n=0+o*Math.cos(e),i=0+o*Math.sin(e);m.push({x:n,y:i}),y=Math.min(y,n),v=Math.min(v,i),x=Math.max(x,n),b=Math.max(b,i)}const w=[];for(let t=0;t<f;t++){const e=m[t],n=m[(t+1)%f],i=Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2)),r=Math.min(.5*i,100),o=(e.x+n.x)/2,s=(e.y+n.y)/2;y=Math.min(y,o-r/2),v=Math.min(v,s-r/2),x=Math.max(x,o+r/2),b=Math.max(b,s+r/2);const a=Math.atan2(s-0,o-0);let l,c;const h=180*(a<0?a+2*Math.PI:a)/Math.PI,d=r/2+20,g=o+Math.cos(a)*d,M=s+Math.sin(a)*d;h>=337.5||h<22.5?(l=g,c=M-p.height/2):h>=22.5&&h<67.5?(l=g,c=M):h>=67.5&&h<112.5?(l=g-p.width/2,c=M):h>=112.5&&h<157.5?(l=g-p.width,c=M):h>=157.5&&h<202.5?(l=g-p.width,c=M-p.height/2):h>=202.5&&h<247.5?(l=g-p.width,c=M-p.height):h>=247.5&&h<292.5?(l=g-p.width/2,c=M-p.height):(l=g,c=M-p.height),w.push({lineLength:i,circleBigW:r,midX:o,midY:s,itemX:l,itemY:c}),y=Math.min(y,l),v=Math.min(v,c),x=Math.max(x,l+p.width+u.width+5),b=Math.max(b,c+p.height)}const M=Math.max(0,-y),k=Math.max(0,-v),C=e?V(e,{title:l,desc:c}):null,O=[],j=[],E=[],_=[],S=m.map(t=>({x:t.x+M,y:t.y+k}));for(let t=0;t<f;t++){const e=S[t],n=S[(t+1)%f],i=(t+1)%f,o=[t],{lineLength:l,circleBigW:c,midX:h,midY:p}=w[t],g=Math.max(c-20,20),m=Math.max(.4*g,16),y=hd(r,o)||d,v=(n.x-e.x)/l,x=(n.y-e.y)/l,b=Math.min(5,(l-(10+s))/2),C=Math.max(0,e.x+v*b),j=Math.max(0,e.y+x*b),$=Math.max(0,n.x-v*b),A=Math.max(0,n.y-x*b),z=cg.A().x(t=>Math.max(0,t.x)).y(t=>Math.max(0,t.y)).curve(gg.A),P=z([{x:C,y:j},{x:$,y:A}])||"",L=`fork-arrow-${y.replace(/[^a-zA-Z0-9]/g,"")}-${t}`;_.push(V("marker",{id:L,viewBox:`${-s} ${.6*-s} ${1.2*s} ${1.2*s}`,refX:.08*-s,refY:0,markerWidth:s,markerHeight:s,orient:"auto",markerUnits:"strokeWidth",children:V("path",{d:`\n M ${.6*-s} ${.4*-s}\n L 0 0\n L ${.6*-s} ${.4*s}\n `,fill:"none",stroke:y,strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"})})),E.push(V(K,{d:P,stroke:y,strokeWidth:a,fill:"none",markerEnd:`url(#${L})`,strokeLinecap:"round","data-element-type":"shape"}));const I=h+M,T=p+k,R=ud({colorPrimary:y||d},r);E.push(V(G,{x:Math.max(0,I-c/2),y:Math.max(0,T-c/2),width:c,height:c,fill:R.colorPrimaryBg,"data-element-type":"shape"})),E.push(V(G,{x:Math.max(0,I-g/2),y:Math.max(0,T-g/2),width:g,height:g,fill:"#ffffff"})),E.push(V(Hu,{x:Math.max(0,I-m/2),y:Math.max(0,T-m/2),size:m,indexes:o,fill:y}));const B=Math.max(0,I-u.width/2),W=Math.max(0,T-u.height/2);O.push(V(Au,{indexes:[i],x:B,y:W}))}for(let t=0;t<f;t++){const e=[t],r=h[t],{itemX:o,itemY:s}=w[t],a=Math.max(0,o+M),l=Math.max(0,s+k);j.push(V(n,{indexes:e,datum:r,data:i,x:a,y:l}));const c=Math.max(0,a+p.width+5),d=Math.max(0,l+p.height/2-u.height/2);O.push(V(zu,{indexes:e,x:c,y:d}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[C,U(X,{x:0,y:0,children:[V(q,{children:_}),V(X,{children:E}),V(Vu,{children:j}),V(Pu,{children:O})]})]})},composites:["title","item"]});Mg("sequence-circular",{component:t=>{const{Title:e,Item:n,data:i,options:r,outerRadius:o=180,innerRadius:s=120,itemDistance:a=310,gapAngle:l=5,iconRadius:c=34,iconBgRadius:h=38,iconSize:u=36}=t,{title:d,desc:f,items:p=[]}=i,g=e?V(e,{title:d,desc:f}):null,m=Math.max(a+100,o+50),y=Math.min(a,o),v=du(V(Au,{indexes:[0]}));if(0===p.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,V(X,{children:V(Pu,{children:V(Au,{indexes:[0],x:m-20,y:y-20})})})]});const x=[],b=[],w=[],M=[],k=du(V(n,{indexes:[0],data:i,datum:p[0]})),C=(360-p.length*l)/p.length,O=(t,e,n,i,r,o)=>{const s=r*Math.PI/180,a=o*Math.PI/180,l=t+n*Math.cos(s),c=e+n*Math.sin(s),h=o-r<=180?"0":"1";return[`M ${l} ${c}`,`L ${t+i*Math.cos(s)} ${e+i*Math.sin(s)}`,`A ${i} ${i} 0 ${h} 1 ${t+i*Math.cos(a)} ${e+i*Math.sin(a)}`,`L ${t+n*Math.cos(a)} ${e+n*Math.sin(a)}`,`A ${n} ${n} 0 ${h} 0 ${l} ${c}`,"Z"].join(" ")},j=({centerX:t,outerRadius:e,angleRad:n,btnBounds:i})=>({x:t+(e+20)*Math.cos(n)-i.width/2,y:y+(e+20)*Math.sin(n)-i.height/2}),E=6/((s+o)/2)*(180/Math.PI);p.forEach((t,e)=>{const d=[e],f=e*(C+l)+270,p=f+C,g=(f+p)/2,_=g*Math.PI/180,S=hd(r,d),$=S+"40",A=O(m,y,s,o,f,p);w.push(V(K,{d:A,fill:$,width:2*o,height:2*o,"data-element-type":"shape"}));const z=O(m,y,s+6,o-6,f+E,p-E);w.push(V(K,{d:z,fill:S,width:2*o,height:2*o,"data-element-type":"shape"}));const P=(s+o)/2,L=m+P*Math.cos(_),I=y+P*Math.sin(_);M.push(V(G,{x:L-h,y:I-h,width:2*h,height:2*h,fill:"#ffffff","data-element-type":"shape"})),M.push(V(G,{x:L-c,y:I-c,width:2*c,height:2*c,fill:S,"data-element-type":"shape"})),t.icon&&M.push(V(Hu,{x:L-u/2,y:I-u/2,indexes:d,size:u,fill:"#fff"}));const T=(g%360+360)%360,R=T>=75&&T<=105;let B,W="normal",H="normal";R?(B=T,H="normal",W="center"):T>=270||T<=90?(B=T>=270?(T-270)/90*60-60:T/90*60,W="normal"):(B=120+(T-90)/180*120,W="flipped");const N=B*Math.PI/180,F=m+a*Math.cos(N)-k.width/2;let D=y+a*Math.sin(N)-k.height/2;R&&(D=y+o+k.height/2),b.push(V(n,{indexes:d,datum:t,data:i,x:F,y:D,positionH:W,positionV:H}));const U=a+40,Y=m+U*Math.cos(N)-v.width/2,q=y+U*Math.sin(N)-v.height/2;x.push(V(zu,{indexes:d,x:Y,y:q}));const X=(f+C+l/2)*Math.PI/180,{x:Z,y:Q}=j({centerX:m,outerRadius:o,angleRad:X,btnBounds:v});x.push(V(Au,{indexes:[e+1],x:Z,y:Q}))});const _=(270-l/2)*Math.PI/180,{x:S,y:$}=j({centerX:m,outerRadius:o,angleRad:_,btnBounds:v});return x.unshift(V(Au,{indexes:[0],x:S,y:$})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:70,children:[g,U(X,{children:[V(X,{children:w}),V(X,{children:M}),V(Vu,{children:b}),V(Pu,{children:x})]})]})},composites:["title","item"]});Mg("sequence-color-snake-steps",{component:t=>{const{Title:e,Item:n,data:i,gap:r=0,rowGap:o=0,itemsPerRow:s=3,circleStrokeWidth:a=18,options:l}=t,{title:c,desc:h,items:u=[]}=i,d=e?V(e,{title:c,desc:h}):null,f=ld(l),p=du(V(Au,{indexes:[0]})),g=du(V(n,{indexes:[0],data:i,datum:u[0],positionH:"center"})),m=[],y=[],v=[],x=(o+g.height)/2,b=x;if(u.forEach((t,e)=>{const c=Math.floor(e/s),h=e%s,d=c%2==1,w=(d?s-1-h:h)*(g.width+r)+b,M=c*(g.height+o),k=[e];if(y.push(V(n,{indexes:k,datum:t,data:i,x:w,y:M,positionH:"center",positionV:e%2==1?"flipped":"normal"})),m.push(V(zu,{indexes:k,x:w+(g.width-p.width)/2,y:M+g.height+10})),0===e&&m.push(V(Au,{indexes:k,x:w+(g.width-p.width)/2,y:M-p.height-10})),e<u.length-1){if(c===Math.floor((e+1)/s))m.push(V(Au,{indexes:[e+1],x:w+(g.width-p.width)/2,y:M-p.height-10}));else{const t=M+g.height/2,n=M+g.height+o+g.height/2;let i,r,s;d?(i=w,s=0,r=`M ${i} ${t} A ${x} ${x} 0 0 ${s} ${i} ${n}`):(i=w+g.width,s=1,r=`M ${i} ${t} A ${x} ${x} 0 0 ${s} ${i} ${n}`);const c=n-t,h=hd(l,k),u=hd(l,[e+1]),y=`gradient-arc-${e}`;v.push(U(D,{children:[V(q,{children:U("linearGradient",{id:y,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:h||f}),V("stop",{offset:"100%",stopColor:u||f})]})}),V(K,{d:r,stroke:`url(#${y})`,strokeWidth:a,fill:"none",width:b,height:c,"data-element-type":"shape"})]}));m.push(V(Au,{indexes:[e+1],x:d?i-x-p.width/2:i+x-p.width/2,y:M+g.height+o/2-p.height/2}))}}}),u.length>0){const t=u.length-1,e=Math.floor(t/s),n=t%s;m.push(V(Au,{indexes:[u.length],x:(e%2==1?s-1-n:n)*(g.width+r)+(g.width-p.width)/2,y:e*(g.height+o)+g.height+p.height+20}))}if(u.length/s>2){const t=(o+g.height)/2,e=hd(l,[0]);v.push(V(J,{x:0,y:g.height/2-a/2,width:t,height:a,fill:e||f,"data-element-type":"shape"}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,U(X,{width:s*g.width+(s-1)*r+2*x,height:Math.ceil(u.length/s)*(g.height+o),children:[V(X,{children:v}),V(Vu,{children:y}),V(Pu,{children:m})]})]})},composites:["title","item"]});const QA=(t,e)=>0===t?0:1===t?e/2:e/2+e/2*3*(t-1),JA=(t,e,n)=>{if(t)return 0;return 2*n+(0===e?2:n)};Mg("sequence-cylinders-3d",{component:t=>{const{Title:e,Item:n,data:i,options:r,cylinderRx:o=28,cylinderRy:s=18,baseHeight:a=120,heightIncrement:l=40,depthSpacing:c=60,itemVerticalAlign:h="top",itemVerticalOffset:u=-12,firstDecorationWidth:d=90}=t,{title:f,desc:p,items:g=[]}=i,m=e?V(e,{title:f,desc:p}):null,y=du(V(n,{indexes:[0],data:i,datum:g[0],positionH:"center"})),v=du(V(Au,{indexes:[0]})),x=ld(r),b=Math.max(6,.15*c),w=((t,e,n,i,r,o,s,a)=>{const l=i+(t-1)*r+t*Math.max(6,.15*o)+100+50,c=l-100;let h=0,u=0,d=0,f=0;if(t>0){const i=0;let r=1/0,o=-1/0;for(let e=0;e<t;e++){const t=e%2==0,s=Math.floor(e/2),a=QA(s,n),l=i+JA(t,s,n)+a;r=Math.min(r,l-n),o=Math.max(o,l+n)}h=0,f=h+e.width+a+s+n,d=f-i+(r+o)/2,u=d+(d-(h+e.width/2))-e.width/2}return{canvasHeight:l,startY:c,leftItemAlignedX:h,rightItemAlignedX:u,cylinderAreaStartX:f}})(g.length,y,o,a,l,c,d,10),{startY:M,leftItemAlignedX:k,rightItemAlignedX:C,cylinderAreaStartX:O}=w,j=[],E=[];g.forEach((t,e)=>{const c=hd(r,[e])||x;j.push(...((t,e)=>{const n=(0,wl.A)(e),i=[];return i.push(U("linearGradient",{id:`cylinderGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:n.toRgbString(),stopOpacity:.7}),V("stop",{offset:"40%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.65}),V("stop",{offset:"70%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:.6}),V("stop",{offset:"100%",stopColor:n.clone().lighten(20).toRgbString(),stopOpacity:.55})]})),i.push(U("linearGradient",{id:`topGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:1}),V("stop",{offset:"100%",stopColor:"#fafafa",stopOpacity:1})]})),i.push(U("linearGradient",{id:`bottomGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:n.clone().darken(8).toRgbString(),stopOpacity:.75}),V("stop",{offset:"50%",stopColor:n.clone().darken(5).toRgbString(),stopOpacity:.7}),V("stop",{offset:"100%",stopColor:n.clone().darken(12).toRgbString(),stopOpacity:.65})]})),i.push(U("linearGradient",{id:`numberGradient${t}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:n.clone().darken(0).toRgbString(),stopOpacity:.9}),V("stop",{offset:"50%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.85}),V("stop",{offset:"100%",stopColor:n.clone().lighten(10).toRgbString(),stopOpacity:.8})]})),i.push(U("linearGradient",{id:`glowGradient${t}`,x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:[V("stop",{offset:"0%",stopColor:"#FFFFFF",stopOpacity:.2}),V("stop",{offset:"90%",stopColor:"#FFFFFF",stopOpacity:0})]})),i})(e,c));const d=((t,e,n,i,r,o,s)=>{const a=t%2==0,l=Math.floor(t/2),c=QA(l,e),h=o-t*r,u=n+t*i,d=h-u;return{x:s+JA(a,l,e)+c,y:d,height:u,bottomY:h,topY:d}})(e,o,a,l,b,M,O),f=((t,e,n,i)=>{const{x:r,topY:o,bottomY:s}=e,a=[];return a.push(V("ellipse",{id:`cylinder-bottom-${t}`,cx:r,cy:s,rx:n,ry:i,fill:`url(#bottomGradient${t})`,opacity:.7})),a.push(V(K,{id:`cylinder-body-${t}`,d:`\n M ${r-n} ${o}\n A ${n} ${i} 0 0 0 ${r} ${o+i}\n A ${n} ${i} 0 0 0 ${r+n} ${o}\n L ${r+n} ${s}\n A ${n} ${i} 0 0 1 ${r} ${s+i}\n A ${n} ${i} 0 0 1 ${r-n} ${s}\n Z\n `,fill:`url(#cylinderGradient${t})`,stroke:"none"})),a.push(V(J,{id:`cylinder-glow-${t}`,x:r-n,y:o-3*i,width:2*n,height:3*i,fill:`url(#glowGradient${t})`})),a.push(V("ellipse",{id:`cylinder-top-${t}`,cx:r,cy:o,rx:n,ry:i,fill:`url(#topGradient${t})`})),a.push(V(su,{id:`cylinder-number-${t}`,width:50,height:50,fontFamily:"Arial Black, sans-serif",fontSize:32,fontWeight:900,fill:`url(#numberGradient${t})`,alignHorizontal:"center",alignVertical:"middle",transform:`translate(${r-10}, ${o-15}) matrix(1, 0, -0.6, 0.6, 0, 0)`,children:t+1})),a})(e,d,o,s),{itemPos:p,lineStartX:g,lineEndX:m,lineY:w}=((t,e,n,i,r,o,s,a,l)=>{const c=t%2==0,h=e.topY+.05*e.height;let u,d,f;c?(u=r,d=u+n.width+l):(u=o,d=u-l),f="top"===s?h:"bottom"===s?h-n.height:h-n.height/2,f+=a;const p=c?e.x-i:e.x+i;return{itemPos:{x:u,y:f},lineStartX:c?p-l:p+l,lineEndX:d,lineY:h}})(e,d,y,o,k,C,h,u,10),_=((t,e,n,i,r)=>{const o=[];return o.push(V("circle",{id:`decoration-dot-start-${t}`,cx:e,cy:i,r:2,fill:r})),o.push(V("line",{id:`decoration-line-${t}`,x1:e,y1:i,x2:n,y2:i,stroke:r,strokeWidth:1,opacity:.8})),o.push(V("circle",{id:`decoration-dot-end-${t}`,cx:n,cy:i,r:2,fill:r,opacity:.9})),o})(e,g,m,w,c);f.push(..._);const S=V(n,{indexes:[e],datum:t,data:i,x:p.x,y:p.y,positionH:e%2==0?"flipped":"normal"}),$=[V(zu,{indexes:[e],x:p.x+y.width/2-v.width/2,y:p.y+y.height+10}),V(Au,{indexes:[e],x:p.x+y.width/2-v.width/2,y:p.y-v.height-10})];E[e]={cylinderNodes:f,itemNode:S,btnNodes:$,itemX:p.x,itemY:p.y}});let _=1/0,S=1/0,$=-1/0,A=-1/0;E.forEach(t=>{const{itemX:e,itemY:n}=t;_=Math.min(_,e),S=Math.min(S,n),$=Math.max($,e+y.width),A=Math.max(A,n+y.height)});const z=$-_,P=A-S,L=[V(q,{children:j})],I=[],T=((t,e,n,i,r)=>{if(0===t)return null;const o=[];for(let s=0;s<t;s++){const t=s%2==0,a=Math.floor(s/2),l=QA(a,e),c=JA(t,a,e);o.push({x:n+c+l,y:i-s*r})}const s=o[0],a=o[o.length-1],l=t>5?16*t:100,c=s.x-e-l,h=s.x+e+l,u=s.y+6+l/6,d=a.x+e+l,f=a.y+6-l/6,p=`\n M ${c} ${u}\n L ${h} ${u}\n L ${d} ${f}\n L ${a.x-e-l} ${f}\n Z\n `,g=`\n M ${h} ${u}\n L ${h} ${u+6}\n L ${d} ${f+6}\n L ${d} ${f}\n Z\n `,m=`\n M ${c} ${u}\n L ${h} ${u}\n L ${h} ${u+6}\n L ${c} ${u+6}\n Z\n `,y=U(D,{children:[U("linearGradient",{id:"basePlateTopGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:"#fafafa",stopOpacity:1}),V("stop",{offset:"50%",stopColor:"#ffffff",stopOpacity:.98}),V("stop",{offset:"100%",stopColor:"#ececec",stopOpacity:.95})]}),U("linearGradient",{id:"basePlateFrontGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:"#e0e0e0",stopOpacity:.95}),V("stop",{offset:"50%",stopColor:"#d2d2d2",stopOpacity:.93}),V("stop",{offset:"100%",stopColor:"#c5c5c5",stopOpacity:.9})]}),U("linearGradient",{id:"basePlateSideGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:"#b8b8b8",stopOpacity:.92}),V("stop",{offset:"50%",stopColor:"#c0c0c0",stopOpacity:.88}),V("stop",{offset:"100%",stopColor:"#adadad",stopOpacity:.85})]})]});return U(X,{children:[V(q,{children:y}),V(K,{id:"base-plate-front",d:m,fill:"url(#basePlateFrontGradient)",stroke:"#c5c5c5",strokeWidth:.3,opacity:.92}),V(K,{id:"base-plate-side",d:g,fill:"url(#basePlateSideGradient)",stroke:"#aaaaaa",strokeWidth:.3,opacity:.88}),V(K,{id:"base-plate-top",d:p,fill:"url(#basePlateTopGradient)",stroke:"#e5e5e5",strokeWidth:.5,opacity:.93})]})})(g.length,o,O,M,b);T&&L.push(T);for(let t=g.length-1;t>=0;t--){const e=E[t];e&&(L.push(U(X,{children:[V(X,{children:e.cylinderNodes}),e.itemNode]})),I.push(...e.btnNodes))}if(g.length>0){const t=g.length%2==0,e=Math.floor(g.length/2),n=QA(e,o),i=JA(t,e,o);I.push(V(Au,{indexes:[g.length],x:O+i+n,y:M-g.length*b-100}))}return U(Zu,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,U(X,{width:z,height:P,children:[V(Vu,{children:L}),V(Pu,{children:I})]})]})},composites:["title","item"]});const tz=160,ez=260,nz=148,iz=100,rz=100,oz=0,sz=80,az=100,lz=130,cz=8,hz=40,uz=5,dz=.6,fz=3;function pz(t,e,n){return(t+7*e+13*n)%100}function gz(t,e,n,i,r,o,s,a){return{x:Math.max(r,Math.min(t+n,o)),y:Math.max(s,Math.min(e+i,a))}}function mz({count:t,rectX:e,rectY:n,rectWidth:i,rectHeight:r,seed:o}){const s=[],a=cz/2,{cols:l,rows:c}=function(t){const e=Math.ceil(Math.sqrt(1.5*t));return{cols:e,rows:Math.ceil(t/e)}}(t),h=(i-2*a)/(l+1),u=(r-2*a)/(c+1);let d=0;for(let f=0;f<c&&d<t;f++)for(let c=0;c<l&&d<t;c++){const t=pz(o,f,c),l=t%16-8,p=3*t%12-6,g=e+a+(c+1)*h+(f%2==1?h/2:0),m=n+a+(f+1)*u,{x:y,y:v}=gz(g,m,l,p,e+a,e+i-a,n+a,n+r-a);s.push({x:y,y:v,colorIndex:d}),d++}return s}function yz(){const t={x:40,y:25},e={x:160,y:75},n={x:40,y:205},i={x:160,y:255},r=[];for(let o=0;o<=12;o++){const s=o/12,a={x:t.x+(n.x-t.x)*s,y:t.y+(n.y-t.y)*s},l={x:e.x+(i.x-e.x)*s,y:e.y+(i.y-e.y)*s};r.push(`M${a.x} ${a.y}L${l.x} ${l.y}`);const c={x:t.x+(e.x-t.x)*s,y:t.y+(e.y-t.y)*s},h={x:n.x+(i.x-n.x)*s,y:n.y+(i.y-n.y)*s};r.push(`M${c.x} ${c.y}L${h.x} ${h.y}`)}return r.join("")}function vz(t,e){return t.map(t=>V(K,{d:"M4 0L8 4L4 8L0 4Z",fill:hd(e,[t.colorIndex]),x:t.x,y:t.y,width:cz,height:cz,"data-element-type":"shape"}))}Mg("sequence-filter-mesh",{component:t=>{const{Title:e,Item:n,data:i,gap:r=20,options:o}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null,h=du(V(Au,{indexes:[0]})),u=du(V(n,{indexes:[0],data:i,datum:l[0],width:tz,positionH:"center"})),d=[],f=[],p=[],g=ez+r,m=g+u.height+10;if(l.forEach((t,e)=>{const r=e*tz,s=[e],a=hd(o,s),c=function(t,e){return e<=1?hz:Math.round(hz-t/(e-1)*(hz-uz))}(e,l.length),u=mz({count:c,rectX:oz,rectY:sz,rectWidth:az,rectHeight:lz,seed:100*e});d.push(function(t,e,n,i,r){return U(X,{x:e,y:0,width:tz,height:ez,children:[U(qu,{children:[V(K,{d:yz(),stroke:"#D9D9D9",strokeWidth:2}),V(K,{d:`M${rz} 25V260`,stroke:"#BFBFBF",strokeWidth:2,strokeLinecap:"round"}),V(J,{x:oz,y:sz,width:az,height:lz,fill:"#FFCB0E",fillOpacity:.2})]}),V(D,{children:vz(i,r)}),V(su,{x:rz-25,y:0,width:50,height:20,fontSize:20,fontWeight:"bold",alignHorizontal:"center",alignVertical:"top",fill:n,children:String(t+1).padStart(2,"0")})]})}(e,r,a,u,o)),e===l.length-1&&d.push(function(t,e){const n=sz+lz/2-nz/2,i=mz({count:Math.max(Math.round(uz*dz),fz),rectX:0,rectY:14,rectWidth:57,rectHeight:120,seed:999});return U(X,{x:t+tz,y:n,children:[V(K,{d:"M0 13.9679H57.1429V0L100 74L57.1429 148V134.032H0V13.9679Z",width:iz,height:nz,fill:"#FFCB0E",fillOpacity:.2,"data-element-type":"shape"}),V(D,{children:vz(i,e)})]})}(r,o)),f.push(V(n,{indexes:s,datum:t,data:i,width:tz,x:r+rz-tz/2,y:g,positionH:"center"})),p.push(V(zu,{indexes:s,x:r+rz-h.width/2,y:m})),e<l.length-1&&p.push(V(Au,{indexes:[e+1],x:r+tz-h.width/2,y:m}))}),l.length>0){p.unshift(V(Au,{indexes:[0],x:-h.width/2,y:m}));p.push(V(Au,{indexes:[l.length],x:(l.length-1)*tz+tz-h.width/2,y:m}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,U(X,{width:tz*l.length+iz,height:ez+r+u.height,children:[V(X,{children:d}),V(Vu,{children:f}),V(Pu,{children:p})]})]})},composites:["title","item"]});const xz=t=>Math.round(1e10*t)/1e10,bz=(t,e)=>xz(Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))),wz=Math.PI,Mz=2*wz,kz=(t,e,n,i,r,o)=>{const s=Math.atan2(t.y-e.y,t.x-e.x),a=Math.atan2(n.y-e.y,n.x-e.x),l=Math.acos((i*i+o*o-r*r)/(2*i*o)),c=1/Math.tan(l/2),h=((t,e)=>{const n=e-t;return n>wz&&n<Mz||n<0&&n>-wz?-1:1})(s,a);return{prev:s,next:a,main:l,vel:c,dir:h,bis:s+h*l/2}},Cz=Math.PI,Oz=(t,e,n)=>t.reduce((t,i)=>{const{x:r,y:o,angle:{prev:s,next:a},arc:{x:l,y:c,radius:h}}=i,u=-1*i.angle.dir,d=s+u*Cz/2,f=(u*Cz+a-s)%Cz,p="LENGTH"===e?Math.round(u*f*h/n):(n||1)-1,g=f/p,m=[];if(!p||!g)return t.concat({x:r,y:o});for(let t=0;t<=p;t++)m.push({x:l+Math.cos(d+g*t)*h,y:c+Math.sin(d+g*t)*h});return t.concat(m)},[]),jz=(t,e=0)=>{const n=t.length,i=[],r=[],o=[];t.forEach((s,a)=>{const l=t[(a-1+n)%n],c=t[(a+1)%n],h=bz(l,s),u=bz(l,c),d=bz(s,c),f=kz(l,s,c,h,u,d);0===f.main&&(f.main=Number.EPSILON,f.vel=Number.MAX_SAFE_INTEGER),f.main===wz&&(f.vel=0);const p={x:s.x,y:s.y,angle:f,offset:0,arc:{radius:e,hit:e,lim:Math.min(d/f.vel,h/f.vel,s.r||0)},in:{length:h,rest:h},out:{length:d,rest:d},locked:!1,id:a,get prev(){return i[(a-1+n)%n]},get next(){return i[(a+1)%n]}};isNaN(f.main)&&(f.main=0,f.bis=f.prev||f.next,o.push(p)),"number"==typeof s.r&&(0===s.r?o.push(p):r.push(p)),i.push(p)}),o.forEach(t=>{t.angle.vel=0,t.arc.radius=0,Sz(t)}),i.forEach(t=>{t.arc.hit=Math.min(t.out.rest/(t.angle.vel+t.next.angle.vel),t.in.rest/(t.angle.vel+t.prev.angle.vel))});let s=$z(r);for(;s;)Ez(s),s=$z(r);for(s=$z(i);s;)_z(s,e),s=$z(i);const a=i.map(t=>{const e=t.arc.radius/Math.sin(t.angle.main/2);return{id:t.id,x:t.x,y:t.y,angle:{main:xz(t.angle.main),prev:t.angle.prev,next:t.angle.next,bis:t.angle.bis,dir:t.angle.dir},offset:xz(t.offset),arc:{radius:xz(t.arc.radius),x:t.x+(Math.cos(t.angle.bis)*e||0),y:t.y+(Math.sin(t.angle.bis)*e||0)},in:{length:t.in.length,x:t.x+Math.cos(t.angle.prev)*t.offset,y:t.y+Math.sin(t.angle.prev)*t.offset},out:{length:t.out.length,x:t.x+Math.cos(t.angle.next)*t.offset,y:t.y+Math.sin(t.angle.next)*t.offset},get prev(){return a[(t.id-1+n)%n]},get next(){return a[(t.id+1)%n]}}});return a},Ez=t=>{const{prev:e,next:n}=t;t.arc.radius=e.locked&&!n.locked?Math.min(Math.max((t.out.length-n.arc.lim*n.angle.vel)/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel)),t.in.rest/t.angle.vel,t.arc.lim):n.locked&&!e.locked?Math.min(Math.max((t.in.length-e.arc.lim*e.angle.vel)/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel)),t.out.rest/t.angle.vel,t.arc.lim):n.locked&&e.locked?Math.min(t.in.rest/t.angle.vel,t.out.rest/t.angle.vel,t.arc.lim):Math.min(Math.max((t.in.length-e.arc.lim*e.angle.vel)/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel)),Math.max((t.out.length-n.arc.lim*n.angle.vel)/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel)),t.arc.lim),Sz(t)},_z=(t,e)=>{if(e>t.arc.hit){const{prev:e,next:n}=t;t.arc.radius=e.locked&&!n.locked?Math.max(Math.min(t.in.rest/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel),t.arc.radius),0):n.locked&&!e.locked?Math.max(Math.min(t.out.rest/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel),t.arc.radius),0):n.locked&&e.locked?Math.max(Math.min(t.in.rest/t.angle.vel,t.out.rest/t.angle.vel,t.arc.radius),0):t.arc.hit}Sz(t)},Sz=t=>{const{prev:e,next:n}=t;t.offset=t.arc.radius*t.angle.vel,e.out.rest-=t.offset,t.in.rest-=t.offset,t.out.rest-=t.offset,n.in.rest-=t.offset,t.locked=!0,e.arc.hit=Math.min(e.in.length/(e.angle.vel+e.prev.angle.vel),e.in.rest/e.angle.vel,e.out.rest/e.angle.vel),n.arc.hit=Math.min(n.out.length/(n.angle.vel+n.next.angle.vel),n.out.rest/n.angle.vel,n.in.rest/n.angle.vel)},$z=t=>t.reduce((t,e)=>e.locked?t:t?e.arc.hit<t.arc.hit?e:t:e,null);Mg("sequence-funnel",{component:t=>{const{Title:e,Item:n,data:i,gap:r=10,width:o=700,funnelWidth:s,itemHeight:a=60,minBottomRatio:l=.25,options:c}=t,{title:h,desc:u,items:d=[]}=i,f=e?V(e,{title:h,desc:u}):null;if(0===d.length)return V(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:f});const p=ud(c.themeConfig),g=null!=s?s:.55*o,m=o-g,y=1.25*a,v=d.length*y+(d.length-1)*r,x=g*l,b=d.map((t,e)=>{const o=[e],s=hd(c,[e])||p.colorPrimary,{points:l,topWidth:h}=function(t,e,n,i,r,o){const s=t/2,a=o*(n+i),l=t-e,c=t-l*(a/r),h=t-l*((a+n)/r),u={x:s-c/2,y:0},d={x:s+c/2,y:0},f={x:s+h/2,y:n};return{points:[u,d,f,{x:s-h/2,y:n}],topWidth:c,bottomWidth:h}}(g,x,y,r,v,e),u=jz(l,6),d=Oz(u,"AMOUNT",10),f=g/2,b=e*(y+r),w=f+h/2,M=w-25,k=m+25-10,C=b+(y-a)/2,O=w+15,j=k-25-15,E=C,_=f-16,S=b+y/2-16,$=`${s.replace("#","")}-funnel-${e}`;return{background:V(J,{x:M,y:C,width:k,height:a,ry:"8",fill:(0,wl.A)(s).setAlpha(.1).toRgbString(),"data-element-type":"shape"}),funnel:[V(q,{children:U("linearGradient",{id:$,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[V("stop",{offset:"0%",stopColor:(0,wl.A)(s).lighten(10).toString()}),V("stop",{offset:"100%",stopColor:s})]})}),V(Q,{points:d,fill:`url(#${$})`,y:b,"data-element-type":"shape",style:{filter:"drop-shadow(0px 2px 3px rgba(0,0,0,0.15))"}})],icon:V(Hu,{indexes:o,x:_,y:S,size:32,fill:"#fff"}),item:V(n,{indexes:o,datum:t,data:i,x:O,y:E,width:j,height:a,positionV:"middle"}),btnRemove:V(zu,{indexes:o,x:M+k,y:C})}}),w=V(Au,{indexes:[d.length],x:o/2,y:v+10});return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,U(X,{width:o,height:v+40,children:[V(X,{children:b.map(t=>t.background)}),V(X,{children:b.flatMap(t=>t.funnel)}),V(X,{children:b.map(t=>t.icon)}),V(Vu,{children:b.map(t=>t.item)}),U(Pu,{children:[b.map(t=>t.btnRemove),w]})]})]})},composites:["title","item"]});Mg("sequence-horizontal-zigzag",{component:t=>{const{Title:e,Item:n,data:i,gap:r=30,cardPadding:o=10,options:s}=t,{title:a,desc:l,items:c=[]}=i,h=e?V(e,{title:a,desc:l}):null,u=ld(s),d=ud({colorPrimary:u},s),f=du(V(Au,{indexes:[0]})),p=du(V(n,{indexes:[0],data:i,datum:c[0],positionH:"center"})),g=[],m=[],y=[],v=p.width+2*o,x=p.height+2*o+30,b=Math.max(f.height+20,40),w=40;if(c.forEach((t,e)=>{const a=e%2==0,l=e*(v+r);let h;h=a?e%4==2?b:b+w:b+w+60;const M=[e],k=hd(s,M)||u;if(a){const t=V(J,{x:l,y:h,width:v,height:x,fill:k===u?d.colorPrimaryBg||"#E8F3FF":`${k}20`,rx:20,ry:20});y.push(t)}m.push(V(n,{indexes:M,datum:t,data:i,x:l+o,y:h+o,positionH:"center",positionV:"normal"}));const C=l+(v-(8*c.length+6*(c.length-1)))/2,O=h+p.height+20;for(let t=0;t<c.length;t++){y.push(V(G,{x:C+14*t,y:O,width:8,height:8,fill:t===e?k:"transparent",stroke:k,strokeWidth:2}))}g.push(V(zu,{indexes:M,x:l+(v-f.width)/2,y:h+x+10})),g.push(V(Au,0===e?{indexes:M,x:l+(v-f.width)/2,y:h-f.height-10}:{indexes:M,x:l-r/2-f.width/2,y:b-f.height-10}))}),c.length>0){const t=[],e=35,n=r/2,i=6,o=0-n,a=b+w+x/2;t.push(`M ${o} ${a-i}`),c.forEach((o,s)=>{const a=s%2==0,l=s*(v+r);let c;c=a?s%4==2?b:b+w:b+w+60;const h=l-n,u=l+v+n,d=c-n,f=c+x+n,p=c+x/2;a?(t.push(`L ${h} ${d+e}`),t.push(`Q ${h} ${d} ${h+e} ${d}`),t.push(`L ${u-e} ${d}`),t.push(`Q ${u} ${d} ${u} ${d+e}`),t.push(`L ${u} ${p-i}`)):(t.push(`L ${h} ${p}`),t.push(`L ${h} ${f-e}`),t.push(`Q ${h} ${f} ${h+e} ${f}`),t.push(`L ${u-e} ${f}`),t.push(`Q ${u} ${f} ${u} ${f-e}`),t.push(`L ${u} ${p+i}`))});const l=c.length-1;let h;h=l%2==0?l%4==2?b:b+w:b+w+60;const d=l*(v+r)+v+n,f=h+x/2,p=t.join(" "),g="gradient-zigzag-path",m=hd(s,[0])||u,M=hd(s,[c.length-1])||u,k=c.map((t,e)=>V("stop",{offset:`${e/(c.length-1)*100}%`,stopColor:hd(s,[e])||u}));y.unshift(U(D,{children:[V(q,{children:V("linearGradient",{id:g,x1:o,y1:a,x2:d,y2:f,gradientUnits:"userSpaceOnUse",children:k})}),V(K,{d:p,stroke:`url(#${g})`,strokeWidth:2,fill:"none",width:(c.length-1)*(v+r)+v+2*n,height:x+120})]})),y.unshift(V(G,{x:o-i,y:a-i,width:2*i,height:2*i,fill:"transparent",stroke:m,strokeWidth:2})),y.unshift(V(G,{x:d-i,y:f-i,width:2*i,height:2*i,fill:"transparent",stroke:M,strokeWidth:2}))}if(c.length>0){g.push(V(Au,{indexes:[c.length],x:(c.length-1)*(v+r)+v+(r-f.width)/2,y:b-f.height-10}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,U(X,{children:[V(qu,{children:y}),V(Vu,{children:m}),V(Pu,{children:g})]})]})},composites:["title","item"]});const Az=350,zz=80,Pz=2,Lz=2,Iz=40,Tz=60,Rz=10;function Bz(t){const{width:e,height:n,colorPrimary:i}=t,r=i,o=wl.A.mix(i,"#000",20).toHexString(),s=wl.A.mix(i,"#fff",50).toHexString(),a=wl.A.mix(s,"#000",15).toHexString();const{leftRipples:l,rightRipples:c,leftBottom:h,rightBottom:u,peak:d,centerBottom:f,leftEdge:p,centerSnow:g,rightEdge:m}=function(t,e){const n={x:0,y:e},i={x:t,y:e},r={x:t/2,y:0},o={x:t/2,y:e},s=.35*e,a=s/e,l={x:r.x*(1-a)+n.x*a,y:s},c={x:r.x,y:s},h={x:r.x*(1-a)+i.x*a,y:s},u=[{position:.25,offset:.1},{position:.45,offset:-.02},{position:.6,offset:.04},{position:.75,offset:-.1}].map(t=>({x:l.x+(h.x-l.x)*t.position,y:s+e*t.offset,position:t.position,offset:t.offset}));u.sort((t,e)=>t.position-e.position);const d=u.filter(t=>t.x<=c.x),f=u.filter(t=>t.x>c.x);return{leftBottom:n,rightBottom:i,peak:r,centerBottom:o,snowLineY:s,leftEdge:l,centerSnow:c,rightEdge:h,leftRipples:d,rightRipples:f}}(e,n),y=[d,p,...l,g],v=[d,g,...c,m],x=[p,...l,g,f,h],b=[g,...c,m,u,f],w=t=>t.map(t=>`${t.x},${t.y}`).join(" ");return U(qu,Object.assign({},t,{children:[V("polygon",{points:w(y),fill:s}),V("polygon",{points:w(v),fill:a}),V("polygon",{points:w(x),fill:r}),V("polygon",{points:w(b),fill:o})]}))}function Wz(t){const e={tiny:27,small:48,medium:54,large:72}[t]||54,n=.7*e,i=e-n,r=.8*n,o=r/6,s=(r-o)/2,a=n;return U(qu,{width:r,height:e,children:[V("ellipse",{cx:r/2,cy:n/2,rx:r/2,ry:n/2,fill:"#17C76F",clipPath:"inset(0 50% 0 0)"}),V("ellipse",{cx:r/2,cy:n/2,rx:r/2,ry:n/2,fill:"#139B57",clipPath:"inset(0 0 0 50%)"}),V("rect",{x:s,y:a,width:o,height:i,fill:"#737373"})]})}function Hz(t){const{width:e,height:n}=t,i=e/2,r=n/2,o=.28*Math.min(e,n),s=.14*Math.min(e,n),a=.07*Math.min(e,n),l=r-a/2,c=.4*a,h=Array.from({length:8},(t,e)=>V("rect",{x:0,y:l,width:s,height:a,rx:c,ry:c,fill:"#FFCB0E",transform:`rotate(${45*e}, ${i}, ${r})`}));return U(qu,Object.assign({},t,{children:[V("circle",{cx:i,cy:r,r:o,fill:"#FFCB0E"}),...h]}))}function Nz(t){return"single"===t.type?V(qu,Object.assign({},t,{width:54,height:36,children:V("path",{d:"M10.2635 13.3806C11.0019 9.99045 12.7381 6.91002 15.2405 4.55004C17.743 2.19007 20.8929 0.662716 24.2701 0.171643C27.6473 -0.31943 31.0914 0.24912 34.143 1.80148C37.1946 3.35385 39.7087 5.81625 41.3501 8.86031C44.8835 9.0468 48.1994 10.6544 50.5684 13.3294C52.9373 16.0044 54.1653 19.5277 53.9821 23.1242C53.7989 26.7207 52.2195 30.0959 49.5914 32.5071C46.9634 34.9184 43.5019 36.1683 39.9684 35.9818H11.1517C4.93436 35.9818 0 30.9593 0 24.6309C0.0598447 21.8016 1.13799 19.093 3.02989 17.0192C4.9218 14.9454 7.49584 13.6506 10.2635 13.3806Z",fill:"#70CAF8"})})):U(qu,Object.assign({},t,{width:73,height:40,children:[V("path",{d:"M61.6461 14.9716C60.8681 11.1875 58.9581 7.73823 56.1763 5.09315C53.3944 2.44806 49.8758 0.735682 46.0992 0.189041C42.3226 -0.357601 38.4714 0.288046 35.0699 2.03812C31.6683 3.7882 28.8815 6.5577 27.0889 9.96971C23.161 10.1687 19.4719 11.9405 16.8333 14.8953C14.1947 17.8502 12.8227 21.746 13.0191 25.7258C13.2155 29.7055 14.9642 33.4433 17.8806 36.1167C20.7969 38.7901 24.642 40.1802 28.5699 39.9812H60.6588C67.5702 39.9812 73.0006 34.4791 73.0006 27.4764C73.0006 20.9739 67.8664 15.4718 61.6461 14.9716Z",fill:"#70CAF8"}),V("path",{d:"M21.9691 6.47136e-09C25.9369 6.47136e-09 29.5264 1.62125 32.0003 4.21094C30.0604 5.7917 28.4423 7.75571 27.2581 10C23.3149 10.1989 19.6111 11.9702 16.9622 14.9238C14.3136 17.8774 12.936 21.772 13.1331 25.75C13.2057 27.2131 13.4902 28.6432 13.9652 30H10.7689C7.96116 29.8907 5.29664 28.7203 3.30402 26.7217C1.31144 24.7231 0.135825 22.0419 0.0110544 19.21C-0.113702 16.378 0.821178 13.6017 2.63019 11.4326C4.43921 9.26356 6.99065 7.8602 9.77766 7.5C11.9582 3.00012 16.6168 8.76701e-05 21.9691 6.47136e-09Z",fill:"#5BA2C6"})]}))}Mg("sequence-interaction",{component:t=>{var e,n,i,r,o,s,a;const l=Math.random().toString(36).slice(2,9),{Title:c,Item:h,data:u,laneGap:d=Az,nodeGap:f=zz,lifelineWidth:p=Pz,arrowWidth:g=Lz,showLifeline:m=!0,padding:y=Iz,arrowType:v="triangle",showLaneHeader:x=!0,laneHeaderHeight:b=Tz,edgeStyle:w="solid",animated:M=!1,edgeColorMode:k="gradient",options:C}=t,O=ud(C.themeConfig,C),j=null!==(e=null==O?void 0:O.colorText)&&void 0!==e?e:"#333333",E=null!==(n=null==O?void 0:O.colorBg)&&void 0!==n?n:"#ffffff",_=null!==(i=null==O?void 0:O.colorTextSecondary)&&void 0!==i?i:"#e0e0e0",S=u,{title:$,desc:A,items:z=[],relations:P=[]}=S,L=c?V(c,{title:$,desc:A}):null;if(!z||0===z.length){const t=du(V(Au,{indexes:[0]}));return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[L,U(X,{children:[V(Pu,{children:V(Au,{indexes:[0],x:-t.width/2,y:-t.height/2})}),V(su,{x:0,y:t.height/2+Rz,width:200,height:40,fontSize:14,alignHorizontal:"center",alignVertical:"middle",fill:null!==(r=null==O?void 0:O.colorTextSecondary)&&void 0!==r?r:"#999",children:"暂无数据"})]})]})}const I=z;let T=0;I.forEach(t=>{var e;null===(e=t.children)||void 0===e||e.forEach((t,e)=>{var n;const i=null!==(n=t.step)&&void 0!==n?n:e;i>T&&(T=i)})});const R=Math.max(1,T+1),B=new Map,W=null===(o=C.design)||void 0===o?void 0:o.item,H=Array.isArray(W)?W[0]:W;let N=null!==(s=null==H?void 0:H.width)&&void 0!==s?s:120,F=null!==(a=null==H?void 0:H.height)&&void 0!==a?a:50;const D=[];if(I.forEach((t,e)=>{var n;null===(n=t.children)||void 0===n||n.forEach((t,n)=>{D.push({datum:t,laneIndex:e,rowIndex:n})})}),(!(null==H?void 0:H.width)||!(null==H?void 0:H.height))&&h&&D.length>0){const t=du(V(h,{indexes:[0],datum:D[0].datum,positionH:"center",positionV:"middle"}));t.width>0&&(N=t.width),t.height>0&&(F=t.height)}let Y=0;P.forEach(t=>{if(t.label){const e=du(V(su,{fontSize:14,fontWeight:"normal",children:t.label}));Y=Math.max(Y,e.width)}});const G=Math.max(d,N+60,N+Y+120),Z=x?b:0,Q=20+R*F+Math.max(0,R-1)*f,tt=Z+Q+2*y+60,et=G*I.length+2*y,nt=t=>y+G/2+t*G,it=t=>y+Z+20+t*(F+f)+F/2,rt=[],ot=[],st=[],at=[];if(x&&I.forEach((t,e)=>{const n=nt(e),i=ud({colorPrimary:hd(C,[e])},C);h&&(ot.push(V(h,{indexes:[e],datum:{label:t.label,icon:t.icon,desc:t.desc},x:n-N/2,y,width:N,height:b-10,themeColors:i,positionH:"center"})),at.push(V(zu,{indexes:[e],x:n+N/2-Rz,y:y-Rz})))}),I.forEach((t,e)=>{var n,i,r,o;null===(n=t.children)||void 0===n||n.forEach((t,n)=>{var i,r;const o=null!==(i=t.step)&&void 0!==i?i:n,s=nt(e),a=it(o),l=s-N/2,c=a-F/2;B.set(t.id,{x:l,y:c,width:N,height:F,centerX:s,centerY:a,laneIndex:e,rowIndex:o});const d=hd(C,[e]),f=ud({colorPrimary:d},C),p=[e,n],g=Object.assign(Object.assign({},t),{_originalIndex:p});h?(rt.push(V(h,{indexes:p,datum:g,data:u,x:l,y:c,positionH:"center",positionV:"middle",themeColors:f})),at.push(V(zu,{indexes:p,x:l+N/2-Rz,y:c+F+5}))):(ot.push(V(J,{x:l,y:c,width:N,height:F,fill:null!==(r=null==f?void 0:f.colorPrimaryBg)&&void 0!==r?r:E,stroke:d,strokeWidth:2,rx:6,"data-element-type":"shape"})),t.label&&ot.push(V(su,{x:l,y:c,width:N,height:F,fontSize:14,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:j,children:t.label})))});const s=null!==(r=null===(i=t.children)||void 0===i?void 0:i.length)&&void 0!==r?r:0;let a=-1;null===(o=t.children)||void 0===o||o.forEach((t,e)=>{var n;const i=null!==(n=t.step)&&void 0!==n?n:e;i>a&&(a=i)});const l=a>=0?it(a):y+Z,c=s>0?l+F/2+20:l+20+Rz,d=nt(e);at.push(V(Au,{indexes:[e,s],x:d-12,y:c}))}),m){const t=new Map;B.forEach(e=>{let n=t.get(e.laneIndex);n||(n=[],t.set(e.laneIndex,n)),n.push({x:e.x,y:e.y,width:e.width,height:e.height})}),I.forEach((e,n)=>{var i;const r=nt(n),o=y+Z,s=tt-y,a=null!==(i=t.get(n))&&void 0!==i?i:[];let c;if(a.length>0){const t=`lifeline-mask-${l}-${n}`;st.push(U("mask",{id:t,maskUnits:"userSpaceOnUse",x:0,y:0,width:et,height:tt,children:[V(J,{x:0,y:0,width:et,height:tt,fill:"white"}),a.map(t=>V(J,{x:t.x,y:t.y-2,width:t.width,height:t.height+4,fill:"black"}))]})),c=`url(#${t})`}ot.push(V(K,{d:`M ${r} ${o} L ${r} ${s}`,stroke:_,strokeWidth:p,strokeDasharray:"5,5",fill:"none","data-element-type":"shape",mask:c})),ot.push(...dd(r,s,Math.PI/2,"triangle",_,1,10))})}const lt=nt(I.length-1)+G/2;at.push(V(Au,{indexes:[I.length],x:I.length>0?lt+20:y,y:y+Z/2-12}));const ct=new Map,ht=new Map,ut=new Map;return P.forEach(t=>{var e;const n=`${t.from}-${t.to}`;ct.has(n)||ct.set(n,[]),null===(e=ct.get(n))||void 0===e||e.push(t);const i=String(t.from),r=String(t.to);i!==r&&(ut.set(i,(ut.get(i)||0)+1),ht.set(r,(ht.get(r)||0)+1))}),P.forEach((t,e)=>{var n,i;const r=String(t.from),o=String(t.to),s=B.get(r),a=B.get(o);if(!s||!a)return;const c=hd(C,[s.laneIndex])||"#000000",h=hd(C,[a.laneIndex])||"#000000",u=ld(C);let d=u||"#999999",f=u||"#999999",p=u||"#999999";const m=`arrow-gradient-${l}-${e}`;"gradient"===k&&(d=`url(#${m})`,f=h,p=c);const{points:y}=((t,e,n,i,r,o,s,a,l)=>{const c=fd(n),h=fd(i),u=r.has(`${e}-${t}`),d=0===n.laneIndex;let f=[];if(t===e){const t=d?c.LT:c.RT,e=d?c.LB:c.RB,n=d?-40:40;f=[[t.x,t.y],[t.x+n,t.y],[e.x+n,e.y],[e.x,e.y]]}else if(n.laneIndex===i.laneIndex){const t=d?c.LB:c.RB,e=d?h.LT:h.RT,n=d?-40:40;f=[[t.x,t.y],[t.x+n,t.y],[e.x+n,e.y],[e.x,e.y]]}else{const t=i.centerX>n.centerX,e=i.centerX<n.centerX,r=Math.abs(n.centerY-i.centerY)<1,d=i.centerY>n.centerY,p=i.x>=n.x+n.width;let g,m;if(r?(g=t?c.RC:c.LC,m=t?h.LC:h.RC):u?d?(g=t?c.RB:c.LT,m=t?h.LT:h.RB):(g=t?c.RT:c.LT,m=t?h.LB:h.RB):(m=1===s&&0===l?t?h.LC:h.RC:d?p?h.LT:h.RT:p?h.LB:h.RB,g=1===o&&0===a?t?c.RC:c.LC:t?c.RB:e?c.LB:c.RB),u&&!r){const t=[g.x,g.y],e=[m.x,m.y];f=[t,[(t[0]+e[0])/2,t[1]],e]}else if(u&&r){const t=[g.x,g.y],e=[m.x,m.y],n=(t[1]+e[1])/2,i=30;f=[t,[(t[0]+e[0])/2,t[0]<e[0]?n-i:n+i],e]}else f=[[g.x,g.y],[m.x,m.y]]}return{points:f}})(r,o,s,a,ct,ut.get(r)||0,ht.get(o)||0,ht.get(r)||0,ut.get(o)||0);let x,b=null;if(t.label){const n=gd(y);if(n){const i=n[0],r=n[1]-10,o=du(V(Du,{indexes:[e],fontSize:14,fontWeight:"normal",children:t.label})),s=i-o.width/2,a=r-o.height/2,c=o.width,h=o.height;x=`edge-mask-${l}-${e}`,st.push(U("mask",{id:x,maskUnits:"userSpaceOnUse",x:0,y:0,width:et,height:tt,children:[V(J,{x:0,y:0,width:et,height:tt,fill:"white"}),V(J,{x:s,y:a,width:c,height:h,fill:"black"})]})),b=V(Du,{indexes:[e],x:i-o.width/2,y:r-o.height/2,width:o.width,height:o.height,fontSize:14,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:j,children:t.label})}}const O=(t=>{const e=t.length;if(4===e){const[e,n,i,r]=t;return`M ${e[0]} ${e[1]} C ${n[0]} ${n[1]} ${i[0]} ${i[1]} ${r[0]} ${r[1]}`}if(3===e){const[e,n,i]=t;return`M ${e[0]} ${e[1]} Q ${n[0]} ${n[1]} ${i[0]} ${i[1]}`}if(2===e){const[e,n]=t;return`M ${e[0]} ${e[1]} L ${n[0]} ${n[1]}`}return""})(y);if("gradient"===k){const t=y[0],e=y[y.length-1];st.push(U("linearGradient",{id:m,gradientUnits:"userSpaceOnUse",x1:t[0],y1:t[1],x2:e[0],y2:e[1],children:[V("stop",{offset:"0%",stopColor:c}),V("stop",{offset:"100%",stopColor:h})]}))}ot.push(V(K,{d:O,stroke:d,strokeWidth:g,fill:"none","data-element-type":"shape",mask:x?`url(#${x})`:void 0,strokeDasharray:"solid"===t.lineStyle?void 0:"dashed"===(null!==(n=t.lineStyle)&&void 0!==n?n:w)||M?"5,5":void 0,children:M&&V("animate",{attributeName:"stroke-dashoffset",from:"10",to:"0",dur:"1s",repeatCount:"indefinite"})}));const E=null!==(i=t.direction)&&void 0!==i?i:"forward";[{show:"forward"===E||"both"===E,angle:pd(y,1),point:y[y.length-1],color:f},{show:"both"===E,angle:pd(y,0)+Math.PI,point:y[0],color:p}].forEach(e=>{var n;e.show&&ot.push(...dd(e.point[0],e.point[1],e.angle,null!==(n=t.arrowType)&&void 0!==n?n:v,e.color,g,14))}),b&&ot.push(b)}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c?V(c,{title:$,desc:A}):null,U(X,{children:[V(J,{x:0,y:0,width:et,height:tt,fill:"none"}),V(q,{children:st}),V(X,{children:ot}),V(Vu,{children:rt}),V(Pu,{children:at})]})]})},composites:["title","item"]});Mg("sequence-mountain",{component:t=>{const{Title:e,Item:n,data:i,gap:r=20,minHeight:o=100,maxHeight:s=200,minWidth:a=260,maxWidth:l=300,options:c}=t,{title:h,desc:u,items:d=[]}=i,f=e?V(e,{title:h,desc:u}):null,p=[],g=[],m=[],y=[],v=d.length,x=ud(c.themeConfig),b={single:{width:54,height:36},double:{width:73,height:40}},w=[],M=[];let k=0,C=0;d.forEach((t,e)=>{const n=Math.max(a,Math.min(l,1.6*(o+(s-o)*(v>1?e/(v-1):0))));w.push(n);const i=C;M.push(i),C+=n/2,e===v-1&&(k=i+n)});const O=M[0],j=M[v-1]+w[v-1],E=j-O,_=v>1?(E-r*(v-1))/v:E,S=du(V(n,{indexes:[0],data:i,datum:d[0],width:_})),$=s+r,A=$+32+10;d.forEach((t,e)=>{const a=[e],l=o+(s-o)*(v>1?e/(v-1):0),h=w[e],u=M[e],d=s-l,f=hd(c,[e])||x.colorPrimary;m.push(V(Bz,{colorPrimary:f,x:u,y:d,width:h,height:l}));const g=O+e*(_+r);y.push(V(su,{x:g,y:$,width:_,height:32,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:f,backgroundColor:f,backgroundOpacity:.5,backgroundRadius:4,children:String(e+1).padStart(2,"0")})),p.push(V(n,{indexes:a,datum:t,data:i,x:g,y:A,width:_}))});const z=du(V(Au,{indexes:[0]})),P=A+S.height+10;if(d.forEach((t,e)=>{const n=O+e*(_+r);g.push(V(zu,{indexes:[e],x:n+_/2-z.width/2,y:P})),e<d.length-1&&g.push(V(Au,{indexes:[e+1],x:n+_+r/2-z.width/2,y:P}))}),v>0){g.unshift(V(Au,{indexes:[0],x:O-r/2-z.width/2,y:P}));g.push(V(Au,{indexes:[v],x:O+(v-1)*(_+r)+_+r/2-z.width/2,y:P})),m.push(V(Hz,{x:k-60-20,y:-35,width:60,height:60}));const t=["tiny","small","medium","large"],e={tiny:27,small:48,medium:54,large:72},n={tiny:14.85,small:26.4,medium:29.7,large:39.6},i=[],o=(t,e,n=5)=>i.some(i=>!(t+e+n<i.x||t>i.x+i.width+n));d.forEach((r,a)=>{const l=M[a],c=w[a],h=a===v-1?3:0===a?1:2;for(let r=0;r<h;r++){const h=100*a+37*r,u=t[17*h%t.length],d=e[u],f=n[u];let p=0,g=0,y=!1;for(;p<20&&!y;){const t=l+.15*c;g=t+(l+.85*c-f-t)*((13*h+19*p)%100/100),o(g,f)||(y=!0),p++}if(y){i.push({x:g,width:f});m.push(V(X,{x:g,y:s-d,children:Wz(u)}))}}});const a=Math.max(1,Math.floor(v/1.5));for(let t=0;t<a;t++){const e=11*t+5*v+1,n=e%2==0?"single":"double",i=b[n];m.push(V(Nz,{type:n,x:O+7*e%100/100*(j-O-i.width),y:13*e%40,width:i.width,height:i.height}))}}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,U(X,{children:[V(X,{children:m}),V(X,{children:y}),V(Vu,{children:p}),V(Pu,{children:g})]})]})},composites:["title","item"]});Mg("sequence-pyramid",{component:t=>{const{Title:e,Item:n,data:i,gap:r=10,width:o=700,pyramidWidth:s,itemHeight:a=60,options:l}=t,{title:c,desc:h,items:u=[]}=i,d=e?V(e,{title:c,desc:h}):null;if(0===u.length)return V(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:d});const f=ud(l.themeConfig),p=[],g=[],m=[],y=[],v=null!=s?s:.6*o,x=o-v,b=1.2*a,w=u.length*b+(u.length-1)*r;return u.forEach((t,e)=>{const o=[e],s=0===e,c=hd(l,[e])||f.colorPrimary,{points:h,topWidth:d,bottomWidth:w}=function(t,e,n,i,r){const o=t/2,s=i*e+(i-1)*n,a=r*(e+n),l=a/s*t,c=(a+e)/s*t;let h;if(0===r){h=[{x:o,y:0},{x:o+c/2,y:e},{x:o-c/2,y:e}]}else{h=[{x:o+l/2,y:0},{x:o+c/2,y:e},{x:o-c/2,y:e},{x:o-l/2,y:0}]}return{points:h,topWidth:l,bottomWidth:c}}(v,b,r,u.length,e),M=jz(h,5),k=Oz(M,"AMOUNT",10),C=v/2,O=e*(b+r),j=O+(b-a)/2,E=C+w/2,_=C+d/2-5,S=x+5,$=C-15,A=O+b/2-15+(s?8:0),z=E,P=_+S-E,L=j;m.push(V(J,{x:_,y:j,width:S,height:a,ry:"10",fill:f.colorPrimaryBg,"data-element-type":"shape"}));const I=`${c}-pyramid-${e}`;g.push(V(q,{children:U("linearGradient",{id:I,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0","stop-color":c}),V("stop",{offset:"100%","stop-color":wl.A.mix(c,"#fff",40).toHexString()})]})}),V(Q,{points:k,fill:`url(#${I})`,y:O,"data-element-type":"shape"})),y.push(V(Hu,{indexes:o,x:$,y:A,size:30,fill:"#fff"})),p.push(V(n,{indexes:o,datum:t,data:i,x:z,y:L,width:P,height:a,positionV:"middle"}))}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,U(X,{width:o,height:w,children:[V(X,{children:m}),V(X,{children:g}),V(X,{children:y}),V(Vu,{children:p}),V(Pu,{})]})]})},composites:["title","item"]});const Fz={iconSize:50,roadWidth:24,outerRadius:60,rowWidth:400,spacing:30,colorDefault:"#666666"},Dz=(t,e)=>`M ${t} ${e}`,Vz=(t,e)=>`L ${t} ${e}`,Uz=(t,e,n,i)=>`A ${t} ${t} 0 0 ${e} ${n} ${i}`,Yz=(t,{roadWidth:e,innerRadius:n,outerRadius:i})=>{const r=(e+2*n)*t;return{y1:r,y2:r+e,y3:r+e+n,y4:r+e+2*n,y5:r+2*i}};function qz({i:t,direction:e,x:n,y:i,color:r,data:o,itemBounds:s,item:a,Item:l,flipped:c}){const{iconSize:h}=Fz,u="left"===e,d=u?n.x4-h/2:n.x3-h/2,f=i.y3-h/2,p=u?n.x6+Fz.spacing:n.x1-Fz.spacing-s.width,g=i.y3-s.height/2,m=u?c?"flipped":"normal":c?"normal":"flipped";return{icon:V(Nu,{indexes:[t],x:d,y:f,size:h,fill:r}),label:V(su,{width:40,x:u?d-50:d+h+10,y:f+h/2-15,fontSize:30,fill:r,alignHorizontal:u?"right":"left",children:String(t+1).padStart(2,"0")}),item:V(l,{indexes:[t],data:o,datum:a,x:p,y:g,positionH:m})}}function Gz({direction:t,x:e,y:n,color:i,elements:r}){const o="left"===t;r.push(V(XA,{x:o?e.x6+10:e.x1-20,y:n.y3-5,width:10,height:8,rotation:o?90:-90,colorPrimary:i,"data-element-type":"shape"}))}Mg("sequence-roadmap-vertical",{component:t=>{const{Title:e,Item:n,data:i,spacing:r=Fz.spacing,options:o,flipped:s=!1}=t,{title:a,desc:l,items:c=[]}=i,h=e?V(e,{title:a,desc:l}):null,u=du(V(n,{indexes:[0],data:i,datum:c[0],positionH:"center"})),{roadWidth:d,outerRadius:f,rowWidth:p,colorDefault:g}=Fz,m=d/2,y=f-d,v=2*(u.width+r)+p,x=u.width+r,b=x+f,w=x+p-f,M=w+y+d,k=x+p/2,C=[],O=[],j=[],E=[],_=[],S=[],$=[];for(let t=0;t<c.length;t++){const e=hd(o,[t])||g,r=t%2==0?"right":"left",a=0===t,l=t===c.length-1,h=Yz(t,{roadWidth:d,innerRadius:y,outerRadius:f});if("right"===r){const t=a?[M,h.y1]:[w,h.y1],e=[b,h.y1],n=[b,h.y5],i=a?[M,h.y2]:[w,h.y2],r=[b,h.y2];if(C.push(a?Dz(M,h.y1+m):Vz(w,h.y1+m),Vz(b,h.y1+m),Uz(f-m,0,b,h.y4+m)),O.push(a?Dz(...t):Vz(...t),Vz(...e),Uz(f,0,...n)),j.push(Vz(...i),Vz(...r),Uz(y,1,...r)),l){const t=d/2;O.push(Vz(k,h.y5),Vz(k,h.y5+t),Vz(k+d,h.y5-t),Vz(k,h.y4-t),Vz(k,h.y4),Vz(b,h.y4)),C.push(Vz(k,h.y4+m))}}else{const t=[b,h.y2],e=[w,h.y2],n=[w,h.y4],i=[b,h.y1],r=[w,h.y1];if(C.push(Vz(w,h.y1+m),Uz(f-m,1,w,h.y4+m)),O.push(Vz(...t),Vz(...e),Uz(y,1,...n)),j.push(Vz(...i),Vz(...r),Uz(f,0,...r)),l){const t=d/2;O.push(Vz(k,h.y4),Vz(k,h.y4-t),Vz(k-d,h.y4+t),Vz(k,h.y5+t),Vz(k,h.y5),Vz(w,h.y5)),C.push(Vz(k,h.y4+m))}}Gz({direction:r,x:{x1:x,x4:w,x6:M},y:h,color:e,elements:$});const{icon:p,label:v,item:A}=qz({i:t,direction:r,x:{x1:x,x3:b,x4:w,x6:M},y:h,color:e,data:i,itemBounds:u,item:c[t],Item:n,flipped:s});E.push(p),_.push(v),S.push(A)}const A=[...O,...j.reverse(),"Z"],z=c.length*(d+2*y)+1.5*d;return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,U(X,{width:v,height:u.height<=2*f?z:z+u.height-2*f,children:[V(K,{width:p,height:z,d:A.join(" "),fill:g,stroke:g,strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),V(K,{d:C.join(" "),stroke:"white",fill:"none",strokeWidth:"3",strokeDasharray:"8 8",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),U(D,{children:[E,_,S,$]})]})]})},composites:["title","item"]});Mg("sequence-snake-steps",{component:t=>{const{Title:e,Item:n,data:i,gap:r=40,itemsPerRow:o=3,rowGap:s=80,options:a}=t,{title:l,desc:c,items:h=[]}=i,u=e?V(e,{title:l,desc:c}):null,d=ld(a),f=du(V(Au,{indexes:[0]})),p=du(V(n,{indexes:[0],data:i,datum:h[0],positionH:"center"})),g=[],m=[],y=[],v=25;if(h.forEach((t,e)=>{const a=Math.floor(e/o),l=e%o,c=a%2==1,u=(c?o-1-l:l)*(p.width+r),x=a*(p.height+s),b=[e];if(m.push(V(n,{indexes:b,datum:t,data:i,x:u,y:x,positionH:"center"})),g.push(V(zu,{indexes:b,x:u+(p.width-f.width)/2,y:x+p.height+10})),0===e&&g.push(V(Au,{indexes:b,x:u+(p.width-f.width)/2,y:x-f.height-10})),e<h.length-1){const t=Math.floor((e+1)/o),n=(e+1)%o;if(a===t){const i=c?(t%2==1?o-1-n:n)*(p.width+r)+p.width+(r-v)/2:u+p.width+(r-v)/2;y.push(V(YA,{x:i,y:x+p.height/2-12.5,width:v,height:25,colorPrimary:d,rotation:c?180:0})),g.push(V(Au,{indexes:[e+1],x:i+(v-f.width)/2,y:x-f.height-10}))}else{const t=u+p.width/2-12.5,n=x+p.height+(s-25)/2;y.push(V(YA,{x:t,y:n,width:v,height:25,colorPrimary:d,rotation:90})),g.push(V(Au,{indexes:[e+1],x:t+(v-f.width)/2,y:n+(25-f.height)/2}))}}}),h.length>0){const t=h.length-1,e=Math.floor(t/o),n=t%o;g.push(V(Au,{indexes:[h.length],x:(e%2==1?o-1-n:n)*(p.width+r)+(p.width-f.width)/2,y:e*(p.height+s)+p.height+f.height+20}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,U(X,{children:[V(X,{children:y}),V(Vu,{children:m}),V(Pu,{children:g})]})]})},composites:["title","item"]});Mg("sequence-stairs-front",{component:t=>{const{Title:e,Item:n,data:i,options:r,gap:o=16,perspectiveFactor:s=.2,width:a=720}=t,{title:l,desc:c,items:h=[]}=i,u=e?V(e,{title:l,desc:c}):null;if(0===h.length){const t=V(Au,{indexes:[0],x:0,y:0});return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,V(X,{children:V(Pu,{children:t})})]})}const d=ld(r),f=du(V(Au,{indexes:[0]})),p=du(V(n,{indexes:[0],data:i,datum:h[0]||{},positionH:"center"})),g=Math.min(.1*a,100),m=Math.min(.45*a,Math.max(80,a-p.width-12-g)),y=Math.max(24,m*s*.35),v=h.length>1?(56-56*.7)/(h.length-1):0,x=Math.max(f.height+y+20,y+28),b=m/2,w=m+g+12,M=h.map((t,e)=>56-v*e),k=h.map((t,e)=>Math.max(y*(1-.05*e),.7*y)),C=[],O=[],j=h.length-1;C[j]=x,O[j]=0;for(let t=j-1;t>=0;t-=1)O[t]=O[t+1]+k[t]+o,C[t]=C[t+1]+k[t]+M[t+1]+o;const E=O[0]||k[0]||y,_=m*(.55+.1*s),S=m-_,$=h.map((t,e)=>_+S*(0===E?1:O[e]/E)),A=$.map(t=>Math.max(0,w-12-(b+t/2))),z=[],P=[],L=[],I=[],T=[],R=(C[0]||x)+(M[0]||56),B=.8*($[j]||_),W=.65*B,H=.9*($[0]||m);T.push(V(Q,{points:[{x:b,y:0},{x:b+B/2,y:35},{x:b+W/2,y:35},{x:b+H/2,y:R},{x:b-H/2,y:R},{x:b-W/2,y:35},{x:b-B/2,y:35}],fill:"rgba(0,0,0,0.12)",width:H,height:R-0,"data-element-type":"shape"}));let N=C[j]+M[j]/2;h.forEach((t,e)=>{const o=[e],s=$[e],a=k[e],l=b-s/2,c=M[e],h=C[e],u=h-a,g=h+c/2,m=hd(r,o)||d;z.push(V(J,{x:l,y:h,width:s,height:c,fill:m,"data-element-type":"shape"}),V(Q,{points:[{x:l,y:h},{x:l+s,y:h},{x:l+s-a/2,y:u},{x:l+a/2,y:u}],fill:m,opacity:"0.3",width:s,height:a,"data-element-type":"shape"}),V(su,{x:l,y:h,width:s,height:c,fontSize:c/2,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:"#ffffff",children:String(e+1).padStart(2,"0")}));const y=l+s,v=g,x=A[e],O=y+x;I.push(V(K,{d:`M ${y} ${v} L ${O} ${v}`,stroke:m,strokeWidth:2,fill:"none",width:x,height:2,"data-element-type":"shape"}),V(K,{d:`M ${O} ${v} L ${O} ${v}`,stroke:m,strokeWidth:6,strokeLinecap:"round",width:1,height:1,"data-element-type":"shape"}));const j=g-p.height/2;P.push(V(n,{indexes:o,datum:t,data:i,x:w,y:j,positionV:"middle"})),L.push(V(zu,{indexes:o,x:w+p.width+10,y:j+p.height/2-f.height/2})),L.push(V(Au,0===e?{indexes:[0],x:w+(p.width-f.width)/2,y:j-f.height-12}:{indexes:o,x:w+(p.width-f.width)/2,y:(N+g)/2-f.height/2})),N=g});return L.push(V(Au,{indexes:[h.length],x:w+(p.width-f.width)/2,y:N-p.height/2+p.height+12})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,U(X,{children:[V(X,{children:T}),V(X,{children:z}),V(X,{children:I}),V(Vu,{children:P}),V(Pu,{children:L})]})]})},composites:["title","item"]});Mg("sequence-steps",{component:t=>{const{Title:e,Item:n,data:i,gap:r=40,options:o}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null,h=ld(o),u=du(V(Au,{indexes:[0]})),d=du(V(n,{indexes:[0],data:i,datum:l[0],positionH:"center"})),f=[],p=[],g=[],m=Math.max(u.height+20,30);if(l.forEach((t,e)=>{const o=e*(d.width+r),s=[e];if(p.push(V(n,{indexes:s,datum:t,data:i,x:o,y:m,positionH:"center"})),f.push(V(zu,{indexes:s,x:o+(d.width-u.width)/2,y:m+d.height+10})),f.push(V(Au,0===e?{indexes:s,x:o+(d.width-u.width)/2,y:m-u.height-10}:{indexes:s,x:o-r/2-u.width/2,y:m-u.height-10})),e<l.length-1){g.push(V(YA,{x:o+d.width+(r-25)/2,y:m+d.height/2-12.5,width:25,height:25,colorPrimary:h}))}}),l.length>0){f.push(V(Au,{indexes:[l.length],x:(l.length-1)*(d.width+r)+d.width+(r-u.width)/2,y:m-u.height-10}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,U(X,{children:[V(X,{children:g}),V(Vu,{children:p}),V(Pu,{children:f})]})]})},composites:["title","item"]});Mg("sequence-timeline",{component:t=>{const{Title:e,Item:n,data:i,gap:r=10,showStepLabels:o=!0,options:s}=t,{title:a,desc:l,items:c=[]}=i,h=e?V(e,{title:a,desc:l}):null,u=ld(s),d=cd(s),f=du(V(Au,{indexes:[0]})),p=du(V(n,{indexes:[0],data:i,datum:c[0],positionH:"normal"})),g=[],m=[],y=[],v=90,x=120;if(c.length>1){const t=p.height/2+6,e=(c.length-1)*(p.height+r)+p.height/2-6,n=`M 90 ${t} L 90 ${e}`,i="gradient-timeline-line",o=e-t,a=c.map((e,n)=>V("stop",{offset:`${(n*(p.height+r)+p.height/2-t)/o*100}%`,stopColor:hd(s,[n])||u}));y.push(U(D,{children:[V(q,{children:V("linearGradient",{id:i,x1:v,y1:t,x2:v,y2:e,gradientUnits:"userSpaceOnUse",children:a})}),V(K,{d:n,stroke:`url(#${i})`,strokeWidth:2,width:1,height:e-t})]}))}if(c.forEach((t,e)=>{const s=e*(p.height+r),a=s+p.height/2,l=[e];o&&y.push(V(su,{x:10,y:a,width:70,fontSize:18,fontWeight:"bold",alignHorizontal:"left",alignVertical:"middle",fill:d[e%d.length],children:`STEP ${e+1}`})),m.push(V(n,{indexes:l,datum:t,data:i,x,y:s,positionH:"normal"})),y.push(V(G,{x:84,y:a-6,width:12,height:12,fill:d[e%d.length]})),g.push(V(zu,{indexes:l,x:x-f.width-10,y:s+(p.height-f.height)/2})),g.push(V(Au,0===e?{indexes:l,x:x+(p.width-f.width)/2,y:s-f.height-10}:{indexes:l,x:x+(p.width-f.width)/2,y:s-r/2-f.height/2}))}),c.length>0){g.push(V(Au,{indexes:[c.length],x:x+(p.width-f.width)/2,y:(c.length-1)*(p.height+r)+p.height+10}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,U(X,{children:[V(qu,{children:y}),V(Vu,{children:m}),V(Pu,{children:g})]})]})},composites:["title","item"]});const Xz=U("filter",{id:"sequence-zigzag-pucks-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[V("feOffset",{dx:"-7",dy:"7",in:"SourceAlpha",result:"offset"}),V("feGaussianBlur",{stdDeviation:"7.5",in:"offset",result:"blurred"}),V("feColorMatrix",{in:"blurred",type:"matrix",values:"0 0 0 0 0 \n 0 0 0 0 0 \n 0 0 0 0 0 \n 0 0 0 0.3 0",result:"shadow"}),V("feBlend",{mode:"normal",in:"SourceGraphic",in2:"shadow"})]});Mg("sequence-zigzag-pucks-3d",{component:t=>{const{Title:e,Item:n,data:i,options:r,gap:o=80}=t,s=120,a=108,{title:l,desc:c,items:h=[]}=i,u=e?V(e,{title:l,desc:c}):null,d=ld(r);if(0===h.length){const t=V(Au,{indexes:[0],x:0,y:0});return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[V(q,{children:Xz}),u,V(X,{children:V(Pu,{children:t})})]})}const f=du(V(n,{indexes:[0],data:i,datum:h[0],positionH:"center"})),p=du(V(Au,{indexes:[0]})),g=[],m=[],y=[];let v=1/0,x=-1/0;const b=f.height+30+a;return h.forEach((t,e)=>{const l=[e],c=hd(r,l),u=e%2==0,w=e*(s+o),M=u?0:f.height+30;v=Math.min(v,M);const k=`puck-gradient-middle-${e}`,C=`puck-gradient-bottom-${e}`;y.push(U(X,{x:w,y:M,id:`puck-${e}`,width:s,height:a,filter:"url(#sequence-zigzag-pucks-3d-shadow-filter)",children:[U(q,{children:[U("linearGradient",{id:k,x1:"115",y1:"55.9991",x2:"15.0002",y2:"55.9991",gradientUnits:"userSpaceOnUse",children:[V("stop",{offset:"0",stopColor:c||d}),V("stop",{offset:"1",stopColor:c||d,stopOpacity:"0.6"})]}),U("linearGradient",{id:C,x1:"115",y1:"72.1803",x2:"15.0002",y2:"72.1803",gradientUnits:"userSpaceOnUse",children:[V("stop",{offset:"0",stopColor:"#F4F4FB"}),V("stop",{offset:"1",stopColor:"#8E8C90"})]})]}),U(qu,{width:120,height:108,children:[V(K,{d:"M4.49144e-05 34.4898C4.49144e-05 37.8786 0.848973 41.152 2.43571 44.2444C4.23516 47.7642 6.98514 51.0472 10.517 54.0009C21.331 63.047 39.4615 68.9814 59.9991 68.9814C80.5385 68.9814 98.6672 63.047 109.483 54.0009C113.013 51.0472 115.765 47.7642 117.564 44.2444C119.149 41.152 120 37.8786 120 34.4898C120 15.4407 93.1364 0 59.9991 0C26.8635 0 4.49144e-05 15.4407 4.49144e-05 34.4898Z",fill:c||d}),V(K,{d:"M4.49145e-05 34.4898V53.9991C4.49145e-05 57.3879 0.848973 60.6613 2.43571 63.7556C9.75425 78.0545 32.7562 88.4907 59.999 88.4907C87.2438 88.4907 110.246 78.0545 117.564 63.7556C119.149 60.6613 120 57.3879 120 53.9991V34.4898C120 37.8786 119.149 41.152 117.564 44.2444C115.765 47.7642 113.013 51.0472 109.483 54.0009C98.6672 63.047 80.5385 68.9814 59.999 68.9814C39.4615 68.9814 21.3309 63.047 10.5169 54.0009C6.98509 51.0472 4.23516 47.7642 2.43567 44.2444C0.848928 41.152 4.49145e-05 37.8786 4.49145e-05 34.4898Z",fill:`url(#${k})`}),V(K,{d:"M0 53.9991V73.5102C0 92.5593 26.8634 108 59.999 108C93.1363 108 120 92.5593 120 73.5102V53.9991C120 57.3879 119.149 60.6613 117.564 63.7556C110.246 78.0545 87.2438 88.4907 59.999 88.4907C32.7562 88.4907 9.75425 78.0545 2.43571 63.7556C0.848973 60.6613 0 57.3879 0 53.9991Z",fill:`url(#${C})`}),V("rect",{fill:"transparent",y:108,width:120,height:20})]}),V("text",{x:65,y:40,width:50,height:50,fontSize:40,fontWeight:"bold",fill:"#FFFFFF",textAnchor:"middle",dominantBaseline:"middle",transform:"rotate(-15 65 40) scale(1, 0.8)",children:e+1})]}));const O=w+(s-f.width)/2,j=u?M+a+30:M-30-f.height;if(x=Math.max(x,j+f.height),m.push(V(n,{indexes:l,datum:t,data:i,x:O,y:j,positionH:"center"})),g.push(V(zu,{indexes:l,x:O+f.width-p.width/2,y:j+f.height-p.height/2})),0===e&&g.push(V(Au,{indexes:[0],x:w+60-p.width/2-(o+s)/2,y:M+54-p.height/2})),e<h.length-1){g.push(V(Au,{indexes:[e+1],x:w+s+o/2-p.width/2,y:(M+54+((e+1)%2==0?0:b)+54)/2-p.height/2}))}else g.push(V(Au,{indexes:[h.length],x:w+s+o/2-p.width/2,y:M+54-p.height/2}))}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[V(q,{children:Xz}),u,U(X,{x:0,y:0,children:[V(X,{children:y}),V(Vu,{children:m}),V(Pu,{children:g})]})]})},composites:["title","item"]});const Kz=240,Zz=130,Qz=12,Jz="M132.707 30.4224C142.386 36.0119 142.437 45.0704 132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30825 50.6599C-2.37126 45.0717 -2.42225 36.0132 7.19414 30.4237L52.335 4.19115C61.9517 -1.39705 77.5908 -1.39705 87.2713 4.19115L132.707 30.4224Z",tP=V("filter",{id:"sequence-zigzag-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:V("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"15",result:"blur"})});Mg("sequence-zigzag-steps",{component:t=>{var e;const{Title:n,Item:i,data:r,options:o,dx:s=Kz,dy:a=Zz,iconSize:l=30}=t,{title:c,desc:h,items:u=[]}=r,d=n?V(n,{title:c,desc:h}):null,f=ld(o);if(0===u.length){const t=V(Au,{indexes:[0],x:0,y:0});return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[V(q,{children:tP}),d,V(X,{children:V(Pu,{children:t})})]})}const p=du(V(i,{indexes:[0],data:r,datum:u[0]})),g=du(V(Au,{indexes:[0]})),m=[],y=[],v=[],x=[],b=[];let w=0,M=0,k="",C=1/0,O=-1/0,j=1/0,E=1/0;const _=[];u.forEach((t,e)=>{const n=w,i=M;_.push({x:n,y:i}),C=Math.min(C,i);const r=i-46;j=Math.min(j,n-76),E=Math.min(E,r);e<u.length-1&&(w+=s,M=e%2==0?M+a:M-a)});const S=Math.max(0,-j),$=Math.max(0,-E);if(w=0,M=0,u.forEach((t,e)=>{const n=[e],a=_[e],c=a.x+S,h=a.y+$,d=hd(o,n),v=Math.max(0,c-76),w=Math.max(0,h-46),{colorPrimaryBg:M}=ud({colorPrimary:d});if(x.push(U(qu,{x:v,y:w,width:140,height:110,children:[V(G,{x:10,y:60,width:120,height:50,fill:d||f,filter:"url(#sequence-zigzag-glow-filter)",opacity:.6}),V(K,{d:"M132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30824 50.6599C2.43719 47.8482 0.00459679 44.1562 0.0152907 40.472L3.17695e-05 45.6925C-0.0101404 49.378 2.42245 53.0686 7.29298 55.8803L52.7289 82.1129C62.4094 87.7011 78.0485 87.7011 87.6652 82.1129L132.806 55.8803C137.583 53.1038 139.975 49.4705 139.986 45.832L140 40.6116C139.989 44.2501 137.598 47.8834 132.821 50.6599Z",fill:d||f}),V(K,{d:Jz,fill:"#fff"}),V(K,{d:Jz,fill:M||M})]})),t.icon){const t=Math.max(0,c-l/2-6),e=Math.max(0,h-l/2-6);b.push(V(Hu,{x:t,y:e,size:l,indexes:n,fill:d}))}const C=c-p.width/2-6,j=Math.max(0,h+105-6);if(O=Math.max(O,j+p.height),0===e?k=`M ${c} ${h}`:k+=` L ${c} ${h}`,y.push(V(i,{indexes:n,datum:t,data:r,x:C,y:j})),m.push(V(zu,{indexes:n,x:Math.max(0,C+p.width-g.width/2),y:Math.max(0,j+p.height-g.height/2)})),e<u.length-1){const t=_[e+1],n=t.y+$,i=Math.max(0,c+(t.x+S-c)/2-g.width/2),r=Math.max(0,h+(n-h)/2-g.height/2);m.push(V(Au,{indexes:[e+1],x:i,y:r}))}else m.push(V(Au,{indexes:[u.length],x:Math.max(0,C+p.width+s/4),y:Math.max(0,j+p.height/2-g.height/2)}))}),k){const t=((null===(e=_[_.length-1])||void 0===e?void 0:e.x)||0)+S;v.push(V(K,{d:k,stroke:"#f3f2f1",strokeWidth:Qz,fill:"none",width:t,height:O-Math.min(C+$,0)}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[V(q,{children:tP}),d,U(X,{x:0,y:0,children:[V(X,{children:[...v,...x,...b]}),V(Vu,{children:y}),V(Pu,{children:m})]})]})},composites:["title","item"]});var eP=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class nP{constructor(t){this.commands=t}apply(t){return eP(this,void 0,void 0,function*(){for(const e of this.commands)yield e.apply(t)})}undo(t){return eP(this,void 0,void 0,function*(){for(let e=this.commands.length-1;e>=0;e--)yield this.commands[e].undo(t)})}serialize(){return{type:"batch",commands:this.commands.map(t=>t.serialize())}}}var iP=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class rP{constructor(t,e,n){this.element=t,this.modified=e;const i=function(t,e){const n=Object.keys(e.attributes||{}),i=th(t,n,!1),r=t=>{t&&n.forEach(e=>{e in t&&(i[e]=t[e])})},o=Object.assign(Object.assign({},e),{attributes:i});if(_h(t)){const{attributes:e}=lh(t);r(e)}else if(Ah(t)){if(!Yh(t))return;r(qh(t))}return o}(t,e);this.original=function(t,e){if(!t)return e;if(!e)return t;const n=Object.assign(Object.assign({},t.attributes||{}),e.attributes||{});return Object.assign(Object.assign(Object.assign({},t),e),{attributes:Object.keys(n).length?n:void 0})}(i,n)}apply(t){return iP(this,void 0,void 0,function*(){oP(this.element,this.modified),t.updateElement(this.element,this.modified)})}undo(t){return iP(this,void 0,void 0,function*(){this.original&&(oP(this.element,this.original),t.updateElement(this.element,this.original))})}serialize(){return{type:"update-element",elementId:this.element.id,modified:this.modified,original:this.original}}}function oP(t,e){_h(t)?oh(t,e):Ah(t)?function(t,e,n){const i=Yh(t);i&&(e&&Jc(i,{href:ul(e)}),n&&Jc(i,n),Uh(i))}(t,void 0,e.attributes):e.attributes&&Jc(t,e.attributes)}var sP=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class aP{constructor(t,e){this.options=t,this.original=e}apply(t){return sP(this,void 0,void 0,function*(){if(!this.original){const e=t.getOptions();this.original={},Object.keys(this.options).forEach(t=>{this.original[t]=e[t]})}t.updateOptions(this.options)})}undo(t){return sP(this,void 0,void 0,function*(){this.original&&t.updateOptions(this.original)})}serialize(){return{type:"update-options",options:this.options,original:this.original}}}class lP{constructor(t,e={}){var n;this.clickTimer=null,this.singleClickCallback=null,this.doubleClickCallback=null,this.pointerId=null,this.startX=0,this.startY=0,this.skipClick=!1,this.dragged=!1,this.handlePointerDown=t=>{this.pointerId=t.pointerId,this.startX=t.clientX,this.startY=t.clientY,this.dragged=!1,this.skipClick=!1,window.addEventListener("pointermove",this.handlePointerMove,{passive:!0}),window.addEventListener("pointerup",this.handlePointerUp,{passive:!0}),window.addEventListener("pointercancel",this.handlePointerUp,{passive:!0})},this.handlePointerMove=t=>{if(null===this.pointerId||t.pointerId!==this.pointerId)return;Math.hypot(t.clientX-this.startX,t.clientY-this.startY)>this.dragThreshold&&(this.skipClick=!0,this.dragged=!0)},this.handlePointerUp=t=>{null!==this.pointerId&&t.pointerId===this.pointerId&&(this.pointerId=null,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),this.dragged||(this.skipClick=!1),this.dragged=!1)},this.element=t,this.delay=e.delay||300,this.dragThreshold=null!==(n=e.dragThreshold)&&void 0!==n?n:4,this.init()}init(){this.element.addEventListener("click",this.handleClick.bind(this)),this.element.addEventListener("dblclick",this.handleDoubleClick.bind(this)),this.element.addEventListener("pointerdown",this.handlePointerDown)}handleClick(t){this.skipClick?this.skipClick=!1:(this.clickTimer&&clearTimeout(this.clickTimer),this.clickTimer=window.setTimeout(()=>{var e;null===(e=this.singleClickCallback)||void 0===e||e.call(this,t)},this.delay))}handleDoubleClick(t){var e;this.skipClick?this.skipClick=!1:(this.clickTimer&&clearTimeout(this.clickTimer),null===(e=this.doubleClickCallback)||void 0===e||e.call(this,t))}onClick(t){return this.singleClickCallback=t,this}onDoubleClick(t){return this.doubleClickCallback=t,this}destroy(){this.clickTimer&&clearTimeout(this.clickTimer),this.element.removeEventListener("click",this.handleClick),this.element.removeEventListener("dblclick",this.handleDoubleClick),this.element.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}}function cP(t,e,n){return new DOMPoint(e,n).matrixTransform(function(t){var e;return(null===(e=t.getScreenCTM())||void 0===e?void 0:e.inverse())||new DOMMatrix}(t))}function hP(t,e){const n=e.getBoundingClientRect(),i=[{x:n.x,y:n.y},{x:n.x+n.width,y:n.y},{x:n.x,y:n.y+n.height},{x:n.x+n.width,y:n.y+n.height}].map(e=>cP(t,e.x,e.y)),r=Math.min(...i.map(t=>t.x)),o=Math.max(...i.map(t=>t.x)),s=Math.min(...i.map(t=>t.y)),a=Math.max(...i.map(t=>t.y));return new DOMRect(r,s,o-r,a-s)}function uP(t,e){if(0===e.length)return t.items;const n=ts(t,e);return null==n?[]:(n.children||(n.children=[]),n.children)}function dP(t,e="data.items"){return t.reduce((t,e,n)=>0===n?`${t}[${e}]`:`${t}.children[${e}]`,e)}function fP(t){var e,n;return(null===(n=null===(e=function(t){return Ah(t)?Yh(t):t}(t))||void 0===e?void 0:e.dataset.indexes)||void 0===n?void 0:n.split(",").map(Number))||[]}function pP(t){if(!t)return null;const e=[mP];let n=t;for(const t of e){const e=t(n);if(e){n=e;break}}return gP(n)}function gP(t){if(!t)return null;const e=[yP,vP];for(const n of e){const e=n(t);if(e)return e}return(t=>ch(t,"edit-area"))(t)||_h(t)||Ah(t)?t:null}const mP=t=>{var e;const n=t=>!!t&&(Oh(t)||jh(t));return n(t)?t.parentElement:n(t.parentElement)?null===(e=t.parentElement)||void 0===e?void 0:e.parentElement:null},yP=t=>function(t){return hh(t,"SPAN")}(t)&&Eh(t.parentElement)?t.parentElement:null,vP=t=>{const e=t.parentElement;return xh(e)?e:vh(t)?t:null};function xP(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName.toLowerCase();return"input"===e||"textarea"===e}class bP{constructor(){this.extensions=new Map}register(t,e,n){if(!(null==n?void 0:n.override)&&this.extensions.has(t))throw new Error(`Extension "${t}" already registered`);this.extensions.set(t,e)}get(t){return this.extensions.get(t)}has(t){return this.extensions.has(t)}getAll(){return this.extensions}forEach(t){this.extensions.forEach((e,n)=>{t(e,n)})}[Symbol.iterator](){return this.extensions.entries()}unregister(t){return this.extensions.delete(t)}destroy(){this.extensions.forEach(t=>{t&&"function"==typeof t.dispose&&t.dispose()}),this.extensions.clear()}}const wP=(t,e)=>{var n;if(t.key.toLowerCase()!==e.key)return!1;const i=null!==(n=e.mod)&&void 0!==n&&n,r=t.metaKey,o=t.ctrlKey,s=(t,e)=>void 0===t?!e:t===e;return!(i&&!r&&!o)&&(i?!!s(e.shift,t.shiftKey)&&(!!s(e.alt,t.altKey)&&(!(void 0!==e.meta&&!s(e.meta,r))&&!(void 0!==e.ctrl&&!s(e.ctrl,o)))):!!s(e.meta,r)&&(!!s(e.ctrl,o)&&(!!s(e.shift,t.shiftKey)&&!!s(e.alt,t.altKey))))};class MP{constructor(t={}){this.bindings=[],this.handleKeydown=t=>{if(t instanceof KeyboardEvent&&!t.defaultPrevented&&!(t=>{if(!t)return!1;if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName.toLowerCase();return"input"===e||"textarea"===e||"select"===e})(t.target)&&(!this.filter||this.filter(t)))for(const e of this.bindings)if(e.combos.some(e=>wP(t,e))){e.handler(t);break}};const{target:e=document,filter:n}=t;this.target=e,this.filter=n,this.target.addEventListener("keydown",this.handleKeydown)}bind(t,e){const n={combos:(Array.isArray(t)?t:[t]).map(t=>(t=>{const e=t.toLowerCase().split("+").map(t=>t.trim()).filter(Boolean),n={key:""};if(e.forEach(t=>{"shift"===t?n.shift=!0:"alt"===t||"option"===t?n.alt=!0:"ctrl"===t||"control"===t?n.ctrl=!0:"meta"===t||"cmd"===t||"command"===t?n.meta=!0:"mod"===t?n.mod=!0:n.key=t}),!n.key)throw new Error(`Invalid hotkey combo: "${t}"`);return n})(t)),handler:e};return this.bindings.push(n),()=>this.unbind(n)}destroy(){this.target.removeEventListener("keydown",this.handleKeydown),this.bindings=[]}unbind(t){this.bindings=this.bindings.filter(e=>e!==t)}}const kP=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const CP=function(t){return this.__data__.get(t)};const OP=function(t){return this.__data__.has(t)};const jP=function(t,e){var n=this.__data__;if(n instanceof So){var i=n.__data__;if(!$o||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Bo(i)}return n.set(t,e),this.size=n.size,this};function EP(t){var e=this.__data__=new So(t);this.size=e.size}EP.prototype.clear=function(){this.__data__=new So,this.size=0},EP.prototype.delete=kP,EP.prototype.get=CP,EP.prototype.has=OP,EP.prototype.set=jP;const _P=EP;const SP=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t};const $P=function(){try{var t=ho(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const AP=function(t,e,n){"__proto__"==e&&$P?$P(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var zP=Object.prototype.hasOwnProperty;const PP=function(t,e,n){var i=t[e];zP.call(t,e)&&wo(i,n)&&(void 0!==n||e in t)||AP(t,e,n)};const LP=function(t,e,n,i){var r=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=i?i(n[a],t[a],a,n,t):void 0;void 0===l&&(l=t[a]),r?AP(n,a,l):PP(n,a,l)}return n};const IP=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i};const TP=function(t){return qr(t)&&"[object Arguments]"==Yr(t)};var RP=Object.prototype,BP=RP.hasOwnProperty,WP=RP.propertyIsEnumerable,HP=TP(function(){return arguments}())?TP:function(t){return qr(t)&&BP.call(t,"callee")&&!WP.call(t,"callee")};const NP=HP;var FP="object"==typeof exports&&exports&&!exports.nodeType&&exports,DP=FP&&"object"==typeof module&&module&&!module.nodeType&&module,VP=DP&&DP.exports===FP?Tr.Buffer:void 0;const UP=(VP?VP.isBuffer:void 0)||function(){return!1};var YP=/^(?:0|[1-9]\d*)$/;const qP=function(t,e){var n=typeof t;return!!(e=e??9007199254740991)&&("number"==n||"symbol"!=n&&YP.test(t))&&t>-1&&t%1==0&&t<e};const GP=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var XP={};XP["[object Float32Array]"]=XP["[object Float64Array]"]=XP["[object Int8Array]"]=XP["[object Int16Array]"]=XP["[object Int32Array]"]=XP["[object Uint8Array]"]=XP["[object Uint8ClampedArray]"]=XP["[object Uint16Array]"]=XP["[object Uint32Array]"]=!0,XP["[object Arguments]"]=XP["[object Array]"]=XP["[object ArrayBuffer]"]=XP["[object Boolean]"]=XP["[object DataView]"]=XP["[object Date]"]=XP["[object Error]"]=XP["[object Function]"]=XP["[object Map]"]=XP["[object Number]"]=XP["[object Object]"]=XP["[object RegExp]"]=XP["[object Set]"]=XP["[object String]"]=XP["[object WeakMap]"]=!1;const KP=function(t){return qr(t)&&GP(t.length)&&!!XP[Yr(t)]};const ZP=function(t){return function(e){return t(e)}};var QP="object"==typeof exports&&exports&&!exports.nodeType&&exports,JP=QP&&"object"==typeof module&&module&&!module.nodeType&&module,tL=JP&&JP.exports===QP&&Lr.process;const eL=function(){try{var t=JP&&JP.require&&JP.require("util").types;return t||tL&&tL.binding&&tL.binding("util")}catch(t){}}();var nL=eL&&eL.isTypedArray;const iL=nL?ZP(nL):KP;var rL=Object.prototype.hasOwnProperty;const oL=function(t,e){var n=Pr(t),i=!n&&NP(t),r=!n&&!i&&UP(t),o=!n&&!i&&!r&&iL(t),s=n||i||r||o,a=s?IP(t.length,String):[],l=a.length;for(var c in t)!e&&!rL.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||qP(c,l))||a.push(c);return a};var sL=Object.prototype;const aL=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||sL)};const lL=function(t,e){return function(n){return t(e(n))}};const cL=lL(Object.keys,Object);var hL=Object.prototype.hasOwnProperty;const uL=function(t){if(!aL(t))return cL(t);var e=[];for(var n in Object(t))hL.call(t,n)&&"constructor"!=n&&e.push(n);return e};const dL=function(t){return null!=t&&GP(t.length)&&!Jr(t)};const fL=function(t){return dL(t)?oL(t):uL(t)};const pL=function(t,e){return t&&LP(e,fL(e),t)};const gL=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var mL=Object.prototype.hasOwnProperty;const yL=function(t){if(!Qr(t))return gL(t);var e=aL(t),n=[];for(var i in t)("constructor"!=i||!e&&mL.call(t,i))&&n.push(i);return n};const vL=function(t){return dL(t)?oL(t,!0):yL(t)};const xL=function(t,e){return t&&LP(e,vL(e),t)};var bL="object"==typeof exports&&exports&&!exports.nodeType&&exports,wL=bL&&"object"==typeof module&&module&&!module.nodeType&&module,ML=wL&&wL.exports===bL?Tr.Buffer:void 0,kL=ML?ML.allocUnsafe:void 0;const CL=function(t,e){if(e)return t.slice();var n=t.length,i=kL?kL(n):new t.constructor(n);return t.copy(i),i};const OL=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e};const jL=function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=s)}return o};const EL=function(){return[]};var _L=Object.prototype.propertyIsEnumerable,SL=Object.getOwnPropertySymbols,$L=SL?function(t){return null==t?[]:(t=Object(t),jL(SL(t),function(e){return _L.call(t,e)}))}:EL;const AL=$L;const zL=function(t,e){return LP(t,AL(t),e)};const PL=function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t};const LL=lL(Object.getPrototypeOf,Object);var IL=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)PL(e,AL(t)),t=LL(t);return e}:EL;const TL=IL;const RL=function(t,e){return LP(t,TL(t),e)};const BL=function(t,e,n){var i=e(t);return Pr(t)?i:PL(i,n(t))};const WL=function(t){return BL(t,fL,AL)};const HL=function(t){return BL(t,vL,TL)};const NL=ho(Tr,"DataView");const FL=ho(Tr,"Promise");const DL=ho(Tr,"Set");const VL=ho(Tr,"WeakMap");var UL="[object Map]",YL="[object Promise]",qL="[object Set]",GL="[object WeakMap]",XL="[object DataView]",KL=oo(NL),ZL=oo($o),QL=oo(FL),JL=oo(DL),tI=oo(VL),eI=Yr;(NL&&eI(new NL(new ArrayBuffer(1)))!=XL||$o&&eI(new $o)!=UL||FL&&eI(FL.resolve())!=YL||DL&&eI(new DL)!=qL||VL&&eI(new VL)!=GL)&&(eI=function(t){var e=Yr(t),n="[object Object]"==e?t.constructor:void 0,i=n?oo(n):"";if(i)switch(i){case KL:return XL;case ZL:return UL;case QL:return YL;case JL:return qL;case tI:return GL}return e});const nI=eI;var iI=Object.prototype.hasOwnProperty;const rI=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&iI.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const oI=Tr.Uint8Array;const sI=function(t){var e=new t.constructor(t.byteLength);return new oI(e).set(new oI(t)),e};const aI=function(t,e){var n=e?sI(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var lI=/\w*$/;const cI=function(t){var e=new t.constructor(t.source,lI.exec(t));return e.lastIndex=t.lastIndex,e};var hI=Rr?Rr.prototype:void 0,uI=hI?hI.valueOf:void 0;const dI=function(t){return uI?Object(uI.call(t)):{}};const fI=function(t,e){var n=e?sI(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const pI=function(t,e,n){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return sI(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return aI(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return fI(t,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return cI(t);case"[object Symbol]":return dI(t)}};var gI=Object.create,mI=function(){function t(){}return function(e){if(!Qr(e))return{};if(gI)return gI(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const yI=mI;const vI=function(t){return"function"!=typeof t.constructor||aL(t)?{}:yI(LL(t))};const xI=function(t){return qr(t)&&"[object Map]"==nI(t)};var bI=eL&&eL.isMap;const wI=bI?ZP(bI):xI;const MI=function(t){return qr(t)&&"[object Set]"==nI(t)};var kI=eL&&eL.isSet;const CI=kI?ZP(kI):MI;var OI="[object Arguments]",jI="[object Function]",EI="[object Object]",_I={};_I[OI]=_I["[object Array]"]=_I["[object ArrayBuffer]"]=_I["[object DataView]"]=_I["[object Boolean]"]=_I["[object Date]"]=_I["[object Float32Array]"]=_I["[object Float64Array]"]=_I["[object Int8Array]"]=_I["[object Int16Array]"]=_I["[object Int32Array]"]=_I["[object Map]"]=_I["[object Number]"]=_I[EI]=_I["[object RegExp]"]=_I["[object Set]"]=_I["[object String]"]=_I["[object Symbol]"]=_I["[object Uint8Array]"]=_I["[object Uint8ClampedArray]"]=_I["[object Uint16Array]"]=_I["[object Uint32Array]"]=!0,_I["[object Error]"]=_I[jI]=_I["[object WeakMap]"]=!1;const SI=function t(e,n,i,r,o,s){var a,l=1&n,c=2&n,h=4&n;if(i&&(a=o?i(e,r,o,s):i(e)),void 0!==a)return a;if(!Qr(e))return e;var u=Pr(e);if(u){if(a=rI(e),!l)return OL(e,a)}else{var d=nI(e),f=d==jI||"[object GeneratorFunction]"==d;if(UP(e))return CL(e,l);if(d==EI||d==OI||f&&!o){if(a=c||f?{}:vI(e),!l)return c?RL(e,xL(a,e)):zL(e,pL(a,e))}else{if(!_I[d])return o?e:{};a=pI(e,d,l)}}s||(s=new _P);var p=s.get(e);if(p)return p;s.set(e,a),CI(e)?e.forEach(function(r){a.add(t(r,n,i,r,e,s))}):wI(e)&&e.forEach(function(r,o){a.set(o,t(r,n,i,o,e,s))});var g=u?void 0:(h?c?HL:WL:c?vL:fL)(e);return SP(g||e,function(r,o){g&&(r=e[o=r]),PP(a,o,t(r,n,i,o,e,s))}),a};const $I=function(t){return SI(t,5)};var AI=Function.prototype.toString,zI=Object.prototype.hasOwnProperty,PI=AI.call(Object);const LI=function(t){if(!qr(t)||"[object Object]"!=Yr(t))return!1;var e=LL(t);if(null===e)return!0;var n=zI.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&AI.call(n)==PI};const II=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const TI=function(t){return this.__data__.has(t)};function RI(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Bo;++e<n;)this.add(t[e])}RI.prototype.add=RI.prototype.push=II,RI.prototype.has=TI;const BI=RI;const WI=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1};const HI=function(t,e){return t.has(e)};const NI=function(t,e,n,i,r,o){var s=1&n,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(t),h=o.get(e);if(c&&h)return c==e&&h==t;var u=-1,d=!0,f=2&n?new BI:void 0;for(o.set(t,e),o.set(e,t);++u<a;){var p=t[u],g=e[u];if(i)var m=s?i(g,p,u,e,t,o):i(p,g,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!WI(e,function(t,e){if(!HI(f,e)&&(p===t||r(p,t,n,i,o)))return f.push(e)})){d=!1;break}}else if(p!==g&&!r(p,g,n,i,o)){d=!1;break}}return o.delete(t),o.delete(e),d};const FI=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n};const DI=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n};var VI=Rr?Rr.prototype:void 0,UI=VI?VI.valueOf:void 0;const YI=function(t,e,n,i,r,o,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new oI(t),new oI(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return wo(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=FI;case"[object Set]":if(a||(a=DI),t.size!=e.size&&!(1&i))return!1;var l=s.get(t);if(l)return l==e;i|=2,s.set(t,e);var c=NI(a(t),a(e),i,r,o,s);return s.delete(t),c;case"[object Symbol]":if(UI)return UI.call(t)==UI.call(e)}return!1};var qI=Object.prototype.hasOwnProperty;const GI=function(t,e,n,i,r,o){var s=1&n,a=WL(t),l=a.length;if(l!=WL(e).length&&!s)return!1;for(var c=l;c--;){var h=a[c];if(!(s?h in e:qI.call(e,h)))return!1}var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var f=!0;o.set(t,e),o.set(e,t);for(var p=s;++c<l;){var g=t[h=a[c]],m=e[h];if(i)var y=s?i(m,g,h,e,t,o):i(g,m,h,t,e,o);if(!(void 0===y?g===m||r(g,m,n,i,o):y)){f=!1;break}p||(p="constructor"==h)}if(f&&!p){var v=t.constructor,x=e.constructor;v==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof x&&x instanceof x||(f=!1)}return o.delete(t),o.delete(e),f};var XI="[object Arguments]",KI="[object Array]",ZI="[object Object]",QI=Object.prototype.hasOwnProperty;const JI=function(t,e,n,i,r,o){var s=Pr(t),a=Pr(e),l=s?KI:nI(t),c=a?KI:nI(e),h=(l=l==XI?ZI:l)==ZI,u=(c=c==XI?ZI:c)==ZI,d=l==c;if(d&&UP(t)){if(!UP(e))return!1;s=!0,h=!1}if(d&&!h)return o||(o=new _P),s||iL(t)?NI(t,e,n,i,r,o):YI(t,e,l,n,i,r,o);if(!(1&n)){var f=h&&QI.call(t,"__wrapped__"),p=u&&QI.call(e,"__wrapped__");if(f||p){var g=f?t.value():t,m=p?e.value():e;return o||(o=new _P),r(g,m,n,i,o)}}return!!d&&(o||(o=new _P),GI(t,e,n,i,r,o))};const tT=function t(e,n,i,r,o){return e===n||(null==e||null==n||!qr(e)&&!qr(n)?e!=e&&n!=n:JI(e,n,i,r,t,o))};const eT=function(t,e){return tT(t,e)};function nT(t,e,n="",i){const{bubbleUp:r=!1,collector:o}=null!=i?i:{},s=iT(t,e,n,o,r);""===n&&s&&r&&o&&o("",$I(t),void 0)}function iT(t,e,n,i,r){let o=!1;return Object.keys(e).forEach(s=>{if("__proto__"===s||"constructor"===s||"prototype"===s)return;const a=n?`${n}.${s}`:s,l=e[s],c=t[s];let h=!1;if(void 0===l)s in t&&(delete t[s],null==i||i(a,void 0,c),h=!0);else if(LI(l)){const e=LI(t[s]);e||(t[s]={});const n=iT(t[s],l,a,i,r);e?h=n:(h=!0,n||null==i||i(a,t[s],c))}else t[s]=l,eT(l,c)||(null==i||i(a,l,c),h=!0);h&&(o=!0)}),o&&r&&""!==n&&(null==i||i(n,$I(t),void 0)),o}function rT(t){const e=function(t){if(!(null==t?void 0:t.isConnected))return document;const e=t.getRootNode();return e instanceof ShadowRoot?e:document}(t);return e instanceof ShadowRoot?e:document.body}function oT(t,e){const n="function"==typeof t.composedPath?t.composedPath():[];if(n.length>0)return n.some(t=>t===e||t instanceof Node&&e.contains(t));const i=t.target;return i instanceof Node&&(i===e||e.contains(i))}var sT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class aT{constructor(t,e,n){this.element=t,this.originalText=null!=n?n:sh(t),this.modifiedText=e}apply(t){return sT(this,void 0,void 0,function*(){this.originalText!==this.modifiedText&&(ah(this.element,this.modifiedText),lT(t,this.element,this.modifiedText))})}undo(t){return sT(this,void 0,void 0,function*(){this.originalText!==this.modifiedText&&(ah(this.element,this.originalText),lT(t,this.element,this.originalText))})}serialize(){return{type:"update-text",elementId:this.element.id,original:this.originalText,modified:this.modifiedText}}}function lT(t,e,n){const i=Lh(e);if(i.startsWith("item-")){const r=i.replace("item-",""),o=fP(e);t.updateItemDatum(o,{[r]:n})}else t.updateData(i,n)}class cT{init(t){Object.assign(this,t)}}var hT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class uT extends cT{constructor(){super(...arguments),this.name="brush-select",this.shiftKey=!1,this.dragging=!1,this.dragThreshold=4,this.handleStart=t=>{this.interaction.isActive()&&0===t.button&&(xP(t.target)||this.hasElementAtStart(t.target)||this.interaction.executeExclusiveInteraction(this,()=>hT(this,void 0,void 0,function*(){return new Promise(e=>{this.completeInteraction=e;const n=this.editor.getDocument();this.startPoint=cP(n,t.clientX,t.clientY),this.pointerId=t.pointerId,this.shiftKey=t.shiftKey,this.dragging=!1,window.addEventListener("pointermove",this.handleMove),window.addEventListener("pointerup",this.handleEnd)})})))},this.handleMove=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;const e=cP(this.editor.getDocument(),t.clientX,t.clientY);if(!this.dragging){if(Math.hypot(e.x-this.startPoint.x,e.y-this.startPoint.y)<this.dragThreshold)return;this.dragging=!0,this.ensureBrush(),this.updateBrush(this.startPoint,e)}t.preventDefault(),t.stopPropagation(),this.updateBrush(this.startPoint,e)},this.handleEnd=t=>{var e,n;if(t.pointerId!==this.pointerId||!this.startPoint)return;window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd);let i=null;if(this.dragging){t.preventDefault(),t.stopPropagation();const e=cP(this.editor.getDocument(),t.clientX,t.clientY);i=this.updateBrush(this.startPoint,e),this.clearBrush()}this.pointerId=void 0,this.startPoint=void 0,this.dragging=!1;const r=this.shiftKey;if(this.shiftKey=!1,!i)return null===(e=this.completeInteraction)||void 0===e||e.call(this),void(this.completeInteraction=void 0);const o=this.collectSelection(i);if(null===(n=this.completeInteraction)||void 0===n||n.call(this),this.completeInteraction=void 0,0===o.length)return void(r||this.interaction.clearSelection());this.interaction.select(o,r?"add":"replace")}}init(t){super.init(t),this.editor.getDocument().addEventListener("pointerdown",this.handleStart)}destroy(){this.clearBrush(),this.editor.getDocument().removeEventListener("pointerdown",this.handleStart),window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd)}ensureBrush(){return this.brush||(this.brush=this.interaction.appendTransientElement(Zc("rect",{fill:"rgba(51, 132, 245, 0.08)",stroke:"#3384F5","stroke-dasharray":"4 2","stroke-width":1,"pointer-events":"none"}))),this.brush}updateBrush(t,e){if(!this.brush)return null;const n=Math.min(t.x,e.x),i=Math.min(t.y,e.y),r=Math.abs(t.x-e.x),o=Math.abs(t.y-e.y);return Jc(this.brush,{x:n,y:i,width:r,height:o}),{x:n,y:i,width:r,height:o}}clearBrush(){var t;null===(t=this.brush)||void 0===t||t.remove(),this.brush=void 0}collectSelection(t){const e=this.editor.getDocument(),n=Array.from(e.querySelectorAll("[data-element-type]")),i=new Set;return n.reduce((n,r)=>{const o=gP(r);if(!o||i.has(o))return n;const s=hP(e,o);return((t,e)=>!(t.x+t.width<e.x||e.x+e.width<t.x||t.y+t.height<e.y||e.y+e.height<t.y))(t,{x:s.x,y:s.y,width:s.width,height:s.height})&&(n.push(o),i.add(o)),n},[])}hasElementAtStart(t){var e;return t instanceof Element&&(!!pP(t)||Boolean(null===(e=t.closest)||void 0===e?void 0:e.call(t,"[data-element-type]")))}}var dT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class fT extends cT{constructor(){super(...arguments),this.name="click-select",this.shiftKey=!1,this.onShiftKeyDown=t=>{"Shift"===t.key&&(this.shiftKey=!0)},this.onShiftKeyUp=t=>{"Shift"===t.key&&(this.shiftKey=!1)},this.onEscKeyDown=t=>{"Escape"===t.key&&this.interaction.clearSelection()}}init(t){super.init(t);const{editor:e,interaction:n}=this;this.clickHandler=new lP(e.getDocument(),{delay:0});this.clickHandler.onClick(t=>{n.isActive()&&n.executeExclusiveInteraction(this,()=>dT(this,void 0,void 0,function*(){const e=pP(t.target);Sh(e)||(this.shiftKey?e&&(n.isSelected(e)?n.select([e],"remove"):n.select([e],"add")):e?n.select([e],"replace"):n.clearSelection())}))}),document.addEventListener("keydown",this.onShiftKeyDown),document.addEventListener("keyup",this.onShiftKeyUp),document.addEventListener("keydown",this.onEscKeyDown)}destroy(){var t;null===(t=this.clickHandler)||void 0===t||t.destroy(),document.removeEventListener("keydown",this.onShiftKeyDown),document.removeEventListener("keyup",this.onShiftKeyUp),document.removeEventListener("keydown",this.onEscKeyDown)}}var pT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class gT extends cT{constructor(){super(...arguments),this.name="dblclick-edit-text"}init(t){super.init(t);const{editor:e,commander:n,interaction:i}=t;this.clickHandler=new lP(e.getDocument()).onDoubleClick(t=>{i.isActive()&&i.executeExclusiveInteraction(this,()=>pT(this,void 0,void 0,function*(){const e=pP(t.target);if(e&&_h(e)){i.select([e],"replace");const r=sh(e),o=yield new Promise(n=>{const i=this.listenSelectionChange(e);!function(t,e){const n=rh(t);if(!n)return;(function(t){ru(mT,`\n.${yT} {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n background-color: transparent;\n outline: none;\n cursor: text;\n}\n.${yT}::selection {\n background-color: #b3d4fc;\n}\n`,t)})(n),new vT(n,e).start()}(e,{cursorPosition:{clientX:t.clientX,clientY:t.clientY},onBlur:n,onCancel:n}),this.detachSelectionListener=i});n.execute(new aT(e,o,r))}}))})}destroy(){var t,e;null===(t=this.clickHandler)||void 0===t||t.destroy(),null===(e=this.detachSelectionListener)||void 0===e||e.call(this)}listenSelectionChange(t){const e=({next:e})=>{var n;if(!e.includes(t)){null===(n=this.detachSelectionListener)||void 0===n||n.call(this),this.detachSelectionListener=void 0;const e=rh(t);e&&e.blur()}};return this.emitter.on("selection:change",e),()=>this.emitter.off("selection:change",e)}}const mT="infographic-inline-text-editor-style",yT="infographic-inline-text-editor";class vT{constructor(t,e){this.entity=t,this.options=e,this.handlePaste=t=>{t.clipboardData&&(t.preventDefault(),this.insertPlainText(t.clipboardData.getData("text/plain")))},this.handleKeydown=t=>{"Enter"!==t.key||t.shiftKey||(t.preventDefault(),this.insertPlainText("\n"))},this.handleInput=()=>{var t,e;this.normalizeSpanContent(),null===(e=null===(t=this.options)||void 0===t?void 0:t.onInput)||void 0===e||e.call(t,this.getText())},this.handleBlur=()=>{var t,e;this.entity.removeAttribute("contenteditable"),this.entity.classList.remove(yT),this.normalizeSpanContent(),null===(e=null===(t=this.options)||void 0===t?void 0:t.onBlur)||void 0===e||e.call(t,this.getText()),this.detachListeners()}}start(){this.entity.setAttribute("contenteditable","true"),this.entity.classList.add(yT),this.entity.focus(),this.placeCaretAtClickPosition(),this.attachListeners()}attachListeners(){this.entity.addEventListener("paste",this.handlePaste),this.entity.addEventListener("keydown",this.handleKeydown),this.entity.addEventListener("input",this.handleInput),this.entity.addEventListener("blur",this.handleBlur,{once:!0})}detachListeners(){this.entity.removeEventListener("paste",this.handlePaste),this.entity.removeEventListener("keydown",this.handleKeydown),this.entity.removeEventListener("input",this.handleInput)}insertPlainText(t){var e,n;const i=window.getSelection();if(!i)return;i.rangeCount||this.placeCaretAtEnd();const r=i.rangeCount?i.getRangeAt(0):document.createRange();r.deleteContents();const o=document.createTextNode(t);r.insertNode(o),r.setStartAfter(o),r.setEndAfter(o),i.removeAllRanges(),i.addRange(r),this.normalizeSpanContent(),null===(n=null===(e=this.options)||void 0===e?void 0:e.onInput)||void 0===n||n.call(e,this.getText())}normalizeSpanContent(){var t;if(1===this.entity.childNodes.length&&(null===(t=this.entity.firstChild)||void 0===t?void 0:t.nodeType)===Node.TEXT_NODE)return;const e=this.getText();this.entity.textContent=e}placeCaretAtClickPosition(){const t=window.getSelection();if(!t)return;const e=this.getRangeFromPoint();if(e)return t.removeAllRanges(),void t.addRange(e);this.placeCaretAtEnd()}getRangeFromPoint(){var t,e;const{cursorPosition:n}=this.options||{};if(!n)return null;const{clientX:i,clientY:r}=n,o=document,s=null!==(e=null===(t=o.caretRangeFromPoint)||void 0===t?void 0:t.call(o,i,r))&&void 0!==e?e:(()=>{var t;const e=null===(t=o.caretPositionFromPoint)||void 0===t?void 0:t.call(o,i,r);if(!e)return null;const n=document.createRange();return n.setStart(e.offsetNode,e.offset),n.collapse(!0),n})();return s&&this.entity.contains(s.startContainer)?s:null}placeCaretAtEnd(){const t=window.getSelection();if(!t)return;const e=document.createRange();e.selectNodeContents(this.entity),e.collapse(!1),t.removeAllRanges(),t.addRange(e)}getText(){return this.entity.textContent||""}}var xT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class bT extends cT{constructor(t){super(),this.name="drag-canvas",this.trigger=["Space"],this.isTriggerPressed=!1,this.isHovering=!1,this.handleKeyDown=t=>{if(!this.interaction.isActive())return;if(xP(t.target))return;const e=t.target,n=e===document.body||e===document.documentElement,i=e===this.document||this.document.contains(e);(n||i)&&this.trigger.includes(t.code)&&(this.isHovering||this.isTriggerPressed)&&(t.preventDefault(),t.stopPropagation(),this.interaction.executeExclusiveInteraction(this,()=>xT(this,void 0,void 0,function*(){return new Promise(t=>{this.completeInteraction=t,this.isTriggerPressed=!0;const e=Zh(this.document);this.startViewBoxString=Qh(e),this.setCursor("grab"),this.document.addEventListener("pointerdown",this.handlePointerDown),window.addEventListener("keyup",this.handleKeyUp)})})))},this.handlePointerDown=t=>{if(0!==t.button)return;t.preventDefault(),t.stopPropagation();this.startPoint=cP(this.document,t.clientX,t.clientY),this.pointerId=t.pointerId,this.setCursor("grabbing"),window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp),window.addEventListener("pointercancel",this.handlePointerUp)},this.handlePointerMove=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;t.preventDefault(),t.stopPropagation();const e=this.document,n=cP(e,t.clientX,t.clientY),i=n.x-this.startPoint.x,r=n.y-this.startPoint.y,o=Zh(e),{x:s,y:a,width:l,height:c}=o;this.state.updateOptions({viewBox:Qh({x:s-i,y:a-r,width:l,height:c})})},this.handlePointerUp=t=>{t.pointerId===this.pointerId&&(this.startPoint=void 0,this.pointerId=void 0,this.setCursor("grab"),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp))},this.handleKeyUp=t=>{this.trigger.includes(t.code)&&this.stopDrag()},this.stopDrag=()=>{var t;if(this.startViewBoxString){const t=Qh(Zh(this.document));if(this.startViewBoxString!==t){const e=new aP({viewBox:t},{viewBox:this.startViewBoxString});this.commander.execute(e)}}this.startViewBoxString=void 0,this.isTriggerPressed=!1,this.setCursor("default"),this.startPoint=void 0,this.pointerId=void 0,window.removeEventListener("keyup",this.handleKeyUp),this.document.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),null===(t=this.completeInteraction)||void 0===t||t.call(this),this.completeInteraction=void 0},this.setCursor=t=>{document.body.style.cursor=t},this.handleBlur=()=>{this.stopDrag()},this.onMouseEnter=()=>{this.isHovering=!0},this.onMouseLeave=()=>{this.isHovering=!1},(null==t?void 0:t.trigger)&&(this.trigger=t.trigger)}init(t){super.init(t),this.document=this.editor.getDocument(),this.document.addEventListener("mouseenter",this.onMouseEnter),this.document.addEventListener("mouseleave",this.onMouseLeave),window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("blur",this.handleBlur)}destroy(){window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("keyup",this.handleKeyUp),this.document.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),window.removeEventListener("blur",this.handleBlur),this.document.removeEventListener("mouseenter",this.onMouseEnter),this.document.removeEventListener("mouseleave",this.onMouseLeave)}}var wT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class MT extends cT{constructor(){super(...arguments),this.name="drag-element",this.selectionForDrag=[],this.willReplaceSelection=!1,this.exclusiveStarted=!1,this.dragItems=[],this.dragging=!1,this.dragThreshold=4,this.handleStart=t=>{if(!this.interaction.isActive())return;if("mouse"===t.pointerType&&0!==t.button)return;const e=pP(t.target);if(!e)return;if(Sh(e))return;const n=this.editor.getDocument();this.pointerId=t.pointerId,this.startPoint=cP(n,t.clientX,t.clientY),this.dragging=!1,this.startTarget=e;const i=this.interaction.isSelected(e);this.selectionForDrag=i?this.interaction.getSelection():[e],this.willReplaceSelection=!i,this.exclusiveStarted=!1,this.startBounds=this.getSelectionBounds(this.selectionForDrag),this.guideCandidates=this.collectGuideCandidates(this.selectionForDrag),window.addEventListener("pointermove",this.handleMove),window.addEventListener("pointerup",this.handleEnd),window.addEventListener("pointercancel",this.handleEnd)},this.handleMove=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;const e=cP(this.editor.getDocument(),t.clientX,t.clientY),n=e.x-this.startPoint.x,i=e.y-this.startPoint.y;if(!this.dragging){if(Math.hypot(n,i)<this.dragThreshold)return;if(!this.startDrag())return void this.reset();this.dragging=!0}const r=t.altKey?{dx:n,dy:i}:this.getSnappedDelta(n,i);t.preventDefault(),t.stopPropagation(),this.updateGuides(r),this.applyTranslation(r.dx,r.dy),this.emitGeometryChange()},this.handleEnd=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;this.detachPointerListeners();const e=cP(this.editor.getDocument(),t.clientX,t.clientY),n=e.x-this.startPoint.x,i=e.y-this.startPoint.y;if((this.dragging||Math.hypot(n,i)>=this.dragThreshold)&&this.dragItems.length&&this.exclusiveStarted){t.preventDefault(),t.stopPropagation();const e=t.altKey?{dx:n,dy:i}:this.getSnappedDelta(n,i);this.updateGuides(e),this.applyTranslation(e.dx,e.dy),this.commitTranslation(e.dx,e.dy),this.emitGeometryChange()}this.reset()}}init(t){super.init(t),this.editor.getDocument().addEventListener("pointerdown",this.handleStart)}destroy(){this.detachPointerListeners(),this.editor.getDocument().removeEventListener("pointerdown",this.handleStart)}startDrag(){if(this.exclusiveStarted)return!0;if(!this.startTarget)return!1;if(this.dragItems=this.selectionForDrag.filter(t=>_h(t)).map(t=>this.createDragItem(t)).filter(Boolean),0===this.dragItems.length)return!1;let t=!1;return this.interaction.executeExclusiveInteraction(this,()=>wT(this,void 0,void 0,function*(){return new Promise(e=>{this.willReplaceSelection&&this.startTarget&&this.interaction.select([this.startTarget],"replace"),this.completeInteraction=e,t=!0})})),this.exclusiveStarted=t,t}applyTranslation(t,e){this.dragItems.forEach(n=>{if("attr"===n.mode){const i=n.startX+t,r=n.startY+e,o={x:i,y:r};n.hasDataX&&(o["data-x"]=i),n.hasDataY&&(o["data-y"]=r),Jc(n.element,o)}else{const i=this.composeTransform(n.startX+t,n.startY+e,n.restTransform);Jc(n.element,{transform:i})}})}commitTranslation(t,e){if(Math.abs(t)<1e-6&&Math.abs(e)<1e-6)return;const n=this.dragItems.map(n=>{if("attr"===n.mode){const i=n.startX+t,r=n.startY+e,o={x:i,y:r},s={};return s.x=n.hasX?n.startX:null,s.y=n.hasY?n.startY:null,n.hasDataX&&(o["data-x"]=i,s["data-x"]=n.startX),n.hasDataY&&(o["data-y"]=r,s["data-y"]=n.startY),new rP(n.element,{attributes:o},{attributes:s})}const i=this.composeTransform(n.startX+t,n.startY+e,n.restTransform);return new rP(n.element,{attributes:{transform:i}},{attributes:{transform:void 0!==n.originalTransform?n.originalTransform:null}})});n.length&&this.commander.executeBatch(n)}createDragItem(t){const e=this.getTransformInfo(t);if(e)return{element:t,mode:"transform",startX:e.x,startY:e.y,hasX:!1,hasY:!1,hasDataX:!1,hasDataY:!1,restTransform:e.rest,originalTransform:e.original};const{x:n,y:i,hasX:r,hasY:o,hasDataX:s,hasDataY:a}=this.getAttrInfo(t);return{element:t,mode:"attr",startX:n,startY:i,hasX:r,hasY:o,hasDataX:s,hasDataY:a}}getAttrInfo(t){const e=this.editor.getDocument(),{x:n,y:i}=hP(e,t),r=th(t,["x","y","data-x","data-y"],!1),o=null!=r.x,s=null!=r.y,a=null!=r["data-x"],l=null!=r["data-y"],c=(t,e)=>{const n=null!=t?Number(t):NaN;return Number.isFinite(n)?n:e},h=c(r.x,NaN),u=c(r.y,NaN),d=c(r["data-x"],NaN),f=c(r["data-y"],NaN);return{x:Number.isFinite(h)?h:Number.isFinite(d)?d:n,y:Number.isFinite(u)?u:Number.isFinite(f)?f:i,hasX:o,hasY:s,hasDataX:a,hasDataY:l}}getTransformInfo(t){const e=t.getAttribute("transform");if(null===e)return null;const n=e.match(/translate\(\s*([-\d.]+)(?:[ ,]\s*([-\d.]+))?\s*\)/i);if(!n)return{x:0,y:0,rest:e,original:e};return{x:Number(n[1])||0,y:void 0!==n[2]&&Number(n[2])||0,rest:e.replace(n[0],"").trim(),original:e}}composeTransform(t,e,n){const i=`translate(${t}, ${e})`;return n&&n.length?`${i} ${n}`:i}emitGeometryChange(){var t;const e=null===(t=this.dragItems[0])||void 0===t?void 0:t.element;if(!e)return;const n=hP(this.editor.getDocument(),e);this.emitter.emit("selection:geometrychange",{type:"selection:geometrychange",target:e,rect:n})}detachPointerListeners(){window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd),window.removeEventListener("pointercancel",this.handleEnd)}reset(){var t;this.detachPointerListeners(),this.clearGuides(),this.pointerId=void 0,this.startPoint=void 0,this.dragItems=[],this.startTarget=void 0,this.selectionForDrag=[],this.willReplaceSelection=!1,this.exclusiveStarted=!1,this.dragging=!1,this.startBounds=void 0,this.guideCandidates=void 0,null===(t=this.completeInteraction)||void 0===t||t.call(this),this.completeInteraction=void 0}getSelectionBounds(t){if(!t.length)return;const e=this.editor.getDocument();return uu(t.map(t=>hP(e,t)))}collectGuideCandidates(t){const e=this.editor.getDocument(),n=new Set(t),i=Array.from(e.querySelectorAll("[data-element-type]")).filter(t=>!n.has(t)),r=[],o=[];return i.forEach(t=>{const{x:n,y:i,width:s,height:a}=hP(e,t);r.push(n,n+s/2,n+s),o.push(i,i+a/2,i+a)}),{vertical:r,horizontal:o}}getSnappedDelta(t,e){if(!this.startBounds||!this.guideCandidates)return{dx:t,dy:e};const n={x:this.startBounds.x+t,y:this.startBounds.y+e,width:this.startBounds.width,height:this.startBounds.height},i=this.getSnapOffset([n.x,n.x+n.width/2,n.x+n.width],this.guideCandidates.vertical),r=this.getSnapOffset([n.y,n.y+n.height/2,n.y+n.height],this.guideCandidates.horizontal);return{dx:t+((null==i?void 0:i.offset)||0),dy:e+((null==r?void 0:r.offset)||0),snapX:i,snapY:r}}getSnapOffset(t,e,n=5){let i=null;return t.forEach(t=>{e.forEach(e=>{const r=e-t;Math.abs(r)<=n&&(!i||Math.abs(r)<Math.abs(i.offset))&&(i={offset:r,at:e})})}),i||void 0}ensureGuideLine(t){const e="vertical"===t?this.guideVertical:this.guideHorizontal;if(e)return e;const n=this.interaction.appendTransientElement(Zc("line",{stroke:"#FF7A45","stroke-width":1,"stroke-dasharray":"4 4","pointer-events":"none",visibility:"hidden"}));return"vertical"===t?this.guideVertical=n:this.guideHorizontal=n,n}updateGuides(t){const e=this.editor.getDocument(),{width:n,height:i}=e.viewBox.baseVal;if(t.snapX){Jc(this.ensureGuideLine("vertical"),{x1:t.snapX.at,y1:0,x2:t.snapX.at,y2:i,visibility:"visible"})}else this.guideVertical&&this.guideVertical.setAttribute("visibility","hidden");if(t.snapY){Jc(this.ensureGuideLine("horizontal"),{x1:0,y1:t.snapY.at,x2:n,y2:t.snapY.at,visibility:"visible"})}else this.guideHorizontal&&this.guideHorizontal.setAttribute("visibility","hidden")}clearGuides(){var t,e;null===(t=this.guideVertical)||void 0===t||t.remove(),null===(e=this.guideHorizontal)||void 0===e||e.remove(),this.guideVertical=void 0,this.guideHorizontal=void 0}}var kT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class CT extends cT{constructor(){super(...arguments),this.name="hotkey-history",this.handleUndo=t=>kT(this,void 0,void 0,function*(){t.preventDefault(),yield this.commander.undo()}),this.handleRedo=t=>kT(this,void 0,void 0,function*(){t.preventDefault(),yield this.commander.redo()})}init(t){super.init(t),this.hotkey=new MP({filter:()=>this.interaction.isActive()}),this.hotkey.bind("mod+z",this.handleUndo),this.hotkey.bind(["mod+shift+z","mod+y"],this.handleRedo)}destroy(){var t;null===(t=this.hotkey)||void 0===t||t.destroy()}}class OT extends cT{constructor(){super(...arguments),this.name="select-highlight",this.highlightMasks=[],this.handleSelectionChanged=({next:t})=>{this.highlightSelection(t)},this.handleGeometryChanged=({target:t})=>{this.interaction.isSelected(t)&&this.highlightSelection(this.interaction.getSelection())},this.handleHistoryChanged=()=>{this.highlightSelection(this.interaction.getSelection())}}init(t){super.init(t);const{emitter:e}=t;e.on("selection:change",this.handleSelectionChanged),e.on("selection:geometrychange",this.handleGeometryChanged),e.on("history:change",this.handleHistoryChanged),this.highlightSelection(this.interaction.getSelection())}destroy(){this.clearMasks();const{emitter:t}=this;t.off("selection:change",this.handleSelectionChanged),t.off("selection:geometrychange",this.handleGeometryChanged),t.off("history:change",this.handleHistoryChanged)}highlightSelection(t){1===t.length&&_h(t[0])?this.clearMasks():(this.drawElementMasks(t),this.drawCombinedBoundsMask(t))}drawElementMasks(t){let e=0;for(;e<t.length;e++){const{x:n,y:i,width:r,height:o}=hP(this.editor.getDocument(),t[e]),s={x:n,y:i,width:r,height:o,fill:"none",stroke:"#3384F5","stroke-width":1,"pointer-events":"none"},a=this.highlightMasks[e];a?Jc(a,s):this.highlightMasks[e]=this.interaction.appendTransientElement(Zc("rect",s))}for(;e<this.highlightMasks.length;e++)this.highlightMasks[e].remove();this.highlightMasks=this.highlightMasks.slice(0,t.length)}drawCombinedBoundsMask(t){var e;if(t.length<2)return null===(e=this.combinedBoundsMask)||void 0===e||e.remove(),void(this.combinedBoundsMask=void 0);const n=uu(t.map(t=>hP(this.editor.getDocument(),t))),i=Object.assign(Object.assign({},n),{fill:"none",stroke:"#3384F5","stroke-width":2,"pointer-events":"none"});this.combinedBoundsMask?Jc(this.combinedBoundsMask,i):this.combinedBoundsMask=this.interaction.appendTransientElement(Zc("rect",i))}clearMasks(){var t;this.highlightMasks.forEach(t=>t.remove()),this.highlightMasks=[],null===(t=this.combinedBoundsMask)||void 0===t||t.remove(),this.combinedBoundsMask=void 0}}var jT=Math.max,ET=Math.min;const _T=function(t,e,n){return t>=ET(e,n)&&t<jT(e,n)};var ST=/\s/;const $T=function(t){for(var e=t.length;e--&&ST.test(t.charAt(e)););return e};var AT=/^\s+/;const zT=function(t){return t?t.slice(0,$T(t)+1).replace(AT,""):t};var PT=/^[-+]0x[0-9a-f]+$/i,LT=/^0b[01]+$/i,IT=/^0o[0-7]+$/i,TT=parseInt;const RT=function(t){if("number"==typeof t)return t;if(Gr(t))return NaN;if(Qr(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Qr(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=zT(t);var n=LT.test(t);return n||IT.test(t)?TT(t.slice(2),n?2:8):PT.test(t)?NaN:+t};var BT=1/0;const WT=function(t){return t?(t=RT(t))===BT||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};const HT=function(t,e,n){return e=WT(e),void 0===n?(n=e,e=0):n=WT(n),t=RT(t),_T(t,e,n)};class NT extends cT{constructor(t){super(),this.name="zoom-wheel",this.minViewBoxSize=20,this.maxViewBoxSize=2e4,this.initialViewBox=null,this.handleKeyUp=t=>{if(!(t.ctrlKey||t.metaKey||t.shiftKey)&&this.initialViewBox){const t=Qh(Zh(this.editor.getDocument()));if(t!==this.initialViewBox){const e=new aP({viewBox:t},{viewBox:this.initialViewBox});this.commander.execute(e)}this.initialViewBox=null,document.removeEventListener("keyup",this.handleKeyUp)}},this.wheelListener=t=>{if(!this.shouldZoom(t))return;t.preventDefault();const e=t.deltaY<0?1/1.1:1.1,n=this.editor.getDocument(),i=Zh(n),{width:r,height:o}=i,s=o*e;if(!HT(r*e,this.minViewBoxSize,this.maxViewBoxSize)||!HT(s,this.minViewBoxSize,this.maxViewBoxSize))return;null===this.initialViewBox&&(this.initialViewBox=Qh(i),document.addEventListener("keyup",this.handleKeyUp));const a=function(t,e,n){return{x:n.x-(n.x-t.x)*e,y:n.y-(n.y-t.y)*e,width:t.width*e,height:t.height*e}}(i,e,!t.ctrlKey&&!t.metaKey||t.shiftKey?this.getCenterPoint(i):this.getMousePoint(n,t));this.state.updateOptions({viewBox:Qh(a)})},this.getMousePoint=(t,e)=>cP(t,e.clientX,e.clientY),this.getCenterPoint=t=>({x:t.x+t.width/2,y:t.y+t.height/2}),this.shouldZoom=t=>{if(!this.interaction.isActive())return!1;if(0===t.deltaY)return!1;const e=t.ctrlKey||t.metaKey,n=t.shiftKey;return(!e||!n)&&(e||n)},void 0!==(null==t?void 0:t.minViewBoxSize)&&(this.minViewBoxSize=t.minViewBoxSize),void 0!==(null==t?void 0:t.maxViewBoxSize)&&(this.maxViewBoxSize=t.maxViewBoxSize)}init(t){super.init(t),document.addEventListener("wheel",this.wheelListener,{passive:!1})}destroy(){document.removeEventListener("wheel",this.wheelListener),document.removeEventListener("keyup",this.handleKeyUp)}}class FT{init(t){Object.assign(this,t)}}class DT extends FT{constructor(){super(...arguments),this.name="core-sync",this.unregisters=[]}init(t){super.init(t);const e=this.editor.getDocument();this.unregisters.push(this.editor.registerSync("viewBox",t=>{t?e.setAttribute("viewBox",t):e.removeAttribute("viewBox")},{immediate:!0})),this.unregisters.push(this.editor.registerSync("padding",t=>{void 0!==t&&tu(e,Jh(t))},{immediate:!0}))}destroy(){this.unregisters.forEach(t=>t())}}const VT=({icon:t,onClick:e,activate:n=!1,root:i})=>{ru(YT,`\n.${UT} {\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n font-size: 12px;\n color: #000000d9;\n border: none;\n border-radius: 6px;\n background-color: #fff;\n cursor: pointer;\n transition: color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;\n}\n.${UT}:hover {\n background-color: #f5f5f5;\n}\n.${UT}:active {\n background-color: #d9d9d9;\n}\n.${UT}[data-activate="true"] {\n background-color: #d9d9d9;\n}\n`,i);const r=document.createElement("button");r.type="button",r.classList.add(UT),n&&r.setAttribute("data-activate","true"),e&&r.addEventListener("click",e);const o=t();r.appendChild(o);return Object.assign(r,{setActivate:(t=>{t?r.setAttribute("data-activate","true"):r.removeAttribute("data-activate")}).bind(r),activate:n})},UT="infographic-edit-bar-icon-btn",YT="infographic-edit-bar-icon-btn-style";const qT="infographic-color-picker",GT=`${qT}__swatches`,XT=`${qT}__swatch`,KT=`${qT}__controls`,ZT=`${qT}__input`,QT=`${qT}__format`,JT=`${qT}__format-switch`,tR=`${qT}__format-switch-knob`,eR=`${qT}__format-switch-label`,nR="infographic-color-picker-style",iR=["#000000","#1f1f1f","#434343","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#ffffff","#1677ff","#2f54eb","#91caff","#13c2c2","#36cfc9","#52c41a","#73d13d","#fadb14","#ffd666","#fa8c16","#fa541c","#f5222d","#ff7875","#eb2f96","#ffadd2","#722ed1","#9254de","rgba(0, 0, 0, 0.65)","rgba(255, 255, 255, 0.85)"];function rR(t){var e,n,i;if("undefined"==typeof document)throw new Error("ColorPicker can only be used in the browser.");ru(nR,`\n.${qT} {\n width: 240px;\n padding: 10px;\n box-sizing: border-box;\n}\n.${GT} {\n display: grid;\n grid-template-columns: repeat(auto-fit, 26px);\n gap: 6px;\n margin-bottom: 10px;\n}\n.${XT} {\n width: 24px;\n height: 24px;\n border-radius: 50%;\n border: 1px solid rgba(0, 0, 0, 0.06);\n background: var(--swatch-color);\n cursor: pointer;\n padding: 0;\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);\n transition: transform 0.15s ease, box-shadow 0.15s ease;\n}\n.${XT}[data-active="true"] {\n box-shadow: 0 0 0 2px #1677ff;\n transform: translateY(-1px);\n}\n.${XT}:hover {\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);\n}\n.${KT} {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n.${ZT} {\n flex: 1;\n min-width: 0;\n height: 30px;\n padding: 2px 6px;\n border: 1px solid #d9d9d9;\n border-radius: 6px;\n background: #f5f5f5;\n color: #262626;\n font-size: 12px;\n font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas,\n "Liberation Mono", "Courier New", monospace;\n box-sizing: border-box;\n outline: none;\n transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;\n}\n.${ZT}:focus {\n border-color: #1677ff;\n background: #ffffff;\n box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);\n}\n.${ZT}[data-invalid="true"] {\n border-color: #ff4d4f;\n box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.12);\n}\n.${QT} {\n display: inline-flex;\n}\n.${JT} {\n position: relative;\n display: grid;\n grid-template-columns: 1fr 1fr;\n align-items: center;\n width: 110px;\n height: 30px;\n padding: 0;\n border: 1px solid #d9d9d9;\n border-radius: 6px;\n background: #f5f5f5;\n cursor: pointer;\n overflow: hidden;\n transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;\n}\n.${JT}:hover {\n background: #ededed;\n}\n.${JT}:focus-visible {\n outline: none;\n border-color: #1677ff;\n box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);\n}\n.${tR} {\n position: absolute;\n inset: 0;\n width: 50%;\n background: #1677ff;\n border-radius: 6px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);\n transition: transform 0.2s ease;\n}\n.${JT}[data-format="rgba"] .${tR} {\n transform: translateX(100%);\n}\n.${eR} {\n position: relative;\n z-index: 1;\n text-align: center;\n font-size: 12px;\n color: #434343;\n user-select: none;\n}\n.${JT}[data-format="hexa"] .${eR}:first-child,\n.${JT}[data-format="rgba"] .${eR}:last-child {\n color: #ffffff;\n}\n`,t.root);const r=document.createElement("div");r.classList.add(qT);const o=document.createElement("div");o.classList.add(GT),r.appendChild(o);const s=document.createElement("div");s.classList.add(KT),r.appendChild(s);const a=document.createElement("input");a.type="text",a.spellcheck=!1,a.classList.add(ZT),s.appendChild(a);const l=document.createElement("div");l.classList.add(QT),s.appendChild(l);const c=document.createElement("button");c.type="button",c.classList.add(JT),c.appendChild(dR("HEXA"));const h=document.createElement("span");h.classList.add(tR),c.appendChild(h),c.appendChild(dR("RGBA")),l.appendChild(c);let u="hexa",d=null!==(n=null!==(e=oR(t.value))&&void 0!==e?e:oR("#1f1f1f"))&&void 0!==n?n:{r:31,g:31,b:31,a:1};const f=[];((null===(i=t.swatches)||void 0===i?void 0:i.length)?t.swatches:iR).forEach(t=>{const e=oR(t);if(!e)return;const n=document.createElement("button");n.type="button",n.classList.add(XT),n.style.setProperty("--swatch-color",sR(e,"rgba")),n.dataset.colorKey=lR(e),n.addEventListener("click",()=>{m(e)}),o.appendChild(n),f.push(n)}),c.addEventListener("click",()=>function(e,n){var i;if(u===e)return;u=e,y(),n&&(null===(i=t.onChange)||void 0===i||i.call(t,sR(d,u)))}("hexa"===u?"rgba":"hexa",!0)),a.addEventListener("change",g),a.addEventListener("keydown",t=>{"Enter"===t.key&&g()}),y();const p={setValue:t=>{const e=oR(t);e?(a.removeAttribute("data-invalid"),m(e,!1)):a.setAttribute("data-invalid","true")},destroy:()=>{r.remove()}};return Object.assign(r,p);function g(){const t=oR(a.value);t?(a.removeAttribute("data-invalid"),m(t)):a.setAttribute("data-invalid","true")}function m(e,n=!0){var i;!function(t,e){return t.r===e.r&&t.g===e.g&&t.b===e.b&&t.a===e.a}(d,e)?(d=e,y(),n&&(null===(i=t.onChange)||void 0===i||i.call(t,sR(d,u)))):y()}function y(){a.value=sR(d,u),function(){const t=lR(d);f.forEach(e=>{e.dataset.colorKey===t?e.setAttribute("data-active","true"):e.removeAttribute("data-active")})}(),c.setAttribute("data-format","rgba"===u?"rgba":"hexa")}}function oR(t){var e;if(!t)return;const n=Dt(t);if(!n||"number"!=typeof n.r)return;const i=n;return{r:hR(i.r),g:hR(i.g),b:hR(i.b),a:cR(null!==(e=i.alpha)&&void 0!==e?e:1)}}function sR(t,e){return"rgba"===e?function(t){const e=function(t){const e=Math.round(100*cR(t))/100;return 1===e?"1":0===e?"0":e.toString()}(t.a);return`rgba(${t.r}, ${t.g}, ${t.b}, ${e})`}(t):aR(t)}function aR(t){return`#${uR(t.r)}${uR(t.g)}${uR(t.b)}${t.a<1?uR(Math.round(255*t.a)):""}`}function lR(t){return aR(t).toLowerCase()}function cR(t){return Number.isNaN(t)?0:Math.min(1,Math.max(0,t))}function hR(t){if(Number.isNaN(t))return 0;return Math.round(Math.min(255,Math.max(0,t<=1?255*t:t)))}function uR(t){return t.toString(16).padStart(2,"0")}function dR(t){const e=document.createElement("span");return e.textContent=t,e.classList.add(eR),e}const fR=(t,{viewBox:e="0 0 1024 1024",size:n="1.5em"}={})=>({fill:i="currentColor"}={})=>{const r=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="${e}" width="${n}" height="${n}" fill="${i}">\n${t.trim()}\n</svg>`;return document.createRange().createContextualFragment(r).firstElementChild},pR={fontFamily:fR('<path d="M236.992 938.688H145.088L469.312 128h85.376l324.224 810.688h-91.904l-102.4-256H339.392l-102.4 256z m136.512-341.376h276.992L512 251.072l-138.496 346.24z"></path>',{size:"1.2em"}),fontSize:fR('<path d="M479.829333 640H202.837333l-85.333333 213.333333H25.6L298.666667 170.666667h85.333333l273.066667 682.666666h-91.904l-85.333334-213.333333z m-34.133333-85.333333L341.333333 293.76 236.970667 554.666667h208.725333zM896 534.826667V512h85.333333v341.333333h-85.333333v-22.826666a170.666667 170.666667 0 1 1 0-295.68zM810.666667 768a85.333333 85.333333 0 1 0 0-170.666667 85.333333 85.333333 0 0 0 0 170.666667z"></path>',{size:"1.2em"}),align:fR('<path d="M832 96c53.02 0 96 42.98 96 96v640c0 53.02-42.98 96-96 96H192c-53.02 0-96-42.98-96-96V192c0-53.02 42.98-96 96-96z m0 64H192c-17.673 0-32 14.327-32 32v640c0 17.673 14.327 32 32 32h640c17.673 0 32-14.327 32-32V192c0-17.673-14.327-32-32-32zM725.333 672c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z m0-192c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z m0-192c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z"></path>'),alignTop:fR('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-121.533c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM512.45 91.003L512 91a32.632 32.632 0 0 1 1.653 0.042l0.134 0.008c3.447 0.189 6.75 0.924 9.82 2.12l0.198 0.078a16.118 16.118 0 0 1 0.485 0.197l0.11 0.046a31.82 31.82 0 0 1 8.546 5.315l0.12 0.105a31.066 31.066 0 0 1 1.189 1.095l0.08 0.078 0.235 0.23 0.062 0.063 128 128.055c12.494 12.5 12.49 32.761-0.01 45.255-12.374 12.37-32.356 12.489-44.877 0.362l-0.377-0.372L544 200.28v413.598c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.996-31.471l-0.004-0.53V200.278l-73.368 73.4c-12.369 12.375-32.35 12.503-44.877 0.381l-0.378-0.37c-12.374-12.37-12.502-32.352-0.38-44.878l0.37-0.378 128-128.055 0.181-0.178a31.875 31.875 0 0 1 9.5-6.47l0.105-0.046c0.116-0.051 0.233-0.101 0.35-0.15 0.054-0.024 0.11-0.047 0.165-0.07a28.198 28.198 0 0 1 0.536-0.219l0.157-0.061a31.816 31.816 0 0 1 9.356-2.103l0.113-0.007c0.147-0.01 0.294-0.02 0.442-0.027l0.028-0.001 0.39-0.019 0.144-0.005a23.911 23.911 0 0 1 0.712-0.018c0.3-0.004 0.602-0.004 0.904 0z"></path>'),alignRight:fR('<path d="M896 800.339c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H298.667c-17.673 0-32-14.327-32-32 0-17.497 14.041-31.713 31.47-31.996l0.53-0.004H896z m0-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004H896z m0-213.226c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignBottom:fR('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-121.533c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM490.505 637.584l-0.127-0.117a32.174 32.174 0 0 1-0.633-0.596l-0.098-0.096-0.217-0.213-0.062-0.063-128-128.055c-12.494-12.499-12.49-32.76 0.01-45.254 12.374-12.37 32.356-12.489 44.877-0.362l0.377 0.371L480 536.598V123c0-17.673 14.327-32 32-32 17.496 0 31.713 14.042 31.996 31.47l0.004 0.53v413.597l73.368-73.398c12.494-12.5 32.755-12.503 45.255-0.01 12.374 12.37 12.502 32.352 0.38 44.878l-0.37 0.377-128 128.055c-0.121 0.12-0.238 0.236-0.356 0.35l0.355-0.35a31.922 31.922 0 0 1-9.68 6.649l-0.09 0.039a29.917 29.917 0 0 1-1.241 0.514 31.816 31.816 0 0 1-9.338 2.095l-0.113 0.008c-0.147 0.01-0.294 0.019-0.442 0.027h-0.028c-0.13 0.008-0.26 0.014-0.39 0.02l-0.144 0.005a23.92 23.92 0 0 1-0.796 0.019 33.927 33.927 0 0 1-0.37 0.002h-0.13l-0.236-0.002 0.366 0.002a32.633 32.633 0 0 1-1.153-0.02l-0.129-0.006a31.108 31.108 0 0 1-0.876-0.046l-0.105-0.008a31.811 31.811 0 0 1-8.926-1.931l-0.089-0.034a21.022 21.022 0 0 1-0.362-0.138l-0.098-0.04a22.132 22.132 0 0 1-0.746-0.304l-0.219-0.093-0.209-0.092a31.812 31.812 0 0 1-8.034-5.094l-0.12-0.105-0.173-0.153-0.151-0.136-0.105-0.093z"></path>'),alignLeft:fR('<path d="M725.333 800.339c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h597.333zM896 587.113c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768zM725.333 373.887c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h597.333zM896 160.661c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignCenter:fR('<path d="M768 800.339c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H256c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h512z m128-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768zM768 373.887c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H256c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h512z m128-213.226c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignMiddle:fR('<path d="M534.246 617.448l0.377 0.371 128 127.952c12.5 12.494 12.503 32.755 0.009 45.255-12.37 12.374-32.352 12.501-44.878 0.38l-0.377-0.372-73.38-73.352V939c0 17.673-14.326 32-32 32-17.496 0-31.712-14.042-31.995-31.47l-0.004-0.53-0.001-221.314-73.374 73.348c-12.374 12.37-32.356 12.49-44.878 0.363l-0.377-0.371c-12.37-12.375-12.49-32.356-0.362-44.878l0.37-0.377 128-127.952c12.372-12.366 32.347-12.49 44.87-0.37zM896 480.508c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM511.998 54c17.496 0 31.713 14.042 31.996 31.47l0.004 0.53-0.001 221.314 73.38-73.349c12.499-12.494 32.76-12.49 45.255 0.009 12.37 12.374 12.49 32.356 0.362 44.878l-0.37 0.377-128 127.951c-12.372 12.366-32.347 12.49-44.87 0.371l-0.377-0.37-128-127.952c-12.5-12.495-12.503-32.756-0.009-45.255 12.37-12.374 32.352-12.502 44.878-0.38l0.377 0.371 73.374 73.346V86c0-17.673 14.328-32 32-32z"></path>')},gR=fR('<path d="M502.714987 58.258904l-126.531056-54.617723a52.797131 52.797131 0 0 0-41.873587 96.855428A447.865322 447.865322 0 0 0 392.02307 946.707184a61.535967 61.535967 0 0 0 13.83649 1.820591 52.797131 52.797131 0 0 0 13.65443-103.773672 342.453118 342.453118 0 0 1-31.678278-651.771485l-8.374718 19.480321a52.615072 52.615072 0 0 0 27.855039 69.182448 51.522718 51.522718 0 0 0 20.572675 4.369418A52.797131 52.797131 0 0 0 476.498481 254.882703L530.205907 127.441352a52.979191 52.979191 0 0 0-27.49092-69.182448zM962.960326 509.765407A448.775617 448.775617 0 0 0 643.992829 68.090094a52.797131 52.797131 0 1 0-30.403866 101.042786A342.635177 342.635177 0 0 1 674.578753 801.059925a52.615072 52.615072 0 0 0-92.30395-50.612422l-71.913335 117.246043a52.433013 52.433013 0 0 0 17.295612 72.82363l117.063985 72.823629a52.797131 52.797131 0 1 0 54.617722-89.755123l-16.021198-10.013249A448.593558 448.593558 0 0 0 962.960326 509.765407z" p-id="1630"/>'),mR={align:fR('<path d="M555.188 715.059c17.673 0 32 14.327 32 32V875c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V747.059c0-17.673 14.327-32 32-32z m-32.001 63.999H203V843h320.187v-63.942zM854 416.529c17.673 0 32 14.327 32 32v127.942c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V448.529c0-17.673 14.327-32 32-32z m-32 64H203v63.941h619v-63.941zM683.25 118c17.673 0 32 14.327 32 32v127.941c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V150c0-17.673 14.327-32 32-32z m-32 64H203v63.941h448.25V182z"></path>'),alignTop:fR('\n <path d="M661.333 272.411c17.673 0 32 14.327 32 32V902c0 17.673-14.327 32-32 32H362.667c-17.673 0-32-14.327-32-32V304.411c0-17.673 14.327-32 32-32z m-32 63.999H394.666V870h234.667V336.41zM896 101.671c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z" />'),alignRight:fR('<path d="M891.329 96c17.496 0 31.713 14.042 31.995 31.47l0.005 0.53v768c0 17.673-14.327 32-32 32-17.497 0-31.713-14.042-31.996-31.47l-0.004-0.53V128c0-17.673 14.327-32 32-32z m-170.74 234.667c17.673 0 32 14.327 32 32v298.666c0 17.673-14.327 32-32 32H123c-17.673 0-32-14.327-32-32V362.667c0-17.673 14.327-32 32-32z m-32 63.999H155v234.667h533.589V394.666z" />'),alignBottom:fR('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768zM661.333 91c17.673 0 32 14.327 32 32v597.589c0 17.673-14.327 32-32 32H362.667c-17.673 0-32-14.327-32-32V123c0-17.673 14.327-32 32-32z m-32 64H394.666v533.589h234.667V155z" />'),alignLeft:fR('<path d="M133.671 96c17.497 0 31.713 14.042 31.996 31.47l0.004 0.53v768c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.995-31.47l-0.005-0.53V128c0-17.673 14.327-32 32-32zM902 330.667c17.673 0 32 14.327 32 32v298.666c0 17.673-14.327 32-32 32H304.411c-17.673 0-32-14.327-32-32V362.667c0-17.673 14.327-32 32-32z m-32.001 63.999H336.41v234.667h533.589V394.666z" />'),alignH:fR('<path d="M512.5 96c17.496 0 31.713 14.042 31.996 31.47l0.004 0.53v202.666H875c17.496 0 31.713 14.042 31.996 31.471l0.004 0.53v298.666c0 17.673-14.327 32-32 32H544.5V896c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.996-31.47l-0.004-0.53V693.333H150c-17.496 0-31.713-14.041-31.996-31.47l-0.004-0.53V362.667c0-17.673 14.327-32 32-32l330.5-0.001V128c0-17.673 14.327-32 32-32z m-32 298.666H182v234.667h298.5V394.666z m362.5 0H544.5v234.667H843V394.666z" />'),alignV:fR('<path d="M661.333 118c17.673 0 32 14.327 32 32v330.5H896c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H693.333V875c0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H362.667c-17.673 0-32-14.327-32-32l-0.001-330.5H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h202.666V150c0-17.496 14.042-31.713 31.471-31.996l0.53-0.004z m-32.001 426.5H394.665l0.001 298.5h234.667l-0.001-298.5z m0.001-362.5H394.666l-0.001 298.5h234.667l0.001-298.5z" />'),distributeH:fR('<path d="M853.333 96c17.497 0 31.713 14.042 31.996 31.47l0.004 0.53v768c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.995-31.47l-0.005-0.53V128c0-17.673 14.327-32 32-32z m-682.666 0c17.496 0 31.713 14.042 31.995 31.47l0.005 0.53v768c0 17.673-14.327 32-32 32-17.497 0-31.713-14.042-31.996-31.47l-0.004-0.53V128c0-17.673 14.327-32 32-32zM640 181.333c17.673 0 32 14.327 32 32v597.334c0 17.673-14.327 32-32 32H384c-17.673 0-32-14.327-32-32V213.333c0-17.673 14.327-32 32-32z m-32 64H416v533.333h192V245.333z" />'),distributeV:fR('<path d="M896 821.333c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM810.667 352c17.673 0 32 14.327 32 32v256c0 17.673-14.327 32-32 32H213.333c-17.673 0-32-14.327-32-32V384c0-17.673 14.327-32 32-32z m-32 64H245.334v192h533.333V416zM896 138.667c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z" />')},yR="infographic-edit-popover",vR=`${yR}__content`,xR=`${yR}__arrow`,bR="infographic-edit-popover-style";function wR(t){var e,n,i,r,o,s,a,l;const c=null!==(e=t.placement)&&void 0!==e?e:"top",h=null===(n=t.closeOnOutsideClick)||void 0===n||n,u=Array.isArray(t.trigger)?t.trigger:[t.trigger||"hover"],d=null!==(i=t.mouseEnterDelay)&&void 0!==i?i:50,f=null!==(r=t.mouseLeaveDelay)&&void 0!==r?r:150,p=null!==(o=t.offset)&&void 0!==o?o:8,g="number"==typeof t.padding?`${t.padding}px`:null!==(s=t.padding)&&void 0!==s?s:"4px",m=document.createElement("div");m.classList.add(yR);const y=null!==(a=t.target)&&void 0!==a?a:document.createElement("div");m.appendChild(y);const v=document.createElement("div");v.classList.add(vR),zh(v,ns),v.dataset.placement=Array.isArray(c)?c[0]:c,v.setAttribute("data-open",String(Boolean(t.open))),v.style.setProperty("--popover-gap",`${p}px`),v.style.setProperty("--popover-arrow-size","8px"),v.style.setProperty("--popover-arrow-inner-size","7px");const x=(()=>{const e="function"==typeof t.getContainer?t.getContainer():t.getContainer;return null!=e?e:rT(y)})();ru(bR,`\n.${yR} {\n position: relative;\n display: inline-flex;\n}\n.${vR} {\n position: absolute;\n z-index: 1200;\n padding: 0;\n --popover-gap: 8px;\n --popover-arrow-size: 8px;\n --popover-arrow-inner-size: 7px;\n background: #fff;\n border-radius: 8px;\n border: 1px solid rgba(239, 240, 240, 0.9);\n box-shadow: rgba(0, 0, 0, 0.08) 0px 1px 2px -2px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.02) 0px 4px 8px 1px;\n opacity: 0;\n visibility: hidden;\n pointer-events: none;\n transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;\n}\n.${vR}-body {\n padding: 4px;\n color: #000000d9;\n font-size: 12px;\n line-height: 1.5;\n}\n.${vR}[data-open="true"] {\n opacity: 1;\n visibility: visible;\n pointer-events: auto;\n}\n.${xR} {\n position: absolute;\n width: 0;\n height: 0;\n}\n.${xR}::after {\n content: '';\n position: absolute;\n width: 0;\n height: 0;\n}\n.${vR}[data-placement="top"] {\n left: 50%;\n bottom: calc(100% + var(--popover-gap));\n transform: translate(-50%, calc(-1 * var(--popover-gap) / 2));\n}\n.${vR}[data-placement="top"] .${xR} {\n left: 50%;\n bottom: calc(-1 * var(--popover-arrow-size));\n transform: translateX(-50%);\n border-left: var(--popover-arrow-size) solid transparent;\n border-right: var(--popover-arrow-size) solid transparent;\n border-top: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);\n}\n.${vR}[data-placement="top"] .${xR}::after {\n left: 50%;\n bottom: 1px;\n transform: translateX(-50%);\n border-left: var(--popover-arrow-inner-size) solid transparent;\n border-right: var(--popover-arrow-inner-size) solid transparent;\n border-top: var(--popover-arrow-inner-size) solid #fff;\n}\n.${vR}[data-placement="top"][data-open="true"] {\n transform: translate(-50%, 0);\n}\n.${vR}[data-placement="bottom"] {\n left: 50%;\n top: calc(100% + var(--popover-gap));\n transform: translate(-50%, calc(var(--popover-gap) / 2));\n}\n.${vR}[data-placement="bottom"] .${xR} {\n left: 50%;\n top: calc(-1 * var(--popover-arrow-size) + 2px);\n transform: translateX(-50%);\n border-left: var(--popover-arrow-size) solid transparent;\n border-right: var(--popover-arrow-size) solid transparent;\n border-bottom: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);\n}\n.${vR}[data-placement="bottom"] .${xR}::after {\n left: 50%;\n top: 1px;\n transform: translateX(-50%);\n border-left: var(--popover-arrow-inner-size) solid transparent;\n border-right: var(--popover-arrow-inner-size) solid transparent;\n border-bottom: var(--popover-arrow-inner-size) solid #fff;\n}\n.${vR}[data-placement="bottom"][data-open="true"] {\n transform: translate(-50%, 0);\n}\n.${vR}[data-placement="left"] {\n right: calc(100% + var(--popover-gap));\n top: 50%;\n transform: translate(calc(-1 * var(--popover-gap) / 2), -50%);\n}\n.${vR}[data-placement="left"] .${xR} {\n right: calc(-1 * var(--popover-arrow-size) + 1px);\n top: 50%;\n transform: translateY(-50%);\n border-top: var(--popover-arrow-size) solid transparent;\n border-bottom: var(--popover-arrow-size) solid transparent;\n border-left: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);\n border-right: 0;\n}\n.${vR}[data-placement="left"] .${xR}::after {\n right: 1px;\n top: 50%;\n transform: translateY(-50%);\n border-top: var(--popover-arrow-inner-size) solid transparent;\n border-bottom: var(--popover-arrow-inner-size) solid transparent;\n border-left: var(--popover-arrow-inner-size) solid #fff;\n border-right: 0;\n}\n.${vR}[data-placement="left"][data-open="true"] {\n transform: translate(0, -50%);\n}\n.${vR}[data-placement="right"] {\n left: calc(100% + var(--popover-gap));\n top: 50%;\n transform: translate(calc(var(--popover-gap) / 2), -50%);\n}\n.${vR}[data-placement="right"] .${xR} {\n left: calc(-1 * var(--popover-arrow-size) + 1px);\n top: 50%;\n transform: translateY(-50%);\n border-top: var(--popover-arrow-size) solid transparent;\n border-bottom: var(--popover-arrow-size) solid transparent;\n border-right: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);\n border-left: 0;\n}\n.${vR}[data-placement="right"] .${xR}::after {\n left: 1px;\n top: 50%;\n transform: translateY(-50%);\n border-top: var(--popover-arrow-inner-size) solid transparent;\n border-bottom: var(--popover-arrow-inner-size) solid transparent;\n border-right: var(--popover-arrow-inner-size) solid #fff;\n}\n.${vR}[data-placement="right"][data-open="true"] {\n transform: translate(0, -50%);\n}\n`,x);const b=x!==m,w=document.createElement("div");w.classList.add(xR),v.appendChild(w);const M=document.createElement("div");M.classList.add(`${vR}-body`),M.style.padding=g,v.appendChild(M),x.appendChild(v);let k=Boolean(t.open),C=Array.isArray(c)?c:[c],O=null!==(l=C[0])&&void 0!==l?l:"top";const j=()=>{var t;const e=y.getBoundingClientRect(),n=v.getBoundingClientRect(),i=window.scrollX||document.documentElement.scrollLeft,r=window.scrollY||document.documentElement.scrollTop,o=document.documentElement.clientWidth,s=document.documentElement.clientHeight;let a=0,l=0;const c=t=>{switch(t){case"top":return{left:i+e.left+e.width/2-n.width/2,top:r+e.top-n.height-p};case"bottom":return{left:i+e.left+e.width/2-n.width/2,top:r+e.bottom+p};case"left":return{left:i+e.left-n.width-p,top:r+e.top+e.height/2-n.height/2};default:return{left:i+e.right+p,top:r+e.top+e.height/2-n.height/2}}},h=(t,e)=>t>=i&&e>=r&&t+n.width<=i+o&&e+n.height<=r+s;let u=null!==(t=C[0])&&void 0!==t?t:"top",d=c(u);for(const t of C){const e=c(t);if(d=e,h(e.left,e.top)){u=t;break}}if(O=u,v.dataset.placement=O,!b)return;({left:a,top:l}=d);const f=(()=>{const t=v.offsetParent;return t||(x instanceof ShadowRoot?x.host:x instanceof HTMLElement?x:document.documentElement)})();if(f===document.body||f===document.documentElement)v.style.left=`${a}px`,v.style.top=`${l}px`;else{const t=f.getBoundingClientRect();v.style.left=`${a-t.left+f.scrollLeft}px`,v.style.top=`${l-t.top+f.scrollTop}px`}v.style.right="auto",v.style.bottom="auto",v.style.transform="translate(0, 0)"};b&&(v.style.position="absolute",window.addEventListener("resize",j),window.addEventListener("scroll",j,!0));const E=t=>{let e=t;"function"==typeof e&&(e=e()),M.innerHTML="",e instanceof HTMLElement?M.appendChild(e):M.textContent=null!=e?e:"",j()},_=t=>{var e;C=Array.isArray(t)?t:[t],O=null!==(e=C[0])&&void 0!==e?e:"top",j()},S=t=>{k=t,v.setAttribute("data-open",String(k)),k&&j(),k&&h?document.addEventListener("click",A,!0):document.removeEventListener("click",A,!0)},$=()=>S(!k),A=t=>{const e=oT(t,m),n=oT(t,v);e||n||S(!1)};let z,P;const L=u.includes("hover"),I=u.includes("click"),T=()=>{void 0!==z&&(clearTimeout(z),z=void 0),void 0!==P&&(clearTimeout(P),P=void 0)},R=()=>{L&&(T(),z=window.setTimeout(()=>S(!0),d))},B=()=>{L&&(T(),P=window.setTimeout(()=>S(!1),f))};I&&y.addEventListener("click",$),L&&(m.addEventListener("mouseenter",R),m.addEventListener("mouseleave",B),v.addEventListener("mouseenter",R),v.addEventListener("mouseleave",B)),E(t.content),_(c),S(k);const W={setOpen:S,toggle:$,setContent:E,setPlacement:_,destroy:()=>{document.removeEventListener("click",A,!0),I&&y.removeEventListener("click",$),L&&(m.removeEventListener("mouseenter",R),m.removeEventListener("mouseleave",B),v.removeEventListener("mouseenter",R),v.removeEventListener("mouseleave",B),T()),b&&(window.removeEventListener("resize",j),window.removeEventListener("scroll",j,!0),v.remove()),m.remove()}};return Object.assign(m,W)}const MR="infographic-align-grid",kR=`${MR}--compact`,CR=`\n.${MR} {\n display: grid;\n grid-template-columns: repeat(4, 32px);\n grid-auto-rows: 32px;\n gap: 2px;\n}\n.${kR} {\n grid-template-columns: repeat(3, 32px);\n}\n`,OR=[{icon:mR.alignLeft,action:"LEFT"},{icon:mR.alignH,action:"H_CENTER"},{icon:mR.alignRight,action:"RIGHT"},{icon:mR.distributeH,action:"H_DISTRIBUTE"},{icon:mR.alignTop,action:"TOP"},{icon:mR.alignV,action:"V_CENTER"},{icon:mR.alignBottom,action:"BOTTOM"},{icon:mR.distributeV,action:"V_DISTRIBUTE"}],jR=(t,e,n,i)=>{var r;ru("infographic-align-grid-style",CR,null==i?void 0:i.root);const o=function(t,e,n){const i=document.createElement("div");i.classList.add(MR),e||i.classList.add(kR);const r=e?OR:OR.filter(({action:t})=>"H_DISTRIBUTE"!==t&&"V_DISTRIBUTE"!==t);return r.forEach(({icon:e,action:r})=>{const o=VT({root:n,icon:e,onClick:()=>t(r)});i.appendChild(o)}),i}(e=>function(t,e,n){if(!t.length)return;const i=t[0].ownerSVGElement;if(!i)return;const r=t.map(t=>function(t,e){const n=hP(e,t),i=!Ah(t),r=function(t){var e;const n=t.getAttribute("transform");if(null===n)return null;const i=n.match(/translate\(\s*([-\d.]+)(?:[ ,]\s*([-\d.]+))?\s*\)/i);if(!i){return{x:0,y:0,rest:{before:n.trim(),after:""},original:n}}const r=Number(i[1])||0,o=void 0!==i[2]&&Number(i[2])||0,s=null!==(e=i.index)&&void 0!==e?e:0,a=n.slice(0,s).trim(),l=n.slice(s+i[0].length).trim();return{x:r,y:o,rest:{before:a,after:l},original:n}}(t);if(r)return{element:t,bounds:n,mode:"transform",startX:r.x,startY:r.y,hasX:!1,hasY:!1,hasDataX:!1,hasDataY:!1,restTransform:r.rest,originalTransform:r.original,movable:i};const{x:o,y:s,hasX:a,hasY:l,hasDataX:c,hasDataY:h}=function(t,e){const n=th(t,["x","y","data-x","data-y"],!1),i=null!=n.x,r=null!=n.y,o=null!=n["data-x"],s=null!=n["data-y"],a=(t,e)=>{const n=null!=t?Number(t):NaN;return Number.isFinite(n)?n:e},l=a(n.x,NaN),c=a(n.y,NaN),h=a(n["data-x"],NaN),u=a(n["data-y"],NaN),d=Number.isFinite(l)?l:Number.isFinite(h)?h:e.x,f=Number.isFinite(c)?c:Number.isFinite(u)?u:e.y;return{x:d,y:f,hasX:i,hasY:r,hasDataX:o,hasDataY:s}}(t,n);return{element:t,bounds:n,mode:"attr",startX:o,startY:s,hasX:a,hasY:l,hasDataX:c,hasDataY:h,movable:i}}(t,i)).filter(Boolean);if(!r.length)return;const o=r.filter(t=>t.movable);if(!o.length)return;const s=r.filter(t=>!t.movable),a=s.length?s:r,l=uu(a.map(t=>t.bounds)),c=[];switch(e){case"LEFT":{const t=l.x;o.forEach(e=>{_R(c,e,t-e.bounds.x,0)});break}case"H_CENTER":{const t=l.x+l.width/2;o.forEach(e=>{_R(c,e,t-(e.bounds.x+e.bounds.width/2),0)});break}case"RIGHT":{const t=l.x+l.width;o.forEach(e=>{_R(c,e,t-(e.bounds.x+e.bounds.width),0)});break}case"TOP":{const t=l.y;o.forEach(e=>{_R(c,e,0,t-e.bounds.y)});break}case"V_CENTER":{const t=l.y+l.height/2;o.forEach(e=>{_R(c,e,0,t-(e.bounds.y+e.bounds.height/2))});break}case"BOTTOM":{const t=l.y+l.height;o.forEach(e=>{_R(c,e,0,t-(e.bounds.y+e.bounds.height))});break}case"H_DISTRIBUTE":!function(t,e){if(t.length<=2)return;const n=[...t].sort((t,e)=>t.bounds.x-e.bounds.x||t.bounds.y-e.bounds.y),i=ER(n);for(let t=0;t<i.length-1;t++){const r=i[t],o=i[t+1],s=n[r],a=n[o],l=n.slice(r+1,o);if(!l.length)continue;const c=(a.bounds.x-(s.bounds.x+s.bounds.width)-l.reduce((t,e)=>t+e.bounds.width,0))/(l.length+1);let h=s.bounds.x+s.bounds.width+c;l.forEach(t=>{_R(e,t,h-t.bounds.x,0),h+=t.bounds.width+c})}}(r,c);break;case"V_DISTRIBUTE":!function(t,e){if(t.length<=2)return;const n=[...t].sort((t,e)=>t.bounds.y-e.bounds.y||t.bounds.x-e.bounds.x),i=ER(n);for(let t=0;t<i.length-1;t++){const r=i[t],o=i[t+1],s=n[r],a=n[o],l=n.slice(r+1,o);if(!l.length)continue;const c=(a.bounds.y-(s.bounds.y+s.bounds.height)-l.reduce((t,e)=>t+e.bounds.height,0))/(l.length+1);let h=s.bounds.y+s.bounds.height+c;l.forEach(t=>{_R(e,t,0,h-t.bounds.y),h+=t.bounds.height+c})}}(r,c)}c.length&&n.executeBatch(c)}(t,e,n),null===(r=null==i?void 0:i.enableDistribution)||void 0===r||r,null==i?void 0:i.root);return wR({target:VT({icon:mR.align,root:null==i?void 0:i.root}),content:o,getContainer:null==i?void 0:i.root,placement:"top",offset:12})};function ER(t){const e=new Set;return e.add(0),e.add(t.length-1),t.forEach((t,n)=>{t.movable||e.add(n)}),Array.from(e).sort((t,e)=>t-e)}function _R(t,e,n,i){const r=function(t,e,n){if(!t.movable)return null;if(Math.abs(e)<1e-6&&Math.abs(n)<1e-6)return null;if("attr"===t.mode){const i=t.startX+e,r=t.startY+n,o={x:i,y:r},s={};return s.x=t.hasX?t.startX:null,s.y=t.hasY?t.startY:null,t.hasDataX&&(o["data-x"]=i,s["data-x"]=t.startX),t.hasDataY&&(o["data-y"]=r,s["data-y"]=t.startY),new rP(t.element,{attributes:o},{attributes:s})}const i=function(t,e,n){const i=`translate(${t}, ${e})`;return[null==n?void 0:n.before,i,null==n?void 0:n.after].filter(t=>t&&t.length).join(" ")}(t.startX+e,t.startY+n,t.restTransform),r=void 0!==t.originalTransform?t.originalTransform:null;return new rP(t.element,{attributes:{transform:i}},{attributes:{transform:r}})}(e,n,i);r&&t.push(r)}const SR="infographic-font-align-grid",$R=[{icon:pR.alignLeft,align:"LEFT"},{icon:pR.alignCenter,align:"CENTER"},{icon:pR.alignRight,align:"RIGHT"}],AR=[{icon:pR.alignTop,align:"TOP"},{icon:pR.alignMiddle,align:"MIDDLE"},{icon:pR.alignBottom,align:"BOTTOM"}],zR=`\n.${SR} {\n display: grid;\n grid-template-columns: repeat(3, 32px);\n grid-auto-rows: 32px;\n gap: 2px;\n}\n`,PR=(t,e,n,i)=>{const r=null==i?void 0:i.root;ru("infographic-font-align-grid-style",zR,r);const o={horizontal:e["data-horizontal-align"],vertical:e["data-vertical-align"]},s=VT({icon:pR.align,root:r}),a=function(t,e,n){const i=document.createElement("div");i.classList.add(SR);const r={},o=()=>{Object.entries(r).forEach(([e,n])=>{n.setActivate(e===t.horizontal||e===t.vertical)})},s=(s,a)=>{s.forEach(({icon:s,align:l})=>{const c=VT({root:n,icon:s,onClick:()=>{t[a]!==l&&(Object.assign(t,{[a]:l}),o(),e(Object.assign({},t)))},activate:l===t[a]});r[l]=c,i.appendChild(c)})};return s($R,"horizontal"),s(AR,"vertical"),i}(o,e=>{const i={};e.horizontal&&(i["data-horizontal-align"]=e.horizontal),e.vertical&&(i["data-vertical-align"]=e.vertical),Object.keys(i).length&&n.executeBatch(t.map(t=>new rP(t,{attributes:i})))},r);return wR({target:s,content:a,getContainer:r,placement:"top",offset:12})};const LR="infographic-font-color-btn",IR="infographic-font-color-style",TR="#1f1f1f",RR=(t,e,n,i)=>{const r=null==i?void 0:i.root;ru(IR,`\n.${LR} {\n position: relative;\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n background: #fff;\n cursor: pointer;\n transition: box-shadow 0.2s ease, border-color 0.2s ease;\n}\n.${LR}::after {\n content: '';\n position: absolute;\n inset: 6px;\n border-radius: 50%;\n background: var(--infographic-font-color, ${TR});\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);\n}\n.${LR}[data-mixed="true"]::after {\n background: repeating-linear-gradient(\n 45deg,\n #d9d9d9 0,\n #d9d9d9 6px,\n #f5f5f5 6px,\n #f5f5f5 12px\n );\n}\n`,r);const o=function(t){return t&&Ar(t)?t:void 0}(e.fill),s=void 0===e.fill&&t.length>1,a=document.createElement("button");a.type="button",a.classList.add(LR),BR(a,null!=o?o:TR,s);const l=rR({root:r,value:null!=o?o:TR,onChange:e=>{BR(a,e,!1),n.executeBatch(t.map(t=>new rP(t,{attributes:{fill:e}})))}});return wR({target:a,content:l,getContainer:r,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function BR(t,e,n){t.style.setProperty("--infographic-font-color",e),n?t.setAttribute("data-mixed","true"):t.removeAttribute("data-mixed")}const WR="infographic-font-family-list",HR=`${WR}__option`,NR="infographic-font-family-list-style",FR=(t,e,n,i)=>{const r=null==i?void 0:i.root;ru(NR,`\n.${WR} {\n display: flex;\n flex-direction: column;\n gap: 2px;\n padding: 4px;\n min-width: 180px;\n max-height: 220px;\n overflow-y: auto;\n}\n.${HR} {\n width: 100%;\n text-align: left;\n padding: 6px 10px;\n border: none;\n border-radius: 6px;\n background: #fff;\n cursor: pointer;\n font-size: 12px;\n color: #000000d9;\n transition: background-color 0.2s ease, color 0.2s ease;\n}\n.${HR}:hover {\n background: #f5f5f5;\n}\n.${HR}[data-activate="true"] {\n background: #e6f4ff;\n color: #0958d9;\n}\n`,r);const o=Pa(),s=DR(e["font-family"]),a=o.map(t=>({label:t.name||t.fontFamily,value:t.fontFamily}));a.some(t=>DR(t.value)===s)||a.unshift({label:"默认",value:s});let l=s;const c=function(t,e,n){const i=document.createElement("div");i.classList.add(WR);const r={},o=t=>{Object.entries(r).forEach(([e,n])=>{e===t?n.setAttribute("data-activate","true"):n.removeAttribute("data-activate")})};return t.forEach(({label:t,value:s})=>{const a=document.createElement("button");a.type="button",a.classList.add(HR),a.textContent=t,a.style.fontFamily=s,s===e&&a.setAttribute("data-activate","true"),a.addEventListener("click",()=>{e!==s&&(o(e=s),n(s))}),r[s]=a,i.appendChild(a)}),i}(a,l,e=>{l!==e&&(l=e,n.executeBatch(t.map(t=>new rP(t,{attributes:{"font-family":ua(e)}}))))});return wR({target:VT({icon:pR.fontFamily,root:r}),content:c,getContainer:r,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function DR(t){return t?Array.isArray(t)?da(t.join(", ")):da(String(t)):""}const VR="infographic-font-size-grid",UR=[{label:"XS",value:12},{label:"S",value:14},{label:"M",value:16},{label:"L",value:20},{label:"XL",value:24}],YR=`\n.${VR} {\n display: grid;\n grid-template-columns: repeat(5, 32px);\n grid-auto-rows: 32px;\n gap: 2px;\n}\n`,qR=(t,e,n,i)=>{const r=null==i?void 0:i.root;ru("infographic-font-size-grid-style",YR,r);const o=VT({icon:pR.fontSize,root:r}),s=function(t){const e=12;if("number"==typeof t)return t;if("string"==typeof t){const n=parseFloat(t);return Number.isFinite(n)?n:e}return e}(e["font-size"]),a=function(t,e,n){const i=document.createElement("div");i.classList.add(VR);let r=t;const o={},s=()=>{Object.entries(o).forEach(([t,e])=>{const n=Number(t)===r;e.setActivate(n)})};return UR.forEach(({label:t,value:a})=>{const l=VT({root:n,icon:GR(t),onClick:()=>{r!==a&&(r=a,s(),e(a))},activate:a===r});o[String(a)]=l,i.appendChild(l)}),i}(s,e=>{n.executeBatch(t.map(t=>new rP(t,{attributes:{"font-size":e}})))},r);return wR({target:o,content:a,getContainer:r,placement:"top",offset:12})};function GR(t){return()=>{const e="1.2em",n=document.createElement("span");return n.textContent=t,n.style.display="inline-flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.width=e,n.style.height=e,n.style.fontSize="12px",n}}const XR="infographic-icon-color-btn",KR="infographic-icon-color-style",ZR="#1f1f1f",QR=(t,e,n,i)=>{const r=null==i?void 0:i.root;ru(KR,`\n.${XR} {\n position: relative;\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n background: #fff;\n cursor: pointer;\n transition: box-shadow 0.2s ease, border-color 0.2s ease;\n}\n.${XR}::after {\n content: '';\n position: absolute;\n inset: 6px;\n border-radius: 50%;\n background: var(--infographic-icon-color, ${ZR});\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);\n}\n.${XR}[data-mixed="true"]::after {\n background: repeating-linear-gradient(\n 45deg,\n #d9d9d9 0,\n #d9d9d9 6px,\n #f5f5f5 6px,\n #f5f5f5 12px\n );\n}\n`,r);const o=function(t){return t&&Ar(t)?t:void 0}(e.fill),s=void 0===e.fill&&t.length>1,a=document.createElement("button");a.type="button",a.classList.add(XR),JR(a,null!=o?o:ZR,s);const l=rR({root:r,value:null!=o?o:ZR,onChange:e=>{JR(a,e,!1),n.executeBatch(t.map(t=>new rP(t,{attributes:{fill:e}})))}});return wR({target:a,content:l,getContainer:r,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function JR(t,e,n){t.style.setProperty("--infographic-icon-color",e),n?t.setAttribute("data-mixed","true"):t.removeAttribute("data-mixed")}class tB extends FT{constructor(t){super(),this.options=t,this.name="edit-bar",this.selection=[],this.handleSelectionChanged=({next:t})=>{if(this.selection=t,0===t.length)return void(this.container&&nB(this.container));const e=this.getOrCreateEditBar(),n=this.getEditItems(t);0!==n.length?(!function(t,e){t.innerHTML="",e.forEach(e=>{t.appendChild(e)})}(e,n),this.placeEditBar(e,t),eB(e)):nB(e)},this.handleGeometryChanged=({target:t})=>{this.selection.includes(t)&&this.container&&(this.placeEditBar(this.container,this.selection),eB(this.container))},this.handleHistoryChanged=()=>{this.container&&0!==this.selection.length&&(this.placeEditBar(this.container,this.selection),eB(this.container))}}init(t){super.init(t);const{emitter:e}=t;e.on("selection:change",this.handleSelectionChanged),e.on("selection:geometrychange",this.handleGeometryChanged),e.on("history:change",this.handleHistoryChanged)}destroy(){var t;const{emitter:e}=this;e.off("selection:change",this.handleSelectionChanged),e.off("selection:geometrychange",this.handleGeometryChanged),e.off("history:change",this.handleHistoryChanged),null===(t=this.container)||void 0===t||t.remove()}getEditItems(t){let e=!1,n=!1,i=!1;for(const r of t)if(_h(r)?e=!0:Ah(r)?n=!0:$h(r)&&(i=!0),e&&n&&i)break;return!e||n||i?e||!n||i?e||n||!i?this.getElementCollectionEditItems(t):1===t.length?this.getGeometryEditItems(t):this.getGeometryCollectionEditItems(t):1===t.length?this.getIconEditItems(t):this.getIconCollectionEditItems(t):1===t.length?this.getTextEditItems(t[0]):this.getTextCollectionEditItems(t)}getOrCreateEditBar(){if(this.container)return this.container;const{style:t,className:e}=this.options||{},n=document.createElement("div");Object.assign(n.style,Object.assign({visibility:"hidden",position:"absolute",left:"0",top:"0",display:"flex",flexFlow:"row",justifyContent:"center",alignItems:"center",height:"40px",minWidth:"40px",minHeight:"40px",borderRadius:"8px",padding:"0 4px",backgroundColor:"#fff",border:"1px solid rgba(239, 240, 240, 0.9)",zIndex:"9999",boxShadow:"rgba(0, 0, 0, 0.08) 0px 1px 2px -2px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.02) 0px 4px 8px 1px"},t)),e&&n.classList.add(e),zh(n,ns),this.container=n;const i=this.resolveOverlayRoot();return null==i||i.appendChild(n),n}getTextEditItems(t){const{attributes:e={}}=lh(t),n=this.resolveOverlayRoot();return[RR,qR,PR,FR].map(i=>i([t],e,this.commander,{root:n}))}getTextCollectionEditItems(t){const e=tt(t.map(t=>lh(t).attributes||{})),n=this.resolveOverlayRoot();return[...[RR,qR,PR,FR].map(i=>i(t,e,this.commander,{root:n})),...this.getElementCollectionEditItems(t)]}getIconEditItems(t){const e=qh(t[0]),n=this.resolveOverlayRoot();return[QR].map(i=>i(t,e,this.commander,{root:n}))}getIconCollectionEditItems(t){const e=tt(t.map(t=>qh(t))),n=this.resolveOverlayRoot();return[QR].map(i=>i(t,e,this.commander,{root:n}))}getGeometryEditItems(t){return[]}getGeometryCollectionEditItems(t){return[...this.getElementCollectionEditItems(t)]}getElementCollectionEditItems(t){if(t.length<=1)return[];const e=this.resolveOverlayRoot();return[jR(t,0,this.commander,{enableDistribution:t.length>2,root:e})]}resolveOverlayRoot(){const{getContainer:t}=this.options||{},e="function"==typeof t?t():t;return null!=e?e:rT(this.editor.getDocument())}placeEditBar(t,e){var n;if(0===e.length)return;const i=uu(e.map(t=>t.getBoundingClientRect())),r=null!==(n=t.offsetParent)&&void 0!==n?n:document.documentElement,o=document.documentElement.clientHeight,s=document.documentElement.clientWidth,a=t.getBoundingClientRect(),l={x:i.x+i.width/2,y:i.y},c=i.y+i.height,h=(t,e,n)=>Math.min(Math.max(t,e),n),u=l.y-8,d=u>=a.height||u>=o-c-8;if(r===document.body||r===document.documentElement){const e=window.scrollX||document.documentElement.scrollLeft,n=window.scrollY||document.documentElement.scrollTop;let i=e+l.x-a.width/2;i=h(i,e,e+Math.max(s-a.width,0));let r=d?n+l.y-a.height-8:n+c+8;return r=h(r,n,n+Math.max(o-a.height,0)),t.style.left=`${i}px`,void(t.style.top=`${r}px`)}const f=r.getBoundingClientRect();let p=l.x-f.left-a.width/2;p=h(p,0,Math.max(f.width-a.width,0));let g=d?l.y-f.top-a.height-8:c-f.top+8;g=h(g,0,Math.max(f.height-a.height,0)),t.style.left=`${p}px`,t.style.top=`${g}px`}}function eB(t){t.style.visibility="visible"}function nB(t){t.style.visibility="hidden"}const iB=40;class rB extends FT{constructor(t){super(),this.options=t,this.name="reset-viewBox",this.viewBoxChanged=!1,this.handleResize=()=>{this.updateOriginViewBox(),this.updatePosition()},this.handleViewBoxChange=t=>{const e=this.editor.getDocument();if(this.viewBoxChanged=t!==this.originViewBox,!this.viewBoxChanged)return void(this.resetButton&&this.hideButton(this.resetButton));const n=this.getOrCreateResetButton();this.placeButton(n,e),this.showButton(n)},this.getOrCreateResetButton=()=>{if(this.resetButton)return this.resetButton;const{style:t,className:e}=this.options||{},n=this.resolveOverlayRoot();this.ensureButtonStyle(n);const i=VT({icon:gR,onClick:this.resetViewBox,root:n});return i.classList.add(oB),e&&i.classList.add(e),t&&Object.assign(i.style,t),zh(i,ns),this.resetButton=i,null==n||n.appendChild(i),i},this.getTransformScale=t=>{const e=t.getBoundingClientRect();return{scaleX:t.offsetWidth>0?e.width/t.offsetWidth:1,scaleY:t.offsetHeight>0?e.height/t.offsetHeight:1}},this.findStableContainer=t=>{let e=t.parentElement;for(;e;){if(e instanceof HTMLElement){const t=window.getComputedStyle(e);if(t.overflow&&"visible"!==t.overflow||t.overflowX&&"visible"!==t.overflowX||t.overflowY&&"visible"!==t.overflowY)return e}e=e.parentElement}return null},this.placeButton=(t,e)=>{var n;if(!e.isConnected)return;const i=e.getBoundingClientRect(),r=null!==(n=t.offsetParent)&&void 0!==n?n:document.documentElement,o=this.findStableContainer(e),s=null==o?void 0:o.getBoundingClientRect(),a=s?{right:Math.min(i.right,s.right),bottom:Math.min(i.bottom,s.bottom)}:i;if(r===document.body||r===document.documentElement){const e=window.scrollX||document.documentElement.scrollLeft,n=(window.scrollY||document.documentElement.scrollTop)+a.bottom-25-iB;return t.style.left=`${e+a.right-25-iB}px`,void(t.style.top=`${n}px`)}const l=r.getBoundingClientRect(),{scaleX:c,scaleY:h}=this.getTransformScale(r),u=(a.bottom-l.top)/h-25-iB;t.style.left=`${(a.right-l.left)/c-25-iB}px`,t.style.top=`${u}px`},this.updatePosition=()=>{this.resetButton&&this.viewBoxChanged&&this.placeButton(this.resetButton,this.editor.getDocument())},this.resetViewBox=()=>{const t=new aP({viewBox:this.originViewBox});this.commander.execute(t)},this.showButton=t=>{t.style.display="flex",t.style.visibility="visible"},this.hideButton=t=>{t.style.display="none"},this.removeButton=()=>{var t;this.viewBoxChanged=!1,null===(t=this.resetButton)||void 0===t||t.remove(),this.resetButton=void 0}}init(t){super.init(t),this.ensureButtonStyle(this.resolveOverlayRoot()),this.updateOriginViewBox(),this.unregisterSync=this.editor.registerSync("viewBox",this.handleViewBoxChange),window.addEventListener("resize",this.handleResize)}destroy(){var t;null===(t=this.unregisterSync)||void 0===t||t.call(this),window.removeEventListener("resize",this.handleResize),this.removeButton()}updateOriginViewBox(){const t=this.editor.getDocument();if(!t.getBBox)return void(this.originViewBox=Qh(Zh(t)));const{padding:e}=this.state.getOptions();this.originViewBox=nu(t,Jh(e))}resolveOverlayRoot(){const{getContainer:t}=this.options||{},e="function"==typeof t?t():t;return null!=e?e:rT(this.editor.getDocument())}ensureButtonStyle(t){ru(sB,`\n button.${oB} {\n visibility: hidden;\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n padding: 4px;\n background-color: #fff;\n border: 1px solid #e5e7eb;\n z-index: 1000;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n cursor: pointer;\n }\n `,t)}}const oB="infographic-reset-viewbox-btn",sB="infographic-reset-viewbox-btn-style";class aB extends FT{constructor(){super(...arguments),this.name="resize-element",this.target=null,this.handles=[],this.activeHandle=null,this.activePointerId=null,this.handleSelectionChange=({next:t})=>{const e=1===t.length?t[0]:null;e&&_h(e)?(this.target=e,this.updateHandles()):(this.target=null,this.hideHandles(),this.cancelDrag())},this.handleDeactivate=()=>{this.target=null,this.hideHandles(),this.cancelDrag()},this.handleGeometryChange=({target:t})=>{if(!this.target||t!==this.target)return;const e=this.getViewportRect(this.target);this.lastViewportRect=e,this.updateHandles(e)},this.handleHistoryChange=()=>{if(!this.target)return;const t=this.getViewportRect(this.target);this.lastViewportRect=t,this.updateHandles(t)},this.handlePointerMove=t=>{if(!this.target||!this.startPointer||!this.startRect||!this.activeHandle||null!==this.activePointerId&&t.pointerId!==this.activePointerId)return;const e=this.clientToElement(this.target,t.clientX,t.clientY),n=this.clampRect(this.applyDelta(this.startRect,e.x-this.startPointer.x,e.y-this.startPointer.y,this.activeHandle),this.activeHandle);this.lastRect=n,this.applyRect(this.target,n),this.lastViewportRect=this.getViewportRect(this.target),this.updateHandles(this.lastViewportRect),this.emitSelectionGeometryChange()},this.handlePointerUp=t=>{if(null!==this.activePointerId&&t.pointerId!==this.activePointerId)return;const e=this.lastRect,n=this.startAttrs,i=e&&this.startRect&&this.hasRectChanged(this.startRect,e);if(this.cancelDrag(),i&&this.target&&e&&n)this.commander.execute(new rP(this.target,{attributes:e},{attributes:n})),this.lastViewportRect=this.getViewportRect(this.target),this.updateHandles(this.lastViewportRect),this.emitSelectionGeometryChange();else if(this.target){const t=this.lastViewportRect||this.getViewportRect(this.target);this.updateHandles(t)}}}init(t){super.init(t);const{emitter:e}=t;e.on("selection:change",this.handleSelectionChange),e.on("selection:geometrychange",this.handleGeometryChange),e.on("history:change",this.handleHistoryChange),e.on("deactivated",this.handleDeactivate)}destroy(){this.cancelDrag(),this.removeContainer();const{emitter:t}=this;t.off("selection:change",this.handleSelectionChange),t.off("selection:geometrychange",this.handleGeometryChange),t.off("history:change",this.handleHistoryChange),t.off("deactivated",this.handleDeactivate)}ensureContainer(){if(this.container)return this.container;const t=Zc("g",{"pointer-events":"none"});this.overlay=Zc("rect",{fill:"rgba(51, 132, 245, 0.06)",stroke:"none","pointer-events":"none"});const e=Zc("rect",{fill:"none",stroke:"#3384F5","stroke-width":1,"stroke-dasharray":"4 2","pointer-events":"none"});t.appendChild(this.overlay),t.appendChild(e),this.outline=e;const n={"top-left":"nwse-resize",top:"ns-resize","top-right":"nesw-resize",right:"ew-resize","bottom-right":"nwse-resize",bottom:"ns-resize","bottom-left":"nesw-resize",left:"ew-resize"};return aB.HANDLE_POSITIONS.forEach((e,i)=>{const r="top"===e||"right"===e||"bottom"===e||"left"===e?Zc("line",{stroke:"transparent","stroke-width":aB.LINE_STROKE_WIDTH}):Zc("circle",{r:aB.HANDLE_SIZE/2,fill:"#3384F5",stroke:"#fff","stroke-width":1.5});r.style.cursor=n[e],r.style.pointerEvents="all",r.addEventListener("pointerdown",t=>this.handlePointerDown(t,e)),r.addEventListener("click",t=>{t.stopPropagation(),t.preventDefault()}),t.appendChild(r),this.handles[i]=r}),this.editor.getDocument().appendChild(t),this.container=t,t}updateHandles(t){if(!this.target)return void this.hideHandles();const e=t||this.getViewportRect(this.target)||this.lastViewportRect||null;if(!e)return void this.hideHandles();this.lastViewportRect=e;this.ensureContainer().style.display="block",this.outline.style.display="block",Jc(this.outline,e),this.overlay&&(this.overlay.style.display="block",Jc(this.overlay,e));const n=this.getHandlePoints(e);this.handles.forEach((t,i)=>{const[r,o]=n[i];if("circle"===t.tagName)Jc(t,{cx:r,cy:o});else{Jc(t,this.getHandleLine(e,aB.HANDLE_POSITIONS[i]))}t.style.display="block"})}hideHandles(){this.container&&(this.container.style.display="none"),this.outline&&(this.outline.style.display="none"),this.overlay&&(this.overlay.style.display="none"),this.handles.forEach(t=>t.style.display="none")}removeContainer(){var t;null===(t=this.container)||void 0===t||t.remove(),this.container=void 0,this.outline=void 0,this.overlay=void 0,this.handles=[]}handlePointerDown(t,e){if(!this.target)return;if(0!==t.button&&"mouse"===t.pointerType)return;t.stopPropagation(),t.preventDefault();const n=this.clientToElement(this.target,t.clientX,t.clientY);this.activeHandle=e,this.activePointerId=t.pointerId,this.startPointer=n;const i=this.getCurrentAttributes(this.target);this.startRect=i,this.startAttrs=Object.assign({},i),this.lastRect=i,this.lastViewportRect=this.getViewportRect(this.target),window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp),window.addEventListener("pointercancel",this.handlePointerUp)}cancelDrag(){this.activeHandle=null,this.activePointerId=null,this.startPointer=void 0,this.startRect=void 0,this.startAttrs=void 0,this.lastRect=void 0,this.lastViewportRect=void 0,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}applyRect(t,e){Jc(t,{x:e.x,y:e.y,width:e.width,height:e.height})}getViewportRect(t){const{x:e,y:n,width:i,height:r}=hP(this.editor.getDocument(),t);return{x:e,y:n,width:i,height:r}}clientToElement(t,e,n){var i,r;const o=(null===(i=t.getScreenCTM())||void 0===i?void 0:i.inverse())||(null===(r=this.editor.getDocument().getScreenCTM())||void 0===r?void 0:r.inverse())||new DOMMatrix;return new DOMPoint(e,n).matrixTransform(o)}getCurrentAttributes(t){const e=th(t,["x","y","width","height"],!1),n=this.getViewportRect(t),i=(t,e)=>{const n=null!==t?Number(t):NaN;return Number.isFinite(n)?n:e};return{x:i(e.x,n.x),y:i(e.y,n.y),width:i(e.width,n.width),height:i(e.height,n.height)}}getHandlePoints(t){const{x:e,y:n,width:i,height:r}=t,o=e+i/2,s=n+r/2;return[[e,n],[o,n],[e+i,n],[e+i,s],[e+i,n+r],[o,n+r],[e,n+r],[e,s]]}applyDelta(t,e,n,i){let{x:r,y:o,width:s,height:a}=t;switch(i){case"top-left":r+=e,o+=n,s-=e,a-=n;break;case"top":o+=n,a-=n;break;case"top-right":o+=n,s+=e,a-=n;break;case"right":s+=e;break;case"bottom-right":s+=e,a+=n;break;case"bottom":a+=n;break;case"bottom-left":r+=e,s-=e,a+=n;break;case"left":r+=e,s-=e}return{x:r,y:o,width:s,height:a}}clampRect(t,e){let{x:n,y:i,width:r,height:o}=t;if(r<aB.MIN_SIZE){"top-left"!==e&&"bottom-left"!==e&&"left"!==e||(n-=aB.MIN_SIZE-r),r=aB.MIN_SIZE}if(o<aB.MIN_SIZE){"top-left"!==e&&"top-right"!==e&&"top"!==e||(i-=aB.MIN_SIZE-o),o=aB.MIN_SIZE}return{x:n,y:i,width:r,height:o}}hasRectChanged(t,e){return Math.abs(t.x-e.x)>.5||Math.abs(t.y-e.y)>.5||Math.abs(t.width-e.width)>.5||Math.abs(t.height-e.height)>.5}emitSelectionGeometryChange(){this.target&&this.lastViewportRect&&this.emitter.emit("selection:geometrychange",{type:"selection:geometrychange",target:this.target,rect:this.lastViewportRect})}getHandleLine(t,e){const{x:n,y:i,width:r,height:o}=t;switch(e){case"top":return{x1:n,y1:i,x2:n+r,y2:i};case"right":return{x1:n+r,y1:i,x2:n+r,y2:i+o};case"bottom":return{x1:n,y1:i+o,x2:n+r,y2:i+o};default:return{x1:n,y1:i,x2:n,y2:i+o}}}}aB.HANDLE_SIZE=10,aB.LINE_STROKE_WIDTH=8,aB.MIN_SIZE=1,aB.HANDLE_POSITIONS=["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"];var lB=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/postcss.js");const cB=lB;var hB=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};function uB(t){return hB(this,arguments,void 0,function*(t,e=!0){const n=function(t){const e=new Set,n=t=>{t&&ca(t).forEach(t=>{const n=ua(t);n&&e.add(n)})};n(t.getAttribute("font-family"));const i=t.querySelectorAll("foreignObject span");for(const t of i)n(t.style.fontFamily);return e}(t);if(0===n.size)return;const i=[];yield Promise.all(Array.from(n).map(t=>hB(this,void 0,void 0,function*(){const n=function(t){const e=[],n=ca(t).map(t=>ua(t));return document.fonts.forEach(t=>{n.includes(ua(t.family))&&"loaded"===t.status&&e.push(t)}),e}(t);if(!n.length)return;const r=yield function(t){return hB(this,void 0,void 0,function*(){const e=Ia(t),n=[];return yield Promise.allSettled(e.map(t=>hB(this,void 0,void 0,function*(){const e=yield Fh(t).then(t=>t.text()).catch(()=>(console.error(`Failed to fetch font CSS: ${t}`),null));if(e)try{cB.parse(e).walkAtRules("font-face",t=>{const e={};t.walkDecls(t=>{e[t.prop]=t.value}),n.push(e)})}catch(e){console.error(`Failed to parse CSS: ${t}`,e)}}))),n})}(t);if(!r.length)return;const o=yield Promise.all(r.map(t=>hB(this,void 0,void 0,function*(){const i={"font-family":null!==(o=(r=t)["font-family"])&&void 0!==o?o:"",src:null!==(s=r.src)&&void 0!==s?s:"","font-style":null!==(a=r["font-style"])&&void 0!==a?a:"normal","font-display":null!==(l=r["font-display"])&&void 0!==l?l:"swap","font-weight":null!==(c=r["font-weight"])&&void 0!==c?c:"400","unicode-range":null!==(h=r["unicode-range"])&&void 0!==h?h:"U+0-FFFF"};var r,o,s,a,l,c,h;const u=i["unicode-range"].replace(/\s/g,"");if(!n.find(t=>t.unicodeRange&&t.unicodeRange.replace(/\s/g,"")===u))return null;const d=function(t,e){const n=ca(t);let i=null;for(const t of n)if(i=za(t),i)break;if(!i)return null;const r=pa(e),o=i.fontWeight[r];return o?Kh(i.baseUrl,o.replace(/\/result.css$/,"")):null}(i["font-family"],pa(i["font-weight"]));if(!d)return null;const f=i.src.match(/url\(["']?(.*?\.woff2)[^"']*["']?\)/);if(!(null==f?void 0:f[1]))return null;const p=Kh(d,f[1]);if(e){const t=yield function(t){return hB(this,void 0,void 0,function*(){const e=yield Fh(t);if(!e.ok)throw new Error(`Failed to load font: ${t}`);const n=yield e.blob();return yield new Promise((t,e)=>{const i=new FileReader;i.onloadend=()=>{t(i.result)},i.onerror=e,i.readAsDataURL(n)})})}(p);i.src=`url(${t}) format('woff2')`}else i.src=`url(${p}) format('woff2')`;return i})));i.push(...o.filter(Boolean)||[])}))),i.length>0&&function(t,e){const n=[],i=new Set;for(const t of e){const e=[t["font-family"],t["font-weight"],t["font-style"],t["unicode-range"],t.src].join("|");i.has(e)||(i.add(e),n.push(t))}if(0===n.length)return;const r=Zc("style",{type:"text/css"});r.innerHTML=n.map(t=>`\n@font-face {\n font-family: ${t["font-family"]};\n src: ${t.src};\n font-style: ${t["font-style"]};\n font-weight: ${t["font-weight"]};\n font-display: ${t["font-display"]};\n unicode-range: ${t["unicode-range"]};\n}\n`.trim()).join("\n");const o=t.querySelector("defs");o&&o.parentNode?o.parentNode.insertBefore(r,o.nextSibling):t.insertBefore(r,t.firstChild)}(t,i)})}var dB=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};const fB=.5;function pB(t){if(!t)return Number.NaN;const e=t.trim();return e&&/^[-+]?(?:\d+\.?\d*|\.\d+)(?:px)?$/.test(e)?Number.parseFloat(e):Number.NaN}function gB(t){const e=pB(t);return Number.isNaN(e)?0:e}function mB(t,e){if("function"!=typeof e.getScreenCTM)return null;const n=e.getScreenCTM();if(!n)return null;const i=n.inverse();return(e,n)=>{const r=t.createSVGPoint();return r.x=e,r.y=n,r.matrixTransform(i)}}function yB(t,e,{contentHeight:n,contentWidth:i,keepForeignObjectWidth:r}){const o=t.getBoundingClientRect(),s=e(o.left,o.top),a=e(o.right,o.bottom),l=s.x,c=s.y,h=a.x,u=a.y,d=h-l,f=u-c,p=o.width>0?d/o.width:1,g=n>0?n*(o.height>0?f/o.height:1):f,m=window.getComputedStyle(t.firstElementChild),y=m.alignItems,v=m.justifyContent,x=r?d:Math.max(d,i*p);let b,w,M,k;if("flex-end"===y||"end"===y)b=u-g,w=u;else if("center"===y){const t=g-f;b=c-t/2,w=u+t/2}else b=c,w=c+g;if("flex-end"===v||"end"===v||"right"===v)M=h-x,k=h;else if("center"===v){const t=x-d;M=l-t/2,k=h+t/2}else M=l,k=l+x;return[M,b,k,w]}function vB(t){const e=mB(t,t);return e?Array.from(t.querySelectorAll("foreignObject")).map(n=>{const i=n.firstElementChild;if(!i)return null;const r=function(t){const e=t.whiteSpace,n=t.flexWrap,i=t.wordBreak;return"wrap"===n||"wrap-reverse"===n||"pre-wrap"===e||"pre-line"===e||"normal"===e||"break-word"===t.overflowWrap||"break-word"===i||"break-all"===i}(window.getComputedStyle(i)),o=function(t,e){const n=t.style.height,i=t.style.width,r=t.style.overflow;try{t.style.height="max-content",t.style.overflow="hidden";const n=t.scrollHeight,i=t.getBoundingClientRect().height;let r=t.scrollWidth;return e&&(t.style.width="max-content",r=t.scrollWidth),{height:Math.max(n,i),width:r}}finally{t.style.height=n,t.style.width=i,t.style.overflow=r}}(i,!r),s=n.parentElement instanceof SVGGraphicsElement?n.parentElement:t,a=mB(t,s),l=mB(t,n);if(!a)return null;const c=yB(n,a,{contentHeight:o.height,contentWidth:o.width,keepForeignObjectWidth:r}),h=gB(n.getAttribute("x")),u=gB(n.getAttribute("y")),d=l?yB(n,l,{contentHeight:o.height,contentWidth:o.width,keepForeignObjectWidth:r}):null;if(n.hasAttribute("transform")&&!d)return null;const f=d?{x:h+d[0],y:u+d[1],width:d[2]-d[0],height:d[3]-d[1]}:{x:c[0],y:c[1],width:c[2]-c[0],height:c[3]-c[1]};return{rootBounds:yB(n,e,{contentHeight:o.height,contentWidth:o.width,keepForeignObjectWidth:r}),exportBounds:f}}):[]}function xB(t,e){const n=function(t){if(t.hasAttribute("viewBox"))return Zh(t);const e=pB(t.getAttribute("width")),n=pB(t.getAttribute("height"));if(!Number.isNaN(e)&&e>0&&!Number.isNaN(n)&&n>0)return{x:0,y:0,width:e,height:n};const i=t.getBoundingClientRect();return i.width>0&&i.height>0?{x:0,y:0,width:i.width,height:i.height}:null}(t);if(!n)return null;let i=n.x,r=n.y,o=n.x+n.width,s=n.y+n.height;e.forEach(t=>{if(!t)return;const{rootBounds:e}=t,[n,a,l,c]=e;i=Math.min(i,n),r=Math.min(r,a),o=Math.max(o,l),s=Math.max(s,c)});const a=o-i,l=s-r;return a<=n.width+fB&&l<=n.height+fB&&i>=n.x-fB&&r>=n.y-fB?null:`${i} ${r} ${a} ${l}`}function bB(t){return dB(this,arguments,void 0,function*(t,e={}){const{removeBackground:n=!1,embedResources:i=!0,removeIds:r=!1}=e,o=t.cloneNode(!0);if("undefined"!=typeof document){const e=vB(t);!function(t,e){const n=Array.from(t.querySelectorAll("foreignObject"));e.forEach((t,e)=>{if(!t)return;const i=n[e];i&&Jc(i,t.exportBounds)})}(o,e);const n=xB(t,e);n&&o.setAttribute("viewBox",n)}const{width:s,height:a}=Zh(o);return Jc(o,{width:s,height:a}),r?(function(t){const e=Array.from(t.querySelectorAll("use"));if(!e.length)return;e.forEach(e=>{const n=function(t){var e;return null!==(e=t.getAttribute("href"))&&void 0!==e?e:t.getAttribute("xlink:href")}(e);if(!n||!n.startsWith("#"))return;const i=function(t,e){const n=t.querySelector(e);if(n)return n;const i=document.querySelector(e);return i}(t,n);if(!i||i===e)return;const r=function(t,e){const n=e.tagName.toLowerCase();if("symbol"===n)return function(t,e){const n=e.cloneNode(!0),i=Zc("svg");MB(i,n,new Set(["id"])),MB(i,t,new Set(["href","xlink:href"]));for(;n.firstChild;)i.appendChild(n.firstChild);return i}(t,e);if("svg"===n)return function(t,e){const n=e.cloneNode(!0);return n.removeAttribute("id"),MB(n,t,new Set(["href","xlink:href"])),n}(t,e);return function(t,e){const n=e.cloneNode(!0);n.removeAttribute("id");const i=Zc("g");MB(i,t,new Set(["href","xlink:href","x","y","width","height","transform"]));const r=function(t){var e;const n=t.getAttribute("x"),i=t.getAttribute("y"),r=n||i?`translate(${null!=n?n:0} ${null!=i?i:0})`:"",o=null!==(e=t.getAttribute("transform"))&&void 0!==e?e:"";return r&&o?`${r} ${o}`:r||o||null}(t);r&&i.setAttribute("transform",r);return i.appendChild(n),i}(t,e)}(e,i);r&&e.replaceWith(r)})}(o),function(t){const e=function(t){const e=new Set;return eh(t,t=>{if("defs"===t.tagName.toLowerCase())return!1;CB(t,t=>e.add(t))}),e}(t);if(0===e.size)return void jB(t);const n=function(t,e){if(0===e.size)return null;const n=function(t,e){const n=new Map,i=Array.from(e),r=new Set(i),o=new Set,s=t=>{o.has(t)||r.has(t)||(i.push(t),r.add(t))};for(;i.length;){const e=i.shift();if(!e)continue;if(o.has(e))continue;o.add(e);const r=`#${OB(e)}`,a=t.querySelector(r);a&&(n.set(e,a),eh(a,t=>{CB(t,s)}))}return n}(t,e);if(0===n.size)return null;const i=Zc("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),r=Zc("defs");if(n.forEach(t=>{r.appendChild(t.cloneNode(!0))}),!r.children.length)return null;i.appendChild(r);const o=(new XMLSerializer).serializeToString(i);return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o)}(t,e);if(!n)return;eh(t,t=>{if("defs"===t.tagName.toLowerCase())return!1;Array.from(t.attributes).forEach(e=>{const i=e.value;if(!i.includes("url("))return;const r=i.replace(kB,(t,e)=>{const i=encodeURIComponent(e);return`url("${n}#${i}")`});r!==i&&t.setAttribute(e.name,r)})}),jB(t)}(o)):yield function(t){return dB(this,void 0,void 0,function*(){const e=t.querySelectorAll("use"),n=function(t){const e=Ph(t,wB);if(e)return e;const n=Zc("defs");return zh(n,wB),t.prepend(n),n}(t);e.forEach(e=>{const i=e.getAttribute("href");if(!i)return;if(!t.querySelector(i)){const t=document.querySelector(i);t&&n.appendChild(t.cloneNode(!0))}})})}(o),yield uB(o,i),n&&function(t){t.style.removeProperty("background-color");const e=Ph(t,"background");null==e||e.remove()}(o),function(t){(function(t){const e=Ph(t,"btns-group");null==e||e.remove();const n=Ph(t,"btn-icon-defs");null==n||n.remove()})(t),function(t){const e=t.querySelector("[data-element-type=transient-container]");null==e||e.remove()}(t),function(t){const e=t.querySelectorAll("g");e.forEach(t=>{t.removeAttribute("x"),t.removeAttribute("y"),t.removeAttribute("width"),t.removeAttribute("height")})}(t),function(t){eh(t,t=>{for(const e in t.dataset)delete t.dataset[e]})}(t)}(o),o})}const wB="icon-defs";function MB(t,e,n=new Set){Array.from(e.attributes).forEach(e=>{n.has(e.name)||("style"!==e.name?"class"!==e.name?t.setAttribute(e.name,e.value):function(t,e){const n=t.getAttribute("class");if(!n)return void t.setAttribute("class",e);t.setAttribute("class",`${n} ${e}`.trim())}(t,e.value):function(t,e){const n=t.getAttribute("style");if(!n)return void t.setAttribute("style",e);const i=n.trim().endsWith(";")?"":";";t.setAttribute("style",`${n}${i}${e}`)}(t,e.value))})}const kB=/url\(\s*['"]?#([^'")\s]+)['"]?\s*\)/g;function CB(t,e){for(const n of Array.from(t.attributes)){const t=n.value;if(t.includes("url("))for(const n of t.matchAll(kB))n[1]&&e(n[1]);"href"!==n.name&&"xlink:href"!==n.name||"#"!==t[0]||e(t.slice(1))}}function OB(t){return globalThis.CSS&&"function"==typeof globalThis.CSS.escape?globalThis.CSS.escape(t):function(t){const e=String(t),n=e.length;let i="";if(0===n)return"";for(let t=0;t<n;t++){const r=e.charCodeAt(t);0!==r?r>=1&&r<=31||127===r||0===t&&r>=48&&r<=57||1===t&&r>=48&&r<=57&&45===e.charCodeAt(0)?i+="\\"+r.toString(16)+" ":i+=0===t&&1===n&&45===r||!(r>=128||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122||45===r||95===r)?"\\"+e.charAt(t):e.charAt(t):i+="�"}return i}(t)}function jB(t){Array.from(t.querySelectorAll("defs")).forEach(t=>t.remove())}var EB=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};var _B=n("./node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.mjs"),SB=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class $B{constructor(){this.undoStack=[],this.redoStack=[]}init(t){Object.assign(this,t)}execute(t){return SB(this,void 0,void 0,function*(){yield t.apply(this.state),this.undoStack.push(t),this.redoStack=[],this.emitHistoryChange("execute")})}executeBatch(t){return SB(this,void 0,void 0,function*(){if(0===t.length)return;const e=new nP(t);yield this.execute(e)})}undo(){return SB(this,void 0,void 0,function*(){const t=this.undoStack.pop();t&&(yield t.undo(this.state),this.redoStack.push(t),this.emitHistoryChange("undo"))})}redo(){return SB(this,void 0,void 0,function*(){const t=this.redoStack.pop();t&&(yield t.apply(this.state),this.undoStack.push(t),this.emitHistoryChange("redo"))})}serialize(){return this.undoStack.map(t=>t.serialize())}clear(){this.undoStack=[],this.redoStack=[]}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}getHistorySize(){return this.undoStack.length}destroy(){this.clear()}emitHistoryChange(t){var e;null===(e=this.emitter)||void 0===e||e.emit("history:change",{type:"history:change",action:t})}}var AB=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class zB{constructor(){this.extensions=new bP,this.interactions=[],this.active=!1,this.running=null,this.concurrentInteractions=new Set,this.selection=new Set,this.handleClick=t=>{const e=this.editor.getDocument(),n="function"==typeof t.composedPath?t.composedPath():[],i=oT(t,e)||n.some(t=>t instanceof HTMLElement&&function(t){let e=t;for(;e;){if(Ph(e,ns))return!0;e=e.parentElement}return!1}(t));t.target&&i?this.activate():this.deactivate()}}init(t){Object.assign(this,t),document.addEventListener("click",this.handleClick),this.interactions.forEach(t=>{this.extensions.register(t.name,t),t.init({emitter:this.emitter,editor:this.editor,commander:this.commander,state:this.state,interaction:this}),this.emitter.emit("interaction:registered",t)})}isActive(){return this.active}select(t,e){const n=this.getSelection(),i=[],r=[];if("replace"===e){const e=new Set(t);n.forEach(t=>{e.has(t)||r.push(t)}),t.forEach(t=>{this.selection.has(t)||i.push(t)}),this.selection=e}else"add"===e?t.forEach(t=>{this.selection.has(t)||(this.selection.add(t),i.push(t))}):"remove"===e?t.forEach(t=>{this.selection.delete(t)&&r.push(t)}):"toggle"===e&&t.forEach(t=>{this.selection.has(t)?(this.selection.delete(t),r.push(t)):(this.selection.add(t),i.push(t))});const o=this.getSelection();this.emitter.emit("selection:change",{type:"selection:change",previous:n,next:o,added:i,removed:r,mode:e})}getSelection(){return[...this.selection]}isSelected(t){return this.selection.has(t)}clearSelection(){const t=this.getSelection();this.selection.clear();this.emitter.emit("selection:change",{type:"selection:change",previous:t,next:[],added:[],removed:t,mode:"replace"})}activate(){this.active=!0,this.emitter.emit("activated")}deactivate(){this.active=!1,this.running=null,this.clearSelection(),this.emitter.emit("deactivated")}executeExclusiveInteraction(t,e){return AB(this,void 0,void 0,function*(){if(this.active&&!this.running){this.running=t;try{this.emitter.emit("interaction:started",t),yield e(),this.emitter.emit("interaction:ended",t)}catch(e){console.error(`Error occurred during exclusive interaction "${t.name}":`,e),this.emitter.emit("interaction:error",t,e)}finally{this.running=null}}})}executeConcurrentInteraction(t,e){return AB(this,void 0,void 0,function*(){if(this.active){this.concurrentInteractions.add(t);try{this.emitter.emit("interaction:started",t),yield e(),this.emitter.emit("interaction:ended",t)}catch(e){console.error(`Error occurred during concurrent interaction "${t.name}":`,e),this.emitter.emit("interaction:error",t,e)}finally{this.concurrentInteractions.delete(t)}}})}getOrCreateTransientContainer(){const t="transient-container",e=this.editor.getDocument(),n=Ph(e,t);if(n&&n.isConnected)return n;const i=Zc("g");return zh(i,t),e.appendChild(i),i}appendTransientElement(t){return this.getOrCreateTransientContainer().appendChild(t),t}destroy(){this.extensions.forEach(t=>{t.destroy(),this.emitter.emit("interaction:destroyed",t)}),this.extensions.destroy(),this.active=!1,this.running=null,this.clearSelection(),document.removeEventListener("click",this.handleClick),this.getOrCreateTransientContainer().remove()}}class PB{constructor(){this.extensions=new bP}init(t,e=[]){Object.assign(this,t),e.forEach(t=>{this.registerPlugin(t)})}getPlugin(t){return this.extensions.get(t)}getPlugins(){return this.extensions.getAll()}registerPlugin(t){this.extensions.register(t.name,t);t.init({emitter:this.emitter,editor:this.editor,commander:this.commander,plugin:this,state:this.state}),this.emitter.emit("plugin:registered",t)}unregisterPlugin(t){const e=this.extensions.get(t);e&&(e.destroy(),this.extensions.unregister(t),this.emitter.emit("plugin:unregistered",e))}destroy(){this.extensions.getAll().forEach(t=>{this.unregisterPlugin(t.name),this.emitter.emit("plugin:destroyed",t)}),this.extensions.destroy()}}class LB{init(t){Object.assign(this,t)}addItemDatum(t,e){const n=t.slice(0,-1),i=t[t.length-1],r=Array.isArray(e)?e:[e];uP(this.options.data,n).splice(i,0,...r),this.emitter.emit("options:data:item:add",{indexes:t,datum:e}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"add",path:"data.items",indexes:t,value:r}]})}updateItemDatum(t,e){const n=ts(this.options.data,t);null!=n&&0!==t.length&&(Object.assign(n,e),this.emitter.emit("options:data:item:update",{indexes:t,datum:e}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:"data.items",indexes:t,value:e}]}))}removeItemDatum(t,e=1){const n=t.slice(0,-1),i=t[t.length-1],r=uP(this.options.data,n).splice(i,e);this.emitter.emit("options:data:item:remove",{indexes:t,datum:r}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"remove",path:"data.items",indexes:t,value:r}]})}updateData(t,e){this.options.data[t]=e,this.emitter.emit("options:data:update",{key:t,value:e}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:`data.${t}`,value:e}]})}updateElement(t,e){this.updateBuiltInElement(t,e)}updateOptions(t,e){const{bubbleUp:n=!1}=e||{};nT(this.options,t,"",{bubbleUp:n,collector:(t,e,n)=>{this.editor.syncRegistry.trigger(t,e,n)}}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:"",value:t}]})}getOptions(){return this.options}updateBuiltInElement(t,e){var n,i;const{data:r}=this.options,{attributes:o={}}=e,s=Lh(t),a=Ah(t)||"item-label"===s||"item-desc"===s||"item-value"===s||"item-illus"===s,l=a?fP(t):void 0;if(a){const t=ts(r,l);if(null==t)return;const e=s.replace("item-","");t.attributes||(t.attributes={}),(n=t.attributes)[e]||(n[e]={}),Object.assign(t.attributes[e],o)}else"title"!==s&&"desc"!==s&&"illus"!==s||(r.attributes||(r.attributes={}),(i=r.attributes)[s]||(i[s]={}),Object.assign(r.attributes[s],o));this.emitter.emit("options:element:update",{element:t,props:e}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",role:s,indexes:l,path:a?`${dP(l)}.attributes.${s.replace("item-","")}`:`data.attributes.${s}`,value:e}]})}destroy(){}}class IB{constructor(t){this.getOptions=t,this.handlers=new Map,this.isDispatching=!1,this.isDestroyed=!1}register(t,e,n){if(this.handlers.has(t)||this.handlers.set(t,new Set),this.handlers.get(t).add(e),null==n?void 0:n.immediate){const n=Jo(this.getOptions(),t);e(n,void 0)}return()=>{const n=this.handlers.get(t);n&&(n.delete(e),0===n.size&&this.handlers.delete(t))}}trigger(t,e,n){if(this.isDestroyed||this.isDispatching)return void(this.isDispatching&&console.warn(`[SyncRegistry] Recursive update detected on ${t}. Skipped to prevent loop.`));const i=this.handlers.get(t);if(i){this.isDispatching=!0;try{i.forEach(t=>t(e,n))}finally{this.isDispatching=!1}}}destroy(){this.isDestroyed=!0,this.handlers.clear()}}class TB{constructor(t,e,n){if(this.emitter=t,this.document=e,this.options=n,!e.isConnected)throw new Error("The provided document is not connected to the DOM.");e.style.userSelect="none";const i=new $B,r=new LB,o=new PB,s=new zB,a=new IB(()=>r.getOptions());this.commander=i,this.state=r,this.plugin=o,this.interaction=s,this.syncRegistry=a,i.init({state:r,emitter:t}),r.init({emitter:t,editor:this,commander:i,options:n});const l=new DT;o.init({emitter:t,editor:this,commander:i,state:r},[l,...n.plugins||[]]),s.init({emitter:t,editor:this,commander:i,state:r,interactions:n.interactions})}registerSync(t,e,n){return this.syncRegistry.register(t,e,n)}getDocument(){return this.document}destroy(){this.document.style.userSelect="",this.interaction.destroy(),this.plugin.destroy(),this.commander.destroy(),this.state.destroy(),this.syncRegistry.destroy()}}const RB=function(t,e,n){(void 0!==n&&!wo(t[e],n)||void 0===n&&!(e in t))&&AP(t,e,n)};const BB=function(t){return function(e,n,i){for(var r=-1,o=Object(e),s=i(e),a=s.length;a--;){var l=s[t?a:++r];if(!1===n(o[l],l,o))break}return e}};const WB=BB();const HB=function(t){return qr(t)&&dL(t)};const NB=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};const FB=function(t){return LP(t,vL(t))};const DB=function(t,e,n,i,r,o,s){var a=NB(t,n),l=NB(e,n),c=s.get(l);if(c)RB(t,n,c);else{var h=o?o(a,l,n+"",t,e,s):void 0,u=void 0===h;if(u){var d=Pr(l),f=!d&&UP(l),p=!d&&!f&&iL(l);h=l,d||f||p?Pr(a)?h=a:HB(a)?h=OL(a):f?(u=!1,h=CL(l,!0)):p?(u=!1,h=fI(l,!0)):h=[]:LI(l)||NP(l)?(h=a,NP(a)?h=FB(a):Qr(a)&&!Jr(a)||(h=vI(l))):u=!1}u&&(s.set(l,h),r(h,l,i,o,s),s.delete(l)),RB(t,n,h)}};const VB=function t(e,n,i,r,o){e!==n&&WB(n,function(s,a){if(o||(o=new _P),Qr(s))DB(e,n,a,i,t,r,o);else{var l=r?r(NB(e,a),s,a+"",e,n,o):void 0;void 0===l&&(l=s),RB(e,a,l)}},vL)};const UB=function(t){return t};const YB=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var qB=Math.max;const GB=function(t,e,n){return e=qB(void 0===e?t.length-1:e,0),function(){for(var i=arguments,r=-1,o=qB(i.length-e,0),s=Array(o);++r<o;)s[r]=i[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=i[r];return a[e]=n(s),YB(t,this,a)}};const XB=function(t){return function(){return t}};var KB=$P?function(t,e){return $P(t,"toString",{configurable:!0,enumerable:!1,value:XB(e),writable:!0})}:UB;var ZB=Date.now;const QB=function(t){var e=0,n=0;return function(){var i=ZB(),r=16-(i-n);if(n=i,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}};const JB=QB(KB);const tW=function(t,e){return JB(GB(t,e,UB),t+"")};const eW=function(t,e,n){if(!Qr(n))return!1;var i=typeof e;return!!("number"==i?dL(n)&&qP(e,n.length):"string"==i&&e in n)&&wo(n[e],t)};const nW=function(t){return tW(function(e,n){var i=-1,r=n.length,o=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,s&&eW(n[0],n[1],s)&&(o=r<3?void 0:o,r=1),e=Object(e);++i<r;){var a=n[i];a&&t(e,a,i,o)}return e})};var iW=nW(function(t,e,n){VB(t,e,n)});const rW=iW;var oW=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function sW(t){const{container:e="#container",padding:n=0,template:i,design:r,theme:o,themeConfig:s,data:a}=t,l=oW(t,["container","padding","template","design","theme","themeConfig","data"]),c=i?u(i):void 0,d="string"==typeof e?document.querySelector(e)||document.createElement("div"):e,f=c?function(t){return h.get(t)}(c):void 0,p=rW({},null==f?void 0:f.themeConfig,s),g=o||s||(null==f?void 0:f.themeConfig)?function(t,e={}){var n;const i=t?(o=t,Qu.get(o)||{}):{},r=rW({},i,e);var o;r.palette=e.palette||i.palette,r.stylize=null!==(n=e.stylize)&&void 0!==n?n:i.stylize,r.colorPrimary||(r.colorPrimary="#FF356A");r.palette||(r.palette=[r.colorPrimary]);return r}(o,p):void 0,m={container:d,padding:Jh(n)};if(f){const t=oW(f,["design"]);Object.assign(m,t)}Object.assign(m,l);const y=function(t,e){if(!t)return;if(Array.isArray(t.items)&&t.items.length)return t;const{lists:n,sequences:i,compares:r,nodes:o,values:s,root:a}=t,l=()=>{if(!e)return null;const t={list:n,sequence:i,compare:r,relation:o,chart:s,hierarchy:a?[a]:[]}[e.split("-")[0]];return(null==t?void 0:t.length)?t:null},c=()=>{var e;return(null==n?void 0:n.length)?n:(null==i?void 0:i.length)?i:(null==r?void 0:r.length)?r:(null==o?void 0:o.length)?o:(null==s?void 0:s.length)?s:a?[a]:(null===(e=t.items)||void 0===e?void 0:e.length)?t.items:[]};let h=l()||c();h===i&&"desc"===t.order&&(h=[...h].reverse());return Object.assign(Object.assign({},t),{items:h})}(a,c);if(y&&(m.data=y),c&&(m.template=c),(null==f?void 0:f.design)||r){const e=Object.assign(Object.assign({},g?Object.assign(Object.assign({},t),{themeConfig:g}):t),{data:y||a}),n=function(t,e){const{structure:n,title:i,item:r,items:o}=t||{},s=hW(r||(null==o?void 0:o[0]),e);return{structure:lW(n),title:cW(i,e),item:s,items:o?o.map(t=>hW(t,e)):[s]}}(Object.assign(Object.assign({},null==f?void 0:f.design),r),e);es(n)&&(m.design=n)}return o&&(m.theme=o),g&&(m.themeConfig=g),m}function aW(t){if("string"==typeof t)return{type:t};if(!("type"in t))throw new Error("Type is required");return t}function lW(t){if(!t)return null;const e=aW(t),{type:n}=e,i=oW(e,["type"]),r=function(t){return wg.get(t)}(n);if(!r)return null;const{component:o}=r;return Object.assign(Object.assign({},r),{component:t=>o(Object.assign(Object.assign({},t),i))})}function cW(t,e){if(!t)return{component:null};const n=aW(t),i=oW(n,["type"]),{themeConfig:r}=e,o=(null==r?void 0:r.colorBg)||"#fff",s=uW(o,o);return{component:t=>(t=>{const{x:e=0,y:n=0,alignHorizontal:i="center",title:r,desc:o,descLineNumber:s=2,themeColors:a}=t;return r||o?U(Zu,{flexDirection:"column",justifyContent:"center",alignItems:"center",x:e,y:n,gap:8,children:[r&&V(t=>V(su,Object.assign({},{fontSize:24,fill:a.colorPrimaryText,lineHeight:1.4,alignHorizontal:i},t,{"data-element-type":"title",children:r})),{}),o&&V(t=>V(su,Object.assign({},{fontSize:16,fill:a.colorTextSecondary,alignHorizontal:i,lineHeight:1.4,height:24*s},t,{"data-element-type":"desc",children:o})),{})]}):null})(Object.assign(Object.assign(Object.assign({},t),{themeColors:s}),i))}}function hW(t,e){if(!t)return null;const n=aW(t),{type:i}=n,r=oW(n,["type"]),o=function(t){return xd.get(t)}(i);if(!o)return null;const{component:s,options:a}=o;return Object.assign(Object.assign({},o),{component:t=>{var n;const{indexes:i}=t,{data:o,themeConfig:a}=e,l=(null==a?void 0:a.colorBg)||"#fff",{themeColors:c=uW(Va(null==a?void 0:a.palette,i,null===(n=null==o?void 0:o.items)||void 0===n?void 0:n.length)||(null==a?void 0:a.colorPrimary)||"#FF356A",l)}=t,h=oW(t,["themeColors"]);return s(Object.assign(Object.assign({themeColors:c},h),r))},options:a})}function uW(t,e="#fff"){return td({colorPrimary:t,isDarkMode:zr(e),colorBg:e})}function dW(t){const e=t.trim();if(!e)return null;const n=e.match(/^([^:\s=]+)\s*[:=]\s*(.*)$/);if(n)return{key:n[1],value:n[2].trim()};const i=e.match(/^([^\s]+)\s+(.*)$/);return i?{key:i[1],value:i[2].trim()}:{key:e,value:void 0}}function fW(t){return"__proto__"===t||"constructor"===t||"prototype"===t}function pW(t,e){return{kind:"object",line:t,value:e,entries:{}}}function gW(t){return{kind:"array",line:t,items:[]}}function mW(t){const e=[],n=pW(0),i=[{indent:-1,node:n,parent:null,key:null}];return t.split(/\r?\n/).forEach((t,n)=>{const r=n+1;if(!t.trim())return;const{indent:o,content:s}=function(t){let e=0,n=0;for(;n<t.length;){const i=t[n];if(" "!==i){if("\t"!==i)break;e+=2,n+=1}else e+=1,n+=1}return{indent:e,content:t.slice(n)}}(t);if(function(t){const e=t.trimStart();return e.startsWith("#")||e.startsWith("//")}(s)||function(t){return/^```[\w-]*\s*$/.test(t.trim())}(s))return;const a=function(t){return t.trimEnd()}(s);if(!a.trim())return;for(;i.length>1&&o<=i[i.length-1].indent;)i.pop();const l=i[i.length-1];let c=l.node;const h=a.trim();if(h.startsWith("-")&&(1===h.length||(" "===(u=h[1])||"\t"===u))){if("array"!==c.kind){if("object"!==c.kind||0!==Object.keys(c.entries).length||void 0!==c.value||!l.parent||!l.key)return void e.push({path:"",line:r,code:"bad_list",message:"List item is not under an array container.",raw:h});{const t=gW(c.line);if("object"===l.parent.kind)l.parent.entries[l.key]=t;else if("array"===l.parent.kind){const e=l.parent.items.indexOf(c);e>=0&&(l.parent.items[e]=t)}l.node=t,c=t}}const t=pW(r,h.slice(1).trim()||void 0);return c.items.push(t),void i.push({indent:o,node:t,parent:c})}var u;if("relations"===l.key&&!h.startsWith("-")&&/[<>=o.x-]{2,}/.test(h)){if("array"!==c.kind){if("object"!==c.kind||0!==Object.keys(c.entries).length||void 0!==c.value||!l.parent||!l.key)return void e.push({path:"",line:r,code:"bad_list",message:"List item is not under an array container.",raw:h});{const t=gW(c.line);if("object"===l.parent.kind)l.parent.entries[l.key]=t;else if("array"===l.parent.kind){const e=l.parent.items.indexOf(c);e>=0&&(l.parent.items[e]=t)}l.node=t,c=t}}const t=pW(r,h);return c.items.push(t),void i.push({indent:o,node:t,parent:c})}const d=dW(h);if(!d)return void e.push({path:"",line:r,code:"bad_syntax",message:"Invalid syntax line.",raw:h});if("object"!==c.kind)return void e.push({path:"",line:r,code:"bad_syntax",message:"Key-value pair is not under an object container.",raw:h});const f=pW(r,d.value),p=function(t,e,n,i,r){if(!e.includes("."))return fW(e)?(r.push({path:e,line:i,code:"bad_syntax",message:`Invalid key part: ${e}`,raw:e}),null):(t.entries[e]=n,{parent:t,key:e});const o=e.split(".");if(o.some(t=>!t))return r.push({path:e,line:i,code:"bad_syntax",message:"Invalid dotted key path.",raw:e}),null;let s=t;for(let t=0;t<o.length-1;t+=1){const n=o[t];if(fW(n))return r.push({path:e,line:i,code:"bad_syntax",message:`Invalid key part in dotted path: ${n}`,raw:e}),null;const a=s.entries[n];if(!a){const t=pW(i);s.entries[n]=t,s=t;continue}if("object"!==a.kind)return r.push({path:o.slice(0,t+1).join("."),line:i,code:"bad_syntax",message:"Cannot assign dotted key under a list value.",raw:e}),null;s=a}const a=o[o.length-1];return fW(a)?(r.push({path:e,line:i,code:"bad_syntax",message:`Invalid key part in dotted path: ${a}`,raw:e}),null):(s.entries[a]=n,{parent:s,key:a})}(c,d.key,f,r,e);p&&i.push({indent:o,node:f,parent:p.parent,key:p.key})}),{ast:n,errors:e}}function yW(t){return dW(t)}function vW(t,e){return{kind:"value",line:e,value:t}}const xW=/^(#[0-9a-f]{8}|#[0-9a-f]{6}|#[0-9a-f]{4}|#[0-9a-f]{3})/i,bW=/^((?:rgb|rgba|hsl|hsla)\([^)]*\))/i;function wW(t){const e=t.trim();return/^true$/i.test(e)?"true":/^false$/i.test(e)?"false":void 0}function MW(t){const e=t.trim(),n=wW(e);return"true"===n||"false"!==n&&(/^-?\d+(\.\d+)?$/.test(e)?parseFloat(e):e)}function kW(t){return"value"===t.kind||"object"===t.kind?t.value:void 0}function CW(t,e,n,i,r,o){t.push({path:n,line:e.line,code:i,message:r,raw:o})}function OW(t,e="any"){let n,i=t.trim();if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1).trim()),!i)return[];n=i.split("comma"===e?",":"space"===e?/\s+/:/[,\s]+/);const r=[];for(const t of n){const e=t.trim();if(e){if("#"===e||"//"===e)break;r.push(e)}}return r}function jW(t){const e=function(t){let e=t.trim();const n=e.search(/\s+#(?![0-9a-f])/i);n>=0&&(e=e.slice(0,n).trimEnd());const i=e.indexOf("//");return i>=0&&(e=e.slice(0,i).trimEnd()),e}(t);if(!e)return;const n=e.match(xW);if(n&&n[0].length===e.length)return e;const i=e.match(bW);return i&&i[1].length===e.length||(0,wl.A)(e).isValid()?e:void 0}function EW(t,e,n,i={}){const r=kW(t);if(void 0===r)return void CW(n,t,e,"schema_mismatch","Expected color value.");const o=jW(r);if(o)return o;i.soft||CW(n,t,e,"invalid_value","Invalid color value.",r)}function _W(t){if("array"===t.kind)return t.items.map(t=>_W(t));if("value"===t.kind)return MW(t.value);if(!(Object.keys(t.entries).length>0)&&void 0!==t.value)return MW(t.value);const e={};return void 0!==t.value&&(e.value=MW(t.value)),Object.entries(t.entries).forEach(([t,n])=>{e[t]=_W(n)}),e}function SW(t,e,n,i){switch(e.kind){case"union":return function(t,e,n,i){let r,o=null;for(const i of e.variants){const e=[],s=SW(t,i,n,e);(null===o||e.length<o.length)&&(o=e,r=s)}return o&&i.push(...o),r}(t,e,n,i);case"string":{const e=kW(t);return void 0===e?void CW(i,t,n,"schema_mismatch","Expected string value."):e}case"number":{const e=kW(t);if(void 0===e)return void CW(i,t,n,"schema_mismatch","Expected number value.");const r=e.trim().match(/^(-?\d+(\.\d+)?)(?:\s*(#|\/\/).*)?$/);return r?parseFloat(r[1]):void CW(i,t,n,"invalid_value","Invalid number value.",e)}case"boolean":{const e=kW(t);if(void 0===e)return void CW(i,t,n,"schema_mismatch","Expected boolean value.");const r=wW(e);return r?"true"===r:void CW(i,t,n,"invalid_value","Invalid boolean value.",e)}case"enum":{const r=kW(t);if(void 0===r)return void CW(i,t,n,"schema_mismatch","Expected enum value.");const o=wW(r),s=o&&e.values.includes(o)?o:r;return e.values.includes(s)?s:void CW(i,t,n,"invalid_value","Invalid enum value.",r)}case"array":{if("array"===t.kind)return t.items.map((t,r)=>SW(t,e.item,`${n}[${r}]`,i)).filter(t=>void 0!==t);if("object"===t.kind&&Object.keys(t.entries).length>0)return void CW(i,t,n,"schema_mismatch","Expected array value.");const r=kW(t);if(void 0===r)return void CW(i,t,n,"schema_mismatch","Expected array value.");const o=r.trim();if(o.startsWith("[")&&!o.endsWith("]"))return;return OW(r,e.split).map((r,o)=>SW(vW(r,t.line),e.item,`${n}[${o}]`,i)).filter(t=>void 0!==t)}case"palette":{if("array"===t.kind){const e=SW(t,{kind:"array",item:{kind:"color"},split:"any"},n,i);return Array.isArray(e)&&e.length>0?e:void 0}if("object"===t.kind&&Object.keys(t.entries).length>0)return void CW(i,t,n,"schema_mismatch","Expected palette value.");const e=kW(t);if(void 0===e)return void CW(i,t,n,"schema_mismatch","Expected palette value.");const r=e.trim();if(r.startsWith("[")&&!r.endsWith("]"))return;const o=jW(r);if(o)return[o];const s=OW(e,"any");if(function(t,e){return e.length>1||!(!t.startsWith("[")||!t.endsWith("]"))||void 0!==jW(t)}(r,s)){const e=s.map((e,r)=>EW(vW(e,t.line),`${n}[${r}]`,i)).filter(t=>void 0!==t);return e.length>0?e:void 0}return e}case"color":return EW(t,n,i,{soft:e.soft});case"object":{if("array"===t.kind)return void CW(i,t,n,"schema_mismatch","Expected object value.");const r={};if("value"===t.kind){if(e.shorthandKey)return r[e.shorthandKey]=t.value,r;const o=yW(t.value);if(void 0!==(null==o?void 0:o.value)){if(e.fields[o.key]){const s=SW(vW(o.value,t.line),e.fields[o.key],`${n}.${o.key}`,i);return void 0!==s&&(r[o.key]=s),r}return e.allowUnknown?(r[o.key]=MW(o.value),r):(CW(i,t,`${n}.${o.key}`,"unknown_key","Unknown key in object.",o.key),r)}return e.allowUnknown?(r.value=MW(t.value),r):void CW(i,t,n,"invalid_value","Expected object value.")}if(void 0!==t.value)if(e.shorthandKey&&void 0===r[e.shorthandKey])r[e.shorthandKey]=t.value;else{const o=yW(t.value);if(void 0!==(null==o?void 0:o.value))if(e.fields[o.key]){const s=SW(vW(o.value,t.line),e.fields[o.key],`${n}.${o.key}`,i);void 0!==s&&void 0===r[o.key]&&(r[o.key]=s)}else e.allowUnknown?r[o.key]=MW(o.value):CW(i,t,`${n}.${o.key}`,"unknown_key","Unknown key in object.",o.key);else e.allowUnknown&&(r.value=MW(t.value))}return Object.entries(t.entries).forEach(([t,o])=>{const s=e.fields[t];if(!s)return e.allowUnknown?void(r[t]=_W(o)):void CW(i,o,`${n}.${t}`,"unknown_key","Unknown key in object.",t);const a=SW(o,s,`${n}.${t}`,i);void 0!==a&&(r[t]=a)}),r}default:return}}const $W=t=>({kind:"enum",values:t}),AW=(t={})=>({kind:"color",soft:t.soft}),zW=(t,e="any")=>({kind:"array",item:t,split:e}),PW=(t,e={})=>({kind:"object",fields:t,allowUnknown:e.allowUnknown,shorthandKey:e.shorthandKey}),LW=(...t)=>({kind:"union",variants:t}),IW=()=>PW({},{allowUnknown:!0}),TW={fill:AW({soft:!0}),stroke:AW({soft:!0})},RW=PW(TW,{allowUnknown:!0}),BW=PW(TW,{allowUnknown:!0}),WW=PW({},{allowUnknown:!0});WW.fields={id:{kind:"string"},label:{kind:"string"},value:LW({kind:"number"},{kind:"string"}),desc:{kind:"string"},icon:LW({kind:"string"},IW()),illus:LW({kind:"string"},IW()),attributes:IW(),group:{kind:"string"},category:{kind:"string"},children:zW(WW)};const HW=PW({id:{kind:"string"},from:{kind:"string"},to:{kind:"string"},label:{kind:"string"},direction:$W(["forward","both","none"]),showArrow:$W(["true","false"]),arrowType:$W(["arrow","triangle","diamond"]),lineStyle:$W(["solid","dashed"])},{allowUnknown:!0}),NW=PW({type:{kind:"string"},colorBg:AW(),colorPrimary:AW(),palette:{kind:"palette"},title:RW,desc:RW,shape:BW,base:PW({global:PW({},{allowUnknown:!0}),shape:BW,text:RW}),item:PW({icon:PW({},{allowUnknown:!0}),label:RW,desc:RW,value:RW,shape:BW}),stylize:PW({type:$W(["rough","pattern"]),roughness:{kind:"number"},bowing:{kind:"number"},fillWeight:{kind:"number"},hachureGap:{kind:"number"},pattern:{kind:"string"},backgroundColor:AW(),foregroundColor:AW(),scale:{kind:"number"}},{shorthandKey:"type"}),elements:PW({},{allowUnknown:!0})},{shorthandKey:"type"}),FW=PW({},{allowUnknown:!0,shorthandKey:"type"}),DW=PW({structure:FW,item:FW,items:zW(FW),title:FW}),VW=PW({title:{kind:"string"},desc:{kind:"string"},items:zW(WW),lists:zW(WW),sequences:zW(WW),root:WW,compares:zW(WW),nodes:zW(WW),relations:zW(HW),values:zW(WW),order:$W(["asc","desc"]),illus:IW(),attributes:IW()}),UW=PW({type:{kind:"string"}},{shorthandKey:"type"}),YW=PW({template:UW,design:DW,data:VW,theme:NW,width:LW({kind:"number"},{kind:"string"}),height:LW({kind:"number"},{kind:"string"})}),qW=/(?:[<>o.x-]{2,}|[<>=]{2,})/,GW=/(?:[<>o.x-]{2,}|[<>=]{2,})/g;function XW(t){let e=t.trim();if(!e)return"";const n=e[0],i=e[e.length-1];return('"'===n&&'"'===i||"'"===n&&"'"===i)&&(e=e.slice(1,-1)),e=e.replace(/\\(["'])/g,"$1").replace(/(&quot;|&#quot;|#quot;)/g,'"').replace(/(&apos;|&#39;|#apos;)/g,"'"),e.trim()}function KW(t,e){let n=e;for(;n<t.length&&/\s/.test(t[n]);)n+=1;return n}function ZW(t,e){let n=KW(t,e);if(n>=t.length)return null;const i=n;for(;n<t.length;){const e=t[n];if(/\s/.test(e)||"["===e||"("===e||"@"===e||"|"===e||"<"===e||">"===e)break;if("-"===e&&("-"===t[n+1]||">"===t[n+1]||"<"===t[n+1]))break;n+=1}if(n===i)return null;const r=t.slice(i,n).trim();if(!r)return null;if(t.startsWith("@{",n)){const e=t.indexOf("}",n+2);-1!==e&&(n=e+1)}let o;if(n=KW(t,n),"["===t[n]){const e=t.indexOf("]",n+1);-1!==e&&(o=XW(t.slice(n+1,e)),n=e+1)}else if("("===t[n]){const e=t.indexOf(")",n+1);if(-1!==e){let i=t.slice(n+1,e).trim();i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1).trim()),o=XW(i),n=e+1}}return{node:{id:r,label:o},nextIndex:n}}function QW(t,e){GW.lastIndex=e;const n=GW.exec(t);if(!n)return null;const i=n[0],r=n.index,o=r+i.length;let s=function(t){return XW(t.trim().replace(/^[-=.ox]+/,"").trim())}(t.slice(e,r))||void 0,a=i,l=o;{const e=a.includes("<"),n=a.includes(">");if(e&&!n){const e=new RegExp(GW.source,"g");e.lastIndex=o;const n=e.exec(t);if(n&&n[0].includes(">")&&!n[0].includes("<")){const e=t.slice(o,n.index).trim();if(e){return{label:XW(e)||s,direction:"both",reverse:!1,nextIndex:n.index+n[0].length}}}}}if(l=KW(t,l),"|"===t[l]){const e=t.indexOf("|",l+1);if(-1!==e){s=XW(t.slice(l+1,e))||s,l=e+1;const n=KW(t,l);GW.lastIndex=n;const i=GW.exec(t);i&&i.index===n?(a+=i[0],l=i.index+i[0].length):l=n}}const c=a.includes("<"),h=a.includes(">"),u=a.match(/[xo]/gi)||[],d=/^[xo]/i.test(a),f=/[xo]$/i.test(a);let p="none",g=!1;return c&&h||c&&f||h&&d||d&&f?p="both":(c||h||u.length>0)&&(p="forward",g=c&&!h),{label:s,direction:p,reverse:g,nextIndex:l}}function JW(t,e,n){const i=[],r=[],o=new Map,s=t=>{if(!qW.test(t))return;const e=function(t){const e=[],n=[],i=new Map;let r=0;const o=ZW(t,r);if(!o)return{relations:e,nodes:n};let s=o.node;for(i.has(s.id)||(i.set(s.id,s),n.push(s)),r=o.nextIndex;r<t.length;){const o=QW(t,r);if(!o)break;r=o.nextIndex;const a=ZW(t,r);if(!a)break;r=a.nextIndex;let l=s.id,c=a.node.id;const h=o.direction;o.reverse&&(l=a.node.id,c=s.id);const u={from:l,to:c};o.label&&(u.label=o.label),"both"===h&&(u.direction="both"),"none"===h&&(u.direction="none"),e.push(u),i.has(s.id)||(i.set(s.id,s),n.push(s)),i.has(a.node.id)||(i.set(a.node.id,a.node),n.push(a.node)),s=a.node}return{relations:e,nodes:n}}(t);e.nodes.forEach(t=>{!function(t,e,n,i){if(!n)return;const r=t.get(n);if(r)return void(!r.label&&i&&(r.label=i));const o={id:n,label:i||n};t.set(n,o),e.push(o)}(o,r,t.id,t.label)}),i.push(...e.relations)};return"array"===t.kind?t.items.forEach((t,r)=>{if("object"===t.kind&&t.value&&0===Object.keys(t.entries).length&&qW.test(t.value))return void s(t.value);const o=function(t,e,n){const i=SW(t,HW,e,n);return i&&"object"==typeof i?"string"!=typeof i.from||"string"!=typeof i.to?null:i:null}(t,`${n}[${r}]`,e);o&&i.push(o)}):"object"===t.kind&&t.value&&s(t.value),{relations:i,items:r}}var tH=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const eH=new Set(["infographic","template","design","data","theme","width","height"]);function nH(t){t.forEach(t=>{!t.id&&t.label&&(t.id=t.label)})}function iH(t){var e;const{ast:n,errors:i}=mW(t),r=[],o={},s=Object.assign({},n.entries),a=function(t,e){if("infographic"in t||"template"in t)return;const[n]=Object.entries(t);if(!n)return;const[i,r]=n;return eH.has(i)||"object"!==r.kind||void 0!==r.value||Object.keys(r.entries).length>0?void 0:(e.push({path:"template",line:r.line,code:"implicit_template",message:'Inferred template from a bare first line. Prefix it with "infographic" or "template" to make the syntax explicit.',raw:i}),{template:i,inferredKey:i})}(n.entries,r);a&&delete s[a.inferredKey];const l=n.entries.infographic;let c;l&&"object"===l.kind&&(l.value&&(c=l.value),Object.entries(l.entries).forEach(([t,e])=>{t in s||(s[t]=e)})),Object.keys(s).forEach(t=>{eH.has(t)||i.push({path:t,line:s[t].line,code:"unknown_key",message:"Unknown top-level key.",raw:t})});const h=function(t,e){if(!t)return;const n=SW(t,UW,"template",e);return n?"string"==typeof n?n:"object"==typeof n&&"string"==typeof n.type?n.type:void 0:void 0}(s.template,i);h&&(o.template=h),!o.template&&c&&(o.template=c),!o.template&&a&&(o.template=a.template);const u=s.design;if(u){const t=SW(u,DW,"design",i);t&&(o.design=t)}const d=s.data;if(d){let t,n=d;if("object"===d.kind){const e=d.entries,{relations:i}=e,r=tH(e,["relations"]);t=i,n=Object.assign(Object.assign({},d),{entries:r})}const r=SW(n,VW,"data",i);if(r&&(o.data=r),t){const n=JW(t,i,"data.relations");if(n.relations.length>0||n.items.length>0){const t=null!==(e=o.data)&&void 0!==e?e:{};Array.isArray(t.items)&&nH(t.items),Array.isArray(t.nodes)&&nH(t.nodes);const i=Object.keys(VW.fields).filter(t=>"items"!==t&&"relations"!==t);let r=!1;for(const e of i)if(Array.isArray(t[e])&&t[e].length>0){r=!0;break}if(!r&&Array.isArray(t.items)&&t.items.length>0&&t.items.some(t=>Array.isArray(t.children)&&t.children.length>0)&&(r=!0),!r){const e=function(t){var e;const n=new Set,i=[];for(let r=t.length-1;r>=0;r-=1){const o=t[r],s=null!==(e=o.id)&&void 0!==e?e:o.label;s?n.has(s)||(n.add(s),o.id||(o.id=s),i.push(o)):i.push(o)}return i.reverse()}(Array.isArray(t.items)?t.items:[]),i=new Map;e.forEach(t=>{t.id&&i.set(t.id,t)}),n.items.forEach(t=>{const n=i.get(t.id);n?!n.label&&t.label&&(n.label=t.label):(e.push(t),i.set(t.id,t))}),t.items=e}t.relations=n.relations,o.data=t}}}const f=s.theme;if(f){const t=SW(f,NW,"theme",i);if(t&&"object"==typeof t){const e=t,{type:n}=e,i=tH(e,["type"]);"string"==typeof n&&n&&(o.theme=n),Object.keys(i).length>0&&(o.themeConfig=i)}}const p=s.width;if(p){const t=SW(p,YW.fields.width,"width",i);void 0!==t&&(o.width=t)}const g=s.height;if(g){const t=SW(g,YW.fields.height,"height",i);void 0!==t&&(o.height=t)}return{options:o,errors:i,warnings:r,ast:n}}const rH={padding:20,theme:"default",themeConfig:{palette:"antv"},get plugins(){return[new tB,new aB,new rB]},get interactions(){return[new bT,new gT,new uT,new fT,new MT,new CT,new NT,new OT]}};function oH(t,e){const n=Object.assign(Object.assign({},t),e);return(t.design||e.design)&&(n.design=Object.assign(Object.assign({},t.design),e.design)),(t.themeConfig||e.themeConfig)&&(n.themeConfig=Object.assign(Object.assign({},t.themeConfig),e.themeConfig)),(t.svg||e.svg)&&(n.svg=Object.assign(Object.assign({},t.svg),e.svg)),n}function sH(t){const e=Object.assign({},t);return e.data&&(e.data=$I(e.data)),e.elements&&(e.elements=$I(e.elements)),e}function aH(t){const{design:e,data:n}=t;return!!e&&(!!es(e)&&(!!n&&!(!Array.isArray(n.items)||n.items.length<1)))}var lH=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class cH{constructor(t){this.rendered=!1,this.emitter=new _B.A,this.node=null,this.initialOptions={},this.setOptions(t,"replace",!0)}getOptions(){return this.options}setOptions(t,e="replace",n=!1){const{options:i,errors:r,warnings:o}=function(t){if("string"==typeof t){const{options:e,errors:n,warnings:i}=iH(t);return{options:e,errors:n,warnings:i}}return{options:sH(t),errors:[],warnings:[]}}(t);n&&(this.initialOptions=i);const s=oH("replace"===e?sH(this.initialOptions||{}):this.options||sH(this.initialOptions||{}),i);this.options=s,this.parsedOptions=sW(oH(rH,this.options)),o.length&&this.emitter.emit("warning",o),r.length&&this.emitter.emit("error",r)}render(t){t?this.setOptions(t,"replace"):!this.options&&this.initialOptions&&this.setOptions(this.initialOptions,"replace"),this.performRender()}update(t){this.setOptions(t,"merge"),this.performRender()}performRender(){var t;const e=this.parsedOptions;if(!aH(e))return void this.emitter.emit("error",new Error("Incomplete options"));const{container:n}=this.parsedOptions,i=this.compose(e),r=new Dc(e,i);this.node=r.render(),null==n||n.replaceChildren(this.node),null===(t=this.editor)||void 0===t||t.destroy(),this.editor=void 0,this.options.editable&&(this.editor=new TB(this.emitter,this.node,e)),this.rendered=!0,this.emitter.emit("rendered",{node:this.node,options:this.options});const o=this.node;return o&&function(t){return Oa(this,void 0,void 0,function*(){for(yield Promise.resolve();;){const e=Ea(t);if(!e.length)break;yield Promise.allSettled(e),yield Promise.resolve()}})}(o).then(()=>{this.node===o&&this.emitter.emit("loaded",{node:o,options:this.options})}),!0}compose(t){var e,n;const{design:i,data:r,themeConfig:o}=t,{title:s,item:a,items:l,structure:c}=i,{component:h,props:u}=c,d=s.component,f=a.component,p=l.map(t=>t.component),g=null===(n=null===(e=null==o?void 0:o.base)||void 0===e?void 0:e.text)||void 0===n?void 0:n["font-family"],m=Aa;g&&La(g);try{const e=Qc(_u(V(h,Object.assign({data:r,Title:d,Item:f,Items:p,options:t},u))));if(!e)throw new Error("Failed to parse SVG template");return e}finally{g&&La(m)}}getTypes(){const t=this.parsedOptions;if(!aH(t))return void this.emitter.emit("error",new Error("Incomplete options"));const e=t.design;return function(t,e={title:"信息图标题",desc:"信息图描述",items:"信息图的内容项",label:"项目标签文本",value:"项目数值内容",icon:"项目图标",illus:"项目插图",children:"子级项目(多层结构)"}){const{structure:n,items:i}=t,r=[],o=t=>" ".repeat(t);function s(t,n,i){const r=e[t];return r?`${o(i)}/** ${r} */\n${o(i)}${t}: ${n};`:`${o(i)}${t}: ${n};`}return r.push("type InfographicType = {"),n.includes("title")&&(r.push(s("title","string",1)),r.push(s("desc","string",1))),n.includes("item")&&i.length>0&&r.push(s("items",`Array<${function t(e,n){const r=i[e],a=[];for(const t of r)a.push(s(t,"value"===t?"number":"string",n+1));return i[e+1]&&a.push(s("children",`Array<${t(e+1,n+1)}>`,n+1)),`{\n${a.join("\n")}\n${o(n)}}`}(0,1)}>`,1)),r.push("}"),r.join("\n")}({structure:e.structure.composites||[],items:e.items.map(t=>t.composites||[])})}toDataURL(t){return lH(this,void 0,void 0,function*(){if(!this.node)throw new Error("Infographic is not rendered yet.");return"svg"===(null==t?void 0:t.type)?yield function(t){return dB(this,arguments,void 0,function*(t,e={}){const n=yield bB(t,e),i=(new XMLSerializer).serializeToString(n);return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(i)})}(this.node,t):yield function(t){return EB(this,arguments,void 0,function*(t,e={}){var n;const{dpr:i=(null!==(n=globalThis.devicePixelRatio)&&void 0!==n?n:2),removeBackground:r=!1}=e,o=yield bB(t,{removeBackground:r}),{width:s,height:a}=Zh(o);return new Promise((t,e)=>{try{const n=document.createElement("canvas");n.width=s*i,n.height=a*i;const r=n.getContext("2d");if(!r)return void e(new Error("Failed to get canvas context"));r.scale(i,i),r.imageSmoothingEnabled=!0,r.imageSmoothingQuality="high",o.setAttribute("width",String(s)),o.setAttribute("height",String(a));const l=(new XMLSerializer).serializeToString(o),c="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(l),h=new Image;h.onload=function(){r.clearRect(0,0,s,a),r.drawImage(h,0,0,s,a);const e=n.toDataURL("image/png");t(e)},h.onerror=function(t){e(new Error("Image load failed: "+t))},h.src=c}catch(t){e(t)}})})}(this.node,t)})}on(t,e){this.emitter.on(t,e)}off(t,e){this.emitter.off(t,e)}destroy(){var t,e;null===(t=this.editor)||void 0===t||t.destroy(),null===(e=this.node)||void 0===e||e.remove(),this.node=null,this.rendered=!1,this.emitter.emit("destroyed"),this.emitter.removeAllListeners()}}var hH=n("./node_modules/.pnpm/antd@6.6.8_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/theme/index.js"),uH=n("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isEqual.js"),dH=n.n(uH),fH=n("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js"),pH=n.n(fH),gH=n("./src/utils/browserDownload.ts"),mH=n("./src/utils/dash3.ts"),yH=n("./src/utils/useDeepCompareSignal.ts"),vH=n("./src/utils/useResizeObserver.ts"),xH=n("./src/utils/visualizationTheme.ts"),bH=n("./src/components/fragments/ImageExportButton.tsx");const wH=new Set(["container","plugins","interactions","elements"]),MH=t=>"string"==typeof t?t:Object.fromEntries(Object.entries(t).filter(([t])=>"container"!==t)),kH=t=>{const{token:e}=hH.A.useToken(),{id:n,className:i,style:s,tabIndex:a,role:l,dir:c,lang:h,hidden:u,options:d="",config:f={},export:p,loading_state:g,...m}=t,y=(0,r.useRef)(null),v=(0,r.useRef)(null),x=(0,r.useRef)(d),b=(0,r.useRef)(null),[w,M]=(0,r.useState)(!1),k=(0,xH.n)(e),C=(0,yH.$)({config:f,defaultTheme:k,fontFamily:e.fontFamily,colorBg:e.colorBgContainer}),O=(0,yH.$)(d);x.current=d;const j=(0,r.useMemo)(()=>Object.fromEntries(Object.entries(m).filter(([t,e])=>(t.startsWith("data-")||t.startsWith("aria-"))&&null!=e)),[m]);(0,r.useEffect)(()=>{const t=y.current;if(!t)return;const n=new cH(pH()({container:t,width:"100%",height:"100%",theme:k,themeConfig:{colorBg:e.colorBgContainer,base:{text:{"font-family":e.fontFamily}}}},((t={})=>Object.fromEntries(Object.entries(t).filter(([t])=>!wH.has(t))))(f)));v.current=n;const i=MH(x.current);return n.render(i),b.current=x.current,()=>{n.destroy(),v.current===n&&(v.current=null)}},[C]),(0,r.useEffect)(()=>{const t=v.current;t&&!dH()(b.current,x.current)&&(t.render(MH(x.current)),b.current=x.current)},[O]);const E=(0,r.useRef)({width:0,height:0});(0,vH.w)(()=>y.current,t=>{const e=Math.round(t.contentRect.width),n=Math.round(t.contentRect.height);e&&n&&(e!==E.current.width||n!==E.current.height)&&(E.current={width:e,height:n},v.current?.render(MH(x.current)))},[C]);const _={width:"100%",height:s?.height??450,...s};return o().createElement("div",{...j,id:n,className:i,style:_,tabIndex:a,role:l,dir:c,lang:h,hidden:u,"data-dash-is-loading":(0,mH.A_)(g)||void 0},o().createElement("div",{style:{position:"relative",isolation:"isolate",width:"100%",height:"100%"}},o().createElement("div",{ref:y,style:{width:"100%",height:"100%"}}),p?o().createElement(bH.A,{label:!0===p?void 0:p.label,loading:w,onClick:()=>{const t=v.current;if(!t||!p||w)return;const e=!0===p?{}:p,{format:n="png",pixelRatio:i=1,filename:r="infographic_export"}=e;M(!0),(async()=>{const e="png"===n?await t.toDataURL({type:"png",dpr:Math.max(.1,i)}):await t.toDataURL({type:"svg"});await(0,gH.mU)(e,`${r}.${n}`)})().catch(t=>{console.error("Failed to export Infographic image",t)}).finally(()=>{M(!1)})}}):null))},CH=t=>o().createElement(kH,{...t})},"?c3ee"(){},"?b251"(){},"?9d3a"(){},"?0348"(){},"?2bf4"(){},"./node_modules/.pnpm/nanoid@3.3.16/node_modules/nanoid/non-secure/index.cjs"(t){t.exports={nanoid:(t=21)=>{let e="",n=0|t;for(;n-- >0;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:(t,e=21)=>(n=e)=>{let i="",r=0|n;for(;r-- >0;)i+=t[Math.random()*t.length|0];return i}}}}]);
1
+ (self.webpackChunkdash_antd_components=self.webpackChunkdash_antd_components||[]).push([["async-infographic"],{"./node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.browser.js"(t){var e=String,n=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};t.exports=n(),t.exports.createColors=n},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/at-rule.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js");class r extends i{constructor(t){super(t),this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}}t.exports=r,r.default=r,i.registerAtRule(r)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js");class r extends i{constructor(t){super(t),this.type="comment"}}t.exports=r,r.default=r},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"(t,e,n){"use strict";let i,r,o,s,a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"),c=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js"),{isClean:h,my:u}=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/symbols.js");class d extends c{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...t){for(let e of t){let t=this.normalize(e,this.last);for(let e of t)this.proxyOf.nodes.push(e)}return this.markDirty(),this}cleanRaws(t){let e=[this];for(;e.length>0;){let n=e.pop();if(n===this||n.cleanRaws===d.prototype.cleanRaws){if(c.prototype.cleanRaws.call(n,t),n.nodes)for(let t of n.nodes)e.push(t)}else n.cleanRaws(t)}}each(t){if(!this.proxyOf.nodes)return;let e,n,i=this.getIterator();for(;this.indexes[i]<this.proxyOf.nodes.length&&(e=this.indexes[i],n=t(this.proxyOf.nodes[e],e),!1!==n);)this.indexes[i]+=1;return delete this.indexes[i],n}every(t){return this.nodes.every(t)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:t[e]?"each"===e||"string"==typeof e&&e.startsWith("walk")?(...n)=>t[e](...n.map(t=>"function"==typeof t?(e,n)=>t(e.toProxy(),n):t)):"every"===e||"some"===e?n=>t[e]((t,...e)=>n(t.toProxy(),...e)):"root"===e?()=>t.root().toProxy():"nodes"===e?t.nodes.map(t=>t.toProxy()):"first"===e||"last"===e?t[e].toProxy():t[e]:t[e],set:(t,e,n)=>(t[e]===n||(t[e]=n,"name"!==e&&"params"!==e&&"selector"!==e||t.markDirty()),!0)}}index(t){return"number"==typeof t?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}insertAfter(t,e){let n,i=this.index(t),r=this.normalize(e,this.proxyOf.nodes[i]).reverse();i=this.index(t);for(let t of r)this.proxyOf.nodes.splice(i+1,0,t);for(let t in this.indexes)n=this.indexes[t],i<n&&(this.indexes[t]=n+r.length);return this.markDirty(),this}insertBefore(t,e){let n,i=this.index(t),r=this.normalize(e,this.proxyOf.nodes[i],0===i&&"prepend").reverse();i=this.index(t);for(let t of r)this.proxyOf.nodes.splice(i,0,t);for(let t in this.indexes)n=this.indexes[t],i<=n&&(this.indexes[t]=n+r.length);return this.markDirty(),this}normalize(t,e){if("string"==typeof t)t=function(t){let e=t.slice();for(;e.length>0;){let t=e.pop();if(delete t.source,t.nodes){t.nodes=t.nodes.slice();for(let n of t.nodes)e.push(n)}}return t.slice()}(r(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new l(t)]}else if(t.selector||t.selectors)t=[new s(t)];else if(t.name)t=[new i(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new a(t)]}return t.map(t=>(t[u]||d.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[h]&&function(t){let e=[t];for(;e.length>0;){let t=e.pop();if(t[h]=!1,t.proxyOf.nodes)for(let n of t.proxyOf.nodes)e.push(n)}}(t),t.raws||(t.raws={}),void 0===t.raws.before&&e&&void 0!==e.raws.before&&(t.raws.before=e.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...t){t=t.reverse();for(let e of t){let t=this.normalize(e,this.first,"prepend").reverse();for(let e of t)this.proxyOf.nodes.unshift(e);for(let e in this.indexes)this.indexes[e]=this.indexes[e]+t.length}return this.markDirty(),this}push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(t){let e;t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);for(let n in this.indexes)e=this.indexes[n],e>=t&&(this.indexes[n]=e-1);return this.markDirty(),this}replaceValues(t,e,n){return n||(n=e,e={}),this.walkDecls(i=>{e.props&&!e.props.includes(i.prop)||e.fast&&!i.value.includes(e.fast)||(i.value=i.value.replace(t,n))}),this.markDirty(),this}some(t){return this.nodes.some(t)}walk(t){if(!this.proxyOf.nodes)return;let e=[{iterator:this.getIterator(),node:this.proxyOf}];for(;e.length>0;){let{iterator:n,node:i}=e[e.length-1],r=i.indexes[n];if(r>=i.proxyOf.nodes.length){delete i.indexes[n],e.pop();let t=e[e.length-1];t&&(t.node.indexes[t.iterator]+=1);continue}let o,s=i.proxyOf.nodes[r];try{o=t(s,r)}catch(t){throw s.addToError(t)}if(!1===o){for(let t of e)delete t.node.indexes[t.iterator];return!1}s.walk&&s.proxyOf.nodes?e.push({iterator:s.getIterator(),node:s}):i.indexes[n]+=1}}walkAtRules(t,e){return e?t instanceof RegExp?this.walk((n,i)=>{if("atrule"===n.type&&t.test(n.name))return e(n,i)}):this.walk((n,i)=>{if("atrule"===n.type&&n.name===t)return e(n,i)}):(e=t,this.walk((t,n)=>{if("atrule"===t.type)return e(t,n)}))}walkComments(t){return this.walk((e,n)=>{if("comment"===e.type)return t(e,n)})}walkDecls(t,e){return e?t instanceof RegExp?this.walk((n,i)=>{if("decl"===n.type&&t.test(n.prop))return e(n,i)}):this.walk((n,i)=>{if("decl"===n.type&&n.prop===t)return e(n,i)}):(e=t,this.walk((t,n)=>{if("decl"===t.type)return e(t,n)}))}walkRules(t,e){return e?t instanceof RegExp?this.walk((n,i)=>{if("rule"===n.type&&t.test(n.selector))return e(n,i)}):this.walk((n,i)=>{if("rule"===n.type&&n.selector===t)return e(n,i)}):(e=t,this.walk((t,n)=>{if("rule"===t.type)return e(t,n)}))}}d.registerParse=t=>{r=t},d.registerRule=t=>{s=t},d.registerAtRule=t=>{i=t},d.registerRoot=t=>{o=t},t.exports=d,d.default=d,d.rebuild=t=>{let e=[t];for(;e.length>0;){let t=e.pop();if("atrule"===t.type?Object.setPrototypeOf(t,i.prototype):"rule"===t.type?Object.setPrototypeOf(t,s.prototype):"decl"===t.type?Object.setPrototypeOf(t,l.prototype):"comment"===t.type?Object.setPrototypeOf(t,a.prototype):"root"===t.type&&Object.setPrototypeOf(t,o.prototype),t[u]=!0,t.nodes)for(let n of t.nodes)e.push(n)}}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/css-syntax-error.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.browser.js"),r=n("?c3ee");class o extends Error{constructor(t,e,n,i,r,s){super(t),this.name="CssSyntaxError",this.reason=t,r&&(this.file=r),i&&(this.source=i),s&&(this.plugin=s),void 0!==e&&void 0!==n&&("number"==typeof e?(this.line=e,this.column=n):(this.line=e.line,this.column=e.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let e=this.source;null==t&&(t=i.isColorSupported);let n=t=>t,o=t=>t,s=t=>t;if(t){let{bold:t,gray:e,red:a}=i.createColors(!0);o=e=>t(a(e)),n=t=>e(t),r&&(s=t=>r(t))}let a=e.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),h=String(c).length;return a.slice(l,c).map((t,e)=>{let i=l+1+e,r=" "+(" "+i).slice(-h)+" | ";if(i===this.line){if(t.length>160){let e=20,i=Math.max(0,this.column-e),a=Math.max(this.column+e,this.endColumn+e),l=t.slice(i,a),c=n(r.replace(/\d/g," "))+t.slice(0,Math.min(this.column-1,e-1)).replace(/[^\t]/g," ");return o(">")+n(r)+s(l)+"\n "+c+o("^")}let e=n(r.replace(/\d/g," "))+t.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(r)+s(t)+"\n "+e+o("^")}return" "+n(r)+s(t)}).join("\n")}toString(){let t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t}}t.exports=o,o.default=o},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js");class r extends i{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(t){t&&void 0!==t.value&&"string"!=typeof t.value&&(t={...t,value:String(t.value)}),super(t),this.type="decl"}}t.exports=r,r.default=r},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/document.js"(t,e,n){"use strict";let i,r,o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js");class s extends o{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new i(new r,this,t).stringify()}}s.registerLazyResult=t=>{i=t},s.registerProcessor=t=>{r=t},t.exports=s,s.default=s},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/fromJSON.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/at-rule.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"),a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/previous-map.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"),c=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/rule.js");function h(t,e){return t.inputs?t.inputs.map(t=>{let e={...t,__proto__:s.prototype};return e.map&&(e.map={...e.map,__proto__:a.prototype}),e}):e}function u(t,e,n){let s,a={...t};if(delete a.inputs,delete a.nodes,a.source){let{inputId:t,...n}=a.source;a.source=n,null!=t&&(a.source.input=e[t])}if("root"===a.type)s=new l(a);else if("decl"===a.type)s=new o(a);else if("rule"===a.type)s=new c(a);else if("comment"===a.type)s=new r(a);else{if("atrule"!==a.type)throw new Error("Unknown node type: "+t.type);s=new i(a)}if(n){s.nodes=n;for(let t of n)t.parent=s}return s}function d(t,e){if(Array.isArray(t))return t.map(t=>d(t));let n,i=[{childIndex:0,children:[],inputs:h(t,e),json:t}];for(;i.length>0;){let t=i[i.length-1],e=t.json.nodes;if(e&&t.childIndex<e.length){let n=e[t.childIndex];t.childIndex+=1,i.push({childIndex:0,children:[],inputs:h(n,t.inputs),json:n});continue}i.pop();let r=u(t.json,t.inputs,e?t.children:void 0);i.length>0?i[i.length-1].children.push(r):n=r}return n}t.exports=d,d.default=d},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"(t,e,n){"use strict";let{nanoid:i}=n("./node_modules/.pnpm/nanoid@3.3.16/node_modules/nanoid/non-secure/index.cjs"),{isAbsolute:r,resolve:o}=n("?9d3a"),{SourceMapConsumer:s,SourceMapGenerator:a}=n("?0348"),{fileURLToPath:l,pathToFileURL:c}=n("?2bf4"),h=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/css-syntax-error.js"),u=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/previous-map.js"),d=n("?c3ee"),f=Symbol("lineToIndexCache"),p=Boolean(s&&a),g=Boolean(o&&r);function m(t){if(t[f])return t[f];let e=t.css.split("\n"),n=new Array(e.length),i=0;for(let t=0,r=e.length;t<r;t++)n[t]=i,i+=e[t].length+1;return t[f]=n,n}class y{get from(){return this.file||this.id}constructor(t,e={}){if(null==t||"object"==typeof t&&!t.toString)throw new Error(`PostCSS received ${t} instead of CSS string`);if(this.css=t.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,e.document&&(this.document=e.document.toString()),e.from&&(this.file=!g||/^\w+:\/\//.test(e.from)||r(e.from)?e.from:o(e.from)),g&&p){let t=new u(this.css,e);if(t.text){this.map=t;let e=t.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}}this.file||(this.id="<input css "+i(6)+">"),this.map&&(this.map.file=this.from)}error(t,e,n,i={}){let r,o,s,a,l;if(e&&"object"==typeof e){let t=e,i=n;if("number"==typeof t.offset){a=t.offset;let i=this.fromOffset(a);e=i.line,n=i.col}else a=this.fromLineAndColumn(e=t.line,n=t.column);if("number"==typeof i.offset){s=i.offset;let t=this.fromOffset(s);o=t.line,r=t.col}else o=i.line,r=i.column,s=this.fromLineAndColumn(i.line,i.column)}else if(n)a=this.fromLineAndColumn(e,n);else{a=e;let t=this.fromOffset(a);e=t.line,n=t.col}let u=this.origin(e,n,o,r);return l=u?new h(t,void 0===u.endLine?u.line:{column:u.column,line:u.line},void 0===u.endLine?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,i.plugin):new h(t,void 0===o?e:{column:n,line:e},void 0===o?n:{column:r,line:o},this.css,this.file,i.plugin),l.input={column:n,endColumn:r,endLine:o,endOffset:s,line:e,offset:a,source:this.css},this.file&&(c&&(l.input.url=c(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(t,e){return m(this)[t-1]+e-1}fromOffset(t){let e=m(this),n=0;if(t>=e[e.length-1])n=e.length-1;else{let i,r=e.length-2;for(;n<r;)if(i=n+(r-n>>1),t<e[i])r=i-1;else{if(!(t>=e[i+1])){n=i;break}n=i+1}}return{col:t-e[n]+1,line:n+1}}mapResolve(t){return/^\w+:\/\//.test(t)?t:o(this.map.consumer().sourceRoot||this.map.root||".",t)}origin(t,e,n,i){if(!this.map)return!1;let o,s,a=this.map.consumer(),h=a.originalPositionFor({column:e-1,line:t});if(!h.source)return!1;if("number"==typeof n){let t=a.originalPositionFor({column:i-1,line:n});t.source&&(o=t)}s=r(h.source)?c(h.source):new URL(h.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let u={column:h.column+1,endColumn:o&&o.column+1,endLine:o&&o.line,line:h.line,url:s.toString()};if("file:"===s.protocol){if(!l)throw new Error("file: protocol is not available in this PostCSS build");u.file=l(s)}let d=a.sourceContentFor(h.source);return d&&(u.source=d),u}toJSON(){let t={};for(let e of["hasBOM","css","file","id"])null!=this[e]&&(t[e]=this[e]);return this.map&&(t.map={...this.map},t.map.consumerCache&&(t.map.consumerCache=void 0)),t}}t.exports=y,y.default=y,d&&d.registerInput&&d.registerInput(y)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/lazy-result.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/document.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/map-generator.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parse.js"),a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/result.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"),c=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js"),{isClean:h,my:u}=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/symbols.js");n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warn-once.js");const d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0};function g(t){return"object"==typeof t&&"function"==typeof t.then}function m(t){let e=!1,n=d[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[n,n+"-"+e,0,n+"Exit",n+"Exit-"+e]:e?[n,n+"-"+e,n+"Exit",n+"Exit-"+e]:t.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function y(t){let e;return e="document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:m(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function v(t){let e=[t];for(;e.length>0;){let t=e.pop();if(t[h]=!1,t.nodes)for(let n of t.nodes)e.push(n)}return t}let x={};class b{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(t,e,n){let r;if(this.stringified=!1,this.processed=!1,"object"!=typeof e||null===e||"root"!==e.type&&"document"!==e.type)if(e instanceof b||e instanceof a)r=v(e.root),e.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=e.map);else{let t=s;n.syntax&&(t=n.syntax.parse),n.parser&&(t=n.parser),t.parse&&(t=t.parse);try{r=t(e,n)}catch(t){this.processed=!0,this.error=t}r&&!r[u]&&i.rebuild(r)}else r=v(e);this.result=new a(t,r,n),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(t=>"object"==typeof t&&t.prepare?{...t,...t.prepare(this.result)}:t)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){let n=this.result.lastPlugin;try{e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin||(t.plugin=n.postcssPlugin,t.setMessage())}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};let t=(t,e,n)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,n])};for(let e of this.plugins)if("object"==typeof e)for(let n in e){if(!f[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[n])if("object"==typeof e[n])for(let i in e[n])t(e,"*"===i?n:n+"-"+i.toLowerCase(),e[n][i]);else"function"==typeof e[n]&&t(e,n,e[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let e=this.runOnRoot(this.plugins[t]);if(g(e))try{await e}catch(t){throw this.handleError(t)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[h];){t[h]=!0;let e=[y(t)];for(;e.length>0;){let t=this.visitTick(e);if(g(t))try{await t}catch(t){throw this.handleError(t,e[e.length-1].node)}}}if(this.listeners.OnceExit)for(let[e,n]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map(t=>n(t,this.helpers));await Promise.all(e)}else await n(t,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){let e=this.result.root.nodes.map(e=>t.Once(e,this.helpers));return g(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,e=c;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let n=this.result.root.source;if(void 0===t.map&&!(n&&n.input&&n.input.map)){let t="";return e(this.result.root,e=>{t+=e}),this.result.css=t,this.result}let i=new o(e,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){if(g(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[h];)t[h]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,e){return this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(let[n,i]of t){let t;this.result.lastPlugin=n;try{t=i(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(g(t))throw this.getAsyncError()}}visitTick(t){let e=t[t.length-1],{node:n,visitors:i}=e;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void t.pop();if(i.length>0&&e.visitorIndex<i.length){let[t,r]=i[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===i.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=t;try{return r(n.toProxy(),this.helpers)}catch(t){throw this.handleError(t,n)}}if(0!==e.iterator){let i,r=e.iterator;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[h])return i[h]=!0,void t.push(y(i));e.iterator=0,delete n.indexes[r]}let r=e.events;for(;e.eventIndex<r.length;){let t=r[e.eventIndex];if(e.eventIndex+=1,0===t)return void(n.nodes&&n.nodes.length&&(n[h]=!0,e.iterator=n.getIterator()));if(this.listeners[t])return void(e.visitors=this.listeners[t])}t.pop()}walkSync(t){t[h]=!0;let e=[{eventIndex:0,events:m(t),iterator:0,node:t}];for(;e.length>0;){let t=e[e.length-1],n=t.node;if(0!==t.iterator){let i,r=t.iterator,o=!1;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[h]){i[h]=!0,e.push({eventIndex:0,events:m(i),iterator:0,node:i}),o=!0;break}if(o)continue;t.iterator=0,delete n.indexes[r]}if(t.eventIndex<t.events.length){let i=t.events[t.eventIndex];if(t.eventIndex+=1,0===i)n.nodes&&n.nodes.length&&(t.iterator=n.getIterator());else{let t=this.listeners[i];t&&this.visitSync(t,n.toProxy())&&e.pop()}continue}e.pop()}}warnings(){return this.sync().warnings()}}b.registerPostcss=t=>{x=t},t.exports=b,b.default=b,l.registerLazyResult(b),r.registerLazyResult(b)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/list.js"(t){"use strict";let e={comma:t=>e.split(t,[","],!0),space:t=>e.split(t,[" ","\n","\t"]),split(t,e,n){let i=[],r="",o=!1,s=0,a=!1,l="",c=!1;for(let n of t)c?c=!1:"\\"===n?c=!0:a?n===l&&(a=!1):'"'===n||"'"===n?(a=!0,l=n):"("===n?s+=1:")"===n?s>0&&(s-=1):0===s&&e.includes(n)&&(o=!0),o?(""!==r&&i.push(r.trim()),r="",o=!1):r+=n;return(n||""!==r)&&i.push(r.trim()),i}};t.exports=e,e.default=e},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/map-generator.js"(t,e,n){"use strict";let{dirname:i,relative:r,resolve:o,sep:s}=n("?9d3a"),{SourceMapConsumer:a,SourceMapGenerator:l}=n("?0348"),{pathToFileURL:c}=n("?2bf4"),h=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"),u=Boolean(a&&l),d=Boolean(i&&o&&r&&s);t.exports=class{constructor(t,e,n,i){this.stringify=t,this.mapOpts=n.map||{},this.root=e,this.opts=n,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let e="\n";this.css.includes("\r\n")&&(e="\r\n"),this.css+=e+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let e,n=this.toUrl(this.path(t.file)),r=t.root||i(t.file);!1===this.mapOpts.sourcesContent?(e=new a(t.text),e.sourcesContent&&(e.sourcesContent=null)):e=t.consumer(),this.map.applySourceMap(e,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let t;for(let e=this.root.nodes.length-1;e>=0;e--)t=this.root.nodes[e],"comment"===t.type&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(e)}else if(this.css){let t;for(;-1!==(t=this.css.lastIndexOf("/*#"));){let e=this.css.indexOf("*/",t+3);if(-1===e)break;for(;t>0&&"\n"===this.css[t-1];)t--;this.css=this.css.slice(0,t)+this.css.slice(e+2)}}}generate(){if(this.clearAnnotation(),d&&u&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,e=>{t+=e}),[t]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=l.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0});let t,e,n=1,i=1,r="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(s,a,l)=>{if(this.css+=s,a&&"end"!==l&&(o.generated.line=n,o.generated.column=i-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1,this.map.addMapping(o)):(o.source=r,o.original.line=1,o.original.column=0,this.map.addMapping(o))),e=s.match(/\n/g),e?(n+=e.length,t=s.lastIndexOf("\n"),i=s.length-t):i+=s.length,a&&"start"!==l){let t=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===t.last&&!t.raws.semicolon||(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=n,o.generated.column=i-2,this.map.addMapping(o)):(o.source=r,o.original.line=1,o.original.column=0,o.generated.line=n,o.generated.column=i-1,this.map.addMapping(o)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(t=>t.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some(t=>t.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(t=>t.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;let e=this.memoizedPaths.get(t);if(e)return e;let n=this.opts.to?i(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=i(o(n,this.mapOpts.annotation)));let s=r(n,t);return this.memoizedPaths.set(t,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let e=t.source.input.map;this.previousMaps.includes(e)||this.previousMaps.push(e)}});else{let t=new h(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(e=>{if(e.source){let n=e.source.input.from;if(n&&!t[n]){t[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,e.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let e=this.memoizedFileURLs.get(t);if(e)return e;if(c){let e=c(t).toString();return this.memoizedFileURLs.set(t,e),e}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let e=this.memoizedURLs.get(t);if(e)return e;"\\"===s&&(t=t.replace(/\\/g,"/"));let n=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,n),n}}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/no-work-result.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/map-generator.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parse.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/result.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js");n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warn-once.js");class a{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,e=r;try{t=e(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,e,n){e=e.toString(),this.stringified=!1,this._processor=t,this._css=e,this._opts=n,this._map=void 0;let r=s;this.result=new o(this._processor,void 0,this._opts),this.result.css=e;let a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});let l=new i(r,void 0,this._opts,e);if(l.isMap()){let[t,e]=l.generate();t&&(this.result.css=t),e&&(this.result.map=e)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,e){return this.async().then(t,e)}toString(){return this._css}warnings(){return[]}}t.exports=a,a.default=a},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/css-syntax-error.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringifier.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js"),{isClean:s,my:a}=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/symbols.js");function l(t,e){if(e&&void 0!==e.offset)return e.offset;let n=1,i=1,r=0;for(let o=0;o<t.length;o++){if(i===e.line&&n===e.column){r=o;break}"\n"===t[o]?(n=1,i+=1):n+=1}return r}class c{get proxyOf(){return this}constructor(t={}){this.raws={},this[s]=!1,this[a]=!0;for(let e of Object.keys(t))if("__proto__"!==e)if("nodes"===e){this.nodes=[];for(let n of t[e])this.append("function"==typeof n.clone&&n.parent?n.clone():n)}else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let e in t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let e=function(t,e){let n=new t.constructor,i=[[t,n,e]];for(;i.length>0;){let[t,e,n]=i.pop();for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;if("proxyCache"===r)continue;let o=t[r],s=typeof o;if("parent"===r&&"object"===s)n&&(e[r]=n);else if("source"===r)e[r]=o;else if(Array.isArray(o)){let t=[];e[r]=t;for(let n of o){let r=new n.constructor;t.push(r),i.push([n,r,e])}}else{if("object"===s&&null!==o){let t=new o.constructor;i.push([o,t,void 0]),o=t}e[r]=o}}}return n}(this);for(let n in t)e[n]=t[n];return e}cloneAfter(t={}){let e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t={}){let e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t,e={}){if(this.source){let{end:n,start:i}=this.rangeBy(e);return this.source.input.error(t,{column:i.column,line:i.line},{column:n.column,line:n.line},e)}return new i(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,n)=>(t[e]===n||(t[e]=n,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markClean(){this[s]=!0}markDirty(){if(this[s]){this[s]=!1;let t=this;for(;t=t.parent;)t[s]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let e="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:l(e,this.source.start)};if(t.index)n=this.positionInside(t.index);else if(t.word){let i=e.slice(l(e,this.source.start),l(e,this.source.end)).indexOf(t.word);-1!==i&&(n=this.positionInside(i))}return n}positionInside(t){let e=this.source.start.column,n=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,r=l(i,this.source.start),o=r+t;for(let t=r;t<o;t++)"\n"===i[t]?(e=1,n+=1):e+=1;return{column:e,line:n,offset:o}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let e="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:l(e,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:"number"==typeof this.source.end.offset?this.source.end.offset:l(e,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(t.word){let r=e.slice(l(e,this.source.start),l(e,this.source.end)).indexOf(t.word);-1!==r&&(n=this.positionInside(r),i=this.positionInside(r+t.word.length))}else t.start?n={column:t.start.column,line:t.start.line,offset:l(e,t.start)}:"number"==typeof t.index&&(n=this.positionInside(t.index)),t.end?i={column:t.end.column,line:t.end.line,offset:l(e,t.end)}:"number"==typeof t.endIndex?i=this.positionInside(t.endIndex):"number"==typeof t.index&&(i=this.positionInside(t.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={column:n.column+1,line:n.line,offset:n.offset+1}),{end:i,start:n}}raw(t,e){return(new r).raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let e=this,n=!1;for(let i of t)i===this?n=!0:n?(this.parent.insertAfter(e,i),e=i):this.parent.insertBefore(e,i);n||this.remove()}return this}root(){let t=this;for(;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){let n=null==e;e=e||new Map;let i=[],r=[[this,i,0]];for(let t=0;t<r.length;t++){let[n,i,o]=r[t],s={};i[o]=s;for(let t in n){if(!Object.prototype.hasOwnProperty.call(n,t))continue;if("parent"===t||"proxyCache"===t)continue;let i=n[t];if(Array.isArray(i)){let n=[];s[t]=n;for(let t=0;t<i.length;t++){let o=i[t];"object"==typeof o&&o.toJSON?o.toJSON===c.prototype.toJSON?r.push([o,n,t]):n[t]=o.toJSON(null,e):n[t]=o}}else if("object"==typeof i&&i.toJSON)i.toJSON===c.prototype.toJSON?r.push([i,s,t]):s[t]=i.toJSON(null,e);else if("source"===t){if(null==i)continue;let n=e.get(i.input);null==n&&(n=e.size,e.set(i.input,n)),s[t]={end:i.end,inputId:n,start:i.start}}else s[t]=i}}let o=i[0];return n&&(o.inputs=[...e.keys()].map(t=>t.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=o){t.stringify&&(t=t.stringify);let e="";return t(this,t=>{e+=t}),e}warn(t,e,n={}){let i={node:this};for(let t in n)i[t]=n[t];return t.warn(e,i)}}t.exports=c,c.default=c},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parse.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parser.js");function s(t,e){let n=new r(t,e),i=new o(n);try{i.parse()}catch(t){throw t}return i.root}t.exports=s,s.default=s,i.registerParse(s)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parser.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/at-rule.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"),a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/rule.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/tokenize.js");const c={empty:!0,space:!0};function h(t,e,n){let i="";for(let r=e;r<n;r++)i+=t[r][1];return i}t.exports=class{constructor(t){this.input=t,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let e,n,r,o=new i;o.name=t[1].slice(1),""===o.name&&this.unnamedAtrule(o,t),this.init(o,t[2]);let s=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=(t=this.tokenizer.nextToken())[0],"("===e||"["===e?c.push("("===e?")":"]"):"{"===e&&c.length>0?c.push("}"):e===c[c.length-1]&&c.pop(),0===c.length){if(";"===e){o.source.end=this.getPosition(t[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===e){a=!0;break}if("}"===e){if(l.length>0){for(r=l.length-1,n=l[r];n&&"space"===n[0];)n=l[--r];n&&(o.source.end=this.getPosition(n[3]||n[2]),o.source.end.offset++)}this.end(t);break}l.push(t)}else l.push(t);if(this.tokenizer.endOfFile()){s=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(o.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(o,"params",l),s&&(o.source.end=this.getPosition((t=l[l.length-1])[3]||t[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),a&&(o.nodes=[],this.current=o)}checkMissedSemicolon(t){let e=this.colon(t);if(!1===e)return;let n,i=0;for(let r=e-1;r>=0&&(n=t[r],"space"===n[0]||(i+=1,2!==i));r--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(t){let e,n,i,r=0;for(let[o,s]of t.entries()){if(n=s,i=n[0],"("===i&&(r+=1),")"===i&&(r-=1),0===r&&":"===i){if(e){if("word"===e[0]&&"progid"===e[1])continue;return o}this.doubleColon(n)}e=n}return!1}comment(t){let e=new r;this.init(e,t[2]),e.source.end=this.getPosition(t[3]||t[2]),e.source.end.offset++;let n=t[1].slice(2,-2);if(n.trim()){let t=n.match(/^(\s*)([^]*\S)(\s*)$/);e.text=t[2],e.raws.left=t[1],e.raws.right=t[3]}else e.text="",e.raws.left=n,e.raws.right=""}createTokenizer(){this.tokenizer=l(this.input)}decl(t,e){let n=new o;this.init(n,t[0][2]);let i=t[t.length-1];";"===i[0]&&(this.semicolon=!0,t.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(t){for(let e=t.length-1;e>=0;e--){let n=t[e],i=n[3]||n[2];if(i)return i}}(t)),n.source.end.offset++;let r=0;for(;"word"!==t[r][0];)r===t.length-1&&this.unknownWord([t[r]]),r++;n.raws.before+=h(t,0,r),n.source.start=this.getPosition(t[r][2]);let s=r;for(;r<t.length;){let e=t[r][0];if(":"===e||"space"===e||"comment"===e)break;r++}n.prop=h(t,s,r);let a,l=r;for(;r<t.length&&(a=t[r],r++,":"!==a[0]);)"word"===a[0]&&/\w/.test(a[1])&&this.unknownWord([a]);n.raws.between=h(t,l,r),"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let c=r;for(;r<t.length;){let e=t[r][0];if("space"!==e&&"comment"!==e)break;r++}let u=t.slice(c,r);t=t.slice(r),this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(a=t[e],"!important"===a[1].toLowerCase()){n.important=!0;let i=this.stringFrom(t,e);i=this.spacesFromEnd(t)+i," !important"!==i&&(n.raws.important=i);break}if("important"===a[1].toLowerCase()){let i=t.slice(0),r="";for(let t=e;t>0;t--){let e=i[t][0];if(r.trim().startsWith("!")&&"space"!==e)break;r=i.pop()[1]+r}r.trim().startsWith("!")&&(n.important=!0,n.raws.important=r,t=i)}if("space"!==a[0]&&"comment"!==a[0])break}t.some(t=>"space"!==t[0]&&"comment"!==t[0])&&(n.raws.between+=u.map(t=>t[1]).join(""),u=[]),this.raw(n,"value",u.concat(t),e),n.value.includes(":")&&!e&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let e=new a;this.init(e,t[2]),e.selector="",e.raws.between="",this.current=e}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="",e.source.end=this.getPosition(t[2]),e.source.end.offset+=e.raws.ownSemicolon.length)}}getPosition(t){let e=this.input.fromOffset(t);return{column:e.col,line:e.line,offset:t}}init(t,e){this.current.push(t),t.source={input:this.input,start:this.getPosition(e)},t.raws.before=this.spaces,this.spaces="","comment"!==t.type&&(this.semicolon=!1)}other(t){let e=!1,n=null,i=!1,r=null,o=[],s=t[1].startsWith("--"),a=[],l=t;for(;l;){if(n=l[0],a.push(l),"("===n||"["===n)r||(r=l),o.push("("===n?")":"]");else if(s&&i&&"{"===n)r||(r=l),o.push("}");else if(0===o.length){if(";"===n){if(i)return void this.decl(a,s);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),e=!0;break}":"===n&&(i=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(r=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(e=!0),o.length>0&&this.unclosedBracket(r),e&&i){if(!s)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t)}this.endFile()}precheckMissedSemicolon(){}raw(t,e,n,i){let r,o,s,a,l=n.length,h="",u=!0;for(let t=0;t<l;t+=1)r=n[t],o=r[0],"space"!==o||t!==l-1||i?"comment"===o?(a=n[t-1]?n[t-1][0]:"empty",s=n[t+1]?n[t+1][0]:"empty",c[a]||c[s]||","===h.slice(-1)?u=!1:h+=r[1]):h+=r[1]:u=!1;if(!u){let i=n.reduce((t,e)=>t+e[1],"");t.raws[e]={raw:i,value:h}}t[e]=h}rule(t){t.pop();let e=new a;this.init(e,t[0][2]),e.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(e,"selector",t),this.current=e}spacesAndCommentsFromEnd(t){let e,n="";for(;t.length&&(e=t[t.length-1][0],"space"===e||"comment"===e);)n=t.pop()[1]+n;return n}spacesAndCommentsFromStart(t){let e,n="";for(;t.length&&(e=t[0][0],"space"===e||"comment"===e);)n+=t.shift()[1];return n}spacesFromEnd(t){let e,n="";for(;t.length&&(e=t[t.length-1][0],"space"===e);)n=t.pop()[1]+n;return n}stringFrom(t,e){let n="";for(let i=e;i<t.length;i++)n+=t[i][1];return t.splice(e,t.length-e),n}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word "+t[0][1],{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,e){throw this.input.error("At-rule without name",{offset:e[2]},{offset:e[2]+e[1].length})}}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/postcss.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/at-rule.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/comment.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/css-syntax-error.js"),a=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/declaration.js"),l=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/document.js"),c=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/fromJSON.js"),h=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/input.js"),u=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/lazy-result.js"),d=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/list.js"),f=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/node.js"),p=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/parse.js"),g=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/processor.js"),m=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/result.js"),y=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"),v=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/rule.js"),x=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js"),b=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warning.js");function w(...t){return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new g(t)}w.plugin=function(t,e){let n,i=!1;function r(...n){console&&console.warn&&!i&&(i=!0,console.warn(t+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let r=e(...n);return r.postcssPlugin=t,r.postcssVersion=(new g).version,r}return Object.defineProperty(r,"postcss",{get:()=>(n||(n=r()),n)}),r.process=function(t,e,n){return w([r(n)]).process(t,e)},r},w.stringify=x,w.parse=p,w.fromJSON=c,w.list=d,w.comment=t=>new r(t),w.atRule=t=>new i(t),w.decl=t=>new a(t),w.rule=t=>new v(t),w.root=t=>new y(t),w.document=t=>new l(t),w.CssSyntaxError=s,w.Declaration=a,w.Container=o,w.Processor=g,w.Document=l,w.Comment=r,w.Warning=b,w.AtRule=i,w.Result=m,w.Input=h,w.Rule=v,w.Root=y,w.Node=f,u.registerPostcss(w),t.exports=w,w.default=w},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/previous-map.js"(t,e,n){"use strict";let{existsSync:i,readFileSync:r}=n("?b251"),{dirname:o,isAbsolute:s,join:a,relative:l,sep:c}=n("?9d3a"),{SourceMapConsumer:h,SourceMapGenerator:u}=n("?0348");class d{constructor(t,e){if(!1===e.map)return;e.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let n=this.loadMap(e.from,e.map?e.map.prev:void 0);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=o(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new h(this.json||this.text)),this.consumerCache}decodeInline(t){let e=t.match(/^data:application\/json;charset=utf-?8,/)||t.match(/^data:application\/json,/);if(e)return decodeURIComponent(t.substr(e[0].length));let n=t.match(/^data:application\/json;charset=utf-?8;base64,/)||t.match(/^data:application\/json;base64,/);if(n)return i=t.substr(n[0].length),Buffer?Buffer.from(i,"base64").toString():window.atob(i);var i;let r=t.slice(22);throw r=r.slice(0,r.indexOf(",")),new Error("Unsupported source map encoding "+r)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){let e=t.match(/\/\*\s*# sourceMappingURL=/g);if(!e)return;let n=t.lastIndexOf(e.pop()),i=t.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(t.substring(n,i)))}loadFile(t,e,n){if(!n&&!this.unsafeMap){if(!/\.map$/i.test(t))return;if(e){let n=l(o(e),t);if(".."===n||n.startsWith(".."+c)||s(n))return}}if(this.root=o(t),i(t))return this.mapFile=t,r(t,"utf-8").toString().trim()}loadMap(t,e){if(!1===e)return!1;if(e){if("string"==typeof e)return e;if("function"!=typeof e){if(e instanceof h)return u.fromSourceMap(e).toString();if(e instanceof u)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}{let n=e(t);if(n){let e=this.loadFile(n,t,!0);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let e=this.annotation;t&&(e=a(o(t),e));let n=this.loadFile(e,t,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}}startWith(t,e){return!!t&&t.substr(0,e.length)===e}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}t.exports=d,d.default=d},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/processor.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/document.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/lazy-result.js"),o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/no-work-result.js"),s=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js");class a{constructor(t=[]){this.version="8.5.19",this.plugins=this.normalize(t)}normalize(t){let e=[];for(let n of t)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))e=e.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)e.push(n);else if("function"==typeof n)e.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return e}process(t,e={}){return this.plugins.length||e.parser||e.stringifier||e.syntax?new r(this,t,e):new o(this,t,e)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}}t.exports=a,a.default=a,s.registerProcessor(a),i.registerProcessor(a)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/result.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warning.js");class r{get content(){return this.css}constructor(t,e,n){this.processor=t,this.messages=[],this.root=e,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(t,e={}){e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);let n=new i(t,e);return this.messages.push(n),n}warnings(){return this.messages.filter(t=>"warning"===t.type)}}t.exports=r,r.default=r},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/root.js"(t,e,n){"use strict";let i,r,o=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js");class s extends o{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,e,n){let i=new Set;for(let e of Array.isArray(t)?t:[t])e&&"object"==typeof e&&!e.parent&&e.raws&&void 0!==e.raws.before&&i.add(e.raws);let r=super.normalize(t);if(e)if("prepend"===n)this.nodes.length>1?e.raws.before=this.nodes[1].raws.before:delete e.raws.before;else if(this.first!==e)for(let t of r)i.has(t.raws)||(t.raws.before=e.raws.before);return r}removeChild(t,e){let n=this.index(t);return!e&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(t)}toResult(t={}){return new i(new r,this,t).stringify()}}s.registerLazyResult=t=>{i=t},s.registerProcessor=t=>{r=t},t.exports=s,s.default=s,o.registerRoot(s)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/rule.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/container.js"),r=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/list.js");class o extends i{get selectors(){return r.comma(this.selector)}set selectors(t){let e=this.selector?this.selector.match(/,\s*/):null,n=e?e[0]:","+this.raw("between","beforeOpen");this.selector=t.join(n)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}}t.exports=o,o.default=o,i.registerRule(o)},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringifier.js"(t){"use strict";const e=/(<)(\/?style\b)/gi,n=/(<)(!--)/g;function i(t){return"string"!=typeof t?t:t.includes("<")?t.replace(e,"\\3c $2").replace(n,"\\3c $2"):t}const r={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function o(t,e){let n="@"+e.name,i=e.params?t.rawValue(e,"params"):"";return void 0!==e.raws.afterName?n+=e.raws.afterName:i&&(n+=" "),n+i}function s(t,e,n){let i=n.nodes,r=i.length-1;for(;r>0&&"comment"===i[r].type;)r-=1;let o=t.raw(n,"semicolon"),s="document"===n.type;for(let t=i.length-1;t>=0;t--)e.push({document:s,node:i[t],semicolon:r!==t||o})}function a(t,e,n,r){let o=t.raw(n,"between","beforeOpen");t.builder(i(r+o)+"{",n,"start");let a=n.nodes&&n.nodes.length,l=()=>{let e=a?t.raw(n,"after"):t.raw(n,"after","emptyBody");e&&t.builder(i(e)),t.builder("}",n,"end"),"rule"===n.type&&n.raws.ownSemicolon&&t.builder(i(n.raws.ownSemicolon),n,"end")};a?(e.push(l),s(t,e,n)):l()}class l{constructor(t){this.builder=t}atrule(t,e){let n=o(this,t);if(t.nodes)this.block(t,n);else{this.builder(i(n+((t.raws.between||"")+(e?";":""))),t)}}beforeAfter(t,e){let n;n=this.raw(t,null,"decl"===t.type?"beforeDecl":"comment"===t.type?"beforeComment":"before"===e?"beforeRule":"beforeClose");let i=t.parent,r=0;for(;i&&"root"!==i.type;)r+=1,i=i.parent;if(n.includes("\n")){let e=this.raw(t,null,"indent");if(e.length)for(let t=0;t<r;t++)n+=e}return n}block(t,e){let n,r=this.raw(t,"between","beforeOpen");this.builder(i(e+r)+"{",t,"start"),t.nodes&&t.nodes.length?(this.body(t),n=this.raw(t,"after")):n=this.raw(t,"after","emptyBody"),n&&this.builder(i(n)),this.builder("}",t,"end")}body(t){let e=l.prototype,n=["atrule","block","body","rule","stringify"].every(t=>this[t]===e[t]),r=[];for(s(this,r,t);r.length>0;){let t=r.pop();if("function"==typeof t){t();continue}let e=t.node,s=this.raw(e,"before");s&&this.builder(t.document?s:i(s)),n&&"rule"===e.type?a(this,r,e,this.rawValue(e,"selector")):n&&"atrule"===e.type&&e.nodes?a(this,r,e,o(this,e)):this.stringify(e,t.semicolon)}}comment(t){let e=this.raw(t,"left","commentLeft"),n=this.raw(t,"right","commentRight");this.builder(i("/*"+e+t.text+n+"*/"),t)}decl(t,e){let n=t.raws,r=this.raw(t,"between","colon"),o=t.prop+r+this.rawValue(t,"value");t.important&&(o+=n.important||" !important"),e&&(o+=";"),this.builder(i(o),t)}document(t){this.body(t)}raw(t,e,n){let i;if(n||(n=e),e&&(i=t.raws[e],void 0!==i))return i;let o=t.parent;if("before"===n){if(!o||"root"===o.type&&o.first===t)return"";if(o&&"document"===o.type)return""}if(!o)return r[n];let s=t.root(),a=s.rawCache||(s.rawCache={});if(void 0!==a[n])return a[n];if("before"===n||"after"===n)return this.beforeAfter(t,n);{let r="raw"+((l=n)[0].toUpperCase()+l.slice(1));this[r]?i=this[r](s,t):s.walk(t=>{if(i=t.raws[e],void 0!==i)return!1})}var l;return void 0===i&&(i=r[n]),a[n]=i,i}rawBeforeClose(t){let e;return t.walk(t=>{if(t.nodes&&t.nodes.length>0&&void 0!==t.raws.after)return e=t.raws.after,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawBeforeComment(t,e){let n;return t.walkComments(t=>{if(void 0!==t.raws.before)return n=t.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(e,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(t,e){let n;return t.walkDecls(t=>{if(void 0!==t.raws.before)return n=t.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(e,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(t){let e;return t.walk(t=>{if("decl"!==t.type&&(e=t.raws.between,void 0!==e))return!1}),e}rawBeforeRule(t){let e;return t.walk(n=>{if(n.nodes&&(n.parent!==t||t.first!==n)&&void 0!==n.raws.before)return e=n.raws.before,e.includes("\n")&&(e=e.replace(/[^\n]+$/,"")),!1}),e&&(e=e.replace(/\S/g,"")),e}rawColon(t){let e;return t.walkDecls(t=>{if(void 0!==t.raws.between)return e=t.raws.between.replace(/[^\s:]/g,""),!1}),e}rawEmptyBody(t){let e;return t.walk(t=>{if(t.nodes&&0===t.nodes.length&&(e=t.raws.after,void 0!==e))return!1}),e}rawIndent(t){if(t.raws.indent)return t.raws.indent;let e;return t.walk(n=>{let i=n.parent;if(i&&i!==t&&i.parent&&i.parent===t&&void 0!==n.raws.before){let t=n.raws.before.split("\n");return e=t[t.length-1],e=e.replace(/\S/g,""),!1}}),e}rawSemicolon(t){let e;return t.walk(t=>{if(t.nodes&&t.nodes.length&&"decl"===t.last.type&&(e=t.raws.semicolon,void 0!==e))return!1}),e}rawValue(t,e){let n=t[e],i=t.raws[e];return i&&i.value===n?i.raw:n}root(t){if(this.body(t),t.raws.after){let e=t.raws.after;this.builder(t.parent&&"document"===t.parent.type?e:i(e))}}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(i(t.raws.ownSemicolon),t,"end")}stringify(t,e){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,e)}}t.exports=l,l.default=l},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringify.js"(t,e,n){"use strict";let i=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/stringifier.js");function r(t,e){new i(e).stringify(t)}t.exports=r,r.default=r},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/symbols.js"(t){"use strict";t.exports.isClean=Symbol("isClean"),t.exports.my=Symbol("my")},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/tokenize.js"(t){"use strict";const e="'".charCodeAt(0),n='"'.charCodeAt(0),i="\\".charCodeAt(0),r="/".charCodeAt(0),o="\n".charCodeAt(0),s=" ".charCodeAt(0),a="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),h="[".charCodeAt(0),u="]".charCodeAt(0),d="(".charCodeAt(0),f=")".charCodeAt(0),p="{".charCodeAt(0),g="}".charCodeAt(0),m=";".charCodeAt(0),y="*".charCodeAt(0),v=":".charCodeAt(0),x="@".charCodeAt(0),b=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,M=/.[\r\n"'(/\\]/,k=/[\da-f]/i;t.exports=function(t,C={}){let O,j,E,_,S,$,A,z,P,L,I=t.css.valueOf(),T=C.ignoreErrors,R=I.length,B=0,W=[],H=[],N=-1;function F(e){throw t.error("Unclosed "+e,B)}return{back:function(t){H.push(t)},endOfFile:function(){return 0===H.length&&B>=R},nextToken:function(t){if(H.length)return H.pop();if(B>=R)return;let C=!!t&&t.ignoreUnclosed;switch(O=I.charCodeAt(B),O){case o:case s:case l:case c:case a:_=B;do{_+=1,O=I.charCodeAt(_)}while(O===s||O===o||O===l||O===c||O===a);$=["space",I.slice(B,_)],B=_-1;break;case h:case u:case p:case g:case v:case m:case f:{let t=String.fromCharCode(O);$=[t,t,B];break}case d:if(L=W.length?W.pop()[1]:"",P=I.charCodeAt(B+1),"url"===L&&P!==e&&P!==n&&P!==s&&P!==o&&P!==l&&P!==a&&P!==c){_=B;do{if(A=!1,_=I.indexOf(")",_+1),-1===_){if(T||C){_=B;break}F("bracket")}for(z=_;I.charCodeAt(z-1)===i;)z-=1,A=!A}while(A);$=["brackets",I.slice(B,_+1),B,_],B=_}else B<=N?$=["(","(",B]:(_=I.indexOf(")",B+1),j=I.slice(B,_+1),-1===_||M.test(j)?(N=-1===_?R:_,$=["(","(",B]):($=["brackets",j,B,_],B=_));break;case e:case n:S=O===e?"'":'"',_=B;do{if(A=!1,_=I.indexOf(S,_+1),-1===_){if(T||C){_=B+1;break}F("string")}for(z=_;I.charCodeAt(z-1)===i;)z-=1,A=!A}while(A);$=["string",I.slice(B,_+1),B,_],B=_;break;case x:b.lastIndex=B+1,b.test(I),_=0===b.lastIndex?I.length-1:b.lastIndex-2,$=["at-word",I.slice(B,_+1),B,_],B=_;break;case i:for(_=B,E=!0;I.charCodeAt(_+1)===i;)_+=1,E=!E;if(O=I.charCodeAt(_+1),E&&O!==r&&O!==s&&O!==o&&O!==l&&O!==c&&O!==a&&(_+=1,k.test(I.charAt(_)))){for(;k.test(I.charAt(_+1));)_+=1;I.charCodeAt(_+1)===s&&(_+=1)}$=["word",I.slice(B,_+1),B,_],B=_;break;default:O===r&&I.charCodeAt(B+1)===y?(_=I.indexOf("*/",B+2)+1,0===_&&(T||C?_=I.length:F("comment")),$=["comment",I.slice(B,_+1),B,_],B=_):(w.lastIndex=B+1,w.test(I),_=0===w.lastIndex?I.length-1:w.lastIndex-2,$=["word",I.slice(B,_+1),B,_],W.push($),B=_)}return B++,$},position:function(){return B}}}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warn-once.js"(t){"use strict";let e={};t.exports=function(t){e[t]||(e[t]=!0,"undefined"!=typeof console&&console.warn&&console.warn(t))}},"./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/warning.js"(t){"use strict";class e{constructor(t,e={}){if(this.type="warning",this.text=t,e.node&&e.node.source){let t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in e)this[t]=e[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}t.exports=e,e.default=e},"./src/components/fragments/async/extensions/Infographic.tsx"(t,e,n){"use strict";n.r(e),n.d(e,{default:()=>CH});var i={};n.r(i),n.d(i,{diamond:()=>Ol,dot:()=>jl,hex:()=>El,line:()=>_l,mosaic:()=>Sl,square:()=>$l});var r=n("react"),o=n.n(r);function s(t){return t.trim().toLowerCase().replace(/[_\s]+/g,"-").replace(/-+/g,"-")}function a(t,e){if(t===e)return 0;if(!t.length)return e.length;if(!e.length)return t.length;const n=Array.from({length:e.length+1},(t,e)=>e),i=new Array(e.length+1);for(let r=1;r<=t.length;r+=1){i[0]=r;const o=t.charCodeAt(r-1);for(let t=1;t<=e.length;t+=1){const r=o===e.charCodeAt(t-1)?0:1;i[t]=Math.min(n[t]+1,i[t-1]+1,n[t-1]+r)}for(let t=0;t<i.length;t+=1)n[t]=i[t]}return n[e.length]}function l(t,e){const n=Math.min(t.length,e.length);let i=0;for(;i<n&&t.charCodeAt(i)===e.charCodeAt(i);)i+=1;return i}function c(t,e,n,i,r,o){return r<e||r===e&&o>n||r===e&&o===n&&(!t||i<t)}const h=new Map;function u(t){return h.has(t)?t:function(t,e){const n=s(t);if(!n)return;let i,r=Number.POSITIVE_INFINITY,o=-1;for(const t of e){const e=s(t);if(e===n)return t;const h=a(n,e),u=l(n,e);c(i,r,o,t,h,u)&&(i=t,r=h,o=u)}return i}(t,h.keys())}const d=new Set,f={};Object.entries({"compare-quadrant-quarter-simple-card":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-simple-card"}]}},"compare-quadrant-quarter-circular":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"quarter-circular"}]}},"compare-quadrant-simple-illus":{design:{title:"default",structure:{type:"quadrant"},items:[{type:"simple-illus"}]}}}).forEach(([t,e])=>{f[t]=e;const n=t.replace("compare-quadrant","quadrant");f[n]=new Proxy(e,{get:(e,i,r)=>(d.has(n)||(console.warn(`[Deprecated] "${n}" 已被废弃,将在下个版本移除,请使用 "${t}"`),d.add(n)),Reflect.get(e,i,r))})});const p=f,g={edgeType:"curved",edgeColorMode:"gradient",edgeWidth:2,colorMode:"branch",levelGap:80,nodeGap:18},m={edgeType:"curved",edgeWidth:2,edgeColorMode:"gradient",colorMode:"level",levelGap:80,nodeGap:18},y={type:"lined-text",usePaletteColor:!0,showUnderline:!0,underlineThickness:2},v={type:"capsule-item"},x={type:"circular-progress"},b={type:"rounded-rect-node",positionH:"center"},w={type:"compact-card"},M=(t,e)=>Object.assign(Object.assign({type:"hierarchy-mindmap"},void 0!==e?{edgeAlign:e}:{}),t),k=(t,e,n,i)=>[t,{design:{structure:M(e,i),item:n}}],C=Object.fromEntries([k("hierarchy-mindmap-branch-gradient-lined-palette",g,y,"bottom"),k("hierarchy-mindmap-level-gradient-lined-palette",m,y,"bottom"),k("hierarchy-mindmap-branch-gradient-capsule-item",g,v),k("hierarchy-mindmap-level-gradient-capsule-item",m,v),k("hierarchy-mindmap-branch-gradient-circle-progress",g,x,.4),k("hierarchy-mindmap-level-gradient-circle-progress",m,x,.4),k("hierarchy-mindmap-branch-gradient-rounded-rect",g,b),k("hierarchy-mindmap-level-gradient-rounded-rect",m,b),k("hierarchy-mindmap-branch-gradient-compact-card",g,w),k("hierarchy-mindmap-level-gradient-compact-card",m,w)]),O={"tech-style":{edgeType:"straight",edgeStyle:"solid",edgeColorMode:"gradient",edgeMarker:"arrow",markerSize:12,edgeCornerRadius:5},"dashed-line":{edgeStyle:"dashed",edgeCornerRadius:10,edgeDashPattern:"10,5",edgeColorMode:"gradient",edgeMarker:"dot",markerSize:6,edgeOffset:6},"distributed-origin":{edgeOrigin:"distributed",edgeOriginPadding:30,edgeMarker:"arrow",edgeCornerRadius:10,markerSize:12,edgeColorMode:"gradient"},"curved-line":{edgeType:"curved",edgeColorMode:"gradient",edgeMarker:"none"},"dashed-arrow":{edgeType:"straight",edgeStyle:"dashed",edgeDashPattern:"8,4",edgeMarker:"arrow",markerSize:10,edgeCornerRadius:0}},j=["capsule-item","rounded-rect-node","compact-card","badge-card","ribbon-card"],E={},_="hierarchy-tree",S=[{key:""},{key:"bt",orientation:"bottom-top"},{key:"lr",orientation:"left-right"},{key:"rl",orientation:"right-left"}],$=(t,e,n)=>t?`${_}-${t}-${e}-${n}`:`${_}-${e}-${n}`;for(const t of j)for(const[e,n]of Object.entries(O))for(const{key:i,orientation:r}of S){E[$(i,e,t)]={design:{structure:Object.assign(Object.assign({type:"hierarchy-tree"},r?{orientation:r}:{}),n),item:{type:t}}}}const A={"simple-circle-node":{type:"simple-circle-node"},"badge-card":{type:"badge-card"},capsule:{type:"capsule-item"},"compact-card":{type:"compact-card"}},z={type:"relation-dagre-flow",edgeColorMode:"gradient",showArrow:!0,arrowType:"triangle",colorMode:"node"},P={tb:Object.assign(Object.assign({},z),{rankdir:"TB",edgeRouting:"orth"}),lr:Object.assign(Object.assign({},z),{rankdir:"LR",edgeRouting:"orth"}),"tb-animated":Object.assign(Object.assign({},z),{rankdir:"TB",edgeCornerRadius:12,edgeRouting:"orth",edgeAnimation:"ant-line",edgeDashPattern:"8,4",edgeAnimationSpeed:1}),"lr-animated":Object.assign(Object.assign({},z),{rankdir:"LR",edgeCornerRadius:12,edgeRouting:"orth",edgeAnimation:"ant-line",edgeDashPattern:"8,4",edgeAnimationSpeed:1})},L={},I=["lr-capsule","tb-capsule"];Object.entries(P).forEach(([t,e])=>{Object.entries(A).forEach(([n,i])=>{const r=`${t}-${n}`;if(I.includes(r))return;L[`relation-dagre-flow-${r}`]={design:{title:"default",structure:e,item:i}}})});const T={"badge-card":{type:"badge-card",width:160,height:60},"compact-card":{type:"compact-card",width:180,height:60},"capsule-item":{type:"capsule-item",width:150,height:60},"rounded-rect-node":{type:"rounded-rect-node",width:140,height:60}},R={type:"sequence-interaction",showLaneHeader:!0,arrowType:"triangle"},B={default:{},dashed:{edgeStyle:"dashed"},animated:{edgeStyle:"dashed",animated:!0}},W={default:Object.assign(Object.assign({},R),{showLifeline:!0,nodeGap:40}),compact:Object.assign(Object.assign({},R),{showLifeline:!0,nodeGap:20}),wide:Object.assign(Object.assign({},R),{showLifeline:!0,nodeGap:60})},H={},N=[];Object.entries(W).forEach(([t,e])=>{Object.entries(B).forEach(([n,i])=>{Object.entries(T).forEach(([r,o])=>{const s=[t];"default"!==n&&s.push(n),s.push(r);const a=s.join("-");if(N.includes(a))return;H[`sequence-interaction-${a}`]={design:{title:"default",structure:Object.assign(Object.assign({},e),i),item:o}}})})});const F=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"compare-hierarchy-left-right-circle-node-pill-badge":{design:{structure:{type:"compare-hierarchy-left-right",decoration:"split-line",surround:!1,groupGap:-20},title:"default",items:[{type:"circle-node",width:240},"pill-badge"]},themeConfig:{}},"compare-hierarchy-left-right-circle-node-plain-text":{design:{title:"default",structure:{type:"compare-hierarchy-left-right",decoration:"dot-line",flipLeaf:!0,groupGap:-10},items:[{type:"circle-node",width:180},{type:"plain-text"}]}},"list-pyramid-rounded-rect-node":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"rounded-rect-node"}]}},"list-pyramid-badge-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"badge-card"}]}},"list-pyramid-compact-card":{design:{title:"default",structure:{type:"list-pyramid"},items:[{type:"compact-card"}]}},"list-column-done-list":{design:{title:"default",structure:{type:"list-column"},items:[{type:"done-list"}]}},"list-column-vertical-icon-arrow":{design:{title:"default",structure:{type:"list-column",gap:-5,zigzag:!0},items:[{type:"vertical-icon-arrow"}]}},"list-grid-badge-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"badge-card"}]}},"list-grid-candy-card-lite":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"candy-card-lite"}]}},"chart-column-simple":{design:{title:"default",structure:{type:"chart-column"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-grid-circular-progress":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"circular-progress"}]}},"list-grid-compact-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"compact-card"}]}},"list-grid-done-list":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"done-list"}]}},"list-grid-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-grid",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"list-grid-progress-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"progress-card"}]}},"list-grid-ribbon-card":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"ribbon-card"}]}},"list-grid-simple":{design:{title:"default",structure:{type:"list-grid"},items:[{type:"simple"}]}},"list-row-circular-progress":{design:{title:"default",structure:{type:"list-row"},items:[{type:"circular-progress"}]}},"list-row-horizontal-icon-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-arrow"}]}},"relation-circle-circular-progress":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"circular-progress"}]}},"relation-circle-icon-badge":{design:{title:"default",structure:{type:"relation-circle"},items:[{type:"icon-badge"}]}},"relation-network-icon-badge":{design:{title:"default",structure:{type:"relation-network"},items:[{type:"icon-badge"}]}},"relation-network-simple-circle-node":{design:{title:"default",structure:{type:"relation-network"},items:[{type:"simple-circle-node"}]}},"sequence-steps-badge-card":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"badge-card"}]}},"sequence-steps-simple":{design:{title:"default",structure:{type:"sequence-steps",gap:10},items:[{type:"simple"}]}},"sequence-timeline-done-list":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"done-list"}]}},"sequence-timeline-plain-text":{design:{title:"default",structure:{type:"sequence-timeline",showStepLabels:!1},items:[{type:"plain-text"}]}},"sequence-timeline-rounded-rect-node":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"rounded-rect-node"}]}},"sequence-ascending-steps":{design:{title:"default",structure:{type:"sequence-ascending-steps",vGap:-46,hGap:-20},items:[{type:"l-corner-card"}]}},"sequence-timeline-simple":{design:{title:"default",structure:{type:"sequence-timeline",gap:20,showStepLabels:!1},items:[{type:"simple",positionV:"middle"}]}},"sequence-cylinders-3d-simple":{design:{title:"default",structure:{type:"sequence-cylinders-3d",gapY:20},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"list-column-simple-vertical-arrow":{design:{title:"default",structure:{type:"list-column",gap:0,zigzag:!0},items:[{type:"simple-vertical-arrow"}]}},"list-row-simple-horizontal-arrow":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"simple-horizontal-arrow"}]}},"compare-swot":{design:{title:"default",structure:{type:"compare-hierarchy-row",itemGap:32,itemPadding:40,showColumnBackground:!0,columnBackgroundAlpha:.08},items:[{type:"letter-card",showBottomShade:!1},{type:"plain-text",formatter:t=>`● ${t}`,usePaletteColor:!0}]}},"compare-hierarchy-row-letter-card-compact-card":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"compact-card"}]}},"compare-hierarchy-row-letter-card-rounded-rect-node":{design:{title:"default",structure:{type:"compare-hierarchy-row"},items:[{type:"letter-card"},{type:"rounded-rect-node"}]}},"sequence-snake-steps-compact-card":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"compact-card"}]}},"sequence-snake-steps-pill-badge":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"pill-badge"}]}},"sequence-snake-steps-simple":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple"}]}},"sequence-color-snake-steps-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"horizontal-icon-line"}]}},"sequence-pyramid-simple":{design:{title:"default",structure:{type:"sequence-pyramid"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]},themeConfig:{colorPrimary:"#1677ff"}},"sequence-funnel-simple":{design:{title:"default",structure:{type:"sequence-funnel"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]},themeConfig:{palette:"#1677ff"}},"list-row-horizontal-icon-line":{design:{title:"default",structure:{type:"list-row",gap:0,zigzag:!0},items:[{type:"horizontal-icon-line"}]}},"list-sector-simple":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"simple"}]}},"list-sector-plain-text":{design:{title:"default",structure:{type:"list-sector"},items:[{type:"plain-text"}]}},"list-sector-half-plain-text":{design:{title:"default",structure:{type:"list-sector",startAngle:-180,endAngle:0},items:[{type:"plain-text"}]}},"list-waterfall-badge-card":{design:{title:"default",structure:{type:"list-waterfall"},items:[{type:"badge-card"}]}},"list-waterfall-compact-card":{design:{title:"default",structure:{type:"list-waterfall"},items:[{type:"compact-card"}]}},"sequence-roadmap-vertical-plain-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"plain-text"}]}},"sequence-roadmap-vertical-simple":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"simple",showIcon:!1}]}},"sequence-roadmap-vertical-badge-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"badge-card"}]}},"sequence-roadmap-vertical-pill-badge":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"pill-badge"}]}},"sequence-roadmap-vertical-quarter-circular":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"quarter-circular"}]}},"sequence-roadmap-vertical-quarter-simple-card":{design:{title:"default",structure:{type:"sequence-roadmap-vertical",flipped:!0},items:[{type:"quarter-simple-card"}]}},"sequence-horizontal-zigzag-simple-illus":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-illus"}]}},"sequence-horizontal-zigzag-horizontal-icon-line":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"horizontal-icon-line"}]}},"sequence-horizontal-zigzag-plain-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"plain-text"}]}},"sequence-horizontal-zigzag-simple-horizontal-arrow":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple-horizontal-arrow"}]}},"sequence-horizontal-zigzag-simple":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"simple"}]}},"list-row-simple-illus":{design:{title:"default",structure:{type:"list-row"},items:[{type:"simple-illus"}]}},"sequence-color-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-color-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-snake-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"simple-illus"}]}},"sequence-steps-simple-illus":{design:{title:"default",structure:{type:"sequence-steps"},items:[{type:"simple-illus"}]}},"sequence-timeline-simple-illus":{design:{title:"default",structure:{type:"sequence-timeline"},items:[{type:"simple-illus",usePaletteColor:!0}]}},"sequence-zigzag-steps-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-steps"},items:[{type:"underline-text"}]}},"sequence-horizontal-zigzag-underline-text":{design:{title:"default",structure:{type:"sequence-horizontal-zigzag"},items:[{type:"underline-text"}]}},"sequence-roadmap-vertical-underline-text":{design:{title:"default",structure:{type:"sequence-roadmap-vertical"},items:[{type:"underline-text"}]}},"sequence-snake-steps-underline-text":{design:{title:"default",structure:{type:"sequence-snake-steps"},items:[{type:"underline-text"}]}},"sequence-circle-arrows-indexed-card":{design:{title:"default",structure:{type:"sequence-circle-arrows"},items:[{type:"indexed-card"}]}},"sequence-zigzag-pucks-3d-simple":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-zigzag-pucks-3d-underline-text":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"underline-text"}]}},"sequence-zigzag-pucks-3d-indexed-card":{design:{title:"default",structure:{type:"sequence-zigzag-pucks-3d"},items:[{type:"indexed-card"}]}},"sequence-ascending-stairs-3d-simple":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-ascending-stairs-3d-underline-text":{design:{title:"default",structure:{type:"sequence-ascending-stairs-3d"},items:[{type:"underline-text"}]}},"sequence-circular-underline-text":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"underline-text"}]}},"sequence-circular-simple":{design:{title:"default",structure:{type:"sequence-circular"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-filter-mesh-underline-text":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"underline-text"}]}},"sequence-filter-mesh-simple":{design:{title:"default",structure:{type:"sequence-filter-mesh"},items:[{type:"simple",showIcon:!1,usePaletteColor:!0}]}},"sequence-mountain-underline-text":{design:{title:"default",structure:{type:"sequence-mountain"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-simple-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-fold":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-fold"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-arrow":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"pros-cons-arrow"},items:[{type:"compact-card"}]}},"compare-binary-horizontal-simple-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"simple",iconType:"circle",iconSize:40}]}},"compare-binary-horizontal-underline-text-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"underline-text"}]}},"compare-binary-horizontal-badge-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"badge-card"}]}},"compare-binary-horizontal-compact-card-vs":{design:{title:"default",structure:{type:"compare-binary-horizontal",dividerType:"vs"},items:[{type:"compact-card"}]}},"chart-bar-plain-text":{design:{title:"default",structure:{type:"chart-bar"},items:[{type:"plain-text",positionH:"flipped"}]}},"chart-line-plain-text":{design:{title:"default",structure:{type:"chart-line"},items:[{type:"plain-text",lineNumber:2}]}}},{"chart-pie-plain-text":{design:{title:"default",structure:{type:"chart-pie"},items:[{type:"plain-text"}]}},"chart-pie-compact-card":{design:{title:"default",structure:{type:"chart-pie",avoidLabelOverlap:!0},items:[{type:"compact-card"}]}},"chart-pie-pill-badge":{design:{title:"default",structure:{type:"chart-pie",avoidLabelOverlap:!0},items:[{type:"pill-badge"}]}},"chart-pie-donut-plain-text":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90},items:[{type:"plain-text"}]}},"chart-pie-donut-compact-card":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90,avoidLabelOverlap:!0},items:[{type:"compact-card"}]}},"chart-pie-donut-pill-badge":{design:{title:"default",structure:{type:"chart-pie",innerRadius:90,avoidLabelOverlap:!0},items:[{type:"pill-badge"}]}}}),p),E),C),{"sequence-stairs-front-pill-badge":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"pill-badge"}]}},"sequence-stairs-front-compact-card":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"compact-card"}]}},"sequence-stairs-front-simple":{design:{title:"default",structure:{type:"sequence-stairs-front"},items:[{type:"simple",usePaletteColor:!0}]}}}),{"chart-wordcloud-rotate":{design:{structure:{type:"chart-wordcloud"},item:"simple"}},"chart-wordcloud":{design:{structure:{type:"chart-wordcloud",enableRotate:!1},item:"simple"}}}),{"list-zigzag-up-compact-card":{design:{title:"default",structure:{type:"list-zigzag-up"},items:[{type:"compact-card"}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-up-simple":{design:{title:"default",structure:{type:"list-zigzag-up"},items:[{type:"simple",usePaletteColor:!0}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-down-compact-card":{design:{title:"default",structure:{type:"list-zigzag-down"},items:[{type:"compact-card"}]},themeConfig:{colorPrimary:"#17CA2C"}},"list-zigzag-down-simple":{design:{title:"default",structure:{type:"list-zigzag-down"},items:[{type:"simple",usePaletteColor:!0}]},themeConfig:{colorPrimary:"#17CA2C"}}}),L),H),{"hierarchy-structure":{design:{title:"default",structure:{type:"hierarchy-structure"},item:"simple"}},"hierarchy-structure-mirror":{design:{title:"default",structure:{type:"hierarchy-structure",layerLabelPosition:"right"},item:"simple"}}});Object.entries(F).forEach(([t,e])=>{!function(t,e){h.set(t,e)}(t,e)});const D=Symbol.for("@antv/infographic/Fragment");function V(t,e={}){return{type:t,props:e}}const U=V,Y=Symbol.for("@antv/infographic/Defs");function q(t){return{type:Y,props:t}}function G(t){var e,n,i,r;const{x:o=0,y:s=0,width:a=0,height:l=0}=t;null!==(e=t.cx)&&void 0!==e||(t.cx=o+a/2),null!==(n=t.cy)&&void 0!==n||(t.cy=s+l/2),null!==(i=t.rx)&&void 0!==i||(t.rx=a/2),null!==(r=t.ry)&&void 0!==r||(t.ry=l/2);return{type:"ellipse",props:t}}function X(t){const{x:e=0,y:n=0}=t;(e||n)&&(t.transform||(t.transform=`translate(${e}, ${n})`));return{type:"g",props:t}}function K(t){const{x:e,y:n}=t,i=Object.assign({},t);void 0===e&&void 0===n||(i.transform=`translate(${null!=e?e:0}, ${null!=n?n:0})`);return{type:"path",props:i}}var Z=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function Q(t){var{points:e=[]}=t,n=Z(t,["points"]);const{x:i,y:r}=n,o=e.map(({x:t,y:e})=>`${t},${e}`).join(" "),s=Object.assign(Object.assign({},n),{points:o});void 0===i&&void 0===r||(s.transform=`translate(${null!=i?i:0}, ${null!=r?r:0})`+(s.transform||""));return{type:"polygon",props:s}}function J(t){return{type:"rect",props:t}}function tt(t){return Object.keys(t[0]).reduce((e,n)=>{const i=n;return t.every(e=>e[i]===t[0][i])&&(e[i]=t[0][i]),e},{})}const et=(t,e)=>{if("number"==typeof t)return 3===e?{mode:"rgb",r:(t>>8&15|t>>4&240)/255,g:(t>>4&15|240&t)/255,b:(15&t|t<<4&240)/255}:4===e?{mode:"rgb",r:(t>>12&15|t>>8&240)/255,g:(t>>8&15|t>>4&240)/255,b:(t>>4&15|240&t)/255,alpha:(15&t|t<<4&240)/255}:6===e?{mode:"rgb",r:(t>>16&255)/255,g:(t>>8&255)/255,b:(255&t)/255}:8===e?{mode:"rgb",r:(t>>24&255)/255,g:(t>>16&255)/255,b:(t>>8&255)/255,alpha:(255&t)/255}:void 0},nt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},it=t=>et(nt[t.toLowerCase()],6),rt=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,ot=t=>{let e;return(e=t.match(rt))?et(parseInt(e[1],16),e[1].length):void 0},st="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",at=`${st}%`,lt=`(?:${st}%|${st})`,ct=`(?:${st}(deg|grad|rad|turn)|${st})`,ht="\\s*,\\s*",ut=(new RegExp("^"+`(?:${st}%|${st}|none)`+"$"),new RegExp(`^rgba?\\(\\s*${st}${ht}${st}${ht}${st}\\s*(?:,\\s*${lt}\\s*)?\\)$`)),dt=new RegExp(`^rgba?\\(\\s*${at}${ht}${at}${ht}${at}\\s*(?:,\\s*${lt}\\s*)?\\)$`),ft=t=>{let e,n={mode:"rgb"};if(e=t.match(ut))void 0!==e[1]&&(n.r=e[1]/255),void 0!==e[2]&&(n.g=e[2]/255),void 0!==e[3]&&(n.b=e[3]/255);else{if(!(e=t.match(dt)))return;void 0!==e[1]&&(n.r=e[1]/100),void 0!==e[2]&&(n.g=e[2]/100),void 0!==e[3]&&(n.b=e[3]/100)}return void 0!==e[4]?n.alpha=Math.max(0,Math.min(1,e[4]/100)):void 0!==e[5]&&(n.alpha=Math.max(0,Math.min(1,+e[5]))),n},pt=(t,e)=>void 0===t?void 0:"object"!=typeof t?Dt(t):void 0!==t.mode?t:e?{...t,mode:e}:void 0,gt=(t="rgb")=>e=>void 0!==(e=pt(e,t))?e.mode===t?e:mt[e.mode][t]?mt[e.mode][t](e):"rgb"===t?mt[e.mode].rgb(e):mt.rgb[t](mt[e.mode].rgb(e)):void 0,mt={},yt={},vt=[],xt={},bt=t=>t,wt=t=>(mt[t.mode]={...mt[t.mode],...t.toMode},Object.keys(t.fromMode||{}).forEach(e=>{mt[e]||(mt[e]={}),mt[e][t.mode]=t.fromMode[e]}),t.ranges||(t.ranges={}),t.difference||(t.difference={}),t.channels.forEach(e=>{if(void 0===t.ranges[e]&&(t.ranges[e]=[0,1]),!t.interpolate[e])throw new Error(`Missing interpolator for: ${e}`);"function"==typeof t.interpolate[e]&&(t.interpolate[e]={use:t.interpolate[e]}),t.interpolate[e].fixup||(t.interpolate[e].fixup=bt)}),yt[t.mode]=t,(t.parse||[]).forEach(e=>{Mt(e,t.mode)}),gt(t.mode)),Mt=(t,e)=>{if("string"==typeof t){if(!e)throw new Error("'mode' required when 'parser' is a string");xt[t]=e}else"function"==typeof t&&vt.indexOf(t)<0&&vt.push(t)},kt=/[^\x00-\x7F]|[a-zA-Z_]/,Ct=/[^\x00-\x7F]|[-\w]/,Ot="function",jt="ident",Et="number",_t="percentage",St=")",$t="none",At="hue",zt="alpha";let Pt=0;function Lt(t){let e=t[Pt],n=t[Pt+1];return"-"===e||"+"===e?/\d/.test(n)||"."===n&&/\d/.test(t[Pt+2]):/\d/.test("."===e?n:e)}function It(t){if(Pt>=t.length)return!1;let e=t[Pt];if(kt.test(e))return!0;if("-"===e){if(t.length-Pt<2)return!1;let e=t[Pt+1];return!("-"!==e&&!kt.test(e))}return!1}const Tt={deg:1,rad:180/Math.PI,grad:.9,turn:360};function Rt(t){let e="";if("-"!==t[Pt]&&"+"!==t[Pt]||(e+=t[Pt++]),e+=Bt(t),"."===t[Pt]&&/\d/.test(t[Pt+1])&&(e+=t[Pt++]+Bt(t)),"e"!==t[Pt]&&"E"!==t[Pt]||("-"!==t[Pt+1]&&"+"!==t[Pt+1]||!/\d/.test(t[Pt+2])?/\d/.test(t[Pt+1])&&(e+=t[Pt++]+Bt(t)):e+=t[Pt++]+t[Pt++]+Bt(t)),It(t)){let n=Wt(t);return"deg"===n||"rad"===n||"turn"===n||"grad"===n?{type:At,value:e*Tt[n]}:void 0}return"%"===t[Pt]?(Pt++,{type:_t,value:+e}):{type:Et,value:+e}}function Bt(t){let e="";for(;/\d/.test(t[Pt]);)e+=t[Pt++];return e}function Wt(t){let e="";for(;Pt<t.length&&Ct.test(t[Pt]);)e+=t[Pt++];return e}function Ht(t){let e=Wt(t);return"("===t[Pt]?(Pt++,{type:Ot,value:e}):"none"===e?{type:$t,value:void 0}:{type:jt,value:e}}function Nt(t){t._i=0;let e=t[t._i++];if(!e||e.type!==Ot||"color"!==e.value)return;if(e=t[t._i++],e.type!==jt)return;const n=xt[e.value];if(!n)return;const i={mode:n},r=Ft(t,!1);if(!r)return;const o=(t=>yt[t])(n).channels;for(let t,e,n=0;n<o.length;n++)t=r[n],e=o[n],t.type!==$t&&(i[e]=t.type===Et?t.value:t.value/100,"alpha"===e&&(i[e]=Math.max(0,Math.min(1,i[e]))));return i}function Ft(t,e){const n=[];let i;for(;t._i<t.length;)if(i=t[t._i++],i.type===$t||i.type===Et||i.type===zt||i.type===_t||e&&i.type===At)n.push(i);else{if(i.type!==St)return;if(t._i<t.length)return}if(!(n.length<3||n.length>4)){if(4===n.length){if(n[3].type!==zt)return;n[3]=n[3].value}return 3===n.length&&n.push({type:$t,value:void 0}),n.every(t=>t.type!==zt)?n:void 0}}const Dt=t=>{if("string"!=typeof t)return;const e=function(t=""){let e,n=t.trim(),i=[];for(Pt=0;Pt<n.length;)if(e=n[Pt++],"\n"!==e&&"\t"!==e&&" "!==e){if(","===e)return;if(")"!==e){if("+"===e){if(Pt--,Lt(n)){i.push(Rt(n));continue}return}if("-"===e){if(Pt--,Lt(n)){i.push(Rt(n));continue}if(It(n)){i.push({type:jt,value:Wt(n)});continue}return}if("."===e){if(Pt--,Lt(n)){i.push(Rt(n));continue}return}if("/"===e){for(;Pt<n.length&&("\n"===n[Pt]||"\t"===n[Pt]||" "===n[Pt]);)Pt++;let t;if(Lt(n)&&(t=Rt(n),t.type!==At)){i.push({type:zt,value:t});continue}if(It(n)&&"none"===Wt(n)){i.push({type:zt,value:{type:$t,value:void 0}});continue}return}if(/\d/.test(e))Pt--,i.push(Rt(n));else{if(!kt.test(e))return;Pt--,i.push(Ht(n))}}else i.push({type:St})}else for(;Pt<n.length&&("\n"===n[Pt]||"\t"===n[Pt]||" "===n[Pt]);)Pt++;return i}(t),n=e?function(t,e){t._i=0;let n=t[t._i++];if(!n||n.type!==Ot)return;let i=Ft(t,e);return i?(i.unshift(n.value),i):void 0}(e,!0):void 0;let i,r=0,o=vt.length;for(;r<o;)if(void 0!==(i=vt[r++](t,n)))return i;return e?Nt(e):void 0};const Vt=function(t,e){if(!e||"rgb"!==e[0]&&"rgba"!==e[0])return;const n={mode:"rgb"},[,i,r,o,s]=e;return i.type!==At&&r.type!==At&&o.type!==At?(i.type!==$t&&(n.r=i.type===Et?i.value/255:i.value/100),r.type!==$t&&(n.g=r.type===Et?r.value/255:r.value/100),o.type!==$t&&(n.b=o.type===Et?o.value/255:o.value/100),s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n):void 0},Ut=t=>"transparent"===t?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,Yt=(t,e,n)=>t+n*(e-t),qt=(Gt=Yt,t=>{let e=(t=>{let e=[];for(let n=0;n<t.length-1;n++){let i=t[n],r=t[n+1];e.push(void 0===i&&void 0===r?void 0:void 0!==i&&void 0!==r?[i,r]:void 0!==i?[i,i]:[r,r])}return e})(t);return t=>{let n=t*e.length,i=t>=1?e.length-1:Math.max(Math.floor(n),0),r=e[i];return void 0===r?void 0:Gt(r[0],r[1],n-i)}});var Gt;const Xt=t=>{let e=!1,n=t.map(t=>void 0!==t?(e=!0,t):1);return e?n:t},Kt={mode:"rgb",channels:["r","g","b","alpha"],parse:[Vt,ot,ft,it,Ut,"srgb"],serialize:"srgb",interpolate:{r:qt,g:qt,b:qt,alpha:{use:qt,fixup:Xt}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Zt=(t=0)=>Math.pow(Math.abs(t),563/256)*Math.sign(t),Qt=t=>{let e=Zt(t.r),n=Zt(t.g),i=Zt(t.b),r={mode:"xyz65",x:.5766690429101305*e+.1855582379065463*n+.1882286462349947*i,y:.297344975250536*e+.6273635662554661*n+.0752914584939979*i,z:.0270313613864123*e+.0706888525358272*n+.9913375368376386*i};return void 0!==t.alpha&&(r.alpha=t.alpha),r},Jt=t=>Math.pow(Math.abs(t),256/563)*Math.sign(t),te=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r={mode:"a98",r:Jt(2.0415879038107465*t-.5650069742788597*e-.3447313507783297*n),g:Jt(-.9692436362808798*t+1.8759675015077206*e+.0415550574071756*n),b:Jt(.0134442806320312*t-.1183623922310184*e+1.0151749943912058*n)};return void 0!==i&&(r.alpha=i),r},ee=(t=0)=>{const e=Math.abs(t);return e<=.04045?t/12.92:(Math.sign(t)||1)*Math.pow((e+.055)/1.055,2.4)},ne=({r:t,g:e,b:n,alpha:i})=>{let r={mode:"lrgb",r:ee(t),g:ee(e),b:ee(n)};return void 0!==i&&(r.alpha=i),r},ie=t=>{let{r:e,g:n,b:i,alpha:r}=ne(t),o={mode:"xyz65",x:.4123907992659593*e+.357584339383878*n+.1804807884018343*i,y:.2126390058715102*e+.715168678767756*n+.0721923153607337*i,z:.0193308187155918*e+.119194779794626*n+.9505321522496607*i};return void 0!==r&&(o.alpha=r),o},re=(t=0)=>{const e=Math.abs(t);return e>.0031308?(Math.sign(t)||1)*(1.055*Math.pow(e,1/2.4)-.055):12.92*t},oe=({r:t,g:e,b:n,alpha:i},r="rgb")=>{let o={mode:r,r:re(t),g:re(e),b:re(n)};return void 0!==i&&(o.alpha=i),o},se=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=oe({r:3.2409699419045226*t-1.537383177570094*e-.4986107602930034*n,g:-.9692436362808796*t+1.8759675015077204*e+.0415550574071756*n,b:.0556300796969936*t-.2039769588889765*e+1.0569715142428784*n});return void 0!==i&&(r.alpha=i),r},ae={...Kt,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:t=>te(ie(t)),xyz65:te},toMode:{rgb:t=>se(Qt(t)),xyz65:Qt}},le=ae,ce=t=>(t%=360)<0?t+360:t,he=(t,e)=>t.map((n,i,r)=>{if(void 0===n)return n;let o=ce(n);return 0===i||void 0===t[i-1]?o:e(o-ce(r[i-1]))}).reduce((t,e)=>t.length&&void 0!==e&&void 0!==t[t.length-1]?(t.push(e+t[t.length-1]),t):(t.push(e),t),[]),ue=t=>he(t,t=>Math.abs(t)<=180?t:t-360*Math.sign(t)),de=[-.14861,1.78277,-.29227,-.90649,1.97294,0],fe=Math.PI/180,pe=180/Math.PI;let ge=de[3]*de[4],me=de[1]*de[4],ye=de[1]*de[2]-de[0]*de[3];const ve=({r:t,g:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=(ye*n+t*ge-e*me)/(ye+ge-me),o=n-r,s=(de[4]*(e-r)-de[2]*o)/de[3],a={mode:"cubehelix",l:r,s:0===r||1===r?void 0:Math.sqrt(o*o+s*s)/(de[4]*r*(1-r))};return a.s&&(a.h=Math.atan2(s,o)*pe-120),void 0!==i&&(a.alpha=i),a},xe=({h:t,s:e,l:n,alpha:i})=>{let r={mode:"rgb"};t=(void 0===t?0:t+120)*fe,void 0===n&&(n=0);let o=void 0===e?0:e*n*(1-n),s=Math.cos(t),a=Math.sin(t);return r.r=n+o*(de[0]*s+de[1]*a),r.g=n+o*(de[2]*s+de[3]*a),r.b=n+o*(de[4]*s+de[5]*a),void 0!==i&&(r.alpha=i),r};const be=(t,e)=>{if(void 0===t.h||void 0===e.h||!t.s||!e.s)return 0;let n=ce(t.h),i=ce(e.h),r=Math.sin((i-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.s*e.s)*r},we=(t,e)=>{if(void 0===t.h||void 0===e.h||!t.c||!e.c)return 0;let n=ce(t.h),i=ce(e.h),r=Math.sin((i-n+360)/2*Math.PI/180);return 2*Math.sqrt(t.c*e.c)*r};const Me=t=>{let e=t.reduce((t,e)=>{if(void 0!==e){let n=e*Math.PI/180;t.sin+=Math.sin(n),t.cos+=Math.cos(n)}return t},{sin:0,cos:0}),n=180*Math.atan2(e.sin,e.cos)/Math.PI;return n<0?360+n:n};const ke={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:ve},toMode:{rgb:xe},interpolate:{h:{use:qt,fixup:ue},s:qt,l:qt,alpha:{use:qt,fixup:Xt}},difference:{h:be},average:{h:Me}},Ce=({l:t,a:e,b:n,alpha:i},r="lch")=>{void 0===e&&(e=0),void 0===n&&(n=0);let o=Math.sqrt(e*e+n*n),s={mode:r,l:t,c:o};return o&&(s.h=ce(180*Math.atan2(n,e)/Math.PI)),void 0!==i&&(s.alpha=i),s},Oe=({l:t,c:e,h:n,alpha:i},r="lab")=>{void 0===n&&(n=0);let o={mode:r,l:t,a:e?e*Math.cos(n/180*Math.PI):0,b:e?e*Math.sin(n/180*Math.PI):0};return void 0!==i&&(o.alpha=i),o},je=Math.pow(29,3)/Math.pow(3,3),Ee=Math.pow(6,3)/Math.pow(29,3),_e=.3457/.3585,Se=1,$e=.2958/.3585,Ae=.3127/.329,ze=1,Pe=.3583/.329;Math.pow(29,3),Math.pow(3,3),Math.pow(6,3),Math.pow(29,3);let Le=t=>Math.pow(t,3)>Ee?Math.pow(t,3):(116*t-16)/je;const Ie=({l:t,a:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=(t+16)/116,o=r-n/200,s={mode:"xyz65",x:Le(e/500+r)*Ae,y:Le(r)*ze,z:Le(o)*Pe};return void 0!==i&&(s.alpha=i),s},Te=t=>se(Ie(t)),Re=t=>t>Ee?Math.cbrt(t):(je*t+16)/116,Be=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=Re(t/Ae),o=Re(e/ze),s={mode:"lab65",l:116*o-16,a:500*(r-o),b:200*(o-Re(n/Pe))};return void 0!==i&&(s.alpha=i),s},We=t=>{let e=Be(ie(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},He=26/180*Math.PI,Ne=Math.cos(He),Fe=Math.sin(He),De=100/Math.log(1.39),Ve=({l:t,c:e,h:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r={mode:"lab65",l:(Math.exp(1*t/De)-1)/.0039},o=(Math.exp(.0435*e*1*1)-1)/.075,s=o*Math.cos(n/180*Math.PI-He),a=o*Math.sin(n/180*Math.PI-He);return r.a=s*Ne-a/.83*Fe,r.b=s*Fe+a/.83*Ne,void 0!==i&&(r.alpha=i),r},Ue=({l:t,a:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=e*Ne+n*Fe,o=.83*(n*Ne-e*Fe),s=Math.sqrt(r*r+o*o),a={mode:"dlch",l:De/1*Math.log(1+.0039*t),c:Math.log(1+.075*s)/.0435};return a.c&&(a.h=ce((Math.atan2(o,r)+He)/Math.PI*180)),void 0!==i&&(a.alpha=i),a},Ye=t=>Ve(Ce(t,"dlch")),qe=t=>Oe(Ue(t),"dlab"),Ge={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:Ye,rgb:t=>Te(Ye(t))},fromMode:{lab65:qe,rgb:t=>qe(We(t))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:qt,a:qt,b:qt,alpha:{use:qt,fixup:Xt}}},Xe=Ge,Ke={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Ve,dlab:t=>Oe(t,"dlab"),rgb:t=>Te(Ve(t))},fromMode:{lab65:Ue,dlab:t=>Ce(t,"dlch"),rgb:t=>Ue(We(t))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:qt,c:qt,h:{use:qt,fixup:ue},alpha:{use:qt,fixup:Xt}},difference:{h:we},average:{h:Me}},Ze=Ke;const Qe={mode:"hsi",toMode:{rgb:function({h:t,s:e,i:n,alpha:i}){t=ce(void 0!==t?t:0),void 0===e&&(e=0),void 0===n&&(n=0);let r,o=Math.abs(t/60%2-1);switch(Math.floor(t/60)){case 0:r={r:n*(1+e*(3/(2-o)-1)),g:n*(1+e*(3*(1-o)/(2-o)-1)),b:n*(1-e)};break;case 1:r={r:n*(1+e*(3*(1-o)/(2-o)-1)),g:n*(1+e*(3/(2-o)-1)),b:n*(1-e)};break;case 2:r={r:n*(1-e),g:n*(1+e*(3/(2-o)-1)),b:n*(1+e*(3*(1-o)/(2-o)-1))};break;case 3:r={r:n*(1-e),g:n*(1+e*(3*(1-o)/(2-o)-1)),b:n*(1+e*(3/(2-o)-1))};break;case 4:r={r:n*(1+e*(3*(1-o)/(2-o)-1)),g:n*(1-e),b:n*(1+e*(3/(2-o)-1))};break;case 5:r={r:n*(1+e*(3/(2-o)-1)),g:n*(1-e),b:n*(1+e*(3*(1-o)/(2-o)-1))};break;default:r={r:n*(1-e),g:n*(1-e),b:n*(1-e)}}return r.mode="rgb",void 0!==i&&(r.alpha=i),r}},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:function({r:t,g:e,b:n,alpha:i}){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsi",s:t+e+n===0?0:1-3*o/(t+e+n),i:(t+e+n)/3};return r-o!==0&&(s.h=60*(r===t?(e-n)/(r-o)+6*(e<n):r===e?(n-t)/(r-o)+2:(t-e)/(r-o)+4)),void 0!==i&&(s.alpha=i),s}},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:qt,fixup:ue},s:qt,i:qt,alpha:{use:qt,fixup:Xt}},difference:{h:be},average:{h:Me}},Je=Qe;const tn=(t,e)=>{switch(e){case"deg":return+t;case"rad":return t/Math.PI*180;case"grad":return t/10*9;case"turn":return 360*t}},en=new RegExp(`^hsla?\\(\\s*${ct}${ht}${at}${ht}${at}\\s*(?:,\\s*${lt}\\s*)?\\)$`),nn=t=>{let e=t.match(en);if(!e)return;let n={mode:"hsl"};return void 0!==e[3]?n.h=+e[3]:void 0!==e[1]&&void 0!==e[2]&&(n.h=tn(e[1],e[2])),void 0!==e[4]&&(n.s=Math.min(Math.max(0,e[4]/100),1)),void 0!==e[5]&&(n.l=Math.min(Math.max(0,e[5]/100),1)),void 0!==e[6]?n.alpha=Math.max(0,Math.min(1,e[6]/100)):void 0!==e[7]&&(n.alpha=Math.max(0,Math.min(1,+e[7]))),n};const rn=function(t,e){if(!e||"hsl"!==e[0]&&"hsla"!==e[0])return;const n={mode:"hsl"},[,i,r,o,s]=e;if(i.type!==$t){if(i.type===_t)return;n.h=i.value}if(r.type!==$t){if(r.type===At)return;n.s=r.value/100}if(o.type!==$t){if(o.type===At)return;n.l=o.value/100}return s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n},on={mode:"hsl",toMode:{rgb:function({h:t,s:e,l:n,alpha:i}){t=ce(void 0!==t?t:0),void 0===e&&(e=0),void 0===n&&(n=0);let r,o=n+e*(n<.5?n:1-n),s=o-2*(o-n)*Math.abs(t/60%2-1);switch(Math.floor(t/60)){case 0:r={r:o,g:s,b:2*n-o};break;case 1:r={r:s,g:o,b:2*n-o};break;case 2:r={r:2*n-o,g:o,b:s};break;case 3:r={r:2*n-o,g:s,b:o};break;case 4:r={r:s,g:2*n-o,b:o};break;case 5:r={r:o,g:2*n-o,b:s};break;default:r={r:2*n-o,g:2*n-o,b:2*n-o}}return r.mode="rgb",void 0!==i&&(r.alpha=i),r}},fromMode:{rgb:function({r:t,g:e,b:n,alpha:i}){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsl",s:r===o?0:(r-o)/(1-Math.abs(r+o-1)),l:.5*(r+o)};return r-o!==0&&(s.h=60*(r===t?(e-n)/(r-o)+6*(e<n):r===e?(n-t)/(r-o)+2:(t-e)/(r-o)+4)),void 0!==i&&(s.alpha=i),s}},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[rn,nn],serialize:t=>`hsl(${void 0!==t.h?t.h:"none"} ${void 0!==t.s?100*t.s+"%":"none"} ${void 0!==t.l?100*t.l+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:qt,fixup:ue},s:qt,l:qt,alpha:{use:qt,fixup:Xt}},difference:{h:be},average:{h:Me}},sn=on;function an({h:t,s:e,v:n,alpha:i}){t=ce(void 0!==t?t:0),void 0===e&&(e=0),void 0===n&&(n=0);let r,o=Math.abs(t/60%2-1);switch(Math.floor(t/60)){case 0:r={r:n,g:n*(1-e*o),b:n*(1-e)};break;case 1:r={r:n*(1-e*o),g:n,b:n*(1-e)};break;case 2:r={r:n*(1-e),g:n,b:n*(1-e*o)};break;case 3:r={r:n*(1-e),g:n*(1-e*o),b:n};break;case 4:r={r:n*(1-e*o),g:n*(1-e),b:n};break;case 5:r={r:n,g:n*(1-e),b:n*(1-e*o)};break;default:r={r:n*(1-e),g:n*(1-e),b:n*(1-e)}}return r.mode="rgb",void 0!==i&&(r.alpha=i),r}function ln({r:t,g:e,b:n,alpha:i}){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.max(t,e,n),o=Math.min(t,e,n),s={mode:"hsv",s:0===r?0:1-o/r,v:r};return r-o!==0&&(s.h=60*(r===t?(e-n)/(r-o)+6*(e<n):r===e?(n-t)/(r-o)+2:(t-e)/(r-o)+4)),void 0!==i&&(s.alpha=i),s}const cn={mode:"hsv",toMode:{rgb:an},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:ln},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:qt,fixup:ue},s:qt,v:qt,alpha:{use:qt,fixup:Xt}},difference:{h:be},average:{h:Me}};const hn=function(t,e){if(!e||"hwb"!==e[0])return;const n={mode:"hwb"},[,i,r,o,s]=e;if(i.type!==$t){if(i.type===_t)return;n.h=i.value}if(r.type!==$t){if(r.type===At)return;n.w=r.value/100}if(o.type!==$t){if(o.type===At)return;n.b=o.value/100}return s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n},un={mode:"hwb",toMode:{rgb:function({h:t,w:e,b:n,alpha:i}){if(void 0===e&&(e=0),void 0===n&&(n=0),e+n>1){let t=e+n;e/=t,n/=t}return an({h:t,s:1===n?1:1-e/(1-n),v:1-n,alpha:i})}},fromMode:{rgb:function(t){let e=ln(t);if(void 0===e)return;let n=void 0!==e.v?e.v:0,i={mode:"hwb",w:(1-(void 0!==e.s?e.s:0))*n,b:1-n};return void 0!==e.h&&(i.h=e.h),void 0!==e.alpha&&(i.alpha=e.alpha),i}},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[hn],serialize:t=>`hwb(${void 0!==t.h?t.h:"none"} ${void 0!==t.w?100*t.w+"%":"none"} ${void 0!==t.b?100*t.b+"%":"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:qt,fixup:ue},w:qt,b:qt,alpha:{use:qt,fixup:Xt}},difference:{h:(t,e)=>{if(void 0===t.h||void 0===e.h)return 0;let n=ce(t.h),i=ce(e.h);return Math.abs(i-n)>180?n-(i-360*Math.sign(i-n)):i-n}},average:{h:Me}},dn=un,fn=.1593017578125,pn=78.84375,gn=.8359375,mn=18.8515625,yn=18.6875;function vn(t){if(t<0)return 0;const e=Math.pow(t,1/pn);return 1e4*Math.pow(Math.max(0,e-gn)/(mn-yn*e),1/fn)}function xn(t){if(t<0)return 0;const e=Math.pow(t/1e4,fn);return Math.pow((gn+mn*e)/(1+yn*e),pn)}const bn=t=>Math.max(t/203,0),wn=({i:t,t:e,p:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);const r=vn(t+.008609037037932761*e+.11102962500302593*n),o=vn(t-.00860903703793275*e-.11102962500302599*n),s=vn(t+.5600313357106791*e-.32062717498731885*n),a={mode:"xyz65",x:bn(2.070152218389422*r-1.3263473389671556*o+.2066510476294051*s),y:bn(.3647385209748074*r+.680566024947227*o-.0453045459220346*s),z:bn(-.049747207535812*r-.0492609666966138*o+1.1880659249923042*s)};return void 0!==i&&(a.alpha=i),a},Mn=(t=0)=>Math.max(203*t,0),kn=({x:t,y:e,z:n,alpha:i})=>{const r=Mn(t),o=Mn(e),s=Mn(n),a=xn(.3592832590121217*r+.6976051147779502*o-.0358915932320289*s),l=xn(-.1920808463704995*r+1.1004767970374323*o+.0753748658519118*s),c=xn(.0070797844607477*r+.0748396662186366*o+.8433265453898765*s),h={mode:"itp",i:.5*a+.5*l,t:1.61376953125*a-3.323486328125*l+1.709716796875*c,p:4.378173828125*a-4.24560546875*l-.132568359375*c};return void 0!==i&&(h.alpha=i),h},Cn={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:wn,rgb:t=>se(wn(t))},fromMode:{xyz65:kn,rgb:t=>kn(ie(t))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:qt,t:qt,p:qt,alpha:{use:qt,fixup:Xt}}},On=Cn,jn=t=>{if(t<0)return 0;let e=Math.pow(t/1e4,fn);return Math.pow((gn+mn*e)/(1+yn*e),134.03437499999998)},En=(t=0)=>Math.max(203*t,0),_n=({x:t,y:e,z:n,alpha:i})=>{t=En(t),e=En(e);let r=1.15*t-.15*(n=En(n)),o=.66*e+.34*t,s=jn(.41478972*r+.579999*o+.014648*n),a=jn(-.20151*r+1.120649*o+.0531008*n),l=jn(-.0166008*r+.2648*o+.6684799*n),c=(s+a)/2,h={mode:"jab",j:.44*c/(1-.56*c)-16295499532821565e-27,a:3.524*s-4.066708*a+.542708*l,b:.199076*s+1.096799*a-1.295875*l};return void 0!==i&&(h.alpha=i),h},Sn=16295499532821565e-27,$n=t=>{if(t<0)return 0;let e=Math.pow(t,.007460772656268216);return 1e4*Math.pow((gn-e)/(yn*e-mn),1/fn)},An=t=>t/203,zn=({j:t,a:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=(t+Sn)/(.44+.56*(t+Sn)),o=$n(r+.13860504*e+.058047316*n),s=$n(r-.13860504*e-.058047316*n),a=$n(r-.096019242*e-.8118919*n),l={mode:"xyz65",x:An(1.661373024652174*o-.914523081304348*s+.23136208173913045*a),y:An(-.3250758611844533*o+1.571847026732543*s-.21825383453227928*a),z:An(-.090982811*o-.31272829*s+1.5227666*a)};return void 0!==i&&(l.alpha=i),l},Pn=t=>{let e=_n(ie(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},Ln=t=>se(zn(t)),In={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:Pn,xyz65:_n},toMode:{rgb:Ln,xyz65:zn},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:qt,a:qt,b:qt,alpha:{use:qt,fixup:Xt}}},Tn=({j:t,a:e,b:n,alpha:i})=>{void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.sqrt(e*e+n*n),o={mode:"jch",j:t,c:r};return r&&(o.h=ce(180*Math.atan2(n,e)/Math.PI)),void 0!==i&&(o.alpha=i),o},Rn=({j:t,c:e,h:n,alpha:i})=>{void 0===n&&(n=0);let r={mode:"jab",j:t,a:e?e*Math.cos(n/180*Math.PI):0,b:e?e*Math.sin(n/180*Math.PI):0};return void 0!==i&&(r.alpha=i),r},Bn={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:Rn,rgb:t=>Ln(Rn(t))},fromMode:{rgb:t=>Tn(Pn(t)),jab:Tn},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:qt,fixup:ue},c:qt,j:qt,alpha:{use:qt,fixup:Xt}},difference:{h:we},average:{h:Me}},Wn=Bn,Hn=Math.pow(29,3)/Math.pow(3,3),Nn=Math.pow(6,3)/Math.pow(29,3);let Fn=t=>Math.pow(t,3)>Nn?Math.pow(t,3):(116*t-16)/Hn;const Dn=({l:t,a:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=(t+16)/116,o=r-n/200,s={mode:"xyz50",x:Fn(e/500+r)*_e,y:Fn(r)*Se,z:Fn(o)*$e};return void 0!==i&&(s.alpha=i),s},Vn=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=oe({r:3.1341359569958707*t-1.6173863321612538*e-.4906619460083532*n,g:-.978795502912089*t+1.916254567259524*e+.03344273116131949*n,b:.07195537988411677*t-.2289768264158322*e+1.405386058324125*n});return void 0!==i&&(r.alpha=i),r},Un=t=>Vn(Dn(t)),Yn=t=>{let{r:e,g:n,b:i,alpha:r}=ne(t),o={mode:"xyz50",x:.436065742824811*e+.3851514688337912*n+.14307845442264197*i,y:.22249319175623702*e+.7168870538238823*n+.06061979053616537*i,z:.013923904500943465*e+.09708128566574634*n+.7140993584005155*i};return void 0!==r&&(o.alpha=r),o},qn=t=>t>Nn?Math.cbrt(t):(Hn*t+16)/116,Gn=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=qn(t/_e),o=qn(e/Se),s={mode:"lab",l:116*o-16,a:500*(r-o),b:200*(o-qn(n/$e))};return void 0!==i&&(s.alpha=i),s},Xn=t=>{let e=Gn(Yn(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e};const Kn=function(t,e){if(!e||"lab"!==e[0])return;const n={mode:"lab"},[,i,r,o,s]=e;return i.type!==At&&r.type!==At&&o.type!==At?(i.type!==$t&&(n.l=Math.min(Math.max(0,i.value),100)),r.type!==$t&&(n.a=r.type===Et?r.value:125*r.value/100),o.type!==$t&&(n.b=o.type===Et?o.value:125*o.value/100),s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n):void 0},Zn={mode:"lab",toMode:{xyz50:Dn,rgb:Un},fromMode:{xyz50:Gn,rgb:Xn},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Kn],serialize:t=>`lab(${void 0!==t.l?t.l:"none"} ${void 0!==t.a?t.a:"none"} ${void 0!==t.b?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{l:qt,a:qt,b:qt,alpha:{use:qt,fixup:Xt}}},Qn=Zn,Jn={...Qn,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Ie,rgb:Te},fromMode:{xyz65:Be,rgb:We},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}};const ti=function(t,e){if(!e||"lch"!==e[0])return;const n={mode:"lch"},[,i,r,o,s]=e;if(i.type!==$t){if(i.type===At)return;n.l=Math.min(Math.max(0,i.value),100)}if(r.type!==$t&&(n.c=Math.max(0,r.type===Et?r.value:150*r.value/100)),o.type!==$t){if(o.type===_t)return;n.h=o.value}return s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n},ei={mode:"lch",toMode:{lab:Oe,rgb:t=>Un(Oe(t))},fromMode:{rgb:t=>Ce(Xn(t)),lab:Ce},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[ti],serialize:t=>`lch(${void 0!==t.l?t.l:"none"} ${void 0!==t.c?t.c:"none"} ${void 0!==t.h?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,interpolate:{h:{use:qt,fixup:ue},c:qt,l:qt,alpha:{use:qt,fixup:Xt}},difference:{h:we},average:{h:Me}},ni=ei,ii={...ni,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:t=>Oe(t,"lab65"),rgb:t=>Te(Oe(t,"lab65"))},fromMode:{rgb:t=>Ce(We(t),"lch65"),lab65:t=>Ce(t,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},ri=ii,oi=({l:t,u:e,v:n,alpha:i})=>{void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.sqrt(e*e+n*n),o={mode:"lchuv",l:t,c:r};return r&&(o.h=ce(180*Math.atan2(n,e)/Math.PI)),void 0!==i&&(o.alpha=i),o},si=({l:t,c:e,h:n,alpha:i})=>{void 0===n&&(n=0);let r={mode:"luv",l:t,u:e?e*Math.cos(n/180*Math.PI):0,v:e?e*Math.sin(n/180*Math.PI):0};return void 0!==i&&(r.alpha=i),r},ai=(t,e,n)=>4*t/(t+15*e+3*n),li=(t,e,n)=>9*e/(t+15*e+3*n),ci=ai(_e,Se,$e),hi=li(_e,Se,$e),ui=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=(t=>t<=Nn?Hn*t:116*Math.cbrt(t)-16)(e/Se),o=ai(t,e,n),s=li(t,e,n);isFinite(o)&&isFinite(s)?(o=13*r*(o-ci),s=13*r*(s-hi)):r=o=s=0;let a={mode:"luv",l:r,u:o,v:s};return void 0!==i&&(a.alpha=i),a},di=((t,e,n)=>4*t/(t+15*e+3*n))(_e,Se,$e),fi=((t,e,n)=>9*e/(t+15*e+3*n))(_e,Se,$e),pi=({l:t,u:e,v:n,alpha:i})=>{if(void 0===t&&(t=0),0===t)return{mode:"xyz50",x:0,y:0,z:0};void 0===e&&(e=0),void 0===n&&(n=0);let r=e/(13*t)+di,o=n/(13*t)+fi,s=Se*(t<=8?t/Hn:Math.pow((t+16)/116,3)),a={mode:"xyz50",x:s*(9*r)/(4*o),y:s,z:s*(12-3*r-20*o)/(4*o)};return void 0!==i&&(a.alpha=i),a},gi={mode:"lchuv",toMode:{luv:si,rgb:t=>Vn(pi(si(t)))},fromMode:{rgb:t=>oi(ui(Yn(t))),luv:oi},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:qt,fixup:ue},c:qt,l:qt,alpha:{use:qt,fixup:Xt}},difference:{h:we},average:{h:Me}},mi=gi,yi={...Kt,mode:"lrgb",toMode:{rgb:oe},fromMode:{rgb:ne},parse:["srgb-linear"],serialize:"srgb-linear"},vi={mode:"luv",toMode:{xyz50:pi,rgb:t=>Vn(pi(t))},fromMode:{xyz50:ui,rgb:t=>ui(Yn(t))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:qt,u:qt,v:qt,alpha:{use:qt,fixup:Xt}}},xi=vi,bi=({r:t,g:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.cbrt(.412221469470763*t+.5363325372617348*e+.0514459932675022*n),o=Math.cbrt(.2119034958178252*t+.6806995506452344*e+.1073969535369406*n),s=Math.cbrt(.0883024591900564*t+.2817188391361215*e+.6299787016738222*n),a={mode:"oklab",l:.210454268309314*r+.7936177747023054*o-.0040720430116193*s,a:1.9779985324311684*r-2.42859224204858*o+.450593709617411*s,b:.0259040424655478*r+.7827717124575296*o-.8086757549230774*s};return void 0!==i&&(a.alpha=i),a},wi=t=>{let e=bi(ne(t));return t.r===t.b&&t.b===t.g&&(e.a=e.b=0),e},Mi=({l:t,a:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=Math.pow(t+.3963377773761749*e+.2158037573099136*n,3),o=Math.pow(t-.1055613458156586*e-.0638541728258133*n,3),s=Math.pow(t-.0894841775298119*e-1.2914855480194092*n,3),a={mode:"lrgb",r:4.076741636075957*r-3.3077115392580616*o+.2309699031821044*s,g:-1.2684379732850317*r+2.6097573492876887*o-.3413193760026573*s,b:-.0041960761386756*r-.7034186179359362*o+1.7076146940746117*s};return void 0!==i&&(a.alpha=i),a},ki=t=>oe(Mi(t));function Ci(t){const e=.206,n=1.206/1.03;return.5*(n*t-e+Math.sqrt((n*t-e)*(n*t-e)+.12*n*t))}function Oi(t){return(t*t+.206*t)/(1.206/1.03*(t+.03))}function ji(t,e){let n=function(t,e){let n,i,r,o,s,a,l,c;-1.88170328*t-.80936493*e>1?(n=1.19086277,i=1.76576728,r=.59662641,o=.75515197,s=.56771245,a=4.0767416621,l=-3.3077115913,c=.2309699292):1.81444104*t-1.19445276*e>1?(n=.73956515,i=-.45954404,r=.08285427,o=.1254107,s=.14503204,a=-1.2684380046,l=2.6097574011,c=-.3413193965):(n=1.35733652,i=-.00915799,r=-1.1513021,o=-.50559606,s=.00692167,a=-.0041960863,l=-.7034186147,c=1.707614701);let h=n+i*t+r*e+o*t*t+s*t*e,u=.3963377774*t+.2158037573*e,d=-.1055613458*t-.0638541728*e,f=-.0894841775*t-1.291485548*e;{let t=1+h*u,e=1+h*d,n=1+h*f,i=a*(t*t*t)+l*(e*e*e)+c*(n*n*n),r=a*(3*u*t*t)+l*(3*d*e*e)+c*(3*f*n*n);h-=i*r/(r*r-.5*i*(a*(6*u*u*t)+l*(6*d*d*e)+c*(6*f*f*n)))}return h}(t,e),i=Mi({l:1,a:n*t,b:n*e}),r=Math.cbrt(1/Math.max(i.r,i.g,i.b));return[r,r*n]}function Ei(t,e,n=null){n||(n=ji(t,e));let i=n[0],r=n[1];return[r/i,r/(1-i)]}function _i(t,e,n){let i=ji(e,n),r=function(t,e,n,i,r,o=null){let s;if(o||(o=ji(t,e)),(n-r)*o[1]-(o[0]-r)*i<=0)s=o[1]*r/(i*o[0]+o[1]*(r-n));else{s=o[1]*(r-1)/(i*(o[0]-1)+o[1]*(r-n));{let o=n-r,a=.3963377774*t+.2158037573*e,l=-.1055613458*t-.0638541728*e,c=-.0894841775*t-1.291485548*e,h=o+i*a,u=o+i*l,d=o+i*c;{let t=r*(1-s)+s*n,e=s*i,o=t+e*a,f=t+e*l,p=t+e*c,g=o*o*o,m=f*f*f,y=p*p*p,v=3*h*o*o,x=3*u*f*f,b=3*d*p*p,w=6*h*h*o,M=6*u*u*f,k=6*d*d*p,C=4.0767416621*g-3.3077115913*m+.2309699292*y-1,O=4.0767416621*v-3.3077115913*x+.2309699292*b,j=O/(O*O-.5*C*(4.0767416621*w-3.3077115913*M+.2309699292*k)),E=-C*j,_=-1.2684380046*g+2.6097574011*m-.3413193965*y-1,S=-1.2684380046*v+2.6097574011*x-.3413193965*b,$=S/(S*S-.5*_*(-1.2684380046*w+2.6097574011*M-.3413193965*k)),A=-_*$,z=-.0041960863*g-.7034186147*m+1.707614701*y-1,P=-.0041960863*v-.7034186147*x+1.707614701*b,L=P/(P*P-.5*z*(-.0041960863*w-.7034186147*M+1.707614701*k)),I=-z*L;E=j>=0?E:1e6,A=$>=0?A:1e6,I=L>=0?I:1e6,s+=Math.min(E,Math.min(A,I))}}}return s}(e,n,t,1,t,i),o=Ei(e,n,i),s=t*(.11516993+1/(7.4477897+4.1590124*n+e*(1.75198401*n-2.19557347+e*(-2.13704948-10.02301043*n+e*(5.38770819*n-4.24894561+4.69891013*e))))),a=(1-t)*(.11239642+1/(1.6132032-.68124379*n+e*(.40370612+.90148123*n+e*(.6122399*n-.27087943+e*(.00299215-.45399568*n-.14661872*e))))),l=.9*(r/Math.min(t*o[0],(1-t)*o[1]))*Math.sqrt(Math.sqrt(1/(1/(s*s*s*s)+1/(a*a*a*a))));return s=.4*t,a=.8*(1-t),[Math.sqrt(1/(1/(s*s)+1/(a*a))),l,r]}function Si(t){const e=void 0!==t.l?t.l:0,n=void 0!==t.a?t.a:0,i=void 0!==t.b?t.b:0,r={mode:"okhsl",l:Ci(e)};void 0!==t.alpha&&(r.alpha=t.alpha);let o=Math.sqrt(n*n+i*i);if(!o)return r.s=0,r;let s,[a,l,c]=_i(e,n/o,i/o);if(o<l){let t=0,e=.8*a;s=.8*((o-t)/(e+(1-e/l)*(o-t)))}else{let t=.2*l*l*1.25*1.25/a;s=.8+.2*((o-l)/(t+(1-t/(c-l))*(o-l)))}return s&&(r.s=s,r.h=ce(180*Math.atan2(i,n)/Math.PI)),r}function $i(t){let e=void 0!==t.h?t.h:0,n=void 0!==t.s?t.s:0,i=void 0!==t.l?t.l:0;const r={mode:"oklab",l:Oi(i)};if(void 0!==t.alpha&&(r.alpha=t.alpha),!n||1===i)return r.a=r.b=0,r;let o,s,a,l,c=Math.cos(e/180*Math.PI),h=Math.sin(e/180*Math.PI),[u,d,f]=_i(r.l,c,h);n<.8?(o=1.25*n,s=0,a=.8*u,l=1-a/d):(o=5*(n-.8),s=d,a=.2*d*d*1.25*1.25/u,l=1-a/(f-d));let p=s+o*a/(1-l*o);return r.a=p*c,r.b=p*h,r}const Ai={...sn,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Si,rgb:t=>Si(wi(t))},toMode:{oklab:$i,rgb:t=>ki($i(t))}},zi=Ai;function Pi(t){let e=void 0!==t.l?t.l:0,n=void 0!==t.a?t.a:0,i=void 0!==t.b?t.b:0,r=Math.sqrt(n*n+i*i),o=r?n/r:1,s=r?i/r:1,[a,l]=Ei(o,s),c=1-.5/a,h=l/(r+e*l),u=h*e,d=h*r,f=Oi(u),p=d*f/u,g=Mi({l:f,a:o*p,b:s*p}),m=Math.cbrt(1/Math.max(g.r,g.g,g.b,0));e/=m,r=r/m*Ci(e)/e,e=Ci(e);const y={mode:"okhsv",s:r?(.5+l)*d/(.5*l+l*c*d):0,v:e?e/u:0};return y.s&&(y.h=ce(180*Math.atan2(i,n)/Math.PI)),void 0!==t.alpha&&(y.alpha=t.alpha),y}function Li(t){const e={mode:"oklab"};void 0!==t.alpha&&(e.alpha=t.alpha);const n=void 0!==t.h?t.h:0,i=void 0!==t.s?t.s:0,r=void 0!==t.v?t.v:0,o=Math.cos(n/180*Math.PI),s=Math.sin(n/180*Math.PI),[a,l]=Ei(o,s),c=.5,h=1-c/a,u=1-i*c/(c+l-l*h*i),d=i*l*c/(c+l-l*h*i),f=Oi(u),p=d*f/u,g=Mi({l:f,a:o*p,b:s*p}),m=Math.cbrt(1/Math.max(g.r,g.g,g.b,0)),y=Oi(r*u),v=d*y/u;return e.l=y*m,e.a=v*o*m,e.b=v*s*m,e}const Ii={...cn,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:Pi,rgb:t=>Pi(wi(t))},toMode:{oklab:Li,rgb:t=>ki(Li(t))}},Ti=Ii;const Ri=function(t,e){if(!e||"oklab"!==e[0])return;const n={mode:"oklab"},[,i,r,o,s]=e;return i.type!==At&&r.type!==At&&o.type!==At?(i.type!==$t&&(n.l=Math.min(Math.max(0,i.type===Et?i.value:i.value/100),1)),r.type!==$t&&(n.a=r.type===Et?r.value:.4*r.value/100),o.type!==$t&&(n.b=o.type===Et?o.value:.4*o.value/100),s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n):void 0},Bi={...Qn,mode:"oklab",toMode:{lrgb:Mi,rgb:ki},fromMode:{lrgb:bi,rgb:wi},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Ri],serialize:t=>`oklab(${void 0!==t.l?t.l:"none"} ${void 0!==t.a?t.a:"none"} ${void 0!==t.b?t.b:"none"}${t.alpha<1?` / ${t.alpha}`:""})`},Wi=Bi;const Hi=function(t,e){if(!e||"oklch"!==e[0])return;const n={mode:"oklch"},[,i,r,o,s]=e;if(i.type!==$t){if(i.type===At)return;n.l=Math.min(Math.max(0,i.type===Et?i.value:i.value/100),1)}if(r.type!==$t&&(n.c=Math.max(0,r.type===Et?r.value:.4*r.value/100)),o.type!==$t){if(o.type===_t)return;n.h=o.value}return s.type!==$t&&(n.alpha=Math.min(1,Math.max(0,s.type===Et?s.value:s.value/100))),n},Ni={...ni,mode:"oklch",toMode:{oklab:t=>Oe(t,"oklab"),rgb:t=>ki(Oe(t,"oklab"))},fromMode:{rgb:t=>Ce(wi(t),"oklch"),oklab:t=>Ce(t,"oklch")},parse:[Hi],serialize:t=>`oklch(${void 0!==t.l?t.l:"none"} ${void 0!==t.c?t.c:"none"} ${void 0!==t.h?t.h:"none"}${t.alpha<1?` / ${t.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},Fi=Ni,Di=t=>{let{r:e,g:n,b:i,alpha:r}=ne(t),o={mode:"xyz65",x:.486570948648216*e+.265667693169093*n+.1982172852343625*i,y:.2289745640697487*e+.6917385218365062*n+.079286914093745*i,z:0*e+.0451133818589026*n+1.043944368900976*i};return void 0!==r&&(o.alpha=r),o},Vi=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r=oe({r:2.4934969119414263*t-.9313836179191242*e-.402710784450717*n,g:-.8294889695615749*t+1.7626640603183465*e+.0236246858419436*n,b:.0358458302437845*t-.0761723892680418*e+.9568845240076871*n},"p3");return void 0!==i&&(r.alpha=i),r},Ui={...Kt,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:t=>Vi(ie(t)),xyz65:Vi},toMode:{rgb:t=>se(Di(t)),xyz65:Di}},Yi=Ui,qi=t=>{let e=Math.abs(t);return e>=1/512?Math.sign(t)*Math.pow(e,1/1.8):16*t},Gi=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r={mode:"prophoto",r:qi(1.3457868816471585*t-.2555720873797946*e-.0511018649755453*n),g:qi(-.5446307051249019*t+1.5082477428451466*e+.0205274474364214*n),b:qi(0*t+0*e+1.2119675456389452*n)};return void 0!==i&&(r.alpha=i),r},Xi=(t=0)=>{let e=Math.abs(t);return e>=16/512?Math.sign(t)*Math.pow(e,1.8):t/16},Ki=t=>{let e=Xi(t.r),n=Xi(t.g),i=Xi(t.b),r={mode:"xyz50",x:.7977666449006423*e+.1351812974005331*n+.0313477341283922*i,y:.2880748288194013*e+.7118352342418731*n+899369387256e-16*i,z:0*e+0*n+.8251046025104602*i};return void 0!==t.alpha&&(r.alpha=t.alpha),r},Zi={...Kt,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:Gi,rgb:t=>Gi(Yn(t))},toMode:{xyz50:Ki,rgb:t=>Vn(Ki(t))}},Qi=Zi,Ji=1.09929682680944,tr=t=>{const e=Math.abs(t);return e>.018053968510807?(Math.sign(t)||1)*(Ji*Math.pow(e,.45)-(Ji-1)):4.5*t},er=({x:t,y:e,z:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);let r={mode:"rec2020",r:tr(1.7166511879712683*t-.3556707837763925*e-.2533662813736599*n),g:tr(-.6666843518324893*t+1.6164812366349395*e+.0157685458139111*n),b:tr(.0176398574453108*t-.0427706132578085*e+.9421031212354739*n)};return void 0!==i&&(r.alpha=i),r},nr=1.09929682680944,ir=(t=0)=>{let e=Math.abs(t);return e<.08124285829863151?t/4.5:(Math.sign(t)||1)*Math.pow((e+nr-1)/nr,1/.45)},rr=t=>{let e=ir(t.r),n=ir(t.g),i=ir(t.b),r={mode:"xyz65",x:.6369580483012911*e+.1446169035862083*n+.1688809751641721*i,y:.262700212011267*e+.6779980715188708*n+.059301716469862*i,z:0*e+.0280726930490874*n+1.0609850577107909*i};return void 0!==t.alpha&&(r.alpha=t.alpha),r},or={...Kt,mode:"rec2020",fromMode:{xyz65:er,rgb:t=>er(ie(t))},toMode:{xyz65:rr,rgb:t=>se(rr(t))},parse:["rec2020"],serialize:"rec2020"},sr=or,ar=.0037930732552754493,lr=Math.cbrt(ar),cr=t=>Math.cbrt(t)-lr,hr=t=>{const{r:e,g:n,b:i,alpha:r}=ne(t),o=cr(.3*e+.622*n+.078*i+ar),s=cr(.23*e+.692*n+.078*i+ar),a={mode:"xyb",x:(o-s)/2,y:(o+s)/2,b:cr(.2434226892454782*e+.2047674442449682*n+.5518098665095535*i+ar)-(o+s)/2};return void 0!==r&&(a.alpha=r),a},ur=t=>Math.pow(t+lr,3),dr=({x:t,y:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);const r=ur(t+e)-ar,o=ur(e-t)-ar,s=ur(n+e)-ar,a=oe({r:11.031566904639861*r-9.866943908131562*o-.16462299650829934*s,g:-3.2541473810744237*r+4.418770377582723*o-.16462299650829934*s,b:-3.6588512867136815*r+2.7129230459360922*o+1.9459282407775895*s});return void 0!==i&&(a.alpha=i),a},fr={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:dr},fromMode:{rgb:hr},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:qt,y:qt,b:qt,alpha:{use:qt,fixup:Xt}}},pr={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:Vn,lab:Gn},fromMode:{rgb:Yn,lab:Dn},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:qt,y:qt,z:qt,alpha:{use:qt,fixup:Xt}}},gr=t=>{let{x:e,y:n,z:i,alpha:r}=t;void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0);let o={mode:"xyz50",x:1.0479298208405488*e+.0229467933410191*n-.0501922295431356*i,y:.0296278156881593*e+.990434484573249*n-.0170738250293851*i,z:-.0092430581525912*e+.0150551448965779*n+.7518742899580008*i};return void 0!==r&&(o.alpha=r),o},mr=t=>{let{x:e,y:n,z:i,alpha:r}=t;void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0);let o={mode:"xyz65",x:.9554734527042182*e-.0230985368742614*n+.0632593086610217*i,y:-.0283697069632081*e+1.0099954580058226*n+.021041398966943*i,z:.0123140016883199*e-.0205076964334779*n+1.3303659366080753*i};return void 0!==r&&(o.alpha=r),o},yr={mode:"xyz65",toMode:{rgb:se,xyz50:gr},fromMode:{rgb:ie,xyz50:mr},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:qt,y:qt,z:qt,alpha:{use:qt,fixup:Xt}}},vr=({r:t,g:e,b:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);const r={mode:"yiq",y:.29889531*t+.58662247*e+.11448223*n,i:.59597799*t-.2741761*e-.32180189*n,q:.21147017*t-.52261711*e+.31114694*n};return void 0!==i&&(r.alpha=i),r},xr=({y:t,i:e,q:n,alpha:i})=>{void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0);const r={mode:"rgb",r:t+.95608445*e+.6208885*n,g:t-.27137664*e-.6486059*n,b:t-1.10561724*e+1.70250126*n};return void 0!==i&&(r.alpha=i),r},br={mode:"yiq",toMode:{rgb:xr},fromMode:{rgb:vr},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:qt,i:qt,q:qt,alpha:{use:qt,fixup:Xt}}},wr=(t=4)=>e=>"number"==typeof e?((t,e)=>Math.round(t*(e=Math.pow(10,e)))/e)(e,t):e;wr(2);const Mr=t=>Math.max(0,Math.min(1,t||0)),kr=t=>Math.round(255*Mr(t)),Cr=gt("rgb"),Or=(gt("hsl"),t=>{if(void 0===t)return;return"#"+(1<<24|kr(t.r)<<16|kr(t.g)<<8|kr(t.b)).toString(16).slice(1)}),jr=t=>Or(Cr(t)),Er=t=>(t=>{if(void 0===t)return;let e=kr(void 0!==t.alpha?t.alpha:1);return Or(t)+(256|e).toString(16).slice(1)})(Cr(t));function _r(t){let e=gt("lrgb")(t);return.2126*e.r+.7152*e.g+.0722*e.b}function Sr(t,e){let n=_r(t),i=_r(e);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}wt(le),wt(ke),wt(Xe),wt(Ze),wt(Je),wt(sn),wt(cn),wt(dn),wt(On),wt(In),wt(Wn),wt(Qn),wt(Jn),wt(ni),wt(ri),wt(mi),wt(yi),wt(xi),wt(zi),wt(Ti),wt(Wi);const $r=wt(Fi);wt(Yi),wt(Qi),wt(sr),wt(Kt),wt(fr),wt(pr),wt(yr),wt(br);function Ar(t){if(!t)return!1;const e=t.trim().toLowerCase();return"none"!==e&&"transparent"!==e&&""!==e}function zr(t){const e=Dt(t);if(!e)return!1;return _r(e)<.5}const Pr=Array.isArray;const Lr="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;var Ir="object"==typeof self&&self&&self.Object===Object&&self;const Tr=Lr||Ir||Function("return this")();const Rr=Tr.Symbol;var Br=Object.prototype,Wr=Br.hasOwnProperty,Hr=Br.toString,Nr=Rr?Rr.toStringTag:void 0;const Fr=function(t){var e=Wr.call(t,Nr),n=t[Nr];try{t[Nr]=void 0;var i=!0}catch(t){}var r=Hr.call(t);return i&&(e?t[Nr]=n:delete t[Nr]),r};var Dr=Object.prototype.toString;const Vr=function(t){return Dr.call(t)};var Ur=Rr?Rr.toStringTag:void 0;const Yr=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Ur&&Ur in Object(t)?Fr(t):Vr(t)};const qr=function(t){return null!=t&&"object"==typeof t};const Gr=function(t){return"symbol"==typeof t||qr(t)&&"[object Symbol]"==Yr(t)};var Xr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kr=/^\w*$/;const Zr=function(t,e){if(Pr(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Gr(t))||(Kr.test(t)||!Xr.test(t)||null!=e&&t in Object(e))};const Qr=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const Jr=function(t){if(!Qr(t))return!1;var e=Yr(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};var to=Tr["__core-js_shared__"];var eo,no=(eo=/[^.]+$/.exec(to&&to.keys&&to.keys.IE_PROTO||""))?"Symbol(src)_1."+eo:"";const io=function(t){return!!no&&no in t};var ro=Function.prototype.toString;const oo=function(t){if(null!=t){try{return ro.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var so=/^\[object .+?Constructor\]$/,ao=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const lo=function(t){return!(!Qr(t)||io(t))&&(Jr(t)?ao:so).test(oo(t))};const co=function(t,e){return null==t?void 0:t[e]};const ho=function(t,e){var n=co(t,e);return lo(n)?n:void 0};const uo=ho(Object,"create");const fo=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var po=Object.prototype.hasOwnProperty;const go=function(t){var e=this.__data__;if(uo){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return po.call(e,t)?e[t]:void 0};var mo=Object.prototype.hasOwnProperty;const yo=function(t){var e=this.__data__;return uo?void 0!==e[t]:mo.call(e,t)};const vo=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=uo&&void 0===e?"__lodash_hash_undefined__":e,this};function xo(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}xo.prototype.clear=function(){this.__data__=uo?uo(null):{},this.size=0},xo.prototype.delete=fo,xo.prototype.get=go,xo.prototype.has=yo,xo.prototype.set=vo;const bo=xo;const wo=function(t,e){return t===e||t!=t&&e!=e};const Mo=function(t,e){for(var n=t.length;n--;)if(wo(t[n][0],e))return n;return-1};var ko=Array.prototype.splice;const Co=function(t){var e=this.__data__,n=Mo(e,t);return!(n<0)&&(n==e.length-1?e.pop():ko.call(e,n,1),--this.size,!0)};const Oo=function(t){var e=this.__data__,n=Mo(e,t);return n<0?void 0:e[n][1]};const jo=function(t){return Mo(this.__data__,t)>-1};const Eo=function(t,e){var n=this.__data__,i=Mo(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function _o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}_o.prototype.clear=function(){this.__data__=[],this.size=0},_o.prototype.delete=Co,_o.prototype.get=Oo,_o.prototype.has=jo,_o.prototype.set=Eo;const So=_o;const $o=ho(Tr,"Map");const Ao=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zo=function(t,e){var n=t.__data__;return Ao(e)?n["string"==typeof e?"string":"hash"]:n.map};const Po=function(t){var e=zo(this,t).delete(t);return this.size-=e?1:0,e};const Lo=function(t){return zo(this,t).get(t)};const Io=function(t){return zo(this,t).has(t)};const To=function(t,e){var n=zo(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};function Ro(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Ro.prototype.clear=function(){this.size=0,this.__data__={hash:new bo,map:new($o||So),string:new bo}},Ro.prototype.delete=Po,Ro.prototype.get=Lo,Ro.prototype.has=Io,Ro.prototype.set=To;const Bo=Ro;function Wo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(Wo.Cache||Bo),n}Wo.Cache=Bo;const Ho=Wo;var No=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fo=/\\(\\)?/g,Do=function(t){var e=Ho(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(No,function(t,n,i,r){e.push(i?r.replace(Fo,"$1"):n||t)}),e});const Vo=Do;const Uo=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r};var Yo=Rr?Rr.prototype:void 0,qo=Yo?Yo.toString:void 0;const Go=function t(e){if("string"==typeof e)return e;if(Pr(e))return Uo(e,t)+"";if(Gr(e))return qo?qo.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n};const Xo=function(t){return null==t?"":Go(t)};const Ko=function(t,e){return Pr(t)?t:Zr(t,e)?[t]:Vo(Xo(t))};const Zo=function(t){if("string"==typeof t||Gr(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e};const Qo=function(t,e){for(var n=0,i=(e=Ko(e,t)).length;null!=t&&n<i;)t=t[Zo(e[n++])];return n&&n==i?t:void 0};const Jo=function(t,e,n){var i=null==t?void 0:Qo(t,e);return void 0===i?n:i};function ts(t,e){if(0===e.length)return{};const n=Array.isArray(t)?t[e[0]]:t.items[e[0]];if(1===e.length)return n;const i=e.slice(1).map(t=>`children[${t}]`).join(".");return Jo(n,i)}function es(t){const{structure:e,item:n,items:i}=t;return!!e&&(!!n&&!i.some(t=>!t))}const ns="infographic-component";const is=function(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(r);++i<r;)o[i]=t[i+e];return o};const rs=function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:is(t,e,n)};var os=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const ss=function(t){return os.test(t)};const as=function(t){return t.split("")};var ls="\\ud800-\\udfff",cs="["+ls+"]",hs="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",us="\\ud83c[\\udffb-\\udfff]",ds="[^"+ls+"]",fs="(?:\\ud83c[\\udde6-\\uddff]){2}",ps="[\\ud800-\\udbff][\\udc00-\\udfff]",gs="(?:"+hs+"|"+us+")"+"?",ms="[\\ufe0e\\ufe0f]?",ys=ms+gs+("(?:\\u200d(?:"+[ds,fs,ps].join("|")+")"+ms+gs+")*"),vs="(?:"+[ds+hs+"?",hs,fs,ps,cs].join("|")+")",xs=RegExp(us+"(?="+us+")|"+vs+ys,"g");const bs=function(t){return t.match(xs)||[]};const ws=function(t){return ss(t)?bs(t):as(t)};const Ms=function(t){return function(e){e=Xo(e);var n=ss(e)?ws(e):void 0,i=n?n[0]:e.charAt(0),r=n?rs(n,1).join(""):e.slice(1);return i[t]()+r}};const ks=Ms("toUpperCase");const Cs=function(t){return ks(Xo(t).toLowerCase())};const Os=function(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n};const js=function(t){return function(e){return null==t?void 0:t[e]}};const Es=js({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});var _s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ss=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");const $s=function(t){return(t=Xo(t))&&t.replace(_s,Es).replace(Ss,"")};var As=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;const zs=function(t){return t.match(As)||[]};var Ps=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;const Ls=function(t){return Ps.test(t)};var Is="\\ud800-\\udfff",Ts="\\u2700-\\u27bf",Rs="a-z\\xdf-\\xf6\\xf8-\\xff",Bs="A-Z\\xc0-\\xd6\\xd8-\\xde",Ws="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Hs="["+Ws+"]",Ns="\\d+",Fs="["+Ts+"]",Ds="["+Rs+"]",Vs="[^"+Is+Ws+Ns+Ts+Rs+Bs+"]",Us="(?:\\ud83c[\\udde6-\\uddff]){2}",Ys="[\\ud800-\\udbff][\\udc00-\\udfff]",qs="["+Bs+"]",Gs="(?:"+Ds+"|"+Vs+")",Xs="(?:"+qs+"|"+Vs+")",Ks="(?:['’](?:d|ll|m|re|s|t|ve))?",Zs="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qs="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Js="[\\ufe0e\\ufe0f]?",ta=Js+Qs+("(?:\\u200d(?:"+["[^"+Is+"]",Us,Ys].join("|")+")"+Js+Qs+")*"),ea="(?:"+[Fs,Us,Ys].join("|")+")"+ta,na=RegExp([qs+"?"+Ds+"+"+Ks+"(?="+[Hs,qs,"$"].join("|")+")",Xs+"+"+Zs+"(?="+[Hs,qs+Gs,"$"].join("|")+")",qs+"?"+Gs+"+"+Ks,qs+"+"+Zs,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ns,ea].join("|"),"g");const ia=function(t){return t.match(na)||[]};const ra=function(t,e,n){return t=Xo(t),void 0===(e=n?void 0:e)?Ls(t)?ia(t):zs(t):t.match(e)||[]};var oa=RegExp("['’]","g");const sa=function(t){return function(e){return Os(ra($s(e).replace(oa,"")),t,"")}};const aa=sa(function(t,e,n){return e=e.toLowerCase(),t+(n?Cs(e):e)}),la=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","-apple-system","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong"]);function ca(t){const e=[];let n="",i=null;const r=()=>{const t=n.trim();t&&e.push(t),n=""};for(let e=0;e<t.length;e+=1){const o=t[e];i?(n+=o,o===i&&(i=null)):'"'!==o&&"'"!==o?","!==o?n+=o:r():(i=o,n+=o)}return r(),e}function ha(t){const e=t.trim();return e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'")?e.slice(1,-1):e}function ua(t){const e=ca(t);return e.length?1===e.length?ha(e[0]):e.map(t=>ha(t)).join(", "):""}function da(t){const e=ca(t);return e.length?e.map(t=>function(t){const e=t.trim();if(!e)return e;if(function(t){const e=t.trim();return e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'")}(e))return e;if(la.has(e.toLowerCase()))return e;if(!function(t){return/^\d/.test(t)||/\s/.test(t)}(e))return e;const n=e.includes('"')&&!e.includes("'")?"'":'"';return`${n}${e}${n}`}(t)).join(", "):t.trim()}const fa={100:"thin",hairline:"thin",thin:"thin",200:"extralight",ultralight:"extralight",extralight:"extralight",300:"light",light:"light",400:"regular",normal:"regular",regular:"regular",500:"medium",medium:"medium",600:"semibold",demibold:"semibold",semibold:"semibold",700:"bold",bold:"bold",800:"extrabold",ultrabold:"extrabold",extrabold:"extrabold",900:"black",heavy:"black",black:"black",950:"extrablack",ultrablack:"extrablack",extrablack:"extrablack"};function pa(t){const e=String(t).toLowerCase();return fa[e]||"regular"}const ga=new Map,ma=new Map;let ya="sans-serif";const va={fontFamily:"sans-serif",fontWeight:400,fontStyle:"normal",unitsPerEm:2048,metrics:{ascender:2189,descender:-555,lineGap:0},glyphs:{'"':727,"%":1821,"'":391,"(":682,")":682,"*":797,"+":1196,"-":682,"<":1196,"=":1196,">":1196,"@":2079,C:1479,D:1479,F:1251,G:1593,H:1479,J:1024,M:1706,N:1479,O:1593,Q:1593,R:1479,T:1251,U:1479,W:1933,Z:1251,"^":961,_:1024,"`":682,c:1024,i:455,j:455,k:1024,l:455,m:1706,r:682,s:1024,v:1024,w:1479,x:1024,y:1024,z:1024,"{":684,"|":532,"}":684,"~":1196},glyphsByWidth:{569:" !,./:;I[\\]ft",1139:"#$0123456789?Labdeghnopqu",1366:"&ABEKPSVXY"},defaultWidth:1139};function xa(t){if(void 0===t||"normal"===t)return"400";if("bold"===t)return"700";if("string"==typeof t){return{thin:"100",hairline:"100","extra-light":"200","ultra-light":"200",light:"300",regular:"400",normal:"400",medium:"500","semi-bold":"600",semibold:"600","demi-bold":"600",demibold:"600","extra-bold":"800",extrabold:"800","ultra-bold":"800",ultrabold:"800",black:"900",heavy:"900","extra-black":"950",extrablack:"950","ultra-black":"950",ultrablack:"950",bolder:"900",lighter:"300"}[t.toLowerCase()]||t}return String(t)}function ba(t){return t||"normal"}function wa(t){const e=t.fontFamily,n=xa(t.fontWeight),i=ba(t.fontStyle);if(t.aliases)for(const n of t.aliases)ma.has(n)||ma.set(n,e);if(t.glyphsByWidth){const e={...t.glyphs||{}};for(const[n,i]of Object.entries(t.glyphsByWidth))if("string"==typeof i){const t=Number(n);for(const n of i)e[n]=t}else e[n]=i;t={...t,glyphs:e,glyphsByWidth:void 0}}ga.has(e)||ga.set(e,new Map);const r=ga.get(e);r.has(n)||r.set(n,new Map);r.get(n).set(i,t)}function Ma(t,e,n){const i=function(t){return t?ga.has(t)?t:ma.get(t)||t:t}(t||ya),r=xa(e),o=ba(n),s=ga.get(i);if(!s)return console.warn(`Font family "${i}" not registered, using fallback font data`),va;let a=s.get(r);if(a){let t=a.get(o);if(t)return t;if("normal"!==o&&(t=a.get("normal"),t))return t;const e=a.values().next().value;if(e)return e}if(a=s.get("400"),a){let t=a.get(o);if(t)return t;if("normal"!==o&&(t=a.get("normal"),t))return t;const e=a.values().next().value;if(e)return e}const l=s.values().next().value;if(l){const t=l.values().next().value;if(t)return t}throw new Error(`No font data found for family "${i}" with weight "${r}" and style "${o}"`)}function ka(t){if(void 0===t)return 14;if("number"==typeof t)return t;const e=parseFloat(t);return isNaN(e)?16:e}function Ca(t,e={}){const n=function(t,e){if(!e||"none"===e)return t;switch(e){case"uppercase":return t.toUpperCase();case"lowercase":return t.toLowerCase();case"capitalize":return t.split(" ").map(t=>0===t.length?t:t[0].toUpperCase()+t.slice(1).toLowerCase()).join(" ");default:return t}}(t,e.textTransform),i=Ma(e.fontFamily,e.fontWeight,e.fontStyle),r=ka(e.fontSize),o=e.letterSpacing||0,s=e.wordSpacing||0;let a=0;const l=Array.from(n);for(let t=0;t<l.length;t++){const e=l[t],n=t<l.length-1?l[t+1]:void 0;let c=i.glyphs?.[e];void 0===c&&(c=i.defaultWidth||i.unitsPerEm/2);if(a+=c/i.unitsPerEm*r,n&&i.kerning){const t=i.kerning[e+n];void 0!==t&&(a+=t/i.unitsPerEm*r)}t<l.length-1&&(a+=o)," "===e&&(a+=s)}const c=function(t,e){const n=ka(t.fontSize),i=t.lineHeight;if(void 0===i){const{ascender:t,descender:i,lineGap:r=0}=e.metrics;return(t-i+r)/e.unitsPerEm*n}return"number"==typeof i?i*n:"pixel"===i.type?i.value:"percent"===i.type?i.value/100*n:n}(e,i),{ascender:h}=i.metrics;return{width:a,height:c,baseline:h/i.unitsPerEm*r}}var Oa=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};const ja=new WeakMap;function Ea(t){const e=ja.get(t);return e?Array.from(e.values()):[]}function _a(t,e){var n;return null===(n=ja.get(t))||void 0===n?void 0:n.get(e)}function Sa(t,e,n){let i=ja.get(t);return i||(i=new Map,ja.set(t,i)),i.set(e,n),n.finally(()=>{const i=ja.get(t);i&&(i.get(e)===n&&i.delete(e),0===i.size&&ja.delete(t))}),n}const $a=new Map;let Aa="Alibaba PuHuiTi";function za(t){const e=ca(t);for(const t of e){const e=$a.get(ua(t));if(e)return e}return null}function Pa(){return Array.from($a.values())}function La(t){Aa=da(t)}function Ia(t){const e=ca(t).flatMap(t=>{const e=za(t);if(!e)return[];const{baseUrl:n,fontWeight:i}=e;return Object.values(i).filter(t=>!!t).map(t=>Kh(n,t))});return Array.from(new Set(e))}const Ta=new WeakMap,Ra=new WeakMap;function Ba(t,e,n){let i=Ra.get(t);return i||(i=new Map,Ra.set(t,i)),i.set(e,n),n.finally(()=>{const i=Ra.get(t);i&&(i.get(e)===n&&i.delete(e),0===i.size&&Ra.delete(t))}),n}function Wa(t,e){const n=t.ownerDocument,i=(null==n?void 0:n.head)||document.head;if(!i)return;Ta.has(i)||Ta.set(i,new Map);const r=Ta.get(i),o=Ia(e);if(!o.length)return;const s=[];o.forEach(o=>{const a=`${e}-${o}`,l=`font:${a}`;if(_a(t,l))return;let c=r.get(a);c||(c=n.createElement("link"),c.id=a,c.rel="stylesheet",c.href=o,s.push(c),r.set(a,c));const h=function(t,e,n){var i;const r=null===(i=Ra.get(t))||void 0===i?void 0:i.get(e);return r||(!n||function(t){if("true"===t.getAttribute("data-infographic-font-loaded"))return!0;try{return!!t.sheet}catch(t){return!1}}(n)?Ba(t,e,Promise.resolve()):Ba(t,e,new Promise(t=>{const e=()=>{n.setAttribute("data-infographic-font-loaded","true"),t()};n.addEventListener("load",e,{once:!0}),n.addEventListener("error",e,{once:!0})})))}(i,a,c);Sa(t,l,h)}),s.length&&"HEAD"===i.tagName&&s.forEach(t=>i.appendChild(t))}const Ha="https://assets.antv.antgroup.com",Na=t=>`${t}/result.css`;[{fontFamily:"Alibaba PuHuiTi",name:"阿里巴巴普惠体",baseUrl:Ha,fontWeight:{regular:Na("AlibabaPuHuiTi-Regular"),bold:Na("AlibabaPuHuiTi-Bold")}},{fontFamily:"Source Han Sans",name:"黑体",baseUrl:Ha,fontWeight:{regular:Na("SourceHanSansCN-Regular")}},{fontFamily:"Source Han Serif",name:"宋体",baseUrl:Ha,fontWeight:{regular:Na("SourceHanSerifCN-Regular")}},{fontFamily:"LXGW WenKai",name:"楷体",baseUrl:Ha,fontWeight:{regular:Na("LXGWWenKai-Regular")}},{fontFamily:"851tegakizatsu",name:"手写体",baseUrl:Ha,fontWeight:{regular:Na("851tegakizatsu-Regular")}}].forEach(function(t){const e=Object.assign({},t);return $a.set(e.fontFamily,e),e.fontFamily=da(e.fontFamily),e});const Fa=new Map;function Da(t,e){Fa.set(t,e)}Da("antv",["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#70CAF8"]);Da("spectral",(t,e,n)=>{const i=Math.min(Math.max(n,3),11);return[["#fc8d59","#ffffbf","#99d594"],["#d7191c","#fdae61","#abdda4","#2b83ba"],["#d7191c","#fdae61","#ffffbf","#abdda4","#2b83ba"],["#d53e4f","#fc8d59","#fee08b","#e6f598","#99d594","#3288bd"],["#d53e4f","#fc8d59","#fee08b","#ffffbf","#e6f598","#99d594","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd"],["#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]][i-3][e%i]});const Va=(t=[],e,n)=>{var i;const r="string"==typeof t?function(t){return Fa.get(t)}(t)||[]:t,o=null!==(i=e[0])&&void 0!==i?i:0;if("function"==typeof r){return r(n?o/n:0,o,null!=n?n:0)}if(Array.isArray(r)){if(0===r.length)return;return r[o%r.length]}};function Ua(t,e){const n=Object.entries(e).reduce((e,[n,i])=>{if("function"==typeof i){const r=i(t.getAttribute(n),t);null!=r&&(e[n]=r)}else Object.assign(e,{[n]:i});return e},{});return n}const Ya="btn-add-icon",qa="btn-remove-icon";function Ga(t,e){Jc(e,{display:"none"});const n=e.querySelectorAll('[id^="btn-add-"]'),i=e.querySelectorAll('[id^="btn-remove-"]');!function(t){const e=Zc("defs");zh(e,Xa);const n=Qc('<symbol class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">\n <path\n d="M512 1024C229.216 1024 0 794.784 0 512S229.216 0 512 0s512 229.216 512 512-229.216 512-512 512z m0-960C264.576 64 64 264.576 64 512s200.576 448 448 448 448-200.576 448-448S759.424 64 512 64z m192 480h-160v160a32 32 0 0 1-64 0v-160h-160a32 32 0 0 1 0-64h160v-160a32 32 0 0 1 64 0v160h160a32 32 0 0 1 0 64z"\n fill="#339900"></path>\n</symbol>');n&&(n.setAttribute("id",Ya),e.appendChild(n));const i=Qc('<symbol viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="200" height="200">\n <path d="M874.971429 149.942857C776.228571 54.857143 648.228571 0 512.914286 0S245.942857 54.857143 150.857143 149.942857c-201.142857 201.142857-201.142857 522.971429 0 724.114286C245.942857 969.142857 377.6 1024 512.914286 1024s266.971429-54.857143 362.057143-149.942857c201.142857-201.142857 201.142857-522.971429 0-724.114286m-51.2 672.914286C739.657143 906.971429 629.942857 950.857143 512.914286 950.857143s-226.742857-43.885714-310.857143-128c-171.885714-171.885714-171.885714-449.828571 0-621.714286C286.171429 117.028571 395.885714 73.142857 512.914286 73.142857s226.742857 43.885714 310.857143 128c171.885714 171.885714 171.885714 449.828571 0 621.714286" fill="#E63C33"></path>\n <path d="M772.571429 475.428571H253.257143c-21.942857 0-36.571429 14.628571-36.571429 36.571429 0 10.971429 3.657143 18.285714 10.971429 25.6s14.628571 10.971429 25.6 10.971429H768.914286c21.942857 0 36.571429-14.628571 36.571428-36.571429s-14.628571-36.571429-32.914285-36.571429" fill="#E63C33"></path>\n</symbol>');i&&(i.setAttribute("id",qa),e.appendChild(i));t.prepend(e)}(t),n.forEach(Za),i.forEach(Qa)}const Xa="btn-icon-defs";function Ka(t,e){const{id:n,x:i=0,y:r=0,width:o=0,height:s=0}=th(t,["id","x","y","width","height"]),a=Zc("g",{id:n,class:"btn-group",transform:`translate(${i}, ${r})`}),l=t.getAttribute("data-items");l&&a.setAttribute("data-items",l);const c=Math.max(+o,+s)/2,h=Zc("circle",{cx:c,cy:c,r:c,fill:"#fff",stroke:"transparent"});a.appendChild(h);const u=Zc("use",{href:`#${e}`,width:o,height:s});a.appendChild(u),a.style.cursor="pointer",t.replaceWith(a)}function Za(t){Ka(t,Ya)}function Qa(t){Ka(t,qa)}var Ja=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};function tl(t){return Ja(this,void 0,void 0,function*(){var e;if(!t||!t.startsWith("data:"))return null;const n=null===(e=t.match(/^data:([^;]+)/))||void 0===e?void 0:e[1];if(!n)return null;const{width:i,height:r,hasAlpha:o}=yield new Promise((e,i)=>{const r=new Image;r.onload=()=>{const t=r.naturalWidth,i=r.naturalHeight,o=document.createElement("canvas"),s=o.getContext("2d");if(!s)return e({width:t,height:i,hasAlpha:!1});if(["image/jpeg","image/jpg","image/webp","image/gif"].includes(n))return e({width:t,height:i,hasAlpha:!1});o.width=t,o.height=i,s.drawImage(r,0,0);let a=!1;for(let e=0;e<t&&!a;e+=10)for(let t=0;t<i;t+=10)if(s.getImageData(e,t,1,1).data[3]<255){a=!0;break}e({width:t,height:i,hasAlpha:a})},r.onerror=()=>i(new Error("Failed to analysis image")),r.src=t}),s=(()=>{if(o)return"xMidYMid meet";if((null==n?void 0:n.includes("image/gif"))||(null==n?void 0:n.includes("image/svg")))return"xMidYMid meet";if(Math.min(i,r)<=200)return"xMidYMid meet";const t=i/r;return t>=.6&&t<=1.67||t<.3||t>3.33?"xMidYMid meet":"xMidYMid slice"})();return Qc(`\n<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${i} ${r}" preserveAspectRatio="${s}">\n <image href="${t}" width="${i}" height="${r}" />\n</symbol>`)})}function el(t){if(!t||!function(t){const e=t.trim();return/^(?:<\?xml[^>]*>\s*)?<svg[\s>]/i.test(e)||e.startsWith("<symbol")}(t))return null;return Qc(t.replace(/<svg(?=[\s/>])/i,"<symbol").replace(/<\/svg>/i,"</symbol>"))}var nl=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};function il(t,e){return nl(this,void 0,void 0,function*(){if(!t||!function(t){try{return Boolean(new URL(t))}catch(t){return!1}}(t))return null;const n=yield Fh(t);if(!n.ok)throw new Error("Failed to load resource");if(function(t,e){return!!t.toLowerCase().includes("image/svg")||!t&&"svg"===e}(n.headers.get("Content-Type")||"",e)){return el(yield n.text())}const i=yield n.blob(),r=yield function(t){return new Promise((e,n)=>{const i=new FileReader;i.onloadend=()=>{e(i.result)},i.onerror=n,i.readAsDataURL(t)})}(i);return tl(r)})}var rl=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};function ol(t,e){return rl(this,void 0,void 0,function*(){var n;if(!t)return null;const i=yield(t=>rl(void 0,void 0,void 0,function*(){try{const e=`https://www.weavefox.cn/api/v1/infographic/icon?${new URLSearchParams({text:t,topK:"1"}).toString()}`,n=yield Fh(e);if(!n.ok)return null;const i=yield n.json();return(null==i?void 0:i.success)&&Array.isArray(i.data)&&i.data[0]||null}catch(e){return console.error(`Failed to query icon for "${t}":`,e),null}}))(t);if(!i)return null;if(function(t){const e=t.trim();return e.startsWith("<svg")||e.startsWith("<symbol")}(i))return el(i);if(i.startsWith("data:")){const t=(null===(n=i.match(/^data:([^;]+)/))||void 0===n?void 0:n[1])||"",e=i.includes(";base64,");if("image/svg+xml"===t&&!e){const t=i.indexOf(",");return el(t>=0?i.slice(t+1):i)}return tl(i)}return il(i,e)})}let sl=null;const al=new Set(["svg","png","jpg","jpeg","webp","gif"]);function ll(t){const e=t.toLowerCase();return e.endsWith(".svg")||e.includes(".svg?")?"svg":e.endsWith(".png")||e.endsWith(".jpg")||e.endsWith(".jpeg")||e.endsWith(".webp")||e.endsWith(".gif")?"image":void 0}function cl(t){if(!t)return null;if("string"!=typeof t){if(t.source)return t;return"image"===t.type?{source:"inline",format:"image",data:t.data}:"svg"===t.type?{source:"inline",format:"svg",encoding:"raw",data:t.data}:"remote"===t.type?{source:"remote",format:t.format,data:t.data}:"search"===t.type?{source:"search",format:t.format||"svg",data:t.data}:"custom"===t.type?{source:"custom",data:t.data}:null}const e=function(t){if(!t.startsWith("data:"))return null;const e=t.indexOf(",");if(-1===e)return null;const n=t.slice(5,e),i=t.slice(e+1),r=n.split(";"),o=r[0],s=r.includes("base64");if("image/svg+xml"===o&&!s)return{source:"inline",format:"svg",encoding:"raw",data:i.startsWith("%3C")?decodeURIComponent(i):i};if(o.startsWith("image/"))return{source:"inline",format:"image/svg+xml"===o?"svg":"image",encoding:s?"base64":"data-uri",data:t};return null}(t);if(e)return e;const n=function(t){var e;if(!t.startsWith("ref:"))return null;const n=t.slice(4),[i,...r]=n.split(":");if(!i||0===r.length)return null;let o;r.length>1&&al.has(r[0].toLowerCase())&&(o=null===(e=r.shift())||void 0===e?void 0:e.toLowerCase());const s=r.join(":");if(!s)return null;const a="url"===i?"remote":i;return"remote"===a?{source:"remote",format:o||ll(s)||void 0,data:s}:"search"===a?{source:"search",format:o||"svg",data:s}:"svg"===a?{source:"inline",format:"svg",data:s,encoding:"raw"}:{source:"custom",data:t,format:o}}(t);return n||(function(t){const e=t.trim();return e.startsWith("<svg")||e.startsWith("<symbol")}(t)?{source:"inline",format:"svg",encoding:"raw",data:t}:{source:"custom",data:t})}function hl(t){const e="string"==typeof t?cl(t):t;return e?"rsc-"+Dh(JSON.stringify(e)):null}function ul(t){const e=hl(t);return e?`#${e}`:null}var dl=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};function fl(t,e,n){return dl(this,void 0,void 0,function*(){const i=cl(e);if(!i)return null;i.scene||(i.scene=t);const{source:r,data:o,format:s,encoding:a}=i;let l=null;try{if("inline"===r){const t=o.startsWith("data:");l="svg"===s&&"raw"===a?el(o):"svg"===s&&t||t||"image"===s?yield tl(o):el(o)}else if("remote"===r)l=yield il(o,s);else if("search"===r)l=yield ol(o,s);else{const t=sl;t&&(l=yield t(i))}}catch(t){l=null}return l||(yield ol(function(t,e,n){const i="illus"===e?"illustration":"icon",r=yl(t.data)||yl(null==n?void 0:n.label)||yl(null==n?void 0:n.desc);if(r)return r;const o=yl(t.data);return o?"inline"===t.source||o.startsWith("data:")||o.startsWith("<svg")||o.startsWith("<symbol")?i:o:i}(i,t,n),s))})}const pl=new Map,gl=new WeakMap;function ml(t,e,n,i){return dl(this,void 0,void 0,function*(){if(!t)return null;const r=cl(n);if(!r)return null;const o=hl(r),s=`resource:${o}`,a=gl.get(t);if(null==a?void 0:a.has(o))return o;const l=_a(t,s);if(l)return yield l;const c=(()=>dl(this,void 0,void 0,function*(){const n=pl.has(o)?pl.get(o)||null:yield fl(e,r,i);if(!n)return null;gl.has(t)||gl.set(t,new Map);const s=gl.get(t);if(s.has(o))return o;const a=nh(t);return n.id=o,a.appendChild(n),s.set(o,n),o}))();return Sa(t,s,c),yield c})}function yl(t){if("string"!=typeof t)return null;const e=t.trim();return e||null}function vl(t,e,n,i){var r,o;const s=n.icon;if(!s)return null;const{themeConfig:a}=i,l=null===(r=n.attributes)||void 0===r?void 0:r.icon;return function(t,e,n,i,r){return ml(t,"icon",n,r),function(t,e={}){const n=Zc("use",Object.assign(Object.assign({},e),{href:ul(t)}));return Uh(n),Vh.set(n,t),n}(n,Object.assign(Object.assign({},th(e,["id","x","y","width","height","fill","stroke","data-element-type","data-indexes"])),i))}(t,e,s,Ua(e,Object.assign(Object.assign({},null===(o=a.item)||void 0===o?void 0:o.icon),l)),n)}var xl=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function bl(t,e,n,i,r={}){if(!n)return null;const o=cl(n);if(!o)return null;const s=hl(o);r&&Object.keys(r).length>0&&Jc(e,r);const a=function(t,e,n){const i=`clip-${n}-${function(){if(crypto&&crypto.randomUUID)return crypto.randomUUID();return"xxxx-xxxx-4xxx-yxxx".replace(/[xy]/g,function(t){const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}()}`;if(t.querySelector(`#${i}`))return i;const r=nh(t),o=Zc("clipPath",{id:i}),s=e.cloneNode();return function(t,e){e.forEach(e=>{t.removeAttribute(e)})}(s,["id","data-illus-bounds","data-element-type"]),o.appendChild(s),r.appendChild(o),i}(t,e,s);ml(t,"illus",o,i);const{data:l,color:c}=o;return function(t,e,n){const{"clip-path":i}=e,r=xl(e,["clip-path"]),{x:o="0",y:s="0",width:a="0",height:l="0"}=r,c=Zc("rect",{id:`${t}-volume`,"data-element-type":"illus-volume",x:o,y:s,width:a,height:l,fill:"transparent"}),h=Zc("g",{"data-element-type":"illus-group","clip-path":i,id:`${t}-group`});h.appendChild(c);const u=Zc("use",Object.assign(Object.assign({id:t,fill:"lightgray"},r),{href:ul(n),"data-element-type":"illus"}));return h.appendChild(u),h}(s,Object.assign(Object.assign(Object.assign(Object.assign({},function(t){const e=t.getAttribute("data-illus-bounds");if(!e)return Object.assign({x:"0",y:"0",width:"0",height:"0"},th(t,["x","y","width","height"]));const[n,i,r,o]=e.split(" ");return{x:n,y:i,width:r,height:o}}(e)),c?{color:c}:{}),r),{"clip-path":`url(#${a})`}),l)}var wl=n("./node_modules/.pnpm/tinycolor2@1.6.0/node_modules/tinycolor2/esm/tinycolor.js");function Ml(t){return t.replace(/#|%|\.| |\/|\(|\)/g,"").replace(/,/g,"-")}function kl(t,e,n,i){const r=function(t,e){var n;if((null===(n=e.colors)||void 0===n?void 0:n.length)||!t)return e;const i=(0,wl.A)(t),r=Object.assign({},e);r.colors=i.isDark()?[t,i.lighten(20).toHexString()]:[i.darken(20).toHexString(),t],"angle"in e||"linear-gradient"!==r.type||(r.angle=225);return r}(t.getAttribute(i),n),{type:o,colors:s=[]}=r,a=s.length-1,l=s.map((t,e)=>Zc("stop","string"==typeof t?{offset:""+e/a,"stop-color":t}:{offset:`${t.offset}`,"stop-color":t.color})),c=function(t){const{type:e,colors:n=[]}=t,i=Ml(n.map(t=>"string"==typeof t?t:`${t.color}_${t.offset}`).join("-"));if("linear-gradient"===e){const{angle:n=0}=t;return`${e}-${i}-${n}`}return`${e}-${i}`}(r);if("linear-gradient"===o){const{angle:t=0}=r,[[n,i],[o,s]]=function(t){const e=Math.PI/180*t,n=Math.cos(e),i=Math.sin(e);return[[.5-n/2,.5-i/2],[.5+n/2,.5+i/2]]}(t),a=Zc("linearGradient",{id:c,x1:n,y1:i,x2:o,y2:s});l.forEach(t=>a.appendChild(t)),Cl(e,c,a)}else if("radial-gradient"===o){const t=Zc("radialGradient",{id:c});l.forEach(e=>t.appendChild(e)),Cl(e,c,t)}const h=t.getAttribute("fill"),u=t.getAttribute("stroke");Ar(h)&&t.setAttribute("fill",`url(#${c})`),Ar(u)&&t.setAttribute("stroke",`url(#${c})`)}function Cl(t,e,n){const i=nh(t);n.setAttribute("id",e);const r=i.querySelector(`#${e}`);r?r.replaceWith(n):i.appendChild(n)}const Ol=({scale:t=.5,backgroundColor:e,foregroundColor:n})=>{const i=Zc("pattern",{id:"pattern-diamond",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),r=Zc("rect",{width:"100%",height:"100%",fill:e}),o=Zc("path",{d:"M0,0 L20,20 M20,0 L0,20",stroke:n,"stroke-width":"1"});return i.appendChild(r),i.appendChild(o),i},jl=({scale:t=1,backgroundColor:e,foregroundColor:n})=>{const i=Zc("pattern",{id:"pattern-dot",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),r=Zc("rect",{width:"100%",height:"100%",fill:e}),o=Zc("circle",{cx:"5",cy:"5",r:"3",fill:n}),s=Zc("circle",{cx:"15",cy:"15",r:"3",fill:n});return i.appendChild(r),i.appendChild(o),i.appendChild(s),i},El=({scale:t=.3,backgroundColor:e,foregroundColor:n})=>{const i=Zc("pattern",{id:"pattern-hex",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),r=Zc("rect",{width:"100%",height:"100%",fill:e}),o=Zc("path",{d:"M10,0 L20,5 L20,15 L10,20 L0,15 L0,5 Z",fill:n});return i.appendChild(r),i.appendChild(o),i},_l=({scale:t=1,backgroundColor:e,foregroundColor:n})=>{const i=Zc("pattern",{id:"pattern-line",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),r=Zc("rect",{width:"100%",height:"100%",fill:e}),o=Zc("line",{x1:"7",y1:"-3",x2:"23",y2:"13",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"}),s=Zc("line",{x1:"-3",y1:"7",x2:"13",y2:"23",stroke:n,"stroke-width":6,"stroke-opacity":"0.5"});return i.appendChild(r),i.appendChild(o),i.appendChild(s),i},Sl=({scale:t=1,backgroundColor:e="#ffffff",foregroundColor:n="#000000"})=>{const i=Zc("pattern",{id:"pattern-mosaic",width:20,height:20,patternUnits:"userSpaceOnUse",patternTransform:`scale(${t})`}),r=Zc("rect",{width:"100%",height:"100%",fill:e});i.appendChild(r);for(let t=0;t<4;t++)for(let e=0;e<4;e++)if((e+t)%2==0){const r=Zc("rect",{x:5*e,y:5*t,width:5,height:5,fill:n});i.appendChild(r)}return i},$l=({scale:t=.3,backgroundColor:e,foregroundColor:n})=>{const i=Zc("pattern",{id:"pattern-square",width:"20",height:"20",patternTransform:`scale(${t})`,patternUnits:"userSpaceOnUse"}),r=Zc("rect",{width:"100%",height:"100%",fill:e}),o=Zc("path",{d:"M0,0 L20,0 L20,20 L0,20 Z",fill:n});return i.appendChild(r),i.appendChild(o),i};var Al=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const zl=new Map;function Pl(t,e){zl.has(t)&&console.warn(`Pattern ${t} will be overwritten`),zl.set(t,e)}for(const[t,e]of Object.entries(i))Pl(t,e);function Ll(t,e,n){const i=n.themeConfig.stylize;if(!i||"pattern"!==i.type)return;const{pattern:r}=i,o=Al(i,["pattern"]),s=zl.get(r);if(!s)return console.warn(`Pattern ${r} not found`);const{fill:a}=th(t,["fill","stroke"]),l=a,c=Object.assign({backgroundColor:l?(0,wl.A)(l).setAlpha(.5).toRgbString():l,foregroundColor:l},o),h=function(t){const{pattern:e,foregroundColor:n="unset",backgroundColor:i="unset",scale:r="unset"}=t;return Ml(`pattern-${e}-${n}-${i}-${r}`)}(Object.assign(Object.assign({},i),c));!function(t,e,n){const i=nh(t);n.setAttribute("id",e);const r=i.querySelector(`pattern#${e}`);r?r.replaceWith(n):i.appendChild(n)}(e,h,s(c)),Ar(a)&&(t.setAttribute("fill",`url(#${h})`),!t.getAttribute("stroke")&&a&&t.setAttribute("stroke",a))}function Il(t,e,n){if(t&&t.length){const[i,r]=e,o=Math.PI/180*n,s=Math.cos(o),a=Math.sin(o);for(const e of t){const[t,n]=e;e[0]=(t-i)*s-(n-r)*a+i,e[1]=(t-i)*a+(n-r)*s+r}}}function Tl(t,e){return t[0]===e[0]&&t[1]===e[1]}function Rl(t,e,n,i=1){const r=n,o=Math.max(e,.1),s=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,a=[0,0];if(r)for(const t of s)Il(t,a,r);const l=function(t,e,n){const i=[];for(const e of t){const t=[...e];Tl(t[0],t[t.length-1])||t.push([t[0][0],t[0][1]]),t.length>2&&i.push(t)}const r=[];e=Math.max(e,.1);const o=[];for(const t of i)for(let e=0;e<t.length-1;e++){const n=t[e],i=t[e+1];if(n[1]!==i[1]){const t=Math.min(n[1],i[1]);o.push({ymin:t,ymax:Math.max(n[1],i[1]),x:t===n[1]?n[0]:i[0],islope:(i[0]-n[0])/(i[1]-n[1])})}}if(o.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!o.length)return r;let s=[],a=o[0].ymin,l=0;for(;s.length||o.length;){if(o.length){let t=-1;for(let e=0;e<o.length&&!(o[e].ymin>a);e++)t=e;o.splice(0,t+1).forEach(t=>{s.push({s:a,edge:t})})}if(s=s.filter(t=>!(t.edge.ymax<=a)),s.sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==n||l%e==0)&&s.length>1)for(let t=0;t<s.length;t+=2){const e=t+1;if(e>=s.length)break;const n=s[e].edge;r.push([[Math.round(s[t].edge.x),a],[Math.round(n.x),a]])}a+=n,s.forEach(t=>{t.edge.x=t.edge.x+n*t.edge.islope}),l++}return r}(s,o,i);if(r){for(const t of s)Il(t,a,-r);!function(t,e,n){const i=[];t.forEach(t=>i.push(...t)),Il(i,e,n)}(l,a,-r)}return l}function Bl(t,e){var n;const i=e.hachureAngle+90;let r=e.hachureGap;r<0&&(r=4*e.strokeWidth),r=Math.round(Math.max(r,.1));let o=1;return e.roughness>=1&&((null===(n=e.randomizer)||void 0===n?void 0:n.next())||Math.random())>.7&&(o=r),Rl(t,r,i,o||1)}class Wl{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){const n=Bl(t,e);return{type:"fillSketch",ops:this.renderLines(n,e)}}renderLines(t,e){const n=[];for(const i of t)n.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],e));return n}}function Hl(t){const e=t[0],n=t[1];return Math.sqrt(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))}class Nl extends Wl{fillPolygons(t,e){let n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);const i=Bl(t,Object.assign({},e,{hachureGap:n})),r=Math.PI/180*e.hachureAngle,o=[],s=.5*n*Math.cos(r),a=.5*n*Math.sin(r);for(const[t,e]of i)Hl([t,e])&&o.push([[t[0]-s,t[1]+a],[...e]],[[t[0]+s,t[1]-a],[...e]]);return{type:"fillSketch",ops:this.renderLines(o,e)}}}class Fl extends Wl{fillPolygons(t,e){const n=this._fillPolygons(t,e),i=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),r=this._fillPolygons(t,i);return n.ops=n.ops.concat(r.ops),n}}class Dl{constructor(t){this.helper=t}fillPolygons(t,e){const n=Bl(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(n,e)}dotsOnLines(t,e){const n=[];let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.max(i,.1);let r=e.fillWeight;r<0&&(r=e.strokeWidth/2);const o=i/4;for(const s of t){const t=Hl(s),a=Math.ceil(t/i)-1,l=t-a*i,c=(s[0][0]+s[1][0])/2-i/4,h=Math.min(s[0][1],s[1][1]);for(let t=0;t<a;t++){const s=h+l+t*i,a=c-o+2*Math.random()*o,u=s-o+2*Math.random()*o,d=this.helper.ellipse(a,u,r,r,e);n.push(...d.ops)}}return{type:"fillSketch",ops:n}}}class Vl{constructor(t){this.helper=t}fillPolygons(t,e){const n=Bl(t,e);return{type:"fillSketch",ops:this.dashedLine(n,e)}}dashedLine(t,e){const n=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,i=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,r=[];return t.forEach(t=>{const o=Hl(t),s=Math.floor(o/(n+i)),a=(o+i-s*(n+i))/2;let l=t[0],c=t[1];l[0]>c[0]&&(l=t[1],c=t[0]);const h=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let t=0;t<s;t++){const o=t*(n+i),s=o+n,c=[l[0]+o*Math.cos(h)+a*Math.cos(h),l[1]+o*Math.sin(h)+a*Math.sin(h)],u=[l[0]+s*Math.cos(h)+a*Math.cos(h),l[1]+s*Math.sin(h)+a*Math.sin(h)];r.push(...this.helper.doubleLineOps(c[0],c[1],u[0],u[1],e))}}),r}}class Ul{constructor(t){this.helper=t}fillPolygons(t,e){const n=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,i=e.zigzagOffset<0?n:e.zigzagOffset,r=Bl(t,e=Object.assign({},e,{hachureGap:n+i}));return{type:"fillSketch",ops:this.zigzagLines(r,i,e)}}zigzagLines(t,e,n){const i=[];return t.forEach(t=>{const r=Hl(t),o=Math.round(r/(2*e));let s=t[0],a=t[1];s[0]>a[0]&&(s=t[1],a=t[0]);const l=Math.atan((a[1]-s[1])/(a[0]-s[0]));for(let t=0;t<o;t++){const r=2*t*e,o=2*(t+1)*e,a=Math.sqrt(2*Math.pow(e,2)),c=[s[0]+r*Math.cos(l),s[1]+r*Math.sin(l)],h=[s[0]+o*Math.cos(l),s[1]+o*Math.sin(l)],u=[c[0]+a*Math.cos(l+Math.PI/4),c[1]+a*Math.sin(l+Math.PI/4)];i.push(...this.helper.doubleLineOps(c[0],c[1],u[0],u[1],n),...this.helper.doubleLineOps(u[0],u[1],h[0],h[1],n))}}),i}}const Yl={};class ql{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const Gl={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function Xl(t,e){return t.type===e}function Kl(t){const e=[],n=function(t){const e=new Array;for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t);let i="BOD",r=0,o=n[r];for(;!Xl(o,2);){let s=0;const a=[];if("BOD"===i){if("M"!==o.text&&"m"!==o.text)return Kl("M0,0"+t);r++,s=Gl[o.text],i=o.text}else Xl(o,1)?s=Gl[i]:(r++,s=Gl[o.text],i=o.text);if(!(r+s<n.length))throw new Error("Path data ended short");for(let t=r;t<r+s;t++){const e=n[t];if(!Xl(e,1))throw new Error("Param not a number: "+i+","+e.text);a[a.length]=+e.text}if("number"!=typeof Gl[i])throw new Error("Bad segment: "+i);e.push({key:i,data:a}),r+=s,o=n[r],"M"===i&&(i="L"),"m"===i&&(i="l")}return e}function Zl(t){let e=0,n=0,i=0,r=0;const o=[];for(const{key:s,data:a}of t)switch(s){case"M":o.push({key:"M",data:[...a]}),[e,n]=a,[i,r]=a;break;case"m":e+=a[0],n+=a[1],o.push({key:"M",data:[e,n]}),i=e,r=n;break;case"L":o.push({key:"L",data:[...a]}),[e,n]=a;break;case"l":e+=a[0],n+=a[1],o.push({key:"L",data:[e,n]});break;case"C":o.push({key:"C",data:[...a]}),e=a[4],n=a[5];break;case"c":{const t=a.map((t,i)=>i%2?t+n:t+e);o.push({key:"C",data:t}),e=t[4],n=t[5];break}case"Q":o.push({key:"Q",data:[...a]}),e=a[2],n=a[3];break;case"q":{const t=a.map((t,i)=>i%2?t+n:t+e);o.push({key:"Q",data:t}),e=t[2],n=t[3];break}case"A":o.push({key:"A",data:[...a]}),e=a[5],n=a[6];break;case"a":e+=a[5],n+=a[6],o.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],e,n]});break;case"H":o.push({key:"H",data:[...a]}),e=a[0];break;case"h":e+=a[0],o.push({key:"H",data:[e]});break;case"V":o.push({key:"V",data:[...a]}),n=a[0];break;case"v":n+=a[0],o.push({key:"V",data:[n]});break;case"S":o.push({key:"S",data:[...a]}),e=a[2],n=a[3];break;case"s":{const t=a.map((t,i)=>i%2?t+n:t+e);o.push({key:"S",data:t}),e=t[2],n=t[3];break}case"T":o.push({key:"T",data:[...a]}),e=a[0],n=a[1];break;case"t":e+=a[0],n+=a[1],o.push({key:"T",data:[e,n]});break;case"Z":case"z":o.push({key:"Z",data:[]}),e=i,n=r}return o}function Ql(t){const e=[];let n="",i=0,r=0,o=0,s=0,a=0,l=0;for(const{key:c,data:h}of t){switch(c){case"M":e.push({key:"M",data:[...h]}),[i,r]=h,[o,s]=h;break;case"C":e.push({key:"C",data:[...h]}),i=h[4],r=h[5],a=h[2],l=h[3];break;case"L":e.push({key:"L",data:[...h]}),[i,r]=h;break;case"H":i=h[0],e.push({key:"L",data:[i,r]});break;case"V":r=h[0],e.push({key:"L",data:[i,r]});break;case"S":{let t=0,o=0;"C"===n||"S"===n?(t=i+(i-a),o=r+(r-l)):(t=i,o=r),e.push({key:"C",data:[t,o,...h]}),a=h[0],l=h[1],i=h[2],r=h[3];break}case"T":{const[t,o]=h;let s=0,c=0;"Q"===n||"T"===n?(s=i+(i-a),c=r+(r-l)):(s=i,c=r);e.push({key:"C",data:[i+2*(s-i)/3,r+2*(c-r)/3,t+2*(s-t)/3,o+2*(c-o)/3,t,o]}),a=s,l=c,i=t,r=o;break}case"Q":{const[t,n,o,s]=h;e.push({key:"C",data:[i+2*(t-i)/3,r+2*(n-r)/3,o+2*(t-o)/3,s+2*(n-s)/3,o,s]}),a=t,l=n,i=o,r=s;break}case"A":{const t=Math.abs(h[0]),n=Math.abs(h[1]),o=h[2],s=h[3],a=h[4],l=h[5],c=h[6];0===t||0===n?(e.push({key:"C",data:[i,r,l,c,l,c]}),i=l,r=c):i===l&&r===c||(tc(i,r,l,c,t,n,o,s,a).forEach(function(t){e.push({key:"C",data:t})}),i=l,r=c);break}case"Z":e.push({key:"Z",data:[]}),i=o,r=s}n=c}return e}function Jl(t,e,n){return[t*Math.cos(n)-e*Math.sin(n),t*Math.sin(n)+e*Math.cos(n)]}function tc(t,e,n,i,r,o,s,a,l,c){const h=Math.PI*s/180;let u=[],d=0,f=0,p=0,g=0;if(c)[d,f,p,g]=c;else{[t,e]=Jl(t,e,-h),[n,i]=Jl(n,i,-h);const s=(t-n)/2,c=(e-i)/2;let u=s*s/(r*r)+c*c/(o*o);u>1&&(u=Math.sqrt(u),r*=u,o*=u);const m=r*r,y=o*o,v=(a===l?-1:1)*Math.sqrt(Math.abs((m*y-m*c*c-y*s*s)/(m*c*c+y*s*s)));p=v*r*c/o+(t+n)/2,g=v*-o*s/r+(e+i)/2,d=Math.asin(parseFloat(((e-g)/o).toFixed(9))),f=Math.asin(parseFloat(((i-g)/o).toFixed(9))),t<p&&(d=Math.PI-d),n<p&&(f=Math.PI-f),d<0&&(d=2*Math.PI+d),f<0&&(f=2*Math.PI+f),l&&d>f&&(d-=2*Math.PI),!l&&f>d&&(f-=2*Math.PI)}let m=f-d;if(Math.abs(m)>120*Math.PI/180){const t=f,e=n,a=i;f=l&&f>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,u=tc(n=p+r*Math.cos(f),i=g+o*Math.sin(f),e,a,r,o,s,0,l,[f,t,p,g])}m=f-d;const y=Math.cos(d),v=Math.sin(d),x=Math.cos(f),b=Math.sin(f),w=Math.tan(m/4),M=4/3*r*w,k=4/3*o*w,C=[t,e],O=[t+M*v,e-k*y],j=[n+M*b,i-k*x],E=[n,i];if(O[0]=2*C[0]-O[0],O[1]=2*C[1]-O[1],c)return[O,j,E].concat(u);{u=[O,j,E].concat(u);const t=[];for(let e=0;e<u.length;e+=3){const n=Jl(u[e][0],u[e][1],h),i=Jl(u[e+1][0],u[e+1][1],h),r=Jl(u[e+2][0],u[e+2][1],h);t.push([n[0],n[1],i[0],i[1],r[0],r[1]])}return t}}const ec={randOffset:function(t,e){return pc(t,e)},randOffsetWithRange:function(t,e,n){return fc(t,e,n)},ellipse:function(t,e,n,i,r){return sc(t,e,r,oc(n,i,r)).opset},doubleLineOps:function(t,e,n,i,r){return gc(t,e,n,i,r,!0)}};function nc(t,e,n,i,r){return{type:"path",ops:gc(t,e,n,i,r)}}function ic(t,e,n){const i=(t||[]).length;if(i>2){const r=[];for(let e=0;e<i-1;e++)r.push(...gc(t[e][0],t[e][1],t[e+1][0],t[e+1][1],n));return e&&r.push(...gc(t[i-1][0],t[i-1][1],t[0][0],t[0][1],n)),{type:"path",ops:r}}return 2===i?nc(t[0][0],t[0][1],t[1][0],t[1][1],n):{type:"path",ops:[]}}function rc(t,e){if(t.length){const n="number"==typeof t[0][0]?[t]:t,i=yc(n[0],1*(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:yc(n[0],1.5*(1+.22*e.roughness),uc(e));for(let t=1;t<n.length;t++){const o=n[t];if(o.length){const t=yc(o,1*(1+.2*e.roughness),e),n=e.disableMultiStroke?[]:yc(o,1.5*(1+.22*e.roughness),uc(e));for(const e of t)"move"!==e.op&&i.push(e);for(const t of n)"move"!==t.op&&r.push(t)}}return{type:"path",ops:i.concat(r)}}return{type:"path",ops:[]}}function oc(t,e,n){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),r=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*i)),o=2*Math.PI/r;let s=Math.abs(t/2),a=Math.abs(e/2);const l=1-n.curveFitting;return s+=pc(s*l,n),a+=pc(a*l,n),{increment:o,rx:s,ry:a}}function sc(t,e,n,i){const[r,o]=xc(i.increment,t,e,i.rx,i.ry,1,i.increment*fc(.1,fc(.4,1,n),n),n);let s=vc(r,null,n);if(!n.disableMultiStroke&&0!==n.roughness){const[r]=xc(i.increment,t,e,i.rx,i.ry,1.5,0,n),o=vc(r,null,n);s=s.concat(o)}return{estimatedPoints:o,opset:{type:"path",ops:s}}}function ac(t,e,n,i,r,o,s,a,l){const c=t,h=e;let u=Math.abs(n/2),d=Math.abs(i/2);u+=pc(.01*u,l),d+=pc(.01*d,l);let f=r,p=o;for(;f<0;)f+=2*Math.PI,p+=2*Math.PI;p-f>2*Math.PI&&(f=0,p=2*Math.PI);const g=2*Math.PI/l.curveStepCount,m=Math.min(g/2,(p-f)/2),y=bc(m,c,h,u,d,f,p,1,l);if(!l.disableMultiStroke){const t=bc(m,c,h,u,d,f,p,1.5,l);y.push(...t)}return s&&(a?y.push(...gc(c,h,c+u*Math.cos(f),h+d*Math.sin(f),l),...gc(c,h,c+u*Math.cos(p),h+d*Math.sin(p),l)):y.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(f),h+d*Math.sin(f)]})),{type:"path",ops:y}}function lc(t,e){const n=Ql(Zl(Kl(t))),i=[];let r=[0,0],o=[0,0];for(const{key:t,data:s}of n)switch(t){case"M":o=[s[0],s[1]],r=[s[0],s[1]];break;case"L":i.push(...gc(o[0],o[1],s[0],s[1],e)),o=[s[0],s[1]];break;case"C":{const[t,n,r,a,l,c]=s;i.push(...wc(t,n,r,a,l,c,o,e)),o=[l,c];break}case"Z":i.push(...gc(o[0],o[1],r[0],r[1],e)),o=[r[0],r[1]]}return{type:"path",ops:i}}function cc(t,e){const n=[];for(const i of t)if(i.length){const t=e.maxRandomnessOffset||0,r=i.length;if(r>2){n.push({op:"move",data:[i[0][0]+pc(t,e),i[0][1]+pc(t,e)]});for(let o=1;o<r;o++)n.push({op:"lineTo",data:[i[o][0]+pc(t,e),i[o][1]+pc(t,e)]})}}return{type:"fillPath",ops:n}}function hc(t,e){return function(t,e){let n=t.fillStyle||"hachure";if(!Yl[n])switch(n){case"zigzag":Yl[n]||(Yl[n]=new Nl(e));break;case"cross-hatch":Yl[n]||(Yl[n]=new Fl(e));break;case"dots":Yl[n]||(Yl[n]=new Dl(e));break;case"dashed":Yl[n]||(Yl[n]=new Vl(e));break;case"zigzag-line":Yl[n]||(Yl[n]=new Ul(e));break;default:n="hachure",Yl[n]||(Yl[n]=new Wl(e))}return Yl[n]}(e,ec).fillPolygons(t,e)}function uc(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function dc(t){return t.randomizer||(t.randomizer=new ql(t.seed||0)),t.randomizer.next()}function fc(t,e,n,i=1){return n.roughness*i*(dc(n)*(e-t)+t)}function pc(t,e,n=1){return fc(-t,t,e,n)}function gc(t,e,n,i,r,o=!1){const s=o?r.disableMultiStrokeFill:r.disableMultiStroke,a=mc(t,e,n,i,r,!0,!1);if(s)return a;const l=mc(t,e,n,i,r,!0,!0);return a.concat(l)}function mc(t,e,n,i,r,o,s){const a=Math.pow(t-n,2)+Math.pow(e-i,2),l=Math.sqrt(a);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let h=r.maxRandomnessOffset||0;h*h*100>a&&(h=l/10);const u=h/2,d=.2+.2*dc(r);let f=r.bowing*r.maxRandomnessOffset*(i-e)/200,p=r.bowing*r.maxRandomnessOffset*(t-n)/200;f=pc(f,r,c),p=pc(p,r,c);const g=[],m=()=>pc(u,r,c),y=()=>pc(h,r,c),v=r.preserveVertices;return o&&g.push(s?{op:"move",data:[t+(v?0:m()),e+(v?0:m())]}:{op:"move",data:[t+(v?0:pc(h,r,c)),e+(v?0:pc(h,r,c))]}),g.push(s?{op:"bcurveTo",data:[f+t+(n-t)*d+m(),p+e+(i-e)*d+m(),f+t+2*(n-t)*d+m(),p+e+2*(i-e)*d+m(),n+(v?0:m()),i+(v?0:m())]}:{op:"bcurveTo",data:[f+t+(n-t)*d+y(),p+e+(i-e)*d+y(),f+t+2*(n-t)*d+y(),p+e+2*(i-e)*d+y(),n+(v?0:y()),i+(v?0:y())]}),g}function yc(t,e,n){if(!t.length)return[];const i=[];i.push([t[0][0]+pc(e,n),t[0][1]+pc(e,n)]),i.push([t[0][0]+pc(e,n),t[0][1]+pc(e,n)]);for(let r=1;r<t.length;r++)i.push([t[r][0]+pc(e,n),t[r][1]+pc(e,n)]),r===t.length-1&&i.push([t[r][0]+pc(e,n),t[r][1]+pc(e,n)]);return vc(i,null,n)}function vc(t,e,n){const i=t.length,r=[];if(i>3){const o=[],s=1-n.curveTightness;r.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<i;e++){const n=t[e];o[0]=[n[0],n[1]],o[1]=[n[0]+(s*t[e+1][0]-s*t[e-1][0])/6,n[1]+(s*t[e+1][1]-s*t[e-1][1])/6],o[2]=[t[e+1][0]+(s*t[e][0]-s*t[e+2][0])/6,t[e+1][1]+(s*t[e][1]-s*t[e+2][1])/6],o[3]=[t[e+1][0],t[e+1][1]],r.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}if(e&&2===e.length){const t=n.maxRandomnessOffset;r.push({op:"lineTo",data:[e[0]+pc(t,n),e[1]+pc(t,n)]})}}else 3===i?(r.push({op:"move",data:[t[1][0],t[1][1]]}),r.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===i&&r.push(...mc(t[0][0],t[0][1],t[1][0],t[1][1],n,!0,!0));return r}function xc(t,e,n,i,r,o,s,a){const l=[],c=[];if(0===a.roughness){t/=4,c.push([e+i*Math.cos(-t),n+r*Math.sin(-t)]);for(let o=0;o<=2*Math.PI;o+=t){const t=[e+i*Math.cos(o),n+r*Math.sin(o)];l.push(t),c.push(t)}c.push([e+i*Math.cos(0),n+r*Math.sin(0)]),c.push([e+i*Math.cos(t),n+r*Math.sin(t)])}else{const h=pc(.5,a)-Math.PI/2;c.push([pc(o,a)+e+.9*i*Math.cos(h-t),pc(o,a)+n+.9*r*Math.sin(h-t)]);const u=2*Math.PI+h-.01;for(let s=h;s<u;s+=t){const t=[pc(o,a)+e+i*Math.cos(s),pc(o,a)+n+r*Math.sin(s)];l.push(t),c.push(t)}c.push([pc(o,a)+e+i*Math.cos(h+2*Math.PI+.5*s),pc(o,a)+n+r*Math.sin(h+2*Math.PI+.5*s)]),c.push([pc(o,a)+e+.98*i*Math.cos(h+s),pc(o,a)+n+.98*r*Math.sin(h+s)]),c.push([pc(o,a)+e+.9*i*Math.cos(h+.5*s),pc(o,a)+n+.9*r*Math.sin(h+.5*s)])}return[c,l]}function bc(t,e,n,i,r,o,s,a,l){const c=o+pc(.1,l),h=[];h.push([pc(a,l)+e+.9*i*Math.cos(c-t),pc(a,l)+n+.9*r*Math.sin(c-t)]);for(let o=c;o<=s;o+=t)h.push([pc(a,l)+e+i*Math.cos(o),pc(a,l)+n+r*Math.sin(o)]);return h.push([e+i*Math.cos(s),n+r*Math.sin(s)]),h.push([e+i*Math.cos(s),n+r*Math.sin(s)]),vc(h,null,l)}function wc(t,e,n,i,r,o,s,a){const l=[],c=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let h=[0,0];const u=a.disableMultiStroke?1:2,d=a.preserveVertices;for(let f=0;f<u;f++)l.push(0===f?{op:"move",data:[s[0],s[1]]}:{op:"move",data:[s[0]+(d?0:pc(c[0],a)),s[1]+(d?0:pc(c[0],a))]}),h=d?[r,o]:[r+pc(c[f],a),o+pc(c[f],a)],l.push({op:"bcurveTo",data:[t+pc(c[f],a),e+pc(c[f],a),n+pc(c[f],a),i+pc(c[f],a),h[0],h[1]]});return l}function Mc(t){return[...t]}function kc(t,e=0){const n=t.length;if(n<3)throw new Error("A curve must have at least three points.");const i=[];if(3===n)i.push(Mc(t[0]),Mc(t[1]),Mc(t[2]),Mc(t[2]));else{const n=[];n.push(t[0],t[0]);for(let e=1;e<t.length;e++)n.push(t[e]),e===t.length-1&&n.push(t[e]);const r=[],o=1-e;i.push(Mc(n[0]));for(let t=1;t+2<n.length;t++){const e=n[t];r[0]=[e[0],e[1]],r[1]=[e[0]+(o*n[t+1][0]-o*n[t-1][0])/6,e[1]+(o*n[t+1][1]-o*n[t-1][1])/6],r[2]=[n[t+1][0]+(o*n[t][0]-o*n[t+2][0])/6,n[t+1][1]+(o*n[t][1]-o*n[t+2][1])/6],r[3]=[n[t+1][0],n[t+1][1]],i.push(r[1],r[2],r[3])}}return i}function Cc(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function Oc(t,e,n){const i=Cc(e,n);if(0===i)return Cc(t,e);let r=((t[0]-e[0])*(n[0]-e[0])+(t[1]-e[1])*(n[1]-e[1]))/i;return r=Math.max(0,Math.min(1,r)),Cc(t,jc(e,n,r))}function jc(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function Ec(t,e,n,i){const r=i||[];if(function(t,e){const n=t[e+0],i=t[e+1],r=t[e+2],o=t[e+3];let s=3*i[0]-2*n[0]-o[0];s*=s;let a=3*i[1]-2*n[1]-o[1];a*=a;let l=3*r[0]-2*o[0]-n[0];l*=l;let c=3*r[1]-2*o[1]-n[1];return c*=c,s<l&&(s=l),a<c&&(a=c),s+a}(t,e)<n){const n=t[e+0];r.length?Math.sqrt(Cc(r[r.length-1],n))>1&&r.push(n):r.push(n),r.push(t[e+3])}else{const i=.5,o=t[e+0],s=t[e+1],a=t[e+2],l=t[e+3],c=jc(o,s,i),h=jc(s,a,i),u=jc(a,l,i),d=jc(c,h,i),f=jc(h,u,i),p=jc(d,f,i);Ec([o,c,d,p],0,n,r),Ec([p,f,u,l],0,n,r)}return r}function _c(t,e){return Sc(t,0,t.length,e)}function Sc(t,e,n,i,r){const o=r||[],s=t[e],a=t[n-1];let l=0,c=1;for(let i=e+1;i<n-1;++i){const e=Oc(t[i],s,a);e>l&&(l=e,c=i)}return Math.sqrt(l)>i?(Sc(t,e,c+1,i,o),Sc(t,c,n,i,o)):(o.length||o.push(s),o.push(a)),o}function $c(t,e=.15,n){const i=[],r=(t.length-1)/3;for(let n=0;n<r;n++)Ec(t,3*n,e,i);return n&&n>0?Sc(i,0,i.length,n):i}const Ac="none";class zc{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,n){return{shape:t,sets:e||[],options:n||this.defaultOptions}}line(t,e,n,i,r){const o=this._o(r);return this._d("line",[nc(t,e,n,i,o)],o)}rectangle(t,e,n,i,r){const o=this._o(r),s=[],a=function(t,e,n,i,r){return function(t,e){return ic(t,!0,e)}([[t,e],[t+n,e],[t+n,e+i],[t,e+i]],r)}(t,e,n,i,o);if(o.fill){const r=[[t,e],[t+n,e],[t+n,e+i],[t,e+i]];s.push("solid"===o.fillStyle?cc([r],o):hc([r],o))}return o.stroke!==Ac&&s.push(a),this._d("rectangle",s,o)}ellipse(t,e,n,i,r){const o=this._o(r),s=[],a=oc(n,i,o),l=sc(t,e,o,a);if(o.fill)if("solid"===o.fillStyle){const n=sc(t,e,o,a).opset;n.type="fillPath",s.push(n)}else s.push(hc([l.estimatedPoints],o));return o.stroke!==Ac&&s.push(l.opset),this._d("ellipse",s,o)}circle(t,e,n,i){const r=this.ellipse(t,e,n,n,i);return r.shape="circle",r}linearPath(t,e){const n=this._o(e);return this._d("linearPath",[ic(t,!1,n)],n)}arc(t,e,n,i,r,o,s=!1,a){const l=this._o(a),c=[],h=ac(t,e,n,i,r,o,s,!0,l);if(s&&l.fill)if("solid"===l.fillStyle){const s=Object.assign({},l);s.disableMultiStroke=!0;const a=ac(t,e,n,i,r,o,!0,!1,s);a.type="fillPath",c.push(a)}else c.push(function(t,e,n,i,r,o,s){const a=t,l=e;let c=Math.abs(n/2),h=Math.abs(i/2);c+=pc(.01*c,s),h+=pc(.01*h,s);let u=r,d=o;for(;u<0;)u+=2*Math.PI,d+=2*Math.PI;d-u>2*Math.PI&&(u=0,d=2*Math.PI);const f=(d-u)/s.curveStepCount,p=[];for(let t=u;t<=d;t+=f)p.push([a+c*Math.cos(t),l+h*Math.sin(t)]);return p.push([a+c*Math.cos(d),l+h*Math.sin(d)]),p.push([a,l]),hc([p],s)}(t,e,n,i,r,o,l));return l.stroke!==Ac&&c.push(h),this._d("arc",c,l)}curve(t,e){const n=this._o(e),i=[],r=rc(t,n);if(n.fill&&n.fill!==Ac)if("solid"===n.fillStyle){const e=rc(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{const e=[],r=t;if(r.length){const t="number"==typeof r[0][0]?[r]:r;for(const i of t)i.length<3?e.push(...i):3===i.length?e.push(...$c(kc([i[0],i[0],i[1],i[2]]),10,(1+n.roughness)/2)):e.push(...$c(kc(i),10,(1+n.roughness)/2))}e.length&&i.push(hc([e],n))}return n.stroke!==Ac&&i.push(r),this._d("curve",i,n)}polygon(t,e){const n=this._o(e),i=[],r=ic(t,!0,n);return n.fill&&i.push("solid"===n.fillStyle?cc([t],n):hc([t],n)),n.stroke!==Ac&&i.push(r),this._d("polygon",i,n)}path(t,e){const n=this._o(e),i=[];if(!t)return this._d("path",i,n);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const r=n.fill&&"transparent"!==n.fill&&n.fill!==Ac,o=n.stroke!==Ac,s=!!(n.simplification&&n.simplification<1),a=function(t,e,n){const i=Ql(Zl(Kl(t))),r=[];let o=[],s=[0,0],a=[];const l=()=>{a.length>=4&&o.push(...$c(a,1)),a=[]},c=()=>{l(),o.length&&(r.push(o),o=[])};for(const{key:t,data:e}of i)switch(t){case"M":c(),s=[e[0],e[1]],o.push(s);break;case"L":l(),o.push([e[0],e[1]]);break;case"C":if(!a.length){const t=o.length?o[o.length-1]:s;a.push([t[0],t[1]])}a.push([e[0],e[1]]),a.push([e[2],e[3]]),a.push([e[4],e[5]]);break;case"Z":l(),o.push([s[0],s[1]])}if(c(),!n)return r;const h=[];for(const t of r){const e=_c(t,n);e.length&&h.push(e)}return h}(t,0,s?4-4*(n.simplification||1):(1+n.roughness)/2),l=lc(t,n);if(r)if("solid"===n.fillStyle)if(1===a.length){const e=lc(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else i.push(cc(a,n));else i.push(hc(a,n));return o&&(s?a.forEach(t=>{i.push(ic(t,!1,n))}):i.push(l)),this._d("path",i,n)}opsToPath(t,e){let n="";for(const i of t.ops){const t="number"==typeof e&&e>=0?i.data.map(t=>+t.toFixed(e)):i.data;switch(i.op){case"move":n+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":n+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":n+=`L${t[0]} ${t[1]} `}}return n.trim()}toPaths(t){const e=t.sets||[],n=t.options||this.defaultOptions,i=[];for(const t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:Ac};break;case"fillPath":e={d:this.opsToPath(t),stroke:Ac,strokeWidth:0,fill:n.fill||Ac};break;case"fillSketch":e=this.fillSketch(t,n)}e&&i.push(e)}return i}fillSketch(t,e){let n=e.fillWeight;return n<0&&(n=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||Ac,strokeWidth:n,fill:Ac}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}const Pc="http://www.w3.org/2000/svg";class Lc{constructor(t,e){this.svg=t,this.gen=new zc(e)}draw(t){const e=t.sets||[],n=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,r=i.createElementNS(Pc,"g"),o=t.options.fixedDecimalPlaceDigits;for(const s of e){let e=null;switch(s.type){case"path":e=i.createElementNS(Pc,"path"),e.setAttribute("d",this.opsToPath(s,o)),e.setAttribute("stroke",n.stroke),e.setAttribute("stroke-width",n.strokeWidth+""),e.setAttribute("fill","none"),n.strokeLineDash&&e.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":e=i.createElementNS(Pc,"path"),e.setAttribute("d",this.opsToPath(s,o)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",n.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(i,s,n)}e&&r.appendChild(e)}return r}fillSketch(t,e,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2);const r=t.createElementNS(Pc,"path");return r.setAttribute("d",this.opsToPath(e,n.fixedDecimalPlaceDigits)),r.setAttribute("stroke",n.fill||""),r.setAttribute("stroke-width",i+""),r.setAttribute("fill","none"),n.fillLineDash&&r.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&r.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),r}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,n,i,r){const o=this.gen.line(t,e,n,i,r);return this.draw(o)}rectangle(t,e,n,i,r){const o=this.gen.rectangle(t,e,n,i,r);return this.draw(o)}ellipse(t,e,n,i,r){const o=this.gen.ellipse(t,e,n,i,r);return this.draw(o)}circle(t,e,n,i){const r=this.gen.circle(t,e,n,i);return this.draw(r)}linearPath(t,e){const n=this.gen.linearPath(t,e);return this.draw(n)}polygon(t,e){const n=this.gen.polygon(t,e);return this.draw(n)}arc(t,e,n,i,r,o,s=!1,a){const l=this.gen.arc(t,e,n,i,r,o,s,a);return this.draw(l)}curve(t,e){const n=this.gen.curve(t,e);return this.draw(n)}path(t,e){const n=this.gen.path(t,e);return this.draw(n)}}var Ic=(t,e)=>new Lc(t,e);function Tc(t,e,n){if(!t||!e)return void console.warn("Invalid node or svg element");const i=Ic(e,{options:{seed:1e3}}),r=Zc("g");t.hasAttribute("transform")&&r.setAttribute("transform",t.getAttribute("transform")||"");const o=t.cloneNode();Jc(o,{opacity:.5}),o.hasAttribute("transform")&&o.removeAttribute("transform"),o.dataset.elementType="rough-volume",r.appendChild(o);const s=function(t,e,n){const i=e.nodeName.toLowerCase(),r=(t,e)=>{const i=th(t,[...e,"fill","fill-opacity","stroke","stroke-opacity","stroke-width","stroke-dasharray","stroke-linecap","stroke-linejoin","opacity","filter","clip-path","mask"],!0),r={},o=Object.assign({},n),s={};e.forEach(t=>{void 0!==i[t]&&(r[t]=i[t])});const{fill:a,"fill-opacity":l,stroke:c,"stroke-opacity":h,"stroke-width":u,"stroke-dasharray":d,"stroke-linecap":f,"stroke-linejoin":p,opacity:g,filter:m,"clip-path":y,mask:v}=i;if(o.fill=a||"none",o.stroke=c||(a&&"none"!==a?a:"currentColor"),u&&(o.strokeWidth=parseFloat(u)),d&&"none"!==d){const t=d.split(/[\s,]+/).map(t=>parseFloat(t)).filter(t=>!isNaN(t));t.length>0&&(o.strokeLineDash=t)}return l&&(s.fillOpacity=parseFloat(l)),h&&(s.strokeOpacity=parseFloat(h)),g&&(s.opacity=parseFloat(g)),f&&(s.strokeLinecap=f),p&&(s.strokeLinejoin=p),d&&"none"!==d&&(s.strokeDasharray=d),m&&(s.filter=m),y&&(s.clipPath=y),v&&(s.mask=v),[r,o,s]};try{let n=null,o={};switch(i){case"circle":{const[i,s,a]=r(e,["cx","cy","r"]),l=parseFloat(i.cx)||0,c=parseFloat(i.cy)||0,h=parseFloat(i.r)||0;n=t.circle(l,c,2*h,s),o=a;break}case"ellipse":{const[i,s,a]=r(e,["cx","cy","rx","ry"]),l=parseFloat(i.cx)||0,c=parseFloat(i.cy)||0,h=parseFloat(i.rx)||0,u=parseFloat(i.ry)||0;n=t.ellipse(l,c,2*h,2*u,s),o=a;break}case"line":{const[i,s,a]=r(e,["x1","y1","x2","y2"]),l=parseFloat(i.x1)||0,c=parseFloat(i.y1)||0,h=parseFloat(i.x2)||0,u=parseFloat(i.y2)||0;n=t.line(l,c,h,u,s),o=a;break}case"rect":{const[i,s,a]=r(e,["x","y","width","height","rx","ry"]),l=parseFloat(i.x)||0,c=parseFloat(i.y)||0,h=parseFloat(i.width)||0,u=parseFloat(i.height)||0,d=parseFloat(i.rx)||0,f=parseFloat(i.ry)||0;if(d>0||f>0){const e=function(t,e,n,i,r,o){return r=Math.min(r,n/2),o=Math.min(o,i/2),`\n M ${t+r} ${e}\n L ${t+n-r} ${e}\n A ${r} ${o} 0 0 1 ${t+n} ${e+o}\n L ${t+n} ${e+i-o}\n A ${r} ${o} 0 0 1 ${t+n-r} ${e+i}\n L ${t+r} ${e+i}\n A ${r} ${o} 0 0 1 ${t} ${e+i-o}\n L ${t} ${e+o}\n A ${r} ${o} 0 0 1 ${t+r} ${e}\n Z\n `.replace(/\s+/g," ").trim()}(l,c,h,u,d||f,f||d);n=t.path(e,s)}else n=t.rectangle(l,c,h,u,s);o=a;break}case"path":{const[i,s,a]=r(e,["d"]),l=i.d||"";if(!l)return console.warn("Path element has no d attribute"),null;n=t.path(l,s),o=a;break}case"polygon":{const[i,s,a]=r(e,["points"]),l=Rc(i.points||"");if(l.length<3)return console.warn("Polygon needs at least 3 points"),null;n=t.polygon(l,s),o=a;break}case"polyline":{const[i,s,a]=r(e,["points"]),l=Rc(i.points||"");if(l.length<2)return console.warn("Polyline needs at least 2 points"),null;n=t.linearPath(l,s),o=a;break}default:return console.warn(`Unsupported shape type: ${i}`),null}return n?{element:n,svgAttributes:o}:null}catch(t){return console.error(`Error creating rough shape for ${i}:`,t),null}}(i,t,n);if(s){const{element:t,svgAttributes:e}=s;t.dataset.elementType="rough-element",t.style.pointerEvents="none",function(t,e){void 0!==e.opacity&&t.setAttribute("opacity",String(e.opacity));void 0!==e.fillOpacity&&t.setAttribute("fill-opacity",String(e.fillOpacity));void 0!==e.strokeOpacity&&t.setAttribute("stroke-opacity",String(e.strokeOpacity));e.strokeLinecap&&t.setAttribute("stroke-linecap",e.strokeLinecap);e.strokeLinejoin&&t.setAttribute("stroke-linejoin",e.strokeLinejoin);e.strokeDasharray&&t.setAttribute("stroke-dasharray",e.strokeDasharray);e.filter&&t.setAttribute("filter",e.filter);e.clipPath&&t.setAttribute("clip-path",e.clipPath);e.mask&&t.setAttribute("mask",e.mask)}(t,e),r.appendChild(t)}t.id&&(r.id=t.id);Array.from(t.classList).forEach(t=>{r.classList.contains(t)||r.classList.add(t)}),Array.from(t.attributes).forEach(t=>{t.name.startsWith("data-")&&r.setAttribute(t.name,t.value)}),r.childElementCount>0?t.replaceWith(r):t.remove()}function Rc(t){if(!t||"string"!=typeof t)return[];try{const e=t.trim().replace(/,/g," ").replace(/\s+/g," ").split(" ").filter(Boolean),n=[];for(let t=0;t<e.length-1;t+=2){const i=parseFloat(e[t]),r=parseFloat(e[t+1]);isNaN(i)||isNaN(r)?console.warn(`Invalid coordinate pair at index ${t}: "${e[t]}", "${e[t+1]}"`):n.push([i,r])}return e.length%2!=0&&console.warn(`Odd number of coordinates in points attribute, last value ignored: "${e[e.length-1]}"`),n}catch(e){return console.error("Failed to parse polygon points:",t,e),[]}}function Bc(t,e,n){var i;const{themeConfig:r}=n;return Jc(e,Ua(e,Object.assign({},null===(i=r.base)||void 0===i?void 0:i.shape,r.shape))),function(t,e,n){const i=n.themeConfig.stylize;if(!i)return t;const{type:r}=i;if(!r)return t;if("rough"===r)return Tc(t,e,i);if("pattern"===r)return Ll(t,e,n);if("linear-gradient"===r||"radial-gradient"===r){const{fill:n,stroke:r}=th(t,["fill","stroke"]);Ar(n)&&kl(t,e,i,"fill"),Ar(r)&&kl(t,e,i,"stroke")}}(e,t,n),e}const Wc=sa(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()});function Hc(t,e,n={}){if(!e)return null;const i=t;Jc(i,Ua(i,n));const r=function(t,e){const n=Nc(e.dataset.x,0),i=Nc(e.dataset.y,0),r=Nc(e.getAttribute("width")),o=Nc(e.getAttribute("height")),s=function(t){const e=th(t,["font-family","font-size","font-weight","font-style","font-variant","letter-spacing","line-height","fill","stroke","stroke-width"]);return e}(e);Object.assign(s,{x:n,y:i,width:r,height:o,"data-horizontal-align":e.dataset.horizontalAlign||"LEFT","data-vertical-align":e.dataset.verticalAlign||"TOP"});return function(t,e){const n=document.createElement("span");n.setAttribute("xmlns","http://www.w3.org/1999/xhtml");const i=Zc("foreignObject",{overflow:"visible"});return i.appendChild(n),oh(i,{textContent:t,attributes:e}),i}(t,s)}(e,i);for(const t in i.dataset)r.setAttribute(`data-${Wc(t)}`,i.dataset[t]);return r}const Nc=(t,e)=>t?parseFloat(t):e;const Fc=(t,e)=>{t!==e&&(e?t.replaceWith(e):t.remove())};class Dc{constructor(t,e){this.options=t,this.template=e,this.rendered=!1}getOptions(){return this.options}getSVG(){return this.template}render(){const t=this.getSVG();if(this.rendered)return t;!function(t,e){(function(t,e){var n;const{themeConfig:i,data:r}=e;!function(t,e){e&&Object.keys(e).length>0&&eh(t,t=>{Jc(t,Ua(t,e))})}(t,null===(n=i.base)||void 0===n?void 0:n.global);const o=t.querySelectorAll("[data-element-type]");o.forEach(n=>{var o,s,a,l,c,h,u;const d=n.id||"";if(uh(n)){const t=Hc(n,r.title||"",Object.assign({},null===(o=i.base)||void 0===o?void 0:o.text,i.title,null===(s=r.attributes)||void 0===s?void 0:s.title));return Fc(n,t)}if(dh(n)){const t=Hc(n,r.desc||"",Object.assign({},null===(a=i.base)||void 0===a?void 0:a.text,i.desc,null===(l=r.attributes)||void 0===l?void 0:l.desc));return Fc(n,t)}if(gh(n)){const e=bl(t,n,null===(c=r.illus)||void 0===c?void 0:c[d],void 0,null===(h=r.attributes)||void 0===h?void 0:h.illus);return Fc(n,e)}if(ph(n))return Array.from(n.children).forEach(n=>{Bc(t,n,e)});if(fh(n)){const i=Bc(t,n,e);return Fc(n,i)}if(Ch(n))return Ga(t,n);if(null===(u=n.dataset.elementType)||void 0===u?void 0:u.startsWith("item-")){const i=Xh(n.dataset.indexes||"0"),o=n.dataset.elementType.replace("item-",""),s=ts(r,i);if(bh(n)||wh(n)||Mh(n)){const t=function(t,e,n){var i,r,o;const s="text"===e.nodeName?e:null;if(!s)return null;const{data:a,themeConfig:l}=n,c=ts(a,Xh(e.dataset.indexes||"0")),h=String(Jo(c,t,"")),u=null===(i=null==c?void 0:c.attributes)||void 0===i?void 0:i[t],d=Ua(s,Object.assign({},null===(r=l.base)||void 0===r?void 0:r.text,null===(o=l.item)||void 0===o?void 0:o[t],u));return Hc(e,e.textContent||h,d)}(o,n,e);return Fc(n,t)}if(!s)return;if(kh(n)){const e=function(t,e,n){var i;return bl(t,e,n.illus,n,null===(i=n.attributes)||void 0===i?void 0:i.illus)}(t,n,s);return Fc(n,e)}if(vh(n)){const i=vl(t,n,s,e);return Fc(n,i)}}return mh(n)?function(t,e){var n;const i=(null===(n=e.themeConfig.base)||void 0===n?void 0:n.text)||{};Jc(t,i),i["font-family"]&&t.setAttribute("font-family",da(i["font-family"])),t.style.userSelect="none",t.style.pointerEvents="none"}(n,e):yh(n)?void 0:function(t,e){var n;Jc(t,(null===(n=e.themeConfig.base)||void 0===n?void 0:n.shape)||{})}(n,e)}),function(t,e){var n;const{themeConfig:i}=e,{"font-family":r=Aa}=(null===(n=i.base)||void 0===n?void 0:n.text)||{};t.setAttribute("font-family",r)}(t,e)})(t,e),function(t,e){const{width:n,height:i}=e,{style:r={},attributes:o={},id:s,className:a}=e.svg||{};s&&(t.id=s);a&&t.classList.add(a);void 0!==n&&t.setAttribute("width","number"==typeof n?`${n}px`:n);void 0!==i&&t.setAttribute("height","number"==typeof i?`${i}px`:i);Object.assign(t.style,r),Jc(t,o)}(t,e),function(t,e){var n,i;if(!1===(null===(n=e.svg)||void 0===n?void 0:n.background))return;const{themeConfig:{colorBg:r}}=e;if(!r)return;const o=t.parentElement;o&&(o.style.backgroundColor=r||"none");const s=Ph(t,"background");if(t.style.backgroundColor=r,s)s.setAttribute("fill",r);else if(null===(i=t.viewBox)||void 0===i?void 0:i.baseVal){const{x:e,y:n,width:i,height:o}=t.viewBox.baseVal,s=Zc("rect",{x:e,y:n,width:i,height:o,fill:r,"data-element-type":"background"});t.prepend(s)}}(t,e)}(t,this.options),t.style.visibility="hidden";const e=()=>{!function(t,e){const{padding:n=0,viewBox:i}=e;i?t.setAttribute("viewBox",i):void 0!==n&&tu(t,Jh(n))}(this.template,this.options),function(t){if(Gh)return;Pa().forEach(e=>Wa(t,e.fontFamily))}(this.template),t.style.removeProperty("visibility")};if(Gh)e();else{const n=new MutationObserver(i=>{i.forEach(i=>{i.addedNodes.forEach(i=>{(i===t||i.contains(t))&&(e(),n.disconnect())})})});try{n.observe(this.options.container,{childList:!0,subtree:!0})}catch(t){e(),console.error(t)}}return this.rendered=!0,t}}let Vc=1.015;wa({fontFamily:"Alibaba PuHuiTi",aliases:["AlibabaPuHuiTi","AlibabaPuHuiTi-Regular"],fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:1060,descender:-340,lineGap:0},glyphs:{" ":257,"!":361,'"':405,"#":600,"%":821,"&":640,"'":253,"(":359,")":359,"*":430,",":302,"-":440,".":302,"/":500,":":378,";":378,"?":431,"@":860,B:620,C:599,D:699,F:527,G:685,H:708,J:271,K:614,L:507,M:830,N:737,P:597,R:614,S:566,T:528,V:617,W:898,X:624,Y:594,Z:626,"[":294,"\\":510,"]":294,_:500,"`":346,b:635,c:497,d:635,f:349,g:636,k:518,l:286,m:921,p:635,q:636,r:379,s:479,t:337,v:526,w:828,x:516,y:527,z:506,"{":299,"|":183,"}":299," ":257,"¡":357,"¦":183,"§":479,"¨":346,"©":806,ª:483,"«":511,"­":440,"®":404,"¯":346,"°":363,"´":346,"¶":593,"·":357,"¸":346,º:445,"»":511,"¼":902,"½":914,"¾":902,"¿":431,Æ:889,Ç:599,Ð:719,Ñ:737,Ý:594,Þ:597,ß:610,æ:926,ç:497,ý:527,þ:635,ÿ:527,Ć:599,ć:497,Ĉ:599,ĉ:497,Ċ:599,ċ:497,Č:599,č:497,Ď:699,ď:640,Đ:719,đ:635,Ĝ:685,ĝ:636,Ğ:685,ğ:636,Ġ:685,ġ:636,Ģ:685,ģ:636,Ĥ:708,Ħ:708,IJ:545,ij:536,Ĵ:271,Ķ:614,ķ:518,ĸ:518,Ĺ:507,ĺ:286,Ļ:507,ļ:286,Ľ:507,ľ:290,Ŀ:507,ŀ:291,Ł:507,ł:286,Ń:737,Ņ:737,Ň:737,ʼn:669,Ŋ:737,Œ:987,œ:917,Ŕ:614,ŕ:379,Ŗ:614,ŗ:379,Ř:614,ř:379,Ś:566,ś:479,Ŝ:566,ŝ:479,Ş:566,ş:479,Š:566,š:479,Ţ:528,ţ:337,Ť:528,ť:340,Ŧ:528,ŧ:337,Ŵ:898,ŵ:828,Ŷ:594,ŷ:527,Ÿ:594,Ź:626,ź:506,Ż:626,ż:506,Ž:626,ž:506,ſ:310,Ə:719,ǎ:608,ǐ:265,ǒ:614,ǔ:609,ǖ:609,ǘ:609,ǚ:609,ǜ:609,Ǽ:889,ǽ:926,Ș:566,ș:479,Ț:528,ț:337,ʹ:255,"͵":255,";":378,"΄":346,"΅":346,Ά:670,"·":357,Έ:628,Ή:779,Ί:346,Ό:765,Ύ:726,Ώ:765,ΐ:312,Β:620,Γ:507,Ζ:626,Η:708,Κ:614,Λ:617,Μ:830,Ν:737,Π:708,Ρ:597,Σ:596,Τ:528,Υ:594,Φ:831,Χ:624,Ψ:804,Ϋ:594,έ:509,ή:643,ί:312,ΰ:593,β:610,γ:526,ε:509,ζ:465,η:643,θ:638,ι:312,κ:518,λ:514,ν:526,ξ:465,π:616,ρ:619,ς:497,σ:639,τ:437,υ:593,φ:774,χ:509,ψ:745,ω:782,ϊ:312,ϋ:593,ύ:593,ώ:782,"‐":440,"‑":440,"–":495,"—":684,"―":684,"‗":500,"‘":270,"’":270,"‚":270,"‛":270,"“":784,"”":784,"„":468,"†":500,"‡":500,"•":308,"…":1085,"‰":1174,"′":256,"″":472,"‴":689,"‵":256,"‶":472,"‷":689,"‹":312,"›":312,"‼":589,"‽":433,"‾":500,"⁄":120,"⁺":407,"⁻":407,"⁼":407,"⁽":225,"⁾":225,ⁿ:486,"₊":407,"₋":407,"₌":407,"₍":225,"₎":225,ₙ:486,"₡":599,"₣":527,"₤":600,"₥":921,"₦":625,"₨":1093,"₩":769,"₪":754,"₫":635,"₭":614,"₮":528,"₯":1288,"₰":950,"₲":685,"₴":576,"₵":599,"₶":576,"₷":700,"₸":528,"₻":750,"₼":683,"₾":577,"₿":620,"℃":915,"℅":825,"℉":868,ℓ:385,"№":1176,"℗":806,"℡":1022,"™":903,℮:903,"⅛":930,"⅜":931,"⅝":931,"⅞":871,Ⅶ:1166,"∂":587,"∈":663,"∏":708,"∑":596,"√":604,"∞":679,"∧":617,"∫":531,"∮":654,"≈":600,"≒":662,"◊":600," ":0,"〞":472},glyphsByWidth:{268:"ijìíîïĩīĭįıĵȷ",274:"IÌÍÎÏĨĪĬĮİΙΪ",406:"²³¹⁰⁴⁵⁶⁷⁸⁹₀₁₂₃₄₅₆₇₈₉",552:"+<=>^~¬±×÷−∕∙≠≤≥≦≧≮≯",556:"EÈÉÊËĒĔĖĘĚΕΞ",575:"$0123456789¢£¤¥ƒ₢₧€₱₹₺₽",578:"eèéêëēĕėęě",612:"aàáâãäåāăąǻ",613:"uµùúûüũūŭůűųάαμ∨",618:"hnoðñòóôõöøĥħńņňŋōŏőǿδοό",667:"AÀÁÂÃÄÅĀĂĄǺΑΔ₳∆",701:"UÙÚÛÜŨŪŬŮŰŲ",743:"OQÒÓÔÕÖØŌŎŐǾΘΟΩΩ",1e3:"─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▓▔▕■□▲△▼▽◆◇○◎●◢◣◤◥★☆☉♀♂〾"},defaultWidth:984,kerning:{'""':-56,"\"'":-57,'",':-179,'".':-179,"'\"":-56,"''":-57,"',":-179,"'.":-179,"(j":60,',"':-160,",'":-160,",1":-140,",7":-41,",9":-39,'."':-160,".'":-160,".1":-140,".7":-41,".9":-39,"//":-120,"1,":-99,"1.":-99,"1:":-99,"1;":-99,"7,":-160,"7.":-160,"7:":-99,"7;":-99,":1":-79,":7":-59,";1":-79,";7":-59,'A"':-100,"A'":-100,AC:-20,AG:-20,AO:-20,AQ:-20,AT:-80,AU:-10,AV:-70,AW:-39,AY:-81,Af:-20,Al:-10,At:-20,Av:-20,Ay:-20,BC:-10,BG:-10,BO:-10,BQ:-10,BT:-40,BV:-20,BX:-20,BY:-21,"D,":-59,"D.":-59,DA:-20,DT:-36,DV:-30,DW:-19,DX:-20,DY:-40,DZ:-20,Da:-39,Ej:19,"F,":-159,"F.":-159,FA:-40,Fa:-59,Fh:1,Fk:1,GV:-11,GY:-21,JJ:7,KA:-19,KC:-20,KG:-20,KO:-20,KQ:-20,KT:-19,KU:-39,KV:-39,KW:-39,KY:-40,Kc:-39,Kd:-39,Ke:-39,Kg:-39,Kl:-39,Ko:-39,Kq:-39,Ks:-19,Kt:-10,Ku:-40,Kv:-60,Kw:-40,Ky:-60,'L"':-99,"L'":-99,LA:20,LC:-59,LG:-59,LO:-59,LQ:-59,LT:-79,LU:-19,LV:-79,LW:-39,LY:-100,Lv:-41,Lw:-21,Ly:-41,"O,":-59,"O.":-59,OA:-20,OT:-36,OV:-30,OW:-19,OX:-20,OY:-40,OZ:-20,Oa:-39,"P,":-199,"P.":-199,PA:-60,PT:-29,PV:-10,PW:-10,PX:-50,PY:-20,PZ:-39,Pa:-60,"Q,":-59,"Q.":-59,QA:-20,QJ:7,QT:-36,QV:-30,QW:-19,QX:-20,QY:-40,QZ:-20,Qa:-39,RC:-15,RG:-15,RO:-15,RQ:-15,RT:-40,RU:-10,RV:-21,RW:-10,RX:-29,RY:-41,Rc:-20,Rd:-20,Re:-20,Rg:-20,Ro:-20,Rq:-20,Rt:-20,Ru:-10,Rv:-10,Rx:20,Ry:-10,"S,":-20,"S.":-20,SS:-1,ST:-1,SV:-21,SW:-10,SY:-21,St:-1,Sv:-20,Sw:-10,Sx:-1,Sy:-20,'T"':2,"T'":2,"T,":-154,"T.":-154,TA:-80,TC:-20,TG:-20,TO:-20,TQ:-20,TS:-1,Ta:-80,Tc:-59,Td:-59,Te:-59,Tg:-59,Ti:-20,Tj:-19,Tm:-59,Tn:-59,To:-59,Tp:-58,Tq:-59,Tr:-59,Ts:-60,Tt:20,Tu:-79,Tv:-39,Tw:-19,Tx:-39,Ty:-39,Tz:-59,UA:-10,UX:-19,Ux:-1,"V,":-140,"V.":-140,"V:":-41,"V;":-41,VA:-70,VC:-30,VG:-30,VO:-30,VQ:-30,VS:-10,Va:-41,Vc:-21,Vd:-21,Ve:-21,Vg:-21,Vh:1,Vk:1,Vo:-21,Vq:-21,Vs:-21,Vv:-1,Vy:-1,"W,":-79,"W.":-79,"W:":-39,"W;":-39,WA:-40,WC:-19,WG:-19,WO:-19,WQ:-19,Wa:-40,Wc:-20,Wd:-20,We:-20,Wg:-20,Wo:-20,Wq:-20,Ws:-20,XA:-19,XC:-20,XG:-20,XO:-20,XQ:-20,XT:-19,XU:-39,XV:-39,XW:-39,XY:-40,Xc:-39,Xd:-39,Xe:-39,Xg:-39,Xl:-39,Xo:-39,Xq:-39,Xs:-19,Xt:-10,Xu:-40,Xv:-60,Xw:-40,Xy:-60,'Y"':1,"Y'":1,"Y,":-141,"Y.":-141,"Y:":-60,"Y;":-60,YA:-81,YC:-40,YG:-40,YO:-40,YQ:-40,YS:-1,Ya:-101,Yc:-60,Yd:-60,Ye:-60,Yf:-1,Yg:-60,Yh:1,Yi:-19,Yk:1,Ym:-41,Yn:-41,Yo:-60,Yp:-40,Yq:-60,Yr:-41,Ys:-61,Yt:-1,Yu:-40,Yv:-40,Yx:-41,Yy:-40,Yz:-41,ZC:-20,ZG:-20,ZO:-20,ZQ:-20,"[j":80,aT:-60,aV:-21,aY:-61,av:-10,aw:-10,ay:-10,"b,":-40,"b.":-40,bT:-59,bV:-21,bW:-20,bX:-39,bY:-60,bv:-10,bx:-20,by:-10,"e,":-20,"e.":-20,eT:-59,eY:-40,ej:20,'f"':3,"f'":3,"f)":1,"f*":61,"f,":-1,"f.":-1,"f?":40,fT:40,fV:21,fW:21,fX:21,fY:1,"f]":21,fa:-29,fc:-19,fd:-19,fe:-19,ff:1,fg:-39,fh:-19,fi:-19,fj:-19,fk:-19,fl:-19,fo:-19,fq:-19,fs:-19,ft:1,"f}":3,hT:-58,hY:-39,hv:-10,hy:-10,'i"':2,"i'":2,"i)":2,"i?":3,iT:-20,"i]":41,"i}":22,jT:-20,kT:-39,kU:-1,kW:-20,ka:-20,kc:-20,kd:-20,ke:-20,kg:-20,kl:-20,ko:-20,kq:-20,ku:-10,lf:-20,lv:-19,lw:-10,ly:-19,mT:-58,mY:-39,mv:-10,my:-10,nT:-58,nY:-39,nv:-10,ny:-10,"o,":-40,"o.":-40,oT:-59,oV:-21,oW:-20,oX:-39,oY:-60,ov:-10,ox:-20,oy:-10,"p,":-40,"p.":-40,pT:-59,pV:-21,pW:-20,pX:-39,pY:-60,pv:-10,px:-20,py:-10,qT:-19,qY:-19,qj:20,'r"':2,"r'":2,"r,":-90,"r.":-90,ra:-49,rc:-19,rd:-19,re:-19,rf:1,ro:-19,rq:-19,rt:20,sT:-59,sV:-21,sW:-20,sX:-19,sY:-60,sv:-19,sx:-10,sy:-19,tf:1,uT:-40,uY:-19,"v,":-90,"v.":-90,vT:-39,vX:-39,va:-35,vc:-10,vd:-10,ve:-10,vo:-10,vq:-10,"w,":-50,"w.":-50,wT:-19,wX:-39,wa:-30,xT:-39,xU:-1,xW:-20,xa:-20,xc:-20,xd:-20,xe:-20,xg:-20,xl:-20,xo:-20,xq:-20,xu:-10,"y,":-90,"y.":-90,yT:-39,yX:-39,ya:-35,yc:-10,yd:-10,ye:-10,yo:-10,yq:-10,zT:-59,"{h":2,"{j":79,"{k":2}});const Uc={"851tegakizatsu":{fontFamily:"851tegakizatsu",fontWeight:400,fontStyle:"normal",unitsPerEm:1024,metrics:{ascender:880,descender:-144,lineGap:0},glyphs:{" ":341," ":256," ":171," ":10,"​":0,"‿":0,"⁀":0,"⁄":0,"\t":512,"\n":512,"\r":512},glyphsByWidth:{512:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦©ª­®°²³¹º¼½¾¿ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåçèéêëìíîïðñòóôõöøùúûüýþÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıĴĵĶķĸĹĺĻļĽľĿŀŁłŃńŅņŇňʼnŊŋŌōŎŏŐőŔŕŖŗŘřŚśŜŝŞşŠšŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵŶŷŸŹźŻżŽžſƀƁƂƃƄƅƆƇƈƉƊƋƌƍƎƏƐƑƒƓƔƕƖƗƘƙƚƛƜƝƞƟƠơƢƣƤƥƦƧƨƩƪƫƬƭƮƯưƱƲƳƴƵƶƷƸƹƺƻƼƽƾƿǀǁǂǃǍǎǏǐǑǒǓǔǕǖǗǘǙǚǛǜǝǞǟǠǡǤǥǦǧǨǩǪǫǬǭǮǯǰǴǵǶǷǸǹǺǻǾǿȀȁȂȃȄȅȆȇȈȉȊȋȌȍȎȏȐȑȒȓȔȕȖȗȘșȚțȜȝȞȟȠȡȢȣȤȥȦȧȨȩȪȫȬȭȮȯȰȱȲȳȴȵȶȷȸȹȺȻȼȽȾȿɀɁɂɃɄɅɆɇɈɉɊɋɌɍɎɏͰͱͲͳʹ͵Ͷͷ͸͹ͺͻͼͽ;Ϳ΀΁΂΃΄΅Ά·ΈΉΊ΋Ό΍ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ΢ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώϏϐϑϒϓϔϕϖϗϘϙϚϛϜϝϞϟϠϡϢϣϤϥϦϧϨϩϪϫϬϭϮϯϰϱϲϳϴϵ϶ϷϸϹϺϻϼϽϾϿ ‌‍‎‏–‗•\u2029‪‫‬‭‮‵‹›‽‾⁅⁆⁡⁢⁣⁤⁰ⁱ⁲⁳⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾ⁿ₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎₏ₐₑₒₓₔₕₖₗₘₙₚₛₜ₝₞₟₠₡₢₣₤₥₦₧₨₩₪₫€₭₮₰₱₲₳₴₵₶₷₸₹₺₼₽₾₿⃀⃁⃂⃃⃄⃅⃆⃇⃈⃉⃊⃋⃌⃍⃎⃏ℏ℩KÅℵℶℷℸ⅐⅑⅒⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞⅟↉↊↋↌↍↎↏↔↕↚↛↜↝↞↟↠↡↢↣↤↥↦↧↨↩↪↫↬↭↮↯↰↱↲↳↴↵↶↷↸↹↺↻↼↽↾↿⇀⇁⇂⇃⇄⇅⇆⇇⇈⇉⇊⇋⇌⇜⇝⇞⇟⇠⇡⇢⇣⇤⇥⇪⇫⇬⇭⇮⇯⇰⇱⇲⇳⇴⇵⇶⇷⇸⇹⇺⇻⇼⇽⇾⇿∁∅∎−∓∔∕∖∗∘∙√∛∜∣∤∦∱∲∳∶∷∸∹∺∻∼∿≀≁≂≃≄≅≆≇≈≉≊≋≌≍≎≏≐≑≓≔≕≖≗≘≙≚≛≜≝≞≟≢≣≤≥≨≩≬≭≮≯≰≱≲≳≴≵≶≷≸≹≺≻≼≽≾≿⊀⊁⊄⊅⊈⊉⊊⊋⊌⊍⊎⊏⊐⊑⊒⊓⊔⊦⊧⊨⊩⊪⊫⊬⊭⊮⊯⊲⊳⊴⊵⊹⊺⊻⊼⊽⊾⋀⋁⋂⋃⋄⋅⋆⋇⋈⋉⋊⋋⋌⋍⋎⋏⋐⋑⋒⋓⋔⋕⋖⋗⋚⋛⋜⋝⋞⋟⋠⋡⋢⋣⋤⋥⋦⋧⋨⋩⋪⋫⋬⋭⋮⌀⌁⌂⌃⌄⌅⌆⌈⌉⌊⌋⌌⌍⌎⌏⌜⌝⌞⌟⌠⌡⌢⌣⌯⌰⍳⍴⍵⍶⍷⍸⍹⍺⎛⎜⎝⎞⎟⎠⎡⎢⎣⎤⎥⎦⎧⎨⎩⎪⎫⎬⎭⎮⎰⎱⎷⎸⎹⎺⎻⎼⎽⏎⏐⏑⏒⏓⏨⏻⏼⏽⏾⏿╌╍╎╏═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╱╲╳╴╵╶╷╸╹╺╻╼╽╾╿♩♪♭♮♯ㆻㆼㆽㆾㆿ힤힥힦힧힨힩힪힫힬힭힮힯＀。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᅠᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑᄒ﾿￀￁ᅡᅢᅣᅤᅥᅦ￈￉ᅧᅨᅩᅪᅫᅬ￐￑ᅭᅮᅯᅰᅱᅲ￘￙ᅳᅴᅵ￝￞￟│←↑→↓■○￯"},defaultWidth:1024},Arial:{fontFamily:"Arial",fontWeight:400,fontStyle:"normal",unitsPerEm:2048,metrics:{ascender:2189,descender:-555,lineGap:0},glyphs:{'"':727,"%":1821,"'":391,"*":797,"@":2079,M:1706,W:1933,"^":961,m:1706,"{":684,"|":532,"}":684,"¦":532,"©":1509,ª:758,"®":1509,"°":819,"¶":1100,º:748,æ:1821,ď:1284,IJ:1538,ij:909,ĸ:895,ŀ:651,ʼn:1282,Ŋ:1481,œ:1933,ť:831,Ŵ:1933,Ɓ:1516,Ƃ:1341,Ƈ:1569,ƈ:1186,Ɗ:1616,Ƌ:1341,ƍ:1141,Ə:1493,Ɛ:1237,Ɠ:1620,Ɣ:1329,ƕ:1651,Ɩ:502,Ɨ:659,ƚ:659,Ɯ:1706,Ơ:1589,Ƣ:2087,ƣ:1602,Ƥ:1505,Ʃ:1233,ƪ:750,Ƭ:1169,Ư:1589,ư:1270,Ʊ:1532,Ƴ:1540,ƴ:1260,Ʒ:1286,Ƹ:1286,ƹ:1077,ƺ:983,ƽ:1077,ǁ:950,ǂ:971,DŽ:2730,Dž:2503,dž:2163,LJ:2109,lj:909,NJ:2503,Nj:1933,ǣ:1821,Ǯ:1094,ǯ:1094,DZ:2730,Dz:2503,dz:2163,ǽ:1821,ʹ:631,"͵":631,Έ:1442,Ή:1554,Ί:645,Ύ:1528,Ώ:1552,Γ:1126,Δ:1397,Μ:1706,Ξ:1331,Σ:1233,Φ:1655,Ψ:1647,Ω:1552,ά:1180,έ:889,ΰ:1128,α:1180,β:1153,δ:1141,ε:889,ζ:901,κ:1020,μ:1133,ξ:885,ρ:1169,ς:967,σ:1268,τ:782,υ:1128,φ:1329,χ:1069,ψ:1493,ω:1569,ϋ:1128,ύ:1128,ώ:1569,ϐ:1153,ϑ:1262,ϒ:1292,ϓ:1487,ϔ:1292,ϕ:1319,ϖ:1599,Ϝ:1184,Ϟ:1167,Ϡ:1417,Ϣ:1802,ϣ:1706,Ϥ:1401,ϥ:1143,Ϧ:1393,ϧ:1083,Ϩ:1141,ϩ:1034,Ϫ:1276,ϫ:1235,Ϭ:1249,Ϯ:1163,ϯ:889,ϱ:1169," ":512," ":342," ":205," ":102,"​":0,"‌":0,"‍":0,"―":1155,"‖":877,"•":717,"‣":717,"\u2028":0,"\u2029":0,"‱":2724,"″":762,"‴":1069,"‵":422,"‶":729,"‷":1036,"‸":639,"‼":965,"‿":1935,"⁀":1935,"⁁":639,"⁂":1679,"⁄":342,"⁽":430,"⁾":430,"₍":430,"₎":430,"₥":1706,"₨":2097,"₩":1925,"₪":1606,"℀":1821,"℁":1821,"℃":2093,"℅":1821,"℆":1821,ℇ:1026,"℉":1886,ℊ:1044,ℋ:1855,ℌ:2023,ℐ:1409,ℑ:1133,ℒ:1450,ℓ:596,"№":2198,"℗":1509,℘:1516,ℛ:1898,ℜ:1628,"℡":2404,"℥":1110,Ω:1573,"℧":1573,ℨ:1430,"℩":657,ℬ:1898,ℭ:1323,ℯ:788,ℰ:1260,ℱ:1409,ℳ:2284,ℴ:831,ℵ:1409,ℶ:1409,ℷ:705,ℸ:1409,Ⅱ:1137,Ⅲ:1704,Ⅳ:1911,Ⅵ:1913,Ⅶ:2111,Ⅷ:2597,Ⅸ:1933,Ⅺ:1933,Ⅻ:2120,Ⅿ:1706,ⅱ:909,ⅲ:1364,ⅳ:1434,ⅵ:1434,ⅶ:1888,ⅷ:2343,ⅸ:1458,ⅺ:1458,ⅻ:1913,ⅿ:1706,ↀ:2013,ↂ:2013,"↭":1665,"↮":1665,"⇎":1946,"⇔":1767,"⇜":1665,"⇝":1665,"∂":1012,"∆":1253,"∇":1253,"∏":1686,"∐":1686,"∕":342,"∗":797,"∘":819,"∙":819,"∣":532,"∤":909,"∥":856,"∦":1233,"∫":1036,"∬":1651,"∭":2265,"∮":1036,"∯":1651,"∰":2265,"∱":1036,"∲":1036,"∳":1036,"∶":864,"≀":864,"≔":1509,"≕":1509,"≪":1985,"≫":1985,"⊑":1378,"⊒":1378,"⊦":817,"⊧":817,"⊫":1376,"⊯":1376,"⋅":512,"⋇":1329,"⋈":1290,"⋉":1290,"⋊":1290,"⋋":1290,"⋌":1290,"⋐":1368,"⋑":1368,"⋒":1368,"⋓":1368,"⋕":1233,"⋘":2773,"⋙":2773,"⋢":1378,"⋣":1378,"⋤":1378,"⋥":1378,"⌈":920,"⌉":920,"⌊":920,"⌋":920,"⌗":1331,"⌘":1597,"⌠":1036,"⌡":1036,"〈":674,"〉":674,"★":1671,"☆":1686,"☎":1473,"☏":1473,"☐":1503,"☑":1503,"☒":1503,"☓":1561,"☚":1966,"☛":1966,"☜":1923,"☝":1923,"☞":1923,"☟":1923,"☤":1188,"☥":942,"☦":909,"☧":1331,"☨":909,"☩":1573,"☫":1741,"☬":1382,"☰":1843,"☱":1843,"☲":1843,"☳":1843,"☴":1843,"☵":1843,"☶":1843,"☷":1843,"☿":1516,"♀":1516,"♁":1516,"♂":1516,"♃":1337,"♄":1004,"♅":1294,"♆":1597,"♇":1147,"♈":1716,"♉":1597,"♊":1503,"♋":1817,"♌":1597,"♍":2212,"♎":1835,"♏":2212,"♐":1647,"♑":1778,"♒":1888,"♓":1425,"♡":1503,"♢":1380,"♣":1647,"♥":1503,"♦":1380,"♧":1647,"♨":1761,"♩":866,"♪":1212,"♭":899,"♮":899,"♯":899,"✁":1995,"✂":1968,"✃":1995,"✄":2007,"✆":1616,"✇":1618,"✈":1620,"✉":1413,"✍":1751,"✎":1866,"✏":1911,"✐":1866,"✑":1935,"✒":1995,"✓":1546,"✔":1733,"✕":1561,"✖":1559,"✗":1169,"✘":1386,"✙":1563,"✚":1556,"✛":1554,"✜":1544,"✝":1012,"✞":1130,"✟":1100,"✠":1182,"✡":1417,"✢":1610,"✥":1618,"✦":1624,"✧":1626,"✩":1686,"✪":1616,"✫":1722,"✬":1686,"✭":1706,"✮":1671,"✯":1702,"✰":1890,"✱":1524,"✲":1481,"✳":1534,"✴":1618,"✵":1622,"✶":1423,"✷":1589,"✸":1573,"✹":1622,"✺":1554,"✻":1448,"✼":1450,"✽":1397,"✾":1436,"✿":1692,"❀":1669,"❁":1616,"❂":1616,"❃":1448,"❄":1407,"❅":1425,"❆":1411,"❇":1610,"❈":1612,"❊":1620,"❋":1608,"❍":1788,"❏":1561,"❐":1561,"❑":1554,"❒":1554,"❖":1606,"❘":283,"❙":567,"❚":850,"❛":803,"❜":803,"❝":1368,"❞":1368,"❡":1499,"❢":1114,"❣":1114,"❤":1864,"❦":1556,"❧":1556,"➔":1831,"➘":1532,"➙":1892,"➚":1532,"➛":1880,"➜":1898,"➝":1901,"➞":1901,"➠":1788,"➡":1696,"➢":1892,"➣":1892,"➤":1878,"➥":1905,"➦":1907,"➧":948,"➨":1808,"➩":1712,"➪":1712,"➫":1776,"➬":1776,"➭":1425,"➮":1425,"➯":1790,"➱":1790,"➲":1556,"➳":1937,"➴":1579,"➵":1772,"➶":1579,"➷":1819,"➸":1980,"➹":1819,"➺":1702,"➻":1788,"➼":1898,"➽":1987,"➾":1880,匭:2036,憁:2050,鐧:2044},glyphsByWidth:{455:"ijlĩīĭįĵĺļľłſǰΐίιϊϳ‘’‚‛′ⅰⅼ",569:" \t\n\r!,./:;I[\\]ft ·ÌÍÎÏìíîïĨĪĬĮİıţŧƒƫƭǀǃǏǐȈȉȊȋͺ;΄΅·ΙΪ ․‧⁅⁆Ⅰ∖⋮",682:"()-`r¡¨­²³´¸¹ŕŗřȑȓ ‐‑“”„‟‹›⁃⁰⁴⁵⁶⁷⁸⁹⁺⁻⁼ⁿ₀₁₂₃₄₅₆₇₈₉₊₋₌",1024:"J_cksvxyz¯çýÿćĉċčĴķśŝşšŷźżžƙƛƨƶǩγλνϲ  –‗‾ℎℏⅴⅹⅽ☇☈。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᅠᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ│←↑→↓■○",1124:"∈∉∊∋∌∍∎∝∞⊢⊣⊤⊥⊨⊩⊪⊬⊭⊮⊰⊱⊲⊳⊴⊵⊹⊺⋄⋆⌀⌂⌃⌄⌅⌆⌇⌌⌍⌎⌏⌐⌑⌔⌕⌖⌙⌚⌛⌜⌝⌞⌟⌬⌭⌮⌯⌰⌱⌲⌳⌴⌵✌",1139:"#$0123456789?Labdeghnopqu¢£¤¥§«µ»àáâãäåèéêëðñòóôõöùúûüþāăąđēĕėęěĝğġģĥħĹĻĽĿŁńņňŋōŏőũūŭůűųƀƃƄƅƌƞơƥƻƼƾƿǎǒǔǖǘǚǜǝǟǡǥǧǫǭǵǻȁȃȅȇȍȏȕȗήηθοό ‒†‡‥‽₠₡₢₣₤₦₧₫€ℙ℮Ⅼⅾ",1149:"∧∨∩∪∴∵∷⊌⊍⊎⊓⊔⋀⋁⋂⋃⋎⋏⋔",1196:"+<=>~¬±×÷−∓∔∟∠∡∢∸∹∺∻∼∽∾∿≁≂≃≄≅≆≇≈≉≊≋≌≍≎≏≐≑≒≓≖≗≘≙≚≛≜≝≞≟≠≡≢≣≤≥≦≧≨≩≬≭≮≯≰≱≲≳≴≵≶≷≸≹≺≻≼≽≾≿⊀⊁⊻⊼⊽⊾⊿⋍⋖⋗⋚⋛⋜⋝⋞⋟⋠⋡⋦⋧⋨⋩⋪⋫⋬⋭",1229:"ϰ∀∁∃∄√∛∜⌶⌷⌸⌹⌺⌻⌼⌽⌾⌿⍀⍁⍂⍃⍄⍅⍆⍇⍈⍉⍊⍋⍌⍍⍎⍏⍐⍑⍒⍓⍔⍕⍖⍗⍘⍙⍚⍛⍜⍝⍞⍟⍠⍡⍢⍣⍤⍥⍦⍧⍨⍩⍪⍫⍬⍭⍮⍯⍰⍱⍲⍳⍴⍵⍶⍷⍸⍹⍺⎕─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋╌╍╎╏═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳╴╵╶╷╸╹╺╻╼╽╾╿▀▁▂▃▄▅▆▇█▉▊▋▌▍▎▏▐░▒▓▔▕■□▢▣▤▥▦▧▨▩▪▫▬▭▮▯▰▱▲△▴▵▶▷▸▹►▻▼▽▾▿◀◁◂◃◄◅◆◇◈◉◊○◌◍◎●◐◑◒◓◔◕◖◗◘◙◚◛◜◝◞◟◠◡◢◣◤◥◦◧◨◩◪◫◬◭◮◯☡",1251:"FTZ¿ßøŢŤŦŹŻŽƑƮƵǿΖΤϭ℄ℤℲ",1366:"&ABEKPSVXYÀÁÂÃÄÅÈÉÊËÝÞĀĂĄĒĔĖĘĚĶŚŜŞŠŶŸƎƘƧƲǍǞǠǨǺȀȂȄȆΆΑΒΕΚΛΡΥΧΫℂ℈ℝ℞℟KÅⅤⅩ❥",1389:"π⊂⊃⊄⊅⊆⊇⊈⊉⊊⊋⊏⊐",1460:"←↑→↓↔↕↖↗↘↙↚↛↜↝↞↟↠↡↢↣↤↥↦↧↨↩↪↫↬↯↰↱↲↳↴↵↶↷↸↹↼↽↾↿⇀⇁⇂⇃⇄⇅⇆⇇⇈⇉⇊⇋⇌⇍⇏⇐⇑⇒⇓⇕⇖⇗⇘⇙⇚⇛⇞⇟⇠⇡⇢⇣⇤⇥⇦⇧⇨⇩⇪∑⊶⊷⊸⌢⌣❉",1479:"CDHNRUwÇÐÑÙÚÛÜĆĈĊČĎĐĤĦŃŅŇŔŖŘŨŪŬŮŰŲŵƆƉƝƦǓǕǗǙǛȐȒȔȖΗΝΠϚℍℕℚ℣ⅭⅮↁ♠♤",1536:"☀☂☃☠☢☣☮☯☸☹☺☻☼☽☾♫♬",1593:"GOQÒÓÔÕÖØĜĞĠĢŌŎŐƟLjnjǑǤǦǪǬǴǾȌȎΌΘΟ℔",1614:"✣✤❶❷❸❹❺❻❼❽❾❿➀➁➂➃➄➅➆➇➈➉➊➋➌➍➎➏➐➑➒➓",1638:"↺↻∅⊕⊖⊗⊘⊙⊚⊛⊜⊝⊞⊟⊠⊡⌒⌓☉☊☋☌☍☪☭",1708:"¼½¾⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞⅟➟"},defaultWidth:2048},"LXGW WenKai":{fontFamily:"LXGW WenKai",fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:928,descender:-256,lineGap:0},glyphs:{"%":800,"&":700,"@":784,B:650,D:728,F:582,H:700,J:492,K:630,L:547,M:855,P:618,R:635,S:617,V:620,W:880,b:573,f:370,j:301,m:816,p:572,q:576,r:430,t:360,v:490,w:730,z:490,"¢":556,"£":713,"§":675,"©":780,ª:320,"®":780,"°":320,º:320,Æ:900,Ð:728,Þ:618,ß:610,æ:900,ð:622,þ:572,Ď:728,Đ:728,đ:583,Ĥ:700,Ħ:700,IJ:492,Ĵ:492,ĵ:301,Ķ:630,ĸ:445,Ĺ:547,Ļ:547,Ľ:547,ľ:302,Ŀ:547,ŀ:300,Ł:547,Œ:945,œ:948,Ŕ:635,ŕ:430,Ŗ:635,ŗ:430,Ř:635,ř:430,Ś:617,Ŝ:617,Ş:617,Š:617,ţ:360,ť:360,ŧ:360,Ŵ:880,ŵ:730,ź:490,ż:490,ž:490,ſ:370,ƀ:573,Ɓ:677,Ƃ:629,ƃ:573,Ƅ:604,ƅ:523,Ɔ:725,Ɖ:728,Ɗ:766,Ƌ:629,ƍ:556,Ɛ:627,Ƒ:582,Ɣ:620,ƕ:883,Ɩ:314,Ƙ:669,ƛ:534,Ɯ:816,Ƣ:869,ƣ:683,ƥ:572,Ʀ:635,Ƨ:617,Ʃ:557,ƪ:430,ƫ:360,ƭ:360,Ʊ:762,ƶ:490,Ʒ:552,Ƹ:552,ƹ:540,ƺ:491,ƽ:512,ƾ:540,ƿ:572,ǀ:351,ǁ:351,DŽ:1310,Dž:1200,dž:1037,LJ:983,Lj:776,lj:541,NJ:1203,Nj:1004,nj:855,Ǣ:900,ǣ:900,Ǩ:630,ǩ:542,Ǯ:552,ǯ:540,ǰ:301,DZ:1310,Dz:1200,dz:1037,Ƕ:1004,Ƿ:556,Ǽ:900,ǽ:900,Ȑ:635,ȑ:430,Ȓ:635,ȓ:430,Ș:617,ț:360,ȝ:456,Ȟ:700,Ƞ:675,ȡ:625,Ȣ:627,ȣ:586,ȥ:490,ȴ:318,ȵ:637,ȶ:360,ȷ:301,ȸ:880,ȹ:880,Ƚ:547,ɀ:490,Ɂ:570,ɂ:511,Ƀ:650,Ʌ:620,Ɉ:492,ɉ:301,Ɋ:788,ɋ:576,Ɍ:635,ɍ:430,Ͱ:568,ͱ:464,Ͳ:617,ʹ:200,"͵":200,ͷ:583,Ϳ:492,"΄":286,"΅":424,Έ:727,Ή:790,Ί:383,Ό:811,Ύ:759,Ώ:821,ΐ:294,Β:636,Γ:573,Δ:650,Η:701,Κ:630,Μ:855,Ξ:599,Π:627,Ρ:618,Σ:557,Φ:737,Ψ:754,Ω:755,ί:294,ΰ:558,β:565,γ:480,δ:556,ζ:514,θ:570,ι:294,κ:501,λ:534,ν:515,ξ:528,ο:568,ρ:578,ς:516,σ:572,τ:446,υ:558,φ:621,χ:486,ψ:611,ω:687,ϊ:294,ϋ:558,ό:568,ύ:558,ώ:687,Ϗ:630,ϒ:644,ϓ:759,ϔ:644,ϕ:574,ϖ:668,ϗ:586,ϛ:516,Ϝ:573,ϝ:476,Ϟ:585,ϟ:560,Ϡ:625,ϡ:675,ϰ:586,ϱ:578,ϳ:301,ϵ:522,"϶":522,Ϸ:618,ϸ:572,Ϻ:817,ϻ:639,ϼ:578,Ͻ:725,Ͽ:725," ":333," ":250," ":167," ":200," ":100,"​":0,"•":392,"′":286,"″":388,"‴":520,"‶":388,"‷":520,"⁂":900,"⁄":330,"⁒":330,ⁱ:180,ⁿ:340,ₐ:320,ₑ:320,ₒ:320,ₓ:300,ₔ:330,ₕ:320,ₖ:305,ₗ:180,ₘ:457,ₙ:340,ₚ:320,ₛ:300,ₜ:300,"₠":700,"₣":582,"₤":713,"₨":1099,"₩":880,"₪":802,"€":750,"₭":630,"₯":1069,"₱":618,"₴":617,"₶":595,"₷":637,"₹":554,"₺":649,"₻":781,"₼":754,"₽":618,"₿":650,ℏ:618,ℓ:557,"℞":633,"℠":810,"™":790,"℩":294,Ⅎ:596,"⅂":547,"⅃":596,ⅎ:476,"∂":630,"∏":627,"∑":557,"√":640,"∛":640,"∜":640,"⍳":294,"⍴":578,"⍵":687,"⍸":294,"⍹":687,"⏨":635,"❛":371,"❜":371,"❝":648,"❞":648,"❟":371,"❠":648,"〪":0,"〫":0,"〬":0,"〭":0,"゙":0,"゚":0},glyphsByWidth:{263:"ilìíîïĩīĭįıĺļƚǐȉȋ",304:"IÌÍÎÏĨĪĬĮİłƗǏȈȊΙΪ",350:" !\"'(),-./:;[\\]{|} ¡¦·ijǃͺ;· ‘’‚‛“”„‟−∕∖⋅\t\n\r",380:"²³¹⁰⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎",500:"*_`xy¨¯´¸ýÿŷƒƴȳɏ  ‒‵‾⁑∁∊∍⌃❲❳〿。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᅠᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ│←↑→↓■○",510:"ksķśŝşšƙƨșȿέε",530:"c¤«»çćĉċčƈȼͻͼͽϐϑϲ‹›⃀⍷",543:"eèéêëēĕėęěǝȅȇȩɇήη",562:"oòóôõöøōŏőơǒǫǭǿȍȏȫȭȯȱμϙ",575:"adàáâãäåāăąďƌǎǟǡǻȁȃȧ₫",577:"TŢŤŦƬƮȚȾͳΤπ₮₸",580:"gĝğġģǥǧǵάαℊ⍶⍺",588:"hnñĥħńņňʼnŋƞǹȟℎ",590:"u¬µùúûüũūŭůűųưǔǖǘǚǜȕȗ",600:"#$+0123456789<=>?XYZ^~¥±¿×Ý÷ŶŸŹŻŽƳƵƻƼǂȜȤȲɎΖΥΧΫ ‽₰⅄↊↋ㆴㆵㆶㆷㆻ",638:"E¶ÈÉÊËĒĔĖĘĚƎƤȄȆȨɆΕ",690:"AÀÁÂÃÄÅĀĂĄǍǞǠǺȀȂȦȺΆΑΛ₳",703:"CÇĆĈĊČƇƏȻϚϹϾ₡₢₵₾",710:"UÙÚÛÜŨŪŬŮŰŲƯƲǓǕǗǙǛȔȖɄ",738:"NÑŃŅŇŊƝǸͶΝ₦",745:"OQÒÓÔÕÖØŌŎŐƟƠǑǪǬǾȌȎȪȬȮȰΘΟϘϴΩ℧",752:"GĜĞĠĢƓǤǦǴ₲⅁"},defaultWidth:1e3},"Source Han Sans":{fontFamily:"Source Han Sans",fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:880,descender:-120,lineGap:500},glyphs:{" ":224,"\t":224,"\n":224,"\r":224,"!":323,'"':475,"%":921,"&":680,"'":278,"(":338,")":338,"*":467,",":278,"-":347,".":278,"/":392,":":278,";":278,"?":474,"@":946,B:657,C:638,D:687,E:588,F:552,G:689,H:728,I:293,J:536,K:646,L:542,M:812,N:722,P:632,R:635,S:597,T:599,V:575,W:878,X:573,Y:531,Z:603,"[":338,"\\":392,"]":338,_:559,b:618,c:509,d:620,e:554,f:325,g:563,i:275,j:275,k:552,l:285,m:926,n:611,p:620,q:620,r:388,s:468,t:377,v:521,w:802,x:498,y:521,z:474,"{":338,"|":269,"}":338,"¡":323,"¦":269,"©":832,ª:385,"«":479,"®":473,"°":370,"²":410,"³":410,µ:628,"·":561,"¹":410,º:407,"»":479,"¼":872,"½":903,"¾":889,"¿":474,Æ:918,Ç:638,È:588,É:588,Ê:588,Ë:588,Ì:293,Í:293,Î:293,Ï:293,Ð:712,Ñ:722,Ý:531,Þ:651,ß:642,æ:877,ç:509,è:554,é:554,ê:554,ë:554,ì:275,í:275,î:275,ï:275,ð:608,ñ:611,ý:521,þ:620,ÿ:521,Đ:712,đ:620,Ē:588,ē:554,Ě:588,ě:554,Ĩ:293,ĩ:275,Ī:293,ī:275,Ń:722,ń:611,Ň:722,ň:611,Œ:947,œ:937,Ư:736,Ǐ:293,ǐ:275,Ǹ:722,ǹ:611,Β:657,Γ:557,Δ:657,Ε:588,Ζ:603,Η:728,Ι:293,Κ:646,Λ:575,Μ:812,Ν:722,Ξ:595,Π:720,Ρ:632,Σ:601,Τ:599,Υ:531,Φ:803,Χ:573,Ψ:780,Ω:758,α:625,β:631,γ:540,δ:594,ε:501,ζ:473,η:604,θ:583,ι:292,κ:551,λ:552,μ:628,ν:528,ξ:481,ο:597,π:654,ρ:613,σ:610,τ:513,υ:569,φ:759,χ:537,ψ:769,ω:782,"‒":536,"—":894,"‚":278,"„":475,"•":339,"′":278,"″":475,"‹":302,"›":302,"‼":613,"⁇":910,"⁈":758,"⁉":758,ℓ:457,"№":997,"™":711,℮:894,"✓":683,"〪":0,"〫":0,"〬":0,"〭":0,"〮":250,"〯":250},glyphsByWidth:{500:" 。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ│←↑→↓■○",555:"#$+0123456789<=>^~¢£¤¥¬­ƒ₩€",564:"aàáâãäåāăǎ",606:"`o¨¯´¸òóôõöøōŏơǒ",607:"AhuÀÁÂÃÄÅùúûüĀĂũūŭưǍǔǖǘǚǜΑ",721:"UÙÚÛÜŨŪŬǓǕǗǙǛ",742:"OQÒÓÔÕÖØŌŎƠǑΘΟ",920:"ㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣㅥㅦㅧㅨㅩㅪㅫㅬㅭㅮㅯㅰㅱㅲㅳㅴㅵㅶㅷㅸㅹㅺㅻㅼㅽㅾㅿㆀㆁㆂㆃㆄㆅㆆㆇㆈㆉㆊㆋㆌㆍㆎ"},defaultWidth:1e3,kerning:{'",':-128,'".':-128,'"A':-61,'"J':-106,'"S':-11,'"X':-11,'"c':-33,'"d':-33,'"e':-33,'"o':-33,'"q':-33,'"s':-22,"',":-128,"'.":-128,"'A":-61,"'J":-106,"'S":-11,"'X":-11,"'c":-33,"'d":-33,"'e":-33,"'o":-33,"'q":-33,"'s":-22,"(J":-22,"(j":89,',"':-107,",'":-107,",*":-154,",T":-110,",U":-22,",V":-73,",W":-38,",Y":-103,",c":-13,",d":-13,",e":-13,",j":29,",o":-13,",q":-13,",t":-51,",v":-38,",w":-25,",y":-22,"-J":-22,"-S":-19,"-T":-53,"-V":-21,"-W":-11,"-X":-30,"-Y":-74,"-Z":-22,"-t":-29,"-v":-8,"-x":-15,'."':-107,".'":-107,".*":-154,".T":-110,".U":-22,".V":-73,".W":-38,".Y":-103,".c":-13,".d":-13,".e":-13,".j":29,".o":-13,".q":-13,".t":-51,".v":-38,".w":-25,".y":-22,"/A":-45,"/C":-11,"/G":-11,"/J":-89,"/O":-11,"/Q":-11,"/a":-27,"/c":-35,"/d":-35,"/e":-35,"/g":-11,"/i":29,"/j":29,"/o":-35,"/q":-35,"/t":10,"/u":-22,":*":-55,":Y":-29,":j":4,";*":-55,";Y":-29,";j":4,'A"':-61,"A'":-61,"A*":-105,"A?":-29,AA:-7,AC:-11,AG:-11,AO:-11,AQ:-11,AT:-61,AU:-17,AV:-15,AX:4,AY:-15,AZ:-8,"A\\":-45,Aa:26,Af:-11,As:26,At:-15,Au:-7,Av:-8,Aw:-4,Ax:-4,Ay:-8,"B*":-34,BJ:-18,BS:-15,BT:-27,BV:-6,BW:-4,BX:-4,BY:-15,BZ:-4,Bt:-11,Bv:-15,Bw:-11,Bx:-11,By:-15,"C-":-29,CC:-32,CG:-32,CJ:-11,CO:-32,CQ:-32,CS:-27,CT:-20,CU:-15,CV:-4,CW:-4,CX:-4,CY:-8,CZ:-11,Cg:-22,Ct:-30,Cu:-11,Cv:-15,Cw:-11,Cy:-15,"D*":-38,"D/":-20,DA:-11,DJ:-44,DT:-27,DV:-11,DW:-7,DX:-19,DY:-22,DZ:-22,Dx:-15,Dz:-8,Ec:-11,Ed:-11,Ee:-11,Eo:-11,Eq:-11,Et:-27,Ev:-11,Ex:-34,Ey:-11,"F,":-81,"F.":-81,"F/":-78,FA:-42,FC:-11,FG:-11,FJ:-155,FO:-11,FQ:-11,FS:-22,FV:4,FW:4,FX:-27,FZ:-34,Fa:-38,Fc:-15,Fd:-15,Fe:-15,Fg:-27,Fm:-22,Fn:-22,Fo:-15,Fp:-22,Fq:-15,Fr:-22,Fs:-22,Ft:-11,Fu:-18,Fv:-22,Fw:-18,Fx:-29,Fy:-18,Fz:-33,"G*":-31,GA:-4,GT:-22,GV:-15,GW:-4,"J,":-27,"J.":-27,JJ:-45,'K"':-23,"K'":-23,"K*":-45,"K-":-33,"K?":-8,KA:-11,KC:-22,KG:-22,KO:-22,KQ:-22,KS:-10,KT:-19,KU:-15,KV:-14,KW:-11,KY:-18,Kc:-8,Kd:-8,Ke:-8,Kj:-11,Ko:-8,Kq:-8,Kt:-37,Ku:-16,Kv:-22,Kw:-18,Kx:-18,Ky:-22,Kz:-15,'L"':-99,"L'":-99,"L*":-170,"L-":-60,"L?":-36,LA:3,LC:-29,LG:-29,LO:-29,LQ:-29,LS:-25,LT:-134,LU:-32,LV:-85,LW:-63,LY:-85,"L\\":-89,Lc:-13,Ld:-13,Le:-13,Lf:-15,Lg:-4,Lo:-13,Lq:-13,Lt:-22,Lu:-11,Lv:-40,Lw:-38,Ly:-40,"O*":-38,"O/":-20,OA:-11,OJ:-44,OT:-27,OV:-11,OW:-7,OX:-19,OY:-22,OZ:-22,Ox:-15,Oz:-8,"P,":-125,"P-":-37,"P.":-125,"P/":-85,PA:-56,PJ:-164,PS:-11,PT:-27,PX:-27,PY:-11,PZ:-87,Pa:-48,Pc:-27,Pd:-27,Pe:-27,Pg:-34,Po:-27,Pq:-27,Ps:-11,Px:-15,Pz:-22,"Q*":-38,"Q/":-20,QA:-11,QJ:-44,QT:-27,QV:-11,QW:-7,QX:-19,QY:-22,QZ:-22,Qx:-15,Qz:-8,"R*":-11,"R-":-35,RA:-4,RJ:-20,RS:-15,RT:-15,RV:6,RW:7,RX:-4,RZ:-11,Ra:-4,Rc:-11,Rd:-11,Re:-11,Rg:-4,Ro:-11,Rq:-11,Rx:-8,Rz:-8,"S*":-18,"S-":15,SJ:-15,SS:-15,ST:-22,SY:-15,St:-27,"T,":-119,"T-":-81,"T.":-119,"T/":-100,"T:":-22,"T;":-22,TA:-45,TC:-27,TG:-27,TJ:-141,TO:-27,TQ:-27,TS:-44,TX:-22,TY:-15,TZ:-60,Ta:-81,Tc:-74,Td:-74,Te:-74,Tf:-20,Tg:-81,Tm:-52,Tn:-52,To:-74,Tp:-52,Tq:-74,Tr:-52,Ts:-66,Tt:-20,Tu:-52,Tv:-37,Tw:-38,Tx:-44,Ty:-37,Tz:-84,"U,":-18,"U.":-18,"U/":-35,UA:-18,UJ:-53,US:-11,UV:-4,UX:-11,UY:-15,Ua:-4,Ug:-11,Us:-4,Ux:-8,"V,":-73,"V-":-21,"V.":-73,"V/":-52,VA:-15,VC:-11,VG:-11,VJ:-81,VO:-11,VQ:-11,VS:-11,VU:-11,VV:11,VZ:-21,Va:-25,Vc:-17,Vd:-17,Ve:-17,Vg:-24,Vm:-22,Vn:-22,Vo:-17,Vp:-22,Vq:-17,Vr:-22,Vs:-14,Vu:-34,Vv:-10,Vw:-10,Vx:-17,Vy:-10,Vz:-28,"W,":-38,"W-":-11,"W.":-38,"W/":-33,WC:-7,WG:-7,WJ:-73,WO:-7,WQ:-7,WS:-7,WZ:-7,Wa:-18,Wg:-14,Wz:-11,'X"':-11,"X'":-11,"X*":-11,"X-":-30,XA:3,XC:-19,XG:-19,XO:-19,XQ:-19,XS:-15,XT:-22,XU:-11,Xa:-11,Xc:-8,Xd:-8,Xe:-8,Xf:-18,Xo:-8,Xq:-8,Xt:-18,Xu:-11,Xv:-18,Xw:-15,Xx:-11,Xy:-18,Xz:-15,"Y,":-101,"Y-":-74,"Y.":-101,"Y/":-75,"Y:":-28,"Y;":-28,"Y?":-8,YA:-15,YC:-15,YG:-15,YJ:-112,YO:-15,YQ:-15,YS:-18,YT:-15,YU:-11,YZ:-29,Ya:-75,Yc:-46,Yd:-46,Ye:-46,Yg:-67,Ym:-45,Yn:-45,Yo:-46,Yp:-45,Yq:-46,Yr:-45,Ys:-46,Yt:-31,Yu:-38,Yv:-15,Yw:-27,Yx:-38,Yy:-15,Yz:-53,"Z-":-38,ZA:-7,ZC:-22,ZG:-22,ZJ:-37,ZO:-22,ZQ:-22,ZS:-34,ZU:-11,ZV:-7,ZW:-7,ZY:-15,ZZ:-18,Za:-18,Zc:-24,Zd:-24,Ze:-24,Zf:-22,Zg:-16,Zo:-24,Zq:-24,Zt:-15,Zu:-26,Zv:-18,Zw:-18,Zx:-27,Zy:-18,"[J":-22,"[j":89,"\\T":-96,"\\U":-33,"\\V":-59,"\\W":-33,"\\Y":-81,"\\g":37,"\\j":81,"\\v":-22,"\\w":-11,"\\y":14,"a*":-60,"a?":-14,aT:-27,aV:-18,aW:-4,aY:-27,at:-15,'b"':-33,"b'":-33,"b*":-29,"b,":-11,"b-":7,"b.":-11,"b?":-14,bT:-64,bV:-21,bX:-4,bY:-52,"b\\":-29,ba:-16,bt:-19,bv:-4,bw:-4,bx:-19,by:-4,bz:-6,"c-":-22,cT:-22,cV:-15,cY:-27,ca:-11,cc:-24,cd:-24,ce:-24,cg:-11,co:-24,cq:-24,ct:-11,cv:7,cw:7,cx:9,cy:7,"e*":-38,"e-":11,"e?":-8,eJ:-22,eS:-22,eT:-27,eV:-18,eW:-11,eY:-29,"e\\":-22,ea:-16,eg:-11,et:-11,ev:5,ew:5,ex:-8,ey:5,"f!":16,'f"':45,"f'":45,"f)":55,"f,":-56,"f-":-15,"f.":-56,"f/":-16,"f?":29,fT:52,fV:74,fW:52,fX:37,fY:66,"f\\":70,"f]":55,fa:-22,fc:-11,fd:-11,fe:-11,fg:-16,fj:-11,fo:-11,fq:-11,fs:-4,fv:14,fx:-4,fz:-15,"f}":55,"g)":16,"g*":-37,"g/":53,"g?":-40,gT:-29,gY:-15,"g]":16,ga:-18,gc:-15,gd:-15,ge:-15,gj:41,go:-15,gq:-15,gv:-4,gw:-4,gy:17,gz:-15,"g}":16,"h*":-38,"h?":-8,hT:-27,hV:-11,hY:-18,"k*":-24,"k,":14,"k-":-49,"k.":14,"k:":14,"k;":14,"k?":-14,kT:-39,kY:-13,ka:-11,kc:-20,kd:-20,ke:-20,kg:-11,kj:-11,ko:-20,kq:-20,kt:-23,ku:-15,kx:-8,kz:-8,lj:9,"m*":-38,"m?":-8,mT:-27,mV:-11,mY:-18,"n*":-38,"n?":-8,nT:-27,nV:-11,nY:-18,'o"':-33,"o'":-33,"o*":-29,"o,":-11,"o-":7,"o.":-11,"o?":-14,oT:-64,oV:-21,oX:-4,oY:-52,"o\\":-29,oa:-16,ot:-19,ov:-4,ow:-4,ox:-19,oy:-4,oz:-6,'p"':-33,"p'":-33,"p*":-29,"p,":-11,"p-":7,"p.":-11,"p?":-14,pT:-64,pV:-21,pX:-4,pY:-52,"p\\":-29,pa:-16,pt:-19,pv:-4,pw:-4,px:-19,py:-4,pz:-6,"q*":-27,qT:-22,qV:-15,qY:-34,"r,":-63,"r-":-27,"r.":-63,"r/":-38,"r:":29,"r;":29,rA:-15,rJ:-61,rZ:-11,"r\\":14,ra:-27,rc:-11,rd:-11,re:-11,rg:-11,ro:-11,rq:-11,rs:-4,rv:29,rw:21,ry:29,rz:-4,"s*":-55,"s-":11,"s?":-12,sT:-27,sV:-11,sY:-22,st:-22,"t,":7,"t-":-29,"t.":7,"t/":11,"t:":16,"t;":16,"t?":-29,tT:-15,tY:-4,ta:-24,tc:-15,td:-15,te:-15,tg:-11,to:-15,tq:-15,ts:-11,tt:-22,tx:-18,"u*":-27,uT:-22,uV:-15,uY:-34,"v*":-13,"v,":-38,"v-":-8,"v.":-38,"v/":-22,vA:-13,vJ:-45,vT:-22,vV:-10,vY:-15,vZ:-11,va:-22,vc:-4,vd:-4,ve:-4,vj:-11,vo:-4,vq:-4,vz:-27,"w*":-13,"w,":-45,"w.":-45,"w/":-8,wA:-4,wJ:-34,wT:-27,wV:-10,wX:-15,wY:-27,wa:-11,wc:-4,wd:-4,we:-4,wj:-11,wo:-4,wq:-4,wz:-19,"x!":-15,"x*":-25,"x,":8,"x-":-15,"x.":-8,"x;":8,xC:-11,xG:-11,xO:-11,xQ:-11,xS:-4,xT:-37,xV:-17,xX:-11,xY:-38,xa:-11,xc:-19,xd:-19,xe:-19,xo:-19,xq:-19,xt:-27,"y,":-38,"y.":-38,"y/":-16,yJ:-45,yT:-22,yV:-4,yX:-4,yY:-8,ya:-22,yc:-4,yd:-4,ye:-4,yj:-11,yo:-4,yq:-4,yx:-15,yz:-27,"z-":-18,zT:-29,zY:-33,za:-26,zc:-11,zd:-11,ze:-11,zg:-7,zo:-11,zq:-11,zu:-11,zv:-4,zy:-4,"{J":-22,"{j":89}},"Source Han Serif":{fontFamily:"Source Han Serif",fontWeight:400,fontStyle:"normal",unitsPerEm:1e3,metrics:{ascender:1151,descender:-286,lineGap:0},glyphs:{" ":258,"\t":258,"\n":258,"\r":258,"!":303,'"':367,"#":567,"%":935,"&":780,"'":189,"(":361,")":361,"*":479,"+":576,",":326,"-":338,".":326,"/":348,":":326,";":326,"<":576,"=":576,">":576,"?":438,"@":901,B:675,C:690,D:772,E:655,F:629,G:742,H:859,I:401,J:402,K:723,L:640,M:979,N:798,P:637,R:707,S:557,T:653,V:726,W:1047,X:702,Y:688,Z:599,"[":341,"\\":348,"]":341,"^":576,_:555,"`":435,b:627,c:529,d:617,e:549,f:385,g:560,h:655,i:325,j:301,k:592,l:324,m:976,n:658,p:630,q:602,r:454,s:470,t:354,v:546,w:829,x:564,y:551,z:496,"{":375,"|":270,"}":375,"~":576,"¡":303,"¤":542,"¦":270,"¨":435,"©":822,ª:376,"«":524,"¬":576,"®":498,"¯":435,"°":350,"²":395,"³":395,"´":435,µ:619,"·":326,"¸":435,"¹":395,º:404,"»":524,"¼":935,"½":935,"¾":935,"¿":438,Æ:997,Ç:690,È:655,É:655,Ê:655,Ë:655,Ì:401,Í:401,Î:401,Ï:401,Ð:772,Ñ:798,Ý:688,Þ:659,ß:636,æ:852,ç:529,è:549,é:549,ê:549,ë:549,ì:325,í:325,î:325,ï:325,ð:591,ñ:658,ý:551,þ:608,ÿ:551,Đ:772,đ:617,Ē:655,ē:549,Ě:655,ě:549,Ĩ:401,ĩ:325,Ī:401,ī:325,Ń:798,ń:658,Ň:798,ň:658,Œ:1012,œ:949,Ǐ:401,ǐ:325,Ǹ:798,ǹ:658,Β:675,Γ:608,Δ:688,Ε:655,Ζ:599,Η:859,Ι:401,Κ:723,Λ:716,Μ:979,Ν:798,Ξ:636,Π:844,Ρ:637,Σ:591,Τ:653,Υ:688,Φ:770,Χ:702,Ψ:822,Ω:797,α:604,β:616,γ:529,δ:565,ε:455,ζ:450,ι:303,κ:571,λ:570,μ:619,ν:529,ξ:471,ο:563,π:645,ρ:591,ς:495,σ:636,τ:522,υ:586,φ:754,χ:527,ψ:776,ω:788,"‒":555,"—":882,"‚":229,"„":436,"′":265,"″":449,"‹":309,"›":309,"‼":584,"⁇":832,"⁉":713,ℓ:495,"№":1089,"™":780,℮:870,"−":576,"✓":646,"〪":0,"〫":0,"〬":0,"〭":0,"〮":250,"〯":250,"゙":0,"゚":0},glyphsByWidth:{500:" 。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ᄀᄁᆪᄂᆬᆭᄃᄄᄅᆰᆱᆲᆳᆴᆵᄚᄆᄇᄈᄡᄉᄊᄋᄌᄍᄎᄏᄐᄑ하ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵ│←↑→↓■○",539:"$0123456789¢£¥ƒ₩₫€",552:"aàáâãäåāăǎθ",594:"oòóôõöøōŏơǒη",639:"uùúûüũūŭưǔǖǘǚǜ",719:"AÀÁÂÃÄÅĀĂǍΑ⁈",769:"OQÒÓÔÕÖØŌŎƠǑΘΟ",792:"UÙÚÛÜŨŪŬƯǓǕǗǙǛ",966:"ㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣㅥㅦㅧㅨㅩㅪㅫㅬㅭㅮㅯㅰㅱㅲㅳㅴㅵㅶㅷㅸㅹㅺㅻㅼㅽㅾㅿㆀㆁㆂㆃㆄㆅㆆㆇㆈㆉㆊㆋㆌㆍㆎ"},defaultWidth:1e3,kerning:{'",':-114,'".':-114,'"/':-86,'"A':-133,'"C':-27,'"G':-27,'"J':-10,'"O':-27,'"Q':-27,'"S':-10,'"T':32,'"U':-4,'"a':-32,'"c':-43,'"d':-43,'"e':-43,'"f':-5,'"g':-56,'"m':-8,'"n':-8,'"o':-43,'"p':-19,'"q':-43,'"r':-8,'"s':-32,'"z':-10,"#/":-32,"#A":-41,"#C":14,"#G":14,"#O":14,"#Q":14,"#V":-21,"#W":-21,"#Y":-5,"#f":-5,"#g":-7,"#t":10,"#v":5,"#w":5,"#y":5,"&)":-21,"&,":-7,"&-":-25,"&.":-7,"&J":-8,"&T":-59,"&U":-30,"&V":-68,"&W":-63,"&Y":-63,"&]":-21,"&c":-10,"&d":-10,"&e":-10,"&o":-10,"&q":-10,"&}":-21,"',":-114,"'.":-114,"'/":-86,"'A":-133,"'C":-27,"'G":-27,"'J":-10,"'O":-27,"'Q":-27,"'S":-10,"'T":32,"'U":-4,"'a":-32,"'c":-43,"'d":-43,"'e":-43,"'f":-5,"'g":-56,"'m":-8,"'n":-8,"'o":-43,"'p":-19,"'q":-43,"'r":-8,"'s":-32,"'z":-10,"(#":-21,"(&":-21,"((":-54,"()":13,"(-":-43,"(:":-43,"(;":-43,"(A":-32,"(C":-21,"(G":-21,"(J":36,"(O":-21,"(Q":-21,"(S":-10,"(U":-10,"([":-54,"(]":13,"(c":-30,"(d":-30,"(e":-30,"(f":-5,"(j":106,"(m":-16,"(n":-16,"(o":-30,"(q":-30,"(r":-16,"(s":-21,"(t":-10,"(u":-23,"(v":-21,"(w":-21,"(x":-10,"(y":16,"(z":-10,"({":-54,"(}":13,"))":-54,"),":-43,").":-43,")A":-31,")T":-21,")U":-21,")V":-53,")W":-43,")X":-21,")Y":-43,")]":-54,")}":-54,"*,":-108,"*.":-108,"*A":-122,"*C":-10,"*G":-10,"*J":-21,"*O":-10,"*Q":-10,"*T":23,"*X":-7,"*a":-41,"*c":-27,"*d":-27,"*e":-27,"*f":-8,"*g":-46,"*m":-7,"*n":-7,"*o":-27,"*p":-10,"*q":-27,"*r":-7,"*s":-25,"*z":-14,',"':-86,",'":-86,",(":-54,",)":-48,",*":-141,",-":-43,",C":-59,",G":-59,",O":-59,",Q":-59,",T":-86,",U":-65,",V":-144,",W":-128,",Y":-127,",[":-54,",\\":-141,",]":-48,",a":-21,",c":-32,",d":-32,",e":-32,",g":-21,",j":8,",o":-32,",p":-32,",q":-32,",s":-16,",t":-43,",u":-45,",v":-97,",w":-97,",y":-43,",z":-21,",{":-54,",}":-48,"-)":-43,"-,":-53,"-.":-53,"-/":-32,"-A":-32,"-C":10,"-G":10,"-J":-21,"-M":-10,"-N":-10,"-O":10,"-Q":10,"-T":-44,"-U":-10,"-V":-85,"-W":-75,"-X":-43,"-Y":-76,"-Z":-10,"-\\":-43,"-]":-43,"-b":-3,"-c":10,"-d":10,"-e":10,"-f":-7,"-g":5,"-h":-3,"-k":-3,"-l":-3,"-o":10,"-q":10,"-v":-7,"-w":-7,"-x":-21,"-y":-8,"-}":-43,'."':-86,".'":-86,".(":-54,".)":-48,".*":-141,".-":-43,".C":-59,".G":-59,".O":-59,".Q":-59,".T":-86,".U":-65,".V":-144,".W":-128,".Y":-127,".[":-54,".\\":-141,".]":-48,".a":-21,".c":-32,".d":-32,".e":-32,".g":-21,".j":8,".o":-32,".p":-32,".q":-32,".s":-16,".t":-43,".u":-45,".v":-97,".w":-97,".y":-43,".z":-21,".{":-54,".}":-48,"/#":-21,"/,":-148,"/-":-65,"/.":-148,"//":-82,"/A":-76,"/T":5,"/V":13,"/W":13,"/a":-35,"/c":-32,"/d":-32,"/e":-32,"/g":-35,"/m":-19,"/n":-19,"/o":-32,"/p":-19,"/q":-32,"/r":-19,"/s":-21,"/u":-14,"/x":-10,"/z":-21,":T":-5,":U":-10,":V":-32,":W":-32,":X":-7,":Y":-54,":c":-3,":d":-3,":e":-3,":o":-3,":q":-3,";T":-5,";U":-10,";V":-32,";W":-32,";X":-7,";Y":-54,";c":-3,";d":-3,";e":-3,";o":-3,";q":-3,"?)":-33,"?,":-121,"?.":-121,"?/":-76,"?]":-33,"?}":-33,"@,":-16,"@.":-16,"@A":-6,"@C":5,"@G":5,"@O":5,"@Q":5,"@V":-3,"@W":-3,"@X":-3,"@Y":-5,"@_":-86,"@b":-13,"@f":-5,"@g":-10,"@h":-13,"@k":-13,"@l":-13,"@p":-8,"@y":5,'A"':-122,"A'":-122,"A(":-20,"A)":-32,"A*":-117,"A-":-34,AA:10,AB:-10,AC:-38,AD:-10,AE:-10,AF:-10,AG:-38,AH:-10,AI:-10,AJ:-13,AK:-10,AL:-10,AM:-7,AN:-7,AO:-38,AP:-10,AQ:-38,AR:-10,AT:-63,AU:-72,AV:-132,AW:-108,AY:-97,"A[":-20,"A\\":-65,"A]":-32,Aa:-4,Ac:-19,Ad:-19,Ae:-19,Ag:-3,Aj:-8,Ao:-19,Ap:-30,Aq:-19,At:-21,Au:-21,Av:-57,Aw:-57,Ay:-48,"A{":-20,"A}":-32,'B"':-21,"B'":-21,"B)":-16,"B*":-10,"B,":-29,"B.":-29,"B/":-19,BA:-32,BB:-27,BC:-7,BD:-27,BE:-27,BF:-27,BG:-7,BH:-27,BI:-27,BJ:-11,BK:-27,BL:-27,BM:-16,BN:-16,BO:-7,BP:-27,BQ:-7,BR:-27,BT:-21,BU:-32,BV:-54,BW:-40,BX:-32,BY:-54,BZ:-7,"B\\":-16,"B]":-16,B_:-27,Bb:-10,Bf:-16,Bh:-10,Bk:-10,Bl:-10,Bp:-10,Bu:-16,Bv:-18,Bw:-18,Bx:-10,By:-8,"B}":-16,'C"':21,"C'":21,"C)":3,"C*":3,"C@":5,CU:-10,CV:-10,CW:-10,CY:-21,"C]":3,C_:-7,Cp:-10,Cu:-10,"C}":3,'D"':-3,"D'":-3,"D)":-21,"D,":-45,"D-":3,"D.":-45,"D/":-30,"D@":16,DA:-57,DB:-28,DC:10,DD:-28,DE:-28,DF:-28,DG:10,DH:-28,DI:-28,DJ:-10,DK:-28,DL:-28,DM:-21,DN:-21,DO:10,DP:-28,DQ:10,DR:-28,DT:-19,DU:-21,DV:-48,DW:-51,DX:-43,DY:-65,DZ:-8,"D\\":-16,"D]":-21,D_:-76,Db:-10,Dg:-10,Dh:-10,Dk:-10,Dl:-10,Dp:-10,Ds:-10,Dx:-10,"D}":-21,EU:-15,EV:-15,EW:-15,EY:-15,Eg:-7,Ep:-19,Eu:-10,Ev:-19,Ew:-19,Ey:-21,'F"':13,"F&":-8,"F'":13,"F(":-10,"F*":10,"F,":-103,"F-":-21,"F.":-103,"F/":-65,"F:":-5,"F;":-5,"F@":-22,FA:-77,FB:-10,FC:-9,FD:-10,FE:-10,FF:-10,FG:-9,FH:-10,FI:-10,FK:-10,FL:-10,FO:-9,FP:-10,FQ:-9,FR:-10,FT:10,"F[":-10,"F\\":14,F_:-130,Fa:-43,Fb:-3,Fc:-46,Fd:-46,Fe:-46,Ff:-30,Fg:-67,Fh:-3,Fi:-8,Fk:-3,Fl:-3,Fm:-21,Fn:-21,Fo:-46,Fp:-43,Fq:-46,Fr:-21,Fs:-47,Fu:-21,Fv:-21,Fw:-21,Fx:-32,Fy:-21,Fz:-32,"F{":-10,"G(":10,"G)":-5,"G,":-8,"G-":23,"G.":-8,"G/":-16,"G@":13,GA:-10,GB:-8,GC:10,GD:-8,GE:-8,GF:-8,GG:10,GH:-8,GI:-8,GK:-8,GL:-8,GO:10,GP:-8,GQ:10,GR:-8,GT:-8,GU:-15,GV:-38,GW:-38,GX:-19,GY:-48,GZ:-8,"G[":10,"G]":-5,G_:-41,Gp:-10,"G{":10,"G}":-5,HC:-23,HG:-23,HO:-23,HQ:-23,Ha:-21,Hc:-25,Hd:-25,He:-25,Hf:-18,Hg:-18,Ho:-25,Hp:-34,Hq:-25,Hs:-21,Ht:-10,Hu:-25,Hv:-40,Hw:-40,Hy:-30,IC:-23,IG:-23,IO:-23,IQ:-23,Ia:-21,Ic:-25,Id:-25,Ie:-25,If:-18,Ig:-18,Io:-25,Ip:-34,Iq:-25,Is:-21,It:-10,Iu:-25,Iv:-40,Iw:-40,Iy:-30,"J,":-57,"J-":-10,"J.":-57,"J/":-30,"J:":-23,"J;":-23,"J@":-14,JA:-41,JC:-10,JG:-10,JO:-10,JQ:-10,JS:-8,J_:-79,Ja:-26,Jc:-25,Jd:-25,Je:-25,Jf:-40,Jg:-32,Ji:-8,Jj:-8,Jm:-27,Jn:-27,Jo:-25,Jp:-41,Jq:-25,Jr:-27,Js:-30,Jt:-19,Ju:-32,Jv:-32,Jw:-32,Jx:-21,Jy:-30,Jz:-21,"K-":-32,KA:10,KC:-30,KG:-30,KJ:-16,KO:-30,KQ:-30,KU:-10,KV:-8,KW:-8,KY:-10,KZ:8,Ka:-8,Kc:-21,Kd:-21,Ke:-21,Kg:-10,Ko:-21,Kp:-30,Kq:-21,Kt:-21,Ku:-21,Kv:-59,Kw:-59,Ky:-52,'L"':-141,"L'":-141,"L)":-27,"L*":-108,LB:-18,LC:-16,LD:-18,LE:-18,LF:-18,LG:-16,LH:-18,LI:-18,LJ:-18,LK:-18,LL:-18,LM:-7,LN:-7,LO:-16,LP:-18,LQ:-16,LR:-18,LS:-16,LT:-77,LU:-48,LV:-117,LW:-101,LX:-16,LY:-108,LZ:-16,"L\\":-59,"L]":-27,Lf:-7,Lp:-18,Lt:-8,Lu:-22,Lv:-41,Lw:-41,Ly:-32,"L}":-27,MC:-23,MG:-23,MO:-23,MQ:-23,Ma:-21,Mc:-25,Md:-25,Me:-25,Mf:-18,Mg:-18,Mo:-25,Mp:-34,Mq:-25,Ms:-21,Mt:-10,Mu:-25,Mv:-40,Mw:-40,My:-30,"N,":-32,"N-":-3,"N.":-32,"N/":-33,"N:":-14,"N;":-14,NA:-39,NB:-8,NC:-17,ND:-8,NE:-8,NF:-8,NG:-17,NH:-8,NI:-8,NK:-8,NL:-8,NO:-17,NP:-8,NQ:-17,NR:-8,NS:-8,NU:-10,NX:-10,NZ:-3,N_:-59,Na:-14,Nc:-11,Nd:-11,Ne:-11,Nf:-21,Ng:-21,Nm:-10,Nn:-10,No:-11,Np:-22,Nq:-11,Nr:-10,Ns:-11,Nt:-10,Nu:-21,Nv:-21,Nw:-21,Nx:-19,Ny:-21,Nz:-21,'O"':-27,"O'":-27,"O)":-21,"O*":-10,"O,":-43,"O-":10,"O.":-43,"O/":-21,"O@":21,OA:-38,OB:-23,OC:10,OD:-23,OE:-23,OF:-23,OG:10,OH:-23,OI:-23,OJ:-8,OK:-23,OL:-23,OM:-16,ON:-16,OO:10,OP:-23,OQ:10,OR:-23,OT:-8,OU:-19,OV:-38,OW:-29,OX:-32,OY:-43,"O\\":-7,"O]":-21,O_:-59,"O}":-21,'P"':10,"P&":-6,"P'":10,"P)":-9,"P*":23,"P,":-111,"P-":-5,"P.":-111,"P/":-54,"P:":8,"P;":8,PA:-66,PB:-10,PD:-10,PE:-10,PF:-10,PH:-10,PI:-10,PJ:-10,PK:-10,PL:-10,PP:-10,PR:-10,PS:7,PT:10,PU:-21,PV:-10,PW:-10,PX:-21,PY:-23,PZ:10,"P\\":10,"P]":-9,P_:-155,Pa:-5,Pb:-3,Pc:-21,Pd:-21,Pe:-21,Pg:-21,Ph:-3,Pk:-3,Pl:-3,Pm:-7,Pn:-7,Po:-21,Pq:-21,Pr:-7,Ps:-3,Pt:16,Pv:8,Pw:8,Py:16,"P}":-9,'Q"':-27,"Q'":-27,"Q)":-21,"Q*":-10,"Q,":-43,"Q-":10,"Q.":-43,"Q/":-21,"Q@":21,QA:-38,QB:-23,QC:10,QD:-23,QE:-23,QF:-23,QG:10,QH:-23,QI:-23,QJ:-8,QK:-23,QL:-23,QM:-16,QN:-16,QO:10,QP:-23,QQ:10,QR:-23,QT:-8,QU:-19,QV:-38,QW:-29,QX:-32,QY:-43,"Q\\":-7,"Q]":-21,Q_:-59,"Q}":-21,'R"':-43,"R'":-43,"R*":-14,"R-":-16,RA:10,RC:-20,RG:-20,RJ:-10,RO:-20,RQ:-20,RT:-32,RU:-35,RV:-59,RW:-52,RX:7,RY:-52,RZ:7,"R\\":-21,R_:18,Rc:-10,Rd:-10,Re:-10,Ro:-10,Rp:-14,Rq:-10,Rt:-10,Ru:-14,Rv:-21,Rw:-21,Ry:-21,"S)":-10,"S,":-21,"S.":-21,"S/":-16,"S@":5,SA:-19,SB:-7,SD:-7,SE:-7,SF:-7,SH:-7,SI:-7,SJ:-8,SK:-7,SL:-7,SM:-7,SN:-7,SP:-7,SR:-7,SS:-8,ST:-10,SU:-27,SV:-29,SW:-27,SX:-10,SY:-32,"S]":-10,S_:-43,Sb:-7,Sf:-16,Sg:-7,Sh:-7,Sk:-7,Sl:-7,Sp:-10,St:-10,Su:-10,Sv:-19,Sw:-19,Sx:-8,Sy:-19,"S}":-10,'T"':32,"T'":32,"T(":-21,"T*":23,"T,":-86,"T-":-44,"T.":-86,"T/":-50,"T:":-5,"T;":-5,"T@":-21,TA:-70,TC:-8,TG:-8,TO:-8,TQ:-8,TT:10,TU:-10,TX:-3,TZ:7,"T[":-21,"T\\":27,T_:-88,Ta:-43,Tc:-73,Td:-73,Te:-73,Tf:-10,Tg:-43,Tm:-32,Tn:-32,To:-73,Tp:-72,Tq:-73,Tr:-32,Ts:-54,Tu:-30,Tv:-43,Tw:-43,Tx:-38,Ty:-43,Tz:-65,"T{":-21,"U&":-14,"U(":-21,"U)":-10,"U,":-86,"U-":-14,"U.":-86,"U/":-60,"U:":-14,"U;":-14,UA:-79,UB:-21,UC:-28,UD:-21,UE:-21,UF:-21,UG:-28,UH:-21,UI:-21,UJ:-15,UK:-21,UL:-21,UM:-10,UN:-10,UO:-28,UP:-21,UQ:-28,UR:-21,US:-19,UT:-10,UU:-21,UV:-18,UW:-7,UX:-10,UZ:-9,"U[":-21,"U]":-10,U_:-90,Ua:-43,Ub:-7,Uc:-32,Ud:-32,Ue:-32,Uf:-21,Ug:-43,Uh:-7,Ui:-19,Uj:-8,Uk:-7,Ul:-7,Um:-27,Un:-27,Uo:-32,Up:-46,Uq:-32,Ur:-27,Us:-43,Ut:-21,Uu:-32,Uv:-25,Uw:-25,Ux:-35,Uy:-32,Uz:-38,"U{":-21,"U}":-10,"V&":-42,"V(":-54,"V,":-166,"V-":-80,"V.":-166,"V/":-95,"V:":-43,"V;":-43,"V@":-52,VA:-122,VC:-48,VG:-48,VO:-48,VQ:-48,VS:-21,VU:-10,VZ:-10,"V[":-54,"V\\":13,V_:-171,Va:-86,Vb:-5,Vc:-79,Vd:-79,Ve:-79,Vf:-54,Vg:-90,Vh:-5,Vi:-30,Vj:-21,Vk:-5,Vl:-5,Vm:-63,Vn:-63,Vo:-79,Vp:-78,Vq:-79,Vr:-63,Vs:-92,Vt:-32,Vu:-65,Vv:-43,Vw:-43,Vx:-76,Vy:-65,Vz:-68,"V{":-54,"W&":-33,"W(":-43,"W,":-133,"W-":-70,"W.":-133,"W/":-97,"W:":-43,"W;":-43,"W@":-52,WA:-114,WC:-41,WG:-41,WM:-7,WN:-7,WO:-41,WQ:-41,WS:-21,WU:-10,WZ:-10,"W[":-43,"W\\":13,W_:-142,Wa:-79,Wb:-5,Wc:-81,Wd:-81,We:-81,Wf:-43,Wg:-90,Wh:-5,Wi:-21,Wj:-21,Wk:-5,Wl:-5,Wm:-54,Wn:-54,Wo:-81,Wp:-76,Wq:-81,Wr:-54,Ws:-78,Wt:-28,Wu:-59,Wv:-46,Ww:-46,Wx:-59,Wy:-46,Wz:-68,"W{":-43,"X(":-21,"X*":-7,"X-":-46,"X:":-7,"X;":-7,XC:-32,XG:-32,XO:-32,XQ:-32,XT:-10,XU:-10,XZ:7,"X[":-21,Xa:-3,Xc:-33,Xd:-33,Xe:-33,Xj:-16,Xo:-33,Xp:-34,Xq:-33,Xs:-10,Xt:-32,Xu:-43,Xv:-70,Xw:-70,Xy:-52,"X{":-21,"Y&":-41,"Y(":-54,"Y,":-113,"Y-":-86,"Y.":-113,"Y/":-97,"Y:":-65,"Y;":-65,"Y@":-52,YA:-96,YC:-54,YG:-54,YO:-54,YQ:-54,YS:-43,"Y[":-54,"Y\\":14,Y_:-119,Ya:-84,Yb:-5,Yc:-100,Yd:-100,Ye:-100,Yf:-65,Yg:-104,Yh:-5,Yi:-43,Yj:-27,Yk:-5,Yl:-5,Ym:-72,Yn:-72,Yo:-100,Yp:-97,Yq:-100,Yr:-72,Ys:-89,Yt:-65,Yu:-89,Yv:-76,Yw:-76,Yx:-68,Yy:-76,Yz:-92,"Y{":-54,"Z@":5,ZC:-7,ZG:-7,ZO:-7,ZQ:-7,ZT:-10,ZU:-20,ZV:-10,ZW:-10,ZY:-10,Zp:-10,Zu:-14,Zv:-27,Zw:-27,Zy:-27,"[#":-21,"[&":-21,"[(":-54,"[)":13,"[-":-43,"[:":-43,"[;":-43,"[A":-32,"[C":-21,"[G":-21,"[J":36,"[O":-21,"[Q":-21,"[S":-10,"[U":-10,"[[":-54,"[]":13,"[c":-30,"[d":-30,"[e":-30,"[f":-5,"[j":106,"[m":-16,"[n":-16,"[o":-30,"[q":-30,"[r":-16,"[s":-21,"[t":-10,"[u":-23,"[v":-21,"[w":-21,"[x":-10,"[y":16,"[z":-10,"[{":-54,"[}":13,'\\"':-86,"\\'":-86,"\\,":16,"\\-":-21,"\\.":16,"\\C":-32,"\\G":-32,"\\J":76,"\\O":-32,"\\Q":-32,"\\T":-65,"\\U":-57,"\\V":-103,"\\W":-90,"\\Y":-86,"\\\\":-82,"\\g":5,"\\j":93,"\\t":-10,"\\u":-5,"\\v":-21,"\\w":-21,"\\y":32,"])":-54,"],":-43,"].":-43,"]A":-31,"]T":-21,"]U":-21,"]V":-53,"]W":-43,"]X":-21,"]Y":-43,"]]":-54,"]}":-54,_C:-59,_G:-59,_J:35,_O:-59,_Q:-59,_S:-21,_T:-88,_U:-108,_V:-163,_W:-152,_Y:-119,_a:-16,_c:-54,_d:-54,_e:-54,_o:-54,_p:-23,_q:-54,_s:-19,_t:-54,_u:-51,_v:-79,_w:-79,_y:-64,'a"':-67,"a'":-67,"a*":-48,"a-":-10,"a?":-3,aA:7,aB:-7,aC:-14,aD:-7,aE:-7,aF:-7,aG:-14,aH:-7,aI:-7,aJ:-19,aK:-7,aL:-7,aO:-14,aP:-7,aQ:-14,aR:-7,aT:-59,aU:-55,aV:-105,aW:-97,aY:-86,"a\\":-46,ag:-8,am:-4,an:-4,ap:-19,ar:-4,av:-19,aw:-19,ay:-10,'b"':-43,"b'":-43,"b)":-14,"b*":-27,"b,":-27,"b-":10,"b.":-27,"b/":-19,"b:":-3,"b;":-3,"b?":-3,bA:-43,bB:-23,bD:-23,bE:-23,bF:-23,bH:-23,bI:-23,bJ:-25,bK:-23,bL:-23,bM:-8,bN:-8,bP:-23,bR:-23,bS:-7,bT:-65,bU:-41,bV:-81,bW:-70,bX:-21,bY:-81,"b\\":-21,"b]":-14,b_:-54,bb:-7,bh:-7,bk:-7,bl:-7,bp:-8,bt:-7,bu:-7,bx:-19,by:-10,"b}":-14,'c"':-5,"c'":-5,"c*":-3,"c,":-3,"c.":-3,cA:-10,cB:-14,cD:-14,cE:-14,cF:-14,cH:-14,cI:-14,cJ:-21,cK:-14,cL:-14,cP:-14,cR:-14,cT:-43,cU:-32,cV:-73,cW:-65,cX:-21,cY:-65,"c\\":-5,c_:-27,cb:-10,ch:-10,ck:-10,cl:-10,cp:-10,'d"':-23,"d&":-13,"d'":-23,"d)":-3,"d*":-21,"d-":-5,"d?":-5,dJ:-3,dT:-23,dU:-26,dV:-43,dW:-38,dY:-45,"d\\":-5,"d]":-3,da:-8,dg:-8,dp:-18,du:-10,dv:-10,dw:-10,dy:-10,"d}":-3,'e"':-21,"e'":-21,"e)":-16,"e*":-21,"e,":-29,"e.":-29,"e/":-8,"e?":-3,eA:-19,eB:-10,eD:-10,eE:-10,eF:-10,eH:-10,eI:-10,eJ:-21,eK:-10,eL:-10,eP:-10,eR:-10,eT:-52,eU:-32,eV:-71,eW:-63,eX:-21,eY:-77,"e\\":-21,"e]":-16,e_:-43,ea:-7,eb:-10,ef:-7,eh:-10,ek:-10,el:-10,ep:-8,ev:-7,ew:-7,ey:-7,"e}":-16,"f!":41,'f"':84,"f'":84,"f)":97,"f*":57,"f,":-38,"f-":-13,"f.":-38,"f/":-18,"f?":39,fA:-7,fB:18,fD:18,fE:18,fF:18,fH:18,fI:18,fJ:26,fK:18,fL:18,fM:42,fN:42,fP:18,fR:18,fS:25,fT:58,fU:42,fV:58,fW:58,fX:51,fY:58,fZ:42,"f\\":104,"f]":97,f_:-23,fb:-10,fc:-17,fd:-17,fe:-17,fg:-5,fh:-10,fi:25,fj:25,fk:-10,fl:-10,fo:-17,fq:-17,fu:-10,fv:10,fw:10,fy:10,"f}":97,"g&":-21,"g-":-3,"g/":14,"g?":-5,gB:-7,gD:-7,gE:-7,gF:-7,gH:-7,gI:-7,gJ:52,gK:-7,gL:-7,gM:-5,gN:-5,gP:-7,gR:-7,gT:-27,gU:-34,gV:-43,gW:-43,gY:-72,"g\\":-16,ga:-19,gb:-13,gc:-8,gd:-8,ge:-8,gg:-8,gh:-13,gj:20,gk:-13,gl:-13,go:-8,gq:-8,gv:4,gw:4,gy:9,'h"':-59,"h'":-59,"h)":-14,"h*":-72,"h?":-7,hB:-5,hC:-3,hD:-5,hE:-5,hF:-5,hG:-3,hH:-5,hI:-5,hJ:-21,hK:-5,hL:-5,hO:-3,hP:-5,hQ:-3,hR:-5,hT:-63,hU:-35,hV:-92,hW:-84,hY:-76,"h\\":-54,"h]":-14,hp:-15,ht:-4,hu:-4,hv:-27,hw:-27,hy:-27,"h}":-14,"i!":-5,'i"':-7,"i&":-5,"i'":-7,"i*":-5,"i?":-7,iB:-5,iD:-5,iE:-5,iF:-5,iH:-5,iI:-5,iK:-5,iL:-5,iP:-5,iR:-5,iT:-21,iU:-21,iV:-21,iW:-21,iY:-21,ip:-11,iv:-15,iw:-15,iy:-15,'j"':-5,"j&":-5,"j'":-5,"j*":-5,"j,":-16,"j.":-16,"j/":-13,"j:":-14,"j;":-14,"j?":-3,jA:-14,jB:-7,jC:-3,jD:-7,jE:-7,jF:-7,jG:-3,jH:-7,jI:-7,jK:-7,jL:-7,jO:-3,jP:-7,jQ:-3,jR:-7,jU:-26,jV:-18,jW:-18,jX:-10,jY:-21,j_:-35,jb:-3,jg:-10,jh:-3,jk:-3,jl:-3,jp:-3,"k)":-10,"k*":-3,"k-":-21,"k:":-3,"k;":-3,"k?":-5,kA:16,kB:-5,kC:-4,kD:-5,kE:-5,kF:-5,kG:-4,kH:-5,kI:-5,kJ:-21,kK:-5,kL:-5,kO:-4,kP:-5,kQ:-4,kR:-5,kT:-43,kU:-43,kV:-72,kW:-59,kX:5,kY:-76,kZ:8,"k\\":-3,"k]":-10,kc:-19,kd:-19,ke:-19,ko:-19,kp:-10,kq:-19,ks:-7,"k}":-10,'l"':-23,"l&":-13,"l'":-23,"l)":-3,"l*":-21,"l-":-5,"l?":-5,lJ:-3,lT:-23,lU:-26,lV:-43,lW:-38,lY:-45,"l\\":-5,"l]":-3,la:-8,lg:-8,lp:-18,lu:-10,lv:-10,lw:-10,ly:-10,"l}":-3,'m"':-59,"m'":-59,"m)":-14,"m*":-72,"m?":-7,mB:-5,mC:-3,mD:-5,mE:-5,mF:-5,mG:-3,mH:-5,mI:-5,mJ:-21,mK:-5,mL:-5,mO:-3,mP:-5,mQ:-3,mR:-5,mT:-63,mU:-35,mV:-92,mW:-84,mY:-76,"m\\":-54,"m]":-14,mp:-15,mt:-4,mu:-4,mv:-27,mw:-27,my:-27,"m}":-14,'n"':-59,"n'":-59,"n)":-14,"n*":-72,"n?":-7,nB:-5,nC:-3,nD:-5,nE:-5,nF:-5,nG:-3,nH:-5,nI:-5,nJ:-21,nK:-5,nL:-5,nO:-3,nP:-5,nQ:-3,nR:-5,nT:-63,nU:-35,nV:-92,nW:-84,nY:-76,"n\\":-54,"n]":-14,np:-15,nt:-4,nu:-4,nv:-27,nw:-27,ny:-27,"n}":-14,'o"':-43,"o'":-43,"o)":-14,"o*":-27,"o,":-27,"o-":10,"o.":-27,"o/":-19,"o:":-3,"o;":-3,"o?":-3,oA:-43,oB:-23,oD:-23,oE:-23,oF:-23,oH:-23,oI:-23,oJ:-25,oK:-23,oL:-23,oM:-8,oN:-8,oP:-23,oR:-23,oS:-7,oT:-65,oU:-41,oV:-81,oW:-70,oX:-21,oY:-81,"o\\":-21,"o]":-14,o_:-54,ob:-7,oh:-7,ok:-7,ol:-7,op:-8,ot:-7,ou:-7,ox:-19,oy:-10,"o}":-14,'p"':-43,"p'":-43,"p)":-14,"p*":-27,"p,":-27,"p-":10,"p.":-27,"p/":-19,"p:":-3,"p;":-3,"p?":-3,pA:-43,pB:-23,pD:-23,pE:-23,pF:-23,pH:-23,pI:-23,pJ:-25,pK:-23,pL:-23,pM:-8,pN:-8,pP:-23,pR:-23,pS:-7,pT:-65,pU:-41,pV:-81,pW:-70,pX:-21,pY:-81,"p\\":-21,"p]":-14,p_:-54,pb:-7,ph:-7,pk:-7,pl:-7,pp:-8,pt:-7,pu:-7,px:-19,py:-10,"p}":-14,'q"':-25,"q&":-3,"q'":-25,"q)":10,"q*":-23,"q,":32,"q.":13,"q/":10,"q;":33,"q?":-3,qA:-14,qB:-23,qD:-23,qE:-23,qF:-23,qH:-23,qI:-23,qJ:33,qK:-23,qL:-23,qM:-16,qN:-16,qP:-23,qR:-23,qT:-54,qU:-45,qV:-86,qW:-72,qX:-5,qY:-86,"q\\":-14,"q]":10,q_:-3,qa:-8,qb:-7,qh:-7,qj:39,qk:-7,ql:-7,qy:19,"q}":10,'r"':5,"r&":-11,"r'":5,"r)":-25,"r*":16,"r,":-93,"r-":-32,"r.":-93,"r/":-52,"r:":-8,"r;":-8,"r?":-5,"r@":-13,rA:-60,rB:-25,rD:-25,rE:-25,rF:-25,rH:-25,rI:-25,rJ:-30,rK:-25,rL:-25,rM:-16,rN:-16,rP:-25,rR:-25,rT:-5,rU:-30,rV:-51,rW:-43,rX:-59,rY:-52,"r]":-25,r_:-71,ra:-10,rb:-10,rc:-14,rd:-14,re:-14,rg:-14,rh:-10,rk:-10,rl:-10,ro:-14,rq:-14,rs:-8,rt:18,rv:10,rw:10,ry:10,"r}":-25,'s"':-21,"s'":-21,"s)":-14,"s*":-14,"s,":-23,"s.":-23,sA:-10,sB:-21,sD:-21,sE:-21,sF:-21,sH:-21,sI:-21,sJ:-27,sK:-21,sL:-21,sM:-10,sN:-10,sP:-21,sR:-21,sT:-35,sU:-25,sV:-76,sW:-65,sY:-94,"s\\":-25,"s]":-14,s_:-41,sb:-10,sf:-4,sh:-10,sk:-10,sl:-10,sp:-9,"s}":-14,'t"':5,"t'":5,"t-":-10,tA:16,tJ:-10,tU:-13,tV:-43,tW:-32,tY:-48,tZ:7,t_:13,tt:7,tv:8,tw:8,'u"':-40,"u'":-40,"u)":-23,"u*":-38,"u:":-10,"u;":-10,uC:-13,uG:-13,uJ:-29,uO:-13,uQ:-13,uT:-41,uU:-40,uV:-83,uW:-76,uY:-78,"u\\":-21,"u]":-23,uc:-7,ud:-7,ue:-7,ug:-10,uj:-7,uo:-7,up:-11,uq:-7,uv:-21,uw:-21,uy:-21,"u}":-23,'v"':-3,"v&":-17,"v'":-3,"v)":-36,"v*":-3,"v,":-101,"v-":-14,"v.":-101,"v/":-43,"v:":-3,"v;":-3,"v?":-5,"v@":-8,vA:-71,vB:-27,vD:-27,vE:-27,vF:-27,vH:-27,vI:-27,vJ:-41,vK:-27,vL:-27,vM:-21,vN:-21,vP:-27,vR:-27,vT:-14,vU:-25,vV:-54,vW:-45,vX:-54,vY:-59,vZ:-6,"v]":-36,v_:-84,va:-15,vb:-23,vc:-19,vd:-19,ve:-19,vg:-19,vh:-23,vk:-23,vl:-23,vo:-19,vq:-19,vs:-9,vt:7,vv:11,vw:11,vy:11,"v}":-36,'w"':-3,"w&":-17,"w'":-3,"w)":-36,"w*":-3,"w,":-101,"w-":-14,"w.":-101,"w/":-43,"w:":-3,"w;":-3,"w?":-5,"w@":-8,wA:-71,wB:-27,wD:-27,wE:-27,wF:-27,wH:-27,wI:-27,wJ:-41,wK:-27,wL:-27,wM:-21,wN:-21,wP:-27,wR:-27,wT:-14,wU:-25,wV:-54,wW:-45,wX:-54,wY:-59,wZ:-6,"w]":-36,w_:-84,wa:-15,wb:-23,wc:-19,wd:-19,we:-19,wg:-19,wh:-23,wk:-23,wl:-23,wo:-19,wq:-19,ws:-9,wt:7,wv:11,ww:11,wy:11,"w}":-36,"x)":-14,"x-":-25,xA:7,xC:-8,xG:-8,xJ:-19,xO:-8,xQ:-8,xT:-30,xU:-32,xV:-76,xW:-54,xY:-68,"x]":-14,xa:-11,xc:-19,xd:-19,xe:-19,xg:-8,xo:-19,xp:-19,xq:-19,xx:5,"x}":-14,'y"':-3,"y&":-17,"y'":-3,"y)":-36,"y*":-3,"y,":-101,"y-":-14,"y.":-101,"y/":-43,"y:":-3,"y;":-3,"y?":-5,"y@":-8,yA:-71,yB:-27,yD:-27,yE:-27,yF:-27,yH:-27,yI:-27,yJ:-41,yK:-27,yL:-27,yM:-21,yN:-21,yP:-27,yR:-27,yT:-14,yU:-25,yV:-54,yW:-45,yX:-54,yY:-59,yZ:-6,"y]":-36,y_:-84,ya:-15,yb:-23,yc:-19,yd:-19,ye:-19,yg:-19,yh:-23,yk:-23,yl:-23,yo:-19,yq:-19,ys:-9,yt:7,yv:11,yw:11,yy:11,"y}":-36,"z)":-10,"z*":-5,zT:-16,zU:-27,zV:-65,zW:-56,zY:-61,"z]":-10,zp:-8,"z}":-10,"{#":-21,"{&":-21,"{(":-54,"{)":13,"{-":-43,"{:":-43,"{;":-43,"{A":-32,"{C":-21,"{G":-21,"{J":36,"{O":-21,"{Q":-21,"{S":-10,"{U":-10,"{[":-54,"{]":13,"{c":-30,"{d":-30,"{e":-30,"{f":-5,"{j":106,"{m":-16,"{n":-16,"{o":-30,"{q":-30,"{r":-16,"{s":-21,"{t":-10,"{u":-23,"{v":-21,"{w":-21,"{x":-10,"{y":16,"{z":-10,"{{":-54,"{}":13,"})":-54,"},":-43,"}.":-43,"}A":-31,"}T":-21,"}U":-21,"}V":-53,"}W":-43,"}X":-21,"}Y":-43,"}]":-54,"}}":-54}}},Yc=new Set;let qc,Gc=null;function Xc(t,{fontFamily:e,fontSize:n,fontWeight:i,lineHeight:r}){const o=t.split(/\r?\n/),s=da(e),a=i||"normal",l=function(t,e){if(null==e)return 1.4*t;if("string"==typeof e){const n=e.trim();if(n.endsWith("px")){const e=Number.parseFloat(n);return Number.isFinite(e)?e:1.4*t}e=Number(n)}return"number"==typeof e&&Number.isFinite(e)?e>4?e:e*t:1.4*t}(n,r),c=function(){if("undefined"==typeof document)return null;if(void 0!==qc)return qc;const t=document.createElement("canvas");return qc=t.getContext("2d"),qc}();if(c){c.font=`${a} ${n}px ${s}`;const t=o.reduce((t,e)=>{const n=c.measureText(e);return Math.max(t,n.width)},0);return{width:t,height:l*Math.max(o.length,1)}}const h="undefined"==typeof document?null:document.body?Gc||(Gc=document.createElement("span"),Gc.style.position="absolute",Gc.style.top="-10000px",Gc.style.left="-10000px",Gc.style.visibility="hidden",Gc.style.pointerEvents="none",Gc.style.whiteSpace="pre",Gc.style.display="inline-block",Gc.style.padding="0",Gc.style.margin="0",document.body.appendChild(Gc),Gc):null;if(!h)return null;h.style.fontFamily=s,h.style.fontSize=`${n}px`,h.style.fontWeight=String(a),h.style.lineHeight=`${l}px`,h.textContent=t;const u=h.getBoundingClientRect();return t&&u.width<=0&&u.height<=0?null:{width:u.width,height:u.height}}function Kc(t="",e){var n;if(e.width&&e.height)return{width:e.width,height:e.height};if("string"!=typeof t&&"number"!=typeof t)return{width:0,height:0};const{fontFamily:i=Aa,fontSize:r=14,fontWeight:o="normal",lineHeight:s=1.4}=e,a=t.toString();!function(t){var e,n;const i=null===(n=null===(e=ua(t))||void 0===e?void 0:e.split(",")[0])||void 0===n?void 0:n.trim();if(!i||Yc.has(i))return;const r=Uc[i];r&&(wa(r),Yc.add(i))}(i);const l={fontFamily:i,fontSize:parseFloat(r.toString()),fontWeight:o,lineHeight:s},c=null!==(n=Xc(a,l))&&void 0!==n?n:Ca(a,Object.assign(Object.assign({},l),{fontFamily:ua(i)}));return{width:Math.ceil(c.width*Vc),height:Math.ceil(c.height*Vc)}}function Zc(t,e={}){const n=document.createElementNS("http://www.w3.org/2000/svg",t);return Jc(n,e),n}function Qc(t){const e=(new DOMParser).parseFromString(t,"image/svg+xml");if(e.querySelector("parsererror"))throw new Error("Invalid SVG string");return e.documentElement}function Jc(t,e){Object.entries(e).forEach(([e,n])=>{null==n?t.removeAttribute(e):t.setAttribute(e,n)})}function th(t,e,n=!0){return e.reduce((e,i)=>{const r=t.getAttribute(i);return(!n||null!==r&&""!==r&&void 0!==r)&&(e[i]=r),e},{})}function eh(t,e){if(!1===e(t))return;Array.from(t.children).forEach(t=>{eh(t,e)})}function nh(t,e="infographic-defs"){const n=t.querySelector(e?`defs#${e}`:"defs");if(n)return n;const i=Zc("defs");return e&&(i.id=e),t.prepend(i),i}var ih=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function rh(t){return Eh(t)?t.querySelector("span"):null}function oh(t,e){const{textContent:n,attributes:i}=e;if(void 0!==n&&ah(t,n),!i)return;const r=rh(t);let{width:o,height:s}=i;const a={};if(r){if(Object.assign(r.style,function(t){const{"font-size":e,"letter-spacing":n,"line-height":i,fill:r,"stroke-width":o,"font-family":s}=t,a=ih(t,["x","y","width","height","data-horizontal-align","data-vertical-align","font-size","letter-spacing","line-height","fill","stroke-width","text-anchor","dominant-baseline","font-family"]),l={overflow:"visible"};r&&(l.color=r);Object.entries(a).forEach(([t,e])=>{l[aa(t)]=e}),e&&(l.fontSize=`${e}px`);i&&(l.lineHeight="string"==typeof i&&i.endsWith("px")?i:+i);n&&(l.letterSpacing=`${n}px`);o&&(l.strokeWidth=`${o}px`);s&&(l.fontFamily=da(s));return l}(i)),!o||!s){const e=null!=n?n:sh(t),{fontFamily:i,fontSize:a,fontWeight:l,lineHeight:c}=r.style,h=a?parseFloat(String(a)):12,u=Kc(e,{fontFamily:i,fontSize:h,fontWeight:l,lineHeight:c.endsWith("px")?parseFloat(c):(parseFloat(c)||1.4)*h});o||t.hasAttribute("width")||(o=String(u.width)),s||t.hasAttribute("height")||(s=String(u.height))}const{"data-horizontal-align":e,"data-vertical-align":a}=i;Object.assign(r.style,function(t,e){const n={width:"100%",height:"100%",display:"flex",flexWrap:"wrap",wordBreak:"break-word",whiteSpace:"pre-wrap"};switch(t){case"LEFT":n.textAlign="left",n.justifyContent="flex-start";break;case"CENTER":n.textAlign="center",n.justifyContent="center";break;case"RIGHT":n.textAlign="right",n.justifyContent="flex-end"}switch(e){case"TOP":n.alignContent="flex-start",n.alignItems="flex-start";break;case"MIDDLE":n.alignContent="center",n.alignItems="center";break;case"BOTTOM":n.alignContent="flex-end",n.alignItems="flex-end"}return n}(e,a))}const{id:l,x:c,y:h}=i;l&&(a.id=l),void 0!==c&&(a.x=String(c)),void 0!==h&&(a.y=String(h)),void 0!==o&&(a.width=String(o)),void 0!==s&&(a.height=String(s)),Jc(t,a)}function sh(t){const e=rh(t);return e&&(e.innerText||e.textContent)||""}function ah(t,e){const n=rh(t);if(n)try{n.innerText=e}catch(t){n.textContent=e}}function lh(t){const e=rh(t);if(!e)return{};const{color:n,fontSize:i,fontFamily:r,justifyContent:o,alignContent:s,fontWeight:a}=e.style,[l,c]=function(t,e){let n="LEFT",i="TOP";switch(t){case"flex-start":n="LEFT";break;case"center":n="CENTER";break;case"flex-end":n="RIGHT"}switch(e){case"flex-start":i="TOP";break;case"center":i="MIDDLE";break;case"flex-end":i="BOTTOM"}return[n,i]}(o,s),h={"data-horizontal-align":l,"data-vertical-align":c};return r&&(h["font-family"]=ua(r)),a&&(h["font-weight"]=a),i&&(h["font-size"]=String(parseInt(i))),n&&(h.fill=n),{attributes:h,textContent:sh(t)}}const ch=(t,e)=>{var n;return(null===(n=null==t?void 0:t.dataset)||void 0===n?void 0:n.elementType)===e},hh=(t,e)=>t.tagName.toLowerCase()===e.toLowerCase(),uh=t=>ch(t,"title"),dh=t=>ch(t,"desc"),fh=t=>ch(t,"shape"),ph=t=>ch(t,"shapes-group"),gh=t=>ch(t,"illus"),mh=t=>t instanceof SVGElement&&hh(t,"text"),yh=t=>t instanceof SVGElement&&hh(t,"g"),vh=t=>ch(t,"item-icon"),xh=t=>ch(t,"item-icon-group"),bh=t=>ch(t,"item-label"),wh=t=>ch(t,"item-desc"),Mh=t=>ch(t,"item-value"),kh=t=>ch(t,"item-illus"),Ch=t=>ch(t,"btns-group"),Oh=t=>ch(t,"rough-element"),jh=t=>ch(t,"rough-volume");function Eh(t){return hh(t,"foreignObject")}function _h(t){const e=Lh(t);return["title","desc","item-label","item-desc"].includes(e)}function Sh(t){if(!t)return!1;if(!_h(t))return!1;const e=rh(t);return!!e&&e.hasAttribute("contenteditable")}function $h(t){const e=t.tagName.toLowerCase();return["rect","circle","ellipse","line","polygon","polyline","path"].includes(e)}function Ah(t){return vh(t)||xh(t)}function zh(t,e){t.setAttribute("data-element-type",e)}function Ph(t,e){return t.querySelector(`[data-element-type="${e}"]`)}function Lh(t){return Ah(t)?"item-icon":t.getAttribute("data-element-type")||"unknown"}var Ih=n("./node_modules/.pnpm/flru@1.0.2/node_modules/flru/dist/flru.mjs"),Th=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};const Rh=globalThis.fetch,Bh=(0,Ih.A)(1024),Wh=new Map;function Hh(t){const e=function(t){const e=Array.from(t.headers.entries());return 0===e.length?"":(e.sort(([t],[e])=>t.toLowerCase().localeCompare(e.toLowerCase())),e.map(([t,e])=>`${t.toLowerCase()}:${e}`).join("|"))}(t);return e?`${t.method}:${t.url}:${e}`:`${t.method}:${t.url}`}function Nh(t){return new Response(t.body.slice(0),t.init)}function Fh(t,e){return Th(this,void 0,void 0,function*(){const n=new Request(t,e);if("GET"!==n.method)return Rh(n);const i=Hh(n);if(Bh.has(i))return Nh(Bh.get(i));let r=Wh.get(i);r||(r=function(t,e){return Th(this,void 0,void 0,function*(){try{const n=yield Rh(t),i={body:yield n.arrayBuffer(),init:{status:n.status,statusText:n.statusText,headers:Array.from(n.headers.entries())}};return n.ok&&Bh.set(e,i),i}finally{Wh.delete(e)}})}(n,i),Wh.set(i,r));return Nh(yield r)})}function Dh(t){let e=0;if(0===t.length)return e.toString();for(let n=0;n<t.length;n++){e=(e<<5)-e+t.charCodeAt(n),e&=e}return Math.abs(e).toString()}const Vh=new WeakMap;function Uh(t){const{stroke:e,fill:n}=th(t,["fill","stroke"]);t.style.color=n||e||"currentColor"}function Yh(t){return"use"===t.tagName?t:t.querySelector("use")}function qh(t){const e=Yh(t);if(!e)return{};return th(e,["width","height","x","y","width","height","fill","fill-opacity","stroke","opacity"])}const Gh=!("undefined"==typeof process||!process.versions||!process.versions.node),Xh=t=>((t,e=",")=>t.split(e).map(t=>parseInt(t,10)))(t);function Kh(...t){return t.map(t=>t.replace(/^\/+|\/+$/g,"")).filter(t=>t.trim().length>0).join("/")}function Zh(t){const e=t.getAttribute("viewBox");if(e){const[t,n,i,r]=e.split(" ").map(Number);return{x:t,y:n,width:i,height:r}}const n=t.getAttribute("width"),i=t.getAttribute("height");return{x:0,y:0,width:Number(n)||0,height:Number(i)||0}}function Qh(t){return`${t.x} ${t.y} ${t.width} ${t.height}`}function Jh(t){return t?"number"==typeof t?[t,t,t,t]:1===t.length?[t[0],t[0],t[0],t[0]]:2===t.length?[t[0],t[1],t[0],t[1]]:3===t.length?[t[0],t[1],t[2],t[1]]:4===t.length?[t[0],t[1],t[2],t[3]]:[0,0,0,0]:[0,0,0,0]}function tu(t,e){if(Gh)eu(t,e);else if(t.isConnected)iu(t,e);else try{const n=new MutationObserver(i=>{i.forEach(i=>{i.addedNodes.forEach(i=>{var r,o;(i===t||i.contains(t))&&(r=t,o=()=>{iu(t,e)},requestAnimationFrame(()=>{const t=()=>{const e=r.getBoundingClientRect();e.width>0&&e.height>0?o():requestAnimationFrame(t)};t()}),n.disconnect())})})});n.observe(document,{childList:!0,subtree:!0})}catch(n){eu(t,e)}}function eu(t,e){const n=Zh(t),[i,r,o,s]=e;Jc(t,{viewBox:`${n.x-s} ${n.y-i} ${n.width+s+r} ${n.height+i+o}`})}function nu(t,e){const n=t.getBBox(),i=t.getBoundingClientRect(),r=i.width>0?n.width/i.width:1,o=i.height>0?n.height/i.height:1,[s,a,l,c]=e,h=s*o,u=c*r;return`${n.x-u} ${n.y-h} ${n.width+u+a*r} ${n.height+h+l*o}`}function iu(t,e){Jc(t,{viewBox:nu(t,e)})}function ru(t,e,n){var i;const r=function(t){if(!t)return document;if(t instanceof Document||t instanceof ShadowRoot)return t;if(!t.isConnected)return document;const e=t.getRootNode();return e instanceof ShadowRoot?e:document}(n);if(function(t,e){return t instanceof Document?Boolean(t.getElementById(e)):Boolean(t.querySelector(`#${e}`))}(r,t))return;const o=(r instanceof Document?r:null!==(i=r.ownerDocument)&&void 0!==i?i:document).createElement("style");o.id=t,o.textContent=e,r instanceof Document?r.head.appendChild(o):r.appendChild(o)}var ou=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function su(t){const{id:e,x:n=0,y:i=0,width:r,height:o,alignHorizontal:s="left",alignVertical:a="top",children:l,fontSize:c=14,fontFamily:h,fontStyle:u,fontWeight:d,textDecoration:f,letterSpacing:p,wordSpacing:g,opacity:m,fill:y="black",lineHeight:v,wordWrap:x,backgroundColor:b="none",backgroundOpacity:w=1,backgroundRadius:M=0}=t,k=ou(t,["id","x","y","width","height","alignHorizontal","alignVertical","children","fontSize","fontFamily","fontStyle","fontWeight","textDecoration","letterSpacing","wordSpacing","opacity","fill","lineHeight","wordWrap","backgroundColor","backgroundOpacity","backgroundRadius"]);let C=r,O=o,j=0,E=0;if(!C||!O){const e=Kc(l,t);C||(C=e.width),O||(O=e.height)}r&&(j="center"===s?C/2:"right"===s?C:0),o&&(E="middle"===a?O/2:"bottom"===a?O:0);const _=Object.entries(Object.assign(Object.assign({width:C,height:O},void 0!==v&&{"line-height":v}),void 0!==x&&{"data-word-wrap":x})).reduce((t,[e,n])=>Object.assign(Object.assign({},t),{[e]:n}),{}),S=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"data-element-type":"text",width:C,height:O,x:j,y:E,"data-x":0,"data-y":0,fill:y,fontSize:c,textAnchor:"center"===s?"middle":"right"===s?"end":"start",dominantBaseline:"middle"===a?"central":"bottom"===a?"baseline":"hanging","data-horizontal-align":s.toUpperCase(),"data-vertical-align":a.toUpperCase(),children:l},_),k),h&&{fontFamily:h}),u&&{fontStyle:u}),d&&{fontWeight:d}),f&&"none"!==f&&{textDecoration:f}),p&&{letterSpacing:p}),g&&{wordSpacing:g}),void 0!==m&&1!==m&&{opacity:m}),$=Object.assign(Object.assign(Object.assign({},0!==n||0!==i?{x:n,y:i,transform:`translate(${n}, ${i})`}:{}),{width:C,height:O}),e&&{id:e}),A=b&&"none"!==b?{"data-element-type":"shape",x:0,y:0,width:C,height:O,fill:b,fillOpacity:w,rx:M,ry:M}:void 0;return{type:"g",props:Object.assign(Object.assign({},$),{children:[...A?[{type:"rect",props:A}]:[],{type:"text",props:S}]})}}function au(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)&&"type"in t}function lu(t){return cu(t).filter(au)}function cu(t,e=[]){var n;if(!t||"boolean"==typeof t)return e;if(Array.isArray(t))t.forEach(t=>cu(t,e));else if(function(t){return!(!t||"object"!=typeof t||Array.isArray(t))&&t.type===D}(t)){const i=null===(n=t.props)||void 0===n?void 0:n.children;(Array.isArray(i)?i:[i]).filter(Boolean).forEach(t=>{cu(t,e)})}else e.push(t);return e}function hu(t){return"number"==typeof t&&!Number.isNaN(t)&&Number.isFinite(t)}function uu(t){if(!t||0===t.length)return{x:0,y:0,width:0,height:0};let e=1/0,n=1/0,i=-1/0,r=-1/0;for(const o of t){const{x:t,y:s,width:a,height:l}=o,c=t+a,h=s+l;t<e&&(e=t),s<n&&(n=s),c>i&&(i=c),h>r&&(r=h)}return e===1/0||n===1/0||i===-1/0||r===-1/0?{x:0,y:0,width:0,height:0}:{x:e,y:n,width:Math.max(0,i-e),height:Math.max(0,r-n)}}function du(t){var e,n,i,r;if(!t)return{x:0,y:0,width:0,height:0};if(Array.isArray(t)){return fu(lu(t))}if("object"!=typeof t)return{x:0,y:0,width:0,height:0};const{type:o,props:s={}}=t;if(ku(t)){return du(Cu(t))}if("function"==typeof o){const t=null!==(e=s.x)&&void 0!==e?e:0,i=null!==(n=s.y)&&void 0!==n?n:0,r=s.width,a=s.height;if(hu(r)&&hu(a))return{x:t,y:i,width:r,height:a};const l=o(s);if(!l)return{x:t,y:i,width:null!=r?r:0,height:null!=a?a:0};if(Array.isArray(l)){const e=fu(lu(l));if(hu(r)&&hu(a))return{x:t,y:i,width:r,height:a};return{x:t+e.x,y:i+e.y,width:0!==e.width?e.width:null!=r?r:0,height:0!==e.height?e.height:null!=a?a:0}}if(au(l)){const e=l,n=du(e);if(function(t,e){if(!(null==t?void 0:t.props)||!e)return!1;const n=t.props;if(hu(n.x)&&hu(n.y)&&hu(e.x)&&hu(e.y)&&n.x===e.x&&n.y===e.y){const t=hu(n.width)&&hu(n.height),i=hu(e.width)&&hu(e.height);if(!t&&!i)return!0}if(hu(n.x)&&hu(n.y)&&hu(n.width)&&hu(n.height)&&hu(e.x)&&hu(e.y)&&hu(e.width)&&hu(e.height))return n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height;return!1}(e,s))return n;const o=e.props&&hu(e.props.width)&&hu(e.props.height),c=pu(e).flatMap(t=>lu(t)).length>0,h=e.props&&e.props.x===s.x&&e.props.y===s.y;if(o)return{x:h?n.x:t+n.x,y:h?n.y:i+n.y,width:n.width,height:n.height};if(hu(r)&&hu(a))return c?{x:h?n.x:t,y:h?n.y:i,width:r,height:a}:{x:h?n.x:t+n.x,y:h?n.y:i+n.y,width:r,height:a};return{x:h?n.x:t+n.x,y:h?n.y:i+n.y,width:0!==n.width?n.width:null!=r?r:0,height:0!==n.height?n.height:null!=a?a:0}}return{x:t,y:i,width:null!=r?r:0,height:null!=a?a:0}}const a=null!==(i=s.x)&&void 0!==i?i:0,l=null!==(r=s.y)&&void 0!==r?r:0,c=hu(s.width)?s.width:void 0,h=hu(s.height)?s.height:void 0;if(hu(c)&&hu(h))return{x:a,y:l,width:c,height:h};const u=pu(t).flatMap(t=>lu(t));if(u.length>0){const t=fu(u);return{x:a+t.x,y:l+t.y,width:hu(c)?c:t.width,height:hu(h)?h:t.height}}return{x:a,y:l,width:null!=c?c:0,height:null!=h?h:0}}function fu(t){if(!t||!Array.isArray(t)||0===t.length)return{x:0,y:0,width:0,height:0};const e=[];for(const n of t){const t=lu(n);for(const n of t){const t=du(n);t&&e.push(t)}}return uu(e)}function pu(t){var e;const n=null===(e=t.props)||void 0===e?void 0:e.children;return n?Array.isArray(n)?n:[n]:[]}function gu(t){var e;return null==t||"boolean"==typeof t?[]:Array.isArray(t)?cu(t):"object"==typeof t?cu(null===(e=t.props)||void 0===e?void 0:e.children):[t]}var mu=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const yu=(t,e)=>{const{type:n,props:i}=t,r=mu(t,["type","props"]);return Object.assign({type:n,props:Object.assign(Object.assign({},i),e)},r)},vu=()=>({defs:new Map});function xu(t){const e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return String(t).replace(/[&<>"']/g,t=>e[t])}const bu={className:"class",viewBox:"viewBox",preserveAspectRatio:"preserveAspectRatio",gradientUnits:"gradientUnits",gradientTransform:"gradientTransform",patternUnits:"patternUnits",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",maskUnits:"maskUnits",maskContentUnits:"maskContentUnits",clipPathUnits:"clipPathUnits",primitiveUnits:"primitiveUnits",filterUnits:"filterUnits",markerUnits:"markerUnits",markerWidth:"markerWidth",markerHeight:"markerHeight",refX:"refX",refY:"refY",xmlLang:"xml:lang",xmlSpace:"xml:space",xmlnsXlink:"xmlns:xlink",xlinkHref:"href",xlinkTitle:"xlink:title",xlinkShow:"xlink:show",xlinkActuate:"xlink:actuate",textLength:"textLength",lengthAdjust:"lengthAdjust",attributeName:"attributeName",attributeType:"attributeType",repeatCount:"repeatCount",repeatDur:"repeatDur",calcMode:"calcMode",keyTimes:"keyTimes",keySplines:"keySplines",keyPoints:"keyPoints",stdDeviation:"stdDeviation",baseFrequency:"baseFrequency",numOctaves:"numOctaves",pathLength:"pathLength",systemLanguage:"systemLanguage",requiredFeatures:"requiredFeatures",requiredExtensions:"requiredExtensions"};const wu=new Map;function Mu(t){const e=Symbol("layout");wu.set(e,t);return t=>({type:e,props:t})}function ku(t){return null!=t&&"object"==typeof t&&!Array.isArray(t)&&"symbol"==typeof t.type&&wu.has(t.type)}function Cu(t,e=vu()){const n=wu.get(t.type);if(!n)return console.warn("Layout function not found for symbol:",t.type),t;return n(gu(t).filter(t=>"object"==typeof t),t.props,e)}var Ou=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function ju(t,e){if(null==t||"boolean"==typeof t)return null;if("string"==typeof t||"number"==typeof t)return t;if(Array.isArray(t))return t.map(t=>ju(t,e)).filter(Boolean);if(ku(t)){return ju(Cu(t,e),e)}if("function"==typeof t.type){return ju(t.type(t.props),e)}const n=gu(t).map(t=>ju(t,e)).filter(Boolean);return t.type===D?n:t.type===Y?(n.forEach(t=>{"object"==typeof t&&t.props.id&&e.defs.set(t.props.id,t)}),null):n.length?yu(t,{children:n}):t}function Eu(t,e){if(null==t)return"";if("string"==typeof t)return xu(t);if("number"==typeof t)return String(t);const{type:n,props:i}=t;if(!n)return"";const r=gu(t);if(n===D)return r.map(t=>Eu(t,e)).filter(Boolean).join("");if(n===Y)return"";if("function"==typeof n||ku(t))return console.warn("Unexpected unprocessed component in render:",t),"";const o=Su(i),s=r.map(t=>Eu(t,e)).filter(Boolean).join(""),a=String(n);return s?`<${a}${o}>${s}</${a}>`:`<${a}${o} />`}function _u(t,e={}){const n=vu(),i=ju(t,n);if(!i)return"";const r=Array.isArray(i)?i.map(t=>Eu(t,n)).join(""):Eu(i,n),{x:o,y:s,width:a,height:l,style:c}=e,h=Ou(e,["x","y","width","height","style"]),u=Object.assign(Object.assign({},h),{xmlns:"http://www.w3.org/2000/svg"});if(!u.viewBox)if(a&&l)u.viewBox=`${null!=o?o:0} ${null!=s?s:0} ${null!=a?a:0} ${null!=l?l:0}`;else{const t=du(i);if(t){const{x:e,y:n,width:i,height:r}=t;u.viewBox=`${e} ${n} ${i} ${r}`}}const d=Su(u),f=function(t){if(!t||0===Object.keys(t).length)return"";const e=Object.entries(t).map(([t,e])=>`${t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}: ${e};`).join("");return` style="${xu(e)}"`}(c);return`<svg${d}${f}>${n.defs.size?`<defs>${Array.from(n.defs.values()).map(t=>Eu(t,n)).join("")}</defs>`:""}${r}</svg>`}function Su(t){if(!t)return"";const e=Ou(t,["children"]);return Object.entries(e).filter(([,t])=>null!=t).map(([t,e])=>{var n;return` ${bu[n=t]?bu[n]:n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}="${"string"==typeof e?xu(String(e)):String(e)}"`}).join("")}var $u=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Au=t=>{const{indexes:e}=t,n=$u(t,["indexes"]);return V(J,Object.assign({},{fill:"#B9EBCA",fillOpacity:.3,width:20,height:20,"data-indexes":e,"data-element-type":"btn-add"},n))},zu=t=>{const{indexes:e}=t,n=$u(t,["indexes"]);return V(J,Object.assign({},{fill:"#F9C0C0",fillOpacity:.3,width:20,height:20,"data-indexes":e,"data-element-type":"btn-remove"},n))},Pu=t=>V(X,Object.assign({"data-element-type":"btns-group",width:0,height:0},t,{display:"none"})),Lu=()=>V(D,{});var Iu=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Tu=t=>{var{indexes:e}=t,n=Iu(t,["indexes"]);const i=Object.assign(Object.assign({},{fill:"lightgray"}),n);return e?(i["data-indexes"]=e,i["data-element-type"]="item-illus"):i["data-element-type"]="illus",V(J,Object.assign({},i))};var Ru=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Bu=t=>{var e,{indexes:n,lineNumber:i=2,children:r}=t,o=Ru(t,["indexes","lineNumber","children"]);if(!r)return null;const s=Object.assign({fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:r},o);return null!==(e=s.height)&&void 0!==e||(s.height=Math.ceil(i*+s.lineHeight*+s.fontSize)),V(su,Object.assign({},s,{"data-indexes":n,"data-element-type":"item-desc"}))};var Wu=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Hu=t=>{const{indexes:e,size:n=32}=t,i=Wu(t,["indexes","size"]),r=Object.assign({fill:"lightgray",width:n,height:n},i);return V(J,Object.assign({},r,{"data-indexes":e,"data-element-type":"item-icon"}))},Nu=t=>{const{indexes:e,size:n=50,fill:i,colorBg:r="white"}=t,o=Wu(t,["indexes","size","fill","colorBg"]),s=n/Math.SQRT2*.9,a=(n-s)/2,l=Object.assign(Object.assign({fill:r},o),{x:a,y:a,width:s,height:s});return U(X,Object.assign({},o,{width:n,height:n,"data-element-type":"item-icon-group",children:[V(G,{width:n,height:n,fill:i,"data-element-type":"shape"}),V(J,Object.assign({},l,{"data-indexes":e,"data-element-type":"item-icon"}))]}))};var Fu=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Du=t=>{var e,{indexes:n,children:i}=t,r=Fu(t,["indexes","children"]);const o=Object.assign({fontSize:18,fontWeight:"bold",fill:"#252525",lineHeight:1.4,children:i},r);return null!==(e=o.height)&&void 0!==e||(o.height=Math.ceil(+o.lineHeight*+o.fontSize)),V(su,Object.assign({},o,{"data-indexes":n,"data-element-type":"item-label"}))},Vu=t=>V(X,Object.assign({"data-element-type":"items-group"},t));var Uu=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Yu=t=>{var e,{indexes:n,value:i,formatter:r=t=>String(t)}=t,o=Uu(t,["indexes","value","formatter"]);const s=Object.assign({fontSize:14,fill:"#666",wordWrap:!0,lineHeight:1.4,children:r(i),"data-value":i},o);return null!==(e=s.height)&&void 0!==e||(s.height=Math.ceil(+s.lineHeight*+s.fontSize)),V(su,Object.assign({},s,{"data-indexes":n,"data-element-type":"item-value"}))},qu=t=>V(X,Object.assign({"data-element-type":"shapes-group"},t));var Gu=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Xu=Mu((t,e)=>{var n,i,r,o,{horizontal:s,vertical:a}=e,l=Gu(e,["horizontal","vertical"]);if(!t||0===t.length)return V(X,Object.assign({},l));const c=t.map(t=>du(t)),h=fu(t),u=null!==(n=l.x)&&void 0!==n?n:h.x,d=null!==(i=l.y)&&void 0!==i?i:h.y,f=null!==(r=l.width)&&void 0!==r?r:h.width,p=null!==(o=l.height)&&void 0!==o?o:h.height,g=t.map((t,e)=>{const n=c[e],i=Object.assign({},t.props);if(void 0!==s)switch(s){case"left":i.x=-n.x;break;case"center":i.x=(f-n.width)/2-n.x;break;case"right":i.x=f-n.width-n.x}else void 0===i.x&&(i.x=n.x-u);if(void 0!==a)switch(a){case"top":i.y=-n.y;break;case"middle":i.y=(p-n.height)/2-n.y;break;case"bottom":i.y=p-n.height-n.y}else void 0===i.y&&(i.y=n.y-d);return yu(t,i)}),m=Object.assign(Object.assign({},l),{x:u,y:d,width:f,height:p});return V(X,Object.assign({},m,{children:g}))});var Ku=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Zu=Mu((t,e)=>{var n,i,r,o,s,a,{flexDirection:l="row",justifyContent:c="flex-start",alignItems:h="flex-start",alignContent:u="flex-start",flexWrap:d="nowrap",gap:f=0}=e,p=Ku(e,["flexDirection","justifyContent","alignItems","alignContent","flexWrap","gap"]);if(!t||0===t.length)return V(X,Object.assign({},p));const g="row"===l||"row-reverse"===l,m="row-reverse"===l||"column-reverse"===l,y=t.map(t=>du(t)),v=fu(t),x=null!==(n=p.width)&&void 0!==n?n:v.width,b=null!==(i=p.height)&&void 0!==i?i:v.height,w=void 0!==p.width&&void 0!==p.height,M=[];if("wrap"===d&&w){let e=[],n=[],i=0;for(let r=0;r<t.length;r++){const o=t[r],s=y[r],a=g?s.width:s.height;0===e.length||i+f+a<=(g?x:b)?(e.push(o),n.push(s),i+=(e.length>1?f:0)+a):(M.push({children:e,bounds:n}),e=[o],n=[s],i=a)}e.length>0&&M.push({children:e,bounds:n})}else M.push({children:t,bounds:y});const k=[];let C=0;const O=[];if(M.forEach(t=>{const{children:e,bounds:n}=t,i=n.reduce((t,e,n)=>t+(g?e.width:e.height)+(n>0?f:0),0),r=Math.max(...n.map(t=>g?t.height:t.width));O.push(r);let o=0;const s=(g?x:b)-i;if(w)switch(c){case"flex-end":o=s;break;case"center":o=s/2;break;default:o=0}let a=f;w&&"space-between"===c&&e.length>1&&(a=s/(e.length-1)+f);let l=o;e.forEach((t,e)=>{const i=n[e],o=g?i.width:i.height,s=g?i.height:i.width,c=g?i.x:i.y,u=g?i.y:i.x;let d,f,p=C;if(w)switch(h){case"flex-end":p=C+r-s;break;case"center":p=C+(r-s)/2;break;default:p=C}g?(d=m?x-l-o-c:l-c,f=p-u):(d=p-u,f=m?b-l-o-c:l-c);const y=yu(t,{x:d,y:f});k.push(y),l+=o+a}),C+=r+f}),M.length>1&&w){const t=O.reduce((t,e)=>t+e,0)+(M.length-1)*f,e=(g?b:x)-t;let n=0;switch(u){case"flex-end":n=e;break;case"center":n=e/2;break;case"space-between":if(M.length>1){const t=e/(M.length-1);let n=0;M.forEach((e,i)=>{const r=M.slice(0,i).reduce((t,e)=>t+e.children.length,0),o=r+e.children.length;for(let t=r;t<o;t++){const e=k[t],i=Object.assign({},e.props);g?i.y=(i.y||0)+n:i.x=(i.x||0)+n,k[t]=yu(e,i)}n+=O[i]+f+(i<M.length-1?t:0)});break}break;default:n=0}0!==n&&"space-between"!==u&&k.forEach((t,e)=>{const i=Object.assign({},t.props);g?i.y=(i.y||0)+n:i.x=(i.x||0)+n,k[e]=yu(t,i)})}if(!w&&"center"===h)if(g){const t=Math.max(...y.map(t=>t.height));k.forEach((e,n)=>{const i=(t-y[n].height)/2,r=Object.assign({},e.props);r.y=(r.y||0)+i,k[n]=yu(e,r)})}else{const t=Math.max(...y.map(t=>t.width));k.forEach((e,n)=>{const i=(t-y[n].width)/2,r=Object.assign({},e.props);r.x=(r.x||0)+i,k[n]=yu(e,r)})}const j=fu(k),E=Object.assign(Object.assign({},p),{x:null!==(r=p.x)&&void 0!==r?r:v.x,y:null!==(o=p.y)&&void 0!==o?o:v.y,width:null!==(s=p.width)&&void 0!==s?s:j.width,height:null!==(a=p.height)&&void 0!==a?a:j.height});return V(X,Object.assign({},E,{children:k}))}),Qu=new Map;function Ju(t,e){Qu.set(t,e)}Ju("light",{colorBg:"#ffffff"}),Ju("dark",{colorBg:"#1F1F1F",base:{text:{fill:"#fff"}}}),Ju("hand-drawn",{base:{text:{"font-family":"851tegakizatsu"}},stylize:{type:"rough"}}),wt(Fi);const td=({colorPrimary:t,colorBg:e="#ffffff",isDarkMode:n=!1})=>{const i=Dt(t),r=Dt(e),o=rd({primaryColor:i,bgColor:r});return od(o,{primaryColor:i,bgColor:r,isDarkMode:n})},ed=t=>{const e=$r(Dt(t)),n=Object.assign(Object.assign({},e),{l:Math.min(1,e.l+.2)});return jr(n)},nd=(t,e)=>{const n=Dt(t),i=Dt("#262626"),r=Dt("#ffffff"),o=Sr(i,n);return Sr(r,n)>=3?jr(r):o>=4.5?jr(i):"#ffffff"},id=(t,e)=>{const n=$r(t);if(e){return sd(Object.assign(Object.assign({},n),{l:Math.min(1,n.l+.1)}),"#1f1f1f")}if(n.l>.95)return"#ffffff";return sd(Object.assign(Object.assign({},n),{l:Math.min(1,n.l+.05)}),"#ffffff")},rd=({primaryColor:t,bgColor:e})=>({colorPrimary:sd(t,"#FF356A"),colorBg:sd(e,"#ffffff"),colorWhite:"#ffffff"}),od=(t,{primaryColor:e,bgColor:n,isDarkMode:i})=>{const r=((t,e)=>{if(e)return"#ffffff";const n=Dt("#262626");return Sr(n,t)>=7?jr(n):"#000000"})(n,i),o=((t,e)=>Er(Object.assign(Object.assign({},t),{alpha:e?.2:.1}))||"#ffffff")(e,i);return Object.assign(Object.assign({},t),{isDarkMode:i,colorPrimaryBg:o,colorText:r,colorTextSecondary:ed(r),colorPrimaryText:nd(o),colorBgElevated:id(n,i)})};function sd(t,e="#000000"){var n;return null!==(n=jr(t))&&void 0!==n?n:e}const ad="#FF356A";function ld(t){var e;return(null===(e=null==t?void 0:t.themeConfig)||void 0===e?void 0:e.colorPrimary)||ad}function cd(t){var e;const{themeConfig:n={},data:i}=t,{colorPrimary:r,palette:o}=n;return o&&0!==o.length?i.items.map((t,e)=>Va(o,[e],i.items.length)||ad):Array((null===(e=null==i?void 0:i.items)||void 0===e?void 0:e.length)||1).fill(r||ad)}function hd(t,e){var n,i,r;return Va(null===(n=null==t?void 0:t.themeConfig)||void 0===n?void 0:n.palette,e,null===(r=null===(i=t.data)||void 0===i?void 0:i.items)||void 0===r?void 0:r.length)}function ud(t,e){var n;const{colorBg:i=(null===(n=null==e?void 0:e.themeConfig)||void 0===n?void 0:n.colorBg)||"white",colorPrimary:r=(e?ld(e):"black")}=t;return td({colorPrimary:r,isDarkMode:zr(i),colorBg:i})}const dd=(t,e,n,i,r,o,s)=>{const a=Math.cos(n),l=Math.sin(n),c=-l,h=a,u=s,d=.55*s;if("arrow"===i){return[V(K,{d:`M ${t-a*u+c*d} ${e-l*u+h*d} L ${t} ${e} L ${t-a*u-c*d} ${e-l*u-h*d}`,stroke:r,strokeWidth:Math.max(1.5,o),strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]}if("diamond"===i){const n=1.25*u,i=.75*d,s=t-a*n*.5,f=e-l*n*.5;return[V(Q,{points:[{x:t,y:e},{x:s+c*i,y:f+h*i},{x:t-a*n,y:e-l*n},{x:s-c*i,y:f-h*i}],fill:r,stroke:r,strokeWidth:Math.max(1,.8*o)})]}return[V(Q,{points:[{x:t,y:e},{x:t-a*u+c*d,y:e-l*u+h*d},{x:t-a*u-c*d,y:e-l*u-h*d}],fill:r,stroke:r,strokeWidth:Math.max(1,.8*o)})]},fd=t=>{const{x:e,y:n,width:i,height:r,radio:o=.25}=t,s=r*o,a=.5*r,l=r*(1-o);return{LT:{x:e,y:n+s},LC:{x:e,y:n+a},LB:{x:e,y:n+l},RT:{x:e+i,y:n+s},RC:{x:e+i,y:n+a},RB:{x:e+i,y:n+l}}},pd=(t,e)=>{const n=t.length;if(4===n){const n=t[0],i=t[1],r=t[2],o=t[3];return 0===e?Math.atan2(i[1]-n[1],i[0]-n[0]):Math.atan2(o[1]-r[1],o[0]-r[0])}if(3===n){const n=t[0],i=t[1],r=t[2];return 0===e?Math.atan2(i[1]-n[1],i[0]-n[0]):Math.atan2(r[1]-i[1],r[0]-i[0])}if(2===n){const e=t[0],n=t[1];return Math.atan2(n[1]-e[1],n[0]-e[0])}return 0},gd=(t,e=10)=>{const n=t.length,i=((t,e=.5)=>{const n=t.length;if(4===n){const[n,i,r,o]=t,s=1-e;return[Math.pow(s,3)*n[0]+3*Math.pow(s,2)*e*i[0]+3*s*Math.pow(e,2)*r[0]+Math.pow(e,3)*o[0],Math.pow(s,3)*n[1]+3*Math.pow(s,2)*e*i[1]+3*s*Math.pow(e,2)*r[1]+Math.pow(e,3)*o[1]]}if(3===n){const[n,i,r]=t,o=1-e;return[Math.pow(o,2)*n[0]+2*o*e*i[0]+Math.pow(e,2)*r[0],Math.pow(o,2)*n[1]+2*o*e*i[1]+Math.pow(e,2)*r[1]]}if(2===n){const[n,i]=t;return[n[0]+(i[0]-n[0])*e,n[1]+(i[1]-n[1])*e]}return t[0]||[0,0]})(t);return 4===n&&(i[0]+=e),i};function md(t,e){const{depth:n,originalIndexes:i,flatIndex:r}=t;switch(e){case"level":return[n];case"branch":return 0===n?[0]:[i[1]+1];case"node":return i;case"node-flat":return void 0!==r?[r]:(console.warn("node-flat mode requires flatIndex in HierarchyNode, falling back to originalIndexes"),i);default:return[0]}}function yd(t,e=[]){const n=Object.assign({},t),i={};return["indexes","data","datum","positionH","positionV","themeColors","valueFormatter",...e].forEach(t=>{t in n&&(i[t]=n[t],delete n[t])}),["x","y","width","height"].forEach(e=>{e in t&&(n[e]=t[e])}),[i,n]}function vd(t,e){var n;return 0===t.length?()=>null:void 0===e?t[0]:null!==(n=t[e])&&void 0!==n?n:t[0]}const xd=new Map;function bd(t,e){xd.set(t,e)}bd("badge-card",{component:t=>{const[{datum:e,indexes:n,width:i=200,height:r=80,iconSize:o=24,badgeSize:s=32,gap:a=8,positionH:l="normal",themeColors:c,valueFormatter:h},u]=yd(t,["width","height","iconSize","badgeSize","gap"]),d=e.value,f=void 0!==d,p=!!e.desc,g=!!e.icon,m=`${c.colorPrimary}-badge`,y="flipped"===l?i-a-s:a,v=g?"flipped"===l?a:s+2*a:a,x=i-2*a,b=g?i-s-3*a:x,w=a+14+18+8,M=w-a,k=p?a:(r-s)/2,C=f||p?a:(r-14)/2,O=g||"center"!==l?"flipped"===l?"right":"left":"center";return U(X,Object.assign({},u,{width:i,height:r,children:[V(q,{children:U("radialGradient",{id:m,cx:"50%",cy:"50%",r:"50%",children:[V("stop",{offset:"0%",stopColor:c.colorPrimary}),V("stop",{offset:"100%",stopColor:(0,wl.A)(c.colorPrimary).darken(20).toHexString()})]})}),V(J,{"data-element-type":"shape",x:0,y:0,width:i,height:r,fill:c.colorPrimaryBg,rx:8,ry:8}),g&&U(D,{children:[V(G,{x:y,y:k,width:s,height:s,fill:`url(#${m})`}),V(Hu,{indexes:n,x:y+(s-o)/2,y:k+(s-o)/2,size:o,fill:c.colorWhite})]}),U(Zu,{flexDirection:"column",x:v,y:C,width:b,height:f||p?M:void 0,alignItems:"center",justifyContent:"center",children:[V(Du,{indexes:n,width:b,alignHorizontal:O,alignVertical:"middle",fontSize:14,fill:c.colorText,children:e.label}),f&&V(Yu,{indexes:n,width:b,alignHorizontal:"flipped"===l?"right":"left",alignVertical:"middle",fontSize:18,lineHeight:1,fontWeight:"bold",fill:c.colorPrimary,value:d,formatter:h})]}),p&&V(Bu,{indexes:n,x:a,y:w,width:x,alignHorizontal:O,fontSize:11,fill:c.colorTextSecondary,lineNumber:2,lineHeight:1.2,wordWrap:!0,children:e.desc})]}))},composites:["icon","label","value","desc"]});bd("candy-card-lite",{component:t=>{const[{indexes:e,datum:n,width:i=280,height:r=140,themeColors:o},s]=yd(t,["width","height"]);return U(X,Object.assign({},s,{children:[V("rect",{x:0,y:0,width:i,height:r,rx:22,ry:22,fill:o.colorPrimaryBg,stroke:o.colorPrimary,"data-element-type":"shape"}),V(K,{x:i-85,y:.5,width:85,height:65,d:"M0 0H62.4495C74.9557 0 85.4549 10.8574 84.4557 23.1875V60.1875L77.8772 62.5839C64.3776 67.6876 48.51 64.6893 37.8662 53.7441L10.2361 25.3312C4.91402 19.8571 1.65356 13.1736 0.435652 6.21819L0 0Z",fill:o.colorBg,"data-element-type":"shape"}),V(Du,{indexes:e,x:20,y:24,width:200,alignHorizontal:"left",alignVertical:"middle",fill:o.colorText,children:n.label}),V(Bu,{indexes:e,x:20,y:58,width:220,height:70,fill:o.colorTextSecondary,alignHorizontal:"left",alignVertical:"top",children:n.desc}),V(Hu,{indexes:e,x:i-48,y:12,width:32,height:32,fill:o.colorPrimary})]}))},composites:["icon","label","desc"]});var wd=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const Md=t=>{const{color:e="black",opacity:n=.8}=t,i=wd(t,["color","opacity"]);return V("filter",Object.assign({id:"drop-shadow",x:"-25%",y:"-25%",width:"200%",height:"200%"},i,{children:V("feDropShadow",{dx:"4",dy:"4",stdDeviation:"4","flood-color":e,"flood-opacity":n})}))},kd=t=>{const{id:e="linear-gradient",startColor:n="black",stopColor:i="white",direction:r="left-right"}=t;return U("linearGradient",Object.assign({id:e},{"left-right":{x1:"0%",y1:"0%",x2:"100%",y2:"0%"},"right-left":{x1:"100%",y1:"0%",x2:"0%",y2:"0%"},"top-bottom":{x1:"0%",y1:"0%",x2:"0%",y2:"100%"},"bottom-top":{x1:"0%",y1:"100%",x2:"0%",y2:"0%"}}[r],{children:[V("stop",{offset:"0%",stopColor:n}),V("stop",{offset:"100%",stopColor:i})]}))};bd("capsule-item",{component:t=>{const[{datum:e,indexes:n,width:i=300,height:r=80,gap:o=12,positionH:s="normal",iconPadding:a=r/10,themeColors:l},c]=yd(t,["width","height","gap","iconPadding"]),h=r/2,u=r-2*a,d="flipped"===s,f=!!e.icon,p=f?i-r-o:i-2*o,g=f?d?o:r:o,m=f?d?"right":"left":"center",y={indexes:n,width:p,alignHorizontal:m,alignVertical:"middle",fontSize:16,fontWeight:"600",fill:l.colorWhite},v=du(V(Du,Object.assign({},y,{children:e.label}))),x={indexes:n,width:p,alignHorizontal:m,alignVertical:"top",fontSize:12,lineNumber:1,fill:l.colorWhite},b=du(e.desc?V(Bu,Object.assign({},x,{children:e.desc})):null),w=(r-(v.height+4+b.height))/2,M=w+v.height+4,k=d?i-r+a:a,C=a;return U(X,Object.assign({},c,{children:[V(q,{children:V(Md,{})}),V(J,{x:0,y:0,width:i,height:r,fill:l.colorPrimary,rx:h,ry:h,"data-element-type":"shape"}),e.icon&&U(D,{children:[V(G,{x:k,y:C,width:u,height:u,fillOpacity:.5,fill:l.colorBg,filter:"url(#drop-shadow)"}),V(Nu,{indexes:n,x:k,y:C,size:u,fill:l.colorBg,colorBg:l.colorPrimary})]}),e.label&&V(Du,Object.assign({x:g,y:w},y,{children:e.label})),e.desc&&V(Bu,Object.assign({x:g,y:M},x,{children:e.desc}))]}))},composites:["icon","label","desc"]});function Cd(t,e,n){return wl.A.mix(t,"#ffffff",e).setAlpha(n).toRgbString()}bd("circle-node",{component:t=>{const[{indexes:e,datum:n,themeColors:i,positionH:r="normal",width:o=240,height:s=o},a]=yd(t,["width","height"]),l=Math.min(o,s),c=.7*l,h=(l-c)/2,u=c*Math.sqrt(2)/2,d=(l-u)/2,f=(0,wl.A)(i.colorPrimary),p=Cd(f,80,.2),g=Cd(f,20,.8),m=Cd(f,75,.32),y=Cd(f,45,.4),v=f.clone().darken(5).toRgbString(),x=`${i.colorPrimary}-${r}-outer`,b=`${i.colorPrimary}-${r}-inner`,w="flipped"===r?{x1:"0%",y1:"0%",x2:"100%",y2:"0%"}:{x1:"100%",y1:"0%",x2:"0%",y2:"0%"};return U(X,Object.assign({},a,{children:[U(q,{children:[U("linearGradient",Object.assign({id:x},w,{children:[V("stop",{offset:"0%",stopColor:p}),V("stop",{offset:"100%",stopColor:g})]})),U("linearGradient",Object.assign({id:b},w,{children:[V("stop",{offset:"0%",stopColor:m}),V("stop",{offset:"100%",stopColor:y})]}))]}),V(G,{width:l,height:l,fill:`url(#${x})`,"data-element-type":"shape"}),V(G,{x:h,y:h,width:c,height:c,fill:`url(#${b})`,stroke:"#FFFFFF",strokeWidth:1,"data-element-type":"shape"}),V(Du,{indexes:e,x:d,y:d,width:u,height:u,lineHeight:1.1,alignHorizontal:"center",alignVertical:"middle",fill:v,fontWeight:"500",children:n.label})]}))},composites:["label"]});function Od(t,e,n,i){const r=(i-90)*Math.PI/180;return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}}bd("circular-progress",{component:t=>{var e;const[{datum:n,indexes:i,size:r=120,strokeWidth:o=12,gap:s=8,themeColors:a,valueFormatter:l=t=>`${Math.round(t)}%`},c]=yd(t,["size","strokeWidth","gap"]),h=null!==(e=n.value)&&void 0!==e?e:0,u=Math.min(Math.max(h/100,0),1),d=r/2,f=o/2,p=r-o,g=u>=1,m=function(t,e,n,i,r){const o=Od(t,e,n,r),s=Od(t,e,n,i);return`M ${o.x} ${o.y} A ${n} ${n} 0 ${r-i<=180?"0":"1"} 0 ${s.x} ${s.y}`}(d,d,(r-o)/2,0,360*u),y={x:f,y:f,width:p,height:p};return U(X,Object.assign({},c,{width:r,height:r+s+20,children:[V(J,{width:r,height:r,fill:"none"}),V(G,Object.assign({},y,{fill:"none",stroke:"#f0f0f0",strokeWidth:o,"data-element-type":"shape"})),g?V(G,Object.assign({},y,{fill:"none",stroke:a.colorPrimary,strokeWidth:o,"data-element-type":"shape"})):V(K,{d:m,fill:"none",stroke:a.colorPrimary,strokeWidth:o,strokeLinecap:"round","data-element-type":"shape"}),V(Yu,{indexes:i,x:o,y:o,width:p-o,height:p-o,fontSize:24,fontWeight:"bold",fill:a.colorPrimary,alignHorizontal:"center",alignVertical:"middle",value:h,formatter:l}),V(Du,{indexes:i,x:0,y:r+s,width:r,alignHorizontal:"center",fontSize:12,fill:a.colorTextSecondary,children:n.label})]}))},composites:["label","value"]});bd("compact-card",{component:t=>{const[{datum:e,indexes:n,width:i=200,height:r=60,iconSize:o=20,gap:s=8,positionH:a="normal",themeColors:l,valueFormatter:c},h]=yd(t,["width","height","iconSize","gap"]),u=e.value,d=null!=u,f="compact-shadow",p="flipped"===a?i-s-o:s,g="flipped"===a?s:o+2*s,m=i-o-3*s,y=d?.8*m:m,v=d?.2*m:0;return U(X,Object.assign({},h,{children:[V(q,{children:V("filter",{id:f,children:V("feDropShadow",{dx:"0",dy:"2",stdDeviation:"2",floodOpacity:"0.15"})})}),V(J,{x:0,y:0,width:i,height:r,fill:l.colorBgElevated,stroke:l.colorBgElevated,strokeWidth:1,rx:6,ry:6,filter:`url(#${f})`,"data-element-type":"shape"}),V(J,{x:"flipped"===a?i-3:0,y:0,width:3,height:r,fill:l.colorPrimary,rx:1.5,ry:1.5,"data-element-type":"shape"}),V(Hu,{indexes:n,x:p,y:(r-o)/2,size:o,fill:l.colorPrimary}),U(Zu,{x:g,y:s,width:m,height:r-2*s,flexDirection:"column",justifyContent:"center",alignItems:"flex-start",children:[U(Zu,{width:m,flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[V(Du,{indexes:n,width:y,alignHorizontal:"left",fontSize:12,fill:l.colorText,children:e.label}),d&&V(Yu,{indexes:n,width:v,alignHorizontal:"right",fontSize:12,fontWeight:"bold",fill:l.colorPrimary,value:u,formatter:c})]}),V(Bu,{indexes:n,width:m,alignHorizontal:"left",alignVertical:"middle",fontSize:10,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]})]}))},composites:["icon","label","value","desc"]});bd("done-list",{component:t=>{const[{datum:e,indexes:n,width:i=300,height:r=30,iconSize:o=30,gap:s=5,positionH:a="normal",positionV:l="middle",themeColors:c},h]=yd(t,["width","height","iconSize","gap"]),u=i-o-s;return U(X,Object.assign({},h,{children:[V(K,{"data-element-type":"shape",x:"flipped"===a?u+s:0,y:"middle"===l?(r-o)/2:"flipped"===l?r-o:0,fill:c.colorPrimary,width:o,height:o,d:"M14.7273 30C6.54538 30 0 22.9077 0 14.7269C0 6.54617 6.54538 0 14.7273 0C22.9092 0 30 6.54617 30 14.7269C30 22.9077 22.9092 30 14.7273 30ZM24.5454 10.9077C22.9092 9.27307 22.9092 9.27307 22.9092 9.27307C22.3638 8.72692 22.3638 8.7269 21.8181 8.7269C21.2727 8.7269 21.2727 8.72692 20.7273 9.27307C13.0908 16.9077 13.0908 16.9077 13.0908 16.9077C8.72731 12.5461 8.72731 12.5462 8.72731 12.5462C8.18193 12.5462 8.18193 12 7.63654 12L7.09077 12.5462C4.90923 14.1808 4.90923 14.1808 4.90923 14.1808C4.90923 14.7269 4.90923 14.7269 4.90923 15.2731C4.90923 15.8192 4.90923 15.8192 4.90923 16.3654C12 23.4539 12 23.4538 12 23.4538C12.5454 23.4538 12.5454 23.4538 13.0908 23.4538C13.6365 23.4538 13.6365 23.4538 14.1819 23.4538C24.5454 12.5461 24.5454 12.5462 24.5454 12.5462L25.0908 12C25.0908 11.4538 24.5454 10.9077 24.5454 10.9077Z"}),V(Du,{indexes:n,x:"flipped"===a?0:o+s,width:u,height:r,fontWeight:"normal",alignVertical:"middle",wordWrap:!1,fill:"#666",children:e.label||e.desc})]}))},composites:["label"]});const jd=t=>{const{x:e=0,y:n=0,width:i=100,height:r=40,fill:o="#FF356A",size:s=10}=t;return V(Q,{width:i,height:r,points:[{x:e,y:n},{x:e+i-s,y:n},{x:e+i,y:n+r/2},{x:e+i-s,y:n+r},{x:e,y:n+r},{x:e+s,y:n+r/2}],fill:o,"data-element-type":"shape"})},Ed=t=>{const{x:e=0,y:n=0,width:i=10,height:r=50,fill:o,positionV:s="top"}=t,a=i/2,l=r-a,c=a;return U(qu,{x:e,y:n,width:i,height:r,children:[V(G,{width:i,height:i,fill:o,y:"top"===s?0:l-a}),V(K,{d:"top"===s?`M${c},${a} L${c},${a+l}`:`M${c},0 L${c},${l-a}`,strokeWidth:2,stroke:o})]})};bd("horizontal-icon-arrow",{component:t=>{const[{indexes:e,datum:n,width:i=140,themeColors:r,positionV:o="normal"},s]=yd(t,["width"]),a="flipped"!==o,l="normal"===o?"bottom":"top",c=V(Du,{indexes:e,width:i,fill:r.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),h=V(Bu,{indexes:e,width:i,fill:r.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),u=V(Nu,{indexes:e,fill:r.colorPrimary,colorBg:r.colorWhite}),d=V(Ed,{width:8,height:30,fill:r.colorPrimary,positionV:o}),f=du(c),p=du(h),g=du(u),m=du(d),y=f.height+p.height+5+m.height-g.height-25;return V(X,Object.assign({width:i,height:g.height+25+30+m.height+5+f.height+p.height},s,{children:U(Zu,{flexDirection:"column",alignItems:"center",children:[U(D,a?{children:[h,c,V(Lu,{height:5}),d]}:{children:[V(Lu,{height:y}),u,V(Lu,{height:25})]}),U(Xu,{horizontal:"center",vertical:"middle",width:i,height:30,children:[V(jd,{width:i,height:30,fill:r.colorPrimary}),V(su,{width:i,height:30,alignHorizontal:"center",alignVertical:"middle",fill:r.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(e[0]+1).padStart(2,"0").slice(-2)})]}),U(D,a?{children:[V(Lu,{height:25}),u]}:{children:[d,V(Lu,{height:5}),c,h]})]})}))},composites:["icon","label","desc","time"]});bd("horizontal-icon-line",{component:t=>{const[{indexes:e,datum:n,width:i=160,themeColors:r,positionH:o="center",positionV:s="normal"},a]=yd(t,["width"]),l="normal"===o?"left":"flipped"===o?"right":"center",c=V(Du,{indexes:e,width:i,alignHorizontal:l,fill:r.colorPrimary,children:n.label}),h=du(c),u=n.desc?V(Bu,{indexes:e,width:i,fill:r.colorTextSecondary,alignHorizontal:l,alignVertical:"flipped"===s?"top":"bottom",children:n.desc}):null,d=du(u),f=n.icon?V(Nu,{size:45,indexes:e,colorBg:r.colorBg,fill:r.colorPrimary}):null,p=du(f),g=n.time?V(su,{width:i,height:30,alignHorizontal:"center",alignVertical:"middle",fill:r.colorPrimary,fontSize:18,fontWeight:"bold",children:n.time}):null,m=du(g),y=U(Xu,{horizontal:"center",vertical:"middle",width:i,height:18,children:[V(J,{width:i,height:18,fill:r.colorPrimary,"data-element-type":"shape"}),V(G,{width:24,height:24,fill:r.colorBg,fillOpacity:.5,"data-element-type":"shape"}),V(G,{width:12,height:12,fill:"white","data-element-type":"shape"})]}),v=h.height+d.height,x=p.height+m.height+5,b=Math.abs(x-v),w=x>v?b:0,M=v>x?b:0;return U(Zu,Object.assign({},a,"flipped"===s?{flexDirection:"column",alignItems:"center",children:[V(Lu,{height:M}),g,f,V(Lu,{height:5}),y,c,u,V(Lu,{height:w})]}:{flexDirection:"column",alignItems:"center",children:[V(Lu,{height:w}),c,u,y,V(Lu,{height:5}),f,g,V(Lu,{height:M})]}))},composites:["icon","label","desc"]});bd("icon-badge",{component:t=>{var e;const[{datum:n,indexes:i,size:r=80,iconSize:o=28,badgeSize:s=24,gap:a=8,themeColors:l,width:c=84,height:h=105},u]=yd(t,["size","iconSize","badgeSize","gap"]),d=null!==(e=n.value)&&void 0!==e?e:0,f=`${l.colorPrimary}-icon`,p="#ff6b6b-badge";return U(X,Object.assign({},u,{width:c,height:h,children:[U(q,{children:[U("radialGradient",{id:f,cx:"50%",cy:"30%",r:"70%",children:[V("stop",{offset:"0%",stopColor:(0,wl.A)(l.colorPrimary).lighten(30).toHexString()}),V("stop",{offset:"100%",stopColor:l.colorPrimary})]}),U("linearGradient",{id:p,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:"#ff6b6b"}),V("stop",{offset:"100%",stopColor:"#ee5a52"})]})]}),V(G,{x:0,y:0,width:r,height:r,fill:`url(#${f})`,"data-element-type":"shape"}),V(Hu,{indexes:i,x:(r-o)/2,y:(r-o)/2,size:o,fill:l.colorPrimaryText}),V(G,{x:r-s+4,width:s,height:s,fill:`url(#${p})`}),V(su,{x:r-s+4,width:s,height:s,fontSize:10,fontWeight:"bold",fill:l.colorWhite,alignHorizontal:"center",alignVertical:"middle",children:d>99?"99+":Math.round(d)}),V(Du,{indexes:i,x:0,y:r+a,width:r,alignHorizontal:"center",fontSize:12,fill:l.colorText,children:n.label})]}))},composites:["icon","label"]});bd("indexed-card",{component:t=>{const[{datum:e,indexes:n,width:i=200,borderRadius:r=12,padding:o=16,separatorHeight:s=2,indexFontSize:a=20,labelFontSize:l=16,gap:c=8,themeColors:h},u]=yd(t,["width","height","borderRadius","padding","separatorHeight","indexFontSize","labelFontSize","gap"]),d=String(n[0]+1).padStart(2,"0"),f=void 0!==e.label,p=void 0!==e.desc,g=wl.A.mix(h.colorPrimary,h.colorWhite,40).toHexString(),m=h.colorBgElevated||h.colorWhite,y=i-2*o,v=du(V(su,{fontSize:a,fontWeight:"bold",children:d})),x=y-v.width-c,b=f?du(V(Du,{indexes:n,width:x,fontSize:l,fontWeight:"bold",x:a,children:e.label})):{width:0,height:0},w=p?du(V(Bu,{indexes:n,width:y,fontSize:14,lineHeight:1.5,wordWrap:!0,children:e.desc})):{width:0,height:0},M=Math.max(v.height,b.height),k=2*o+M+(f||p?c:0)+s+(p?c:0)+w.height;return U(X,Object.assign({},u,{width:i,height:k,children:[V(J,{x:0,y:0,width:i,height:k,rx:r,ry:r,fill:m,stroke:(0,wl.A)(m).darken(5).toHexString(),strokeWidth:.5,"data-element-type":"shape"}),U(X,{x:o,y:o,children:[U(X,{x:0,y:0,children:[V(su,{x:0,y:0,fontSize:a,fontWeight:"bold",fill:h.colorPrimary,alignVertical:"top",children:d}),f&&V(Du,{indexes:n,x:a+c,y:0,width:x,fontSize:l,fontWeight:"bold",fill:h.colorTextSecondary,alignVertical:"top",children:e.label})]}),V(J,{x:0,y:M+c,width:y,height:s,fill:g,"data-element-type":"shape"}),p&&V(Bu,{indexes:n,x:0,y:M+c+s+c,width:y,fontSize:14,lineHeight:1.5,wordWrap:!0,fill:h.colorTextSecondary,children:e.desc})]})]}))},composites:["label","desc"]});bd("l-corner-card",{component:t=>{const[{indexes:e,datum:n,width:i=140,iconSize:r=24,themeColors:o},s]=yd(t,["width","iconSize"]),{label:a,desc:l}=n,c=[{x:0,y:88},{x:16,y:72},{x:16,y:88}],h=i-16-12,u=`M 28 ${76+(r+44)} L 28 76 L ${28+h} 76`;return U(X,Object.assign({},s,{children:[V(Bu,{indexes:e,x:28,width:i-28,height:60,fontSize:12,alignHorizontal:"left",alignVertical:"bottom",fill:o.colorTextSecondary,children:l}),V(Q,{points:c,fill:o.colorPrimary,opacity:.9,width:16,height:16,"data-element-type":"shape"}),V(K,{d:u,stroke:o.colorPrimary,strokeWidth:8,fill:"none","data-element-type":"shape"}),V(Hu,{indexes:e,x:32+h/2-r/2,y:88,size:r,fill:o.colorPrimary}),V(Du,{indexes:e,x:32,y:80+r+16,width:h,fontSize:14,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:o.colorText,children:a})]}))},composites:["icon","label","desc"]});bd("letter-card",{component:t=>{var e,n;const[{datum:i,indexes:r,width:o=280,height:s=160,showStripe:a=!0,showGradient:l=!0,showBottomShade:c=!0,themeColors:h},u]=yd(t,["width","height","showStripe","showGradient","showBottomShade"]),d=null===(e=i.label)||void 0===e?void 0:e[0].toUpperCase(),f=null===(n=i.label)||void 0===n?void 0:n.toUpperCase(),p=h.colorPrimary,g=(0,wl.A)(p),m=g.clone().darken(4).toHexString(),y=g.clone().lighten(12).toHexString(),v=`letter-card-${r.join("-")}`,x=`${v}-gradient`,b=`${v}-pattern`,w=`${v}-shade`,M=s/16,k=(s-(96+M+16))/2,C=k+96+M;return U(X,Object.assign({},u,{width:o,height:s,children:[U(q,{children:[l&&U("linearGradient",{id:x,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:m}),V("stop",{offset:"100%",stopColor:y})]}),a&&U("pattern",{id:b,patternUnits:"userSpaceOnUse",width:10,height:10,patternTransform:"rotate(45)",children:[V("rect",{x:"0",y:"0",width:10,height:10,fill:"rgba(255, 255, 255, 0)"}),V("rect",{x:"0",y:"0",width:4,height:10,fill:"rgba(0, 0, 0, 0.03)"})]}),c&&U("linearGradient",{id:w,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:"rgba(0,0,0,0)"}),V("stop",{offset:"100%",stopColor:"rgba(0,0,0,0.16)"})]})]}),V(J,{x:0,y:0,width:o,height:s,fill:l?`url(#${x})`:p,rx:0,ry:0,"data-element-type":"shape"}),a&&V(J,{x:0,y:0,width:o,height:s,fill:`url(#${b})`,rx:0,ry:0}),c&&V(J,{x:0,y:s-40,width:o,height:40,fill:`url(#${w})`,rx:0,ry:0}),d&&V(Du,{indexes:r,x:0,y:k,width:o,fontSize:96,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"top",lineHeight:1,children:d}),V(Du,{indexes:r,x:0,y:C,width:o,fontSize:16,fontWeight:"bold",fill:"#FFFFFF",alignHorizontal:"center",alignVertical:"middle",lineHeight:1,children:f})]}))},composites:["label"]});bd("lined-text",{component:t=>{var e,n,i;const[{datum:r,indexes:o,width:s,themeColors:a,positionH:l="normal",positionV:c="center",formatter:h=t=>t||"",usePaletteColor:u=!1,showUnderline:d=!1,underlineGap:f=6,underlineExtend:p=8,underlineThickness:g=2},m]=yd(t,["width","formatter","usePaletteColor","showUnderline","underlineGap","underlineExtend","underlineThickness"]),y=h(null!==(n=null!==(e=r.label)&&void 0!==e?e:r.desc)&&void 0!==n?n:""),v="flipped"===l?"right":"center"===l?"center":"left",x=du(V(Du,{indexes:o,width:s,children:y})),b=null!=s?s:x.width,w=x.height,M=d?b+2*p:0,k=w+(d?f+g:0),C=d?Math.max(b,M):b,O=null!==(i=m.height)&&void 0!==i?i:k,j="right"===v?C-M:"center"===v?(C-M)/2:0,E=O;return U(X,Object.assign({},m,{width:C,height:O,children:[V(Du,{indexes:o,x:"right"===v?C-b:"center"===v?(C-b)/2:0,y:"middle"===c?(O-k)/2:"flipped"===c?O-k:0,width:b,height:w,alignHorizontal:v,alignVertical:"flipped"===c?"bottom":"center"===c?"middle":"top",fill:u?a.colorPrimary:a.colorText,children:y}),d&&V(K,{d:`M 0 ${g/2} L ${M} ${g/2}`,x:j,y:E-g/2,width:M,height:g,stroke:a.colorPrimary,strokeWidth:g,fill:"none",strokeLinecap:"round","data-element-type":"shape"})]}))},composites:["label"]});bd("pill-badge",{component:t=>{const[{datum:e,indexes:n,width:i=300,pillWidth:r=120,pillHeight:o=36,gap:s=16,positionH:a="normal",themeColors:l},c]=yd(t,["width","pillWidth","pillHeight","gap"]),h=!!e.desc,u=h?i:r,d=h?"center"===a?(u-r)/2:"flipped"===a?u-r:0:0,f=o+s,p=u,g=`drop-shadow-${l.colorPrimary}`,m="linear-gradient-white-top-bottom";return U(X,Object.assign({},c,{children:[U(q,{children:[V(Md,{id:g,color:l.colorPrimary}),V(kd,{id:m,startColor:"#fff",stopColor:"#ffffff33",direction:"top-bottom"})]}),V(J,{x:d,y:0,width:r,height:o,fill:l.colorPrimaryBg,stroke:l.colorPrimary,rx:o/2,ry:o/2,filter:`url(#${g})`,"data-element-type":"shape"}),V(J,{x:d,y:0,width:r,height:o,fill:`url(#${m})`,opacity:l.isDarkMode?.4:.7,rx:o/2,ry:o/2}),V(Du,{indexes:n,x:d,y:0,width:r,height:o,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:l.colorText,children:e.label}),e.desc&&V(Bu,{indexes:n,x:0,y:f,width:p,alignHorizontal:"center"===a?"center":"flipped"===a?"right":"left",fontSize:12,fill:l.colorTextSecondary,lineNumber:2,wordWrap:!0,children:e.desc})]}))},composites:["label","desc"]});function _d(){}function Sd(t){return null==t?_d:function(){return this.querySelector(t)}}function $d(){return[]}function Ad(t){return null==t?$d:function(){return this.querySelectorAll(t)}}function zd(t){return function(){return function(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}(t.apply(this,arguments))}}function Pd(t){return function(){return this.matches(t)}}function Ld(t){return function(e){return e.matches(t)}}bd("plain-text",{component:t=>{var e;const[{indexes:n,datum:i,width:r=120,themeColors:o,positionH:s="normal",positionV:a="center",formatter:l=t=>t||"",usePaletteColor:c=!1,lineNumber:h=1},u]=yd(t,["width","formatter","usePaletteColor","lineNumber"]),d=null!==(e=u.height)&&void 0!==e?e:Math.ceil(1.4*h*14);return V(Du,Object.assign({},u,{indexes:n,width:r,height:d,lineHeight:1.4,fill:c?o.colorPrimary:o.colorText,fontSize:14,fontWeight:"regular",alignHorizontal:"flipped"===s?"right":"center"===s?"center":"left",alignVertical:"flipped"===a?"bottom":"center"===a?"middle":"top",children:l(i.label||i.desc)}))},composites:["label"]});var Id=Array.prototype.find;function Td(){return this.firstElementChild}var Rd=Array.prototype.filter;function Bd(){return Array.from(this.children)}function Wd(t){return new Array(t.length)}function Hd(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Nd(t,e,n,i,r,o){for(var s,a=0,l=e.length,c=o.length;a<c;++a)(s=e[a])?(s.__data__=o[a],i[a]=s):n[a]=new Hd(t,o[a]);for(;a<l;++a)(s=e[a])&&(r[a]=s)}function Fd(t,e,n,i,r,o,s){var a,l,c,h=new Map,u=e.length,d=o.length,f=new Array(u);for(a=0;a<u;++a)(l=e[a])&&(f[a]=c=s.call(l,l.__data__,a,e)+"",h.has(c)?r[a]=l:h.set(c,l));for(a=0;a<d;++a)c=s.call(t,o[a],a,o)+"",(l=h.get(c))?(i[a]=l,l.__data__=o[a],h.delete(c)):n[a]=new Hd(t,o[a]);for(a=0;a<u;++a)(l=e[a])&&h.get(f[a])===l&&(r[a]=l)}function Dd(t){return t.__data__}function Vd(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Ud(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Hd.prototype={constructor:Hd,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Yd="http://www.w3.org/1999/xhtml";const qd={svg:"http://www.w3.org/2000/svg",xhtml:Yd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Gd(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),qd.hasOwnProperty(e)?{space:qd[e],local:t}:t}function Xd(t){return function(){this.removeAttribute(t)}}function Kd(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Zd(t,e){return function(){this.setAttribute(t,e)}}function Qd(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Jd(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function tf(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function ef(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function nf(t){return function(){this.style.removeProperty(t)}}function rf(t,e,n){return function(){this.style.setProperty(t,e,n)}}function of(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function sf(t,e){return t.style.getPropertyValue(e)||ef(t).getComputedStyle(t,null).getPropertyValue(e)}function af(t){return function(){delete this[t]}}function lf(t,e){return function(){this[t]=e}}function cf(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function hf(t){return t.trim().split(/^|\s+/)}function uf(t){return t.classList||new df(t)}function df(t){this._node=t,this._names=hf(t.getAttribute("class")||"")}function ff(t,e){for(var n=uf(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function pf(t,e){for(var n=uf(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function gf(t){return function(){ff(this,t)}}function mf(t){return function(){pf(this,t)}}function yf(t,e){return function(){(e.apply(this,arguments)?ff:pf)(this,t)}}function vf(){this.textContent=""}function xf(t){return function(){this.textContent=t}}function bf(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function wf(){this.innerHTML=""}function Mf(t){return function(){this.innerHTML=t}}function kf(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Cf(){this.nextSibling&&this.parentNode.appendChild(this)}function Of(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function jf(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Yd&&e.documentElement.namespaceURI===Yd?e.createElement(t):e.createElementNS(n,t)}}function Ef(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function _f(t){var e=Gd(t);return(e.local?Ef:jf)(e)}function Sf(){return null}function $f(){var t=this.parentNode;t&&t.removeChild(this)}function Af(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function zf(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Pf(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,o=e.length;i<o;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.options);++r?e.length=r:delete this.__on}}}function Lf(t,e,n){return function(){var i,r=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(r)for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),void(i.value=e);this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function If(t,e,n){var i=ef(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function Tf(t,e){return function(){return If(this,t,e)}}function Rf(t,e){return function(){return If(this,t,e.apply(this,arguments))}}df.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Bf=[null];function Wf(t,e){this._groups=t,this._parents=e}function Hf(){return new Wf([[document.documentElement]],Bf)}Wf.prototype=Hf.prototype={constructor:Wf,select:function(t){"function"!=typeof t&&(t=Sd(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,s,a=e[r],l=a.length,c=i[r]=new Array(l),h=0;h<l;++h)(o=a[h])&&(s=t.call(o,o.__data__,h,a))&&("__data__"in o&&(s.__data__=o.__data__),c[h]=s);return new Wf(i,this._parents)},selectAll:function(t){t="function"==typeof t?zd(t):Ad(t);for(var e=this._groups,n=e.length,i=[],r=[],o=0;o<n;++o)for(var s,a=e[o],l=a.length,c=0;c<l;++c)(s=a[c])&&(i.push(t.call(s,s.__data__,c,a)),r.push(s));return new Wf(i,r)},selectChild:function(t){return this.select(null==t?Td:function(t){return function(){return Id.call(this.children,t)}}("function"==typeof t?t:Ld(t)))},selectChildren:function(t){return this.selectAll(null==t?Bd:function(t){return function(){return Rd.call(this.children,t)}}("function"==typeof t?t:Ld(t)))},filter:function(t){"function"!=typeof t&&(t=Pd(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,s=e[r],a=s.length,l=i[r]=[],c=0;c<a;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&l.push(o);return new Wf(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,Dd);var n=e?Fd:Nd,i=this._parents,r=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var o=r.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var h=i[c],u=r[c],d=u.length,f=Vd(t.call(h,h&&h.__data__,c,i)),p=f.length,g=a[c]=new Array(p),m=s[c]=new Array(p);n(h,u,g,m,l[c]=new Array(d),f,e);for(var y,v,x=0,b=0;x<p;++x)if(y=g[x]){for(x>=b&&(b=x+1);!(v=m[b])&&++b<p;);y._next=v||null}}return(s=new Wf(s,i))._enter=a,s._exit=l,s},enter:function(){return new Wf(this._enter||this._groups.map(Wd),this._parents)},exit:function(){return new Wf(this._exit||this._groups.map(Wd),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,o=this.exit();return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(r=e(r))&&(r=r.selection()),null==n?o.remove():n(o),i&&r?i.merge(r).order():r},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,o=Math.min(r,i.length),s=new Array(r),a=0;a<o;++a)for(var l,c=n[a],h=i[a],u=c.length,d=s[a]=new Array(u),f=0;f<u;++f)(l=c[f]||h[f])&&(d[f]=l);for(;a<r;++a)s[a]=n[a];return new Wf(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],o=r.length-1,s=r[o];--o>=0;)(i=r[o])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Ud);for(var n=this._groups,i=n.length,r=new Array(i),o=0;o<i;++o){for(var s,a=n[o],l=a.length,c=r[o]=new Array(l),h=0;h<l;++h)(s=a[h])&&(c[h]=s);c.sort(e)}return new Wf(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length;r<o;++r){var s=i[r];if(s)return s}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,o=e[n],s=0,a=o.length;s<a;++s)(r=o[s])&&t.call(r,r.__data__,s,o);return this},attr:function(t,e){var n=Gd(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?Kd:Xd:"function"==typeof e?n.local?tf:Jd:n.local?Qd:Zd)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?nf:"function"==typeof e?of:rf)(t,e,n??"")):sf(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?af:"function"==typeof e?cf:lf)(t,e)):this.node()[t]},classed:function(t,e){var n=hf(t+"");if(arguments.length<2){for(var i=uf(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?yf:e?gf:mf)(n,e))},text:function(t){return arguments.length?this.each(null==t?vf:("function"==typeof t?bf:xf)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?wf:("function"==typeof t?kf:Mf)(t)):this.node().innerHTML},raise:function(){return this.each(Cf)},lower:function(){return this.each(Of)},append:function(t){var e="function"==typeof t?t:_f(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:_f(t),i=null==e?Sf:"function"==typeof e?e:Sd(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each($f)},clone:function(t){return this.select(t?zf:Af)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,o=function(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),s=o.length;if(!(arguments.length<2)){for(a=e?Lf:Pf,i=0;i<s;++i)this.each(a(o[i],e,n));return this}var a=this.node().__on;if(a)for(var l,c=0,h=a.length;c<h;++c)for(i=0,l=a[c];i<s;++i)if((r=o[i]).type===l.type&&r.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?Rf:Tf)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,r=t[e],o=0,s=r.length;o<s;++o)(i=r[o])&&(yield i)}};const Nf=Hf;var Ff=n("./node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js"),Df=n("./node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js");function Vf(t,e,n){var i=new Df.M4;return i.restart(n=>{i.stop(),t(n+e)},e=null==e?0:+e,n),i}var Uf=(0,Ff.A)("start","end","cancel","interrupt"),Yf=[];function qf(t,e,n,i,r,o){var s=t.__transition;if(s){if(n in s)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function o(t){n.state=1,n.timer.restart(s,n.delay,n.time),n.delay<=t&&s(t-n.delay)}function s(o){var c,h,u,d;if(1!==n.state)return l();for(c in r)if((d=r[c]).name===n.name){if(3===d.state)return Vf(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[c]):+c<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[c])}if(Vf(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(o))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,i=new Array(u=n.tween.length),c=0,h=-1;c<u;++c)(d=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++h]=d);i.length=h+1}}function a(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(l),n.state=5,1),o=-1,s=i.length;++o<s;)i[o].call(t,r);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){for(var i in n.state=6,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=(0,Df.O1)(o,0,n.time)}(t,n,{name:e,index:i,group:r,on:Uf,tween:Yf,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function Gf(t,e){var n=Kf(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function Xf(t,e){var n=Kf(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Kf(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var Zf,Qf=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.js"),Jf=180/Math.PI,tp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ep(t,e,n,i,r,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*Jf,skewX:Math.atan(l)*Jf,scaleX:s,scaleY:a}}function np(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}return function(o,s){var a=[],l=[];return o=t(o),s=t(s),function(t,i,r,o,s,a){if(t!==r||i!==o){var l=s.push("translate(",null,e,null,n);a.push({i:l-4,x:(0,Qf.A)(t,r)},{i:l-2,x:(0,Qf.A)(i,o)})}else(r||o)&&s.push("translate("+r+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,a,l),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(r(n)+"rotate(",null,i)-2,x:(0,Qf.A)(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(o.rotate,s.rotate,a,l),function(t,e,n,o){t!==e?o.push({i:n.push(r(n)+"skewX(",null,i)-2,x:(0,Qf.A)(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(o.skewX,s.skewX,a,l),function(t,e,n,i,o,s){if(t!==n||e!==i){var a=o.push(r(o)+"scale(",null,",",null,")");s.push({i:a-4,x:(0,Qf.A)(t,n)},{i:a-2,x:(0,Qf.A)(e,i)})}else 1===n&&1===i||o.push(r(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,l),o=s=null,function(t){for(var e,n=-1,i=l.length;++n<i;)a[(e=l[n]).i]=e.x(t);return a.join("")}}}var ip=np(function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tp:ep(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),rp=np(function(t){return null==t?tp:(Zf||(Zf=document.createElementNS("http://www.w3.org/2000/svg","g")),Zf.setAttribute("transform",t),(t=Zf.transform.baseVal.consolidate())?ep((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tp)},", ",")",")");function op(t,e){var n,i;return function(){var r=Xf(this,t),o=r.tween;if(o!==n)for(var s=0,a=(i=n=o).length;s<a;++s)if(i[s].name===e){(i=i.slice()).splice(s,1);break}r.tween=i}}function sp(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var o=Xf(this,t),s=o.tween;if(s!==i){r=(i=s).slice();for(var a={name:e,value:n},l=0,c=r.length;l<c;++l)if(r[l].name===e){r[l]=a;break}l===c&&r.push(a)}o.tween=r}}function ap(t,e,n){var i=t._id;return t.each(function(){var t=Xf(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return Kf(t,i).value[e]}}var lp=n("./node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js"),cp=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.js"),hp=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.js");function up(t,e){var n;return("number"==typeof e?Qf.A:e instanceof lp.Ay?cp.Ay:(n=(0,lp.Ay)(e))?(e=n,cp.Ay):hp.A)(t,e)}function dp(t){return function(){this.removeAttribute(t)}}function fp(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pp(t,e,n){var i,r,o=n+"";return function(){var s=this.getAttribute(t);return s===o?null:s===i?r:r=e(i=s,n)}}function gp(t,e,n){var i,r,o=n+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===o?null:s===i?r:r=e(i=s,n)}}function mp(t,e,n){var i,r,o;return function(){var s,a,l=n(this);if(null!=l)return(s=this.getAttribute(t))===(a=l+"")?null:s===i&&a===r?o:(r=a,o=e(i=s,l));this.removeAttribute(t)}}function yp(t,e,n){var i,r,o;return function(){var s,a,l=n(this);if(null!=l)return(s=this.getAttributeNS(t.space,t.local))===(a=l+"")?null:s===i&&a===r?o:(r=a,o=e(i=s,l));this.removeAttributeNS(t.space,t.local)}}function vp(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,r)),n}return r._value=e,r}function xp(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,r)),n}return r._value=e,r}function bp(t,e){return function(){Gf(this,t).delay=+e.apply(this,arguments)}}function wp(t,e){return e=+e,function(){Gf(this,t).delay=e}}function Mp(t,e){return function(){Xf(this,t).duration=+e.apply(this,arguments)}}function kp(t,e){return e=+e,function(){Xf(this,t).duration=e}}var Cp=Nf.prototype.constructor;function Op(t){return function(){this.style.removeProperty(t)}}var jp=0;function Ep(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function _p(){return++jp}var Sp=Nf.prototype;Ep.prototype=function(t){return Nf().transition(t)}.prototype={constructor:Ep,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Sd(t));for(var i=this._groups,r=i.length,o=new Array(r),s=0;s<r;++s)for(var a,l,c=i[s],h=c.length,u=o[s]=new Array(h),d=0;d<h;++d)(a=c[d])&&(l=t.call(a,a.__data__,d,c))&&("__data__"in a&&(l.__data__=a.__data__),u[d]=l,qf(u[d],e,n,d,u,Kf(a,n)));return new Ep(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Ad(t));for(var i=this._groups,r=i.length,o=[],s=[],a=0;a<r;++a)for(var l,c=i[a],h=c.length,u=0;u<h;++u)if(l=c[u]){for(var d,f=t.call(l,l.__data__,u,c),p=Kf(l,n),g=0,m=f.length;g<m;++g)(d=f[g])&&qf(d,e,n,g,f,p);o.push(f),s.push(l)}return new Ep(o,s,e,n)},selectChild:Sp.selectChild,selectChildren:Sp.selectChildren,filter:function(t){"function"!=typeof t&&(t=Pd(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,s=e[r],a=s.length,l=i[r]=[],c=0;c<a;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&l.push(o);return new Ep(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=Math.min(i,n.length),o=new Array(i),s=0;s<r;++s)for(var a,l=e[s],c=n[s],h=l.length,u=o[s]=new Array(h),d=0;d<h;++d)(a=l[d]||c[d])&&(u[d]=a);for(;s<i;++s)o[s]=e[s];return new Ep(o,this._parents,this._name,this._id)},selection:function(){return new Cp(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=_p(),i=this._groups,r=i.length,o=0;o<r;++o)for(var s,a=i[o],l=a.length,c=0;c<l;++c)if(s=a[c]){var h=Kf(s,e);qf(s,t,n,c,a,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Ep(i,this._parents,t,n)},call:Sp.call,nodes:Sp.nodes,node:Sp.node,size:Sp.size,empty:Sp.empty,each:Sp.each,on:function(t,e){var n=this._id;return arguments.length<2?Kf(this.node(),n).on.on(t):this.each(function(t,e,n){var i,r,o=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Gf:Xf;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(e,n),s.on=r}}(n,t,e))},attr:function(t,e){var n=Gd(t),i="transform"===n?rp:up;return this.attrTween(t,"function"==typeof e?(n.local?yp:mp)(n,i,ap(this,"attr."+t,e)):null==e?(n.local?fp:dp)(n):(n.local?gp:pp)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=Gd(t);return this.tween(n,(i.local?vp:xp)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?ip:up;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var o=sf(this,t),s=(this.style.removeProperty(t),sf(this,t));return o===s?null:o===n&&s===i?r:r=e(n=o,i=s)}}(t,i)).on("end.style."+t,Op(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,o;return function(){var s=sf(this,t),a=n(this),l=a+"";return null==a&&(this.style.removeProperty(t),l=a=sf(this,t)),s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a))}}(t,i,ap(this,"style."+t,e))).each(function(t,e){var n,i,r,o,s="style."+e,a="end."+s;return function(){var l=Xf(this,t),c=l.on,h=null==l.value[s]?o||(o=Op(e)):void 0;c===n&&r===h||(i=(n=c).copy()).on(a,r=h),l.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r,o=n+"";return function(){var s=sf(this,t);return s===o?null:s===i?r:r=e(i=s,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,function(t,e,n){var i,r;function o(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&function(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}(t,o,n)),i}return o._value=e,o}(t,e,n??""))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=e??""}}(ap(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=Kf(this.node(),n).tween,o=0,s=r.length;o<s;++o)if((i=r[o]).name===t)return i.value;return null}return this.each((null==e?op:sp)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?bp:wp)(e,t)):Kf(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Mp:kp)(e,t)):Kf(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Xf(this,t).ease=e}}(e,t)):Kf(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;Xf(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,i=n._id,r=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){0===--r&&o()}};n.each(function(){var n=Xf(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),n.on=e}),0===r&&o()})},[Symbol.iterator]:Sp[Symbol.iterator]};var $p={time:null,delay:0,duration:250,ease:n("./node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js").wq};function Ap(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}Nf.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var n,i,r,o=t.__transition,s=!0;if(o){for(r in e=null==e?null:e+"",o)(n=o[r]).name===e?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[r]):s=!1;s&&delete t.__transition}}(this,t)})},Nf.prototype.transition=function(t){var e,n;t instanceof Ep?(e=t._id,t=t._name):(e=_p(),(n=$p).time=(0,Df.tB)(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var s,a=i[o],l=a.length,c=0;c<l;++c)(s=a[c])&&qf(s,t,e,c,a,n||Ap(s,e));return new Ep(i,this._parents,t,e)};const{abs:zp,max:Pp,min:Lp}=Math;function Ip(t){return[+t[0],+t[1]]}function Tp(t){return[Ip(t[0]),Ip(t[1])]}["w","e"].map(Rp),["n","s"].map(Rp),["n","w","e","s","nw","ne","sw","se"].map(Rp);function Rp(t){return{type:t}}var Bp=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/center.js"),Wp=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/collide.js"),Hp=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/link.js"),Np=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/manyBody.js"),Fp=n("./node_modules/.pnpm/d3-force@3.0.0/node_modules/d3-force/src/simulation.js"),Dp=n("./node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/hierarchy/index.js"),Vp=n("./node_modules/.pnpm/d3-hierarchy@3.1.2/node_modules/d3-hierarchy/src/tree.js"),Up=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.js"),Yp=n("./node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.js"),qp=n("./node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.js");function Gp(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Xp(t){return+t}var Kp=[0,1];function Zp(t){return t}function Qp(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function Jp(t,e,n){var i=t[0],r=t[1],o=e[0],s=e[1];return r<i?(i=Qp(r,i),o=n(s,o)):(i=Qp(i,r),o=n(o,s)),function(t){return o(i(t))}}function tg(t,e,n){var i=Math.min(t.length,e.length)-1,r=new Array(i),o=new Array(i),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)r[s]=Qp(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(e){var n=(0,Yp.Ay)(t,e,1,i)-1;return o[n](r[n](e))}}function eg(){var t,e,n,i,r,o,s=Kp,a=Kp,l=qp.A,c=Zp;function h(){var t=Math.min(s.length,a.length);return c!==Zp&&(c=function(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(s[0],s[t-1])),i=t>2?tg:Jp,r=o=null,u}function u(e){return null==e||isNaN(e=+e)?n:(r||(r=i(s.map(t),a,l)))(t(c(e)))}return u.invert=function(n){return c(e((o||(o=i(a,s.map(t),Qf.A)))(n)))},u.domain=function(t){return arguments.length?(s=Array.from(t,Xp),h()):s.slice()},u.range=function(t){return arguments.length?(a=Array.from(t),h()):a.slice()},u.rangeRound=function(t){return a=Array.from(t),l=Gp,h()},u.clamp=function(t){return arguments.length?(c=!!t||Zp,h()):c!==Zp},u.interpolate=function(t){return arguments.length?(l=t,h()):l},u.unknown=function(t){return arguments.length?(n=t,u):n},function(n,i){return t=n,e=i,h()}}function ng(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var ig=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/formatSpecifier.js"),rg=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/exponent.js");var og=n("./node_modules/.pnpm/d3-format@3.1.2/node_modules/d3-format/src/defaultLocale.js");function sg(t,e,n,i){var r,o=(0,Up.sG)(t,e,n);switch((i=(0,ig.A)(i??",f")).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(r=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,rg.A)(e)/3)))-(0,rg.A)(Math.abs(t)))}(o,s))||(i.precision=r),(0,og.s)(i,s);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(r=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,(0,rg.A)(e)-(0,rg.A)(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=r-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(r=function(t){return Math.max(0,-(0,rg.A)(Math.abs(t)))}(o))||(i.precision=r-2*("%"===i.type))}return(0,og.GP)(i)}function ag(){var t=eg()(Zp,Zp);return t.copy=function(){return e=t,ag().domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());var e},ng.apply(t,arguments),function(t){var e=t.domain;return t.ticks=function(t){var n=e();return(0,Up.Ay)(n[0],n[n.length-1],t??10)},t.tickFormat=function(t,n){var i=e();return sg(i[0],i[i.length-1],t??10,n)},t.nice=function(n){null==n&&(n=10);var i,r,o=e(),s=0,a=o.length-1,l=o[s],c=o[a],h=10;for(c<l&&(r=l,l=c,c=r,r=s,s=a,a=r);h-- >0;){if((r=(0,Up.lq)(l,c,n))===i)return o[s]=l,o[a]=c,e(o);if(r>0)l=Math.floor(l/r)*r,c=Math.ceil(c/r)*r;else{if(!(r<0))break;l=Math.ceil(l*r)/r,c=Math.floor(c*r)/r}i=r}return t},t}(t)}var lg=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/arc.js"),cg=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/line.js"),hg=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/array.js"),ug=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.js");function dg(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function fg(t){return t}var pg=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/math.js");var gg=n("./node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.js");function mg(t,e,n){this.k=t,this.x=e,this.y=n}mg.prototype={constructor:mg,scale:function(t){return 1===t?this:new mg(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new mg(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new mg(1,0,0);bd("progress-card",{component:t=>{const[{datum:e,data:n,indexes:i,width:r=280,height:o=120,iconSize:s=32,gap:a=12,progressHeight:l=8,borderRadius:c=12,positionH:h="normal",themeColors:u,valueFormatter:d=t=>`${t}%`},f]=yd(t,["width","height","iconSize","gap","progressHeight","borderRadius"]),p=e.value,g=null!=p?p:0,m=Math.max(...n.items.map(t=>{var e;return null!==(e=t.value)&&void 0!==e?e:0}),100),y=r-2*a,v=ag().domain([0,m]).range([0,y])(g),x=`${u.colorPrimary}-progress`,b=`${u.colorPrimaryBg}-progress-bg`,w=du(V(Du,{indexes:i})),M="flipped"===h?r-a-s:a,k=a,C="flipped"===h?a:s+2*a,O=r-s-3*a,j=k,E=o-a-l,_=void 0!==p;return U(X,Object.assign({},f,{children:[U(q,{children:[U("linearGradient",{id:x,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[V("stop",{offset:"0%",stopColor:u.colorPrimary}),V("stop",{offset:"100%",stopColor:wl.A.mix(u.colorPrimary,"#fff",20).toHexString()})]}),U("linearGradient",{id:b,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[V("stop",{offset:"0%",stopColor:u.colorPrimaryBg}),V("stop",{offset:"100%",stopColor:u.colorBg})]})]}),V(J,{x:0,y:0,width:r,height:o,fill:u.colorBgElevated,stroke:u.colorPrimaryBg,strokeWidth:1,rx:c,ry:c,"data-element-type":"shape"}),V(Hu,{indexes:i,x:M,y:k,size:s,fill:u.colorPrimary}),V(Du,{indexes:i,x:C,y:j,width:O,alignHorizontal:"flipped"===h?"right":"left",alignVertical:"top",fontSize:16,fontWeight:"medium",fill:u.colorText,children:e.label}),_&&V(Yu,{indexes:i,x:C,y:j+w.height,width:O,alignHorizontal:"flipped"===h?"right":"left",alignVertical:"top",lineHeight:1,fontSize:24,fontWeight:"bold",fill:u.colorPrimary,value:g,formatter:d}),V(Bu,{indexes:i,x:C,y:j+w.height+(_?27:4),width:O,alignHorizontal:"flipped"===h?"right":"left",alignVertical:"top",fontSize:11,fill:u.colorTextSecondary,lineNumber:_?2:3,wordWrap:!0,children:e.desc}),V(J,{x:a,y:E,width:y,height:l,fill:`url(#${b})`,rx:l/2,ry:l/2,"data-element-type":"shape"}),V(J,{x:a,y:E,width:v,height:l,fill:`url(#${x})`,rx:l/2,ry:l/2,"data-element-type":"shape"})]}))},composites:["icon","label","value","desc"]});bd("quarter-circular",{component:t=>{const[{datum:e,indexes:n,width:i=280,height:r=120,iconSize:o=30,circleRadius:s=80,positionH:a="normal",positionV:l="normal",themeColors:c},h]=yd(t,["width","height","iconSize","circleRadius"]),u=4*s/(3*Math.PI),d=40,f=String(n[0]+1).padStart(2,"0"),p="flipped"===a,g="flipped"===l,m=p?{diagonalStartX:i-4,diagonalStartY:g?r-35:35,diagonalEndX:i-d,diagonalEndY:g?r-4:4,topLineStartX:i-d,topLineEndX:u,topLineY:g?r-4:4}:{diagonalStartX:4,diagonalStartY:g?r-35:35,diagonalEndX:d,diagonalEndY:g?r-4:4,topLineStartX:d,topLineEndX:i-u,topLineY:g?r-4:4},y=(()=>{if(p){const t=s+10;return{valueX:i-30,contentX:t,contentWidth:i-t-d,circleX:0,circleY:g?0:r,iconX:u-o/2}}return{valueX:0,contentX:d,contentWidth:i-d-s-10,circleX:i,circleY:g?0:r,iconX:i-u-o/2}})(),v=g?u-o/2:r-u-o/2,x=20+du(V(Du,{indexes:n,width:y.contentWidth,children:e.label})).height+8;return U(X,Object.assign({},h,{width:i,height:r,children:[U(qu,{children:[V(K,{d:`M ${m.diagonalStartX} ${m.diagonalStartY} L ${m.diagonalEndX} ${m.diagonalEndY}`,stroke:c.colorPrimary,strokeWidth:2,fill:"none"}),V(K,{d:`M ${m.topLineStartX} ${m.topLineY} L ${m.topLineEndX} ${m.topLineY}`,stroke:c.colorPrimary,strokeWidth:2,fill:"none"}),V(G,{x:m.diagonalStartX-4,y:m.diagonalStartY-4,width:8,height:8,fill:c.colorPrimary}),V(G,{x:m.topLineEndX-4,y:m.topLineY-4,width:8,height:8,fill:c.colorPrimary})]}),U(X,{children:[V(su,{x:y.valueX,y:40,fontSize:28,fontWeight:"bold",fill:c.colorPrimary,children:f}),V(K,{d:(()=>{const{circleX:t,circleY:e}=y;return p?g?`M ${t} ${e} L ${t} ${e+s} A ${s} ${s} 0 0 0 ${t+s} ${e} Z`:`M ${t} ${e} L ${t} ${e-s} A ${s} ${s} 0 0 1 ${t+s} ${e} Z`:g?`M ${t} ${e} L ${t} ${e+s} A ${s} ${s} 0 0 1 ${t-s} ${e} Z`:`M ${t} ${e} L ${t} ${e-s} A ${s} ${s} 0 0 0 ${t-s} ${e} Z`})(),fill:c.colorPrimary,"data-element-type":"shape"}),e.icon&&V(Hu,{indexes:n,x:y.iconX,y:v,size:o,fill:c.colorWhite}),e.label&&V(Du,{indexes:n,x:y.contentX,y:20,width:y.contentWidth,fontWeight:"bold",fill:c.colorText,alignHorizontal:p?"right":"left",children:e.label}),e.desc&&V(Bu,{indexes:n,x:y.contentX,y:x,width:y.contentWidth,fill:c.colorTextSecondary,alignHorizontal:p?"right":"left",children:e.desc})]})]}))},composites:["icon","label","desc"]});bd("quarter-simple-card",{component:t=>{const[{datum:e,indexes:n,width:i=150,height:r=150,iconSize:o=30,padding:s=20,borderRadius:a=16,positionH:l="center",positionV:c="middle",themeColors:h},u]=yd(t,["width","height","iconSize","padding","borderRadius"]),d=i-2*s,f="flipped"===l?i-s-o:"center"===l?(i-o)/2:s,p=s,g=p+o+8,m="flipped"===l?i-s-d:"center"===l?s:s,y=g+du(V(Du,{indexes:n,width:d,children:e.label})).height+4,v=m;let x="";return x="center"===l&&"middle"===c?`\n M ${a} 0\n L ${i-a} 0\n Q ${i} 0 ${i} ${a}\n L ${i} ${r-a}\n Q ${i} ${r} ${i-a} ${r}\n L ${a} ${r}\n Q 0 ${r} 0 ${r-a}\n L 0 ${a}\n Q 0 0 ${a} 0\n Z\n`:"flipped"===l&&"flipped"===c?`\n M ${a} 0\n L ${i-a} 0\n Q ${i} 0 ${i} ${a}\n L ${i} ${r-a}\n Q ${i} ${r} ${i-a} ${r}\n L ${a} ${r}\n Q 0 ${r} 0 ${r-a}\n L 0 0\n L ${a} 0\n Z\n`:"normal"===l&&"flipped"===c?`\n M 0 0\n L ${i} 0\n L ${i} ${r-a}\n Q ${i} ${r} ${i-a} ${r}\n L ${a} ${r}\n Q 0 ${r} 0 ${r-a}\n L 0 ${a}\n Q 0 0 ${a} 0\n Z\n`:"flipped"===l?`\n M ${a} 0\n L ${i-a} 0\n Q ${i} 0 ${i} ${a}\n L ${i} ${r-a}\n Q ${i} ${r} ${i-a} ${r}\n L 0 ${r}\n L 0 ${a}\n Q 0 0 ${a} 0\n Z\n`:`\n M ${a} 0\n L ${i-a} 0\n Q ${i} 0 ${i} ${a}\n L ${i} ${r}\n L ${a} ${r}\n Q 0 ${r} 0 ${r-a}\n L 0 ${a}\n Q 0 0 ${a} 0\n Z\n`,U(X,Object.assign({},u,{children:[V(K,{d:x,x:0,y:0,width:i,height:r,fill:h.colorPrimary,"data-element-type":"shape"}),V(Hu,{indexes:n,x:f,y:p,size:o,fill:h.colorBg}),V(Du,{indexes:n,x:m,y:g,width:d,fontSize:14,fontWeight:"bold",fill:h.colorBg,alignHorizontal:"flipped"===l?"right":"left",children:e.label}),e.desc&&V(Bu,{indexes:n,x:v,y,width:d,fontSize:11,wordWrap:!0,fill:h.colorBg,alignHorizontal:"flipped"===l?"right":"left",children:e.desc})]}))},composites:["icon","label","desc"]});bd("ribbon-card",{component:t=>{const[{datum:e,indexes:n,width:i=240,height:r=140,iconSize:o=28,gap:s=12,ribbonHeight:a=32,themeColors:l},c]=yd(t,["width","height","iconSize","gap","ribbonHeight"]),h=`${l.colorPrimary}-ribbon`;return U(X,Object.assign({},c,{children:[V(q,{children:U("linearGradient",{id:h,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[V("stop",{offset:"0%",stopColor:l.colorPrimary}),V("stop",{offset:"100%",stopColor:(0,wl.A)(l.colorPrimary).darken(15).toHexString()})]})}),U(qu,{children:[V(J,{x:0,y:0,width:i,height:r,fill:l.colorBgElevated,stroke:l.colorPrimaryBg,strokeWidth:1,rx:8,ry:8}),V(J,{x:0,y:0,width:i,height:a,fill:`url(#${h})`,rx:8,ry:8}),V(J,{x:0,y:8,width:i,height:a-8,fill:`url(#${h})`}),V(K,{x:i-20,y:a,width:20,height:8,fill:(0,wl.A)(l.colorPrimary).darken(25).toHexString(),d:"M0,0 L20,0 L15,8 L5,8 Z"})]}),V(Hu,{indexes:n,x:s,y:a+s,size:o,fill:l.colorPrimary}),V(Du,{indexes:n,x:o+2*s,y:a+s,width:i-o-3*s,height:o,alignHorizontal:"left",alignVertical:"middle",lineHeight:1,fontWeight:"bold",fill:l.colorText,children:e.label}),V(Bu,{indexes:n,x:s,y:a+o+s+5,width:i-2*s,alignHorizontal:"left",fill:l.colorTextSecondary,lineNumber:3,wordWrap:!0,children:e.desc}),V(Hu,{indexes:n,x:i-s-8,y:s/2,size:16,fill:l.colorWhite})]}))},composites:["icon","label","desc"]});bd("rounded-rect-node",{component:t=>{const[{indexes:e,datum:n,themeColors:i,width:r=300,height:o=40,padding:s=4,positionH:a="normal"},l]=yd(t,["width","height","borderRadius","padding"]),c=o/2,h=c,u=s,d=r-2*c,f=o-2*s;return U(X,Object.assign({},l,{children:[V(J,{"data-element-type":"shape",width:r,height:o,rx:c,ry:c,fill:i.colorPrimaryBg,stroke:i.colorPrimary,strokeWidth:1,opacity:.8}),V(Du,{indexes:e,x:h,y:u,width:d,height:f,alignHorizontal:"flipped"===a?"right":"center"===a?"center":"left",alignVertical:"middle",fontSize:14,fontWeight:"500",fill:i.colorText,children:n.label})]}))},composites:["label"]});bd("simple-circle-node",{component:t=>{const[{width:e=24,height:n=e,strokeWidth:i=2,themeColors:r,datum:o},s]=yd(t,["width","height"]),a=Math.min(e,n)-i,l=i/2;return U(X,Object.assign({},s,{width:e,height:n,children:[V(J,{width:e,height:n,fill:"none",visibility:"hidden"}),V(G,{x:l,y:l,width:a,height:a,fill:r.colorPrimary,stroke:r.isDarkMode?"#FFF":"#000",strokeWidth:i,"data-element-type":"shape",children:V("title",{children:o.label||o.desc})})]}))},composites:[]});const yg=t=>{const{x:e=0,y:n=0,width:i=100,height:r=40,fill:o="#FF356A",size:s=10}=t;return V(Q,{width:i,height:r,points:[{x:e,y:n},{x:e+i-s,y:n},{x:e+i,y:n+r/2},{x:e+i-s,y:n+r},{x:e,y:n+r},{x:e+s,y:n+r/2}],fill:o,"data-element-type":"shape"})};bd("simple-horizontal-arrow",{component:t=>{const[{indexes:e,datum:n,width:i=140,themeColors:r,positionV:o="normal"},s]=yd(t,["width"]),a="flipped"!==o,l=a?"bottom":"top",c=V(Du,{indexes:e,width:i,fill:r.colorText,alignHorizontal:"center",alignVertical:l,fontSize:14,children:n.label}),h=V(Bu,{indexes:e,width:i,fill:r.colorTextSecondary,alignHorizontal:"center",alignVertical:l,children:n.desc}),u=10,d=du(c),f=du(h),p=d.height+f.height;return V(X,Object.assign({width:i,height:p+u+30+u+p},s,{children:U(Zu,{flexDirection:"column",alignItems:"center",children:[a?U(D,{children:[h,c,V(Lu,{height:u})]}):V(D,{children:V(Lu,{height:p+u})}),U(Xu,{horizontal:"center",vertical:"middle",children:[V(yg,{width:i,height:30,fill:r.colorPrimary}),V(su,{width:i,height:30,alignHorizontal:"center",alignVertical:"middle",fill:r.colorWhite,fontWeight:"bold",fontSize:16,children:n.time?n.time:String(e[0]+1).padStart(2,"0").slice(-2)})]}),a?V(D,{children:V(Lu,{height:p+u})}):U(D,{children:[V(Lu,{height:u}),c,h]})]})}))},composites:["label","desc","time"]});bd("simple-illus",{component:t=>{const[{indexes:e,datum:n,width:i=180,illusSize:r=i,gap:o=8,themeColors:s,usePaletteColor:a=!1},l]=yd(t,["width","illusSize","gap","usePaletteColor"]),{label:c,desc:h}=n,u=V(Du,{indexes:e,width:i,alignHorizontal:"center",alignVertical:"middle",fill:a?s.colorPrimary:s.colorText,children:c}),d=du(u);return U(Zu,Object.assign({},l,{width:i,height:r+o+d.height+o+48,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:o,children:[V(Tu,{indexes:e,width:r,height:r}),u,V(Bu,{indexes:e,width:i,alignHorizontal:"center",alignVertical:"top",fill:s.colorTextSecondary,lineNumber:3,children:h})]}))},composites:["illus","label","desc"]});bd("simple",{component:t=>{const[{indexes:e,datum:n,width:i=200,height:r,gap:o=4,showIcon:s=!0,iconSize:a=30,iconType:l="default",positionH:c="normal",positionV:h="normal",usePaletteColor:u=!1,themeColors:d},f]=yd(t,["width","height","gap","showIcon","iconSize","iconType","usePaletteColor"]),{label:p,desc:g,icon:m}=n,y="normal"===(v=c)?"left":"flipped"===v?"right":"center";var v;const x=u?d.colorPrimary:d.colorText,b=du(V(Du,{indexes:e,width:i,alignHorizontal:"center",alignVertical:"middle",fill:x,children:p})),w=s?"circle"===l?V(Nu,{indexes:e,size:a,fill:d.colorPrimary,colorBg:d.colorBg}):V(Hu,{indexes:e,size:a,fill:d.colorTextSecondary}):null;if(!s||!m){const t=r?Math.max(0,r-b.height-o):void 0,n=t?t<=60?1:Math.floor(t/(1.4*14)):2,s=r?"middle"===h?(r-b.height-(t||0)-o)/2:"flipped"===h?r-b.height-(t||0)-o:0:0;return U(X,Object.assign({},f,{children:[V(Du,{indexes:e,width:i,y:s,alignHorizontal:y,alignVertical:"middle",fill:x,children:p}),V(Bu,{indexes:e,width:i,height:t,y:s+b.height+o,alignHorizontal:y,alignVertical:"top",lineNumber:n,fill:d.colorTextSecondary,children:g})]}))}if("center"===c){const t=s&&m?a:0,n=r?Math.max(0,r-b.height-t-2*o):void 0,l=n?n<=60?1:Math.floor(n/(1.4*14)):2,c=b.height+(n||0)+o,u=r?"middle"===h?(r-c-t-o)/2:"flipped"===h?r-c-t-o:0:0;return V(Zu,Object.assign({},f,{flexDirection:"column",gap:o,alignItems:"center",children:U(D,"flipped"===h?{children:[U(X,{children:[V(Du,{indexes:e,width:i,y:u,alignHorizontal:"center",alignVertical:"middle",fill:x,children:p}),V(Bu,{indexes:e,width:i,height:n,y:u+b.height+o,alignHorizontal:"center",alignVertical:"bottom",lineNumber:l,fill:d.colorTextSecondary,children:g})]}),w]}:{children:[w,U(X,{children:[V(Du,{indexes:e,width:i,y:u,alignHorizontal:"center",alignVertical:"middle",fill:x,children:p}),V(Bu,{indexes:e,width:i,height:n,y:u+b.height+o,alignHorizontal:"center",alignVertical:"top",lineNumber:l,fill:d.colorTextSecondary,children:g})]})]})}))}const M=du(w),k=Math.max(i-M.width-o,0),C=r?Math.max(0,r-b.height-o):void 0,O=C?C<=60?1:Math.floor(C/(1.4*14)):2,j=r?"middle"===h?(r-b.height-(C||0)-o)/2:"flipped"===h?r-b.height-(C||0)-o:0:0;return V(Zu,Object.assign({},f,{flexDirection:"row",gap:o,alignItems:function(t){return"normal"===t?"flex-start":"flipped"===t?"flex-end":"center"}(h),children:U(D,"flipped"===c?{children:[U(X,{children:[V(Du,{indexes:e,width:k,y:j,alignHorizontal:"right",alignVertical:"middle",fill:x,children:p}),V(Bu,{indexes:e,width:k,height:C,y:j+b.height+o,alignHorizontal:"right",alignVertical:"top",lineNumber:O,fill:d.colorTextSecondary,children:g})]}),w]}:{children:[w,U(X,{children:[V(Du,{indexes:e,width:k,y:j,alignHorizontal:"left",alignVertical:"middle",fill:x,children:p}),V(Bu,{indexes:e,width:k,height:C,y:j+b.height+o,alignHorizontal:"left",alignVertical:"top",lineNumber:O,fill:d.colorTextSecondary,children:g})]})]})}))},composites:["icon","label","desc"]});const vg=t=>{const{x:e=0,y:n=0,width:i=30,height:r=100,fill:o="#FF356A",size:s=10}=t;return V(Q,{width:i,height:r,points:[{x:e,y:n},{x:e+i/2,y:n+s},{x:e+i,y:n},{x:e+i,y:n+r-s},{x:e+i/2,y:n+r},{x:e,y:n+r-s}],fill:o,"data-element-type":"shape"})};bd("simple-vertical-arrow",{component:t=>{const[{indexes:e,datum:n,height:i=140,themeColors:r,positionH:o="normal"},s]=yd(t,["height"]),a="normal"===o?"right":"left",l=V(Du,{indexes:e,width:120,fill:r.colorText,alignHorizontal:a,alignVertical:"middle",fontSize:14,children:n.label}),c=V(Bu,{indexes:e,width:120,fill:r.colorTextSecondary,alignHorizontal:a,alignVertical:"top",children:n.desc}),h="flipped"!==o,u=15;return V(X,Object.assign({width:300,height:i},s,{children:U(Zu,{flexDirection:"row",alignItems:"center",children:[h?U(D,{children:[U(Zu,{flexDirection:"column",alignItems:"flex-end",children:[l,c]}),V(Lu,{width:u})]}):V(D,{children:V(Lu,{width:135})}),U(Xu,{horizontal:"center",vertical:"middle",children:[V(vg,{width:30,height:i,fill:r.colorPrimary}),V(su,{width:30,height:i,alignHorizontal:"center",alignVertical:"middle",fill:r.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),h?V(D,{children:V(Lu,{width:135})}):U(D,{children:[V(Lu,{width:u}),U(Zu,{flexDirection:"column",alignItems:"flex-start",children:[l,c]})]})]})}))},composites:["label","desc"]});bd("underline-text",{component:t=>{const[{datum:e,indexes:n,width:i=200,gap:r=4,positionH:o="center",themeColors:s},a]=yd(t,["width","height","gap"]),l=du(V(Du,{indexes:n,fontSize:18,fontWeight:"bold",width:i,children:e.label})),c=e.desc?du(V(Bu,{indexes:n,width:i,wordWrap:!0,children:e.desc})):{width:0,height:0},h="center"===o?"center":"flipped"===o?"right":"left",u="center"===o?(i-80)/2:"flipped"===o?i-80:0,d=0+l.height+r,f=d+3+2*r;return U(X,Object.assign({width:i,height:l.height+r+3+(e.desc?2*r+c.height:0)},a,{children:[e.label&&V(Du,{indexes:n,x:0,y:0,width:i,alignHorizontal:h,fill:s.colorPrimary,fontSize:18,fontWeight:"bold",children:e.label}),e.label&&V(J,{x:u,y:d,width:80,height:3,fill:s.colorPrimary,"data-element-type":"shape"}),e.desc&&V(Bu,{indexes:n,width:i,x:0,y:f,alignHorizontal:h,wordWrap:!0,fill:s.colorText,children:e.desc})]}))},composites:["label","desc"]});const xg=t=>{const{x:e=0,y:n=0,width:i=30,height:r=100,fill:o="#FF356A",size:s=10}=t;return V(Q,{width:i,height:r,points:[{x:e,y:n},{x:e+i/2,y:n+s},{x:e+i,y:n},{x:e+i,y:n+r-s},{x:e+i/2,y:n+r},{x:e,y:n+r-s}],fill:o,"data-element-type":"shape"})},bg=t=>{const{x:e=0,y:n=0,width:i=50,height:r=10,fill:o,positionH:s="normal"}=t,a=r/2,l=i-a,c=a;return U(X,{x:e,y:n,width:i,height:r,children:[V(G,{width:r,height:r,fill:o,x:"normal"===s?0:l-a,"data-element-type":"shape"}),V(K,{d:"normal"===s?`M${a},${c} L${a+l},${c}`:`M0,${c} L${l-a},${c}`,strokeWidth:2,stroke:o,"data-element-type":"shape"})]})};bd("vertical-icon-arrow",{component:t=>{const[{indexes:e,datum:n,height:i=140,themeColors:r,positionH:o="normal"},s]=yd(t,["height"]),a="flipped"!==o?"right":"left",l=V(Du,{indexes:e,width:120,fill:r.colorText,alignHorizontal:a,alignVertical:"middle",fontSize:14,children:n.label}),c=V(Bu,{indexes:e,width:120,fill:r.colorTextSecondary,alignHorizontal:a,alignVertical:"top",children:n.desc}),h=V(Nu,{indexes:e,fill:r.colorPrimary,colorBg:r.colorWhite}),u=V(bg,{width:30,height:8,fill:r.colorPrimary,positionH:o}),d="flipped"!==o,f=du(l),p=du(h),g=du(u),m=f.width+5+g.width-p.width-25,y=2*Math.max(f.width+5+g.width,25+p.width)+30;return V(X,Object.assign({width:y,height:i},s,{children:U(Zu,{flexDirection:"row",alignItems:"center",children:[U(D,d?{children:[U(Zu,{flexDirection:"column",alignItems:"flex-end",children:[l,c]}),V(Lu,{width:5}),u]}:{children:[V(Lu,{width:m}),h,V(Lu,{width:25})]}),U(Xu,{horizontal:"center",vertical:"middle",children:[V(xg,{width:30,height:i,fill:r.colorPrimary}),V(su,{width:30,height:i,alignHorizontal:"center",alignVertical:"middle",fill:r.colorWhite,fontWeight:"bold",fontSize:16,children:String(e[0]+1).padStart(2,"0").slice(-2)})]}),U(D,d?{children:[V(Lu,{width:25}),h]}:{children:[u,V(Lu,{width:5}),U(Zu,{flexDirection:"column",alignItems:"flex-start",children:[l,c]})]})]})}))},composites:["icon","label","desc"]});const wg=new Map;function Mg(t,e){wg.set(t,e)}Mg("chart-bar",{component:t=>{var e,n,i;const{Title:r,Item:o,data:s,width:a,gap:l,barGap:c,barHeight:h=28,barAreaWidth:u,labelGap:d=16,padding:f=24,showValue:p=!0,options:g,valueFormatter:m=t=>t.toString()}=t,y=null!==(e=null!=u?u:a)&&void 0!==e?e:480,{title:v,desc:x,items:b=[],xTitle:w,yTitle:M}=s,k=r?V(r,{title:v,desc:x}):null;if(0===b.length)return V(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:k});const[C,O,j,E]=Jh(f),_=null!==(n=b[0])&&void 0!==n?n:{label:"",value:0},S=du(V(o,{indexes:[0],datum:_,data:s})),$=S.width||140,A=S.height||h,z=Math.max(h,A),P=Math.max(12,.35*z),L=null!==(i=null!=c?c:l)&&void 0!==i?i:P,I=b.map(t=>{var e;return null!==(e=t.value)&&void 0!==e?e:0}),T=Math.max(...I,0),R=Math.min(...I,0),B=R<0?1.1*R:0;let W=T>0?1.1*T:0;W===B&&(W=B+1);const H=ag().domain([B,W]).range([0,y]),N=Math.min(Math.max(H(0),0),y),F=Math.max(2,.02*y),D=b.length*(z+L)-L,Y=M?24:0,q=w?24:0,G=C+Y,Z=E+$+d,Q=p?80:0,tt=Math.max(8,.2*z),et=Z+y+Q+O,nt=G+D+tt+20+q+j,it=ud(g.themeConfig),rt=it.colorText||"#666",ot=ld(g),st=[],at=[],lt=[],ct=[],ht=[],ut=[],dt=[],ft=G+D+tt,pt=t=>Number.isInteger(t)?t.toString():t.toFixed(1);b.forEach((t,e)=>{var n;const i=[e],r=null!==(n=t.value)&&void 0!==n?n:0,a=G+e*(z+L),l=a+(z-h)/2,c=r>=0?Z+N:Z+H(r),u=r>=0?H(r)-N:N-H(r),d=0===u?F:u,f=hd(g,[e])||it.colorPrimary;if(st.push(V(J,{x:c,y:l,width:d,height:h,fill:f,rx:6,ry:6,"data-element-type":"shape"})),p){at.push(V(su,{x:r>=0?c+d+8:c-8,y:l+h/2,alignHorizontal:r>=0?"left":"right",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:f,children:m(r,t)}))}lt.push(V(o,{indexes:i,datum:t,data:s,x:E,y:a+(z-A)/2,width:$,height:A,positionV:"middle"}))});const gt=Math.max(3,Math.min(7,Math.floor(y/80)));return H.ticks(gt).forEach(t=>{const e=Z+H(t);ut.push(V(K,{d:`M${e} ${G} L${e} ${G+D}`,stroke:rt,strokeOpacity:.08,"data-element-type":"shape"})),ht.push(V(K,{d:`M${e-.5} ${ft} L${e-.5} ${ft+6}`,stroke:rt,"data-element-type":"shape"})),ht.push(V(su,{x:e,y:ft+14,alignHorizontal:"center",alignVertical:"middle",fontSize:12,fill:rt,children:pt(t)}))}),ct.push(V(K,{d:`M${Z} ${ft} L${Z+y} ${ft}`,stroke:rt,"data-element-type":"shape"})),B<0&&ct.push(V(J,{x:Z+N-.5,y:G,width:1,height:D,fill:ot,"data-element-type":"shape"})),M&&dt.push(V(su,{x:E+$/2,y:C+Y/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:rt,children:M})),w&&dt.push(V(su,{x:Z+y/2,y:ft+20+q/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:rt,children:w})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[k,U(X,{width:et,height:nt,children:[V(X,{children:ut}),V(X,{children:st}),V(X,{children:at}),V(X,{children:dt}),V(X,{children:[...ct,...ht]}),V(Vu,{children:lt})]})]})},composites:["title","item","xTitle","yTitle"]});Mg("chart-column",{component:t=>{const{Title:e,Item:n,data:i,columnGap:r=60,columnWidth:o=50,padding:s=20,showValue:a=!0,options:l,valueFormatter:c=t=>t.toString()}=t,{title:h,desc:u,items:d=[]}=i,f=e?V(e,{title:h,desc:u}):null;if(0===d.length)return V(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:f});const p=ud(l.themeConfig),g=[...d.map(t=>{var e;return null!==(e=t.value)&&void 0!==e?e:0}),0].sort((t,e)=>t-e),m=g[0]<0,y=d.length*o+(d.length-1)*r,[v,x,b,w]=Jh(s),M=m&&a?(a?24:0)+10:10,k=y+w+x,C=300+v+b+M,O=ag().domain([g[0],g[g.length-1]]).range([300,0]),j=O(0),E=[],_=[],S=[],$=[];return d.forEach((t,e)=>{var s;const h=[e],u=null!==(s=t.value)&&void 0!==s?s:0,d=w+e*(o+r),f=u>=0?O(u):j,g=Math.abs(O(u)-j),m=hd(l,[e])||p.colorPrimary,y=`${m}-column-positive-${e}`,x=`${m}-column-negative-${e}`;$.push(U("linearGradient",{id:u>=0?y:x,x1:"0%",y1:u>=0?"0%":"100%",x2:"0%",y2:u>=0?"100%":"0%",children:[V("stop",{offset:"0%",stopColor:m}),V("stop",{offset:"100%",stopColor:wl.A.mix(m,"#fff",40).toHexString()})]})),E.push(V(J,{x:d,y:v+f,width:o,height:g,fill:`url(#${u>=0?y:x})`,rx:8,ry:8,"data-element-type":"shape"})),a&&_.push(V(su,{x:d+o/2,y:u>=0?v+f-10:v+f+g+20,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:u>=0?"bottom":"top",fill:m,children:c(u,t)}));const b=o+r;S.push(V(n,{indexes:h,datum:t,data:i,x:d+o/2-b/2,y:v+300+M,width:b,positionH:"center"}))}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,U(X,{width:k,height:C,children:[V(q,{children:$}),V(X,{children:E}),V(X,{children:_}),V(Vu,{children:S})]})]})},composites:["title","item"]});Mg("chart-line",{component:t=>{const{Title:e,Item:n,data:i,width:r,height:o=260,gap:s=10,padding:a=24,showValue:l=!0,options:c,valueFormatter:h=t=>t.toString()}=t,{title:u,desc:d,items:f=[],xTitle:p,yTitle:g}=i,m=e?V(e,{title:u,desc:d}):null;if(0===f.length)return V(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:m});const[y,v,x,b]=Jh(a),w={indexes:[0],datum:f[0],data:i,positionH:"center",positionV:"normal"},M=du(V(n,Object.assign({},w))),k=M.width,C=Math.max(28,M.height+14),O=g?26:0,j=p?22:0,E=k+s,_=void 0!==r?r:Math.max(200,(f.length>0?(f.length-1)*E+k:0)||320),S=f.length>1?Math.max(E,(_-k)/(f.length-1)):0,$=f.length>0?Math.max(k,(f.length-1)*S+k):0,A=b+44+O,z=y+O,P=A+$+v,L=z+o+C+j+x,I=f.map(t=>{var e;return null!==(e=t.value)&&void 0!==e?e:0}),T=Math.max(...I,0),R=Math.min(...I,0),B=.1*Math.max(Math.abs(T),Math.abs(R)),W=R<0?R-B:0;let H=T>0?T+B:1;H===W&&(H=W+1);const N=ag().domain([W,H]).nice().range([o,0]),F=Math.max(0,Math.min(o,N(0))),D=H<=0?0:W>=0?o:F,Y=ld(c),Z=ud(c.themeConfig),Q=Z.colorText||"#666",J=[],tt=[],et=[],nt=[],it=[],rt=[],ot=[],st=N.ticks(6),at=N.tickFormat(6);st.forEach(t=>{const e=z+N(t);J.push(V(K,{d:`M ${A} ${e} L ${A+$} ${e}`,width:$,height:1,stroke:Q,strokeWidth:1,"data-element-type":"shape",opacity:.08})),ot.push(V(su,{x:A-8,y:e,alignHorizontal:"right",alignVertical:"middle",fontSize:12,fill:Q,children:at(t)}))});const lt=[],ct=[],ht=[];f.forEach((t,e)=>{var i;const r=A+e*S+k/2,s=z+N(null!==(i=t.value)&&void 0!==i?i:0);ct.push({x:r,y:s,datum:t}),lt.push(V(n,Object.assign({},w,{indexes:[e],datum:t,x:r-k/2,y:z+o+4})));const a=hd(c,[e])||Z.colorPrimary;ht.push({x:r,color:a})});const ut=ht.length>0?Math.min(...ht.map(t=>t.x)):A,dt=ht.length>0?Math.max(...ht.map(t=>t.x)):A+$,ft=Math.max(1,dt-ut),pt=ht.map(t=>V("stop",{offset:(t.x-ut)/ft*100+"%",stopColor:t.color})),gt=ht.map(t=>V("stop",{offset:(t.x-ut)/ft*100+"%",stopColor:t.color,stopOpacity:"0.18"}));if(ht.length>0){const t=ht[ht.length-1].color;pt.push(V("stop",{offset:"100%",stopColor:t})),gt.push(V("stop",{offset:"100%",stopColor:t,stopOpacity:"0.04"}))}const mt=`chart-line-${Dh([$,o,Q,Y,ht.map(t=>`${t.x.toFixed(2)}-${t.color}`).join()].join(":"))}`,yt=`${mt}-stroke`,vt=`${mt}-area`,xt=(t=>{if(0===t.length)return"";if(1===t.length){const e=t[0];return`M ${e.x} ${e.y}`}const e=[];e.push(`M ${t[0].x} ${t[0].y}`);for(let n=0;n<t.length-1;n++){const i=t[n-1]||t[n],r=t[n],o=t[n+1],s=t[n+2]||o;e.push(`C ${r.x+(o.x-i.x)/6} ${r.y+(o.y-i.y)/6} ${o.x-(s.x-r.x)/6} ${o.y-(s.y-r.y)/6} ${o.x} ${o.y}`)}return e.join(" ")})(ct);et.push(V(K,{d:xt,width:$,height:o,stroke:`url(#${yt})`,strokeWidth:3,fill:"none","data-element-type":"shape"}));const bt=xt.includes("C")?xt.slice(xt.indexOf("C")):"",wt=[`M ${ct[0].x} ${z+D}`,`L ${ct[0].x} ${ct[0].y}`,bt,`L ${ct[ct.length-1].x} ${z+D}`,"Z"].join(" ");return et.push(V(K,{d:wt,width:$,height:o,fill:`url(#${vt})`,stroke:"none","data-element-type":"shape"})),ct.forEach((t,e)=>{var n;const i=hd(c,[e])||Z.colorPrimary;nt.push(V(G,{x:t.x-6,y:t.y-6,width:12,height:12,fill:i,"data-element-type":"shape"})),l&&it.push(V(su,{x:t.x,y:t.y-12,alignHorizontal:"center",alignVertical:"bottom",fontSize:12,fontWeight:"bold",fill:i,children:h(null!==(n=t.datum.value)&&void 0!==n?n:0,t.datum)}))}),tt.push(V(K,{d:`M ${A} ${z+D} L ${A+$} ${z+D}`,width:$,height:1,stroke:Q,strokeWidth:1,"data-element-type":"shape"})),tt.push(V(K,{d:`M ${A} ${z} L ${A} ${z+o}`,width:1,height:o,stroke:Q,strokeWidth:1,"data-element-type":"shape"})),p&&rt.push(V(su,{x:A+$/2,y:z+o+C+j/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:Q,children:p})),g&&rt.push(V(su,{x:b+O/2,y:z+o/2,alignHorizontal:"center",alignVertical:"middle",fontSize:14,fontWeight:"bold",fill:Q,children:g})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,U(X,{width:P,height:L,children:[U(q,{children:[V("linearGradient",{id:yt,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:pt}),V("linearGradient",{id:vt,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:gt})]}),V(X,{children:J}),V(X,{children:[...tt,...ot]}),V(X,{children:et}),V(X,{children:nt}),V(X,{children:it}),V(X,{children:rt}),V(Vu,{children:lt})]})]})},composites:["title","item","xTitle","yTitle"]});const kg=1.35;function Cg(t,e,n,i){if(t.length<=1)return t.map(t=>Object.assign({},t));const r=t.map(t=>Object.assign({},t)).sort((t,e)=>t.y-e.y),o=r.some((t,e)=>{if(0===e)return!1;const n=r[e-1];return t.y-n.y<(n.height+t.height)/2}),s=r[0],a=r[r.length-1];if(!o&&!(s.y-s.height/2<n||a.y+a.height/2>i))return r;const l=r.reduce((t,e)=>t+e.height,0),c=i-n;let h=e;if(l+e*(r.length-1)>c){h=Math.max(0,(c-l)/(r.length-1))}for(let t=1;t<r.length;t++){const e=r[t-1],n=r[t],i=e.y+(e.height+n.height)/2+h;n.y<i&&(n.y=i)}const u=r.length-1,d=r[u];if(d.y+d.height/2>i){d.y=i-d.height/2;for(let t=u-1;t>=0;t--){const e=r[t+1],n=r[t],i=e.y-(e.height+n.height)/2-h;n.y>i&&(n.y=i)}}const f=r[0];if(f.y-f.height/2<n){const t=n-(f.y-f.height/2);r.forEach(e=>e.y+=t)}return r}Mg("chart-pie",{component:t=>{var e;const{Title:n,Item:i,data:r,radius:o=140,innerRadius:s=0,padding:a=30,showPercentage:l=!0,avoidLabelOverlap:c=!1,minShowLabelPercent:h=0,options:u}=t,d=function(t){if(null==t)return 0;if("string"==typeof t){const e=t.trim(),n=e.endsWith("%")?e.slice(0,-1):e,i=parseFloat(n);return isNaN(i)?0:i}return t}(h),{title:f,desc:p,items:g=[]}=r,m=n?V(n,{title:f,desc:p}):null,y=du(V(Au,{indexes:[0]})),v=null!==(e=g[0])&&void 0!==e?e:{label:"",value:0},x=du(V(i,{indexes:[0],datum:v,data:r,positionH:"center",positionV:"middle"})),b=x.width||140,w=x.height||32,M=Math.max(o,60),k=M,C=a+(M*kg+8+b),O=a+k,j=2*C,E=2*O;if(0===g.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,V(X,{width:j,height:E,children:V(Pu,{children:V(Au,{indexes:[0],x:C-y.width/2,y:O-y.height/2})})})]});const _=g.reduce((t,e)=>{var n;return t+Math.max(null!==(n=e.value)&&void 0!==n?n:0,0)},0),S=ld(u),$=ud(u.themeConfig),A=function(){var t=fg,e=dg,n=null,i=(0,ug.A)(0),r=(0,ug.A)(pg.FA),o=(0,ug.A)(0);function s(s){var a,l,c,h,u,d=(s=(0,hg.A)(s)).length,f=0,p=new Array(d),g=new Array(d),m=+i.apply(this,arguments),y=Math.min(pg.FA,Math.max(-pg.FA,r.apply(this,arguments)-m)),v=Math.min(Math.abs(y)/d,o.apply(this,arguments)),x=v*(y<0?-1:1);for(a=0;a<d;++a)(u=g[p[a]=a]=+t(s[a],a,s))>0&&(f+=u);for(null!=e?p.sort(function(t,n){return e(g[t],g[n])}):null!=n&&p.sort(function(t,e){return n(s[t],s[e])}),a=0,c=f?(y-d*x)/f:0;a<d;++a,m=h)g[l=p[a]]={data:s[l],index:a,value:u=g[l],startAngle:m,endAngle:h=m+(u>0?u*c:0)+x,padAngle:v};return g}return s.value=function(e){return arguments.length?(t="function"==typeof e?e:(0,ug.A)(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:(0,ug.A)(+t),s):i},s.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:(0,ug.A)(+t),s):r},s.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:(0,ug.A)(+t),s):o},s}().value(t=>{var e;return Math.max(null!==(e=t.value)&&void 0!==e?e:0,0)}).sort(null).startAngle(0).endAngle(2*Math.PI),z=A(g),P=(0,lg.A)().innerRadius(s).outerRadius(M).cornerRadius(2),L=(0,lg.A)().innerRadius(M).outerRadius(M),I=(0,lg.A)().innerRadius(1.15*M).outerRadius(1.15*M),T=s+.5*(M-s),R=(0,lg.A)().innerRadius(T).outerRadius(T),B=(0,lg.A)().innerRadius(.85*M).outerRadius(.85*M),W=[],H=[],N=[],F=[],D=[],Y=[];z.forEach(t=>{const e=t.index,n=hd(u,[e])||$.colorPrimary||S,i=P(t)||"";W.push(V(K,{d:i,fill:n,stroke:$.colorBg,strokeWidth:1,"data-element-type":"shape",width:2*M,height:2*M}));const r=t.startAngle+(t.endAngle-t.startAngle)/2,o=(r<0?r+2*Math.PI:r)<Math.PI;if((_>0?t.value/_*100:0)<d)return;const s=I.centroid(t);Y.push({arcDatum:t,originalIndex:e,x:s[0],y:s[1],height:w,isRight:o,color:n})});let q=Y;if(c){const t=-k*kg,e=k*kg,n=Y.filter(t=>!t.isRight),i=Y.filter(t=>t.isRight),r=w,o=Cg(i,r,t,e);q=[...Cg(n,r,t,e),...o]}return q.forEach(t=>{const{arcDatum:e,originalIndex:n,isRight:o,color:s,y:a}=t,c=L.centroid(e),h=I.centroid(e),d=a,f=Math.abs(d-h[1]),p=M*kg,g=p+.2*M+20,m=[Math.min(p+.3*f,g)*(o?1:-1),d],v=[g*(o?1:-1),d];N.push(V(K,{d:`M${C+c[0]} ${O+c[1]} \n L${C+h[0]} ${O+h[1]} \n L${C+m[0]} ${O+m[1]}\n L${C+v[0]} ${O+v[1]}\n `,stroke:s,strokeOpacity:.45,strokeWidth:2,fill:"none","data-element-type":"shape"}));if(F.push(V(i,{indexes:[n],datum:e.data,data:r,x:C+v[0]+(o?8:-8-b),y:O+a-w/2,width:b,height:w,positionH:o?"normal":"flipped",positionV:"middle",themeColors:ud({colorPrimary:s},u)})),l&&_>0){const t=R.centroid(e),i=Math.max(e.value,0),r=(100*i/_).toFixed(1),o=50,s=20;H.push(V(su,{x:C+t[0]-o/2,y:O+t[1]-s/2,width:o,height:s,alignHorizontal:"center",alignVertical:"middle",fontSize:12,fontWeight:"bold",fill:"#ffffff","data-value":i,"data-indexes":[n],"data-element-type":"item-value",children:`${r}%`}))}const x=B.centroid(e);D.push(V(zu,{indexes:[n],x:C+x[0]-y.width/2,y:O+x[1]-y.height/2}))}),z.forEach((t,e)=>{const n=(e+1)%z.length,i=(t.endAngle+(z[n].startAngle+(0===n?2*Math.PI:0)))/2,r=1*M,o=Math.sin(i)*r,s=-Math.cos(i)*r;D.push(V(Au,{indexes:[e+1],x:C+o-y.width/2,y:O+s-y.height/2}))}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[m,U(X,{width:j,height:E,children:[V(X,{x:C,y:O,children:W}),V(X,{children:N}),V(X,{children:H}),V(Vu,{children:F}),V(Pu,{children:D})]})]})},composites:["title","item"]});const Og=[0,30,-30,60,-60],jg=Math.PI*(3-Math.sqrt(5));function Eg(t,e,n){const i=Math.PI/180*n,r=Math.cos(i),o=Math.sin(i);return{width:Math.abs(t*r)+Math.abs(e*o),height:Math.abs(t*o)+Math.abs(e*r)}}function _g(t,e,n,i,r,o){const s=t-o,a=t+n+o,l=e-o,c=e+i+o;return r.some(t=>!(a<=t.box.x-o||s>=t.box.x+t.box.width+o||c<=t.box.y-o||l>=t.box.y+t.box.height+o))}Mg("chart-wordcloud",{component:t=>{const{data:e,options:n,minFontSize:i=16,maxFontSize:r=48,enableRotate:o=!0,padding:s=6,spiralStep:a=.45,radiusStep:l=10}=t,{items:c=[]}=e,h=c.map((t,e)=>({datum:t,index:e})).filter(({datum:t})=>t.label);if(0===h.length)return V(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:V(X,{children:V(Vu,{})})});const u=h.map(({datum:t})=>t.value).filter(t=>"number"==typeof t),d=u.length>0,f=d?Math.min(...u):0,p=d?Math.max(...u):0,g=d&&f===p,m=(i+r)/2,y=h.map(({datum:t,index:e})=>{const o=(t=>!d||g?m:null==t?i:i+(t-f)/(p-f||1)*(r-i))(t.value),s=du(V(su,{fontSize:o,fontWeight:"bold",children:t.label})),a=hd(n,[e])||ld(n)||"#333333";return{label:t.label,value:t.value,color:a,fontSize:o,width:1.05*s.width,height:s.height}}).sort((t,e)=>e.fontSize-t.fontSize),v=function(t,e,n,i,r){const o=[],s=e?Og:[0],a=Math.max(1600,28*t.length);return t.forEach((t,e)=>{const l=Math.max(t.width,t.height),c=e*jg;let h=0,u=null;for(let e=0;e<a&&!u;e++){e===Math.floor(.6*a)&&(h=l);const d=c+e*i,f=r*Math.sqrt(e+1)+h+.25*l,p=f*Math.cos(d),g=f*Math.sin(d);for(const e of s){const i=Eg(t.width,t.height,e),r=p-i.width/2,s=g-i.height/2;if(!_g(r,s,i.width,i.height,o,n)){u=Object.assign(Object.assign({},t),{angle:e,centerX:p,centerY:g,box:{x:r,y:s,width:i.width,height:i.height}});break}}}if(!u){const n=s[e%s.length],i=r*Math.sqrt(a+1)+l,o=c,h=i*Math.cos(o),d=i*Math.sin(o),f=Eg(t.width,t.height,n);u=Object.assign(Object.assign({},t),{angle:n,centerX:h,centerY:d,box:{x:h-f.width/2,y:d-f.height/2,width:f.width,height:f.height}})}o.push(u)}),o}(y,o,s,a,l),x=Math.min(...v.map(t=>t.box.x)),b=Math.min(...v.map(t=>t.box.y)),w=Math.max(...v.map(t=>t.box.x+t.box.width)),M=Math.max(...v.map(t=>t.box.y+t.box.height)),k=-x+s,C=-b+s,O=w-x+2*s,j=M-b+2*s,E=v.map((t,e)=>V(X,{transform:`translate(${t.centerX-t.width/2+k}, ${t.centerY-t.height/2+C}) rotate(${t.angle}, ${t.width/2}, ${t.height/2})`,children:V(su,{width:t.width,height:t.height,fontSize:t.fontSize,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:t.color,"data-indexes":e,"data-element-type":"item-label",children:t.label})}));return V(Vu,{id:"infographic-container",width:O,height:j,children:E})},composites:[]});const Sg=new Map,$g=(t,e)=>{Sg.set(t,e)};$g("pros-cons-arrow",t=>{const{x:e,y:n,colorPositive:i,colorNegative:r,colorBg:o}=t,s={width:90,height:40,fontSize:22,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return U(X,{x:e,y:n,width:200,height:141,children:[U(qu,{children:[V("path",{d:"M137 54C137 54.2903 137 54.5806 136.706 54.7742L108.614 86.0323H64.7619C64.4071 86.0204 64.0557 86.1043 63.7453 86.2747C63.4349 86.4452 63.1773 86.6959 63 87C63.0037 86.7447 63.1092 86.5012 63.2936 86.3226L91.3862 55.0645H135.238C135.593 55.0763 135.944 54.9925 136.255 54.822C136.565 54.6516 136.823 54.4009 137 54.0968V54Z",fill:"#D9D9D9"}),V("path",{d:"M39.3272 0.484649C39.6146 0.234929 39.9662 0.0736935 40.3407 0.0198929C40.7152 -0.0339076 41.0971 0.0219605 41.4414 0.180925C41.7857 0.33989 42.0783 0.595358 42.2846 0.917314C42.491 1.23927 42.6026 1.61434 42.6063 1.99848V14.8156H136.013C136.54 14.8156 137.045 15.0282 137.418 15.4068C137.791 15.7853 138 16.2987 138 16.834V53.166C138 53.7013 137.791 54.2147 137.418 54.5932C137.045 54.9718 136.54 55.1844 136.013 55.1844H42.6063V68.0015C42.6026 68.3857 42.491 68.7607 42.2846 69.0827C42.0783 69.4046 41.7857 69.6601 41.4414 69.8191C41.0971 69.9781 40.7152 70.0339 40.3407 69.9801C39.9662 69.9263 39.6146 69.7651 39.3272 69.5154L0.672847 36.5138C0.461378 36.3244 0.292014 36.0915 0.176005 35.8305C0.0599968 35.5695 0 35.2864 0 35C0 34.7136 0.0599968 34.4306 0.176005 34.1696C0.292014 33.9085 0.461378 33.6756 0.672847 33.4862L39.4265 0.484649H39.3272Z",fill:i}),V("path",{d:"M157.394 73.0007C157.397 72.6162 157.509 72.2407 157.715 71.9183C157.922 71.596 158.214 71.3403 158.559 71.1811C158.903 71.022 159.285 70.9661 159.659 71.0199C160.034 71.0738 160.385 71.2352 160.673 71.4852L199.327 104.524C199.539 104.714 199.708 104.947 199.824 105.208C199.94 105.47 200 105.753 200 106.04C200 106.326 199.94 106.61 199.824 106.871C199.708 107.132 199.539 107.366 199.327 107.555L160.573 140.594C160.285 140.815 159.943 140.951 159.584 140.989C159.225 141.027 158.862 140.965 158.535 140.809C158.208 140.653 157.929 140.41 157.728 140.105C157.527 139.8 157.411 139.445 157.394 139.078V126.247H63.9874C63.4603 126.247 62.9548 126.034 62.5821 125.655C62.2094 125.276 62 124.762 62 124.226V87.8531C62 87.3172 62.2094 86.8032 62.5821 86.4242C62.9548 86.0453 63.4603 85.8324 63.9874 85.8324H157.394V73.0007Z",fill:r})]}),V(su,Object.assign({x:40,y:15},s,{children:"Pros"})),V(su,Object.assign({x:70,y:85},s,{children:"Cons"}))]})});$g("pros-cons-fold",t=>{const{x:e,y:n,colorPositive:i,colorNegative:r,colorBg:o}=t,s={width:85,height:30,fontSize:20,alignHorizontal:"center",alignVertical:"middle",fontWeight:"bold",fill:o};return U(X,{x:e,y:n,width:240,height:300,children:[U(qu,{children:[V("path",{d:"M136.914 38.7755C137.303 38.7733 137.683 38.6617 138.011 38.4534C138.339 38.2451 138.602 37.9485 138.77 37.5977C138.937 37.247 139.002 36.8561 138.957 36.4701C138.913 36.084 138.76 35.7183 138.517 35.415L110.741 0.982313C110.548 0.735138 110.301 0.535238 110.018 0.397762C109.736 0.260286 109.426 0.188841 109.112 0.188841C108.798 0.188841 108.488 0.260286 108.206 0.397762C107.924 0.535238 107.676 0.735138 107.483 0.982313L79.7069 35.415C79.4639 35.7183 79.3113 36.084 79.2667 36.4701C79.222 36.8561 79.2871 37.247 79.4545 37.5977C79.6219 37.9485 79.8847 38.2451 80.213 38.4534C80.5412 38.6617 80.9216 38.7733 81.3104 38.7755H92.8965C93.0517 57.1293 97.5517 64.9878 105.259 73.7252C107.017 75.7932 108.983 77.8612 111.103 80.1361C113.276 82.4626 122.121 88.9252 131.069 95.181C129.362 88.7701 128.172 81.2218 127.293 73.7252C125.224 55.9918 125.017 38.7755 125.017 38.7755H136.914Z",fill:i,fillOpacity:.4}),V("path",{d:"M237.931 109.967C238.48 109.967 239.006 109.749 239.394 109.362C239.782 108.974 240 108.448 240 107.899V75.7932C240 75.2447 239.782 74.7187 239.394 74.3309C239.006 73.9431 238.48 73.7252 237.931 73.7252H127.241C128.172 81.2218 129.362 88.7701 131.069 95.181C138.182 100.171 145.337 105.1 152.534 109.967H237.931Z",fill:i}),V("path",{d:"M152.586 109.967C152.586 109.967 141.724 102.678 131.069 95.181C124.122 90.5838 117.455 85.5772 111.103 80.1878C109.034 77.8612 107.017 75.7415 105.259 73.7252H48.6207V56.6639C48.6091 56.2797 48.4905 55.9063 48.2784 55.5857C48.0662 55.2651 47.7689 55.0099 47.4197 54.8488C47.0705 54.6878 46.6833 54.6271 46.3016 54.6738C45.9199 54.7204 45.5587 54.8725 45.2586 55.1129L1.50002 90.2694C1.26208 90.4633 1.07029 90.7078 0.938585 90.985C0.80688 91.2622 0.738558 91.5652 0.738558 91.8721C0.738558 92.179 0.80688 92.482 0.938585 92.7592C1.07029 93.0365 1.26208 93.2809 1.50002 93.4748L45.2586 128.631C45.5621 128.874 45.928 129.027 46.3142 129.071C46.7005 129.116 47.0914 129.051 47.4424 128.884C47.7933 128.716 48.09 128.454 48.2984 128.125C48.5068 127.797 48.6185 127.417 48.6207 127.029V109.967H152.586Z",fill:"#BFBFBF"}),V("path",{d:"M36.1034 88.9252H28.9655V93.785H36.1034V101.85H41.4828V93.785H48.6207V88.8735H41.4828V81.1701H36.1034V88.9252Z",fill:"#404040"}),V("path",{d:"M103.086 261.224C102.697 261.227 102.317 261.338 101.989 261.547C101.661 261.755 101.398 262.051 101.23 262.402C101.063 262.753 100.998 263.144 101.043 263.53C101.087 263.916 101.24 264.282 101.483 264.585L129.259 299.018C129.452 299.265 129.699 299.465 129.982 299.602C130.264 299.74 130.574 299.811 130.888 299.811C131.202 299.811 131.512 299.74 131.794 299.602C132.076 299.465 132.324 299.265 132.517 299.018L160.293 264.585C160.536 264.282 160.689 263.916 160.733 263.53C160.778 263.144 160.713 262.753 160.546 262.402C160.378 262.051 160.115 261.755 159.787 261.547C159.459 261.338 159.078 261.227 158.69 261.224H147.103C146.948 242.871 142.448 235.012 134.741 226.275C132.983 224.207 131.017 222.139 128.897 219.864C126.724 217.537 117.879 211.075 108.931 204.819C110.677 211.877 111.938 219.045 112.707 226.275C114.776 244.008 114.983 261.224 114.983 261.224H103.086Z",fill:r,fillOpacity:.4}),V("path",{d:"M2.06897 190.033C1.52025 190.033 0.993996 190.251 0.605989 190.638C0.217983 191.026 5.00679e-06 191.552 5.00679e-06 192.101V224.207C5.00679e-06 224.755 0.217983 225.281 0.605989 225.669C0.993996 226.057 1.52025 226.275 2.06897 226.275H112.759C111.828 218.778 110.638 211.23 108.931 204.819C99.9827 198.512 90.931 192.411 88.2414 190.55C87.7206 190.204 87.1077 190.024 86.4828 190.033H2.06897Z",fill:r}),V("path",{d:"M87.4138 190.033C87.4138 190.033 98.2759 197.322 108.931 204.819C115.878 209.416 122.545 214.423 128.897 219.812C130.966 222.139 132.983 224.258 134.741 226.275H191.379V243.336C191.391 243.72 191.51 244.094 191.722 244.414C191.934 244.735 192.231 244.99 192.58 245.151C192.929 245.312 193.317 245.373 193.698 245.326C194.08 245.28 194.441 245.128 194.741 244.887L238.5 209.731C238.738 209.537 238.93 209.292 239.061 209.015C239.193 208.738 239.261 208.435 239.261 208.128C239.261 207.821 239.193 207.518 239.061 207.241C238.93 206.964 238.738 206.719 238.5 206.525L194.741 171.369C194.438 171.126 194.072 170.973 193.686 170.929C193.3 170.884 192.909 170.949 192.558 171.116C192.207 171.284 191.91 171.546 191.702 171.875C191.493 172.203 191.382 172.583 191.379 172.971V190.033H87.4138Z",fill:"#BFBFBF"}),V("path",{d:"M192.414 205.905V210.816H212.069V205.905H192.414Z",fill:"#404040"})]}),V(su,Object.assign({x:153,y:77},s,{children:"PROS"})),V(su,Object.assign({x:2,y:193},s,{children:"CONS"}))]})});$g("vs",t=>{const{x:e,y:n,colorPrimary:i,colorBg:r}=t,o=100,s=100,a=(0,wl.A)(i).lighten(20).toString();return U(X,{x:e,y:n,width:o,height:s,children:[U(q,{children:[V("filter",{id:"vs-divider-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:V("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"8",result:"blur"})}),V(Md,{})]}),V(G,{x:0,y:0,width:o,height:s,fill:a,filter:"url(#vs-divider-glow-filter)",opacity:.6}),V(G,{x:0,y:0,width:o,height:s,fill:i,"data-element-type":"shape"}),V("text",{x:50,y:50,fontSize:Math.min(o,s)/1.5,fontWeight:"bold",fill:r,textAnchor:"middle",dominantBaseline:"central",filter:"url(#drop-shadow)",children:"VS"})]})});Mg("compare-binary-horizontal",{component:t=>{const{Title:e,Item:n,data:i,gap:r=20,groupGap:o=20,opposite:s=!0,flipped:a=!0,dividerType:l="vs",options:c}=t,{title:h,desc:u,items:d=[]}=i,f=e?V(e,{title:h,desc:u}):null;if(0===d.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,V(X,{children:V(Pu,{children:V(Au,{indexes:[0],x:0,y:0})})})]});const p=(d[0]||{children:[]}).children||[],g=(d[1]||{children:[]}).children||[],m=ud(c.themeConfig),y=du(V(n,{indexes:[0,0],data:i,datum:p[0]||{}})),v=du(V(Au,{indexes:[0]})),x=(t=>{var e;return t&&null!==(e=Sg.get(t))&&void 0!==e?e:null})(l),b=x?du(V(x,{x:0,y:0,colorPrimary:m.colorPrimary,colorBg:m.colorBg,colorPositive:m.colorPrimary,colorNegative:m.colorPrimary})):{width:0,height:0},w=[],M=[],k=[],C=Math.max(p.length,g.length),O=C>0?C*(y.height+r)-r:0,j=C>0?r/2+v.height/2:v.height/2,E=v.width+5,_=E+y.width+o,S=_+b.width+o,$=a?"flipped":"normal",A=a?"normal":s?"flipped":"normal";if(p.forEach((t,e)=>{const o=j+e*(y.height+r),s=[0,e];w.push(V(n,{indexes:s,datum:t,data:i,x:E,y:o,positionH:$,positionV:"middle"})),M.push(V(zu,{indexes:s,x:E-v.width-5,y:o+(y.height-v.height)/2})),e<p.length-1&&M.push(V(Au,{indexes:[0,e+1],x:E+(y.width-v.width)/2,y:o+y.height+r/2-v.height/2}))}),p.length>0){M.push(V(Au,{indexes:[0,0],x:E+(y.width-v.width)/2,y:j-r/2-v.height/2}));M.push(V(Au,{indexes:[0,p.length],x:E+(y.width-v.width)/2,y:j+(p.length-1)*(y.height+r)+y.height+r/2-v.height/2}))}else d.length>=1&&M.push(V(Au,{indexes:[0,0],x:E+(y.width-v.width)/2,y:j-v.height/2}));if(g.forEach((t,e)=>{const o=j+e*(y.height+r),s=[1,e];w.push(V(n,{indexes:s,datum:t,data:i,x:S,y:o,positionH:A,positionV:"middle"})),M.push(V(zu,{indexes:s,x:S+y.width+5,y:o+(y.height-v.height)/2})),e<g.length-1&&M.push(V(Au,{indexes:[1,e+1],x:S+(y.width-v.width)/2,y:o+y.height+r/2-v.height/2}))}),g.length>0){M.push(V(Au,{indexes:[1,0],x:S+(y.width-v.width)/2,y:j-r/2-v.height/2}));M.push(V(Au,{indexes:[1,g.length],x:S+(y.width-v.width)/2,y:j+(g.length-1)*(y.height+r)+y.height+r/2-v.height/2}))}else d.length>=2&&M.push(V(Au,{indexes:[1,0],x:S+(y.width-v.width)/2,y:j-v.height/2}));return d.length<2&&M.push(V(Au,{indexes:[1],x:S+(y.width-v.width)/2,y:j+(O-v.height)/2})),x&&k.push(V(x,{x:_,y:j+(O-b.height)/2,colorPrimary:m.colorPrimary,colorBg:m.colorBg,colorPositive:hd(c,[0])||m.colorPrimary,colorNegative:hd(c,[1])||m.colorPrimary})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,U(X,{children:[V(X,{children:k}),V(Vu,{children:w}),V(Pu,{children:M})]})]})},composites:["title","item"]});const Ag={none:5,"dot-line":100,"arc-dot":20,"split-line":5},zg=t=>{const{x:e,y:n,width:i,height:r,color:o,colorBg:s,side:a}=t,l=n+r,c=`split-line-linear-gradient-${a}`;return U(D,{children:[V(q,{children:V(kd,{id:c,startColor:o,stopColor:s,direction:"left"===a?"left-right":"right-left"})}),V(J,{x:e,y:l,width:i,height:1,fill:`url(#${c})`})]})},Pg=t=>{const{x:e,y:n,side:i,width:r,height:o,color:s,colorBg:a}=t,l="left"===i?e+r+6+5:e-6-5,c=n+o/2,h=l-2,u=c-2,d="left"===i?80:-80,f=`dot-line-linear-gradient-${i}`;return U(X,{children:[V(q,{children:V(kd,{id:f,startColor:s,stopColor:a,direction:"left"===i?"left-right":"right-left"})}),U(qu,{children:[V(G,{x:l-6,y:c-6,width:12,height:12,fill:"none",strokeWidth:1,stroke:s}),V(G,{x:h,y:u,width:4,height:4,fill:s})]}),V(J,{x:"left"===i?l:l+d,y:c-.5,width:80,height:1,fill:`url(#${f})`})]})};Mg("compare-hierarchy-left-right",{component:t=>{var e,n;const{Title:i,Items:r,data:o,gap:s=20,groupGap:a=0,decoration:l="none",surround:c=!0,flipRoot:h=!1,flipLeaf:u=!1,options:d}=t,[f,p]=r,{title:g,desc:m,items:y=[]}=o,v=i?V(i,{title:g,desc:m}):null,x=V(f,{indexes:[0],data:o,datum:o.items[0],themeColors:{}}),b=V(p,{indexes:[0,0],data:o,datum:(null===(n=null===(e=y[0])||void 0===e?void 0:e.children)||void 0===n?void 0:n[0])||y[2]}),w=du(x),M=du(b),k=[],C=[],[O,j]=y,E=(null==O?void 0:O.children)||[],_=(null==j?void 0:j.children)||[],S=Math.max(w.height,E.length*(M.height+s)-s,_.length*(M.height+s)-s),$=Ag[l]||0,A=M.width+$,z=A+w.width+a,P=(S-w.height)/2;O&&k.push(V(f,{indexes:[0],x:A,y:P,data:o,datum:O,positionH:h?"normal":"flipped"})),j&&k.push(V(f,{indexes:[1],x:z,y:P,data:o,datum:j,positionH:h?"flipped":"normal"}));const L=(t,e,n)=>{if("none"===l)return;const[i,r]=e,o=hd(d,n),s={x:i,y:r,width:M.width,height:M.height,side:t,color:o||"#ccc",colorBg:d.themeConfig.colorBg||"#fff"};"split-line"===l?C.push(V(zg,Object.assign({},s))):"dot-line"===l&&C.push(V(Pg,Object.assign({},s)))};if(c){const t=(2*w.width+a+M.width)/2+$,e=A+w.width+a/2,n=P+w.height/2;E.forEach((i,r)=>{const a=(S-(E.length*(M.height+s)-s))/2+r*(M.height+s),l=a+M.height/2-n,c=Math.max(0,t*t-l*l),h=e-Math.sqrt(c)-M.width/2;k.push(V(p,{indexes:[0,r],datum:i,data:o,x:h,y:a,positionH:u?"flipped":"normal"})),L("left",[h,a],[0,r])}),_.forEach((i,r)=>{const a=(S-(_.length*(M.height+s)-s))/2+r*(M.height+s),l=a+M.height/2-n,c=Math.max(0,t*t-l*l),h=e+Math.sqrt(c)-M.width/2;k.push(V(p,{indexes:[1,r],datum:i,data:o,x:h,y:a,positionH:u?"normal":"flipped"})),L("right",[h,a],[1,r])})}else E.forEach((t,e)=>{const n=(S-(E.length*(M.height+s)-s))/2+e*(M.height+s),i=[0,e];k.push(V(p,{indexes:i,datum:t,data:o,x:0,y:n,positionH:u?"flipped":"normal"})),L("left",[0,n],i)}),_.forEach((t,e)=>{const n=(S-(_.length*(M.height+s)-s))/2+e*(M.height+s),i=[1,e],r=z+w.width+$;k.push(V(p,{indexes:i,datum:t,data:o,x:r,y:n,positionH:u?"normal":"flipped"})),L("right",[r,n],i)});return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,U(X,{children:[V(Vu,{children:k}),V(X,{width:0,height:0,children:C})]})]})},composites:["title","item"]});Mg("compare-hierarchy-row",{component:t=>{var e,n;const{Title:i,Items:r,data:o,gap:s=0,itemGap:a=20,columnWidth:l=280,itemPadding:c=5,showColumnBackground:h=!0,columnBackgroundAlpha:u=.08,options:d}=t,[f,p]=r,{title:g,desc:m,items:y=[]}=o,v=i?V(i,{title:g,desc:m}):null,x=cd(d),b=[],w=[],M=l-2*c,k=du(V(f,{indexes:[0],data:o,datum:y[0],width:l})),C=du(V(p,{indexes:[0,0],data:o,datum:(null===(n=null===(e=y[0])||void 0===e?void 0:e.children)||void 0===n?void 0:n[0])||{},width:M})),O=du(V(Au,{indexes:[0]})),j=Math.max(...y.map(t=>{var e;return(null===(e=t.children)||void 0===e?void 0:e.length)||0}),0),E=k.height+a+j*(C.height+a);if(y.forEach((t,e)=>{const{children:n=[]}=t,i=e*(l+s),r=i;if(h){const t=`${x[e%x.length]}${Math.round(255*u).toString(16).padStart(2,"0")}`;b.push(V(J,{x:i,y:0,width:l,height:E,fill:t,rx:0,ry:0,"data-element-type":"shape"}))}b.push(V(f,{indexes:[e],datum:t,data:o,x:r,y:0,width:l})),w.push(V(zu,{indexes:[e],x:r+k.width-O.width-10,y:10})),0===e&&w.push(V(Au,{indexes:[e],x:r+k.width/2-O.width/2,y:0-O.height-5}));const d=0+k.height+a;n.forEach((t,i)=>{const s=d+i*(C.height+a),l=r+c,h=[e,i];b.push(V(p,{indexes:h,datum:t,data:o,x:l,y:s,width:M})),w.push(V(zu,{indexes:h,x:l+C.width-O.width-10,y:s+(C.height-O.height)/2})),i<n.length-1&&w.push(V(Au,{indexes:[e,i+1],x:l+C.width/2-O.width/2,y:s+C.height-O.height/2}))});const g=r+c;if(n.length>0){w.push(V(Au,{indexes:[e,n.length],x:g+C.width/2-O.width/2,y:d+n.length*(C.height+a)-C.height/2-O.height/2}))}else w.push(V(Au,{indexes:[e,0],x:g+C.width/2-O.width/2,y:d-a/2-O.height/2}))}),y.length>0){w.push(V(Au,{indexes:[y.length],x:y.length*(l+s)-s/2-O.width/2,y:-O.height-5}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[v,U(X,{children:[V(Vu,{children:b}),V(Pu,{children:w})]})]})},composites:["title","item"]});const Lg={axisColor:"#D9D9D9",axisArrowSize:5,strokeWidth:1,dashArray:"4,2",defaultExtraSpacing:20};Mg("quadrant",{component:t=>{const{Title:e,Item:n,data:i,quadrantWidth:r,quadrantHeight:o,showAxis:s=!0,dashedAxis:a=!0}=t,{title:l,desc:c,items:h=[]}=i,u=e?V(e,{title:l,desc:c}):null,d=Array.from({length:4},(t,e)=>h[e]),f=d[0]?du(V(n,{indexes:[0],data:i,datum:d[0]})):{width:0,height:0},p=null!=r?r:f.width+Lg.defaultExtraSpacing,g=null!=o?o:f.height+Lg.defaultExtraSpacing,m=function(t,e,n){const i=t/2,r=e/2;return[{x:i-n.width/2,y:r-n.height/2},{x:t+i-n.width/2,y:r-n.height/2},{x:i-n.width/2,y:e+r-n.height/2},{x:t+i-n.width/2,y:e+r-n.height/2}]}(p,g,f),y=d.map((t,e)=>{if(!t)return null;const r=m[e];return V(n,{indexes:[e],datum:t,data:i,x:r.x,y:r.y,positionH:e%2?"flipped":"normal",positionV:e<2?"normal":"flipped"})}).filter(Boolean),v=function(t,e,n,i){if(!n)return[];const{axisColor:r,axisArrowSize:o,strokeWidth:s,dashArray:a}=Lg,l=t,c=e,h=2*t,u=2*e,d=i?a:void 0;return[V(K,{d:`M 0 ${c} L ${h} ${c}`,stroke:r,strokeWidth:s,strokeDasharray:d,fill:"none","data-element-type":"shape"}),U(qu,{transform:`translate(${h}, ${c})`,children:[V(K,{d:`M 0 0 L ${-o} ${-o/2}`,stroke:r,strokeWidth:s,fill:"none"}),V(K,{d:`M 0 0 L ${-o} ${o/2}`,stroke:r,strokeWidth:s,fill:"none"})]}),U(qu,{transform:`translate(0, ${c})`,children:[V(K,{d:`M 0 0 L ${o} ${-o/2}`,stroke:r,strokeWidth:s,fill:"none"}),V(K,{d:`M 0 0 L ${o} ${o/2}`,stroke:r,strokeWidth:s,fill:"none"})]}),V(K,{d:`M ${l} 0 L ${l} ${u}`,stroke:r,strokeWidth:s,strokeDasharray:d,fill:"none","data-element-type":"shape"}),U(qu,{transform:`translate(${l}, 0)`,children:[V(K,{d:`M 0 0 L ${-o/2} ${o}`,stroke:r,strokeWidth:s,fill:"none"}),V(K,{d:`M 0 0 L ${o/2} ${o}`,stroke:r,strokeWidth:s,fill:"none"})]}),U(qu,{transform:`translate(${l}, ${u})`,children:[V(K,{d:`M 0 0 L ${-o/2} ${-o}`,stroke:r,strokeWidth:s,fill:"none"}),V(K,{d:`M 0 0 L ${o/2} ${-o}`,stroke:r,strokeWidth:s,fill:"none"})]})]}(p,g,s,a);return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,U(X,{width:2*p,height:2*g,children:[v,V(Vu,{children:y})]})]})},composites:["title","item"]});const Ig=Object.assign,Tg={getId:t=>t.id||t.name,getPreH:t=>t.preH||0,getPreV:t=>t.preV||0,getHGap:t=>t.hgap||18,getVGap:t=>t.vgap||18,getChildren:t=>t.children,getHeight:t=>t.height||36,getWidth:t=>t.width||18*(t.label||" ").split("").length};class Rg{constructor(t,e){if(this.x=0,this.y=0,this.depth=0,this.children=[],this.hgap=0,this.vgap=0,t instanceof Rg||"x"in t&&"y"in t&&"children"in t){const e=t;return this.data=e.data,this.id=e.id,this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this.depth=e.depth,this.children=e.children,this.parent=e.parent,this.hgap=e.hgap,this.vgap=e.vgap,this.preH=e.preH,void(this.preV=e.preV)}this.data=t;const n=e.getHGap(t),i=e.getVGap(t);this.preH=e.getPreH(t),this.preV=e.getPreV(t),this.width=e.getWidth(t),this.height=e.getHeight(t),this.width+=this.preH,this.height+=this.preV,this.id=e.getId(t),this.addGap(n,i)}isRoot(){return 0===this.depth}isLeaf(){return 0===this.children.length}addGap(t,e){this.hgap+=t,this.vgap+=e,this.width+=2*t,this.height+=2*e}eachNode(t){let e,n=[this];for(;e=n.shift();)t(e),n=e.children.concat(n)}DFTraverse(t){this.eachNode(t)}BFTraverse(t){let e,n=[this];for(;e=n.shift();)t(e),n=n.concat(e.children)}getBoundingBox(){const t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(e=>{t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)}),t}translate(t=0,e=0){this.eachNode(n=>{n.x+=t,n.y+=e,n.x+=n.preH,n.y+=n.preV})}right2left(){const t=this.getBoundingBox();this.eachNode(e=>{e.x=e.x-2*(e.x-t.left)-e.width}),this.translate(t.width,0)}bottom2top(){const t=this.getBoundingBox();this.eachNode(e=>{e.y=e.y-2*(e.y-t.top)-e.height}),this.translate(0,t.height)}}function Bg(t,e={},n){e=Ig({},Tg,e);const i=new Rg(t,e),r=[i];let o;if(!n&&!t.collapsed)for(;o=r.shift();)if(!o.data.collapsed){const t=e.getChildren(o.data),n=t?t.length:0;if(o.children=new Array(n),t&&n)for(let i=0;i<n;i++){const n=new Rg(t[i],e);o.children[i]=n,r.push(n),n.parent=o,n.depth=o.depth+1}}return i}class Wg{constructor(t,e={}){this.options=e,this.rootNode=Bg(t,e)}execute(){throw new Error("please override this method")}}function Hg(t,e){const n=Bg(t.data,e,!0),i=Bg(t.data,e,!0),r=t.children.length,o=Math.round(r/2),s=e.getSide||function(t,e){return e<o?"right":"left"};for(let e=0;e<r;e++){const r=t.children[e];"right"===s(r,e)?i.children.push(r):n.children.push(r)}return n.eachNode(t=>{t.isRoot()||(t.side="left")}),i.eachNode(t=>{t.isRoot()||(t.side="right")}),{left:n,right:i}}const Ng=["LR","RL","TB","BT","H","V"],Fg=["LR","RL","H"],Dg=Ng[0];function Vg(t,e,n){const i=e.direction||Dg;if(e.isHorizontal=(t=>Fg.indexOf(t)>-1)(i),i&&-1===Ng.indexOf(i))throw new TypeError(`Invalid direction: ${i}`);if(i===Ng[0])n(t,e);else if(i===Ng[1])n(t,e),t.right2left();else if(i===Ng[2])n(t,e);else if(i===Ng[3])n(t,e),t.bottom2top();else if(i===Ng[4]||i===Ng[5]){const{left:i,right:r}=Hg(t,e);n(i,e),n(r,e),e.isHorizontal?i.right2left():i.bottom2top(),r.translate(i.x-r.x,i.y-r.y),t.x=i.x,t.y=r.y;const o=t.getBoundingBox();e.isHorizontal?o.top<0&&t.translate(0,-o.top):o.left<0&&t.translate(-o.left,0)}let r=e.fixedRoot;return void 0===r&&(r=!0),r&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),function(t,e){if(e.radial){const[n,i]=e.isHorizontal?["x","y"]:["y","x"],r={x:1/0,y:1/0},o={x:-1/0,y:-1/0};let s=0;t.DFTraverse(t=>{s++;const{x:e,y:n}=t;r.x=Math.min(r.x,e),r.y=Math.min(r.y,n),o.x=Math.max(o.x,e),o.y=Math.max(o.y,n)});const a=o[i]-r[i];if(0===a)return;const l=2*Math.PI/s;t.DFTraverse(e=>{const o=(e[i]-r[i])/a*(2*Math.PI-l)+l,s=e[n]-t[n];e.x=Math.cos(o)*s,e.y=Math.sin(o)*s})}}(t,e),t}function Ug(t,e){let n=0;return t.children.length?t.children.forEach(t=>{n+=Ug(t,e)}):n=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,n)+2*t._subTreeSep,t.totalHeight}function Yg(t){const e=t.children,n=e.length;if(n){e.forEach(t=>{Yg(t)});const i=e[0],r=e[n-1],o=r.y-i.y+r.height;let s=0;if(e.forEach(t=>{s+=t.totalHeight}),o>t.height)t.y=i.y+o/2-t.height/2;else if(1!==e.length||t.height>s){const n=t.y+(t.height-o)/2-i.y;e.forEach(t=>{t.translate(0,n)})}else t.y=(i.y+i.height/2+r.y+r.height/2)/2-t.height/2}}const qg={getSubTreeSep:()=>0};function Gg(t,e={}){return e=Ig({},qg,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse(t=>{t.x=t.parent.x+t.parent.width}),t.parent=void 0,Ug(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode(t=>{const e=t.children,n=e.length;if(n){const i=e[0];if(i.startY=t.startY+t._subTreeSep,1===n)i.y=t.y+t.height/2-i.height/2;else{i.y=i.startY+i.totalHeight/2-i.height/2;for(let t=1;t<n;t++){const n=e[t];n.startY=e[t-1].startY+e[t-1].totalHeight,n.y=n.startY+n.totalHeight/2-n.height/2}}}}),Yg(t),t}class Xg extends Wg{execute(){return Vg(this.rootNode,this.options,Gg)}}const Kg={};function Zg(t,e){const n=Ig({},Kg,e);return new Xg(t,n).execute()}const Qg=60,Jg=14,tm="center",em="curved",nm=2,im="node",rm="solid",om=(t,e=[],n=0)=>{var i,r;const o=[...e,n];return Object.assign(Object.assign({},t),{_indexes:o,children:null!==(r=null===(i=t.children)||void 0===i?void 0:i.map((t,e)=>om(t,o,e)))&&void 0!==r?r:[]})},sm=(t,e,n,i)=>{var r,o;e.push(t),null!==(r=(o=t.data)._flatIndex)&&void 0!==r||(o._flatIndex=e.length-1),i&&n.push({parent:i,child:t});const s=t.children;null==s||s.forEach(i=>sm(i,e,n,t))},am=(t,e,n,i=tm)=>{const r=(t=>"top"===t?0:"bottom"===t?1:"center"===t?.5:Math.max(0,Math.min(1,t)))(i),o=t.y+t.height*r,s=e.y+e.height*r;return"left"===n?{sx:t.x,sy:o,tx:e.x+e.width,ty:s}:{sx:t.x+t.width,sy:o,tx:e.x,ty:s}};Mg("hierarchy-mindmap",{component:t=>{var e,n;const{Title:i,Items:r,data:o,levelGap:s=Qg,nodeGap:a=Jg,edgeAlign:l=tm,colorMode:c=im,edgeColorMode:h=rm,edgeType:u=em,edgeWidth:d=nm,options:f}=t,{title:p,desc:g,items:m=[]}=o,y=i?V(i,{title:p,desc:g}):null,v=ld(f),x=du(V(Au,{indexes:[0]})),b=new Map;let w=0;if(!m.length||!(null==r?void 0:r.length))return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[y,V(X,{children:V(Au,{indexes:[0],x:0,y:0})})]});const M=om(m[0]),k=new WeakMap,C=new WeakMap,O=new WeakMap,j=(t,e)=>{var n;if("group"===c){const e=String(null!==(n=t.group)&&void 0!==n?n:"");let i=b.get(e);return null==i&&(i=w,b.set(e,i),w+=1),[i]}return md({depth:e,originalIndexes:t._indexes,flatIndex:t._flatIndex},c)},E=(t,e)=>{const n=O.get(t);if(n)return n;const i=j(t,e),r=hd(f,i),o=ud({colorPrimary:r},f);return O.set(t,o),C.set(t,r),o},_=t=>{const e=k.get(t);if(e)return e;const n=Math.max(t._indexes.length-1,0),i=du(V(vd(r,n),{indexes:t._indexes,data:o,datum:t,positionH:"center",positionV:"middle",themeColors:E(t,n)}));return k.set(t,i),i},S=Zg(M,{direction:"H",getSide:(t,e)=>{if(!t.parent)return"right";const n=(t.parent.children||[]).indexOf(t);return(n>=0?n:e)%2==0?"left":"right"},getWidth:t=>_(t).width,getHeight:t=>_(t).height,getHGap:()=>s,getVGap:()=>a}),$=[],A=[];sm(S,$,A);const z=$.length>0?Math.min(...$.map(t=>t.x)):0,P=$.length>0?Math.min(...$.map(t=>t.y)):0,L=30-z,I=30-P,T=[],R=[],B=[],W=[],H=new WeakMap;$.forEach(t=>{var e,n;const i=t.data,s=_(i),a=t.x+L+(null!==(e=t.hgap)&&void 0!==e?e:0),l=t.y+I+(null!==(n=t.vgap)&&void 0!==n?n:0),c=vd(r,t.depth),h=0===t.depth?"center":"left"===t.side?"flipped":"normal",u=E(i,t.depth);B.push(V(c,{indexes:i._indexes,data:o,datum:i,x:a,y:l,positionH:h,positionV:"middle",themeColors:u})),H.set(t,{x:a,y:l,width:s.width,height:s.height,centerX:a+s.width/2,centerY:l+s.height/2})}),A.forEach(t=>{var e,n,i,r;const{parent:o,child:s}=t,a=H.get(s),c=H.get(o);if(!a||!c)return;const p=s.data,{sx:g,sy:m,tx:y,ty:b}=am(c,a,s.side,l),w=null!==(e=C.get(p))&&void 0!==e?e:hd(f,j(p,s.depth)),M=null!==(n=C.get(o.data))&&void 0!==n?n:hd(f,j(o.data,o.depth)),k="straight"===u?((t,e,n,i)=>`M ${t} ${e} L ${n} ${i}`)(g,m,y,b):((t,e,n,i)=>{const r=Math.abs(n-t)/2;return`M ${t} ${e} C ${n>t?t+r:t-r} ${e} ${n>t?n-r:n+r} ${i} ${n} ${i}`})(g,m,y,b),O=`edge-gradient-${p._indexes.join("-")}`;R.push(V(K,{d:k,stroke:"gradient"===h?`url(#${O})`:null!=w?w:v,strokeWidth:d,fill:"none"})),"gradient"===h&&T.push(U("linearGradient",{id:O,gradientUnits:"userSpaceOnUse",x1:g,y1:m,x2:y,y2:b,children:[V("stop",{offset:"0%",stopColor:null!=M?M:v}),V("stop",{offset:"100%",stopColor:null!=w?w:v})]}));const E=null!==(r=null===(i=p.children)||void 0===i?void 0:i.length)&&void 0!==r?r:0,_=[...p._indexes,E],S=a.x+(a.width-x.width)/2,$=a.y+a.height+8,A=$+x.height+6;s.depth>0&&W.push(V(zu,{indexes:p._indexes,x:S,y:$})),W.push(V(Au,{indexes:_,x:S,y:A}))});const N=H.get(S);if(N){const t=S.data,i=null!==(n=null===(e=t.children)||void 0===e?void 0:e.length)&&void 0!==n?n:0,r=[...t._indexes,i];W.push(V(Au,{indexes:r,x:N.x+(N.width-x.width)/2,y:N.y+N.height+8+x.height+6}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[y,U(X,{children:[T.length>0?V(q,{children:T}):null,V(X,{children:R}),V(Vu,{children:B}),V(Pu,{children:W})]})]})},composites:["title","item"]});const lm=(t,e)=>{if(!t||"#"!==t[0]||7!==t.length)return t;const n=Math.max(0,Math.min(1,e));return`${t}${Math.round(255*n).toString(16).padStart(2,"0")}`},cm=t=>null==t?"":String(t),hm=(t,e,n)=>du(V(su,{fontSize:e,fontWeight:n,children:t})),um=(t,e,n,i)=>{const r=((t,e,n,i=" ")=>{const r=hm(i,e,n);let o=r.width,s=r.height;return t.forEach(t=>{const i=hm(t||" ",e,n);o=Math.max(o,i.width),s=Math.max(s,i.height)}),{width:o,height:s}})(t,e,"normal","Item");return{pillWidth:r.width+2*n,pillHeight:r.height+2*i}};Mg("hierarchy-structure",{component:t=>{const{Title:e,data:n,options:i,rowGap:r=20,labelGap:o=20,groupGap:s=20,pillGap:a=14,pillColumns:l=2,ungroupedColumns:c=6,layerLabelPosition:h="left",rowPadding:u=20,groupPadding:d=16,labelPaddingX:f=28,labelPaddingY:p=16,pillPaddingX:g=18,pillPaddingY:m=10,labelFontSize:y=20,groupTitleFontSize:v=18,pillFontSize:x=16,groupTitleGap:b=10,rowRadius:w=12,groupRadius:M=10,pillRadius:k=12}=t,{title:C,desc:O,items:j=[]}=n,E=e?V(e,{title:C,desc:O}):null;if(0===j.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[E,V(X,{children:V(Vu,{})})]});const _=ud(i.themeConfig),S=[],$=[],A="right"===h,z=j.map(t=>{const e=cm(t.label),n=hm(e||" ",y,"bold"),i=n.width+2*f,r=n.height+2*p,o=t.children||[];if(o.some(t=>{var e;return((null===(e=t.children)||void 0===e?void 0:e.length)||0)>0})){const t=[];o.forEach(e=>{(e.children||[]).forEach(e=>{t.push(cm(e.label))})});const{pillWidth:n,pillHeight:c}=um(t,x,g,m),h=o.map(t=>{const e=cm(t.label),i=hm(e||" ",v,"bold"),r=t.children||[],o=r.length>0?Math.min(l,r.length):0,s=o>0?Math.ceil(r.length/o):0,h=o>0?o*n+(o-1)*a:0,u=s>0?s*c+(s-1)*a:0;return{label:e,children:r,width:Math.max(i.width,h)+2*d,height:2*d+i.height+(s>0?b+u:0),titleHeight:i.height,columns:o,contentWidth:h,pillWidth:n,pillHeight:c}}),u=h.reduce((t,e)=>t+e.width,0)+(h.length>1?(h.length-1)*s:0),f=h.reduce((t,e)=>Math.max(t,e.height),0);return{label:e,labelWidth:i,labelHeight:r,hasGroups:!0,children:o,groupMetrics:h,contentInnerWidth:u,contentInnerHeight:f}}const h=o.map(t=>cm(t.label)),{pillWidth:u,pillHeight:w}=um(h,x,g,m),M=o.length>0?Math.min(c,o.length):0,k=M>0?Math.ceil(o.length/M):0;return{label:e,labelWidth:i,labelHeight:r,hasGroups:!1,children:o,pillWidth:u,pillHeight:w,columns:M,contentInnerWidth:M>0?M*u+(M-1)*a:0,contentInnerHeight:k>0?k*w+(k-1)*a:0}}),P=z.reduce((t,e)=>Math.max(t,e.labelWidth),0),L=z.reduce((t,e)=>Math.max(t,e.contentInnerWidth),0),I=(t,e,n,i,r,o,s,a,l,c,h,u,d,f)=>{S.push(V(J,{x:n,y:s,width:r,height:a,fill:d,stroke:f,rx:w,ry:w,"data-element-type":"shape"})),S.push(V(J,{x:l,y:c,width:h,height:u,fill:d,stroke:f,rx:w,ry:w,"data-element-type":"shape"})),$.push(V(su,{x:n,y:i,width:r,height:o,fontSize:y,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:_.colorText,"data-element-type":"item-label","data-indexes":e,children:t}))};let T=0,R=0;z.forEach((t,e)=>{const n=(t=>{const e=hd(i,[t])||_.colorPrimary||"#6c7dff";return{rowFill:lm(e,.12),rowStroke:lm(e,.55),groupFill:lm(e,.08),groupStroke:lm(e,.4),pillFill:lm(e,.06),pillStroke:lm(e,.35)}})(e),{rowWidth:l,rowHeight:c}=t.hasGroups?((t,e,n,i)=>{const r=t.groupMetrics||[],l=t.label,c=[e],h=P,f=t.labelHeight,p=t.contentInnerHeight,g=Math.max(0,L-t.contentInnerWidth),m=r.length>0?g/r.length:0,y=t.contentInnerWidth+(r.length>0?g:0)+2*u,w=p+2*u,C=Math.max(f,w),O=A?0:h+o,j=A?O+y+o:0,E=n+(C-w)/2;I(l,c,j,n+(C-f)/2,h,f,n,C,O,E,y,w,i.rowFill,i.rowStroke);let z=O+u;return r.forEach((t,e)=>{const n=[...c,e],r=t.width+m,o=E+u+(p-t.height)/2;S.push(V(J,{x:z,y:o,width:r,height:t.height,fill:i.groupFill,stroke:i.groupStroke,rx:M,ry:M,"data-element-type":"shape"}));const l=t.children.length>0;if($.push(V(su,{x:z+d,y:l?o+d:o,width:r-2*d,height:l?t.titleHeight:t.height,fontSize:v,fontWeight:"bold",alignHorizontal:"center",alignVertical:l?"top":"middle",fill:_.colorText,"data-element-type":"item-label","data-indexes":n,children:t.label})),t.columns>0){const e=r-2*d,s=e-t.contentWidth,l=t.pillWidth+(s>0?s/t.columns:0),c=z+d+Math.max(0,(e-(t.columns*l+(t.columns-1)*a))/2),h=o+d+t.titleHeight+b;t.children.forEach((e,r)=>{const o=[...n,r],s=Math.floor(r/t.columns),u=c+r%t.columns*(l+a),d=h+s*(t.pillHeight+a),f=Math.min(k,t.pillHeight/2);S.push(V(J,{x:u,y:d,width:l,height:t.pillHeight,fill:i.pillFill,stroke:i.pillStroke,rx:f,ry:f,"data-element-type":"shape"})),$.push(V(su,{x:u,y:d,width:l,height:t.pillHeight,fontSize:x,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:_.colorText,"data-element-type":"item-label","data-indexes":o,children:cm(e.label)}))})}z+=r+s}),{rowWidth:A?j+h:O+y,rowHeight:C}})(t,e,T,n):((t,e,n,i)=>{const r=t.label,s=[e],l=P,c=t.labelHeight,h=t.contentInnerHeight,d=Math.max(0,L-t.contentInnerWidth),f=t.columns||0,p=t.pillHeight||0,g=(t.pillWidth||0)+(f>0?d/f:0),m=(f>0?f*g+(f-1)*a:0)+2*u,y=h+2*u,v=Math.max(c,y),b=A?0:l+o,w=A?b+m+o:0,M=n+(v-y)/2;if(I(r,s,w,n+(v-c)/2,l,c,n,v,b,M,m,y,i.rowFill,i.rowStroke),f>0){const e=b+u,n=M+u;(t.children||[]).forEach((t,r)=>{const o=[...s,r],l=Math.floor(r/f),c=e+r%f*(g+a),h=n+l*(p+a),u=Math.min(k,p/2);S.push(V(J,{x:c,y:h,width:g,height:p,fill:i.pillFill,stroke:i.pillStroke,rx:u,ry:u,"data-element-type":"shape"})),$.push(V(su,{x:c,y:h,width:g,height:p,fontSize:x,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:_.colorText,"data-element-type":"item-label","data-indexes":o,children:cm(t.label)}))})}return{rowWidth:A?w+l:b+m,rowHeight:v}})(t,e,T,n);R=Math.max(R,l),T+=c+r});const B=Math.max(T-r,0);return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[E,U(X,{width:R,height:B,children:[V(X,{children:S}),V(Vu,{children:$})]})]})},composites:["title"]});const dm=(t,e)=>{const n=Math.max(0,e/2-1);return Math.min(t,n)};Mg("hierarchy-tree",{component:t=>{const{Title:e,Items:n,data:i,levelGap:r=80,nodeGap:o=60,edgeType:s="straight",edgeColorMode:a="gradient",edgeWidth:l=3,edgeStyle:c="solid",edgeDashPattern:h="5,5",edgeCornerRadius:u=0,edgeOffset:d=0,edgeOrigin:f="center",edgeOriginPadding:p=20,edgeMarker:g="none",markerSize:m=12,colorMode:y="branch",orientation:v="top-bottom",options:x}=t,b="left-right"===v||"right-left"===v,w="bottom-top"===v||"right-left"===v?-1:1,{title:M,desc:k}=i,C=ld(x),O=new Map;let j=0;const E=t=>{const{x:e,y:n}=t;return b?{x:n*w,y:e}:{x:e,y:n*w}},_=(t,e,n)=>{const{x:i,y:r}=E(t),o=i+n.x,s=r+n.y;return{centerX:o,centerY:s+e.height/2,left:o-e.width/2,right:o+e.width/2,top:s,bottom:s+e.height}},S=(t,e)=>{var n;if("group"===y){const e=String(null!==(n=null==t?void 0:t.group)&&void 0!==n?n:"");let i=O.get(e);return null==i&&(i=j,O.set(e,i),j+=1),[i]}return md({depth:e,originalIndexes:t._originalIndex,flatIndex:t._flatIndex},y)},$=(t,e,r,o,y,v)=>{const{depth:M,data:k,parent:O}=t,j=k._originalIndex,E=vd(n,M),$=e.get(M),A=_(t,$,o),z=A.left,P=A.top,L={items:[],btns:[],deco:[]},I=S(k,M),T=ud({colorPrimary:hd(x,I)},x);if(L.items.push(V(E,{indexes:j,datum:k,data:i,x:z,y:P,positionH:"center",themeColors:T})),L.btns.push(V(zu,{indexes:j,x:z+($.width-r.width)/2,y:P+$.height+5}),V(Au,{indexes:[...j,0],x:z+($.width-r.width)/2,y:P+$.height+r.height+10})),O){const n=e.get(O.depth),i=_(O,n,o),r=v.filter(t=>t.parent===O),E=r.findIndex(e=>e===t),$=r.length;let z,P;if("distributed"===f&&$>1)if(b){const t=dm(p,n.height),e=i.top+t,r=(i.bottom-t-e)/$;P=e+r*E+r/2,z=(w>0?i.right:i.left)+d*w}else{const t=dm(p,n.width),e=i.left+t,r=(i.right-t-e)/$;z=e+r*E+r/2,P=(w>0?i.bottom:i.top)+d*w}else z=b?(w>0?i.right:i.left)+d*w:i.centerX,P=b?i.centerY:(w>0?i.bottom:i.top)+d*w;const T=b?(w>0?A.left:A.right)-d*w:A.centerX,R=b?A.centerY:(w>0?A.top:A.bottom)-d*w;let B,W=T,H=R;if("arrow"===g&&(b?W-=m*w:H-=m*w),"curved"===s)if(b){const t=z+(W-z)/2;B=`M ${z} ${P} C ${t} ${P}, ${t} ${H}, ${W} ${H}`}else{const t=P+(H-P)/2;B=`M ${z} ${P} C ${z} ${t}, ${W} ${t}, ${W} ${H}`}else if(u>0)B=((t,e,n,i,r,o="vertical")=>{const s="vertical"===o,a=s?i-e:n-t,l=s?n-t:i-e,c=0===a?1:Math.sign(a),h=0===l?1:Math.sign(l),u=s?e+a/2:t+a/2,d=Math.min(r,Math.abs(a)/2,Math.abs(l)/2);return 0===d?s?`M ${t} ${e} L ${t} ${u} L ${n} ${u} L ${n} ${i}`:`M ${t} ${e} L ${u} ${e} L ${u} ${i} L ${n} ${i}`:s?`M ${t} ${e}\n L ${t} ${u-c*d}\n Q ${t} ${u} ${t+h*d} ${u}\n L ${n-h*d} ${u}\n Q ${n} ${u} ${n} ${u+c*d}\n L ${n} ${i}`:`M ${t} ${e}\n L ${u-c*d} ${e}\n Q ${u} ${e} ${u} ${e+h*d}\n L ${u} ${i-h*d}\n Q ${u} ${i} ${u+c*d} ${i}\n L ${n} ${i}`})(z,P,W,H,u,b?"horizontal":"vertical");else if(b){const t=z+(W-z)/2;B=`M ${z} ${P} L ${t} ${P} L ${t} ${H} L ${W} ${H}`}else{const t=P+(H-P)/2;B=`M ${z} ${P} L ${z} ${t} L ${W} ${t} L ${W} ${H}`}let N=C;if("gradient"===a){const t=S(O.data,O.depth),e=S(k,M),n=hd(x,t),i=hd(x,e),r=`gradient-${O.data._originalIndex.join("-")}-${j.join("-")}`;y.push(U("linearGradient",{id:r,x1:z,y1:P,x2:W,y2:H,gradientUnits:"userSpaceOnUse",children:[V("stop",{offset:"0%",stopColor:n}),V("stop",{offset:"100%",stopColor:i})]})),N=`url(#${r})`}if(L.deco.push(V(K,{d:B,stroke:N,strokeWidth:l,strokeDasharray:"dashed"===c?h:"",fill:"none"})),"arrow"===g){const t="gradient"===a?hd(x,I):ld(x);L.deco.push(V(Q,{points:b?[{x:T,y:R},{x:T-m*w,y:R-m/2},{x:T-m*w,y:R+m/2}]:[{x:T,y:R},{x:T-m/2,y:R-m*w},{x:T+m/2,y:R-m*w}],fill:t,width:m,height:m}))}if("dot"===g){const t=S(O.data,O.depth),e="gradient"===a?hd(x,t):ld(x);L.deco.push(V(G,{x:(b?w>0?i.right+d:i.left-d:z)-m,y:(b?P:w>0?i.bottom+d:i.top-d)-m,width:2*m,height:2*m,fill:e}));const n="gradient"===a?hd(x,I):ld(x);L.deco.push(V(G,{x:T-m,y:R-m,width:2*m,height:2*m,fill:n}))}}return L},A=(t=>{var e;const n=[...t];return(null===(e=n[0])||void 0===e?void 0:e.children)||(n[0]=Object.assign(Object.assign({},n[0]),{children:n.slice(1)}),n.splice(1)),n})(i.items),z=e?V(e,{title:M,desc:k}):null,P=du(V(Au,{indexes:[0]}));if(!A.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[z,V(X,{children:V(Pu,{children:V(Au,{indexes:[0],x:-P.width/2,y:-P.height/2})})})]});const L=(t=>{var e;if(!t.length)return null;const n=t[0],i=(t,e=[],n=0)=>{var r,o;const s=[...e,n];return Object.assign(Object.assign({},t),{_originalIndex:s,_depth:s.length-1,children:null!==(o=null===(r=t.children)||void 0===r?void 0:r.map((t,e)=>i(t,s,e)))&&void 0!==o?o:[]})};return(null===(e=n.children)||void 0===e?void 0:e.length)?i(n):Object.assign(Object.assign({},n),{_originalIndex:[0],_depth:0,children:t.slice(1).map((t,e)=>Object.assign(Object.assign({},t),{_originalIndex:[e+1],_depth:1}))})})(A),I=Dp.Ay(L),{levelBounds:T,maxWidth:R,maxHeight:B}=(t=>{var e,r;let o=0,s=0;const a=new Map,l=new Map;t.each(t=>{l.has(t.depth)||l.set(t.depth,t.data)});for(let c=0;c<t.height+1;c++){const t=vd(n,c),h=null!==(e=l.get(c))&&void 0!==e?e:{},u=du(V(t,{indexes:null!==(r=h._originalIndex)&&void 0!==r?r:Array(c+1).fill(0),data:i,datum:h,positionH:"center"}));a.set(c,u),o=Math.max(o,u.width),s=Math.max(s,u.height)}return{levelBounds:a,maxWidth:o,maxHeight:s}})(I),W=Vp.A().nodeSize(b?[B+o,R+r]:[R+o,B+r]).separation(()=>1)(I).descendants(),H=W.map(t=>E(t)),N=Math.min(...H.map(t=>t.x)),F=Math.min(...H.map(t=>t.y)),D={x:Math.max(0,R/2-N),y:Math.max(0,-F+P.height+10)},Y=[],Z=[],J=[],tt=[];return W.forEach((t,e)=>{t.data._flatIndex=e;const{x:n,y:i}=E(t);t.__layout={x:n,y:i}}),W.forEach(t=>{const{items:e,btns:n,deco:i}=$(t,T,P,D,tt,W);Y.push(...e),Z.push(...n),J.push(...i)}),Z.push(...((t,e,n)=>{const i=new Map;t.forEach(t=>{var e;const n=t.parent?t.parent.data._originalIndex.join("-"):"root";(null!==(e=i.get(n))&&void 0!==e?e:i.set(n,[]).get(n)).push(t)});const r=[];return i.forEach(t=>{if(t.length<=1)return;const i=t.slice().sort((t,e)=>b?E(t).y-E(e).y:E(t).x-E(e).x);if(0!==i.length)for(let t=0;t<i.length-1;t++){const o=E(i[t]),s=E(i[t+1]),a=i[t].data._originalIndex.slice(0,-1),l=i[t].data._originalIndex.at(-1)+1;if(b){const t=o.x+n.x+(w>0?-e.width-5:e.width+5),i=(o.y+s.y)/2+n.y-e.height/2;r.push(V(Au,{indexes:[...a,l],x:t,y:i}))}else{const t=o.y+n.y-e.height-5,i=(o.x+s.x)/2+n.x-e.width/2;r.push(V(Au,{indexes:[...a,l],x:i,y:t}))}}}),r})(W,P,D)),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[z,U(X,{children:[tt.length>0&&V(q,{children:tt}),V(qu,{children:J}),V(Vu,{children:Y}),V(Pu,{children:Z})]})]})},composites:["title","item"]});Mg("list-column",{component:t=>{const{Title:e,Item:n,data:i,gap:r=20,width:o,zigzag:s}=t,{title:a,desc:l,items:c=[]}=i,h=du(V(Au,{indexes:[0]})),u=du(V(n,{indexes:[0],data:i,datum:c[0]})),d=o||u.width,f=e?V(e,{title:a,desc:l}):null,p=[],g=[],m=(d-h.width)/2;if(c.forEach((t,e)=>{const o=(u.height+r)*e,a=[e];g.push(V(n,{indexes:a,datum:t,data:i,y:o,width:d,positionV:"middle",positionH:s?e%2==0?"normal":"flipped":"normal"})),p.push(V(zu,{indexes:a,x:-h.width-10,y:o+(u.height-h.height)/2}));p.push(V(Au,{indexes:a,x:m,y:0===e?-h.height:o-r/2-h.height/2}))}),c.length>0){p.push(V(Au,{indexes:[c.length],x:m,y:(u.height+r)*(c.length-1)+u.height}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,U(X,{children:[V(Vu,{children:g}),V(Pu,{children:p})]})]})},composites:["title","item"]});Mg("list-grid",{component:t=>{const{Title:e,Item:n,data:i,columns:r=3,gap:o=24,zigzag:s}=t,{title:a,desc:l,items:c=[]}=i,h=e?V(e,{title:a,desc:l}):null,u=du(V(Au,{indexes:[0]})),d=du(V(n,{indexes:[0],data:i,datum:c[0],positionH:"center"})),f=[],p=[],g=d.height+o,m=d.width+o,y=new Set;return c.forEach((t,e)=>{const a=Math.floor(e/r),l=e%r,h=l*m,v=a*g,x=[e];p.push(V(n,{indexes:x,datum:t,data:i,x:h,y:v,positionH:"center",positionV:s&&e%2==0?"normal":"flipped"})),f.push(V(zu,{indexes:x,x:h+(d.width-u.width)/2,y:v+d.height})),l<r-1&&f.push(V(Au,{indexes:[e+1],x:h+d.width+(o-u.width)/2,y:v+(d.height-u.height)/2})),0!==l||y.has(a)||(f.push(V(Au,{indexes:[e],x:h-o/2-u.width/2,y:v+(d.height-u.height)/2})),y.add(a));(l===r-1||e===c.length-1)&&f.push(V(Au,{indexes:[e+1],x:h+d.width+o/2-u.width/2,y:v+(d.height-u.height)/2}))}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,U(X,{children:[V(Vu,{children:p}),V(Pu,{children:f})]})]})},composites:["title","item"]});Mg("list-pyramid",{component:t=>{const{Title:e,Item:n,data:i,gap:r=20,levelGap:o=20}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null,h=du(V(Au,{indexes:[0]})),u=du(V(n,{indexes:[0],data:i,datum:l[0],positionH:"center"})),d=[],f=[],p=Math.ceil(Math.sqrt(l.length)),g=[];let m=l.length;for(let t=0;t<p;t++){const e=Math.min(t+1,m);if(g.push(e),m-=e,m<=0)break}let y=0;const v=Math.max(...g),x=(v*u.width+(v-1)*r)/2;return g.forEach((t,e)=>{const s=e*(u.height+o),a=x-(t*u.width+(t-1)*r)/2;for(let e=0;e<t&&y<l.length;e++){const o=a+e*(u.width+r),c=[y];f.push(V(n,{indexes:c,datum:l[y],data:i,x:o,y:s,positionH:"center"})),d.push(V(zu,{indexes:c,x:o+(u.width-h.width)/2,y:s+u.height})),e<t-1&&d.push(V(Au,{indexes:[y+1],x:o+u.width+(r-h.width)/2,y:s+(u.height-h.height)/2})),0===e&&d.push(V(Au,{indexes:[y],x:o-r/2-h.width/2,y:s+(u.height-h.height)/2})),e===t-1&&d.push(V(Au,{indexes:[y+1],x:o+u.width+r/2-h.width/2,y:s+(u.height-h.height)/2})),y++}}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,U(X,{children:[V(Vu,{children:f}),V(Pu,{children:d})]})]})},composites:["title","item"]});Mg("list-row",{component:t=>{const{Title:e,Item:n,data:i,gap:r=20,zigzag:o}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null,h=du(V(Au,{indexes:[0]})),u=du(V(n,{indexes:[0],data:i,datum:l[0],positionH:"center"})),d=[],f=[],p=(u.height-h.height)/2,g=u.height;if(l.forEach((t,e)=>{const s=(u.width+r)*e,a=[e];f.push(V(n,{indexes:a,datum:t,data:i,x:s,positionH:"center",positionV:o&&e%2==0?"normal":"flipped"})),d.push(V(zu,{indexes:a,x:s+(u.width-h.width)/2,y:g}));d.push(V(Au,{indexes:a,x:0===e?-(r+h.width)/2:s-(r+h.width)/2,y:p}))}),l.length>0){d.push(V(Au,{indexes:[l.length],x:(u.width+r)*(l.length-1)+u.width+(r-h.width)/2,y:p}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,U(X,{children:[V(Vu,{children:f}),V(Pu,{children:d})]})]})},composites:["title","item"]});Mg("list-sector",{component:t=>{const{Item:e,data:n,outerRadius:i=250,innerRadius:r=120,startAngle:o=-90,endAngle:s=270,gapAngle:a=1,options:l}=t,{title:c,items:h=[]}=n,u=ud(l.themeConfig),d=du(V(Au,{indexes:[0]})),f=[],p=[],g=[],m=i+100,y=i+100,v=s-o,x=Math.abs(v-360)<.01,b=h.length>0?(v-(h.length>0?a*(x?h.length:h.length-1):0))/h.length:0;if(h.forEach((t,s)=>{var c;const u=[s],v=o+(b+a)*s,w=v+b,M=a*Math.PI*i/180/r*(180/Math.PI),k=(v+a/2)*Math.PI/180,C=(w-a/2)*Math.PI/180,O=(v+M/2)*Math.PI/180,j=(w-M/2)*Math.PI/180,E=m+i*Math.cos(k),_=y+i*Math.sin(k),S=m+i*Math.cos(C),$=y+i*Math.sin(C),A=m+r*Math.cos(O),z=y+r*Math.sin(O),P=m+r*Math.cos(j),L=y+r*Math.sin(j),I=b>180?1:0,T=`\n M ${E} ${_}\n A ${i} ${i} 0 ${I} 1 ${S} ${$}\n L ${P} ${L}\n A ${r} ${r} 0 ${I} 0 ${A} ${z}\n Z\n `.trim(),R=hd(l,u);g.push(V(K,{id:"shape-sector",d:T,fill:R,width:2*i+200,height:2*i+200,"data-element-type":"shape"}));const B=(v+b/2)*Math.PI/180,W=(i+r)/2,H=i-r,N=W*(b*Math.PI/180),F=Math.min(.8*N,.9*H),D=Math.min(.9*H,.8*N),U=du(V(e,{indexes:[0],data:n,datum:h[0],positionH:"center",width:F,height:D})),Y=m+W*Math.cos(B)-U.width/2,q=y+W*Math.sin(B)-U.height/2;p.push(V(e,{indexes:u,datum:t,data:n,x:Y,y:q,positionH:"center",width:F,height:D,themeColors:Object.assign({},ud({colorBg:hd(l,u),colorPrimary:(null===(c=l.themeConfig)||void 0===c?void 0:c.colorBg)||"white"}))}));const G=i+10,X=m+G*Math.cos(B)-d.width/2,Z=y+G*Math.sin(B)-d.height/2;if(f.push(V(zu,{indexes:u,x:X,y:Z})),x||s<h.length-1){const t=(w+a/2)*Math.PI/180,e=W,n=m+e*Math.cos(t)-d.width/2,i=y+e*Math.sin(t)-d.height/2;f.push(V(Au,{indexes:[s+1],x:n,y:i}))}}),h.length>0){const t=(o-a/2)*Math.PI/180,e=(i+r)/2,n=m+e*Math.cos(t)-d.width/2,s=y+e*Math.sin(t)-d.height/2;f.push(V(Au,{indexes:[0],x:n,y:s}))}const w=.9*r;let M=m,k=y,C=1.4*w,O=1.4*w;if(!x){const t=(o+s)/2*Math.PI/180,e=.5*w;M=m+e*Math.cos(t),k=y+e*Math.sin(t);const n=v*Math.PI*e/180;C=Math.min(.8*n,1.4*w),O=Math.min(1.5*e,1.4*w)}let j="";if(x)j="";else{const t=o*Math.PI/180,e=s*Math.PI/180,n=m+w*Math.cos(t),i=y+w*Math.sin(t),r=m+w*Math.cos(e),a=y+w*Math.sin(e);j=`\n M ${m} ${y}\n L ${n} ${i}\n A ${w} ${w} 0 ${v>180?1:0} 1 ${r} ${a}\n Z\n `.trim()}return U(X,{id:"infographic-container",children:[V(X,{children:g}),x?V(G,{id:"shape-center-circle",x:m-w,y:y-w,width:2*w,height:2*w,fill:u.colorPrimaryBg,fillOpacity:.5,"data-element-type":"shape"}):V(K,{id:"shape-center-sector",d:j,fill:u.colorPrimaryBg,fillOpacity:.5,width:2*i+200,height:2*i+200,"data-element-type":"shape"}),V(su,{x:M-C/2,y:k-O/2,width:C,height:O,alignHorizontal:"center",alignVertical:"middle",fontSize:24,fontWeight:"bold",fill:u.colorText,"data-element-type":"title",children:c}),V(Vu,{children:p}),V(Pu,{children:f})]})},composites:["title","item"]});Mg("list-waterfall",{component:t=>{const{Title:e,Item:n,data:i,columns:r=4,gap:o=20,stepOffset:s=40}=t,{title:a,desc:l,items:c=[]}=i,h=e?V(e,{title:a,desc:l}):null,u=du(V(Au,{indexes:[0]})),d=du(V(n,{indexes:[0],data:i,datum:c[0],positionH:"center"})),f=[],p=[],g=d.width+o;return c.forEach((t,e)=>{const a=e%r,l=Math.floor(e/r),c=a*g,h=l*(d.height+o)+a*s,m=[e];p.push(V(n,{indexes:m,datum:t,data:i,x:c,y:h,positionH:"center"})),f.push(V(zu,{indexes:m,x:c+(d.width-u.width)/2,y:h+d.height+5}))}),c.forEach((t,e)=>{const n=e%r,i=Math.floor(e/r),a=n*g,l=i*(d.height+o)+n*s;if(0===e&&f.push(V(Au,{indexes:[0],x:a-o/2-u.width/2,y:l+(d.height-u.height)/2})),n<r-1&&e<c.length-1){i===Math.floor((e+1)/r)&&f.push(V(Au,{indexes:[e+1],x:a+d.width+(o-u.width)/2,y:l+(d.height-u.height)/2}))}n!==r-1&&e!==c.length-1||f.push(V(Au,{indexes:[e+1],x:a+d.width+(o-u.width)/2,y:l+(d.height-u.height)/2}))}),0===c.length&&f.push(V(Au,{indexes:[0],x:(r-1)*g/2+(d.width-u.width)/2,y:0})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,U(X,{children:[V(Vu,{children:p}),V(Pu,{children:f})]})]})},composites:["title","item"]});const fm=(t,e,n)=>{const i=e[t];return i?i.map(t=>({x:700*t.x,y:t.y*n,anchor:t.anchor})):null},pm=(t,e)=>{const n=e.x-t.x,i=e.y-t.y,r=Math.hypot(n,i)||1;return{x:n/r,y:i/r}},gm=t=>{const{presetRatios:e,arrowHeight:n,Arrow:i}=t;return t=>{var r;const{Title:o,Item:s,data:a,options:l,itemGap:c=24}=t,{title:h,desc:u,items:d=[]}=a,f=Math.min(d.length,6),p=d.slice(0,f),g=o?V(o,{title:h,desc:u}):null,m=ld(l),y=ud({colorPrimary:m},l).colorTextSecondary||"#737373",v=du(V(Au,{indexes:[0]}));if(0===d.length){const t=null===(r=fm(1,e,n))||void 0===r?void 0:r[0];if(!t)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,V(X,{children:V(i,{colorPrimary:m,colorShadow:y})})]});const o=t.x-v.width/2,s=t.y-v.height/2;return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,U(X,{children:[V(i,{colorPrimary:m,colorShadow:y}),V(Vu,{}),V(Pu,{children:V(Au,{indexes:[0],x:o,y:s})})]})]})}const x=du(V(s,{indexes:[0],data:a,datum:d[0],positionH:"center"})),b=[],w=[],M=fm(f,e,n);if(!M)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,U(X,{children:[V(i,{colorPrimary:m,colorShadow:y}),V(Vu,{})]})]});const k=M,C=k.length>1?pm(k[0],k[k.length-1]):{x:1,y:0},O=k.length>1?pm(k[0],k[1]):C,j=k.length>1?pm(k[k.length-2],k[k.length-1]):C,E=.45*Math.max(x.width,x.height)+c;if(k.forEach((t,e)=>{const i=(t=>{const{x:e,y:n,centerY:i}=((t,e)=>{let n=t.x-e.width/2,i=t.y-e.height/2,r=t.y;switch(t.anchor||"center"){case"top":n=t.x-e.width/2,i=t.y,r=t.y+e.height/2;break;case"bottom":n=t.x-e.width/2,i=t.y-e.height,r=t.y-e.height/2;break;case"top-left":n=t.x,i=t.y,r=t.y+e.height/2;break;case"top-right":n=t.x-e.width,i=t.y,r=t.y+e.height/2;break;case"bottom-left":n=t.x,i=t.y-e.height,r=t.y-e.height/2;break;case"bottom-right":n=t.x-e.width,i=t.y-e.height,r=t.y-e.height/2}return{x:n,y:i,centerY:r}})(t,x);return{x:e,y:n,centerY:i}})(t),r=i.centerY<n/2,o=[e],l=p[e];if(!l)return;w.push(V(s,{indexes:o,datum:l,data:a,x:i.x,y:i.y,positionH:"center"}));b.push(V(zu,{indexes:o,x:i.x+x.width-v.width/2,y:r?i.y-v.height/2:i.y+x.height-v.height/2}))}),k.length>0){const t=k[0];b.push(V(Au,{indexes:[0],x:t.x-O.x*E-v.width/2,y:t.y-O.y*E-v.height/2}));for(let t=0;t<k.length-1;t++){const e=k[t],n=k[t+1];b.push(V(Au,{indexes:[t+1],x:(e.x+n.x)/2-v.width/2,y:(e.y+n.y)/2-v.height/2}))}const e=k[k.length-1];b.push(V(Au,{indexes:[f],x:e.x+j.x*E-v.width/2,y:e.y+j.y*E-v.height/2}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,U(X,{children:[V(i,{colorPrimary:m,colorShadow:y}),V(Vu,{children:w}),V(Pu,{children:b})]})]})}},mm=gm({arrowHeight:330,presetRatios:{1:[{x:.5,y:.6,anchor:"top-right"}],2:[{x:.42,y:.5,anchor:"top-right"},{x:.72,y:.4,anchor:"bottom"}],3:[{x:.3,y:.5,anchor:"top-right"},{x:.48,y:.3,anchor:"bottom-left"},{x:.8,y:.75,anchor:"top-right"}],4:[{x:.3,y:.5,anchor:"top-right"},{x:.35,y:.2,anchor:"bottom-left"},{x:.65,y:.73,anchor:"top-right"},{x:.8,y:.52,anchor:"bottom-left"}],5:[{x:.19,y:.4,anchor:"top-right"},{x:.38,y:.2,anchor:"bottom"},{x:.52,y:.62,anchor:"top-right"},{x:.7,y:.43,anchor:"bottom"},{x:.82,y:.8,anchor:"top-right"}],6:[{x:.16,y:.35,anchor:"top-right"},{x:.38,y:.2,anchor:"bottom"},{x:.48,y:.54,anchor:"top-right"},{x:.55,y:.43,anchor:"bottom-left"},{x:.8,y:.75,anchor:"top-right"},{x:.86,y:.65,anchor:"bottom-left"}]},Arrow:({colorPrimary:t="#17CA2C",colorShadow:e="#737373"})=>{const n=(0,wl.A)(t).darken(20).toHexString();return U(X,{width:700,height:330,children:[V("path",{d:"M228.864 159.446C230.266 159.446 231.623 158.768 232.689 157.535L274.263 110.162L265.717 102.923L227.311 148.082C225.977 149.623 224.281 150.47 222.529 150.47H175.404L182.03 158.367C182.795 159.445 182.795 159.446 183.734 159.446H228.864Z",fill:e}),V("path",{d:"M462.869 234.92C464.271 234.92 465.628 234.242 466.695 233.01L508.268 185.636L499.722 178.397L461.316 223.557C459.983 225.098 458.287 225.945 456.534 225.945H409.409L416.035 233.841C416.8 234.92 416.8 234.92 417.74 234.92H462.869Z",fill:e}),V("path",{d:"M697.005 330C698.783 330 700 328.82 700 327.001V256.638C700 254.857 697.848 253.965 696.591 255.225L693.409 258.411V320.402C693.409 322.058 692.069 323.401 690.414 323.401H630.718L627.536 326.587C626.278 327.847 627.169 330 628.947 330H697.005Z",fill:e}),V("path",{d:"M689.642 321.89C690.744 321.89 691.638 320.995 691.638 319.891V250.743C691.638 248.962 689.488 248.07 688.23 249.329L662.647 274.947L520.987 153.863C519.541 152.627 517.703 151.948 515.802 151.948H469.518C470.236 151.949 470.956 152.206 471.53 152.729L498.163 176.978L498.13 177.018L639.84 297.784L619.174 318.477C617.916 319.737 618.807 321.89 620.586 321.89H689.642Z",fill:t}),V("path",{d:"M429.279 198.995L467.208 153.03C468.3 151.716 470.268 151.579 471.531 152.729L498.163 176.978L460.69 221.107C459.173 222.894 456.946 223.924 454.6 223.924H408.473C409.366 223.924 410.252 223.527 410.845 222.764L429.279 198.995Z",fill:n}),V("path",{d:"M408.473 223.924H408.314L408.318 223.92C408.369 223.922 408.421 223.924 408.473 223.924Z",fill:n}),V("path",{d:"M406.524 223.203C407.826 224.318 409.796 224.116 410.845 222.761L429.279 198.932L287.411 77.8866C285.964 76.6523 284.125 75.9742 282.223 75.9742H234.606L234.625 75.9907C235.429 75.9118 236.263 76.1557 236.915 76.7378L263.662 100.621L263.546 100.758L406.524 223.203Z",fill:t}),V("path",{d:"M236.914 76.7386C235.651 75.6097 233.707 75.7513 232.621 77.0513L194.557 123.104L175.644 146.821C175.076 147.535 174.25 147.917 173.409 147.947L173.407 147.95H219.923C222.271 147.95 224.499 146.915 226.017 145.122L263.645 100.649L236.914 76.7386Z",fill:n}),V("path",{d:"M175.648 146.816C174.589 148.145 172.637 148.329 171.348 147.221L4.09334 3.51697C2.68586 2.30767 3.54106 0 5.39671 0H47.5805C49.4864 0 51.3297 0.680433 52.7785 1.91877L194.557 123.104L175.648 146.816Z",fill:t})]})}}),ym=gm({arrowHeight:333,presetRatios:{1:[{x:.5,y:.4,anchor:"bottom-right"}],2:[{x:.42,y:.5,anchor:"bottom-right"},{x:.72,y:.6,anchor:"top"}],3:[{x:.3,y:.5,anchor:"bottom-right"},{x:.48,y:.7,anchor:"top-left"},{x:.8,y:.25,anchor:"bottom-right"}],4:[{x:.3,y:.5,anchor:"bottom-right"},{x:.35,y:.8,anchor:"top-left"},{x:.65,y:.27,anchor:"bottom-right"},{x:.8,y:.48,anchor:"top-left"}],5:[{x:.19,y:.6,anchor:"bottom-right"},{x:.38,y:.8,anchor:"top"},{x:.52,y:.38,anchor:"bottom-right"},{x:.7,y:.57,anchor:"top"},{x:.82,y:.2,anchor:"bottom-right"}],6:[{x:.16,y:.65,anchor:"bottom-right"},{x:.38,y:.8,anchor:"top"},{x:.48,y:.46,anchor:"bottom-right"},{x:.55,y:.57,anchor:"top-left"},{x:.8,y:.25,anchor:"bottom-right"},{x:.86,y:.35,anchor:"top-left"}]},Arrow:({colorPrimary:t="#17CA2C",colorShadow:e="#737373"})=>{const n=(0,wl.A)(t).darken(20).toHexString();return U(X,{width:700,height:333,children:[V("path",{d:"M19.0526 324L12.6762 329.482C11.2703 330.691 12.1234 333 13.976 333H56.1578C58.058 333 59.896 332.321 61.3413 331.085L201.854 210.901L194.249 201.693L54.0527 321.606C52.246 323.151 49.9486 324 47.5732 324H19.0526Z",fill:e}),V("path",{d:"M234.587 248L241.131 255.922C241.656 256.552 242.382 256.909 243.134 256.983L243.115 257H290.716C292.618 257 294.457 256.322 295.903 255.087L437.091 134.536L429.305 125.5L288.613 245.609C286.805 247.153 284.507 248 282.132 248H234.587Z",fill:e}),V("path",{d:"M461.123 162.429L475.642 179.918C476.237 180.635 477.092 181.001 477.951 181H524.22C526.121 181 527.959 180.321 529.404 179.085L670.786 58.1578L662.326 49.6809L522.115 169.606C520.309 171.151 518.011 172 515.636 172H469.369L461.123 162.429Z",fill:e}),V("path",{d:"M687.912 74.8875C690.374 75.9052 693.412 74.1668 693.412 71.1716V11H698.004C699.106 11 700 11.8954 700 13V82.1716C700 83.9534 697.85 84.8457 696.593 83.5858L687.912 74.8875Z",fill:e}),V("path",{d:"M689.419 0C690.522 0 691.415 0.895432 691.415 2V71.1716C691.415 72.9534 689.265 73.8457 688.008 72.5858L662.433 46.9598L520.819 168.085C519.374 169.321 517.536 170 515.636 170H469.367C470.084 169.999 470.804 169.742 471.379 169.219L498.003 144.961L497.969 144.922L639.634 24.115L618.975 3.41421C617.717 2.15428 618.608 0 620.386 0H689.419Z",fill:t}),V("path",{d:"M429.141 122.937L467.058 168.918C468.149 170.232 470.116 170.369 471.378 169.219L498.003 144.961L460.542 100.818C459.025 99.0305 456.798 98 454.453 98H408.341C409.234 98.0001 410.12 98.3968 410.712 99.1606L429.141 122.937Z",fill:n}),V("path",{d:"M408.341 98H408.183L408.186 98.004C408.237 98.0013 408.289 98 408.341 98Z",fill:n}),V("path",{d:"M406.393 98.721C407.695 97.606 409.664 97.8077 410.712 99.1633L429.141 123L287.318 244.087C285.872 245.322 284.033 246 282.132 246H234.53L234.55 245.983C235.353 246.062 236.187 245.818 236.839 245.236L263.577 221.345L263.461 221.208L406.393 98.721Z",fill:t}),V("path",{d:"M236.837 245.235C235.575 246.365 233.631 246.223 232.546 244.922L194.494 198.854L175.588 175.129C175.019 174.415 174.194 174.032 173.353 174.002L173.351 174H219.852C222.199 174 224.427 175.035 225.944 176.829L263.56 221.317L236.837 245.235Z",fill:n}),V("path",{d:"M175.593 175.135C174.533 173.805 172.581 173.622 171.291 174.73L4.09013 318.484C2.68329 319.693 3.53868 322 5.394 322H47.5627C49.4695 322 51.3136 321.319 52.7627 320.08L194.494 198.854L175.593 175.135Z",fill:t})]})}});Mg("list-zigzag-down",{component:mm,composites:["title","item"]}),Mg("list-zigzag-up",{component:ym,composites:["title","item"]});function vm(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})}Mg("relation-circle",{component:t=>{const{Title:e,Item:n,data:i,radius:r=150,startMode:o="top"}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null,h=du(V(Au,{indexes:[0]})),u=du(V(n,{indexes:[0],data:i,datum:l[0],positionH:"center"})),d=[],f=[];if(0===l.length)return d.push(V(Au,{indexes:[0],x:-h.width/2,y:-h.height/2})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,V(X,{children:V(Pu,{children:d})})]});const p=Math.max(u.width,u.height),g=Math.max(r,p),m=g+p/2,y=l.map(()=>(u.width+u.height)/2),v=y.reduce((t,e)=>t+e,0);let x;x="equal"===o?-Math.PI/2:-Math.PI/2+2*Math.PI/l.length/2;let b=x;l.forEach((t,e)=>{const r=y[e]/v*2*Math.PI,o=b+r/2;b+=r;const s=m+g*Math.cos(o)-u.width/2,a=m+g*Math.sin(o)-u.height/2;f.push(V(n,{indexes:[e],datum:t,data:i,x:s,y:a}));const l=g-Math.max(u.width,u.height)/2-20,c=m+l*Math.cos(o)-h.width/2,p=m+l*Math.sin(o)-h.height/2;d.push(V(zu,{indexes:[e],x:c,y:p}))});const w=g-Math.max(u.width,u.height)/2-20;if(l.length>0)for(let t=0;t<l.length;t++){const e=2*t*Math.PI/l.length-Math.PI/2,n=(t+1)%l.length*2*Math.PI/l.length-Math.PI/2;let i;if(t===l.length-1){i=e+(n+2*Math.PI-e)/2}else i=(e+n)/2;const r=m+w*Math.cos(i)-h.width/2,o=m+w*Math.sin(i)-h.height/2;d.push(V(Au,{indexes:[t+1],x:r,y:o}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,U(X,{children:[V(Vu,{children:f}),V(Pu,{children:d})]})]})},composites:["title","item"]}),"function"==typeof SuppressedError&&SuppressedError;var xm,bm,wm,Mm,km,Cm,Om,jm,Em,_m,Sm,$m,Am,zm,Pm,Lm,Im,Tm,Rm,Bm,Wm,Hm,Nm,Fm,Dm,Vm,Um,Ym,qm,Gm,Xm,Km,Zm,Qm,Jm,ty,ey,ny,iy,ry,oy,sy,ay,ly,cy,hy,uy,dy,fy,py,gy,my,yy,vy,xy,by,wy,My,ky,Cy,Oy,jy,Ey,_y,Sy,$y,Ay,zy,Py,Ly,Iy,Ty,Ry,By,Wy,Hy,Ny,Fy,Dy,Vy,Uy,Yy,qy,Gy,Xy,Ky,Zy,Qy,Jy,tv,ev,nv,iv,rv,ov,sv,av,lv,cv,hv,uv,dv,fv,pv,gv,mv,yv,vv,xv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function bv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function wv(){if(Mm)return wm;return Mm=1,wm=function(t,e){return t===e||t!=t&&e!=e},wm}function Mv(){if(Cm)return km;Cm=1;var t=wv();return km=function(e,n){for(var i=e.length;i--;)if(t(e[i][0],n))return i;return-1},km}function kv(){if(Lm)return Pm;Lm=1;var t=bm?xm:(bm=1,xm=function(){this.__data__=[],this.size=0}),e=function(){if(jm)return Om;jm=1;var t=Mv(),e=Array.prototype.splice;return Om=function(n){var i=this.__data__,r=t(i,n);return!(r<0||(r==i.length-1?i.pop():e.call(i,r,1),--this.size,0))},Om}(),n=function(){if(_m)return Em;_m=1;var t=Mv();return Em=function(e){var n=this.__data__,i=t(n,e);return i<0?void 0:n[i][1]},Em}(),i=function(){if($m)return Sm;$m=1;var t=Mv();return Sm=function(e){return t(this.__data__,e)>-1}}(),r=function(){if(zm)return Am;zm=1;var t=Mv();return Am=function(e,n){var i=this.__data__,r=t(i,e);return r<0?(++this.size,i.push([e,n])):i[r][1]=n,this},Am}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=i,o.prototype.set=r,Pm=o}function Cv(){return Vm?Dm:(Vm=1,Dm="object"==typeof xv&&xv&&xv.Object===Object&&xv)}function Ov(){if(Ym)return Um;Ym=1;var t=Cv(),e="object"==typeof self&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return Um=n}function jv(){if(Gm)return qm;Gm=1;var t=Ov();return qm=t.Symbol}function Ev(){if(ty)return Jm;ty=1;var t=jv(),e=function(){if(Km)return Xm;Km=1;var t=jv(),e=Object.prototype,n=e.hasOwnProperty,i=e.toString,r=t?t.toStringTag:void 0;return Xm=function(t){var e=n.call(t,r),o=t[r];try{t[r]=void 0;var s=!0}catch(t){}var a=i.call(t);return s&&(e?t[r]=o:delete t[r]),a},Xm}(),n=function(){if(Qm)return Zm;Qm=1;var t=Object.prototype.toString;return Zm=function(e){return t.call(e)},Zm}(),i=t?t.toStringTag:void 0;return Jm=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":i&&i in Object(t)?e(t):n(t)},Jm}function _v(){if(ny)return ey;return ny=1,ey=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},ey}function Sv(){if(ry)return iy;ry=1;var t=Ev(),e=_v();return iy=function(n){if(!e(n))return!1;var i=t(n);return"[object Function]"==i||"[object GeneratorFunction]"==i||"[object AsyncFunction]"==i||"[object Proxy]"==i},iy}function $v(){if(ly)return ay;ly=1;var t=function(){if(sy)return oy;sy=1;var t=Ov();return oy=t["__core-js_shared__"]}(),e=function(){var e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();return ay=function(t){return!!e&&e in t}}function Av(){if(hy)return cy;hy=1;var t=Function.prototype.toString;return cy=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function zv(){if(my)return gy;my=1;var t=function(){if(dy)return uy;dy=1;var t=Sv(),e=$v(),n=_v(),i=Av(),r=/^\[object .+?Constructor\]$/,o=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return uy=function(s){return!(!n(s)||e(s))&&(t(s)?o:r).test(i(s))},uy}(),e=(py||(py=1,fy=function(t,e){return null==t?void 0:t[e]}),fy);return gy=function(n,i){var r=e(n,i);return t(r)?r:void 0},gy}function Pv(){if(vy)return yy;vy=1;var t=zv()(Ov(),"Map");return yy=t}function Lv(){if(by)return xy;by=1;var t=zv()(Object,"create");return xy=t}function Iv(){if(zy)return Ay;zy=1;var t=function(){if(My)return wy;My=1;var t=Lv();return wy=function(){this.__data__=t?t(null):{},this.size=0}}(),e=Cy?ky:(Cy=1,ky=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),n=function(){if(jy)return Oy;jy=1;var t=Lv(),e=Object.prototype.hasOwnProperty;return Oy=function(n){var i=this.__data__;if(t){var r=i[n];return"__lodash_hash_undefined__"===r?void 0:r}return e.call(i,n)?i[n]:void 0},Oy}(),i=function(){if(_y)return Ey;_y=1;var t=Lv(),e=Object.prototype.hasOwnProperty;return Ey=function(n){var i=this.__data__;return t?void 0!==i[n]:e.call(i,n)},Ey}(),r=function(){if($y)return Sy;$y=1;var t=Lv();return Sy=function(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=t&&void 0===n?"__lodash_hash_undefined__":n,this},Sy}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=i,o.prototype.set=r,Ay=o}function Tv(){if(By)return Ry;By=1;var t=(Ty||(Ty=1,Iy=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}),Iy);return Ry=function(e,n){var i=e.__data__;return t(n)?i["string"==typeof n?"string":"hash"]:i.map},Ry}function Rv(){if(Gy)return qy;Gy=1;var t=function(){if(Ly)return Py;Ly=1;var t=Iv(),e=kv(),n=Pv();return Py=function(){this.size=0,this.__data__={hash:new t,map:new(n||e),string:new t}}}(),e=function(){if(Hy)return Wy;Hy=1;var t=Tv();return Wy=function(e){var n=t(this,e).delete(e);return this.size-=n?1:0,n}}(),n=function(){if(Fy)return Ny;Fy=1;var t=Tv();return Ny=function(e){return t(this,e).get(e)}}(),i=function(){if(Vy)return Dy;Vy=1;var t=Tv();return Dy=function(e){return t(this,e).has(e)}}(),r=function(){if(Yy)return Uy;Yy=1;var t=Tv();return Uy=function(e,n){var i=t(this,e),r=i.size;return i.set(e,n),this.size+=i.size==r?0:1,this},Uy}();function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}return o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=n,o.prototype.has=i,o.prototype.set=r,qy=o}function Bv(){if(Qy)return Zy;Qy=1;var t=kv(),e=function(){if(Tm)return Im;Tm=1;var t=kv();return Im=function(){this.__data__=new t,this.size=0}}(),n=(Bm||(Bm=1,Rm=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}),Rm),i=Hm?Wm:(Hm=1,Wm=function(t){return this.__data__.get(t)}),r=Fm?Nm:(Fm=1,Nm=function(t){return this.__data__.has(t)}),o=function(){if(Ky)return Xy;Ky=1;var t=kv(),e=Pv(),n=Rv();return Xy=function(i,r){var o=this.__data__;if(o instanceof t){var s=o.__data__;if(!e||s.length<199)return s.push([i,r]),this.size=++o.size,this;o=this.__data__=new n(s)}return o.set(i,r),this.size=o.size,this},Xy}();function s(e){var n=this.__data__=new t(e);this.size=n.size}return s.prototype.clear=e,s.prototype.delete=n,s.prototype.get=i,s.prototype.has=r,s.prototype.set=o,Zy=s}function Wv(){if(tv)return Jy;return tv=1,Jy=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t},Jy}function Hv(){if(nv)return ev;nv=1;var t=zv(),e=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();return ev=e}function Nv(){if(rv)return iv;rv=1;var t=Hv();return iv=function(e,n,i){"__proto__"==n&&t?t(e,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[n]=i},iv}function Fv(){if(sv)return ov;sv=1;var t=Nv(),e=wv(),n=Object.prototype.hasOwnProperty;return ov=function(i,r,o){var s=i[r];n.call(i,r)&&e(s,o)&&(void 0!==o||r in i)||t(i,r,o)},ov}function Dv(){if(lv)return av;lv=1;var t=Fv(),e=Nv();return av=function(n,i,r,o){var s=!r;r||(r={});for(var a=-1,l=i.length;++a<l;){var c=i[a],h=o?o(r[c],n[c],c,r,n):void 0;void 0===h&&(h=n[c]),s?e(r,c,h):t(r,c,h)}return r},av}function Vv(){if(dv)return uv;return dv=1,uv=function(t){return null!=t&&"object"==typeof t},uv}function Uv(){if(mv)return gv;mv=1;var t=function(){if(pv)return fv;pv=1;var t=Ev(),e=Vv();return fv=function(n){return e(n)&&"[object Arguments]"==t(n)},fv}(),e=Vv(),n=Object.prototype,i=n.hasOwnProperty,r=n.propertyIsEnumerable,o=t(function(){return arguments}())?t:function(t){return e(t)&&i.call(t,"callee")&&!r.call(t,"callee")};return gv=o}function Yv(){return vv?yv:(vv=1,yv=Array.isArray)}var qv,Gv,Xv,Kv,Zv,Qv,Jv,tx,ex,nx,ix,rx={exports:{}};function ox(){return Xv||(Xv=1,function(t,e){var n=Ov(),i=Gv?qv:(Gv=1,qv=function(){return!1}),r=e&&!e.nodeType&&e,o=r&&t&&!t.nodeType&&t,s=o&&o.exports===r?n.Buffer:void 0;t.exports=(s?s.isBuffer:void 0)||i}(rx,rx.exports)),rx.exports}function sx(){if(Zv)return Kv;Zv=1;var t=/^(?:0|[1-9]\d*)$/;return Kv=function(e,n){var i=typeof e;return!!(n=n??9007199254740991)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<n},Kv}function ax(){if(Jv)return Qv;Jv=1;return Qv=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Qv}function lx(){if(ix)return nx;return ix=1,nx=function(t){return function(e){return t(e)}},nx}var cx,hx,ux,dx,fx,px,gx,mx,yx,vx,xx,bx,wx,Mx,kx,Cx,Ox,jx,Ex,_x,Sx,$x,Ax,zx,Px,Lx,Ix,Tx={exports:{}};function Rx(){return cx||(cx=1,function(t,e){var n=Cv(),i=e&&!e.nodeType&&e,r=i&&t&&!t.nodeType&&t,o=r&&r.exports===i&&n.process,s=function(){try{var t=r&&r.require&&r.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=s}(Tx,Tx.exports)),Tx.exports}function Bx(){if(ux)return hx;ux=1;var t=function(){if(ex)return tx;ex=1;var t=Ev(),e=ax(),n=Vv(),i={};return i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,tx=function(r){return n(r)&&e(r.length)&&!!i[t(r)]},tx}(),e=lx(),n=Rx(),i=n&&n.isTypedArray,r=i?e(i):t;return hx=r}function Wx(){if(fx)return dx;fx=1;var t=(hv||(hv=1,cv=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}),cv),e=Uv(),n=Yv(),i=ox(),r=sx(),o=Bx(),s=Object.prototype.hasOwnProperty;return dx=function(a,l){var c=n(a),h=!c&&e(a),u=!c&&!h&&i(a),d=!c&&!h&&!u&&o(a),f=c||h||u||d,p=f?t(a.length,String):[],g=p.length;for(var m in a)!l&&!s.call(a,m)||f&&("length"==m||u&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||r(m,g))||p.push(m);return p},dx}function Hx(){if(gx)return px;gx=1;var t=Object.prototype;return px=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)},px}function Nx(){if(yx)return mx;return yx=1,mx=function(t,e){return function(n){return t(e(n))}},mx}function Fx(){if(wx)return bx;wx=1;var t=Hx(),e=function(){if(xx)return vx;xx=1;var t=Nx()(Object.keys,Object);return vx=t}(),n=Object.prototype.hasOwnProperty;return bx=function(i){if(!t(i))return e(i);var r=[];for(var o in Object(i))n.call(i,o)&&"constructor"!=o&&r.push(o);return r},bx}function Dx(){if(kx)return Mx;kx=1;var t=Sv(),e=ax();return Mx=function(n){return null!=n&&e(n.length)&&!t(n)},Mx}function Vx(){if(Ox)return Cx;Ox=1;var t=Wx(),e=Fx(),n=Dx();return Cx=function(i){return n(i)?t(i):e(i)},Cx}function Ux(){if(Ax)return $x;Ax=1;var t=_v(),e=Hx(),n=(Sx||(Sx=1,_x=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}),_x),i=Object.prototype.hasOwnProperty;return $x=function(r){if(!t(r))return n(r);var o=e(r),s=[];for(var a in r)("constructor"!=a||!o&&i.call(r,a))&&s.push(a);return s},$x}function Yx(){if(Px)return zx;Px=1;var t=Wx(),e=Ux(),n=Dx();return zx=function(i){return n(i)?t(i,!0):e(i)},zx}var qx,Gx,Xx,Kx,Zx,Qx,Jx,tb,eb,nb,ib,rb,ob,sb,ab,lb,cb,hb,ub,db,fb,pb,gb,mb,yb,vb,xb,bb,wb,Mb,kb,Cb,Ob,jb,Eb,_b,Sb,$b,Ab,zb,Pb,Lb,Ib,Tb,Rb,Bb,Wb,Hb,Nb,Fb,Db,Vb,Ub,Yb,qb,Gb,Xb,Kb,Zb,Qb,Jb,tw,ew,nw,iw,rw,ow,sw,aw,lw,cw,hw,uw,dw,fw,pw,gw,mw,yw,vw,xw,bw,ww,Mw,kw,Cw,Ow,jw,Ew,_w,Sw,$w,Aw,zw,Pw,Lw,Iw,Tw,Rw,Bw,Ww,Hw,Nw,Fw,Dw,Vw,Uw,Yw,qw,Gw,Xw,Kw,Zw,Qw,Jw,tM,eM,nM,iM,rM,oM,sM,aM,lM,cM,hM,uM,dM,fM,pM,gM,mM,yM,vM,xM,bM,wM,MM,kM,CM,OM,jM,EM,_M,SM,$M,AM,zM,PM,LM,IM,TM,RM,BM,WM,HM,NM,FM,DM,VM,UM,YM,qM,GM,XM,KM,ZM,QM,JM,tk,ek,nk,ik,rk,ok,sk,ak,lk,ck,hk,uk,dk,fk,pk,gk,mk,yk,vk,xk,bk,wk,Mk,kk,Ck,Ok,jk,Ek,_k,Sk,$k,Ak,zk,Pk,Lk,Ik,Tk,Rk,Bk,Wk,Hk,Nk,Fk,Dk,Vk,Uk,Yk,qk,Gk,Xk,Kk,Zk,Qk,Jk,tC,eC,nC,iC,rC,oC,sC,aC,lC,cC,hC,uC,dC,fC,pC,gC,mC,yC,vC,xC,bC,wC,MC,kC,CC,OC,jC,EC,_C,SC,$C,AC,zC,PC,LC,IC,TC,RC,BC,WC,HC,NC,FC,DC,VC,UC,YC,qC,GC,XC,KC,ZC,QC,JC,tO,eO,nO,iO,rO,oO,sO,aO,lO,cO,hO,uO,dO,fO,pO,gO,mO,yO,vO,xO,bO,wO,MO,kO,CO,OO,jO,EO,_O,SO,$O,AO,zO,PO,LO,IO,TO,RO,BO,WO,HO,NO,FO,DO,VO,UO,YO,qO,GO,XO,KO,ZO,QO,JO,tj,ej,nj,ij,rj,oj,sj,aj,lj,cj,hj,uj,dj,fj,pj,gj,mj,yj,vj,xj,bj,wj,Mj,kj,Cj,Oj,jj,Ej,_j,Sj,$j,Aj,zj,Pj,Lj,Ij,Tj,Rj,Bj,Wj,Hj,Nj,Fj,Dj,Vj,Uj,Yj,qj,Gj,Xj,Kj,Zj,Qj,Jj,tE,eE,nE,iE,rE,oE,sE,aE,lE,cE,hE,uE,dE,fE,pE,gE,mE,yE,vE,xE,bE,wE,ME,kE,CE,OE,jE,EE,_E,SE,$E,AE,zE,PE,LE,IE,TE,RE,BE,WE,HE,NE,FE,DE,VE,UE,YE={exports:{}};function qE(){return qx||(qx=1,function(t,e){var n=Ov(),i=e&&!e.nodeType&&e,r=i&&t&&!t.nodeType&&t,o=r&&r.exports===i?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,i=s?s(n):new t.constructor(n);return t.copy(i),i}}(YE,YE.exports)),YE.exports}function GE(){if(Xx)return Gx;return Xx=1,Gx=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e},Gx}function XE(){if(Zx)return Kx;return Zx=1,Kx=function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=s)}return o},Kx}function KE(){if(Jx)return Qx;return Jx=1,Qx=function(){return[]}}function ZE(){if(eb)return tb;eb=1;var t=XE(),e=KE(),n=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,r=i?function(e){return null==e?[]:(e=Object(e),t(i(e),function(t){return n.call(e,t)}))}:e;return tb=r}function QE(){if(ob)return rb;return ob=1,rb=function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t},rb}function JE(){if(ab)return sb;ab=1;var t=Nx()(Object.getPrototypeOf,Object);return sb=t}function t_(){if(cb)return lb;cb=1;var t=QE(),e=JE(),n=ZE(),i=KE(),r=Object.getOwnPropertySymbols?function(i){for(var r=[];i;)t(r,n(i)),i=e(i);return r}:i;return lb=r}function e_(){if(fb)return db;fb=1;var t=QE(),e=Yv();return db=function(n,i,r){var o=i(n);return e(n)?o:t(o,r(n))},db}function n_(){if(gb)return pb;gb=1;var t=e_(),e=ZE(),n=Vx();return pb=function(i){return t(i,n,e)},pb}function i_(){if(kb)return Mb;kb=1;var t=zv()(Ov(),"Set");return Mb=t}function r_(){if(Eb)return jb;Eb=1;var t=function(){if(xb)return vb;xb=1;var t=zv()(Ov(),"DataView");return vb=t}(),e=Pv(),n=function(){if(wb)return bb;wb=1;var t=zv()(Ov(),"Promise");return bb=t}(),i=i_(),r=function(){if(Ob)return Cb;Ob=1;var t=zv()(Ov(),"WeakMap");return Cb=t}(),o=Ev(),s=Av(),a="[object Map]",l="[object Promise]",c="[object Set]",h="[object WeakMap]",u="[object DataView]",d=s(t),f=s(e),p=s(n),g=s(i),m=s(r),y=o;return(t&&y(new t(new ArrayBuffer(1)))!=u||e&&y(new e)!=a||n&&y(n.resolve())!=l||i&&y(new i)!=c||r&&y(new r)!=h)&&(y=function(t){var e=o(t),n="[object Object]"==e?t.constructor:void 0,i=n?s(n):"";if(i)switch(i){case d:return u;case f:return a;case p:return l;case g:return c;case m:return h}return e}),jb=y}function o_(){if(Ab)return $b;Ab=1;var t=Ov();return $b=t.Uint8Array}function s_(){if(Pb)return zb;Pb=1;var t=o_();return zb=function(e){var n=new e.constructor(e.byteLength);return new t(n).set(new t(e)),n}}function a_(){if(Nb)return Hb;Nb=1;var t=s_();return Hb=function(e,n){var i=n?t(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}}function l_(){if(Db)return Fb;Db=1;var t=s_(),e=function(){if(Ib)return Lb;Ib=1;var t=s_();return Lb=function(e,n){var i=n?t(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}}(),n=function(){if(Rb)return Tb;Rb=1;var t=/\w*$/;return Tb=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}}(),i=function(){if(Wb)return Bb;Wb=1;var t=jv(),e=t?t.prototype:void 0,n=e?e.valueOf:void 0;return Bb=function(t){return n?Object(n.call(t)):{}}}(),r=a_();return Fb=function(o,s,a){var l=o.constructor;switch(s){case"[object ArrayBuffer]":return t(o);case"[object Boolean]":case"[object Date]":return new l(+o);case"[object DataView]":return e(o,a);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return r(o,a);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(o);case"[object RegExp]":return n(o);case"[object Symbol]":return i(o)}},Fb}function c_(){if(Ub)return Vb;Ub=1;var t=_v(),e=Object.create,n=function(){function n(){}return function(i){if(!t(i))return{};if(e)return e(i);n.prototype=i;var r=new n;return n.prototype=void 0,r}}();return Vb=n}function h_(){if(qb)return Yb;qb=1;var t=c_(),e=JE(),n=Hx();return Yb=function(i){return"function"!=typeof i.constructor||n(i)?{}:t(e(i))},Yb}function u_(){if(Zb)return Kb;Zb=1;var t=function(){if(Xb)return Gb;Xb=1;var t=r_(),e=Vv();return Gb=function(n){return e(n)&&"[object Map]"==t(n)},Gb}(),e=lx(),n=Rx(),i=n&&n.isMap,r=i?e(i):t;return Kb=r}function d_(){if(ew)return tw;ew=1;var t=function(){if(Jb)return Qb;Jb=1;var t=r_(),e=Vv();return Qb=function(n){return e(n)&&"[object Set]"==t(n)},Qb}(),e=lx(),n=Rx(),i=n&&n.isSet,r=i?e(i):t;return tw=r}function f_(){if(iw)return nw;iw=1;var t=Bv(),e=Wv(),n=Fv(),i=function(){if(Ex)return jx;Ex=1;var t=Dv(),e=Vx();return jx=function(n,i){return n&&t(i,e(i),n)},jx}(),r=function(){if(Ix)return Lx;Ix=1;var t=Dv(),e=Yx();return Lx=function(n,i){return n&&t(i,e(i),n)},Lx}(),o=qE(),s=GE(),a=function(){if(ib)return nb;ib=1;var t=Dv(),e=ZE();return nb=function(n,i){return t(n,e(n),i)},nb}(),l=function(){if(ub)return hb;ub=1;var t=Dv(),e=t_();return hb=function(n,i){return t(n,e(n),i)},hb}(),c=n_(),h=function(){if(yb)return mb;yb=1;var t=e_(),e=t_(),n=Yx();return mb=function(i){return t(i,n,e)},mb}(),u=r_(),d=function(){if(Sb)return _b;Sb=1;var t=Object.prototype.hasOwnProperty;return _b=function(e){var n=e.length,i=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(i.index=e.index,i.input=e.input),i},_b}(),f=l_(),p=h_(),g=Yv(),m=ox(),y=u_(),v=_v(),x=d_(),b=Vx(),w=Yx(),M="[object Arguments]",k="[object Function]",C="[object Object]",O={};return O[M]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[C]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[k]=O["[object WeakMap]"]=!1,nw=function j(E,_,S,$,A,z){var P,L=1&_,I=2&_,T=4&_;if(S&&(P=A?S(E,$,A,z):S(E)),void 0!==P)return P;if(!v(E))return E;var R=g(E);if(R){if(P=d(E),!L)return s(E,P)}else{var B=u(E),W=B==k||"[object GeneratorFunction]"==B;if(m(E))return o(E,L);if(B==C||B==M||W&&!A){if(P=I||W?{}:p(E),!L)return I?l(E,r(P,E)):a(E,i(P,E))}else{if(!O[B])return A?E:{};P=f(E,B,L)}}z||(z=new t);var H=z.get(E);if(H)return H;z.set(E,P),x(E)?E.forEach(function(t){P.add(j(t,_,S,t,E,z))}):y(E)&&E.forEach(function(t,e){P.set(e,j(t,_,S,e,E,z))});var N=R?void 0:(T?I?h:c:I?w:b)(E);return e(N||E,function(t,e){N&&(t=E[e=t]),n(P,e,j(t,_,S,e,E,z))}),P},nw}function p_(){if(ow)return rw;ow=1;var t=f_();return rw=function(e){return t(e,4)},rw}function g_(){if(aw)return sw;return aw=1,sw=function(t){return function(){return t}},sw}function m_(){if(uw)return hw;uw=1;var t=(cw||(cw=1,lw=function(t){return function(e,n,i){for(var r=-1,o=Object(e),s=i(e),a=s.length;a--;){var l=s[t?a:++r];if(!1===n(o[l],l,o))break}return e}}),lw),e=t();return hw=e}function y_(){if(fw)return dw;fw=1;var t=m_(),e=Vx();return dw=function(n,i){return n&&t(n,i,e)},dw}function v_(){if(yw)return mw;yw=1;var t=y_(),e=function(){if(gw)return pw;gw=1;var t=Dx();return pw=function(e,n){return function(i,r){if(null==i)return i;if(!t(i))return e(i,r);for(var o=i.length,s=n?o:-1,a=Object(i);(n?s--:++s<o)&&!1!==r(a[s],s,a););return i}}}(),n=e(t);return mw=n}function x_(){if(xw)return vw;return xw=1,vw=function(t){return t},vw}function b_(){if(ww)return bw;ww=1;var t=x_();return bw=function(e){return"function"==typeof e?e:t},bw}function w_(){if(kw)return Mw;kw=1;var t=Wv(),e=v_(),n=b_(),i=Yv();return Mw=function(r,o){return(i(r)?t:e)(r,n(o))}}function M_(){return Ow?Cw:(Ow=1,Cw=w_())}function k_(){if(Pw)return zw;Pw=1;var t=Rv(),e=(Sw||(Sw=1,_w=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),_w),n=(Aw||(Aw=1,$w=function(t){return this.__data__.has(t)}),$w);function i(e){var n=-1,i=null==e?0:e.length;for(this.__data__=new t;++n<i;)this.add(e[n])}return i.prototype.add=i.prototype.push=e,i.prototype.has=n,zw=i}function C_(){if(Rw)return Tw;return Rw=1,Tw=function(t,e){return t.has(e)}}function O_(){if(Ww)return Bw;Ww=1;var t=k_(),e=(Iw||(Iw=1,Lw=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}),Lw),n=C_();return Bw=function(i,r,o,s,a,l){var c=1&o,h=i.length,u=r.length;if(h!=u&&!(c&&u>h))return!1;var d=l.get(i),f=l.get(r);if(d&&f)return d==r&&f==i;var p=-1,g=!0,m=2&o?new t:void 0;for(l.set(i,r),l.set(r,i);++p<h;){var y=i[p],v=r[p];if(s)var x=c?s(v,y,p,r,i,l):s(y,v,p,i,r,l);if(void 0!==x){if(x)continue;g=!1;break}if(m){if(!e(r,function(t,e){if(!n(m,e)&&(y===t||a(y,t,o,s,l)))return m.push(e)})){g=!1;break}}else if(y!==v&&!a(y,v,o,s,l)){g=!1;break}}return l.delete(i),l.delete(r),g},Bw}function j_(){if(Dw)return Fw;return Dw=1,Fw=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n},Fw}function E_(){if(Uw)return Vw;Uw=1;var t=jv(),e=o_(),n=wv(),i=O_(),r=(Nw||(Nw=1,Hw=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n}),Hw),o=j_(),s=t?t.prototype:void 0,a=s?s.valueOf:void 0;return Vw=function(t,s,l,c,h,u,d){switch(l){case"[object DataView]":if(t.byteLength!=s.byteLength||t.byteOffset!=s.byteOffset)return!1;t=t.buffer,s=s.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=s.byteLength||!u(new e(t),new e(s)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+t,+s);case"[object Error]":return t.name==s.name&&t.message==s.message;case"[object RegExp]":case"[object String]":return t==s+"";case"[object Map]":var f=r;case"[object Set]":if(f||(f=o),t.size!=s.size&&!(1&c))return!1;var p=d.get(t);if(p)return p==s;c|=2,d.set(t,s);var g=i(f(t),f(s),c,h,u,d);return d.delete(t),g;case"[object Symbol]":if(a)return a.call(t)==a.call(s)}return!1},Vw}function __(){if(Xw)return Gw;Xw=1;var t=Bv(),e=O_(),n=E_(),i=function(){if(qw)return Yw;qw=1;var t=n_(),e=Object.prototype.hasOwnProperty;return Yw=function(n,i,r,o,s,a){var l=1&r,c=t(n),h=c.length;if(h!=t(i).length&&!l)return!1;for(var u=h;u--;){var d=c[u];if(!(l?d in i:e.call(i,d)))return!1}var f=a.get(n),p=a.get(i);if(f&&p)return f==i&&p==n;var g=!0;a.set(n,i),a.set(i,n);for(var m=l;++u<h;){var y=n[d=c[u]],v=i[d];if(o)var x=l?o(v,y,d,i,n,a):o(y,v,d,n,i,a);if(!(void 0===x?y===v||s(y,v,r,o,a):x)){g=!1;break}m||(m="constructor"==d)}if(g&&!m){var b=n.constructor,w=i.constructor;b==w||!("constructor"in n)||!("constructor"in i)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(g=!1)}return a.delete(n),a.delete(i),g},Yw}(),r=r_(),o=Yv(),s=ox(),a=Bx(),l="[object Arguments]",c="[object Array]",h="[object Object]",u=Object.prototype.hasOwnProperty;return Gw=function(d,f,p,g,m,y){var v=o(d),x=o(f),b=v?c:r(d),w=x?c:r(f),M=(b=b==l?h:b)==h,k=(w=w==l?h:w)==h,C=b==w;if(C&&s(d)){if(!s(f))return!1;v=!0,M=!1}if(C&&!M)return y||(y=new t),v||a(d)?e(d,f,p,g,m,y):n(d,f,b,p,g,m,y);if(!(1&p)){var O=M&&u.call(d,"__wrapped__"),j=k&&u.call(f,"__wrapped__");if(O||j){var E=O?d.value():d,_=j?f.value():f;return y||(y=new t),m(E,_,p,g,y)}}return!!C&&(y||(y=new t),i(d,f,p,g,m,y))},Gw}function S_(){if(Zw)return Kw;Zw=1;var t=__(),e=Vv();return Kw=function n(i,r,o,s,a){return i===r||(null==i||null==r||!e(i)&&!e(r)?i!=i&&r!=r:t(i,r,o,s,n,a))},Kw}function $_(){if(eM)return tM;eM=1;var t=_v();return tM=function(e){return e==e&&!t(e)},tM}function A_(){if(oM)return rM;return oM=1,rM=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}},rM}function z_(){if(aM)return sM;aM=1;var t=function(){if(Jw)return Qw;Jw=1;var t=Bv(),e=S_();return Qw=function(n,i,r,o){var s=r.length,a=s,l=!o;if(null==n)return!a;for(n=Object(n);s--;){var c=r[s];if(l&&c[2]?c[1]!==n[c[0]]:!(c[0]in n))return!1}for(;++s<a;){var h=(c=r[s])[0],u=n[h],d=c[1];if(l&&c[2]){if(void 0===u&&!(h in n))return!1}else{var f=new t;if(o)var p=o(u,d,h,n,i,f);if(!(void 0===p?e(d,u,3,o,f):p))return!1}}return!0},Qw}(),e=function(){if(iM)return nM;iM=1;var t=$_(),e=Vx();return nM=function(n){for(var i=e(n),r=i.length;r--;){var o=i[r],s=n[o];i[r]=[o,s,t(s)]}return i},nM}(),n=A_();return sM=function(i){var r=e(i);return 1==r.length&&r[0][2]?n(r[0][0],r[0][1]):function(e){return e===i||t(e,i,r)}},sM}function P_(){if(cM)return lM;cM=1;var t=Ev(),e=Vv();return lM=function(n){return"symbol"==typeof n||e(n)&&"[object Symbol]"==t(n)},lM}function L_(){if(uM)return hM;uM=1;var t=Yv(),e=P_(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;return hM=function(r,o){if(t(r))return!1;var s=typeof r;return!("number"!=s&&"symbol"!=s&&"boolean"!=s&&null!=r&&!e(r))||(i.test(r)||!n.test(r)||null!=o&&r in Object(o))},hM}function I_(){if(gM)return pM;gM=1;var t=function(){if(fM)return dM;fM=1;var t=Rv();function e(n,i){if("function"!=typeof n||null!=i&&"function"!=typeof i)throw new TypeError("Expected a function");var r=function(){var t=arguments,e=i?i.apply(this,t):t[0],o=r.cache;if(o.has(e))return o.get(e);var s=n.apply(this,t);return r.cache=o.set(e,s)||o,s};return r.cache=new(e.Cache||t),r}return e.Cache=t,dM=e}();return pM=function(e){var n=t(e,function(t){return 500===i.size&&i.clear(),t}),i=n.cache;return n}}function T_(){if(xM)return vM;return xM=1,vM=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r},vM}function R_(){if(kM)return MM;kM=1;var t=function(){if(wM)return bM;wM=1;var t=jv(),e=T_(),n=Yv(),i=P_(),r=t?t.prototype:void 0,o=r?r.toString:void 0;return bM=function t(r){if("string"==typeof r)return r;if(n(r))return e(r,t)+"";if(i(r))return o?o.call(r):"";var s=r+"";return"0"==s&&1/r==-1/0?"-0":s},bM}();return MM=function(e){return null==e?"":t(e)},MM}function B_(){if(OM)return CM;OM=1;var t=Yv(),e=L_(),n=function(){if(yM)return mM;yM=1;var t=I_(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,i=t(function(t){var i=[];return 46===t.charCodeAt(0)&&i.push(""),t.replace(e,function(t,e,r,o){i.push(r?o.replace(n,"$1"):e||t)}),i});return mM=i}(),i=R_();return CM=function(r,o){return t(r)?r:e(r,o)?[r]:n(i(r))},CM}function W_(){if(EM)return jM;EM=1;var t=P_();return jM=function(e){if("string"==typeof e||t(e))return e;var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},jM}function H_(){if(SM)return _M;SM=1;var t=B_(),e=W_();return _M=function(n,i){for(var r=0,o=(i=t(i,n)).length;null!=n&&r<o;)n=n[e(i[r++])];return r&&r==o?n:void 0},_M}function N_(){if(IM)return LM;IM=1;var t=B_(),e=Uv(),n=Yv(),i=sx(),r=ax(),o=W_();return LM=function(s,a,l){for(var c=-1,h=(a=t(a,s)).length,u=!1;++c<h;){var d=o(a[c]);if(!(u=null!=s&&l(s,d)))break;s=s[d]}return u||++c!=h?u:!!(h=null==s?0:s.length)&&r(h)&&i(d,h)&&(n(s)||e(s))},LM}function F_(){if(RM)return TM;RM=1;var t=(PM||(PM=1,zM=function(t,e){return null!=t&&e in Object(t)}),zM),e=N_();return TM=function(n,i){return null!=n&&e(n,i,t)},TM}function D_(){if(WM)return BM;WM=1;var t=S_(),e=function(){if(AM)return $M;AM=1;var t=H_();return $M=function(e,n,i){var r=null==e?void 0:t(e,n);return void 0===r?i:r},$M}(),n=F_(),i=L_(),r=$_(),o=A_(),s=W_();return BM=function(a,l){return i(a)&&r(l)?o(s(a),l):function(i){var r=e(i,a);return void 0===r&&r===l?n(i,a):t(l,r,3)}},BM}function V_(){if(NM)return HM;return NM=1,HM=function(t){return function(e){return null==e?void 0:e[t]}},HM}function U_(){if(UM)return VM;UM=1;var t=V_(),e=function(){if(DM)return FM;DM=1;var t=H_();return FM=function(e){return function(n){return t(n,e)}},FM}(),n=L_(),i=W_();return VM=function(r){return n(r)?t(i(r)):e(r)}}function Y_(){if(qM)return YM;qM=1;var t=z_(),e=D_(),n=x_(),i=Yv(),r=U_();return YM=function(o){return"function"==typeof o?o:null==o?n:"object"==typeof o?i(o)?e(o[0],o[1]):t(o):r(o)},YM}function q_(){if(XM)return GM;XM=1;var t=XE(),e=function(){if(Ew)return jw;Ew=1;var t=v_();return jw=function(e,n){var i=[];return t(e,function(t,e,r){n(t,e,r)&&i.push(t)}),i},jw}(),n=Y_(),i=Yv();return GM=function(r,o){return(i(r)?t:e)(r,n(o,3))}}function G_(){if(JM)return QM;JM=1;var t=function(){if(ZM)return KM;ZM=1;var t=Object.prototype.hasOwnProperty;return KM=function(e,n){return null!=e&&t.call(e,n)},KM}(),e=N_();return QM=function(n,i){return null!=n&&e(n,i,t)},QM}function X_(){if(ek)return tk;ek=1;var t=Fx(),e=r_(),n=Uv(),i=Yv(),r=Dx(),o=ox(),s=Hx(),a=Bx(),l=Object.prototype.hasOwnProperty;return tk=function(c){if(null==c)return!0;if(r(c)&&(i(c)||"string"==typeof c||"function"==typeof c.splice||o(c)||a(c)||n(c)))return!c.length;var h=e(c);if("[object Map]"==h||"[object Set]"==h)return!c.size;if(s(c))return!t(c).length;for(var u in c)if(l.call(c,u))return!1;return!0},tk}function K_(){if(ik)return nk;return ik=1,nk=function(t){return void 0===t},nk}function Z_(){if(ok)return rk;ok=1;var t=v_(),e=Dx();return rk=function(n,i){var r=-1,o=e(n)?Array(n.length):[];return t(n,function(t,e,n){o[++r]=i(t,e,n)}),o},rk}function Q_(){if(ak)return sk;ak=1;var t=T_(),e=Y_(),n=Z_(),i=Yv();return sk=function(r,o){return(i(r)?t:n)(r,e(o,3))}}function J_(){if(fk)return dk;fk=1;var t=(ck||(ck=1,lk=function(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}),lk),e=v_(),n=Y_(),i=(uk||(uk=1,hk=function(t,e,n,i,r){return r(t,function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)}),n}),hk),r=Yv();return dk=function(o,s,a){var l=r(o)?t:i,c=arguments.length<3;return l(o,n(s,4),a,c,e)},dk}function tS(){if(kk)return Mk;kk=1;var t=function(){if(yk)return mk;yk=1;var t=V_()("length");return mk=t}(),e=function(){if(xk)return vk;xk=1;var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return vk=function(e){return t.test(e)},vk}(),n=function(){if(wk)return bk;wk=1;var t="\\ud800-\\udfff",e="["+t+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",r="[^"+t+"]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+n+"|"+i+")?",l="[\\ufe0e\\ufe0f]?",c=l+a+"(?:\\u200d(?:"+[r,o,s].join("|")+")"+l+a+")*",h="(?:"+[r+n+"?",n,o,s,e].join("|")+")",u=RegExp(i+"(?="+i+")|"+h+c,"g");return bk=function(t){for(var e=u.lastIndex=0;u.test(t);)++e;return e},bk}();return Mk=function(i){return e(i)?n(i):t(i)},Mk}function eS(){if(Ok)return Ck;Ok=1;var t=Fx(),e=r_(),n=Dx(),i=function(){if(gk)return pk;gk=1;var t=Ev(),e=Yv(),n=Vv();return pk=function(i){return"string"==typeof i||!e(i)&&n(i)&&"[object String]"==t(i)},pk}(),r=tS();return Ck=function(o){if(null==o)return 0;if(n(o))return i(o)?r(o):o.length;var s=e(o);return"[object Map]"==s||"[object Set]"==s?o.size:t(o).length}}function nS(){if(Ek)return jk;Ek=1;var t=Wv(),e=c_(),n=y_(),i=Y_(),r=JE(),o=Yv(),s=ox(),a=Sv(),l=_v(),c=Bx();return jk=function(h,u,d){var f=o(h),p=f||s(h)||c(h);if(u=i(u,4),null==d){var g=h&&h.constructor;d=p?f?new g:[]:l(h)&&a(g)?e(r(h)):{}}return(p?t:n)(h,function(t,e,n){return u(d,t,e,n)}),d},jk}function iS(){if(Ak)return $k;Ak=1;var t=QE(),e=function(){if(Sk)return _k;Sk=1;var t=jv(),e=Uv(),n=Yv(),i=t?t.isConcatSpreadable:void 0;return _k=function(t){return n(t)||e(t)||!!(i&&t&&t[i])},_k}();return $k=function n(i,r,o,s,a){var l=-1,c=i.length;for(o||(o=e),a||(a=[]);++l<c;){var h=i[l];r>0&&o(h)?r>1?n(h,r-1,o,s,a):t(a,h):s||(a[a.length]=h)}return a},$k}function rS(){if(Ik)return Lk;Ik=1;var t=Pk?zk:(Pk=1,zk=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}),e=Math.max;return Lk=function(n,i,r){return i=e(void 0===i?n.length-1:i,0),function(){for(var o=arguments,s=-1,a=e(o.length-i,0),l=Array(a);++s<a;)l[s]=o[i+s];s=-1;for(var c=Array(i+1);++s<i;)c[s]=o[s];return c[i]=r(l),t(n,this,c)}},Lk}function oS(){if(Nk)return Hk;Nk=1;var t=function(){if(Rk)return Tk;Rk=1;var t=g_(),e=Hv(),n=x_(),i=e?function(n,i){return e(n,"toString",{configurable:!0,enumerable:!1,value:t(i),writable:!0})}:n;return Tk=i}(),e=function(){if(Wk)return Bk;Wk=1;var t=Date.now;return Bk=function(e){var n=0,i=0;return function(){var r=t(),o=16-(r-i);if(i=r,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}},Bk}(),n=e(t);return Hk=n}function sS(){if(Dk)return Fk;Dk=1;var t=x_(),e=rS(),n=oS();return Fk=function(i,r){return n(e(i,r,t),i+"")},Fk}function aS(){if(Uk)return Vk;return Uk=1,Vk=function(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1},Vk}function lS(){if(Zk)return Kk;Zk=1;var t=aS(),e=(qk||(qk=1,Yk=function(t){return t!=t}),Yk),n=(Xk||(Xk=1,Gk=function(t,e,n){for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return-1}),Gk);return Kk=function(i,r,o){return r==r?n(i,r,o):t(i,e,o)},Kk}function cS(){if(oC)return rC;oC=1;var t=i_(),e=iC?nC:(iC=1,nC=function(){}),n=j_(),i=t&&1/n(new t([,-0]))[1]==1/0?function(e){return new t(e)}:e;return rC=i}function hS(){if(aC)return sC;aC=1;var t=k_(),e=function(){if(Jk)return Qk;Jk=1;var t=lS();return Qk=function(e,n){return!(null==e||!e.length)&&t(e,n,0)>-1},Qk}(),n=(eC||(eC=1,tC=function(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}),tC),i=C_(),r=cS(),o=j_();return sC=function(s,a,l){var c=-1,h=e,u=s.length,d=!0,f=[],p=f;if(l)d=!1,h=n;else if(u>=200){var g=a?null:r(s);if(g)return o(g);d=!1,h=i,p=new t}else p=a?[]:f;t:for(;++c<u;){var m=s[c],y=a?a(m):m;if(m=l||0!==m?m:0,d&&y==y){for(var v=p.length;v--;)if(p[v]===y)continue t;a&&p.push(y),f.push(m)}else h(p,y,l)||(p!==f&&p.push(y),f.push(m))}return f},sC}function uS(){if(cC)return lC;cC=1;var t=Dx(),e=Vv();return lC=function(n){return e(n)&&t(n)},lC}function dS(){if(uC)return hC;uC=1;var t=iS(),e=sS(),n=hS(),i=uS(),r=e(function(e){return n(t(e,1,i,!0))});return hC=r}function fS(){if(gC)return pC;gC=1;var t=function(){if(fC)return dC;fC=1;var t=T_();return dC=function(e,n){return t(n,function(t){return e[t]})},dC}(),e=Vx();return pC=function(n){return null==n?[]:t(n,e(n))},pC}function pS(){if(yC)return mC;var t;yC=1;try{t={clone:p_(),constant:g_(),each:M_(),filter:q_(),has:G_(),isArray:Yv(),isEmpty:X_(),isFunction:Sv(),isUndefined:K_(),keys:Vx(),map:Q_(),reduce:J_(),size:eS(),transform:nS(),union:dS(),values:fS()}}catch(t){}return t||(t=window._),mC=t}function gS(){if(xC)return vC;xC=1;var t=pS();vC=n;var e="\0";function n(n){this._isDirected=!t.has(n,"directed")||n.directed,this._isMultigraph=!!t.has(n,"multigraph")&&n.multigraph,this._isCompound=!!t.has(n,"compound")&&n.compound,this._label=void 0,this._defaultNodeLabelFn=t.constant(void 0),this._defaultEdgeLabelFn=t.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[e]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function i(t,e){t[e]?t[e]++:t[e]=1}function r(t,e){--t[e]||delete t[e]}function o(e,n,i,r){var o=""+n,s=""+i;if(!e&&o>s){var a=o;o=s,s=a}return o+""+s+""+(t.isUndefined(r)?"\0":r)}function s(t,e){return o(t,e.v,e.w,e.name)}return n.prototype._nodeCount=0,n.prototype._edgeCount=0,n.prototype.isDirected=function(){return this._isDirected},n.prototype.isMultigraph=function(){return this._isMultigraph},n.prototype.isCompound=function(){return this._isCompound},n.prototype.setGraph=function(t){return this._label=t,this},n.prototype.graph=function(){return this._label},n.prototype.setDefaultNodeLabel=function(e){return t.isFunction(e)||(e=t.constant(e)),this._defaultNodeLabelFn=e,this},n.prototype.nodeCount=function(){return this._nodeCount},n.prototype.nodes=function(){return t.keys(this._nodes)},n.prototype.sources=function(){var e=this;return t.filter(this.nodes(),function(n){return t.isEmpty(e._in[n])})},n.prototype.sinks=function(){var e=this;return t.filter(this.nodes(),function(n){return t.isEmpty(e._out[n])})},n.prototype.setNodes=function(e,n){var i=arguments,r=this;return t.each(e,function(t){i.length>1?r.setNode(t,n):r.setNode(t)}),this},n.prototype.setNode=function(n,i){return t.has(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=i),this):(this._nodes[n]=arguments.length>1?i:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=e,this._children[n]={},this._children[e][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)},n.prototype.node=function(t){return this._nodes[t]},n.prototype.hasNode=function(e){return t.has(this._nodes,e)},n.prototype.removeNode=function(e){var n=this;if(t.has(this._nodes,e)){var i=function(t){n.removeEdge(n._edgeObjs[t])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],t.each(this.children(e),function(t){n.setParent(t)}),delete this._children[e]),t.each(t.keys(this._in[e]),i),delete this._in[e],delete this._preds[e],t.each(t.keys(this._out[e]),i),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},n.prototype.setParent=function(n,i){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(t.isUndefined(i))i=e;else{for(var r=i+="";!t.isUndefined(r);r=this.parent(r))if(r===n)throw new Error("Setting "+i+" as parent of "+n+" would create a cycle");this.setNode(i)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=i,this._children[i][n]=!0,this},n.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},n.prototype.parent=function(t){if(this._isCompound){var n=this._parent[t];if(n!==e)return n}},n.prototype.children=function(n){if(t.isUndefined(n)&&(n=e),this._isCompound){var i=this._children[n];if(i)return t.keys(i)}else{if(n===e)return this.nodes();if(this.hasNode(n))return[]}},n.prototype.predecessors=function(e){var n=this._preds[e];if(n)return t.keys(n)},n.prototype.successors=function(e){var n=this._sucs[e];if(n)return t.keys(n)},n.prototype.neighbors=function(e){var n=this.predecessors(e);if(n)return t.union(n,this.successors(e))},n.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},n.prototype.filterNodes=function(e){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var i=this;t.each(this._nodes,function(t,i){e(i)&&n.setNode(i,t)}),t.each(this._edgeObjs,function(t){n.hasNode(t.v)&&n.hasNode(t.w)&&n.setEdge(t,i.edge(t))});var r={};function o(t){var e=i.parent(t);return void 0===e||n.hasNode(e)?(r[t]=e,e):e in r?r[e]:o(e)}return this._isCompound&&t.each(n.nodes(),function(t){n.setParent(t,o(t))}),n},n.prototype.setDefaultEdgeLabel=function(e){return t.isFunction(e)||(e=t.constant(e)),this._defaultEdgeLabelFn=e,this},n.prototype.edgeCount=function(){return this._edgeCount},n.prototype.edges=function(){return t.values(this._edgeObjs)},n.prototype.setPath=function(e,n){var i=this,r=arguments;return t.reduce(e,function(t,e){return r.length>1?i.setEdge(t,e,n):i.setEdge(t,e),e}),this},n.prototype.setEdge=function(){var e,n,r,s,a=!1,l=arguments[0];"object"==typeof l&&null!==l&&"v"in l?(e=l.v,n=l.w,r=l.name,2===arguments.length&&(s=arguments[1],a=!0)):(e=l,n=arguments[1],r=arguments[3],arguments.length>2&&(s=arguments[2],a=!0)),e=""+e,n=""+n,t.isUndefined(r)||(r=""+r);var c=o(this._isDirected,e,n,r);if(t.has(this._edgeLabels,c))return a&&(this._edgeLabels[c]=s),this;if(!t.isUndefined(r)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(n),this._edgeLabels[c]=a?s:this._defaultEdgeLabelFn(e,n,r);var h=function(t,e,n,i){var r=""+e,o=""+n;if(!t&&r>o){var s=r;r=o,o=s}var a={v:r,w:o};i&&(a.name=i);return a}(this._isDirected,e,n,r);return e=h.v,n=h.w,Object.freeze(h),this._edgeObjs[c]=h,i(this._preds[n],e),i(this._sucs[e],n),this._in[n][c]=h,this._out[e][c]=h,this._edgeCount++,this},n.prototype.edge=function(t,e,n){var i=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,t,e,n);return this._edgeLabels[i]},n.prototype.hasEdge=function(e,n,i){var r=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,e,n,i);return t.has(this._edgeLabels,r)},n.prototype.removeEdge=function(t,e,n){var i=1===arguments.length?s(this._isDirected,arguments[0]):o(this._isDirected,t,e,n),a=this._edgeObjs[i];return a&&(t=a.v,e=a.w,delete this._edgeLabels[i],delete this._edgeObjs[i],r(this._preds[e],t),r(this._sucs[t],e),delete this._in[e][i],delete this._out[t][i],this._edgeCount--),this},n.prototype.inEdges=function(e,n){var i=this._in[e];if(i){var r=t.values(i);return n?t.filter(r,function(t){return t.v===n}):r}},n.prototype.outEdges=function(e,n){var i=this._out[e];if(i){var r=t.values(i);return n?t.filter(r,function(t){return t.w===n}):r}},n.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))},vC}function mS(){return kC?MC:(kC=1,MC={Graph:gS(),version:wC?bC:(wC=1,bC="2.1.8")})}function yS(){if(OC)return CC;OC=1;var t=pS(),e=gS();function n(e){return t.map(e.nodes(),function(n){var i=e.node(n),r=e.parent(n),o={v:n};return t.isUndefined(i)||(o.value=i),t.isUndefined(r)||(o.parent=r),o})}function i(e){return t.map(e.edges(),function(n){var i=e.edge(n),r={v:n.v,w:n.w};return t.isUndefined(n.name)||(r.name=n.name),t.isUndefined(i)||(r.value=i),r})}return CC={write:function(e){var r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:n(e),edges:i(e)};t.isUndefined(e.graph())||(r.value=t.clone(e.graph()));return r},read:function(n){var i=new e(n.options).setGraph(n.value);return t.each(n.nodes,function(t){i.setNode(t.v,t.value),t.parent&&i.setParent(t.v,t.parent)}),t.each(n.edges,function(t){i.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),i}},CC}function vS(){if(EC)return jC;EC=1;var t=pS();return jC=function(e){var n,i={},r=[];function o(r){t.has(i,r)||(i[r]=!0,n.push(r),t.each(e.successors(r),o),t.each(e.predecessors(r),o))}return t.each(e.nodes(),function(t){n=[],o(t),n.length&&r.push(n)}),r},jC}function xS(){if(SC)return _C;SC=1;var t=pS();function e(){this._arr=[],this._keyIndices={}}return _C=e,e.prototype.size=function(){return this._arr.length},e.prototype.keys=function(){return this._arr.map(function(t){return t.key})},e.prototype.has=function(e){return t.has(this._keyIndices,e)},e.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},e.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},e.prototype.add=function(e,n){var i=this._keyIndices;if(e=String(e),!t.has(i,e)){var r=this._arr,o=r.length;return i[e]=o,r.push({key:e,priority:n}),this._decrease(o),!0}return!1},e.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},e.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},e.prototype._heapify=function(t){var e=this._arr,n=2*t,i=n+1,r=t;n<e.length&&(r=e[n].priority<e[r].priority?n:r,i<e.length&&(r=e[i].priority<e[r].priority?i:r),r!==t&&(this._swap(t,r),this._heapify(r)))},e.prototype._decrease=function(t){for(var e,n=this._arr,i=n[t].priority;0!==t&&!(n[e=t>>1].priority<i);)this._swap(t,e),t=e},e.prototype._swap=function(t,e){var n=this._arr,i=this._keyIndices,r=n[t],o=n[e];n[t]=o,n[e]=r,i[o.key]=t,i[r.key]=e},_C}function bS(){if(AC)return $C;AC=1;var t=pS(),e=xS();$C=function(t,i,r,o){return function(t,n,i,r){var o,s,a={},l=new e,c=function(t){var e=t.v!==o?t.v:t.w,n=a[e],r=i(t),c=s.distance+r;if(r<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+r);c<n.distance&&(n.distance=c,n.predecessor=o,l.decrease(e,c))};t.nodes().forEach(function(t){var e=t===n?0:Number.POSITIVE_INFINITY;a[t]={distance:e},l.add(t,e)});for(;l.size()>0&&(o=l.removeMin(),(s=a[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(c);return a}(t,String(i),r||n,o||function(e){return t.outEdges(e)})};var n=t.constant(1);return $C}function wS(){if(PC)return zC;PC=1;var t=bS(),e=pS();return zC=function(n,i,r){return e.transform(n.nodes(),function(e,o){e[o]=t(n,o,i,r)},{})},zC}function MS(){if(IC)return LC;IC=1;var t=pS();return LC=function(e){var n=0,i=[],r={},o=[];function s(a){var l=r[a]={onStack:!0,lowlink:n,index:n++};if(i.push(a),e.successors(a).forEach(function(e){t.has(r,e)?r[e].onStack&&(l.lowlink=Math.min(l.lowlink,r[e].index)):(s(e),l.lowlink=Math.min(l.lowlink,r[e].lowlink))}),l.lowlink===l.index){var c,h=[];do{c=i.pop(),r[c].onStack=!1,h.push(c)}while(a!==c);o.push(h)}}return e.nodes().forEach(function(e){t.has(r,e)||s(e)}),o},LC}function kS(){if(RC)return TC;RC=1;var t=pS(),e=MS();return TC=function(n){return t.filter(e(n),function(t){return t.length>1||1===t.length&&n.hasEdge(t[0],t[0])})},TC}function CS(){if(WC)return BC;WC=1;var t=pS();BC=function(t,n,i){return function(t,e,n){var i={},r=t.nodes();return r.forEach(function(t){i[t]={},i[t][t]={distance:0},r.forEach(function(e){t!==e&&(i[t][e]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var r=n.v===t?n.w:n.v,o=e(n);i[t][r]={distance:o,predecessor:t}})}),r.forEach(function(t){var e=i[t];r.forEach(function(n){var o=i[n];r.forEach(function(n){var i=e[n],r=o[n],s=o[t].distance+i.distance;s<r.distance&&(r.distance=s,r.predecessor=i.predecessor)})})}),i}(t,n||e,i||function(e){return t.outEdges(e)})};var e=t.constant(1);return BC}function OS(){if(NC)return HC;NC=1;var t=pS();function e(e){var i={},r={},o=[];if(t.each(e.sinks(),function s(a){if(t.has(r,a))throw new n;t.has(i,a)||(r[a]=!0,i[a]=!0,t.each(e.predecessors(a),s),delete r[a],o.push(a))}),t.size(i)!==e.nodeCount())throw new n;return o}function n(){}return HC=e,e.CycleException=n,n.prototype=new Error,HC}function jS(){if(DC)return FC;DC=1;var t=OS();return FC=function(e){try{t(e)}catch(e){if(e instanceof t.CycleException)return!1;throw e}return!0},FC}function ES(){if(UC)return VC;UC=1;var t=pS();function e(n,i,r,o,s,a){t.has(o,i)||(o[i]=!0,r||a.push(i),t.each(s(i),function(t){e(n,t,r,o,s,a)}),r&&a.push(i))}return VC=function(n,i,r){t.isArray(i)||(i=[i]);var o=(n.isDirected()?n.successors:n.neighbors).bind(n),s=[],a={};return t.each(i,function(t){if(!n.hasNode(t))throw new Error("Graph does not have node: "+t);e(n,t,"post"===r,a,o,s)}),s},VC}function _S(){if(qC)return YC;qC=1;var t=ES();return YC=function(e,n){return t(e,n,"post")},YC}function SS(){if(XC)return GC;XC=1;var t=ES();return GC=function(e,n){return t(e,n,"pre")},GC}function $S(){if(ZC)return KC;ZC=1;var t=pS(),e=gS(),n=xS();return KC=function(i,r){var o,s=new e,a={},l=new n;function c(t){var e=t.v===o?t.w:t.v,n=l.priority(e);if(void 0!==n){var i=r(t);i<n&&(a[e]=o,l.decrease(e,i))}}if(0===i.nodeCount())return s;t.each(i.nodes(),function(t){l.add(t,Number.POSITIVE_INFINITY),s.setNode(t)}),l.decrease(i.nodes()[0],0);var h=!1;for(;l.size()>0;){if(o=l.removeMin(),t.has(a,o))s.setEdge(o,a[o]);else{if(h)throw new Error("Input graph is not connected: "+i);h=!0}i.nodeEdges(o).forEach(c)}return s},KC}function AS(){if(eO)return tO;eO=1;var t=mS();return tO={Graph:t.Graph,json:yS(),alg:JC?QC:(JC=1,QC={components:vS(),dijkstra:bS(),dijkstraAll:wS(),findCycles:kS(),floydWarshall:CS(),isAcyclic:jS(),postorder:_S(),preorder:SS(),prim:$S(),tarjan:MS(),topsort:OS()}),version:t.version}}function zS(){if(iO)return nO;var t;iO=1;try{t=AS()}catch(t){}return t||(t=window.graphlib),nO=t}function PS(){if(oO)return rO;oO=1;var t=f_();return rO=function(e){return t(e,5)},rO}function LS(){if(aO)return sO;aO=1;var t=wv(),e=Dx(),n=sx(),i=_v();return sO=function(r,o,s){if(!i(s))return!1;var a=typeof o;return!!("number"==a?e(s)&&n(o,s.length):"string"==a&&o in s)&&t(s[o],r)},sO}function IS(){if(cO)return lO;cO=1;var t=sS(),e=wv(),n=LS(),i=Yx(),r=Object.prototype,o=r.hasOwnProperty,s=t(function(t,s){t=Object(t);var a=-1,l=s.length,c=l>2?s[2]:void 0;for(c&&n(s[0],s[1],c)&&(l=1);++a<l;)for(var h=s[a],u=i(h),d=-1,f=u.length;++d<f;){var p=u[d],g=t[p];(void 0===g||e(g,r[p])&&!o.call(t,p))&&(t[p]=h[p])}return t});return lO=s}function TS(){if(gO)return pO;gO=1;var t=function(){if(fO)return dO;fO=1;var t=/\s/;return dO=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n},dO}(),e=/^\s+/;return pO=function(n){return n?n.slice(0,t(n)+1).replace(e,""):n},pO}function RS(){if(xO)return vO;xO=1;var t=function(){if(yO)return mO;yO=1;var t=TS(),e=_v(),n=P_(),i=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;return mO=function(a){if("number"==typeof a)return a;if(n(a))return NaN;if(e(a)){var l="function"==typeof a.valueOf?a.valueOf():a;a=e(l)?l+"":l}if("string"!=typeof a)return 0===a?a:+a;a=t(a);var c=r.test(a);return c||o.test(a)?s(a.slice(2),c?2:8):i.test(a)?NaN:+a},mO}(),e=1/0;return vO=function(n){return n?(n=t(n))===e||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0},vO}function BS(){if(kO)return MO;kO=1;var t=aS(),e=Y_(),n=function(){if(wO)return bO;wO=1;var t=RS();return bO=function(e){var n=t(e),i=n%1;return n==n?i?n-i:n:0},bO}(),i=Math.max;return MO=function(r,o,s){var a=null==r?0:r.length;if(!a)return-1;var l=null==s?0:n(s);return l<0&&(l=i(a+l,0)),t(r,e(o,3),l)},MO}function WS(){if(OO)return CO;OO=1;var t=function(){if(uO)return hO;uO=1;var t=Y_(),e=Dx(),n=Vx();return hO=function(i){return function(r,o,s){var a=Object(r);if(!e(r)){var l=t(o,3);r=n(r),o=function(t){return l(a[t],t,a)}}var c=i(r,o,s);return c>-1?a[l?r[c]:c]:void 0}}}(),e=t(BS());return CO=e}function HS(){if(EO)return jO;EO=1;var t=iS();return jO=function(e){return(null==e?0:e.length)?t(e,1):[]},jO}function NS(){if(SO)return _O;SO=1;var t=m_(),e=b_(),n=Yx();return _O=function(i,r){return null==i?i:t(i,e(r),n)},_O}function FS(){if(AO)return $O;return AO=1,$O=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},$O}function DS(){if(PO)return zO;PO=1;var t=Nv(),e=y_(),n=Y_();return zO=function(i,r){var o={};return r=n(r,3),e(i,function(e,n,i){t(o,n,r(e,n,i))}),o},zO}function VS(){if(IO)return LO;IO=1;var t=P_();return LO=function(e,n,i){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=n(s);if(null!=a&&(void 0===l?a==a&&!t(a):i(a,l)))var l=a,c=s}return c},LO}function US(){if(WO)return BO;WO=1;var t=VS(),e=(RO||(RO=1,TO=function(t,e){return t>e}),TO),n=x_();return BO=function(i){return i&&i.length?t(i,n,e):void 0},BO}function YS(){if(NO)return HO;NO=1;var t=Nv(),e=wv();return HO=function(n,i,r){(void 0!==r&&!e(n[i],r)||void 0===r&&!(i in n))&&t(n,i,r)},HO}function qS(){if(UO)return VO;return UO=1,VO=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},VO}function GS(){if(XO)return GO;XO=1;var t=YS(),e=qE(),n=a_(),i=GE(),r=h_(),o=Uv(),s=Yv(),a=uS(),l=ox(),c=Sv(),h=_v(),u=function(){if(DO)return FO;DO=1;var t=Ev(),e=JE(),n=Vv(),i=Function.prototype.toString,r=Object.prototype.hasOwnProperty,o=i.call(Object);return FO=function(s){if(!n(s)||"[object Object]"!=t(s))return!1;var a=e(s);if(null===a)return!0;var l=r.call(a,"constructor")&&a.constructor;return"function"==typeof l&&l instanceof l&&i.call(l)==o},FO}(),d=Bx(),f=qS(),p=function(){if(qO)return YO;qO=1;var t=Dv(),e=Yx();return YO=function(n){return t(n,e(n))},YO}();return GO=function(g,m,y,v,x,b,w){var M=f(g,y),k=f(m,y),C=w.get(k);if(C)t(g,y,C);else{var O=b?b(M,k,y+"",g,m,w):void 0,j=void 0===O;if(j){var E=s(k),_=!E&&l(k),S=!E&&!_&&d(k);O=k,E||_||S?s(M)?O=M:a(M)?O=i(M):_?(j=!1,O=e(k,!0)):S?(j=!1,O=n(k,!0)):O=[]:u(k)||o(k)?(O=M,o(M)?O=p(M):h(M)&&!c(M)||(O=r(k))):j=!1}j&&(w.set(k,O),x(O,k,v,b,w),w.delete(k)),t(g,y,O)}},GO}function XS(){if(ej)return tj;ej=1;var t=function(){if(ZO)return KO;ZO=1;var t=Bv(),e=YS(),n=m_(),i=GS(),r=_v(),o=Yx(),s=qS();return KO=function a(l,c,h,u,d){l!==c&&n(c,function(n,o){if(d||(d=new t),r(n))i(l,c,o,h,a,u,d);else{var f=u?u(s(l,o),n,o+"",l,c,d):void 0;void 0===f&&(f=n),e(l,o,f)}},o)},KO}(),e=function(){if(JO)return QO;JO=1;var t=sS(),e=LS();return QO=function(n){return t(function(t,i){var r=-1,o=i.length,s=o>1?i[o-1]:void 0,a=o>2?i[2]:void 0;for(s=n.length>3&&"function"==typeof s?(o--,s):void 0,a&&e(i[0],i[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++r<o;){var l=i[r];l&&n(t,l,r,s)}return t})},QO}(),n=e(function(e,n,i){t(e,n,i)});return tj=n}function KS(){if(ij)return nj;return ij=1,nj=function(t,e){return t<e},nj}function ZS(){if(oj)return rj;oj=1;var t=VS(),e=KS(),n=x_();return rj=function(i){return i&&i.length?t(i,n,e):void 0},rj}function QS(){if(aj)return sj;aj=1;var t=VS(),e=Y_(),n=KS();return sj=function(i,r){return i&&i.length?t(i,e(r,2),n):void 0},sj}function JS(){if(cj)return lj;cj=1;var t=Ov();return lj=function(){return t.Date.now()}}function t$(){if(fj)return dj;fj=1;var t=H_(),e=function(){if(uj)return hj;uj=1;var t=Fv(),e=B_(),n=sx(),i=_v(),r=W_();return hj=function(o,s,a,l){if(!i(o))return o;for(var c=-1,h=(s=e(s,o)).length,u=h-1,d=o;null!=d&&++c<h;){var f=r(s[c]),p=a;if("__proto__"===f||"constructor"===f||"prototype"===f)return o;if(c!=u){var g=d[f];void 0===(p=l?l(g,f,d):void 0)&&(p=i(g)?g:n(s[c+1])?[]:{})}t(d,f,p),d=d[f]}return o},hj}(),n=B_();return dj=function(i,r,o){for(var s=-1,a=r.length,l={};++s<a;){var c=r[s],h=t(i,c);o(h,c)&&e(l,n(c,i),h)}return l},dj}function e$(){if(xj)return vj;xj=1;var t=function(){if(gj)return pj;gj=1;var t=t$(),e=F_();return pj=function(n,i){return t(n,i,function(t,i){return e(n,i)})},pj}(),e=function(){if(yj)return mj;yj=1;var t=HS(),e=rS(),n=oS();return mj=function(i){return n(e(i,void 0,t),i+"")}}(),n=e(function(e,n){return null==e?{}:t(e,n)});return vj=n}function n$(){if(kj)return Mj;kj=1;var t=function(){if(wj)return bj;wj=1;var t=Math.ceil,e=Math.max;return bj=function(n,i,r,o){for(var s=-1,a=e(t((i-n)/(r||1)),0),l=Array(a);a--;)l[o?a:++s]=n,n+=r;return l},bj}(),e=LS(),n=RS();return Mj=function(i){return function(r,o,s){return s&&"number"!=typeof s&&e(r,o,s)&&(o=s=void 0),r=n(r),void 0===o?(o=r,r=0):o=n(o),s=void 0===s?r<o?1:-1:n(s),t(r,o,s,i)}},Mj}function i$(){if(Oj)return Cj;Oj=1;var t=n$()();return Cj=t}function r$(){if(Aj)return $j;Aj=1;var t=function(){if(Sj)return _j;Sj=1;var t=P_();return _j=function(e,n){if(e!==n){var i=void 0!==e,r=null===e,o=e==e,s=t(e),a=void 0!==n,l=null===n,c=n==n,h=t(n);if(!l&&!h&&!s&&e>n||s&&a&&c&&!l&&!h||r&&a&&c||!i&&c||!o)return 1;if(!r&&!s&&!h&&e<n||h&&i&&o&&!r&&!s||l&&i&&o||!a&&o||!c)return-1}return 0},_j}();return $j=function(e,n,i){for(var r=-1,o=e.criteria,s=n.criteria,a=o.length,l=i.length;++r<a;){var c=t(o[r],s[r]);if(c)return r>=l?c:c*("desc"==i[r]?-1:1)}return e.index-n.index},$j}function o$(){if(Pj)return zj;Pj=1;var t=T_(),e=H_(),n=Y_(),i=Z_(),r=(Ej||(Ej=1,jj=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}),jj),o=lx(),s=r$(),a=x_(),l=Yv();return zj=function(c,h,u){h=h.length?t(h,function(t){return l(t)?function(n){return e(n,1===t.length?t[0]:t)}:t}):[a];var d=-1;h=t(h,o(n));var f=i(c,function(e,n,i){return{criteria:t(h,function(t){return t(e)}),index:++d,value:e}});return r(f,function(t,e){return s(t,e,u)})},zj}function s$(){if(Ij)return Lj;Ij=1;var t=iS(),e=o$(),n=sS(),i=LS(),r=n(function(n,r){if(null==n)return[];var o=r.length;return o>1&&i(n,r[0],r[1])?r=[]:o>2&&i(r[0],r[1],r[2])&&(r=[r[0]]),e(n,t(r,1),[])});return Lj=r}function a$(){if(Rj)return Tj;Rj=1;var t=R_(),e=0;return Tj=function(n){var i=++e;return t(n)+i},Tj}function l$(){if(Nj)return Hj;Nj=1;var t=Fv(),e=Wj?Bj:(Wj=1,Bj=function(t,e,n){for(var i=-1,r=t.length,o=e.length,s={};++i<r;)n(s,t[i],i<o?e[i]:void 0);return s});return Hj=function(n,i){return e(n||[],i||[],t)}}function c$(){if(Dj)return Fj;var t;Dj=1;try{t={cloneDeep:PS(),constant:g_(),defaults:IS(),each:M_(),filter:q_(),find:WS(),flatten:HS(),forEach:w_(),forIn:NS(),has:G_(),isUndefined:K_(),last:FS(),map:Q_(),mapValues:DS(),max:US(),merge:XS(),min:ZS(),minBy:QS(),now:JS(),pick:e$(),range:i$(),reduce:J_(),sortBy:s$(),uniqueId:a$(),values:fS(),zipObject:l$()}}catch(t){}return t||(t=window._),Fj=t}function h$(){if(qj)return Yj;qj=1;var t=c$(),e=zS().Graph,n=function(){if(Uj)return Vj;function t(){var t={};t._next=t._prev=t,this._sentinel=t}function e(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function n(t,e){if("_next"!==t&&"_prev"!==t)return e}return Uj=1,Vj=t,t.prototype.dequeue=function(){var t=this._sentinel,n=t._prev;if(n!==t)return e(n),n},t.prototype.enqueue=function(t){var n=this._sentinel;t._prev&&t._next&&e(t),t._next=n._next,n._next._prev=t,n._next=t,t._prev=n},t.prototype.toString=function(){for(var t=[],e=this._sentinel,i=e._prev;i!==e;)t.push(JSON.stringify(i,n)),i=i._prev;return"["+t.join(", ")+"]"},Vj}();Yj=function(s,a){if(s.nodeCount()<=1)return[];var l=function(i,r){var s=new e,a=0,l=0;t.forEach(i.nodes(),function(t){s.setNode(t,{v:t,in:0,out:0})}),t.forEach(i.edges(),function(t){var e=s.edge(t.v,t.w)||0,n=r(t);s.setEdge(t.v,t.w,e+n),l=Math.max(l,s.node(t.v).out+=n),a=Math.max(a,s.node(t.w).in+=n)});var c=t.range(l+a+3).map(function(){return new n}),h=a+1;return t.forEach(s.nodes(),function(t){o(c,h,s.node(t))}),{graph:s,buckets:c,zeroIdx:h}}(s,a||i),c=function(t,e,n){var i,o=[],s=e[e.length-1],a=e[0];for(;t.nodeCount();){for(;i=a.dequeue();)r(t,e,n,i);for(;i=s.dequeue();)r(t,e,n,i);if(t.nodeCount())for(var l=e.length-2;l>0;--l)if(i=e[l].dequeue()){o=o.concat(r(t,e,n,i,!0));break}}return o}(l.graph,l.buckets,l.zeroIdx);return t.flatten(t.map(c,function(t){return s.outEdges(t.v,t.w)}),!0)};var i=t.constant(1);function r(e,n,i,r,s){var a=s?[]:void 0;return t.forEach(e.inEdges(r.v),function(t){var r=e.edge(t),l=e.node(t.v);s&&a.push({v:t.v,w:t.w}),l.out-=r,o(n,i,l)}),t.forEach(e.outEdges(r.v),function(t){var r=e.edge(t),s=e.node(t.w);s.in-=r,o(n,i,s)}),e.removeNode(r.v),a}function o(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}return Yj}function u$(){if(Xj)return Gj;Xj=1;var t=c$(),e=h$();return Gj={run:function(n){var i="greedy"===n.graph().acyclicer?e(n,function(t){return function(e){return t.edge(e).weight}}(n)):function(e){var n=[],i={},r={};function o(s){t.has(r,s)||(r[s]=!0,i[s]=!0,t.forEach(e.outEdges(s),function(e){t.has(i,e.w)?n.push(e):o(e.w)}),delete i[s])}return t.forEach(e.nodes(),o),n}(n);t.forEach(i,function(e){var i=n.edge(e);n.removeEdge(e),i.forwardName=e.name,i.reversed=!0,n.setEdge(e.w,e.v,i,t.uniqueId("rev"))})},undo:function(e){t.forEach(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var i=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,i)}})}},Gj}function d$(){if(Zj)return Kj;Zj=1;var t=c$(),e=zS().Graph;function n(e,n,i,r){var o;do{o=t.uniqueId(r)}while(e.hasNode(o));return i.dummy=n,e.setNode(o,i),o}function i(e){return t.max(t.map(e.nodes(),function(n){var i=e.node(n).rank;if(!t.isUndefined(i))return i}))}return Kj={addDummyNode:n,simplify:function(n){var i=(new e).setGraph(n.graph());return t.forEach(n.nodes(),function(t){i.setNode(t,n.node(t))}),t.forEach(n.edges(),function(t){var e=i.edge(t.v,t.w)||{weight:0,minlen:1},r=n.edge(t);i.setEdge(t.v,t.w,{weight:e.weight+r.weight,minlen:Math.max(e.minlen,r.minlen)})}),i},asNonCompoundGraph:function(n){var i=new e({multigraph:n.isMultigraph()}).setGraph(n.graph());return t.forEach(n.nodes(),function(t){n.children(t).length||i.setNode(t,n.node(t))}),t.forEach(n.edges(),function(t){i.setEdge(t,n.edge(t))}),i},successorWeights:function(e){var n=t.map(e.nodes(),function(n){var i={};return t.forEach(e.outEdges(n),function(t){i[t.w]=(i[t.w]||0)+e.edge(t).weight}),i});return t.zipObject(e.nodes(),n)},predecessorWeights:function(e){var n=t.map(e.nodes(),function(n){var i={};return t.forEach(e.inEdges(n),function(t){i[t.v]=(i[t.v]||0)+e.edge(t).weight}),i});return t.zipObject(e.nodes(),n)},intersectRect:function(t,e){var n,i,r=t.x,o=t.y,s=e.x-r,a=e.y-o,l=t.width/2,c=t.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(a)*l>Math.abs(s)*c?(a<0&&(c=-c),n=c*s/a,i=c):(s<0&&(l=-l),n=l,i=l*a/s);return{x:r+n,y:o+i}},buildLayerMatrix:function(e){var n=t.map(t.range(i(e)+1),function(){return[]});return t.forEach(e.nodes(),function(i){var r=e.node(i),o=r.rank;t.isUndefined(o)||(n[o][r.order]=i)}),n},normalizeRanks:function(e){var n=t.min(t.map(e.nodes(),function(t){return e.node(t).rank}));t.forEach(e.nodes(),function(i){var r=e.node(i);t.has(r,"rank")&&(r.rank-=n)})},removeEmptyRanks:function(e){var n=t.min(t.map(e.nodes(),function(t){return e.node(t).rank})),i=[];t.forEach(e.nodes(),function(t){var r=e.node(t).rank-n;i[r]||(i[r]=[]),i[r].push(t)});var r=0,o=e.graph().nodeRankFactor;t.forEach(i,function(n,i){t.isUndefined(n)&&i%o!==0?--r:r&&t.forEach(n,function(t){e.node(t).rank+=r})})},addBorderNode:function(t,e,i,r){var o={width:0,height:0};arguments.length>=4&&(o.rank=i,o.order=r);return n(t,"border",o,e)},maxRank:i,partition:function(e,n){var i={lhs:[],rhs:[]};return t.forEach(e,function(t){n(t)?i.lhs.push(t):i.rhs.push(t)}),i},time:function(e,n){var i=t.now();try{return n()}finally{console.log(e+" time: "+(t.now()-i)+"ms")}},notime:function(t,e){return e()}},Kj}function f$(){if(Jj)return Qj;Jj=1;var t=c$(),e=d$();return Qj={run:function(n){n.graph().dummyChains=[],t.forEach(n.edges(),function(t){!function(t,n){var i,r,o,s=n.v,a=t.node(s).rank,l=n.w,c=t.node(l).rank,h=n.name,u=t.edge(n),d=u.labelRank;if(c===a+1)return;for(t.removeEdge(n),o=0,++a;a<c;++o,++a)u.points=[],i=e.addDummyNode(t,"edge",r={width:0,height:0,edgeLabel:u,edgeObj:n,rank:a},"_d"),a===d&&(r.width=u.width,r.height=u.height,r.dummy="edge-label",r.labelpos=u.labelpos),t.setEdge(s,i,{weight:u.weight},h),0===o&&t.graph().dummyChains.push(i),s=i;t.setEdge(s,l,{weight:u.weight},h)}(n,t)})},undo:function(e){t.forEach(e.graph().dummyChains,function(t){var n,i=e.node(t),r=i.edgeLabel;for(e.setEdge(i.edgeObj,r);i.dummy;)n=e.successors(t)[0],e.removeNode(t),r.points.push({x:i.x,y:i.y}),"edge-label"===i.dummy&&(r.x=i.x,r.y=i.y,r.width=i.width,r.height=i.height),i=e.node(t=n)})}},Qj}function p$(){if(eE)return tE;eE=1;var t=c$();return tE={longestPath:function(e){var n={};t.forEach(e.sources(),function i(r){var o=e.node(r);if(t.has(n,r))return o.rank;n[r]=!0;var s=t.min(t.map(e.outEdges(r),function(t){return i(t.w)-e.edge(t).minlen}));return s!==Number.POSITIVE_INFINITY&&null!=s||(s=0),o.rank=s})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}},tE}function g$(){if(iE)return nE;iE=1;var t=c$(),e=zS().Graph,n=p$().slack;function i(e,i){return t.forEach(e.nodes(),function r(o){t.forEach(i.nodeEdges(o),function(t){var s=t.v,a=o===s?t.w:s;e.hasNode(a)||n(i,t)||(e.setNode(a,{}),e.setEdge(o,a,{}),r(a))})}),e.nodeCount()}function r(e,i){return t.minBy(i.edges(),function(t){if(e.hasNode(t.v)!==e.hasNode(t.w))return n(i,t)})}function o(e,n,i){t.forEach(e.nodes(),function(t){n.node(t).rank+=i})}return nE=function(t){var s,a,l=new e({directed:!1}),c=t.nodes()[0],h=t.nodeCount();l.setNode(c,{});for(;i(l,t)<h;)s=r(l,t),a=l.hasNode(s.v)?n(t,s):-n(t,s),o(l,t,a);return l},nE}function m$(){if(oE)return rE;oE=1;var t=c$(),e=g$(),n=p$().slack,i=p$().longestPath,r=zS().alg.preorder,o=zS().alg.postorder,s=d$().simplify;function a(t){t=s(t),i(t);var n,r=e(t);for(h(r),l(r,t);n=d(r);)p(r,t,n,f(r,t,n))}function l(e,n){var i=o(e,e.nodes());i=i.slice(0,i.length-1),t.forEach(i,function(t){!function(t,e,n){var i=t.node(n);t.edge(n,i.parent).cutvalue=c(t,e,n)}(e,n,t)})}function c(e,n,i){var r=e.node(i).parent,o=!0,s=n.edge(i,r),a=0;return s||(o=!1,s=n.edge(r,i)),a=s.weight,t.forEach(n.nodeEdges(i),function(t){var s=t.v===i,l=s?t.w:t.v;if(l!==r){var c=s===o,h=n.edge(t).weight;if(a+=c?h:-h,function(t,e,n){return t.hasEdge(e,n)}(e,i,l)){var u=e.edge(i,l).cutvalue;a+=c?-u:u}}}),a}function h(t,e){arguments.length<2&&(e=t.nodes()[0]),u(t,{},1,e)}function u(e,n,i,r,o){var s=i,a=e.node(r);return n[r]=!0,t.forEach(e.neighbors(r),function(o){t.has(n,o)||(i=u(e,n,i,o,r))}),a.low=s,a.lim=i++,o?a.parent=o:delete a.parent,i}function d(e){return t.find(e.edges(),function(t){return e.edge(t).cutvalue<0})}function f(e,i,r){var o=r.v,s=r.w;i.hasEdge(o,s)||(o=r.w,s=r.v);var a=e.node(o),l=e.node(s),c=a,h=!1;a.lim>l.lim&&(c=l,h=!0);var u=t.filter(i.edges(),function(t){return h===g(e,e.node(t.v),c)&&h!==g(e,e.node(t.w),c)});return t.minBy(u,function(t){return n(i,t)})}function p(e,n,i,o){e.removeEdge(i.v,i.w),e.setEdge(o.v,o.w,{}),h(e),l(e,n),function(e,n){var i=t.find(e.nodes(),function(t){return!n.node(t).parent}),o=r(e,i);o=o.slice(1),t.forEach(o,function(t){var i=e.node(t).parent,r=n.edge(t,i),o=!1;r||(r=n.edge(i,t),o=!0),n.node(t).rank=n.node(i).rank+(o?r.minlen:-r.minlen)})}(e,n)}function g(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}return rE=a,a.initLowLimValues=h,a.initCutValues=l,a.calcCutValue=c,a.leaveEdge=d,a.enterEdge=f,a.exchangeEdges=p,rE}function y$(){if(aE)return sE;aE=1;var t=p$().longestPath,e=g$(),n=m$();sE=function(n){switch(n.graph().ranker){case"network-simplex":default:r(n);break;case"tight-tree":!function(n){t(n),e(n)}(n);break;case"longest-path":i(n)}};var i=t;function r(t){n(t)}return sE}function v$(){if(cE)return lE;cE=1;var t=c$();return lE=function(e){var n=function(e){var n={},i=0;function r(o){var s=i;t.forEach(e.children(o),r),n[o]={low:s,lim:i++}}return t.forEach(e.children(),r),n}(e);t.forEach(e.graph().dummyChains,function(t){for(var i=e.node(t),r=i.edgeObj,o=function(t,e,n,i){var r,o,s=[],a=[],l=Math.min(e[n].low,e[i].low),c=Math.max(e[n].lim,e[i].lim);r=n;do{r=t.parent(r),s.push(r)}while(r&&(e[r].low>l||c>e[r].lim));o=r,r=i;for(;(r=t.parent(r))!==o;)a.push(r);return{path:s.concat(a.reverse()),lca:o}}(e,n,r.v,r.w),s=o.path,a=o.lca,l=0,c=s[l],h=!0;t!==r.w;){if(i=e.node(t),h){for(;(c=s[l])!==a&&e.node(c).maxRank<i.rank;)l++;c===a&&(h=!1)}if(!h){for(;l<s.length-1&&e.node(c=s[l+1]).minRank<=i.rank;)l++;c=s[l]}e.setParent(t,c),t=e.successors(t)[0]}})},lE}function x$(){if(uE)return hE;uE=1;var t=c$(),e=d$();function n(i,r,o,s,a,l,c){var h=i.children(c);if(h.length){var u=e.addBorderNode(i,"_bt"),d=e.addBorderNode(i,"_bb"),f=i.node(c);i.setParent(u,c),f.borderTop=u,i.setParent(d,c),f.borderBottom=d,t.forEach(h,function(t){n(i,r,o,s,a,l,t);var e=i.node(t),h=e.borderTop?e.borderTop:t,f=e.borderBottom?e.borderBottom:t,p=e.borderTop?s:2*s,g=h!==f?1:a-l[c]+1;i.setEdge(u,h,{weight:p,minlen:g,nestingEdge:!0}),i.setEdge(f,d,{weight:p,minlen:g,nestingEdge:!0})}),i.parent(c)||i.setEdge(r,u,{weight:0,minlen:a+l[c]})}else c!==r&&i.setEdge(r,c,{weight:0,minlen:o})}return hE={run:function(i){var r=e.addDummyNode(i,"root",{},"_root"),o=function(e){var n={};function i(r,o){var s=e.children(r);s&&s.length&&t.forEach(s,function(t){i(t,o+1)}),n[r]=o}return t.forEach(e.children(),function(t){i(t,1)}),n}(i),s=t.max(t.values(o))-1,a=2*s+1;i.graph().nestingRoot=r,t.forEach(i.edges(),function(t){i.edge(t).minlen*=a});var l=function(e){return t.reduce(e.edges(),function(t,n){return t+e.edge(n).weight},0)}(i)+1;t.forEach(i.children(),function(t){n(i,r,a,l,s,o,t)}),i.graph().nodeRankFactor=a},cleanup:function(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,t.forEach(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}},hE}function b$(){if(gE)return pE;gE=1;var t=c$();function e(e){t.forEach(e.nodes(),function(t){n(e.node(t))}),t.forEach(e.edges(),function(t){n(e.edge(t))})}function n(t){var e=t.width;t.width=t.height,t.height=e}function i(t){t.y=-t.y}function r(t){var e=t.x;t.x=t.y,t.y=e}return pE={adjust:function(t){var n=t.graph().rankdir.toLowerCase();"lr"!==n&&"rl"!==n||e(t)},undo:function(n){var o=n.graph().rankdir.toLowerCase();"bt"!==o&&"rl"!==o||function(e){t.forEach(e.nodes(),function(t){i(e.node(t))}),t.forEach(e.edges(),function(n){var r=e.edge(n);t.forEach(r.points,i),t.has(r,"y")&&i(r)})}(n);"lr"!==o&&"rl"!==o||(!function(e){t.forEach(e.nodes(),function(t){r(e.node(t))}),t.forEach(e.edges(),function(n){var i=e.edge(n);t.forEach(i.points,r),t.has(i,"x")&&r(i)})}(n),e(n))}},pE}function w$(){if(kE)return ME;kE=1;var t=c$();return ME=function(e,n){var i={};return t.forEach(e,function(e,n){var r=i[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:n};t.isUndefined(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),t.forEach(n.edges(),function(e){var n=i[e.v],r=i[e.w];t.isUndefined(n)||t.isUndefined(r)||(r.indegree++,n.out.push(i[e.w]))}),function(e){var n=[];function i(e){return function(n){n.merged||(t.isUndefined(n.barycenter)||t.isUndefined(e.barycenter)||n.barycenter>=e.barycenter)&&function(t,e){var n=0,i=0;t.weight&&(n+=t.barycenter*t.weight,i+=t.weight);e.weight&&(n+=e.barycenter*e.weight,i+=e.weight);t.vs=e.vs.concat(t.vs),t.barycenter=n/i,t.weight=i,t.i=Math.min(e.i,t.i),e.merged=!0}(e,n)}}function r(t){return function(n){n.in.push(t),0===--n.indegree&&e.push(n)}}for(;e.length;){var o=e.pop();n.push(o),t.forEach(o.in.reverse(),i(o)),t.forEach(o.out,r(o))}return t.map(t.filter(n,function(t){return!t.merged}),function(e){return t.pick(e,["vs","i","barycenter","weight"])})}(t.filter(i,function(t){return!t.indegree}))},ME}function M$(){if(EE)return jE;EE=1;var t=c$(),e=function(){if(wE)return bE;wE=1;var t=c$();return bE=function(e,n){return t.map(n,function(n){var i=e.inEdges(n);if(i.length){var r=t.reduce(i,function(t,n){var i=e.edge(n),r=e.node(n.v);return{sum:t.sum+i.weight*r.order,weight:t.weight+i.weight}},{sum:0,weight:0});return{v:n,barycenter:r.sum/r.weight,weight:r.weight}}return{v:n}})},bE}(),n=w$(),i=function(){if(OE)return CE;OE=1;var t=c$(),e=d$();function n(e,n,i){for(var r;n.length&&(r=t.last(n)).i<=i;)n.pop(),e.push(r.vs),i++;return i}return CE=function(i,r){var o=e.partition(i,function(e){return t.has(e,"barycenter")}),s=o.lhs,a=t.sortBy(o.rhs,function(t){return-t.i}),l=[],c=0,h=0,u=0;s.sort(function(t){return function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:t?n.i-e.i:e.i-n.i}}(!!r)),u=n(l,a,u),t.forEach(s,function(t){u+=t.vs.length,l.push(t.vs),c+=t.barycenter*t.weight,h+=t.weight,u=n(l,a,u)});var d={vs:t.flatten(l,!0)};return h&&(d.barycenter=c/h,d.weight=h),d},CE}();return jE=function r(o,s,a,l){var c=o.children(s),h=o.node(s),u=h?h.borderLeft:void 0,d=h?h.borderRight:void 0,f={};u&&(c=t.filter(c,function(t){return t!==u&&t!==d}));var p=e(o,c);t.forEach(p,function(e){if(o.children(e.v).length){var n=r(o,e.v,a,l);f[e.v]=n,t.has(n,"barycenter")&&(s=n,t.isUndefined((i=e).barycenter)?(i.barycenter=s.barycenter,i.weight=s.weight):(i.barycenter=(i.barycenter*i.weight+s.barycenter*s.weight)/(i.weight+s.weight),i.weight+=s.weight))}var i,s});var g=n(p,a);!function(e,n){t.forEach(e,function(e){e.vs=t.flatten(e.vs.map(function(t){return n[t]?n[t].vs:t}),!0)})}(g,f);var m=i(g,l);if(u&&(m.vs=t.flatten([u,m.vs,d],!0),o.predecessors(u).length)){var y=o.node(o.predecessors(u)[0]),v=o.node(o.predecessors(d)[0]);t.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+y.order+v.order)/(m.weight+2),m.weight+=2}return m},jE}function k$(){if(SE)return _E;SE=1;var t=c$(),e=zS().Graph;return _E=function(n,i,r){var o=function(e){var n;for(;e.hasNode(n=t.uniqueId("_root")););return n}(n),s=new e({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(t){return n.node(t)});return t.forEach(n.nodes(),function(e){var a=n.node(e),l=n.parent(e);(a.rank===i||a.minRank<=i&&i<=a.maxRank)&&(s.setNode(e),s.setParent(e,l||o),t.forEach(n[r](e),function(i){var r=i.v===e?i.w:i.v,o=s.edge(r,e),a=t.isUndefined(o)?0:o.weight;s.setEdge(r,e,{weight:n.edge(i).weight+a})}),t.has(a,"minRank")&&s.setNode(e,{borderLeft:a.borderLeft[i],borderRight:a.borderRight[i]}))}),s},_E}function C$(){if(PE)return zE;PE=1;var t=c$(),e=function(){if(yE)return mE;yE=1;var t=c$();return mE=function(e){var n={},i=t.filter(e.nodes(),function(t){return!e.children(t).length}),r=t.max(t.map(i,function(t){return e.node(t).rank})),o=t.map(t.range(r+1),function(){return[]});function s(i){if(!t.has(n,i)){n[i]=!0;var r=e.node(i);o[r.rank].push(i),t.forEach(e.successors(i),s)}}var a=t.sortBy(i,function(t){return e.node(t).rank});return t.forEach(a,s),o},mE}(),n=function(){if(xE)return vE;xE=1;var t=c$();function e(e,n,i){for(var r=t.zipObject(i,t.map(i,function(t,e){return e})),o=t.flatten(t.map(n,function(n){return t.sortBy(t.map(e.outEdges(n),function(t){return{pos:r[t.w],weight:e.edge(t).weight}}),"pos")}),!0),s=1;s<i.length;)s<<=1;var a=2*s-1;s-=1;var l=t.map(new Array(a),function(){return 0}),c=0;return t.forEach(o.forEach(function(t){var e=t.pos+s;l[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=l[e+1]),l[e=e-1>>1]+=t.weight;c+=t.weight*n})),c}return vE=function(t,n){for(var i=0,r=1;r<n.length;++r)i+=e(t,n[r-1],n[r]);return i},vE}(),i=M$(),r=k$(),o=function(){if(AE)return $E;AE=1;var t=c$();return $E=function(e,n,i){var r,o={};t.forEach(i,function(t){for(var i,s,a=e.parent(t);a;){if((i=e.parent(a))?(s=o[i],o[i]=a):(s=r,r=a),s&&s!==a)return void n.setEdge(s,a);a=i}})},$E}(),s=zS().Graph,a=d$();function l(e,n,i){return t.map(n,function(t){return r(e,t,i)})}function c(e,n){var r=new s;t.forEach(e,function(e){var s=e.graph().root,a=i(e,s,r,n);t.forEach(a.vs,function(t,n){e.node(t).order=n}),o(e,r,a.vs)})}function h(e,n){t.forEach(n,function(n){t.forEach(n,function(t,n){e.node(t).order=n})})}return zE=function(i){var r=a.maxRank(i),o=l(i,t.range(1,r+1),"inEdges"),s=l(i,t.range(r-1,-1,-1),"outEdges"),u=e(i);h(i,u);for(var d,f=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){c(p%2?o:s,p%4>=2),u=a.buildLayerMatrix(i);var m=n(i,u);m<f&&(g=0,d=t.cloneDeep(u),f=m)}h(i,d)},zE}function O$(){if(IE)return LE;IE=1;var t=c$(),e=zS().Graph,n=d$();function i(e,n){var i={};return t.reduce(n,function(n,r){var s=0,a=0,l=n.length,c=t.last(r);return t.forEach(r,function(n,h){var u=function(e,n){if(e.node(n).dummy)return t.find(e.predecessors(n),function(t){return e.node(t).dummy})}(e,n),d=u?e.node(u).order:l;(u||n===c)&&(t.forEach(r.slice(a,h+1),function(n){t.forEach(e.predecessors(n),function(t){var r=e.node(t),a=r.order;!(a<s||d<a)||r.dummy&&e.node(n).dummy||o(i,t,n)})}),a=h+1,s=d)}),r}),i}function r(e,n){var i={};function r(n,r,s,a,l){var c;t.forEach(t.range(r,s),function(r){e.node(c=n[r]).dummy&&t.forEach(e.predecessors(c),function(t){var n=e.node(t);n.dummy&&(n.order<a||n.order>l)&&o(i,t,c)})})}return t.reduce(n,function(n,i){var o,s=-1,a=0;return t.forEach(i,function(t,l){if("border"===e.node(t).dummy){var c=e.predecessors(t);c.length&&(o=e.node(c[0]).order,r(i,a,l,s,o),a=l,s=o)}r(i,a,i.length,o,n.length)}),i}),i}function o(t,e,n){if(e>n){var i=e;e=n,n=i}var r=t[e];r||(t[e]=r={}),r[n]=!0}function s(e,n,i){if(n>i){var r=n;n=i,i=r}return t.has(e[n],i)}function a(e,n,i,r){var o={},a={},l={};return t.forEach(n,function(e){t.forEach(e,function(t,e){o[t]=t,a[t]=t,l[t]=e})}),t.forEach(n,function(e){var n=-1;t.forEach(e,function(e){var c=r(e);if(c.length){c=t.sortBy(c,function(t){return l[t]});for(var h=(c.length-1)/2,u=Math.floor(h),d=Math.ceil(h);u<=d;++u){var f=c[u];a[e]===e&&n<l[f]&&!s(i,e,f)&&(a[f]=e,a[e]=o[e]=o[f],n=l[f])}}})}),{root:o,align:a}}function l(n,i,r,o,s){var a={},l=function(n,i,r,o){var s=new e,a=n.graph(),l=function(e,n,i){return function(r,o,s){var a,l=r.node(o),c=r.node(s),h=0;if(h+=l.width/2,t.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":a=-l.width/2;break;case"r":a=l.width/2}if(a&&(h+=i?a:-a),a=0,h+=(l.dummy?n:e)/2,h+=(c.dummy?n:e)/2,h+=c.width/2,t.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":a=c.width/2;break;case"r":a=-c.width/2}return a&&(h+=i?a:-a),a=0,h}}(a.nodesep,a.edgesep,o);return t.forEach(i,function(e){var i;t.forEach(e,function(t){var e=r[t];if(s.setNode(e),i){var o=r[i],a=s.edge(o,e);s.setEdge(o,e,Math.max(l(n,t,i),a||0))}i=t})}),s}(n,i,r,s),c=s?"borderLeft":"borderRight";function h(t,e){for(var n=l.nodes(),i=n.pop(),r={};i;)r[i]?t(i):(r[i]=!0,n.push(i),n=n.concat(e(i))),i=n.pop()}return h(function(t){a[t]=l.inEdges(t).reduce(function(t,e){return Math.max(t,a[e.v]+l.edge(e))},0)},l.predecessors.bind(l)),h(function(t){var e=l.outEdges(t).reduce(function(t,e){return Math.min(t,a[e.w]-l.edge(e))},Number.POSITIVE_INFINITY),i=n.node(t);e!==Number.POSITIVE_INFINITY&&i.borderType!==c&&(a[t]=Math.max(a[t],e))},l.successors.bind(l)),t.forEach(o,function(t){a[t]=a[r[t]]}),a}function c(e,n){return t.minBy(t.values(n),function(n){var i=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return t.forIn(n,function(t,n){var o=function(t,e){return t.node(e).width}(e,n)/2;i=Math.max(t+o,i),r=Math.min(t-o,r)}),i-r})}function h(e,n){var i=t.values(n),r=t.min(i),o=t.max(i);t.forEach(["u","d"],function(i){t.forEach(["l","r"],function(s){var a,l=i+s,c=e[l];if(c!==n){var h=t.values(c);(a="l"===s?r-t.min(h):o-t.max(h))&&(e[l]=t.mapValues(c,function(t){return t+a}))}})})}function u(e,n){return t.mapValues(e.ul,function(i,r){if(n)return e[n.toLowerCase()][r];var o=t.sortBy(t.map(e,r));return(o[1]+o[2])/2})}return LE={positionX:function(e){var o,s=n.buildLayerMatrix(e),d=t.merge(i(e,s),r(e,s)),f={};t.forEach(["u","d"],function(n){o="u"===n?s:t.values(s).reverse(),t.forEach(["l","r"],function(i){"r"===i&&(o=t.map(o,function(e){return t.values(e).reverse()}));var r=("u"===n?e.predecessors:e.successors).bind(e),s=a(e,o,d,r),c=l(e,o,s.root,s.align,"r"===i);"r"===i&&(c=t.mapValues(c,function(t){return-t})),f[n+i]=c})});var p=c(e,f);return h(f,p),u(f,e.graph().align)},findType1Conflicts:i,findType2Conflicts:r,addConflict:o,hasConflict:s,verticalAlignment:a,horizontalCompaction:l,alignCoordinates:h,findSmallestWidthAlignment:c,balance:u},LE}function j$(){if(RE)return TE;RE=1;var t=c$(),e=d$(),n=O$().positionX;return TE=function(i){i=e.asNonCompoundGraph(i),function(n){var i=e.buildLayerMatrix(n),r=n.graph().ranksep,o=0;t.forEach(i,function(e){var i=t.max(t.map(e,function(t){return n.node(t).height}));t.forEach(e,function(t){n.node(t).y=o+i/2}),o+=i+r})}(i),t.forEach(n(i),function(t,e){i.node(e).x=t})},TE}function E$(){if(WE)return BE;WE=1;var t=c$(),e=u$(),n=f$(),i=y$(),r=d$().normalizeRanks,o=v$(),s=d$().removeEmptyRanks,a=x$(),l=function(){if(fE)return dE;fE=1;var t=c$(),e=d$();function n(t,n,i,r,o,s){var a=o[n][s-1],l=e.addDummyNode(t,"border",{width:0,height:0,rank:s,borderType:n},i);o[n][s]=l,t.setParent(l,r),a&&t.setEdge(a,l,{weight:1})}return dE=function(e){t.forEach(e.children(),function i(r){var o=e.children(r),s=e.node(r);if(o.length&&t.forEach(o,i),t.has(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(var a=s.minRank,l=s.maxRank+1;a<l;++a)n(e,"borderLeft","_bl",r,s,a),n(e,"borderRight","_br",r,s,a)}})},dE}(),c=b$(),h=C$(),u=j$(),d=d$(),f=zS().Graph;BE=function(C,O){var j=O&&O.debugTiming?d.time:d.notime;j("layout",function(){var O=j(" buildLayoutGraph",function(){return function(e){var n=new f({multigraph:!0,compound:!0}),i=k(e.graph());return n.setGraph(t.merge({},g,M(i,p),t.pick(i,m))),t.forEach(e.nodes(),function(i){var r=k(e.node(i));n.setNode(i,t.defaults(M(r,y),v)),n.setParent(i,e.parent(i))}),t.forEach(e.edges(),function(i){var r=k(e.edge(i));n.setEdge(i,t.merge({},b,M(r,x),t.pick(r,w)))}),n}(C)});j(" runLayout",function(){!function(f,p){p(" makeSpaceForEdgeLabels",function(){!function(e){var n=e.graph();n.ranksep/=2,t.forEach(e.edges(),function(t){var i=e.edge(t);i.minlen*=2,"c"!==i.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?i.width+=i.labeloffset:i.height+=i.labeloffset)})}(f)}),p(" removeSelfEdges",function(){!function(e){t.forEach(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}(f)}),p(" acyclic",function(){e.run(f)}),p(" nestingGraph.run",function(){a.run(f)}),p(" rank",function(){i(d.asNonCompoundGraph(f))}),p(" injectEdgeLabelProxies",function(){!function(e){t.forEach(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var i=e.node(t.v),r=e.node(t.w);d.addDummyNode(e,"edge-proxy",{rank:(r.rank-i.rank)/2+i.rank,e:t},"_ep")}})}(f)}),p(" removeEmptyRanks",function(){s(f)}),p(" nestingGraph.cleanup",function(){a.cleanup(f)}),p(" normalizeRanks",function(){r(f)}),p(" assignRankMinMax",function(){!function(e){var n=0;t.forEach(e.nodes(),function(i){var r=e.node(i);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,n=t.max(n,r.maxRank))}),e.graph().maxRank=n}(f)}),p(" removeEdgeLabelProxies",function(){!function(e){t.forEach(e.nodes(),function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}(f)}),p(" normalize.run",function(){n.run(f)}),p(" parentDummyChains",function(){o(f)}),p(" addBorderSegments",function(){l(f)}),p(" order",function(){h(f)}),p(" insertSelfEdges",function(){!function(e){var n=d.buildLayerMatrix(e);t.forEach(n,function(n){var i=0;t.forEach(n,function(n,r){var o=e.node(n);o.order=r+i,t.forEach(o.selfEdges,function(t){d.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:o.rank,order:r+ ++i,e:t.e,label:t.label},"_se")}),delete o.selfEdges})})}(f)}),p(" adjustCoordinateSystem",function(){c.adjust(f)}),p(" position",function(){u(f)}),p(" positionSelfEdges",function(){!function(e){t.forEach(e.nodes(),function(t){var n=e.node(t);if("selfedge"===n.dummy){var i=e.node(n.e.v),r=i.x+i.width/2,o=i.y,s=n.x-r,a=i.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:r+2*s/3,y:o-a},{x:r+5*s/6,y:o-a},{x:r+s,y:o},{x:r+5*s/6,y:o+a},{x:r+2*s/3,y:o+a}],n.label.x=n.x,n.label.y=n.y}})}(f)}),p(" removeBorderNodes",function(){!function(e){t.forEach(e.nodes(),function(n){if(e.children(n).length){var i=e.node(n),r=e.node(i.borderTop),o=e.node(i.borderBottom),s=e.node(t.last(i.borderLeft)),a=e.node(t.last(i.borderRight));i.width=Math.abs(a.x-s.x),i.height=Math.abs(o.y-r.y),i.x=s.x+i.width/2,i.y=r.y+i.height/2}}),t.forEach(e.nodes(),function(t){"border"===e.node(t).dummy&&e.removeNode(t)})}(f)}),p(" normalize.undo",function(){n.undo(f)}),p(" fixupEdgeLabelCoords",function(){!function(e){t.forEach(e.edges(),function(n){var i=e.edge(n);if(t.has(i,"x"))switch("l"!==i.labelpos&&"r"!==i.labelpos||(i.width-=i.labeloffset),i.labelpos){case"l":i.x-=i.width/2+i.labeloffset;break;case"r":i.x+=i.width/2+i.labeloffset}})}(f)}),p(" undoCoordinateSystem",function(){c.undo(f)}),p(" translateGraph",function(){!function(e){var n=Number.POSITIVE_INFINITY,i=0,r=Number.POSITIVE_INFINITY,o=0,s=e.graph(),a=s.marginx||0,l=s.marginy||0;function c(t){var e=t.x,s=t.y,a=t.width,l=t.height;n=Math.min(n,e-a/2),i=Math.max(i,e+a/2),r=Math.min(r,s-l/2),o=Math.max(o,s+l/2)}t.forEach(e.nodes(),function(t){c(e.node(t))}),t.forEach(e.edges(),function(n){var i=e.edge(n);t.has(i,"x")&&c(i)}),n-=a,r-=l,t.forEach(e.nodes(),function(t){var i=e.node(t);i.x-=n,i.y-=r}),t.forEach(e.edges(),function(i){var o=e.edge(i);t.forEach(o.points,function(t){t.x-=n,t.y-=r}),t.has(o,"x")&&(o.x-=n),t.has(o,"y")&&(o.y-=r)}),s.width=i-n+a,s.height=o-r+l}(f)}),p(" assignNodeIntersects",function(){!function(e){t.forEach(e.edges(),function(t){var n,i,r=e.edge(t),o=e.node(t.v),s=e.node(t.w);r.points?(n=r.points[0],i=r.points[r.points.length-1]):(r.points=[],n=s,i=o),r.points.unshift(d.intersectRect(o,n)),r.points.push(d.intersectRect(s,i))})}(f)}),p(" reversePoints",function(){!function(e){t.forEach(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}(f)}),p(" acyclic.undo",function(){e.undo(f)})}(O,j)}),j(" updateInputGraph",function(){!function(e,n){t.forEach(e.nodes(),function(t){var i=e.node(t),r=n.node(t);i&&(i.x=r.x,i.y=r.y,n.children(t).length&&(i.width=r.width,i.height=r.height))}),t.forEach(e.edges(),function(i){var r=e.edge(i),o=n.edge(i);r.points=o.points,t.has(o,"x")&&(r.x=o.x,r.y=o.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}(C,O)})})};var p=["nodesep","edgesep","ranksep","marginx","marginy"],g={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},m=["acyclicer","ranker","rankdir","align"],y=["width","height"],v={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],b={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},w=["labelpos"];function M(e,n){return t.mapValues(t.pick(e,n),Number)}function k(e){var n={};return t.forEach(e,function(t,e){n[e.toLowerCase()]=t}),n}return BE}function _$(){if(NE)return HE;NE=1;var t=c$(),e=d$(),n=zS().Graph;return HE={debugOrdering:function(i){var r=e.buildLayerMatrix(i),o=new n({compound:!0,multigraph:!0}).setGraph({});return t.forEach(i.nodes(),function(t){o.setNode(t,{label:t}),o.setParent(t,"layer"+i.node(t).rank)}),t.forEach(i.edges(),function(t){o.setEdge(t.v,t.w,{},t.name)}),t.forEach(r,function(e,n){o.setNode("layer"+n,{rank:"same"}),t.reduce(e,function(t,e){return o.setEdge(t,e,{style:"invis"}),e})}),o}},HE}var S$=UE?VE:(UE=1,VE={graphlib:zS(),layout:E$(),debug:_$(),util:{time:d$().time,notime:d$().notime},version:DE?FE:(DE=1,FE="0.8.5")}),$$=bv(S$);const A$={abs:Math.abs,ceil:Math.ceil,floor:Math.floor,max:Math.max,min:Math.min,round:Math.round,sqrt:Math.sqrt,pow:Math.pow};class z$ extends Error{constructor(t,e,n){super(t),this.position=e,this.token=n,this.name="ExpressionError"}}var P$;!function(t){t[t.STRING=0]="STRING",t[t.NUMBER=1]="NUMBER",t[t.BOOLEAN=2]="BOOLEAN",t[t.NULL=3]="NULL",t[t.IDENTIFIER=4]="IDENTIFIER",t[t.OPERATOR=5]="OPERATOR",t[t.FUNCTION=6]="FUNCTION",t[t.DOT=7]="DOT",t[t.BRACKET_LEFT=8]="BRACKET_LEFT",t[t.BRACKET_RIGHT=9]="BRACKET_RIGHT",t[t.PAREN_LEFT=10]="PAREN_LEFT",t[t.PAREN_RIGHT=11]="PAREN_RIGHT",t[t.COMMA=12]="COMMA",t[t.QUESTION=13]="QUESTION",t[t.COLON=14]="COLON",t[t.DOLLAR=15]="DOLLAR"}(P$||(P$={}));const L$=new Set([32,9,10,13]),I$=new Set([43,45,42,47,37,33,38,124,61,60,62]),T$=new Map([["true",P$.BOOLEAN],["false",P$.BOOLEAN],["null",P$.NULL]]),R$=new Map([["===",!0],["!==",!0],["<=",!0],[">=",!0],["&&",!0],["||",!0],["+",!0],["-",!0],["*",!0],["/",!0],["%",!0],["!",!0],["<",!0],[">",!0]]),B$=new Map([[46,P$.DOT],[91,P$.BRACKET_LEFT],[93,P$.BRACKET_RIGHT],[40,P$.PAREN_LEFT],[41,P$.PAREN_RIGHT],[44,P$.COMMA],[63,P$.QUESTION],[58,P$.COLON],[36,P$.DOLLAR]]),W$=new Map;for(const[t,e]of B$.entries())W$.set(t,{type:e,value:String.fromCharCode(t)});function H$(t){return t>=48&&t<=57}function N$(t){return t>=97&&t<=122||t>=65&&t<=90||95===t}function F$(t){return N$(t)||H$(t)}function D$(t){return I$.has(t)}var V$;!function(t){t[t.Program=0]="Program",t[t.Literal=1]="Literal",t[t.Identifier=2]="Identifier",t[t.MemberExpression=3]="MemberExpression",t[t.CallExpression=4]="CallExpression",t[t.BinaryExpression=5]="BinaryExpression",t[t.UnaryExpression=6]="UnaryExpression",t[t.ConditionalExpression=7]="ConditionalExpression"}(V$||(V$={}));const U$=new Map([["||",2],["&&",3],["===",4],["!==",4],[">",5],[">=",5],["<",5],["<=",5],["+",6],["-",6],["*",7],["/",7],["%",7],["!",8]]),Y$={type:V$.Literal,value:null},q$={type:V$.Literal,value:!0},G$={type:V$.Literal,value:!1};function X$(t){const e=(t=>{const e=t,n=e.length,i=new Array(Math.ceil(n/3));let r=0,o=0;function s(t){const i=o+1;o++;let r="",s=!1;for(;o<n;){const n=e.charCodeAt(o);if(n===t)return s||(r=e.substring(i,o)),o++,{type:P$.STRING,value:r};92===n?(s||(r=e.substring(i,o),s=!0),o++,r+=e[o]):s&&(r+=e[o]),o++}throw new z$(`Unterminated string starting with ${String.fromCharCode(t)}`,o,e.substring(Math.max(0,o-10),o))}function a(){const t=o;for(45===e.charCodeAt(o)&&o++;o<n&&H$(e.charCodeAt(o));)o++;if(o<n&&46===e.charCodeAt(o))for(o++;o<n&&H$(e.charCodeAt(o));)o++;const i=e.slice(t,o);return{type:P$.NUMBER,value:i}}function l(){o++;const t=o;if(o<n&&N$(e.charCodeAt(o)))for(o++;o<n&&F$(e.charCodeAt(o));)o++;const i=e.slice(t,o);return{type:P$.FUNCTION,value:i}}function c(){const t=o++;for(;o<n&&F$(e.charCodeAt(o));)o++;const i=e.slice(t,o),r=T$.get(i);return r?{type:r,value:i}:{type:P$.IDENTIFIER,value:i}}function h(){if(o+2<n){const t=e.substring(o,o+3);if(R$.has(t))return o+=3,{type:P$.OPERATOR,value:t}}if(o+1<n){const t=e.substring(o,o+2);if(R$.has(t))return o+=2,{type:P$.OPERATOR,value:t}}const t=e[o];if(R$.has(t))return o++,{type:P$.OPERATOR,value:t};throw new z$(`Unknown operator at position ${o}: ${e.substring(o,o+1)}`,o,e.substring(Math.max(0,o-10),o))}for(;o<n;){const t=e.charCodeAt(o);if(L$.has(t)){o++;continue}const u=W$.get(t);if(u)i[r++]=u,o++;else if(34!==t&&39!==t)if(H$(t)||45===t&&o+1<n&&H$(e.charCodeAt(o+1)))i[r++]=a();else if(64!==t)if(N$(t))i[r++]=c();else{if(!D$(t))throw new z$(`Unexpected character: ${e[o]}`,o,e.substring(Math.max(0,o-10),o));i[r++]=h()}else i[r++]=l();else i[r++]=s(t)}return r===i.length?i:i.slice(0,r)})(t),n=(t=>{let e=0;const n=t.length,i=()=>e>=n?null:t[e],r=()=>t[e++],o=t=>{const e=i();return null!==e&&e.type===t},s=t=>t.type===P$.OPERATOR?U$.get(t.value)||-1:t.type===P$.DOT||t.type===P$.BRACKET_LEFT?9:t.type===P$.QUESTION?1:-1,a=t=>{let n,s;if(r().type===P$.DOT){if(!o(P$.IDENTIFIER)){const t=i();throw new z$("Expected property name",e,t?t.value:"<end of input>")}const t=r();n={type:V$.Identifier,name:t.value},s=!1}else{if(n=c(0),!o(P$.BRACKET_RIGHT)){const t=i();throw new z$("Expected closing bracket",e,t?t.value:"<end of input>")}r(),s=!0}return{type:V$.MemberExpression,object:t,property:n,computed:s}},l=()=>{const t=i();if(!t)throw new z$("Unexpected end of input",e,"<end of input>");if(t.type===P$.OPERATOR&&("!"===t.value||"-"===t.value)){r();const e=l();return{type:V$.UnaryExpression,operator:t.value,argument:e,prefix:!0}}switch(t.type){case P$.NUMBER:return r(),{type:V$.Literal,value:Number(t.value)};case P$.STRING:return r(),{type:V$.Literal,value:t.value};case P$.BOOLEAN:return r(),"true"===t.value?q$:G$;case P$.NULL:return r(),Y$;case P$.IDENTIFIER:return r(),{type:V$.Identifier,name:t.value};case P$.FUNCTION:return(()=>{const t=r(),n=[];if(!o(P$.PAREN_LEFT)){const t=i();throw new z$("Expected opening parenthesis after function name",e,t?t.value:"<end of input>")}for(r();;){if(o(P$.PAREN_RIGHT)){r();break}if(!i()){const t=i();throw new z$("Expected closing parenthesis",e,t?t.value:"<end of input>")}if(n.length>0){if(!o(P$.COMMA)){const t=i();throw new z$("Expected comma between function arguments",e,t?t.value:"<end of input>")}r()}const t=c(0);n.push(t)}return{type:V$.CallExpression,callee:{type:V$.Identifier,name:t.value},arguments:n}})();case P$.PAREN_LEFT:{r();const t=c(0);if(!o(P$.PAREN_RIGHT)){const t=i();throw new z$("Expected closing parenthesis",e,t?t.value:"<end of input>")}return r(),t}default:throw new z$(`Unexpected token: ${t.type}`,e,t.value)}},c=(h=0)=>{let u=l();for(;e<n;){const n=t[e],l=s(n);if(l<=h)break;if(n.type!==P$.QUESTION)if(n.type!==P$.OPERATOR){if(n.type!==P$.DOT&&n.type!==P$.BRACKET_LEFT)break;u=a(u)}else{r();const t=c(l);u={type:V$.BinaryExpression,operator:n.value,left:u,right:t}}else{r();const t=c(0);if(!o(P$.COLON)){const t=i();throw new z$("Expected : in conditional expression",e,t?t.value:"<end of input>")}r();const n=c(0);u={type:V$.ConditionalExpression,test:u,consequent:t,alternate:n}}}return u},h=c();return{type:V$.Program,body:h}})(e),i=((t={},e={})=>({context:t,functions:e}))({},A$);return(t={})=>((t,e,n)=>{let i=e;n&&(i={...e,context:{...e.context,...n}});const r=t=>{switch(t.type){case V$.Literal:return(t=>t.value)(t);case V$.Identifier:return(t=>{if(!(t.name in i.context))throw new z$(`Undefined variable: ${t.name}`);return i.context[t.name]})(t);case V$.MemberExpression:return(t=>{const e=r(t.object);if(null==e)throw new z$("Cannot access property of null or undefined");return e[t.computed?r(t.property):t.property.name]})(t);case V$.CallExpression:return(t=>{const e=i.functions[t.callee.name];if(!e)throw new z$(`Undefined function: ${t.callee.name}`);return e(...t.arguments.map(t=>r(t)))})(t);case V$.BinaryExpression:return(t=>{if("&&"===t.operator){const e=r(t.left);return e?r(t.right):e}if("||"===t.operator)return r(t.left)||r(t.right);const e=r(t.left),n=r(t.right);switch(t.operator){case"+":return e+n;case"-":return e-n;case"*":return e*n;case"/":return e/n;case"%":return e%n;case"===":return e===n;case"!==":return e!==n;case">":return e>n;case">=":return e>=n;case"<":return e<n;case"<=":return e<=n;default:throw new z$(`Unknown operator: ${t.operator}`)}})(t);case V$.UnaryExpression:return(t=>{const e=r(t.argument);if(t.prefix)switch(t.operator){case"!":return!e;case"-":if("number"!=typeof e)throw new z$(`Cannot apply unary - to non-number: ${e}`);return-e;default:throw new z$(`Unknown operator: ${t.operator}`)}throw new z$(`Postfix operators are not supported: ${t.operator}`)})(t);case V$.ConditionalExpression:return(t=>{const e=r(t.test);return r(e?t.consequent:t.alternate)})(t);default:throw new z$(`Evaluation error: Unsupported node type: ${t.type}`)}};return r(t.body)})(n,i,t)}function K$(t,e){if("string"!=typeof t)return;const n=t.trim();if(n)try{return X$(n),function(t,e={}){return X$(t)(e)}(n,e)}catch(t){return}}function Z$(t){return"number"==typeof t}function Q$(t){if(!t)return[0,0,0];if(Z$(t))return[t,t,t];if(Array.isArray(t)&&0===t.length)return[0,0,0];const[e,n=e,i=e]=t;return[e,n,i]}function J$(t){return null==t}function tA(t){return"string"==typeof t}function eA(t){return"function"==typeof t}function nA(t,e){if("function"==typeof t)return t;if("string"==typeof t){const n=t;return(...t)=>{const i={};for(let n=0;n<e.length;n++)i[e[n]]=t[n];return K$(n,i)}}return()=>t}function iA(t,e,n="node"){if(J$(t))return()=>e;if(tA(t)){const i=nA(t,[n]);return t=>{const n=i(t);return Z$(n)?n:e}}return eA(t)?t:Z$(t)?()=>t:()=>e}function rA(t,e=10,n="node"){if(J$(t))return()=>e;if(tA(t)){const i=nA(t,[n]);return t=>{const n=i(t);return function(t){return!!Z$(t)||!!Array.isArray(t)&&t.every(t=>Z$(t))}(n)?n:e}}return eA(t)?t:Z$(t)||Array.isArray(t)?()=>t:()=>e}function oA(t){var e;return[t.x,t.y,null!==(e=t.z)&&void 0!==e?e:0]}class sA{constructor(t,e={}){this.edgeIdCounter=new Map,this.nodeMap=function(t,e){if(!t)throw new Error("Data.nodes is required");const n=new Map;for(const i of t){const t={_original:i};for(const e of aA){const n=i[e];J$(n)||(t[e]=n)}if(e){const n=e(i);for(const e in n){const i=n[e];J$(i)||(t[e]=i)}}if(J$(t.id))throw new Error("Node is missing id field");n.set(t.id,t)}return n}(t.nodes,e.node),this.edgeMap=function(t,e,n){const i=new Map;for(const r of t){const t={_original:r};for(const e of lA){const n=r[e];J$(n)||(t[e]=n)}if(e){const n=e(r);for(const e in n){const i=n[e];J$(i)||(t[e]=i)}}if(J$(t.source)||J$(t.target))throw new Error("Edge is missing source or target field");J$(t.id)&&(t.id=null==n?void 0:n(r)),i.set(t.id,t)}return i}(t.edges||[],e.edge,this.getEdgeId.bind(this))}data(){return{nodes:this.nodeMap,edges:this.edgeMap}}replace(t){this.nodeMap=t.nodes,this.edgeMap=t.edges,this.clearCache()}nodes(){return Array.from(this.nodeMap.values())}node(t){return this.nodeMap.get(t)}nodeAt(t){this.indexNodeCache||this.buildNodeIndexCache();const e=this.indexNodeCache.get(t);return e?this.nodeMap.get(e):void 0}nodeIndexOf(t){var e;return this.nodeIndexCache||this.buildNodeIndexCache(),null!==(e=this.nodeIndexCache.get(t))&&void 0!==e?e:-1}firstNode(){return this.nodeMap.values().next().value}forEachNode(t){let e=0;this.nodeMap.forEach(n=>t(n,e++))}originalNode(t){const e=this.nodeMap.get(t);return null==e?void 0:e._original}nodeCount(){return this.nodeMap.size}edges(){return Array.from(this.edgeMap.values())}edge(t){return this.edgeMap.get(t)}firstEdge(){return this.edgeMap.values().next().value}forEachEdge(t){let e=0;this.edgeMap.forEach(n=>t(n,e++))}originalEdge(t){const e=this.edgeMap.get(t);return null==e?void 0:e._original}edgeCount(){return this.edgeMap.size}getEdgeId(t){if(t.id)return t.id;const e=`${t.source}-${t.target}`,n=this.edgeIdCounter.get(e)||0,i=0===n?e:`${e}-${n}`;return this.edgeIdCounter.set(e,n+1),i}degree(t,e="both"){this.degreeCache||this.buildDegreeCache();const n=this.degreeCache.get(t);return n?n[e]:0}neighbors(t,e="both"){if(this.outAdjacencyCache&&this.inAdjacencyCache||this.buildAdjacencyCache(),"out"===e)return Array.from(this.outAdjacencyCache.get(t)||[]);if("in"===e)return Array.from(this.inAdjacencyCache.get(t)||[]);if(this.bothAdjacencyCache)return Array.from(this.bothAdjacencyCache.get(t)||[]);const n=this.inAdjacencyCache.get(t),i=this.outAdjacencyCache.get(t);if(!n&&!i)return[];if(!n)return Array.from(i);if(!i)return Array.from(n);const r=new Set;return n.forEach(t=>r.add(t)),i.forEach(t=>r.add(t)),Array.from(r)}successors(t){return this.neighbors(t,"out")}predecessors(t){return this.neighbors(t,"in")}setNodeOrder(t){const e=new Map;for(const n of t)e.set(n.id,n);this.nodeMap=e,this.nodeIndexCache=void 0,this.indexNodeCache=void 0}clearCache(){this.degreeCache=void 0,this.inAdjacencyCache=void 0,this.outAdjacencyCache=void 0,this.bothAdjacencyCache=void 0,this.nodeIndexCache=void 0,this.indexNodeCache=void 0}buildDegreeCache(){this.degreeCache=new Map;for(const t of this.edges()){const{source:e,target:n}=t;if(t.source===t.target)continue;this.degreeCache.has(e)||this.degreeCache.set(e,{in:0,out:0,both:0});const i=this.degreeCache.get(t.source);i&&(i.out++,i.both++),this.degreeCache.has(n)||this.degreeCache.set(n,{in:0,out:0,both:0});const r=this.degreeCache.get(t.target);r&&(r.in++,r.both++)}}buildAdjacencyCache(){this.inAdjacencyCache=new Map,this.outAdjacencyCache=new Map;for(const t of this.edges())this.nodeMap.has(t.source)&&this.nodeMap.has(t.target)&&(this.outAdjacencyCache.has(t.source)||this.outAdjacencyCache.set(t.source,new Set),this.outAdjacencyCache.get(t.source).add(t.target),this.inAdjacencyCache.has(t.target)||this.inAdjacencyCache.set(t.target,new Set),this.inAdjacencyCache.get(t.target).add(t.source))}buildNodeIndexCache(){this.nodeIndexCache=new Map,this.indexNodeCache=new Map;let t=0;this.nodeMap.forEach((e,n)=>{this.nodeIndexCache.set(n,t),this.indexNodeCache.set(t,n),t++})}destroy(){this.clearCache(),this.nodeMap.clear(),this.edgeMap.clear(),this.edgeIdCounter.clear()}}const aA=["id","x","y","z","vx","vy","vz","fx","fy","fz","parentId"],lA=["id","source","target","points"];class cA{constructor(t,e={}){this.graph=new sA(t,e)}export(){return this.graph.data()}replace(t){this.graph.replace(t)}forEachNode(t){this.graph.forEachNode(t)}forEachEdge(t){this.graph.forEachEdge((e,n)=>{e.sourceNode=this.graph.node(e.source),e.targetNode=this.graph.node(e.target),t(e,n)})}destroy(){this.graph.destroy()}}const hA=Symbol("Comlink.proxy"),uA=Symbol("Comlink.endpoint"),dA=Symbol("Comlink.releaseProxy"),fA=Symbol("Comlink.finalizer"),pA=Symbol("Comlink.thrown"),gA=t=>"object"==typeof t&&null!==t||"function"==typeof t,mA={canHandle:t=>gA(t)&&t[hA],serialize(t){const{port1:e,port2:n}=new MessageChannel;return xA(t,e),[n,[n]]},deserialize:t=>(t.start(),wA(t))},yA={canHandle:t=>gA(t)&&pA in t,serialize({value:t}){let e;return e=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}},vA=new Map([["proxy",mA],["throw",yA]]);function xA(t,e=globalThis,n=["*"]){e.addEventListener("message",function i(r){if(!r||!r.data)return;if(!function(t,e){for(const n of t){if(e===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}return!1}(n,r.origin))return void console.warn(`Invalid origin '${r.origin}' for comlink proxy`);const{id:o,type:s,path:a}=Object.assign({path:[]},r.data),l=(r.data.argumentList||[]).map($A);let c;try{const e=a.slice(0,-1).reduce((t,e)=>t[e],t),n=a.reduce((t,e)=>t[e],t);switch(s){case"GET":c=n;break;case"SET":e[a.slice(-1)[0]]=$A(r.data.value),c=!0;break;case"APPLY":c=n.apply(e,l);break;case"CONSTRUCT":c=function(t){return Object.assign(t,{[hA]:!0})}(new n(...l));break;case"ENDPOINT":{const{port1:e,port2:n}=new MessageChannel;xA(t,n),c=function(t,e){return _A.set(t,e),t}(e,[e])}break;case"RELEASE":c=void 0;break;default:return}}catch(t){c={value:t,[pA]:0}}Promise.resolve(c).catch(t=>({value:t,[pA]:0})).then(n=>{const[r,a]=SA(n);e.postMessage(Object.assign(Object.assign({},r),{id:o}),a),"RELEASE"===s&&(e.removeEventListener("message",i),bA(e),fA in t&&"function"==typeof t[fA]&&t[fA]())}).catch(t=>{const[n,i]=SA({value:new TypeError("Unserializable return value"),[pA]:0});e.postMessage(Object.assign(Object.assign({},n),{id:o}),i)})}),e.start&&e.start()}function bA(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function wA(t,e){const n=new Map;return t.addEventListener("message",function(t){const{data:e}=t;if(!e||!e.id)return;const i=n.get(e.id);if(i)try{i(e)}finally{n.delete(e.id)}}),jA(t,n,[],e)}function MA(t){if(t)throw new Error("Proxy has been released and is not useable")}function kA(t){return AA(t,new Map,{type:"RELEASE"}).then(()=>{bA(t)})}const CA=new WeakMap,OA="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{const e=(CA.get(t)||0)-1;CA.set(t,e),0===e&&kA(t)});function jA(t,e,n=[],i=function(){}){let r=!1;const o=new Proxy(i,{get(i,s){if(MA(r),s===dA)return()=>{!function(t){OA&&OA.unregister(t)}(o),kA(t),e.clear(),r=!0};if("then"===s){if(0===n.length)return{then:()=>o};const i=AA(t,e,{type:"GET",path:n.map(t=>t.toString())}).then($A);return i.then.bind(i)}return jA(t,e,[...n,s])},set(i,o,s){MA(r);const[a,l]=SA(s);return AA(t,e,{type:"SET",path:[...n,o].map(t=>t.toString()),value:a},l).then($A)},apply(i,o,s){MA(r);const a=n[n.length-1];if(a===uA)return AA(t,e,{type:"ENDPOINT"}).then($A);if("bind"===a)return jA(t,e,n.slice(0,-1));const[l,c]=EA(s);return AA(t,e,{type:"APPLY",path:n.map(t=>t.toString()),argumentList:l},c).then($A)},construct(i,o){MA(r);const[s,a]=EA(o);return AA(t,e,{type:"CONSTRUCT",path:n.map(t=>t.toString()),argumentList:s},a).then($A)}});return function(t,e){const n=(CA.get(e)||0)+1;CA.set(e,n),OA&&OA.register(t,e,t)}(o,t),o}function EA(t){const e=t.map(SA);return[e.map(t=>t[0]),(n=e.map(t=>t[1]),Array.prototype.concat.apply([],n))];var n}const _A=new WeakMap;function SA(t){for(const[e,n]of vA)if(n.canHandle(t)){const[i,r]=n.serialize(t);return[{type:"HANDLER",name:e,value:i},r]}return[{type:"RAW",value:t},_A.get(t)||[]]}function $A(t){switch(t.type){case"HANDLER":return vA.get(t.name).deserialize(t.value);case"RAW":return t.value}}function AA(t,e,n,i){return new Promise(r=>{const o=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");e.set(o,r),t.start&&t.start(),t.postMessage(Object.assign({id:o},n),i)})}class zA{constructor(){this.worker=null,this.workerApi=null}execute(t,e,n){return vm(this,void 0,void 0,function*(){if(this.worker||(yield this.initWorker()),!this.workerApi)throw new Error("Worker API not initialized");return yield this.workerApi.execute(t,e,n)})}destroy(){this.workerApi&&this.workerApi.destroy(),this.worker&&(this.worker.terminate(),this.worker=null,this.workerApi=null)}initWorker(){return vm(this,void 0,void 0,function*(){const t=this.resolveWorkerPath(),e=t.includes("/lib/")||t.endsWith(".mjs");this.worker=new Worker(t,{type:e?"module":"classic"}),this.workerApi=wA(this.worker)})}resolveWorkerPath(){const t=(()=>{if("undefined"==typeof document)return null;const t=document.currentScript;if(null==t?void 0:t.src)return t.src;const e=document.getElementsByTagName("script");for(let t=e.length-1;t>=0;t--){const n=e[t].src;if(n&&(n.includes("index.js")||n.includes("index.min.js")))return n}return null})();if(t){if(t.includes("index.js")||t.includes("index.min.js")){const e=t.replace(/index(\.min)?\.(m?js)(\?.*)?$/,"worker.js");if(e!==t)return e}const e=t.replace(/\/runtime\/[^/]+\.(m?js)(\?.*)?$/,"/worker.js");if(e!==t)return e;const n=t.replace(/\/[^/]+\.(m?js)(\?.*)?$/,"/worker.js");if(n!==t)return n}return"./worker.js"}}class PA{constructor(t){this.supervisor=null,this.initialOptions=this.mergeOptions(this.getDefaultOptions(),t)}get options(){return this.runtimeOptions||this.initialOptions}mergeOptions(t,e){return Object.assign({},t,e||{})}execute(t,e){return vm(this,void 0,void 0,function*(){this.runtimeOptions=this.mergeOptions(this.initialOptions,e);const{node:n,edge:i,enableWorker:r}=this.runtimeOptions;this.context=new cA(t,{node:n,edge:i}),this.model=this.context.graph;r&&"undefined"!=typeof Worker?yield this.layoutInWorker(t,this.runtimeOptions):yield this.layout(this.runtimeOptions)})}layoutInWorker(t,e){var n;return vm(this,void 0,void 0,function*(){try{this.supervisor||(this.supervisor=new zA);const i=yield this.supervisor.execute(this.id,t,e);null===(n=this.context)||void 0===n||n.replace(i)}catch(t){console.error("Layout in worker failed, fallback to main thread layout.",t),yield this.layout(e)}})}forEachNode(t){this.context.forEachNode(t)}forEachEdge(t){this.context.forEachEdge(t)}destroy(){var t;null===(t=this.context)||void 0===t||t.destroy(),this.model=null,this.context=null,this.supervisor&&(this.supervisor.destroy(),this.supervisor=null)}}var LA={}.toString,IA=function(t,e){return LA.call(t)==="[object "+e+"]"};function TA(t,e){if(t)if(function(t){return Array.isArray(t)}(t))for(var n=0,i=t.length;n<i&&!1!==e(t[n],n);n++);else if(function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}(t))for(var r in t)if(t.hasOwnProperty(r)&&!1===e(t[r],r))break}var RA=Object.prototype.hasOwnProperty,BA=function(t,e){if(null===t||!function(t){if(!function(t){return"object"==typeof t&&null!==t}(t)||!IA(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))return{};var n={};return TA(e,function(e){RA.call(t,e)&&(n[e]=t[e])}),n};class WA extends PA{constructor(){super(...arguments),this.id="dagre",this.isCompoundGraph=null,this.config={graphAttributes:["rankdir","align","nodesep","edgesep","ranksep","marginx","marginy","acyclicer","ranker"],nodeAttributes:["width","height"],edgeAttributes:["minlen","weight","width","height","labelpos","labeloffset"]}}getDefaultOptions(){return{directed:!0,multigraph:!0,rankdir:"TB",align:void 0,nodesep:50,edgesep:10,ranksep:50,marginx:0,marginy:0,acyclicer:void 0,ranker:"network-simplex",nodeSize:[0,0],edgeMinLen:1,edgeWeight:1,edgeLabelSize:[0,0],edgeLabelPos:"r",edgeLabelOffset:10}}layout(){return vm(this,void 0,void 0,function*(){const t=new S$.graphlib.Graph({directed:!!this.options.directed,multigraph:!!this.options.multigraph,compound:this.isCompound()});t.setGraph(BA(this.options,this.config.graphAttributes)),t.setDefaultEdgeLabel(()=>({}));const e=rA(this.options.nodeSize,0);this.model.forEachNode(n=>{const i=n._original,[r,o]=Q$(e(i)),s={width:r,height:o};if(t.setNode(String(n.id),s),this.isCompound()){if(J$(n.parentId))return;t.setParent(String(n.id),String(n.parentId))}});const{edgeLabelSize:n,edgeLabelOffset:i,edgeLabelPos:r,edgeMinLen:o,edgeWeight:s}=this.options,a=rA(n,0,"edge"),l=iA(i,10,"edge"),c="string"==typeof r?()=>r:nA(r,["edge"]),h=iA(o,1,"edge"),u=iA(s,1,"edge");this.model.forEachEdge(e=>{const n=e._original,[i,r]=Q$(a(n)),o={width:i,height:r,labelpos:c(n),labeloffset:l(n),minlen:h(n),weight:u(n)};t.setEdge(String(e.source),String(e.target),o,String(e.id))}),$$.layout(t),this.model.forEachNode(e=>{const n=t.node(String(e.id));n&&(e.x=n.x,e.y=n.y,e.size=[n.width,n.height])}),this.model.forEachEdge(e=>{const n=t.edge(String(e.source),String(e.target),String(e.id));if(!n)return;const{width:i,height:r,weight:o,minlen:s,labelpos:a,labeloffset:l,points:c}=n;e.labelSize=[i,r],e.weight=o,e.minLen=s,e.labelPos=a,e.labelOffset=l,e.points=c.map(oA)})})}isCompound(){return null!==this.isCompoundGraph?this.isCompoundGraph:function(t){return IA(t,"Boolean")}(this.options.compound)?this.isCompoundGraph=this.options.compound:(this.isCompoundGraph=this.model.nodes().some(t=>!J$(t.parentId)),this.isCompoundGraph)}}const HA=50,NA=70,FA=10,DA=2,VA=30;Mg("relation-dagre-flow",{component:t=>{var e,n;const{Title:i,Item:r,data:o,rankdir:s="TB",nodesep:a=HA,ranksep:l=NA,edgesep:c=FA,edgeWidth:h=DA,showConnections:u=!0,edgeColorMode:d="gradient",edgeStyle:f="solid",edgeDashPattern:p="5,5",edgeCornerRadius:g=12,edgeRouting:m="orth",showArrow:y=!0,arrowType:v="triangle",padding:x=VA,edgeAnimation:b="none",edgeAnimationSpeed:w=1,options:M}=t,{title:k,desc:C,items:O=[],relations:j=[]}=o,E=i?V(i,{title:k,desc:C}):null;if(!r||0===O.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[E,V(X,{children:V(Au,{indexes:[0],x:0,y:0})})]});const _=new Map,S=new Map,$=new Map,A=new Map,z=new Set,P=new Map;let L=0;const I=O.map((t,e)=>{var n,i;const s=t,a=String(null!==(n=s.id)&&void 0!==n?n:e),l=[e];let c;const h=String(null!==(i=s.group)&&void 0!==i?i:"");if(h){let t=P.get(h);null==t&&(t=L,P.set(h,t),L+=1),c=hd(M,[t])}else c=hd(M,l);const u=c?ud({colorPrimary:c},M):void 0;c&&$.set(a,c);const d=du(V(r,{indexes:l,data:o,datum:s,positionH:"center",positionV:"middle",themeColors:u}));return S.set(a,d),_.set(a,{id:a,indexes:l,datum:s,themeColors:u}),A.set(e,a),z.add(a),{id:a,parentId:s.parentId}}),T=t=>{if(null==t)return null;const e=String(t);if(z.has(e))return e;const n=Number(t);if(!Number.isNaN(n)){const t=A.get(n);if(t)return t}return null},R=j.map((t,e)=>{const n=T(t.from),i=T(t.to);return n&&i?{id:t.id?String(t.id):`edge-${e}`,source:n,target:i,relation:t}:null}).filter(Boolean),B=((t,e)=>{var n,i;const r=new Map;t.forEach(t=>r.set(t,[]));for(const t of e){if(t.source===t.target)return!0;null===(n=r.get(t.source))||void 0===n||n.push({target:t.target,edgeId:t.id}),null===(i=r.get(t.target))||void 0===i||i.push({target:t.source,edgeId:t.id})}const o=new Set,s=(t,e)=>{o.add(t);const n=r.get(t)||[];for(const{target:t,edgeId:i}of n)if(i!==e){if(o.has(t))return!0;if(s(t,i))return!0}return!1};for(const e of t)if(!o.has(e)&&s(e,null))return!0;return!1})(Array.from(z),R),W=B?"dagre":m,H=new WA({rankdir:s,nodesep:a,ranksep:l,edgesep:c,controlPoints:!0,nodeSize:t=>{var e;const n=String(null!==(e=t.id)&&void 0!==e?e:""),i=S.get(n);return i?[i.width,i.height]:[0,0]}});H.execute({nodes:I,edges:R});const N=[];if(H.forEachNode(t=>{var e,n,i,r;const o=String(t.id),s=_.get(o);if(!s)return;const a=S.get(o),l=null!==(e=null==a?void 0:a.width)&&void 0!==e?e:0,c=null!==(n=null==a?void 0:a.height)&&void 0!==n?n:0,h=(null!==(i=t.x)&&void 0!==i?i:0)-l/2,u=(null!==(r=t.y)&&void 0!==r?r:0)-c/2;N.push(Object.assign(Object.assign({},s),{x:h,y:u,width:l,height:c,centerX:h+l/2,centerY:u+c/2}))}),0===N.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[E,V(X,{children:V(Au,{indexes:[0],x:0,y:0})})]});const F=Math.min(...N.map(t=>t.x)),D=Math.min(...N.map(t=>t.y)),Y=x-F,G=x-D,Z=new Map,Q=[];N.forEach(t=>{const e=t.x+Y,n=t.y+G;Q.push(V(r,{indexes:t.indexes,datum:t.datum,data:o,x:e,y:n,positionH:"LR"===s?"normal":"RL"===s?"flipped":"center",positionV:"TB"===s?"normal":"BT"===s?"flipped":"middle",themeColors:t.themeColors})),Z.set(t.id,Object.assign(Object.assign({},t),{x:e,y:n,centerX:e+t.width/2,centerY:n+t.height/2}))});const J=[],tt=[];if(u){const t=ld(M),i=ud(M.themeConfig,M),r=null!==(e=null==i?void 0:i.colorBg)&&void 0!==e?e:"#ffffff",o=null!==(n=null==i?void 0:i.colorText)&&void 0!==n?n:t,a=Math.max(10,4*h),l="TB"===s||"BT"===s,c="ant-line"===b,u=c?p:"",m=c?u:c||"dashed"!==f?"":p,x=c?u.split(",").reduce((t,e)=>t+parseFloat(e.trim()||"0"),0):0,k=c&&x>0?x/(10*w)+"s":"1s",C=g,O=(t,e)=>{const n=Z.get(t),i=Z.get(e);return n&&i?"TB"===s?{start:[n.centerX,n.y+n.height],end:[i.centerX,i.y]}:"BT"===s?{start:[n.centerX,n.y],end:[i.centerX,i.y+i.height]}:"LR"===s?{start:[n.x+n.width,n.centerY],end:[i.x,i.centerY]}:{start:[n.x,n.centerY],end:[i.x+i.width,i.centerY]}:null},j=(t,e)=>{const n=O(t,e);if(!n)return null;const{start:i,end:r}=n;if(l){const t=i[1]+(r[1]-i[1])/2;return{start:i,end:r,points:[i,[i[0],t],[r[0],t],r]}}const o=i[0]+(r[0]-i[0])/2;return{start:i,end:r,points:[i,[o,i[1]],[o,r[1]],r]}};H.forEachEdge(e=>{var n,i,s,l,u,f,p,g,b;const w="orth"===W,M=w?j(String(e.source),String(e.target)):null,O=w?[]:(E=e.points,Array.isArray(E)?E.map(t=>t&&Array.isArray(t)&&t.length>=2?[Number(t[0]),Number(t[1])]:null).filter(t=>!!t&&Number.isFinite(t[0])&&Number.isFinite(t[1])):[]);var E;const _=w?null!==(n=null==M?void 0:M.points)&&void 0!==n?n:[]:O.length?O:(()=>{const t=Z.get(String(e.source)),n=Z.get(String(e.target));return t&&n?[[t.centerX-Y,t.centerY-G],[n.centerX-Y,n.centerY-G]]:[]})();if(!_.length)return;const S=w?0:Y,A=w?0:G,z=w&&null!==(i=null==M?void 0:M.start)&&void 0!==i?i:_[0],P=w&&null!==(s=null==M?void 0:M.end)&&void 0!==s?s:_[_.length-1],L=null===(l=e._original)||void 0===l?void 0:l.relation,I=null!==(u=$.get(String(e.source)))&&void 0!==u?u:t,T=null!==(f=$.get(String(e.target)))&&void 0!==f?f:t,R=`edge-gradient-${String(I)}-${String(T)}`.replace(/[^a-zA-Z0-9_-]/g,""),B="gradient"===d?`url(#${R})`:t;let H="";if(H=C>0?((t,e,n,i)=>{if(t.length<2)return"";const r=(t,e,n)=>Math.min(n,Math.max(e,t)),o=([t,e])=>({x:t+n,y:e+i}),s=[],a=o(t[0]);if(s.push(`M ${a.x} ${a.y}`),2===t.length){const e=o(t[1]);return s.push(`L ${e.x} ${e.y}`),s.join(" ")}for(let n=1;n<t.length-1;n+=1){const i=t[n-1],a=t[n],l=t[n+1],c=a[0]-i[0],h=a[1]-i[1],u=l[0]-a[0],d=l[1]-a[1],f=Math.hypot(c,h),p=Math.hypot(u,d);if(0===f||0===p){const t=o(a);s.push(`L ${t.x} ${t.y}`);continue}const g=r(e,0,Math.min(f,p)/2);if(0===g){const t=o(a);s.push(`L ${t.x} ${t.y}`);continue}const m=u/p,y=d/p,v=o([a[0]-c/f*g,a[1]-h/f*g]),x=o([a[0]+m*g,a[1]+y*g]);s.push(`L ${v.x} ${v.y}`);const b=o(a);s.push(`Q ${b.x} ${b.y} ${x.x} ${x.y}`)}const l=o(t[t.length-1]);return s.push(`L ${l.x} ${l.y}`),s.join(" ")})(_,C,S,A):((t,e,n)=>t.map(([t,i],r)=>`${0===r?"M":"L"} ${t+e} ${i+n}`).join(" "))(_,S,A),!H)return;const N=V(K,{d:H,stroke:B,strokeWidth:h,strokeDasharray:m,fill:"none","data-element-type":"shape",children:c&&V("animate",{attributeName:"stroke-dashoffset",from:String(x),to:"0",dur:k,repeatCount:"indefinite"})});if(tt.push(N),"gradient"===d){J.push(U("linearGradient",{id:R,gradientUnits:"userSpaceOnUse",x1:z[0]+S,y1:z[1]+A,x2:P[0]+S,y2:P[1]+A,children:[V("stop",{offset:"0%",stopColor:I}),V("stop",{offset:"100%",stopColor:T})]}))}if(null==L?void 0:L.label){let t=null;const e=(t=>{if(0===t.length)return null;if(1===t.length)return t[0];let e=0;const n=[];for(let i=0;i<t.length-1;i+=1){const r=t[i],o=t[i+1],s=Math.hypot(o[0]-r[0],o[1]-r[1]);n.push({length:s,start:r,end:o}),e+=s}if(0===e)return t[0];let i=e/2;for(let t=0;t<n.length;t+=1){const e=n[t];if(i<=e.length||t===n.length-1){const t=0===e.length?0:Math.max(0,Math.min(1,i/e.length));return[e.start[0]+(e.end[0]-e.start[0])*t,e.start[1]+(e.end[1]-e.start[1])*t]}i-=e.length}return t[Math.floor(t.length/2)]})(_);if(e&&(t=[e[0]+S,e[1]+A]),t){const e=String(L.label),n=du(V(su,{fontSize:14,fontWeight:"normal",children:e}));tt.push(V(su,{x:t[0]-n.width/2,y:t[1]-n.height/2,width:n.width,height:n.height,fontSize:14,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:o,backgroundColor:r,children:e}))}}const F=null!==(p=null==L?void 0:L.showArrow)&&void 0!==p?p:y,D=null!==(g=null==L?void 0:L.direction)&&void 0!==g?g:"forward",q=null!==(b=null==L?void 0:L.arrowType)&&void 0!==b?b:v,X=_.length-1;if(F&&_.length>1){if("forward"===D||"both"===D){const e=_[X],n=_[X-1],i=Math.atan2(e[1]-n[1],e[0]-n[0]),r=dd(e[0]+S,e[1]+A,i,q,"gradient"===d?T:t,h,a);tt.push(...r)}if("both"===D){const e=_[0],n=_[1],i=Math.atan2(e[1]-n[1],e[0]-n[0]),r=dd(e[0]+S,e[1]+A,i,q,"gradient"===d?I:t,h,a);tt.push(...r)}}})}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[E,U(X,{children:[V(q,{children:J}),V(X,{width:0,height:0,children:tt}),V(Vu,{children:Q}),V(Pu,{})]})]})},composites:["title","item"]});Mg("relation-network",{component:t=>{const{Title:e,Item:n,data:i,spacing:r=120,showConnections:o=!0,options:s}=t,{title:a,desc:l,items:c=[]}=i,h=e?V(e,{title:a,desc:l}):null;if(0===c.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,V(X,{children:V(Vu,{})})]});const u=du(V(n,{indexes:[0],data:i,datum:c[0],positionH:"center"}));const{nodes:d,links:f}=function(){const t=c.map((t,e)=>({id:e,data:t,isCenter:0===e,_originalIndex:[e]})),e=c.slice(1).map((t,e)=>({source:0,target:e+1})),n=Fp.A(t).force("link",Hp.A(e).id(t=>t.id).distance(r)).force("charge",Np.A().strength(-50)).force("center",Bp.A(0,0)).force("collision",Wp.A().radius(Math.max(u.width,u.height)/2+10));for(let t=0;t<300;++t)n.tick();return{nodes:t,links:e}}(),p=Math.min(...d.map(t=>{var e;return null!==(e=t.x)&&void 0!==e?e:0})),g=Math.min(...d.map(t=>{var e;return null!==(e=t.y)&&void 0!==e?e:0})),m=Math.max(0,u.width/2-p),y=Math.max(0,u.height/2-g),v=d.map(t=>{if(null==t.x||null==t.y)return null;const e=t.x+m-u.width/2,r=t.y+y-u.height/2,{positionH:o,positionV:s}=((t,e)=>({positionH:t<-50?"flipped":t>50?"normal":"center",positionV:e<-50?"flipped":e>50?"normal":"middle"}))(t.x,t.y);return V(n,{indexes:t._originalIndex,datum:t.data,data:i,x:e,y:r,positionH:o,positionV:s})}).filter(Boolean),x=new Map(d.map(t=>[t.id,t])),b=o?f.map(t=>{const e="object"==typeof t.source?t.source:x.get(t.source),n="object"==typeof t.target?t.target:x.get(t.target);if(!e||!n||null==e.x||null==e.y||null==n.x||null==n.y)return null;return V(K,{d:`M ${e.x+m} ${e.y+y} L ${n.x+m} ${n.y+y}`,stroke:ld(s),strokeWidth:2,strokeOpacity:.6})}).filter(Boolean):[];return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,U(X,{children:[V(X,{children:b}),V(Vu,{children:v})]})]})},composites:["title","item"]});var UA=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const YA=t=>{var{width:e=25,height:n=25,colorPrimary:i="#6699FF",rotation:r=0}=t,o=UA(t,["width","height","colorPrimary","rotation"]);const s=`gradient-arrow-stroke-${i.replace("#","")}`,a=`gradient-arrow-fill-${i.replace("#","")}`,l=Math.round(.515*e),c=Math.round(.275*n),h=Math.round(.875*n);return U(D,{children:[V(Q,Object.assign({},o,{width:e,height:n,points:[{x:0,y:c},{x:l,y:c},{x:l,y:.075*n},{x:e,y:.575*n},{x:l,y:1.075*n},{x:l,y:h},{x:0,y:h}],fill:`url(#${a})`,stroke:`url(#${s})`,transform:`rotate(${r} ${e/2} ${n/2})`,"data-element-type":"shape"})),U(q,{children:[U("linearGradient",{id:a,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[V("stop",{offset:"0%","stop-color":i,"stop-opacity":"0.36"}),V("stop",{offset:"100%","stop-color":i,"stop-opacity":"0"})]}),U("linearGradient",{id:s,x1:"100%",y1:"0%",x2:"0%",y2:"0%",children:[V("stop",{offset:"0%","stop-color":i}),V("stop",{offset:"58%","stop-color":i,"stop-opacity":"0"})]})]})]})},qA=({text:t,x:e=0,y:n=0,fontSize:i=56,fontWeight:r="bold",fill:o="#FFFFFF",textAnchor:s="middle",dominantBaseline:a="middle",shadowOffsetX:l=2,shadowOffsetY:c=4,midShadowOffsetX:h=1,midShadowOffsetY:u=2,deepShadowOpacity:d=.3,midShadowOpacity:f=.5})=>U(X,{children:[V("text",{x:e,y:n,fontSize:i,fontWeight:r,fill:o,fillOpacity:d,textAnchor:s,dominantBaseline:a,transform:`translate(${l}, ${c})`,children:t}),V("text",{x:e,y:n,fontSize:i,fontWeight:r,fill:o,fillOpacity:f,textAnchor:s,dominantBaseline:a,transform:`translate(${h}, ${u})`,children:t}),V("text",{x:e,y:n,fontSize:i,fontWeight:r,fill:o,textAnchor:s,dominantBaseline:a,children:t})]});var GA=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const XA=t=>{var{width:e=25,height:n=25,colorPrimary:i="#6699FF",rotation:r=0,strokeWidth:o=4}=t,s=GA(t,["width","height","colorPrimary","rotation","strokeWidth"]);return V(Q,Object.assign({},s,{width:e,height:n,points:[{x:e/2,y:0},{x:e,y:n},{x:0,y:n}],fill:i,stroke:i,strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",transform:`rotate(${r} ${e/2} ${n/2})`}))},KA=240,ZA=U("filter",{id:"sequence-ascending-stairs-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[V("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),V("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),V("feOffset",{dx:"0",dy:"4"}),V("feGaussianBlur",{stdDeviation:"6"}),V("feComposite",{in2:"hardAlpha",operator:"out"}),V("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),V("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow"}),V("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow",result:"shape"})]});Mg("sequence-ascending-stairs-3d",{component:t=>{const{Title:e,Item:n,data:i,options:r,cubeWidth:o=KA}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null;if(0===l.length){const t=V(Au,{indexes:[0],x:0,y:0});return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[V(q,{children:ZA}),c,V(X,{children:V(Pu,{children:t})})]})}const h=du(V(Au,{indexes:[0]})),u=[],d=[],f=[],p=o/KA,g=180*p;return l.forEach((t,e)=>{const s=[e],a=hd(r,s),c=e*(o+-118),m=118*(l.length-1-e),y=`cube-gradient-bottom-${e}`,v=`cube-gradient-top-${e}`,x=`cube-gradient-stroke-${e}`;f.push(U(X,{x:c,y:m,id:`cube-${e}`,width:o,height:g,filter:"url(#sequence-ascending-stairs-3d-shadow-filter)",children:[U(q,{children:[U("linearGradient",{id:y,x1:"0",y1:"124.5",x2:"238.9",y2:"124.5",gradientUnits:"userSpaceOnUse",children:[V("stop",{offset:"0",stopColor:a,stopOpacity:"0.8"}),V("stop",{offset:"1",stopColor:a,stopOpacity:"0.4"})]}),U("linearGradient",{id:v,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[V("stop",{offset:"0",stopColor:a,stopOpacity:"0.9"}),V("stop",{offset:"1",stopColor:a,stopOpacity:"0.5"})]}),U("linearGradient",{id:x,x1:"119.5",y1:"0",x2:"119.5",y2:"138.5",gradientUnits:"userSpaceOnUse",children:[V("stop",{offset:"0",stopColor:a}),V("stop",{offset:"1",stopColor:a,stopOpacity:"0.7"})]})]}),U(qu,{transform:`scale(${p})`,children:[V(K,{d:"M238.9 69.7a6 6 0 0 1-.1 1v.2l-.2.3v.3l-.1.3a6.2 6.2 0 0 1-.3.6l-.1.3-.2.3-.2.4-.3.5-.1.1a10.9 10.9 0 0 1-.8 1v.1l-.5.5h-.1l-.4.4-.3.3-.3.2-.3.3-.4.2a13 13 0 0 1-.7.5l-.4.3-.5.3-97.5 56.7-.7.4h-.2l-.6.4h-.1l-.8.4h-.2l-.6.4h-.2l-.8.3h-.2l-.5.3-.5.1-.5.1-.5.2h-.5a33.7 33.7 0 0 1-3.2.7h-.2l-1 .2h-1.6l-.7.1h-4.7l-.8-.1h-.2a38.2 38.2 0 0 1-2-.4h-.4l-.7-.2h-.4l-.7-.2-.4-.1a27.3 27.3 0 0 1-2.2-.7h-.2a44.2 44.2 0 0 1-.9-.3l-.5-.3-.4-.1-.5-.2-.3-.2-.5-.2-.3-.2-.8-.4L6.5 78C2.2 75.6 0 72.4 0 69v41.7c0 3.2 2.1 6.5 6.4 9l98.1 56.6a23.2 23.2 0 0 0 1 .6l.6.3.3.1.5.2.4.2.3.1h.2l.2.2a21.4 21.4 0 0 0 1.9.6l.3.1h.2l.7.2a77.6 77.6 0 0 1 1.1.3h.3l.7.2h.4a42.5 42.5 0 0 0 1 .2l1 .2h1.1l.4.1h2.1l.7.1h1.5a22 22 0 0 0 1.8-.2h.4l1.1-.1h.2l1.2-.2h.1l.3-.1.6-.1a12.5 12.5 0 0 0 1-.3h.5l.5-.2a29 29 0 0 0 1-.3h.2l.3-.2h.2a27 27 0 0 0 1.6-.7h.2l.8-.4a19.4 19.4 0 0 0 1.6-.9l97.5-56.7.3-.1.2-.2.4-.2.4-.3.3-.2.3-.3.4-.2.3-.3.3-.3h.1l.3-.3.5-.6h.1l.3-.5h.1v-.1l.4-.4v-.1l.4-.5v-.1l.1-.2.1-.2.2-.3.1-.3.1-.3.1-.1a6.9 6.9 0 0 0 .2-.8l.1-.3v-.4l.1-.3v-1l.2-41.4v.4Z",fill:`url(#${y})`}),V(K,{d:"M232.5 60.4c8.5 4.9 8.5 12.8.1 17.7l-97.5 56.7c-8.4 4.9-22 4.9-30.5 0L6.5 78C-2 73-2 65.3 6.4 60.4l97.5-56.7c8.4-5 22-5 30.5 0l98.1 56.7Z",fill:`url(#${v})`}),V(K,{d:"M119.1 0A31 31 0 0 0 104 3.7L6.4 60.4C-2 65.3-2 73.2 6.4 78l98.2 56.7c4.2 2.4 9.8 3.7 15.3 3.7a31 31 0 0 0 15.2-3.7L232.6 78c8.4-5 8.4-12.8 0-17.7L134.3 3.7A31.2 31.2 0 0 0 119.1 0Zm0 2.5c5.4 0 10.3 1.2 14 3.3l98.2 56.7c3.3 2 5.1 4.3 5.1 6.8 0 2.4-1.8 4.7-5 6.6l-97.5 56.7a28.3 28.3 0 0 1-14 3.4c-5.3 0-10.3-1.2-14-3.4L7.7 76c-3.3-1.9-5-4.3-5-6.7 0-2.4 1.7-4.8 5-6.7L105 5.8a29 29 0 0 1 14-3.3Z",fill:`url(#${x})`})]}),V(qA,{text:e+1,x:115,y:65,fontSize:56})]}));if(d.push(V(n,{indexes:s,datum:t,data:i,x:c+o+40,y:m+g/2,positionH:"normal"})),u.push(V(zu,{indexes:s,x:c+o-h.width/2,y:m-h.height/2})),0===e&&u.push(V(Au,{indexes:[0],x:c-30-h.width/2,y:m+g/2-h.height/2})),e<l.length-1){u.push(V(Au,{indexes:[e+1],x:c+o-h.width/2,y:(m+g/2+118*(l.length-1-(e+1))+g/2)/2-h.height/2}))}else u.push(V(Au,{indexes:[l.length],x:c+o+30-h.width/2,y:m+g/2-h.height/2}))}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[V(q,{children:ZA}),c,U(X,{x:0,y:0,children:[V(X,{children:f}),V(Vu,{children:d}),V(Pu,{children:u})]})]})},composites:["title","item"]});Mg("sequence-ascending-steps",{component:t=>{const{Title:e,Item:n,data:i,hGap:r=0,vGap:o=0}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null,h=du(V(n,{indexes:[0],data:i,datum:l[0]})),u=[],d=[],f=h.width+r,p=h.height/2+o,g=h.width/2,m=0+(l.length-1)*p;return l.forEach((t,e)=>{const o=g+e*f,s=m-e*p,a=[e];u.push(V(n,{indexes:a,datum:t,data:i,x:o,y:s})),d.push(V(zu,{indexes:a,x:o+h.width-30,y:s+h.height/2+10})),d.push(V(Au,{indexes:a,x:o+h.width+r/2,y:s-30}))}),U(Zu,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,U(X,{children:[V(Vu,{children:u}),V(Pu,{children:d})]})]})},composites:["title","item"]});Mg("sequence-circle-arrows",{component:t=>{const{Title:e,Item:n,data:i,options:r,radius:o=150,arrowSize:s=4,strokeWidth:a=10}=t,{title:l,desc:c,items:h=[]}=i,u=du(V(Au,{indexes:[0]})),d=ld(r);if(!n){const t=e?V(e,{title:l,desc:c}):null;return U(Zu,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[t,V(X,{children:V(Pu,{children:V(Au,{indexes:[0],x:0,y:0})})})]})}const f=h.length;if(0===f){const t=e?V(e,{title:l,desc:c}):null;return U(Zu,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[t,V(X,{children:V(Pu,{children:V(Au,{indexes:[0],x:0,y:0})})})]})}const p=du(V(n,{indexes:[0],data:i,datum:h[0]})),g=2*Math.PI/f,m=[];let y=1/0,v=1/0,x=-1/0,b=-1/0;for(let t=0;t<f;t++){const e=t*g-Math.PI/2,n=0+o*Math.cos(e),i=0+o*Math.sin(e);m.push({x:n,y:i}),y=Math.min(y,n),v=Math.min(v,i),x=Math.max(x,n),b=Math.max(b,i)}const w=[];for(let t=0;t<f;t++){const e=m[t],n=m[(t+1)%f],i=Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2)),r=Math.min(.5*i,100),o=(e.x+n.x)/2,s=(e.y+n.y)/2;y=Math.min(y,o-r/2),v=Math.min(v,s-r/2),x=Math.max(x,o+r/2),b=Math.max(b,s+r/2);const a=Math.atan2(s-0,o-0);let l,c;const h=180*(a<0?a+2*Math.PI:a)/Math.PI,d=r/2+20,g=o+Math.cos(a)*d,M=s+Math.sin(a)*d;h>=337.5||h<22.5?(l=g,c=M-p.height/2):h>=22.5&&h<67.5?(l=g,c=M):h>=67.5&&h<112.5?(l=g-p.width/2,c=M):h>=112.5&&h<157.5?(l=g-p.width,c=M):h>=157.5&&h<202.5?(l=g-p.width,c=M-p.height/2):h>=202.5&&h<247.5?(l=g-p.width,c=M-p.height):h>=247.5&&h<292.5?(l=g-p.width/2,c=M-p.height):(l=g,c=M-p.height),w.push({lineLength:i,circleBigW:r,midX:o,midY:s,itemX:l,itemY:c}),y=Math.min(y,l),v=Math.min(v,c),x=Math.max(x,l+p.width+u.width+5),b=Math.max(b,c+p.height)}const M=Math.max(0,-y),k=Math.max(0,-v),C=e?V(e,{title:l,desc:c}):null,O=[],j=[],E=[],_=[],S=m.map(t=>({x:t.x+M,y:t.y+k}));for(let t=0;t<f;t++){const e=S[t],n=S[(t+1)%f],i=(t+1)%f,o=[t],{lineLength:l,circleBigW:c,midX:h,midY:p}=w[t],g=Math.max(c-20,20),m=Math.max(.4*g,16),y=hd(r,o)||d,v=(n.x-e.x)/l,x=(n.y-e.y)/l,b=Math.min(5,(l-(10+s))/2),C=Math.max(0,e.x+v*b),j=Math.max(0,e.y+x*b),$=Math.max(0,n.x-v*b),A=Math.max(0,n.y-x*b),z=cg.A().x(t=>Math.max(0,t.x)).y(t=>Math.max(0,t.y)).curve(gg.A),P=z([{x:C,y:j},{x:$,y:A}])||"",L=`fork-arrow-${y.replace(/[^a-zA-Z0-9]/g,"")}-${t}`;_.push(V("marker",{id:L,viewBox:`${-s} ${.6*-s} ${1.2*s} ${1.2*s}`,refX:.08*-s,refY:0,markerWidth:s,markerHeight:s,orient:"auto",markerUnits:"strokeWidth",children:V("path",{d:`\n M ${.6*-s} ${.4*-s}\n L 0 0\n L ${.6*-s} ${.4*s}\n `,fill:"none",stroke:y,strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"})})),E.push(V(K,{d:P,stroke:y,strokeWidth:a,fill:"none",markerEnd:`url(#${L})`,strokeLinecap:"round","data-element-type":"shape"}));const I=h+M,T=p+k,R=ud({colorPrimary:y||d},r);E.push(V(G,{x:Math.max(0,I-c/2),y:Math.max(0,T-c/2),width:c,height:c,fill:R.colorPrimaryBg,"data-element-type":"shape"})),E.push(V(G,{x:Math.max(0,I-g/2),y:Math.max(0,T-g/2),width:g,height:g,fill:"#ffffff"})),E.push(V(Hu,{x:Math.max(0,I-m/2),y:Math.max(0,T-m/2),size:m,indexes:o,fill:y}));const B=Math.max(0,I-u.width/2),W=Math.max(0,T-u.height/2);O.push(V(Au,{indexes:[i],x:B,y:W}))}for(let t=0;t<f;t++){const e=[t],r=h[t],{itemX:o,itemY:s}=w[t],a=Math.max(0,o+M),l=Math.max(0,s+k);j.push(V(n,{indexes:e,datum:r,data:i,x:a,y:l}));const c=Math.max(0,a+p.width+5),d=Math.max(0,l+p.height/2-u.height/2);O.push(V(zu,{indexes:e,x:c,y:d}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[C,U(X,{x:0,y:0,children:[V(q,{children:_}),V(X,{children:E}),V(Vu,{children:j}),V(Pu,{children:O})]})]})},composites:["title","item"]});Mg("sequence-circular",{component:t=>{const{Title:e,Item:n,data:i,options:r,outerRadius:o=180,innerRadius:s=120,itemDistance:a=310,gapAngle:l=5,iconRadius:c=34,iconBgRadius:h=38,iconSize:u=36}=t,{title:d,desc:f,items:p=[]}=i,g=e?V(e,{title:d,desc:f}):null,m=Math.max(a+100,o+50),y=Math.min(a,o),v=du(V(Au,{indexes:[0]}));if(0===p.length)return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[g,V(X,{children:V(Pu,{children:V(Au,{indexes:[0],x:m-20,y:y-20})})})]});const x=[],b=[],w=[],M=[],k=du(V(n,{indexes:[0],data:i,datum:p[0]})),C=(360-p.length*l)/p.length,O=(t,e,n,i,r,o)=>{const s=r*Math.PI/180,a=o*Math.PI/180,l=t+n*Math.cos(s),c=e+n*Math.sin(s),h=o-r<=180?"0":"1";return[`M ${l} ${c}`,`L ${t+i*Math.cos(s)} ${e+i*Math.sin(s)}`,`A ${i} ${i} 0 ${h} 1 ${t+i*Math.cos(a)} ${e+i*Math.sin(a)}`,`L ${t+n*Math.cos(a)} ${e+n*Math.sin(a)}`,`A ${n} ${n} 0 ${h} 0 ${l} ${c}`,"Z"].join(" ")},j=({centerX:t,outerRadius:e,angleRad:n,btnBounds:i})=>({x:t+(e+20)*Math.cos(n)-i.width/2,y:y+(e+20)*Math.sin(n)-i.height/2}),E=6/((s+o)/2)*(180/Math.PI);p.forEach((t,e)=>{const d=[e],f=e*(C+l)+270,p=f+C,g=(f+p)/2,_=g*Math.PI/180,S=hd(r,d),$=S+"40",A=O(m,y,s,o,f,p);w.push(V(K,{d:A,fill:$,width:2*o,height:2*o,"data-element-type":"shape"}));const z=O(m,y,s+6,o-6,f+E,p-E);w.push(V(K,{d:z,fill:S,width:2*o,height:2*o,"data-element-type":"shape"}));const P=(s+o)/2,L=m+P*Math.cos(_),I=y+P*Math.sin(_);M.push(V(G,{x:L-h,y:I-h,width:2*h,height:2*h,fill:"#ffffff","data-element-type":"shape"})),M.push(V(G,{x:L-c,y:I-c,width:2*c,height:2*c,fill:S,"data-element-type":"shape"})),t.icon&&M.push(V(Hu,{x:L-u/2,y:I-u/2,indexes:d,size:u,fill:"#fff"}));const T=(g%360+360)%360,R=T>=75&&T<=105;let B,W="normal",H="normal";R?(B=T,H="normal",W="center"):T>=270||T<=90?(B=T>=270?(T-270)/90*60-60:T/90*60,W="normal"):(B=120+(T-90)/180*120,W="flipped");const N=B*Math.PI/180,F=m+a*Math.cos(N)-k.width/2;let D=y+a*Math.sin(N)-k.height/2;R&&(D=y+o+k.height/2),b.push(V(n,{indexes:d,datum:t,data:i,x:F,y:D,positionH:W,positionV:H}));const U=a+40,Y=m+U*Math.cos(N)-v.width/2,q=y+U*Math.sin(N)-v.height/2;x.push(V(zu,{indexes:d,x:Y,y:q}));const X=(f+C+l/2)*Math.PI/180,{x:Z,y:Q}=j({centerX:m,outerRadius:o,angleRad:X,btnBounds:v});x.push(V(Au,{indexes:[e+1],x:Z,y:Q}))});const _=(270-l/2)*Math.PI/180,{x:S,y:$}=j({centerX:m,outerRadius:o,angleRad:_,btnBounds:v});return x.unshift(V(Au,{indexes:[0],x:S,y:$})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:70,children:[g,U(X,{children:[V(X,{children:w}),V(X,{children:M}),V(Vu,{children:b}),V(Pu,{children:x})]})]})},composites:["title","item"]});Mg("sequence-color-snake-steps",{component:t=>{const{Title:e,Item:n,data:i,gap:r=0,rowGap:o=0,itemsPerRow:s=3,circleStrokeWidth:a=18,options:l}=t,{title:c,desc:h,items:u=[]}=i,d=e?V(e,{title:c,desc:h}):null,f=ld(l),p=du(V(Au,{indexes:[0]})),g=du(V(n,{indexes:[0],data:i,datum:u[0],positionH:"center"})),m=[],y=[],v=[],x=(o+g.height)/2,b=x;if(u.forEach((t,e)=>{const c=Math.floor(e/s),h=e%s,d=c%2==1,w=(d?s-1-h:h)*(g.width+r)+b,M=c*(g.height+o),k=[e];if(y.push(V(n,{indexes:k,datum:t,data:i,x:w,y:M,positionH:"center",positionV:e%2==1?"flipped":"normal"})),m.push(V(zu,{indexes:k,x:w+(g.width-p.width)/2,y:M+g.height+10})),0===e&&m.push(V(Au,{indexes:k,x:w+(g.width-p.width)/2,y:M-p.height-10})),e<u.length-1){if(c===Math.floor((e+1)/s))m.push(V(Au,{indexes:[e+1],x:w+(g.width-p.width)/2,y:M-p.height-10}));else{const t=M+g.height/2,n=M+g.height+o+g.height/2;let i,r,s;d?(i=w,s=0,r=`M ${i} ${t} A ${x} ${x} 0 0 ${s} ${i} ${n}`):(i=w+g.width,s=1,r=`M ${i} ${t} A ${x} ${x} 0 0 ${s} ${i} ${n}`);const c=n-t,h=hd(l,k),u=hd(l,[e+1]),y=`gradient-arc-${e}`;v.push(U(D,{children:[V(q,{children:U("linearGradient",{id:y,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:h||f}),V("stop",{offset:"100%",stopColor:u||f})]})}),V(K,{d:r,stroke:`url(#${y})`,strokeWidth:a,fill:"none",width:b,height:c,"data-element-type":"shape"})]}));m.push(V(Au,{indexes:[e+1],x:d?i-x-p.width/2:i+x-p.width/2,y:M+g.height+o/2-p.height/2}))}}}),u.length>0){const t=u.length-1,e=Math.floor(t/s),n=t%s;m.push(V(Au,{indexes:[u.length],x:(e%2==1?s-1-n:n)*(g.width+r)+(g.width-p.width)/2,y:e*(g.height+o)+g.height+p.height+20}))}if(u.length/s>2){const t=(o+g.height)/2,e=hd(l,[0]);v.push(V(J,{x:0,y:g.height/2-a/2,width:t,height:a,fill:e||f,"data-element-type":"shape"}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,U(X,{width:s*g.width+(s-1)*r+2*x,height:Math.ceil(u.length/s)*(g.height+o),children:[V(X,{children:v}),V(Vu,{children:y}),V(Pu,{children:m})]})]})},composites:["title","item"]});const QA=(t,e)=>0===t?0:1===t?e/2:e/2+e/2*3*(t-1),JA=(t,e,n)=>{if(t)return 0;return 2*n+(0===e?2:n)};Mg("sequence-cylinders-3d",{component:t=>{const{Title:e,Item:n,data:i,options:r,cylinderRx:o=28,cylinderRy:s=18,baseHeight:a=120,heightIncrement:l=40,depthSpacing:c=60,itemVerticalAlign:h="top",itemVerticalOffset:u=-12,firstDecorationWidth:d=90}=t,{title:f,desc:p,items:g=[]}=i,m=e?V(e,{title:f,desc:p}):null,y=du(V(n,{indexes:[0],data:i,datum:g[0],positionH:"center"})),v=du(V(Au,{indexes:[0]})),x=ld(r),b=Math.max(6,.15*c),w=((t,e,n,i,r,o,s,a)=>{const l=i+(t-1)*r+t*Math.max(6,.15*o)+100+50,c=l-100;let h=0,u=0,d=0,f=0;if(t>0){const i=0;let r=1/0,o=-1/0;for(let e=0;e<t;e++){const t=e%2==0,s=Math.floor(e/2),a=QA(s,n),l=i+JA(t,s,n)+a;r=Math.min(r,l-n),o=Math.max(o,l+n)}h=0,f=h+e.width+a+s+n,d=f-i+(r+o)/2,u=d+(d-(h+e.width/2))-e.width/2}return{canvasHeight:l,startY:c,leftItemAlignedX:h,rightItemAlignedX:u,cylinderAreaStartX:f}})(g.length,y,o,a,l,c,d,10),{startY:M,leftItemAlignedX:k,rightItemAlignedX:C,cylinderAreaStartX:O}=w,j=[],E=[];g.forEach((t,e)=>{const c=hd(r,[e])||x;j.push(...((t,e)=>{const n=(0,wl.A)(e),i=[];return i.push(U("linearGradient",{id:`cylinderGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:n.toRgbString(),stopOpacity:.7}),V("stop",{offset:"40%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.65}),V("stop",{offset:"70%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:.6}),V("stop",{offset:"100%",stopColor:n.clone().lighten(20).toRgbString(),stopOpacity:.55})]})),i.push(U("linearGradient",{id:`topGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:n.clone().lighten(15).toRgbString(),stopOpacity:1}),V("stop",{offset:"100%",stopColor:"#fafafa",stopOpacity:1})]})),i.push(U("linearGradient",{id:`bottomGradient${t}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:n.clone().darken(8).toRgbString(),stopOpacity:.75}),V("stop",{offset:"50%",stopColor:n.clone().darken(5).toRgbString(),stopOpacity:.7}),V("stop",{offset:"100%",stopColor:n.clone().darken(12).toRgbString(),stopOpacity:.65})]})),i.push(U("linearGradient",{id:`numberGradient${t}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:n.clone().darken(0).toRgbString(),stopOpacity:.9}),V("stop",{offset:"50%",stopColor:n.clone().lighten(5).toRgbString(),stopOpacity:.85}),V("stop",{offset:"100%",stopColor:n.clone().lighten(10).toRgbString(),stopOpacity:.8})]})),i.push(U("linearGradient",{id:`glowGradient${t}`,x1:"0%",y1:"100%",x2:"0%",y2:"0%",children:[V("stop",{offset:"0%",stopColor:"#FFFFFF",stopOpacity:.2}),V("stop",{offset:"90%",stopColor:"#FFFFFF",stopOpacity:0})]})),i})(e,c));const d=((t,e,n,i,r,o,s)=>{const a=t%2==0,l=Math.floor(t/2),c=QA(l,e),h=o-t*r,u=n+t*i,d=h-u;return{x:s+JA(a,l,e)+c,y:d,height:u,bottomY:h,topY:d}})(e,o,a,l,b,M,O),f=((t,e,n,i)=>{const{x:r,topY:o,bottomY:s}=e,a=[];return a.push(V("ellipse",{id:`cylinder-bottom-${t}`,cx:r,cy:s,rx:n,ry:i,fill:`url(#bottomGradient${t})`,opacity:.7})),a.push(V(K,{id:`cylinder-body-${t}`,d:`\n M ${r-n} ${o}\n A ${n} ${i} 0 0 0 ${r} ${o+i}\n A ${n} ${i} 0 0 0 ${r+n} ${o}\n L ${r+n} ${s}\n A ${n} ${i} 0 0 1 ${r} ${s+i}\n A ${n} ${i} 0 0 1 ${r-n} ${s}\n Z\n `,fill:`url(#cylinderGradient${t})`,stroke:"none"})),a.push(V(J,{id:`cylinder-glow-${t}`,x:r-n,y:o-3*i,width:2*n,height:3*i,fill:`url(#glowGradient${t})`})),a.push(V("ellipse",{id:`cylinder-top-${t}`,cx:r,cy:o,rx:n,ry:i,fill:`url(#topGradient${t})`})),a.push(V(su,{id:`cylinder-number-${t}`,width:50,height:50,fontFamily:"Arial Black, sans-serif",fontSize:32,fontWeight:900,fill:`url(#numberGradient${t})`,alignHorizontal:"center",alignVertical:"middle",transform:`translate(${r-10}, ${o-15}) matrix(1, 0, -0.6, 0.6, 0, 0)`,children:t+1})),a})(e,d,o,s),{itemPos:p,lineStartX:g,lineEndX:m,lineY:w}=((t,e,n,i,r,o,s,a,l)=>{const c=t%2==0,h=e.topY+.05*e.height;let u,d,f;c?(u=r,d=u+n.width+l):(u=o,d=u-l),f="top"===s?h:"bottom"===s?h-n.height:h-n.height/2,f+=a;const p=c?e.x-i:e.x+i;return{itemPos:{x:u,y:f},lineStartX:c?p-l:p+l,lineEndX:d,lineY:h}})(e,d,y,o,k,C,h,u,10),_=((t,e,n,i,r)=>{const o=[];return o.push(V("circle",{id:`decoration-dot-start-${t}`,cx:e,cy:i,r:2,fill:r})),o.push(V("line",{id:`decoration-line-${t}`,x1:e,y1:i,x2:n,y2:i,stroke:r,strokeWidth:1,opacity:.8})),o.push(V("circle",{id:`decoration-dot-end-${t}`,cx:n,cy:i,r:2,fill:r,opacity:.9})),o})(e,g,m,w,c);f.push(..._);const S=V(n,{indexes:[e],datum:t,data:i,x:p.x,y:p.y,positionH:e%2==0?"flipped":"normal"}),$=[V(zu,{indexes:[e],x:p.x+y.width/2-v.width/2,y:p.y+y.height+10}),V(Au,{indexes:[e],x:p.x+y.width/2-v.width/2,y:p.y-v.height-10})];E[e]={cylinderNodes:f,itemNode:S,btnNodes:$,itemX:p.x,itemY:p.y}});let _=1/0,S=1/0,$=-1/0,A=-1/0;E.forEach(t=>{const{itemX:e,itemY:n}=t;_=Math.min(_,e),S=Math.min(S,n),$=Math.max($,e+y.width),A=Math.max(A,n+y.height)});const z=$-_,P=A-S,L=[V(q,{children:j})],I=[],T=((t,e,n,i,r)=>{if(0===t)return null;const o=[];for(let s=0;s<t;s++){const t=s%2==0,a=Math.floor(s/2),l=QA(a,e),c=JA(t,a,e);o.push({x:n+c+l,y:i-s*r})}const s=o[0],a=o[o.length-1],l=t>5?16*t:100,c=s.x-e-l,h=s.x+e+l,u=s.y+6+l/6,d=a.x+e+l,f=a.y+6-l/6,p=`\n M ${c} ${u}\n L ${h} ${u}\n L ${d} ${f}\n L ${a.x-e-l} ${f}\n Z\n `,g=`\n M ${h} ${u}\n L ${h} ${u+6}\n L ${d} ${f+6}\n L ${d} ${f}\n Z\n `,m=`\n M ${c} ${u}\n L ${h} ${u}\n L ${h} ${u+6}\n L ${c} ${u+6}\n Z\n `,y=U(D,{children:[U("linearGradient",{id:"basePlateTopGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:"#fafafa",stopOpacity:1}),V("stop",{offset:"50%",stopColor:"#ffffff",stopOpacity:.98}),V("stop",{offset:"100%",stopColor:"#ececec",stopOpacity:.95})]}),U("linearGradient",{id:"basePlateFrontGradient",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:"#e0e0e0",stopOpacity:.95}),V("stop",{offset:"50%",stopColor:"#d2d2d2",stopOpacity:.93}),V("stop",{offset:"100%",stopColor:"#c5c5c5",stopOpacity:.9})]}),U("linearGradient",{id:"basePlateSideGradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[V("stop",{offset:"0%",stopColor:"#b8b8b8",stopOpacity:.92}),V("stop",{offset:"50%",stopColor:"#c0c0c0",stopOpacity:.88}),V("stop",{offset:"100%",stopColor:"#adadad",stopOpacity:.85})]})]});return U(X,{children:[V(q,{children:y}),V(K,{id:"base-plate-front",d:m,fill:"url(#basePlateFrontGradient)",stroke:"#c5c5c5",strokeWidth:.3,opacity:.92}),V(K,{id:"base-plate-side",d:g,fill:"url(#basePlateSideGradient)",stroke:"#aaaaaa",strokeWidth:.3,opacity:.88}),V(K,{id:"base-plate-top",d:p,fill:"url(#basePlateTopGradient)",stroke:"#e5e5e5",strokeWidth:.5,opacity:.93})]})})(g.length,o,O,M,b);T&&L.push(T);for(let t=g.length-1;t>=0;t--){const e=E[t];e&&(L.push(U(X,{children:[V(X,{children:e.cylinderNodes}),e.itemNode]})),I.push(...e.btnNodes))}if(g.length>0){const t=g.length%2==0,e=Math.floor(g.length/2),n=QA(e,o),i=JA(t,e,o);I.push(V(Au,{indexes:[g.length],x:O+i+n,y:M-g.length*b-100}))}return U(Zu,{flexDirection:"column",justifyContent:"center",alignItems:"center",children:[m,U(X,{width:z,height:P,children:[V(Vu,{children:L}),V(Pu,{children:I})]})]})},composites:["title","item"]});const tz=160,ez=260,nz=148,iz=100,rz=100,oz=0,sz=80,az=100,lz=130,cz=8,hz=40,uz=5,dz=.6,fz=3;function pz(t,e,n){return(t+7*e+13*n)%100}function gz(t,e,n,i,r,o,s,a){return{x:Math.max(r,Math.min(t+n,o)),y:Math.max(s,Math.min(e+i,a))}}function mz({count:t,rectX:e,rectY:n,rectWidth:i,rectHeight:r,seed:o}){const s=[],a=cz/2,{cols:l,rows:c}=function(t){const e=Math.ceil(Math.sqrt(1.5*t));return{cols:e,rows:Math.ceil(t/e)}}(t),h=(i-2*a)/(l+1),u=(r-2*a)/(c+1);let d=0;for(let f=0;f<c&&d<t;f++)for(let c=0;c<l&&d<t;c++){const t=pz(o,f,c),l=t%16-8,p=3*t%12-6,g=e+a+(c+1)*h+(f%2==1?h/2:0),m=n+a+(f+1)*u,{x:y,y:v}=gz(g,m,l,p,e+a,e+i-a,n+a,n+r-a);s.push({x:y,y:v,colorIndex:d}),d++}return s}function yz(){const t={x:40,y:25},e={x:160,y:75},n={x:40,y:205},i={x:160,y:255},r=[];for(let o=0;o<=12;o++){const s=o/12,a={x:t.x+(n.x-t.x)*s,y:t.y+(n.y-t.y)*s},l={x:e.x+(i.x-e.x)*s,y:e.y+(i.y-e.y)*s};r.push(`M${a.x} ${a.y}L${l.x} ${l.y}`);const c={x:t.x+(e.x-t.x)*s,y:t.y+(e.y-t.y)*s},h={x:n.x+(i.x-n.x)*s,y:n.y+(i.y-n.y)*s};r.push(`M${c.x} ${c.y}L${h.x} ${h.y}`)}return r.join("")}function vz(t,e){return t.map(t=>V(K,{d:"M4 0L8 4L4 8L0 4Z",fill:hd(e,[t.colorIndex]),x:t.x,y:t.y,width:cz,height:cz,"data-element-type":"shape"}))}Mg("sequence-filter-mesh",{component:t=>{const{Title:e,Item:n,data:i,gap:r=20,options:o}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null,h=du(V(Au,{indexes:[0]})),u=du(V(n,{indexes:[0],data:i,datum:l[0],width:tz,positionH:"center"})),d=[],f=[],p=[],g=ez+r,m=g+u.height+10;if(l.forEach((t,e)=>{const r=e*tz,s=[e],a=hd(o,s),c=function(t,e){return e<=1?hz:Math.round(hz-t/(e-1)*(hz-uz))}(e,l.length),u=mz({count:c,rectX:oz,rectY:sz,rectWidth:az,rectHeight:lz,seed:100*e});d.push(function(t,e,n,i,r){return U(X,{x:e,y:0,width:tz,height:ez,children:[U(qu,{children:[V(K,{d:yz(),stroke:"#D9D9D9",strokeWidth:2}),V(K,{d:`M${rz} 25V260`,stroke:"#BFBFBF",strokeWidth:2,strokeLinecap:"round"}),V(J,{x:oz,y:sz,width:az,height:lz,fill:"#FFCB0E",fillOpacity:.2})]}),V(D,{children:vz(i,r)}),V(su,{x:rz-25,y:0,width:50,height:20,fontSize:20,fontWeight:"bold",alignHorizontal:"center",alignVertical:"top",fill:n,children:String(t+1).padStart(2,"0")})]})}(e,r,a,u,o)),e===l.length-1&&d.push(function(t,e){const n=sz+lz/2-nz/2,i=mz({count:Math.max(Math.round(uz*dz),fz),rectX:0,rectY:14,rectWidth:57,rectHeight:120,seed:999});return U(X,{x:t+tz,y:n,children:[V(K,{d:"M0 13.9679H57.1429V0L100 74L57.1429 148V134.032H0V13.9679Z",width:iz,height:nz,fill:"#FFCB0E",fillOpacity:.2,"data-element-type":"shape"}),V(D,{children:vz(i,e)})]})}(r,o)),f.push(V(n,{indexes:s,datum:t,data:i,width:tz,x:r+rz-tz/2,y:g,positionH:"center"})),p.push(V(zu,{indexes:s,x:r+rz-h.width/2,y:m})),e<l.length-1&&p.push(V(Au,{indexes:[e+1],x:r+tz-h.width/2,y:m}))}),l.length>0){p.unshift(V(Au,{indexes:[0],x:-h.width/2,y:m}));p.push(V(Au,{indexes:[l.length],x:(l.length-1)*tz+tz-h.width/2,y:m}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,U(X,{width:tz*l.length+iz,height:ez+r+u.height,children:[V(X,{children:d}),V(Vu,{children:f}),V(Pu,{children:p})]})]})},composites:["title","item"]});const xz=t=>Math.round(1e10*t)/1e10,bz=(t,e)=>xz(Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))),wz=Math.PI,Mz=2*wz,kz=(t,e,n,i,r,o)=>{const s=Math.atan2(t.y-e.y,t.x-e.x),a=Math.atan2(n.y-e.y,n.x-e.x),l=Math.acos((i*i+o*o-r*r)/(2*i*o)),c=1/Math.tan(l/2),h=((t,e)=>{const n=e-t;return n>wz&&n<Mz||n<0&&n>-wz?-1:1})(s,a);return{prev:s,next:a,main:l,vel:c,dir:h,bis:s+h*l/2}},Cz=Math.PI,Oz=(t,e,n)=>t.reduce((t,i)=>{const{x:r,y:o,angle:{prev:s,next:a},arc:{x:l,y:c,radius:h}}=i,u=-1*i.angle.dir,d=s+u*Cz/2,f=(u*Cz+a-s)%Cz,p="LENGTH"===e?Math.round(u*f*h/n):(n||1)-1,g=f/p,m=[];if(!p||!g)return t.concat({x:r,y:o});for(let t=0;t<=p;t++)m.push({x:l+Math.cos(d+g*t)*h,y:c+Math.sin(d+g*t)*h});return t.concat(m)},[]),jz=(t,e=0)=>{const n=t.length,i=[],r=[],o=[];t.forEach((s,a)=>{const l=t[(a-1+n)%n],c=t[(a+1)%n],h=bz(l,s),u=bz(l,c),d=bz(s,c),f=kz(l,s,c,h,u,d);0===f.main&&(f.main=Number.EPSILON,f.vel=Number.MAX_SAFE_INTEGER),f.main===wz&&(f.vel=0);const p={x:s.x,y:s.y,angle:f,offset:0,arc:{radius:e,hit:e,lim:Math.min(d/f.vel,h/f.vel,s.r||0)},in:{length:h,rest:h},out:{length:d,rest:d},locked:!1,id:a,get prev(){return i[(a-1+n)%n]},get next(){return i[(a+1)%n]}};isNaN(f.main)&&(f.main=0,f.bis=f.prev||f.next,o.push(p)),"number"==typeof s.r&&(0===s.r?o.push(p):r.push(p)),i.push(p)}),o.forEach(t=>{t.angle.vel=0,t.arc.radius=0,Sz(t)}),i.forEach(t=>{t.arc.hit=Math.min(t.out.rest/(t.angle.vel+t.next.angle.vel),t.in.rest/(t.angle.vel+t.prev.angle.vel))});let s=$z(r);for(;s;)Ez(s),s=$z(r);for(s=$z(i);s;)_z(s,e),s=$z(i);const a=i.map(t=>{const e=t.arc.radius/Math.sin(t.angle.main/2);return{id:t.id,x:t.x,y:t.y,angle:{main:xz(t.angle.main),prev:t.angle.prev,next:t.angle.next,bis:t.angle.bis,dir:t.angle.dir},offset:xz(t.offset),arc:{radius:xz(t.arc.radius),x:t.x+(Math.cos(t.angle.bis)*e||0),y:t.y+(Math.sin(t.angle.bis)*e||0)},in:{length:t.in.length,x:t.x+Math.cos(t.angle.prev)*t.offset,y:t.y+Math.sin(t.angle.prev)*t.offset},out:{length:t.out.length,x:t.x+Math.cos(t.angle.next)*t.offset,y:t.y+Math.sin(t.angle.next)*t.offset},get prev(){return a[(t.id-1+n)%n]},get next(){return a[(t.id+1)%n]}}});return a},Ez=t=>{const{prev:e,next:n}=t;t.arc.radius=e.locked&&!n.locked?Math.min(Math.max((t.out.length-n.arc.lim*n.angle.vel)/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel)),t.in.rest/t.angle.vel,t.arc.lim):n.locked&&!e.locked?Math.min(Math.max((t.in.length-e.arc.lim*e.angle.vel)/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel)),t.out.rest/t.angle.vel,t.arc.lim):n.locked&&e.locked?Math.min(t.in.rest/t.angle.vel,t.out.rest/t.angle.vel,t.arc.lim):Math.min(Math.max((t.in.length-e.arc.lim*e.angle.vel)/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel)),Math.max((t.out.length-n.arc.lim*n.angle.vel)/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel)),t.arc.lim),Sz(t)},_z=(t,e)=>{if(e>t.arc.hit){const{prev:e,next:n}=t;t.arc.radius=e.locked&&!n.locked?Math.max(Math.min(t.in.rest/t.angle.vel,t.out.length/(t.angle.vel+n.angle.vel),t.arc.radius),0):n.locked&&!e.locked?Math.max(Math.min(t.out.rest/t.angle.vel,t.in.length/(t.angle.vel+e.angle.vel),t.arc.radius),0):n.locked&&e.locked?Math.max(Math.min(t.in.rest/t.angle.vel,t.out.rest/t.angle.vel,t.arc.radius),0):t.arc.hit}Sz(t)},Sz=t=>{const{prev:e,next:n}=t;t.offset=t.arc.radius*t.angle.vel,e.out.rest-=t.offset,t.in.rest-=t.offset,t.out.rest-=t.offset,n.in.rest-=t.offset,t.locked=!0,e.arc.hit=Math.min(e.in.length/(e.angle.vel+e.prev.angle.vel),e.in.rest/e.angle.vel,e.out.rest/e.angle.vel),n.arc.hit=Math.min(n.out.length/(n.angle.vel+n.next.angle.vel),n.out.rest/n.angle.vel,n.in.rest/n.angle.vel)},$z=t=>t.reduce((t,e)=>e.locked?t:t?e.arc.hit<t.arc.hit?e:t:e,null);Mg("sequence-funnel",{component:t=>{const{Title:e,Item:n,data:i,gap:r=10,width:o=700,funnelWidth:s,itemHeight:a=60,minBottomRatio:l=.25,options:c}=t,{title:h,desc:u,items:d=[]}=i,f=e?V(e,{title:h,desc:u}):null;if(0===d.length)return V(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:f});const p=ud(c.themeConfig),g=null!=s?s:.55*o,m=o-g,y=1.25*a,v=d.length*y+(d.length-1)*r,x=g*l,b=d.map((t,e)=>{const o=[e],s=hd(c,[e])||p.colorPrimary,{points:l,topWidth:h}=function(t,e,n,i,r,o){const s=t/2,a=o*(n+i),l=t-e,c=t-l*(a/r),h=t-l*((a+n)/r),u={x:s-c/2,y:0},d={x:s+c/2,y:0},f={x:s+h/2,y:n};return{points:[u,d,f,{x:s-h/2,y:n}],topWidth:c,bottomWidth:h}}(g,x,y,r,v,e),u=jz(l,6),d=Oz(u,"AMOUNT",10),f=g/2,b=e*(y+r),w=f+h/2,M=w-25,k=m+25-10,C=b+(y-a)/2,O=w+15,j=k-25-15,E=C,_=f-16,S=b+y/2-16,$=`${s.replace("#","")}-funnel-${e}`;return{background:V(J,{x:M,y:C,width:k,height:a,ry:"8",fill:(0,wl.A)(s).setAlpha(.1).toRgbString(),"data-element-type":"shape"}),funnel:[V(q,{children:U("linearGradient",{id:$,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[V("stop",{offset:"0%",stopColor:(0,wl.A)(s).lighten(10).toString()}),V("stop",{offset:"100%",stopColor:s})]})}),V(Q,{points:d,fill:`url(#${$})`,y:b,"data-element-type":"shape",style:{filter:"drop-shadow(0px 2px 3px rgba(0,0,0,0.15))"}})],icon:V(Hu,{indexes:o,x:_,y:S,size:32,fill:"#fff"}),item:V(n,{indexes:o,datum:t,data:i,x:O,y:E,width:j,height:a,positionV:"middle"}),btnRemove:V(zu,{indexes:o,x:M+k,y:C})}}),w=V(Au,{indexes:[d.length],x:o/2,y:v+10});return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,U(X,{width:o,height:v+40,children:[V(X,{children:b.map(t=>t.background)}),V(X,{children:b.flatMap(t=>t.funnel)}),V(X,{children:b.map(t=>t.icon)}),V(Vu,{children:b.map(t=>t.item)}),U(Pu,{children:[b.map(t=>t.btnRemove),w]})]})]})},composites:["title","item"]});Mg("sequence-horizontal-zigzag",{component:t=>{const{Title:e,Item:n,data:i,gap:r=30,cardPadding:o=10,options:s}=t,{title:a,desc:l,items:c=[]}=i,h=e?V(e,{title:a,desc:l}):null,u=ld(s),d=ud({colorPrimary:u},s),f=du(V(Au,{indexes:[0]})),p=du(V(n,{indexes:[0],data:i,datum:c[0],positionH:"center"})),g=[],m=[],y=[],v=p.width+2*o,x=p.height+2*o+30,b=Math.max(f.height+20,40),w=40;if(c.forEach((t,e)=>{const a=e%2==0,l=e*(v+r);let h;h=a?e%4==2?b:b+w:b+w+60;const M=[e],k=hd(s,M)||u;if(a){const t=V(J,{x:l,y:h,width:v,height:x,fill:k===u?d.colorPrimaryBg||"#E8F3FF":`${k}20`,rx:20,ry:20});y.push(t)}m.push(V(n,{indexes:M,datum:t,data:i,x:l+o,y:h+o,positionH:"center",positionV:"normal"}));const C=l+(v-(8*c.length+6*(c.length-1)))/2,O=h+p.height+20;for(let t=0;t<c.length;t++){y.push(V(G,{x:C+14*t,y:O,width:8,height:8,fill:t===e?k:"transparent",stroke:k,strokeWidth:2}))}g.push(V(zu,{indexes:M,x:l+(v-f.width)/2,y:h+x+10})),g.push(V(Au,0===e?{indexes:M,x:l+(v-f.width)/2,y:h-f.height-10}:{indexes:M,x:l-r/2-f.width/2,y:b-f.height-10}))}),c.length>0){const t=[],e=35,n=r/2,i=6,o=0-n,a=b+w+x/2;t.push(`M ${o} ${a-i}`),c.forEach((o,s)=>{const a=s%2==0,l=s*(v+r);let c;c=a?s%4==2?b:b+w:b+w+60;const h=l-n,u=l+v+n,d=c-n,f=c+x+n,p=c+x/2;a?(t.push(`L ${h} ${d+e}`),t.push(`Q ${h} ${d} ${h+e} ${d}`),t.push(`L ${u-e} ${d}`),t.push(`Q ${u} ${d} ${u} ${d+e}`),t.push(`L ${u} ${p-i}`)):(t.push(`L ${h} ${p}`),t.push(`L ${h} ${f-e}`),t.push(`Q ${h} ${f} ${h+e} ${f}`),t.push(`L ${u-e} ${f}`),t.push(`Q ${u} ${f} ${u} ${f-e}`),t.push(`L ${u} ${p+i}`))});const l=c.length-1;let h;h=l%2==0?l%4==2?b:b+w:b+w+60;const d=l*(v+r)+v+n,f=h+x/2,p=t.join(" "),g="gradient-zigzag-path",m=hd(s,[0])||u,M=hd(s,[c.length-1])||u,k=c.map((t,e)=>V("stop",{offset:`${e/(c.length-1)*100}%`,stopColor:hd(s,[e])||u}));y.unshift(U(D,{children:[V(q,{children:V("linearGradient",{id:g,x1:o,y1:a,x2:d,y2:f,gradientUnits:"userSpaceOnUse",children:k})}),V(K,{d:p,stroke:`url(#${g})`,strokeWidth:2,fill:"none",width:(c.length-1)*(v+r)+v+2*n,height:x+120})]})),y.unshift(V(G,{x:o-i,y:a-i,width:2*i,height:2*i,fill:"transparent",stroke:m,strokeWidth:2})),y.unshift(V(G,{x:d-i,y:f-i,width:2*i,height:2*i,fill:"transparent",stroke:M,strokeWidth:2}))}if(c.length>0){g.push(V(Au,{indexes:[c.length],x:(c.length-1)*(v+r)+v+(r-f.width)/2,y:b-f.height-10}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,U(X,{children:[V(qu,{children:y}),V(Vu,{children:m}),V(Pu,{children:g})]})]})},composites:["title","item"]});const Az=350,zz=80,Pz=2,Lz=2,Iz=40,Tz=60,Rz=10;function Bz(t){const{width:e,height:n,colorPrimary:i}=t,r=i,o=wl.A.mix(i,"#000",20).toHexString(),s=wl.A.mix(i,"#fff",50).toHexString(),a=wl.A.mix(s,"#000",15).toHexString();const{leftRipples:l,rightRipples:c,leftBottom:h,rightBottom:u,peak:d,centerBottom:f,leftEdge:p,centerSnow:g,rightEdge:m}=function(t,e){const n={x:0,y:e},i={x:t,y:e},r={x:t/2,y:0},o={x:t/2,y:e},s=.35*e,a=s/e,l={x:r.x*(1-a)+n.x*a,y:s},c={x:r.x,y:s},h={x:r.x*(1-a)+i.x*a,y:s},u=[{position:.25,offset:.1},{position:.45,offset:-.02},{position:.6,offset:.04},{position:.75,offset:-.1}].map(t=>({x:l.x+(h.x-l.x)*t.position,y:s+e*t.offset,position:t.position,offset:t.offset}));u.sort((t,e)=>t.position-e.position);const d=u.filter(t=>t.x<=c.x),f=u.filter(t=>t.x>c.x);return{leftBottom:n,rightBottom:i,peak:r,centerBottom:o,snowLineY:s,leftEdge:l,centerSnow:c,rightEdge:h,leftRipples:d,rightRipples:f}}(e,n),y=[d,p,...l,g],v=[d,g,...c,m],x=[p,...l,g,f,h],b=[g,...c,m,u,f],w=t=>t.map(t=>`${t.x},${t.y}`).join(" ");return U(qu,Object.assign({},t,{children:[V("polygon",{points:w(y),fill:s}),V("polygon",{points:w(v),fill:a}),V("polygon",{points:w(x),fill:r}),V("polygon",{points:w(b),fill:o})]}))}function Wz(t){const e={tiny:27,small:48,medium:54,large:72}[t]||54,n=.7*e,i=e-n,r=.8*n,o=r/6,s=(r-o)/2,a=n;return U(qu,{width:r,height:e,children:[V("ellipse",{cx:r/2,cy:n/2,rx:r/2,ry:n/2,fill:"#17C76F",clipPath:"inset(0 50% 0 0)"}),V("ellipse",{cx:r/2,cy:n/2,rx:r/2,ry:n/2,fill:"#139B57",clipPath:"inset(0 0 0 50%)"}),V("rect",{x:s,y:a,width:o,height:i,fill:"#737373"})]})}function Hz(t){const{width:e,height:n}=t,i=e/2,r=n/2,o=.28*Math.min(e,n),s=.14*Math.min(e,n),a=.07*Math.min(e,n),l=r-a/2,c=.4*a,h=Array.from({length:8},(t,e)=>V("rect",{x:0,y:l,width:s,height:a,rx:c,ry:c,fill:"#FFCB0E",transform:`rotate(${45*e}, ${i}, ${r})`}));return U(qu,Object.assign({},t,{children:[V("circle",{cx:i,cy:r,r:o,fill:"#FFCB0E"}),...h]}))}function Nz(t){return"single"===t.type?V(qu,Object.assign({},t,{width:54,height:36,children:V("path",{d:"M10.2635 13.3806C11.0019 9.99045 12.7381 6.91002 15.2405 4.55004C17.743 2.19007 20.8929 0.662716 24.2701 0.171643C27.6473 -0.31943 31.0914 0.24912 34.143 1.80148C37.1946 3.35385 39.7087 5.81625 41.3501 8.86031C44.8835 9.0468 48.1994 10.6544 50.5684 13.3294C52.9373 16.0044 54.1653 19.5277 53.9821 23.1242C53.7989 26.7207 52.2195 30.0959 49.5914 32.5071C46.9634 34.9184 43.5019 36.1683 39.9684 35.9818H11.1517C4.93436 35.9818 0 30.9593 0 24.6309C0.0598447 21.8016 1.13799 19.093 3.02989 17.0192C4.9218 14.9454 7.49584 13.6506 10.2635 13.3806Z",fill:"#70CAF8"})})):U(qu,Object.assign({},t,{width:73,height:40,children:[V("path",{d:"M61.6461 14.9716C60.8681 11.1875 58.9581 7.73823 56.1763 5.09315C53.3944 2.44806 49.8758 0.735682 46.0992 0.189041C42.3226 -0.357601 38.4714 0.288046 35.0699 2.03812C31.6683 3.7882 28.8815 6.5577 27.0889 9.96971C23.161 10.1687 19.4719 11.9405 16.8333 14.8953C14.1947 17.8502 12.8227 21.746 13.0191 25.7258C13.2155 29.7055 14.9642 33.4433 17.8806 36.1167C20.7969 38.7901 24.642 40.1802 28.5699 39.9812H60.6588C67.5702 39.9812 73.0006 34.4791 73.0006 27.4764C73.0006 20.9739 67.8664 15.4718 61.6461 14.9716Z",fill:"#70CAF8"}),V("path",{d:"M21.9691 6.47136e-09C25.9369 6.47136e-09 29.5264 1.62125 32.0003 4.21094C30.0604 5.7917 28.4423 7.75571 27.2581 10C23.3149 10.1989 19.6111 11.9702 16.9622 14.9238C14.3136 17.8774 12.936 21.772 13.1331 25.75C13.2057 27.2131 13.4902 28.6432 13.9652 30H10.7689C7.96116 29.8907 5.29664 28.7203 3.30402 26.7217C1.31144 24.7231 0.135825 22.0419 0.0110544 19.21C-0.113702 16.378 0.821178 13.6017 2.63019 11.4326C4.43921 9.26356 6.99065 7.8602 9.77766 7.5C11.9582 3.00012 16.6168 8.76701e-05 21.9691 6.47136e-09Z",fill:"#5BA2C6"})]}))}Mg("sequence-interaction",{component:t=>{var e,n,i,r,o,s,a;const l=Math.random().toString(36).slice(2,9),{Title:c,Item:h,data:u,laneGap:d=Az,nodeGap:f=zz,lifelineWidth:p=Pz,arrowWidth:g=Lz,showLifeline:m=!0,padding:y=Iz,arrowType:v="triangle",showLaneHeader:x=!0,laneHeaderHeight:b=Tz,edgeStyle:w="solid",animated:M=!1,edgeColorMode:k="gradient",options:C}=t,O=ud(C.themeConfig,C),j=null!==(e=null==O?void 0:O.colorText)&&void 0!==e?e:"#333333",E=null!==(n=null==O?void 0:O.colorBg)&&void 0!==n?n:"#ffffff",_=null!==(i=null==O?void 0:O.colorTextSecondary)&&void 0!==i?i:"#e0e0e0",S=u,{title:$,desc:A,items:z=[],relations:P=[]}=S,L=c?V(c,{title:$,desc:A}):null;if(!z||0===z.length){const t=du(V(Au,{indexes:[0]}));return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[L,U(X,{children:[V(Pu,{children:V(Au,{indexes:[0],x:-t.width/2,y:-t.height/2})}),V(su,{x:0,y:t.height/2+Rz,width:200,height:40,fontSize:14,alignHorizontal:"center",alignVertical:"middle",fill:null!==(r=null==O?void 0:O.colorTextSecondary)&&void 0!==r?r:"#999",children:"暂无数据"})]})]})}const I=z;let T=0;I.forEach(t=>{var e;null===(e=t.children)||void 0===e||e.forEach((t,e)=>{var n;const i=null!==(n=t.step)&&void 0!==n?n:e;i>T&&(T=i)})});const R=Math.max(1,T+1),B=new Map,W=null===(o=C.design)||void 0===o?void 0:o.item,H=Array.isArray(W)?W[0]:W;let N=null!==(s=null==H?void 0:H.width)&&void 0!==s?s:120,F=null!==(a=null==H?void 0:H.height)&&void 0!==a?a:50;const D=[];if(I.forEach((t,e)=>{var n;null===(n=t.children)||void 0===n||n.forEach((t,n)=>{D.push({datum:t,laneIndex:e,rowIndex:n})})}),(!(null==H?void 0:H.width)||!(null==H?void 0:H.height))&&h&&D.length>0){const t=du(V(h,{indexes:[0],datum:D[0].datum,positionH:"center",positionV:"middle"}));t.width>0&&(N=t.width),t.height>0&&(F=t.height)}let Y=0;P.forEach(t=>{if(t.label){const e=du(V(su,{fontSize:14,fontWeight:"normal",children:t.label}));Y=Math.max(Y,e.width)}});const G=Math.max(d,N+60,N+Y+120),Z=x?b:0,Q=20+R*F+Math.max(0,R-1)*f,tt=Z+Q+2*y+60,et=G*I.length+2*y,nt=t=>y+G/2+t*G,it=t=>y+Z+20+t*(F+f)+F/2,rt=[],ot=[],st=[],at=[];if(x&&I.forEach((t,e)=>{const n=nt(e),i=ud({colorPrimary:hd(C,[e])},C);h&&(ot.push(V(h,{indexes:[e],datum:{label:t.label,icon:t.icon,desc:t.desc},x:n-N/2,y,width:N,height:b-10,themeColors:i,positionH:"center"})),at.push(V(zu,{indexes:[e],x:n+N/2-Rz,y:y-Rz})))}),I.forEach((t,e)=>{var n,i,r,o;null===(n=t.children)||void 0===n||n.forEach((t,n)=>{var i,r;const o=null!==(i=t.step)&&void 0!==i?i:n,s=nt(e),a=it(o),l=s-N/2,c=a-F/2;B.set(t.id,{x:l,y:c,width:N,height:F,centerX:s,centerY:a,laneIndex:e,rowIndex:o});const d=hd(C,[e]),f=ud({colorPrimary:d},C),p=[e,n],g=Object.assign(Object.assign({},t),{_originalIndex:p});h?(rt.push(V(h,{indexes:p,datum:g,data:u,x:l,y:c,positionH:"center",positionV:"middle",themeColors:f})),at.push(V(zu,{indexes:p,x:l+N/2-Rz,y:c+F+5}))):(ot.push(V(J,{x:l,y:c,width:N,height:F,fill:null!==(r=null==f?void 0:f.colorPrimaryBg)&&void 0!==r?r:E,stroke:d,strokeWidth:2,rx:6,"data-element-type":"shape"})),t.label&&ot.push(V(su,{x:l,y:c,width:N,height:F,fontSize:14,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:j,children:t.label})))});const s=null!==(r=null===(i=t.children)||void 0===i?void 0:i.length)&&void 0!==r?r:0;let a=-1;null===(o=t.children)||void 0===o||o.forEach((t,e)=>{var n;const i=null!==(n=t.step)&&void 0!==n?n:e;i>a&&(a=i)});const l=a>=0?it(a):y+Z,c=s>0?l+F/2+20:l+20+Rz,d=nt(e);at.push(V(Au,{indexes:[e,s],x:d-12,y:c}))}),m){const t=new Map;B.forEach(e=>{let n=t.get(e.laneIndex);n||(n=[],t.set(e.laneIndex,n)),n.push({x:e.x,y:e.y,width:e.width,height:e.height})}),I.forEach((e,n)=>{var i;const r=nt(n),o=y+Z,s=tt-y,a=null!==(i=t.get(n))&&void 0!==i?i:[];let c;if(a.length>0){const t=`lifeline-mask-${l}-${n}`;st.push(U("mask",{id:t,maskUnits:"userSpaceOnUse",x:0,y:0,width:et,height:tt,children:[V(J,{x:0,y:0,width:et,height:tt,fill:"white"}),a.map(t=>V(J,{x:t.x,y:t.y-2,width:t.width,height:t.height+4,fill:"black"}))]})),c=`url(#${t})`}ot.push(V(K,{d:`M ${r} ${o} L ${r} ${s}`,stroke:_,strokeWidth:p,strokeDasharray:"5,5",fill:"none","data-element-type":"shape",mask:c})),ot.push(...dd(r,s,Math.PI/2,"triangle",_,1,10))})}const lt=nt(I.length-1)+G/2;at.push(V(Au,{indexes:[I.length],x:I.length>0?lt+20:y,y:y+Z/2-12}));const ct=new Map,ht=new Map,ut=new Map;return P.forEach(t=>{var e;const n=`${t.from}-${t.to}`;ct.has(n)||ct.set(n,[]),null===(e=ct.get(n))||void 0===e||e.push(t);const i=String(t.from),r=String(t.to);i!==r&&(ut.set(i,(ut.get(i)||0)+1),ht.set(r,(ht.get(r)||0)+1))}),P.forEach((t,e)=>{var n,i;const r=String(t.from),o=String(t.to),s=B.get(r),a=B.get(o);if(!s||!a)return;const c=hd(C,[s.laneIndex])||"#000000",h=hd(C,[a.laneIndex])||"#000000",u=ld(C);let d=u||"#999999",f=u||"#999999",p=u||"#999999";const m=`arrow-gradient-${l}-${e}`;"gradient"===k&&(d=`url(#${m})`,f=h,p=c);const{points:y}=((t,e,n,i,r,o,s,a,l)=>{const c=fd(n),h=fd(i),u=r.has(`${e}-${t}`),d=0===n.laneIndex;let f=[];if(t===e){const t=d?c.LT:c.RT,e=d?c.LB:c.RB,n=d?-40:40;f=[[t.x,t.y],[t.x+n,t.y],[e.x+n,e.y],[e.x,e.y]]}else if(n.laneIndex===i.laneIndex){const t=d?c.LB:c.RB,e=d?h.LT:h.RT,n=d?-40:40;f=[[t.x,t.y],[t.x+n,t.y],[e.x+n,e.y],[e.x,e.y]]}else{const t=i.centerX>n.centerX,e=i.centerX<n.centerX,r=Math.abs(n.centerY-i.centerY)<1,d=i.centerY>n.centerY,p=i.x>=n.x+n.width;let g,m;if(r?(g=t?c.RC:c.LC,m=t?h.LC:h.RC):u?d?(g=t?c.RB:c.LT,m=t?h.LT:h.RB):(g=t?c.RT:c.LT,m=t?h.LB:h.RB):(m=1===s&&0===l?t?h.LC:h.RC:d?p?h.LT:h.RT:p?h.LB:h.RB,g=1===o&&0===a?t?c.RC:c.LC:t?c.RB:e?c.LB:c.RB),u&&!r){const t=[g.x,g.y],e=[m.x,m.y];f=[t,[(t[0]+e[0])/2,t[1]],e]}else if(u&&r){const t=[g.x,g.y],e=[m.x,m.y],n=(t[1]+e[1])/2,i=30;f=[t,[(t[0]+e[0])/2,t[0]<e[0]?n-i:n+i],e]}else f=[[g.x,g.y],[m.x,m.y]]}return{points:f}})(r,o,s,a,ct,ut.get(r)||0,ht.get(o)||0,ht.get(r)||0,ut.get(o)||0);let x,b=null;if(t.label){const n=gd(y);if(n){const i=n[0],r=n[1]-10,o=du(V(Du,{indexes:[e],fontSize:14,fontWeight:"normal",children:t.label})),s=i-o.width/2,a=r-o.height/2,c=o.width,h=o.height;x=`edge-mask-${l}-${e}`,st.push(U("mask",{id:x,maskUnits:"userSpaceOnUse",x:0,y:0,width:et,height:tt,children:[V(J,{x:0,y:0,width:et,height:tt,fill:"white"}),V(J,{x:s,y:a,width:c,height:h,fill:"black"})]})),b=V(Du,{indexes:[e],x:i-o.width/2,y:r-o.height/2,width:o.width,height:o.height,fontSize:14,fontWeight:"normal",alignHorizontal:"center",alignVertical:"middle",fill:j,children:t.label})}}const O=(t=>{const e=t.length;if(4===e){const[e,n,i,r]=t;return`M ${e[0]} ${e[1]} C ${n[0]} ${n[1]} ${i[0]} ${i[1]} ${r[0]} ${r[1]}`}if(3===e){const[e,n,i]=t;return`M ${e[0]} ${e[1]} Q ${n[0]} ${n[1]} ${i[0]} ${i[1]}`}if(2===e){const[e,n]=t;return`M ${e[0]} ${e[1]} L ${n[0]} ${n[1]}`}return""})(y);if("gradient"===k){const t=y[0],e=y[y.length-1];st.push(U("linearGradient",{id:m,gradientUnits:"userSpaceOnUse",x1:t[0],y1:t[1],x2:e[0],y2:e[1],children:[V("stop",{offset:"0%",stopColor:c}),V("stop",{offset:"100%",stopColor:h})]}))}ot.push(V(K,{d:O,stroke:d,strokeWidth:g,fill:"none","data-element-type":"shape",mask:x?`url(#${x})`:void 0,strokeDasharray:"solid"===t.lineStyle?void 0:"dashed"===(null!==(n=t.lineStyle)&&void 0!==n?n:w)||M?"5,5":void 0,children:M&&V("animate",{attributeName:"stroke-dashoffset",from:"10",to:"0",dur:"1s",repeatCount:"indefinite"})}));const E=null!==(i=t.direction)&&void 0!==i?i:"forward";[{show:"forward"===E||"both"===E,angle:pd(y,1),point:y[y.length-1],color:f},{show:"both"===E,angle:pd(y,0)+Math.PI,point:y[0],color:p}].forEach(e=>{var n;e.show&&ot.push(...dd(e.point[0],e.point[1],e.angle,null!==(n=t.arrowType)&&void 0!==n?n:v,e.color,g,14))}),b&&ot.push(b)}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c?V(c,{title:$,desc:A}):null,U(X,{children:[V(J,{x:0,y:0,width:et,height:tt,fill:"none"}),V(q,{children:st}),V(X,{children:ot}),V(Vu,{children:rt}),V(Pu,{children:at})]})]})},composites:["title","item"]});Mg("sequence-mountain",{component:t=>{const{Title:e,Item:n,data:i,gap:r=20,minHeight:o=100,maxHeight:s=200,minWidth:a=260,maxWidth:l=300,options:c}=t,{title:h,desc:u,items:d=[]}=i,f=e?V(e,{title:h,desc:u}):null,p=[],g=[],m=[],y=[],v=d.length,x=ud(c.themeConfig),b={single:{width:54,height:36},double:{width:73,height:40}},w=[],M=[];let k=0,C=0;d.forEach((t,e)=>{const n=Math.max(a,Math.min(l,1.6*(o+(s-o)*(v>1?e/(v-1):0))));w.push(n);const i=C;M.push(i),C+=n/2,e===v-1&&(k=i+n)});const O=M[0],j=M[v-1]+w[v-1],E=j-O,_=v>1?(E-r*(v-1))/v:E,S=du(V(n,{indexes:[0],data:i,datum:d[0],width:_})),$=s+r,A=$+32+10;d.forEach((t,e)=>{const a=[e],l=o+(s-o)*(v>1?e/(v-1):0),h=w[e],u=M[e],d=s-l,f=hd(c,[e])||x.colorPrimary;m.push(V(Bz,{colorPrimary:f,x:u,y:d,width:h,height:l}));const g=O+e*(_+r);y.push(V(su,{x:g,y:$,width:_,height:32,fontSize:16,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:f,backgroundColor:f,backgroundOpacity:.5,backgroundRadius:4,children:String(e+1).padStart(2,"0")})),p.push(V(n,{indexes:a,datum:t,data:i,x:g,y:A,width:_}))});const z=du(V(Au,{indexes:[0]})),P=A+S.height+10;if(d.forEach((t,e)=>{const n=O+e*(_+r);g.push(V(zu,{indexes:[e],x:n+_/2-z.width/2,y:P})),e<d.length-1&&g.push(V(Au,{indexes:[e+1],x:n+_+r/2-z.width/2,y:P}))}),v>0){g.unshift(V(Au,{indexes:[0],x:O-r/2-z.width/2,y:P}));g.push(V(Au,{indexes:[v],x:O+(v-1)*(_+r)+_+r/2-z.width/2,y:P})),m.push(V(Hz,{x:k-60-20,y:-35,width:60,height:60}));const t=["tiny","small","medium","large"],e={tiny:27,small:48,medium:54,large:72},n={tiny:14.85,small:26.4,medium:29.7,large:39.6},i=[],o=(t,e,n=5)=>i.some(i=>!(t+e+n<i.x||t>i.x+i.width+n));d.forEach((r,a)=>{const l=M[a],c=w[a],h=a===v-1?3:0===a?1:2;for(let r=0;r<h;r++){const h=100*a+37*r,u=t[17*h%t.length],d=e[u],f=n[u];let p=0,g=0,y=!1;for(;p<20&&!y;){const t=l+.15*c;g=t+(l+.85*c-f-t)*((13*h+19*p)%100/100),o(g,f)||(y=!0),p++}if(y){i.push({x:g,width:f});m.push(V(X,{x:g,y:s-d,children:Wz(u)}))}}});const a=Math.max(1,Math.floor(v/1.5));for(let t=0;t<a;t++){const e=11*t+5*v+1,n=e%2==0?"single":"double",i=b[n];m.push(V(Nz,{type:n,x:O+7*e%100/100*(j-O-i.width),y:13*e%40,width:i.width,height:i.height}))}}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[f,U(X,{children:[V(X,{children:m}),V(X,{children:y}),V(Vu,{children:p}),V(Pu,{children:g})]})]})},composites:["title","item"]});Mg("sequence-pyramid",{component:t=>{const{Title:e,Item:n,data:i,gap:r=10,width:o=700,pyramidWidth:s,itemHeight:a=60,options:l}=t,{title:c,desc:h,items:u=[]}=i,d=e?V(e,{title:c,desc:h}):null;if(0===u.length)return V(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:d});const f=ud(l.themeConfig),p=[],g=[],m=[],y=[],v=null!=s?s:.6*o,x=o-v,b=1.2*a,w=u.length*b+(u.length-1)*r;return u.forEach((t,e)=>{const o=[e],s=0===e,c=hd(l,[e])||f.colorPrimary,{points:h,topWidth:d,bottomWidth:w}=function(t,e,n,i,r){const o=t/2,s=i*e+(i-1)*n,a=r*(e+n),l=a/s*t,c=(a+e)/s*t;let h;if(0===r){h=[{x:o,y:0},{x:o+c/2,y:e},{x:o-c/2,y:e}]}else{h=[{x:o+l/2,y:0},{x:o+c/2,y:e},{x:o-c/2,y:e},{x:o-l/2,y:0}]}return{points:h,topWidth:l,bottomWidth:c}}(v,b,r,u.length,e),M=jz(h,5),k=Oz(M,"AMOUNT",10),C=v/2,O=e*(b+r),j=O+(b-a)/2,E=C+w/2,_=C+d/2-5,S=x+5,$=C-15,A=O+b/2-15+(s?8:0),z=E,P=_+S-E,L=j;m.push(V(J,{x:_,y:j,width:S,height:a,ry:"10",fill:f.colorPrimaryBg,"data-element-type":"shape"}));const I=`${c}-pyramid-${e}`;g.push(V(q,{children:U("linearGradient",{id:I,x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[V("stop",{offset:"0","stop-color":c}),V("stop",{offset:"100%","stop-color":wl.A.mix(c,"#fff",40).toHexString()})]})}),V(Q,{points:k,fill:`url(#${I})`,y:O,"data-element-type":"shape"})),y.push(V(Hu,{indexes:o,x:$,y:A,size:30,fill:"#fff"})),p.push(V(n,{indexes:o,datum:t,data:i,x:z,y:L,width:P,height:a,positionV:"middle"}))}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[d,U(X,{width:o,height:w,children:[V(X,{children:m}),V(X,{children:g}),V(X,{children:y}),V(Vu,{children:p}),V(Pu,{})]})]})},composites:["title","item"]});const Fz={iconSize:50,roadWidth:24,outerRadius:60,rowWidth:400,spacing:30,colorDefault:"#666666"},Dz=(t,e)=>`M ${t} ${e}`,Vz=(t,e)=>`L ${t} ${e}`,Uz=(t,e,n,i)=>`A ${t} ${t} 0 0 ${e} ${n} ${i}`,Yz=(t,{roadWidth:e,innerRadius:n,outerRadius:i})=>{const r=(e+2*n)*t;return{y1:r,y2:r+e,y3:r+e+n,y4:r+e+2*n,y5:r+2*i}};function qz({i:t,direction:e,x:n,y:i,color:r,data:o,itemBounds:s,item:a,Item:l,flipped:c}){const{iconSize:h}=Fz,u="left"===e,d=u?n.x4-h/2:n.x3-h/2,f=i.y3-h/2,p=u?n.x6+Fz.spacing:n.x1-Fz.spacing-s.width,g=i.y3-s.height/2,m=u?c?"flipped":"normal":c?"normal":"flipped";return{icon:V(Nu,{indexes:[t],x:d,y:f,size:h,fill:r}),label:V(su,{width:40,x:u?d-50:d+h+10,y:f+h/2-15,fontSize:30,fill:r,alignHorizontal:u?"right":"left",children:String(t+1).padStart(2,"0")}),item:V(l,{indexes:[t],data:o,datum:a,x:p,y:g,positionH:m})}}function Gz({direction:t,x:e,y:n,color:i,elements:r}){const o="left"===t;r.push(V(XA,{x:o?e.x6+10:e.x1-20,y:n.y3-5,width:10,height:8,rotation:o?90:-90,colorPrimary:i,"data-element-type":"shape"}))}Mg("sequence-roadmap-vertical",{component:t=>{const{Title:e,Item:n,data:i,spacing:r=Fz.spacing,options:o,flipped:s=!1}=t,{title:a,desc:l,items:c=[]}=i,h=e?V(e,{title:a,desc:l}):null,u=du(V(n,{indexes:[0],data:i,datum:c[0],positionH:"center"})),{roadWidth:d,outerRadius:f,rowWidth:p,colorDefault:g}=Fz,m=d/2,y=f-d,v=2*(u.width+r)+p,x=u.width+r,b=x+f,w=x+p-f,M=w+y+d,k=x+p/2,C=[],O=[],j=[],E=[],_=[],S=[],$=[];for(let t=0;t<c.length;t++){const e=hd(o,[t])||g,r=t%2==0?"right":"left",a=0===t,l=t===c.length-1,h=Yz(t,{roadWidth:d,innerRadius:y,outerRadius:f});if("right"===r){const t=a?[M,h.y1]:[w,h.y1],e=[b,h.y1],n=[b,h.y5],i=a?[M,h.y2]:[w,h.y2],r=[b,h.y2];if(C.push(a?Dz(M,h.y1+m):Vz(w,h.y1+m),Vz(b,h.y1+m),Uz(f-m,0,b,h.y4+m)),O.push(a?Dz(...t):Vz(...t),Vz(...e),Uz(f,0,...n)),j.push(Vz(...i),Vz(...r),Uz(y,1,...r)),l){const t=d/2;O.push(Vz(k,h.y5),Vz(k,h.y5+t),Vz(k+d,h.y5-t),Vz(k,h.y4-t),Vz(k,h.y4),Vz(b,h.y4)),C.push(Vz(k,h.y4+m))}}else{const t=[b,h.y2],e=[w,h.y2],n=[w,h.y4],i=[b,h.y1],r=[w,h.y1];if(C.push(Vz(w,h.y1+m),Uz(f-m,1,w,h.y4+m)),O.push(Vz(...t),Vz(...e),Uz(y,1,...n)),j.push(Vz(...i),Vz(...r),Uz(f,0,...r)),l){const t=d/2;O.push(Vz(k,h.y4),Vz(k,h.y4-t),Vz(k-d,h.y4+t),Vz(k,h.y5+t),Vz(k,h.y5),Vz(w,h.y5)),C.push(Vz(k,h.y4+m))}}Gz({direction:r,x:{x1:x,x4:w,x6:M},y:h,color:e,elements:$});const{icon:p,label:v,item:A}=qz({i:t,direction:r,x:{x1:x,x3:b,x4:w,x6:M},y:h,color:e,data:i,itemBounds:u,item:c[t],Item:n,flipped:s});E.push(p),_.push(v),S.push(A)}const A=[...O,...j.reverse(),"Z"],z=c.length*(d+2*y)+1.5*d;return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,U(X,{width:v,height:u.height<=2*f?z:z+u.height-2*f,children:[V(K,{width:p,height:z,d:A.join(" "),fill:g,stroke:g,strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),V(K,{d:C.join(" "),stroke:"white",fill:"none",strokeWidth:"3",strokeDasharray:"8 8",strokeLinecap:"round",strokeLinejoin:"round","data-element-type":"shape"}),U(D,{children:[E,_,S,$]})]})]})},composites:["title","item"]});Mg("sequence-snake-steps",{component:t=>{const{Title:e,Item:n,data:i,gap:r=40,itemsPerRow:o=3,rowGap:s=80,options:a}=t,{title:l,desc:c,items:h=[]}=i,u=e?V(e,{title:l,desc:c}):null,d=ld(a),f=du(V(Au,{indexes:[0]})),p=du(V(n,{indexes:[0],data:i,datum:h[0],positionH:"center"})),g=[],m=[],y=[],v=25;if(h.forEach((t,e)=>{const a=Math.floor(e/o),l=e%o,c=a%2==1,u=(c?o-1-l:l)*(p.width+r),x=a*(p.height+s),b=[e];if(m.push(V(n,{indexes:b,datum:t,data:i,x:u,y:x,positionH:"center"})),g.push(V(zu,{indexes:b,x:u+(p.width-f.width)/2,y:x+p.height+10})),0===e&&g.push(V(Au,{indexes:b,x:u+(p.width-f.width)/2,y:x-f.height-10})),e<h.length-1){const t=Math.floor((e+1)/o),n=(e+1)%o;if(a===t){const i=c?(t%2==1?o-1-n:n)*(p.width+r)+p.width+(r-v)/2:u+p.width+(r-v)/2;y.push(V(YA,{x:i,y:x+p.height/2-12.5,width:v,height:25,colorPrimary:d,rotation:c?180:0})),g.push(V(Au,{indexes:[e+1],x:i+(v-f.width)/2,y:x-f.height-10}))}else{const t=u+p.width/2-12.5,n=x+p.height+(s-25)/2;y.push(V(YA,{x:t,y:n,width:v,height:25,colorPrimary:d,rotation:90})),g.push(V(Au,{indexes:[e+1],x:t+(v-f.width)/2,y:n+(25-f.height)/2}))}}}),h.length>0){const t=h.length-1,e=Math.floor(t/o),n=t%o;g.push(V(Au,{indexes:[h.length],x:(e%2==1?o-1-n:n)*(p.width+r)+(p.width-f.width)/2,y:e*(p.height+s)+p.height+f.height+20}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,U(X,{children:[V(X,{children:y}),V(Vu,{children:m}),V(Pu,{children:g})]})]})},composites:["title","item"]});Mg("sequence-stairs-front",{component:t=>{const{Title:e,Item:n,data:i,options:r,gap:o=16,perspectiveFactor:s=.2,width:a=720}=t,{title:l,desc:c,items:h=[]}=i,u=e?V(e,{title:l,desc:c}):null;if(0===h.length){const t=V(Au,{indexes:[0],x:0,y:0});return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,V(X,{children:V(Pu,{children:t})})]})}const d=ld(r),f=du(V(Au,{indexes:[0]})),p=du(V(n,{indexes:[0],data:i,datum:h[0]||{},positionH:"center"})),g=Math.min(.1*a,100),m=Math.min(.45*a,Math.max(80,a-p.width-12-g)),y=Math.max(24,m*s*.35),v=h.length>1?(56-56*.7)/(h.length-1):0,x=Math.max(f.height+y+20,y+28),b=m/2,w=m+g+12,M=h.map((t,e)=>56-v*e),k=h.map((t,e)=>Math.max(y*(1-.05*e),.7*y)),C=[],O=[],j=h.length-1;C[j]=x,O[j]=0;for(let t=j-1;t>=0;t-=1)O[t]=O[t+1]+k[t]+o,C[t]=C[t+1]+k[t]+M[t+1]+o;const E=O[0]||k[0]||y,_=m*(.55+.1*s),S=m-_,$=h.map((t,e)=>_+S*(0===E?1:O[e]/E)),A=$.map(t=>Math.max(0,w-12-(b+t/2))),z=[],P=[],L=[],I=[],T=[],R=(C[0]||x)+(M[0]||56),B=.8*($[j]||_),W=.65*B,H=.9*($[0]||m);T.push(V(Q,{points:[{x:b,y:0},{x:b+B/2,y:35},{x:b+W/2,y:35},{x:b+H/2,y:R},{x:b-H/2,y:R},{x:b-W/2,y:35},{x:b-B/2,y:35}],fill:"rgba(0,0,0,0.12)",width:H,height:R-0,"data-element-type":"shape"}));let N=C[j]+M[j]/2;h.forEach((t,e)=>{const o=[e],s=$[e],a=k[e],l=b-s/2,c=M[e],h=C[e],u=h-a,g=h+c/2,m=hd(r,o)||d;z.push(V(J,{x:l,y:h,width:s,height:c,fill:m,"data-element-type":"shape"}),V(Q,{points:[{x:l,y:h},{x:l+s,y:h},{x:l+s-a/2,y:u},{x:l+a/2,y:u}],fill:m,opacity:"0.3",width:s,height:a,"data-element-type":"shape"}),V(su,{x:l,y:h,width:s,height:c,fontSize:c/2,fontWeight:"bold",alignHorizontal:"center",alignVertical:"middle",fill:"#ffffff",children:String(e+1).padStart(2,"0")}));const y=l+s,v=g,x=A[e],O=y+x;I.push(V(K,{d:`M ${y} ${v} L ${O} ${v}`,stroke:m,strokeWidth:2,fill:"none",width:x,height:2,"data-element-type":"shape"}),V(K,{d:`M ${O} ${v} L ${O} ${v}`,stroke:m,strokeWidth:6,strokeLinecap:"round",width:1,height:1,"data-element-type":"shape"}));const j=g-p.height/2;P.push(V(n,{indexes:o,datum:t,data:i,x:w,y:j,positionV:"middle"})),L.push(V(zu,{indexes:o,x:w+p.width+10,y:j+p.height/2-f.height/2})),L.push(V(Au,0===e?{indexes:[0],x:w+(p.width-f.width)/2,y:j-f.height-12}:{indexes:o,x:w+(p.width-f.width)/2,y:(N+g)/2-f.height/2})),N=g});return L.push(V(Au,{indexes:[h.length],x:w+(p.width-f.width)/2,y:N-p.height/2+p.height+12})),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[u,U(X,{children:[V(X,{children:T}),V(X,{children:z}),V(X,{children:I}),V(Vu,{children:P}),V(Pu,{children:L})]})]})},composites:["title","item"]});Mg("sequence-steps",{component:t=>{const{Title:e,Item:n,data:i,gap:r=40,options:o}=t,{title:s,desc:a,items:l=[]}=i,c=e?V(e,{title:s,desc:a}):null,h=ld(o),u=du(V(Au,{indexes:[0]})),d=du(V(n,{indexes:[0],data:i,datum:l[0],positionH:"center"})),f=[],p=[],g=[],m=Math.max(u.height+20,30);if(l.forEach((t,e)=>{const o=e*(d.width+r),s=[e];if(p.push(V(n,{indexes:s,datum:t,data:i,x:o,y:m,positionH:"center"})),f.push(V(zu,{indexes:s,x:o+(d.width-u.width)/2,y:m+d.height+10})),f.push(V(Au,0===e?{indexes:s,x:o+(d.width-u.width)/2,y:m-u.height-10}:{indexes:s,x:o-r/2-u.width/2,y:m-u.height-10})),e<l.length-1){g.push(V(YA,{x:o+d.width+(r-25)/2,y:m+d.height/2-12.5,width:25,height:25,colorPrimary:h}))}}),l.length>0){f.push(V(Au,{indexes:[l.length],x:(l.length-1)*(d.width+r)+d.width+(r-u.width)/2,y:m-u.height-10}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[c,U(X,{children:[V(X,{children:g}),V(Vu,{children:p}),V(Pu,{children:f})]})]})},composites:["title","item"]});Mg("sequence-timeline",{component:t=>{const{Title:e,Item:n,data:i,gap:r=10,showStepLabels:o=!0,options:s}=t,{title:a,desc:l,items:c=[]}=i,h=e?V(e,{title:a,desc:l}):null,u=ld(s),d=cd(s),f=du(V(Au,{indexes:[0]})),p=du(V(n,{indexes:[0],data:i,datum:c[0],positionH:"normal"})),g=[],m=[],y=[],v=90,x=120;if(c.length>1){const t=p.height/2+6,e=(c.length-1)*(p.height+r)+p.height/2-6,n=`M 90 ${t} L 90 ${e}`,i="gradient-timeline-line",o=e-t,a=c.map((e,n)=>V("stop",{offset:`${(n*(p.height+r)+p.height/2-t)/o*100}%`,stopColor:hd(s,[n])||u}));y.push(U(D,{children:[V(q,{children:V("linearGradient",{id:i,x1:v,y1:t,x2:v,y2:e,gradientUnits:"userSpaceOnUse",children:a})}),V(K,{d:n,stroke:`url(#${i})`,strokeWidth:2,width:1,height:e-t})]}))}if(c.forEach((t,e)=>{const s=e*(p.height+r),a=s+p.height/2,l=[e];o&&y.push(V(su,{x:10,y:a,width:70,fontSize:18,fontWeight:"bold",alignHorizontal:"left",alignVertical:"middle",fill:d[e%d.length],children:`STEP ${e+1}`})),m.push(V(n,{indexes:l,datum:t,data:i,x,y:s,positionH:"normal"})),y.push(V(G,{x:84,y:a-6,width:12,height:12,fill:d[e%d.length]})),g.push(V(zu,{indexes:l,x:x-f.width-10,y:s+(p.height-f.height)/2})),g.push(V(Au,0===e?{indexes:l,x:x+(p.width-f.width)/2,y:s-f.height-10}:{indexes:l,x:x+(p.width-f.width)/2,y:s-r/2-f.height/2}))}),c.length>0){g.push(V(Au,{indexes:[c.length],x:x+(p.width-f.width)/2,y:(c.length-1)*(p.height+r)+p.height+10}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[h,U(X,{children:[V(qu,{children:y}),V(Vu,{children:m}),V(Pu,{children:g})]})]})},composites:["title","item"]});const Xz=U("filter",{id:"sequence-zigzag-pucks-3d-shadow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[V("feOffset",{dx:"-7",dy:"7",in:"SourceAlpha",result:"offset"}),V("feGaussianBlur",{stdDeviation:"7.5",in:"offset",result:"blurred"}),V("feColorMatrix",{in:"blurred",type:"matrix",values:"0 0 0 0 0 \n 0 0 0 0 0 \n 0 0 0 0 0 \n 0 0 0 0.3 0",result:"shadow"}),V("feBlend",{mode:"normal",in:"SourceGraphic",in2:"shadow"})]});Mg("sequence-zigzag-pucks-3d",{component:t=>{const{Title:e,Item:n,data:i,options:r,gap:o=80}=t,s=120,a=108,{title:l,desc:c,items:h=[]}=i,u=e?V(e,{title:l,desc:c}):null,d=ld(r);if(0===h.length){const t=V(Au,{indexes:[0],x:0,y:0});return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[V(q,{children:Xz}),u,V(X,{children:V(Pu,{children:t})})]})}const f=du(V(n,{indexes:[0],data:i,datum:h[0],positionH:"center"})),p=du(V(Au,{indexes:[0]})),g=[],m=[],y=[];let v=1/0,x=-1/0;const b=f.height+30+a;return h.forEach((t,e)=>{const l=[e],c=hd(r,l),u=e%2==0,w=e*(s+o),M=u?0:f.height+30;v=Math.min(v,M);const k=`puck-gradient-middle-${e}`,C=`puck-gradient-bottom-${e}`;y.push(U(X,{x:w,y:M,id:`puck-${e}`,width:s,height:a,filter:"url(#sequence-zigzag-pucks-3d-shadow-filter)",children:[U(q,{children:[U("linearGradient",{id:k,x1:"115",y1:"55.9991",x2:"15.0002",y2:"55.9991",gradientUnits:"userSpaceOnUse",children:[V("stop",{offset:"0",stopColor:c||d}),V("stop",{offset:"1",stopColor:c||d,stopOpacity:"0.6"})]}),U("linearGradient",{id:C,x1:"115",y1:"72.1803",x2:"15.0002",y2:"72.1803",gradientUnits:"userSpaceOnUse",children:[V("stop",{offset:"0",stopColor:"#F4F4FB"}),V("stop",{offset:"1",stopColor:"#8E8C90"})]})]}),U(qu,{width:120,height:108,children:[V(K,{d:"M4.49144e-05 34.4898C4.49144e-05 37.8786 0.848973 41.152 2.43571 44.2444C4.23516 47.7642 6.98514 51.0472 10.517 54.0009C21.331 63.047 39.4615 68.9814 59.9991 68.9814C80.5385 68.9814 98.6672 63.047 109.483 54.0009C113.013 51.0472 115.765 47.7642 117.564 44.2444C119.149 41.152 120 37.8786 120 34.4898C120 15.4407 93.1364 0 59.9991 0C26.8635 0 4.49144e-05 15.4407 4.49144e-05 34.4898Z",fill:c||d}),V(K,{d:"M4.49145e-05 34.4898V53.9991C4.49145e-05 57.3879 0.848973 60.6613 2.43571 63.7556C9.75425 78.0545 32.7562 88.4907 59.999 88.4907C87.2438 88.4907 110.246 78.0545 117.564 63.7556C119.149 60.6613 120 57.3879 120 53.9991V34.4898C120 37.8786 119.149 41.152 117.564 44.2444C115.765 47.7642 113.013 51.0472 109.483 54.0009C98.6672 63.047 80.5385 68.9814 59.999 68.9814C39.4615 68.9814 21.3309 63.047 10.5169 54.0009C6.98509 51.0472 4.23516 47.7642 2.43567 44.2444C0.848928 41.152 4.49145e-05 37.8786 4.49145e-05 34.4898Z",fill:`url(#${k})`}),V(K,{d:"M0 53.9991V73.5102C0 92.5593 26.8634 108 59.999 108C93.1363 108 120 92.5593 120 73.5102V53.9991C120 57.3879 119.149 60.6613 117.564 63.7556C110.246 78.0545 87.2438 88.4907 59.999 88.4907C32.7562 88.4907 9.75425 78.0545 2.43571 63.7556C0.848973 60.6613 0 57.3879 0 53.9991Z",fill:`url(#${C})`}),V("rect",{fill:"transparent",y:108,width:120,height:20})]}),V("text",{x:65,y:40,width:50,height:50,fontSize:40,fontWeight:"bold",fill:"#FFFFFF",textAnchor:"middle",dominantBaseline:"middle",transform:"rotate(-15 65 40) scale(1, 0.8)",children:e+1})]}));const O=w+(s-f.width)/2,j=u?M+a+30:M-30-f.height;if(x=Math.max(x,j+f.height),m.push(V(n,{indexes:l,datum:t,data:i,x:O,y:j,positionH:"center"})),g.push(V(zu,{indexes:l,x:O+f.width-p.width/2,y:j+f.height-p.height/2})),0===e&&g.push(V(Au,{indexes:[0],x:w+60-p.width/2-(o+s)/2,y:M+54-p.height/2})),e<h.length-1){g.push(V(Au,{indexes:[e+1],x:w+s+o/2-p.width/2,y:(M+54+((e+1)%2==0?0:b)+54)/2-p.height/2}))}else g.push(V(Au,{indexes:[h.length],x:w+s+o/2-p.width/2,y:M+54-p.height/2}))}),U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[V(q,{children:Xz}),u,U(X,{x:0,y:0,children:[V(X,{children:y}),V(Vu,{children:m}),V(Pu,{children:g})]})]})},composites:["title","item"]});const Kz=240,Zz=130,Qz=12,Jz="M132.707 30.4224C142.386 36.0119 142.437 45.0704 132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30825 50.6599C-2.37126 45.0717 -2.42225 36.0132 7.19414 30.4237L52.335 4.19115C61.9517 -1.39705 77.5908 -1.39705 87.2713 4.19115L132.707 30.4224Z",tP=V("filter",{id:"sequence-zigzag-glow-filter",x:"-50%",y:"-50%",width:"200%",height:"200%",children:V("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"15",result:"blur"})});Mg("sequence-zigzag-steps",{component:t=>{var e;const{Title:n,Item:i,data:r,options:o,dx:s=Kz,dy:a=Zz,iconSize:l=30}=t,{title:c,desc:h,items:u=[]}=r,d=n?V(n,{title:c,desc:h}):null,f=ld(o);if(0===u.length){const t=V(Au,{indexes:[0],x:0,y:0});return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",children:[V(q,{children:tP}),d,V(X,{children:V(Pu,{children:t})})]})}const p=du(V(i,{indexes:[0],data:r,datum:u[0]})),g=du(V(Au,{indexes:[0]})),m=[],y=[],v=[],x=[],b=[];let w=0,M=0,k="",C=1/0,O=-1/0,j=1/0,E=1/0;const _=[];u.forEach((t,e)=>{const n=w,i=M;_.push({x:n,y:i}),C=Math.min(C,i);const r=i-46;j=Math.min(j,n-76),E=Math.min(E,r);e<u.length-1&&(w+=s,M=e%2==0?M+a:M-a)});const S=Math.max(0,-j),$=Math.max(0,-E);if(w=0,M=0,u.forEach((t,e)=>{const n=[e],a=_[e],c=a.x+S,h=a.y+$,d=hd(o,n),v=Math.max(0,c-76),w=Math.max(0,h-46),{colorPrimaryBg:M}=ud({colorPrimary:d});if(x.push(U(qu,{x:v,y:w,width:140,height:110,children:[V(G,{x:10,y:60,width:120,height:50,fill:d||f,filter:"url(#sequence-zigzag-glow-filter)",opacity:.6}),V(K,{d:"M132.821 50.6599L87.6795 76.8925C78.0629 82.4807 62.4238 82.4807 52.7445 76.8925L7.30824 50.6599C2.43719 47.8482 0.00459679 44.1562 0.0152907 40.472L3.17695e-05 45.6925C-0.0101404 49.378 2.42245 53.0686 7.29298 55.8803L52.7289 82.1129C62.4094 87.7011 78.0485 87.7011 87.6652 82.1129L132.806 55.8803C137.583 53.1038 139.975 49.4705 139.986 45.832L140 40.6116C139.989 44.2501 137.598 47.8834 132.821 50.6599Z",fill:d||f}),V(K,{d:Jz,fill:"#fff"}),V(K,{d:Jz,fill:M||M})]})),t.icon){const t=Math.max(0,c-l/2-6),e=Math.max(0,h-l/2-6);b.push(V(Hu,{x:t,y:e,size:l,indexes:n,fill:d}))}const C=c-p.width/2-6,j=Math.max(0,h+105-6);if(O=Math.max(O,j+p.height),0===e?k=`M ${c} ${h}`:k+=` L ${c} ${h}`,y.push(V(i,{indexes:n,datum:t,data:r,x:C,y:j})),m.push(V(zu,{indexes:n,x:Math.max(0,C+p.width-g.width/2),y:Math.max(0,j+p.height-g.height/2)})),e<u.length-1){const t=_[e+1],n=t.y+$,i=Math.max(0,c+(t.x+S-c)/2-g.width/2),r=Math.max(0,h+(n-h)/2-g.height/2);m.push(V(Au,{indexes:[e+1],x:i,y:r}))}else m.push(V(Au,{indexes:[u.length],x:Math.max(0,C+p.width+s/4),y:Math.max(0,j+p.height/2-g.height/2)}))}),k){const t=((null===(e=_[_.length-1])||void 0===e?void 0:e.x)||0)+S;v.push(V(K,{d:k,stroke:"#f3f2f1",strokeWidth:Qz,fill:"none",width:t,height:O-Math.min(C+$,0)}))}return U(Zu,{id:"infographic-container",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,children:[V(q,{children:tP}),d,U(X,{x:0,y:0,children:[V(X,{children:[...v,...x,...b]}),V(Vu,{children:y}),V(Pu,{children:m})]})]})},composites:["title","item"]});var eP=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class nP{constructor(t){this.commands=t}apply(t){return eP(this,void 0,void 0,function*(){for(const e of this.commands)yield e.apply(t)})}undo(t){return eP(this,void 0,void 0,function*(){for(let e=this.commands.length-1;e>=0;e--)yield this.commands[e].undo(t)})}serialize(){return{type:"batch",commands:this.commands.map(t=>t.serialize())}}}var iP=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class rP{constructor(t,e,n){this.element=t,this.modified=e;const i=function(t,e){const n=Object.keys(e.attributes||{}),i=th(t,n,!1),r=t=>{t&&n.forEach(e=>{e in t&&(i[e]=t[e])})},o=Object.assign(Object.assign({},e),{attributes:i});if(_h(t)){const{attributes:e}=lh(t);r(e)}else if(Ah(t)){if(!Yh(t))return;r(qh(t))}return o}(t,e);this.original=function(t,e){if(!t)return e;if(!e)return t;const n=Object.assign(Object.assign({},t.attributes||{}),e.attributes||{});return Object.assign(Object.assign(Object.assign({},t),e),{attributes:Object.keys(n).length?n:void 0})}(i,n)}apply(t){return iP(this,void 0,void 0,function*(){oP(this.element,this.modified),t.updateElement(this.element,this.modified)})}undo(t){return iP(this,void 0,void 0,function*(){this.original&&(oP(this.element,this.original),t.updateElement(this.element,this.original))})}serialize(){return{type:"update-element",elementId:this.element.id,modified:this.modified,original:this.original}}}function oP(t,e){_h(t)?oh(t,e):Ah(t)?function(t,e,n){const i=Yh(t);i&&(e&&Jc(i,{href:ul(e)}),n&&Jc(i,n),Uh(i))}(t,void 0,e.attributes):e.attributes&&Jc(t,e.attributes)}var sP=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class aP{constructor(t,e){this.options=t,this.original=e}apply(t){return sP(this,void 0,void 0,function*(){if(!this.original){const e=t.getOptions();this.original={},Object.keys(this.options).forEach(t=>{this.original[t]=e[t]})}t.updateOptions(this.options)})}undo(t){return sP(this,void 0,void 0,function*(){this.original&&t.updateOptions(this.original)})}serialize(){return{type:"update-options",options:this.options,original:this.original}}}class lP{constructor(t,e={}){var n;this.clickTimer=null,this.singleClickCallback=null,this.doubleClickCallback=null,this.pointerId=null,this.startX=0,this.startY=0,this.skipClick=!1,this.dragged=!1,this.handlePointerDown=t=>{this.pointerId=t.pointerId,this.startX=t.clientX,this.startY=t.clientY,this.dragged=!1,this.skipClick=!1,window.addEventListener("pointermove",this.handlePointerMove,{passive:!0}),window.addEventListener("pointerup",this.handlePointerUp,{passive:!0}),window.addEventListener("pointercancel",this.handlePointerUp,{passive:!0})},this.handlePointerMove=t=>{if(null===this.pointerId||t.pointerId!==this.pointerId)return;Math.hypot(t.clientX-this.startX,t.clientY-this.startY)>this.dragThreshold&&(this.skipClick=!0,this.dragged=!0)},this.handlePointerUp=t=>{null!==this.pointerId&&t.pointerId===this.pointerId&&(this.pointerId=null,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),this.dragged||(this.skipClick=!1),this.dragged=!1)},this.element=t,this.delay=e.delay||300,this.dragThreshold=null!==(n=e.dragThreshold)&&void 0!==n?n:4,this.init()}init(){this.element.addEventListener("click",this.handleClick.bind(this)),this.element.addEventListener("dblclick",this.handleDoubleClick.bind(this)),this.element.addEventListener("pointerdown",this.handlePointerDown)}handleClick(t){this.skipClick?this.skipClick=!1:(this.clickTimer&&clearTimeout(this.clickTimer),this.clickTimer=window.setTimeout(()=>{var e;null===(e=this.singleClickCallback)||void 0===e||e.call(this,t)},this.delay))}handleDoubleClick(t){var e;this.skipClick?this.skipClick=!1:(this.clickTimer&&clearTimeout(this.clickTimer),null===(e=this.doubleClickCallback)||void 0===e||e.call(this,t))}onClick(t){return this.singleClickCallback=t,this}onDoubleClick(t){return this.doubleClickCallback=t,this}destroy(){this.clickTimer&&clearTimeout(this.clickTimer),this.element.removeEventListener("click",this.handleClick),this.element.removeEventListener("dblclick",this.handleDoubleClick),this.element.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}}function cP(t,e,n){return new DOMPoint(e,n).matrixTransform(function(t){var e;return(null===(e=t.getScreenCTM())||void 0===e?void 0:e.inverse())||new DOMMatrix}(t))}function hP(t,e){const n=e.getBoundingClientRect(),i=[{x:n.x,y:n.y},{x:n.x+n.width,y:n.y},{x:n.x,y:n.y+n.height},{x:n.x+n.width,y:n.y+n.height}].map(e=>cP(t,e.x,e.y)),r=Math.min(...i.map(t=>t.x)),o=Math.max(...i.map(t=>t.x)),s=Math.min(...i.map(t=>t.y)),a=Math.max(...i.map(t=>t.y));return new DOMRect(r,s,o-r,a-s)}function uP(t,e){if(0===e.length)return t.items;const n=ts(t,e);return null==n?[]:(n.children||(n.children=[]),n.children)}function dP(t,e="data.items"){return t.reduce((t,e,n)=>0===n?`${t}[${e}]`:`${t}.children[${e}]`,e)}function fP(t){var e,n;return(null===(n=null===(e=function(t){return Ah(t)?Yh(t):t}(t))||void 0===e?void 0:e.dataset.indexes)||void 0===n?void 0:n.split(",").map(Number))||[]}function pP(t){if(!t)return null;const e=[mP];let n=t;for(const t of e){const e=t(n);if(e){n=e;break}}return gP(n)}function gP(t){if(!t)return null;const e=[yP,vP];for(const n of e){const e=n(t);if(e)return e}return(t=>ch(t,"edit-area"))(t)||_h(t)||Ah(t)?t:null}const mP=t=>{var e;const n=t=>!!t&&(Oh(t)||jh(t));return n(t)?t.parentElement:n(t.parentElement)?null===(e=t.parentElement)||void 0===e?void 0:e.parentElement:null},yP=t=>function(t){return hh(t,"SPAN")}(t)&&Eh(t.parentElement)?t.parentElement:null,vP=t=>{const e=t.parentElement;return xh(e)?e:vh(t)?t:null};function xP(t){if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName.toLowerCase();return"input"===e||"textarea"===e}class bP{constructor(){this.extensions=new Map}register(t,e,n){if(!(null==n?void 0:n.override)&&this.extensions.has(t))throw new Error(`Extension "${t}" already registered`);this.extensions.set(t,e)}get(t){return this.extensions.get(t)}has(t){return this.extensions.has(t)}getAll(){return this.extensions}forEach(t){this.extensions.forEach((e,n)=>{t(e,n)})}[Symbol.iterator](){return this.extensions.entries()}unregister(t){return this.extensions.delete(t)}destroy(){this.extensions.forEach(t=>{t&&"function"==typeof t.dispose&&t.dispose()}),this.extensions.clear()}}const wP=(t,e)=>{var n;if(t.key.toLowerCase()!==e.key)return!1;const i=null!==(n=e.mod)&&void 0!==n&&n,r=t.metaKey,o=t.ctrlKey,s=(t,e)=>void 0===t?!e:t===e;return!(i&&!r&&!o)&&(i?!!s(e.shift,t.shiftKey)&&(!!s(e.alt,t.altKey)&&(!(void 0!==e.meta&&!s(e.meta,r))&&!(void 0!==e.ctrl&&!s(e.ctrl,o)))):!!s(e.meta,r)&&(!!s(e.ctrl,o)&&(!!s(e.shift,t.shiftKey)&&!!s(e.alt,t.altKey))))};class MP{constructor(t={}){this.bindings=[],this.handleKeydown=t=>{if(t instanceof KeyboardEvent&&!t.defaultPrevented&&!(t=>{if(!t)return!1;if(!(t instanceof HTMLElement))return!1;if(t.isContentEditable)return!0;const e=t.tagName.toLowerCase();return"input"===e||"textarea"===e||"select"===e})(t.target)&&(!this.filter||this.filter(t)))for(const e of this.bindings)if(e.combos.some(e=>wP(t,e))){e.handler(t);break}};const{target:e=document,filter:n}=t;this.target=e,this.filter=n,this.target.addEventListener("keydown",this.handleKeydown)}bind(t,e){const n={combos:(Array.isArray(t)?t:[t]).map(t=>(t=>{const e=t.toLowerCase().split("+").map(t=>t.trim()).filter(Boolean),n={key:""};if(e.forEach(t=>{"shift"===t?n.shift=!0:"alt"===t||"option"===t?n.alt=!0:"ctrl"===t||"control"===t?n.ctrl=!0:"meta"===t||"cmd"===t||"command"===t?n.meta=!0:"mod"===t?n.mod=!0:n.key=t}),!n.key)throw new Error(`Invalid hotkey combo: "${t}"`);return n})(t)),handler:e};return this.bindings.push(n),()=>this.unbind(n)}destroy(){this.target.removeEventListener("keydown",this.handleKeydown),this.bindings=[]}unbind(t){this.bindings=this.bindings.filter(e=>e!==t)}}const kP=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const CP=function(t){return this.__data__.get(t)};const OP=function(t){return this.__data__.has(t)};const jP=function(t,e){var n=this.__data__;if(n instanceof So){var i=n.__data__;if(!$o||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Bo(i)}return n.set(t,e),this.size=n.size,this};function EP(t){var e=this.__data__=new So(t);this.size=e.size}EP.prototype.clear=function(){this.__data__=new So,this.size=0},EP.prototype.delete=kP,EP.prototype.get=CP,EP.prototype.has=OP,EP.prototype.set=jP;const _P=EP;const SP=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t};const $P=function(){try{var t=ho(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const AP=function(t,e,n){"__proto__"==e&&$P?$P(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var zP=Object.prototype.hasOwnProperty;const PP=function(t,e,n){var i=t[e];zP.call(t,e)&&wo(i,n)&&(void 0!==n||e in t)||AP(t,e,n)};const LP=function(t,e,n,i){var r=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=i?i(n[a],t[a],a,n,t):void 0;void 0===l&&(l=t[a]),r?AP(n,a,l):PP(n,a,l)}return n};const IP=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i};const TP=function(t){return qr(t)&&"[object Arguments]"==Yr(t)};var RP=Object.prototype,BP=RP.hasOwnProperty,WP=RP.propertyIsEnumerable,HP=TP(function(){return arguments}())?TP:function(t){return qr(t)&&BP.call(t,"callee")&&!WP.call(t,"callee")};const NP=HP;var FP="object"==typeof exports&&exports&&!exports.nodeType&&exports,DP=FP&&"object"==typeof module&&module&&!module.nodeType&&module,VP=DP&&DP.exports===FP?Tr.Buffer:void 0;const UP=(VP?VP.isBuffer:void 0)||function(){return!1};var YP=/^(?:0|[1-9]\d*)$/;const qP=function(t,e){var n=typeof t;return!!(e=e??9007199254740991)&&("number"==n||"symbol"!=n&&YP.test(t))&&t>-1&&t%1==0&&t<e};const GP=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var XP={};XP["[object Float32Array]"]=XP["[object Float64Array]"]=XP["[object Int8Array]"]=XP["[object Int16Array]"]=XP["[object Int32Array]"]=XP["[object Uint8Array]"]=XP["[object Uint8ClampedArray]"]=XP["[object Uint16Array]"]=XP["[object Uint32Array]"]=!0,XP["[object Arguments]"]=XP["[object Array]"]=XP["[object ArrayBuffer]"]=XP["[object Boolean]"]=XP["[object DataView]"]=XP["[object Date]"]=XP["[object Error]"]=XP["[object Function]"]=XP["[object Map]"]=XP["[object Number]"]=XP["[object Object]"]=XP["[object RegExp]"]=XP["[object Set]"]=XP["[object String]"]=XP["[object WeakMap]"]=!1;const KP=function(t){return qr(t)&&GP(t.length)&&!!XP[Yr(t)]};const ZP=function(t){return function(e){return t(e)}};var QP="object"==typeof exports&&exports&&!exports.nodeType&&exports,JP=QP&&"object"==typeof module&&module&&!module.nodeType&&module,tL=JP&&JP.exports===QP&&Lr.process;const eL=function(){try{var t=JP&&JP.require&&JP.require("util").types;return t||tL&&tL.binding&&tL.binding("util")}catch(t){}}();var nL=eL&&eL.isTypedArray;const iL=nL?ZP(nL):KP;var rL=Object.prototype.hasOwnProperty;const oL=function(t,e){var n=Pr(t),i=!n&&NP(t),r=!n&&!i&&UP(t),o=!n&&!i&&!r&&iL(t),s=n||i||r||o,a=s?IP(t.length,String):[],l=a.length;for(var c in t)!e&&!rL.call(t,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||qP(c,l))||a.push(c);return a};var sL=Object.prototype;const aL=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||sL)};const lL=function(t,e){return function(n){return t(e(n))}};const cL=lL(Object.keys,Object);var hL=Object.prototype.hasOwnProperty;const uL=function(t){if(!aL(t))return cL(t);var e=[];for(var n in Object(t))hL.call(t,n)&&"constructor"!=n&&e.push(n);return e};const dL=function(t){return null!=t&&GP(t.length)&&!Jr(t)};const fL=function(t){return dL(t)?oL(t):uL(t)};const pL=function(t,e){return t&&LP(e,fL(e),t)};const gL=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var mL=Object.prototype.hasOwnProperty;const yL=function(t){if(!Qr(t))return gL(t);var e=aL(t),n=[];for(var i in t)("constructor"!=i||!e&&mL.call(t,i))&&n.push(i);return n};const vL=function(t){return dL(t)?oL(t,!0):yL(t)};const xL=function(t,e){return t&&LP(e,vL(e),t)};var bL="object"==typeof exports&&exports&&!exports.nodeType&&exports,wL=bL&&"object"==typeof module&&module&&!module.nodeType&&module,ML=wL&&wL.exports===bL?Tr.Buffer:void 0,kL=ML?ML.allocUnsafe:void 0;const CL=function(t,e){if(e)return t.slice();var n=t.length,i=kL?kL(n):new t.constructor(n);return t.copy(i),i};const OL=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e};const jL=function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=s)}return o};const EL=function(){return[]};var _L=Object.prototype.propertyIsEnumerable,SL=Object.getOwnPropertySymbols,$L=SL?function(t){return null==t?[]:(t=Object(t),jL(SL(t),function(e){return _L.call(t,e)}))}:EL;const AL=$L;const zL=function(t,e){return LP(t,AL(t),e)};const PL=function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t};const LL=lL(Object.getPrototypeOf,Object);var IL=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)PL(e,AL(t)),t=LL(t);return e}:EL;const TL=IL;const RL=function(t,e){return LP(t,TL(t),e)};const BL=function(t,e,n){var i=e(t);return Pr(t)?i:PL(i,n(t))};const WL=function(t){return BL(t,fL,AL)};const HL=function(t){return BL(t,vL,TL)};const NL=ho(Tr,"DataView");const FL=ho(Tr,"Promise");const DL=ho(Tr,"Set");const VL=ho(Tr,"WeakMap");var UL="[object Map]",YL="[object Promise]",qL="[object Set]",GL="[object WeakMap]",XL="[object DataView]",KL=oo(NL),ZL=oo($o),QL=oo(FL),JL=oo(DL),tI=oo(VL),eI=Yr;(NL&&eI(new NL(new ArrayBuffer(1)))!=XL||$o&&eI(new $o)!=UL||FL&&eI(FL.resolve())!=YL||DL&&eI(new DL)!=qL||VL&&eI(new VL)!=GL)&&(eI=function(t){var e=Yr(t),n="[object Object]"==e?t.constructor:void 0,i=n?oo(n):"";if(i)switch(i){case KL:return XL;case ZL:return UL;case QL:return YL;case JL:return qL;case tI:return GL}return e});const nI=eI;var iI=Object.prototype.hasOwnProperty;const rI=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&iI.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const oI=Tr.Uint8Array;const sI=function(t){var e=new t.constructor(t.byteLength);return new oI(e).set(new oI(t)),e};const aI=function(t,e){var n=e?sI(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var lI=/\w*$/;const cI=function(t){var e=new t.constructor(t.source,lI.exec(t));return e.lastIndex=t.lastIndex,e};var hI=Rr?Rr.prototype:void 0,uI=hI?hI.valueOf:void 0;const dI=function(t){return uI?Object(uI.call(t)):{}};const fI=function(t,e){var n=e?sI(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const pI=function(t,e,n){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return sI(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return aI(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return fI(t,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return cI(t);case"[object Symbol]":return dI(t)}};var gI=Object.create,mI=function(){function t(){}return function(e){if(!Qr(e))return{};if(gI)return gI(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const yI=mI;const vI=function(t){return"function"!=typeof t.constructor||aL(t)?{}:yI(LL(t))};const xI=function(t){return qr(t)&&"[object Map]"==nI(t)};var bI=eL&&eL.isMap;const wI=bI?ZP(bI):xI;const MI=function(t){return qr(t)&&"[object Set]"==nI(t)};var kI=eL&&eL.isSet;const CI=kI?ZP(kI):MI;var OI="[object Arguments]",jI="[object Function]",EI="[object Object]",_I={};_I[OI]=_I["[object Array]"]=_I["[object ArrayBuffer]"]=_I["[object DataView]"]=_I["[object Boolean]"]=_I["[object Date]"]=_I["[object Float32Array]"]=_I["[object Float64Array]"]=_I["[object Int8Array]"]=_I["[object Int16Array]"]=_I["[object Int32Array]"]=_I["[object Map]"]=_I["[object Number]"]=_I[EI]=_I["[object RegExp]"]=_I["[object Set]"]=_I["[object String]"]=_I["[object Symbol]"]=_I["[object Uint8Array]"]=_I["[object Uint8ClampedArray]"]=_I["[object Uint16Array]"]=_I["[object Uint32Array]"]=!0,_I["[object Error]"]=_I[jI]=_I["[object WeakMap]"]=!1;const SI=function t(e,n,i,r,o,s){var a,l=1&n,c=2&n,h=4&n;if(i&&(a=o?i(e,r,o,s):i(e)),void 0!==a)return a;if(!Qr(e))return e;var u=Pr(e);if(u){if(a=rI(e),!l)return OL(e,a)}else{var d=nI(e),f=d==jI||"[object GeneratorFunction]"==d;if(UP(e))return CL(e,l);if(d==EI||d==OI||f&&!o){if(a=c||f?{}:vI(e),!l)return c?RL(e,xL(a,e)):zL(e,pL(a,e))}else{if(!_I[d])return o?e:{};a=pI(e,d,l)}}s||(s=new _P);var p=s.get(e);if(p)return p;s.set(e,a),CI(e)?e.forEach(function(r){a.add(t(r,n,i,r,e,s))}):wI(e)&&e.forEach(function(r,o){a.set(o,t(r,n,i,o,e,s))});var g=u?void 0:(h?c?HL:WL:c?vL:fL)(e);return SP(g||e,function(r,o){g&&(r=e[o=r]),PP(a,o,t(r,n,i,o,e,s))}),a};const $I=function(t){return SI(t,5)};var AI=Function.prototype.toString,zI=Object.prototype.hasOwnProperty,PI=AI.call(Object);const LI=function(t){if(!qr(t)||"[object Object]"!=Yr(t))return!1;var e=LL(t);if(null===e)return!0;var n=zI.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&AI.call(n)==PI};const II=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const TI=function(t){return this.__data__.has(t)};function RI(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Bo;++e<n;)this.add(t[e])}RI.prototype.add=RI.prototype.push=II,RI.prototype.has=TI;const BI=RI;const WI=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1};const HI=function(t,e){return t.has(e)};const NI=function(t,e,n,i,r,o){var s=1&n,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(t),h=o.get(e);if(c&&h)return c==e&&h==t;var u=-1,d=!0,f=2&n?new BI:void 0;for(o.set(t,e),o.set(e,t);++u<a;){var p=t[u],g=e[u];if(i)var m=s?i(g,p,u,e,t,o):i(p,g,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!WI(e,function(t,e){if(!HI(f,e)&&(p===t||r(p,t,n,i,o)))return f.push(e)})){d=!1;break}}else if(p!==g&&!r(p,g,n,i,o)){d=!1;break}}return o.delete(t),o.delete(e),d};const FI=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n};const DI=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n};var VI=Rr?Rr.prototype:void 0,UI=VI?VI.valueOf:void 0;const YI=function(t,e,n,i,r,o,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new oI(t),new oI(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return wo(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=FI;case"[object Set]":if(a||(a=DI),t.size!=e.size&&!(1&i))return!1;var l=s.get(t);if(l)return l==e;i|=2,s.set(t,e);var c=NI(a(t),a(e),i,r,o,s);return s.delete(t),c;case"[object Symbol]":if(UI)return UI.call(t)==UI.call(e)}return!1};var qI=Object.prototype.hasOwnProperty;const GI=function(t,e,n,i,r,o){var s=1&n,a=WL(t),l=a.length;if(l!=WL(e).length&&!s)return!1;for(var c=l;c--;){var h=a[c];if(!(s?h in e:qI.call(e,h)))return!1}var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var f=!0;o.set(t,e),o.set(e,t);for(var p=s;++c<l;){var g=t[h=a[c]],m=e[h];if(i)var y=s?i(m,g,h,e,t,o):i(g,m,h,t,e,o);if(!(void 0===y?g===m||r(g,m,n,i,o):y)){f=!1;break}p||(p="constructor"==h)}if(f&&!p){var v=t.constructor,x=e.constructor;v==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof x&&x instanceof x||(f=!1)}return o.delete(t),o.delete(e),f};var XI="[object Arguments]",KI="[object Array]",ZI="[object Object]",QI=Object.prototype.hasOwnProperty;const JI=function(t,e,n,i,r,o){var s=Pr(t),a=Pr(e),l=s?KI:nI(t),c=a?KI:nI(e),h=(l=l==XI?ZI:l)==ZI,u=(c=c==XI?ZI:c)==ZI,d=l==c;if(d&&UP(t)){if(!UP(e))return!1;s=!0,h=!1}if(d&&!h)return o||(o=new _P),s||iL(t)?NI(t,e,n,i,r,o):YI(t,e,l,n,i,r,o);if(!(1&n)){var f=h&&QI.call(t,"__wrapped__"),p=u&&QI.call(e,"__wrapped__");if(f||p){var g=f?t.value():t,m=p?e.value():e;return o||(o=new _P),r(g,m,n,i,o)}}return!!d&&(o||(o=new _P),GI(t,e,n,i,r,o))};const tT=function t(e,n,i,r,o){return e===n||(null==e||null==n||!qr(e)&&!qr(n)?e!=e&&n!=n:JI(e,n,i,r,t,o))};const eT=function(t,e){return tT(t,e)};function nT(t,e,n="",i){const{bubbleUp:r=!1,collector:o}=null!=i?i:{},s=iT(t,e,n,o,r);""===n&&s&&r&&o&&o("",$I(t),void 0)}function iT(t,e,n,i,r){let o=!1;return Object.keys(e).forEach(s=>{if("__proto__"===s||"constructor"===s||"prototype"===s)return;const a=n?`${n}.${s}`:s,l=e[s],c=t[s];let h=!1;if(void 0===l)s in t&&(delete t[s],null==i||i(a,void 0,c),h=!0);else if(LI(l)){const e=LI(t[s]);e||(t[s]={});const n=iT(t[s],l,a,i,r);e?h=n:(h=!0,n||null==i||i(a,t[s],c))}else t[s]=l,eT(l,c)||(null==i||i(a,l,c),h=!0);h&&(o=!0)}),o&&r&&""!==n&&(null==i||i(n,$I(t),void 0)),o}function rT(t){const e=function(t){if(!(null==t?void 0:t.isConnected))return document;const e=t.getRootNode();return e instanceof ShadowRoot?e:document}(t);return e instanceof ShadowRoot?e:document.body}function oT(t,e){const n="function"==typeof t.composedPath?t.composedPath():[];if(n.length>0)return n.some(t=>t===e||t instanceof Node&&e.contains(t));const i=t.target;return i instanceof Node&&(i===e||e.contains(i))}var sT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class aT{constructor(t,e,n){this.element=t,this.originalText=null!=n?n:sh(t),this.modifiedText=e}apply(t){return sT(this,void 0,void 0,function*(){this.originalText!==this.modifiedText&&(ah(this.element,this.modifiedText),lT(t,this.element,this.modifiedText))})}undo(t){return sT(this,void 0,void 0,function*(){this.originalText!==this.modifiedText&&(ah(this.element,this.originalText),lT(t,this.element,this.originalText))})}serialize(){return{type:"update-text",elementId:this.element.id,original:this.originalText,modified:this.modifiedText}}}function lT(t,e,n){const i=Lh(e);if(i.startsWith("item-")){const r=i.replace("item-",""),o=fP(e);t.updateItemDatum(o,{[r]:n})}else t.updateData(i,n)}class cT{init(t){Object.assign(this,t)}}var hT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class uT extends cT{constructor(){super(...arguments),this.name="brush-select",this.shiftKey=!1,this.dragging=!1,this.dragThreshold=4,this.handleStart=t=>{this.interaction.isActive()&&0===t.button&&(xP(t.target)||this.hasElementAtStart(t.target)||this.interaction.executeExclusiveInteraction(this,()=>hT(this,void 0,void 0,function*(){return new Promise(e=>{this.completeInteraction=e;const n=this.editor.getDocument();this.startPoint=cP(n,t.clientX,t.clientY),this.pointerId=t.pointerId,this.shiftKey=t.shiftKey,this.dragging=!1,window.addEventListener("pointermove",this.handleMove),window.addEventListener("pointerup",this.handleEnd)})})))},this.handleMove=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;const e=cP(this.editor.getDocument(),t.clientX,t.clientY);if(!this.dragging){if(Math.hypot(e.x-this.startPoint.x,e.y-this.startPoint.y)<this.dragThreshold)return;this.dragging=!0,this.ensureBrush(),this.updateBrush(this.startPoint,e)}t.preventDefault(),t.stopPropagation(),this.updateBrush(this.startPoint,e)},this.handleEnd=t=>{var e,n;if(t.pointerId!==this.pointerId||!this.startPoint)return;window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd);let i=null;if(this.dragging){t.preventDefault(),t.stopPropagation();const e=cP(this.editor.getDocument(),t.clientX,t.clientY);i=this.updateBrush(this.startPoint,e),this.clearBrush()}this.pointerId=void 0,this.startPoint=void 0,this.dragging=!1;const r=this.shiftKey;if(this.shiftKey=!1,!i)return null===(e=this.completeInteraction)||void 0===e||e.call(this),void(this.completeInteraction=void 0);const o=this.collectSelection(i);if(null===(n=this.completeInteraction)||void 0===n||n.call(this),this.completeInteraction=void 0,0===o.length)return void(r||this.interaction.clearSelection());this.interaction.select(o,r?"add":"replace")}}init(t){super.init(t),this.editor.getDocument().addEventListener("pointerdown",this.handleStart)}destroy(){this.clearBrush(),this.editor.getDocument().removeEventListener("pointerdown",this.handleStart),window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd)}ensureBrush(){return this.brush||(this.brush=this.interaction.appendTransientElement(Zc("rect",{fill:"rgba(51, 132, 245, 0.08)",stroke:"#3384F5","stroke-dasharray":"4 2","stroke-width":1,"pointer-events":"none"}))),this.brush}updateBrush(t,e){if(!this.brush)return null;const n=Math.min(t.x,e.x),i=Math.min(t.y,e.y),r=Math.abs(t.x-e.x),o=Math.abs(t.y-e.y);return Jc(this.brush,{x:n,y:i,width:r,height:o}),{x:n,y:i,width:r,height:o}}clearBrush(){var t;null===(t=this.brush)||void 0===t||t.remove(),this.brush=void 0}collectSelection(t){const e=this.editor.getDocument(),n=Array.from(e.querySelectorAll("[data-element-type]")),i=new Set;return n.reduce((n,r)=>{const o=gP(r);if(!o||i.has(o))return n;const s=hP(e,o);return((t,e)=>!(t.x+t.width<e.x||e.x+e.width<t.x||t.y+t.height<e.y||e.y+e.height<t.y))(t,{x:s.x,y:s.y,width:s.width,height:s.height})&&(n.push(o),i.add(o)),n},[])}hasElementAtStart(t){var e;return t instanceof Element&&(!!pP(t)||Boolean(null===(e=t.closest)||void 0===e?void 0:e.call(t,"[data-element-type]")))}}var dT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class fT extends cT{constructor(){super(...arguments),this.name="click-select",this.shiftKey=!1,this.onShiftKeyDown=t=>{"Shift"===t.key&&(this.shiftKey=!0)},this.onShiftKeyUp=t=>{"Shift"===t.key&&(this.shiftKey=!1)},this.onEscKeyDown=t=>{"Escape"===t.key&&this.interaction.clearSelection()}}init(t){super.init(t);const{editor:e,interaction:n}=this;this.clickHandler=new lP(e.getDocument(),{delay:0});this.clickHandler.onClick(t=>{n.isActive()&&n.executeExclusiveInteraction(this,()=>dT(this,void 0,void 0,function*(){const e=pP(t.target);Sh(e)||(this.shiftKey?e&&(n.isSelected(e)?n.select([e],"remove"):n.select([e],"add")):e?n.select([e],"replace"):n.clearSelection())}))}),document.addEventListener("keydown",this.onShiftKeyDown),document.addEventListener("keyup",this.onShiftKeyUp),document.addEventListener("keydown",this.onEscKeyDown)}destroy(){var t;null===(t=this.clickHandler)||void 0===t||t.destroy(),document.removeEventListener("keydown",this.onShiftKeyDown),document.removeEventListener("keyup",this.onShiftKeyUp),document.removeEventListener("keydown",this.onEscKeyDown)}}var pT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class gT extends cT{constructor(){super(...arguments),this.name="dblclick-edit-text"}init(t){super.init(t);const{editor:e,commander:n,interaction:i}=t;this.clickHandler=new lP(e.getDocument()).onDoubleClick(t=>{i.isActive()&&i.executeExclusiveInteraction(this,()=>pT(this,void 0,void 0,function*(){const e=pP(t.target);if(e&&_h(e)){i.select([e],"replace");const r=sh(e),o=yield new Promise(n=>{const i=this.listenSelectionChange(e);!function(t,e){const n=rh(t);if(!n)return;(function(t){ru(mT,`\n.${yT} {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n background-color: transparent;\n outline: none;\n cursor: text;\n}\n.${yT}::selection {\n background-color: #b3d4fc;\n}\n`,t)})(n),new vT(n,e).start()}(e,{cursorPosition:{clientX:t.clientX,clientY:t.clientY},onBlur:n,onCancel:n}),this.detachSelectionListener=i});n.execute(new aT(e,o,r))}}))})}destroy(){var t,e;null===(t=this.clickHandler)||void 0===t||t.destroy(),null===(e=this.detachSelectionListener)||void 0===e||e.call(this)}listenSelectionChange(t){const e=({next:e})=>{var n;if(!e.includes(t)){null===(n=this.detachSelectionListener)||void 0===n||n.call(this),this.detachSelectionListener=void 0;const e=rh(t);e&&e.blur()}};return this.emitter.on("selection:change",e),()=>this.emitter.off("selection:change",e)}}const mT="infographic-inline-text-editor-style",yT="infographic-inline-text-editor";class vT{constructor(t,e){this.entity=t,this.options=e,this.handlePaste=t=>{t.clipboardData&&(t.preventDefault(),this.insertPlainText(t.clipboardData.getData("text/plain")))},this.handleKeydown=t=>{"Enter"!==t.key||t.shiftKey||(t.preventDefault(),this.insertPlainText("\n"))},this.handleInput=()=>{var t,e;this.normalizeSpanContent(),null===(e=null===(t=this.options)||void 0===t?void 0:t.onInput)||void 0===e||e.call(t,this.getText())},this.handleBlur=()=>{var t,e;this.entity.removeAttribute("contenteditable"),this.entity.classList.remove(yT),this.normalizeSpanContent(),null===(e=null===(t=this.options)||void 0===t?void 0:t.onBlur)||void 0===e||e.call(t,this.getText()),this.detachListeners()}}start(){this.entity.setAttribute("contenteditable","true"),this.entity.classList.add(yT),this.entity.focus(),this.placeCaretAtClickPosition(),this.attachListeners()}attachListeners(){this.entity.addEventListener("paste",this.handlePaste),this.entity.addEventListener("keydown",this.handleKeydown),this.entity.addEventListener("input",this.handleInput),this.entity.addEventListener("blur",this.handleBlur,{once:!0})}detachListeners(){this.entity.removeEventListener("paste",this.handlePaste),this.entity.removeEventListener("keydown",this.handleKeydown),this.entity.removeEventListener("input",this.handleInput)}insertPlainText(t){var e,n;const i=window.getSelection();if(!i)return;i.rangeCount||this.placeCaretAtEnd();const r=i.rangeCount?i.getRangeAt(0):document.createRange();r.deleteContents();const o=document.createTextNode(t);r.insertNode(o),r.setStartAfter(o),r.setEndAfter(o),i.removeAllRanges(),i.addRange(r),this.normalizeSpanContent(),null===(n=null===(e=this.options)||void 0===e?void 0:e.onInput)||void 0===n||n.call(e,this.getText())}normalizeSpanContent(){var t;if(1===this.entity.childNodes.length&&(null===(t=this.entity.firstChild)||void 0===t?void 0:t.nodeType)===Node.TEXT_NODE)return;const e=this.getText();this.entity.textContent=e}placeCaretAtClickPosition(){const t=window.getSelection();if(!t)return;const e=this.getRangeFromPoint();if(e)return t.removeAllRanges(),void t.addRange(e);this.placeCaretAtEnd()}getRangeFromPoint(){var t,e;const{cursorPosition:n}=this.options||{};if(!n)return null;const{clientX:i,clientY:r}=n,o=document,s=null!==(e=null===(t=o.caretRangeFromPoint)||void 0===t?void 0:t.call(o,i,r))&&void 0!==e?e:(()=>{var t;const e=null===(t=o.caretPositionFromPoint)||void 0===t?void 0:t.call(o,i,r);if(!e)return null;const n=document.createRange();return n.setStart(e.offsetNode,e.offset),n.collapse(!0),n})();return s&&this.entity.contains(s.startContainer)?s:null}placeCaretAtEnd(){const t=window.getSelection();if(!t)return;const e=document.createRange();e.selectNodeContents(this.entity),e.collapse(!1),t.removeAllRanges(),t.addRange(e)}getText(){return this.entity.textContent||""}}var xT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class bT extends cT{constructor(t){super(),this.name="drag-canvas",this.trigger=["Space"],this.isTriggerPressed=!1,this.isHovering=!1,this.handleKeyDown=t=>{if(!this.interaction.isActive())return;if(xP(t.target))return;const e=t.target,n=e===document.body||e===document.documentElement,i=e===this.document||this.document.contains(e);(n||i)&&this.trigger.includes(t.code)&&(this.isHovering||this.isTriggerPressed)&&(t.preventDefault(),t.stopPropagation(),this.interaction.executeExclusiveInteraction(this,()=>xT(this,void 0,void 0,function*(){return new Promise(t=>{this.completeInteraction=t,this.isTriggerPressed=!0;const e=Zh(this.document);this.startViewBoxString=Qh(e),this.setCursor("grab"),this.document.addEventListener("pointerdown",this.handlePointerDown),window.addEventListener("keyup",this.handleKeyUp)})})))},this.handlePointerDown=t=>{if(0!==t.button)return;t.preventDefault(),t.stopPropagation();this.startPoint=cP(this.document,t.clientX,t.clientY),this.pointerId=t.pointerId,this.setCursor("grabbing"),window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp),window.addEventListener("pointercancel",this.handlePointerUp)},this.handlePointerMove=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;t.preventDefault(),t.stopPropagation();const e=this.document,n=cP(e,t.clientX,t.clientY),i=n.x-this.startPoint.x,r=n.y-this.startPoint.y,o=Zh(e),{x:s,y:a,width:l,height:c}=o;this.state.updateOptions({viewBox:Qh({x:s-i,y:a-r,width:l,height:c})})},this.handlePointerUp=t=>{t.pointerId===this.pointerId&&(this.startPoint=void 0,this.pointerId=void 0,this.setCursor("grab"),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp))},this.handleKeyUp=t=>{this.trigger.includes(t.code)&&this.stopDrag()},this.stopDrag=()=>{var t;if(this.startViewBoxString){const t=Qh(Zh(this.document));if(this.startViewBoxString!==t){const e=new aP({viewBox:t},{viewBox:this.startViewBoxString});this.commander.execute(e)}}this.startViewBoxString=void 0,this.isTriggerPressed=!1,this.setCursor("default"),this.startPoint=void 0,this.pointerId=void 0,window.removeEventListener("keyup",this.handleKeyUp),this.document.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),null===(t=this.completeInteraction)||void 0===t||t.call(this),this.completeInteraction=void 0},this.setCursor=t=>{document.body.style.cursor=t},this.handleBlur=()=>{this.stopDrag()},this.onMouseEnter=()=>{this.isHovering=!0},this.onMouseLeave=()=>{this.isHovering=!1},(null==t?void 0:t.trigger)&&(this.trigger=t.trigger)}init(t){super.init(t),this.document=this.editor.getDocument(),this.document.addEventListener("mouseenter",this.onMouseEnter),this.document.addEventListener("mouseleave",this.onMouseLeave),window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("blur",this.handleBlur)}destroy(){window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("keyup",this.handleKeyUp),this.document.removeEventListener("pointerdown",this.handlePointerDown),window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp),window.removeEventListener("blur",this.handleBlur),this.document.removeEventListener("mouseenter",this.onMouseEnter),this.document.removeEventListener("mouseleave",this.onMouseLeave)}}var wT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class MT extends cT{constructor(){super(...arguments),this.name="drag-element",this.selectionForDrag=[],this.willReplaceSelection=!1,this.exclusiveStarted=!1,this.dragItems=[],this.dragging=!1,this.dragThreshold=4,this.handleStart=t=>{if(!this.interaction.isActive())return;if("mouse"===t.pointerType&&0!==t.button)return;const e=pP(t.target);if(!e)return;if(Sh(e))return;const n=this.editor.getDocument();this.pointerId=t.pointerId,this.startPoint=cP(n,t.clientX,t.clientY),this.dragging=!1,this.startTarget=e;const i=this.interaction.isSelected(e);this.selectionForDrag=i?this.interaction.getSelection():[e],this.willReplaceSelection=!i,this.exclusiveStarted=!1,this.startBounds=this.getSelectionBounds(this.selectionForDrag),this.guideCandidates=this.collectGuideCandidates(this.selectionForDrag),window.addEventListener("pointermove",this.handleMove),window.addEventListener("pointerup",this.handleEnd),window.addEventListener("pointercancel",this.handleEnd)},this.handleMove=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;const e=cP(this.editor.getDocument(),t.clientX,t.clientY),n=e.x-this.startPoint.x,i=e.y-this.startPoint.y;if(!this.dragging){if(Math.hypot(n,i)<this.dragThreshold)return;if(!this.startDrag())return void this.reset();this.dragging=!0}const r=t.altKey?{dx:n,dy:i}:this.getSnappedDelta(n,i);t.preventDefault(),t.stopPropagation(),this.updateGuides(r),this.applyTranslation(r.dx,r.dy),this.emitGeometryChange()},this.handleEnd=t=>{if(t.pointerId!==this.pointerId||!this.startPoint)return;this.detachPointerListeners();const e=cP(this.editor.getDocument(),t.clientX,t.clientY),n=e.x-this.startPoint.x,i=e.y-this.startPoint.y;if((this.dragging||Math.hypot(n,i)>=this.dragThreshold)&&this.dragItems.length&&this.exclusiveStarted){t.preventDefault(),t.stopPropagation();const e=t.altKey?{dx:n,dy:i}:this.getSnappedDelta(n,i);this.updateGuides(e),this.applyTranslation(e.dx,e.dy),this.commitTranslation(e.dx,e.dy),this.emitGeometryChange()}this.reset()}}init(t){super.init(t),this.editor.getDocument().addEventListener("pointerdown",this.handleStart)}destroy(){this.detachPointerListeners(),this.editor.getDocument().removeEventListener("pointerdown",this.handleStart)}startDrag(){if(this.exclusiveStarted)return!0;if(!this.startTarget)return!1;if(this.dragItems=this.selectionForDrag.filter(t=>_h(t)).map(t=>this.createDragItem(t)).filter(Boolean),0===this.dragItems.length)return!1;let t=!1;return this.interaction.executeExclusiveInteraction(this,()=>wT(this,void 0,void 0,function*(){return new Promise(e=>{this.willReplaceSelection&&this.startTarget&&this.interaction.select([this.startTarget],"replace"),this.completeInteraction=e,t=!0})})),this.exclusiveStarted=t,t}applyTranslation(t,e){this.dragItems.forEach(n=>{if("attr"===n.mode){const i=n.startX+t,r=n.startY+e,o={x:i,y:r};n.hasDataX&&(o["data-x"]=i),n.hasDataY&&(o["data-y"]=r),Jc(n.element,o)}else{const i=this.composeTransform(n.startX+t,n.startY+e,n.restTransform);Jc(n.element,{transform:i})}})}commitTranslation(t,e){if(Math.abs(t)<1e-6&&Math.abs(e)<1e-6)return;const n=this.dragItems.map(n=>{if("attr"===n.mode){const i=n.startX+t,r=n.startY+e,o={x:i,y:r},s={};return s.x=n.hasX?n.startX:null,s.y=n.hasY?n.startY:null,n.hasDataX&&(o["data-x"]=i,s["data-x"]=n.startX),n.hasDataY&&(o["data-y"]=r,s["data-y"]=n.startY),new rP(n.element,{attributes:o},{attributes:s})}const i=this.composeTransform(n.startX+t,n.startY+e,n.restTransform);return new rP(n.element,{attributes:{transform:i}},{attributes:{transform:void 0!==n.originalTransform?n.originalTransform:null}})});n.length&&this.commander.executeBatch(n)}createDragItem(t){const e=this.getTransformInfo(t);if(e)return{element:t,mode:"transform",startX:e.x,startY:e.y,hasX:!1,hasY:!1,hasDataX:!1,hasDataY:!1,restTransform:e.rest,originalTransform:e.original};const{x:n,y:i,hasX:r,hasY:o,hasDataX:s,hasDataY:a}=this.getAttrInfo(t);return{element:t,mode:"attr",startX:n,startY:i,hasX:r,hasY:o,hasDataX:s,hasDataY:a}}getAttrInfo(t){const e=this.editor.getDocument(),{x:n,y:i}=hP(e,t),r=th(t,["x","y","data-x","data-y"],!1),o=null!=r.x,s=null!=r.y,a=null!=r["data-x"],l=null!=r["data-y"],c=(t,e)=>{const n=null!=t?Number(t):NaN;return Number.isFinite(n)?n:e},h=c(r.x,NaN),u=c(r.y,NaN),d=c(r["data-x"],NaN),f=c(r["data-y"],NaN);return{x:Number.isFinite(h)?h:Number.isFinite(d)?d:n,y:Number.isFinite(u)?u:Number.isFinite(f)?f:i,hasX:o,hasY:s,hasDataX:a,hasDataY:l}}getTransformInfo(t){const e=t.getAttribute("transform");if(null===e)return null;const n=e.match(/translate\(\s*([-\d.]+)(?:[ ,]\s*([-\d.]+))?\s*\)/i);if(!n)return{x:0,y:0,rest:e,original:e};return{x:Number(n[1])||0,y:void 0!==n[2]&&Number(n[2])||0,rest:e.replace(n[0],"").trim(),original:e}}composeTransform(t,e,n){const i=`translate(${t}, ${e})`;return n&&n.length?`${i} ${n}`:i}emitGeometryChange(){var t;const e=null===(t=this.dragItems[0])||void 0===t?void 0:t.element;if(!e)return;const n=hP(this.editor.getDocument(),e);this.emitter.emit("selection:geometrychange",{type:"selection:geometrychange",target:e,rect:n})}detachPointerListeners(){window.removeEventListener("pointermove",this.handleMove),window.removeEventListener("pointerup",this.handleEnd),window.removeEventListener("pointercancel",this.handleEnd)}reset(){var t;this.detachPointerListeners(),this.clearGuides(),this.pointerId=void 0,this.startPoint=void 0,this.dragItems=[],this.startTarget=void 0,this.selectionForDrag=[],this.willReplaceSelection=!1,this.exclusiveStarted=!1,this.dragging=!1,this.startBounds=void 0,this.guideCandidates=void 0,null===(t=this.completeInteraction)||void 0===t||t.call(this),this.completeInteraction=void 0}getSelectionBounds(t){if(!t.length)return;const e=this.editor.getDocument();return uu(t.map(t=>hP(e,t)))}collectGuideCandidates(t){const e=this.editor.getDocument(),n=new Set(t),i=Array.from(e.querySelectorAll("[data-element-type]")).filter(t=>!n.has(t)),r=[],o=[];return i.forEach(t=>{const{x:n,y:i,width:s,height:a}=hP(e,t);r.push(n,n+s/2,n+s),o.push(i,i+a/2,i+a)}),{vertical:r,horizontal:o}}getSnappedDelta(t,e){if(!this.startBounds||!this.guideCandidates)return{dx:t,dy:e};const n={x:this.startBounds.x+t,y:this.startBounds.y+e,width:this.startBounds.width,height:this.startBounds.height},i=this.getSnapOffset([n.x,n.x+n.width/2,n.x+n.width],this.guideCandidates.vertical),r=this.getSnapOffset([n.y,n.y+n.height/2,n.y+n.height],this.guideCandidates.horizontal);return{dx:t+((null==i?void 0:i.offset)||0),dy:e+((null==r?void 0:r.offset)||0),snapX:i,snapY:r}}getSnapOffset(t,e,n=5){let i=null;return t.forEach(t=>{e.forEach(e=>{const r=e-t;Math.abs(r)<=n&&(!i||Math.abs(r)<Math.abs(i.offset))&&(i={offset:r,at:e})})}),i||void 0}ensureGuideLine(t){const e="vertical"===t?this.guideVertical:this.guideHorizontal;if(e)return e;const n=this.interaction.appendTransientElement(Zc("line",{stroke:"#FF7A45","stroke-width":1,"stroke-dasharray":"4 4","pointer-events":"none",visibility:"hidden"}));return"vertical"===t?this.guideVertical=n:this.guideHorizontal=n,n}updateGuides(t){const e=this.editor.getDocument(),{width:n,height:i}=e.viewBox.baseVal;if(t.snapX){Jc(this.ensureGuideLine("vertical"),{x1:t.snapX.at,y1:0,x2:t.snapX.at,y2:i,visibility:"visible"})}else this.guideVertical&&this.guideVertical.setAttribute("visibility","hidden");if(t.snapY){Jc(this.ensureGuideLine("horizontal"),{x1:0,y1:t.snapY.at,x2:n,y2:t.snapY.at,visibility:"visible"})}else this.guideHorizontal&&this.guideHorizontal.setAttribute("visibility","hidden")}clearGuides(){var t,e;null===(t=this.guideVertical)||void 0===t||t.remove(),null===(e=this.guideHorizontal)||void 0===e||e.remove(),this.guideVertical=void 0,this.guideHorizontal=void 0}}var kT=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class CT extends cT{constructor(){super(...arguments),this.name="hotkey-history",this.handleUndo=t=>kT(this,void 0,void 0,function*(){t.preventDefault(),yield this.commander.undo()}),this.handleRedo=t=>kT(this,void 0,void 0,function*(){t.preventDefault(),yield this.commander.redo()})}init(t){super.init(t),this.hotkey=new MP({filter:()=>this.interaction.isActive()}),this.hotkey.bind("mod+z",this.handleUndo),this.hotkey.bind(["mod+shift+z","mod+y"],this.handleRedo)}destroy(){var t;null===(t=this.hotkey)||void 0===t||t.destroy()}}class OT extends cT{constructor(){super(...arguments),this.name="select-highlight",this.highlightMasks=[],this.handleSelectionChanged=({next:t})=>{this.highlightSelection(t)},this.handleGeometryChanged=({target:t})=>{this.interaction.isSelected(t)&&this.highlightSelection(this.interaction.getSelection())},this.handleHistoryChanged=()=>{this.highlightSelection(this.interaction.getSelection())}}init(t){super.init(t);const{emitter:e}=t;e.on("selection:change",this.handleSelectionChanged),e.on("selection:geometrychange",this.handleGeometryChanged),e.on("history:change",this.handleHistoryChanged),this.highlightSelection(this.interaction.getSelection())}destroy(){this.clearMasks();const{emitter:t}=this;t.off("selection:change",this.handleSelectionChanged),t.off("selection:geometrychange",this.handleGeometryChanged),t.off("history:change",this.handleHistoryChanged)}highlightSelection(t){1===t.length&&_h(t[0])?this.clearMasks():(this.drawElementMasks(t),this.drawCombinedBoundsMask(t))}drawElementMasks(t){let e=0;for(;e<t.length;e++){const{x:n,y:i,width:r,height:o}=hP(this.editor.getDocument(),t[e]),s={x:n,y:i,width:r,height:o,fill:"none",stroke:"#3384F5","stroke-width":1,"pointer-events":"none"},a=this.highlightMasks[e];a?Jc(a,s):this.highlightMasks[e]=this.interaction.appendTransientElement(Zc("rect",s))}for(;e<this.highlightMasks.length;e++)this.highlightMasks[e].remove();this.highlightMasks=this.highlightMasks.slice(0,t.length)}drawCombinedBoundsMask(t){var e;if(t.length<2)return null===(e=this.combinedBoundsMask)||void 0===e||e.remove(),void(this.combinedBoundsMask=void 0);const n=uu(t.map(t=>hP(this.editor.getDocument(),t))),i=Object.assign(Object.assign({},n),{fill:"none",stroke:"#3384F5","stroke-width":2,"pointer-events":"none"});this.combinedBoundsMask?Jc(this.combinedBoundsMask,i):this.combinedBoundsMask=this.interaction.appendTransientElement(Zc("rect",i))}clearMasks(){var t;this.highlightMasks.forEach(t=>t.remove()),this.highlightMasks=[],null===(t=this.combinedBoundsMask)||void 0===t||t.remove(),this.combinedBoundsMask=void 0}}var jT=Math.max,ET=Math.min;const _T=function(t,e,n){return t>=ET(e,n)&&t<jT(e,n)};var ST=/\s/;const $T=function(t){for(var e=t.length;e--&&ST.test(t.charAt(e)););return e};var AT=/^\s+/;const zT=function(t){return t?t.slice(0,$T(t)+1).replace(AT,""):t};var PT=/^[-+]0x[0-9a-f]+$/i,LT=/^0b[01]+$/i,IT=/^0o[0-7]+$/i,TT=parseInt;const RT=function(t){if("number"==typeof t)return t;if(Gr(t))return NaN;if(Qr(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Qr(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=zT(t);var n=LT.test(t);return n||IT.test(t)?TT(t.slice(2),n?2:8):PT.test(t)?NaN:+t};var BT=1/0;const WT=function(t){return t?(t=RT(t))===BT||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};const HT=function(t,e,n){return e=WT(e),void 0===n?(n=e,e=0):n=WT(n),t=RT(t),_T(t,e,n)};class NT extends cT{constructor(t){super(),this.name="zoom-wheel",this.minViewBoxSize=20,this.maxViewBoxSize=2e4,this.initialViewBox=null,this.handleKeyUp=t=>{if(!(t.ctrlKey||t.metaKey||t.shiftKey)&&this.initialViewBox){const t=Qh(Zh(this.editor.getDocument()));if(t!==this.initialViewBox){const e=new aP({viewBox:t},{viewBox:this.initialViewBox});this.commander.execute(e)}this.initialViewBox=null,document.removeEventListener("keyup",this.handleKeyUp)}},this.wheelListener=t=>{if(!this.shouldZoom(t))return;t.preventDefault();const e=t.deltaY<0?1/1.1:1.1,n=this.editor.getDocument(),i=Zh(n),{width:r,height:o}=i,s=o*e;if(!HT(r*e,this.minViewBoxSize,this.maxViewBoxSize)||!HT(s,this.minViewBoxSize,this.maxViewBoxSize))return;null===this.initialViewBox&&(this.initialViewBox=Qh(i),document.addEventListener("keyup",this.handleKeyUp));const a=function(t,e,n){return{x:n.x-(n.x-t.x)*e,y:n.y-(n.y-t.y)*e,width:t.width*e,height:t.height*e}}(i,e,!t.ctrlKey&&!t.metaKey||t.shiftKey?this.getCenterPoint(i):this.getMousePoint(n,t));this.state.updateOptions({viewBox:Qh(a)})},this.getMousePoint=(t,e)=>cP(t,e.clientX,e.clientY),this.getCenterPoint=t=>({x:t.x+t.width/2,y:t.y+t.height/2}),this.shouldZoom=t=>{if(!this.interaction.isActive())return!1;if(0===t.deltaY)return!1;const e=t.ctrlKey||t.metaKey,n=t.shiftKey;return(!e||!n)&&(e||n)},void 0!==(null==t?void 0:t.minViewBoxSize)&&(this.minViewBoxSize=t.minViewBoxSize),void 0!==(null==t?void 0:t.maxViewBoxSize)&&(this.maxViewBoxSize=t.maxViewBoxSize)}init(t){super.init(t),document.addEventListener("wheel",this.wheelListener,{passive:!1})}destroy(){document.removeEventListener("wheel",this.wheelListener),document.removeEventListener("keyup",this.handleKeyUp)}}class FT{init(t){Object.assign(this,t)}}class DT extends FT{constructor(){super(...arguments),this.name="core-sync",this.unregisters=[]}init(t){super.init(t);const e=this.editor.getDocument();this.unregisters.push(this.editor.registerSync("viewBox",t=>{t?e.setAttribute("viewBox",t):e.removeAttribute("viewBox")},{immediate:!0})),this.unregisters.push(this.editor.registerSync("padding",t=>{void 0!==t&&tu(e,Jh(t))},{immediate:!0}))}destroy(){this.unregisters.forEach(t=>t())}}const VT=({icon:t,onClick:e,activate:n=!1,root:i})=>{ru(YT,`\n.${UT} {\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n font-size: 12px;\n color: #000000d9;\n border: none;\n border-radius: 6px;\n background-color: #fff;\n cursor: pointer;\n transition: color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;\n}\n.${UT}:hover {\n background-color: #f5f5f5;\n}\n.${UT}:active {\n background-color: #d9d9d9;\n}\n.${UT}[data-activate="true"] {\n background-color: #d9d9d9;\n}\n`,i);const r=document.createElement("button");r.type="button",r.classList.add(UT),n&&r.setAttribute("data-activate","true"),e&&r.addEventListener("click",e);const o=t();r.appendChild(o);return Object.assign(r,{setActivate:(t=>{t?r.setAttribute("data-activate","true"):r.removeAttribute("data-activate")}).bind(r),activate:n})},UT="infographic-edit-bar-icon-btn",YT="infographic-edit-bar-icon-btn-style";const qT="infographic-color-picker",GT=`${qT}__swatches`,XT=`${qT}__swatch`,KT=`${qT}__controls`,ZT=`${qT}__input`,QT=`${qT}__format`,JT=`${qT}__format-switch`,tR=`${qT}__format-switch-knob`,eR=`${qT}__format-switch-label`,nR="infographic-color-picker-style",iR=["#000000","#1f1f1f","#434343","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#f0f0f0","#ffffff","#1677ff","#2f54eb","#91caff","#13c2c2","#36cfc9","#52c41a","#73d13d","#fadb14","#ffd666","#fa8c16","#fa541c","#f5222d","#ff7875","#eb2f96","#ffadd2","#722ed1","#9254de","rgba(0, 0, 0, 0.65)","rgba(255, 255, 255, 0.85)"];function rR(t){var e,n,i;if("undefined"==typeof document)throw new Error("ColorPicker can only be used in the browser.");ru(nR,`\n.${qT} {\n width: 240px;\n padding: 10px;\n box-sizing: border-box;\n}\n.${GT} {\n display: grid;\n grid-template-columns: repeat(auto-fit, 26px);\n gap: 6px;\n margin-bottom: 10px;\n}\n.${XT} {\n width: 24px;\n height: 24px;\n border-radius: 50%;\n border: 1px solid rgba(0, 0, 0, 0.06);\n background: var(--swatch-color);\n cursor: pointer;\n padding: 0;\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);\n transition: transform 0.15s ease, box-shadow 0.15s ease;\n}\n.${XT}[data-active="true"] {\n box-shadow: 0 0 0 2px #1677ff;\n transform: translateY(-1px);\n}\n.${XT}:hover {\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);\n}\n.${KT} {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n.${ZT} {\n flex: 1;\n min-width: 0;\n height: 30px;\n padding: 2px 6px;\n border: 1px solid #d9d9d9;\n border-radius: 6px;\n background: #f5f5f5;\n color: #262626;\n font-size: 12px;\n font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas,\n "Liberation Mono", "Courier New", monospace;\n box-sizing: border-box;\n outline: none;\n transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;\n}\n.${ZT}:focus {\n border-color: #1677ff;\n background: #ffffff;\n box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);\n}\n.${ZT}[data-invalid="true"] {\n border-color: #ff4d4f;\n box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.12);\n}\n.${QT} {\n display: inline-flex;\n}\n.${JT} {\n position: relative;\n display: grid;\n grid-template-columns: 1fr 1fr;\n align-items: center;\n width: 110px;\n height: 30px;\n padding: 0;\n border: 1px solid #d9d9d9;\n border-radius: 6px;\n background: #f5f5f5;\n cursor: pointer;\n overflow: hidden;\n transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;\n}\n.${JT}:hover {\n background: #ededed;\n}\n.${JT}:focus-visible {\n outline: none;\n border-color: #1677ff;\n box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);\n}\n.${tR} {\n position: absolute;\n inset: 0;\n width: 50%;\n background: #1677ff;\n border-radius: 6px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);\n transition: transform 0.2s ease;\n}\n.${JT}[data-format="rgba"] .${tR} {\n transform: translateX(100%);\n}\n.${eR} {\n position: relative;\n z-index: 1;\n text-align: center;\n font-size: 12px;\n color: #434343;\n user-select: none;\n}\n.${JT}[data-format="hexa"] .${eR}:first-child,\n.${JT}[data-format="rgba"] .${eR}:last-child {\n color: #ffffff;\n}\n`,t.root);const r=document.createElement("div");r.classList.add(qT);const o=document.createElement("div");o.classList.add(GT),r.appendChild(o);const s=document.createElement("div");s.classList.add(KT),r.appendChild(s);const a=document.createElement("input");a.type="text",a.spellcheck=!1,a.classList.add(ZT),s.appendChild(a);const l=document.createElement("div");l.classList.add(QT),s.appendChild(l);const c=document.createElement("button");c.type="button",c.classList.add(JT),c.appendChild(dR("HEXA"));const h=document.createElement("span");h.classList.add(tR),c.appendChild(h),c.appendChild(dR("RGBA")),l.appendChild(c);let u="hexa",d=null!==(n=null!==(e=oR(t.value))&&void 0!==e?e:oR("#1f1f1f"))&&void 0!==n?n:{r:31,g:31,b:31,a:1};const f=[];((null===(i=t.swatches)||void 0===i?void 0:i.length)?t.swatches:iR).forEach(t=>{const e=oR(t);if(!e)return;const n=document.createElement("button");n.type="button",n.classList.add(XT),n.style.setProperty("--swatch-color",sR(e,"rgba")),n.dataset.colorKey=lR(e),n.addEventListener("click",()=>{m(e)}),o.appendChild(n),f.push(n)}),c.addEventListener("click",()=>function(e,n){var i;if(u===e)return;u=e,y(),n&&(null===(i=t.onChange)||void 0===i||i.call(t,sR(d,u)))}("hexa"===u?"rgba":"hexa",!0)),a.addEventListener("change",g),a.addEventListener("keydown",t=>{"Enter"===t.key&&g()}),y();const p={setValue:t=>{const e=oR(t);e?(a.removeAttribute("data-invalid"),m(e,!1)):a.setAttribute("data-invalid","true")},destroy:()=>{r.remove()}};return Object.assign(r,p);function g(){const t=oR(a.value);t?(a.removeAttribute("data-invalid"),m(t)):a.setAttribute("data-invalid","true")}function m(e,n=!0){var i;!function(t,e){return t.r===e.r&&t.g===e.g&&t.b===e.b&&t.a===e.a}(d,e)?(d=e,y(),n&&(null===(i=t.onChange)||void 0===i||i.call(t,sR(d,u)))):y()}function y(){a.value=sR(d,u),function(){const t=lR(d);f.forEach(e=>{e.dataset.colorKey===t?e.setAttribute("data-active","true"):e.removeAttribute("data-active")})}(),c.setAttribute("data-format","rgba"===u?"rgba":"hexa")}}function oR(t){var e;if(!t)return;const n=Dt(t);if(!n||"number"!=typeof n.r)return;const i=n;return{r:hR(i.r),g:hR(i.g),b:hR(i.b),a:cR(null!==(e=i.alpha)&&void 0!==e?e:1)}}function sR(t,e){return"rgba"===e?function(t){const e=function(t){const e=Math.round(100*cR(t))/100;return 1===e?"1":0===e?"0":e.toString()}(t.a);return`rgba(${t.r}, ${t.g}, ${t.b}, ${e})`}(t):aR(t)}function aR(t){return`#${uR(t.r)}${uR(t.g)}${uR(t.b)}${t.a<1?uR(Math.round(255*t.a)):""}`}function lR(t){return aR(t).toLowerCase()}function cR(t){return Number.isNaN(t)?0:Math.min(1,Math.max(0,t))}function hR(t){if(Number.isNaN(t))return 0;return Math.round(Math.min(255,Math.max(0,t<=1?255*t:t)))}function uR(t){return t.toString(16).padStart(2,"0")}function dR(t){const e=document.createElement("span");return e.textContent=t,e.classList.add(eR),e}const fR=(t,{viewBox:e="0 0 1024 1024",size:n="1.5em"}={})=>({fill:i="currentColor"}={})=>{const r=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="${e}" width="${n}" height="${n}" fill="${i}">\n${t.trim()}\n</svg>`;return document.createRange().createContextualFragment(r).firstElementChild},pR={fontFamily:fR('<path d="M236.992 938.688H145.088L469.312 128h85.376l324.224 810.688h-91.904l-102.4-256H339.392l-102.4 256z m136.512-341.376h276.992L512 251.072l-138.496 346.24z"></path>',{size:"1.2em"}),fontSize:fR('<path d="M479.829333 640H202.837333l-85.333333 213.333333H25.6L298.666667 170.666667h85.333333l273.066667 682.666666h-91.904l-85.333334-213.333333z m-34.133333-85.333333L341.333333 293.76 236.970667 554.666667h208.725333zM896 534.826667V512h85.333333v341.333333h-85.333333v-22.826666a170.666667 170.666667 0 1 1 0-295.68zM810.666667 768a85.333333 85.333333 0 1 0 0-170.666667 85.333333 85.333333 0 0 0 0 170.666667z"></path>',{size:"1.2em"}),align:fR('<path d="M832 96c53.02 0 96 42.98 96 96v640c0 53.02-42.98 96-96 96H192c-53.02 0-96-42.98-96-96V192c0-53.02 42.98-96 96-96z m0 64H192c-17.673 0-32 14.327-32 32v640c0 17.673 14.327 32 32 32h640c17.673 0 32-14.327 32-32V192c0-17.673-14.327-32-32-32zM725.333 672c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z m0-192c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z m0-192c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004h426.666z"></path>'),alignTop:fR('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-121.533c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM512.45 91.003L512 91a32.632 32.632 0 0 1 1.653 0.042l0.134 0.008c3.447 0.189 6.75 0.924 9.82 2.12l0.198 0.078a16.118 16.118 0 0 1 0.485 0.197l0.11 0.046a31.82 31.82 0 0 1 8.546 5.315l0.12 0.105a31.066 31.066 0 0 1 1.189 1.095l0.08 0.078 0.235 0.23 0.062 0.063 128 128.055c12.494 12.5 12.49 32.761-0.01 45.255-12.374 12.37-32.356 12.489-44.877 0.362l-0.377-0.372L544 200.28v413.598c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.996-31.471l-0.004-0.53V200.278l-73.368 73.4c-12.369 12.375-32.35 12.503-44.877 0.381l-0.378-0.37c-12.374-12.37-12.502-32.352-0.38-44.878l0.37-0.378 128-128.055 0.181-0.178a31.875 31.875 0 0 1 9.5-6.47l0.105-0.046c0.116-0.051 0.233-0.101 0.35-0.15 0.054-0.024 0.11-0.047 0.165-0.07a28.198 28.198 0 0 1 0.536-0.219l0.157-0.061a31.816 31.816 0 0 1 9.356-2.103l0.113-0.007c0.147-0.01 0.294-0.02 0.442-0.027l0.028-0.001 0.39-0.019 0.144-0.005a23.911 23.911 0 0 1 0.712-0.018c0.3-0.004 0.602-0.004 0.904 0z"></path>'),alignRight:fR('<path d="M896 800.339c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H298.667c-17.673 0-32-14.327-32-32 0-17.497 14.041-31.713 31.47-31.996l0.53-0.004H896z m0-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H298.667c-17.673 0-32-14.327-32-32 0-17.496 14.041-31.713 31.47-31.996l0.53-0.004H896z m0-213.226c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignBottom:fR('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z m0-121.533c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM490.505 637.584l-0.127-0.117a32.174 32.174 0 0 1-0.633-0.596l-0.098-0.096-0.217-0.213-0.062-0.063-128-128.055c-12.494-12.499-12.49-32.76 0.01-45.254 12.374-12.37 32.356-12.489 44.877-0.362l0.377 0.371L480 536.598V123c0-17.673 14.327-32 32-32 17.496 0 31.713 14.042 31.996 31.47l0.004 0.53v413.597l73.368-73.398c12.494-12.5 32.755-12.503 45.255-0.01 12.374 12.37 12.502 32.352 0.38 44.878l-0.37 0.377-128 128.055c-0.121 0.12-0.238 0.236-0.356 0.35l0.355-0.35a31.922 31.922 0 0 1-9.68 6.649l-0.09 0.039a29.917 29.917 0 0 1-1.241 0.514 31.816 31.816 0 0 1-9.338 2.095l-0.113 0.008c-0.147 0.01-0.294 0.019-0.442 0.027h-0.028c-0.13 0.008-0.26 0.014-0.39 0.02l-0.144 0.005a23.92 23.92 0 0 1-0.796 0.019 33.927 33.927 0 0 1-0.37 0.002h-0.13l-0.236-0.002 0.366 0.002a32.633 32.633 0 0 1-1.153-0.02l-0.129-0.006a31.108 31.108 0 0 1-0.876-0.046l-0.105-0.008a31.811 31.811 0 0 1-8.926-1.931l-0.089-0.034a21.022 21.022 0 0 1-0.362-0.138l-0.098-0.04a22.132 22.132 0 0 1-0.746-0.304l-0.219-0.093-0.209-0.092a31.812 31.812 0 0 1-8.034-5.094l-0.12-0.105-0.173-0.153-0.151-0.136-0.105-0.093z"></path>'),alignLeft:fR('<path d="M725.333 800.339c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h597.333zM896 587.113c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768zM725.333 373.887c17.673 0 32 14.327 32 32 0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h597.333zM896 160.661c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignCenter:fR('<path d="M768 800.339c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H256c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h512z m128-213.226c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h768zM768 373.887c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H256c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h512z m128-213.226c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z"></path>'),alignMiddle:fR('<path d="M534.246 617.448l0.377 0.371 128 127.952c12.5 12.494 12.503 32.755 0.009 45.255-12.37 12.374-32.352 12.501-44.878 0.38l-0.377-0.372-73.38-73.352V939c0 17.673-14.326 32-32 32-17.496 0-31.712-14.042-31.995-31.47l-0.004-0.53-0.001-221.314-73.374 73.348c-12.374 12.37-32.356 12.49-44.878 0.363l-0.377-0.371c-12.37-12.375-12.49-32.356-0.362-44.878l0.37-0.377 128-127.952c12.372-12.366 32.347-12.49 44.87-0.37zM896 480.508c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM511.998 54c17.496 0 31.713 14.042 31.996 31.47l0.004 0.53-0.001 221.314 73.38-73.349c12.499-12.494 32.76-12.49 45.255 0.009 12.37 12.374 12.49 32.356 0.362 44.878l-0.37 0.377-128 127.951c-12.372 12.366-32.347 12.49-44.87 0.371l-0.377-0.37-128-127.952c-12.5-12.495-12.503-32.756-0.009-45.255 12.37-12.374 32.352-12.502 44.878-0.38l0.377 0.371 73.374 73.346V86c0-17.673 14.328-32 32-32z"></path>')},gR=fR('<path d="M502.714987 58.258904l-126.531056-54.617723a52.797131 52.797131 0 0 0-41.873587 96.855428A447.865322 447.865322 0 0 0 392.02307 946.707184a61.535967 61.535967 0 0 0 13.83649 1.820591 52.797131 52.797131 0 0 0 13.65443-103.773672 342.453118 342.453118 0 0 1-31.678278-651.771485l-8.374718 19.480321a52.615072 52.615072 0 0 0 27.855039 69.182448 51.522718 51.522718 0 0 0 20.572675 4.369418A52.797131 52.797131 0 0 0 476.498481 254.882703L530.205907 127.441352a52.979191 52.979191 0 0 0-27.49092-69.182448zM962.960326 509.765407A448.775617 448.775617 0 0 0 643.992829 68.090094a52.797131 52.797131 0 1 0-30.403866 101.042786A342.635177 342.635177 0 0 1 674.578753 801.059925a52.615072 52.615072 0 0 0-92.30395-50.612422l-71.913335 117.246043a52.433013 52.433013 0 0 0 17.295612 72.82363l117.063985 72.823629a52.797131 52.797131 0 1 0 54.617722-89.755123l-16.021198-10.013249A448.593558 448.593558 0 0 0 962.960326 509.765407z" p-id="1630"/>'),mR={align:fR('<path d="M555.188 715.059c17.673 0 32 14.327 32 32V875c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V747.059c0-17.673 14.327-32 32-32z m-32.001 63.999H203V843h320.187v-63.942zM854 416.529c17.673 0 32 14.327 32 32v127.942c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V448.529c0-17.673 14.327-32 32-32z m-32 64H203v63.941h619v-63.941zM683.25 118c17.673 0 32 14.327 32 32v127.941c0 17.673-14.327 32-32 32H171c-17.673 0-32-14.327-32-32V150c0-17.673 14.327-32 32-32z m-32 64H203v63.941h448.25V182z"></path>'),alignTop:fR('\n <path d="M661.333 272.411c17.673 0 32 14.327 32 32V902c0 17.673-14.327 32-32 32H362.667c-17.673 0-32-14.327-32-32V304.411c0-17.673 14.327-32 32-32z m-32 63.999H394.666V870h234.667V336.41zM896 101.671c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768z" />'),alignRight:fR('<path d="M891.329 96c17.496 0 31.713 14.042 31.995 31.47l0.005 0.53v768c0 17.673-14.327 32-32 32-17.497 0-31.713-14.042-31.996-31.47l-0.004-0.53V128c0-17.673 14.327-32 32-32z m-170.74 234.667c17.673 0 32 14.327 32 32v298.666c0 17.673-14.327 32-32 32H123c-17.673 0-32-14.327-32-32V362.667c0-17.673 14.327-32 32-32z m-32 63.999H155v234.667h533.589V394.666z" />'),alignBottom:fR('<path d="M896 859.329c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768zM661.333 91c17.673 0 32 14.327 32 32v597.589c0 17.673-14.327 32-32 32H362.667c-17.673 0-32-14.327-32-32V123c0-17.673 14.327-32 32-32z m-32 64H394.666v533.589h234.667V155z" />'),alignLeft:fR('<path d="M133.671 96c17.497 0 31.713 14.042 31.996 31.47l0.004 0.53v768c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.995-31.47l-0.005-0.53V128c0-17.673 14.327-32 32-32zM902 330.667c17.673 0 32 14.327 32 32v298.666c0 17.673-14.327 32-32 32H304.411c-17.673 0-32-14.327-32-32V362.667c0-17.673 14.327-32 32-32z m-32.001 63.999H336.41v234.667h533.589V394.666z" />'),alignH:fR('<path d="M512.5 96c17.496 0 31.713 14.042 31.996 31.47l0.004 0.53v202.666H875c17.496 0 31.713 14.042 31.996 31.471l0.004 0.53v298.666c0 17.673-14.327 32-32 32H544.5V896c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.996-31.47l-0.004-0.53V693.333H150c-17.496 0-31.713-14.041-31.996-31.47l-0.004-0.53V362.667c0-17.673 14.327-32 32-32l330.5-0.001V128c0-17.673 14.327-32 32-32z m-32 298.666H182v234.667h298.5V394.666z m362.5 0H544.5v234.667H843V394.666z" />'),alignV:fR('<path d="M661.333 118c17.673 0 32 14.327 32 32v330.5H896c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.996l-0.53 0.004H693.333V875c0 17.496-14.041 31.713-31.47 31.996l-0.53 0.004H362.667c-17.673 0-32-14.327-32-32l-0.001-330.5H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.996l0.53-0.004h202.666V150c0-17.496 14.042-31.713 31.471-31.996l0.53-0.004z m-32.001 426.5H394.665l0.001 298.5h234.667l-0.001-298.5z m0.001-362.5H394.666l-0.001 298.5h234.667l0.001-298.5z" />'),distributeH:fR('<path d="M853.333 96c17.497 0 31.713 14.042 31.996 31.47l0.004 0.53v768c0 17.673-14.327 32-32 32-17.496 0-31.713-14.042-31.995-31.47l-0.005-0.53V128c0-17.673 14.327-32 32-32z m-682.666 0c17.496 0 31.713 14.042 31.995 31.47l0.005 0.53v768c0 17.673-14.327 32-32 32-17.497 0-31.713-14.042-31.996-31.47l-0.004-0.53V128c0-17.673 14.327-32 32-32zM640 181.333c17.673 0 32 14.327 32 32v597.334c0 17.673-14.327 32-32 32H384c-17.673 0-32-14.327-32-32V213.333c0-17.673 14.327-32 32-32z m-32 64H416v533.333h192V245.333z" />'),distributeV:fR('<path d="M896 821.333c17.673 0 32 14.327 32 32 0 17.497-14.042 31.713-31.47 31.996l-0.53 0.004H128c-17.673 0-32-14.327-32-32 0-17.496 14.042-31.713 31.47-31.995l0.53-0.005h768zM810.667 352c17.673 0 32 14.327 32 32v256c0 17.673-14.327 32-32 32H213.333c-17.673 0-32-14.327-32-32V384c0-17.673 14.327-32 32-32z m-32 64H245.334v192h533.333V416zM896 138.667c17.673 0 32 14.327 32 32 0 17.496-14.042 31.713-31.47 31.995l-0.53 0.005H128c-17.673 0-32-14.327-32-32 0-17.497 14.042-31.713 31.47-31.996l0.53-0.004h768z" />')},yR="infographic-edit-popover",vR=`${yR}__content`,xR=`${yR}__arrow`,bR="infographic-edit-popover-style";function wR(t){var e,n,i,r,o,s,a,l;const c=null!==(e=t.placement)&&void 0!==e?e:"top",h=null===(n=t.closeOnOutsideClick)||void 0===n||n,u=Array.isArray(t.trigger)?t.trigger:[t.trigger||"hover"],d=null!==(i=t.mouseEnterDelay)&&void 0!==i?i:50,f=null!==(r=t.mouseLeaveDelay)&&void 0!==r?r:150,p=null!==(o=t.offset)&&void 0!==o?o:8,g="number"==typeof t.padding?`${t.padding}px`:null!==(s=t.padding)&&void 0!==s?s:"4px",m=document.createElement("div");m.classList.add(yR);const y=null!==(a=t.target)&&void 0!==a?a:document.createElement("div");m.appendChild(y);const v=document.createElement("div");v.classList.add(vR),zh(v,ns),v.dataset.placement=Array.isArray(c)?c[0]:c,v.setAttribute("data-open",String(Boolean(t.open))),v.style.setProperty("--popover-gap",`${p}px`),v.style.setProperty("--popover-arrow-size","8px"),v.style.setProperty("--popover-arrow-inner-size","7px");const x=(()=>{const e="function"==typeof t.getContainer?t.getContainer():t.getContainer;return null!=e?e:rT(y)})();ru(bR,`\n.${yR} {\n position: relative;\n display: inline-flex;\n}\n.${vR} {\n position: absolute;\n z-index: 1200;\n padding: 0;\n --popover-gap: 8px;\n --popover-arrow-size: 8px;\n --popover-arrow-inner-size: 7px;\n background: #fff;\n border-radius: 8px;\n border: 1px solid rgba(239, 240, 240, 0.9);\n box-shadow: rgba(0, 0, 0, 0.08) 0px 1px 2px -2px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.02) 0px 4px 8px 1px;\n opacity: 0;\n visibility: hidden;\n pointer-events: none;\n transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;\n}\n.${vR}-body {\n padding: 4px;\n color: #000000d9;\n font-size: 12px;\n line-height: 1.5;\n}\n.${vR}[data-open="true"] {\n opacity: 1;\n visibility: visible;\n pointer-events: auto;\n}\n.${xR} {\n position: absolute;\n width: 0;\n height: 0;\n}\n.${xR}::after {\n content: '';\n position: absolute;\n width: 0;\n height: 0;\n}\n.${vR}[data-placement="top"] {\n left: 50%;\n bottom: calc(100% + var(--popover-gap));\n transform: translate(-50%, calc(-1 * var(--popover-gap) / 2));\n}\n.${vR}[data-placement="top"] .${xR} {\n left: 50%;\n bottom: calc(-1 * var(--popover-arrow-size));\n transform: translateX(-50%);\n border-left: var(--popover-arrow-size) solid transparent;\n border-right: var(--popover-arrow-size) solid transparent;\n border-top: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);\n}\n.${vR}[data-placement="top"] .${xR}::after {\n left: 50%;\n bottom: 1px;\n transform: translateX(-50%);\n border-left: var(--popover-arrow-inner-size) solid transparent;\n border-right: var(--popover-arrow-inner-size) solid transparent;\n border-top: var(--popover-arrow-inner-size) solid #fff;\n}\n.${vR}[data-placement="top"][data-open="true"] {\n transform: translate(-50%, 0);\n}\n.${vR}[data-placement="bottom"] {\n left: 50%;\n top: calc(100% + var(--popover-gap));\n transform: translate(-50%, calc(var(--popover-gap) / 2));\n}\n.${vR}[data-placement="bottom"] .${xR} {\n left: 50%;\n top: calc(-1 * var(--popover-arrow-size) + 2px);\n transform: translateX(-50%);\n border-left: var(--popover-arrow-size) solid transparent;\n border-right: var(--popover-arrow-size) solid transparent;\n border-bottom: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);\n}\n.${vR}[data-placement="bottom"] .${xR}::after {\n left: 50%;\n top: 1px;\n transform: translateX(-50%);\n border-left: var(--popover-arrow-inner-size) solid transparent;\n border-right: var(--popover-arrow-inner-size) solid transparent;\n border-bottom: var(--popover-arrow-inner-size) solid #fff;\n}\n.${vR}[data-placement="bottom"][data-open="true"] {\n transform: translate(-50%, 0);\n}\n.${vR}[data-placement="left"] {\n right: calc(100% + var(--popover-gap));\n top: 50%;\n transform: translate(calc(-1 * var(--popover-gap) / 2), -50%);\n}\n.${vR}[data-placement="left"] .${xR} {\n right: calc(-1 * var(--popover-arrow-size) + 1px);\n top: 50%;\n transform: translateY(-50%);\n border-top: var(--popover-arrow-size) solid transparent;\n border-bottom: var(--popover-arrow-size) solid transparent;\n border-left: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);\n border-right: 0;\n}\n.${vR}[data-placement="left"] .${xR}::after {\n right: 1px;\n top: 50%;\n transform: translateY(-50%);\n border-top: var(--popover-arrow-inner-size) solid transparent;\n border-bottom: var(--popover-arrow-inner-size) solid transparent;\n border-left: var(--popover-arrow-inner-size) solid #fff;\n border-right: 0;\n}\n.${vR}[data-placement="left"][data-open="true"] {\n transform: translate(0, -50%);\n}\n.${vR}[data-placement="right"] {\n left: calc(100% + var(--popover-gap));\n top: 50%;\n transform: translate(calc(var(--popover-gap) / 2), -50%);\n}\n.${vR}[data-placement="right"] .${xR} {\n left: calc(-1 * var(--popover-arrow-size) + 1px);\n top: 50%;\n transform: translateY(-50%);\n border-top: var(--popover-arrow-size) solid transparent;\n border-bottom: var(--popover-arrow-size) solid transparent;\n border-right: var(--popover-arrow-size) solid rgba(239, 240, 240, 0.9);\n border-left: 0;\n}\n.${vR}[data-placement="right"] .${xR}::after {\n left: 1px;\n top: 50%;\n transform: translateY(-50%);\n border-top: var(--popover-arrow-inner-size) solid transparent;\n border-bottom: var(--popover-arrow-inner-size) solid transparent;\n border-right: var(--popover-arrow-inner-size) solid #fff;\n}\n.${vR}[data-placement="right"][data-open="true"] {\n transform: translate(0, -50%);\n}\n`,x);const b=x!==m,w=document.createElement("div");w.classList.add(xR),v.appendChild(w);const M=document.createElement("div");M.classList.add(`${vR}-body`),M.style.padding=g,v.appendChild(M),x.appendChild(v);let k=Boolean(t.open),C=Array.isArray(c)?c:[c],O=null!==(l=C[0])&&void 0!==l?l:"top";const j=()=>{var t;const e=y.getBoundingClientRect(),n=v.getBoundingClientRect(),i=window.scrollX||document.documentElement.scrollLeft,r=window.scrollY||document.documentElement.scrollTop,o=document.documentElement.clientWidth,s=document.documentElement.clientHeight;let a=0,l=0;const c=t=>{switch(t){case"top":return{left:i+e.left+e.width/2-n.width/2,top:r+e.top-n.height-p};case"bottom":return{left:i+e.left+e.width/2-n.width/2,top:r+e.bottom+p};case"left":return{left:i+e.left-n.width-p,top:r+e.top+e.height/2-n.height/2};default:return{left:i+e.right+p,top:r+e.top+e.height/2-n.height/2}}},h=(t,e)=>t>=i&&e>=r&&t+n.width<=i+o&&e+n.height<=r+s;let u=null!==(t=C[0])&&void 0!==t?t:"top",d=c(u);for(const t of C){const e=c(t);if(d=e,h(e.left,e.top)){u=t;break}}if(O=u,v.dataset.placement=O,!b)return;({left:a,top:l}=d);const f=(()=>{const t=v.offsetParent;return t||(x instanceof ShadowRoot?x.host:x instanceof HTMLElement?x:document.documentElement)})();if(f===document.body||f===document.documentElement)v.style.left=`${a}px`,v.style.top=`${l}px`;else{const t=f.getBoundingClientRect();v.style.left=`${a-t.left+f.scrollLeft}px`,v.style.top=`${l-t.top+f.scrollTop}px`}v.style.right="auto",v.style.bottom="auto",v.style.transform="translate(0, 0)"};b&&(v.style.position="absolute",window.addEventListener("resize",j),window.addEventListener("scroll",j,!0));const E=t=>{let e=t;"function"==typeof e&&(e=e()),M.innerHTML="",e instanceof HTMLElement?M.appendChild(e):M.textContent=null!=e?e:"",j()},_=t=>{var e;C=Array.isArray(t)?t:[t],O=null!==(e=C[0])&&void 0!==e?e:"top",j()},S=t=>{k=t,v.setAttribute("data-open",String(k)),k&&j(),k&&h?document.addEventListener("click",A,!0):document.removeEventListener("click",A,!0)},$=()=>S(!k),A=t=>{const e=oT(t,m),n=oT(t,v);e||n||S(!1)};let z,P;const L=u.includes("hover"),I=u.includes("click"),T=()=>{void 0!==z&&(clearTimeout(z),z=void 0),void 0!==P&&(clearTimeout(P),P=void 0)},R=()=>{L&&(T(),z=window.setTimeout(()=>S(!0),d))},B=()=>{L&&(T(),P=window.setTimeout(()=>S(!1),f))};I&&y.addEventListener("click",$),L&&(m.addEventListener("mouseenter",R),m.addEventListener("mouseleave",B),v.addEventListener("mouseenter",R),v.addEventListener("mouseleave",B)),E(t.content),_(c),S(k);const W={setOpen:S,toggle:$,setContent:E,setPlacement:_,destroy:()=>{document.removeEventListener("click",A,!0),I&&y.removeEventListener("click",$),L&&(m.removeEventListener("mouseenter",R),m.removeEventListener("mouseleave",B),v.removeEventListener("mouseenter",R),v.removeEventListener("mouseleave",B),T()),b&&(window.removeEventListener("resize",j),window.removeEventListener("scroll",j,!0),v.remove()),m.remove()}};return Object.assign(m,W)}const MR="infographic-align-grid",kR=`${MR}--compact`,CR=`\n.${MR} {\n display: grid;\n grid-template-columns: repeat(4, 32px);\n grid-auto-rows: 32px;\n gap: 2px;\n}\n.${kR} {\n grid-template-columns: repeat(3, 32px);\n}\n`,OR=[{icon:mR.alignLeft,action:"LEFT"},{icon:mR.alignH,action:"H_CENTER"},{icon:mR.alignRight,action:"RIGHT"},{icon:mR.distributeH,action:"H_DISTRIBUTE"},{icon:mR.alignTop,action:"TOP"},{icon:mR.alignV,action:"V_CENTER"},{icon:mR.alignBottom,action:"BOTTOM"},{icon:mR.distributeV,action:"V_DISTRIBUTE"}],jR=(t,e,n,i)=>{var r;ru("infographic-align-grid-style",CR,null==i?void 0:i.root);const o=function(t,e,n){const i=document.createElement("div");i.classList.add(MR),e||i.classList.add(kR);const r=e?OR:OR.filter(({action:t})=>"H_DISTRIBUTE"!==t&&"V_DISTRIBUTE"!==t);return r.forEach(({icon:e,action:r})=>{const o=VT({root:n,icon:e,onClick:()=>t(r)});i.appendChild(o)}),i}(e=>function(t,e,n){if(!t.length)return;const i=t[0].ownerSVGElement;if(!i)return;const r=t.map(t=>function(t,e){const n=hP(e,t),i=!Ah(t),r=function(t){var e;const n=t.getAttribute("transform");if(null===n)return null;const i=n.match(/translate\(\s*([-\d.]+)(?:[ ,]\s*([-\d.]+))?\s*\)/i);if(!i){return{x:0,y:0,rest:{before:n.trim(),after:""},original:n}}const r=Number(i[1])||0,o=void 0!==i[2]&&Number(i[2])||0,s=null!==(e=i.index)&&void 0!==e?e:0,a=n.slice(0,s).trim(),l=n.slice(s+i[0].length).trim();return{x:r,y:o,rest:{before:a,after:l},original:n}}(t);if(r)return{element:t,bounds:n,mode:"transform",startX:r.x,startY:r.y,hasX:!1,hasY:!1,hasDataX:!1,hasDataY:!1,restTransform:r.rest,originalTransform:r.original,movable:i};const{x:o,y:s,hasX:a,hasY:l,hasDataX:c,hasDataY:h}=function(t,e){const n=th(t,["x","y","data-x","data-y"],!1),i=null!=n.x,r=null!=n.y,o=null!=n["data-x"],s=null!=n["data-y"],a=(t,e)=>{const n=null!=t?Number(t):NaN;return Number.isFinite(n)?n:e},l=a(n.x,NaN),c=a(n.y,NaN),h=a(n["data-x"],NaN),u=a(n["data-y"],NaN),d=Number.isFinite(l)?l:Number.isFinite(h)?h:e.x,f=Number.isFinite(c)?c:Number.isFinite(u)?u:e.y;return{x:d,y:f,hasX:i,hasY:r,hasDataX:o,hasDataY:s}}(t,n);return{element:t,bounds:n,mode:"attr",startX:o,startY:s,hasX:a,hasY:l,hasDataX:c,hasDataY:h,movable:i}}(t,i)).filter(Boolean);if(!r.length)return;const o=r.filter(t=>t.movable);if(!o.length)return;const s=r.filter(t=>!t.movable),a=s.length?s:r,l=uu(a.map(t=>t.bounds)),c=[];switch(e){case"LEFT":{const t=l.x;o.forEach(e=>{_R(c,e,t-e.bounds.x,0)});break}case"H_CENTER":{const t=l.x+l.width/2;o.forEach(e=>{_R(c,e,t-(e.bounds.x+e.bounds.width/2),0)});break}case"RIGHT":{const t=l.x+l.width;o.forEach(e=>{_R(c,e,t-(e.bounds.x+e.bounds.width),0)});break}case"TOP":{const t=l.y;o.forEach(e=>{_R(c,e,0,t-e.bounds.y)});break}case"V_CENTER":{const t=l.y+l.height/2;o.forEach(e=>{_R(c,e,0,t-(e.bounds.y+e.bounds.height/2))});break}case"BOTTOM":{const t=l.y+l.height;o.forEach(e=>{_R(c,e,0,t-(e.bounds.y+e.bounds.height))});break}case"H_DISTRIBUTE":!function(t,e){if(t.length<=2)return;const n=[...t].sort((t,e)=>t.bounds.x-e.bounds.x||t.bounds.y-e.bounds.y),i=ER(n);for(let t=0;t<i.length-1;t++){const r=i[t],o=i[t+1],s=n[r],a=n[o],l=n.slice(r+1,o);if(!l.length)continue;const c=(a.bounds.x-(s.bounds.x+s.bounds.width)-l.reduce((t,e)=>t+e.bounds.width,0))/(l.length+1);let h=s.bounds.x+s.bounds.width+c;l.forEach(t=>{_R(e,t,h-t.bounds.x,0),h+=t.bounds.width+c})}}(r,c);break;case"V_DISTRIBUTE":!function(t,e){if(t.length<=2)return;const n=[...t].sort((t,e)=>t.bounds.y-e.bounds.y||t.bounds.x-e.bounds.x),i=ER(n);for(let t=0;t<i.length-1;t++){const r=i[t],o=i[t+1],s=n[r],a=n[o],l=n.slice(r+1,o);if(!l.length)continue;const c=(a.bounds.y-(s.bounds.y+s.bounds.height)-l.reduce((t,e)=>t+e.bounds.height,0))/(l.length+1);let h=s.bounds.y+s.bounds.height+c;l.forEach(t=>{_R(e,t,0,h-t.bounds.y),h+=t.bounds.height+c})}}(r,c)}c.length&&n.executeBatch(c)}(t,e,n),null===(r=null==i?void 0:i.enableDistribution)||void 0===r||r,null==i?void 0:i.root);return wR({target:VT({icon:mR.align,root:null==i?void 0:i.root}),content:o,getContainer:null==i?void 0:i.root,placement:"top",offset:12})};function ER(t){const e=new Set;return e.add(0),e.add(t.length-1),t.forEach((t,n)=>{t.movable||e.add(n)}),Array.from(e).sort((t,e)=>t-e)}function _R(t,e,n,i){const r=function(t,e,n){if(!t.movable)return null;if(Math.abs(e)<1e-6&&Math.abs(n)<1e-6)return null;if("attr"===t.mode){const i=t.startX+e,r=t.startY+n,o={x:i,y:r},s={};return s.x=t.hasX?t.startX:null,s.y=t.hasY?t.startY:null,t.hasDataX&&(o["data-x"]=i,s["data-x"]=t.startX),t.hasDataY&&(o["data-y"]=r,s["data-y"]=t.startY),new rP(t.element,{attributes:o},{attributes:s})}const i=function(t,e,n){const i=`translate(${t}, ${e})`;return[null==n?void 0:n.before,i,null==n?void 0:n.after].filter(t=>t&&t.length).join(" ")}(t.startX+e,t.startY+n,t.restTransform),r=void 0!==t.originalTransform?t.originalTransform:null;return new rP(t.element,{attributes:{transform:i}},{attributes:{transform:r}})}(e,n,i);r&&t.push(r)}const SR="infographic-font-align-grid",$R=[{icon:pR.alignLeft,align:"LEFT"},{icon:pR.alignCenter,align:"CENTER"},{icon:pR.alignRight,align:"RIGHT"}],AR=[{icon:pR.alignTop,align:"TOP"},{icon:pR.alignMiddle,align:"MIDDLE"},{icon:pR.alignBottom,align:"BOTTOM"}],zR=`\n.${SR} {\n display: grid;\n grid-template-columns: repeat(3, 32px);\n grid-auto-rows: 32px;\n gap: 2px;\n}\n`,PR=(t,e,n,i)=>{const r=null==i?void 0:i.root;ru("infographic-font-align-grid-style",zR,r);const o={horizontal:e["data-horizontal-align"],vertical:e["data-vertical-align"]},s=VT({icon:pR.align,root:r}),a=function(t,e,n){const i=document.createElement("div");i.classList.add(SR);const r={},o=()=>{Object.entries(r).forEach(([e,n])=>{n.setActivate(e===t.horizontal||e===t.vertical)})},s=(s,a)=>{s.forEach(({icon:s,align:l})=>{const c=VT({root:n,icon:s,onClick:()=>{t[a]!==l&&(Object.assign(t,{[a]:l}),o(),e(Object.assign({},t)))},activate:l===t[a]});r[l]=c,i.appendChild(c)})};return s($R,"horizontal"),s(AR,"vertical"),i}(o,e=>{const i={};e.horizontal&&(i["data-horizontal-align"]=e.horizontal),e.vertical&&(i["data-vertical-align"]=e.vertical),Object.keys(i).length&&n.executeBatch(t.map(t=>new rP(t,{attributes:i})))},r);return wR({target:s,content:a,getContainer:r,placement:"top",offset:12})};const LR="infographic-font-color-btn",IR="infographic-font-color-style",TR="#1f1f1f",RR=(t,e,n,i)=>{const r=null==i?void 0:i.root;ru(IR,`\n.${LR} {\n position: relative;\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n background: #fff;\n cursor: pointer;\n transition: box-shadow 0.2s ease, border-color 0.2s ease;\n}\n.${LR}::after {\n content: '';\n position: absolute;\n inset: 6px;\n border-radius: 50%;\n background: var(--infographic-font-color, ${TR});\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);\n}\n.${LR}[data-mixed="true"]::after {\n background: repeating-linear-gradient(\n 45deg,\n #d9d9d9 0,\n #d9d9d9 6px,\n #f5f5f5 6px,\n #f5f5f5 12px\n );\n}\n`,r);const o=function(t){return t&&Ar(t)?t:void 0}(e.fill),s=void 0===e.fill&&t.length>1,a=document.createElement("button");a.type="button",a.classList.add(LR),BR(a,null!=o?o:TR,s);const l=rR({root:r,value:null!=o?o:TR,onChange:e=>{BR(a,e,!1),n.executeBatch(t.map(t=>new rP(t,{attributes:{fill:e}})))}});return wR({target:a,content:l,getContainer:r,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function BR(t,e,n){t.style.setProperty("--infographic-font-color",e),n?t.setAttribute("data-mixed","true"):t.removeAttribute("data-mixed")}const WR="infographic-font-family-list",HR=`${WR}__option`,NR="infographic-font-family-list-style",FR=(t,e,n,i)=>{const r=null==i?void 0:i.root;ru(NR,`\n.${WR} {\n display: flex;\n flex-direction: column;\n gap: 2px;\n padding: 4px;\n min-width: 180px;\n max-height: 220px;\n overflow-y: auto;\n}\n.${HR} {\n width: 100%;\n text-align: left;\n padding: 6px 10px;\n border: none;\n border-radius: 6px;\n background: #fff;\n cursor: pointer;\n font-size: 12px;\n color: #000000d9;\n transition: background-color 0.2s ease, color 0.2s ease;\n}\n.${HR}:hover {\n background: #f5f5f5;\n}\n.${HR}[data-activate="true"] {\n background: #e6f4ff;\n color: #0958d9;\n}\n`,r);const o=Pa(),s=DR(e["font-family"]),a=o.map(t=>({label:t.name||t.fontFamily,value:t.fontFamily}));a.some(t=>DR(t.value)===s)||a.unshift({label:"默认",value:s});let l=s;const c=function(t,e,n){const i=document.createElement("div");i.classList.add(WR);const r={},o=t=>{Object.entries(r).forEach(([e,n])=>{e===t?n.setAttribute("data-activate","true"):n.removeAttribute("data-activate")})};return t.forEach(({label:t,value:s})=>{const a=document.createElement("button");a.type="button",a.classList.add(HR),a.textContent=t,a.style.fontFamily=s,s===e&&a.setAttribute("data-activate","true"),a.addEventListener("click",()=>{e!==s&&(o(e=s),n(s))}),r[s]=a,i.appendChild(a)}),i}(a,l,e=>{l!==e&&(l=e,n.executeBatch(t.map(t=>new rP(t,{attributes:{"font-family":ua(e)}}))))});return wR({target:VT({icon:pR.fontFamily,root:r}),content:c,getContainer:r,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function DR(t){return t?Array.isArray(t)?da(t.join(", ")):da(String(t)):""}const VR="infographic-font-size-grid",UR=[{label:"XS",value:12},{label:"S",value:14},{label:"M",value:16},{label:"L",value:20},{label:"XL",value:24}],YR=`\n.${VR} {\n display: grid;\n grid-template-columns: repeat(5, 32px);\n grid-auto-rows: 32px;\n gap: 2px;\n}\n`,qR=(t,e,n,i)=>{const r=null==i?void 0:i.root;ru("infographic-font-size-grid-style",YR,r);const o=VT({icon:pR.fontSize,root:r}),s=function(t){const e=12;if("number"==typeof t)return t;if("string"==typeof t){const n=parseFloat(t);return Number.isFinite(n)?n:e}return e}(e["font-size"]),a=function(t,e,n){const i=document.createElement("div");i.classList.add(VR);let r=t;const o={},s=()=>{Object.entries(o).forEach(([t,e])=>{const n=Number(t)===r;e.setActivate(n)})};return UR.forEach(({label:t,value:a})=>{const l=VT({root:n,icon:GR(t),onClick:()=>{r!==a&&(r=a,s(),e(a))},activate:a===r});o[String(a)]=l,i.appendChild(l)}),i}(s,e=>{n.executeBatch(t.map(t=>new rP(t,{attributes:{"font-size":e}})))},r);return wR({target:o,content:a,getContainer:r,placement:"top",offset:12})};function GR(t){return()=>{const e="1.2em",n=document.createElement("span");return n.textContent=t,n.style.display="inline-flex",n.style.alignItems="center",n.style.justifyContent="center",n.style.width=e,n.style.height=e,n.style.fontSize="12px",n}}const XR="infographic-icon-color-btn",KR="infographic-icon-color-style",ZR="#1f1f1f",QR=(t,e,n,i)=>{const r=null==i?void 0:i.root;ru(KR,`\n.${XR} {\n position: relative;\n width: 32px;\n height: 32px;\n padding: 0;\n border: none;\n background: #fff;\n cursor: pointer;\n transition: box-shadow 0.2s ease, border-color 0.2s ease;\n}\n.${XR}::after {\n content: '';\n position: absolute;\n inset: 6px;\n border-radius: 50%;\n background: var(--infographic-icon-color, ${ZR});\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);\n}\n.${XR}[data-mixed="true"]::after {\n background: repeating-linear-gradient(\n 45deg,\n #d9d9d9 0,\n #d9d9d9 6px,\n #f5f5f5 6px,\n #f5f5f5 12px\n );\n}\n`,r);const o=function(t){return t&&Ar(t)?t:void 0}(e.fill),s=void 0===e.fill&&t.length>1,a=document.createElement("button");a.type="button",a.classList.add(XR),JR(a,null!=o?o:ZR,s);const l=rR({root:r,value:null!=o?o:ZR,onChange:e=>{JR(a,e,!1),n.executeBatch(t.map(t=>new rP(t,{attributes:{fill:e}})))}});return wR({target:a,content:l,getContainer:r,placement:["top","bottom"],offset:12,trigger:"hover",closeOnOutsideClick:!0,open:!1,padding:0})};function JR(t,e,n){t.style.setProperty("--infographic-icon-color",e),n?t.setAttribute("data-mixed","true"):t.removeAttribute("data-mixed")}class tB extends FT{constructor(t){super(),this.options=t,this.name="edit-bar",this.selection=[],this.handleSelectionChanged=({next:t})=>{if(this.selection=t,0===t.length)return void(this.container&&nB(this.container));const e=this.getOrCreateEditBar(),n=this.getEditItems(t);0!==n.length?(!function(t,e){t.innerHTML="",e.forEach(e=>{t.appendChild(e)})}(e,n),this.placeEditBar(e,t),eB(e)):nB(e)},this.handleGeometryChanged=({target:t})=>{this.selection.includes(t)&&this.container&&(this.placeEditBar(this.container,this.selection),eB(this.container))},this.handleHistoryChanged=()=>{this.container&&0!==this.selection.length&&(this.placeEditBar(this.container,this.selection),eB(this.container))}}init(t){super.init(t);const{emitter:e}=t;e.on("selection:change",this.handleSelectionChanged),e.on("selection:geometrychange",this.handleGeometryChanged),e.on("history:change",this.handleHistoryChanged)}destroy(){var t;const{emitter:e}=this;e.off("selection:change",this.handleSelectionChanged),e.off("selection:geometrychange",this.handleGeometryChanged),e.off("history:change",this.handleHistoryChanged),null===(t=this.container)||void 0===t||t.remove()}getEditItems(t){let e=!1,n=!1,i=!1;for(const r of t)if(_h(r)?e=!0:Ah(r)?n=!0:$h(r)&&(i=!0),e&&n&&i)break;return!e||n||i?e||!n||i?e||n||!i?this.getElementCollectionEditItems(t):1===t.length?this.getGeometryEditItems(t):this.getGeometryCollectionEditItems(t):1===t.length?this.getIconEditItems(t):this.getIconCollectionEditItems(t):1===t.length?this.getTextEditItems(t[0]):this.getTextCollectionEditItems(t)}getOrCreateEditBar(){if(this.container)return this.container;const{style:t,className:e}=this.options||{},n=document.createElement("div");Object.assign(n.style,Object.assign({visibility:"hidden",position:"absolute",left:"0",top:"0",display:"flex",flexFlow:"row",justifyContent:"center",alignItems:"center",height:"40px",minWidth:"40px",minHeight:"40px",borderRadius:"8px",padding:"0 4px",backgroundColor:"#fff",border:"1px solid rgba(239, 240, 240, 0.9)",zIndex:"9999",boxShadow:"rgba(0, 0, 0, 0.08) 0px 1px 2px -2px, rgba(0, 0, 0, 0.04) 0px 2px 6px, rgba(0, 0, 0, 0.02) 0px 4px 8px 1px"},t)),e&&n.classList.add(e),zh(n,ns),this.container=n;const i=this.resolveOverlayRoot();return null==i||i.appendChild(n),n}getTextEditItems(t){const{attributes:e={}}=lh(t),n=this.resolveOverlayRoot();return[RR,qR,PR,FR].map(i=>i([t],e,this.commander,{root:n}))}getTextCollectionEditItems(t){const e=tt(t.map(t=>lh(t).attributes||{})),n=this.resolveOverlayRoot();return[...[RR,qR,PR,FR].map(i=>i(t,e,this.commander,{root:n})),...this.getElementCollectionEditItems(t)]}getIconEditItems(t){const e=qh(t[0]),n=this.resolveOverlayRoot();return[QR].map(i=>i(t,e,this.commander,{root:n}))}getIconCollectionEditItems(t){const e=tt(t.map(t=>qh(t))),n=this.resolveOverlayRoot();return[QR].map(i=>i(t,e,this.commander,{root:n}))}getGeometryEditItems(t){return[]}getGeometryCollectionEditItems(t){return[...this.getElementCollectionEditItems(t)]}getElementCollectionEditItems(t){if(t.length<=1)return[];const e=this.resolveOverlayRoot();return[jR(t,0,this.commander,{enableDistribution:t.length>2,root:e})]}resolveOverlayRoot(){const{getContainer:t}=this.options||{},e="function"==typeof t?t():t;return null!=e?e:rT(this.editor.getDocument())}placeEditBar(t,e){var n;if(0===e.length)return;const i=uu(e.map(t=>t.getBoundingClientRect())),r=null!==(n=t.offsetParent)&&void 0!==n?n:document.documentElement,o=document.documentElement.clientHeight,s=document.documentElement.clientWidth,a=t.getBoundingClientRect(),l={x:i.x+i.width/2,y:i.y},c=i.y+i.height,h=(t,e,n)=>Math.min(Math.max(t,e),n),u=l.y-8,d=u>=a.height||u>=o-c-8;if(r===document.body||r===document.documentElement){const e=window.scrollX||document.documentElement.scrollLeft,n=window.scrollY||document.documentElement.scrollTop;let i=e+l.x-a.width/2;i=h(i,e,e+Math.max(s-a.width,0));let r=d?n+l.y-a.height-8:n+c+8;return r=h(r,n,n+Math.max(o-a.height,0)),t.style.left=`${i}px`,void(t.style.top=`${r}px`)}const f=r.getBoundingClientRect();let p=l.x-f.left-a.width/2;p=h(p,0,Math.max(f.width-a.width,0));let g=d?l.y-f.top-a.height-8:c-f.top+8;g=h(g,0,Math.max(f.height-a.height,0)),t.style.left=`${p}px`,t.style.top=`${g}px`}}function eB(t){t.style.visibility="visible"}function nB(t){t.style.visibility="hidden"}const iB=40;class rB extends FT{constructor(t){super(),this.options=t,this.name="reset-viewBox",this.viewBoxChanged=!1,this.handleResize=()=>{this.updateOriginViewBox(),this.updatePosition()},this.handleViewBoxChange=t=>{const e=this.editor.getDocument();if(this.viewBoxChanged=t!==this.originViewBox,!this.viewBoxChanged)return void(this.resetButton&&this.hideButton(this.resetButton));const n=this.getOrCreateResetButton();this.placeButton(n,e),this.showButton(n)},this.getOrCreateResetButton=()=>{if(this.resetButton)return this.resetButton;const{style:t,className:e}=this.options||{},n=this.resolveOverlayRoot();this.ensureButtonStyle(n);const i=VT({icon:gR,onClick:this.resetViewBox,root:n});return i.classList.add(oB),e&&i.classList.add(e),t&&Object.assign(i.style,t),zh(i,ns),this.resetButton=i,null==n||n.appendChild(i),i},this.getTransformScale=t=>{const e=t.getBoundingClientRect();return{scaleX:t.offsetWidth>0?e.width/t.offsetWidth:1,scaleY:t.offsetHeight>0?e.height/t.offsetHeight:1}},this.findStableContainer=t=>{let e=t.parentElement;for(;e;){if(e instanceof HTMLElement){const t=window.getComputedStyle(e);if(t.overflow&&"visible"!==t.overflow||t.overflowX&&"visible"!==t.overflowX||t.overflowY&&"visible"!==t.overflowY)return e}e=e.parentElement}return null},this.placeButton=(t,e)=>{var n;if(!e.isConnected)return;const i=e.getBoundingClientRect(),r=null!==(n=t.offsetParent)&&void 0!==n?n:document.documentElement,o=this.findStableContainer(e),s=null==o?void 0:o.getBoundingClientRect(),a=s?{right:Math.min(i.right,s.right),bottom:Math.min(i.bottom,s.bottom)}:i;if(r===document.body||r===document.documentElement){const e=window.scrollX||document.documentElement.scrollLeft,n=(window.scrollY||document.documentElement.scrollTop)+a.bottom-25-iB;return t.style.left=`${e+a.right-25-iB}px`,void(t.style.top=`${n}px`)}const l=r.getBoundingClientRect(),{scaleX:c,scaleY:h}=this.getTransformScale(r),u=(a.bottom-l.top)/h-25-iB;t.style.left=`${(a.right-l.left)/c-25-iB}px`,t.style.top=`${u}px`},this.updatePosition=()=>{this.resetButton&&this.viewBoxChanged&&this.placeButton(this.resetButton,this.editor.getDocument())},this.resetViewBox=()=>{const t=new aP({viewBox:this.originViewBox});this.commander.execute(t)},this.showButton=t=>{t.style.display="flex",t.style.visibility="visible"},this.hideButton=t=>{t.style.display="none"},this.removeButton=()=>{var t;this.viewBoxChanged=!1,null===(t=this.resetButton)||void 0===t||t.remove(),this.resetButton=void 0}}init(t){super.init(t),this.ensureButtonStyle(this.resolveOverlayRoot()),this.updateOriginViewBox(),this.unregisterSync=this.editor.registerSync("viewBox",this.handleViewBoxChange),window.addEventListener("resize",this.handleResize)}destroy(){var t;null===(t=this.unregisterSync)||void 0===t||t.call(this),window.removeEventListener("resize",this.handleResize),this.removeButton()}updateOriginViewBox(){const t=this.editor.getDocument();if(!t.getBBox)return void(this.originViewBox=Qh(Zh(t)));const{padding:e}=this.state.getOptions();this.originViewBox=nu(t,Jh(e))}resolveOverlayRoot(){const{getContainer:t}=this.options||{},e="function"==typeof t?t():t;return null!=e?e:rT(this.editor.getDocument())}ensureButtonStyle(t){ru(sB,`\n button.${oB} {\n visibility: hidden;\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n padding: 4px;\n background-color: #fff;\n border: 1px solid #e5e7eb;\n z-index: 1000;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n cursor: pointer;\n }\n `,t)}}const oB="infographic-reset-viewbox-btn",sB="infographic-reset-viewbox-btn-style";class aB extends FT{constructor(){super(...arguments),this.name="resize-element",this.target=null,this.handles=[],this.activeHandle=null,this.activePointerId=null,this.handleSelectionChange=({next:t})=>{const e=1===t.length?t[0]:null;e&&_h(e)?(this.target=e,this.updateHandles()):(this.target=null,this.hideHandles(),this.cancelDrag())},this.handleDeactivate=()=>{this.target=null,this.hideHandles(),this.cancelDrag()},this.handleGeometryChange=({target:t})=>{if(!this.target||t!==this.target)return;const e=this.getViewportRect(this.target);this.lastViewportRect=e,this.updateHandles(e)},this.handleHistoryChange=()=>{if(!this.target)return;const t=this.getViewportRect(this.target);this.lastViewportRect=t,this.updateHandles(t)},this.handlePointerMove=t=>{if(!this.target||!this.startPointer||!this.startRect||!this.activeHandle||null!==this.activePointerId&&t.pointerId!==this.activePointerId)return;const e=this.clientToElement(this.target,t.clientX,t.clientY),n=this.clampRect(this.applyDelta(this.startRect,e.x-this.startPointer.x,e.y-this.startPointer.y,this.activeHandle),this.activeHandle);this.lastRect=n,this.applyRect(this.target,n),this.lastViewportRect=this.getViewportRect(this.target),this.updateHandles(this.lastViewportRect),this.emitSelectionGeometryChange()},this.handlePointerUp=t=>{if(null!==this.activePointerId&&t.pointerId!==this.activePointerId)return;const e=this.lastRect,n=this.startAttrs,i=e&&this.startRect&&this.hasRectChanged(this.startRect,e);if(this.cancelDrag(),i&&this.target&&e&&n)this.commander.execute(new rP(this.target,{attributes:e},{attributes:n})),this.lastViewportRect=this.getViewportRect(this.target),this.updateHandles(this.lastViewportRect),this.emitSelectionGeometryChange();else if(this.target){const t=this.lastViewportRect||this.getViewportRect(this.target);this.updateHandles(t)}}}init(t){super.init(t);const{emitter:e}=t;e.on("selection:change",this.handleSelectionChange),e.on("selection:geometrychange",this.handleGeometryChange),e.on("history:change",this.handleHistoryChange),e.on("deactivated",this.handleDeactivate)}destroy(){this.cancelDrag(),this.removeContainer();const{emitter:t}=this;t.off("selection:change",this.handleSelectionChange),t.off("selection:geometrychange",this.handleGeometryChange),t.off("history:change",this.handleHistoryChange),t.off("deactivated",this.handleDeactivate)}ensureContainer(){if(this.container)return this.container;const t=Zc("g",{"pointer-events":"none"});this.overlay=Zc("rect",{fill:"rgba(51, 132, 245, 0.06)",stroke:"none","pointer-events":"none"});const e=Zc("rect",{fill:"none",stroke:"#3384F5","stroke-width":1,"stroke-dasharray":"4 2","pointer-events":"none"});t.appendChild(this.overlay),t.appendChild(e),this.outline=e;const n={"top-left":"nwse-resize",top:"ns-resize","top-right":"nesw-resize",right:"ew-resize","bottom-right":"nwse-resize",bottom:"ns-resize","bottom-left":"nesw-resize",left:"ew-resize"};return aB.HANDLE_POSITIONS.forEach((e,i)=>{const r="top"===e||"right"===e||"bottom"===e||"left"===e?Zc("line",{stroke:"transparent","stroke-width":aB.LINE_STROKE_WIDTH}):Zc("circle",{r:aB.HANDLE_SIZE/2,fill:"#3384F5",stroke:"#fff","stroke-width":1.5});r.style.cursor=n[e],r.style.pointerEvents="all",r.addEventListener("pointerdown",t=>this.handlePointerDown(t,e)),r.addEventListener("click",t=>{t.stopPropagation(),t.preventDefault()}),t.appendChild(r),this.handles[i]=r}),this.editor.getDocument().appendChild(t),this.container=t,t}updateHandles(t){if(!this.target)return void this.hideHandles();const e=t||this.getViewportRect(this.target)||this.lastViewportRect||null;if(!e)return void this.hideHandles();this.lastViewportRect=e;this.ensureContainer().style.display="block",this.outline.style.display="block",Jc(this.outline,e),this.overlay&&(this.overlay.style.display="block",Jc(this.overlay,e));const n=this.getHandlePoints(e);this.handles.forEach((t,i)=>{const[r,o]=n[i];if("circle"===t.tagName)Jc(t,{cx:r,cy:o});else{Jc(t,this.getHandleLine(e,aB.HANDLE_POSITIONS[i]))}t.style.display="block"})}hideHandles(){this.container&&(this.container.style.display="none"),this.outline&&(this.outline.style.display="none"),this.overlay&&(this.overlay.style.display="none"),this.handles.forEach(t=>t.style.display="none")}removeContainer(){var t;null===(t=this.container)||void 0===t||t.remove(),this.container=void 0,this.outline=void 0,this.overlay=void 0,this.handles=[]}handlePointerDown(t,e){if(!this.target)return;if(0!==t.button&&"mouse"===t.pointerType)return;t.stopPropagation(),t.preventDefault();const n=this.clientToElement(this.target,t.clientX,t.clientY);this.activeHandle=e,this.activePointerId=t.pointerId,this.startPointer=n;const i=this.getCurrentAttributes(this.target);this.startRect=i,this.startAttrs=Object.assign({},i),this.lastRect=i,this.lastViewportRect=this.getViewportRect(this.target),window.addEventListener("pointermove",this.handlePointerMove),window.addEventListener("pointerup",this.handlePointerUp),window.addEventListener("pointercancel",this.handlePointerUp)}cancelDrag(){this.activeHandle=null,this.activePointerId=null,this.startPointer=void 0,this.startRect=void 0,this.startAttrs=void 0,this.lastRect=void 0,this.lastViewportRect=void 0,window.removeEventListener("pointermove",this.handlePointerMove),window.removeEventListener("pointerup",this.handlePointerUp),window.removeEventListener("pointercancel",this.handlePointerUp)}applyRect(t,e){Jc(t,{x:e.x,y:e.y,width:e.width,height:e.height})}getViewportRect(t){const{x:e,y:n,width:i,height:r}=hP(this.editor.getDocument(),t);return{x:e,y:n,width:i,height:r}}clientToElement(t,e,n){var i,r;const o=(null===(i=t.getScreenCTM())||void 0===i?void 0:i.inverse())||(null===(r=this.editor.getDocument().getScreenCTM())||void 0===r?void 0:r.inverse())||new DOMMatrix;return new DOMPoint(e,n).matrixTransform(o)}getCurrentAttributes(t){const e=th(t,["x","y","width","height"],!1),n=this.getViewportRect(t),i=(t,e)=>{const n=null!==t?Number(t):NaN;return Number.isFinite(n)?n:e};return{x:i(e.x,n.x),y:i(e.y,n.y),width:i(e.width,n.width),height:i(e.height,n.height)}}getHandlePoints(t){const{x:e,y:n,width:i,height:r}=t,o=e+i/2,s=n+r/2;return[[e,n],[o,n],[e+i,n],[e+i,s],[e+i,n+r],[o,n+r],[e,n+r],[e,s]]}applyDelta(t,e,n,i){let{x:r,y:o,width:s,height:a}=t;switch(i){case"top-left":r+=e,o+=n,s-=e,a-=n;break;case"top":o+=n,a-=n;break;case"top-right":o+=n,s+=e,a-=n;break;case"right":s+=e;break;case"bottom-right":s+=e,a+=n;break;case"bottom":a+=n;break;case"bottom-left":r+=e,s-=e,a+=n;break;case"left":r+=e,s-=e}return{x:r,y:o,width:s,height:a}}clampRect(t,e){let{x:n,y:i,width:r,height:o}=t;if(r<aB.MIN_SIZE){"top-left"!==e&&"bottom-left"!==e&&"left"!==e||(n-=aB.MIN_SIZE-r),r=aB.MIN_SIZE}if(o<aB.MIN_SIZE){"top-left"!==e&&"top-right"!==e&&"top"!==e||(i-=aB.MIN_SIZE-o),o=aB.MIN_SIZE}return{x:n,y:i,width:r,height:o}}hasRectChanged(t,e){return Math.abs(t.x-e.x)>.5||Math.abs(t.y-e.y)>.5||Math.abs(t.width-e.width)>.5||Math.abs(t.height-e.height)>.5}emitSelectionGeometryChange(){this.target&&this.lastViewportRect&&this.emitter.emit("selection:geometrychange",{type:"selection:geometrychange",target:this.target,rect:this.lastViewportRect})}getHandleLine(t,e){const{x:n,y:i,width:r,height:o}=t;switch(e){case"top":return{x1:n,y1:i,x2:n+r,y2:i};case"right":return{x1:n+r,y1:i,x2:n+r,y2:i+o};case"bottom":return{x1:n,y1:i+o,x2:n+r,y2:i+o};default:return{x1:n,y1:i,x2:n,y2:i+o}}}}aB.HANDLE_SIZE=10,aB.LINE_STROKE_WIDTH=8,aB.MIN_SIZE=1,aB.HANDLE_POSITIONS=["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"];var lB=n("./node_modules/.pnpm/postcss@8.5.19/node_modules/postcss/lib/postcss.js");const cB=lB;var hB=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};function uB(t){return hB(this,arguments,void 0,function*(t,e=!0){const n=function(t){const e=new Set,n=t=>{t&&ca(t).forEach(t=>{const n=ua(t);n&&e.add(n)})};n(t.getAttribute("font-family"));const i=t.querySelectorAll("foreignObject span");for(const t of i)n(t.style.fontFamily);return e}(t);if(0===n.size)return;const i=[];yield Promise.all(Array.from(n).map(t=>hB(this,void 0,void 0,function*(){const n=function(t){const e=[],n=ca(t).map(t=>ua(t));return document.fonts.forEach(t=>{n.includes(ua(t.family))&&"loaded"===t.status&&e.push(t)}),e}(t);if(!n.length)return;const r=yield function(t){return hB(this,void 0,void 0,function*(){const e=Ia(t),n=[];return yield Promise.allSettled(e.map(t=>hB(this,void 0,void 0,function*(){const e=yield Fh(t).then(t=>t.text()).catch(()=>(console.error(`Failed to fetch font CSS: ${t}`),null));if(e)try{cB.parse(e).walkAtRules("font-face",t=>{const e={};t.walkDecls(t=>{e[t.prop]=t.value}),n.push(e)})}catch(e){console.error(`Failed to parse CSS: ${t}`,e)}}))),n})}(t);if(!r.length)return;const o=yield Promise.all(r.map(t=>hB(this,void 0,void 0,function*(){const i={"font-family":null!==(o=(r=t)["font-family"])&&void 0!==o?o:"",src:null!==(s=r.src)&&void 0!==s?s:"","font-style":null!==(a=r["font-style"])&&void 0!==a?a:"normal","font-display":null!==(l=r["font-display"])&&void 0!==l?l:"swap","font-weight":null!==(c=r["font-weight"])&&void 0!==c?c:"400","unicode-range":null!==(h=r["unicode-range"])&&void 0!==h?h:"U+0-FFFF"};var r,o,s,a,l,c,h;const u=i["unicode-range"].replace(/\s/g,"");if(!n.find(t=>t.unicodeRange&&t.unicodeRange.replace(/\s/g,"")===u))return null;const d=function(t,e){const n=ca(t);let i=null;for(const t of n)if(i=za(t),i)break;if(!i)return null;const r=pa(e),o=i.fontWeight[r];return o?Kh(i.baseUrl,o.replace(/\/result.css$/,"")):null}(i["font-family"],pa(i["font-weight"]));if(!d)return null;const f=i.src.match(/url\(["']?(.*?\.woff2)[^"']*["']?\)/);if(!(null==f?void 0:f[1]))return null;const p=Kh(d,f[1]);if(e){const t=yield function(t){return hB(this,void 0,void 0,function*(){const e=yield Fh(t);if(!e.ok)throw new Error(`Failed to load font: ${t}`);const n=yield e.blob();return yield new Promise((t,e)=>{const i=new FileReader;i.onloadend=()=>{t(i.result)},i.onerror=e,i.readAsDataURL(n)})})}(p);i.src=`url(${t}) format('woff2')`}else i.src=`url(${p}) format('woff2')`;return i})));i.push(...o.filter(Boolean)||[])}))),i.length>0&&function(t,e){const n=[],i=new Set;for(const t of e){const e=[t["font-family"],t["font-weight"],t["font-style"],t["unicode-range"],t.src].join("|");i.has(e)||(i.add(e),n.push(t))}if(0===n.length)return;const r=Zc("style",{type:"text/css"});r.innerHTML=n.map(t=>`\n@font-face {\n font-family: ${t["font-family"]};\n src: ${t.src};\n font-style: ${t["font-style"]};\n font-weight: ${t["font-weight"]};\n font-display: ${t["font-display"]};\n unicode-range: ${t["unicode-range"]};\n}\n`.trim()).join("\n");const o=t.querySelector("defs");o&&o.parentNode?o.parentNode.insertBefore(r,o.nextSibling):t.insertBefore(r,t.firstChild)}(t,i)})}var dB=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};const fB=.5;function pB(t){if(!t)return Number.NaN;const e=t.trim();return e&&/^[-+]?(?:\d+\.?\d*|\.\d+)(?:px)?$/.test(e)?Number.parseFloat(e):Number.NaN}function gB(t){const e=pB(t);return Number.isNaN(e)?0:e}function mB(t,e){if("function"!=typeof e.getScreenCTM)return null;const n=e.getScreenCTM();if(!n)return null;const i=n.inverse();return(e,n)=>{const r=t.createSVGPoint();return r.x=e,r.y=n,r.matrixTransform(i)}}function yB(t,e,{contentHeight:n,contentWidth:i,keepForeignObjectWidth:r}){const o=t.getBoundingClientRect(),s=e(o.left,o.top),a=e(o.right,o.bottom),l=s.x,c=s.y,h=a.x,u=a.y,d=h-l,f=u-c,p=o.width>0?d/o.width:1,g=n>0?n*(o.height>0?f/o.height:1):f,m=window.getComputedStyle(t.firstElementChild),y=m.alignItems,v=m.justifyContent,x=r?d:Math.max(d,i*p);let b,w,M,k;if("flex-end"===y||"end"===y)b=u-g,w=u;else if("center"===y){const t=g-f;b=c-t/2,w=u+t/2}else b=c,w=c+g;if("flex-end"===v||"end"===v||"right"===v)M=h-x,k=h;else if("center"===v){const t=x-d;M=l-t/2,k=h+t/2}else M=l,k=l+x;return[M,b,k,w]}function vB(t){const e=mB(t,t);return e?Array.from(t.querySelectorAll("foreignObject")).map(n=>{const i=n.firstElementChild;if(!i)return null;const r=function(t){const e=t.whiteSpace,n=t.flexWrap,i=t.wordBreak;return"wrap"===n||"wrap-reverse"===n||"pre-wrap"===e||"pre-line"===e||"normal"===e||"break-word"===t.overflowWrap||"break-word"===i||"break-all"===i}(window.getComputedStyle(i)),o=function(t,e){const n=t.style.height,i=t.style.width,r=t.style.overflow;try{t.style.height="max-content",t.style.overflow="hidden";const n=t.scrollHeight,i=t.getBoundingClientRect().height;let r=t.scrollWidth;return e&&(t.style.width="max-content",r=t.scrollWidth),{height:Math.max(n,i),width:r}}finally{t.style.height=n,t.style.width=i,t.style.overflow=r}}(i,!r),s=n.parentElement instanceof SVGGraphicsElement?n.parentElement:t,a=mB(t,s),l=mB(t,n);if(!a)return null;const c=yB(n,a,{contentHeight:o.height,contentWidth:o.width,keepForeignObjectWidth:r}),h=gB(n.getAttribute("x")),u=gB(n.getAttribute("y")),d=l?yB(n,l,{contentHeight:o.height,contentWidth:o.width,keepForeignObjectWidth:r}):null;if(n.hasAttribute("transform")&&!d)return null;const f=d?{x:h+d[0],y:u+d[1],width:d[2]-d[0],height:d[3]-d[1]}:{x:c[0],y:c[1],width:c[2]-c[0],height:c[3]-c[1]};return{rootBounds:yB(n,e,{contentHeight:o.height,contentWidth:o.width,keepForeignObjectWidth:r}),exportBounds:f}}):[]}function xB(t,e){const n=function(t){if(t.hasAttribute("viewBox"))return Zh(t);const e=pB(t.getAttribute("width")),n=pB(t.getAttribute("height"));if(!Number.isNaN(e)&&e>0&&!Number.isNaN(n)&&n>0)return{x:0,y:0,width:e,height:n};const i=t.getBoundingClientRect();return i.width>0&&i.height>0?{x:0,y:0,width:i.width,height:i.height}:null}(t);if(!n)return null;let i=n.x,r=n.y,o=n.x+n.width,s=n.y+n.height;e.forEach(t=>{if(!t)return;const{rootBounds:e}=t,[n,a,l,c]=e;i=Math.min(i,n),r=Math.min(r,a),o=Math.max(o,l),s=Math.max(s,c)});const a=o-i,l=s-r;return a<=n.width+fB&&l<=n.height+fB&&i>=n.x-fB&&r>=n.y-fB?null:`${i} ${r} ${a} ${l}`}function bB(t){return dB(this,arguments,void 0,function*(t,e={}){const{removeBackground:n=!1,embedResources:i=!0,removeIds:r=!1}=e,o=t.cloneNode(!0);if("undefined"!=typeof document){const e=vB(t);!function(t,e){const n=Array.from(t.querySelectorAll("foreignObject"));e.forEach((t,e)=>{if(!t)return;const i=n[e];i&&Jc(i,t.exportBounds)})}(o,e);const n=xB(t,e);n&&o.setAttribute("viewBox",n)}const{width:s,height:a}=Zh(o);return Jc(o,{width:s,height:a}),r?(function(t){const e=Array.from(t.querySelectorAll("use"));if(!e.length)return;e.forEach(e=>{const n=function(t){var e;return null!==(e=t.getAttribute("href"))&&void 0!==e?e:t.getAttribute("xlink:href")}(e);if(!n||!n.startsWith("#"))return;const i=function(t,e){const n=t.querySelector(e);if(n)return n;const i=document.querySelector(e);return i}(t,n);if(!i||i===e)return;const r=function(t,e){const n=e.tagName.toLowerCase();if("symbol"===n)return function(t,e){const n=e.cloneNode(!0),i=Zc("svg");MB(i,n,new Set(["id"])),MB(i,t,new Set(["href","xlink:href"]));for(;n.firstChild;)i.appendChild(n.firstChild);return i}(t,e);if("svg"===n)return function(t,e){const n=e.cloneNode(!0);return n.removeAttribute("id"),MB(n,t,new Set(["href","xlink:href"])),n}(t,e);return function(t,e){const n=e.cloneNode(!0);n.removeAttribute("id");const i=Zc("g");MB(i,t,new Set(["href","xlink:href","x","y","width","height","transform"]));const r=function(t){var e;const n=t.getAttribute("x"),i=t.getAttribute("y"),r=n||i?`translate(${null!=n?n:0} ${null!=i?i:0})`:"",o=null!==(e=t.getAttribute("transform"))&&void 0!==e?e:"";return r&&o?`${r} ${o}`:r||o||null}(t);r&&i.setAttribute("transform",r);return i.appendChild(n),i}(t,e)}(e,i);r&&e.replaceWith(r)})}(o),function(t){const e=function(t){const e=new Set;return eh(t,t=>{if("defs"===t.tagName.toLowerCase())return!1;CB(t,t=>e.add(t))}),e}(t);if(0===e.size)return void jB(t);const n=function(t,e){if(0===e.size)return null;const n=function(t,e){const n=new Map,i=Array.from(e),r=new Set(i),o=new Set,s=t=>{o.has(t)||r.has(t)||(i.push(t),r.add(t))};for(;i.length;){const e=i.shift();if(!e)continue;if(o.has(e))continue;o.add(e);const r=`#${OB(e)}`,a=t.querySelector(r);a&&(n.set(e,a),eh(a,t=>{CB(t,s)}))}return n}(t,e);if(0===n.size)return null;const i=Zc("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),r=Zc("defs");if(n.forEach(t=>{r.appendChild(t.cloneNode(!0))}),!r.children.length)return null;i.appendChild(r);const o=(new XMLSerializer).serializeToString(i);return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o)}(t,e);if(!n)return;eh(t,t=>{if("defs"===t.tagName.toLowerCase())return!1;Array.from(t.attributes).forEach(e=>{const i=e.value;if(!i.includes("url("))return;const r=i.replace(kB,(t,e)=>{const i=encodeURIComponent(e);return`url("${n}#${i}")`});r!==i&&t.setAttribute(e.name,r)})}),jB(t)}(o)):yield function(t){return dB(this,void 0,void 0,function*(){const e=t.querySelectorAll("use"),n=function(t){const e=Ph(t,wB);if(e)return e;const n=Zc("defs");return zh(n,wB),t.prepend(n),n}(t);e.forEach(e=>{const i=e.getAttribute("href");if(!i)return;if(!t.querySelector(i)){const t=document.querySelector(i);t&&n.appendChild(t.cloneNode(!0))}})})}(o),yield uB(o,i),n&&function(t){t.style.removeProperty("background-color");const e=Ph(t,"background");null==e||e.remove()}(o),function(t){(function(t){const e=Ph(t,"btns-group");null==e||e.remove();const n=Ph(t,"btn-icon-defs");null==n||n.remove()})(t),function(t){const e=t.querySelector("[data-element-type=transient-container]");null==e||e.remove()}(t),function(t){const e=t.querySelectorAll("g");e.forEach(t=>{t.removeAttribute("x"),t.removeAttribute("y"),t.removeAttribute("width"),t.removeAttribute("height")})}(t),function(t){eh(t,t=>{for(const e in t.dataset)delete t.dataset[e]})}(t)}(o),o})}const wB="icon-defs";function MB(t,e,n=new Set){Array.from(e.attributes).forEach(e=>{n.has(e.name)||("style"!==e.name?"class"!==e.name?t.setAttribute(e.name,e.value):function(t,e){const n=t.getAttribute("class");if(!n)return void t.setAttribute("class",e);t.setAttribute("class",`${n} ${e}`.trim())}(t,e.value):function(t,e){const n=t.getAttribute("style");if(!n)return void t.setAttribute("style",e);const i=n.trim().endsWith(";")?"":";";t.setAttribute("style",`${n}${i}${e}`)}(t,e.value))})}const kB=/url\(\s*['"]?#([^'")\s]+)['"]?\s*\)/g;function CB(t,e){for(const n of Array.from(t.attributes)){const t=n.value;if(t.includes("url("))for(const n of t.matchAll(kB))n[1]&&e(n[1]);"href"!==n.name&&"xlink:href"!==n.name||"#"!==t[0]||e(t.slice(1))}}function OB(t){return globalThis.CSS&&"function"==typeof globalThis.CSS.escape?globalThis.CSS.escape(t):function(t){const e=String(t),n=e.length;let i="";if(0===n)return"";for(let t=0;t<n;t++){const r=e.charCodeAt(t);0!==r?r>=1&&r<=31||127===r||0===t&&r>=48&&r<=57||1===t&&r>=48&&r<=57&&45===e.charCodeAt(0)?i+="\\"+r.toString(16)+" ":i+=0===t&&1===n&&45===r||!(r>=128||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122||45===r||95===r)?"\\"+e.charAt(t):e.charAt(t):i+="�"}return i}(t)}function jB(t){Array.from(t.querySelectorAll("defs")).forEach(t=>t.remove())}var EB=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};var _B=n("./node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.mjs"),SB=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class $B{constructor(){this.undoStack=[],this.redoStack=[]}init(t){Object.assign(this,t)}execute(t){return SB(this,void 0,void 0,function*(){yield t.apply(this.state),this.undoStack.push(t),this.redoStack=[],this.emitHistoryChange("execute")})}executeBatch(t){return SB(this,void 0,void 0,function*(){if(0===t.length)return;const e=new nP(t);yield this.execute(e)})}undo(){return SB(this,void 0,void 0,function*(){const t=this.undoStack.pop();t&&(yield t.undo(this.state),this.redoStack.push(t),this.emitHistoryChange("undo"))})}redo(){return SB(this,void 0,void 0,function*(){const t=this.redoStack.pop();t&&(yield t.apply(this.state),this.undoStack.push(t),this.emitHistoryChange("redo"))})}serialize(){return this.undoStack.map(t=>t.serialize())}clear(){this.undoStack=[],this.redoStack=[]}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}getHistorySize(){return this.undoStack.length}destroy(){this.clear()}emitHistoryChange(t){var e;null===(e=this.emitter)||void 0===e||e.emit("history:change",{type:"history:change",action:t})}}var AB=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class zB{constructor(){this.extensions=new bP,this.interactions=[],this.active=!1,this.running=null,this.concurrentInteractions=new Set,this.selection=new Set,this.handleClick=t=>{const e=this.editor.getDocument(),n="function"==typeof t.composedPath?t.composedPath():[],i=oT(t,e)||n.some(t=>t instanceof HTMLElement&&function(t){let e=t;for(;e;){if(Ph(e,ns))return!0;e=e.parentElement}return!1}(t));t.target&&i?this.activate():this.deactivate()}}init(t){Object.assign(this,t),document.addEventListener("click",this.handleClick),this.interactions.forEach(t=>{this.extensions.register(t.name,t),t.init({emitter:this.emitter,editor:this.editor,commander:this.commander,state:this.state,interaction:this}),this.emitter.emit("interaction:registered",t)})}isActive(){return this.active}select(t,e){const n=this.getSelection(),i=[],r=[];if("replace"===e){const e=new Set(t);n.forEach(t=>{e.has(t)||r.push(t)}),t.forEach(t=>{this.selection.has(t)||i.push(t)}),this.selection=e}else"add"===e?t.forEach(t=>{this.selection.has(t)||(this.selection.add(t),i.push(t))}):"remove"===e?t.forEach(t=>{this.selection.delete(t)&&r.push(t)}):"toggle"===e&&t.forEach(t=>{this.selection.has(t)?(this.selection.delete(t),r.push(t)):(this.selection.add(t),i.push(t))});const o=this.getSelection();this.emitter.emit("selection:change",{type:"selection:change",previous:n,next:o,added:i,removed:r,mode:e})}getSelection(){return[...this.selection]}isSelected(t){return this.selection.has(t)}clearSelection(){const t=this.getSelection();this.selection.clear();this.emitter.emit("selection:change",{type:"selection:change",previous:t,next:[],added:[],removed:t,mode:"replace"})}activate(){this.active=!0,this.emitter.emit("activated")}deactivate(){this.active=!1,this.running=null,this.clearSelection(),this.emitter.emit("deactivated")}executeExclusiveInteraction(t,e){return AB(this,void 0,void 0,function*(){if(this.active&&!this.running){this.running=t;try{this.emitter.emit("interaction:started",t),yield e(),this.emitter.emit("interaction:ended",t)}catch(e){console.error(`Error occurred during exclusive interaction "${t.name}":`,e),this.emitter.emit("interaction:error",t,e)}finally{this.running=null}}})}executeConcurrentInteraction(t,e){return AB(this,void 0,void 0,function*(){if(this.active){this.concurrentInteractions.add(t);try{this.emitter.emit("interaction:started",t),yield e(),this.emitter.emit("interaction:ended",t)}catch(e){console.error(`Error occurred during concurrent interaction "${t.name}":`,e),this.emitter.emit("interaction:error",t,e)}finally{this.concurrentInteractions.delete(t)}}})}getOrCreateTransientContainer(){const t="transient-container",e=this.editor.getDocument(),n=Ph(e,t);if(n&&n.isConnected)return n;const i=Zc("g");return zh(i,t),e.appendChild(i),i}appendTransientElement(t){return this.getOrCreateTransientContainer().appendChild(t),t}destroy(){this.extensions.forEach(t=>{t.destroy(),this.emitter.emit("interaction:destroyed",t)}),this.extensions.destroy(),this.active=!1,this.running=null,this.clearSelection(),document.removeEventListener("click",this.handleClick),this.getOrCreateTransientContainer().remove()}}class PB{constructor(){this.extensions=new bP}init(t,e=[]){Object.assign(this,t),e.forEach(t=>{this.registerPlugin(t)})}getPlugin(t){return this.extensions.get(t)}getPlugins(){return this.extensions.getAll()}registerPlugin(t){this.extensions.register(t.name,t);t.init({emitter:this.emitter,editor:this.editor,commander:this.commander,plugin:this,state:this.state}),this.emitter.emit("plugin:registered",t)}unregisterPlugin(t){const e=this.extensions.get(t);e&&(e.destroy(),this.extensions.unregister(t),this.emitter.emit("plugin:unregistered",e))}destroy(){this.extensions.getAll().forEach(t=>{this.unregisterPlugin(t.name),this.emitter.emit("plugin:destroyed",t)}),this.extensions.destroy()}}class LB{init(t){Object.assign(this,t)}addItemDatum(t,e){const n=t.slice(0,-1),i=t[t.length-1],r=Array.isArray(e)?e:[e];uP(this.options.data,n).splice(i,0,...r),this.emitter.emit("options:data:item:add",{indexes:t,datum:e}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"add",path:"data.items",indexes:t,value:r}]})}updateItemDatum(t,e){const n=ts(this.options.data,t);null!=n&&0!==t.length&&(Object.assign(n,e),this.emitter.emit("options:data:item:update",{indexes:t,datum:e}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:"data.items",indexes:t,value:e}]}))}removeItemDatum(t,e=1){const n=t.slice(0,-1),i=t[t.length-1],r=uP(this.options.data,n).splice(i,e);this.emitter.emit("options:data:item:remove",{indexes:t,datum:r}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"remove",path:"data.items",indexes:t,value:r}]})}updateData(t,e){this.options.data[t]=e,this.emitter.emit("options:data:update",{key:t,value:e}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:`data.${t}`,value:e}]})}updateElement(t,e){this.updateBuiltInElement(t,e)}updateOptions(t,e){const{bubbleUp:n=!1}=e||{};nT(this.options,t,"",{bubbleUp:n,collector:(t,e,n)=>{this.editor.syncRegistry.trigger(t,e,n)}}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",path:"",value:t}]})}getOptions(){return this.options}updateBuiltInElement(t,e){var n,i;const{data:r}=this.options,{attributes:o={}}=e,s=Lh(t),a=Ah(t)||"item-label"===s||"item-desc"===s||"item-value"===s||"item-illus"===s,l=a?fP(t):void 0;if(a){const t=ts(r,l);if(null==t)return;const e=s.replace("item-","");t.attributes||(t.attributes={}),(n=t.attributes)[e]||(n[e]={}),Object.assign(t.attributes[e],o)}else"title"!==s&&"desc"!==s&&"illus"!==s||(r.attributes||(r.attributes={}),(i=r.attributes)[s]||(i[s]={}),Object.assign(r.attributes[s],o));this.emitter.emit("options:element:update",{element:t,props:e}),this.emitter.emit("options:change",{type:"options:change",changes:[{op:"update",role:s,indexes:l,path:a?`${dP(l)}.attributes.${s.replace("item-","")}`:`data.attributes.${s}`,value:e}]})}destroy(){}}class IB{constructor(t){this.getOptions=t,this.handlers=new Map,this.isDispatching=!1,this.isDestroyed=!1}register(t,e,n){if(this.handlers.has(t)||this.handlers.set(t,new Set),this.handlers.get(t).add(e),null==n?void 0:n.immediate){const n=Jo(this.getOptions(),t);e(n,void 0)}return()=>{const n=this.handlers.get(t);n&&(n.delete(e),0===n.size&&this.handlers.delete(t))}}trigger(t,e,n){if(this.isDestroyed||this.isDispatching)return void(this.isDispatching&&console.warn(`[SyncRegistry] Recursive update detected on ${t}. Skipped to prevent loop.`));const i=this.handlers.get(t);if(i){this.isDispatching=!0;try{i.forEach(t=>t(e,n))}finally{this.isDispatching=!1}}}destroy(){this.isDestroyed=!0,this.handlers.clear()}}class TB{constructor(t,e,n){if(this.emitter=t,this.document=e,this.options=n,!e.isConnected)throw new Error("The provided document is not connected to the DOM.");e.style.userSelect="none";const i=new $B,r=new LB,o=new PB,s=new zB,a=new IB(()=>r.getOptions());this.commander=i,this.state=r,this.plugin=o,this.interaction=s,this.syncRegistry=a,i.init({state:r,emitter:t}),r.init({emitter:t,editor:this,commander:i,options:n});const l=new DT;o.init({emitter:t,editor:this,commander:i,state:r},[l,...n.plugins||[]]),s.init({emitter:t,editor:this,commander:i,state:r,interactions:n.interactions})}registerSync(t,e,n){return this.syncRegistry.register(t,e,n)}getDocument(){return this.document}destroy(){this.document.style.userSelect="",this.interaction.destroy(),this.plugin.destroy(),this.commander.destroy(),this.state.destroy(),this.syncRegistry.destroy()}}const RB=function(t,e,n){(void 0!==n&&!wo(t[e],n)||void 0===n&&!(e in t))&&AP(t,e,n)};const BB=function(t){return function(e,n,i){for(var r=-1,o=Object(e),s=i(e),a=s.length;a--;){var l=s[t?a:++r];if(!1===n(o[l],l,o))break}return e}};const WB=BB();const HB=function(t){return qr(t)&&dL(t)};const NB=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};const FB=function(t){return LP(t,vL(t))};const DB=function(t,e,n,i,r,o,s){var a=NB(t,n),l=NB(e,n),c=s.get(l);if(c)RB(t,n,c);else{var h=o?o(a,l,n+"",t,e,s):void 0,u=void 0===h;if(u){var d=Pr(l),f=!d&&UP(l),p=!d&&!f&&iL(l);h=l,d||f||p?Pr(a)?h=a:HB(a)?h=OL(a):f?(u=!1,h=CL(l,!0)):p?(u=!1,h=fI(l,!0)):h=[]:LI(l)||NP(l)?(h=a,NP(a)?h=FB(a):Qr(a)&&!Jr(a)||(h=vI(l))):u=!1}u&&(s.set(l,h),r(h,l,i,o,s),s.delete(l)),RB(t,n,h)}};const VB=function t(e,n,i,r,o){e!==n&&WB(n,function(s,a){if(o||(o=new _P),Qr(s))DB(e,n,a,i,t,r,o);else{var l=r?r(NB(e,a),s,a+"",e,n,o):void 0;void 0===l&&(l=s),RB(e,a,l)}},vL)};const UB=function(t){return t};const YB=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var qB=Math.max;const GB=function(t,e,n){return e=qB(void 0===e?t.length-1:e,0),function(){for(var i=arguments,r=-1,o=qB(i.length-e,0),s=Array(o);++r<o;)s[r]=i[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=i[r];return a[e]=n(s),YB(t,this,a)}};const XB=function(t){return function(){return t}};var KB=$P?function(t,e){return $P(t,"toString",{configurable:!0,enumerable:!1,value:XB(e),writable:!0})}:UB;var ZB=Date.now;const QB=function(t){var e=0,n=0;return function(){var i=ZB(),r=16-(i-n);if(n=i,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}};const JB=QB(KB);const tW=function(t,e){return JB(GB(t,e,UB),t+"")};const eW=function(t,e,n){if(!Qr(n))return!1;var i=typeof e;return!!("number"==i?dL(n)&&qP(e,n.length):"string"==i&&e in n)&&wo(n[e],t)};const nW=function(t){return tW(function(e,n){var i=-1,r=n.length,o=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,s&&eW(n[0],n[1],s)&&(o=r<3?void 0:o,r=1),e=Object(e);++i<r;){var a=n[i];a&&t(e,a,i,o)}return e})};var iW=nW(function(t,e,n){VB(t,e,n)});const rW=iW;var oW=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};function sW(t){const{container:e="#container",padding:n=0,template:i,design:r,theme:o,themeConfig:s,data:a}=t,l=oW(t,["container","padding","template","design","theme","themeConfig","data"]),c=i?u(i):void 0,d="string"==typeof e?document.querySelector(e)||document.createElement("div"):e,f=c?function(t){return h.get(t)}(c):void 0,p=rW({},null==f?void 0:f.themeConfig,s),g=o||s||(null==f?void 0:f.themeConfig)?function(t,e={}){var n;const i=t?(o=t,Qu.get(o)||{}):{},r=rW({},i,e);var o;r.palette=e.palette||i.palette,r.stylize=null!==(n=e.stylize)&&void 0!==n?n:i.stylize,r.colorPrimary||(r.colorPrimary="#FF356A");r.palette||(r.palette=[r.colorPrimary]);return r}(o,p):void 0,m={container:d,padding:Jh(n)};if(f){const t=oW(f,["design"]);Object.assign(m,t)}Object.assign(m,l);const y=function(t,e){if(!t)return;if(Array.isArray(t.items)&&t.items.length)return t;const{lists:n,sequences:i,compares:r,nodes:o,values:s,root:a}=t,l=()=>{if(!e)return null;const t={list:n,sequence:i,compare:r,relation:o,chart:s,hierarchy:a?[a]:[]}[e.split("-")[0]];return(null==t?void 0:t.length)?t:null},c=()=>{var e;return(null==n?void 0:n.length)?n:(null==i?void 0:i.length)?i:(null==r?void 0:r.length)?r:(null==o?void 0:o.length)?o:(null==s?void 0:s.length)?s:a?[a]:(null===(e=t.items)||void 0===e?void 0:e.length)?t.items:[]};let h=l()||c();h===i&&"desc"===t.order&&(h=[...h].reverse());return Object.assign(Object.assign({},t),{items:h})}(a,c);if(y&&(m.data=y),c&&(m.template=c),(null==f?void 0:f.design)||r){const e=Object.assign(Object.assign({},g?Object.assign(Object.assign({},t),{themeConfig:g}):t),{data:y||a}),n=function(t,e){const{structure:n,title:i,item:r,items:o}=t||{},s=hW(r||(null==o?void 0:o[0]),e);return{structure:lW(n),title:cW(i,e),item:s,items:o?o.map(t=>hW(t,e)):[s]}}(Object.assign(Object.assign({},null==f?void 0:f.design),r),e);es(n)&&(m.design=n)}return o&&(m.theme=o),g&&(m.themeConfig=g),m}function aW(t){if("string"==typeof t)return{type:t};if(!("type"in t))throw new Error("Type is required");return t}function lW(t){if(!t)return null;const e=aW(t),{type:n}=e,i=oW(e,["type"]),r=function(t){return wg.get(t)}(n);if(!r)return null;const{component:o}=r;return Object.assign(Object.assign({},r),{component:t=>o(Object.assign(Object.assign({},t),i))})}function cW(t,e){if(!t)return{component:null};const n=aW(t),i=oW(n,["type"]),{themeConfig:r}=e,o=(null==r?void 0:r.colorBg)||"#fff",s=uW(o,o);return{component:t=>(t=>{const{x:e=0,y:n=0,alignHorizontal:i="center",title:r,desc:o,descLineNumber:s=2,themeColors:a}=t;return r||o?U(Zu,{flexDirection:"column",justifyContent:"center",alignItems:"center",x:e,y:n,gap:8,children:[r&&V(t=>V(su,Object.assign({},{fontSize:24,fill:a.colorPrimaryText,lineHeight:1.4,alignHorizontal:i},t,{"data-element-type":"title",children:r})),{}),o&&V(t=>V(su,Object.assign({},{fontSize:16,fill:a.colorTextSecondary,alignHorizontal:i,lineHeight:1.4,height:24*s},t,{"data-element-type":"desc",children:o})),{})]}):null})(Object.assign(Object.assign(Object.assign({},t),{themeColors:s}),i))}}function hW(t,e){if(!t)return null;const n=aW(t),{type:i}=n,r=oW(n,["type"]),o=function(t){return xd.get(t)}(i);if(!o)return null;const{component:s,options:a}=o;return Object.assign(Object.assign({},o),{component:t=>{var n;const{indexes:i}=t,{data:o,themeConfig:a}=e,l=(null==a?void 0:a.colorBg)||"#fff",{themeColors:c=uW(Va(null==a?void 0:a.palette,i,null===(n=null==o?void 0:o.items)||void 0===n?void 0:n.length)||(null==a?void 0:a.colorPrimary)||"#FF356A",l)}=t,h=oW(t,["themeColors"]);return s(Object.assign(Object.assign({themeColors:c},h),r))},options:a})}function uW(t,e="#fff"){return td({colorPrimary:t,isDarkMode:zr(e),colorBg:e})}function dW(t){const e=t.trim();if(!e)return null;const n=e.match(/^([^:\s=]+)\s*[:=]\s*(.*)$/);if(n)return{key:n[1],value:n[2].trim()};const i=e.match(/^([^\s]+)\s+(.*)$/);return i?{key:i[1],value:i[2].trim()}:{key:e,value:void 0}}function fW(t){return"__proto__"===t||"constructor"===t||"prototype"===t}function pW(t,e){return{kind:"object",line:t,value:e,entries:{}}}function gW(t){return{kind:"array",line:t,items:[]}}function mW(t){const e=[],n=pW(0),i=[{indent:-1,node:n,parent:null,key:null}];return t.split(/\r?\n/).forEach((t,n)=>{const r=n+1;if(!t.trim())return;const{indent:o,content:s}=function(t){let e=0,n=0;for(;n<t.length;){const i=t[n];if(" "!==i){if("\t"!==i)break;e+=2,n+=1}else e+=1,n+=1}return{indent:e,content:t.slice(n)}}(t);if(function(t){const e=t.trimStart();return e.startsWith("#")||e.startsWith("//")}(s)||function(t){return/^```[\w-]*\s*$/.test(t.trim())}(s))return;const a=function(t){return t.trimEnd()}(s);if(!a.trim())return;for(;i.length>1&&o<=i[i.length-1].indent;)i.pop();const l=i[i.length-1];let c=l.node;const h=a.trim();if(h.startsWith("-")&&(1===h.length||(" "===(u=h[1])||"\t"===u))){if("array"!==c.kind){if("object"!==c.kind||0!==Object.keys(c.entries).length||void 0!==c.value||!l.parent||!l.key)return void e.push({path:"",line:r,code:"bad_list",message:"List item is not under an array container.",raw:h});{const t=gW(c.line);if("object"===l.parent.kind)l.parent.entries[l.key]=t;else if("array"===l.parent.kind){const e=l.parent.items.indexOf(c);e>=0&&(l.parent.items[e]=t)}l.node=t,c=t}}const t=pW(r,h.slice(1).trim()||void 0);return c.items.push(t),void i.push({indent:o,node:t,parent:c})}var u;if("relations"===l.key&&!h.startsWith("-")&&/[<>=o.x-]{2,}/.test(h)){if("array"!==c.kind){if("object"!==c.kind||0!==Object.keys(c.entries).length||void 0!==c.value||!l.parent||!l.key)return void e.push({path:"",line:r,code:"bad_list",message:"List item is not under an array container.",raw:h});{const t=gW(c.line);if("object"===l.parent.kind)l.parent.entries[l.key]=t;else if("array"===l.parent.kind){const e=l.parent.items.indexOf(c);e>=0&&(l.parent.items[e]=t)}l.node=t,c=t}}const t=pW(r,h);return c.items.push(t),void i.push({indent:o,node:t,parent:c})}const d=dW(h);if(!d)return void e.push({path:"",line:r,code:"bad_syntax",message:"Invalid syntax line.",raw:h});if("object"!==c.kind)return void e.push({path:"",line:r,code:"bad_syntax",message:"Key-value pair is not under an object container.",raw:h});const f=pW(r,d.value),p=function(t,e,n,i,r){if(!e.includes("."))return fW(e)?(r.push({path:e,line:i,code:"bad_syntax",message:`Invalid key part: ${e}`,raw:e}),null):(t.entries[e]=n,{parent:t,key:e});const o=e.split(".");if(o.some(t=>!t))return r.push({path:e,line:i,code:"bad_syntax",message:"Invalid dotted key path.",raw:e}),null;let s=t;for(let t=0;t<o.length-1;t+=1){const n=o[t];if(fW(n))return r.push({path:e,line:i,code:"bad_syntax",message:`Invalid key part in dotted path: ${n}`,raw:e}),null;const a=s.entries[n];if(!a){const t=pW(i);s.entries[n]=t,s=t;continue}if("object"!==a.kind)return r.push({path:o.slice(0,t+1).join("."),line:i,code:"bad_syntax",message:"Cannot assign dotted key under a list value.",raw:e}),null;s=a}const a=o[o.length-1];return fW(a)?(r.push({path:e,line:i,code:"bad_syntax",message:`Invalid key part in dotted path: ${a}`,raw:e}),null):(s.entries[a]=n,{parent:s,key:a})}(c,d.key,f,r,e);p&&i.push({indent:o,node:f,parent:p.parent,key:p.key})}),{ast:n,errors:e}}function yW(t){return dW(t)}function vW(t,e){return{kind:"value",line:e,value:t}}const xW=/^(#[0-9a-f]{8}|#[0-9a-f]{6}|#[0-9a-f]{4}|#[0-9a-f]{3})/i,bW=/^((?:rgb|rgba|hsl|hsla)\([^)]*\))/i;function wW(t){const e=t.trim();return/^true$/i.test(e)?"true":/^false$/i.test(e)?"false":void 0}function MW(t){const e=t.trim(),n=wW(e);return"true"===n||"false"!==n&&(/^-?\d+(\.\d+)?$/.test(e)?parseFloat(e):e)}function kW(t){return"value"===t.kind||"object"===t.kind?t.value:void 0}function CW(t,e,n,i,r,o){t.push({path:n,line:e.line,code:i,message:r,raw:o})}function OW(t,e="any"){let n,i=t.trim();if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1).trim()),!i)return[];n=i.split("comma"===e?",":"space"===e?/\s+/:/[,\s]+/);const r=[];for(const t of n){const e=t.trim();if(e){if("#"===e||"//"===e)break;r.push(e)}}return r}function jW(t){const e=function(t){let e=t.trim();const n=e.search(/\s+#(?![0-9a-f])/i);n>=0&&(e=e.slice(0,n).trimEnd());const i=e.indexOf("//");return i>=0&&(e=e.slice(0,i).trimEnd()),e}(t);if(!e)return;const n=e.match(xW);if(n&&n[0].length===e.length)return e;const i=e.match(bW);return i&&i[1].length===e.length||(0,wl.A)(e).isValid()?e:void 0}function EW(t,e,n,i={}){const r=kW(t);if(void 0===r)return void CW(n,t,e,"schema_mismatch","Expected color value.");const o=jW(r);if(o)return o;i.soft||CW(n,t,e,"invalid_value","Invalid color value.",r)}function _W(t){if("array"===t.kind)return t.items.map(t=>_W(t));if("value"===t.kind)return MW(t.value);if(!(Object.keys(t.entries).length>0)&&void 0!==t.value)return MW(t.value);const e={};return void 0!==t.value&&(e.value=MW(t.value)),Object.entries(t.entries).forEach(([t,n])=>{e[t]=_W(n)}),e}function SW(t,e,n,i){switch(e.kind){case"union":return function(t,e,n,i){let r,o=null;for(const i of e.variants){const e=[],s=SW(t,i,n,e);(null===o||e.length<o.length)&&(o=e,r=s)}return o&&i.push(...o),r}(t,e,n,i);case"string":{const e=kW(t);return void 0===e?void CW(i,t,n,"schema_mismatch","Expected string value."):e}case"number":{const e=kW(t);if(void 0===e)return void CW(i,t,n,"schema_mismatch","Expected number value.");const r=e.trim().match(/^(-?\d+(\.\d+)?)(?:\s*(#|\/\/).*)?$/);return r?parseFloat(r[1]):void CW(i,t,n,"invalid_value","Invalid number value.",e)}case"boolean":{const e=kW(t);if(void 0===e)return void CW(i,t,n,"schema_mismatch","Expected boolean value.");const r=wW(e);return r?"true"===r:void CW(i,t,n,"invalid_value","Invalid boolean value.",e)}case"enum":{const r=kW(t);if(void 0===r)return void CW(i,t,n,"schema_mismatch","Expected enum value.");const o=wW(r),s=o&&e.values.includes(o)?o:r;return e.values.includes(s)?s:void CW(i,t,n,"invalid_value","Invalid enum value.",r)}case"array":{if("array"===t.kind)return t.items.map((t,r)=>SW(t,e.item,`${n}[${r}]`,i)).filter(t=>void 0!==t);if("object"===t.kind&&Object.keys(t.entries).length>0)return void CW(i,t,n,"schema_mismatch","Expected array value.");const r=kW(t);if(void 0===r)return void CW(i,t,n,"schema_mismatch","Expected array value.");const o=r.trim();if(o.startsWith("[")&&!o.endsWith("]"))return;return OW(r,e.split).map((r,o)=>SW(vW(r,t.line),e.item,`${n}[${o}]`,i)).filter(t=>void 0!==t)}case"palette":{if("array"===t.kind){const e=SW(t,{kind:"array",item:{kind:"color"},split:"any"},n,i);return Array.isArray(e)&&e.length>0?e:void 0}if("object"===t.kind&&Object.keys(t.entries).length>0)return void CW(i,t,n,"schema_mismatch","Expected palette value.");const e=kW(t);if(void 0===e)return void CW(i,t,n,"schema_mismatch","Expected palette value.");const r=e.trim();if(r.startsWith("[")&&!r.endsWith("]"))return;const o=jW(r);if(o)return[o];const s=OW(e,"any");if(function(t,e){return e.length>1||!(!t.startsWith("[")||!t.endsWith("]"))||void 0!==jW(t)}(r,s)){const e=s.map((e,r)=>EW(vW(e,t.line),`${n}[${r}]`,i)).filter(t=>void 0!==t);return e.length>0?e:void 0}return e}case"color":return EW(t,n,i,{soft:e.soft});case"object":{if("array"===t.kind)return void CW(i,t,n,"schema_mismatch","Expected object value.");const r={};if("value"===t.kind){if(e.shorthandKey)return r[e.shorthandKey]=t.value,r;const o=yW(t.value);if(void 0!==(null==o?void 0:o.value)){if(e.fields[o.key]){const s=SW(vW(o.value,t.line),e.fields[o.key],`${n}.${o.key}`,i);return void 0!==s&&(r[o.key]=s),r}return e.allowUnknown?(r[o.key]=MW(o.value),r):(CW(i,t,`${n}.${o.key}`,"unknown_key","Unknown key in object.",o.key),r)}return e.allowUnknown?(r.value=MW(t.value),r):void CW(i,t,n,"invalid_value","Expected object value.")}if(void 0!==t.value)if(e.shorthandKey&&void 0===r[e.shorthandKey])r[e.shorthandKey]=t.value;else{const o=yW(t.value);if(void 0!==(null==o?void 0:o.value))if(e.fields[o.key]){const s=SW(vW(o.value,t.line),e.fields[o.key],`${n}.${o.key}`,i);void 0!==s&&void 0===r[o.key]&&(r[o.key]=s)}else e.allowUnknown?r[o.key]=MW(o.value):CW(i,t,`${n}.${o.key}`,"unknown_key","Unknown key in object.",o.key);else e.allowUnknown&&(r.value=MW(t.value))}return Object.entries(t.entries).forEach(([t,o])=>{const s=e.fields[t];if(!s)return e.allowUnknown?void(r[t]=_W(o)):void CW(i,o,`${n}.${t}`,"unknown_key","Unknown key in object.",t);const a=SW(o,s,`${n}.${t}`,i);void 0!==a&&(r[t]=a)}),r}default:return}}const $W=t=>({kind:"enum",values:t}),AW=(t={})=>({kind:"color",soft:t.soft}),zW=(t,e="any")=>({kind:"array",item:t,split:e}),PW=(t,e={})=>({kind:"object",fields:t,allowUnknown:e.allowUnknown,shorthandKey:e.shorthandKey}),LW=(...t)=>({kind:"union",variants:t}),IW=()=>PW({},{allowUnknown:!0}),TW={fill:AW({soft:!0}),stroke:AW({soft:!0})},RW=PW(TW,{allowUnknown:!0}),BW=PW(TW,{allowUnknown:!0}),WW=PW({},{allowUnknown:!0});WW.fields={id:{kind:"string"},label:{kind:"string"},value:LW({kind:"number"},{kind:"string"}),desc:{kind:"string"},icon:LW({kind:"string"},IW()),illus:LW({kind:"string"},IW()),attributes:IW(),group:{kind:"string"},category:{kind:"string"},children:zW(WW)};const HW=PW({id:{kind:"string"},from:{kind:"string"},to:{kind:"string"},label:{kind:"string"},direction:$W(["forward","both","none"]),showArrow:$W(["true","false"]),arrowType:$W(["arrow","triangle","diamond"]),lineStyle:$W(["solid","dashed"])},{allowUnknown:!0}),NW=PW({type:{kind:"string"},colorBg:AW(),colorPrimary:AW(),palette:{kind:"palette"},title:RW,desc:RW,shape:BW,base:PW({global:PW({},{allowUnknown:!0}),shape:BW,text:RW}),item:PW({icon:PW({},{allowUnknown:!0}),label:RW,desc:RW,value:RW,shape:BW}),stylize:PW({type:$W(["rough","pattern"]),roughness:{kind:"number"},bowing:{kind:"number"},fillWeight:{kind:"number"},hachureGap:{kind:"number"},pattern:{kind:"string"},backgroundColor:AW(),foregroundColor:AW(),scale:{kind:"number"}},{shorthandKey:"type"}),elements:PW({},{allowUnknown:!0})},{shorthandKey:"type"}),FW=PW({},{allowUnknown:!0,shorthandKey:"type"}),DW=PW({structure:FW,item:FW,items:zW(FW),title:FW}),VW=PW({title:{kind:"string"},desc:{kind:"string"},items:zW(WW),lists:zW(WW),sequences:zW(WW),root:WW,compares:zW(WW),nodes:zW(WW),relations:zW(HW),values:zW(WW),order:$W(["asc","desc"]),illus:IW(),attributes:IW()}),UW=PW({type:{kind:"string"}},{shorthandKey:"type"}),YW=PW({template:UW,design:DW,data:VW,theme:NW,width:LW({kind:"number"},{kind:"string"}),height:LW({kind:"number"},{kind:"string"})}),qW=/(?:[<>o.x-]{2,}|[<>=]{2,})/,GW=/(?:[<>o.x-]{2,}|[<>=]{2,})/g;function XW(t){let e=t.trim();if(!e)return"";const n=e[0],i=e[e.length-1];return('"'===n&&'"'===i||"'"===n&&"'"===i)&&(e=e.slice(1,-1)),e=e.replace(/\\(["'])/g,"$1").replace(/(&quot;|&#quot;|#quot;)/g,'"').replace(/(&apos;|&#39;|#apos;)/g,"'"),e.trim()}function KW(t,e){let n=e;for(;n<t.length&&/\s/.test(t[n]);)n+=1;return n}function ZW(t,e){let n=KW(t,e);if(n>=t.length)return null;const i=n;for(;n<t.length;){const e=t[n];if(/\s/.test(e)||"["===e||"("===e||"@"===e||"|"===e||"<"===e||">"===e)break;if("-"===e&&("-"===t[n+1]||">"===t[n+1]||"<"===t[n+1]))break;n+=1}if(n===i)return null;const r=t.slice(i,n).trim();if(!r)return null;if(t.startsWith("@{",n)){const e=t.indexOf("}",n+2);-1!==e&&(n=e+1)}let o;if(n=KW(t,n),"["===t[n]){const e=t.indexOf("]",n+1);-1!==e&&(o=XW(t.slice(n+1,e)),n=e+1)}else if("("===t[n]){const e=t.indexOf(")",n+1);if(-1!==e){let i=t.slice(n+1,e).trim();i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1).trim()),o=XW(i),n=e+1}}return{node:{id:r,label:o},nextIndex:n}}function QW(t,e){GW.lastIndex=e;const n=GW.exec(t);if(!n)return null;const i=n[0],r=n.index,o=r+i.length;let s=function(t){return XW(t.trim().replace(/^[-=.ox]+/,"").trim())}(t.slice(e,r))||void 0,a=i,l=o;{const e=a.includes("<"),n=a.includes(">");if(e&&!n){const e=new RegExp(GW.source,"g");e.lastIndex=o;const n=e.exec(t);if(n&&n[0].includes(">")&&!n[0].includes("<")){const e=t.slice(o,n.index).trim();if(e){return{label:XW(e)||s,direction:"both",reverse:!1,nextIndex:n.index+n[0].length}}}}}if(l=KW(t,l),"|"===t[l]){const e=t.indexOf("|",l+1);if(-1!==e){s=XW(t.slice(l+1,e))||s,l=e+1;const n=KW(t,l);GW.lastIndex=n;const i=GW.exec(t);i&&i.index===n?(a+=i[0],l=i.index+i[0].length):l=n}}const c=a.includes("<"),h=a.includes(">"),u=a.match(/[xo]/gi)||[],d=/^[xo]/i.test(a),f=/[xo]$/i.test(a);let p="none",g=!1;return c&&h||c&&f||h&&d||d&&f?p="both":(c||h||u.length>0)&&(p="forward",g=c&&!h),{label:s,direction:p,reverse:g,nextIndex:l}}function JW(t,e,n){const i=[],r=[],o=new Map,s=t=>{if(!qW.test(t))return;const e=function(t){const e=[],n=[],i=new Map;let r=0;const o=ZW(t,r);if(!o)return{relations:e,nodes:n};let s=o.node;for(i.has(s.id)||(i.set(s.id,s),n.push(s)),r=o.nextIndex;r<t.length;){const o=QW(t,r);if(!o)break;r=o.nextIndex;const a=ZW(t,r);if(!a)break;r=a.nextIndex;let l=s.id,c=a.node.id;const h=o.direction;o.reverse&&(l=a.node.id,c=s.id);const u={from:l,to:c};o.label&&(u.label=o.label),"both"===h&&(u.direction="both"),"none"===h&&(u.direction="none"),e.push(u),i.has(s.id)||(i.set(s.id,s),n.push(s)),i.has(a.node.id)||(i.set(a.node.id,a.node),n.push(a.node)),s=a.node}return{relations:e,nodes:n}}(t);e.nodes.forEach(t=>{!function(t,e,n,i){if(!n)return;const r=t.get(n);if(r)return void(!r.label&&i&&(r.label=i));const o={id:n,label:i||n};t.set(n,o),e.push(o)}(o,r,t.id,t.label)}),i.push(...e.relations)};return"array"===t.kind?t.items.forEach((t,r)=>{if("object"===t.kind&&t.value&&0===Object.keys(t.entries).length&&qW.test(t.value))return void s(t.value);const o=function(t,e,n){const i=SW(t,HW,e,n);return i&&"object"==typeof i?"string"!=typeof i.from||"string"!=typeof i.to?null:i:null}(t,`${n}[${r}]`,e);o&&i.push(o)}):"object"===t.kind&&t.value&&s(t.value),{relations:i,items:r}}var tH=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};const eH=new Set(["infographic","template","design","data","theme","width","height"]);function nH(t){t.forEach(t=>{!t.id&&t.label&&(t.id=t.label)})}function iH(t){var e;const{ast:n,errors:i}=mW(t),r=[],o={},s=Object.assign({},n.entries),a=function(t,e){if("infographic"in t||"template"in t)return;const[n]=Object.entries(t);if(!n)return;const[i,r]=n;return eH.has(i)||"object"!==r.kind||void 0!==r.value||Object.keys(r.entries).length>0?void 0:(e.push({path:"template",line:r.line,code:"implicit_template",message:'Inferred template from a bare first line. Prefix it with "infographic" or "template" to make the syntax explicit.',raw:i}),{template:i,inferredKey:i})}(n.entries,r);a&&delete s[a.inferredKey];const l=n.entries.infographic;let c;l&&"object"===l.kind&&(l.value&&(c=l.value),Object.entries(l.entries).forEach(([t,e])=>{t in s||(s[t]=e)})),Object.keys(s).forEach(t=>{eH.has(t)||i.push({path:t,line:s[t].line,code:"unknown_key",message:"Unknown top-level key.",raw:t})});const h=function(t,e){if(!t)return;const n=SW(t,UW,"template",e);return n?"string"==typeof n?n:"object"==typeof n&&"string"==typeof n.type?n.type:void 0:void 0}(s.template,i);h&&(o.template=h),!o.template&&c&&(o.template=c),!o.template&&a&&(o.template=a.template);const u=s.design;if(u){const t=SW(u,DW,"design",i);t&&(o.design=t)}const d=s.data;if(d){let t,n=d;if("object"===d.kind){const e=d.entries,{relations:i}=e,r=tH(e,["relations"]);t=i,n=Object.assign(Object.assign({},d),{entries:r})}const r=SW(n,VW,"data",i);if(r&&(o.data=r),t){const n=JW(t,i,"data.relations");if(n.relations.length>0||n.items.length>0){const t=null!==(e=o.data)&&void 0!==e?e:{};Array.isArray(t.items)&&nH(t.items),Array.isArray(t.nodes)&&nH(t.nodes);const i=Object.keys(VW.fields).filter(t=>"items"!==t&&"relations"!==t);let r=!1;for(const e of i)if(Array.isArray(t[e])&&t[e].length>0){r=!0;break}if(!r&&Array.isArray(t.items)&&t.items.length>0&&t.items.some(t=>Array.isArray(t.children)&&t.children.length>0)&&(r=!0),!r){const e=function(t){var e;const n=new Set,i=[];for(let r=t.length-1;r>=0;r-=1){const o=t[r],s=null!==(e=o.id)&&void 0!==e?e:o.label;s?n.has(s)||(n.add(s),o.id||(o.id=s),i.push(o)):i.push(o)}return i.reverse()}(Array.isArray(t.items)?t.items:[]),i=new Map;e.forEach(t=>{t.id&&i.set(t.id,t)}),n.items.forEach(t=>{const n=i.get(t.id);n?!n.label&&t.label&&(n.label=t.label):(e.push(t),i.set(t.id,t))}),t.items=e}t.relations=n.relations,o.data=t}}}const f=s.theme;if(f){const t=SW(f,NW,"theme",i);if(t&&"object"==typeof t){const e=t,{type:n}=e,i=tH(e,["type"]);"string"==typeof n&&n&&(o.theme=n),Object.keys(i).length>0&&(o.themeConfig=i)}}const p=s.width;if(p){const t=SW(p,YW.fields.width,"width",i);void 0!==t&&(o.width=t)}const g=s.height;if(g){const t=SW(g,YW.fields.height,"height",i);void 0!==t&&(o.height=t)}return{options:o,errors:i,warnings:r,ast:n}}const rH={padding:20,theme:"default",themeConfig:{palette:"antv"},get plugins(){return[new tB,new aB,new rB]},get interactions(){return[new bT,new gT,new uT,new fT,new MT,new CT,new NT,new OT]}};function oH(t,e){const n=Object.assign(Object.assign({},t),e);return(t.design||e.design)&&(n.design=Object.assign(Object.assign({},t.design),e.design)),(t.themeConfig||e.themeConfig)&&(n.themeConfig=Object.assign(Object.assign({},t.themeConfig),e.themeConfig)),(t.svg||e.svg)&&(n.svg=Object.assign(Object.assign({},t.svg),e.svg)),n}function sH(t){const e=Object.assign({},t);return e.data&&(e.data=$I(e.data)),e.elements&&(e.elements=$I(e.elements)),e}function aH(t){const{design:e,data:n}=t;return!!e&&(!!es(e)&&(!!n&&!(!Array.isArray(n.items)||n.items.length<1)))}var lH=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){t.done?r(t.value):function(t){return t instanceof n?t:new n(function(e){e(t)})}(t.value).then(s,a)}l((i=i.apply(t,e||[])).next())})};class cH{constructor(t){this.rendered=!1,this.emitter=new _B.A,this.node=null,this.initialOptions={},this.setOptions(t,"replace",!0)}getOptions(){return this.options}setOptions(t,e="replace",n=!1){const{options:i,errors:r,warnings:o}=function(t){if("string"==typeof t){const{options:e,errors:n,warnings:i}=iH(t);return{options:e,errors:n,warnings:i}}return{options:sH(t),errors:[],warnings:[]}}(t);n&&(this.initialOptions=i);const s=oH("replace"===e?sH(this.initialOptions||{}):this.options||sH(this.initialOptions||{}),i);this.options=s,this.parsedOptions=sW(oH(rH,this.options)),o.length&&this.emitter.emit("warning",o),r.length&&this.emitter.emit("error",r)}render(t){t?this.setOptions(t,"replace"):!this.options&&this.initialOptions&&this.setOptions(this.initialOptions,"replace"),this.performRender()}update(t){this.setOptions(t,"merge"),this.performRender()}performRender(){var t;const e=this.parsedOptions;if(!aH(e))return void this.emitter.emit("error",new Error("Incomplete options"));const{container:n}=this.parsedOptions,i=this.compose(e),r=new Dc(e,i);this.node=r.render(),null==n||n.replaceChildren(this.node),null===(t=this.editor)||void 0===t||t.destroy(),this.editor=void 0,this.options.editable&&(this.editor=new TB(this.emitter,this.node,e)),this.rendered=!0,this.emitter.emit("rendered",{node:this.node,options:this.options});const o=this.node;return o&&function(t){return Oa(this,void 0,void 0,function*(){for(yield Promise.resolve();;){const e=Ea(t);if(!e.length)break;yield Promise.allSettled(e),yield Promise.resolve()}})}(o).then(()=>{this.node===o&&this.emitter.emit("loaded",{node:o,options:this.options})}),!0}compose(t){var e,n;const{design:i,data:r,themeConfig:o}=t,{title:s,item:a,items:l,structure:c}=i,{component:h,props:u}=c,d=s.component,f=a.component,p=l.map(t=>t.component),g=null===(n=null===(e=null==o?void 0:o.base)||void 0===e?void 0:e.text)||void 0===n?void 0:n["font-family"],m=Aa;g&&La(g);try{const e=Qc(_u(V(h,Object.assign({data:r,Title:d,Item:f,Items:p,options:t},u))));if(!e)throw new Error("Failed to parse SVG template");return e}finally{g&&La(m)}}getTypes(){const t=this.parsedOptions;if(!aH(t))return void this.emitter.emit("error",new Error("Incomplete options"));const e=t.design;return function(t,e={title:"信息图标题",desc:"信息图描述",items:"信息图的内容项",label:"项目标签文本",value:"项目数值内容",icon:"项目图标",illus:"项目插图",children:"子级项目(多层结构)"}){const{structure:n,items:i}=t,r=[],o=t=>" ".repeat(t);function s(t,n,i){const r=e[t];return r?`${o(i)}/** ${r} */\n${o(i)}${t}: ${n};`:`${o(i)}${t}: ${n};`}return r.push("type InfographicType = {"),n.includes("title")&&(r.push(s("title","string",1)),r.push(s("desc","string",1))),n.includes("item")&&i.length>0&&r.push(s("items",`Array<${function t(e,n){const r=i[e],a=[];for(const t of r)a.push(s(t,"value"===t?"number":"string",n+1));return i[e+1]&&a.push(s("children",`Array<${t(e+1,n+1)}>`,n+1)),`{\n${a.join("\n")}\n${o(n)}}`}(0,1)}>`,1)),r.push("}"),r.join("\n")}({structure:e.structure.composites||[],items:e.items.map(t=>t.composites||[])})}toDataURL(t){return lH(this,void 0,void 0,function*(){if(!this.node)throw new Error("Infographic is not rendered yet.");return"svg"===(null==t?void 0:t.type)?yield function(t){return dB(this,arguments,void 0,function*(t,e={}){const n=yield bB(t,e),i=(new XMLSerializer).serializeToString(n);return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(i)})}(this.node,t):yield function(t){return EB(this,arguments,void 0,function*(t,e={}){var n;const{dpr:i=(null!==(n=globalThis.devicePixelRatio)&&void 0!==n?n:2),removeBackground:r=!1}=e,o=yield bB(t,{removeBackground:r}),{width:s,height:a}=Zh(o);return new Promise((t,e)=>{try{const n=document.createElement("canvas");n.width=s*i,n.height=a*i;const r=n.getContext("2d");if(!r)return void e(new Error("Failed to get canvas context"));r.scale(i,i),r.imageSmoothingEnabled=!0,r.imageSmoothingQuality="high",o.setAttribute("width",String(s)),o.setAttribute("height",String(a));const l=(new XMLSerializer).serializeToString(o),c="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(l),h=new Image;h.onload=function(){r.clearRect(0,0,s,a),r.drawImage(h,0,0,s,a);const e=n.toDataURL("image/png");t(e)},h.onerror=function(t){e(new Error("Image load failed: "+t))},h.src=c}catch(t){e(t)}})})}(this.node,t)})}on(t,e){this.emitter.on(t,e)}off(t,e){this.emitter.off(t,e)}destroy(){var t,e;null===(t=this.editor)||void 0===t||t.destroy(),null===(e=this.node)||void 0===e||e.remove(),this.node=null,this.rendered=!1,this.emitter.emit("destroyed"),this.emitter.removeAllListeners()}}var hH=n("./node_modules/.pnpm/antd@6.7.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/theme/index.js"),uH=n("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isEqual.js"),dH=n.n(uH),fH=n("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js"),pH=n.n(fH),gH=n("./src/utils/browserDownload.ts"),mH=n("./src/utils/dash3.ts"),yH=n("./src/utils/useDeepCompareSignal.ts"),vH=n("./src/utils/useResizeObserver.ts"),xH=n("./src/utils/visualizationTheme.ts"),bH=n("./src/components/fragments/ImageExportButton.tsx");const wH=new Set(["container","plugins","interactions","elements"]),MH=t=>"string"==typeof t?t:Object.fromEntries(Object.entries(t).filter(([t])=>"container"!==t)),kH=t=>{const{token:e}=hH.A.useToken(),{id:n,className:i,style:s,tabIndex:a,role:l,dir:c,lang:h,hidden:u,options:d="",config:f={},export:p,loading_state:g,...m}=t,y=(0,r.useRef)(null),v=(0,r.useRef)(null),x=(0,r.useRef)(d),b=(0,r.useRef)(null),[w,M]=(0,r.useState)(!1),k=(0,xH.n)(e),C=(0,yH.$)({config:f,defaultTheme:k,fontFamily:e.fontFamily,colorBg:e.colorBgContainer}),O=(0,yH.$)(d);x.current=d;const j=(0,r.useMemo)(()=>Object.fromEntries(Object.entries(m).filter(([t,e])=>(t.startsWith("data-")||t.startsWith("aria-"))&&null!=e)),[m]);(0,r.useEffect)(()=>{const t=y.current;if(!t)return;const n=new cH(pH()({container:t,width:"100%",height:"100%",theme:k,themeConfig:{colorBg:e.colorBgContainer,base:{text:{"font-family":e.fontFamily}}}},((t={})=>Object.fromEntries(Object.entries(t).filter(([t])=>!wH.has(t))))(f)));v.current=n;const i=MH(x.current);return n.render(i),b.current=x.current,()=>{n.destroy(),v.current===n&&(v.current=null)}},[C]),(0,r.useEffect)(()=>{const t=v.current;t&&!dH()(b.current,x.current)&&(t.render(MH(x.current)),b.current=x.current)},[O]);const E=(0,r.useRef)({width:0,height:0});(0,vH.w)(()=>y.current,t=>{const e=Math.round(t.contentRect.width),n=Math.round(t.contentRect.height);e&&n&&(e!==E.current.width||n!==E.current.height)&&(E.current={width:e,height:n},v.current?.render(MH(x.current)))},[C]);const _={width:"100%",height:s?.height??450,...s};return o().createElement("div",{...j,id:n,className:i,style:_,tabIndex:a,role:l,dir:c,lang:h,hidden:u,"data-dash-is-loading":(0,mH.A_)(g)||void 0},o().createElement("div",{style:{position:"relative",isolation:"isolate",width:"100%",height:"100%"}},o().createElement("div",{ref:y,style:{width:"100%",height:"100%"}}),p?o().createElement(bH.A,{label:!0===p?void 0:p.label,loading:w,onClick:()=>{const t=v.current;if(!t||!p||w)return;const e=!0===p?{}:p,{format:n="png",pixelRatio:i=1,filename:r="infographic_export"}=e;M(!0),(async()=>{const e="png"===n?await t.toDataURL({type:"png",dpr:Math.max(.1,i)}):await t.toDataURL({type:"svg"});await(0,gH.mU)(e,`${r}.${n}`)})().catch(t=>{console.error("Failed to export Infographic image",t)}).finally(()=>{M(!1)})}}):null))},CH=t=>o().createElement(kH,{...t})},"?c3ee"(){},"?b251"(){},"?9d3a"(){},"?0348"(){},"?2bf4"(){},"./node_modules/.pnpm/nanoid@3.3.16/node_modules/nanoid/non-secure/index.cjs"(t){t.exports={nanoid:(t=21)=>{let e="",n=0|t;for(;n-- >0;)e+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return e},customAlphabet:(t,e=21)=>(n=e)=>{let i="",r=0|n;for(;r-- >0;)i+=t[Math.random()*t.length|0];return i}}}}]);