diff --git a/ams/dashboard/src/language/en.ts b/ams/dashboard/src/language/en.ts index 1e3cd793c8..8909f0d65c 100644 --- a/ams/dashboard/src/language/en.ts +++ b/ams/dashboard/src/language/en.ts @@ -72,6 +72,7 @@ export default { filterPlaceholder: 'Filter {inputPh}', basicInformation: 'Basic Information', partition: 'Partition', + taskId: 'Task ID', fileCount: 'File Count', fsn: 'FSN', commitTime: 'Commit Time', @@ -99,6 +100,9 @@ export default { optimizingStatus: 'Optimizing Status', optimzerGroup: 'Optimizer Group', allGroups: 'All Groups', + retry: 'Retry', + costTime: 'Cost Time', + thread: 'Thread', resourceOccupation: 'Resource Occupation', core: 'Core', scaleOut: 'Scale-Out', @@ -129,6 +133,7 @@ export default { ready: 'Ready', running: 'Running', cancel: 'Cancel', + cancelProcess: 'Cancel Process', finish: 'Finish', fail: 'Fail', loading: 'Loading', @@ -179,7 +184,7 @@ export default { cannotDeleteGroupModalTitle: "Can't remove this group.", cannotDeleteGroupModalContent: 'This group has been used.', deleteGroupModalTitle: 'Remove this group', - processId: 'Process Id', + processId: 'Process ID', tasks: 'Tasks', recordChartTitle: 'Table record count', fileChartTitle: 'Table file count', diff --git a/ams/dashboard/src/main/resources/static/css/chunk-02607735.47f42312.css b/ams/dashboard/src/main/resources/static/css/chunk-7a2c483a.f96050f2.css similarity index 53% rename from ams/dashboard/src/main/resources/static/css/chunk-02607735.47f42312.css rename to ams/dashboard/src/main/resources/static/css/chunk-7a2c483a.f96050f2.css index a71ec79403..06fed47c57 100644 --- a/ams/dashboard/src/main/resources/static/css/chunk-02607735.47f42312.css +++ b/ams/dashboard/src/main/resources/static/css/chunk-7a2c483a.f96050f2.css @@ -1 +1 @@ -.table-detail .left-content[data-v-1a704e23],.table-detail .right-content[data-v-1a704e23]{padding:0 24px 12px;flex-shrink:0;flex-direction:column}.table-detail .left-content[data-v-1a704e23]{flex:2}.table-detail .right-content[data-v-1a704e23]{flex:1;padding-left:0}.table-detail .table-attrs[data-v-1a704e23]{margin-top:16px}.table-detail .attr-title[data-v-1a704e23]{font-size:16px;line-height:24px;font-weight:700;color:#102048;padding-bottom:12px}.table-partitons[data-v-a19b17ea]{padding:18px 24px}.table-partitons .text-active[data-v-a19b17ea]{color:#1890ff;cursor:pointer}.table-operations{padding:12px}.table-operations .ant-table-tbody>tr>td{white-space:pre}.table-operations .text-active{color:#1890ff;cursor:pointer}.operation-wrap .ant-modal-body{max-height:360px;overflow-y:auto;white-space:pre}.echarts-loading{width:100%!important}.timeline-echarts .echarts-tooltip-dark{background-color:rgba(0,0,0,.7)!important;line-height:20px!important;border:1px solid #e9ebf1!important}.branch-selector{margin-top:32px;display:flex;align-items:center}.branch-selector .branch-btn{display:flex;align-items:center;color:#102048}.branch-selector .branch-btn .branch-btn-label{line-height:32px;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.branch-selector .ant-dropdown{background:#fff;width:300px;height:auto;max-height:480px;padding:8px 0 16px 0;font-size:12px;border-radius:6px;box-shadow:0 6px 16px 0 rgba(0,0,0,.08),0 3px 6px -4px rgba(0,0,0,.12),0 9px 28px 8px rgba(0,0,0,.05)}.branch-selector .ant-dropdown .branch-selector-search{margin:0 12px 8px 12px}.branch-selector .ant-dropdown .ant-tabs{margin:0 12px}.branch-selector .ant-dropdown .ant-tabs .ant-tabs-tabpane{height:240px;overflow-y:auto}.branch-selector .ant-dropdown .ant-tabs .branch-selector-item{display:flex;align-items:center;width:100%;padding:7px 16px;overflow:hidden;text-align:left;cursor:pointer}.branch-selector .ant-dropdown .ant-tabs .branch-selector-item:hover{background-color:rgba(0,0,0,.04)}.branch-selector .ant-dropdown .ant-tabs .branch-selector-item .item-icon{margin-right:4px;width:16px}.branch-selector .ant-dropdown .ant-tabs .branch-selector-item .item-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#102048}.branch-selector .empty-tips{margin-top:12px;display:block;width:100%;text-align:center;color:#102048}.table-snapshots[data-v-21a1677f]{padding:18px 24px}.table-snapshots .text-active[data-v-21a1677f]{color:#1890ff;cursor:pointer}.table-snapshots[data-v-21a1677f] .ant-btn-link{padding:0}.table-snapshots .ant-table-wrapper[data-v-21a1677f]{margin-top:24px}.table-optinize[data-v-7de44d54]{padding:18px 24px}.table-optinize[data-v-7de44d54] .ant-table-thead>tr>th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]):before{height:100%!important}.table-optinize[data-v-7de44d54] .ant-table-thead>tr:not(:last-child)>th[colspan]{border-bottom:1px solid #e8e8f0}.table-optinize[data-v-7de44d54] .ant-table-thead>tr>th{padding:4px 16px!important}.status-icon[data-v-7de44d54]{width:8px;height:8px;border-radius:8px;background-color:#c9cdd4;display:inline-block;margin-right:8px}.table-failed-tip .ant-tooltip-content{width:800px}.table-failed-tip .tip-title{display:block;max-height:700px;overflow:auto;white-space:pre-wrap}.tables-wrap[data-v-3ca83c09]{font-size:14px;border:1px solid #e8e8f0;padding:12px 0;min-height:100%}.tables-wrap .create-time[data-v-3ca83c09]{margin-top:12px}.tables-wrap .tables-menu-wrap[data-v-3ca83c09]{position:fixed;width:100%;height:100%;top:0;left:200px;z-index:100}.tables-wrap .table-name[data-v-3ca83c09]{font-size:24px;line-height:1.5;margin-right:16px;max-width:400px;padding-left:24px}.tables-wrap .table-info[data-v-3ca83c09]{padding:12px 24px 0 24px}.tables-wrap .table-info .text-color[data-v-3ca83c09]{color:#7cb305}.tables-wrap .table-info .ant-divider-vertical[data-v-3ca83c09]{height:1.2em;margin:0 12px}.tables-wrap .table-edit[data-v-3ca83c09]{font-size:18px;padding-right:12px}.tables-wrap[data-v-3ca83c09] .ant-tabs-nav{padding-left:12px;margin-bottom:0} \ No newline at end of file +.table-detail .left-content[data-v-1a704e23],.table-detail .right-content[data-v-1a704e23]{padding:0 24px 12px;flex-shrink:0;flex-direction:column}.table-detail .left-content[data-v-1a704e23]{flex:2}.table-detail .right-content[data-v-1a704e23]{flex:1;padding-left:0}.table-detail .table-attrs[data-v-1a704e23]{margin-top:16px}.table-detail .attr-title[data-v-1a704e23]{font-size:16px;line-height:24px;font-weight:700;color:#102048;padding-bottom:12px}.table-partitons[data-v-c1547390]{padding:18px 24px}.table-partitons .text-active[data-v-c1547390]{color:#1890ff;cursor:pointer}.table-operations{padding:12px}.table-operations .ant-table-tbody>tr>td{white-space:pre}.table-operations .text-active{color:#1890ff;cursor:pointer}.operation-wrap .ant-modal-body{max-height:360px;overflow-y:auto;white-space:pre}.echarts-loading{width:100%!important}.timeline-echarts .echarts-tooltip-dark{background-color:rgba(0,0,0,.7)!important;line-height:20px!important;border:1px solid #e9ebf1!important}.branch-selector{margin-top:32px;display:flex;align-items:center}.branch-selector .branch-btn{display:flex;align-items:center;color:#102048}.branch-selector .branch-btn .branch-btn-label{line-height:32px;max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.branch-selector .ant-dropdown{background:#fff;width:300px;height:auto;max-height:480px;padding:8px 0 16px 0;font-size:12px;border-radius:6px;box-shadow:0 6px 16px 0 rgba(0,0,0,.08),0 3px 6px -4px rgba(0,0,0,.12),0 9px 28px 8px rgba(0,0,0,.05)}.branch-selector .ant-dropdown .branch-selector-search{margin:0 12px 8px 12px}.branch-selector .ant-dropdown .ant-tabs{margin:0 12px}.branch-selector .ant-dropdown .ant-tabs .ant-tabs-tabpane{height:240px;overflow-y:auto}.branch-selector .ant-dropdown .ant-tabs .branch-selector-item{display:flex;align-items:center;width:100%;padding:7px 16px;overflow:hidden;text-align:left;cursor:pointer}.branch-selector .ant-dropdown .ant-tabs .branch-selector-item:hover{background-color:rgba(0,0,0,.04)}.branch-selector .ant-dropdown .ant-tabs .branch-selector-item .item-icon{margin-right:4px;width:16px}.branch-selector .ant-dropdown .ant-tabs .branch-selector-item .item-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#102048}.branch-selector .empty-tips{margin-top:12px;display:block;width:100%;text-align:center;color:#102048}.table-snapshots[data-v-4a105faf]{padding:18px 24px}.table-snapshots .text-active[data-v-4a105faf]{color:#1890ff;cursor:pointer}.table-snapshots[data-v-4a105faf] .ant-btn-link{padding:0}.table-snapshots .ant-table-wrapper[data-v-4a105faf]{margin-top:24px}.table-optimizing[data-v-66f12fbb]{padding:18px 24px}.table-optimizing[data-v-66f12fbb] .ant-table-thead>tr>th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan]):before{height:100%!important}.table-optimizing[data-v-66f12fbb] .ant-table-thead>tr:not(:last-child)>th[colspan]{border-bottom:1px solid #e8e8f0}.table-optimizing[data-v-66f12fbb] .ant-table-thead>tr>th{padding:4px 16px!important}.status-icon[data-v-66f12fbb]{width:8px;height:8px;border-radius:8px;background-color:#c9cdd4;display:inline-block;margin-right:8px}.table-optimizing .text-active{color:#1890ff;cursor:pointer}.table-optimizing .ant-btn-link{padding:0}.table-failed-tip .ant-tooltip-content{width:800px}.table-failed-tip .tip-title{display:block;max-height:700px;overflow:auto;white-space:pre-wrap}.tables-wrap[data-v-4759e59e]{font-size:14px;border:1px solid #e8e8f0;padding:12px 0;min-height:100%}.tables-wrap .create-time[data-v-4759e59e]{margin-top:12px}.tables-wrap .tables-menu-wrap[data-v-4759e59e]{position:fixed;width:100%;height:100%;top:0;left:200px;z-index:100}.tables-wrap .table-name[data-v-4759e59e]{font-size:24px;line-height:1.5;margin-right:16px;max-width:400px;padding-left:24px}.tables-wrap .table-info[data-v-4759e59e]{padding:12px 24px 0 24px}.tables-wrap .table-info .text-color[data-v-4759e59e]{color:#7cb305}.tables-wrap .table-info .ant-divider-vertical[data-v-4759e59e]{height:1.2em;margin:0 12px}.tables-wrap .table-edit[data-v-4759e59e]{font-size:18px;padding-right:12px}.tables-wrap[data-v-4759e59e] .ant-tabs-nav{padding-left:12px;margin-bottom:0} \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/index.html b/ams/dashboard/src/main/resources/static/index.html index 2fe916bcbd..4ca2cd8009 100644 --- a/ams/dashboard/src/main/resources/static/index.html +++ b/ams/dashboard/src/main/resources/static/index.html @@ -1 +1 @@ -Amoro
\ No newline at end of file +Amoro
\ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/app.41fc1e9f.js b/ams/dashboard/src/main/resources/static/js/app.41fc1e9f.js new file mode 100644 index 0000000000..fc06139aff --- /dev/null +++ b/ams/dashboard/src/main/resources/static/js/app.41fc1e9f.js @@ -0,0 +1 @@ +(function(e){function t(t){for(var C,E,i=t[0],r=t[1],A=t[2],s=0,c=[];s'});o.a.add(i);t["default"]=i},"0613":function(e,t,n){"use strict";var C=n("be92");const E=()=>({userInfo:{userName:""},isShowTablesMenu:!1,historyPathInfo:{path:"",query:{}}}),a={getShowTablesMenu(e){return e.isShowTablesMenu}};t["a"]=Object(C["b"])("datalake",{state:E,getters:a,actions:{updateTablesMenu(e){this.isShowTablesMenu=e},updateUserInfo(e){this.userInfo=e},setHistoryPath(e){this.historyPathInfo=e}}})},"0b37":function(e,t,n){"use strict";n("86eb")},"0beb":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-arctic",use:"icon-arctic-usage",viewBox:"0 0 16 16",content:''});o.a.add(i);t["default"]=i},"14b4":function(e,t,n){"use strict";var C=n("47e2"),E={overview:"Overview",catalogs:"Catalogs",catalog:"Catalog",tables:"Tables",optimizing:"Optimizing",terminal:"Terminal",settings:"Settings",resource:"Resource",optimizergroup:"Optimizer Groups",systemSetting:"System Settings",containerSetting:"Container Settings",backHome:"Back to Home",version:"Version",userGuide:"User Guide",logout:"Logout",logoutModalTitle:"Log out of the ams?",order:"Order",cluster:"Cluster",database:"Database | Databases",table:"Table | Tables",size:"Size",file:"File",files:"Files",field:"Field",type:"Type",implementation:"Implementation",required:"Required",createTime:"Create Time",primaryKey:"Primary Key",partitionKey:"Partition Key",schema:"Schema",mainMetrics:"Main Metrics",changeTableMetrics:"Change Table Metrics",baseTableMetrics:"Base Table Metrics",properties:"Properties",tableProperties:"Table Properties",sourceField:"Source Field",transform:"Transform",description:"Description",metric:"Metric",key:"Key",value:"Value",metricValue:"Metric Value",averageFileSize:"Average File Size",lastCommitTime:"Last Commit Time",quota:"Quota",createTable:"Create Table",createDatabase:"Create Database",databaseName:"Database Name",tableName:"Table Name",selectPlaceholder:"Please select {selectPh}",inputPlaceholder:"Please input {inputPh}",filterPlaceholder:"Filter {inputPh}",basicInformation:"Basic Information",partition:"Partition",taskId:"Task ID",fileCount:"File Count",fsn:"FSN",commitTime:"Commit Time",commitId:"Commit ID",path:"Path",snapshotId:"Snapshot ID",fileType:"File Type",fileContent:"File Content",startTime:"Start Time",finishTime:"Finish Time",duration:"Duration",optimizeType:"Optimize Type",parallelism:"Parallelism",input:"Input",output:"Output",count:"Count",time:"Time",operation:"Operation",operationDetails:"Operation Details",copy:"Copy",optimizer:"Optimizer",optimizers:"Optimizers",container:"Container",status:"Status",optimizingStatus:"Optimizing Status",optimzerGroup:"Optimizer Group",allGroups:"All Groups",retry:"Retry",costTime:"Cost Time",thread:"Thread",resourceOccupation:"Resource Occupation",core:"Core",scaleOut:"Scale-Out",release:"Release",optimizeStatus:"Optimize Status",fileSize:"File Size",records:"Records",occupation:"Occupation",optimizerGroup:"Optimizer Group",optimizerGroups:"Optimizer Groups",resourceAllocation:"Resource Allocation",resourceGroup:"Resource Group",releaseOptModalTitle:"Release this optimizer?",cancelOptimizingProcessOptModalTitle:"Cancel the optimizing process of this table?",welecomeTip:"Welcome to Amoro!",signin:"Sign in",username:"Username",password:"Password",pause:"Pause",run:"Run",maximize:"Maximize",format:"Format",fullscreen:"Full screen",recovery:"Recovery",result:"Result",noResult:"No results",log:"Log",ready:"Ready",running:"Running",cancel:"Cancel",cancelProcess:"Cancel Process",finish:"Finish",fail:"Fail",loading:"Loading",sqlShortcuts:"SQL Shortcuts",use:"Use",upgrade:"Upgrade",upgrading:"Upgrading",upgradeHiveTable:"Upgrade Hive Table",ok:"Ok",partitonField:"Partiton Field",otherProperties:"Other Properties",errorMessage:"Error Message",copySuccess:"Copy Success",duplicateKey:"duplicate key",lastUpgradingFailed:"Last Upgrading Failed",data:"Data",resourceCpu:"Resource Cpu",resourceMemory:"Resource Memory",resourceUsage:"Resource Usage",top10:"Top 10",numIndex:"No.",cpu:"CPU",memory:"Memory",lastTime:"Last {time}",list:"List",name:"Name",tableFormat:"Table Format",metastore:"Metastore",basic:"Basic",storageConfigName:"Storage",authenticationConfig:"Authentication",upload:"Upload",save:"Save",remove:"Remove",edit:"Edit",deleteCatalogModalTitle:"Remove this catalog?",cannotDeleteModalTitle:"Can't remove this catalog.",cannotDeleteModalContent:"This catalog has been used.",success:"Success",optimzeGroup:"Optimize Group",propertiesMemory:"properties.{type}.memory",leavePageModalTitle:"Leave this page?",leavePageModalContent:"Changes you made may not be saved.",leave:"Leave",invalidInput:"Invalid input",addgroup:"Add Group",editgroup:"Edit Group",cannotDeleteGroupModalTitle:"Can't remove this group.",cannotDeleteGroupModalContent:"This group has been used.",deleteGroupModalTitle:"Remove this group",processId:"Process ID",tasks:"Tasks",recordChartTitle:"Table record count",fileChartTitle:"Table file count",totalRecords:"total-records",totalEqualityDeletes:"eq-delete-records",totalPositionDeletes:"pos-delete-records",totalFiles:"total-files",totalDataFiles:"data-files",totalDeleteFiles:"delete-files",branches:"branches",tags:"tags",nothingToShow:"Nothing to show",filterBranchesOrTags:"Filter branches/tags",findATag:"Find a tag"},a={overview:"总览",tables:"表",optimize:"优化",terminal:"终端",settings:"设置"},o={en:E,zh:a};const i={en:{short:{year:"numeric",month:"2-digit",day:"2-digit"},long:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}},zh:{short:{year:"numeric",month:"2-digit",day:"2-digit"},long:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}}},r=Object(C["a"])({locale:"en",fallbackLocale:"zh",globalInjection:!0,legacy:!1,messages:o,datetimeFormats:i});t["a"]=r},"19ce":function(e,t,n){"use strict";n("2d6d")},"1d43":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-optimizing",use:"icon-optimizing-usage",viewBox:"0 0 14 14",content:'\n\n\n'});o.a.add(i);t["default"]=i},"23f1":function(e,t,n){var C={"./amoro.svg":"010b","./arctic.svg":"0beb","./branch.svg":"4b1e","./catalogs.svg":"5fbf","./database.svg":"e5fc","./format.svg":"494b","./hive.svg":"9ac0","./iceberg.svg":"bbf7","./optimizers.svg":"54e7","./optimizing.svg":"1d43","./overview.svg":"d5c0","./paimon.svg":"75b0","./settings.svg":"9c15","./slide.svg":"9246","./sqldebug.svg":"563a","./sqlinit.svg":"cf33","./sqlmax.svg":"e583","./sqlpause.svg":"7607","./tables.svg":"3590","./tag.svg":"ac42","./terminal.svg":"b789"};function E(e){var t=a(e);return n(t)}function a(e){if(!n.o(C,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return C[e]}E.keys=function(){return Object.keys(C)},E.resolve=a,e.exports=E,E.id="23f1"},"2d6d":function(e,t,n){},3590:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-tables",use:"icon-tables-usage",viewBox:"0 0 16 16",content:'\n\n'});o.a.add(i);t["default"]=i},"494b":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-format",use:"icon-format-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n'});o.a.add(i);t["default"]=i},"4b1e":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-branch",use:"icon-branch-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(i);t["default"]=i},"54e7":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-optimizers",use:"icon-optimizers-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n\n\n\n\n'});o.a.add(i);t["default"]=i},"563a":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-sqldebug",use:"icon-sqldebug-usage",viewBox:"0 0 16 16",content:'\n\n\n'});o.a.add(i);t["default"]=i},"5fbf":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-catalogs",use:"icon-catalogs-usage",viewBox:"0 0 16 16",content:'\n\n'});o.a.add(i);t["default"]=i},6170:function(e,t,n){"use strict";n("aea9")},"75b0":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-paimon",use:"icon-paimon-usage",viewBox:"0 0 307.34 218.61",content:'\n \n \n \n \n \n \n \n \n \n'});o.a.add(i);t["default"]=i},7607:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-sqlpause",use:"icon-sqlpause-usage",viewBox:"0 0 16 16",content:'\n\n\n'});o.a.add(i);t["default"]=i},8608:function(e,t,n){"use strict";const C=e=>e.keys().map(e),E=n("23f1");C(E)},"86eb":function(e,t,n){},9246:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-slide",use:"icon-slide-usage",viewBox:"0 0 10 28",content:'\n \x3c!-- Generator: Sketch 56.2 (81672) - https://sketch.com --\x3e\n slide\n Created with Sketch.\n \n \n \n \n \n \n \n \n \n \n \n \n'});o.a.add(i);t["default"]=i},"9ac0":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-hive",use:"icon-hive-usage",viewBox:"0 0 16 16",content:''});o.a.add(i);t["default"]=i},"9c15":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-settings",use:"icon-settings-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n\n\n\n\n\n'});o.a.add(i);t["default"]=i},a4b1:function(e,t,n){},ac42:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-tag",use:"icon-tag-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(i);t["default"]=i},aea9:function(e,t,n){},afbc:function(e,t,n){"use strict";var C=n("6c02");const E=()=>n.e("chunk-6e8ffc4f").then(n.bind(null,"bb51")),a=()=>n.e("chunk-e27313ec").then(n.bind(null,"8cdb")),o=()=>n.e("chunk-9fc4147c").then(n.bind(null,"adb5")),i=()=>n.e("chunk-7a2c483a").then(n.bind(null,"bfa3")),r=()=>n.e("chunk-76776ef2").then(n.bind(null,"06e7")),A=()=>n.e("chunk-28b9a9cc").then(n.bind(null,"4139")),s=()=>n.e("chunk-225a1827").then(n.bind(null,"1150")),c=()=>n.e("chunk-eb399e28").then(n.bind(null,"61c2")),l=()=>n.e("chunk-0e36844c").then(n.bind(null,"d323")),d=()=>n.e("chunk-6a44215d").then(n.bind(null,"9ed6")),T=()=>n.e("chunk-083d7ab6").then(n.bind(null,"67df")),R=()=>n.e("chunk-a830a942").then(n.bind(null,"2240")),u=[{path:"/",name:"Home",redirect:"introduce",component:E,children:[{path:"catalogs",name:"Catalogs",component:o},{path:"tables",name:"Tables",component:i,children:[{path:"create",name:"Create",component:s}]},{path:"hive-tables",name:"HiveTables",component:r,children:[{path:"upgrade",name:"Upgrade",component:A}]},{path:"optimizing",name:"Optimizing",component:R},{path:"settings",name:"Settings",component:c},{path:"terminal",name:"Terminal",component:l},{path:"introduce",name:"Introduce",component:T}]},{path:"/login",name:"Login",component:d},{path:"/404",name:"Page404",component:a},{path:"/:pathMatch(.*)*",name:"Page404",component:a}],I=Object(C["a"])({history:Object(C["b"])(),routes:u});t["a"]=I},b32d:function(e,t,n){"use strict";n("3b18");var C=n("f64c"),E=(n("d9e2"),n("bc3a")),a=n.n(E),o=n("0613"),i=n("afbc");const r="/",A=[];function s(e){e.method||(e.method="get")}const c={baseURL:r,timeout:45e3,headers:{"Content-Type":"application/json"}},l={method:"get",useToken:!1,handleError:!0,returnCode:!1,supportCancel:!1,routeChangeCancel:!1},d=a.a.create(c),T=e=>{const t=A.findIndex(t=>t.name===e.requestMark);t>-1&&A.splice(t,1)};d.interceptors.response.use(async e=>(T(e.config),200===e.status&&e.data?e:Promise.reject(new Error("网络错误"))),e=>{var t;null!==e&&void 0!==e&&e.response&&T(null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.config);return a.a.isCancel(e)?new Promise(()=>{}):Promise.reject(e)});const R=function(e){const t=Object.assign({},l,e),n=`${t.method}-${(t.url||"").split("?")[0]}`;if(t.requestMark=n,t.supportCancel){const e=A.findIndex(e=>e.name===n);e>-1&&(A[e].cancel(),A.splice(e,1))}const E=a.a.CancelToken.source();return t.cancelToken=E.token,A.push({name:n,cancel:E.cancel,routeChangeCancel:t.routeChangeCancel}),t.useToken&&s(t),d(t).then(e=>{const{code:n,message:E}=e.data;if(t.returnCode)return e.data;if(0===n||200===n)return e.data.result;if(403===n){const e=Object(o["a"])();return e.updateUserInfo({userName:""}),t.handleError&&C["a"].error(E||"need login"),i["a"].push({path:"/login"})}return Promise.reject(new Error(E||"error"))}).catch(e=>(t.handleError&&C["a"].error(e.message),Promise.reject(e)))};["get","delete"].forEach(e=>{R[e]=function(t,n={}){return n=Object.assign({},n,{url:t,method:e}),R(n)}}),["post","put"].forEach(e=>{R[e]=function(t,n={},C={}){return C=Object.assign({},C,{url:t,method:e,data:n}),R(C)}}),t["a"]=R},b789:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-terminal",use:"icon-terminal-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n\n\n\n\n'});o.a.add(i);t["default"]=i},bbf7:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-iceberg",use:"icon-iceberg-usage",viewBox:"0 0 16 16",content:''});o.a.add(i);t["default"]=i},cd49:function(e,t,n){"use strict";n.r(t);var C=n("7a23"),E=n("64aa"),a=n("eb60"),o=Object(C["defineComponent"])({__name:"App",setup(e){const t=Object(C["ref"])(E["a"].locale);return(e,n)=>{const o=Object(C["resolveComponent"])("router-view"),i=Object(C["resolveComponent"])("a-config-provider");return Object(C["openBlock"])(),Object(C["createBlock"])(i,{locale:"en"===t.value?Object(C["unref"])(E["a"]):Object(C["unref"])(a["a"])},{default:Object(C["withCtx"])(()=>[Object(C["createVNode"])(o)]),_:1},8,["locale"])}}});n("0b37");const i=o;var r=i,A=n("afbc"),s=n("be92"),c=n("0613"),l=n("14b4"),d=(n("9d5c"),n("a600")),T=(n("0032"),n("e32c")),R=(n("de6a"),n("9a63")),u=(n("7d24"),n("dfae")),I=(n("5783"),n("59a5")),L=(n("eb14"),n("39ab")),O=(n("06f4"),n("fc25")),S=(n("4955"),n("28da")),N=(n("ee00"),n("bb76")),f=(n("dd48"),n("2fc4")),h=(n("d88f"),n("fe2b")),g=(n("68c7"),n("de1b")),p=(n("f2ef"),n("3af3")),M=(n("cd17"),n("ed3b")),m=(n("5704"),n("b558")),D=(n("c68a"),n("0020")),b=(n("9a33"),n("f933")),P=(n("6ba6"),n("5efb")),U=(n("fbd8"),n("55f1")),w=(n("2ef0"),n("9839")),F=(n("922d"),n("09d9")),V=(n("d13f"),n("ccb9")),k=(n("55ec"),n("a79d")),v=(n("7f6b"),n("8592")),B=(n("d2a3"),n("4df5"));const y=[B["a"],v["a"],k["a"],V["a"],F["a"],w["a"],U["a"],P["a"],b["a"],D["a"],m["a"],M["a"],p["a"],g["a"],h["a"],f["a"],N["a"],S["a"],O["a"],L["a"],I["a"],u["a"],R["a"],T["a"],d["a"]];var Y=function(e){y.forEach(e.use)};function G(e,t,n,E,a,o){const i=Object(C["resolveComponent"])("a-spin");return E.visible?Object(C["withDirectives"])((Object(C["openBlock"])(),Object(C["createElementBlock"])("div",{key:0,ref:"loadingRef",class:Object(C["normalizeClass"])(["u-loading",{fullscreen:n.fullscreen}])},[Object(C["createVNode"])(i,{tip:n.loadingText},null,8,["tip"])],2)),[[C["vShow"],E.visible]]):Object(C["createCommentVNode"])("",!0)}var H={name:"ULoading",props:{loadingText:{type:String,default:"Loading"},fullscreen:{type:Boolean,default:!1}},setup(){const e=Object(C["ref"])(!0),t=()=>{e.value=!1};return Object(C["onBeforeUnmount"])(()=>{e.value=!1}),{visible:e,hide:t}}},_=(n("19ce"),n("6b0d")),X=n.n(_);const W=X()(H,[["render",G],["__scopeId","data-v-15225de2"]]);var x=W,K={install(e){e.component("ULoading",x)}};function Z(e){e.use(Y),e.use(K)}n("a4b1");var Q=n("c2c6");const q={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT_AFTER_WAIT","ABSENT","ABSOLUTE","ACCENT_SENSITIVITY","ACTION","ACTIVATION","ACTIVE","ADD","ADDRESS","ADMIN","AES","AES_128","AES_192","AES_256","AFFINITY","AFTER","AGGREGATE","ALGORITHM","ALL_CONSTRAINTS","ALL_ERRORMSGS","ALL_INDEXES","ALL_LEVELS","ALL_SPARSE_COLUMNS","ALLOW_CONNECTIONS","ALLOW_MULTIPLE_EVENT_LOSS","ALLOW_PAGE_LOCKS","ALLOW_ROW_LOCKS","ALLOW_SINGLE_EVENT_LOSS","ALLOW_SNAPSHOT_ISOLATION","ALLOWED","ALTER","ANONYMOUS","ANSI_DEFAULTS","ANSI_NULL_DEFAULT","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_NULLS","ANSI_PADDING","ANSI_WARNINGS","APPEND","APPLICATION","APPLICATION_LOG","ARITHABORT","ARITHIGNORE","AS","ASC","ASSEMBLY","ASYMMETRIC","ASYNCHRONOUS_COMMIT","AT","ATOMIC","ATTACH","ATTACH_REBUILD_LOG","AUDIT","AUDIT_GUID","AUTHENTICATION","AUTHORIZATION","AUTO","AUTO_CLEANUP","AUTO_CLOSE","AUTO_CREATE_STATISTICS","AUTO_SHRINK","AUTO_UPDATE_STATISTICS","AUTO_UPDATE_STATISTICS_ASYNC","AUTOMATED_BACKUP_PREFERENCE","AUTOMATIC","AVAILABILITY","AVAILABILITY_MODE","BACKUP","BACKUP_PRIORITY","BASE64","BATCHSIZE","BEGIN","BEGIN_DIALOG","BIGINT","BINARY","BINDING","BIT","BLOCKERS","BLOCKSIZE","BOUNDING_BOX","BREAK","BROKER","BROKER_INSTANCE","BROWSE","BUCKET_COUNT","BUFFER","BUFFERCOUNT","BULK","BULK_LOGGED","BY","CACHE","CALL","CALLED","CALLER","CAP_CPU_PERCENT","CASCADE","CASE","CATALOG","CATCH","CELLS_PER_OBJECT","CERTIFICATE","CHANGE_RETENTION","CHANGE_TRACKING","CHANGES","CHAR","CHARACTER","CHECK","CHECK_CONSTRAINTS","CHECK_EXPIRATION","CHECK_POLICY","CHECKALLOC","CHECKCATALOG","CHECKCONSTRAINTS","CHECKDB","CHECKFILEGROUP","CHECKIDENT","CHECKPOINT","CHECKTABLE","CLASSIFIER_FUNCTION","CLEANTABLE","CLEANUP","CLEAR","CLOSE","CLUSTER","CLUSTERED","CODEPAGE","COLLATE","COLLECTION","COLUMN","COLUMN_SET","COLUMNS","COLUMNSTORE","COLUMNSTORE_ARCHIVE","COMMIT","COMMITTED","COMPATIBILITY_LEVEL","COMPRESSION","COMPUTE","CONCAT","CONCAT_NULL_YIELDS_NULL","CONFIGURATION","CONNECT","CONSTRAINT","CONTAINMENT","CONTENT","CONTEXT","CONTINUE","CONTINUE_AFTER_ERROR","CONTRACT","CONTRACT_NAME","CONTROL","CONVERSATION","COOKIE","COPY_ONLY","COUNTER","CPU","CREATE","CREATE_NEW","CREATION_DISPOSITION","CREDENTIAL","CRYPTOGRAPHIC","CUBE","CURRENT","CURRENT_DATE","CURSOR","CURSOR_CLOSE_ON_COMMIT","CURSOR_DEFAULT","CYCLE","DATA","DATA_COMPRESSION","DATA_PURITY","DATABASE","DATABASE_DEFAULT","DATABASE_MIRRORING","DATABASE_SNAPSHOT","DATAFILETYPE","DATE","DATE_CORRELATION_OPTIMIZATION","DATEFIRST","DATEFORMAT","DATETIME","DATETIME2","DATETIMEOFFSET","DAY","DAYOFYEAR","DAYS","DB_CHAINING","DBCC","DBREINDEX","DDL_DATABASE_LEVEL_EVENTS","DEADLOCK_PRIORITY","DEALLOCATE","DEC","DECIMAL","DECLARE","DECRYPTION","DEFAULT","DEFAULT_DATABASE","DEFAULT_FULLTEXT_LANGUAGE","DEFAULT_LANGUAGE","DEFAULT_SCHEMA","DEFINITION","DELAY","DELAYED_DURABILITY","DELETE","DELETED","DENSITY_VECTOR","DENY","DEPENDENTS","DES","DESC","DESCRIPTION","DESX","DHCP","DIAGNOSTICS","DIALOG","DIFFERENTIAL","DIRECTORY_NAME","DISABLE","DISABLE_BROKER","DISABLED","DISK","DISTINCT","DISTRIBUTED","DOCUMENT","DOUBLE","DROP","DROP_EXISTING","DROPCLEANBUFFERS","DUMP","DURABILITY","DYNAMIC","EDITION","ELEMENTS","ELSE","EMERGENCY","EMPTY","EMPTYFILE","ENABLE","ENABLE_BROKER","ENABLED","ENCRYPTION","END","ENDPOINT","ENDPOINT_URL","ERRLVL","ERROR","ERROR_BROKER_CONVERSATIONS","ERRORFILE","ESCAPE","ESTIMATEONLY","EVENT","EVENT_RETENTION_MODE","EXEC","EXECUTABLE","EXECUTE","EXIT","EXPAND","EXPIREDATE","EXPIRY_DATE","EXPLICIT","EXTENDED_LOGICAL_CHECKS","EXTENSION","EXTERNAL","EXTERNAL_ACCESS","FAIL_OPERATION","FAILOVER","FAILOVER_MODE","FAILURE_CONDITION_LEVEL","FALSE","FAN_IN","FAST","FAST_FORWARD","FETCH","FIELDTERMINATOR","FILE","FILEGROUP","FILEGROWTH","FILELISTONLY","FILENAME","FILEPATH","FILESTREAM","FILESTREAM_ON","FILETABLE_COLLATE_FILENAME","FILETABLE_DIRECTORY","FILETABLE_FULLPATH_UNIQUE_CONSTRAINT_NAME","FILETABLE_NAMESPACE","FILETABLE_PRIMARY_KEY_CONSTRAINT_NAME","FILETABLE_STREAMID_UNIQUE_CONSTRAINT_NAME","FILLFACTOR","FILTERING","FIRE_TRIGGERS","FIRST","FIRSTROW","FLOAT","FMTONLY","FOLLOWING","FOR","FORCE","FORCE_FAILOVER_ALLOW_DATA_LOSS","FORCE_SERVICE_ALLOW_DATA_LOSS","FORCED","FORCEPLAN","FORCESCAN","FORCESEEK","FOREIGN","FORMATFILE","FORMSOF","FORWARD_ONLY","FREE","FREEPROCCACHE","FREESESSIONCACHE","FREESYSTEMCACHE","FROM","FULL","FULLSCAN","FULLTEXT","FUNCTION","GB","GEOGRAPHY_AUTO_GRID","GEOGRAPHY_GRID","GEOMETRY_AUTO_GRID","GEOMETRY_GRID","GET","GLOBAL","GO","GOTO","GOVERNOR","GRANT","GRIDS","GROUP","GROUP_MAX_REQUESTS","HADR","HASH","HASHED","HAVING","HEADERONLY","HEALTH_CHECK_TIMEOUT","HELP","HIERARCHYID","HIGH","HINT","HISTOGRAM","HOLDLOCK","HONOR_BROKER_PRIORITY","HOUR","HOURS","IDENTITY","IDENTITY_INSERT","IDENTITY_VALUE","IDENTITYCOL","IF","IGNORE_CONSTRAINTS","IGNORE_DUP_KEY","IGNORE_NONCLUSTERED_COLUMNSTORE_INDEX","IGNORE_TRIGGERS","IMAGE","IMMEDIATE","IMPERSONATE","IMPLICIT_TRANSACTIONS","IMPORTANCE","INCLUDE","INCREMENT","INCREMENTAL","INDEX","INDEXDEFRAG","INFINITE","INFLECTIONAL","INIT","INITIATOR","INPUT","INPUTBUFFER","INSENSITIVE","INSERT","INSERTED","INSTEAD","INT","INTEGER","INTO","IO","IP","ISABOUT","ISOLATION","JOB","KB","KEEP","KEEP_CDC","KEEP_NULLS","KEEP_REPLICATION","KEEPDEFAULTS","KEEPFIXED","KEEPIDENTITY","KEEPNULLS","KERBEROS","KEY","KEY_SOURCE","KEYS","KEYSET","KILL","KILOBYTES_PER_BATCH","LABELONLY","LANGUAGE","LAST","LASTROW","LEVEL","LEVEL_1","LEVEL_2","LEVEL_3","LEVEL_4","LIFETIME","LIMIT","LINENO","LIST","LISTENER","LISTENER_IP","LISTENER_PORT","LOAD","LOADHISTORY","LOB_COMPACTION","LOCAL","LOCAL_SERVICE_NAME","LOCK_ESCALATION","LOCK_TIMEOUT","LOGIN","LOGSPACE","LOOP","LOW","MANUAL","MARK","MARK_IN_USE_FOR_REMOVAL","MASTER","MAX_CPU_PERCENT","MAX_DISPATCH_LATENCY","MAX_DOP","MAX_DURATION","MAX_EVENT_SIZE","MAX_FILES","MAX_IOPS_PER_VOLUME","MAX_MEMORY","MAX_MEMORY_PERCENT","MAX_QUEUE_READERS","MAX_ROLLOVER_FILES","MAX_SIZE","MAXDOP","MAXERRORS","MAXLENGTH","MAXRECURSION","MAXSIZE","MAXTRANSFERSIZE","MAXVALUE","MB","MEDIADESCRIPTION","MEDIANAME","MEDIAPASSWORD","MEDIUM","MEMBER","MEMORY_OPTIMIZED","MEMORY_OPTIMIZED_DATA","MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT","MEMORY_PARTITION_MODE","MERGE","MESSAGE","MESSAGE_FORWARD_SIZE","MESSAGE_FORWARDING","MICROSECOND","MILLISECOND","MIN_CPU_PERCENT","MIN_IOPS_PER_VOLUME","MIN_MEMORY_PERCENT","MINUTE","MINUTES","MINVALUE","MIRROR","MIRROR_ADDRESS","MODIFY","MONEY","MONTH","MOVE","MULTI_USER","MUST_CHANGE","NAME","NANOSECOND","NATIONAL","NATIVE_COMPILATION","NCHAR","NEGOTIATE","NESTED_TRIGGERS","NEW_ACCOUNT","NEW_BROKER","NEW_PASSWORD","NEWNAME","NEXT","NO","NO_BROWSETABLE","NO_CHECKSUM","NO_COMPRESSION","NO_EVENT_LOSS","NO_INFOMSGS","NO_TRUNCATE","NO_WAIT","NOCHECK","NOCOUNT","NOEXEC","NOEXPAND","NOFORMAT","NOINDEX","NOINIT","NOLOCK","NON","NON_TRANSACTED_ACCESS","NONCLUSTERED","NONE","NORECOMPUTE","NORECOVERY","NORESEED","NORESET","NOREWIND","NORMAL","NOSKIP","NOTIFICATION","NOTRUNCATE","NOUNLOAD","NOWAIT","NTEXT","NTLM","NUMANODE","NUMERIC","NUMERIC_ROUNDABORT","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OLD_ACCOUNT","OLD_PASSWORD","ON","ON_FAILURE","ONLINE","ONLY","OPEN","OPEN_EXISTING","OPENTRAN","OPTIMISTIC","OPTIMIZE","OPTION","ORDER","OUT","OUTPUT","OUTPUTBUFFER","OVER","OVERRIDE","OVERWRITE","OWNER","OWNERSHIP","PAD_INDEX","PAGE","PAGE_VERIFY","PAGECOUNT","PAGLOCK","PARAMETERIZATION","PARSEONLY","PARTIAL","PARTITION","PARTITIONS","PARTNER","PASSWORD","PATH","PER_CPU","PER_NODE","PERCENT","PERMISSION_SET","PERSISTED","PHYSICAL_ONLY","PLAN","POISON_MESSAGE_HANDLING","POOL","POPULATION","PORT","PRECEDING","PRECISION","PRIMARY","PRIMARY_ROLE","PRINT","PRIOR","PRIORITY","PRIORITY_LEVEL","PRIVATE","PRIVILEGES","PROC","PROCCACHE","PROCEDURE","PROCEDURE_NAME","PROCESS","PROFILE","PROPERTY","PROPERTY_DESCRIPTION","PROPERTY_INT_ID","PROPERTY_SET_GUID","PROVIDER","PROVIDER_KEY_NAME","PUBLIC","PUT","QUARTER","QUERY","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUEUE_DELAY","QUOTED_IDENTIFIER","RAISERROR","RANGE","RAW","RC2","RC4","RC4_128","READ","READ_COMMITTED_SNAPSHOT","READ_ONLY","READ_ONLY_ROUTING_LIST","READ_ONLY_ROUTING_URL","READ_WRITE","READ_WRITE_FILEGROUPS","READCOMMITTED","READCOMMITTEDLOCK","READONLY","READPAST","READTEXT","READUNCOMMITTED","READWRITE","REAL","REBUILD","RECEIVE","RECOMPILE","RECONFIGURE","RECOVERY","RECURSIVE","RECURSIVE_TRIGGERS","REFERENCES","REGENERATE","RELATED_CONVERSATION","RELATED_CONVERSATION_GROUP","RELATIVE","REMOTE","REMOTE_PROC_TRANSACTIONS","REMOTE_SERVICE_NAME","REMOVE","REORGANIZE","REPAIR_ALLOW_DATA_LOSS","REPAIR_FAST","REPAIR_REBUILD","REPEATABLE","REPEATABLEREAD","REPLICA","REPLICATION","REQUEST_MAX_CPU_TIME_SEC","REQUEST_MAX_MEMORY_GRANT_PERCENT","REQUEST_MEMORY_GRANT_TIMEOUT_SEC","REQUIRED","RESAMPLE","RESEED","RESERVE_DISK_SPACE","RESET","RESOURCE","RESTART","RESTORE","RESTRICT","RESTRICTED_USER","RESULT","RESUME","RETAINDAYS","RETENTION","RETURN","RETURNS","REVERT","REVOKE","REWIND","REWINDONLY","ROBUST","ROLE","ROLLBACK","ROLLUP","ROOT","ROUTE","ROW","ROWCOUNT","ROWGUIDCOL","ROWLOCK","ROWS","ROWS_PER_BATCH","ROWTERMINATOR","ROWVERSION","RSA_1024","RSA_2048","RSA_512","RULE","SAFE","SAFETY","SAMPLE","SAVE","SCHEDULER","SCHEMA","SCHEMA_AND_DATA","SCHEMA_ONLY","SCHEMABINDING","SCHEME","SCROLL","SCROLL_LOCKS","SEARCH","SECOND","SECONDARY","SECONDARY_ONLY","SECONDARY_ROLE","SECONDS","SECRET","SECURITY_LOG","SECURITYAUDIT","SELECT","SELECTIVE","SELF","SEND","SENT","SEQUENCE","SERIALIZABLE","SERVER","SERVICE","SERVICE_BROKER","SERVICE_NAME","SESSION","SESSION_TIMEOUT","SET","SETS","SETUSER","SHOW_STATISTICS","SHOWCONTIG","SHOWPLAN","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SHRINKDATABASE","SHRINKFILE","SHUTDOWN","SID","SIGNATURE","SIMPLE","SINGLE_BLOB","SINGLE_CLOB","SINGLE_NCLOB","SINGLE_USER","SINGLETON","SIZE","SKIP","SMALLDATETIME","SMALLINT","SMALLMONEY","SNAPSHOT","SORT_IN_TEMPDB","SOURCE","SPARSE","SPATIAL","SPATIAL_WINDOW_MAX_CELLS","SPECIFICATION","SPLIT","SQL","SQL_VARIANT","SQLPERF","STANDBY","START","START_DATE","STARTED","STARTUP_STATE","STAT_HEADER","STATE","STATEMENT","STATIC","STATISTICAL_SEMANTICS","STATISTICS","STATISTICS_INCREMENTAL","STATISTICS_NORECOMPUTE","STATS","STATS_STREAM","STATUS","STATUSONLY","STOP","STOP_ON_ERROR","STOPAT","STOPATMARK","STOPBEFOREMARK","STOPLIST","STOPPED","SUBJECT","SUBSCRIPTION","SUPPORTED","SUSPEND","SWITCH","SYMMETRIC","SYNCHRONOUS_COMMIT","SYNONYM","SYSNAME","SYSTEM","TABLE","TABLERESULTS","TABLESAMPLE","TABLOCK","TABLOCKX","TAKE","TAPE","TARGET","TARGET_RECOVERY_TIME","TB","TCP","TEXT","TEXTIMAGE_ON","TEXTSIZE","THEN","THESAURUS","THROW","TIES","TIME","TIMEOUT","TIMER","TIMESTAMP","TINYINT","TO","TOP","TORN_PAGE_DETECTION","TRACEOFF","TRACEON","TRACESTATUS","TRACK_CAUSALITY","TRACK_COLUMNS_UPDATED","TRAN","TRANSACTION","TRANSFER","TRANSFORM_NOISE_WORDS","TRIGGER","TRIPLE_DES","TRIPLE_DES_3KEY","TRUE","TRUNCATE","TRUNCATEONLY","TRUSTWORTHY","TRY","TSQL","TWO_DIGIT_YEAR_CUTOFF","TYPE","TYPE_WARNING","UNBOUNDED","UNCHECKED","UNCOMMITTED","UNDEFINED","UNIQUE","UNIQUEIDENTIFIER","UNKNOWN","UNLIMITED","UNLOAD","UNSAFE","UPDATE","UPDATETEXT","UPDATEUSAGE","UPDLOCK","URL","USE","USED","USER","USEROPTIONS","USING","VALID_XML","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","VERIFYONLY","VERSION","VIEW","VIEW_METADATA","VIEWS","VISIBILITY","WAIT_AT_LOW_PRIORITY","WAITFOR","WEEK","WEIGHT","WELL_FORMED_XML","WHEN","WHERE","WHILE","WINDOWS","WITH","WITHIN","WITHOUT","WITNESS","WORK","WORKLOAD","WRITETEXT","XACT_ABORT","XLOCK","XMAX","XMIN","XML","XMLDATA","XMLNAMESPACES","XMLSCHEMA","XQUERY","XSINIL","YEAR","YMAX","YMIN"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}};var j=n("db05"),z=n.n(j);const J=()=>{Q["languages"].registerCompletionItemProvider("sql",{provideCompletionItems:(e,t,n,C)=>{const E=e.getValueInRange({startLineNumber:t.lineNumber,startColumn:1,endLineNumber:t.lineNumber,endColumn:t.column}),a=E.match(/(\S+)$/),o=[];if(a){const e=a[0].toUpperCase();q.keywords.forEach(t=>{t.startsWith(e)&&o.push({label:t,kind:Q["languages"].CompletionItemKind.Keyword,insertText:t})}),q.operators.forEach(t=>{t.startsWith(e)&&o.push({label:t,kind:Q["languages"].CompletionItemKind.Operator,insertText:t})}),q.builtinFunctions.forEach(t=>{t.startsWith(e)&&o.push({label:t,kind:Q["languages"].CompletionItemKind.Function,insertText:t})})}return{suggestions:Array.from(new Set(o))}}}),Q["languages"].registerDocumentFormattingEditProvider("sql",{provideDocumentFormattingEdits(e){const t=z.a.format(e.getValue());return[{range:e.getFullModelRange(),text:t.replace(/\s-\s/g,"-")}]}});const e={base:"vs",inherit:!1,colors:{"editorHoverWidget.background":"#FAFAFA","editorHoverWidget.border":"#DEDEDE","editor.lineHighlightBackground":"#EFF8FF","editor.selectionBackground":"#D5D5EF","editorLineNumber.foreground":"#999999","editorSuggestWidget.background":"#FFFFFF","editorSuggestWidget.selectedBackground":"#EFF8FF"},rules:[{token:"comment",foreground:"8E908C"},{token:"comments",foreground:"8E908C"},{token:"keyword",foreground:"8959A8"},{token:"predefined",foreground:"11B7BE"},{token:"doubleString",foreground:"AB1010"},{token:"singleString",foreground:"AB1010"},{token:"number",foreground:"AB1010"},{token:"string.sql",foreground:"718C00"}]};Q["editor"].defineTheme("arcticSql",e)},$=()=>{Q["languages"].register({id:"logLanguage"}),Q["languages"].setMonarchTokensProvider("logLanguage",{tokenizer:{root:[[/INFO.*/,"custom-info"],[/ERROR.*/,"custom-error"],[/WARN.*/,"custom-warn"],[/DEBUG.*/,"custom-debug"],[/\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2},\d{3}/,"custom-date"]]}});const e={base:"vs",inherit:!1,colors:{"editor.background":"#f6f7f8"},rules:[{token:"custom-info",foreground:"808080"},{token:"custom-error",foreground:"ff0000",fontStyle:"bold"},{token:"custom-warn",foreground:"ffa500"},{token:"custom-debug",foreground:"ffa500"},{token:"custom-date",foreground:"008800"},{token:"",background:"#f6f7f8"}]};Q["editor"].defineTheme("logTheme",e)};J(),$();n("8608");const ee=["stroke"],te=["xlink:href"];var ne=Object(C["defineComponent"])({__name:"svg-icon",props:{iconClass:null,className:null,isStroke:{type:Boolean},disabled:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,E=Object(C["ref"])(!1),a=Object(C["computed"])(()=>n.isStroke?n.disabled?"#999":E.value?"#1890ff":"#333":""),o=Object(C["computed"])(()=>"#icon-"+n.iconClass),i=Object(C["computed"])(()=>{let e="svg-icon ";return n.disabled&&(e+="disabled "),n.className&&(e+=n.className),e});function r(){n.disabled||t("click")}function A(){E.value=!0}function s(){E.value=!1}return(e,t)=>(Object(C["openBlock"])(),Object(C["createElementBlock"])("svg",{class:Object(C["normalizeClass"])(Object(C["unref"])(i)),"aria-hidden":"true",onClick:r,stroke:Object(C["unref"])(a),onMouseover:A,onMouseout:s},[Object(C["createElementVNode"])("use",{"xlink:href":Object(C["unref"])(o)},null,8,te)],42,ee))}});n("6170");const Ce=X()(ne,[["__scopeId","data-v-31b97cb0"]]);var Ee=Ce,ae=n("e82a"),oe=n("d257");const ie=Object(C["createApp"])(r).use(Object(s["a"])());ie.component("svg-icon",Ee),ie.use(l["a"]),Z(ie),(async()=>{try{const e=Object(c["a"])(),t=Object(oe["f"])("token")||"",n=await ae["a"].getCurUserInfo(t);n&&e.updateUserInfo({userName:n.userName})}finally{const e=Object(c["a"])();A["a"].beforeEach((t,n,C)=>{if("/login"===t.fullPath){if(e.userInfo.userName)return C("/");e.setHistoryPath({path:n.path,query:{...n.query}})}C()}),ie.use(A["a"]),ie.mount("#app")}})()},cf33:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-sqlinit",use:"icon-sqlinit-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n'});o.a.add(i);t["default"]=i},d257:function(e,t,n){"use strict";n.d(t,"a",(function(){return C})),n.d(t,"h",(function(){return E})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"g",(function(){return A})),n.d(t,"f",(function(){return s}));const C=e=>{if(0===e)return"0";if(null===e||void 0===e)return"unknown";const t=1024;return e{if(0===e)return"0";const t=1024;return e{if(null===e||void 0===e||isNaN(e))return"-";const n=1e3,C=60*n,E=60*C,o=24*E;if(0===e)return"0 ms";if(e=n&&e=C&&e=E&&e{if(null===e||void 0===e||isNaN(e))return"";const t=1e3,n=60*t,C=60*n,E=24*C;return 0===e?"0 ms":e<=C?Math.floor(e/t)+" s":e>C&&e<=E?Math.floor(e/n)+" min":e>E&&e<=30*E?Math.floor(e/C)+" h":">30 d"},i=(()=>{const e=function(e){const t=e||"";return t.length<2?"0"+t:t},t={yyyy:e=>e.getFullYear(),MM:t=>e(String(t.getMonth()+1)),dd:t=>e(String(t.getDate())),HH:t=>e(String(t.getHours())),mm:t=>e(String(t.getMinutes())),ss:t=>e(String(t.getSeconds()))},n=new RegExp(Object.keys(t).join("|"),"g");return function(e,C="yyyy-MM-dd HH:mm:ss"){if(!e)return"";let E=+e;return E=new Date(E),C.replace(n,e=>t[e](E))}})();function r(e,t=300){let n;return(...C)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(this,C)},t)}}function A(){return Math.random().toString(36).substr(2)}const s=(e,t)=>{const n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),C=t?new URL(t):window.location,E=C.search.substr(1).match(n);return null!=E?decodeURIComponent(E[2]):null}},d5c0:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-overview",use:"icon-overview-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n\n\n\n\n'});o.a.add(i);t["default"]=i},e583:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-sqlmax",use:"icon-sqlmax-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n'});o.a.add(i);t["default"]=i},e5fc:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),a=n("21a1"),o=n.n(a),i=new E.a({id:"icon-database",use:"icon-database-usage",viewBox:"0 0 16 16",content:'\n\n'});o.a.add(i);t["default"]=i},e82a:function(e,t,n){"use strict";var C=n("b32d");class E{login(e){return C["a"].post("ams/v1/login",e,{returnCode:!0})}logout(){return C["a"].post("ams/v1/logout",{handleError:!1,returnCode:!0})}getCurUserInfo(e){return C["a"].get("ams/v1/login/current",{handleError:!1,params:{token:e}}).then(e=>e)}}t["a"]=new E}}); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/app.9eb5e18b.js b/ams/dashboard/src/main/resources/static/js/app.9eb5e18b.js deleted file mode 100644 index e6d25d1a89..0000000000 --- a/ams/dashboard/src/main/resources/static/js/app.9eb5e18b.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){function t(t){for(var C,E,i=t[0],A=t[1],r=t[2],s=0,c=[];s'});a.a.add(i);t["default"]=i},"0613":function(e,t,n){"use strict";var C=n("be92");const E=()=>({userInfo:{userName:""},isShowTablesMenu:!1,historyPathInfo:{path:"",query:{}}}),o={getShowTablesMenu(e){return e.isShowTablesMenu}};t["a"]=Object(C["b"])("datalake",{state:E,getters:o,actions:{updateTablesMenu(e){this.isShowTablesMenu=e},updateUserInfo(e){this.userInfo=e},setHistoryPath(e){this.historyPathInfo=e}}})},"0b37":function(e,t,n){"use strict";n("86eb")},"0beb":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-arctic",use:"icon-arctic-usage",viewBox:"0 0 16 16",content:''});a.a.add(i);t["default"]=i},"14b4":function(e,t,n){"use strict";var C=n("47e2"),E={overview:"Overview",catalogs:"Catalogs",catalog:"Catalog",tables:"Tables",optimizing:"Optimizing",terminal:"Terminal",settings:"Settings",resource:"Resource",optimizergroup:"Optimizer Groups",systemSetting:"System Settings",containerSetting:"Container Settings",backHome:"Back to Home",version:"Version",userGuide:"User Guide",logout:"Logout",logoutModalTitle:"Log out of the ams?",order:"Order",cluster:"Cluster",database:"Database | Databases",table:"Table | Tables",size:"Size",file:"File",files:"Files",field:"Field",type:"Type",implementation:"Implementation",required:"Required",createTime:"Create Time",primaryKey:"Primary Key",partitionKey:"Partition Key",schema:"Schema",mainMetrics:"Main Metrics",changeTableMetrics:"Change Table Metrics",baseTableMetrics:"Base Table Metrics",properties:"Properties",tableProperties:"Table Properties",sourceField:"Source Field",transform:"Transform",description:"Description",metric:"Metric",key:"Key",value:"Value",metricValue:"Metric Value",averageFileSize:"Average File Size",lastCommitTime:"Last Commit Time",quota:"Quota",createTable:"Create Table",createDatabase:"Create Database",databaseName:"Database Name",tableName:"Table Name",selectPlaceholder:"Please select {selectPh}",inputPlaceholder:"Please input {inputPh}",filterPlaceholder:"Filter {inputPh}",basicInformation:"Basic Information",partition:"Partition",fileCount:"File Count",fsn:"FSN",commitTime:"Commit Time",commitId:"Commit ID",path:"Path",snapshotId:"Snapshot ID",fileType:"File Type",fileContent:"File Content",startTime:"Start Time",finishTime:"Finish Time",duration:"Duration",optimizeType:"Optimize Type",parallelism:"Parallelism",input:"Input",output:"Output",count:"Count",time:"Time",operation:"Operation",operationDetails:"Operation Details",copy:"Copy",optimizer:"Optimizer",optimizers:"Optimizers",container:"Container",status:"Status",optimizingStatus:"Optimizing Status",optimzerGroup:"Optimizer Group",allGroups:"All Groups",resourceOccupation:"Resource Occupation",core:"Core",scaleOut:"Scale-Out",release:"Release",optimizeStatus:"Optimize Status",fileSize:"File Size",records:"Records",occupation:"Occupation",optimizerGroup:"Optimizer Group",optimizerGroups:"Optimizer Groups",resourceAllocation:"Resource Allocation",resourceGroup:"Resource Group",releaseOptModalTitle:"Release this optimizer?",cancelOptimizingProcessOptModalTitle:"Cancel the optimizing process of this table?",welecomeTip:"Welcome to Amoro!",signin:"Sign in",username:"Username",password:"Password",pause:"Pause",run:"Run",maximize:"Maximize",format:"Format",fullscreen:"Full screen",recovery:"Recovery",result:"Result",noResult:"No results",log:"Log",ready:"Ready",running:"Running",cancel:"Cancel",finish:"Finish",fail:"Fail",loading:"Loading",sqlShortcuts:"SQL Shortcuts",use:"Use",upgrade:"Upgrade",upgrading:"Upgrading",upgradeHiveTable:"Upgrade Hive Table",ok:"Ok",partitonField:"Partiton Field",otherProperties:"Other Properties",errorMessage:"Error Message",copySuccess:"Copy Success",duplicateKey:"duplicate key",lastUpgradingFailed:"Last Upgrading Failed",data:"Data",resourceCpu:"Resource Cpu",resourceMemory:"Resource Memory",resourceUsage:"Resource Usage",top10:"Top 10",numIndex:"No.",cpu:"CPU",memory:"Memory",lastTime:"Last {time}",list:"List",name:"Name",tableFormat:"Table Format",metastore:"Metastore",basic:"Basic",storageConfigName:"Storage",authenticationConfig:"Authentication",upload:"Upload",save:"Save",remove:"Remove",edit:"Edit",deleteCatalogModalTitle:"Remove this catalog?",cannotDeleteModalTitle:"Can't remove this catalog.",cannotDeleteModalContent:"This catalog has been used.",success:"Success",optimzeGroup:"Optimize Group",propertiesMemory:"properties.{type}.memory",leavePageModalTitle:"Leave this page?",leavePageModalContent:"Changes you made may not be saved.",leave:"Leave",invalidInput:"Invalid input",addgroup:"Add Group",editgroup:"Edit Group",cannotDeleteGroupModalTitle:"Can't remove this group.",cannotDeleteGroupModalContent:"This group has been used.",deleteGroupModalTitle:"Remove this group",processId:"Process Id",tasks:"Tasks",recordChartTitle:"Table record count",fileChartTitle:"Table file count",totalRecords:"total-records",totalEqualityDeletes:"eq-delete-records",totalPositionDeletes:"pos-delete-records",totalFiles:"total-files",totalDataFiles:"data-files",totalDeleteFiles:"delete-files",branches:"branches",tags:"tags",nothingToShow:"Nothing to show",filterBranchesOrTags:"Filter branches/tags",findATag:"Find a tag"},o={overview:"总览",tables:"表",optimize:"优化",terminal:"终端",settings:"设置"},a={en:E,zh:o};const i={en:{short:{year:"numeric",month:"2-digit",day:"2-digit"},long:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}},zh:{short:{year:"numeric",month:"2-digit",day:"2-digit"},long:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}}},A=Object(C["a"])({locale:"en",fallbackLocale:"zh",globalInjection:!0,legacy:!1,messages:a,datetimeFormats:i});t["a"]=A},"19ce":function(e,t,n){"use strict";n("2d6d")},"1d43":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-optimizing",use:"icon-optimizing-usage",viewBox:"0 0 14 14",content:'\n\n\n'});a.a.add(i);t["default"]=i},"23f1":function(e,t,n){var C={"./amoro.svg":"010b","./arctic.svg":"0beb","./branch.svg":"4b1e","./catalogs.svg":"5fbf","./database.svg":"e5fc","./format.svg":"494b","./hive.svg":"9ac0","./iceberg.svg":"bbf7","./optimizers.svg":"54e7","./optimizing.svg":"1d43","./overview.svg":"d5c0","./paimon.svg":"75b0","./settings.svg":"9c15","./slide.svg":"9246","./sqldebug.svg":"563a","./sqlinit.svg":"cf33","./sqlmax.svg":"e583","./sqlpause.svg":"7607","./tables.svg":"3590","./tag.svg":"ac42","./terminal.svg":"b789"};function E(e){var t=o(e);return n(t)}function o(e){if(!n.o(C,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return C[e]}E.keys=function(){return Object.keys(C)},E.resolve=o,e.exports=E,E.id="23f1"},"2d6d":function(e,t,n){},3590:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-tables",use:"icon-tables-usage",viewBox:"0 0 16 16",content:'\n\n'});a.a.add(i);t["default"]=i},"494b":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-format",use:"icon-format-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n'});a.a.add(i);t["default"]=i},"4b1e":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-branch",use:"icon-branch-usage",viewBox:"0 0 1024 1024",content:''});a.a.add(i);t["default"]=i},"54e7":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-optimizers",use:"icon-optimizers-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n\n\n\n\n'});a.a.add(i);t["default"]=i},"563a":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-sqldebug",use:"icon-sqldebug-usage",viewBox:"0 0 16 16",content:'\n\n\n'});a.a.add(i);t["default"]=i},"5fbf":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-catalogs",use:"icon-catalogs-usage",viewBox:"0 0 16 16",content:'\n\n'});a.a.add(i);t["default"]=i},6170:function(e,t,n){"use strict";n("aea9")},"75b0":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-paimon",use:"icon-paimon-usage",viewBox:"0 0 307.34 218.61",content:'\n \n \n \n \n \n \n \n \n \n'});a.a.add(i);t["default"]=i},7607:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-sqlpause",use:"icon-sqlpause-usage",viewBox:"0 0 16 16",content:'\n\n\n'});a.a.add(i);t["default"]=i},8608:function(e,t,n){"use strict";const C=e=>e.keys().map(e),E=n("23f1");C(E)},"86eb":function(e,t,n){},9246:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-slide",use:"icon-slide-usage",viewBox:"0 0 10 28",content:'\n \x3c!-- Generator: Sketch 56.2 (81672) - https://sketch.com --\x3e\n slide\n Created with Sketch.\n \n \n \n \n \n \n \n \n \n \n \n \n'});a.a.add(i);t["default"]=i},"9ac0":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-hive",use:"icon-hive-usage",viewBox:"0 0 16 16",content:''});a.a.add(i);t["default"]=i},"9c15":function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-settings",use:"icon-settings-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n\n\n\n\n\n'});a.a.add(i);t["default"]=i},a4b1:function(e,t,n){},ac42:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-tag",use:"icon-tag-usage",viewBox:"0 0 1024 1024",content:''});a.a.add(i);t["default"]=i},aea9:function(e,t,n){},afbc:function(e,t,n){"use strict";var C=n("6c02");const E=()=>n.e("chunk-6e8ffc4f").then(n.bind(null,"bb51")),o=()=>n.e("chunk-e27313ec").then(n.bind(null,"8cdb")),a=()=>n.e("chunk-9fc4147c").then(n.bind(null,"adb5")),i=()=>n.e("chunk-02607735").then(n.bind(null,"bfa3")),A=()=>n.e("chunk-76776ef2").then(n.bind(null,"06e7")),r=()=>n.e("chunk-28b9a9cc").then(n.bind(null,"4139")),s=()=>n.e("chunk-225a1827").then(n.bind(null,"1150")),c=()=>n.e("chunk-eb399e28").then(n.bind(null,"61c2")),l=()=>n.e("chunk-0e36844c").then(n.bind(null,"d323")),d=()=>n.e("chunk-6a44215d").then(n.bind(null,"9ed6")),T=()=>n.e("chunk-083d7ab6").then(n.bind(null,"67df")),R=()=>n.e("chunk-a830a942").then(n.bind(null,"2240")),u=[{path:"/",name:"Home",redirect:"introduce",component:E,children:[{path:"catalogs",name:"Catalogs",component:a},{path:"tables",name:"Tables",component:i,children:[{path:"create",name:"Create",component:s}]},{path:"hive-tables",name:"HiveTables",component:A,children:[{path:"upgrade",name:"Upgrade",component:r}]},{path:"optimizing",name:"Optimizing",component:R},{path:"settings",name:"Settings",component:c},{path:"terminal",name:"Terminal",component:l},{path:"introduce",name:"Introduce",component:T}]},{path:"/login",name:"Login",component:d},{path:"/404",name:"Page404",component:o},{path:"/:pathMatch(.*)*",name:"Page404",component:o}],I=Object(C["a"])({history:Object(C["b"])(),routes:u});t["a"]=I},b32d:function(e,t,n){"use strict";n("3b18");var C=n("f64c"),E=(n("d9e2"),n("bc3a")),o=n.n(E),a=n("0613"),i=n("afbc");const A="/",r=[];function s(e){e.method||(e.method="get")}const c={baseURL:A,timeout:45e3,headers:{"Content-Type":"application/json"}},l={method:"get",useToken:!1,handleError:!0,returnCode:!1,supportCancel:!1,routeChangeCancel:!1},d=o.a.create(c),T=e=>{const t=r.findIndex(t=>t.name===e.requestMark);t>-1&&r.splice(t,1)};d.interceptors.response.use(async e=>(T(e.config),200===e.status&&e.data?e:Promise.reject(new Error("网络错误"))),e=>{var t;null!==e&&void 0!==e&&e.response&&T(null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.config);return o.a.isCancel(e)?new Promise(()=>{}):Promise.reject(e)});const R=function(e){const t=Object.assign({},l,e),n=`${t.method}-${(t.url||"").split("?")[0]}`;if(t.requestMark=n,t.supportCancel){const e=r.findIndex(e=>e.name===n);e>-1&&(r[e].cancel(),r.splice(e,1))}const E=o.a.CancelToken.source();return t.cancelToken=E.token,r.push({name:n,cancel:E.cancel,routeChangeCancel:t.routeChangeCancel}),t.useToken&&s(t),d(t).then(e=>{const{code:n,message:E}=e.data;if(t.returnCode)return e.data;if(0===n||200===n)return e.data.result;if(403===n){const e=Object(a["a"])();return e.updateUserInfo({userName:""}),t.handleError&&C["a"].error(E||"need login"),i["a"].push({path:"/login"})}return Promise.reject(new Error(E||"error"))}).catch(e=>(t.handleError&&C["a"].error(e.message),Promise.reject(e)))};["get","delete"].forEach(e=>{R[e]=function(t,n={}){return n=Object.assign({},n,{url:t,method:e}),R(n)}}),["post","put"].forEach(e=>{R[e]=function(t,n={},C={}){return C=Object.assign({},C,{url:t,method:e,data:n}),R(C)}}),t["a"]=R},b789:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-terminal",use:"icon-terminal-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n\n\n\n\n'});a.a.add(i);t["default"]=i},bbf7:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-iceberg",use:"icon-iceberg-usage",viewBox:"0 0 16 16",content:''});a.a.add(i);t["default"]=i},cd49:function(e,t,n){"use strict";n.r(t);var C=n("7a23"),E=n("64aa"),o=n("eb60"),a=Object(C["defineComponent"])({__name:"App",setup(e){const t=Object(C["ref"])(E["a"].locale);return(e,n)=>{const a=Object(C["resolveComponent"])("router-view"),i=Object(C["resolveComponent"])("a-config-provider");return Object(C["openBlock"])(),Object(C["createBlock"])(i,{locale:"en"===t.value?Object(C["unref"])(E["a"]):Object(C["unref"])(o["a"])},{default:Object(C["withCtx"])(()=>[Object(C["createVNode"])(a)]),_:1},8,["locale"])}}});n("0b37");const i=a;var A=i,r=n("afbc"),s=n("be92"),c=n("0613"),l=n("14b4"),d=(n("9d5c"),n("a600")),T=(n("0032"),n("e32c")),R=(n("de6a"),n("9a63")),u=(n("7d24"),n("dfae")),I=(n("5783"),n("59a5")),L=(n("eb14"),n("39ab")),O=(n("06f4"),n("fc25")),S=(n("4955"),n("28da")),N=(n("ee00"),n("bb76")),f=(n("dd48"),n("2fc4")),h=(n("d88f"),n("fe2b")),g=(n("68c7"),n("de1b")),p=(n("f2ef"),n("3af3")),M=(n("cd17"),n("ed3b")),m=(n("5704"),n("b558")),D=(n("c68a"),n("0020")),b=(n("9a33"),n("f933")),P=(n("6ba6"),n("5efb")),U=(n("fbd8"),n("55f1")),w=(n("2ef0"),n("9839")),F=(n("922d"),n("09d9")),V=(n("d13f"),n("ccb9")),k=(n("55ec"),n("a79d")),v=(n("7f6b"),n("8592")),B=(n("d2a3"),n("4df5"));const y=[B["a"],v["a"],k["a"],V["a"],F["a"],w["a"],U["a"],P["a"],b["a"],D["a"],m["a"],M["a"],p["a"],g["a"],h["a"],f["a"],N["a"],S["a"],O["a"],L["a"],I["a"],u["a"],R["a"],T["a"],d["a"]];var Y=function(e){y.forEach(e.use)};function G(e,t,n,E,o,a){const i=Object(C["resolveComponent"])("a-spin");return E.visible?Object(C["withDirectives"])((Object(C["openBlock"])(),Object(C["createElementBlock"])("div",{key:0,ref:"loadingRef",class:Object(C["normalizeClass"])(["u-loading",{fullscreen:n.fullscreen}])},[Object(C["createVNode"])(i,{tip:n.loadingText},null,8,["tip"])],2)),[[C["vShow"],E.visible]]):Object(C["createCommentVNode"])("",!0)}var H={name:"ULoading",props:{loadingText:{type:String,default:"Loading"},fullscreen:{type:Boolean,default:!1}},setup(){const e=Object(C["ref"])(!0),t=()=>{e.value=!1};return Object(C["onBeforeUnmount"])(()=>{e.value=!1}),{visible:e,hide:t}}},_=(n("19ce"),n("6b0d")),X=n.n(_);const W=X()(H,[["render",G],["__scopeId","data-v-15225de2"]]);var x=W,K={install(e){e.component("ULoading",x)}};function Z(e){e.use(Y),e.use(K)}n("a4b1");var Q=n("c2c6");const q={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT_AFTER_WAIT","ABSENT","ABSOLUTE","ACCENT_SENSITIVITY","ACTION","ACTIVATION","ACTIVE","ADD","ADDRESS","ADMIN","AES","AES_128","AES_192","AES_256","AFFINITY","AFTER","AGGREGATE","ALGORITHM","ALL_CONSTRAINTS","ALL_ERRORMSGS","ALL_INDEXES","ALL_LEVELS","ALL_SPARSE_COLUMNS","ALLOW_CONNECTIONS","ALLOW_MULTIPLE_EVENT_LOSS","ALLOW_PAGE_LOCKS","ALLOW_ROW_LOCKS","ALLOW_SINGLE_EVENT_LOSS","ALLOW_SNAPSHOT_ISOLATION","ALLOWED","ALTER","ANONYMOUS","ANSI_DEFAULTS","ANSI_NULL_DEFAULT","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_NULLS","ANSI_PADDING","ANSI_WARNINGS","APPEND","APPLICATION","APPLICATION_LOG","ARITHABORT","ARITHIGNORE","AS","ASC","ASSEMBLY","ASYMMETRIC","ASYNCHRONOUS_COMMIT","AT","ATOMIC","ATTACH","ATTACH_REBUILD_LOG","AUDIT","AUDIT_GUID","AUTHENTICATION","AUTHORIZATION","AUTO","AUTO_CLEANUP","AUTO_CLOSE","AUTO_CREATE_STATISTICS","AUTO_SHRINK","AUTO_UPDATE_STATISTICS","AUTO_UPDATE_STATISTICS_ASYNC","AUTOMATED_BACKUP_PREFERENCE","AUTOMATIC","AVAILABILITY","AVAILABILITY_MODE","BACKUP","BACKUP_PRIORITY","BASE64","BATCHSIZE","BEGIN","BEGIN_DIALOG","BIGINT","BINARY","BINDING","BIT","BLOCKERS","BLOCKSIZE","BOUNDING_BOX","BREAK","BROKER","BROKER_INSTANCE","BROWSE","BUCKET_COUNT","BUFFER","BUFFERCOUNT","BULK","BULK_LOGGED","BY","CACHE","CALL","CALLED","CALLER","CAP_CPU_PERCENT","CASCADE","CASE","CATALOG","CATCH","CELLS_PER_OBJECT","CERTIFICATE","CHANGE_RETENTION","CHANGE_TRACKING","CHANGES","CHAR","CHARACTER","CHECK","CHECK_CONSTRAINTS","CHECK_EXPIRATION","CHECK_POLICY","CHECKALLOC","CHECKCATALOG","CHECKCONSTRAINTS","CHECKDB","CHECKFILEGROUP","CHECKIDENT","CHECKPOINT","CHECKTABLE","CLASSIFIER_FUNCTION","CLEANTABLE","CLEANUP","CLEAR","CLOSE","CLUSTER","CLUSTERED","CODEPAGE","COLLATE","COLLECTION","COLUMN","COLUMN_SET","COLUMNS","COLUMNSTORE","COLUMNSTORE_ARCHIVE","COMMIT","COMMITTED","COMPATIBILITY_LEVEL","COMPRESSION","COMPUTE","CONCAT","CONCAT_NULL_YIELDS_NULL","CONFIGURATION","CONNECT","CONSTRAINT","CONTAINMENT","CONTENT","CONTEXT","CONTINUE","CONTINUE_AFTER_ERROR","CONTRACT","CONTRACT_NAME","CONTROL","CONVERSATION","COOKIE","COPY_ONLY","COUNTER","CPU","CREATE","CREATE_NEW","CREATION_DISPOSITION","CREDENTIAL","CRYPTOGRAPHIC","CUBE","CURRENT","CURRENT_DATE","CURSOR","CURSOR_CLOSE_ON_COMMIT","CURSOR_DEFAULT","CYCLE","DATA","DATA_COMPRESSION","DATA_PURITY","DATABASE","DATABASE_DEFAULT","DATABASE_MIRRORING","DATABASE_SNAPSHOT","DATAFILETYPE","DATE","DATE_CORRELATION_OPTIMIZATION","DATEFIRST","DATEFORMAT","DATETIME","DATETIME2","DATETIMEOFFSET","DAY","DAYOFYEAR","DAYS","DB_CHAINING","DBCC","DBREINDEX","DDL_DATABASE_LEVEL_EVENTS","DEADLOCK_PRIORITY","DEALLOCATE","DEC","DECIMAL","DECLARE","DECRYPTION","DEFAULT","DEFAULT_DATABASE","DEFAULT_FULLTEXT_LANGUAGE","DEFAULT_LANGUAGE","DEFAULT_SCHEMA","DEFINITION","DELAY","DELAYED_DURABILITY","DELETE","DELETED","DENSITY_VECTOR","DENY","DEPENDENTS","DES","DESC","DESCRIPTION","DESX","DHCP","DIAGNOSTICS","DIALOG","DIFFERENTIAL","DIRECTORY_NAME","DISABLE","DISABLE_BROKER","DISABLED","DISK","DISTINCT","DISTRIBUTED","DOCUMENT","DOUBLE","DROP","DROP_EXISTING","DROPCLEANBUFFERS","DUMP","DURABILITY","DYNAMIC","EDITION","ELEMENTS","ELSE","EMERGENCY","EMPTY","EMPTYFILE","ENABLE","ENABLE_BROKER","ENABLED","ENCRYPTION","END","ENDPOINT","ENDPOINT_URL","ERRLVL","ERROR","ERROR_BROKER_CONVERSATIONS","ERRORFILE","ESCAPE","ESTIMATEONLY","EVENT","EVENT_RETENTION_MODE","EXEC","EXECUTABLE","EXECUTE","EXIT","EXPAND","EXPIREDATE","EXPIRY_DATE","EXPLICIT","EXTENDED_LOGICAL_CHECKS","EXTENSION","EXTERNAL","EXTERNAL_ACCESS","FAIL_OPERATION","FAILOVER","FAILOVER_MODE","FAILURE_CONDITION_LEVEL","FALSE","FAN_IN","FAST","FAST_FORWARD","FETCH","FIELDTERMINATOR","FILE","FILEGROUP","FILEGROWTH","FILELISTONLY","FILENAME","FILEPATH","FILESTREAM","FILESTREAM_ON","FILETABLE_COLLATE_FILENAME","FILETABLE_DIRECTORY","FILETABLE_FULLPATH_UNIQUE_CONSTRAINT_NAME","FILETABLE_NAMESPACE","FILETABLE_PRIMARY_KEY_CONSTRAINT_NAME","FILETABLE_STREAMID_UNIQUE_CONSTRAINT_NAME","FILLFACTOR","FILTERING","FIRE_TRIGGERS","FIRST","FIRSTROW","FLOAT","FMTONLY","FOLLOWING","FOR","FORCE","FORCE_FAILOVER_ALLOW_DATA_LOSS","FORCE_SERVICE_ALLOW_DATA_LOSS","FORCED","FORCEPLAN","FORCESCAN","FORCESEEK","FOREIGN","FORMATFILE","FORMSOF","FORWARD_ONLY","FREE","FREEPROCCACHE","FREESESSIONCACHE","FREESYSTEMCACHE","FROM","FULL","FULLSCAN","FULLTEXT","FUNCTION","GB","GEOGRAPHY_AUTO_GRID","GEOGRAPHY_GRID","GEOMETRY_AUTO_GRID","GEOMETRY_GRID","GET","GLOBAL","GO","GOTO","GOVERNOR","GRANT","GRIDS","GROUP","GROUP_MAX_REQUESTS","HADR","HASH","HASHED","HAVING","HEADERONLY","HEALTH_CHECK_TIMEOUT","HELP","HIERARCHYID","HIGH","HINT","HISTOGRAM","HOLDLOCK","HONOR_BROKER_PRIORITY","HOUR","HOURS","IDENTITY","IDENTITY_INSERT","IDENTITY_VALUE","IDENTITYCOL","IF","IGNORE_CONSTRAINTS","IGNORE_DUP_KEY","IGNORE_NONCLUSTERED_COLUMNSTORE_INDEX","IGNORE_TRIGGERS","IMAGE","IMMEDIATE","IMPERSONATE","IMPLICIT_TRANSACTIONS","IMPORTANCE","INCLUDE","INCREMENT","INCREMENTAL","INDEX","INDEXDEFRAG","INFINITE","INFLECTIONAL","INIT","INITIATOR","INPUT","INPUTBUFFER","INSENSITIVE","INSERT","INSERTED","INSTEAD","INT","INTEGER","INTO","IO","IP","ISABOUT","ISOLATION","JOB","KB","KEEP","KEEP_CDC","KEEP_NULLS","KEEP_REPLICATION","KEEPDEFAULTS","KEEPFIXED","KEEPIDENTITY","KEEPNULLS","KERBEROS","KEY","KEY_SOURCE","KEYS","KEYSET","KILL","KILOBYTES_PER_BATCH","LABELONLY","LANGUAGE","LAST","LASTROW","LEVEL","LEVEL_1","LEVEL_2","LEVEL_3","LEVEL_4","LIFETIME","LIMIT","LINENO","LIST","LISTENER","LISTENER_IP","LISTENER_PORT","LOAD","LOADHISTORY","LOB_COMPACTION","LOCAL","LOCAL_SERVICE_NAME","LOCK_ESCALATION","LOCK_TIMEOUT","LOGIN","LOGSPACE","LOOP","LOW","MANUAL","MARK","MARK_IN_USE_FOR_REMOVAL","MASTER","MAX_CPU_PERCENT","MAX_DISPATCH_LATENCY","MAX_DOP","MAX_DURATION","MAX_EVENT_SIZE","MAX_FILES","MAX_IOPS_PER_VOLUME","MAX_MEMORY","MAX_MEMORY_PERCENT","MAX_QUEUE_READERS","MAX_ROLLOVER_FILES","MAX_SIZE","MAXDOP","MAXERRORS","MAXLENGTH","MAXRECURSION","MAXSIZE","MAXTRANSFERSIZE","MAXVALUE","MB","MEDIADESCRIPTION","MEDIANAME","MEDIAPASSWORD","MEDIUM","MEMBER","MEMORY_OPTIMIZED","MEMORY_OPTIMIZED_DATA","MEMORY_OPTIMIZED_ELEVATE_TO_SNAPSHOT","MEMORY_PARTITION_MODE","MERGE","MESSAGE","MESSAGE_FORWARD_SIZE","MESSAGE_FORWARDING","MICROSECOND","MILLISECOND","MIN_CPU_PERCENT","MIN_IOPS_PER_VOLUME","MIN_MEMORY_PERCENT","MINUTE","MINUTES","MINVALUE","MIRROR","MIRROR_ADDRESS","MODIFY","MONEY","MONTH","MOVE","MULTI_USER","MUST_CHANGE","NAME","NANOSECOND","NATIONAL","NATIVE_COMPILATION","NCHAR","NEGOTIATE","NESTED_TRIGGERS","NEW_ACCOUNT","NEW_BROKER","NEW_PASSWORD","NEWNAME","NEXT","NO","NO_BROWSETABLE","NO_CHECKSUM","NO_COMPRESSION","NO_EVENT_LOSS","NO_INFOMSGS","NO_TRUNCATE","NO_WAIT","NOCHECK","NOCOUNT","NOEXEC","NOEXPAND","NOFORMAT","NOINDEX","NOINIT","NOLOCK","NON","NON_TRANSACTED_ACCESS","NONCLUSTERED","NONE","NORECOMPUTE","NORECOVERY","NORESEED","NORESET","NOREWIND","NORMAL","NOSKIP","NOTIFICATION","NOTRUNCATE","NOUNLOAD","NOWAIT","NTEXT","NTLM","NUMANODE","NUMERIC","NUMERIC_ROUNDABORT","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OLD_ACCOUNT","OLD_PASSWORD","ON","ON_FAILURE","ONLINE","ONLY","OPEN","OPEN_EXISTING","OPENTRAN","OPTIMISTIC","OPTIMIZE","OPTION","ORDER","OUT","OUTPUT","OUTPUTBUFFER","OVER","OVERRIDE","OVERWRITE","OWNER","OWNERSHIP","PAD_INDEX","PAGE","PAGE_VERIFY","PAGECOUNT","PAGLOCK","PARAMETERIZATION","PARSEONLY","PARTIAL","PARTITION","PARTITIONS","PARTNER","PASSWORD","PATH","PER_CPU","PER_NODE","PERCENT","PERMISSION_SET","PERSISTED","PHYSICAL_ONLY","PLAN","POISON_MESSAGE_HANDLING","POOL","POPULATION","PORT","PRECEDING","PRECISION","PRIMARY","PRIMARY_ROLE","PRINT","PRIOR","PRIORITY","PRIORITY_LEVEL","PRIVATE","PRIVILEGES","PROC","PROCCACHE","PROCEDURE","PROCEDURE_NAME","PROCESS","PROFILE","PROPERTY","PROPERTY_DESCRIPTION","PROPERTY_INT_ID","PROPERTY_SET_GUID","PROVIDER","PROVIDER_KEY_NAME","PUBLIC","PUT","QUARTER","QUERY","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUEUE_DELAY","QUOTED_IDENTIFIER","RAISERROR","RANGE","RAW","RC2","RC4","RC4_128","READ","READ_COMMITTED_SNAPSHOT","READ_ONLY","READ_ONLY_ROUTING_LIST","READ_ONLY_ROUTING_URL","READ_WRITE","READ_WRITE_FILEGROUPS","READCOMMITTED","READCOMMITTEDLOCK","READONLY","READPAST","READTEXT","READUNCOMMITTED","READWRITE","REAL","REBUILD","RECEIVE","RECOMPILE","RECONFIGURE","RECOVERY","RECURSIVE","RECURSIVE_TRIGGERS","REFERENCES","REGENERATE","RELATED_CONVERSATION","RELATED_CONVERSATION_GROUP","RELATIVE","REMOTE","REMOTE_PROC_TRANSACTIONS","REMOTE_SERVICE_NAME","REMOVE","REORGANIZE","REPAIR_ALLOW_DATA_LOSS","REPAIR_FAST","REPAIR_REBUILD","REPEATABLE","REPEATABLEREAD","REPLICA","REPLICATION","REQUEST_MAX_CPU_TIME_SEC","REQUEST_MAX_MEMORY_GRANT_PERCENT","REQUEST_MEMORY_GRANT_TIMEOUT_SEC","REQUIRED","RESAMPLE","RESEED","RESERVE_DISK_SPACE","RESET","RESOURCE","RESTART","RESTORE","RESTRICT","RESTRICTED_USER","RESULT","RESUME","RETAINDAYS","RETENTION","RETURN","RETURNS","REVERT","REVOKE","REWIND","REWINDONLY","ROBUST","ROLE","ROLLBACK","ROLLUP","ROOT","ROUTE","ROW","ROWCOUNT","ROWGUIDCOL","ROWLOCK","ROWS","ROWS_PER_BATCH","ROWTERMINATOR","ROWVERSION","RSA_1024","RSA_2048","RSA_512","RULE","SAFE","SAFETY","SAMPLE","SAVE","SCHEDULER","SCHEMA","SCHEMA_AND_DATA","SCHEMA_ONLY","SCHEMABINDING","SCHEME","SCROLL","SCROLL_LOCKS","SEARCH","SECOND","SECONDARY","SECONDARY_ONLY","SECONDARY_ROLE","SECONDS","SECRET","SECURITY_LOG","SECURITYAUDIT","SELECT","SELECTIVE","SELF","SEND","SENT","SEQUENCE","SERIALIZABLE","SERVER","SERVICE","SERVICE_BROKER","SERVICE_NAME","SESSION","SESSION_TIMEOUT","SET","SETS","SETUSER","SHOW_STATISTICS","SHOWCONTIG","SHOWPLAN","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SHRINKDATABASE","SHRINKFILE","SHUTDOWN","SID","SIGNATURE","SIMPLE","SINGLE_BLOB","SINGLE_CLOB","SINGLE_NCLOB","SINGLE_USER","SINGLETON","SIZE","SKIP","SMALLDATETIME","SMALLINT","SMALLMONEY","SNAPSHOT","SORT_IN_TEMPDB","SOURCE","SPARSE","SPATIAL","SPATIAL_WINDOW_MAX_CELLS","SPECIFICATION","SPLIT","SQL","SQL_VARIANT","SQLPERF","STANDBY","START","START_DATE","STARTED","STARTUP_STATE","STAT_HEADER","STATE","STATEMENT","STATIC","STATISTICAL_SEMANTICS","STATISTICS","STATISTICS_INCREMENTAL","STATISTICS_NORECOMPUTE","STATS","STATS_STREAM","STATUS","STATUSONLY","STOP","STOP_ON_ERROR","STOPAT","STOPATMARK","STOPBEFOREMARK","STOPLIST","STOPPED","SUBJECT","SUBSCRIPTION","SUPPORTED","SUSPEND","SWITCH","SYMMETRIC","SYNCHRONOUS_COMMIT","SYNONYM","SYSNAME","SYSTEM","TABLE","TABLERESULTS","TABLESAMPLE","TABLOCK","TABLOCKX","TAKE","TAPE","TARGET","TARGET_RECOVERY_TIME","TB","TCP","TEXT","TEXTIMAGE_ON","TEXTSIZE","THEN","THESAURUS","THROW","TIES","TIME","TIMEOUT","TIMER","TIMESTAMP","TINYINT","TO","TOP","TORN_PAGE_DETECTION","TRACEOFF","TRACEON","TRACESTATUS","TRACK_CAUSALITY","TRACK_COLUMNS_UPDATED","TRAN","TRANSACTION","TRANSFER","TRANSFORM_NOISE_WORDS","TRIGGER","TRIPLE_DES","TRIPLE_DES_3KEY","TRUE","TRUNCATE","TRUNCATEONLY","TRUSTWORTHY","TRY","TSQL","TWO_DIGIT_YEAR_CUTOFF","TYPE","TYPE_WARNING","UNBOUNDED","UNCHECKED","UNCOMMITTED","UNDEFINED","UNIQUE","UNIQUEIDENTIFIER","UNKNOWN","UNLIMITED","UNLOAD","UNSAFE","UPDATE","UPDATETEXT","UPDATEUSAGE","UPDLOCK","URL","USE","USED","USER","USEROPTIONS","USING","VALID_XML","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","VERIFYONLY","VERSION","VIEW","VIEW_METADATA","VIEWS","VISIBILITY","WAIT_AT_LOW_PRIORITY","WAITFOR","WEEK","WEIGHT","WELL_FORMED_XML","WHEN","WHERE","WHILE","WINDOWS","WITH","WITHIN","WITHOUT","WITNESS","WORK","WORKLOAD","WRITETEXT","XACT_ABORT","XLOCK","XMAX","XMIN","XML","XMLDATA","XMLNAMESPACES","XMLSCHEMA","XQUERY","XSINIL","YEAR","YMAX","YMIN"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}};var j=n("db05"),z=n.n(j);const J=()=>{Q["languages"].registerCompletionItemProvider("sql",{provideCompletionItems:(e,t,n,C)=>{const E=e.getValueInRange({startLineNumber:t.lineNumber,startColumn:1,endLineNumber:t.lineNumber,endColumn:t.column}),o=E.match(/(\S+)$/),a=[];if(o){const e=o[0].toUpperCase();q.keywords.forEach(t=>{t.startsWith(e)&&a.push({label:t,kind:Q["languages"].CompletionItemKind.Keyword,insertText:t})}),q.operators.forEach(t=>{t.startsWith(e)&&a.push({label:t,kind:Q["languages"].CompletionItemKind.Operator,insertText:t})}),q.builtinFunctions.forEach(t=>{t.startsWith(e)&&a.push({label:t,kind:Q["languages"].CompletionItemKind.Function,insertText:t})})}return{suggestions:Array.from(new Set(a))}}}),Q["languages"].registerDocumentFormattingEditProvider("sql",{provideDocumentFormattingEdits(e){const t=z.a.format(e.getValue());return[{range:e.getFullModelRange(),text:t.replace(/\s-\s/g,"-")}]}});const e={base:"vs",inherit:!1,colors:{"editorHoverWidget.background":"#FAFAFA","editorHoverWidget.border":"#DEDEDE","editor.lineHighlightBackground":"#EFF8FF","editor.selectionBackground":"#D5D5EF","editorLineNumber.foreground":"#999999","editorSuggestWidget.background":"#FFFFFF","editorSuggestWidget.selectedBackground":"#EFF8FF"},rules:[{token:"comment",foreground:"8E908C"},{token:"comments",foreground:"8E908C"},{token:"keyword",foreground:"8959A8"},{token:"predefined",foreground:"11B7BE"},{token:"doubleString",foreground:"AB1010"},{token:"singleString",foreground:"AB1010"},{token:"number",foreground:"AB1010"},{token:"string.sql",foreground:"718C00"}]};Q["editor"].defineTheme("arcticSql",e)},$=()=>{Q["languages"].register({id:"logLanguage"}),Q["languages"].setMonarchTokensProvider("logLanguage",{tokenizer:{root:[[/INFO.*/,"custom-info"],[/ERROR.*/,"custom-error"],[/WARN.*/,"custom-warn"],[/DEBUG.*/,"custom-debug"],[/\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2},\d{3}/,"custom-date"]]}});const e={base:"vs",inherit:!1,colors:{"editor.background":"#f6f7f8"},rules:[{token:"custom-info",foreground:"808080"},{token:"custom-error",foreground:"ff0000",fontStyle:"bold"},{token:"custom-warn",foreground:"ffa500"},{token:"custom-debug",foreground:"ffa500"},{token:"custom-date",foreground:"008800"},{token:"",background:"#f6f7f8"}]};Q["editor"].defineTheme("logTheme",e)};J(),$();n("8608");const ee=["stroke"],te=["xlink:href"];var ne=Object(C["defineComponent"])({__name:"svg-icon",props:{iconClass:null,className:null,isStroke:{type:Boolean},disabled:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,E=Object(C["ref"])(!1),o=Object(C["computed"])(()=>n.isStroke?n.disabled?"#999":E.value?"#1890ff":"#333":""),a=Object(C["computed"])(()=>"#icon-"+n.iconClass),i=Object(C["computed"])(()=>{let e="svg-icon ";return n.disabled&&(e+="disabled "),n.className&&(e+=n.className),e});function A(){n.disabled||t("click")}function r(){E.value=!0}function s(){E.value=!1}return(e,t)=>(Object(C["openBlock"])(),Object(C["createElementBlock"])("svg",{class:Object(C["normalizeClass"])(Object(C["unref"])(i)),"aria-hidden":"true",onClick:A,stroke:Object(C["unref"])(o),onMouseover:r,onMouseout:s},[Object(C["createElementVNode"])("use",{"xlink:href":Object(C["unref"])(a)},null,8,te)],42,ee))}});n("6170");const Ce=X()(ne,[["__scopeId","data-v-31b97cb0"]]);var Ee=Ce,oe=n("e82a"),ae=n("d257");const ie=Object(C["createApp"])(A).use(Object(s["a"])());ie.component("svg-icon",Ee),ie.use(l["a"]),Z(ie),(async()=>{try{const e=Object(c["a"])(),t=Object(ae["f"])("token")||"",n=await oe["a"].getCurUserInfo(t);n&&e.updateUserInfo({userName:n.userName})}finally{const e=Object(c["a"])();r["a"].beforeEach((t,n,C)=>{if("/login"===t.fullPath){if(e.userInfo.userName)return C("/");e.setHistoryPath({path:n.path,query:{...n.query}})}C()}),ie.use(r["a"]),ie.mount("#app")}})()},cf33:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-sqlinit",use:"icon-sqlinit-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n'});a.a.add(i);t["default"]=i},d257:function(e,t,n){"use strict";n.d(t,"a",(function(){return C})),n.d(t,"h",(function(){return E})),n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return A})),n.d(t,"g",(function(){return r})),n.d(t,"f",(function(){return s}));const C=e=>{if(0===e)return"0";if(null===e||void 0===e)return"unknown";const t=1024;return e{if(0===e)return"0";const t=1024;return e{if(null===e||void 0===e||isNaN(e))return"-";const n=1e3,C=60*n,E=60*C,a=24*E;if(0===e)return"0 ms";if(e=n&&e=C&&e=E&&e{if(null===e||void 0===e||isNaN(e))return"";const t=1e3,n=60*t,C=60*n,E=24*C;return 0===e?"0 ms":e<=C?Math.floor(e/t)+" s":e>C&&e<=E?Math.floor(e/n)+" min":e>E&&e<=30*E?Math.floor(e/C)+" h":">30 d"},i=(()=>{const e=function(e){const t=e||"";return t.length<2?"0"+t:t},t={yyyy:e=>e.getFullYear(),MM:t=>e(String(t.getMonth()+1)),dd:t=>e(String(t.getDate())),HH:t=>e(String(t.getHours())),mm:t=>e(String(t.getMinutes())),ss:t=>e(String(t.getSeconds()))},n=new RegExp(Object.keys(t).join("|"),"g");return function(e,C="yyyy-MM-dd HH:mm:ss"){if(!e)return"";let E=+e;return E=new Date(E),C.replace(n,e=>t[e](E))}})();function A(e,t=300){let n;return(...C)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(this,C)},t)}}function r(){return Math.random().toString(36).substr(2)}const s=(e,t)=>{const n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),C=t?new URL(t):window.location,E=C.search.substr(1).match(n);return null!=E?decodeURIComponent(E[2]):null}},d5c0:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-overview",use:"icon-overview-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n\n\n\n\n'});a.a.add(i);t["default"]=i},e583:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-sqlmax",use:"icon-sqlmax-usage",viewBox:"0 0 16 16",content:'\n\n\n\n\n'});a.a.add(i);t["default"]=i},e5fc:function(e,t,n){"use strict";n.r(t);var C=n("e017"),E=n.n(C),o=n("21a1"),a=n.n(o),i=new E.a({id:"icon-database",use:"icon-database-usage",viewBox:"0 0 16 16",content:'\n\n'});a.a.add(i);t["default"]=i},e82a:function(e,t,n){"use strict";var C=n("b32d");class E{login(e){return C["a"].post("ams/v1/login",e,{returnCode:!0})}logout(){return C["a"].post("ams/v1/logout",{handleError:!1,returnCode:!0})}getCurUserInfo(e){return C["a"].get("ams/v1/login/current",{handleError:!1,params:{token:e}}).then(e=>e)}}t["a"]=new E}}); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/chunk-0e36844c.7b77e23b.js b/ams/dashboard/src/main/resources/static/js/chunk-0e36844c.7b77e23b.js new file mode 100644 index 0000000000..b32493dc2a --- /dev/null +++ b/ams/dashboard/src/main/resources/static/js/chunk-0e36844c.7b77e23b.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0e36844c"],{"0014":function(e,t,a){},"06d7":function(e,t,a){},"43c2":function(e,t,a){"use strict";a("06d7")},5738:function(e,t,a){"use strict";a.d(t,"c",(function(){return c})),a.d(t,"d",(function(){return l})),a.d(t,"m",(function(){return o})),a.d(t,"l",(function(){return s})),a.d(t,"f",(function(){return r})),a.d(t,"q",(function(){return i})),a.d(t,"j",(function(){return u})),a.d(t,"i",(function(){return d})),a.d(t,"k",(function(){return b})),a.d(t,"e",(function(){return p})),a.d(t,"g",(function(){return m})),a.d(t,"h",(function(){return g})),a.d(t,"o",(function(){return O})),a.d(t,"r",(function(){return j})),a.d(t,"p",(function(){return v})),a.d(t,"a",(function(){return f})),a.d(t,"b",(function(){return h})),a.d(t,"n",(function(){return k}));var n=a("b32d");function c(){return n["a"].get("ams/v1/catalogs")}function l(e){const{catalog:t,keywords:a}=e;return n["a"].get(`ams/v1/catalogs/${t}/databases`,{params:{keywords:a}})}function o(e){const{catalog:t,db:a,keywords:c}=e;return n["a"].get(`ams/v1/catalogs/${t}/databases/${a}/tables`,{params:{keywords:c}})}function s({catalog:e="",db:t="",table:a="",token:c=""}){return n["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/details`,{params:{token:c}})}function r({catalog:e="",db:t="",table:a=""}){return n["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/hive/details`)}function i({catalog:e="",db:t="",table:a=""}){return n["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/upgrade/status`)}function u(e){const{catalog:t,db:a,table:c,page:l,pageSize:o,token:s}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/partitions`,{params:{page:l,pageSize:o,token:s}})}function d(e){const{catalog:t,db:a,table:c,partition:l,specId:o,page:s,pageSize:r,token:i}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/partitions/${l}/files`,{params:{specId:o,page:s,pageSize:r,token:i}})}function b(e){const{catalog:t,db:a,table:c,page:l,pageSize:o,token:s,ref:r,operation:i}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/snapshots`,{params:{page:l,pageSize:o,token:s,ref:r,operation:i}})}function p(e){const{catalog:t,db:a,table:c,snapshotId:l,page:o,pageSize:s,token:r}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/snapshots/${l}/detail`,{params:{page:o,pageSize:s,token:r}})}function m(e){const{catalog:t,db:a,table:c,page:l,pageSize:o,token:s}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/operations`,{params:{page:l,pageSize:o,token:s}})}function g(e){const{catalog:t,db:a,table:c,page:l,pageSize:o,token:s}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/optimizing-processes`,{params:{page:l,pageSize:o,token:s}})}function O(e){const{catalog:t,db:a,table:c,processId:l,page:o,pageSize:s,token:r}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/optimizing-processes/${l}/tasks`,{params:{page:o,pageSize:s,token:r}})}function j({catalog:e="",db:t="",table:a="",properties:c={},pkList:l=[]}){return n["a"].post(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/upgrade`,{properties:c,pkList:l})}function v(){return n["a"].get("ams/v1/upgrade/properties")}function f({catalog:e="",db:t="",table:a="",processId:c=""}){return n["a"].post(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/optimizing-processes/${c}/cancel`)}function h(e){const{catalog:t,db:a,table:c}=e;return n["a"].get(`/ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/branches`)}function k(e){const{catalog:t,db:a,table:c}=e;return n["a"].get(`/ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/tags`)}},8552:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n=a("7a23"),c=a("47e2");function l(){const{t:e}=Object(c["b"])(),t=Object(n["computed"])(()=>e("catalog")).value,a=Object(n["computed"])(()=>e("databaseName")).value,l=Object(n["computed"])(()=>e("tableName")).value,o=Object(n["computed"])(()=>e("optimzerGroup")).value,s=Object(n["computed"])(()=>e("resourceGroup")).value,r=Object(n["computed"])(()=>e("parallelism")).value,i=Object(n["computed"])(()=>e("username")).value,u=Object(n["computed"])(()=>e("password")).value,d=Object(n["computed"])(()=>e("database",2)).value,b=Object(n["computed"])(()=>e("table",2)).value,p=Object(n["computed"])(()=>e("name")).value,m=Object(n["computed"])(()=>e("container")).value;return{selectPh:e("selectPlaceholder"),inputPh:e("inputPlaceholder"),selectClPh:e("selectPlaceholder",{selectPh:t}),selectDBPh:e("selectPlaceholder",{selectPh:a}),inputDBPh:e("inputPlaceholder",{inputPh:a}),inputClPh:e("inputPlaceholder",{inputPh:t}),inputTNPh:e("inputPlaceholder",{inputPh:l}),selectOptGroupPh:e("inputPlaceholder",{inputPh:o}),resourceGroupPh:e("inputPlaceholder",{inputPh:s}),parallelismPh:e("inputPlaceholder",{inputPh:r}),usernamePh:e("inputPlaceholder",{inputPh:i}),passwordPh:e("inputPlaceholder",{inputPh:u}),filterDBPh:e("filterPlaceholder",{inputPh:d}),filterTablePh:e("filterPlaceholder",{inputPh:b}),groupNamePh:e("inputPlaceholder",{inputPh:p}),groupContainer:e("selectPlaceholder",{selectPh:m})}}},9065:function(e,t,a){"use strict";a("0014")},b0b0:function(e,t,a){"use strict";a("d9da")},d323:function(e,t,a){"use strict";a.r(t);var n=a("7a23");const c={class:"console-wrap"},l={class:"sql-block"},o={class:"top-ops g-flex-jsb"},s={class:"title-left g-flex-ac"},r={class:"select-catalog g-mr-12"},i={class:"label"},u={class:"title-right"},d={class:"sql-content"},b={class:"sql-raw"},p={class:"g-ml-12"},m={class:"sql-shortcuts"},g={class:"shortcuts"},O={class:"tab-operation"},j={class:"tab"},v=["onClick"],f={class:"debug-result"};function h(e,t,a,h,k,y){const C=Object(n["resolveComponent"])("a-select"),B=Object(n["resolveComponent"])("svg-icon"),N=Object(n["resolveComponent"])("a-tooltip"),S=Object(n["resolveComponent"])("sql-editor"),E=Object(n["resolveComponent"])("loading-outlined"),$=Object(n["resolveComponent"])("close-circle-outlined"),w=Object(n["resolveComponent"])("check-circle-outlined"),V=Object(n["resolveComponent"])("a-button"),P=Object(n["resolveComponent"])("sql-log"),q=Object(n["resolveComponent"])("sql-result"),z=Object(n["resolveComponent"])("u-loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",c,[Object(n["createElementVNode"])("div",{class:Object(n["normalizeClass"])(["console-content",{fullscreen:e.fullscreen}])},[Object(n["createElementVNode"])("div",{style:Object(n["normalizeStyle"])({height:e.sqlResultHeight+"px"}),class:"sql-wrap"},[Object(n["createElementVNode"])("div",l,[Object(n["createElementVNode"])("div",o,[Object(n["createElementVNode"])("div",s,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("span",i,Object(n["toDisplayString"])(e.$t("use")),1),Object(n["createVNode"])(C,{value:e.curCatalog,"onUpdate:value":t[0]||(t[0]=t=>e.curCatalog=t),style:{width:"200px"},options:e.catalogOptions,onChange:e.changeUseCatalog},null,8,["value","options","onChange"])]),"Running"===e.runStatus?(Object(n["openBlock"])(),Object(n["createBlock"])(N,{key:0,title:e.$t("pause"),placement:"bottom"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(B,{className:"icon-svg","icon-class":"sqlpause",onClick:t[1]||(t[1]=t=>e.handleIconClick("pause")),class:"g-mr-12",disabled:e.readOnly},null,8,["disabled"])]),_:1},8,["title"])):(Object(n["openBlock"])(),Object(n["createBlock"])(N,{key:1,title:e.$t("run"),placement:"bottom"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(B,{className:"icon-svg","icon-class":"sqldebug",onClick:t[2]||(t[2]=t=>e.handleIconClick("debug")),class:"g-mr-12",disabled:e.readOnly},null,8,["disabled"])]),_:1},8,["title"])),Object(n["createVNode"])(N,{title:e.$t("format"),placement:"bottom"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(B,{className:"icon-svg",isStroke:!0,"icon-class":"format",onClick:t[3]||(t[3]=t=>e.handleIconClick("format")),disabled:e.readOnly},null,8,["disabled"])]),_:1},8,["title"])]),Object(n["createElementVNode"])("div",u,[Object(n["createVNode"])(N,{title:e.fullscreen?e.$t("recovery"):e.$t("fullscreen"),placement:"bottom",getPopupContainer:e.getPopupContainer},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(B,{className:"icon-svg",isStroke:!0,"icon-class":e.fullscreen?"sqlinit":"sqlmax",onClick:e.handleFull,disabled:!1,class:"g-ml-12"},null,8,["icon-class","onClick"])]),_:1},8,["title","getPopupContainer"])])]),Object(n["createElementVNode"])("div",d,[Object(n["createElementVNode"])("div",b,[Object(n["createVNode"])(S,{ref:"sqlEditorRef",sqlValue:e.sqlSource,value:e.sqlSource,"onUpdate:value":t[4]||(t[4]=t=>e.sqlSource=t),readOnly:e.readOnly,options:{readOnly:e.readOnly,minimap:{enabled:!1}}},null,8,["sqlValue","value","readOnly","options"])]),e.runStatus?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:0,class:"run-status",style:Object(n["normalizeStyle"])({background:e.bgcMap[e.runStatus]})},["Running"===e.runStatus||"Canceling"===e.runStatus?(Object(n["openBlock"])(),Object(n["createBlock"])(E,{key:0,style:{color:"#1890ff"}})):Object(n["createCommentVNode"])("",!0),"Canceled"===e.runStatus||"Failed"===e.runStatus?(Object(n["openBlock"])(),Object(n["createBlock"])($,{key:1,style:{color:"#ff4d4f"}})):Object(n["createCommentVNode"])("",!0),"Finished"===e.runStatus?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:2,style:{color:"#52c41a"}})):Object(n["createCommentVNode"])("",!0),"Created"===e.runStatus?(Object(n["openBlock"])(),Object(n["createBlock"])($,{key:3,style:{color:"#333"}})):Object(n["createCommentVNode"])("",!0),Object(n["createElementVNode"])("span",p,Object(n["toDisplayString"])(e.$t(e.runStatus)),1)],4)):Object(n["createCommentVNode"])("",!0)])]),Object(n["createElementVNode"])("div",m,[Object(n["createElementVNode"])("div",g,Object(n["toDisplayString"])(e.$t("sqlShortcuts")),1),(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.shortcuts,t=>(Object(n["openBlock"])(),Object(n["createBlock"])(V,{key:t,type:"link",disabled:"Running"===e.runStatus||"Canceling"===e.runStatus,onClick:a=>e.generateCode(t),class:"code"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(t),1)]),_:2},1032,["disabled","onClick"]))),128))])],4),Object(n["createElementVNode"])("div",{class:Object(n["normalizeClass"])(["sql-result",e.resultFullscreen?"result-full":""]),style:Object(n["normalizeStyle"])({height:`calc(100% - ${e.sqlResultHeight}px)`})},[Object(n["createElementVNode"])("span",{class:"drag-line",onMousedown:t[5]||(t[5]=(...t)=>e.dragMounseDown&&e.dragMounseDown(...t))},[Object(n["createVNode"])(B,{class:"icon","icon-class":"slide"})],32),Object(n["createElementVNode"])("div",O,[Object(n["createElementVNode"])("div",j,[Object(n["createElementVNode"])("span",{class:Object(n["normalizeClass"])([{active:"log"===e.operationActive},"tab-item"]),onClick:t[6]||(t[6]=t=>e.operationActive="log")},Object(n["toDisplayString"])(e.$t("log")),3),(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.resultTabList,t=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",{key:t.id,class:Object(n["normalizeClass"])([{active:e.operationActive===t.id},"tab-item"]),onClick:a=>e.operationActive=t.id},Object(n["toDisplayString"])(t.id),11,v))),128))])]),Object(n["createElementVNode"])("div",f,[Object(n["withDirectives"])(Object(n["createVNode"])(P,{ref:"sqlLogRef"},null,512),[[n["vShow"],"log"===e.operationActive]]),(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.resultTabList,t=>(Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],{key:t.id},[e.operationActive===t.id?(Object(n["openBlock"])(),Object(n["createBlock"])(q,{key:0,info:t},null,8,["info"])):Object(n["createCommentVNode"])("",!0)],64))),128))])],6)],2),e.loading?(Object(n["openBlock"])(),Object(n["createBlock"])(z,{key:0})):Object(n["createCommentVNode"])("",!0)])}a("3b18");var k=a("f64c"),y=a("c2c6");const C={theme:"arcticSql",language:"sql",fontSize:12,lineHeight:24,fontFamily:'Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace',folding:!0,suggestLineHeight:20,autoIndent:!0,renderLineHighlight:"all",scrollBeyondLastLine:!1,contextmenu:!1,readOnly:!0,fixedOverflowWidgets:!0},B=Object.assign({},C,{theme:"arcticSql",language:"sql",readOnly:!1,lineHeight:24,fontSize:12,fontFamily:'Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace',lineNumbersMinChars:3,wordWrap:"on",renderLineHighlight:"all",minimap:{enabled:!1},contextmenu:!1,automaticLayout:!0,scrollBeyondLastLine:!1});var N=Object(n["defineComponent"])({__name:"index",props:{sqlValue:null,options:null,readOnly:{type:Boolean}},emits:["save","update:value","change"],setup(e,{expose:t,emit:a}){const c=e;let l,o="";const s={};function r(){l&&l.layout()}function i(){if(l){const e=l.addCommand(y["KeyMod"].CtrlCmd|y["KeyCode"].KEY_S,()=>{a("save")});s.save=e;const t=l.addCommand(y["KeyMod"].Alt|y["KeyMod"].Shift|y["KeyCode"].KEY_F,()=>{u()});s.format=t}}function u(){const e=l&&l.getAction("editor.action.formatDocument");e&&e.run()}return Object(n["watch"])(()=>c.sqlValue,e=>{e&&o!==e&&l&&l.setValue(e)}),window.addEventListener("resize",r),t({executeCommand(e){const t=s[e],a=l;t&&a&&a._commandService.executeCommand(t)},updateOptions(e={}){l&&l.updateOptions(e)}}),Object(n["onBeforeUnmount"])(()=>{window.removeEventListener("resize",r),l&&l.dispose()}),Object(n["onMounted"])(()=>{const e=document.getElementsByClassName("m-sql-editor")[0];Object(n["nextTick"])(()=>{const t=l=y["editor"].create(e,{...B,...c.options});i(),t.setValue(c.sqlValue||""),t.onDidChangeModelContent(e=>{const t=l.getValue();a("update:value",t),a("change",t),o=t})})}),(t,a)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:Object(n["normalizeClass"])(["m-sql-editor",{disabled:e.readOnly}]),style:{height:"100%",width:"100%"}},null,2))}}),S=(a("fea2"),a("6b0d")),E=a.n(S);const $=E()(N,[["__scopeId","data-v-13c652ee"]]);var w=$,V=a("f38b"),P=a("8fe6"),q=a("411c"),z=a("d34f");const L={class:"sql-result-wrap"},I={class:"g-ml-8"},x={key:0,class:"empty"},D={key:1,class:"result-wrap"},M={class:"ant-table sql-result-table",style:{width:"100%"}},F={class:"ant-table-thead"},R={class:"ant-table-tbody"},_=["title"];var H=Object(n["defineComponent"])({__name:"sql-result",props:{info:null},setup(e){const t=e,a=Object(n["computed"])(()=>{var e;return!t.info||!(null!==(e=t.info)&&void 0!==e&&e.columns)}),c=Object(n["computed"])(()=>{var e;return null===(e=t.info)||void 0===e?void 0:e.status});return(e,l)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",L,[Object(n["createElementVNode"])("div",{class:"result-status",style:Object(n["normalizeStyle"])({background:Object(n["unref"])(V["b"])[Object(n["unref"])(c)]})},["Running"===Object(n["unref"])(c)?(Object(n["openBlock"])(),Object(n["createBlock"])(Object(n["unref"])(P["a"]),{key:0,style:{color:"#1890ff"}})):Object(n["createCommentVNode"])("",!0),"Canceled"===Object(n["unref"])(c)||"Failed"===Object(n["unref"])(c)?(Object(n["openBlock"])(),Object(n["createBlock"])(Object(n["unref"])(q["a"]),{key:1,style:{color:"#ff4d4f"}})):Object(n["createCommentVNode"])("",!0),"Finished"===Object(n["unref"])(c)?(Object(n["openBlock"])(),Object(n["createBlock"])(Object(n["unref"])(z["a"]),{key:2,style:{color:"#52c41a"}})):Object(n["createCommentVNode"])("",!0),"Created"===Object(n["unref"])(c)?(Object(n["openBlock"])(),Object(n["createBlock"])(Object(n["unref"])(q["a"]),{key:3,style:{color:"#333"}})):Object(n["createCommentVNode"])("",!0),Object(n["createElementVNode"])("span",I,Object(n["toDisplayString"])(Object(n["unref"])(c)),1)],4),Object(n["unref"])(a)?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",x,Object(n["toDisplayString"])(e.$t("noResult")),1)):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",D,[Object(n["createElementVNode"])("table",M,[Object(n["createElementVNode"])("thead",F,[Object(n["createElementVNode"])("tr",null,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(t.info.columns,e=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("th",{key:e},Object(n["toDisplayString"])(e),1))),128))])]),Object(n["createElementVNode"])("tbody",R,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(t.info.rowData,(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("tr",{key:t+1},[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e,(e,a)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("td",{key:t+e+a},[Object(n["createElementVNode"])("span",{class:"td-val",title:e},Object(n["toDisplayString"])(e),9,_)]))),128))]))),128))])])]))]))}});a("9065");const T=E()(H,[["__scopeId","data-v-5e56b470"]]);var A=T;const G={class:"sql-log"},U=["innerHTML"];var K=Object(n["defineComponent"])({__name:"sql-log",setup(e,{expose:t}){const a=Object(n["ref"])("");return t({initData(e){a.value=e}}),(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",G,[Object(n["createElementVNode"])("div",{innerHTML:a.value,style:{"white-space":"pre-wrap","font-size":"12px"}},null,8,U)]))}});a("b0b0");const Y=E()(K,[["__scopeId","data-v-d5f228ba"]]);var J=Y,W=a("b32d");function Z(e){return W["a"].get(`ams/v1/terminal/${e}/result`)}function Q(){return W["a"].get("ams/v1/terminal/examples")}function X(e){return W["a"].get("ams/v1/terminal/examples/"+e)}function ee(e){const{catalog:t,sql:a}=e;return W["a"].post(`ams/v1/terminal/catalogs/${t}/execute`,{sql:a})}function te(e){return W["a"].put(`ams/v1/terminal/${e}/stop`)}function ae(e){return W["a"].get(`ams/v1/terminal/${e}/logs`)}function ne(){return W["a"].get("ams/v1/terminal/latestInfos")}var ce=a("5738"),le=a("8552"),oe=Object(n["defineComponent"])({name:"Terminal",components:{SqlEditor:w,SqlResult:A,SqlLog:J,CheckCircleOutlined:z["a"],CloseCircleOutlined:q["a"],LoadingOutlined:P["a"]},setup(){const e=Object(n["reactive"])(Object(le["a"])()),t=Object(n["ref"])(!1),a=Object(n["ref"])(null),c=Object(n["ref"])(null),l=Object(n["ref"])(!1),o=Object(n["ref"])(""),s=Object(n["ref"])(!1),r=Object(n["ref"])(""),i=Object(n["ref"])(),u=Object(n["ref"])(!1),d=Object(n["ref"])(!1),b=Object(n["ref"])("log"),p=Object(n["reactive"])([]),m=Object(n["reactive"])([]),g=Object(n["ref"])(""),O=Object(n["ref"])(),j=Object(n["reactive"])([]),v=Object(n["ref"])(476),f=Object(n["shallowReactive"])(V["b"]),h="easylake-sql-source",y="easylake-use-catalog";Object(n["watch"])(()=>l,()=>{a.value.updateOptions({readOnly:l})});const C=e=>{"debug"!==e?"format"!==e?"pause"===e&&q():a.value&&a.value.executeCommand("format"):P()},B=async()=>{const e=await Object(ce["c"])();if((e||[]).forEach(e=>{p.push({value:e.catalogName,label:e.catalogName})}),p.length){const e=G(y),t=p.findIndex(t=>t.value===e);g.value=t>-1?e:p[0].value}},N=async()=>{const e=await Q();m.push(...e||[])},S=()=>{A(y,g.value)},E=()=>{u.value=!u.value},$=()=>{d.value=!d.value},w=()=>{j.length=0,c.value.initData("")},P=async()=>{try{if(!g.value)return void k["a"].error(e.selectClPh);s.value=!0,w(),r.value="Running";const t=await ee({catalog:g.value,sql:o.value});i.value=t.sessionId||"0",L()}catch(t){r.value="Failed",k["a"].error(t.message||"error")}},q=async()=>{i.value&&(b.value="log",O.value&&clearTimeout(O.value),s.value=!1,r.value="Canceling",w(),l.value=!0,await te(i.value).then(()=>{r.value="Canceled"}).catch(()=>{r.value="Failed"}).finally(()=>{l.value=!1}))},z=async()=>{try{j.length=0;const e=await Z(i.value||"0");e&&e.length&&j.push(...e)}catch(e){}},L=async()=>{if(O.value&&clearTimeout(O.value),"Running"===r.value&&i.value){const e=await ae(i.value);b.value="log";const{logStatus:t,logs:a}=e||{};if(null!==a&&void 0!==a&&a.length&&c.value.initData(a.join("\n")),"Canceled"!==r.value&&(r.value=t),await z(),"Finished"===t||"Canceled"===t)j.length&&(b.value=j[0].id);else{if("Canceled"===r.value)return;O.value=setTimeout(()=>{L()},1500)}}},I=async e=>{try{if(b.value="log","Running"===r.value)return;clearTimeout(O.value),t.value=!0;const a=await X(e);o.value=a,s.value=!1,r.value="",w()}catch(a){k["a"].error(a.message)}finally{t.value=!1}},x=()=>document.body,D=async()=>{try{a.value&&(o.value=G(h)),t.value=!0;const e=await ne();i.value=e.sessionId,e.sessionId>"0"&&(a.value&&!o.value&&(o.value=e.sql||""),r.value="Running",s.value=!0,L())}catch(e){k["a"].error(e.message)}finally{t.value=!1}},M={topbarHeight:48,optionHeight:44,resultTabHeight:40,runStatusHeight:32,gap:48};let F=0,R=0;const _=e=>{F=e.clientY,R=v.value,window.addEventListener("mousemove",H),window.addEventListener("mouseup",T)},H=e=>{const t=e.clientY,a=t-F,n=u.value?0:M.topbarHeight,c=r.value?M.runStatusHeight:0;let l=R+a;l=Math.max(l,M.optionHeight+c),l=Math.min(l,window.innerHeight-n-(u.value?0:M.gap)-M.optionHeight-4),v.value=l},T=()=>{window.removeEventListener("mousemove",H),window.removeEventListener("mouseup",T)},A=(e,t)=>{localStorage.setItem(e,t)},G=e=>localStorage.getItem(e)||"";return Object(n["onBeforeUnmount"])(()=>{clearTimeout(O.value),A(h,o.value)}),Object(n["onMounted"])(()=>{D(),N(),B()}),{loading:t,bgcMap:f,sqlLogRef:c,sqlEditorRef:a,fullscreen:u,resultFullscreen:d,operationActive:b,resultTabList:j,runStatus:r,shortcuts:m,curCatalog:g,catalogOptions:p,handleIconClick:C,handleFull:E,resultFull:$,showDebug:s,sqlSource:o,readOnly:l,generateCode:I,getPopupContainer:x,sqlResultHeight:v,dragMounseDown:_,changeUseCatalog:S}}});a("43c2");const se=E()(oe,[["render",h],["__scopeId","data-v-9dc54ca4"]]);t["default"]=se},d9da:function(e,t,a){},ec5b:function(e,t,a){},f38b:function(e,t,a){"use strict";var n,c,l,o,s;a.d(t,"b",(function(){return n})),a.d(t,"e",(function(){return c})),a.d(t,"d",(function(){return l})),a.d(t,"a",(function(){return o})),a.d(t,"c",(function(){return s})),function(e){e["Created"]="#f5f5f5",e["Failed"]="#fff2f0",e["Finished"]="#f6ffed",e["Canceled"]="#f5f5f5"}(n||(n={})),function(e){e["failed"]="FAILED",e["upgrading"]="UPGRADING",e["success"]="SUCCESS",e["none"]="NONE"}(c||(c={})),function(e){e["ICEBERG"]="iceberg",e["ARCTIC"]="amoro",e["HIVE"]="hive",e["PAIMON"]="paimon"}(l||(l={})),function(e){e["BRANCH"]="branch",e["TAG"]="tag"}(o||(o={})),function(e){e["ALL"]="all",e["OPTIMIZING"]="optimizing",e["NONOPTIMIZING"]="non-optimizing"}(s||(s={}))},fea2:function(e,t,a){"use strict";a("ec5b")}}]); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/chunk-0e36844c.b3794d45.js b/ams/dashboard/src/main/resources/static/js/chunk-0e36844c.b3794d45.js deleted file mode 100644 index e148efe6a9..0000000000 --- a/ams/dashboard/src/main/resources/static/js/chunk-0e36844c.b3794d45.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0e36844c"],{"0014":function(e,t,a){},"06d7":function(e,t,a){},"43c2":function(e,t,a){"use strict";a("06d7")},5738:function(e,t,a){"use strict";a.d(t,"c",(function(){return c})),a.d(t,"d",(function(){return l})),a.d(t,"m",(function(){return o})),a.d(t,"l",(function(){return s})),a.d(t,"f",(function(){return r})),a.d(t,"p",(function(){return i})),a.d(t,"j",(function(){return u})),a.d(t,"i",(function(){return d})),a.d(t,"k",(function(){return b})),a.d(t,"e",(function(){return p})),a.d(t,"g",(function(){return m})),a.d(t,"h",(function(){return O})),a.d(t,"q",(function(){return g})),a.d(t,"o",(function(){return j})),a.d(t,"a",(function(){return v})),a.d(t,"b",(function(){return f})),a.d(t,"n",(function(){return h}));var n=a("b32d");function c(){return n["a"].get("ams/v1/catalogs")}function l(e){const{catalog:t,keywords:a}=e;return n["a"].get(`ams/v1/catalogs/${t}/databases`,{params:{keywords:a}})}function o(e){const{catalog:t,db:a,keywords:c}=e;return n["a"].get(`ams/v1/catalogs/${t}/databases/${a}/tables`,{params:{keywords:c}})}function s({catalog:e="",db:t="",table:a="",token:c=""}){return n["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/details`,{params:{token:c}})}function r({catalog:e="",db:t="",table:a=""}){return n["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/hive/details`)}function i({catalog:e="",db:t="",table:a=""}){return n["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/upgrade/status`)}function u(e){const{catalog:t,db:a,table:c,page:l,pageSize:o,token:s}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/partitions`,{params:{page:l,pageSize:o,token:s}})}function d(e){const{catalog:t,db:a,table:c,partition:l,specId:o,page:s,pageSize:r,token:i}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/partitions/${l}/files`,{params:{specId:o,page:s,pageSize:r,token:i}})}function b(e){const{catalog:t,db:a,table:c,page:l,pageSize:o,token:s,ref:r,operation:i}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/snapshots`,{params:{page:l,pageSize:o,token:s,ref:r,operation:i}})}function p(e){const{catalog:t,db:a,table:c,snapshotId:l,page:o,pageSize:s,token:r}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/snapshots/${l}/detail`,{params:{page:o,pageSize:s,token:r}})}function m(e){const{catalog:t,db:a,table:c,page:l,pageSize:o,token:s}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/operations`,{params:{page:l,pageSize:o,token:s}})}function O(e){const{catalog:t,db:a,table:c,page:l,pageSize:o,token:s}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/optimizing-processes`,{params:{page:l,pageSize:o,token:s}})}function g({catalog:e="",db:t="",table:a="",properties:c={},pkList:l=[]}){return n["a"].post(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/upgrade`,{properties:c,pkList:l})}function j(){return n["a"].get("ams/v1/upgrade/properties")}function v({catalog:e="",db:t="",table:a="",processId:c=""}){return n["a"].post(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/optimizing-processes/${c}/cancel`)}function f(e){const{catalog:t,db:a,table:c}=e;return n["a"].get(`/ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/branches`)}function h(e){const{catalog:t,db:a,table:c}=e;return n["a"].get(`/ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/tags`)}},8552:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n=a("7a23"),c=a("47e2");function l(){const{t:e}=Object(c["b"])(),t=Object(n["computed"])(()=>e("catalog")).value,a=Object(n["computed"])(()=>e("databaseName")).value,l=Object(n["computed"])(()=>e("tableName")).value,o=Object(n["computed"])(()=>e("optimzerGroup")).value,s=Object(n["computed"])(()=>e("resourceGroup")).value,r=Object(n["computed"])(()=>e("parallelism")).value,i=Object(n["computed"])(()=>e("username")).value,u=Object(n["computed"])(()=>e("password")).value,d=Object(n["computed"])(()=>e("database",2)).value,b=Object(n["computed"])(()=>e("table",2)).value,p=Object(n["computed"])(()=>e("name")).value,m=Object(n["computed"])(()=>e("container")).value;return{selectPh:e("selectPlaceholder"),inputPh:e("inputPlaceholder"),selectClPh:e("selectPlaceholder",{selectPh:t}),selectDBPh:e("selectPlaceholder",{selectPh:a}),inputDBPh:e("inputPlaceholder",{inputPh:a}),inputClPh:e("inputPlaceholder",{inputPh:t}),inputTNPh:e("inputPlaceholder",{inputPh:l}),selectOptGroupPh:e("inputPlaceholder",{inputPh:o}),resourceGroupPh:e("inputPlaceholder",{inputPh:s}),parallelismPh:e("inputPlaceholder",{inputPh:r}),usernamePh:e("inputPlaceholder",{inputPh:i}),passwordPh:e("inputPlaceholder",{inputPh:u}),filterDBPh:e("filterPlaceholder",{inputPh:d}),filterTablePh:e("filterPlaceholder",{inputPh:b}),groupNamePh:e("inputPlaceholder",{inputPh:p}),groupContainer:e("selectPlaceholder",{selectPh:m})}}},9065:function(e,t,a){"use strict";a("0014")},b0b0:function(e,t,a){"use strict";a("d9da")},d323:function(e,t,a){"use strict";a.r(t);var n=a("7a23");const c={class:"console-wrap"},l={class:"sql-block"},o={class:"top-ops g-flex-jsb"},s={class:"title-left g-flex-ac"},r={class:"select-catalog g-mr-12"},i={class:"label"},u={class:"title-right"},d={class:"sql-content"},b={class:"sql-raw"},p={class:"g-ml-12"},m={class:"sql-shortcuts"},O={class:"shortcuts"},g={class:"tab-operation"},j={class:"tab"},v=["onClick"],f={class:"debug-result"};function h(e,t,a,h,k,y){const C=Object(n["resolveComponent"])("a-select"),B=Object(n["resolveComponent"])("svg-icon"),N=Object(n["resolveComponent"])("a-tooltip"),S=Object(n["resolveComponent"])("sql-editor"),E=Object(n["resolveComponent"])("loading-outlined"),w=Object(n["resolveComponent"])("close-circle-outlined"),$=Object(n["resolveComponent"])("check-circle-outlined"),V=Object(n["resolveComponent"])("a-button"),P=Object(n["resolveComponent"])("sql-log"),q=Object(n["resolveComponent"])("sql-result"),L=Object(n["resolveComponent"])("u-loading");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",c,[Object(n["createElementVNode"])("div",{class:Object(n["normalizeClass"])(["console-content",{fullscreen:e.fullscreen}])},[Object(n["createElementVNode"])("div",{style:Object(n["normalizeStyle"])({height:e.sqlResultHeight+"px"}),class:"sql-wrap"},[Object(n["createElementVNode"])("div",l,[Object(n["createElementVNode"])("div",o,[Object(n["createElementVNode"])("div",s,[Object(n["createElementVNode"])("div",r,[Object(n["createElementVNode"])("span",i,Object(n["toDisplayString"])(e.$t("use")),1),Object(n["createVNode"])(C,{value:e.curCatalog,"onUpdate:value":t[0]||(t[0]=t=>e.curCatalog=t),style:{width:"200px"},options:e.catalogOptions,onChange:e.changeUseCatalog},null,8,["value","options","onChange"])]),"Running"===e.runStatus?(Object(n["openBlock"])(),Object(n["createBlock"])(N,{key:0,title:e.$t("pause"),placement:"bottom"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(B,{className:"icon-svg","icon-class":"sqlpause",onClick:t[1]||(t[1]=t=>e.handleIconClick("pause")),class:"g-mr-12",disabled:e.readOnly},null,8,["disabled"])]),_:1},8,["title"])):(Object(n["openBlock"])(),Object(n["createBlock"])(N,{key:1,title:e.$t("run"),placement:"bottom"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(B,{className:"icon-svg","icon-class":"sqldebug",onClick:t[2]||(t[2]=t=>e.handleIconClick("debug")),class:"g-mr-12",disabled:e.readOnly},null,8,["disabled"])]),_:1},8,["title"])),Object(n["createVNode"])(N,{title:e.$t("format"),placement:"bottom"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(B,{className:"icon-svg",isStroke:!0,"icon-class":"format",onClick:t[3]||(t[3]=t=>e.handleIconClick("format")),disabled:e.readOnly},null,8,["disabled"])]),_:1},8,["title"])]),Object(n["createElementVNode"])("div",u,[Object(n["createVNode"])(N,{title:e.fullscreen?e.$t("recovery"):e.$t("fullscreen"),placement:"bottom",getPopupContainer:e.getPopupContainer},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(B,{className:"icon-svg",isStroke:!0,"icon-class":e.fullscreen?"sqlinit":"sqlmax",onClick:e.handleFull,disabled:!1,class:"g-ml-12"},null,8,["icon-class","onClick"])]),_:1},8,["title","getPopupContainer"])])]),Object(n["createElementVNode"])("div",d,[Object(n["createElementVNode"])("div",b,[Object(n["createVNode"])(S,{ref:"sqlEditorRef",sqlValue:e.sqlSource,value:e.sqlSource,"onUpdate:value":t[4]||(t[4]=t=>e.sqlSource=t),readOnly:e.readOnly,options:{readOnly:e.readOnly,minimap:{enabled:!1}}},null,8,["sqlValue","value","readOnly","options"])]),e.runStatus?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:0,class:"run-status",style:Object(n["normalizeStyle"])({background:e.bgcMap[e.runStatus]})},["Running"===e.runStatus||"Canceling"===e.runStatus?(Object(n["openBlock"])(),Object(n["createBlock"])(E,{key:0,style:{color:"#1890ff"}})):Object(n["createCommentVNode"])("",!0),"Canceled"===e.runStatus||"Failed"===e.runStatus?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:1,style:{color:"#ff4d4f"}})):Object(n["createCommentVNode"])("",!0),"Finished"===e.runStatus?(Object(n["openBlock"])(),Object(n["createBlock"])($,{key:2,style:{color:"#52c41a"}})):Object(n["createCommentVNode"])("",!0),"Created"===e.runStatus?(Object(n["openBlock"])(),Object(n["createBlock"])(w,{key:3,style:{color:"#333"}})):Object(n["createCommentVNode"])("",!0),Object(n["createElementVNode"])("span",p,Object(n["toDisplayString"])(e.$t(e.runStatus)),1)],4)):Object(n["createCommentVNode"])("",!0)])]),Object(n["createElementVNode"])("div",m,[Object(n["createElementVNode"])("div",O,Object(n["toDisplayString"])(e.$t("sqlShortcuts")),1),(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.shortcuts,t=>(Object(n["openBlock"])(),Object(n["createBlock"])(V,{key:t,type:"link",disabled:"Running"===e.runStatus||"Canceling"===e.runStatus,onClick:a=>e.generateCode(t),class:"code"},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(t),1)]),_:2},1032,["disabled","onClick"]))),128))])],4),Object(n["createElementVNode"])("div",{class:Object(n["normalizeClass"])(["sql-result",e.resultFullscreen?"result-full":""]),style:Object(n["normalizeStyle"])({height:`calc(100% - ${e.sqlResultHeight}px)`})},[Object(n["createElementVNode"])("span",{class:"drag-line",onMousedown:t[5]||(t[5]=(...t)=>e.dragMounseDown&&e.dragMounseDown(...t))},[Object(n["createVNode"])(B,{class:"icon","icon-class":"slide"})],32),Object(n["createElementVNode"])("div",g,[Object(n["createElementVNode"])("div",j,[Object(n["createElementVNode"])("span",{class:Object(n["normalizeClass"])([{active:"log"===e.operationActive},"tab-item"]),onClick:t[6]||(t[6]=t=>e.operationActive="log")},Object(n["toDisplayString"])(e.$t("log")),3),(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.resultTabList,t=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("span",{key:t.id,class:Object(n["normalizeClass"])([{active:e.operationActive===t.id},"tab-item"]),onClick:a=>e.operationActive=t.id},Object(n["toDisplayString"])(t.id),11,v))),128))])]),Object(n["createElementVNode"])("div",f,[Object(n["withDirectives"])(Object(n["createVNode"])(P,{ref:"sqlLogRef"},null,512),[[n["vShow"],"log"===e.operationActive]]),(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.resultTabList,t=>(Object(n["openBlock"])(),Object(n["createElementBlock"])(n["Fragment"],{key:t.id},[e.operationActive===t.id?(Object(n["openBlock"])(),Object(n["createBlock"])(q,{key:0,info:t},null,8,["info"])):Object(n["createCommentVNode"])("",!0)],64))),128))])],6)],2),e.loading?(Object(n["openBlock"])(),Object(n["createBlock"])(L,{key:0})):Object(n["createCommentVNode"])("",!0)])}a("3b18");var k=a("f64c"),y=a("c2c6");const C={theme:"arcticSql",language:"sql",fontSize:12,lineHeight:24,fontFamily:'Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace',folding:!0,suggestLineHeight:20,autoIndent:!0,renderLineHighlight:"all",scrollBeyondLastLine:!1,contextmenu:!1,readOnly:!0,fixedOverflowWidgets:!0},B=Object.assign({},C,{theme:"arcticSql",language:"sql",readOnly:!1,lineHeight:24,fontSize:12,fontFamily:'Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace',lineNumbersMinChars:3,wordWrap:"on",renderLineHighlight:"all",minimap:{enabled:!1},contextmenu:!1,automaticLayout:!0,scrollBeyondLastLine:!1});var N=Object(n["defineComponent"])({__name:"index",props:{sqlValue:null,options:null,readOnly:{type:Boolean}},emits:["save","update:value","change"],setup(e,{expose:t,emit:a}){const c=e;let l,o="";const s={};function r(){l&&l.layout()}function i(){if(l){const e=l.addCommand(y["KeyMod"].CtrlCmd|y["KeyCode"].KEY_S,()=>{a("save")});s.save=e;const t=l.addCommand(y["KeyMod"].Alt|y["KeyMod"].Shift|y["KeyCode"].KEY_F,()=>{u()});s.format=t}}function u(){const e=l&&l.getAction("editor.action.formatDocument");e&&e.run()}return Object(n["watch"])(()=>c.sqlValue,e=>{e&&o!==e&&l&&l.setValue(e)}),window.addEventListener("resize",r),t({executeCommand(e){const t=s[e],a=l;t&&a&&a._commandService.executeCommand(t)},updateOptions(e={}){l&&l.updateOptions(e)}}),Object(n["onBeforeUnmount"])(()=>{window.removeEventListener("resize",r),l&&l.dispose()}),Object(n["onMounted"])(()=>{const e=document.getElementsByClassName("m-sql-editor")[0];Object(n["nextTick"])(()=>{const t=l=y["editor"].create(e,{...B,...c.options});i(),t.setValue(c.sqlValue||""),t.onDidChangeModelContent(e=>{const t=l.getValue();a("update:value",t),a("change",t),o=t})})}),(t,a)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:Object(n["normalizeClass"])(["m-sql-editor",{disabled:e.readOnly}]),style:{height:"100%",width:"100%"}},null,2))}}),S=(a("fea2"),a("6b0d")),E=a.n(S);const w=E()(N,[["__scopeId","data-v-13c652ee"]]);var $=w,V=a("f38b"),P=a("8fe6"),q=a("411c"),L=a("d34f");const I={class:"sql-result-wrap"},z={class:"g-ml-8"},x={key:0,class:"empty"},D={key:1,class:"result-wrap"},M={class:"ant-table sql-result-table",style:{width:"100%"}},F={class:"ant-table-thead"},R={class:"ant-table-tbody"},_=["title"];var H=Object(n["defineComponent"])({__name:"sql-result",props:{info:null},setup(e){const t=e,a=Object(n["computed"])(()=>{var e;return!t.info||!(null!==(e=t.info)&&void 0!==e&&e.columns)}),c=Object(n["computed"])(()=>{var e;return null===(e=t.info)||void 0===e?void 0:e.status});return(e,l)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",I,[Object(n["createElementVNode"])("div",{class:"result-status",style:Object(n["normalizeStyle"])({background:Object(n["unref"])(V["b"])[Object(n["unref"])(c)]})},["Running"===Object(n["unref"])(c)?(Object(n["openBlock"])(),Object(n["createBlock"])(Object(n["unref"])(P["a"]),{key:0,style:{color:"#1890ff"}})):Object(n["createCommentVNode"])("",!0),"Canceled"===Object(n["unref"])(c)||"Failed"===Object(n["unref"])(c)?(Object(n["openBlock"])(),Object(n["createBlock"])(Object(n["unref"])(q["a"]),{key:1,style:{color:"#ff4d4f"}})):Object(n["createCommentVNode"])("",!0),"Finished"===Object(n["unref"])(c)?(Object(n["openBlock"])(),Object(n["createBlock"])(Object(n["unref"])(L["a"]),{key:2,style:{color:"#52c41a"}})):Object(n["createCommentVNode"])("",!0),"Created"===Object(n["unref"])(c)?(Object(n["openBlock"])(),Object(n["createBlock"])(Object(n["unref"])(q["a"]),{key:3,style:{color:"#333"}})):Object(n["createCommentVNode"])("",!0),Object(n["createElementVNode"])("span",z,Object(n["toDisplayString"])(Object(n["unref"])(c)),1)],4),Object(n["unref"])(a)?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",x,Object(n["toDisplayString"])(e.$t("noResult")),1)):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",D,[Object(n["createElementVNode"])("table",M,[Object(n["createElementVNode"])("thead",F,[Object(n["createElementVNode"])("tr",null,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(t.info.columns,e=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("th",{key:e},Object(n["toDisplayString"])(e),1))),128))])]),Object(n["createElementVNode"])("tbody",R,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(t.info.rowData,(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("tr",{key:t+1},[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e,(e,a)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("td",{key:t+e+a},[Object(n["createElementVNode"])("span",{class:"td-val",title:e},Object(n["toDisplayString"])(e),9,_)]))),128))]))),128))])])]))]))}});a("9065");const T=E()(H,[["__scopeId","data-v-5e56b470"]]);var A=T;const G={class:"sql-log"},U=["innerHTML"];var K=Object(n["defineComponent"])({__name:"sql-log",setup(e,{expose:t}){const a=Object(n["ref"])("");return t({initData(e){a.value=e}}),(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",G,[Object(n["createElementVNode"])("div",{innerHTML:a.value,style:{"white-space":"pre-wrap","font-size":"12px"}},null,8,U)]))}});a("b0b0");const Y=E()(K,[["__scopeId","data-v-d5f228ba"]]);var J=Y,W=a("b32d");function Z(e){return W["a"].get(`ams/v1/terminal/${e}/result`)}function Q(){return W["a"].get("ams/v1/terminal/examples")}function X(e){return W["a"].get("ams/v1/terminal/examples/"+e)}function ee(e){const{catalog:t,sql:a}=e;return W["a"].post(`ams/v1/terminal/catalogs/${t}/execute`,{sql:a})}function te(e){return W["a"].put(`ams/v1/terminal/${e}/stop`)}function ae(e){return W["a"].get(`ams/v1/terminal/${e}/logs`)}function ne(){return W["a"].get("ams/v1/terminal/latestInfos")}var ce=a("5738"),le=a("8552"),oe=Object(n["defineComponent"])({name:"Terminal",components:{SqlEditor:$,SqlResult:A,SqlLog:J,CheckCircleOutlined:L["a"],CloseCircleOutlined:q["a"],LoadingOutlined:P["a"]},setup(){const e=Object(n["reactive"])(Object(le["a"])()),t=Object(n["ref"])(!1),a=Object(n["ref"])(null),c=Object(n["ref"])(null),l=Object(n["ref"])(!1),o=Object(n["ref"])(""),s=Object(n["ref"])(!1),r=Object(n["ref"])(""),i=Object(n["ref"])(),u=Object(n["ref"])(!1),d=Object(n["ref"])(!1),b=Object(n["ref"])("log"),p=Object(n["reactive"])([]),m=Object(n["reactive"])([]),O=Object(n["ref"])(""),g=Object(n["ref"])(),j=Object(n["reactive"])([]),v=Object(n["ref"])(476),f=Object(n["shallowReactive"])(V["b"]),h="easylake-sql-source",y="easylake-use-catalog";Object(n["watch"])(()=>l,()=>{a.value.updateOptions({readOnly:l})});const C=e=>{"debug"!==e?"format"!==e?"pause"===e&&q():a.value&&a.value.executeCommand("format"):P()},B=async()=>{const e=await Object(ce["c"])();if((e||[]).forEach(e=>{p.push({value:e.catalogName,label:e.catalogName})}),p.length){const e=G(y),t=p.findIndex(t=>t.value===e);O.value=t>-1?e:p[0].value}},N=async()=>{const e=await Q();m.push(...e||[])},S=()=>{A(y,O.value)},E=()=>{u.value=!u.value},w=()=>{d.value=!d.value},$=()=>{j.length=0,c.value.initData("")},P=async()=>{try{if(!O.value)return void k["a"].error(e.selectClPh);s.value=!0,$(),r.value="Running";const t=await ee({catalog:O.value,sql:o.value});i.value=t.sessionId||"0",I()}catch(t){r.value="Failed",k["a"].error(t.message||"error")}},q=async()=>{i.value&&(b.value="log",g.value&&clearTimeout(g.value),s.value=!1,r.value="Canceling",$(),l.value=!0,await te(i.value).then(()=>{r.value="Canceled"}).catch(()=>{r.value="Failed"}).finally(()=>{l.value=!1}))},L=async()=>{try{j.length=0;const e=await Z(i.value||"0");e&&e.length&&j.push(...e)}catch(e){}},I=async()=>{if(g.value&&clearTimeout(g.value),"Running"===r.value&&i.value){const e=await ae(i.value);b.value="log";const{logStatus:t,logs:a}=e||{};if(null!==a&&void 0!==a&&a.length&&c.value.initData(a.join("\n")),"Canceled"!==r.value&&(r.value=t),await L(),"Finished"===t||"Canceled"===t)j.length&&(b.value=j[0].id);else{if("Canceled"===r.value)return;g.value=setTimeout(()=>{I()},1500)}}},z=async e=>{try{if(b.value="log","Running"===r.value)return;clearTimeout(g.value),t.value=!0;const a=await X(e);o.value=a,s.value=!1,r.value="",$()}catch(a){k["a"].error(a.message)}finally{t.value=!1}},x=()=>document.body,D=async()=>{try{a.value&&(o.value=G(h)),t.value=!0;const e=await ne();i.value=e.sessionId,e.sessionId>"0"&&(a.value&&!o.value&&(o.value=e.sql||""),r.value="Running",s.value=!0,I())}catch(e){k["a"].error(e.message)}finally{t.value=!1}},M={topbarHeight:48,optionHeight:44,resultTabHeight:40,runStatusHeight:32,gap:48};let F=0,R=0;const _=e=>{F=e.clientY,R=v.value,window.addEventListener("mousemove",H),window.addEventListener("mouseup",T)},H=e=>{const t=e.clientY,a=t-F,n=u.value?0:M.topbarHeight,c=r.value?M.runStatusHeight:0;let l=R+a;l=Math.max(l,M.optionHeight+c),l=Math.min(l,window.innerHeight-n-(u.value?0:M.gap)-M.optionHeight-4),v.value=l},T=()=>{window.removeEventListener("mousemove",H),window.removeEventListener("mouseup",T)},A=(e,t)=>{localStorage.setItem(e,t)},G=e=>localStorage.getItem(e)||"";return Object(n["onBeforeUnmount"])(()=>{clearTimeout(g.value),A(h,o.value)}),Object(n["onMounted"])(()=>{D(),N(),B()}),{loading:t,bgcMap:f,sqlLogRef:c,sqlEditorRef:a,fullscreen:u,resultFullscreen:d,operationActive:b,resultTabList:j,runStatus:r,shortcuts:m,curCatalog:O,catalogOptions:p,handleIconClick:C,handleFull:E,resultFull:w,showDebug:s,sqlSource:o,readOnly:l,generateCode:z,getPopupContainer:x,sqlResultHeight:v,dragMounseDown:_,changeUseCatalog:S}}});a("43c2");const se=E()(oe,[["render",h],["__scopeId","data-v-9dc54ca4"]]);t["default"]=se},d9da:function(e,t,a){},ec5b:function(e,t,a){},f38b:function(e,t,a){"use strict";var n,c,l,o,s;a.d(t,"b",(function(){return n})),a.d(t,"e",(function(){return c})),a.d(t,"d",(function(){return l})),a.d(t,"a",(function(){return o})),a.d(t,"c",(function(){return s})),function(e){e["Created"]="#f5f5f5",e["Failed"]="#fff2f0",e["Finished"]="#f6ffed",e["Canceled"]="#f5f5f5"}(n||(n={})),function(e){e["failed"]="FAILED",e["upgrading"]="UPGRADING",e["success"]="SUCCESS",e["none"]="NONE"}(c||(c={})),function(e){e["ICEBERG"]="iceberg",e["ARCTIC"]="amoro",e["HIVE"]="hive",e["PAIMON"]="paimon"}(l||(l={})),function(e){e["BRANCH"]="branch",e["TAG"]="tag"}(o||(o={})),function(e){e["ALL"]="all",e["OPTIMIZING"]="optimizing",e["NONOPTIMIZING"]="non-optimizing"}(s||(s={}))},fea2:function(e,t,a){"use strict";a("ec5b")}}]); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/chunk-28b9a9cc.0df00f1f.js b/ams/dashboard/src/main/resources/static/js/chunk-28b9a9cc.f99ae816.js similarity index 55% rename from ams/dashboard/src/main/resources/static/js/chunk-28b9a9cc.0df00f1f.js rename to ams/dashboard/src/main/resources/static/js/chunk-28b9a9cc.f99ae816.js index cfa3130428..b6bdbcb429 100644 --- a/ams/dashboard/src/main/resources/static/js/chunk-28b9a9cc.0df00f1f.js +++ b/ams/dashboard/src/main/resources/static/js/chunk-28b9a9cc.f99ae816.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28b9a9cc"],{"11e6":function(e,t,a){},4139:function(e,t,a){"use strict";a.r(t);var c=a("7a23"),n=a("6c02"),o=a("2b46"),l=a("47e2");const r={class:"field-wrap"};var s=Object(c["defineComponent"])({__name:"Field",props:{fields:null,loading:{type:Boolean}},setup(e,{expose:t}){const a=e,{t:n}=Object(l["b"])(),o=Object(c["shallowReactive"])([{dataIndex:"field",title:n("field"),ellipsis:!0},{dataIndex:"type",title:n("type"),ellipsis:!0},{dataIndex:"comment",title:n("description"),ellipsis:!0},{dataIndex:"primaryKey",title:n("primaryKey"),scopedSlots:{customRender:"primaryKey"}}]);return t({getPkname(){return a.fields.filter(e=>e.checked).map(e=>({fieldName:e.field||""}))}}),(t,n)=>{const l=Object(c["resolveComponent"])("a-checkbox"),s=Object(c["resolveComponent"])("a-table");return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",r,[Object(c["createVNode"])(s,{loading:e.loading,class:"ant-table-common",columns:Object(c["unref"])(o),"data-source":a.fields,pagination:!1},{bodyCell:Object(c["withCtx"])(({column:e,record:t})=>["primaryKey"===e.dataIndex?(Object(c["openBlock"])(),Object(c["createBlock"])(l,{key:0,checked:t.checked,"onUpdate:checked":e=>t.checked=e},null,8,["checked","onUpdate:checked"])):Object(c["createCommentVNode"])("",!0)]),_:1},8,["loading","columns","data-source"])])}}}),i=(a("9ca6"),a("6b0d")),u=a.n(i);const d=u()(s,[["__scopeId","data-v-5b1564d8"]]);var b=d;const p={class:"partition-field-wrap"};var f=Object(c["defineComponent"])({__name:"Partition",props:{partitionFields:null,loading:{type:Boolean}},setup(e){const t=e,{t:a}=Object(l["b"])(),n=Object(c["shallowReactive"])([{dataIndex:"field",title:a("field"),ellipsis:!0},{dataIndex:"type",title:a("type"),ellipsis:!0},{dataIndex:"comment",title:a("description"),ellipsis:!0}]);return(a,o)=>{const l=Object(c["resolveComponent"])("a-table");return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",p,[Object(c["createVNode"])(l,{loading:e.loading,class:"ant-table-common",columns:Object(c["unref"])(n),"data-source":t.partitionFields,pagination:!1},null,8,["loading","columns","data-source"])])}}});const m=f;var g=m,O=a("a878"),j=a("5738"),h=a("d257"),v=a("8552");const k={class:"config-properties"},y={class:"config-header g-flex"},P={class:"td g-flex-ac"},$={class:"td g-flex-ac bd-left"},C=Object(c["createTextVNode"])("+");var N=Object(c["defineComponent"])({__name:"Properties",props:{propertiesObj:null},setup(e,{expose:t}){const a=e,n=Object(c["reactive"])([]),o=Object(c["ref"])(),l=Object(c["reactive"])([]),r=Object(c["ref"])(),s=Object(c["reactive"])({data:[]}),i=Object(c["reactive"])(Object(v["a"])());function u(){n.length=0,s.data.length=0,Object.keys(a.propertiesObj).forEach(e=>{s.data.push({key:e,value:a.propertiesObj[e],uuid:Object(h["g"])()})})}async function d(){l.length=0,o.value=[];const e=await Object(j["o"])();Object.keys(e).forEach(t=>{const a={key:t,label:t,value:t,text:e[t]||""};l.push(a),o.value.push(a)})}function b(e,t){return t.key.toUpperCase().indexOf(e.toUpperCase())>=0}function p(e,t,a){const c=t.key,n=l.find(e=>e.key===c),o=s.data.find(e=>e.uuid===a.uuid);o&&(o.value=n.text||"",o.key=n.key||"")}function f(e){const t=s.data.indexOf(e);-1!==t&&s.data.splice(t,1)}function m(){s.data.push({key:"",value:"",uuid:Object(h["g"])()})}return Object(c["watch"])(()=>a.propertiesObj,()=>{u()},{immediate:!0,deep:!0}),t({getProperties(){return r.value.validateFields().then(()=>{const e={};return s.data.forEach(t=>{e[t.key]=t.value}),Promise.resolve(e)}).catch(()=>!1)}}),Object(c["onMounted"])(()=>{d()}),(e,t)=>{const a=Object(c["resolveComponent"])("a-auto-complete"),n=Object(c["resolveComponent"])("a-form-item"),l=Object(c["resolveComponent"])("a-input"),u=Object(c["resolveComponent"])("a-form"),d=Object(c["resolveComponent"])("a-button");return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",k,[Object(c["createElementVNode"])("div",y,[Object(c["createElementVNode"])("div",P,Object(c["toDisplayString"])(e.$t("key")),1),Object(c["createElementVNode"])("div",$,Object(c["toDisplayString"])(e.$t("value")),1)]),Object(c["createVNode"])(u,{ref_key:"propertiesFormRef",ref:r,model:s,class:"g-mt-12"},{default:Object(c["withCtx"])(()=>[(Object(c["openBlock"])(!0),Object(c["createElementBlock"])(c["Fragment"],null,Object(c["renderList"])(s.data,(t,r)=>(Object(c["openBlock"])(),Object(c["createElementBlock"])("div",{class:"config-row",key:t.uuid},[Object(c["createVNode"])(n,{name:["data",r,"key"],rules:[{required:!0,message:""+e.$t(i.selectPh)}],class:"g-mr-8"},{default:Object(c["withCtx"])(()=>[Object(c["createVNode"])(a,{value:t.key,"onUpdate:value":e=>t.key=e,options:o.value,onSelect:(e,a)=>p(e,a,t),"filter-option":b,style:{width:"100%"},class:"g-mr-12"},{option:Object(c["withCtx"])(({key:e})=>[Object(c["createElementVNode"])("span",null,Object(c["toDisplayString"])(e),1)]),_:2},1032,["value","onUpdate:value","options","onSelect"])]),_:2},1032,["name","rules"]),Object(c["createVNode"])(n,{name:["data",r,"value"],rules:[{required:!0,message:""+e.$t(i.inputPh)}]},{default:Object(c["withCtx"])(()=>[Object(c["createVNode"])(l,{value:t.value,"onUpdate:value":e=>t.value=e,maxlength:64,style:{width:"100%"}},null,8,["value","onUpdate:value"])]),_:2},1032,["name","rules"]),Object(c["createVNode"])(Object(c["unref"])(O["a"]),{class:"icon-close",onClick:e=>f(t)},null,8,["onClick"])]))),128))]),_:1},8,["model"]),Object(c["createVNode"])(d,{class:"config-btn",onClick:m},{default:Object(c["withCtx"])(()=>[C]),_:1})])}}});a("bc77");const w=N;var x=w;const V={class:"upgrade-table"},_={class:"nav-bar"},B={class:"title g-ml-8"},E={class:"content"},S={class:"table-attrs"},z={class:"footer-btn"};var I=Object(c["defineComponent"])({__name:"upgrade",emits:["goBack","refresh"],setup(e,{emit:t}){const a=Object(c["ref"])(!1),l=Object(c["reactive"])([]),r=Object(c["reactive"])([]),s=Object(c["reactive"])({}),i=Object(c["reactive"])([]),u=(Object(n["e"])(),Object(n["d"])()),d=Object(c["computed"])(()=>({...u.query})),p=Object(c["ref"])(),f=Object(c["ref"])();async function m(){try{const{catalog:e,db:t,table:c}=d.value;if(!e||!t||!c)return;a.value=!0,r.length=0,l.length=0;const n=await Object(j["f"])({...d.value}),{partitionColumnList:o=[],schema:i,properties:u}=n;(o||[]).forEach(e=>{r.push(e)}),(i||[]).forEach(e=>{l.push(e)}),Object.assign(s,u)}catch(e){}finally{a.value=!1}}function O(){h()}async function h(){i.length=0;const e=p.value.getPkname();e.forEach(e=>{i.push(e)}),f.value.getProperties().then(e=>{e&&(Object.assign(s,e),v())})}async function v(){try{const{catalog:e,db:c,table:n}=d.value;if(!e||!c||!n)return;a.value=!0,await Object(j["q"])({...d.value,pkList:i,properties:s}),k(),t("refresh")}catch(e){k()}finally{a.value=!1}}function k(){t("goBack")}function y(){k()}return Object(c["onMounted"])(()=>{m()}),(e,t)=>{const n=Object(c["resolveComponent"])("a-form-item"),i=Object(c["resolveComponent"])("a-form"),u=Object(c["resolveComponent"])("a-button");return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",V,[Object(c["createElementVNode"])("div",_,[Object(c["createVNode"])(Object(c["unref"])(o["a"]),{onClick:k}),Object(c["createElementVNode"])("span",B,Object(c["toDisplayString"])(e.$t("upgradeHiveTable")),1)]),Object(c["createElementVNode"])("div",E,[Object(c["createElementVNode"])("div",S,[Object(c["createVNode"])(i,{name:"fields",class:"label-120"},{default:Object(c["withCtx"])(()=>[Object(c["createVNode"])(n,{label:e.$t("field"),name:"field"},{default:Object(c["withCtx"])(()=>[Object(c["createVNode"])(b,{loading:a.value,fields:l,ref_key:"schemaFieldRef",ref:p},null,8,["loading","fields"])]),_:1},8,["label"]),Object(c["createVNode"])(n,{label:e.$t("partitonField"),name:"partitonField"},{default:Object(c["withCtx"])(()=>[Object(c["createVNode"])(g,{loading:a.value,partitionFields:r},null,8,["loading","partitionFields"])]),_:1},8,["label"]),Object(c["createVNode"])(n,{label:e.$t("otherProperties"),name:"otherProperties"},{default:Object(c["withCtx"])(()=>[Object(c["createVNode"])(x,{propertiesObj:s,ref_key:"propertiesRef",ref:f},null,8,["propertiesObj"])]),_:1},8,["label"])]),_:1})]),Object(c["createElementVNode"])("div",z,[Object(c["createVNode"])(u,{type:"primary",onClick:O,loading:a.value,class:"btn g-mr-12"},{default:Object(c["withCtx"])(()=>[Object(c["createTextVNode"])(Object(c["toDisplayString"])(e.$t("ok")),1)]),_:1},8,["loading"]),Object(c["createVNode"])(u,{type:"ghost",onClick:y,class:"btn"},{default:Object(c["withCtx"])(()=>[Object(c["createTextVNode"])(Object(c["toDisplayString"])(e.$t("cancel")),1)]),_:1})])])])}}});a("4dbb");const F=u()(I,[["__scopeId","data-v-5c84690d"]]);t["default"]=F},"4dbb":function(e,t,a){"use strict";a("cf8e")},5738:function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"d",(function(){return o})),a.d(t,"m",(function(){return l})),a.d(t,"l",(function(){return r})),a.d(t,"f",(function(){return s})),a.d(t,"p",(function(){return i})),a.d(t,"j",(function(){return u})),a.d(t,"i",(function(){return d})),a.d(t,"k",(function(){return b})),a.d(t,"e",(function(){return p})),a.d(t,"g",(function(){return f})),a.d(t,"h",(function(){return m})),a.d(t,"q",(function(){return g})),a.d(t,"o",(function(){return O})),a.d(t,"a",(function(){return j})),a.d(t,"b",(function(){return h})),a.d(t,"n",(function(){return v}));var c=a("b32d");function n(){return c["a"].get("ams/v1/catalogs")}function o(e){const{catalog:t,keywords:a}=e;return c["a"].get(`ams/v1/catalogs/${t}/databases`,{params:{keywords:a}})}function l(e){const{catalog:t,db:a,keywords:n}=e;return c["a"].get(`ams/v1/catalogs/${t}/databases/${a}/tables`,{params:{keywords:n}})}function r({catalog:e="",db:t="",table:a="",token:n=""}){return c["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/details`,{params:{token:n}})}function s({catalog:e="",db:t="",table:a=""}){return c["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/hive/details`)}function i({catalog:e="",db:t="",table:a=""}){return c["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/upgrade/status`)}function u(e){const{catalog:t,db:a,table:n,page:o,pageSize:l,token:r}=e;return c["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${n}/partitions`,{params:{page:o,pageSize:l,token:r}})}function d(e){const{catalog:t,db:a,table:n,partition:o,specId:l,page:r,pageSize:s,token:i}=e;return c["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${n}/partitions/${o}/files`,{params:{specId:l,page:r,pageSize:s,token:i}})}function b(e){const{catalog:t,db:a,table:n,page:o,pageSize:l,token:r,ref:s,operation:i}=e;return c["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${n}/snapshots`,{params:{page:o,pageSize:l,token:r,ref:s,operation:i}})}function p(e){const{catalog:t,db:a,table:n,snapshotId:o,page:l,pageSize:r,token:s}=e;return c["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${n}/snapshots/${o}/detail`,{params:{page:l,pageSize:r,token:s}})}function f(e){const{catalog:t,db:a,table:n,page:o,pageSize:l,token:r}=e;return c["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${n}/operations`,{params:{page:o,pageSize:l,token:r}})}function m(e){const{catalog:t,db:a,table:n,page:o,pageSize:l,token:r}=e;return c["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${n}/optimizing-processes`,{params:{page:o,pageSize:l,token:r}})}function g({catalog:e="",db:t="",table:a="",properties:n={},pkList:o=[]}){return c["a"].post(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/upgrade`,{properties:n,pkList:o})}function O(){return c["a"].get("ams/v1/upgrade/properties")}function j({catalog:e="",db:t="",table:a="",processId:n=""}){return c["a"].post(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/optimizing-processes/${n}/cancel`)}function h(e){const{catalog:t,db:a,table:n}=e;return c["a"].get(`/ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${n}/branches`)}function v(e){const{catalog:t,db:a,table:n}=e;return c["a"].get(`/ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${n}/tags`)}},8552:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var c=a("7a23"),n=a("47e2");function o(){const{t:e}=Object(n["b"])(),t=Object(c["computed"])(()=>e("catalog")).value,a=Object(c["computed"])(()=>e("databaseName")).value,o=Object(c["computed"])(()=>e("tableName")).value,l=Object(c["computed"])(()=>e("optimzerGroup")).value,r=Object(c["computed"])(()=>e("resourceGroup")).value,s=Object(c["computed"])(()=>e("parallelism")).value,i=Object(c["computed"])(()=>e("username")).value,u=Object(c["computed"])(()=>e("password")).value,d=Object(c["computed"])(()=>e("database",2)).value,b=Object(c["computed"])(()=>e("table",2)).value,p=Object(c["computed"])(()=>e("name")).value,f=Object(c["computed"])(()=>e("container")).value;return{selectPh:e("selectPlaceholder"),inputPh:e("inputPlaceholder"),selectClPh:e("selectPlaceholder",{selectPh:t}),selectDBPh:e("selectPlaceholder",{selectPh:a}),inputDBPh:e("inputPlaceholder",{inputPh:a}),inputClPh:e("inputPlaceholder",{inputPh:t}),inputTNPh:e("inputPlaceholder",{inputPh:o}),selectOptGroupPh:e("inputPlaceholder",{inputPh:l}),resourceGroupPh:e("inputPlaceholder",{inputPh:r}),parallelismPh:e("inputPlaceholder",{inputPh:s}),usernamePh:e("inputPlaceholder",{inputPh:i}),passwordPh:e("inputPlaceholder",{inputPh:u}),filterDBPh:e("filterPlaceholder",{inputPh:d}),filterTablePh:e("filterPlaceholder",{inputPh:b}),groupNamePh:e("inputPlaceholder",{inputPh:p}),groupContainer:e("selectPlaceholder",{selectPh:f})}}},"9ca6":function(e,t,a){"use strict";a("ebb5")},bc77:function(e,t,a){"use strict";a("11e6")},cf8e:function(e,t,a){},ebb5:function(e,t,a){}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28b9a9cc"],{"11e6":function(e,t,a){},4139:function(e,t,a){"use strict";a.r(t);var c=a("7a23"),n=a("6c02"),o=a("2b46"),l=a("47e2");const r={class:"field-wrap"};var s=Object(c["defineComponent"])({__name:"Field",props:{fields:null,loading:{type:Boolean}},setup(e,{expose:t}){const a=e,{t:n}=Object(l["b"])(),o=Object(c["shallowReactive"])([{dataIndex:"field",title:n("field"),ellipsis:!0},{dataIndex:"type",title:n("type"),ellipsis:!0},{dataIndex:"comment",title:n("description"),ellipsis:!0},{dataIndex:"primaryKey",title:n("primaryKey"),scopedSlots:{customRender:"primaryKey"}}]);return t({getPkname(){return a.fields.filter(e=>e.checked).map(e=>({fieldName:e.field||""}))}}),(t,n)=>{const l=Object(c["resolveComponent"])("a-checkbox"),s=Object(c["resolveComponent"])("a-table");return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",r,[Object(c["createVNode"])(s,{loading:e.loading,class:"ant-table-common",columns:Object(c["unref"])(o),"data-source":a.fields,pagination:!1},{bodyCell:Object(c["withCtx"])(({column:e,record:t})=>["primaryKey"===e.dataIndex?(Object(c["openBlock"])(),Object(c["createBlock"])(l,{key:0,checked:t.checked,"onUpdate:checked":e=>t.checked=e},null,8,["checked","onUpdate:checked"])):Object(c["createCommentVNode"])("",!0)]),_:1},8,["loading","columns","data-source"])])}}}),i=(a("9ca6"),a("6b0d")),u=a.n(i);const d=u()(s,[["__scopeId","data-v-5b1564d8"]]);var b=d;const p={class:"partition-field-wrap"};var f=Object(c["defineComponent"])({__name:"Partition",props:{partitionFields:null,loading:{type:Boolean}},setup(e){const t=e,{t:a}=Object(l["b"])(),n=Object(c["shallowReactive"])([{dataIndex:"field",title:a("field"),ellipsis:!0},{dataIndex:"type",title:a("type"),ellipsis:!0},{dataIndex:"comment",title:a("description"),ellipsis:!0}]);return(a,o)=>{const l=Object(c["resolveComponent"])("a-table");return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",p,[Object(c["createVNode"])(l,{loading:e.loading,class:"ant-table-common",columns:Object(c["unref"])(n),"data-source":t.partitionFields,pagination:!1},null,8,["loading","columns","data-source"])])}}});const g=f;var m=g,O=a("a878"),j=a("5738"),v=a("d257"),h=a("8552");const k={class:"config-properties"},y={class:"config-header g-flex"},$={class:"td g-flex-ac"},P={class:"td g-flex-ac bd-left"},C=Object(c["createTextVNode"])("+");var N=Object(c["defineComponent"])({__name:"Properties",props:{propertiesObj:null},setup(e,{expose:t}){const a=e,n=Object(c["reactive"])([]),o=Object(c["ref"])(),l=Object(c["reactive"])([]),r=Object(c["ref"])(),s=Object(c["reactive"])({data:[]}),i=Object(c["reactive"])(Object(h["a"])());function u(){n.length=0,s.data.length=0,Object.keys(a.propertiesObj).forEach(e=>{s.data.push({key:e,value:a.propertiesObj[e],uuid:Object(v["g"])()})})}async function d(){l.length=0,o.value=[];const e=await Object(j["p"])();Object.keys(e).forEach(t=>{const a={key:t,label:t,value:t,text:e[t]||""};l.push(a),o.value.push(a)})}function b(e,t){return t.key.toUpperCase().indexOf(e.toUpperCase())>=0}function p(e,t,a){const c=t.key,n=l.find(e=>e.key===c),o=s.data.find(e=>e.uuid===a.uuid);o&&(o.value=n.text||"",o.key=n.key||"")}function f(e){const t=s.data.indexOf(e);-1!==t&&s.data.splice(t,1)}function g(){s.data.push({key:"",value:"",uuid:Object(v["g"])()})}return Object(c["watch"])(()=>a.propertiesObj,()=>{u()},{immediate:!0,deep:!0}),t({getProperties(){return r.value.validateFields().then(()=>{const e={};return s.data.forEach(t=>{e[t.key]=t.value}),Promise.resolve(e)}).catch(()=>!1)}}),Object(c["onMounted"])(()=>{d()}),(e,t)=>{const a=Object(c["resolveComponent"])("a-auto-complete"),n=Object(c["resolveComponent"])("a-form-item"),l=Object(c["resolveComponent"])("a-input"),u=Object(c["resolveComponent"])("a-form"),d=Object(c["resolveComponent"])("a-button");return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",k,[Object(c["createElementVNode"])("div",y,[Object(c["createElementVNode"])("div",$,Object(c["toDisplayString"])(e.$t("key")),1),Object(c["createElementVNode"])("div",P,Object(c["toDisplayString"])(e.$t("value")),1)]),Object(c["createVNode"])(u,{ref_key:"propertiesFormRef",ref:r,model:s,class:"g-mt-12"},{default:Object(c["withCtx"])(()=>[(Object(c["openBlock"])(!0),Object(c["createElementBlock"])(c["Fragment"],null,Object(c["renderList"])(s.data,(t,r)=>(Object(c["openBlock"])(),Object(c["createElementBlock"])("div",{class:"config-row",key:t.uuid},[Object(c["createVNode"])(n,{name:["data",r,"key"],rules:[{required:!0,message:""+e.$t(i.selectPh)}],class:"g-mr-8"},{default:Object(c["withCtx"])(()=>[Object(c["createVNode"])(a,{value:t.key,"onUpdate:value":e=>t.key=e,options:o.value,onSelect:(e,a)=>p(e,a,t),"filter-option":b,style:{width:"100%"},class:"g-mr-12"},{option:Object(c["withCtx"])(({key:e})=>[Object(c["createElementVNode"])("span",null,Object(c["toDisplayString"])(e),1)]),_:2},1032,["value","onUpdate:value","options","onSelect"])]),_:2},1032,["name","rules"]),Object(c["createVNode"])(n,{name:["data",r,"value"],rules:[{required:!0,message:""+e.$t(i.inputPh)}]},{default:Object(c["withCtx"])(()=>[Object(c["createVNode"])(l,{value:t.value,"onUpdate:value":e=>t.value=e,maxlength:64,style:{width:"100%"}},null,8,["value","onUpdate:value"])]),_:2},1032,["name","rules"]),Object(c["createVNode"])(Object(c["unref"])(O["a"]),{class:"icon-close",onClick:e=>f(t)},null,8,["onClick"])]))),128))]),_:1},8,["model"]),Object(c["createVNode"])(d,{class:"config-btn",onClick:g},{default:Object(c["withCtx"])(()=>[C]),_:1})])}}});a("bc77");const w=N;var x=w;const V={class:"upgrade-table"},_={class:"nav-bar"},S={class:"title g-ml-8"},B={class:"content"},E={class:"table-attrs"},z={class:"footer-btn"};var I=Object(c["defineComponent"])({__name:"upgrade",emits:["goBack","refresh"],setup(e,{emit:t}){const a=Object(c["ref"])(!1),l=Object(c["reactive"])([]),r=Object(c["reactive"])([]),s=Object(c["reactive"])({}),i=Object(c["reactive"])([]),u=(Object(n["e"])(),Object(n["d"])()),d=Object(c["computed"])(()=>({...u.query})),p=Object(c["ref"])(),f=Object(c["ref"])();async function g(){try{const{catalog:e,db:t,table:c}=d.value;if(!e||!t||!c)return;a.value=!0,r.length=0,l.length=0;const n=await Object(j["f"])({...d.value}),{partitionColumnList:o=[],schema:i,properties:u}=n;(o||[]).forEach(e=>{r.push(e)}),(i||[]).forEach(e=>{l.push(e)}),Object.assign(s,u)}catch(e){}finally{a.value=!1}}function O(){v()}async function v(){i.length=0;const e=p.value.getPkname();e.forEach(e=>{i.push(e)}),f.value.getProperties().then(e=>{e&&(Object.assign(s,e),h())})}async function h(){try{const{catalog:e,db:c,table:n}=d.value;if(!e||!c||!n)return;a.value=!0,await Object(j["r"])({...d.value,pkList:i,properties:s}),k(),t("refresh")}catch(e){k()}finally{a.value=!1}}function k(){t("goBack")}function y(){k()}return Object(c["onMounted"])(()=>{g()}),(e,t)=>{const n=Object(c["resolveComponent"])("a-form-item"),i=Object(c["resolveComponent"])("a-form"),u=Object(c["resolveComponent"])("a-button");return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",V,[Object(c["createElementVNode"])("div",_,[Object(c["createVNode"])(Object(c["unref"])(o["a"]),{onClick:k}),Object(c["createElementVNode"])("span",S,Object(c["toDisplayString"])(e.$t("upgradeHiveTable")),1)]),Object(c["createElementVNode"])("div",B,[Object(c["createElementVNode"])("div",E,[Object(c["createVNode"])(i,{name:"fields",class:"label-120"},{default:Object(c["withCtx"])(()=>[Object(c["createVNode"])(n,{label:e.$t("field"),name:"field"},{default:Object(c["withCtx"])(()=>[Object(c["createVNode"])(b,{loading:a.value,fields:l,ref_key:"schemaFieldRef",ref:p},null,8,["loading","fields"])]),_:1},8,["label"]),Object(c["createVNode"])(n,{label:e.$t("partitonField"),name:"partitonField"},{default:Object(c["withCtx"])(()=>[Object(c["createVNode"])(m,{loading:a.value,partitionFields:r},null,8,["loading","partitionFields"])]),_:1},8,["label"]),Object(c["createVNode"])(n,{label:e.$t("otherProperties"),name:"otherProperties"},{default:Object(c["withCtx"])(()=>[Object(c["createVNode"])(x,{propertiesObj:s,ref_key:"propertiesRef",ref:f},null,8,["propertiesObj"])]),_:1},8,["label"])]),_:1})]),Object(c["createElementVNode"])("div",z,[Object(c["createVNode"])(u,{type:"primary",onClick:O,loading:a.value,class:"btn g-mr-12"},{default:Object(c["withCtx"])(()=>[Object(c["createTextVNode"])(Object(c["toDisplayString"])(e.$t("ok")),1)]),_:1},8,["loading"]),Object(c["createVNode"])(u,{type:"ghost",onClick:y,class:"btn"},{default:Object(c["withCtx"])(()=>[Object(c["createTextVNode"])(Object(c["toDisplayString"])(e.$t("cancel")),1)]),_:1})])])])}}});a("4dbb");const F=u()(I,[["__scopeId","data-v-5c84690d"]]);t["default"]=F},"4dbb":function(e,t,a){"use strict";a("cf8e")},5738:function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"d",(function(){return o})),a.d(t,"m",(function(){return l})),a.d(t,"l",(function(){return r})),a.d(t,"f",(function(){return s})),a.d(t,"q",(function(){return i})),a.d(t,"j",(function(){return u})),a.d(t,"i",(function(){return d})),a.d(t,"k",(function(){return b})),a.d(t,"e",(function(){return p})),a.d(t,"g",(function(){return f})),a.d(t,"h",(function(){return g})),a.d(t,"o",(function(){return m})),a.d(t,"r",(function(){return O})),a.d(t,"p",(function(){return j})),a.d(t,"a",(function(){return v})),a.d(t,"b",(function(){return h})),a.d(t,"n",(function(){return k}));var c=a("b32d");function n(){return c["a"].get("ams/v1/catalogs")}function o(e){const{catalog:t,keywords:a}=e;return c["a"].get(`ams/v1/catalogs/${t}/databases`,{params:{keywords:a}})}function l(e){const{catalog:t,db:a,keywords:n}=e;return c["a"].get(`ams/v1/catalogs/${t}/databases/${a}/tables`,{params:{keywords:n}})}function r({catalog:e="",db:t="",table:a="",token:n=""}){return c["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/details`,{params:{token:n}})}function s({catalog:e="",db:t="",table:a=""}){return c["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/hive/details`)}function i({catalog:e="",db:t="",table:a=""}){return c["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/upgrade/status`)}function u(e){const{catalog:t,db:a,table:n,page:o,pageSize:l,token:r}=e;return c["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${n}/partitions`,{params:{page:o,pageSize:l,token:r}})}function d(e){const{catalog:t,db:a,table:n,partition:o,specId:l,page:r,pageSize:s,token:i}=e;return c["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${n}/partitions/${o}/files`,{params:{specId:l,page:r,pageSize:s,token:i}})}function b(e){const{catalog:t,db:a,table:n,page:o,pageSize:l,token:r,ref:s,operation:i}=e;return c["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${n}/snapshots`,{params:{page:o,pageSize:l,token:r,ref:s,operation:i}})}function p(e){const{catalog:t,db:a,table:n,snapshotId:o,page:l,pageSize:r,token:s}=e;return c["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${n}/snapshots/${o}/detail`,{params:{page:l,pageSize:r,token:s}})}function f(e){const{catalog:t,db:a,table:n,page:o,pageSize:l,token:r}=e;return c["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${n}/operations`,{params:{page:o,pageSize:l,token:r}})}function g(e){const{catalog:t,db:a,table:n,page:o,pageSize:l,token:r}=e;return c["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${n}/optimizing-processes`,{params:{page:o,pageSize:l,token:r}})}function m(e){const{catalog:t,db:a,table:n,processId:o,page:l,pageSize:r,token:s}=e;return c["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${n}/optimizing-processes/${o}/tasks`,{params:{page:l,pageSize:r,token:s}})}function O({catalog:e="",db:t="",table:a="",properties:n={},pkList:o=[]}){return c["a"].post(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/upgrade`,{properties:n,pkList:o})}function j(){return c["a"].get("ams/v1/upgrade/properties")}function v({catalog:e="",db:t="",table:a="",processId:n=""}){return c["a"].post(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/optimizing-processes/${n}/cancel`)}function h(e){const{catalog:t,db:a,table:n}=e;return c["a"].get(`/ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${n}/branches`)}function k(e){const{catalog:t,db:a,table:n}=e;return c["a"].get(`/ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${n}/tags`)}},8552:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));var c=a("7a23"),n=a("47e2");function o(){const{t:e}=Object(n["b"])(),t=Object(c["computed"])(()=>e("catalog")).value,a=Object(c["computed"])(()=>e("databaseName")).value,o=Object(c["computed"])(()=>e("tableName")).value,l=Object(c["computed"])(()=>e("optimzerGroup")).value,r=Object(c["computed"])(()=>e("resourceGroup")).value,s=Object(c["computed"])(()=>e("parallelism")).value,i=Object(c["computed"])(()=>e("username")).value,u=Object(c["computed"])(()=>e("password")).value,d=Object(c["computed"])(()=>e("database",2)).value,b=Object(c["computed"])(()=>e("table",2)).value,p=Object(c["computed"])(()=>e("name")).value,f=Object(c["computed"])(()=>e("container")).value;return{selectPh:e("selectPlaceholder"),inputPh:e("inputPlaceholder"),selectClPh:e("selectPlaceholder",{selectPh:t}),selectDBPh:e("selectPlaceholder",{selectPh:a}),inputDBPh:e("inputPlaceholder",{inputPh:a}),inputClPh:e("inputPlaceholder",{inputPh:t}),inputTNPh:e("inputPlaceholder",{inputPh:o}),selectOptGroupPh:e("inputPlaceholder",{inputPh:l}),resourceGroupPh:e("inputPlaceholder",{inputPh:r}),parallelismPh:e("inputPlaceholder",{inputPh:s}),usernamePh:e("inputPlaceholder",{inputPh:i}),passwordPh:e("inputPlaceholder",{inputPh:u}),filterDBPh:e("filterPlaceholder",{inputPh:d}),filterTablePh:e("filterPlaceholder",{inputPh:b}),groupNamePh:e("inputPlaceholder",{inputPh:p}),groupContainer:e("selectPlaceholder",{selectPh:f})}}},"9ca6":function(e,t,a){"use strict";a("ebb5")},bc77:function(e,t,a){"use strict";a("11e6")},cf8e:function(e,t,a){},ebb5:function(e,t,a){}}]); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/chunk-6e8ffc4f.79ba1933.js b/ams/dashboard/src/main/resources/static/js/chunk-6e8ffc4f.79ba1933.js deleted file mode 100644 index 4f16fe0138..0000000000 --- a/ams/dashboard/src/main/resources/static/js/chunk-6e8ffc4f.79ba1933.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6e8ffc4f"],{"1ccf":function(e,t,i){"use strict";i("1e91")},"1e91":function(e,t,i){},"1fe5":function(e,t,i){"use strict";i("27a2")},"27a2":function(e,t,i){},"3c7f":function(e,t,i){"use strict";var a=i("7a23"),n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},o=n,s=i("b3f0");function c(e){for(var t=1;te("catalog")).value,i=Object(a["computed"])(()=>e("databaseName")).value,o=Object(a["computed"])(()=>e("tableName")).value,s=Object(a["computed"])(()=>e("optimzerGroup")).value,c=Object(a["computed"])(()=>e("resourceGroup")).value,l=Object(a["computed"])(()=>e("parallelism")).value,r=Object(a["computed"])(()=>e("username")).value,u=Object(a["computed"])(()=>e("password")).value,d=Object(a["computed"])(()=>e("database",2)).value,b=Object(a["computed"])(()=>e("table",2)).value,h=Object(a["computed"])(()=>e("name")).value,p=Object(a["computed"])(()=>e("container")).value;return{selectPh:e("selectPlaceholder"),inputPh:e("inputPlaceholder"),selectClPh:e("selectPlaceholder",{selectPh:t}),selectDBPh:e("selectPlaceholder",{selectPh:i}),inputDBPh:e("inputPlaceholder",{inputPh:i}),inputClPh:e("inputPlaceholder",{inputPh:t}),inputTNPh:e("inputPlaceholder",{inputPh:o}),selectOptGroupPh:e("inputPlaceholder",{inputPh:s}),resourceGroupPh:e("inputPlaceholder",{inputPh:c}),parallelismPh:e("inputPlaceholder",{inputPh:l}),usernamePh:e("inputPlaceholder",{inputPh:r}),passwordPh:e("inputPlaceholder",{inputPh:u}),filterDBPh:e("filterPlaceholder",{inputPh:d}),filterTablePh:e("filterPlaceholder",{inputPh:b}),groupNamePh:e("inputPlaceholder",{inputPh:h}),groupContainer:e("selectPlaceholder",{selectPh:p})}}},"8ad9":function(e,t,i){},"8b65":function(e,t,i){"use strict";i("9815")},9815:function(e,t,i){},a7cb:function(e,t,i){"use strict";i("8ad9")},a899:function(e,t,i){},ac31:function(e,t,i){},bb51:function(e,t,i){"use strict";i.r(t);var a=i("7a23");const n={class:"layout"},o={class:"right-content"},s={class:"content"};function c(e,t,i,c,l,r){const u=Object(a["resolveComponent"])("side-bar"),d=Object(a["resolveComponent"])("top-bar"),b=Object(a["resolveComponent"])("router-view");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",n,[Object(a["createVNode"])(u),Object(a["createElementVNode"])("div",o,[e.showTopBar?(Object(a["openBlock"])(),Object(a["createBlock"])(d,{key:0})):Object(a["createCommentVNode"])("",!0),Object(a["createElementVNode"])("div",s,[Object(a["createVNode"])(b)])])])}var l=i("46fe"),r=i.n(l),u=i("f171"),d=i.n(u);const b=e=>(Object(a["pushScopeId"])("data-v-c08cb56c"),e=e(),Object(a["popScopeId"])(),e),h=b(()=>Object(a["createElementVNode"])("img",{src:r.a,class:"logo-img",alt:""},null,-1)),p={src:d.a,class:"arctic-name",alt:""};function M(e,t,i,n,o,s){const c=Object(a["resolveComponent"])("svg-icon"),l=Object(a["resolveComponent"])("a-menu-item"),r=Object(a["resolveComponent"])("a-menu"),u=Object(a["resolveComponent"])("MenuUnfoldOutlined"),d=Object(a["resolveComponent"])("MenuFoldOutlined"),b=Object(a["resolveComponent"])("a-button"),M=Object(a["resolveComponent"])("TableMenu");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:Object(a["normalizeClass"])([{"side-bar-collapsed":e.collapsed},"side-bar"])},[Object(a["createElementVNode"])("div",{class:Object(a["normalizeClass"])([{"logo-collapsed":e.collapsed},"logo g-flex-ae"]),onMouseenter:t[0]||(t[0]=t=>e.toggleTablesMenu(!1)),onClick:t[1]||(t[1]=(...t)=>e.viewIntroduce&&e.viewIntroduce(...t))},[h,Object(a["withDirectives"])(Object(a["createElementVNode"])("img",p,null,512),[[a["vShow"],!e.collapsed]])],34),Object(a["createVNode"])(r,{selectedKeys:e.selectedKeys,"onUpdate:selectedKeys":t[2]||(t[2]=t=>e.selectedKeys=t),mode:"inline",theme:"dark","inline-collapsed":e.collapsed},{default:Object(a["withCtx"])(()=>[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.menuList,t=>(Object(a["openBlock"])(),Object(a["createBlock"])(l,{key:t.key,onClick:i=>e.navClick(t),onMouseenter:i=>e.mouseenter(t),class:Object(a["normalizeClass"])({"active-color":e.store.isShowTablesMenu&&"tables"===t.key,"table-item-tab":"tables"===t.key})},{icon:Object(a["withCtx"])(()=>[Object(a["createVNode"])(c,{"icon-class":t.icon,class:"svg-icon"},null,8,["icon-class"])]),default:Object(a["withCtx"])(()=>[Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(e.$t(t.title)),1)]),_:2},1032,["onClick","onMouseenter","class"]))),128))]),_:1},8,["selectedKeys","inline-collapsed"]),Object(a["createVNode"])(b,{type:"link",onClick:e.toggleCollapsed,class:"toggle-btn"},{default:Object(a["withCtx"])(()=>[e.collapsed?(Object(a["openBlock"])(),Object(a["createBlock"])(u,{key:0})):(Object(a["openBlock"])(),Object(a["createBlock"])(d,{key:1}))]),_:1},8,["onClick"]),e.store.isShowTablesMenu&&!e.hasToken?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:0,onClick:t[3]||(t[3]=Object(a["withModifiers"])(t=>e.toggleTablesMenu(!1),["self"])),onMouseleave:t[4]||(t[4]=t=>e.toggleTablesMenu(!1)),onMouseenter:t[5]||(t[5]=t=>e.toggleTablesMenu(!0)),class:Object(a["normalizeClass"])([{"collapsed-sub-menu":e.collapsed},"tables-menu-wrap"])},[Object(a["createVNode"])(M,{onGoCreatePage:e.goCreatePage},null,8,["onGoCreatePage"])],34)):Object(a["createCommentVNode"])("",!0)],2)}var m=i("6c02"),j=i("0613");const O={class:"tables-menu"},f={class:"select-catalog g-flex-ac"},v={class:"label"},g={class:"tables-wrap g-flex"},N={class:"database-list"},y={class:"list-wrap"},T={class:"add g-flex-jsb"},z={class:"label"},D={class:"filter-wrap"},w={class:"table-list"},I={class:"list-wrap"},L={class:"add g-flex-jsb"},S={class:"label"},k={class:"filter-wrap"};function C(e,t,i,n,o,s){const c=Object(a["resolveComponent"])("a-select"),l=Object(a["resolveComponent"])("SearchOutlined"),r=Object(a["resolveComponent"])("CloseCircleOutlined"),u=Object(a["resolveComponent"])("a-input-search"),d=Object(a["resolveComponent"])("u-loading"),b=Object(a["resolveComponent"])("virtual-recycle-scroller"),h=Object(a["resolveComponent"])("createDB-modal");return Object(a["openBlock"])(),Object(a["createElementBlock"])(a["Fragment"],null,[Object(a["createElementVNode"])("div",O,[Object(a["createElementVNode"])("div",f,[Object(a["createElementVNode"])("span",v,Object(a["toDisplayString"])(e.$t("catalog")),1),Object(a["createVNode"])(c,{value:e.curCatalog,"onUpdate:value":t[0]||(t[0]=t=>e.curCatalog=t),options:e.catalogOptions,onChange:e.catalogChange,loading:e.catalogLoading,getPopupContainer:e.getPopupContainer,class:"theme-dark"},null,8,["value","options","onChange","loading","getPopupContainer"])]),Object(a["createElementVNode"])("div",g,[Object(a["createElementVNode"])("div",N,[Object(a["createElementVNode"])("div",y,[Object(a["createElementVNode"])("div",T,[Object(a["createElementVNode"])("span",z,Object(a["toDisplayString"])(e.$t("database",2)),1)]),Object(a["createElementVNode"])("div",D,[Object(a["createVNode"])(u,{value:e.DBSearchInput,"onUpdate:value":t[2]||(t[2]=t=>e.DBSearchInput=t),placeholder:e.placeholder.filterDBPh,onChange:t[3]||(t[3]=t=>e.handleSearch("db",t)),class:"theme-dark"},Object(a["createSlots"])({prefix:Object(a["withCtx"])(()=>[Object(a["createVNode"])(l)]),_:2},[e.DBSearchInput?{name:"suffix",fn:Object(a["withCtx"])(()=>[Object(a["createVNode"])(r,{onClick:t[1]||(t[1]=t=>e.clearSearch("db")),class:"input-clear-icon"})])}:void 0]),1032,["value","placeholder"])]),e.loading?(Object(a["openBlock"])(),Object(a["createBlock"])(d,{key:0})):Object(a["createCommentVNode"])("",!0),Object(a["createVNode"])(b,{loading:e.loading,items:e.databaseList,activeItem:e.database,itemSize:40,onHandleClickTable:e.handleClickDb,iconName:"database"},null,8,["loading","items","activeItem","onHandleClickTable"])])]),Object(a["createElementVNode"])("div",w,[Object(a["createElementVNode"])("div",I,[Object(a["createElementVNode"])("div",L,[Object(a["createElementVNode"])("span",S,Object(a["toDisplayString"])(e.$t("table",2)),1)]),Object(a["createElementVNode"])("div",k,[Object(a["createVNode"])(u,{value:e.tableSearchInput,"onUpdate:value":t[5]||(t[5]=t=>e.tableSearchInput=t),placeholder:e.placeholder.filterTablePh,onChange:t[6]||(t[6]=t=>e.handleSearch("table",t)),class:"theme-dark"},Object(a["createSlots"])({prefix:Object(a["withCtx"])(()=>[Object(a["createVNode"])(l)]),_:2},[e.tableSearchInput?{name:"suffix",fn:Object(a["withCtx"])(()=>[Object(a["createVNode"])(r,{onClick:t[4]||(t[4]=t=>e.clearSearch("table")),class:"input-clear-icon"})])}:void 0]),1032,["value","placeholder"])]),e.tableLoading?(Object(a["openBlock"])(),Object(a["createBlock"])(d,{key:0})):Object(a["createCommentVNode"])("",!0),Object(a["createVNode"])(b,{loading:e.tableLoading,items:e.tableList,activeItem:e.tableName,itemSize:40,onHandleClickTable:e.handleClickTable,iconName:"tableOutlined"},null,8,["loading","items","activeItem","onHandleClickTable"])])])])]),Object(a["createVNode"])(h,{visible:e.showCreateDBModal,catalogOptions:e.catalogOptions,onCancel:e.cancel},null,8,["visible","catalogOptions","onCancel"])],64)}var E=i("e9d5"),U=i("411c");function x(e,t,i,n,o,s){const c=Object(a["resolveComponent"])("a-select"),l=Object(a["resolveComponent"])("a-form-item"),r=Object(a["resolveComponent"])("a-input"),u=Object(a["resolveComponent"])("a-form"),d=Object(a["resolveComponent"])("a-modal");return Object(a["openBlock"])(),Object(a["createBlock"])(d,{visible:e.visible,title:e.$t("createDatabase"),onOk:e.handleOk,onCancel:e.handleCancel},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(u,{ref:"formRef",model:e.formState,class:"label-120"},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(l,{name:"catalog",label:e.$t("catalog"),rules:[{required:!0,message:""+e.placeholder.selectClPh}]},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(c,{value:e.formState.catalog,"onUpdate:value":t[0]||(t[0]=t=>e.formState.catalog=t),options:e.catalogOptions,placeholder:e.placeholder.selectClPh},null,8,["value","options","placeholder"])]),_:1},8,["label","rules"]),Object(a["createVNode"])(l,{name:"dbname",label:e.$t("databaseName"),rules:[{required:!0,message:""+e.placeholder.inputDBPh}]},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(r,{value:e.formState.dbname,"onUpdate:value":t[1]||(t[1]=t=>e.formState.dbname=t),placeholder:e.placeholder.inputDBPh},null,8,["value","placeholder"])]),_:1},8,["label","rules"])]),_:1},8,["model"])]),_:1},8,["visible","title","onOk","onCancel"])}var $=i("8552"),A=Object(a["defineComponent"])({props:{visible:{type:Boolean,default:!1},catalogOptions:{type:Array,default:()=>[]}},emits:["cancel"],setup(e,{emit:t}){const i=Object(a["reactive"])(Object($["a"])()),n=Object(a["ref"])(),o=Object(a["reactive"])({catalog:void 0,dbname:""}),s=()=>{n.value.validateFields().then(()=>{n.value.resetFields(),t("cancel")}).catch(e=>{})},c=()=>{n.value.resetFields(),t("cancel")};return{formRef:n,formState:o,placeholder:i,handleOk:s,handleCancel:c}}}),_=i("6b0d"),V=i.n(_);const P=V()(A,[["render",x]]);var B=P,R=i("5738"),Q=i("d257");const Y=["onMouseenter","onClick"],H=["title"];function G(e,t,i,n,o,s){const c=Object(a["resolveComponent"])("svg-icon"),l=Object(a["resolveComponent"])("RecycleScroller"),r=Object(a["resolveComponent"])("a-empty");return Object(a["openBlock"])(),Object(a["createElementBlock"])(a["Fragment"],null,[e.items.length&&!e.loading?(Object(a["openBlock"])(),Object(a["createBlock"])(l,{key:0,class:"scroller",items:e.items,"item-size":40,"key-field":"id"},{default:Object(a["withCtx"])(({item:t})=>[Object(a["createElementVNode"])("div",{class:Object(a["normalizeClass"])([{active:e.activeItem===t.label,"hive-table":"HIVE"===t.type},"desc"]),onMouseenter:i=>e.handleMouseEnter(t),onClick:i=>e.handleClickTable(t)},["database"===e.iconName?(Object(a["openBlock"])(),Object(a["createBlock"])(c,{key:0,"icon-class":"database",class:"table-icon g-mr-8"})):(Object(a["openBlock"])(),Object(a["createBlock"])(c,{key:1,"icon-class":e.tableTypeIconMap[t.type],class:"table-icon g-mr-8"},null,8,["icon-class"])),Object(a["createElementVNode"])("p",{title:t.label,class:"name g-text-nowrap"},Object(a["toDisplayString"])(t.label),9,H)],42,Y)]),_:1},8,["items"])):Object(a["createCommentVNode"])("",!0),e.items.length||e.loading?Object(a["createCommentVNode"])("",!0):(Object(a["openBlock"])(),Object(a["createBlock"])(r,{key:1,class:"theme-dark",image:e.simpleImage},null,8,["image"]))],64)}i("06f4");var Z=i("fc25");function F(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var i=e.indexOf("Trident/");if(i>0){var a=e.indexOf("rv:");return parseInt(e.substring(a+3,e.indexOf(".",a)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}let W;function q(){q.init||(q.init=!0,W=-1!==F())}var J={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){q(),Object(a["nextTick"])(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",W&&this.$el.appendChild(e),e.data="about:blank",W||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!W&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const X=Object(a["withScopeId"])("data-v-b329ee4c");Object(a["pushScopeId"])("data-v-b329ee4c");const K={class:"resize-observer",tabindex:"-1"};Object(a["popScopeId"])();const ee=X((e,t,i,n,o,s)=>(Object(a["openBlock"])(),Object(a["createBlock"])("div",K)));J.render=ee,J.__scopeId="data-v-b329ee4c",J.__file="src/components/ResizeObserver.vue";function te(e){return te="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(e)}function ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ae(e,t){for(var i=0;ie.length)&&(t=e.length);for(var i=0,a=new Array(t);i2&&void 0!==arguments[2]?arguments[2]:{},s=function(s){for(var c=arguments.length,l=new Array(c>1?c-1:0),r=1;r1){var a=e.find((function(e){return e.isIntersecting}));a&&(t=a)}if(i.callback){var n=t.isIntersecting&&t.intersectionRatio>=i.threshold;if(n===i.oldResult)return;i.oldResult=n,i.callback(n,t)}}),this.options.intersection),Object(a["nextTick"])((function(){i.observer&&i.observer.observe(i.el)}))}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&"number"===typeof this.options.intersection.threshold?this.options.intersection.threshold:0}}]),e}();function Me(e,t,i){var a=t.value;if(a)if("undefined"===typeof IntersectionObserver);else{var n=new pe(e,a,i);e._vue_visibilityState=n}}function me(e,t,i){var a=t.value,n=t.oldValue;if(!he(a,n)){var o=e._vue_visibilityState;a?o?o.createObserver(a,i):Me(e,{value:a},i):je(e)}}function je(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Oe={beforeMount:Me,updated:me,unmounted:je};var fe=function(e){return{all:e=e||new Map,on:function(t,i){var a=e.get(t);a&&a.push(i)||e.set(t,[i])},off:function(t,i){var a=e.get(t);a&&a.splice(a.indexOf(i)>>>0,1)},emit:function(t,i){(e.get(t)||[]).slice().map((function(e){e(i)})),(e.get("*")||[]).slice().map((function(e){e(t,i)}))}}},ve={itemsLimit:1e3},ge=/(auto|scroll)/;function Ne(e,t){return null===e.parentNode?t:Ne(e.parentNode,t.concat([e]))}var ye=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},Te=function(e){return ye(e,"overflow")+ye(e,"overflow-y")+ye(e,"overflow-x")},ze=function(e){return ge.test(Te(e))};function De(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Ne(e.parentNode,[]),i=0;i{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,i,n,o){const s=Object(a["markRaw"])({id:Ce++,index:t,used:!0,key:n,type:o}),c=Object(a["shallowReactive"])({item:i,position:0,nr:s});return e.push(c),c},unuseView(e,t=!1){const i=this.$_unusedViews,a=e.nr.type;let n=i.get(a);n||(n=[],i.set(a,n)),n.push(e),t||(e.nr.used=!1,e.position=-9999,this.$_views.delete(e.nr.key))},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){this.$_scrollDirty||(this.$_scrollDirty=!0,requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,100))}))},handleVisibilityChange(e,t){this.ready&&(e||0!==t.boundingClientRect.width||0!==t.boundingClientRect.height?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const i=this.itemSize,a=this.$_computedMinItemSize,n=this.typeField,o=this.simpleArray?null:this.keyField,s=this.items,c=s.length,l=this.sizes,r=this.$_views,u=this.$_unusedViews,d=this.pool;let b,h,p,M;if(c)if(this.$_prerender)b=0,h=this.prerender,p=null;else{const e=this.getScroll();if(t){let t=e.start-this.$_lastUpdateScrollPosition;if(t<0&&(t=-t),null===i&&te.start&&(n=o),o=~~((a+n)/2)}while(o!==i);for(o<0&&(o=0),b=o,p=l[c-1].accumulator,h=o;hc&&(h=c))}else b=~~(e.start/i),h=Math.ceil(e.end/i),b<0&&(b=0),h>c&&(h=c),p=c*i}else b=h=p=0;h-b>ve.itemsLimit&&this.itemsLimitError(),this.totalSize=p;const m=b<=this.$_endIndex&&h>=this.$_startIndex;if(this.$_continuous!==m){if(m){r.clear(),u.clear();for(let e=0,t=d.length;eo?e[o]===M.item[o]:e===M.item)),(-1===M.nr.index||M.nr.index=h)&&this.unuseView(M));const j=m?null:new Map;let O,f,v,g;for(let N=b;N=v.length)&&(M=this.addView(d,N,O,e,f),this.unuseView(M,!0),v=u.get(f)),M=v[g],M.item=O,M.nr.used=!0,M.nr.index=N,M.nr.key=e,M.nr.type=f,j.set(f,g+1),g++),r.set(e,M)),M.position=null===i?l[N-1].accumulator:N*i):M&&this.unuseView(M)}return this.$_startIndex=b,this.$_endIndex=h,this.emitUpdate&&this.$emit("update",b,h),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,300),{continuous:m}},getListenerTarget(){let e=De(this.$el);return!window.document||e!==window.document.documentElement&&e!==window.document.body||(e=window),e},getScroll(){const{$el:e,direction:t}=this,i="vertical"===t;let a;if(this.pageMode){const t=e.getBoundingClientRect(),n=i?t.height:t.width;let o=-(i?t.top:t.left),s=i?window.innerHeight:window.innerWidth;o<0&&(s+=o,o=0),o+s>n&&(s=n-o),a={start:o,end:o+s}}else a=i?{start:e.scrollTop,end:e.scrollTop+e.clientHeight}:{start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return a},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,!!Se&&{passive:!0}),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;t=null===this.itemSize?e>0?this.sizes[e-1].accumulator:0:e*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){"vertical"===this.direction?this.$el.scrollTop=e:this.$el.scrollLeft=e},itemsLimitError(){throw setTimeout(()=>{}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.index-t.index)}}};const Ue={key:0,class:"vue-recycle-scroller__slot"},xe={key:1,class:"vue-recycle-scroller__slot"};function $e(e,t,i,n,o,s){const c=Object(a["resolveComponent"])("ResizeObserver"),l=Object(a["resolveDirective"])("observe-visibility");return Object(a["withDirectives"])((Object(a["openBlock"])(),Object(a["createBlock"])("div",{class:["vue-recycle-scroller",{ready:o.ready,"page-mode":i.pageMode,["direction-"+e.direction]:!0}],onScrollPassive:t[2]||(t[2]=(...e)=>s.handleScroll&&s.handleScroll(...e))},[e.$slots.before?(Object(a["openBlock"])(),Object(a["createBlock"])("div",Ue,[Object(a["renderSlot"])(e.$slots,"before")])):Object(a["createCommentVNode"])("v-if",!0),Object(a["createVNode"])("div",{ref:"wrapper",style:{["vertical"===e.direction?"minHeight":"minWidth"]:o.totalSize+"px"},class:"vue-recycle-scroller__item-wrapper"},[(Object(a["openBlock"])(!0),Object(a["createBlock"])(a["Fragment"],null,Object(a["renderList"])(o.pool,i=>(Object(a["openBlock"])(),Object(a["createBlock"])("div",{key:i.nr.id,style:o.ready?{transform:`translate${"vertical"===e.direction?"Y":"X"}(${i.position}px)`}:null,class:["vue-recycle-scroller__item-view",{hover:o.hoverKey===i.nr.key}],onMouseenter:e=>o.hoverKey=i.nr.key,onMouseleave:t[1]||(t[1]=e=>o.hoverKey=null)},[Object(a["renderSlot"])(e.$slots,"default",{item:i.item,index:i.nr.index,active:i.nr.used})],46,["onMouseenter"]))),128))],4),e.$slots.after?(Object(a["openBlock"])(),Object(a["createBlock"])("div",xe,[Object(a["renderSlot"])(e.$slots,"after")])):Object(a["createCommentVNode"])("v-if",!0),Object(a["createVNode"])(c,{onNotify:s.handleResize},null,8,["onNotify"])],34)),[[l,s.handleVisibilityChange]])}Ee.render=$e,Ee.__file="src/components/RecycleScroller.vue";var Ae={name:"DynamicScroller",components:{RecycleScroller:Ee},provide(){return"undefined"!==typeof ResizeObserver&&(this.$_resizeObserver=new ResizeObserver(e=>{for(const t of e)if(t.target){const e=new CustomEvent("resize",{detail:{contentRect:t.contentRect}});t.target.dispatchEvent(e)}})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...Ie,minItemSize:{type:[Number,String],required:!0}},emits:["resize","visible"],data(){return{vscrollData:{active:!0,sizes:{},validSizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:Le,itemsWithSize(){const e=[],{items:t,keyField:i,simpleArray:a}=this,n=this.vscrollData.sizes;for(let o=0;o{e.scrollTop=e.scrollHeight+5e3;const t=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,0===this.$_undefinedSizes?this.$_scrollingToBottom=!1:requestAnimationFrame(t)})};requestAnimationFrame(t)})}}};function _e(e,t,i,n,o,s){const c=Object(a["resolveComponent"])("RecycleScroller");return Object(a["openBlock"])(),Object(a["createBlock"])(c,Object(a["mergeProps"])({ref:"scroller",items:s.itemsWithSize,"min-item-size":i.minItemSize,direction:e.direction,"key-field":"id"},e.$attrs,{onResize:s.onScrollerResize,onVisible:s.onScrollerVisible}),{default:Object(a["withCtx"])(({item:t,index:i,active:n})=>[Object(a["renderSlot"])(e.$slots,"default",{item:t.item,index:i,active:n,itemWithSize:t})]),before:Object(a["withCtx"])(()=>[Object(a["renderSlot"])(e.$slots,"before")]),after:Object(a["withCtx"])(()=>[Object(a["renderSlot"])(e.$slots,"after")]),_:1},16,["items","min-item-size","direction","onResize","onVisible"])}Ae.render=_e,Ae.__file="src/components/DynamicScroller.vue";var Ve={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},emits:["resize"],computed:{id(){return this.vscrollData.simpleArray?this.index:this.item[this.vscrollData.keyField]},size(){return this.vscrollData.validSizes[this.id]&&this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(){this.size||this.onDataUpdate()},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(const e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on("vscroll:update",this.onVscrollUpdate)}},mounted(){this.vscrollData.active&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off("vscroll:update",this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData?this.$_watchData=this.$watch("data",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),this.$_forceNextVScrollUpdate!==this.id&&!e&&this.size||this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){const e=this.$el.offsetWidth,t=this.$el.offsetHeight;this.applySize(e,t)}this.$_pendingSizeUpdate=null})},applySize(e,t){const i=Math.round("vertical"===this.vscrollParent.direction?t:e);i&&this.size!==i&&(this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=i,this.vscrollData.validSizes[this.id]=!0,this.emitResize&&this.$emit("resize",this.id))},observeSize(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.observe(this.$el.parentNode),this.$el.parentNode.addEventListener("resize",this.onResize))},unobserveSize(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.unobserve(this.$el.parentNode),this.$el.parentNode.removeEventListener("resize",this.onResize))},onResize(e){const{width:t,height:i}=e.detail.contentRect;this.applySize(t,i)}},render(){return Object(a["h"])(this.tag,this.$slots.default())}};Ve.__file="src/components/DynamicScrollerItem.vue";i("a899");var Pe=i("f38b"),Be=Object(a["defineComponent"])({components:{RecycleScroller:Ee},emits:["mouseEnter","handleClickTable"],setup(e,{emit:t}){const i=e=>{t("mouseEnter",e.label)},a=e=>{t("handleClickTable",e)};return{simpleImage:Z["a"].PRESENTED_IMAGE_SIMPLE,tableTypeIconMap:Pe["d"],handleMouseEnter:i,handleClickTable:a}},props:{items:{type:Array,default:()=>[]},activeItem:{type:String,default:""},itemSize:{type:Number,default:40},iconName:{type:String,default:"tableOutlined"},loading:{type:Boolean,default:!1}}});i("1ccf");const Re=V()(Be,[["render",G],["__scopeId","data-v-abd9edf8"]]);var Qe=Re,Ye=Object(a["defineComponent"])({name:"TablesMenu",components:{SearchOutlined:E["a"],CloseCircleOutlined:U["a"],CreateDBModal:B,virtualRecycleScroller:Qe},emits:["goCreatePage"],setup(e,{emit:t}){const i=Object(m["e"])(),n=Object(m["d"])(),o=Object(j["a"])(),s=Object(a["reactive"])({catalogLoading:!1,DBSearchInput:"",tableSearchInput:"",curCatalog:"",database:"",tableName:"",type:"",catalogOptions:[],showCreateDBModal:!1,loading:!1,tableLoading:!1,databaseList:[],tableList:[]}),c="easylake-menu-catalog-db-table",l=JSON.parse(localStorage.getItem(c)||"{}"),r=Object(a["reactive"])(Object($["a"])()),u=e=>{"table"===e?b():h()},d=e=>{"table"===e?(s.tableSearchInput="",b()):(s.DBSearchInput="",h())},b=Object(Q["c"])(()=>{D()}),h=Object(Q["c"])(()=>{z(!0)}),p=e=>{s.database!==e.id&&(s.database=e.id,s.tableName="",D())},M=e=>e.parentNode,O=()=>{},f=e=>{s.curCatalog=e,s.databaseList.length=0,s.tableList.length=0,z()},v=()=>{s.showCreateDBModal=!0},g=()=>{s.showCreateDBModal=!1},N=()=>{t("goCreatePage")},y=e=>{s.tableName=e.label,s.type=e.type,localStorage.setItem(c,JSON.stringify({catalog:s.curCatalog,database:s.database,tableName:e.label})),o.updateTablesMenu(!1);const t="HIVE"===e.type?"/hive-tables":"/tables",a={path:t,query:{catalog:s.curCatalog,db:s.database,table:s.tableName,type:s.type}};n.path.indexOf("tables")>-1?i.replace(a):i.push(a)},T=()=>{s.catalogLoading=!0,Object(R["c"])().then(e=>{if(e){if(s.catalogOptions=(e||[]).map(e=>({value:e.catalogName,label:e.catalogName})),s.catalogOptions.length){var t;const e=s.catalogOptions.findIndex(e=>e.value===l.catalog),i=n.query;s.curCatalog=e>-1?l.catalog:(null===i||void 0===i||null===(t=i.catalog)||void 0===t?void 0:t.toString())||s.catalogOptions[0].value}z()}}).finally(()=>{s.catalogLoading=!1})},z=(e=!1)=>{s.curCatalog&&(s.loading=!0,Object(R["d"])({catalog:s.curCatalog,keywords:s.DBSearchInput}).then(t=>{if(s.databaseList=(t||[]).map(e=>({id:e,label:e})),s.databaseList.length&&!e){var i,a,o,c;const e=s.databaseList.findIndex(e=>e.id===l.database);s.database=e>-1?l.database:s.curCatalog===(null===(i=n.query)||void 0===i||null===(a=i.catalog)||void 0===a?void 0:a.toString())?(null===(o=n.query)||void 0===o||null===(c=o.db)||void 0===c?void 0:c.toString())||s.databaseList[0].id||"":s.databaseList[0].id||"",D()}}).finally(()=>{s.loading=!1}))},D=()=>{s.curCatalog&&s.database&&(s.tableLoading=!0,s.tableList.length=0,Object(R["m"])({catalog:s.curCatalog,db:s.database,keywords:s.tableSearchInput}).then(e=>{s.tableList=(e||[]).map(e=>({id:e.name,label:e.name,type:e.type}))}).finally(()=>{s.tableLoading=!1}))};return Object(a["onBeforeMount"])(()=>{const{database:e,tableName:t}=l;s.database=e,s.tableName=t,T()}),{...Object(a["toRefs"])(s),placeholder:r,handleClickDb:p,getPopupContainer:M,clickDatabase:O,catalogChange:f,addDatabase:v,cancel:g,createTable:N,handleClickTable:y,handleSearch:u,clearSearch:d}}});i("8b65");const He=V()(Ye,[["render",C],["__scopeId","data-v-03551ced"]]);var Ge=He,Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},Fe=Ze,We=i("b3f0");function qe(e){for(var t=1;t!!Object(Q["f"])("token")),c=Object(a["ref"])(0),l=Object(a["computed"])(()=>{const t=[{key:"tables",title:e("tables"),icon:"TableOutlined"}],i=[{key:"tables",title:e("tables"),icon:"tables"},{key:"catalogs",title:e("catalogs"),icon:"catalogs"},{key:"optimizing",title:e("Optimizing"),icon:"optimizers"},{key:"terminal",title:e("terminal"),icon:"terminal"},{key:"settings",title:e("settings"),icon:"settings"}];return s.value?t:i}),r=()=>{const e=i.path.split("/");if(i.path){const t=[e[1]];o.selectedKeys=t.includes("hive-tables")?["tables"]:t}};Object(a["watchEffect"])(()=>{r()});const u=()=>{o.collapsed=!o.collapsed,setTimeout(()=>{window.dispatchEvent(new Event("resize"))},300)},d=e=>{"tables"!==e.key?(t.replace({path:"/"+e.key}),Object(a["nextTick"])(()=>{r()})):Object(a["nextTick"])(()=>{r()})},b=e=>{p("tables"===e.key)},h=()=>{p(!1),t.push({path:"/tables/create"})},p=(e=!1)=>{if(s.value)return;c.value&&clearTimeout(c.value);const t=e?0:200;c.value=setTimeout(()=>{n.updateTablesMenu(e)},t)},M=()=>{t.push({path:"/introduce"})};return{...Object(a["toRefs"])(o),hasToken:s,menuList:l,toggleCollapsed:u,navClick:d,mouseenter:b,store:n,toggleTablesMenu:p,goCreatePage:h,viewIntroduce:M}}});i("78d8");const lt=V()(ct,[["render",M],["__scopeId","data-v-c08cb56c"]]);var rt=lt;const ut={class:"custom-top-bar"},dt={class:"version-info"},bt={class:"g-mr-8"},ht={class:"g-mr-8"};function pt(e,t,i,n,o,s){const c=Object(a["resolveComponent"])("question-circle-outlined"),l=Object(a["resolveComponent"])("a-tooltip"),r=Object(a["resolveComponent"])("LogoutOutlined"),u=Object(a["resolveComponent"])("a-button");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",ut,[Object(a["createElementVNode"])("div",dt,[Object(a["createElementVNode"])("span",bt,Object(a["toDisplayString"])(`${e.$t("version")}: ${e.verInfo.version}`),1),Object(a["createElementVNode"])("span",ht,Object(a["toDisplayString"])(`${e.$t("commitTime")}: ${e.verInfo.commitTime}`),1)]),Object(a["createVNode"])(l,{placement:"bottomRight","arrow-point-at-center":"",overlayClassName:"topbar-tooltip"},{title:Object(a["withCtx"])(()=>[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("userGuide")),1)]),default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(c,{class:"question-icon",onClick:e.goDocs},null,8,["onClick"])]),_:1}),Object(a["createVNode"])(l,null,{title:Object(a["withCtx"])(()=>[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("logout")),1)]),default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(u,{class:"logout-button",onClick:e.handleLogout},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(r,{style:{"font-size":"1.2em"}})]),_:1},8,["onClick"])]),_:1})])}i("cd17");var Mt=i("ed3b"),mt=i("3c7f"),jt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},Ot=jt;function ft(e){for(var t=1;t{const t=await Tt();t&&(e.version=t.version,e.commitTime=t.commitTime)},n=async()=>{Mt["a"].confirm({title:t("logoutModalTitle"),content:"",okText:"",cancelText:"",onOk:async()=>{try{await zt["a"].logout()}catch(e){}finally{const e=Object(j["a"])();e.updateUserInfo({userName:""}),window.location.href="/login"}}})},o=()=>{window.open("https://amoro.netease.com/docs/latest/")};return Object(a["onMounted"])(()=>{i()}),{verInfo:e,goDocs:o,handleLogout:n}}});i("a7cb");const wt=V()(Dt,[["render",pt]]);var It=wt,Lt=Object(a["defineComponent"])({name:"Layout",components:{SideBar:rt,TopBar:It},props:{menus:{type:Array,default:()=>[]},showTopBar:{type:Boolean,default:!0}}});i("1fe5");const St=V()(Lt,[["render",c],["__scopeId","data-v-148e5fa0"]]);var kt=St,Ct=Object(a["defineComponent"])({__name:"Home",setup(e){return(e,t)=>(Object(a["openBlock"])(),Object(a["createBlock"])(kt))}});const Et=Ct;t["default"]=Et},f171:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSIyMjQuOTk5OTg0NzQxMjEwOTQiIGhlaWdodD0iNTAiIHZpZXdCb3g9IjAgMCAyMjQuOTk5OTg0NzQxMjEwOTQgNTAiPjxnIHN0eWxlPSJtaXgtYmxlbmQtbW9kZTpwYXNzdGhyb3VnaCI+PHBhdGggZD0iTTIxLjI1MDUsMEwyOS4wNzA1LDMxLjM2NDlMNDMuOTAzNSwwTDU4Ljc5NDIsMEw1My4xMjYyLDUwTDQwLjM0OSw1MEw0My45MDM1LDIzLjY2NzNMMzIuNjA1OCw0Ni42NDUyTDIxLjI1MDUsNDYuNjQ1MkwxNS41NjMyLDI0LjU2MzRMMTIuNzU4LDUwTDAsNTBMNS42NjgwNywzLjM1NDc4TDIuODA1MjEsMEwyMS4yNTA1LDBaTTEwOS45NjEsMFExMTAuOTc5LDAsMTExLjg2MywwLjQzNjU4MVExMTIuNzY2LDAuODczMTYyLDExMy4zODEsMS42NzczOVExMTQuMDE1LDIuNDU4NjQsMTE0LjIyNiwzLjUzODZRMTE0LjQ1Nyw0LjU5NTU5LDExNC4xNjgsNS45MjgzMUwxMDkuMjExLDUwTDY5LjUxNTUsNTBRNjguNDk3Miw1MCw2Ny41OTQyLDQ5LjU2MzRRNjYuNzEwMyw0OS4xMDM5LDY2LjA3NjMsNDguMzIyNlE2NS40NjE0LDQ3LjUxODQsNjUuMjMwOSw0Ni40MTU0UTY1LjAxOTUsNDUuMzEyNSw2NS4zMDc3LDQ0LjA3MTdMNzAuMjY0OSwwTDEwOS45NjEsMFpNODMuMDIyOCw4LjUwMTg0TDc5LjQ4NzUsNDEuNDk4Mkw5NS43ODA4LDQxLjQ5ODJMOTkuOTg4Niw4LjUwMTg0TDgzLjAyMjgsOC41MDE4NFpNMTY5LjE3NywwTDE2Ni4zNzIsMjQuOTU0UTE2Ni4zNzIsMjYuMTcxOSwxNjUuODkyLDI3LjI5NzhRMTY1LjQxMiwyOC40MDA3LDE2NC42MDUsMjkuMjA1UTE2My43OTgsMjkuOTg2MiwxNjIuNzk5LDMwLjQ0NThRMTYxLjc5OSwzMC44ODIzLDE2MC42ODUsMzAuODgyM0wxNTEuNDYyLDMwLjg4MjNMMTY2LjM3Miw1MEwxNTAuODA5LDUwTDEzNi42MjksMzAuODgyM0wxMzQuNDk3LDUwTDEyMC4zMzYsNTBMMTI1LjI3NCwzLjM1NDc4TDEyMy4xNDEsMEwxNjkuMTc3LDBaTTEzOC43ODEsOC41MDE4NEwxMzcuMzAyLDIyLjM4MDVMMTUyLjk0MiwyMi4zODA1TDE1NC4zNDQsOC41MDE4NEwxMzguNzgxLDguNTAxODRaTTIyMC42MzIsMFEyMjEuNjUsMCwyMjIuNTM0LDAuNDM2NTgxUTIyMy40MzcsMC44NzMxNjIsMjI0LjA1MiwxLjY3NzM5UTIyNC42ODYsMi40NTg2NCwyMjQuODk4LDMuNTM4NlEyMjUuMTI4LDQuNTk1NTksMjI0Ljg0LDUuOTI4MzFMMjE5Ljg4Myw1MEwxODAuMTg3LDUwUTE3OS4xNjksNTAsMTc4LjI2Niw0OS41NjM0UTE3Ny4zODIsNDkuMTAzOSwxNzYuNzQ4LDQ4LjMyMjZRMTc2LjEzMyw0Ny41MTg0LDE3NS45MDIsNDYuNDE1NFExNzUuNjkxLDQ1LjMxMjUsMTc1Ljk3OSw0NC4wNzE3TDE4MC45MzYsMEwyMjAuNjMyLDBaTTE5My42OTQsOC41MDE4NEwxOTAuMTU5LDQxLjQ5ODJMMjA2LjQ1Miw0MS40OTgyTDIxMC42Niw4LjUwMTg0TDE5My42OTQsOC41MDE4NFoiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIvPjwvZz48L3N2Zz4="},f38b:function(e,t,i){"use strict";var a,n,o,s,c;i.d(t,"b",(function(){return a})),i.d(t,"e",(function(){return n})),i.d(t,"d",(function(){return o})),i.d(t,"a",(function(){return s})),i.d(t,"c",(function(){return c})),function(e){e["Created"]="#f5f5f5",e["Failed"]="#fff2f0",e["Finished"]="#f6ffed",e["Canceled"]="#f5f5f5"}(a||(a={})),function(e){e["failed"]="FAILED",e["upgrading"]="UPGRADING",e["success"]="SUCCESS",e["none"]="NONE"}(n||(n={})),function(e){e["ICEBERG"]="iceberg",e["ARCTIC"]="amoro",e["HIVE"]="hive",e["PAIMON"]="paimon"}(o||(o={})),function(e){e["BRANCH"]="branch",e["TAG"]="tag"}(s||(s={})),function(e){e["ALL"]="all",e["OPTIMIZING"]="optimizing",e["NONOPTIMIZING"]="non-optimizing"}(c||(c={}))}}]); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/chunk-6e8ffc4f.9a06c4c8.js b/ams/dashboard/src/main/resources/static/js/chunk-6e8ffc4f.9a06c4c8.js new file mode 100644 index 0000000000..b17f614dcf --- /dev/null +++ b/ams/dashboard/src/main/resources/static/js/chunk-6e8ffc4f.9a06c4c8.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6e8ffc4f"],{"1ccf":function(e,t,i){"use strict";i("1e91")},"1e91":function(e,t,i){},"1fe5":function(e,t,i){"use strict";i("27a2")},"27a2":function(e,t,i){},"3c7f":function(e,t,i){"use strict";var a=i("7a23"),n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},o=n,s=i("b3f0");function c(e){for(var t=1;te("catalog")).value,i=Object(a["computed"])(()=>e("databaseName")).value,o=Object(a["computed"])(()=>e("tableName")).value,s=Object(a["computed"])(()=>e("optimzerGroup")).value,c=Object(a["computed"])(()=>e("resourceGroup")).value,l=Object(a["computed"])(()=>e("parallelism")).value,r=Object(a["computed"])(()=>e("username")).value,u=Object(a["computed"])(()=>e("password")).value,d=Object(a["computed"])(()=>e("database",2)).value,b=Object(a["computed"])(()=>e("table",2)).value,p=Object(a["computed"])(()=>e("name")).value,h=Object(a["computed"])(()=>e("container")).value;return{selectPh:e("selectPlaceholder"),inputPh:e("inputPlaceholder"),selectClPh:e("selectPlaceholder",{selectPh:t}),selectDBPh:e("selectPlaceholder",{selectPh:i}),inputDBPh:e("inputPlaceholder",{inputPh:i}),inputClPh:e("inputPlaceholder",{inputPh:t}),inputTNPh:e("inputPlaceholder",{inputPh:o}),selectOptGroupPh:e("inputPlaceholder",{inputPh:s}),resourceGroupPh:e("inputPlaceholder",{inputPh:c}),parallelismPh:e("inputPlaceholder",{inputPh:l}),usernamePh:e("inputPlaceholder",{inputPh:r}),passwordPh:e("inputPlaceholder",{inputPh:u}),filterDBPh:e("filterPlaceholder",{inputPh:d}),filterTablePh:e("filterPlaceholder",{inputPh:b}),groupNamePh:e("inputPlaceholder",{inputPh:p}),groupContainer:e("selectPlaceholder",{selectPh:h})}}},"8ad9":function(e,t,i){},"8b65":function(e,t,i){"use strict";i("9815")},9815:function(e,t,i){},a7cb:function(e,t,i){"use strict";i("8ad9")},a899:function(e,t,i){},ac31:function(e,t,i){},bb51:function(e,t,i){"use strict";i.r(t);var a=i("7a23");const n={class:"layout"},o={class:"right-content"},s={class:"content"};function c(e,t,i,c,l,r){const u=Object(a["resolveComponent"])("side-bar"),d=Object(a["resolveComponent"])("top-bar"),b=Object(a["resolveComponent"])("router-view");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",n,[Object(a["createVNode"])(u),Object(a["createElementVNode"])("div",o,[e.showTopBar?(Object(a["openBlock"])(),Object(a["createBlock"])(d,{key:0})):Object(a["createCommentVNode"])("",!0),Object(a["createElementVNode"])("div",s,[Object(a["createVNode"])(b)])])])}var l=i("46fe"),r=i.n(l),u=i("f171"),d=i.n(u);const b=e=>(Object(a["pushScopeId"])("data-v-c08cb56c"),e=e(),Object(a["popScopeId"])(),e),p=b(()=>Object(a["createElementVNode"])("img",{src:r.a,class:"logo-img",alt:""},null,-1)),h={src:d.a,class:"arctic-name",alt:""};function M(e,t,i,n,o,s){const c=Object(a["resolveComponent"])("svg-icon"),l=Object(a["resolveComponent"])("a-menu-item"),r=Object(a["resolveComponent"])("a-menu"),u=Object(a["resolveComponent"])("MenuUnfoldOutlined"),d=Object(a["resolveComponent"])("MenuFoldOutlined"),b=Object(a["resolveComponent"])("a-button"),M=Object(a["resolveComponent"])("TableMenu");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{class:Object(a["normalizeClass"])([{"side-bar-collapsed":e.collapsed},"side-bar"])},[Object(a["createElementVNode"])("div",{class:Object(a["normalizeClass"])([{"logo-collapsed":e.collapsed},"logo g-flex-ae"]),onMouseenter:t[0]||(t[0]=t=>e.toggleTablesMenu(!1)),onClick:t[1]||(t[1]=(...t)=>e.viewIntroduce&&e.viewIntroduce(...t))},[p,Object(a["withDirectives"])(Object(a["createElementVNode"])("img",h,null,512),[[a["vShow"],!e.collapsed]])],34),Object(a["createVNode"])(r,{selectedKeys:e.selectedKeys,"onUpdate:selectedKeys":t[2]||(t[2]=t=>e.selectedKeys=t),mode:"inline",theme:"dark","inline-collapsed":e.collapsed},{default:Object(a["withCtx"])(()=>[(Object(a["openBlock"])(!0),Object(a["createElementBlock"])(a["Fragment"],null,Object(a["renderList"])(e.menuList,t=>(Object(a["openBlock"])(),Object(a["createBlock"])(l,{key:t.key,onClick:i=>e.navClick(t),onMouseenter:i=>e.mouseenter(t),class:Object(a["normalizeClass"])({"active-color":e.store.isShowTablesMenu&&"tables"===t.key,"table-item-tab":"tables"===t.key})},{icon:Object(a["withCtx"])(()=>[Object(a["createVNode"])(c,{"icon-class":t.icon,class:"svg-icon"},null,8,["icon-class"])]),default:Object(a["withCtx"])(()=>[Object(a["createElementVNode"])("span",null,Object(a["toDisplayString"])(e.$t(t.title)),1)]),_:2},1032,["onClick","onMouseenter","class"]))),128))]),_:1},8,["selectedKeys","inline-collapsed"]),Object(a["createVNode"])(b,{type:"link",onClick:e.toggleCollapsed,class:"toggle-btn"},{default:Object(a["withCtx"])(()=>[e.collapsed?(Object(a["openBlock"])(),Object(a["createBlock"])(u,{key:0})):(Object(a["openBlock"])(),Object(a["createBlock"])(d,{key:1}))]),_:1},8,["onClick"]),e.store.isShowTablesMenu&&!e.hasToken?(Object(a["openBlock"])(),Object(a["createElementBlock"])("div",{key:0,onClick:t[3]||(t[3]=Object(a["withModifiers"])(t=>e.toggleTablesMenu(!1),["self"])),onMouseleave:t[4]||(t[4]=t=>e.toggleTablesMenu(!1)),onMouseenter:t[5]||(t[5]=t=>e.toggleTablesMenu(!0)),class:Object(a["normalizeClass"])([{"collapsed-sub-menu":e.collapsed},"tables-menu-wrap"])},[Object(a["createVNode"])(M,{onGoCreatePage:e.goCreatePage},null,8,["onGoCreatePage"])],34)):Object(a["createCommentVNode"])("",!0)],2)}var m=i("6c02"),j=i("0613");const O={class:"tables-menu"},f={class:"select-catalog g-flex-ac"},v={class:"label"},g={class:"tables-wrap g-flex"},N={class:"database-list"},y={class:"list-wrap"},T={class:"add g-flex-jsb"},z={class:"label"},D={class:"filter-wrap"},w={class:"table-list"},I={class:"list-wrap"},L={class:"add g-flex-jsb"},S={class:"label"},k={class:"filter-wrap"};function C(e,t,i,n,o,s){const c=Object(a["resolveComponent"])("a-select"),l=Object(a["resolveComponent"])("SearchOutlined"),r=Object(a["resolveComponent"])("CloseCircleOutlined"),u=Object(a["resolveComponent"])("a-input-search"),d=Object(a["resolveComponent"])("u-loading"),b=Object(a["resolveComponent"])("virtual-recycle-scroller"),p=Object(a["resolveComponent"])("createDB-modal");return Object(a["openBlock"])(),Object(a["createElementBlock"])(a["Fragment"],null,[Object(a["createElementVNode"])("div",O,[Object(a["createElementVNode"])("div",f,[Object(a["createElementVNode"])("span",v,Object(a["toDisplayString"])(e.$t("catalog")),1),Object(a["createVNode"])(c,{value:e.curCatalog,"onUpdate:value":t[0]||(t[0]=t=>e.curCatalog=t),options:e.catalogOptions,onChange:e.catalogChange,loading:e.catalogLoading,getPopupContainer:e.getPopupContainer,class:"theme-dark"},null,8,["value","options","onChange","loading","getPopupContainer"])]),Object(a["createElementVNode"])("div",g,[Object(a["createElementVNode"])("div",N,[Object(a["createElementVNode"])("div",y,[Object(a["createElementVNode"])("div",T,[Object(a["createElementVNode"])("span",z,Object(a["toDisplayString"])(e.$t("database",2)),1)]),Object(a["createElementVNode"])("div",D,[Object(a["createVNode"])(u,{value:e.DBSearchInput,"onUpdate:value":t[2]||(t[2]=t=>e.DBSearchInput=t),placeholder:e.placeholder.filterDBPh,onChange:t[3]||(t[3]=t=>e.handleSearch("db",t)),class:"theme-dark"},Object(a["createSlots"])({prefix:Object(a["withCtx"])(()=>[Object(a["createVNode"])(l)]),_:2},[e.DBSearchInput?{name:"suffix",fn:Object(a["withCtx"])(()=>[Object(a["createVNode"])(r,{onClick:t[1]||(t[1]=t=>e.clearSearch("db")),class:"input-clear-icon"})])}:void 0]),1032,["value","placeholder"])]),e.loading?(Object(a["openBlock"])(),Object(a["createBlock"])(d,{key:0})):Object(a["createCommentVNode"])("",!0),Object(a["createVNode"])(b,{loading:e.loading,items:e.databaseList,activeItem:e.database,itemSize:40,onHandleClickTable:e.handleClickDb,iconName:"database"},null,8,["loading","items","activeItem","onHandleClickTable"])])]),Object(a["createElementVNode"])("div",w,[Object(a["createElementVNode"])("div",I,[Object(a["createElementVNode"])("div",L,[Object(a["createElementVNode"])("span",S,Object(a["toDisplayString"])(e.$t("table",2)),1)]),Object(a["createElementVNode"])("div",k,[Object(a["createVNode"])(u,{value:e.tableSearchInput,"onUpdate:value":t[5]||(t[5]=t=>e.tableSearchInput=t),placeholder:e.placeholder.filterTablePh,onChange:t[6]||(t[6]=t=>e.handleSearch("table",t)),class:"theme-dark"},Object(a["createSlots"])({prefix:Object(a["withCtx"])(()=>[Object(a["createVNode"])(l)]),_:2},[e.tableSearchInput?{name:"suffix",fn:Object(a["withCtx"])(()=>[Object(a["createVNode"])(r,{onClick:t[4]||(t[4]=t=>e.clearSearch("table")),class:"input-clear-icon"})])}:void 0]),1032,["value","placeholder"])]),e.tableLoading?(Object(a["openBlock"])(),Object(a["createBlock"])(d,{key:0})):Object(a["createCommentVNode"])("",!0),Object(a["createVNode"])(b,{loading:e.tableLoading,items:e.tableList,activeItem:e.tableName,itemSize:40,onHandleClickTable:e.handleClickTable,iconName:"tableOutlined"},null,8,["loading","items","activeItem","onHandleClickTable"])])])])]),Object(a["createVNode"])(p,{visible:e.showCreateDBModal,catalogOptions:e.catalogOptions,onCancel:e.cancel},null,8,["visible","catalogOptions","onCancel"])],64)}var E=i("e9d5"),U=i("411c");function x(e,t,i,n,o,s){const c=Object(a["resolveComponent"])("a-select"),l=Object(a["resolveComponent"])("a-form-item"),r=Object(a["resolveComponent"])("a-input"),u=Object(a["resolveComponent"])("a-form"),d=Object(a["resolveComponent"])("a-modal");return Object(a["openBlock"])(),Object(a["createBlock"])(d,{visible:e.visible,title:e.$t("createDatabase"),onOk:e.handleOk,onCancel:e.handleCancel},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(u,{ref:"formRef",model:e.formState,class:"label-120"},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(l,{name:"catalog",label:e.$t("catalog"),rules:[{required:!0,message:""+e.placeholder.selectClPh}]},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(c,{value:e.formState.catalog,"onUpdate:value":t[0]||(t[0]=t=>e.formState.catalog=t),options:e.catalogOptions,placeholder:e.placeholder.selectClPh},null,8,["value","options","placeholder"])]),_:1},8,["label","rules"]),Object(a["createVNode"])(l,{name:"dbname",label:e.$t("databaseName"),rules:[{required:!0,message:""+e.placeholder.inputDBPh}]},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(r,{value:e.formState.dbname,"onUpdate:value":t[1]||(t[1]=t=>e.formState.dbname=t),placeholder:e.placeholder.inputDBPh},null,8,["value","placeholder"])]),_:1},8,["label","rules"])]),_:1},8,["model"])]),_:1},8,["visible","title","onOk","onCancel"])}var $=i("8552"),A=Object(a["defineComponent"])({props:{visible:{type:Boolean,default:!1},catalogOptions:{type:Array,default:()=>[]}},emits:["cancel"],setup(e,{emit:t}){const i=Object(a["reactive"])(Object($["a"])()),n=Object(a["ref"])(),o=Object(a["reactive"])({catalog:void 0,dbname:""}),s=()=>{n.value.validateFields().then(()=>{n.value.resetFields(),t("cancel")}).catch(e=>{})},c=()=>{n.value.resetFields(),t("cancel")};return{formRef:n,formState:o,placeholder:i,handleOk:s,handleCancel:c}}}),_=i("6b0d"),V=i.n(_);const P=V()(A,[["render",x]]);var B=P,R=i("5738"),Q=i("d257");const Y=["onMouseenter","onClick"],H=["title"];function G(e,t,i,n,o,s){const c=Object(a["resolveComponent"])("svg-icon"),l=Object(a["resolveComponent"])("RecycleScroller"),r=Object(a["resolveComponent"])("a-empty");return Object(a["openBlock"])(),Object(a["createElementBlock"])(a["Fragment"],null,[e.items.length&&!e.loading?(Object(a["openBlock"])(),Object(a["createBlock"])(l,{key:0,class:"scroller",items:e.items,"item-size":40,"key-field":"id"},{default:Object(a["withCtx"])(({item:t})=>[Object(a["createElementVNode"])("div",{class:Object(a["normalizeClass"])([{active:e.activeItem===t.label,"hive-table":"HIVE"===t.type},"desc"]),onMouseenter:i=>e.handleMouseEnter(t),onClick:i=>e.handleClickTable(t)},["database"===e.iconName?(Object(a["openBlock"])(),Object(a["createBlock"])(c,{key:0,"icon-class":"database",class:"table-icon g-mr-8"})):(Object(a["openBlock"])(),Object(a["createBlock"])(c,{key:1,"icon-class":e.tableTypeIconMap[t.type],class:"table-icon g-mr-8"},null,8,["icon-class"])),Object(a["createElementVNode"])("p",{title:t.label,class:"name g-text-nowrap"},Object(a["toDisplayString"])(t.label),9,H)],42,Y)]),_:1},8,["items"])):Object(a["createCommentVNode"])("",!0),e.items.length||e.loading?Object(a["createCommentVNode"])("",!0):(Object(a["openBlock"])(),Object(a["createBlock"])(r,{key:1,class:"theme-dark",image:e.simpleImage},null,8,["image"]))],64)}i("06f4");var Z=i("fc25");function F(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var i=e.indexOf("Trident/");if(i>0){var a=e.indexOf("rv:");return parseInt(e.substring(a+3,e.indexOf(".",a)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}let W;function q(){q.init||(q.init=!0,W=-1!==F())}var J={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){q(),Object(a["nextTick"])(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",W&&this.$el.appendChild(e),e.data="about:blank",W||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!W&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const X=Object(a["withScopeId"])("data-v-b329ee4c");Object(a["pushScopeId"])("data-v-b329ee4c");const K={class:"resize-observer",tabindex:"-1"};Object(a["popScopeId"])();const ee=X((e,t,i,n,o,s)=>(Object(a["openBlock"])(),Object(a["createBlock"])("div",K)));J.render=ee,J.__scopeId="data-v-b329ee4c",J.__file="src/components/ResizeObserver.vue";function te(e){return te="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(e)}function ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ae(e,t){for(var i=0;ie.length)&&(t=e.length);for(var i=0,a=new Array(t);i2&&void 0!==arguments[2]?arguments[2]:{},s=function(s){for(var c=arguments.length,l=new Array(c>1?c-1:0),r=1;r1){var a=e.find((function(e){return e.isIntersecting}));a&&(t=a)}if(i.callback){var n=t.isIntersecting&&t.intersectionRatio>=i.threshold;if(n===i.oldResult)return;i.oldResult=n,i.callback(n,t)}}),this.options.intersection),Object(a["nextTick"])((function(){i.observer&&i.observer.observe(i.el)}))}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&"number"===typeof this.options.intersection.threshold?this.options.intersection.threshold:0}}]),e}();function Me(e,t,i){var a=t.value;if(a)if("undefined"===typeof IntersectionObserver);else{var n=new he(e,a,i);e._vue_visibilityState=n}}function me(e,t,i){var a=t.value,n=t.oldValue;if(!pe(a,n)){var o=e._vue_visibilityState;a?o?o.createObserver(a,i):Me(e,{value:a},i):je(e)}}function je(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Oe={beforeMount:Me,updated:me,unmounted:je};var fe=function(e){return{all:e=e||new Map,on:function(t,i){var a=e.get(t);a&&a.push(i)||e.set(t,[i])},off:function(t,i){var a=e.get(t);a&&a.splice(a.indexOf(i)>>>0,1)},emit:function(t,i){(e.get(t)||[]).slice().map((function(e){e(i)})),(e.get("*")||[]).slice().map((function(e){e(t,i)}))}}},ve={itemsLimit:1e3},ge=/(auto|scroll)/;function Ne(e,t){return null===e.parentNode?t:Ne(e.parentNode,t.concat([e]))}var ye=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},Te=function(e){return ye(e,"overflow")+ye(e,"overflow-y")+ye(e,"overflow-x")},ze=function(e){return ge.test(Te(e))};function De(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Ne(e.parentNode,[]),i=0;i{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,i,n,o){const s=Object(a["markRaw"])({id:Ce++,index:t,used:!0,key:n,type:o}),c=Object(a["shallowReactive"])({item:i,position:0,nr:s});return e.push(c),c},unuseView(e,t=!1){const i=this.$_unusedViews,a=e.nr.type;let n=i.get(a);n||(n=[],i.set(a,n)),n.push(e),t||(e.nr.used=!1,e.position=-9999,this.$_views.delete(e.nr.key))},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){this.$_scrollDirty||(this.$_scrollDirty=!0,requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,100))}))},handleVisibilityChange(e,t){this.ready&&(e||0!==t.boundingClientRect.width||0!==t.boundingClientRect.height?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const i=this.itemSize,a=this.$_computedMinItemSize,n=this.typeField,o=this.simpleArray?null:this.keyField,s=this.items,c=s.length,l=this.sizes,r=this.$_views,u=this.$_unusedViews,d=this.pool;let b,p,h,M;if(c)if(this.$_prerender)b=0,p=this.prerender,h=null;else{const e=this.getScroll();if(t){let t=e.start-this.$_lastUpdateScrollPosition;if(t<0&&(t=-t),null===i&&te.start&&(n=o),o=~~((a+n)/2)}while(o!==i);for(o<0&&(o=0),b=o,h=l[c-1].accumulator,p=o;pc&&(p=c))}else b=~~(e.start/i),p=Math.ceil(e.end/i),b<0&&(b=0),p>c&&(p=c),h=c*i}else b=p=h=0;p-b>ve.itemsLimit&&this.itemsLimitError(),this.totalSize=h;const m=b<=this.$_endIndex&&p>=this.$_startIndex;if(this.$_continuous!==m){if(m){r.clear(),u.clear();for(let e=0,t=d.length;eo?e[o]===M.item[o]:e===M.item)),(-1===M.nr.index||M.nr.index=p)&&this.unuseView(M));const j=m?null:new Map;let O,f,v,g;for(let N=b;N=v.length)&&(M=this.addView(d,N,O,e,f),this.unuseView(M,!0),v=u.get(f)),M=v[g],M.item=O,M.nr.used=!0,M.nr.index=N,M.nr.key=e,M.nr.type=f,j.set(f,g+1),g++),r.set(e,M)),M.position=null===i?l[N-1].accumulator:N*i):M&&this.unuseView(M)}return this.$_startIndex=b,this.$_endIndex=p,this.emitUpdate&&this.$emit("update",b,p),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,300),{continuous:m}},getListenerTarget(){let e=De(this.$el);return!window.document||e!==window.document.documentElement&&e!==window.document.body||(e=window),e},getScroll(){const{$el:e,direction:t}=this,i="vertical"===t;let a;if(this.pageMode){const t=e.getBoundingClientRect(),n=i?t.height:t.width;let o=-(i?t.top:t.left),s=i?window.innerHeight:window.innerWidth;o<0&&(s+=o,o=0),o+s>n&&(s=n-o),a={start:o,end:o+s}}else a=i?{start:e.scrollTop,end:e.scrollTop+e.clientHeight}:{start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return a},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,!!Se&&{passive:!0}),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;t=null===this.itemSize?e>0?this.sizes[e-1].accumulator:0:e*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){"vertical"===this.direction?this.$el.scrollTop=e:this.$el.scrollLeft=e},itemsLimitError(){throw setTimeout(()=>{}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.index-t.index)}}};const Ue={key:0,class:"vue-recycle-scroller__slot"},xe={key:1,class:"vue-recycle-scroller__slot"};function $e(e,t,i,n,o,s){const c=Object(a["resolveComponent"])("ResizeObserver"),l=Object(a["resolveDirective"])("observe-visibility");return Object(a["withDirectives"])((Object(a["openBlock"])(),Object(a["createBlock"])("div",{class:["vue-recycle-scroller",{ready:o.ready,"page-mode":i.pageMode,["direction-"+e.direction]:!0}],onScrollPassive:t[2]||(t[2]=(...e)=>s.handleScroll&&s.handleScroll(...e))},[e.$slots.before?(Object(a["openBlock"])(),Object(a["createBlock"])("div",Ue,[Object(a["renderSlot"])(e.$slots,"before")])):Object(a["createCommentVNode"])("v-if",!0),Object(a["createVNode"])("div",{ref:"wrapper",style:{["vertical"===e.direction?"minHeight":"minWidth"]:o.totalSize+"px"},class:"vue-recycle-scroller__item-wrapper"},[(Object(a["openBlock"])(!0),Object(a["createBlock"])(a["Fragment"],null,Object(a["renderList"])(o.pool,i=>(Object(a["openBlock"])(),Object(a["createBlock"])("div",{key:i.nr.id,style:o.ready?{transform:`translate${"vertical"===e.direction?"Y":"X"}(${i.position}px)`}:null,class:["vue-recycle-scroller__item-view",{hover:o.hoverKey===i.nr.key}],onMouseenter:e=>o.hoverKey=i.nr.key,onMouseleave:t[1]||(t[1]=e=>o.hoverKey=null)},[Object(a["renderSlot"])(e.$slots,"default",{item:i.item,index:i.nr.index,active:i.nr.used})],46,["onMouseenter"]))),128))],4),e.$slots.after?(Object(a["openBlock"])(),Object(a["createBlock"])("div",xe,[Object(a["renderSlot"])(e.$slots,"after")])):Object(a["createCommentVNode"])("v-if",!0),Object(a["createVNode"])(c,{onNotify:s.handleResize},null,8,["onNotify"])],34)),[[l,s.handleVisibilityChange]])}Ee.render=$e,Ee.__file="src/components/RecycleScroller.vue";var Ae={name:"DynamicScroller",components:{RecycleScroller:Ee},provide(){return"undefined"!==typeof ResizeObserver&&(this.$_resizeObserver=new ResizeObserver(e=>{for(const t of e)if(t.target){const e=new CustomEvent("resize",{detail:{contentRect:t.contentRect}});t.target.dispatchEvent(e)}})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...Ie,minItemSize:{type:[Number,String],required:!0}},emits:["resize","visible"],data(){return{vscrollData:{active:!0,sizes:{},validSizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:Le,itemsWithSize(){const e=[],{items:t,keyField:i,simpleArray:a}=this,n=this.vscrollData.sizes;for(let o=0;o{e.scrollTop=e.scrollHeight+5e3;const t=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,0===this.$_undefinedSizes?this.$_scrollingToBottom=!1:requestAnimationFrame(t)})};requestAnimationFrame(t)})}}};function _e(e,t,i,n,o,s){const c=Object(a["resolveComponent"])("RecycleScroller");return Object(a["openBlock"])(),Object(a["createBlock"])(c,Object(a["mergeProps"])({ref:"scroller",items:s.itemsWithSize,"min-item-size":i.minItemSize,direction:e.direction,"key-field":"id"},e.$attrs,{onResize:s.onScrollerResize,onVisible:s.onScrollerVisible}),{default:Object(a["withCtx"])(({item:t,index:i,active:n})=>[Object(a["renderSlot"])(e.$slots,"default",{item:t.item,index:i,active:n,itemWithSize:t})]),before:Object(a["withCtx"])(()=>[Object(a["renderSlot"])(e.$slots,"before")]),after:Object(a["withCtx"])(()=>[Object(a["renderSlot"])(e.$slots,"after")]),_:1},16,["items","min-item-size","direction","onResize","onVisible"])}Ae.render=_e,Ae.__file="src/components/DynamicScroller.vue";var Ve={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},emits:["resize"],computed:{id(){return this.vscrollData.simpleArray?this.index:this.item[this.vscrollData.keyField]},size(){return this.vscrollData.validSizes[this.id]&&this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(){this.size||this.onDataUpdate()},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(const e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on("vscroll:update",this.onVscrollUpdate)}},mounted(){this.vscrollData.active&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off("vscroll:update",this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData?this.$_watchData=this.$watch("data",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),this.$_forceNextVScrollUpdate!==this.id&&!e&&this.size||this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){const e=this.$el.offsetWidth,t=this.$el.offsetHeight;this.applySize(e,t)}this.$_pendingSizeUpdate=null})},applySize(e,t){const i=Math.round("vertical"===this.vscrollParent.direction?t:e);i&&this.size!==i&&(this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=i,this.vscrollData.validSizes[this.id]=!0,this.emitResize&&this.$emit("resize",this.id))},observeSize(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.observe(this.$el.parentNode),this.$el.parentNode.addEventListener("resize",this.onResize))},unobserveSize(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.unobserve(this.$el.parentNode),this.$el.parentNode.removeEventListener("resize",this.onResize))},onResize(e){const{width:t,height:i}=e.detail.contentRect;this.applySize(t,i)}},render(){return Object(a["h"])(this.tag,this.$slots.default())}};Ve.__file="src/components/DynamicScrollerItem.vue";i("a899");var Pe=i("f38b"),Be=Object(a["defineComponent"])({components:{RecycleScroller:Ee},emits:["mouseEnter","handleClickTable"],setup(e,{emit:t}){const i=e=>{t("mouseEnter",e.label)},a=e=>{t("handleClickTable",e)};return{simpleImage:Z["a"].PRESENTED_IMAGE_SIMPLE,tableTypeIconMap:Pe["d"],handleMouseEnter:i,handleClickTable:a}},props:{items:{type:Array,default:()=>[]},activeItem:{type:String,default:""},itemSize:{type:Number,default:40},iconName:{type:String,default:"tableOutlined"},loading:{type:Boolean,default:!1}}});i("1ccf");const Re=V()(Be,[["render",G],["__scopeId","data-v-abd9edf8"]]);var Qe=Re,Ye=Object(a["defineComponent"])({name:"TablesMenu",components:{SearchOutlined:E["a"],CloseCircleOutlined:U["a"],CreateDBModal:B,virtualRecycleScroller:Qe},emits:["goCreatePage"],setup(e,{emit:t}){const i=Object(m["e"])(),n=Object(m["d"])(),o=Object(j["a"])(),s=Object(a["reactive"])({catalogLoading:!1,DBSearchInput:"",tableSearchInput:"",curCatalog:"",database:"",tableName:"",type:"",catalogOptions:[],showCreateDBModal:!1,loading:!1,tableLoading:!1,databaseList:[],tableList:[]}),c="easylake-menu-catalog-db-table",l=JSON.parse(localStorage.getItem(c)||"{}"),r=Object(a["reactive"])(Object($["a"])()),u=e=>{"table"===e?b():p()},d=e=>{"table"===e?(s.tableSearchInput="",b()):(s.DBSearchInput="",p())},b=Object(Q["c"])(()=>{D()}),p=Object(Q["c"])(()=>{z(!0)}),h=e=>{s.database!==e.id&&(s.database=e.id,s.tableName="",D())},M=e=>e.parentNode,O=()=>{},f=e=>{s.curCatalog=e,s.databaseList.length=0,s.tableList.length=0,z()},v=()=>{s.showCreateDBModal=!0},g=()=>{s.showCreateDBModal=!1},N=()=>{t("goCreatePage")},y=e=>{s.tableName=e.label,s.type=e.type,localStorage.setItem(c,JSON.stringify({catalog:s.curCatalog,database:s.database,tableName:e.label})),o.updateTablesMenu(!1);const t="HIVE"===e.type?"/hive-tables":"/tables",a={path:t,query:{catalog:s.curCatalog,db:s.database,table:s.tableName,type:s.type}};n.path.indexOf("tables")>-1?i.replace(a):i.push(a)},T=()=>{s.catalogLoading=!0,Object(R["c"])().then(e=>{if(e){if(s.catalogOptions=(e||[]).map(e=>({value:e.catalogName,label:e.catalogName})),s.catalogOptions.length){var t;const e=s.catalogOptions.findIndex(e=>e.value===l.catalog),i=n.query;s.curCatalog=e>-1?l.catalog:(null===i||void 0===i||null===(t=i.catalog)||void 0===t?void 0:t.toString())||s.catalogOptions[0].value}z()}}).finally(()=>{s.catalogLoading=!1})},z=(e=!1)=>{s.curCatalog&&(s.loading=!0,Object(R["d"])({catalog:s.curCatalog,keywords:s.DBSearchInput}).then(t=>{if(s.databaseList=(t||[]).map(e=>({id:e,label:e})),s.databaseList.length&&!e){var i,a,o,c;const e=s.databaseList.findIndex(e=>e.id===l.database);s.database=e>-1?l.database:s.curCatalog===(null===(i=n.query)||void 0===i||null===(a=i.catalog)||void 0===a?void 0:a.toString())?(null===(o=n.query)||void 0===o||null===(c=o.db)||void 0===c?void 0:c.toString())||s.databaseList[0].id||"":s.databaseList[0].id||"",D()}}).finally(()=>{s.loading=!1}))},D=()=>{s.curCatalog&&s.database&&(s.tableLoading=!0,s.tableList.length=0,Object(R["m"])({catalog:s.curCatalog,db:s.database,keywords:s.tableSearchInput}).then(e=>{s.tableList=(e||[]).map(e=>({id:e.name,label:e.name,type:e.type}))}).finally(()=>{s.tableLoading=!1}))};return Object(a["onBeforeMount"])(()=>{const{database:e,tableName:t}=l;s.database=e,s.tableName=t,T()}),{...Object(a["toRefs"])(s),placeholder:r,handleClickDb:h,getPopupContainer:M,clickDatabase:O,catalogChange:f,addDatabase:v,cancel:g,createTable:N,handleClickTable:y,handleSearch:u,clearSearch:d}}});i("8b65");const He=V()(Ye,[["render",C],["__scopeId","data-v-03551ced"]]);var Ge=He,Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},Fe=Ze,We=i("b3f0");function qe(e){for(var t=1;t!!Object(Q["f"])("token")),c=Object(a["ref"])(0),l=Object(a["computed"])(()=>{const t=[{key:"tables",title:e("tables"),icon:"TableOutlined"}],i=[{key:"tables",title:e("tables"),icon:"tables"},{key:"catalogs",title:e("catalogs"),icon:"catalogs"},{key:"optimizing",title:e("Optimizing"),icon:"optimizers"},{key:"terminal",title:e("terminal"),icon:"terminal"},{key:"settings",title:e("settings"),icon:"settings"}];return s.value?t:i}),r=()=>{const e=i.path.split("/");if(i.path){const t=[e[1]];o.selectedKeys=t.includes("hive-tables")?["tables"]:t}};Object(a["watchEffect"])(()=>{r()});const u=()=>{o.collapsed=!o.collapsed,setTimeout(()=>{window.dispatchEvent(new Event("resize"))},300)},d=e=>{"tables"!==e.key?(t.replace({path:"/"+e.key}),Object(a["nextTick"])(()=>{r()})):Object(a["nextTick"])(()=>{r()})},b=e=>{h("tables"===e.key)},p=()=>{h(!1),t.push({path:"/tables/create"})},h=(e=!1)=>{if(s.value)return;c.value&&clearTimeout(c.value);const t=e?0:200;c.value=setTimeout(()=>{n.updateTablesMenu(e)},t)},M=()=>{t.push({path:"/introduce"})};return{...Object(a["toRefs"])(o),hasToken:s,menuList:l,toggleCollapsed:u,navClick:d,mouseenter:b,store:n,toggleTablesMenu:h,goCreatePage:p,viewIntroduce:M}}});i("78d8");const lt=V()(ct,[["render",M],["__scopeId","data-v-c08cb56c"]]);var rt=lt;const ut={class:"custom-top-bar"},dt={class:"version-info"},bt={class:"g-mr-8"},pt={class:"g-mr-8"};function ht(e,t,i,n,o,s){const c=Object(a["resolveComponent"])("question-circle-outlined"),l=Object(a["resolveComponent"])("a-tooltip"),r=Object(a["resolveComponent"])("LogoutOutlined"),u=Object(a["resolveComponent"])("a-button");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",ut,[Object(a["createElementVNode"])("div",dt,[Object(a["createElementVNode"])("span",bt,Object(a["toDisplayString"])(`${e.$t("version")}: ${e.verInfo.version}`),1),Object(a["createElementVNode"])("span",pt,Object(a["toDisplayString"])(`${e.$t("commitTime")}: ${e.verInfo.commitTime}`),1)]),Object(a["createVNode"])(l,{placement:"bottomRight","arrow-point-at-center":"",overlayClassName:"topbar-tooltip"},{title:Object(a["withCtx"])(()=>[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("userGuide")),1)]),default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(c,{class:"question-icon",onClick:e.goDocs},null,8,["onClick"])]),_:1}),Object(a["createVNode"])(l,null,{title:Object(a["withCtx"])(()=>[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("logout")),1)]),default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(u,{class:"logout-button",onClick:e.handleLogout},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(r,{style:{"font-size":"1.2em"}})]),_:1},8,["onClick"])]),_:1})])}i("cd17");var Mt=i("ed3b"),mt=i("3c7f"),jt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},Ot=jt;function ft(e){for(var t=1;t{const t=await Tt();t&&(e.version=t.version,e.commitTime=t.commitTime)},n=async()=>{Mt["a"].confirm({title:t("logoutModalTitle"),content:"",okText:"",cancelText:"",onOk:async()=>{try{await zt["a"].logout()}catch(e){}finally{const e=Object(j["a"])();e.updateUserInfo({userName:""}),window.location.href="/login"}}})},o=()=>{window.open("https://amoro.netease.com/docs/latest/")};return Object(a["onMounted"])(()=>{i()}),{verInfo:e,goDocs:o,handleLogout:n}}});i("a7cb");const wt=V()(Dt,[["render",ht]]);var It=wt,Lt=Object(a["defineComponent"])({name:"Layout",components:{SideBar:rt,TopBar:It},props:{menus:{type:Array,default:()=>[]},showTopBar:{type:Boolean,default:!0}}});i("1fe5");const St=V()(Lt,[["render",c],["__scopeId","data-v-148e5fa0"]]);var kt=St,Ct=Object(a["defineComponent"])({__name:"Home",setup(e){return(e,t)=>(Object(a["openBlock"])(),Object(a["createBlock"])(kt))}});const Et=Ct;t["default"]=Et},f171:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBmaWxsPSJub25lIiB2ZXJzaW9uPSIxLjEiIHdpZHRoPSIyMjQuOTk5OTg0NzQxMjEwOTQiIGhlaWdodD0iNTAiIHZpZXdCb3g9IjAgMCAyMjQuOTk5OTg0NzQxMjEwOTQgNTAiPjxnIHN0eWxlPSJtaXgtYmxlbmQtbW9kZTpwYXNzdGhyb3VnaCI+PHBhdGggZD0iTTIxLjI1MDUsMEwyOS4wNzA1LDMxLjM2NDlMNDMuOTAzNSwwTDU4Ljc5NDIsMEw1My4xMjYyLDUwTDQwLjM0OSw1MEw0My45MDM1LDIzLjY2NzNMMzIuNjA1OCw0Ni42NDUyTDIxLjI1MDUsNDYuNjQ1MkwxNS41NjMyLDI0LjU2MzRMMTIuNzU4LDUwTDAsNTBMNS42NjgwNywzLjM1NDc4TDIuODA1MjEsMEwyMS4yNTA1LDBaTTEwOS45NjEsMFExMTAuOTc5LDAsMTExLjg2MywwLjQzNjU4MVExMTIuNzY2LDAuODczMTYyLDExMy4zODEsMS42NzczOVExMTQuMDE1LDIuNDU4NjQsMTE0LjIyNiwzLjUzODZRMTE0LjQ1Nyw0LjU5NTU5LDExNC4xNjgsNS45MjgzMUwxMDkuMjExLDUwTDY5LjUxNTUsNTBRNjguNDk3Miw1MCw2Ny41OTQyLDQ5LjU2MzRRNjYuNzEwMyw0OS4xMDM5LDY2LjA3NjMsNDguMzIyNlE2NS40NjE0LDQ3LjUxODQsNjUuMjMwOSw0Ni40MTU0UTY1LjAxOTUsNDUuMzEyNSw2NS4zMDc3LDQ0LjA3MTdMNzAuMjY0OSwwTDEwOS45NjEsMFpNODMuMDIyOCw4LjUwMTg0TDc5LjQ4NzUsNDEuNDk4Mkw5NS43ODA4LDQxLjQ5ODJMOTkuOTg4Niw4LjUwMTg0TDgzLjAyMjgsOC41MDE4NFpNMTY5LjE3NywwTDE2Ni4zNzIsMjQuOTU0UTE2Ni4zNzIsMjYuMTcxOSwxNjUuODkyLDI3LjI5NzhRMTY1LjQxMiwyOC40MDA3LDE2NC42MDUsMjkuMjA1UTE2My43OTgsMjkuOTg2MiwxNjIuNzk5LDMwLjQ0NThRMTYxLjc5OSwzMC44ODIzLDE2MC42ODUsMzAuODgyM0wxNTEuNDYyLDMwLjg4MjNMMTY2LjM3Miw1MEwxNTAuODA5LDUwTDEzNi42MjksMzAuODgyM0wxMzQuNDk3LDUwTDEyMC4zMzYsNTBMMTI1LjI3NCwzLjM1NDc4TDEyMy4xNDEsMEwxNjkuMTc3LDBaTTEzOC43ODEsOC41MDE4NEwxMzcuMzAyLDIyLjM4MDVMMTUyLjk0MiwyMi4zODA1TDE1NC4zNDQsOC41MDE4NEwxMzguNzgxLDguNTAxODRaTTIyMC42MzIsMFEyMjEuNjUsMCwyMjIuNTM0LDAuNDM2NTgxUTIyMy40MzcsMC44NzMxNjIsMjI0LjA1MiwxLjY3NzM5UTIyNC42ODYsMi40NTg2NCwyMjQuODk4LDMuNTM4NlEyMjUuMTI4LDQuNTk1NTksMjI0Ljg0LDUuOTI4MzFMMjE5Ljg4Myw1MEwxODAuMTg3LDUwUTE3OS4xNjksNTAsMTc4LjI2Niw0OS41NjM0UTE3Ny4zODIsNDkuMTAzOSwxNzYuNzQ4LDQ4LjMyMjZRMTc2LjEzMyw0Ny41MTg0LDE3NS45MDIsNDYuNDE1NFExNzUuNjkxLDQ1LjMxMjUsMTc1Ljk3OSw0NC4wNzE3TDE4MC45MzYsMEwyMjAuNjMyLDBaTTE5My42OTQsOC41MDE4NEwxOTAuMTU5LDQxLjQ5ODJMMjA2LjQ1Miw0MS40OTgyTDIxMC42Niw4LjUwMTg0TDE5My42OTQsOC41MDE4NFoiIGZpbGw9IiNGRkZGRkYiIGZpbGwtb3BhY2l0eT0iMSIvPjwvZz48L3N2Zz4="},f38b:function(e,t,i){"use strict";var a,n,o,s,c;i.d(t,"b",(function(){return a})),i.d(t,"e",(function(){return n})),i.d(t,"d",(function(){return o})),i.d(t,"a",(function(){return s})),i.d(t,"c",(function(){return c})),function(e){e["Created"]="#f5f5f5",e["Failed"]="#fff2f0",e["Finished"]="#f6ffed",e["Canceled"]="#f5f5f5"}(a||(a={})),function(e){e["failed"]="FAILED",e["upgrading"]="UPGRADING",e["success"]="SUCCESS",e["none"]="NONE"}(n||(n={})),function(e){e["ICEBERG"]="iceberg",e["ARCTIC"]="amoro",e["HIVE"]="hive",e["PAIMON"]="paimon"}(o||(o={})),function(e){e["BRANCH"]="branch",e["TAG"]="tag"}(s||(s={})),function(e){e["ALL"]="all",e["OPTIMIZING"]="optimizing",e["NONOPTIMIZING"]="non-optimizing"}(c||(c={}))}}]); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/chunk-76776ef2.1a38ca70.js b/ams/dashboard/src/main/resources/static/js/chunk-76776ef2.e433cc6b.js similarity index 54% rename from ams/dashboard/src/main/resources/static/js/chunk-76776ef2.1a38ca70.js rename to ams/dashboard/src/main/resources/static/js/chunk-76776ef2.e433cc6b.js index 26f4ff9c36..4821383332 100644 --- a/ams/dashboard/src/main/resources/static/js/chunk-76776ef2.1a38ca70.js +++ b/ams/dashboard/src/main/resources/static/js/chunk-76776ef2.e433cc6b.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-76776ef2"],{"0482":function(e,t,a){},"06e7":function(e,t,a){"use strict";a.r(t);var n=a("7a23");const o={class:"hive-tables-wrap"},c={key:0,class:"tables-content"},s={class:"g-flex-jsb table-top"},r=["title"],l={class:"right-btn"},i={class:"content"};function d(e,t,a,d,b,u){const p=Object(n["resolveComponent"])("a-button"),g=Object(n["resolveComponent"])("u-details"),m=Object(n["resolveComponent"])("a-tab-pane"),f=Object(n["resolveComponent"])("a-tabs"),O=Object(n["resolveComponent"])("u-loading"),j=Object(n["resolveComponent"])("router-view"),v=Object(n["resolveComponent"])("error-msg");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",o,[e.isSecondaryNav?Object(n["createCommentVNode"])("",!0):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",c,[Object(n["createElementVNode"])("div",s,[Object(n["createElementVNode"])("span",{title:e.tableName,class:"table-name g-text-nowrap"},Object(n["toDisplayString"])(e.tableName),9,r),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(p,{type:"primary",disabled:e.status===e.upgradeStatus.upgrading,onClick:e.upgradeTable},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.displayStatus),1)]),_:1},8,["disabled","onClick"]),e.status===e.upgradeStatus.failed?(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",{key:0,onClick:t[0]||(t[0]=t=>e.showErrorMsg=!0),class:"fail-msg"},Object(n["toDisplayString"])(e.$t("lastUpgradingFailed")),1)):Object(n["createCommentVNode"])("",!0)])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(f,{activeKey:e.activeKey,"onUpdate:activeKey":t[1]||(t[1]=t=>e.activeKey=t)},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{key:"Details",tab:"Details"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{partitionColumnList:e.partitionColumnList,schema:e.schema},null,8,["partitionColumnList","schema"])]),_:1})]),_:1},8,["activeKey"])])])),e.loading?(Object(n["openBlock"])(),Object(n["createBlock"])(O,{key:1})):Object(n["createCommentVNode"])("",!0),e.isSecondaryNav?(Object(n["openBlock"])(),Object(n["createBlock"])(j,{key:2,onGoBack:e.goBack,onRefresh:e.refresh},null,8,["onGoBack","onRefresh"])):Object(n["createCommentVNode"])("",!0),e.showErrorMsg?(Object(n["openBlock"])(),Object(n["createBlock"])(v,{key:3,msg:e.errorMessage,onCancle:t[2]||(t[2]=t=>e.showErrorMsg=!1)},null,8,["msg"])):Object(n["createCommentVNode"])("",!0)])}var b=a("47e2");const u={class:"hive-table-detail g-flex"},p={class:"left-content"},g={key:0,class:"table-attrs"},m={class:"attr-title"},f={class:"table-attrs"},O={class:"attr-title"};var j=Object(n["defineComponent"])({__name:"Details",props:{schema:null,partitionColumnList:null},setup(e){const t=e,{t:a}=Object(b["b"])(),o=Object(n["shallowReactive"])([{title:a("field"),dataIndex:"field",width:"30%"},{title:a("type"),dataIndex:"type",width:"30%"},{title:a("description"),dataIndex:"comment",ellipsis:!0}]),c=Object(n["shallowReactive"])([{title:a("field"),dataIndex:"field",width:"30%"},{title:a("type"),dataIndex:"type",width:"30%"},{title:a("description"),dataIndex:"comment",ellipsis:!0}]);return(e,a)=>{const s=Object(n["resolveComponent"])("a-table");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",u,[Object(n["createElementVNode"])("div",p,[t.partitionColumnList&&t.partitionColumnList.length?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",g,[Object(n["createElementVNode"])("p",m,Object(n["toDisplayString"])(e.$t("partitionKey")),1),Object(n["createVNode"])(s,{rowKey:"field",columns:Object(n["unref"])(c),"data-source":t.partitionColumnList,pagination:!1},null,8,["columns","data-source"])])):Object(n["createCommentVNode"])("",!0),Object(n["createElementVNode"])("div",f,[Object(n["createElementVNode"])("p",O,Object(n["toDisplayString"])(e.$t("schema")),1),Object(n["createVNode"])(s,{rowKey:"field",columns:Object(n["unref"])(o),"data-source":t.schema,pagination:!1},null,8,["columns","data-source"])])])])}}}),v=(a("7371"),a("6b0d")),k=a.n(v);const h=k()(j,[["__scopeId","data-v-31e13dc2"]]);var y=h;const $={class:"msg"};var C=Object(n["defineComponent"])({__name:"ErrorMsg",props:{msg:null},emits:["cancle"],setup(e,{emit:t}){const a=e;return(e,o)=>{const c=Object(n["resolveComponent"])("a-modal");return Object(n["openBlock"])(),Object(n["createBlock"])(c,{visible:!0,width:560,title:""+e.$t("errorMessage"),footer:null,onCancel:o[0]||(o[0]=e=>t("cancle")),class:"upgrade-error"},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("p",$,Object(n["toDisplayString"])(a.msg),1)]),_:1},8,["title"])}}});a("e900");const N=k()(C,[["__scopeId","data-v-a5995806"]]);var w=N,S=a("6c02"),I=a("f38b"),B=a("5738"),E=Object(n["defineComponent"])({name:"Tables",components:{UDetails:y,errorMsg:w},setup(){const e=I["e"],t=Object(n["ref"])(),a=Object(S["e"])(),o=Object(S["d"])(),{t:c}=Object(b["b"])(),s=Object(n["computed"])(()=>!!(o.path.indexOf("upgrade")>-1)),r=Object(n["reactive"])({loading:!1,showErrorMsg:!1,activeKey:"Details",status:"",displayStatus:"",errorMessage:"",tableName:"tableName",partitionColumnList:[],schema:[]}),l=()=>{a.back()},i=Object(n["computed"])(()=>({...o.query})),d=async(e=!1)=>{try{t.value&&clearTimeout(t.value);const{catalog:n,db:s,table:l}=i.value;if(!n||!s||!l)return;!e&&(r.loading=!0);const b=await Object(B["p"])({...i.value}),{status:p,errorMessage:g}=b;r.status=p,r.displayStatus=p===I["e"].upgrading?c("upgrading"):c("upgrade"),r.errorMessage=g||"",p===I["e"].upgrading?t.value=setTimeout(()=>{d(!0)},1500):p===I["e"].none?u():p===I["e"].success?a.replace({path:"/tables",query:{...o.query}}):p===I["e"].failed&&u()}finally{!e&&(r.loading=!1)}},u=async()=>{try{const{catalog:e,db:t,table:a}=i.value;if(!e||!t||!a)return;r.loading=!0;const n=await Object(B["f"])({...i.value}),{partitionColumnList:o=[],schema:c,tableIdentifier:s}=n;r.tableName=(null===s||void 0===s?void 0:s.tableName)||"",r.partitionColumnList=o||[],r.schema=c||[]}catch(e){}finally{r.loading=!1}},p=async()=>{await d()},g=()=>{a.push({path:"/hive-tables/upgrade",query:{...o.query}})},m=()=>{p()};return Object(n["watch"])(()=>o.query,(e,t)=>{const{catalog:a,db:n,table:c}=e;"/hive-tables"!==o.path||a===t.catalog&&n===t.db&&c===t.table||p()}),Object(n["onBeforeUnmount"])(()=>{clearTimeout(t.value)}),Object(n["onMounted"])(()=>{p()}),{...Object(n["toRefs"])(r),isSecondaryNav:s,upgradeStatus:e,upgradeTable:g,goBack:l,refresh:m}}});a("c289");const V=k()(E,[["render",d],["__scopeId","data-v-acbd8ea4"]]);t["default"]=V},5738:function(e,t,a){"use strict";a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return c})),a.d(t,"m",(function(){return s})),a.d(t,"l",(function(){return r})),a.d(t,"f",(function(){return l})),a.d(t,"p",(function(){return i})),a.d(t,"j",(function(){return d})),a.d(t,"i",(function(){return b})),a.d(t,"k",(function(){return u})),a.d(t,"e",(function(){return p})),a.d(t,"g",(function(){return g})),a.d(t,"h",(function(){return m})),a.d(t,"q",(function(){return f})),a.d(t,"o",(function(){return O})),a.d(t,"a",(function(){return j})),a.d(t,"b",(function(){return v})),a.d(t,"n",(function(){return k}));var n=a("b32d");function o(){return n["a"].get("ams/v1/catalogs")}function c(e){const{catalog:t,keywords:a}=e;return n["a"].get(`ams/v1/catalogs/${t}/databases`,{params:{keywords:a}})}function s(e){const{catalog:t,db:a,keywords:o}=e;return n["a"].get(`ams/v1/catalogs/${t}/databases/${a}/tables`,{params:{keywords:o}})}function r({catalog:e="",db:t="",table:a="",token:o=""}){return n["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/details`,{params:{token:o}})}function l({catalog:e="",db:t="",table:a=""}){return n["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/hive/details`)}function i({catalog:e="",db:t="",table:a=""}){return n["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/upgrade/status`)}function d(e){const{catalog:t,db:a,table:o,page:c,pageSize:s,token:r}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${o}/partitions`,{params:{page:c,pageSize:s,token:r}})}function b(e){const{catalog:t,db:a,table:o,partition:c,specId:s,page:r,pageSize:l,token:i}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${o}/partitions/${c}/files`,{params:{specId:s,page:r,pageSize:l,token:i}})}function u(e){const{catalog:t,db:a,table:o,page:c,pageSize:s,token:r,ref:l,operation:i}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${o}/snapshots`,{params:{page:c,pageSize:s,token:r,ref:l,operation:i}})}function p(e){const{catalog:t,db:a,table:o,snapshotId:c,page:s,pageSize:r,token:l}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${o}/snapshots/${c}/detail`,{params:{page:s,pageSize:r,token:l}})}function g(e){const{catalog:t,db:a,table:o,page:c,pageSize:s,token:r}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${o}/operations`,{params:{page:c,pageSize:s,token:r}})}function m(e){const{catalog:t,db:a,table:o,page:c,pageSize:s,token:r}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${o}/optimizing-processes`,{params:{page:c,pageSize:s,token:r}})}function f({catalog:e="",db:t="",table:a="",properties:o={},pkList:c=[]}){return n["a"].post(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/upgrade`,{properties:o,pkList:c})}function O(){return n["a"].get("ams/v1/upgrade/properties")}function j({catalog:e="",db:t="",table:a="",processId:o=""}){return n["a"].post(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/optimizing-processes/${o}/cancel`)}function v(e){const{catalog:t,db:a,table:o}=e;return n["a"].get(`/ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${o}/branches`)}function k(e){const{catalog:t,db:a,table:o}=e;return n["a"].get(`/ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${o}/tags`)}},7371:function(e,t,a){"use strict";a("0482")},9017:function(e,t,a){},a65b:function(e,t,a){},c289:function(e,t,a){"use strict";a("a65b")},e900:function(e,t,a){"use strict";a("9017")},f38b:function(e,t,a){"use strict";var n,o,c,s,r;a.d(t,"b",(function(){return n})),a.d(t,"e",(function(){return o})),a.d(t,"d",(function(){return c})),a.d(t,"a",(function(){return s})),a.d(t,"c",(function(){return r})),function(e){e["Created"]="#f5f5f5",e["Failed"]="#fff2f0",e["Finished"]="#f6ffed",e["Canceled"]="#f5f5f5"}(n||(n={})),function(e){e["failed"]="FAILED",e["upgrading"]="UPGRADING",e["success"]="SUCCESS",e["none"]="NONE"}(o||(o={})),function(e){e["ICEBERG"]="iceberg",e["ARCTIC"]="amoro",e["HIVE"]="hive",e["PAIMON"]="paimon"}(c||(c={})),function(e){e["BRANCH"]="branch",e["TAG"]="tag"}(s||(s={})),function(e){e["ALL"]="all",e["OPTIMIZING"]="optimizing",e["NONOPTIMIZING"]="non-optimizing"}(r||(r={}))}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-76776ef2"],{"0482":function(e,t,a){},"06e7":function(e,t,a){"use strict";a.r(t);var n=a("7a23");const o={class:"hive-tables-wrap"},c={key:0,class:"tables-content"},s={class:"g-flex-jsb table-top"},r=["title"],l={class:"right-btn"},i={class:"content"};function b(e,t,a,b,d,u){const p=Object(n["resolveComponent"])("a-button"),g=Object(n["resolveComponent"])("u-details"),m=Object(n["resolveComponent"])("a-tab-pane"),f=Object(n["resolveComponent"])("a-tabs"),O=Object(n["resolveComponent"])("u-loading"),j=Object(n["resolveComponent"])("router-view"),v=Object(n["resolveComponent"])("error-msg");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",o,[e.isSecondaryNav?Object(n["createCommentVNode"])("",!0):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",c,[Object(n["createElementVNode"])("div",s,[Object(n["createElementVNode"])("span",{title:e.tableName,class:"table-name g-text-nowrap"},Object(n["toDisplayString"])(e.tableName),9,r),Object(n["createElementVNode"])("div",l,[Object(n["createVNode"])(p,{type:"primary",disabled:e.status===e.upgradeStatus.upgrading,onClick:e.upgradeTable},{default:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.displayStatus),1)]),_:1},8,["disabled","onClick"]),e.status===e.upgradeStatus.failed?(Object(n["openBlock"])(),Object(n["createElementBlock"])("p",{key:0,onClick:t[0]||(t[0]=t=>e.showErrorMsg=!0),class:"fail-msg"},Object(n["toDisplayString"])(e.$t("lastUpgradingFailed")),1)):Object(n["createCommentVNode"])("",!0)])]),Object(n["createElementVNode"])("div",i,[Object(n["createVNode"])(f,{activeKey:e.activeKey,"onUpdate:activeKey":t[1]||(t[1]=t=>e.activeKey=t)},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(m,{key:"Details",tab:"Details"},{default:Object(n["withCtx"])(()=>[Object(n["createVNode"])(g,{partitionColumnList:e.partitionColumnList,schema:e.schema},null,8,["partitionColumnList","schema"])]),_:1})]),_:1},8,["activeKey"])])])),e.loading?(Object(n["openBlock"])(),Object(n["createBlock"])(O,{key:1})):Object(n["createCommentVNode"])("",!0),e.isSecondaryNav?(Object(n["openBlock"])(),Object(n["createBlock"])(j,{key:2,onGoBack:e.goBack,onRefresh:e.refresh},null,8,["onGoBack","onRefresh"])):Object(n["createCommentVNode"])("",!0),e.showErrorMsg?(Object(n["openBlock"])(),Object(n["createBlock"])(v,{key:3,msg:e.errorMessage,onCancle:t[2]||(t[2]=t=>e.showErrorMsg=!1)},null,8,["msg"])):Object(n["createCommentVNode"])("",!0)])}var d=a("47e2");const u={class:"hive-table-detail g-flex"},p={class:"left-content"},g={key:0,class:"table-attrs"},m={class:"attr-title"},f={class:"table-attrs"},O={class:"attr-title"};var j=Object(n["defineComponent"])({__name:"Details",props:{schema:null,partitionColumnList:null},setup(e){const t=e,{t:a}=Object(d["b"])(),o=Object(n["shallowReactive"])([{title:a("field"),dataIndex:"field",width:"30%"},{title:a("type"),dataIndex:"type",width:"30%"},{title:a("description"),dataIndex:"comment",ellipsis:!0}]),c=Object(n["shallowReactive"])([{title:a("field"),dataIndex:"field",width:"30%"},{title:a("type"),dataIndex:"type",width:"30%"},{title:a("description"),dataIndex:"comment",ellipsis:!0}]);return(e,a)=>{const s=Object(n["resolveComponent"])("a-table");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",u,[Object(n["createElementVNode"])("div",p,[t.partitionColumnList&&t.partitionColumnList.length?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",g,[Object(n["createElementVNode"])("p",m,Object(n["toDisplayString"])(e.$t("partitionKey")),1),Object(n["createVNode"])(s,{rowKey:"field",columns:Object(n["unref"])(c),"data-source":t.partitionColumnList,pagination:!1},null,8,["columns","data-source"])])):Object(n["createCommentVNode"])("",!0),Object(n["createElementVNode"])("div",f,[Object(n["createElementVNode"])("p",O,Object(n["toDisplayString"])(e.$t("schema")),1),Object(n["createVNode"])(s,{rowKey:"field",columns:Object(n["unref"])(o),"data-source":t.schema,pagination:!1},null,8,["columns","data-source"])])])])}}}),v=(a("7371"),a("6b0d")),k=a.n(v);const $=k()(j,[["__scopeId","data-v-31e13dc2"]]);var h=$;const y={class:"msg"};var C=Object(n["defineComponent"])({__name:"ErrorMsg",props:{msg:null},emits:["cancle"],setup(e,{emit:t}){const a=e;return(e,o)=>{const c=Object(n["resolveComponent"])("a-modal");return Object(n["openBlock"])(),Object(n["createBlock"])(c,{visible:!0,width:560,title:""+e.$t("errorMessage"),footer:null,onCancel:o[0]||(o[0]=e=>t("cancle")),class:"upgrade-error"},{default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("p",y,Object(n["toDisplayString"])(a.msg),1)]),_:1},8,["title"])}}});a("e900");const N=k()(C,[["__scopeId","data-v-a5995806"]]);var w=N,S=a("6c02"),I=a("f38b"),B=a("5738"),E=Object(n["defineComponent"])({name:"Tables",components:{UDetails:h,errorMsg:w},setup(){const e=I["e"],t=Object(n["ref"])(),a=Object(S["e"])(),o=Object(S["d"])(),{t:c}=Object(d["b"])(),s=Object(n["computed"])(()=>!!(o.path.indexOf("upgrade")>-1)),r=Object(n["reactive"])({loading:!1,showErrorMsg:!1,activeKey:"Details",status:"",displayStatus:"",errorMessage:"",tableName:"tableName",partitionColumnList:[],schema:[]}),l=()=>{a.back()},i=Object(n["computed"])(()=>({...o.query})),b=async(e=!1)=>{try{t.value&&clearTimeout(t.value);const{catalog:n,db:s,table:l}=i.value;if(!n||!s||!l)return;!e&&(r.loading=!0);const d=await Object(B["q"])({...i.value}),{status:p,errorMessage:g}=d;r.status=p,r.displayStatus=p===I["e"].upgrading?c("upgrading"):c("upgrade"),r.errorMessage=g||"",p===I["e"].upgrading?t.value=setTimeout(()=>{b(!0)},1500):p===I["e"].none?u():p===I["e"].success?a.replace({path:"/tables",query:{...o.query}}):p===I["e"].failed&&u()}finally{!e&&(r.loading=!1)}},u=async()=>{try{const{catalog:e,db:t,table:a}=i.value;if(!e||!t||!a)return;r.loading=!0;const n=await Object(B["f"])({...i.value}),{partitionColumnList:o=[],schema:c,tableIdentifier:s}=n;r.tableName=(null===s||void 0===s?void 0:s.tableName)||"",r.partitionColumnList=o||[],r.schema=c||[]}catch(e){}finally{r.loading=!1}},p=async()=>{await b()},g=()=>{a.push({path:"/hive-tables/upgrade",query:{...o.query}})},m=()=>{p()};return Object(n["watch"])(()=>o.query,(e,t)=>{const{catalog:a,db:n,table:c}=e;"/hive-tables"!==o.path||a===t.catalog&&n===t.db&&c===t.table||p()}),Object(n["onBeforeUnmount"])(()=>{clearTimeout(t.value)}),Object(n["onMounted"])(()=>{p()}),{...Object(n["toRefs"])(r),isSecondaryNav:s,upgradeStatus:e,upgradeTable:g,goBack:l,refresh:m}}});a("c289");const V=k()(E,[["render",b],["__scopeId","data-v-acbd8ea4"]]);t["default"]=V},5738:function(e,t,a){"use strict";a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return c})),a.d(t,"m",(function(){return s})),a.d(t,"l",(function(){return r})),a.d(t,"f",(function(){return l})),a.d(t,"q",(function(){return i})),a.d(t,"j",(function(){return b})),a.d(t,"i",(function(){return d})),a.d(t,"k",(function(){return u})),a.d(t,"e",(function(){return p})),a.d(t,"g",(function(){return g})),a.d(t,"h",(function(){return m})),a.d(t,"o",(function(){return f})),a.d(t,"r",(function(){return O})),a.d(t,"p",(function(){return j})),a.d(t,"a",(function(){return v})),a.d(t,"b",(function(){return k})),a.d(t,"n",(function(){return $}));var n=a("b32d");function o(){return n["a"].get("ams/v1/catalogs")}function c(e){const{catalog:t,keywords:a}=e;return n["a"].get(`ams/v1/catalogs/${t}/databases`,{params:{keywords:a}})}function s(e){const{catalog:t,db:a,keywords:o}=e;return n["a"].get(`ams/v1/catalogs/${t}/databases/${a}/tables`,{params:{keywords:o}})}function r({catalog:e="",db:t="",table:a="",token:o=""}){return n["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/details`,{params:{token:o}})}function l({catalog:e="",db:t="",table:a=""}){return n["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/hive/details`)}function i({catalog:e="",db:t="",table:a=""}){return n["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/upgrade/status`)}function b(e){const{catalog:t,db:a,table:o,page:c,pageSize:s,token:r}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${o}/partitions`,{params:{page:c,pageSize:s,token:r}})}function d(e){const{catalog:t,db:a,table:o,partition:c,specId:s,page:r,pageSize:l,token:i}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${o}/partitions/${c}/files`,{params:{specId:s,page:r,pageSize:l,token:i}})}function u(e){const{catalog:t,db:a,table:o,page:c,pageSize:s,token:r,ref:l,operation:i}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${o}/snapshots`,{params:{page:c,pageSize:s,token:r,ref:l,operation:i}})}function p(e){const{catalog:t,db:a,table:o,snapshotId:c,page:s,pageSize:r,token:l}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${o}/snapshots/${c}/detail`,{params:{page:s,pageSize:r,token:l}})}function g(e){const{catalog:t,db:a,table:o,page:c,pageSize:s,token:r}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${o}/operations`,{params:{page:c,pageSize:s,token:r}})}function m(e){const{catalog:t,db:a,table:o,page:c,pageSize:s,token:r}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${o}/optimizing-processes`,{params:{page:c,pageSize:s,token:r}})}function f(e){const{catalog:t,db:a,table:o,processId:c,page:s,pageSize:r,token:l}=e;return n["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${o}/optimizing-processes/${c}/tasks`,{params:{page:s,pageSize:r,token:l}})}function O({catalog:e="",db:t="",table:a="",properties:o={},pkList:c=[]}){return n["a"].post(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/upgrade`,{properties:o,pkList:c})}function j(){return n["a"].get("ams/v1/upgrade/properties")}function v({catalog:e="",db:t="",table:a="",processId:o=""}){return n["a"].post(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/optimizing-processes/${o}/cancel`)}function k(e){const{catalog:t,db:a,table:o}=e;return n["a"].get(`/ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${o}/branches`)}function $(e){const{catalog:t,db:a,table:o}=e;return n["a"].get(`/ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${o}/tags`)}},7371:function(e,t,a){"use strict";a("0482")},9017:function(e,t,a){},a65b:function(e,t,a){},c289:function(e,t,a){"use strict";a("a65b")},e900:function(e,t,a){"use strict";a("9017")},f38b:function(e,t,a){"use strict";var n,o,c,s,r;a.d(t,"b",(function(){return n})),a.d(t,"e",(function(){return o})),a.d(t,"d",(function(){return c})),a.d(t,"a",(function(){return s})),a.d(t,"c",(function(){return r})),function(e){e["Created"]="#f5f5f5",e["Failed"]="#fff2f0",e["Finished"]="#f6ffed",e["Canceled"]="#f5f5f5"}(n||(n={})),function(e){e["failed"]="FAILED",e["upgrading"]="UPGRADING",e["success"]="SUCCESS",e["none"]="NONE"}(o||(o={})),function(e){e["ICEBERG"]="iceberg",e["ARCTIC"]="amoro",e["HIVE"]="hive",e["PAIMON"]="paimon"}(c||(c={})),function(e){e["BRANCH"]="branch",e["TAG"]="tag"}(s||(s={})),function(e){e["ALL"]="all",e["OPTIMIZING"]="optimizing",e["NONOPTIMIZING"]="non-optimizing"}(r||(r={}))}}]); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/chunk-02607735.d0587bdb.js b/ams/dashboard/src/main/resources/static/js/chunk-7a2c483a.f572ae58.js similarity index 52% rename from ams/dashboard/src/main/resources/static/js/chunk-02607735.d0587bdb.js rename to ams/dashboard/src/main/resources/static/js/chunk-7a2c483a.f572ae58.js index 06ac37fd34..306837ec9b 100644 --- a/ams/dashboard/src/main/resources/static/js/chunk-02607735.d0587bdb.js +++ b/ams/dashboard/src/main/resources/static/js/chunk-7a2c483a.f572ae58.js @@ -1,20 +1,20 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-02607735"],{"0300":function(t,e,n){"use strict";n("df0a")},"0855":function(t,e,n){},1448:function(t,e,n){"use strict";n("d360")},"1fb5":function(t,e,n){"use strict";e.byteLength=c,e.toByteArray=d,e.fromByteArray=g;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function c(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function h(t,e,n){return 3*(e+n)/4-n}function d(t){var e,n,r=u(t),a=r[0],s=r[1],l=new o(h(t,a,s)),c=0,d=s>0?a-4:a;for(n=0;n>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[c++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l}function f(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function p(t,e,n){for(var r,i=[],o=e;ol?l:s+a));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"22d1":function(t,e,n){"use strict";var r=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),i=function(){function t(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return t}(),o=new i;function a(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),e["a"]=o},"3c7f":function(t,e,n){"use strict";var r=n("7a23"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},o=i,a=n("b3f0");function s(t){for(var e=1;e255?255:t}function a(t){return t=Math.round(t),t<0?0:t>360?360:t}function s(t){return t<0?0:t>1?1:t}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function c(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function d(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new r["a"](20),g=null;function v(t,e){g&&f(g,e),g=p.put(t,g||e.slice())}function y(t,e){if(t){e=e||[];var n=p.get(t);if(n)return f(e,n);t+="";var r=t.replace(/ /g,"").toLowerCase();if(r in i)return f(e,i[r]),v(t,e),e;var o=r.length;if("#"!==r.charAt(0)){var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var c=r.substr(0,a),h=r.substr(a+1,s-(a+1)).split(","),g=1;switch(c){case"rgba":if(4!==h.length)return 3===h.length?d(e,+h[0],+h[1],+h[2],1):d(e,0,0,0,1);g=u(h.pop());case"rgb":return 3!==h.length?void d(e,0,0,0,1):(d(e,l(h[0]),l(h[1]),l(h[2]),g),v(t,e),e);case"hsla":return 4!==h.length?void d(e,0,0,0,1):(h[3]=u(h[3]),m(h,e),v(t,e),e);case"hsl":return 3!==h.length?void d(e,0,0,0,1):(m(h,e),v(t,e),e);default:return}}d(e,0,0,0,1)}else{if(4===o||5===o){var y=parseInt(r.slice(1,4),16);return y>=0&&y<=4095?(d(e,(3840&y)>>4|(3840&y)>>8,240&y|(240&y)>>4,15&y|(15&y)<<4,5===o?parseInt(r.slice(4),16)/15:1),v(t,e),e):void d(e,0,0,0,1)}if(7===o||9===o){y=parseInt(r.slice(1,7),16);return y>=0&&y<=16777215?(d(e,(16711680&y)>>16,(65280&y)>>8,255&y,9===o?parseInt(r.slice(7),16)/255:1),v(t,e),e):void d(e,0,0,0,1)}}}}function m(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=u(t[1]),i=u(t[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return e=e||[],d(e,o(255*c(s,a,n+1/3)),o(255*c(s,a,n)),o(255*c(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function b(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,d=((s-o)/6+l/2)/l;r===s?e=d-h:i===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}function _(t,e){var n=y(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return j(n,4===n.length?"rgba":"rgb")}}function x(t){var e=y(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),l=e[i],u=e[a],c=r-i;return n[0]=o(h(l[0],u[0],c)),n[1]=o(h(l[1],u[1],c)),n[2]=o(h(l[2],u[2],c)),n[3]=s(h(l[3],u[3],c)),n}}var O=w;function S(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),l=y(e[i]),u=y(e[a]),c=r-i,d=j([o(h(l[0],u[0],c)),o(h(l[1],u[1],c)),o(h(l[2],u[2],c)),s(h(l[3],u[3],c))],"rgba");return n?{color:d,leftIndex:i,rightIndex:a,value:r}:d}}var M=S;function T(t,e,n,r){var i=y(t);if(t)return i=b(i),null!=e&&(i[0]=a(e)),null!=n&&(i[1]=u(n)),null!=r&&(i[2]=u(r)),j(m(i),"rgba")}function C(t,e){var n=y(t);if(n&&null!=e)return n[3]=s(e),j(n,"rgba")}function j(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function I(t,e){var n=y(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function k(){return j([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}},5738:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"m",(function(){return a})),n.d(e,"l",(function(){return s})),n.d(e,"f",(function(){return l})),n.d(e,"p",(function(){return u})),n.d(e,"j",(function(){return c})),n.d(e,"i",(function(){return h})),n.d(e,"k",(function(){return d})),n.d(e,"e",(function(){return f})),n.d(e,"g",(function(){return p})),n.d(e,"h",(function(){return g})),n.d(e,"q",(function(){return v})),n.d(e,"o",(function(){return y})),n.d(e,"a",(function(){return m})),n.d(e,"b",(function(){return b})),n.d(e,"n",(function(){return _}));var r=n("b32d");function i(){return r["a"].get("ams/v1/catalogs")}function o(t){const{catalog:e,keywords:n}=t;return r["a"].get(`ams/v1/catalogs/${e}/databases`,{params:{keywords:n}})}function a(t){const{catalog:e,db:n,keywords:i}=t;return r["a"].get(`ams/v1/catalogs/${e}/databases/${n}/tables`,{params:{keywords:i}})}function s({catalog:t="",db:e="",table:n="",token:i=""}){return r["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${e}/tables/${n}/details`,{params:{token:i}})}function l({catalog:t="",db:e="",table:n=""}){return r["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${e}/tables/${n}/hive/details`)}function u({catalog:t="",db:e="",table:n=""}){return r["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${e}/tables/${n}/upgrade/status`)}function c(t){const{catalog:e,db:n,table:i,page:o,pageSize:a,token:s}=t;return r["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${n}/tables/${i}/partitions`,{params:{page:o,pageSize:a,token:s}})}function h(t){const{catalog:e,db:n,table:i,partition:o,specId:a,page:s,pageSize:l,token:u}=t;return r["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${n}/tables/${i}/partitions/${o}/files`,{params:{specId:a,page:s,pageSize:l,token:u}})}function d(t){const{catalog:e,db:n,table:i,page:o,pageSize:a,token:s,ref:l,operation:u}=t;return r["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${n}/tables/${i}/snapshots`,{params:{page:o,pageSize:a,token:s,ref:l,operation:u}})}function f(t){const{catalog:e,db:n,table:i,snapshotId:o,page:a,pageSize:s,token:l}=t;return r["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${n}/tables/${i}/snapshots/${o}/detail`,{params:{page:a,pageSize:s,token:l}})}function p(t){const{catalog:e,db:n,table:i,page:o,pageSize:a,token:s}=t;return r["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${n}/tables/${i}/operations`,{params:{page:o,pageSize:a,token:s}})}function g(t){const{catalog:e,db:n,table:i,page:o,pageSize:a,token:s}=t;return r["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${n}/tables/${i}/optimizing-processes`,{params:{page:o,pageSize:a,token:s}})}function v({catalog:t="",db:e="",table:n="",properties:i={},pkList:o=[]}){return r["a"].post(`ams/v1/tables/catalogs/${t}/dbs/${e}/tables/${n}/upgrade`,{properties:i,pkList:o})}function y(){return r["a"].get("ams/v1/upgrade/properties")}function m({catalog:t="",db:e="",table:n="",processId:i=""}){return r["a"].post(`ams/v1/tables/catalogs/${t}/dbs/${e}/tables/${n}/optimizing-processes/${i}/cancel`)}function b(t){const{catalog:e,db:n,table:i}=t;return r["a"].get(`/ams/v1/tables/catalogs/${e}/dbs/${n}/tables/${i}/branches`)}function _(t){const{catalog:e,db:n,table:i}=t;return r["a"].get(`/ams/v1/tables/catalogs/${e}/dbs/${n}/tables/${i}/tags`)}},"614d":function(t,e,n){"use strict";n("c3a6")},"6d8b":function(t,e,n){"use strict";n.r(e),n.d(e,"guid",(function(){return v})),n.d(e,"logError",(function(){return y})),n.d(e,"clone",(function(){return m})),n.d(e,"merge",(function(){return b})),n.d(e,"mergeAll",(function(){return _})),n.d(e,"extend",(function(){return x})),n.d(e,"defaults",(function(){return w})),n.d(e,"createCanvas",(function(){return O})),n.d(e,"indexOf",(function(){return S})),n.d(e,"inherits",(function(){return M})),n.d(e,"mixin",(function(){return T})),n.d(e,"isArrayLike",(function(){return C})),n.d(e,"each",(function(){return j})),n.d(e,"map",(function(){return I})),n.d(e,"reduce",(function(){return k})),n.d(e,"filter",(function(){return A})),n.d(e,"find",(function(){return D})),n.d(e,"keys",(function(){return P})),n.d(e,"bind",(function(){return R})),n.d(e,"curry",(function(){return E})),n.d(e,"isArray",(function(){return N})),n.d(e,"isFunction",(function(){return B})),n.d(e,"isString",(function(){return z})),n.d(e,"isStringSafe",(function(){return F})),n.d(e,"isNumber",(function(){return V})),n.d(e,"isObject",(function(){return H})),n.d(e,"isBuiltInObject",(function(){return G})),n.d(e,"isTypedArray",(function(){return W})),n.d(e,"isDom",(function(){return U})),n.d(e,"isGradientObject",(function(){return Y})),n.d(e,"isImagePatternObject",(function(){return X})),n.d(e,"isRegExp",(function(){return q})),n.d(e,"eqNaN",(function(){return $})),n.d(e,"retrieve",(function(){return Z})),n.d(e,"retrieve2",(function(){return K})),n.d(e,"retrieve3",(function(){return Q})),n.d(e,"slice",(function(){return J})),n.d(e,"normalizeCssArray",(function(){return tt})),n.d(e,"assert",(function(){return et})),n.d(e,"trim",(function(){return nt})),n.d(e,"setAsPrimitive",(function(){return it})),n.d(e,"isPrimitive",(function(){return ot})),n.d(e,"HashMap",(function(){return at})),n.d(e,"createHashMap",(function(){return st})),n.d(e,"concatArray",(function(){return lt})),n.d(e,"createObject",(function(){return ut})),n.d(e,"disableUserSelect",(function(){return ct})),n.d(e,"hasOwn",(function(){return ht})),n.d(e,"noop",(function(){return dt})),n.d(e,"RADIAN_TO_DEGREE",(function(){return ft}));var r=n("726e"),i=k(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=k(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,c=s.slice,h=s.map,d=function(){}.constructor,f=d?d.prototype:null,p="__proto__",g=2311;function v(){return g++}function y(){for(var t=[],e=0;e=0)u=l*n.length;else for(var d=0;d0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function u(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function h(t,e,n){return 3*(e+n)/4-n}function d(t){var e,n,r=c(t),a=r[0],s=r[1],l=new o(h(t,a,s)),u=0,d=s>0?a-4:a;for(n=0;n>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[u++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l}function p(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function f(t,e,n){for(var r,i=[],o=e;ol?l:s+a));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"22d1":function(t,e,n){"use strict";var r=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),i=function(){function t(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return t}(),o=new i;function a(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),e["a"]=o},"235c":function(t,e,n){"use strict";n("4adc")},"3c7f":function(t,e,n){"use strict";var r=n("7a23"),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},o=i,a=n("b3f0");function s(t){for(var e=1;e255?255:t}function a(t){return t=Math.round(t),t<0?0:t>360?360:t}function s(t){return t<0?0:t>1?1:t}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function c(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function u(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function d(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f=new r["a"](20),g=null;function v(t,e){g&&p(g,e),g=f.put(t,g||e.slice())}function y(t,e){if(t){e=e||[];var n=f.get(t);if(n)return p(e,n);t+="";var r=t.replace(/ /g,"").toLowerCase();if(r in i)return p(e,i[r]),v(t,e),e;var o=r.length;if("#"!==r.charAt(0)){var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var u=r.substr(0,a),h=r.substr(a+1,s-(a+1)).split(","),g=1;switch(u){case"rgba":if(4!==h.length)return 3===h.length?d(e,+h[0],+h[1],+h[2],1):d(e,0,0,0,1);g=c(h.pop());case"rgb":return 3!==h.length?void d(e,0,0,0,1):(d(e,l(h[0]),l(h[1]),l(h[2]),g),v(t,e),e);case"hsla":return 4!==h.length?void d(e,0,0,0,1):(h[3]=c(h[3]),m(h,e),v(t,e),e);case"hsl":return 3!==h.length?void d(e,0,0,0,1):(m(h,e),v(t,e),e);default:return}}d(e,0,0,0,1)}else{if(4===o||5===o){var y=parseInt(r.slice(1,4),16);return y>=0&&y<=4095?(d(e,(3840&y)>>4|(3840&y)>>8,240&y|(240&y)>>4,15&y|(15&y)<<4,5===o?parseInt(r.slice(4),16)/15:1),v(t,e),e):void d(e,0,0,0,1)}if(7===o||9===o){y=parseInt(r.slice(1,7),16);return y>=0&&y<=16777215?(d(e,(16711680&y)>>16,(65280&y)>>8,255&y,9===o?parseInt(r.slice(7),16)/255:1),v(t,e),e):void d(e,0,0,0,1)}}}}function m(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=c(t[1]),i=c(t[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return e=e||[],d(e,o(255*u(s,a,n+1/3)),o(255*u(s,a,n)),o(255*u(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function b(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,c=(s+a)/2;if(0===l)e=0,n=0;else{n=c<.5?l/(s+a):l/(2-s-a);var u=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,d=((s-o)/6+l/2)/l;r===s?e=d-h:i===s?e=1/3+u-d:o===s&&(e=2/3+h-u),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,c];return null!=t[3]&&p.push(t[3]),p}}function _(t,e){var n=y(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return T(n,4===n.length?"rgba":"rgb")}}function x(t){var e=y(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function O(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),l=e[i],c=e[a],u=r-i;return n[0]=o(h(l[0],c[0],u)),n[1]=o(h(l[1],c[1],u)),n[2]=o(h(l[2],c[2],u)),n[3]=s(h(l[3],c[3],u)),n}}var w=O;function S(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),l=y(e[i]),c=y(e[a]),u=r-i,d=T([o(h(l[0],c[0],u)),o(h(l[1],c[1],u)),o(h(l[2],c[2],u)),s(h(l[3],c[3],u))],"rgba");return n?{color:d,leftIndex:i,rightIndex:a,value:r}:d}}var j=S;function C(t,e,n,r){var i=y(t);if(t)return i=b(i),null!=e&&(i[0]=a(e)),null!=n&&(i[1]=c(n)),null!=r&&(i[2]=c(r)),T(m(i),"rgba")}function M(t,e){var n=y(t);if(n&&null!=e)return n[3]=s(e),T(n,"rgba")}function T(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function k(t,e){var n=y(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function I(){return T([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}},4754:function(t,e,n){"use strict";n("dadd")},"4adc":function(t,e,n){},5738:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"m",(function(){return a})),n.d(e,"l",(function(){return s})),n.d(e,"f",(function(){return l})),n.d(e,"q",(function(){return c})),n.d(e,"j",(function(){return u})),n.d(e,"i",(function(){return h})),n.d(e,"k",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"g",(function(){return f})),n.d(e,"h",(function(){return g})),n.d(e,"o",(function(){return v})),n.d(e,"r",(function(){return y})),n.d(e,"p",(function(){return m})),n.d(e,"a",(function(){return b})),n.d(e,"b",(function(){return _})),n.d(e,"n",(function(){return x}));var r=n("b32d");function i(){return r["a"].get("ams/v1/catalogs")}function o(t){const{catalog:e,keywords:n}=t;return r["a"].get(`ams/v1/catalogs/${e}/databases`,{params:{keywords:n}})}function a(t){const{catalog:e,db:n,keywords:i}=t;return r["a"].get(`ams/v1/catalogs/${e}/databases/${n}/tables`,{params:{keywords:i}})}function s({catalog:t="",db:e="",table:n="",token:i=""}){return r["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${e}/tables/${n}/details`,{params:{token:i}})}function l({catalog:t="",db:e="",table:n=""}){return r["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${e}/tables/${n}/hive/details`)}function c({catalog:t="",db:e="",table:n=""}){return r["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${e}/tables/${n}/upgrade/status`)}function u(t){const{catalog:e,db:n,table:i,page:o,pageSize:a,token:s}=t;return r["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${n}/tables/${i}/partitions`,{params:{page:o,pageSize:a,token:s}})}function h(t){const{catalog:e,db:n,table:i,partition:o,specId:a,page:s,pageSize:l,token:c}=t;return r["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${n}/tables/${i}/partitions/${o}/files`,{params:{specId:a,page:s,pageSize:l,token:c}})}function d(t){const{catalog:e,db:n,table:i,page:o,pageSize:a,token:s,ref:l,operation:c}=t;return r["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${n}/tables/${i}/snapshots`,{params:{page:o,pageSize:a,token:s,ref:l,operation:c}})}function p(t){const{catalog:e,db:n,table:i,snapshotId:o,page:a,pageSize:s,token:l}=t;return r["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${n}/tables/${i}/snapshots/${o}/detail`,{params:{page:a,pageSize:s,token:l}})}function f(t){const{catalog:e,db:n,table:i,page:o,pageSize:a,token:s}=t;return r["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${n}/tables/${i}/operations`,{params:{page:o,pageSize:a,token:s}})}function g(t){const{catalog:e,db:n,table:i,page:o,pageSize:a,token:s}=t;return r["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${n}/tables/${i}/optimizing-processes`,{params:{page:o,pageSize:a,token:s}})}function v(t){const{catalog:e,db:n,table:i,processId:o,page:a,pageSize:s,token:l}=t;return r["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${n}/tables/${i}/optimizing-processes/${o}/tasks`,{params:{page:a,pageSize:s,token:l}})}function y({catalog:t="",db:e="",table:n="",properties:i={},pkList:o=[]}){return r["a"].post(`ams/v1/tables/catalogs/${t}/dbs/${e}/tables/${n}/upgrade`,{properties:i,pkList:o})}function m(){return r["a"].get("ams/v1/upgrade/properties")}function b({catalog:t="",db:e="",table:n="",processId:i=""}){return r["a"].post(`ams/v1/tables/catalogs/${t}/dbs/${e}/tables/${n}/optimizing-processes/${i}/cancel`)}function _(t){const{catalog:e,db:n,table:i}=t;return r["a"].get(`/ams/v1/tables/catalogs/${e}/dbs/${n}/tables/${i}/branches`)}function x(t){const{catalog:e,db:n,table:i}=t;return r["a"].get(`/ams/v1/tables/catalogs/${e}/dbs/${n}/tables/${i}/tags`)}},"61c6":function(t,e,n){},"6d8b":function(t,e,n){"use strict";n.r(e),n.d(e,"guid",(function(){return v})),n.d(e,"logError",(function(){return y})),n.d(e,"clone",(function(){return m})),n.d(e,"merge",(function(){return b})),n.d(e,"mergeAll",(function(){return _})),n.d(e,"extend",(function(){return x})),n.d(e,"defaults",(function(){return O})),n.d(e,"createCanvas",(function(){return w})),n.d(e,"indexOf",(function(){return S})),n.d(e,"inherits",(function(){return j})),n.d(e,"mixin",(function(){return C})),n.d(e,"isArrayLike",(function(){return M})),n.d(e,"each",(function(){return T})),n.d(e,"map",(function(){return k})),n.d(e,"reduce",(function(){return I})),n.d(e,"filter",(function(){return D})),n.d(e,"find",(function(){return A})),n.d(e,"keys",(function(){return P})),n.d(e,"bind",(function(){return N})),n.d(e,"curry",(function(){return E})),n.d(e,"isArray",(function(){return R})),n.d(e,"isFunction",(function(){return B})),n.d(e,"isString",(function(){return z})),n.d(e,"isStringSafe",(function(){return F})),n.d(e,"isNumber",(function(){return V})),n.d(e,"isObject",(function(){return H})),n.d(e,"isBuiltInObject",(function(){return G})),n.d(e,"isTypedArray",(function(){return W})),n.d(e,"isDom",(function(){return U})),n.d(e,"isGradientObject",(function(){return Y})),n.d(e,"isImagePatternObject",(function(){return X})),n.d(e,"isRegExp",(function(){return q})),n.d(e,"eqNaN",(function(){return $})),n.d(e,"retrieve",(function(){return Z})),n.d(e,"retrieve2",(function(){return K})),n.d(e,"retrieve3",(function(){return Q})),n.d(e,"slice",(function(){return J})),n.d(e,"normalizeCssArray",(function(){return tt})),n.d(e,"assert",(function(){return et})),n.d(e,"trim",(function(){return nt})),n.d(e,"setAsPrimitive",(function(){return it})),n.d(e,"isPrimitive",(function(){return ot})),n.d(e,"HashMap",(function(){return at})),n.d(e,"createHashMap",(function(){return st})),n.d(e,"concatArray",(function(){return lt})),n.d(e,"createObject",(function(){return ct})),n.d(e,"disableUserSelect",(function(){return ut})),n.d(e,"hasOwn",(function(){return ht})),n.d(e,"noop",(function(){return dt})),n.d(e,"RADIAN_TO_DEGREE",(function(){return pt}));var r=n("726e"),i=I(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=I(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,c=s.filter,u=s.slice,h=s.map,d=function(){}.constructor,p=d?d.prototype:null,f="__proto__",g=2311;function v(){return g++}function y(){for(var t=[],e=0;e=0)c=l*n.length;else for(var d=0;d */ -e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=u}return(f?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+h>=1?d/l:d*Math.pow(2,1-h),e*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;t[n+f]=255&a,f+=p,a/=256,u-=8);t[n+f-p]|=128*g}},add7:function(t,e,n){"use strict";n("0855")},b311:function(t,e,n){ +e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,u=-7,h=n?i-1:0,d=n?-1:1,p=t[e+h];for(h+=d,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+t[e+h],h+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+t[e+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,f=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+h>=1?d/l:d*Math.pow(2,1-h),e*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+p]=255&s,p+=f,s/=256,i-=8);for(a=a<0;t[n+p]=255&a,p+=f,a/=256,c-=8);t[n+p-f]|=128*g}},b311:function(t,e,n){ /*! * clipboard.js v2.0.11 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */ -(function(e,n){t.exports=n()})(0,(function(){return function(){var t={686:function(t,e,n){"use strict";n.d(e,{default:function(){return D}});var r=n(279),i=n.n(r),o=n(370),a=n.n(o),s=n(817),l=n.n(s);function u(t){try{return document.execCommand(t)}catch(e){return!1}}var c=function(t){var e=l()(t);return u("cut"),e},h=c;function d(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=t,n}var f=function(t,e){var n=d(t);e.container.appendChild(n);var r=l()(n);return u("copy"),n.remove(),r},p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"===typeof t?n=f(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===t||void 0===t?void 0:t.type)?n=f(t.value,e):(n=l()(t),u("copy")),n},g=p;function v(t){return v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}var y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,r=t.container,i=t.target,o=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==v(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?g(o,{container:r}):i?"cut"===n?h(i):g(i,{container:r}):void 0},m=y;function b(t){return b="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===b(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=a()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",r=m({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(r?"success":"error",{action:n,text:r,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return k("action",t)}},{key:"defaultTarget",value:function(t){var e=k("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return k("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return g(t,e)}},{key:"cut",value:function(t){return h(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),n}(i()),D=A},828:function(t){var e=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function r(t,n){while(t&&t.nodeType!==e){if("function"===typeof t.matches&&t.matches(n))return t;t=t.parentNode}}t.exports=r},438:function(t,e,n){var r=n(828);function i(t,e,n,r,i){var o=a.apply(this,arguments);return t.addEventListener(n,o,i),{destroy:function(){t.removeEventListener(n,o,i)}}}function o(t,e,n,r,o){return"function"===typeof t.addEventListener?i.apply(null,arguments):"function"===typeof n?i.bind(null,document).apply(null,arguments):("string"===typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return i(t,e,n,r,o)})))}function a(t,e,n,i){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&i.call(t,n)}}t.exports=o},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"===typeof t||t instanceof String},e.fn=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},370:function(t,e,n){var r=n(879),i=n(438);function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return a(t,e,n);if(r.nodeList(t))return s(t,e,n);if(r.string(t))return l(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function s(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}function l(t,e,n){return i(document.body,t,e,n)}t.exports=o},817:function(t){function e(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(t),r.removeAllRanges(),r.addRange(i),e=r.toString()}return e}t.exports=e},279:function(t){function e(){}e.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;for(r;r1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"===typeof t?n=p(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===t||void 0===t?void 0:t.type)?n=p(t.value,e):(n=l()(t),c("copy")),n},g=f;function v(t){return v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}var y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,r=t.container,i=t.target,o=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==v(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?g(o,{container:r}):i?"cut"===n?h(i):g(i,{container:r}):void 0},m=y;function b(t){return b="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===b(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=a()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",r=m({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(r?"success":"error",{action:n,text:r,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return I("action",t)}},{key:"defaultTarget",value:function(t){var e=I("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return I("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return g(t,e)}},{key:"cut",value:function(t){return h(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),n}(i()),A=D},828:function(t){var e=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function r(t,n){while(t&&t.nodeType!==e){if("function"===typeof t.matches&&t.matches(n))return t;t=t.parentNode}}t.exports=r},438:function(t,e,n){var r=n(828);function i(t,e,n,r,i){var o=a.apply(this,arguments);return t.addEventListener(n,o,i),{destroy:function(){t.removeEventListener(n,o,i)}}}function o(t,e,n,r,o){return"function"===typeof t.addEventListener?i.apply(null,arguments):"function"===typeof n?i.bind(null,document).apply(null,arguments):("string"===typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return i(t,e,n,r,o)})))}function a(t,e,n,i){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&i.call(t,n)}}t.exports=o},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"===typeof t||t instanceof String},e.fn=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},370:function(t,e,n){var r=n(879),i=n(438);function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return a(t,e,n);if(r.nodeList(t))return s(t,e,n);if(r.string(t))return l(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function s(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}function l(t,e,n){return i(document.body,t,e,n)}t.exports=o},817:function(t){function e(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(t),r.removeAllRanges(),r.addRange(i),e=r.toString()}return e}t.exports=e},279:function(t){function e(){}e.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;for(r;r * @license MIT */ -var r=n("1fb5"),i=n("9152"),o=n("e3db");function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),u.alloc(+t)}function _(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(r)return Z(t).length;e=(""+e).toLowerCase(),r=!0}}function x(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return N(this,e,n);case"utf8":case"utf-8":return D(this,e,n);case"ascii":return R(this,e,n);case"latin1":case"binary":return E(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function w(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function O(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:S(t,e,n,r,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):S(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(t,e,n,r,i){var o,a=1,s=t.length,l=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var h=!0,d=0;di&&(r=i)):r=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:o=t[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return L(r)}e.Buffer=u,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return d(null,t,e,n)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=n-e,s=Math.min(o,a),l=this.slice(r,i),c=t.slice(e,n),h=0;hi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return M(this,t,e,n);case"utf8":case"utf-8":return T(this,t,e,n);case"ascii":return C(this,t,e,n);case"latin1":case"binary":return j(this,t,e,n);case"base64":return I(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function L(t){var e=t.length;if(e<=P)return String.fromCharCode.apply(String,t);var n="",r=0;while(rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function V(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function H(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function G(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function W(t,e,n,r,o){return o||G(t,e,n,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,n,r,23,4),n+4}function U(t,e,n,r,o){return o||G(t,e,n,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e0&&(i*=256))r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||z(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||z(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||z(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||z(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||z(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var r=this[t],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var r=e,i=1,o=this[t+--r];while(r>0&&(i*=256))o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||z(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||z(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||z(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||z(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||z(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||z(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||z(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||z(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||z(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;F(this,t,e,n,i,0)}var o=1,a=0;this[e]=255&t;while(++a=0&&(a*=256))this[e+o]=t/a&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);F(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;this[e]=255&t;while(++o>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);F(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;this[e+o]=255&t;while(--o>=0&&(a*=256))t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return W(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return W(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return U(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return U(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function K(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function J(t){return r.toByteArray(X(t))}function tt(t,e,n,r){for(var i=0;i=e.length||i>=t.length)break;e[i+n]=t[i]}return i}function et(t){return t!==t}}).call(this,n("c8ba"))},b6bbb:function(t,e,n){},bf1c:function(t,e,n){"use strict";n("ee38")},bfa3:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"create",(function(){return bt})),n.d(r,"copy",(function(){return _t})),n.d(r,"clone",(function(){return xt})),n.d(r,"set",(function(){return wt})),n.d(r,"add",(function(){return Ot})),n.d(r,"scaleAndAdd",(function(){return St})),n.d(r,"sub",(function(){return Mt})),n.d(r,"len",(function(){return Tt})),n.d(r,"length",(function(){return Ct})),n.d(r,"lenSquare",(function(){return jt})),n.d(r,"lengthSquare",(function(){return It})),n.d(r,"mul",(function(){return kt})),n.d(r,"div",(function(){return At})),n.d(r,"dot",(function(){return Dt})),n.d(r,"scale",(function(){return Pt})),n.d(r,"normalize",(function(){return Lt})),n.d(r,"distance",(function(){return Rt})),n.d(r,"dist",(function(){return Et})),n.d(r,"distanceSquare",(function(){return Nt})),n.d(r,"distSquare",(function(){return Bt})),n.d(r,"negate",(function(){return zt})),n.d(r,"lerp",(function(){return Ft})),n.d(r,"applyTransform",(function(){return Vt})),n.d(r,"min",(function(){return Ht})),n.d(r,"max",(function(){return Gt}));var i={};n.r(i),n.d(i,"create",(function(){return Ir})),n.d(i,"identity",(function(){return kr})),n.d(i,"copy",(function(){return Ar})),n.d(i,"mul",(function(){return Dr})),n.d(i,"translate",(function(){return Pr})),n.d(i,"rotate",(function(){return Lr})),n.d(i,"scale",(function(){return Rr})),n.d(i,"invert",(function(){return Er})),n.d(i,"clone",(function(){return Nr}));var o={};n.r(o),n.d(o,"init",(function(){return zi})),n.d(o,"dispose",(function(){return Fi})),n.d(o,"disposeAll",(function(){return Vi})),n.d(o,"getInstance",(function(){return Hi})),n.d(o,"registerPainter",(function(){return Gi})),n.d(o,"version",(function(){return Wi}));var a={};n.r(a),n.d(a,"updateProps",(function(){return Qu})),n.d(a,"initProps",(function(){return Ju})),n.d(a,"removeElement",(function(){return ec})),n.d(a,"removeElementWithFadeOut",(function(){return rc})),n.d(a,"isElementRemoved",(function(){return tc})),n.d(a,"extendShape",(function(){return gy})),n.d(a,"extendPath",(function(){return yy})),n.d(a,"registerShape",(function(){return my})),n.d(a,"getShapeClass",(function(){return by})),n.d(a,"makePath",(function(){return _y})),n.d(a,"makeImage",(function(){return xy})),n.d(a,"mergePath",(function(){return Oy})),n.d(a,"resizePath",(function(){return Sy})),n.d(a,"subPixelOptimizeLine",(function(){return My})),n.d(a,"subPixelOptimizeRect",(function(){return Ty})),n.d(a,"subPixelOptimize",(function(){return Cy})),n.d(a,"getTransform",(function(){return jy})),n.d(a,"applyTransform",(function(){return Iy})),n.d(a,"transformDirection",(function(){return ky})),n.d(a,"groupTransition",(function(){return Py})),n.d(a,"clipPointsByRect",(function(){return Ly})),n.d(a,"clipRectByRect",(function(){return Ry})),n.d(a,"createIcon",(function(){return Ey})),n.d(a,"linePolygonIntersect",(function(){return Ny})),n.d(a,"lineLineIntersect",(function(){return By})),n.d(a,"setTooltipConfig",(function(){return Vy})),n.d(a,"traverseElements",(function(){return Gy})),n.d(a,"Group",(function(){return Pi})),n.d(a,"Image",(function(){return al})),n.d(a,"Text",(function(){return Pl})),n.d(a,"Circle",(function(){return iv})),n.d(a,"Ellipse",(function(){return sv})),n.d(a,"Sector",(function(){return Mv})),n.d(a,"Ring",(function(){return jv})),n.d(a,"Polygon",(function(){return Pv})),n.d(a,"Polyline",(function(){return Ev})),n.d(a,"Rect",(function(){return gl})),n.d(a,"Line",(function(){return Fv})),n.d(a,"BezierCurve",(function(){return Uv})),n.d(a,"Arc",(function(){return qv})),n.d(a,"IncrementalDisplayable",(function(){return hy})),n.d(a,"CompoundPath",(function(){return Zv})),n.d(a,"LinearGradient",(function(){return ty})),n.d(a,"RadialGradient",(function(){return ny})),n.d(a,"BoundingRect",(function(){return ai})),n.d(a,"OrientedBoundingRect",(function(){return ly})),n.d(a,"Point",(function(){return Zr})),n.d(a,"Path",(function(){return Qs}));var s={};n.r(s),n.d(s,"createList",(function(){return _S})),n.d(s,"getLayoutRect",(function(){return Kh})),n.d(s,"createDimensions",(function(){return Dw})),n.d(s,"dataStack",(function(){return xS})),n.d(s,"createSymbol",(function(){return ub})),n.d(s,"createScale",(function(){return wS})),n.d(s,"mixinAxisModelCommonMethods",(function(){return OS})),n.d(s,"getECData",(function(){return Ll})),n.d(s,"enableHoverEmphasis",(function(){return Eu})),n.d(s,"createTextStyle",(function(){return SS}));var l={};n.r(l),n.d(l,"linearMap",(function(){return qi})),n.d(l,"round",(function(){return Zi})),n.d(l,"asc",(function(){return Ki})),n.d(l,"getPrecision",(function(){return Qi})),n.d(l,"getPrecisionSafe",(function(){return Ji})),n.d(l,"getPixelPrecision",(function(){return to})),n.d(l,"getPercentWithPrecision",(function(){return eo})),n.d(l,"MAX_SAFE_INTEGER",(function(){return ro})),n.d(l,"remRadian",(function(){return io})),n.d(l,"isRadianAroundZero",(function(){return oo})),n.d(l,"parseDate",(function(){return so})),n.d(l,"quantity",(function(){return lo})),n.d(l,"quantityExponent",(function(){return uo})),n.d(l,"nice",(function(){return co})),n.d(l,"quantile",(function(){return ho})),n.d(l,"reformIntervals",(function(){return fo})),n.d(l,"isNumeric",(function(){return go})),n.d(l,"numericToNumber",(function(){return po}));var u={};n.r(u),n.d(u,"parse",(function(){return so})),n.d(u,"format",(function(){return fh}));var c={};n.r(c),n.d(c,"extendShape",(function(){return gy})),n.d(c,"extendPath",(function(){return yy})),n.d(c,"makePath",(function(){return _y})),n.d(c,"makeImage",(function(){return xy})),n.d(c,"mergePath",(function(){return Oy})),n.d(c,"resizePath",(function(){return Sy})),n.d(c,"createIcon",(function(){return Ey})),n.d(c,"updateProps",(function(){return Qu})),n.d(c,"initProps",(function(){return Ju})),n.d(c,"getTransform",(function(){return jy})),n.d(c,"clipPointsByRect",(function(){return Ly})),n.d(c,"clipRectByRect",(function(){return Ry})),n.d(c,"registerShape",(function(){return my})),n.d(c,"getShapeClass",(function(){return by})),n.d(c,"Group",(function(){return Pi})),n.d(c,"Image",(function(){return al})),n.d(c,"Text",(function(){return Pl})),n.d(c,"Circle",(function(){return iv})),n.d(c,"Ellipse",(function(){return sv})),n.d(c,"Sector",(function(){return Mv})),n.d(c,"Ring",(function(){return jv})),n.d(c,"Polygon",(function(){return Pv})),n.d(c,"Polyline",(function(){return Ev})),n.d(c,"Rect",(function(){return gl})),n.d(c,"Line",(function(){return Fv})),n.d(c,"BezierCurve",(function(){return Uv})),n.d(c,"Arc",(function(){return qv})),n.d(c,"IncrementalDisplayable",(function(){return hy})),n.d(c,"CompoundPath",(function(){return Zv})),n.d(c,"LinearGradient",(function(){return ty})),n.d(c,"RadialGradient",(function(){return ny})),n.d(c,"BoundingRect",(function(){return ai}));var h={};n.r(h),n.d(h,"addCommas",(function(){return Ah})),n.d(h,"toCamelCase",(function(){return Dh})),n.d(h,"normalizeCssArray",(function(){return Ph})),n.d(h,"encodeHTML",(function(){return Eh})),n.d(h,"formatTpl",(function(){return Fh})),n.d(h,"getTooltipMarker",(function(){return Vh})),n.d(h,"formatTime",(function(){return Hh})),n.d(h,"capitalFirst",(function(){return Gh})),n.d(h,"truncateText",(function(){return wa})),n.d(h,"getTextRect",(function(){return FS}));var d={};n.r(d),n.d(d,"map",(function(){return mt["map"]})),n.d(d,"each",(function(){return mt["each"]})),n.d(d,"indexOf",(function(){return mt["indexOf"]})),n.d(d,"inherits",(function(){return mt["inherits"]})),n.d(d,"reduce",(function(){return mt["reduce"]})),n.d(d,"filter",(function(){return mt["filter"]})),n.d(d,"bind",(function(){return mt["bind"]})),n.d(d,"curry",(function(){return mt["curry"]})),n.d(d,"isArray",(function(){return mt["isArray"]})),n.d(d,"isString",(function(){return mt["isString"]})),n.d(d,"isObject",(function(){return mt["isObject"]})),n.d(d,"isFunction",(function(){return mt["isFunction"]})),n.d(d,"extend",(function(){return mt["extend"]})),n.d(d,"defaults",(function(){return mt["defaults"]})),n.d(d,"clone",(function(){return mt["clone"]})),n.d(d,"merge",(function(){return mt["merge"]}));var f={};n.r(f),n.d(f,"version",(function(){return h_})),n.d(f,"dependencies",(function(){return d_})),n.d(f,"PRIORITY",(function(){return I_})),n.d(f,"init",(function(){return Ox})),n.d(f,"connect",(function(){return Sx})),n.d(f,"disConnect",(function(){return Mx})),n.d(f,"disconnect",(function(){return Tx})),n.d(f,"dispose",(function(){return Cx})),n.d(f,"getInstanceByDom",(function(){return jx})),n.d(f,"getInstanceById",(function(){return Ix})),n.d(f,"registerTheme",(function(){return kx})),n.d(f,"registerPreprocessor",(function(){return Ax})),n.d(f,"registerProcessor",(function(){return Dx})),n.d(f,"registerPostInit",(function(){return Px})),n.d(f,"registerPostUpdate",(function(){return Lx})),n.d(f,"registerUpdateLifecycle",(function(){return Rx})),n.d(f,"registerAction",(function(){return Ex})),n.d(f,"registerCoordinateSystem",(function(){return Nx})),n.d(f,"getCoordinateSystemDimensions",(function(){return Bx})),n.d(f,"registerLocale",(function(){return $c})),n.d(f,"registerLayout",(function(){return zx})),n.d(f,"registerVisual",(function(){return Fx})),n.d(f,"registerLoading",(function(){return Gx})),n.d(f,"setCanvasCreator",(function(){return Wx})),n.d(f,"registerMap",(function(){return Ux})),n.d(f,"getMap",(function(){return Yx})),n.d(f,"registerTransform",(function(){return Xx})),n.d(f,"dataTool",(function(){return qx})),n.d(f,"zrender",(function(){return o})),n.d(f,"matrix",(function(){return i})),n.d(f,"vector",(function(){return r})),n.d(f,"zrUtil",(function(){return mt})),n.d(f,"color",(function(){return jn})),n.d(f,"throttle",(function(){return nm})),n.d(f,"helper",(function(){return s})),n.d(f,"use",(function(){return Kx})),n.d(f,"setPlatformAPI",(function(){return li["d"]})),n.d(f,"parseGeoJSON",(function(){return zS})),n.d(f,"parseGeoJson",(function(){return zS})),n.d(f,"number",(function(){return l})),n.d(f,"time",(function(){return u})),n.d(f,"graphic",(function(){return c})),n.d(f,"format",(function(){return h})),n.d(f,"util",(function(){return d})),n.d(f,"env",(function(){return yt["a"]})),n.d(f,"List",(function(){return Aw})),n.d(f,"Model",(function(){return Rc})),n.d(f,"Axis",(function(){return aM})),n.d(f,"ComponentModel",(function(){return od})),n.d(f,"ComponentView",(function(){return Ag})),n.d(f,"SeriesModel",(function(){return Ig})),n.d(f,"ChartView",(function(){return Qy})),n.d(f,"innerDrawElementOnCanvas",(function(){return Yb})),n.d(f,"extendComponentModel",(function(){return sM})),n.d(f,"extendComponentView",(function(){return lM})),n.d(f,"extendSeriesModel",(function(){return uM})),n.d(f,"extendChartView",(function(){return cM}));var p=n("7a23");const g={class:"tables-wrap"},v={key:0,class:"tables-content"},y={class:"g-flex-jsb"},m={class:"g-flex-col"},b={class:"g-flex"},_=["title"],x={key:0,class:"create-time"},w={class:"table-info g-flex-ac"},O={class:"text-color"},S={class:"text-color"},M={class:"text-color"},T={class:"text-color"},C={class:"content"};function j(t,e,n,r,i,o){const a=Object(p["resolveComponent"])("a-divider"),s=Object(p["resolveComponent"])("u-details"),l=Object(p["resolveComponent"])("a-tab-pane"),u=Object(p["resolveComponent"])("u-files"),c=Object(p["resolveComponent"])("a-tabs"),h=Object(p["resolveComponent"])("router-view");return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",g,[t.isSecondaryNav?(Object(p["openBlock"])(),Object(p["createBlock"])(h,{key:1,onGoBack:t.goBack},null,8,["onGoBack"])):(Object(p["openBlock"])(),Object(p["createElementBlock"])("div",v,[Object(p["createElementVNode"])("div",y,[Object(p["createElementVNode"])("div",m,[Object(p["createElementVNode"])("div",b,[Object(p["createElementVNode"])("span",{title:t.baseInfo.tableName,class:"table-name g-text-nowrap"},Object(p["toDisplayString"])(t.baseInfo.tableName),9,_),t.isIceberg?Object(p["createCommentVNode"])("",!0):(Object(p["openBlock"])(),Object(p["createElementBlock"])("span",x,Object(p["toDisplayString"])(`${t.$t("createTime")}: ${t.baseInfo.createTime}`),1))]),Object(p["createElementVNode"])("div",w,[Object(p["createElementVNode"])("p",null,[Object(p["createTextVNode"])(Object(p["toDisplayString"])(`${t.$t("table")}${t.$t("size")}`)+": ",1),Object(p["createElementVNode"])("span",O,Object(p["toDisplayString"])(t.baseInfo.size),1)]),Object(p["createVNode"])(a,{type:"vertical"}),Object(p["createElementVNode"])("p",null,[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t.$t("file"))+": ",1),Object(p["createElementVNode"])("span",S,Object(p["toDisplayString"])(t.baseInfo.file),1)]),Object(p["createVNode"])(a,{type:"vertical"}),Object(p["createElementVNode"])("p",null,[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t.$t("averageFileSize"))+": ",1),Object(p["createElementVNode"])("span",M,Object(p["toDisplayString"])(t.baseInfo.averageFile),1)]),Object(p["createVNode"])(a,{type:"vertical"}),Object(p["createElementVNode"])("p",null,[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t.$t("tableFormat"))+": ",1),Object(p["createElementVNode"])("span",T,Object(p["toDisplayString"])(t.baseInfo.tableFormat),1)])])])]),Object(p["createElementVNode"])("div",C,[Object(p["createVNode"])(c,{activeKey:t.activeKey,"onUpdate:activeKey":e[0]||(e[0]=e=>t.activeKey=e),destroyInactiveTabPane:"",onChange:t.onChangeTab},{default:Object(p["withCtx"])(()=>[Object(p["createVNode"])(l,{key:"Details",tab:"Details",forceRender:""},{default:Object(p["withCtx"])(()=>[Object(p["createVNode"])(s,{onSetBaseDetailInfo:t.setBaseDetailInfo,ref:"detailRef"},null,8,["onSetBaseDetailInfo"])]),_:1}),t.detailLoaded?(Object(p["openBlock"])(),Object(p["createBlock"])(l,{key:"Files",tab:"Files"},{default:Object(p["withCtx"])(()=>[Object(p["createVNode"])(u,{hasPartition:t.baseInfo.hasPartition},null,8,["hasPartition"])]),_:1})):Object(p["createCommentVNode"])("",!0),(Object(p["openBlock"])(!0),Object(p["createElementBlock"])(p["Fragment"],null,Object(p["renderList"])(t.tabConfigs,t=>(Object(p["openBlock"])(),Object(p["createBlock"])(l,{key:t.key,tab:""+t.label},{default:Object(p["withCtx"])(()=>[(Object(p["openBlock"])(),Object(p["createBlock"])(Object(p["resolveDynamicComponent"])("U"+t.key)))]),_:2},1032,["tab"]))),128))]),_:1},8,["activeKey","onChange"])])]))])}var I=n("47e2"),k=n("6c02"),A=n("5738"),D=n("d257");const P={class:"table-detail g-flex"},L={class:"left-content"},R={key:0,class:"table-attrs"},E={class:"attr-title"},N={key:1,class:"table-attrs"},B={class:"attr-title"},z={class:"table-attrs"},F={class:"attr-title"},V={class:"right-content"},H={key:0,class:"table-attrs"},G={class:"attr-title"},W={class:"table-attrs"},U={class:"attr-title"},Y={class:"table-attrs"},X={class:"attr-title"};var q=Object(p["defineComponent"])({__name:"Details",emits:["setBaseDetailInfo"],setup(t,{expose:e,emit:n}){const{t:r}=Object(I["b"])(),i=Object(k["d"])(),o=Object(p["computed"])(()=>({...i.query}));Object(p["watch"])(()=>i.query,t=>{(null===t||void 0===t?void 0:t.catalog)&&"/tables"===i.path&&c()});const a={fileCount:"File Count",totalSize:"Total Size",averageFileSize:"Average File Size",lastCommitTime:"Last Commit Time"},s={...a,baseWatermark:"Base Watermark"},l={...a,tableWatermark:"Table Watermark"},u=Object(p["reactive"])({detailLoading:!1,baseDetailInfo:{tableType:"",tableName:"",createTime:"",size:"",file:"",averageFile:"",tableFormat:"",hasPartition:!1},pkList:[],partitionColumnList:[],properties:[],changeMetrics:[],baseMetrics:[],schema:[]}),c=async()=>{try{const{catalog:e,db:n,table:r}=o.value;if(!e||!n||!r)return;u.detailLoading=!0;const i=await Object(A["l"])({...o.value}),{pkList:a=[],tableType:c,partitionColumnList:h=[],properties:d,changeMetrics:f,schema:p,createTime:g,tableIdentifier:v,baseMetrics:y,tableSummary:m}=i;u.baseDetailInfo={...m,tableType:c,tableName:(null===v||void 0===v?void 0:v.tableName)||"",createTime:g?Object(D["b"])(g):"",hasPartition:!(null===h||void 0===h||!h.length)},u.pkList=a||[],u.partitionColumnList=h||[],u.schema=p||[],u.changeMetrics=Object.keys(l||{}).map(t=>({metric:l[t],value:"lastCommitTime"===t||"tableWatermark"===t?(f||{})[t]?Object(D["b"])((f||{})[t]):"":(f||{})[t]})).filter(t=>t.value),u.baseMetrics=Object.keys(s||{}).map(t=>({metric:s[t],value:"lastCommitTime"===t||"baseWatermark"===t?(y||{})[t]?Object(D["b"])((y||{})[t]):"":(y||{})[t]})),u.properties=Object.keys(d||{}).map(t=>({key:t,value:d[t]})),t()}catch(e){}finally{u.detailLoading=!1}function t(){n("setBaseDetailInfo",u.baseDetailInfo)}};Object(p["onMounted"])(()=>{c()}),e({getTableDetails:c});const h=Object(p["shallowReactive"])([{title:r("field"),dataIndex:"field",width:"30%"},{title:r("type"),dataIndex:"type",width:"20%"},{title:r("required"),dataIndex:"required",width:"20%",customRender:t=>String(null===t||void 0===t?void 0:t.value)},{title:r("description"),dataIndex:"comment",ellipsis:!0}]),d=Object(p["shallowReactive"])([{title:r("field"),dataIndex:"field",width:"30%"},{title:r("sourceField"),dataIndex:"sourceField",width:"30%"},{title:r("transform"),dataIndex:"transform",ellipsis:!0}]),f=Object(p["shallowReactive"])([{title:r("metric"),dataIndex:"metric",width:"50%",ellipsis:!0},{title:r("value"),dataIndex:"value",ellipsis:!0}]),g=Object(p["shallowReactive"])([{title:r("key"),dataIndex:"key",width:"50%",ellipsis:!0},{title:r("value"),dataIndex:"value",ellipsis:!0}]);return(t,e)=>{const n=Object(p["resolveComponent"])("a-table"),r=Object(p["resolveComponent"])("u-loading");return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",P,[Object(p["createElementVNode"])("div",L,[u.pkList&&u.pkList.length?(Object(p["openBlock"])(),Object(p["createElementBlock"])("div",R,[Object(p["createElementVNode"])("p",E,Object(p["toDisplayString"])(t.$t("primaryKey")),1),Object(p["createVNode"])(n,{rowKey:"field",columns:Object(p["unref"])(h),"data-source":u.pkList,pagination:!1},null,8,["columns","data-source"])])):Object(p["createCommentVNode"])("",!0),u.partitionColumnList&&u.partitionColumnList.length?(Object(p["openBlock"])(),Object(p["createElementBlock"])("div",N,[Object(p["createElementVNode"])("p",B,Object(p["toDisplayString"])(t.$t("partitionKey")),1),Object(p["createVNode"])(n,{rowKey:"field",columns:Object(p["unref"])(d),"data-source":u.partitionColumnList,pagination:!1},null,8,["columns","data-source"])])):Object(p["createCommentVNode"])("",!0),Object(p["createElementVNode"])("div",z,[Object(p["createElementVNode"])("p",F,Object(p["toDisplayString"])(t.$t("schema")),1),Object(p["createVNode"])(n,{rowKey:"field",columns:Object(p["unref"])(h),"data-source":u.schema,pagination:!1},null,8,["columns","data-source"])])]),Object(p["createElementVNode"])("div",V,[u.changeMetrics&&u.changeMetrics.length?(Object(p["openBlock"])(),Object(p["createElementBlock"])("div",H,[Object(p["createElementVNode"])("p",G,Object(p["toDisplayString"])(t.$t("changeTableMetrics")),1),Object(p["createVNode"])(n,{columns:Object(p["unref"])(f),"data-source":u.changeMetrics,pagination:!1},null,8,["columns","data-source"])])):Object(p["createCommentVNode"])("",!0),Object(p["createElementVNode"])("div",W,[Object(p["createElementVNode"])("p",U,Object(p["toDisplayString"])(t.$t("baseTableMetrics")),1),Object(p["createVNode"])(n,{columns:Object(p["unref"])(f),"data-source":u.baseMetrics,pagination:!1},null,8,["columns","data-source"])]),Object(p["createElementVNode"])("div",Y,[Object(p["createElementVNode"])("p",X,Object(p["toDisplayString"])(t.$t("properties")),1),Object(p["createVNode"])(n,{columns:Object(p["unref"])(g),"data-source":u.properties,pagination:!1},null,8,["columns","data-source"])])]),u.detailLoading?(Object(p["openBlock"])(),Object(p["createBlock"])(r,{key:0})):Object(p["createCommentVNode"])("",!0)])}}}),$=(n("0300"),n("6b0d")),Z=n.n($);const K=Z()(q,[["__scopeId","data-v-1a704e23"]]);var Q=K,J=n("b356");const tt={class:"table-partitons"},et=Object(p["createTextVNode"])("All");var nt=Object(p["defineComponent"])({__name:"Files",props:{hasPartition:{type:Boolean}},setup(t){const e=t,n=Object(p["ref"])(!1),{t:r}=Object(I["b"])(),i=Object(p["shallowReactive"])([{title:r("partition"),dataIndex:"partition",ellipsis:!0},{title:r("fileCount"),dataIndex:"fileCount",width:120,ellipsis:!0},{title:r("size"),dataIndex:"size",width:120,ellipsis:!0},{title:r("lastCommitTime"),dataIndex:"lastCommitTime",width:200,ellipsis:!0}]),o=Object(p["shallowReactive"])([{title:r("file"),dataIndex:"file",ellipsis:!0},{title:r("fileType"),dataIndex:"fileType",width:120,ellipsis:!0},{title:r("size"),dataIndex:"size",width:120,ellipsis:!0},{title:r("commitTime"),dataIndex:"commitTime",width:200,ellipsis:!0},{title:r("commitId"),dataIndex:"commitId",width:200,ellipsis:!0},{title:r("path"),dataIndex:"path",ellipsis:!0,scopedSlots:{customRender:"path"}}]),a=Object(p["reactive"])([]),s=Object(p["reactive"])([]),l=Object(p["ref"])(""),u=Object(p["ref"])(0),c=Object(p["ref"])(!1),h=Object(p["reactive"])(Object(J["a"])()),d=Object(p["reactive"])(Object(J["a"])()),f=Object(k["d"])(),g=f.query,v=Object(p["reactive"])({catalog:"",db:"",table:"",...g});async function y(){try{c.value=!0,a.length=0;const t=await Object(A["j"])({...v,page:h.current,pageSize:h.pageSize}),{list:e,total:n}=t;h.total=n,(e||[]).forEach(t=>{t.lastCommitTime=t.lastCommitTime?Object(D["b"])(t.lastCommitTime):"",a.push(t)})}catch(t){}finally{c.value=!1}}function m({current:t=1,pageSize:r=25}){!n.value&&e.hasPartition?(h.current=t,r!==h.pageSize&&(h.current=1),h.pageSize=r):(d.current=t,r!==d.pageSize&&(d.current=1),d.pageSize=r),b()}function b(){e.hasPartition?n.value?_():y():_()}async function _(){try{s.length=0,c.value=!0;const t={...v,partition:e.hasPartition?encodeURIComponent(l.value):null,specId:u.value,page:d.current,pageSize:d.pageSize},n=await Object(A["i"])(t),{list:r,total:i}=n;d.total=i,(r||[]).forEach(t=>{t.commitTime=t.commitTime?Object(D["b"])(t.commitTime):"",s.push(t)})}catch(t){}finally{c.value=!1}}function x(t){l.value=t.partition,u.value=t.specId,n.value=!n.value,n.value&&(d.current=1,_())}return Object(p["onMounted"])(()=>{n.value=!1,e.hasPartition?y():_()}),(e,r)=>{const u=Object(p["resolveComponent"])("a-button"),f=Object(p["resolveComponent"])("a-table"),g=Object(p["resolveComponent"])("a-breadcrumb-item"),v=Object(p["resolveComponent"])("a-breadcrumb"),y=Object(p["resolveComponent"])("a-tooltip");return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",tt,[!n.value&&t.hasPartition?(Object(p["openBlock"])(),Object(p["createBlock"])(f,{key:0,rowKey:"partiton",columns:Object(p["unref"])(i),"data-source":a,pagination:h,onChange:m,loading:c.value},{bodyCell:Object(p["withCtx"])(({column:t,record:e})=>["partition"===t.dataIndex?(Object(p["openBlock"])(),Object(p["createBlock"])(u,{key:0,type:"link",onClick:t=>x(e)},{default:Object(p["withCtx"])(()=>[Object(p["createTextVNode"])(Object(p["toDisplayString"])(e.partition),1)]),_:2},1032,["onClick"])):Object(p["createCommentVNode"])("",!0)]),_:1},8,["columns","data-source","pagination","loading"])):(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:1},[t.hasPartition?(Object(p["openBlock"])(),Object(p["createBlock"])(v,{key:0,separator:">"},{default:Object(p["withCtx"])(()=>[Object(p["createVNode"])(g,{onClick:x,class:"text-active"},{default:Object(p["withCtx"])(()=>[et]),_:1}),Object(p["createVNode"])(g,null,{default:Object(p["withCtx"])(()=>[Object(p["createTextVNode"])(Object(p["toDisplayString"])(`${e.$t("partition")} ${l.value}`),1)]),_:1})]),_:1})):Object(p["createCommentVNode"])("",!0),Object(p["createVNode"])(f,{rowKey:"file",columns:Object(p["unref"])(o),"data-source":s,pagination:d,onChange:m,loading:c.value},{bodyCell:Object(p["withCtx"])(({column:t,record:e})=>["path"===t.dataIndex?(Object(p["openBlock"])(),Object(p["createBlock"])(y,{key:0},{title:Object(p["withCtx"])(()=>[Object(p["createTextVNode"])(Object(p["toDisplayString"])(e.path),1)]),default:Object(p["withCtx"])(()=>[Object(p["createElementVNode"])("span",null,Object(p["toDisplayString"])(e.path),1)]),_:2},1024)):Object(p["createCommentVNode"])("",!0)]),_:1},8,["columns","data-source","pagination","loading"])],64))])}}});n("bf1c");const rt=Z()(nt,[["__scopeId","data-v-a19b17ea"]]);var it=rt,ot=(n("3b18"),n("f64c")),at=n("b311"),st=n.n(at),lt=t=>{const e=void 0===(null===t||void 0===t?void 0:t.appendToBody)||t.appendToBody;return{toClipboard(t,n){return new Promise((r,i)=>{const o=document.createElement("button"),a=new st.a(o,{text:()=>t,action:()=>"copy",container:void 0!==n?n:document.body});a.on("success",t=>{a.destroy(),r(t)}),a.on("error",t=>{a.destroy(),i(t)}),e&&document.body.appendChild(o),o.click(),e&&document.body.removeChild(o)})}}};const ut={class:"table-operations"},ct=["onClick"];var ht=Object(p["defineComponent"])({__name:"Operations",setup(t){const{toClipboard:e}=lt(),{t:n}=Object(I["b"])(),r=Object(p["shallowReactive"])([{title:n("time"),dataIndex:"ts",width:"30%"},{title:n("operation"),dataIndex:"operation",scopedSlots:{customRender:"operation"}}]),i=Object(p["ref"])(!1),o=Object(p["ref"])(""),a=Object(p["reactive"])([]),s=Object(p["ref"])(!1),l=Object(p["reactive"])(Object(J["a"])()),u=Object(k["d"])(),c=u.query,h=Object(p["reactive"])({catalog:"",db:"",table:"",...c});async function d(){try{s.value=!0,a.length=0;const t=await Object(A["g"])({...h,page:l.current,pageSize:l.pageSize}),{total:e,list:n}=t;l.total=e,(n||[]).forEach(t=>{t.ts=t.ts?Object(D["b"])(t.ts):"",a.push(t)})}catch(t){}finally{s.value=!1}}function f({current:t=1,pageSize:e=25}=l){l.current=t,e!==l.pageSize&&(l.current=1),l.pageSize=e,d()}function g(t){i.value=!0,o.value=t.operation}function v(){i.value=!1}async function y(){try{await e(o.value),ot["a"].success(n("copySuccess")),v()}catch(t){}}return Object(p["onMounted"])(()=>{d()}),(t,e)=>{const n=Object(p["resolveComponent"])("a-table"),u=Object(p["resolveComponent"])("a-button"),c=Object(p["resolveComponent"])("a-modal");return Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],null,[Object(p["createElementVNode"])("div",ut,[Object(p["createVNode"])(n,{rowKey:"partiton",columns:Object(p["unref"])(r),"data-source":a,pagination:l,onChange:f,loading:s.value},{bodyCell:Object(p["withCtx"])(({column:t,record:e})=>["operation"===t.dataIndex?(Object(p["openBlock"])(),Object(p["createElementBlock"])("span",{key:0,class:"text-active g-max-line-3",onClick:t=>g(e)},Object(p["toDisplayString"])(e.operation),9,ct)):Object(p["createCommentVNode"])("",!0)]),_:1},8,["columns","data-source","pagination","loading"])]),Object(p["createVNode"])(c,{visible:i.value,width:560,title:""+t.$t("operationDetails"),onCancel:v,class:"operation-wrap"},{footer:Object(p["withCtx"])(()=>[Object(p["createVNode"])(u,{type:"primary",onClick:y},{default:Object(p["withCtx"])(()=>[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t.$t("copy")),1)]),_:1})]),default:Object(p["withCtx"])(()=>[Object(p["createTextVNode"])(Object(p["toDisplayString"])(o.value)+" ",1)]),_:1},8,["visible","title"])],64)}}});n("da03b");const dt=ht;var ft=dt;function pt(t,e,n,r,i,o){const a=Object(p["resolveComponent"])("a-spin");return Object(p["openBlock"])(),Object(p["createBlock"])(a,{spinning:t.loading,class:"echarts-loading"},{default:Object(p["withCtx"])(()=>[Object(p["createElementVNode"])("div",{ref:"echart",style:Object(p["normalizeStyle"])({width:t.width,height:t.height}),class:"timeline-echarts"},null,4)]),_:1},8,["spinning"])} +var r=n("1fb5"),i=n("9152"),o=n("e3db");function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),c.alloc(+t)}function _(t,e){if(c.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(r)return Z(t).length;e=(""+e).toLowerCase(),r=!0}}function x(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return R(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return N(this,e,n);case"latin1":case"binary":return E(this,e,n);case"base64":return D(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function O(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function w(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:S(t,e,n,r,i);if("number"===typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):S(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(t,e,n,r,i){var o,a=1,s=t.length,l=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var u=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var h=!0,d=0;di&&(r=i)):r=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:o=t[i+1],128===(192&o)&&(l=(31&c)<<6|63&o,l>127&&(u=l));break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return L(r)}e.Buffer=c,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return u(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return d(null,t,e,n)},c.allocUnsafe=function(t){return p(null,t)},c.allocUnsafeSlow=function(t){return p(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},c.prototype.compare=function(t,e,n,r,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=n-e,s=Math.min(o,a),l=this.slice(r,i),u=t.slice(e,n),h=0;hi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return j(this,t,e,n);case"utf8":case"utf-8":return C(this,t,e,n);case"ascii":return M(this,t,e,n);case"latin1":case"binary":return T(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function L(t){var e=t.length;if(e<=P)return String.fromCharCode.apply(String,t);var n="",r=0;while(rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function V(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function H(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function G(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function W(t,e,n,r,o){return o||G(t,e,n,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,n,r,23,4),n+4}function U(t,e,n,r,o){return o||G(t,e,n,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e0&&(i*=256))r+=this[t+--e]*i;return r},c.prototype.readUInt8=function(t,e){return e||z(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||z(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||z(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||z(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||z(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var r=this[t],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||z(t,e,this.length);var r=e,i=1,o=this[t+--r];while(r>0&&(i*=256))o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||z(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||z(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||z(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||z(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||z(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||z(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||z(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||z(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||z(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;F(this,t,e,n,i,0)}var o=1,a=0;this[e]=255&t;while(++a=0&&(a*=256))this[e+o]=t/a&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);F(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;this[e]=255&t;while(++o>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);F(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;this[e+o]=255&t;while(--o>=0&&(a*=256))t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return W(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return W(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return U(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return U(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function K(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function J(t){return r.toByteArray(X(t))}function tt(t,e,n,r){for(var i=0;i=e.length||i>=t.length)break;e[i+n]=t[i]}return i}function et(t){return t!==t}}).call(this,n("c8ba"))},b6bbb:function(t,e,n){},bfa3:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"create",(function(){return bt})),n.d(r,"copy",(function(){return _t})),n.d(r,"clone",(function(){return xt})),n.d(r,"set",(function(){return Ot})),n.d(r,"add",(function(){return wt})),n.d(r,"scaleAndAdd",(function(){return St})),n.d(r,"sub",(function(){return jt})),n.d(r,"len",(function(){return Ct})),n.d(r,"length",(function(){return Mt})),n.d(r,"lenSquare",(function(){return Tt})),n.d(r,"lengthSquare",(function(){return kt})),n.d(r,"mul",(function(){return It})),n.d(r,"div",(function(){return Dt})),n.d(r,"dot",(function(){return At})),n.d(r,"scale",(function(){return Pt})),n.d(r,"normalize",(function(){return Lt})),n.d(r,"distance",(function(){return Nt})),n.d(r,"dist",(function(){return Et})),n.d(r,"distanceSquare",(function(){return Rt})),n.d(r,"distSquare",(function(){return Bt})),n.d(r,"negate",(function(){return zt})),n.d(r,"lerp",(function(){return Ft})),n.d(r,"applyTransform",(function(){return Vt})),n.d(r,"min",(function(){return Ht})),n.d(r,"max",(function(){return Gt}));var i={};n.r(i),n.d(i,"create",(function(){return kr})),n.d(i,"identity",(function(){return Ir})),n.d(i,"copy",(function(){return Dr})),n.d(i,"mul",(function(){return Ar})),n.d(i,"translate",(function(){return Pr})),n.d(i,"rotate",(function(){return Lr})),n.d(i,"scale",(function(){return Nr})),n.d(i,"invert",(function(){return Er})),n.d(i,"clone",(function(){return Rr}));var o={};n.r(o),n.d(o,"init",(function(){return zi})),n.d(o,"dispose",(function(){return Fi})),n.d(o,"disposeAll",(function(){return Vi})),n.d(o,"getInstance",(function(){return Hi})),n.d(o,"registerPainter",(function(){return Gi})),n.d(o,"version",(function(){return Wi}));var a={};n.r(a),n.d(a,"updateProps",(function(){return Qc})),n.d(a,"initProps",(function(){return Jc})),n.d(a,"removeElement",(function(){return eu})),n.d(a,"removeElementWithFadeOut",(function(){return ru})),n.d(a,"isElementRemoved",(function(){return tu})),n.d(a,"extendShape",(function(){return gy})),n.d(a,"extendPath",(function(){return yy})),n.d(a,"registerShape",(function(){return my})),n.d(a,"getShapeClass",(function(){return by})),n.d(a,"makePath",(function(){return _y})),n.d(a,"makeImage",(function(){return xy})),n.d(a,"mergePath",(function(){return wy})),n.d(a,"resizePath",(function(){return Sy})),n.d(a,"subPixelOptimizeLine",(function(){return jy})),n.d(a,"subPixelOptimizeRect",(function(){return Cy})),n.d(a,"subPixelOptimize",(function(){return My})),n.d(a,"getTransform",(function(){return Ty})),n.d(a,"applyTransform",(function(){return ky})),n.d(a,"transformDirection",(function(){return Iy})),n.d(a,"groupTransition",(function(){return Py})),n.d(a,"clipPointsByRect",(function(){return Ly})),n.d(a,"clipRectByRect",(function(){return Ny})),n.d(a,"createIcon",(function(){return Ey})),n.d(a,"linePolygonIntersect",(function(){return Ry})),n.d(a,"lineLineIntersect",(function(){return By})),n.d(a,"setTooltipConfig",(function(){return Vy})),n.d(a,"traverseElements",(function(){return Gy})),n.d(a,"Group",(function(){return Pi})),n.d(a,"Image",(function(){return al})),n.d(a,"Text",(function(){return Pl})),n.d(a,"Circle",(function(){return iv})),n.d(a,"Ellipse",(function(){return sv})),n.d(a,"Sector",(function(){return jv})),n.d(a,"Ring",(function(){return Tv})),n.d(a,"Polygon",(function(){return Pv})),n.d(a,"Polyline",(function(){return Ev})),n.d(a,"Rect",(function(){return gl})),n.d(a,"Line",(function(){return Fv})),n.d(a,"BezierCurve",(function(){return Uv})),n.d(a,"Arc",(function(){return qv})),n.d(a,"IncrementalDisplayable",(function(){return hy})),n.d(a,"CompoundPath",(function(){return Zv})),n.d(a,"LinearGradient",(function(){return ty})),n.d(a,"RadialGradient",(function(){return ny})),n.d(a,"BoundingRect",(function(){return ai})),n.d(a,"OrientedBoundingRect",(function(){return ly})),n.d(a,"Point",(function(){return Zr})),n.d(a,"Path",(function(){return Qs}));var s={};n.r(s),n.d(s,"createList",(function(){return _S})),n.d(s,"getLayoutRect",(function(){return Kh})),n.d(s,"createDimensions",(function(){return AO})),n.d(s,"dataStack",(function(){return xS})),n.d(s,"createSymbol",(function(){return cb})),n.d(s,"createScale",(function(){return OS})),n.d(s,"mixinAxisModelCommonMethods",(function(){return wS})),n.d(s,"getECData",(function(){return Ll})),n.d(s,"enableHoverEmphasis",(function(){return Ec})),n.d(s,"createTextStyle",(function(){return SS}));var l={};n.r(l),n.d(l,"linearMap",(function(){return qi})),n.d(l,"round",(function(){return Zi})),n.d(l,"asc",(function(){return Ki})),n.d(l,"getPrecision",(function(){return Qi})),n.d(l,"getPrecisionSafe",(function(){return Ji})),n.d(l,"getPixelPrecision",(function(){return to})),n.d(l,"getPercentWithPrecision",(function(){return eo})),n.d(l,"MAX_SAFE_INTEGER",(function(){return ro})),n.d(l,"remRadian",(function(){return io})),n.d(l,"isRadianAroundZero",(function(){return oo})),n.d(l,"parseDate",(function(){return so})),n.d(l,"quantity",(function(){return lo})),n.d(l,"quantityExponent",(function(){return co})),n.d(l,"nice",(function(){return uo})),n.d(l,"quantile",(function(){return ho})),n.d(l,"reformIntervals",(function(){return po})),n.d(l,"isNumeric",(function(){return go})),n.d(l,"numericToNumber",(function(){return fo}));var c={};n.r(c),n.d(c,"parse",(function(){return so})),n.d(c,"format",(function(){return ph}));var u={};n.r(u),n.d(u,"extendShape",(function(){return gy})),n.d(u,"extendPath",(function(){return yy})),n.d(u,"makePath",(function(){return _y})),n.d(u,"makeImage",(function(){return xy})),n.d(u,"mergePath",(function(){return wy})),n.d(u,"resizePath",(function(){return Sy})),n.d(u,"createIcon",(function(){return Ey})),n.d(u,"updateProps",(function(){return Qc})),n.d(u,"initProps",(function(){return Jc})),n.d(u,"getTransform",(function(){return Ty})),n.d(u,"clipPointsByRect",(function(){return Ly})),n.d(u,"clipRectByRect",(function(){return Ny})),n.d(u,"registerShape",(function(){return my})),n.d(u,"getShapeClass",(function(){return by})),n.d(u,"Group",(function(){return Pi})),n.d(u,"Image",(function(){return al})),n.d(u,"Text",(function(){return Pl})),n.d(u,"Circle",(function(){return iv})),n.d(u,"Ellipse",(function(){return sv})),n.d(u,"Sector",(function(){return jv})),n.d(u,"Ring",(function(){return Tv})),n.d(u,"Polygon",(function(){return Pv})),n.d(u,"Polyline",(function(){return Ev})),n.d(u,"Rect",(function(){return gl})),n.d(u,"Line",(function(){return Fv})),n.d(u,"BezierCurve",(function(){return Uv})),n.d(u,"Arc",(function(){return qv})),n.d(u,"IncrementalDisplayable",(function(){return hy})),n.d(u,"CompoundPath",(function(){return Zv})),n.d(u,"LinearGradient",(function(){return ty})),n.d(u,"RadialGradient",(function(){return ny})),n.d(u,"BoundingRect",(function(){return ai}));var h={};n.r(h),n.d(h,"addCommas",(function(){return Dh})),n.d(h,"toCamelCase",(function(){return Ah})),n.d(h,"normalizeCssArray",(function(){return Ph})),n.d(h,"encodeHTML",(function(){return Eh})),n.d(h,"formatTpl",(function(){return Fh})),n.d(h,"getTooltipMarker",(function(){return Vh})),n.d(h,"formatTime",(function(){return Hh})),n.d(h,"capitalFirst",(function(){return Gh})),n.d(h,"truncateText",(function(){return Oa})),n.d(h,"getTextRect",(function(){return FS}));var d={};n.r(d),n.d(d,"map",(function(){return mt["map"]})),n.d(d,"each",(function(){return mt["each"]})),n.d(d,"indexOf",(function(){return mt["indexOf"]})),n.d(d,"inherits",(function(){return mt["inherits"]})),n.d(d,"reduce",(function(){return mt["reduce"]})),n.d(d,"filter",(function(){return mt["filter"]})),n.d(d,"bind",(function(){return mt["bind"]})),n.d(d,"curry",(function(){return mt["curry"]})),n.d(d,"isArray",(function(){return mt["isArray"]})),n.d(d,"isString",(function(){return mt["isString"]})),n.d(d,"isObject",(function(){return mt["isObject"]})),n.d(d,"isFunction",(function(){return mt["isFunction"]})),n.d(d,"extend",(function(){return mt["extend"]})),n.d(d,"defaults",(function(){return mt["defaults"]})),n.d(d,"clone",(function(){return mt["clone"]})),n.d(d,"merge",(function(){return mt["merge"]}));var p={};n.r(p),n.d(p,"version",(function(){return h_})),n.d(p,"dependencies",(function(){return d_})),n.d(p,"PRIORITY",(function(){return k_})),n.d(p,"init",(function(){return wx})),n.d(p,"connect",(function(){return Sx})),n.d(p,"disConnect",(function(){return jx})),n.d(p,"disconnect",(function(){return Cx})),n.d(p,"dispose",(function(){return Mx})),n.d(p,"getInstanceByDom",(function(){return Tx})),n.d(p,"getInstanceById",(function(){return kx})),n.d(p,"registerTheme",(function(){return Ix})),n.d(p,"registerPreprocessor",(function(){return Dx})),n.d(p,"registerProcessor",(function(){return Ax})),n.d(p,"registerPostInit",(function(){return Px})),n.d(p,"registerPostUpdate",(function(){return Lx})),n.d(p,"registerUpdateLifecycle",(function(){return Nx})),n.d(p,"registerAction",(function(){return Ex})),n.d(p,"registerCoordinateSystem",(function(){return Rx})),n.d(p,"getCoordinateSystemDimensions",(function(){return Bx})),n.d(p,"registerLocale",(function(){return $u})),n.d(p,"registerLayout",(function(){return zx})),n.d(p,"registerVisual",(function(){return Fx})),n.d(p,"registerLoading",(function(){return Gx})),n.d(p,"setCanvasCreator",(function(){return Wx})),n.d(p,"registerMap",(function(){return Ux})),n.d(p,"getMap",(function(){return Yx})),n.d(p,"registerTransform",(function(){return Xx})),n.d(p,"dataTool",(function(){return qx})),n.d(p,"zrender",(function(){return o})),n.d(p,"matrix",(function(){return i})),n.d(p,"vector",(function(){return r})),n.d(p,"zrUtil",(function(){return mt})),n.d(p,"color",(function(){return Tn})),n.d(p,"throttle",(function(){return nm})),n.d(p,"helper",(function(){return s})),n.d(p,"use",(function(){return Kx})),n.d(p,"setPlatformAPI",(function(){return li["d"]})),n.d(p,"parseGeoJSON",(function(){return zS})),n.d(p,"parseGeoJson",(function(){return zS})),n.d(p,"number",(function(){return l})),n.d(p,"time",(function(){return c})),n.d(p,"graphic",(function(){return u})),n.d(p,"format",(function(){return h})),n.d(p,"util",(function(){return d})),n.d(p,"env",(function(){return yt["a"]})),n.d(p,"List",(function(){return DO})),n.d(p,"Model",(function(){return Nu})),n.d(p,"Axis",(function(){return aj})),n.d(p,"ComponentModel",(function(){return od})),n.d(p,"ComponentView",(function(){return Dg})),n.d(p,"SeriesModel",(function(){return kg})),n.d(p,"ChartView",(function(){return Qy})),n.d(p,"innerDrawElementOnCanvas",(function(){return Yb})),n.d(p,"extendComponentModel",(function(){return sj})),n.d(p,"extendComponentView",(function(){return lj})),n.d(p,"extendSeriesModel",(function(){return cj})),n.d(p,"extendChartView",(function(){return uj}));var f=n("7a23");const g={class:"tables-wrap"},v={key:0,class:"tables-content"},y={class:"g-flex-jsb"},m={class:"g-flex-col"},b={class:"g-flex"},_=["title"],x={key:0,class:"create-time"},O={class:"table-info g-flex-ac"},w={class:"text-color"},S={class:"text-color"},j={class:"text-color"},C={class:"text-color"},M={class:"content"};function T(t,e,n,r,i,o){const a=Object(f["resolveComponent"])("a-divider"),s=Object(f["resolveComponent"])("u-details"),l=Object(f["resolveComponent"])("a-tab-pane"),c=Object(f["resolveComponent"])("u-files"),u=Object(f["resolveComponent"])("a-tabs"),h=Object(f["resolveComponent"])("router-view");return Object(f["openBlock"])(),Object(f["createElementBlock"])("div",g,[t.isSecondaryNav?(Object(f["openBlock"])(),Object(f["createBlock"])(h,{key:1,onGoBack:t.goBack},null,8,["onGoBack"])):(Object(f["openBlock"])(),Object(f["createElementBlock"])("div",v,[Object(f["createElementVNode"])("div",y,[Object(f["createElementVNode"])("div",m,[Object(f["createElementVNode"])("div",b,[Object(f["createElementVNode"])("span",{title:t.baseInfo.tableName,class:"table-name g-text-nowrap"},Object(f["toDisplayString"])(t.baseInfo.tableName),9,_),t.isIceberg?Object(f["createCommentVNode"])("",!0):(Object(f["openBlock"])(),Object(f["createElementBlock"])("span",x,Object(f["toDisplayString"])(`${t.$t("createTime")}: ${t.baseInfo.createTime}`),1))]),Object(f["createElementVNode"])("div",O,[Object(f["createElementVNode"])("p",null,[Object(f["createTextVNode"])(Object(f["toDisplayString"])(`${t.$t("table")}${t.$t("size")}`)+": ",1),Object(f["createElementVNode"])("span",w,Object(f["toDisplayString"])(t.baseInfo.size),1)]),Object(f["createVNode"])(a,{type:"vertical"}),Object(f["createElementVNode"])("p",null,[Object(f["createTextVNode"])(Object(f["toDisplayString"])(t.$t("file"))+": ",1),Object(f["createElementVNode"])("span",S,Object(f["toDisplayString"])(t.baseInfo.file),1)]),Object(f["createVNode"])(a,{type:"vertical"}),Object(f["createElementVNode"])("p",null,[Object(f["createTextVNode"])(Object(f["toDisplayString"])(t.$t("averageFileSize"))+": ",1),Object(f["createElementVNode"])("span",j,Object(f["toDisplayString"])(t.baseInfo.averageFile),1)]),Object(f["createVNode"])(a,{type:"vertical"}),Object(f["createElementVNode"])("p",null,[Object(f["createTextVNode"])(Object(f["toDisplayString"])(t.$t("tableFormat"))+": ",1),Object(f["createElementVNode"])("span",C,Object(f["toDisplayString"])(t.baseInfo.tableFormat),1)])])])]),Object(f["createElementVNode"])("div",M,[Object(f["createVNode"])(u,{activeKey:t.activeKey,"onUpdate:activeKey":e[0]||(e[0]=e=>t.activeKey=e),destroyInactiveTabPane:"",onChange:t.onChangeTab},{default:Object(f["withCtx"])(()=>[Object(f["createVNode"])(l,{key:"Details",tab:"Details",forceRender:""},{default:Object(f["withCtx"])(()=>[Object(f["createVNode"])(s,{onSetBaseDetailInfo:t.setBaseDetailInfo,ref:"detailRef"},null,8,["onSetBaseDetailInfo"])]),_:1}),t.detailLoaded?(Object(f["openBlock"])(),Object(f["createBlock"])(l,{key:"Files",tab:"Files"},{default:Object(f["withCtx"])(()=>[Object(f["createVNode"])(c,{hasPartition:t.baseInfo.hasPartition},null,8,["hasPartition"])]),_:1})):Object(f["createCommentVNode"])("",!0),(Object(f["openBlock"])(!0),Object(f["createElementBlock"])(f["Fragment"],null,Object(f["renderList"])(t.tabConfigs,t=>(Object(f["openBlock"])(),Object(f["createBlock"])(l,{key:t.key,tab:""+t.label},{default:Object(f["withCtx"])(()=>[(Object(f["openBlock"])(),Object(f["createBlock"])(Object(f["resolveDynamicComponent"])("U"+t.key)))]),_:2},1032,["tab"]))),128))]),_:1},8,["activeKey","onChange"])])]))])}var k=n("47e2"),I=n("6c02"),D=n("5738"),A=n("d257");const P={class:"table-detail g-flex"},L={class:"left-content"},N={key:0,class:"table-attrs"},E={class:"attr-title"},R={key:1,class:"table-attrs"},B={class:"attr-title"},z={class:"table-attrs"},F={class:"attr-title"},V={class:"right-content"},H={key:0,class:"table-attrs"},G={class:"attr-title"},W={class:"table-attrs"},U={class:"attr-title"},Y={class:"table-attrs"},X={class:"attr-title"};var q=Object(f["defineComponent"])({__name:"Details",emits:["setBaseDetailInfo"],setup(t,{expose:e,emit:n}){const{t:r}=Object(k["b"])(),i=Object(I["d"])(),o=Object(f["computed"])(()=>({...i.query}));Object(f["watch"])(()=>i.query,t=>{(null===t||void 0===t?void 0:t.catalog)&&"/tables"===i.path&&u()});const a={fileCount:"File Count",totalSize:"Total Size",averageFileSize:"Average File Size",lastCommitTime:"Last Commit Time"},s={...a,baseWatermark:"Base Watermark"},l={...a,tableWatermark:"Table Watermark"},c=Object(f["reactive"])({detailLoading:!1,baseDetailInfo:{tableType:"",tableName:"",createTime:"",size:"",file:"",averageFile:"",tableFormat:"",hasPartition:!1},pkList:[],partitionColumnList:[],properties:[],changeMetrics:[],baseMetrics:[],schema:[]}),u=async()=>{try{const{catalog:e,db:n,table:r}=o.value;if(!e||!n||!r)return;c.detailLoading=!0;const i=await Object(D["l"])({...o.value}),{pkList:a=[],tableType:u,partitionColumnList:h=[],properties:d,changeMetrics:p,schema:f,createTime:g,tableIdentifier:v,baseMetrics:y,tableSummary:m}=i;c.baseDetailInfo={...m,tableType:u,tableName:(null===v||void 0===v?void 0:v.tableName)||"",createTime:g?Object(A["b"])(g):"",hasPartition:!(null===h||void 0===h||!h.length)},c.pkList=a||[],c.partitionColumnList=h||[],c.schema=f||[],c.changeMetrics=Object.keys(l||{}).map(t=>({metric:l[t],value:"lastCommitTime"===t||"tableWatermark"===t?(p||{})[t]?Object(A["b"])((p||{})[t]):"":(p||{})[t]})).filter(t=>t.value),c.baseMetrics=Object.keys(s||{}).map(t=>({metric:s[t],value:"lastCommitTime"===t||"baseWatermark"===t?(y||{})[t]?Object(A["b"])((y||{})[t]):"":(y||{})[t]})),c.properties=Object.keys(d||{}).map(t=>({key:t,value:d[t]})),t()}catch(e){}finally{c.detailLoading=!1}function t(){n("setBaseDetailInfo",c.baseDetailInfo)}};Object(f["onMounted"])(()=>{u()}),e({getTableDetails:u});const h=Object(f["shallowReactive"])([{title:r("field"),dataIndex:"field",width:"30%"},{title:r("type"),dataIndex:"type",width:"20%"},{title:r("required"),dataIndex:"required",width:"20%",customRender:t=>String(null===t||void 0===t?void 0:t.value)},{title:r("description"),dataIndex:"comment",ellipsis:!0}]),d=Object(f["shallowReactive"])([{title:r("field"),dataIndex:"field",width:"30%"},{title:r("sourceField"),dataIndex:"sourceField",width:"30%"},{title:r("transform"),dataIndex:"transform",ellipsis:!0}]),p=Object(f["shallowReactive"])([{title:r("metric"),dataIndex:"metric",width:"50%",ellipsis:!0},{title:r("value"),dataIndex:"value",ellipsis:!0}]),g=Object(f["shallowReactive"])([{title:r("key"),dataIndex:"key",width:"50%",ellipsis:!0},{title:r("value"),dataIndex:"value",ellipsis:!0}]);return(t,e)=>{const n=Object(f["resolveComponent"])("a-table"),r=Object(f["resolveComponent"])("u-loading");return Object(f["openBlock"])(),Object(f["createElementBlock"])("div",P,[Object(f["createElementVNode"])("div",L,[c.pkList&&c.pkList.length?(Object(f["openBlock"])(),Object(f["createElementBlock"])("div",N,[Object(f["createElementVNode"])("p",E,Object(f["toDisplayString"])(t.$t("primaryKey")),1),Object(f["createVNode"])(n,{rowKey:"field",columns:Object(f["unref"])(h),"data-source":c.pkList,pagination:!1},null,8,["columns","data-source"])])):Object(f["createCommentVNode"])("",!0),c.partitionColumnList&&c.partitionColumnList.length?(Object(f["openBlock"])(),Object(f["createElementBlock"])("div",R,[Object(f["createElementVNode"])("p",B,Object(f["toDisplayString"])(t.$t("partitionKey")),1),Object(f["createVNode"])(n,{rowKey:"field",columns:Object(f["unref"])(d),"data-source":c.partitionColumnList,pagination:!1},null,8,["columns","data-source"])])):Object(f["createCommentVNode"])("",!0),Object(f["createElementVNode"])("div",z,[Object(f["createElementVNode"])("p",F,Object(f["toDisplayString"])(t.$t("schema")),1),Object(f["createVNode"])(n,{rowKey:"field",columns:Object(f["unref"])(h),"data-source":c.schema,pagination:!1},null,8,["columns","data-source"])])]),Object(f["createElementVNode"])("div",V,[c.changeMetrics&&c.changeMetrics.length?(Object(f["openBlock"])(),Object(f["createElementBlock"])("div",H,[Object(f["createElementVNode"])("p",G,Object(f["toDisplayString"])(t.$t("changeTableMetrics")),1),Object(f["createVNode"])(n,{columns:Object(f["unref"])(p),"data-source":c.changeMetrics,pagination:!1},null,8,["columns","data-source"])])):Object(f["createCommentVNode"])("",!0),Object(f["createElementVNode"])("div",W,[Object(f["createElementVNode"])("p",U,Object(f["toDisplayString"])(t.$t("baseTableMetrics")),1),Object(f["createVNode"])(n,{columns:Object(f["unref"])(p),"data-source":c.baseMetrics,pagination:!1},null,8,["columns","data-source"])]),Object(f["createElementVNode"])("div",Y,[Object(f["createElementVNode"])("p",X,Object(f["toDisplayString"])(t.$t("properties")),1),Object(f["createVNode"])(n,{columns:Object(f["unref"])(g),"data-source":c.properties,pagination:!1},null,8,["columns","data-source"])])]),c.detailLoading?(Object(f["openBlock"])(),Object(f["createBlock"])(r,{key:0})):Object(f["createCommentVNode"])("",!0)])}}}),$=(n("0300"),n("6b0d")),Z=n.n($);const K=Z()(q,[["__scopeId","data-v-1a704e23"]]);var Q=K,J=n("b356");const tt={class:"table-partitons"},et=Object(f["createTextVNode"])("All");var nt=Object(f["defineComponent"])({__name:"Files",props:{hasPartition:{type:Boolean}},setup(t){const e=t,n=Object(f["ref"])(!1),{t:r}=Object(k["b"])(),i=Object(f["shallowReactive"])([{title:r("partition"),dataIndex:"partition",ellipsis:!0},{title:r("fileCount"),dataIndex:"fileCount",width:120,ellipsis:!0},{title:r("size"),dataIndex:"size",width:120,ellipsis:!0},{title:r("lastCommitTime"),dataIndex:"lastCommitTime",width:200,ellipsis:!0}]),o=Object(f["shallowReactive"])([{title:r("file"),dataIndex:"file",ellipsis:!0},{title:r("fileType"),dataIndex:"fileType",width:120,ellipsis:!0},{title:r("size"),dataIndex:"size",width:120,ellipsis:!0},{title:r("commitTime"),dataIndex:"commitTime",width:200,ellipsis:!0},{title:r("commitId"),dataIndex:"commitId",width:200,ellipsis:!0},{title:r("path"),dataIndex:"path",ellipsis:!0,scopedSlots:{customRender:"path"}}]),a=Object(f["reactive"])([]),s=Object(f["reactive"])([]),l=Object(f["ref"])(""),c=Object(f["ref"])(0),u=Object(f["ref"])(!1),h=Object(f["reactive"])(Object(J["a"])()),d=Object(f["reactive"])(Object(J["a"])()),p=Object(I["d"])(),g=p.query,v=Object(f["reactive"])({catalog:"",db:"",table:"",...g});async function y(){try{u.value=!0,a.length=0;const t=await Object(D["j"])({...v,page:h.current,pageSize:h.pageSize}),{list:e,total:n}=t;h.total=n,(e||[]).forEach(t=>{t.lastCommitTime=t.lastCommitTime?Object(A["b"])(t.lastCommitTime):"",a.push(t)})}catch(t){}finally{u.value=!1}}function m({current:t=1,pageSize:r=25}){!n.value&&e.hasPartition?(h.current=t,r!==h.pageSize&&(h.current=1),h.pageSize=r):(d.current=t,r!==d.pageSize&&(d.current=1),d.pageSize=r),b()}function b(){e.hasPartition?n.value?_():y():_()}async function _(){try{s.length=0,u.value=!0;const t={...v,partition:e.hasPartition?encodeURIComponent(l.value):null,specId:c.value,page:d.current,pageSize:d.pageSize},n=await Object(D["i"])(t),{list:r,total:i}=n;d.total=i,(r||[]).forEach(t=>{t.commitTime=t.commitTime?Object(A["b"])(t.commitTime):"",s.push(t)})}catch(t){}finally{u.value=!1}}function x(t){l.value=t.partition,c.value=t.specId,n.value=!n.value,n.value&&(d.current=1,_())}return Object(f["onMounted"])(()=>{n.value=!1,e.hasPartition?y():_()}),(e,r)=>{const c=Object(f["resolveComponent"])("a-button"),p=Object(f["resolveComponent"])("a-table"),g=Object(f["resolveComponent"])("a-breadcrumb-item"),v=Object(f["resolveComponent"])("a-breadcrumb"),y=Object(f["resolveComponent"])("a-tooltip");return Object(f["openBlock"])(),Object(f["createElementBlock"])("div",tt,[!n.value&&t.hasPartition?(Object(f["openBlock"])(),Object(f["createBlock"])(p,{key:0,rowKey:"partiton",columns:Object(f["unref"])(i),"data-source":a,pagination:h,onChange:m,loading:u.value},{bodyCell:Object(f["withCtx"])(({column:t,record:e})=>["partition"===t.dataIndex?(Object(f["openBlock"])(),Object(f["createBlock"])(c,{key:0,type:"link",onClick:t=>x(e)},{default:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(e.partition),1)]),_:2},1032,["onClick"])):Object(f["createCommentVNode"])("",!0)]),_:1},8,["columns","data-source","pagination","loading"])):(Object(f["openBlock"])(),Object(f["createElementBlock"])(f["Fragment"],{key:1},[t.hasPartition?(Object(f["openBlock"])(),Object(f["createBlock"])(v,{key:0,separator:">"},{default:Object(f["withCtx"])(()=>[Object(f["createVNode"])(g,{onClick:x,class:"text-active"},{default:Object(f["withCtx"])(()=>[et]),_:1}),Object(f["createVNode"])(g,null,{default:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(`${e.$t("partition")} ${l.value}`),1)]),_:1})]),_:1})):Object(f["createCommentVNode"])("",!0),Object(f["createVNode"])(p,{rowKey:"file",columns:Object(f["unref"])(o),"data-source":s,pagination:d,onChange:m,loading:u.value},{bodyCell:Object(f["withCtx"])(({column:t,record:e})=>["file"===t.dataIndex?(Object(f["openBlock"])(),Object(f["createBlock"])(y,{key:0},{title:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(e.file),1)]),default:Object(f["withCtx"])(()=>[Object(f["createElementVNode"])("span",null,Object(f["toDisplayString"])(e.file),1)]),_:2},1024)):Object(f["createCommentVNode"])("",!0),"path"===t.dataIndex?(Object(f["openBlock"])(),Object(f["createBlock"])(y,{key:1},{title:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(e.path),1)]),default:Object(f["withCtx"])(()=>[Object(f["createElementVNode"])("span",null,Object(f["toDisplayString"])(e.path),1)]),_:2},1024)):Object(f["createCommentVNode"])("",!0)]),_:1},8,["columns","data-source","pagination","loading"])],64))])}}});n("4754");const rt=Z()(nt,[["__scopeId","data-v-c1547390"]]);var it=rt,ot=(n("3b18"),n("f64c")),at=n("b311"),st=n.n(at),lt=t=>{const e=void 0===(null===t||void 0===t?void 0:t.appendToBody)||t.appendToBody;return{toClipboard(t,n){return new Promise((r,i)=>{const o=document.createElement("button"),a=new st.a(o,{text:()=>t,action:()=>"copy",container:void 0!==n?n:document.body});a.on("success",t=>{a.destroy(),r(t)}),a.on("error",t=>{a.destroy(),i(t)}),e&&document.body.appendChild(o),o.click(),e&&document.body.removeChild(o)})}}};const ct={class:"table-operations"},ut=["onClick"];var ht=Object(f["defineComponent"])({__name:"Operations",setup(t){const{toClipboard:e}=lt(),{t:n}=Object(k["b"])(),r=Object(f["shallowReactive"])([{title:n("time"),dataIndex:"ts",width:"30%"},{title:n("operation"),dataIndex:"operation",scopedSlots:{customRender:"operation"}}]),i=Object(f["ref"])(!1),o=Object(f["ref"])(""),a=Object(f["reactive"])([]),s=Object(f["ref"])(!1),l=Object(f["reactive"])(Object(J["a"])()),c=Object(I["d"])(),u=c.query,h=Object(f["reactive"])({catalog:"",db:"",table:"",...u});async function d(){try{s.value=!0,a.length=0;const t=await Object(D["g"])({...h,page:l.current,pageSize:l.pageSize}),{total:e,list:n}=t;l.total=e,(n||[]).forEach(t=>{t.ts=t.ts?Object(A["b"])(t.ts):"",a.push(t)})}catch(t){}finally{s.value=!1}}function p({current:t=1,pageSize:e=25}=l){l.current=t,e!==l.pageSize&&(l.current=1),l.pageSize=e,d()}function g(t){i.value=!0,o.value=t.operation}function v(){i.value=!1}async function y(){try{await e(o.value),ot["a"].success(n("copySuccess")),v()}catch(t){}}return Object(f["onMounted"])(()=>{d()}),(t,e)=>{const n=Object(f["resolveComponent"])("a-table"),c=Object(f["resolveComponent"])("a-button"),u=Object(f["resolveComponent"])("a-modal");return Object(f["openBlock"])(),Object(f["createElementBlock"])(f["Fragment"],null,[Object(f["createElementVNode"])("div",ct,[Object(f["createVNode"])(n,{rowKey:"partiton",columns:Object(f["unref"])(r),"data-source":a,pagination:l,onChange:p,loading:s.value},{bodyCell:Object(f["withCtx"])(({column:t,record:e})=>["operation"===t.dataIndex?(Object(f["openBlock"])(),Object(f["createElementBlock"])("span",{key:0,class:"text-active g-max-line-3",onClick:t=>g(e)},Object(f["toDisplayString"])(e.operation),9,ut)):Object(f["createCommentVNode"])("",!0)]),_:1},8,["columns","data-source","pagination","loading"])]),Object(f["createVNode"])(u,{visible:i.value,width:560,title:""+t.$t("operationDetails"),onCancel:v,class:"operation-wrap"},{footer:Object(f["withCtx"])(()=>[Object(f["createVNode"])(c,{type:"primary",onClick:y},{default:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(t.$t("copy")),1)]),_:1})]),default:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(o.value)+" ",1)]),_:1},8,["visible","title"])],64)}}});n("da03b");const dt=ht;var pt=dt;function ft(t,e,n,r,i,o){const a=Object(f["resolveComponent"])("a-spin");return Object(f["openBlock"])(),Object(f["createBlock"])(a,{spinning:t.loading,class:"echarts-loading"},{default:Object(f["withCtx"])(()=>[Object(f["createElementVNode"])("div",{ref:"echart",style:Object(f["normalizeStyle"])({width:t.width,height:t.height}),class:"timeline-echarts"},null,4)]),_:1},8,["spinning"])} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -28,7 +28,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var gt=function(t,e){return gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},gt(t,e)};function vt(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}gt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var yt=n("22d1"),mt=n("6d8b");function bt(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function _t(t,e){return t[0]=e[0],t[1]=e[1],t}function xt(t){return[t[0],t[1]]}function wt(t,e,n){return t[0]=e,t[1]=n,t}function Ot(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function St(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function Mt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Tt(t){return Math.sqrt(jt(t))}var Ct=Tt;function jt(t){return t[0]*t[0]+t[1]*t[1]}var It=jt;function kt(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function At(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function Dt(t,e){return t[0]*e[0]+t[1]*e[1]}function Pt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Lt(t,e){var n=Tt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Rt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Et=Rt;function Nt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Bt=Nt;function zt(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Ft(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function Vt(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function Ht(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Gt(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var Wt=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),Ut=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Wt(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new Wt(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Wt(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new Wt(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Wt(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Wt(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),Yt=Ut,Xt=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function re(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,d=c.left,f=c.top;a.push(d,f),l=l&&o&&d===o[h]&&f===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?Kt(s,a):Kt(a,s))}function ie(t){return"CANVAS"===t.nodeName.toUpperCase()}var oe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ae=[],se=yt["a"].browser.firefox&&+yt["a"].browser.version.split(".")[0]<39;function le(t,e,n,r){return n=n||{},r?ue(t,e,n):se&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):ue(t,e,n),n}function ue(t,e,n){if(yt["a"].domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(ie(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(ee(ae,t,r,i))return n.zrX=ae[0],void(n.zrY=ae[1])}n.zrX=n.zrY=0}function ce(t){return t||window.event}function he(t,e,n){if(e=ce(e),null!=e.zrX)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];o&&le(t,o,e,n)}else{le(t,e,e,n);var a=de(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&oe.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function de(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function fe(t,e,n,r){t.addEventListener(e,n,r)}function pe(t,e,n,r){t.removeEventListener(e,n,r)}var ge=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var ve=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o1&&r&&r.length>1){var o=ye(r)/ye(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=me(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},_e="silent";function xe(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:we}}function we(){ge(this.event)}var Oe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return vt(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(qt),Se=function(){function t(t,e){this.x=t,this.y=e}return t}(),Me=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Te=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._hovered=new Se(0,0),o.storage=e,o.painter=n,o.painterRoot=i,r=r||new Oe,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new Yt(o),o}return vt(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(mt["each"](Me,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=je(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new Se(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Se(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){t=t||{};var r=t.target;if(!r||!r.silent){var i="on"+e,o=xe(e,t,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){for(var r=this.storage.getDisplayList(),i=new Se(t,e),o=r.length-1;o>=0;o--){var a=void 0;if(r[o]!==n&&!r[o].ignore&&(a=Ce(r[o],t,e))&&(!i.topTarget&&(i.topTarget=r[o]),a!==_e)){i.target=r[o];break}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new ve);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new Se;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(qt);function Ce(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var r=t,i=void 0,o=!1;while(r){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return!i||_e}return!1}function je(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}mt["each"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Te.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=je(this,i,o);if("mouseup"===t&&a||(n=this.findHover(i,o),r=n.target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Et(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var Ie=Te,ke=32,Ae=7;function De(t){var e=0;while(t>=ke)e|=1&t,t>>=1;return t+e}function Pe(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){while(i=0)i++;return i-e}function Le(t,e,n){n--;while(e>>1,i(a,t[o])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=a}}function Ee(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){s=r-i;while(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(ls&&(l=s);var u=a;a=i-l,l=i-u}a++;while(a>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function Ne(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){s=i+1;while(ls&&(l=s);var u=a;a=i-l,l=i-u}else{s=r-i;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(a>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function Be(t,e){var n,r,i=Ae,o=0,a=0;o=t.length;var s=[];function l(t,e){n[a]=t,r[a]=e,a+=1}function u(){while(a>1){var t=a-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]r[t+1])break;h(t)}}function c(){while(a>1){var t=a-2;t>0&&r[t-1]=Ae||f>=Ae);if(p)break;g<0&&(g=0),g+=2}if(i=g,i<1&&(i=1),1===r){for(l=0;l=0;l--)t[f+l]=t[d+l];if(0===r){y=!0;break}}if(t[h--]=s[c--],1===--a){y=!0;break}if(v=a-Ee(t[u],s,0,a,a-1,e),0!==v){for(h-=v,c-=v,a-=v,f=h+1,d=c+1,l=0;l=Ae||v>=Ae);if(y)break;p<0&&(p=0),p+=2}if(i=p,i<1&&(i=1),1===a){for(h-=r,u-=r,f=h+1,d=u+1,l=r-1;l>=0;l--)t[f+l]=t[d+l];t[h]=s[c]}else{if(0===a)throw new Error;for(d=h-(a-1),l=0;l=0;l--)t[f+l]=t[d+l];t[h]=s[c]}else for(d=h-(a-1),l=0;ls&&(l=s),Re(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}var Fe=1,Ve=2,He=4,Ge=!1;function We(){Ge||(Ge=!0)}function Ue(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Ye,Xe=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ue}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(We(),u.z=0),isNaN(u.z2)&&(We(),u.z2=0),isNaN(u.zlevel)&&(We(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),qe=Xe;Ye=yt["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var $e=Ye,Ze={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r))},elasticOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ze.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Ze.bounceIn(2*t):.5*Ze.bounceOut(2*t-1)+.5}},Ke=Ze,Qe=Math.pow,Je=Math.sqrt,tn=1e-8,en=1e-4,nn=Je(3),rn=1/3,on=bt(),an=bt(),sn=bt();function ln(t){return t>-tn&&ttn||t<-tn}function cn(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function hn(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function dn(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,f=0;if(ln(c)&&ln(h))if(ln(s))o[0]=0;else{var p=-l/s;p>=0&&p<=1&&(o[f++]=p)}else{var g=h*h-4*c*d;if(ln(g)){var v=h/c,y=(p=-s/a+v,-v/2);p>=0&&p<=1&&(o[f++]=p),y>=0&&y<=1&&(o[f++]=y)}else if(g>0){var m=Je(g),b=c*s+1.5*a*(-h+m),_=c*s+1.5*a*(-h-m);b=b<0?-Qe(-b,rn):Qe(b,rn),_=_<0?-Qe(-_,rn):Qe(_,rn);p=(-s-(b+_))/(3*a);p>=0&&p<=1&&(o[f++]=p)}else{var x=(2*c*s-3*a*h)/(2*Je(c*c*c)),w=Math.acos(x)/3,O=Je(c),S=Math.cos(w),M=(p=(-s-2*O*S)/(3*a),y=(-s+O*(S+nn*Math.sin(w)))/(3*a),(-s+O*(S-nn*Math.sin(w)))/(3*a));p>=0&&p<=1&&(o[f++]=p),y>=0&&y<=1&&(o[f++]=y),M>=0&&M<=1&&(o[f++]=M)}}return f}function fn(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(ln(a)){if(un(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(ln(c))i[0]=-o/(2*a);else if(c>0){var h=Je(c),d=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function pn(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,h=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function gn(t,e,n,r,i,o,a,s,l,u,c){var h,d,f,p,g,v=.005,y=1/0;on[0]=l,on[1]=u;for(var m=0;m<1;m+=.05)an[0]=cn(t,n,i,a,m),an[1]=cn(e,r,o,s,m),p=Bt(on,an),p=0&&p=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(ln(c)){u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var h=Je(c),d=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function _n(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function xn(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function wn(t,e,n,r,i,o,a,s,l){var u,c=.005,h=1/0;on[0]=a,on[1]=s;for(var d=0;d<1;d+=.05){an[0]=yn(t,n,i,d),an[1]=yn(e,r,o,d);var f=Bt(on,an);f=0&&f=1?1:dn(0,r,o,1,t,s)&&cn(0,i,a,1,s[0])}}}var Tn=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||mt["noop"],this.ondestroy=t.ondestroy||mt["noop"],this.onrestart=t.onrestart||mt["noop"],t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(mt["isFunction"])(t)?t:Ke[t]||Mn(t)},t}(),Cn=Tn,jn=n("41ef"),In=n("7a29"),kn=Array.prototype.slice;function An(t,e,n){return(e-t)*n+t}function Dn(t,e,n,r){for(var i=e.length,o=0;or?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;l=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=Xn,s=e;if(Object(mt["isArrayLike"])(e)){var l=Fn(e);a=l,(1===l&&!Object(mt["isNumber"])(e[0])||2===l&&!Object(mt["isNumber"])(e[0][0]))&&(o=!0)}else if(Object(mt["isNumber"])(e)&&!Object(mt["eqNaN"])(e))a=Vn;else if(Object(mt["isString"])(e))if(isNaN(+e)){var u=jn["parse"](e);u&&(s=u,a=Wn)}else a=Vn;else if(Object(mt["isGradientObject"])(e)){var c=Object(mt["extend"])({},s);c.colorStops=Object(mt["map"])(e.colorStops,(function(t){return{offset:t.offset,color:jn["parse"](t.color)}})),Object(In["a"])(e)?a=Un:Object(In["b"])(e)&&(a=Yn),s=c}0===i?this.valType=a:a===this.valType&&a!==Xn||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=Object(mt["isFunction"])(n)?n:Ke[n]||Mn(n)),r.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=$n(r),l=qn(r),u=0;u=0;n--)if(l[n].percent<=e)break;n=f(n,u-2)}else{for(n=d;ne)break;n=f(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var g=i.percent-r.percent,v=0===g?1:f((e-r.percent)/g,1);i.easingFunc&&(v=i.easingFunc(v));var y=o?this._additiveValue:h?Zn:t[c];if(!$n(s)&&!h||y||(y=this._additiveValue=[]),this.discrete)t[c]=v<1?r.rawValue:i.rawValue;else if($n(s))s===Hn?Dn(y,r[a],i[a],v):Pn(y,r[a],i[a],v);else if(qn(s)){var m=r[a],b=i[a],_=s===Un;t[c]={type:_?"linear":"radial",x:An(m.x,b.x,v),y:An(m.y,b.y,v),colorStops:Object(mt["map"])(m.colorStops,(function(t,e){var n=b.colorStops[e];return{offset:An(t.offset,n.offset,v),color:zn(Dn([],t.color,n.color,v))}})),global:b.global},_?(t[c].x2=An(m.x2,b.x2,v),t[c].y2=An(m.y2,b.y2,v)):t[c].r=An(m.r,b.r,v)}else if(h)Dn(y,r[a],i[a],v),o||(t[c]=zn(y));else{var x=An(r[a],i[a],v);o?this._additiveValue=x:t[c]=x}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;e===Vn?t[n]=t[n]+r:e===Wn?(jn["parse"](t[n],Zn),Ln(Zn,Zn,r,1),t[n]=zn(Zn)):e===Hn?Ln(t[n],t[n],r,1):e===Gn&&Rn(t[n],t[n],r,1)},t}(),Qn=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Object(mt["logError"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(mt["keys"])(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o0&&s.addKeyframe(0,Bn(l),r),this._trackKeys.push(a)}s.addKeyframe(t,Bn(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}(),Jn=Qn;function tr(){return(new Date).getTime()}var er=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return vt(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=tr()-this._pausedTime,n=e-this._time,r=this._head;while(r){var i=r.next,o=r.step(e,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&($e(e),!t._paused&&t.update())}this._running=!0,$e(e)},e.prototype.start=function(){this._running||(this._time=tr(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=tr(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=tr()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Jn(t,e.loop);return this.addAnimator(n),n},e}(qt),nr=er,rr=300,ir=yt["a"].domSupported,or=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=mt["map"](t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:r}}(),ar={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},sr=!1;function lr(t){var e=t.pointerType;return"pen"===e||"touch"===e}function ur(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function cr(t){t&&(t.zrByTouch=!0)}function hr(t,e){return he(t.dom,new fr(t,e),!0)}function dr(t,e){var n=e,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return r}var fr=function(){function t(t,e){this.stopPropagation=mt["noop"],this.stopImmediatePropagation=mt["noop"],this.preventDefault=mt["noop"],this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),pr={mousedown:function(t){t=he(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=he(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=he(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=he(this.dom,t);var e=t.toElement||t.relatedTarget;dr(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){sr=!0,t=he(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){sr||(t=he(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=he(this.dom,t),cr(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),pr.mousemove.call(this,t),pr.mousedown.call(this,t)},touchmove:function(t){t=he(this.dom,t),cr(t),this.handler.processGesture(t,"change"),pr.mousemove.call(this,t)},touchend:function(t){t=he(this.dom,t),cr(t),this.handler.processGesture(t,"end"),pr.mouseup.call(this,t),+new Date-+this.__lastTouchMomentzr||t<-zr}var Vr=[],Hr=[],Gr=Ir(),Wr=Math.abs,Ur=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Fr(this.rotation)||Fr(this.x)||Fr(this.y)||Fr(this.scaleX-1)||Fr(this.scaleY-1)||Fr(this.skewX)||Fr(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||Ir(),e?this.getLocalTransform(n):Br(n),t&&(e?Dr(n,t,n):Ar(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&Br(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Vr);var n=Vr[0]<0?-1:1,r=Vr[1]<0?-1:1,i=((Vr[0]-n)*e+n)/Vr[0]||0,o=((Vr[1]-r)*e+r)/Vr[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ir(),Er(this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Dr(Hr,t.invTransform,e),e=Hr);var n=this.originX,r=this.originY;(n||r)&&(Gr[4]=n,Gr[5]=r,Dr(Hr,e,Gr),Hr[4]-=n,Hr[5]-=r,e=Hr),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&Vt(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&Vt(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Wr(t[0]-1)>1e-10&&Wr(t[3]-1)>1e-10?Math.sqrt(Wr(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Xr(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var f=n+a,p=r+s;e[4]=-f*i-h*p*o,e[5]=-p*o-d*f*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=d*i,e[2]=h*o,l&&Lr(e,e,l),e[4]+=n+u,e[5]+=r+c,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Yr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Xr(t,e){for(var n=0;np&&(p=b,gp&&(p=_,y=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Jr.x=ei.x=n.x,Jr.y=ni.y=n.y,ti.x=ni.x=n.x+n.width,ti.y=ei.y=n.y+n.height,Jr.transform(r),ni.transform(r),ti.transform(r),ei.transform(r),e.x=Kr(Jr.x,ti.x,ei.x,ni.x),e.y=Kr(Jr.y,ti.y,ei.y,ni.y);var l=Qr(Jr.x,ti.x,ei.x,ni.x),u=Qr(Jr.y,ti.y,ei.y,ni.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),ai=oi,si=n("d51b"),li=n("726e"),ui={};function ci(t,e){e=e||li["a"];var n=ui[e];n||(n=ui[e]=new si["a"](500));var r=n.get(t);return null==r&&(r=li["c"].measureText(t,e).width,n.put(t,r)),r}function hi(t,e,n,r){var i=ci(t,e),o=gi(e),a=fi(0,i,n),s=pi(0,o,r),l=new ai(a,s,i,o);return l}function di(t,e,n,r){var i=((t||"")+"").split("\n"),o=i.length;if(1===o)return hi(i[0],e,n,r);for(var a=new ai(0,0,0,0),s=0;s=0?parseFloat(t)/100*e:parseFloat(t):t}function yi(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(r instanceof Array)l+=vi(r[0],n.width),u+=vi(r[1],n.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var mi="__zr_normal__",bi=Yr.concat(["ignore"]),_i=Object(mt["reduce"])(Yr,(function(t,e){return t[e]=!0,t}),{ignore:!1}),xi={},wi=new ai(0,0,0,0),Oi=function(){function t(t){this.id=Object(mt["guid"])(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var u=wi;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(xi,n,u):yi(xi,n,u),i.x=xi.x,i.y=xi.y,o=xi.align,a=xi.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,d=void 0;"center"===c?(h=.5*u.width,d=.5*u.height):(h=vi(c[0],u.width),d=vi(c[1],u.height)),l=!0,i.originX=-i.x+h+(r?0:u.x),i.originY=-i.y+d+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var f=n.offset;f&&(i.x+=f[0],i.y+=f[1],l||(i.originX=-f[0],i.originY=-f[1]));var p=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;p&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(v),m=!0)),v=v||"#000",v===g.fill&&y===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=Fe,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Cr:Tr},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Object(jn["parse"])(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(jn["stringify"])(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(mt["extend"])(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(Object(mt["isObject"])(t))for(var n=t,r=Object(mt["keys"])(n),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(mi,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===mi,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!(Object(mt["indexOf"])(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||i){i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,n,u),h&&h.useState(t,e,n,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Fe),l}Object(mt["logError"])("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s0,f);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Fe)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=Object(mt["indexOf"])(r,t),o=Object(mt["indexOf"])(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d0||i.force&&!a.length){var S=void 0,M=void 0,T=void 0;if(s){M={},d&&(S={});for(_=0;_=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=mt["indexOf"](this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=mt["indexOf"](n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[c]+":0",r[1-l]+":auto",i[1-c]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function re(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var u=t[c].getBoundingClientRect(),h=2*c,d=u.left,p=u.top;a.push(d,p),l=l&&o&&d===o[h]&&p===o[h+1],s.push(t[c].offsetLeft,t[c].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?Kt(s,a):Kt(a,s))}function ie(t){return"CANVAS"===t.nodeName.toUpperCase()}var oe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ae=[],se=yt["a"].browser.firefox&&+yt["a"].browser.version.split(".")[0]<39;function le(t,e,n,r){return n=n||{},r?ce(t,e,n):se&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):ce(t,e,n),n}function ce(t,e,n){if(yt["a"].domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(ie(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(ee(ae,t,r,i))return n.zrX=ae[0],void(n.zrY=ae[1])}n.zrX=n.zrY=0}function ue(t){return t||window.event}function he(t,e,n){if(e=ue(e),null!=e.zrX)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];o&&le(t,o,e,n)}else{le(t,e,e,n);var a=de(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&oe.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function de(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function pe(t,e,n,r){t.addEventListener(e,n,r)}function fe(t,e,n,r){t.removeEventListener(e,n,r)}var ge=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var ve=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o1&&r&&r.length>1){var o=ye(r)/ye(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=me(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}},_e="silent";function xe(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Oe}}function Oe(){ge(this.event)}var we=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return vt(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(qt),Se=function(){function t(t,e){this.x=t,this.y=e}return t}(),je=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ce=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._hovered=new Se(0,0),o.storage=e,o.painter=n,o.painterRoot=i,r=r||new we,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new Yt(o),o}return vt(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(mt["each"](je,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=Te(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new Se(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Se(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){t=t||{};var r=t.target;if(!r||!r.silent){var i="on"+e,o=xe(e,t,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){for(var r=this.storage.getDisplayList(),i=new Se(t,e),o=r.length-1;o>=0;o--){var a=void 0;if(r[o]!==n&&!r[o].ignore&&(a=Me(r[o],t,e))&&(!i.topTarget&&(i.topTarget=r[o]),a!==_e)){i.target=r[o];break}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new ve);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new Se;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(qt);function Me(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var r=t,i=void 0,o=!1;while(r){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return!i||_e}return!1}function Te(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}mt["each"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Ce.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=Te(this,i,o);if("mouseup"===t&&a||(n=this.findHover(i,o),r=n.target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Et(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var ke=Ce,Ie=32,De=7;function Ae(t){var e=0;while(t>=Ie)e|=1&t,t>>=1;return t+e}function Pe(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){while(i=0)i++;return i-e}function Le(t,e,n){n--;while(e>>1,i(a,t[o])<0?l=o:s=o+1;var c=r-s;switch(c){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(c>0)t[s+c]=t[s+c-1],c--}t[s]=a}}function Ee(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){s=r-i;while(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(ls&&(l=s);var c=a;a=i-l,l=i-c}a++;while(a>>1);o(t,e[n+u])>0?a=u+1:l=u}return l}function Re(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){s=i+1;while(ls&&(l=s);var c=a;a=i-l,l=i-c}else{s=r-i;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(a>>1);o(t,e[n+u])<0?l=u:a=u+1}return l}function Be(t,e){var n,r,i=De,o=0,a=0;o=t.length;var s=[];function l(t,e){n[a]=t,r[a]=e,a+=1}function c(){while(a>1){var t=a-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]r[t+1])break;h(t)}}function u(){while(a>1){var t=a-2;t>0&&r[t-1]=De||p>=De);if(f)break;g<0&&(g=0),g+=2}if(i=g,i<1&&(i=1),1===r){for(l=0;l=0;l--)t[p+l]=t[d+l];if(0===r){y=!0;break}}if(t[h--]=s[u--],1===--a){y=!0;break}if(v=a-Ee(t[c],s,0,a,a-1,e),0!==v){for(h-=v,u-=v,a-=v,p=h+1,d=u+1,l=0;l=De||v>=De);if(y)break;f<0&&(f=0),f+=2}if(i=f,i<1&&(i=1),1===a){for(h-=r,c-=r,p=h+1,d=c+1,l=r-1;l>=0;l--)t[p+l]=t[d+l];t[h]=s[u]}else{if(0===a)throw new Error;for(d=h-(a-1),l=0;l=0;l--)t[p+l]=t[d+l];t[h]=s[u]}else for(d=h-(a-1),l=0;ls&&(l=s),Ne(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}var Fe=1,Ve=2,He=4,Ge=!1;function We(){Ge||(Ge=!0)}function Ue(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Ye,Xe=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ue}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(We(),c.z=0),isNaN(c.z2)&&(We(),c.z2=0),isNaN(c.zlevel)&&(We(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=t.getDecalElement&&t.getDecalElement();u&&this._updateAndAddDisplayable(u,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),qe=Xe;Ye=yt["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var $e=Ye,Ze={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r))},elasticOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ze.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Ze.bounceIn(2*t):.5*Ze.bounceOut(2*t-1)+.5}},Ke=Ze,Qe=Math.pow,Je=Math.sqrt,tn=1e-8,en=1e-4,nn=Je(3),rn=1/3,on=bt(),an=bt(),sn=bt();function ln(t){return t>-tn&&ttn||t<-tn}function un(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function hn(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function dn(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),c=t-i,u=s*s-3*a*l,h=s*l-9*a*c,d=l*l-3*s*c,p=0;if(ln(u)&&ln(h))if(ln(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[p++]=f)}else{var g=h*h-4*u*d;if(ln(g)){var v=h/u,y=(f=-s/a+v,-v/2);f>=0&&f<=1&&(o[p++]=f),y>=0&&y<=1&&(o[p++]=y)}else if(g>0){var m=Je(g),b=u*s+1.5*a*(-h+m),_=u*s+1.5*a*(-h-m);b=b<0?-Qe(-b,rn):Qe(b,rn),_=_<0?-Qe(-_,rn):Qe(_,rn);f=(-s-(b+_))/(3*a);f>=0&&f<=1&&(o[p++]=f)}else{var x=(2*u*s-3*a*h)/(2*Je(u*u*u)),O=Math.acos(x)/3,w=Je(u),S=Math.cos(O),j=(f=(-s-2*w*S)/(3*a),y=(-s+w*(S+nn*Math.sin(O)))/(3*a),(-s+w*(S-nn*Math.sin(O)))/(3*a));f>=0&&f<=1&&(o[p++]=f),y>=0&&y<=1&&(o[p++]=y),j>=0&&j<=1&&(o[p++]=j)}}return p}function pn(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(ln(a)){if(cn(o)){var c=-s/o;c>=0&&c<=1&&(i[l++]=c)}}else{var u=o*o-4*a*s;if(ln(u))i[0]=-o/(2*a);else if(u>0){var h=Je(u),d=(c=(-o+h)/(2*a),(-o-h)/(2*a));c>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}function fn(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,c=(s-a)*i+a,u=(l-s)*i+s,h=(u-c)*i+c;o[0]=t,o[1]=a,o[2]=c,o[3]=h,o[4]=h,o[5]=u,o[6]=l,o[7]=r}function gn(t,e,n,r,i,o,a,s,l,c,u){var h,d,p,f,g,v=.005,y=1/0;on[0]=l,on[1]=c;for(var m=0;m<1;m+=.05)an[0]=un(t,n,i,a,m),an[1]=un(e,r,o,s,m),f=Bt(on,an),f=0&&f=0&&c<=1&&(i[l++]=c)}}else{var u=a*a-4*o*s;if(ln(u)){c=-a/(2*o);c>=0&&c<=1&&(i[l++]=c)}else if(u>0){var h=Je(u),d=(c=(-a+h)/(2*o),(-a-h)/(2*o));c>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}function _n(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function xn(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function On(t,e,n,r,i,o,a,s,l){var c,u=.005,h=1/0;on[0]=a,on[1]=s;for(var d=0;d<1;d+=.05){an[0]=yn(t,n,i,d),an[1]=yn(e,r,o,d);var p=Bt(on,an);p=0&&p=1?1:dn(0,r,o,1,t,s)&&un(0,i,a,1,s[0])}}}var Cn=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||mt["noop"],this.ondestroy=t.ondestroy||mt["noop"],this.onrestart=t.onrestart||mt["noop"],t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(mt["isFunction"])(t)?t:Ke[t]||jn(t)},t}(),Mn=Cn,Tn=n("41ef"),kn=n("7a29"),In=Array.prototype.slice;function Dn(t,e,n){return(e-t)*n+t}function An(t,e,n,r){for(var i=e.length,o=0;or?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;l=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=Xn,s=e;if(Object(mt["isArrayLike"])(e)){var l=Fn(e);a=l,(1===l&&!Object(mt["isNumber"])(e[0])||2===l&&!Object(mt["isNumber"])(e[0][0]))&&(o=!0)}else if(Object(mt["isNumber"])(e)&&!Object(mt["eqNaN"])(e))a=Vn;else if(Object(mt["isString"])(e))if(isNaN(+e)){var c=Tn["parse"](e);c&&(s=c,a=Wn)}else a=Vn;else if(Object(mt["isGradientObject"])(e)){var u=Object(mt["extend"])({},s);u.colorStops=Object(mt["map"])(e.colorStops,(function(t){return{offset:t.offset,color:Tn["parse"](t.color)}})),Object(kn["a"])(e)?a=Un:Object(kn["b"])(e)&&(a=Yn),s=u}0===i?this.valType=a:a===this.valType&&a!==Xn||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=Object(mt["isFunction"])(n)?n:Ke[n]||jn(n)),r.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=$n(r),l=qn(r),c=0;c=0;n--)if(l[n].percent<=e)break;n=p(n,c-2)}else{for(n=d;ne)break;n=p(n-1,c-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var g=i.percent-r.percent,v=0===g?1:p((e-r.percent)/g,1);i.easingFunc&&(v=i.easingFunc(v));var y=o?this._additiveValue:h?Zn:t[u];if(!$n(s)&&!h||y||(y=this._additiveValue=[]),this.discrete)t[u]=v<1?r.rawValue:i.rawValue;else if($n(s))s===Hn?An(y,r[a],i[a],v):Pn(y,r[a],i[a],v);else if(qn(s)){var m=r[a],b=i[a],_=s===Un;t[u]={type:_?"linear":"radial",x:Dn(m.x,b.x,v),y:Dn(m.y,b.y,v),colorStops:Object(mt["map"])(m.colorStops,(function(t,e){var n=b.colorStops[e];return{offset:Dn(t.offset,n.offset,v),color:zn(An([],t.color,n.color,v))}})),global:b.global},_?(t[u].x2=Dn(m.x2,b.x2,v),t[u].y2=Dn(m.y2,b.y2,v)):t[u].r=Dn(m.r,b.r,v)}else if(h)An(y,r[a],i[a],v),o||(t[u]=zn(y));else{var x=Dn(r[a],i[a],v);o?this._additiveValue=x:t[u]=x}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;e===Vn?t[n]=t[n]+r:e===Wn?(Tn["parse"](t[n],Zn),Ln(Zn,Zn,r,1),t[n]=zn(Zn)):e===Hn?Ln(t[n],t[n],r,1):e===Gn&&Nn(t[n],t[n],r,1)},t}(),Qn=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Object(mt["logError"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(mt["keys"])(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o0&&s.addKeyframe(0,Bn(l),r),this._trackKeys.push(a)}s.addKeyframe(t,Bn(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}(),Jn=Qn;function tr(){return(new Date).getTime()}var er=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return vt(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=tr()-this._pausedTime,n=e-this._time,r=this._head;while(r){var i=r.next,o=r.step(e,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&($e(e),!t._paused&&t.update())}this._running=!0,$e(e)},e.prototype.start=function(){this._running||(this._time=tr(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=tr(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=tr()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Jn(t,e.loop);return this.addAnimator(n),n},e}(qt),nr=er,rr=300,ir=yt["a"].domSupported,or=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=mt["map"](t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:r}}(),ar={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},sr=!1;function lr(t){var e=t.pointerType;return"pen"===e||"touch"===e}function cr(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function ur(t){t&&(t.zrByTouch=!0)}function hr(t,e){return he(t.dom,new pr(t,e),!0)}function dr(t,e){var n=e,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return r}var pr=function(){function t(t,e){this.stopPropagation=mt["noop"],this.stopImmediatePropagation=mt["noop"],this.preventDefault=mt["noop"],this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),fr={mousedown:function(t){t=he(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=he(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=he(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=he(this.dom,t);var e=t.toElement||t.relatedTarget;dr(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){sr=!0,t=he(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){sr||(t=he(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=he(this.dom,t),ur(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),fr.mousemove.call(this,t),fr.mousedown.call(this,t)},touchmove:function(t){t=he(this.dom,t),ur(t),this.handler.processGesture(t,"change"),fr.mousemove.call(this,t)},touchend:function(t){t=he(this.dom,t),ur(t),this.handler.processGesture(t,"end"),fr.mouseup.call(this,t),+new Date-+this.__lastTouchMomentzr||t<-zr}var Vr=[],Hr=[],Gr=kr(),Wr=Math.abs,Ur=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Fr(this.rotation)||Fr(this.x)||Fr(this.y)||Fr(this.scaleX-1)||Fr(this.scaleY-1)||Fr(this.skewX)||Fr(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||kr(),e?this.getLocalTransform(n):Br(n),t&&(e?Ar(n,t,n):Dr(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&Br(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Vr);var n=Vr[0]<0?-1:1,r=Vr[1]<0?-1:1,i=((Vr[0]-n)*e+n)/Vr[0]||0,o=((Vr[1]-r)*e+r)/Vr[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||kr(),Er(this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Ar(Hr,t.invTransform,e),e=Hr);var n=this.originX,r=this.originY;(n||r)&&(Gr[4]=n,Gr[5]=r,Ar(Hr,e,Gr),Hr[4]-=n,Hr[5]-=r,e=Hr),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&Vt(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&Vt(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Wr(t[0]-1)>1e-10&&Wr(t[3]-1)>1e-10?Math.sqrt(Wr(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Xr(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,c=t.x,u=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var p=n+a,f=r+s;e[4]=-p*i-h*f*o,e[5]=-f*o-d*p*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=d*i,e[2]=h*o,l&&Lr(e,e,l),e[4]+=n+c,e[5]+=r+u,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Yr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Xr(t,e){for(var n=0;nf&&(f=b,gf&&(f=_,y=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Jr.x=ei.x=n.x,Jr.y=ni.y=n.y,ti.x=ni.x=n.x+n.width,ti.y=ei.y=n.y+n.height,Jr.transform(r),ni.transform(r),ti.transform(r),ei.transform(r),e.x=Kr(Jr.x,ti.x,ei.x,ni.x),e.y=Kr(Jr.y,ti.y,ei.y,ni.y);var l=Qr(Jr.x,ti.x,ei.x,ni.x),c=Qr(Jr.y,ti.y,ei.y,ni.y);e.width=l-e.x,e.height=c-e.y}else e!==n&&t.copy(e,n)},t}(),ai=oi,si=n("d51b"),li=n("726e"),ci={};function ui(t,e){e=e||li["a"];var n=ci[e];n||(n=ci[e]=new si["a"](500));var r=n.get(t);return null==r&&(r=li["c"].measureText(t,e).width,n.put(t,r)),r}function hi(t,e,n,r){var i=ui(t,e),o=gi(e),a=pi(0,i,n),s=fi(0,o,r),l=new ai(a,s,i,o);return l}function di(t,e,n,r){var i=((t||"")+"").split("\n"),o=i.length;if(1===o)return hi(i[0],e,n,r);for(var a=new ai(0,0,0,0),s=0;s=0?parseFloat(t)/100*e:parseFloat(t):t}function yi(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,c=n.y,u="left",h="top";if(r instanceof Array)l+=vi(r[0],n.width),c+=vi(r[1],n.height),u=null,h=null;else switch(r){case"left":l-=i,c+=s,u="right",h="middle";break;case"right":l+=i+a,c+=s,h="middle";break;case"top":l+=a/2,c-=i,u="center",h="bottom";break;case"bottom":l+=a/2,c+=o+i,u="center";break;case"inside":l+=a/2,c+=s,u="center",h="middle";break;case"insideLeft":l+=i,c+=s,h="middle";break;case"insideRight":l+=a-i,c+=s,u="right",h="middle";break;case"insideTop":l+=a/2,c+=i,u="center";break;case"insideBottom":l+=a/2,c+=o-i,u="center",h="bottom";break;case"insideTopLeft":l+=i,c+=i;break;case"insideTopRight":l+=a-i,c+=i,u="right";break;case"insideBottomLeft":l+=i,c+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,c+=o-i,u="right",h="bottom";break}return t=t||{},t.x=l,t.y=c,t.align=u,t.verticalAlign=h,t}var mi="__zr_normal__",bi=Yr.concat(["ignore"]),_i=Object(mt["reduce"])(Yr,(function(t,e){return t[e]=!0,t}),{ignore:!1}),xi={},Oi=new ai(0,0,0,0),wi=function(){function t(t){this.id=Object(mt["guid"])(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var c=Oi;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(xi,n,c):yi(xi,n,c),i.x=xi.x,i.y=xi.y,o=xi.align,a=xi.verticalAlign;var u=n.origin;if(u&&null!=n.rotation){var h=void 0,d=void 0;"center"===u?(h=.5*c.width,d=.5*c.height):(h=vi(u[0],c.width),d=vi(u[1],c.height)),l=!0,i.originX=-i.x+h+(r?0:c.x),i.originY=-i.y+d+(r?0:c.y)}}null!=n.rotation&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],l||(i.originX=-p[0],i.originY=-p[1]));var f=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;f&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(v),m=!0)),v=v||"#000",v===g.fill&&y===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=Fe,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Mr:Cr},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Object(Tn["parse"])(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(Tn["stringify"])(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(mt["extend"])(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(Object(mt["isObject"])(t))for(var n=t,r=Object(mt["keys"])(n),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(mi,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===mi,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!(Object(mt["indexOf"])(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||i){i||this.saveCurrentToNormalState(l);var c=!!(l&&l.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,n,c),h&&h.useState(t,e,n,c),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Fe),l}Object(mt["logError"])("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Fe)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=Object(mt["indexOf"])(r,t),o=Object(mt["indexOf"])(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d0||i.force&&!a.length){var S=void 0,j=void 0,C=void 0;if(s){j={},d&&(S={});for(_=0;_=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=mt["indexOf"](this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=mt["indexOf"](n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function $i(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return mt["isString"](t)?Xi(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Zi(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Yi),t=(+t).toFixed(e),n?t:+t}function Ki(t){return t.sort((function(t,e){return t-e})),t}function Qi(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Ji(t)}function Ji(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function to(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function eo(t,e,n){if(!t[e])return 0;var r=mt["reduce"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;var i=Math.pow(10,n),o=mt["map"](t,(function(t){return(isNaN(t)?0:t)/r*i*100})),a=100*i,s=mt["map"](o,(function(t){return Math.floor(t)})),l=mt["reduce"](s,(function(t,e){return t+e}),0),u=mt["map"](o,(function(t,e){return t-s[e]}));while(lc&&(c=u[d],h=d);++s[h],u[h]=0,++l}return s[e]/i}function no(t,e){var n=Math.max(Qi(t),Qi(e)),r=t+e;return n>Yi?r:Zi(r,n)}var ro=9007199254740991;function io(t){var e=2*Math.PI;return(t%e+e)%e}function oo(t){return t>-Ui&&t=10&&e++,e}function co(t,e){var n,r=uo(t),i=Math.pow(10,r),o=t/i;return n=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=n*i,r>=-20?+t.toFixed(r<0?-r:0):t}function ho(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function fo(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,r=0;r=0||i&&mt["indexOf"](i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var fa=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],pa=da(fa),ga=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return pa(this,t,e)},t}(),va=new si["a"](50);function ya(t){if("string"===typeof t){var e=va.get(t);return e&&e.image}return t}function ma(t,e,n,r,i){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=va.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?(e=o.image,!_a(e)&&o.pending.push(a)):(e=li["c"].loadImage(t,ba,ba),e.__zrImageSrc=t,va.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function ba(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=ci(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function Sa(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=ci(t,r);if(o<=n)return t;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Ma(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,s),o=ci(t,r)}return""===t&&(t=e.placeholder),t}function Ma(t,e,n,r){for(var i=0,o=0,a=t.length;of&&c){var p=Math.floor(f/l);n=n.slice(0,p)}if(t&&a&&null!=h)for(var g=Oa(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;vl&&Aa(n,t.substring(l,u),e,s),Aa(n,r[2],e,s,r[1]),l=xa.lastIndex}lo){x>0?(m.tokens=m.tokens.slice(0,x),v(m,_,b),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break t}var j=O.width,I=null==j||"auto"===j;if("string"===typeof j&&"%"===j.charAt(j.length-1))w.percentWidth=j,c.push(w),w.contentWidth=ci(w.text,T);else{if(I){var k=O.backgroundColor,A=k&&k.image;A&&(A=ya(A),_a(A)&&(w.width=Math.max(w.width,A.width*C/A.height)))}var D=p&&null!=i?i-_:null;null!=D&&D0&&p+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=p}else{var g=Ra(e,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v=33&&e<=383}var Pa=Object(mt["reduce"])(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function La(t){return!Da(t)||!!Pa[t]}function Ra(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;hn:i+c+f>n)?c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=d,u+=f,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=f)):p?(o.push(l),a.push(u),l=d,u=f):(o.push(d),a.push(f)):(c+=f,p?(l+=d,u+=f):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var Ea="__zr_style_"+Math.round(10*Math.random()),Na={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ba={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Na[Ea]=!0;var za=["z","z2","invisible"],Fa=["invisible"],Va=function(t){function e(e){return t.call(this,e)||this}return vt(e,t),e.prototype._init=function(e){for(var n=Object(mt["keys"])(e),r=0;r1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(Ka[0]=$a(i)*n+t,Ka[1]=qa(i)*r+e,Qa[0]=$a(o)*n+t,Qa[1]=qa(o)*r+e,u(s,Ka,Qa),c(l,Ka,Qa),i%=Za,i<0&&(i+=Za),o%=Za,o<0&&(o+=Za),i>o&&!a?o+=Za:ii&&(Ja[0]=$a(f)*n+t,Ja[1]=qa(f)*r+e,u(s,Ja,s),c(l,Ja,l))}var ss={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ls=[],us=[],cs=[],hs=[],ds=[],fs=[],ps=Math.min,gs=Math.max,vs=Math.cos,ys=Math.sin,ms=Math.abs,bs=Math.PI,_s=2*bs,xs="undefined"!==typeof Float32Array,ws=[];function Os(t){var e=Math.round(t/bs*1e8)/1e8;return e%2*bs}function Ss(t,e){var n=Os(t[0]);n<0&&(n+=_s);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=_s?i=n+_s:e&&n-i>=_s?i=n-_s:!e&&n>i?i=n+(_s-Os(n-i)):e&&n0&&(this._ux=ms(n/Sr/t)||0,this._uy=ms(n/Sr/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(ss.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=ms(t-this._xi),r=ms(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(ss.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(ss.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(ss.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),ws[0]=r,ws[1]=i,Ss(ws,o),r=ws[0],i=ws[1];var a=i-r;return this.addData(ss.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=vs(i)*n+t,this._yi=ys(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(ss.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(ss.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!xs||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){cs[0]=cs[1]=ds[0]=ds[1]=Number.MAX_VALUE,hs[0]=hs[1]=fs[0]=fs[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;tn||ms(m)>r||h===e-1)&&(p=Math.sqrt(y*y+m*m),i=g,o=v);break;case ss.C:var b=t[h++],_=t[h++],x=(g=t[h++],v=t[h++],t[h++]),w=t[h++];p=vn(i,o,b,_,g,v,x,w,10),i=x,o=w;break;case ss.Q:b=t[h++],_=t[h++],g=t[h++],v=t[h++];p=On(i,o,b,_,g,v,10),i=g,o=v;break;case ss.A:var O=t[h++],S=t[h++],M=t[h++],T=t[h++],C=t[h++],j=t[h++],I=j+C;h+=1;t[h++];f&&(a=vs(C)*M+O,s=ys(C)*T+S),p=gs(M,T)*ps(_s,Math.abs(j)),i=vs(I)*M+O,o=ys(I)*T+S;break;case ss.R:a=i=t[h++],s=o=t[h++];var k=t[h++],A=t[h++];p=2*k+2*A;break;case ss.Z:y=a-i,m=s-o;p=Math.sqrt(y*y+m*m),i=a,o=s;break}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c,h,d,f=this.data,p=this._ux,g=this._uy,v=this._len,y=e<1,m=0,b=0,_=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=e*u,c))t:for(var x=0;x0&&(t.lineTo(h,d),_=0),w){case ss.M:n=i=f[x++],r=o=f[x++],t.moveTo(i,o);break;case ss.L:a=f[x++],s=f[x++];var S=ms(a-i),M=ms(s-o);if(S>p||M>g){if(y){var T=l[b++];if(m+T>c){var C=(c-m)/T;t.lineTo(i*(1-C)+a*C,o*(1-C)+s*C);break t}m+=T}t.lineTo(a,s),i=a,o=s,_=0}else{var j=S*S+M*M;j>_&&(h=a,d=s,_=j)}break;case ss.C:var I=f[x++],k=f[x++],A=f[x++],D=f[x++],P=f[x++],L=f[x++];if(y){T=l[b++];if(m+T>c){C=(c-m)/T;pn(i,I,A,P,C,ls),pn(o,k,D,L,C,us),t.bezierCurveTo(ls[1],us[1],ls[2],us[2],ls[3],us[3]);break t}m+=T}t.bezierCurveTo(I,k,A,D,P,L),i=P,o=L;break;case ss.Q:I=f[x++],k=f[x++],A=f[x++],D=f[x++];if(y){T=l[b++];if(m+T>c){C=(c-m)/T;xn(i,I,A,C,ls),xn(o,k,D,C,us),t.quadraticCurveTo(ls[1],us[1],ls[2],us[2]);break t}m+=T}t.quadraticCurveTo(I,k,A,D),i=A,o=D;break;case ss.A:var R=f[x++],E=f[x++],N=f[x++],B=f[x++],z=f[x++],F=f[x++],V=f[x++],H=!f[x++],G=N>B?N:B,W=ms(N-B)>.001,U=z+F,Y=!1;if(y){T=l[b++];m+T>c&&(U=z+F*(c-m)/T,Y=!0),m+=T}if(W&&t.ellipse?t.ellipse(R,E,N,B,V,z,U,H):t.arc(R,E,G,z,U,H),Y)break t;O&&(n=vs(z)*N+R,r=ys(z)*B+E),i=vs(U)*N+R,o=ys(U)*B+E;break;case ss.R:n=i=f[x],r=o=f[x+1],a=f[x++],s=f[x++];var X=f[x++],q=f[x++];if(y){T=l[b++];if(m+T>c){var $=c-m;t.moveTo(a,s),t.lineTo(a+ps($,X),s),$-=X,$>0&&t.lineTo(a+X,s+ps($,q)),$-=q,$>0&&t.lineTo(a+gs(X-$,0),s+q),$-=X,$>0&&t.lineTo(a,s+gs(q-$,0));break t}m+=T}t.rect(a,s,X,q);break;case ss.Z:if(y){T=l[b++];if(m+T>c){C=(c-m)/T;t.lineTo(i*(1-C)+n*C,o*(1-C)+r*C);break t}m+=T}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=ss,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),Ts=Ms;function Cs(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,u=t;if(a>e+s&&a>r+s||at+s&&o>n+s||oe+h&&c>r+h&&c>o+h&&c>s+h||ct+h&&u>n+h&&u>i+h&&u>a+h||ue+u&&l>r+u&&l>o+u||lt+u&&s>n+u&&s>i+u||sn||c+ui&&(i+=Ds);var d=Math.atan2(l,s);return d<0&&(d+=Ds),d>=r&&d<=i||d+Ds>=r&&d+Ds<=i}function Ls(t,e,n,r,i,o){if(o>e&&o>r||oi?s:0}var Rs=Ts.CMD,Es=2*Math.PI,Ns=1e-4;function Bs(t,e){return Math.abs(t-e)e&&u>r&&u>o&&u>s||u1&&Vs(),f=cn(e,r,o,s,Fs[0]),d>1&&(p=cn(e,r,o,s,Fs[1]))),2===d?ve&&s>r&&s>o||s=0&&u<=1){for(var c=0,h=yn(e,r,o,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);zs[0]=-l,zs[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Es-1e-4){r=0,i=Es;var c=o?1:-1;return a>=zs[0]+t&&a<=zs[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Es,i+=Es);for(var d=0,f=0;f<2;f++){var p=zs[f];if(p+t>a){var g=Math.atan2(s,p);c=o?1:-1;g<0&&(g=Es+g),(g>=r&&g<=i||g+Es>=r&&g+Es<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function Us(t,e,n,r,i){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,d=0,f=0,p=0;p1&&(n||(u+=Ls(c,h,d,f,r,i))),v&&(c=s[p],h=s[p+1],d=c,f=h),g){case Rs.M:d=s[p++],f=s[p++],c=d,h=f;break;case Rs.L:if(n){if(Cs(c,h,s[p],s[p+1],e,r,i))return!0}else u+=Ls(c,h,s[p],s[p+1],r,i)||0;c=s[p++],h=s[p++];break;case Rs.C:if(n){if(js(c,h,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],e,r,i))return!0}else u+=Hs(c,h,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],r,i)||0;c=s[p++],h=s[p++];break;case Rs.Q:if(n){if(Is(c,h,s[p++],s[p++],s[p],s[p+1],e,r,i))return!0}else u+=Gs(c,h,s[p++],s[p++],s[p],s[p+1],r,i)||0;c=s[p++],h=s[p++];break;case Rs.A:var y=s[p++],m=s[p++],b=s[p++],_=s[p++],x=s[p++],w=s[p++];p+=1;var O=!!(1-s[p++]);o=Math.cos(x)*b+y,a=Math.sin(x)*_+m,v?(d=o,f=a):u+=Ls(c,h,o,a,r,i);var S=(r-y)*_/b+y;if(n){if(Ps(y,m,_,x,x+w,O,e,S,i))return!0}else u+=Ws(y,m,_,x,x+w,O,S,i);c=Math.cos(x+w)*b+y,h=Math.sin(x+w)*_+m;break;case Rs.R:d=c=s[p++],f=h=s[p++];var M=s[p++],T=s[p++];if(o=d+M,a=f+T,n){if(Cs(d,f,o,f,e,r,i)||Cs(o,f,o,a,e,r,i)||Cs(o,a,d,a,e,r,i)||Cs(d,a,d,f,e,r,i))return!0}else u+=Ls(o,f,o,a,r,i),u+=Ls(d,a,d,f,r,i);break;case Rs.Z:if(n){if(Cs(c,h,d,f,e,r,i))return!0}else u+=Ls(c,h,d,f,r,i);c=d,h=f;break}}return n||Bs(h,f)||(u+=Ls(c,h,d,f,r,i)||0),0!==u}function Ys(t,e,n){return Us(t,0,!1,e,n)}function Xs(t,e,n,r){return Us(t,e,!0,n,r)}var qs=Object(mt["defaults"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Na),$s={style:Object(mt["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ba.style)},Zs=Yr.concat(["invisible","culling","z","z2","zlevel","parent"]),Ks=function(t){function e(e){return t.call(this,e)||this}return vt(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s.5?Tr:e>.2?jr:Cr}if(t)return Cr}return Tr},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(mt["isString"])(e)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Object(jn["lum"])(t,0)0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&He)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),Xs(o,a/s,t,e)))return!0}if(this.hasFill())return Ys(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=He,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"===typeof t?n[t]=e:Object(mt["extend"])(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&He)},e.prototype.createStyle=function(t){return Object(mt["createObject"])(qs,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(mt["extend"])({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Object(mt["extend"])({},r.shape),Object(mt["extend"])(s,n.shape)):(s=Object(mt["extend"])({},i?this.shape:r.shape),Object(mt["extend"])(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=Object(mt["extend"])({},this.shape);for(var u={},c=Object(mt["keys"])(s),h=0;h0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return Object(mt["createObject"])(Js,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=di(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Ua);tl.prototype.type="tspan";var el=tl,nl=Object(mt["defaults"])({x:0,y:0},Na),rl={style:Object(mt["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ba.style)};function il(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var ol=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vt(e,t),e.prototype.createStyle=function(t){return Object(mt["createObject"])(nl,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=il(e.image)?e.image:this.__image;if(!r)return 0;var i="width"===t?"height":"width",o=e[i];return null==o?r[t]:r[t]/r[i]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return rl},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ai(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Ua);ol.prototype.type="image";var al=ol;function sl(t,e){var n,r,i,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>u&&(a=n+r,n*=u/a,r*=u/a),i+o>u&&(a=i+o,i*=u/a,o*=u/a),r+i>c&&(a=r+i,r*=c/a,i*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-r,l),0!==r&&t.arc(s+u-r,l+r,r,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var ll=Math.round;function ul(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(ll(2*r)===ll(2*i)&&(t.x1=t.x2=hl(r,s,!0)),ll(2*o)===ll(2*a)&&(t.y1=t.y2=hl(o,s,!0)),t):t}}function cl(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=hl(r,s,!0),t.y=hl(i,s,!0),t.width=Math.max(hl(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(hl(i+a,s,!1)-t.y,0===a?0:1),t):t}}function hl(t,e,n){if(!e)return t;var r=ll(2*t);return(r+ll(e))%2===0?r/2:(r+(n?1:-1))/2}var dl=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),fl={},pl=function(t){function e(e){return t.call(this,e)||this}return vt(e,t),e.prototype.getDefaultShape=function(){return new dl},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=cl(fl,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?sl(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Qs);pl.prototype.type="rect";var gl=pl,vl={fill:"#000"},yl=2,ml={style:Object(mt["defaults"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ba.style)},bl=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=vl,n.attr(e),n}return vt(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,T=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=i.calculatedLineHeight,j=0;j=0&&(j=_[C],"right"===j.align))this._placeToken(j,t,w,g,T,"right",y),O-=j.width,T-=j.width,C--;M+=(r-(M-p)-(v-T)-O)/2;while(S<=C)j=_[S],this._placeToken(j,t,w,g,M+j.width/2,"center",y),M+=j.width,S++;g+=w}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2);var c=!t.isLineHolder&&Dl(s);c&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,d=t.textPadding;d&&(i=kl(i,o,d),u-=t.height/2-d[0]-t.innerHeight/2);var f=this._getOrCreateChild(el),p=f.createStyle();f.useStyle(p);var g=this._defaultStyle,v=!1,y=0,m=Il("fill"in s?s.fill:"fill"in e?e.fill:(v=!0,g.fill)),b=jl("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!v?null:(y=yl,g.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;p.text=t.text,p.x=i,p.y=u,_&&(p.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,p.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=t.font||li["a"],p.opacity=Object(mt["retrieve3"])(s.opacity,e.opacity,1),Sl(p,s),b&&(p.lineWidth=Object(mt["retrieve3"])(s.lineWidth,e.lineWidth,y),p.lineDash=Object(mt["retrieve2"])(s.lineDash,e.lineDash),p.lineDashOffset=e.lineDashOffset||0,p.stroke=b),m&&(p.fill=m);var x=t.contentWidth,w=t.contentHeight;f.setBoundingRect(new ai(fi(p.x,x,p.textAlign),pi(p.y,w,p.textBaseline),x,w))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,d=l&&!h,f=t.borderRadius,p=this;if(d||t.lineHeight||u&&c){a=this._getOrCreateChild(gl),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=r,g.width=i,g.height=o,g.r=f,a.dirtyShape()}if(d){var v=a.style;v.fill=l||null,v.fillOpacity=Object(mt["retrieve2"])(t.fillOpacity,1)}else if(h){s=this._getOrCreateChild(al),s.onload=function(){p.dirtyStyle()};var y=s.style;y.image=l.image,y.x=n,y.y=r,y.width=i,y.height=o}if(u&&c){v=a.style;v.lineWidth=u,v.stroke=c,v.strokeOpacity=Object(mt["retrieve2"])(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=Object(mt["retrieve3"])(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return Ml(t)&&(e=[t.fontStyle,t.fontWeight,Ol(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(mt["trim"])(e)||t.textFont||t.font},e}(Ua),_l={left:!0,right:1,center:1},xl={top:1,bottom:1,middle:1},wl=["fontStyle","fontWeight","fontSize","fontFamily"];function Ol(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?li["b"]+"px":t+"px":t}function Sl(t,e){for(var n=0;n=0,o=!1;if(t instanceof Qs){var a=Bl(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Ql(s)||Ql(l)){r=r||{};var u=r.style||{};"inherit"===u.fill?(o=!0,r=Object(mt["extend"])({},r),u=Object(mt["extend"])({},u),u.fill=s):!Ql(u.fill)&&Ql(s)?(o=!0,r=Object(mt["extend"])({},r),u=Object(mt["extend"])({},u),u.fill=tu(s)):!Ql(u.stroke)&&Ql(l)&&(o||(r=Object(mt["extend"])({},r),u=Object(mt["extend"])({},u)),u.stroke=tu(l)),r.style=u}}if(r&&null==r.z2){o||(r=Object(mt["extend"])({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:Ul)}return r}function fu(t,e,n){if(n&&null==n.z2){n=Object(mt["extend"])({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:Yl)}return n}function pu(t,e,n){var r=Object(mt["indexOf"])(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:hu(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=Object(mt["extend"])({},n),a=Object(mt["extend"])({opacity:r?i:.1*o.opacity},a),n.style=a),n}function gu(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return du(this,t,e,n);if("blur"===t)return pu(this,t,n);if("select"===t)return fu(this,t,n)}return n}function vu(t){t.stateProxy=gu;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=gu),n&&(n.stateProxy=gu)}function yu(t,e){!Mu(t,e)&&!t.__highByOuter&&uu(t,nu)}function mu(t,e){!Mu(t,e)&&!t.__highByOuter&&uu(t,ru)}function bu(t,e){t.__highByOuter|=1<<(e||0),uu(t,nu)}function _u(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&uu(t,ru)}function xu(t){uu(t,iu)}function wu(t){uu(t,ou)}function Ou(t){uu(t,au)}function Su(t){uu(t,su)}function Mu(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Tu(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=zl(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){ou(t)})),a&&n.push(i)),o.isBlured=!1})),Object(mt["each"])(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function Cu(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function Eu(t,e,n){Gu(t,!0),uu(t,vu),zu(t,e,n)}function Nu(t){Gu(t,!1)}function Bu(t,e,n,r){r?Nu(t):Eu(t,e,n)}function zu(t,e,n){var r=Ll(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var Fu=["emphasis","blur","select"],Vu={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Hu(t,e,n,r){n=n||"itemStyle";for(var i=0;i0){var h=c.duration,d=c.delay,f=c.easing,p={duration:h,delay:d||0,easing:f,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,p):e.animateTo(n,p)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function Qu(t,e,n,r,i,o){Ku("update",t,e,n,r,i,o)}function Ju(t,e,n,r,i,o){Ku("enter",t,e,n,r,i,o)}function tc(t){if(!t.__zr)return!0;for(var e=0;e=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,r,i){if(t.length){var o=n(e),a=o.graph,s=o.noEntryList,l={};mt["each"](t,(function(t){l[t]=!0}));while(s.length){var u=s.pop(),c=a[u],h=!!l[u];h&&(r.call(i,u,c.originalDeps.slice()),delete l[u]),mt["each"](c.successor,h?f:d)}mt["each"](l,(function(){var t="";throw new Error(t)}))}function d(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function f(t){l[t]=!0,d(t)}}}function Fc(t,e){return mt["merge"](mt["merge"]({},t,!0),e,!0)}var Vc={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Hc={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},Gc="ZH",Wc="EN",Uc=Wc,Yc={},Xc={},qc=yt["a"].domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(Gc)>-1?Gc:Uc}():Uc;function $c(t,e){t=t.toUpperCase(),Xc[t]=new Rc(e),Yc[t]=e}function Zc(t){if(Object(mt["isString"])(t)){var e=Yc[t.toUpperCase()]||{};return t===Gc||t===Wc?Object(mt["clone"])(e):Object(mt["merge"])(Object(mt["clone"])(e),Object(mt["clone"])(Yc[Uc]),!1)}return Object(mt["merge"])(Object(mt["clone"])(t),Object(mt["clone"])(Yc[Uc]),!1)}function Kc(t){return Xc[t]}function Qc(){return Xc[Uc]}$c(Wc,Vc),$c(Gc,Hc);var Jc=1e3,th=60*Jc,eh=60*th,nh=24*eh,rh=365*nh,ih={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},oh="{yyyy}-{MM}-{dd}",ah={year:"{yyyy}",month:"{yyyy}-{MM}",day:oh,hour:oh+" "+ih.hour,minute:oh+" "+ih.minute,second:oh+" "+ih.second,millisecond:ih.none},sh=["year","month","day","hour","minute","second","millisecond"],lh=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function uh(t,e){return t+="","0000".substr(0,e-t.length)+t}function ch(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function hh(t){return t===ch(t)}function dh(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function fh(t,e,n,r){var i=so(t),o=i[yh(n)](),a=i[mh(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[bh(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[_h(n)](),h=(c-1)%12+1,d=i[xh(n)](),f=i[wh(n)](),p=i[Oh(n)](),g=r instanceof Rc?r:Kc(r||qc)||Qc(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),b=v.get("dayOfWeek"),_=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,uh(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,uh(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,uh(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,uh(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,uh(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,uh(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,uh(p,3)).replace(/{S}/g,p+"")}function ph(t,e,n,r,i){var o=null;if(mt["isString"](n))o=n;else if(mt["isFunction"](n))o=n(t.value,e,{level:t.level});else{var a=mt["extend"]({},ih);if(t.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(mt["isArray"](o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;h=Math.min(h,o.length-1),o=o[h]}}return fh(new Date(t.value),o,i,r)}function gh(t,e){var n=so(t),r=n[mh(e)]()+1,i=n[bh(e)](),o=n[_h(e)](),a=n[xh(e)](),s=n[wh(e)](),l=n[Oh(e)](),u=0===l,c=u&&0===s,h=c&&0===a,d=h&&0===o,f=d&&1===i,p=f&&1===r;return p?"year":f?"month":d?"day":h?"hour":c?"minute":u?"second":"millisecond"}function vh(t,e,n){var r=mt["isNumber"](t)?so(t):t;switch(e=e||gh(t,n),e){case"year":return r[yh(n)]();case"half-year":return r[mh(n)]()>=6?1:0;case"quarter":return Math.floor((r[mh(n)]()+1)/4);case"month":return r[mh(n)]();case"day":return r[bh(n)]();case"half-day":return r[_h(n)]()/24;case"hour":return r[_h(n)]();case"minute":return r[xh(n)]();case"second":return r[wh(n)]();case"millisecond":return r[Oh(n)]()}}function yh(t){return t?"getUTCFullYear":"getFullYear"}function mh(t){return t?"getUTCMonth":"getMonth"}function bh(t){return t?"getUTCDate":"getDate"}function _h(t){return t?"getUTCHours":"getHours"}function xh(t){return t?"getUTCMinutes":"getMinutes"}function wh(t){return t?"getUTCSeconds":"getSeconds"}function Oh(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Sh(t){return t?"setUTCFullYear":"setFullYear"}function Mh(t){return t?"setUTCMonth":"setMonth"}function Th(t){return t?"setUTCDate":"setDate"}function Ch(t){return t?"setUTCHours":"setHours"}function jh(t){return t?"setUTCMinutes":"setMinutes"}function Ih(t){return t?"setUTCSeconds":"setSeconds"}function kh(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Ah(t){if(!go(t))return mt["isString"](t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Dh(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Ph=mt["normalizeCssArray"],Lh=/([&<>"'])/g,Rh={"&":"&","<":"<",">":">",'"':""","'":"'"};function Eh(t){return null==t?"":(t+"").replace(Lh,(function(t,e){return Rh[e]}))}function Nh(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(t){return t&&mt["trim"](t)?t:"-"}function o(t){return!(null==t||isNaN(t)||!isFinite(t))}var a="time"===e,s=t instanceof Date;if(a||s){var l=a?so(t):t;if(!isNaN(+l))return fh(l,r,n);if(s)return"-"}if("ordinal"===e)return mt["isStringSafe"](t)?i(t):mt["isNumber"](t)&&o(t)?t+"":"-";var u=po(t);return o(u)?Ah(u):mt["isStringSafe"](t)?i(t):"boolean"===typeof t?t+"":"-"}var Bh=["a","b","c","d","e","f","g"],zh=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Fh(t,e,n){mt["isArray"](e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Hh(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=so(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),h=r[i+"Milliseconds"]();return t=t.replace("MM",uh(a,2)).replace("M",a).replace("yyyy",o).replace("yy",uh(o%100+"",2)).replace("dd",uh(s,2)).replace("d",s).replace("hh",uh(l,2)).replace("h",l).replace("mm",uh(u,2)).replace("m",u).replace("ss",uh(c,2)).replace("s",c).replace("SSS",uh(h,3)),t}function Gh(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Wh(t,e){return e=e||"transparent",mt["isString"](t)?t:mt["isObject"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Uh(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Yh=mt["each"],Xh=["left","right","top","bottom","width","height"],qh=[["width","left","right"],["height","top","bottom"]];function $h(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),f=e.childAt(u+1),p=f&&f.getBoundingRect();if("horizontal"===t){var g=d.width+(p?-p.x+d.x:0);c=o+g,c>r||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(p?-p.y+d.y:0);h=a+v,h>i||l.newline?(o+=s+n,a=0,h=v,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var Zh=$h;mt["curry"]($h,"vertical"),mt["curry"]($h,"horizontal");function Kh(t,e,n){n=Ph(n||0);var r=e.width,i=e.height,o=$i(t.left,r),a=$i(t.top,i),s=$i(t.right,r),l=$i(t.bottom,i),u=$i(t.width,r),c=$i(t.height,i),h=n[2]+n[0],d=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(c)&&(c=i-l-h-a),null!=f&&(isNaN(u)&&isNaN(c)&&(f>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=r-s-u-d),isNaN(a)&&(a=i-l-c-h),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-d;break}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=r-d-o-(s||0)),isNaN(c)&&(c=i-h-a-(l||0));var p=new ai(o+n[3],a+n[0],u,c);return p.margin=n,p}function Qh(t){var e=t.layoutMode||t.constructor.layoutMode;return mt["isObject"](e)?e:e?{type:e}:null}function Jh(t,e,n){var r=n&&n.ignoreSize;!mt["isArray"](r)&&(r=[r,r]);var i=a(qh[0],0),o=a(qh[1],1);function a(n,i){var o={},a=0,u={},c=0,h=2;if(Yh(n,(function(e){u[e]=t[e]})),Yh(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),r[i])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(c!==h&&a){if(a>=h)return o;for(var d=0;d=0;a--)o=mt["merge"](o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return Xo(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Rc);function id(t){var e=[];return mt["each"](rd.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=mt["map"](e,(function(t){return ea(t).main})),"dataset"!==t&&mt["indexOf"](e,"dataset")<=0&&e.unshift("dataset"),e}aa(rd,Rc),ha(rd),Bc(rd),zc(rd,id);var od=rd,ad="";"undefined"!==typeof navigator&&(ad=navigator.platform||"");var sd="rgba(0, 0, 0, 0.2)",ld={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:sd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:sd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:sd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:sd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:sd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:sd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ad.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},ud=Object(mt["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),cd="original",hd="arrayRows",dd="objectRows",fd="keyedColumns",pd="typedArray",gd="unknown",vd="column",yd="row",md={Must:1,Might:2,Not:3},bd=Ho();function _d(t){bd(t).datasetMap=Object(mt["createHashMap"])()}function xd(t,e,n){var r={},i=wd(e);if(!i||!t)return r;var o,a,s=[],l=[],u=e.ecModel,c=bd(u).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(mt["each"])(t,(function(e,n){var i=Object(mt["isObject"])(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=p(i)),r[i.name]=[]}));var d=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function f(t,e,n){for(var r=0;re)return t[r];return t[n-1]}function Ad(t,e,n,r,i,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?kd(r,a):n;if(c=c||n,c&&c.length){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function Dd(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Pd,Ld,Rd;"undefined"!==typeof console&&console.warn&&console.log;function Ed(t){0}function Nd(t){throw new Error(t)}var Bd="\0_ec_inner",zd=1;var Fd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vt(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new Rc(r),this._locale=new Rc(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=Ud(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Ud(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):Rd(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&Object(mt["each"])(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=Object(mt["createHashMap"])(),s=e&&e.replaceMergeMainTypeMap;function l(e){var o=Cd(this,e,wo(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Co(a,o,l);zo(u,e,od),n[e]=null,r.set(e,null),i.set(e,0);var c,h=[],d=[],f=0;Object(mt["each"])(u,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=od.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(c)return void 0;c=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Object(mt["extend"])({componentIndex:n},t.keyInfo);r=new a(i,this,this,s),Object(mt["extend"])(r,s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),d.push(r),f++):(h.push(void 0),d.push(void 0))}),this),n[e]=h,r.set(e,d),i.set(e,f),"series"===e&&Pd(this)}_d(this),Object(mt["each"])(t,(function(t,e){null!=t&&(od.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(mt["clone"])(t):Object(mt["merge"])(n[e],t,!0))})),s&&s.each((function(t,e){od.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),od.topologicalTravel(o,od.getAllClassMainTypes(),l,this),this._seriesIndices||Pd(this)},e.prototype.getOption=function(){var t=Object(mt["clone"])(this.option);return Object(mt["each"])(t,(function(e,n){if(od.hasClass(n)){for(var r=wo(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Bo(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t[Bd],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i=e:"max"===n?t<=e:t===e}function of(t,e){return t.join(",")===e.join(",")}var af=tf,sf=mt["each"],lf=mt["isObject"],uf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function cf(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=uf.length;n=0;g--){var v=t[g];if(s||(d=v.data.rawIndexOf(v.stackedByDimension,h)),d>=0){var y=v.data.getByRawIndex(v.stackResultDimension,d);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&f>=0&&y>0||"samesign"===l&&f<=0&&y<0){f=no(f,y),p=y;break}}}return r[0]=f,r[1]=p,r}))}))}var Pf,Lf,Rf,Ef,Nf,Bf=function(){function t(t){this.data=t.data||(t.sourceFormat===fd?{}:[]),this.sourceFormat=t.sourceFormat||gd,this.seriesLayoutBy=t.seriesLayoutBy||vd,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nu&&(u=f)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return ap(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function up(t){var e,n;return mt["isObject"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}function cp(t){return new hp(t)}var hp=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(o||d1&&r>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},yp=function(){function t(t,e){if(!Object(mt["isNumber"])(e)){var n="";0,Nd(n)}this._opFn=vp[t],this._rvalFloat=po(e)}return t.prototype.evaluate=function(t){return Object(mt["isNumber"])(t)?this._opFn(t,this._rvalFloat):this._opFn(po(t),this._rvalFloat)},t}(),mp=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(mt["isNumber"])(t)?t:po(t),r=Object(mt["isNumber"])(e)?e:po(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=Object(mt["isString"])(t),s=Object(mt["isString"])(e);a&&(n=s?t:0),s&&(r=a?e:0)}return nr?-this._resultLT:0},t}(),bp=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=po(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=po(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function _p(t,e){return"eq"===t||"ne"===t?new bp("eq"===t,e):Object(mt["hasOwn"])(vp,t)?new yp(t,e):null}var xp=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return fp(t,e)},t}();function wp(t,e){var n=new xp,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==vd&&Nd(a);var s=[],l={},u=t.dimensionsDefine;if(u)Object(mt["each"])(u,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";Object(mt["hasOwn"])(l,n)&&Nd(i),l[n]=r}}));else for(var c=0;c65535?Lp:Rp}function Fp(){return[1/0,-1/0]}function Vp(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Hp(t,e,n,r,i){var o=Bp[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Object(mt["map"])(o,(function(t){return t.property})),u=0;uv[1]&&(v[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks,i=r[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u=0&&s<0)&&(a=f,s=d,l=0),d===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i=c&&y<=h||isNaN(y))&&(s[l++]=p),p++}f=!0}else if(2===i){g=d[r[0]];var m=d[r[1]],b=t[r[1]][0],_=t[r[1]][1];for(v=0;v=c&&y<=h||isNaN(y))&&(x>=b&&x<=_||isNaN(x))&&(s[l++]=p),p++}f=!0}}if(!f)if(1===i)for(v=0;v=c&&y<=h||isNaN(y))&&(s[l++]=w)}else for(v=0;vt[M][1])&&(O=!1)}O&&(s[l++]=e.getRawIndex(v))}return lv[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,c=Math.floor(1/e),h=this.getRawIndex(0),d=new(zp(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));d[u++]=h;for(var f=1;fn&&(n=r,i=b))}T>0&&Tu-f&&(s=u-f,a.length=s);for(var p=0;pc[1]&&(c[1]=v),h[d++]=y}return i._count=d,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();is&&(s=c)}return r=[a,s],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return fp(t[r],this._dimensions[r])}Dp={arrayRows:t,objectRows:function(t,e,n,r){return fp(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return fp(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),Wp=Gp,Up=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Xp(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=Object(mt["isTypedArray"])(a)?pd:cd,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=Object(mt["retrieve2"])(c.seriesLayoutBy,h.seriesLayoutBy)||null,f=Object(mt["retrieve2"])(c.sourceHeader,h.sourceHeader),p=Object(mt["retrieve2"])(c.dimensions,h.dimensions),g=d!==h.seriesLayoutBy||!!f!==!!h.sourceHeader||p;t=g?[Ff(a,{seriesLayoutBy:d,sourceHeader:f,dimensions:p},s)]:[]}else{var v=n;if(i){var y=this._applyTransform(r);t=y.sourceList,e=y.upstreamSignList}else{var m=v.get("source",!0);t=[Ff(m,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){var o="";1!==t.length&&qp(o)}var a=[],s=[];return Object(mt["each"])(t,(function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||qp(n),a.push(e),s.push(t._getVersionSign())})),r?e=Ip(r,a,{datasetIndex:n.componentIndex}):null!=i&&(e=[Hf(a[0])]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||n>0&&!t.noHeader;return Object(mt["each"])(t.blocks,(function(t){var n=ng(t);n>=e&&(e=n+ +(r&&(!n||tg(t)&&!t.noHeader)))})),e}return 0}function rg(t,e,n,r){var i=e.noHeader,o=ag(ng(e)),a=[],s=e.blocks||[];Object(mt["assert"])(!s||Object(mt["isArray"])(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Object(mt["hasOwn"])(u,l)){var c=new mp(u[l],null);s.sort((function(t,e){return c.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Object(mt["each"])(s,(function(n,i){var s=e.valueFormatter,l=eg(n)(s?Object(mt["extend"])(Object(mt["extend"])({},t),{valueFormatter:s}):t,n,i>0?o.html:0,r);null!=l&&a.push(l)}));var h="richText"===t.renderMode?a.join(o.richText):sg(a.join(""),i?n:o.html);if(i)return h;var d=Nh(e.header,"ordinal",t.useUTC),f=Zp(r,t.renderMode).nameStyle;return"richText"===t.renderMode?cg(t,d,f)+o.richText+h:sg('
'+Eh(d)+"
"+h,n)}function ig(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return t=Object(mt["isArray"])(t)?t:[t],Object(mt["map"])(t,(function(t,e){return Nh(t,Object(mt["isArray"])(f)?f[e]:f,u)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),d=o?"":Nh(l,"ordinal",u),f=e.valueType,p=a?[]:c(e.value),g=!s||!o,v=!s&&o,y=Zp(r,i),m=y.nameStyle,b=y.valueStyle;return"richText"===i?(s?"":h)+(o?"":cg(t,d,m))+(a?"":hg(t,p,g,v,b)):sg((s?"":h)+(o?"":lg(d,!s,m))+(a?"":ug(p,g,v,b)),n)}}function og(t,e,n,r,i,o){if(t){var a=eg(t),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function ag(t){return{html:Kp[t],richText:Qp[t]}}function sg(t,e){var n='
',r="margin: "+e+"px 0 0";return'
'+t+n+"
"}function lg(t,e,n){var r=e?"margin-left:2px":"";return''+Eh(t)+""}function ug(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=Object(mt["isArray"])(t)?t:[t],''+Object(mt["map"])(t,(function(t){return Eh(t)})).join("  ")+""}function cg(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function hg(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(mt["isArray"])(e)?e.join(" "):e,o)}function dg(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return Wh(r)}function fg(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var pg=function(){function t(){this.richTextStyles={},this._nextStyleNameId=vo()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=Vh({color:e,type:t,renderMode:n,markerId:r});return Object(mt["isString"])(i)?i:(this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(mt["isArray"])(e)?Object(mt["each"])(e,(function(t){return Object(mt["extend"])(n,t)})):Object(mt["extend"])(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();function gg(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=Object(mt["isArray"])(h),f=dg(o,a);if(c>1||d&&!c){var p=vg(h,o,a,u,f);e=p.inlineValues,n=p.inlineValueTypes,r=p.blocks,i=p.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=e=ap(l,a,u[0]),n=g.type}else i=e=d?h[0]:h;var v=No(o),y=v&&o.name||"",m=l.getName(a),b=s?y:m;return Jp("section",{header:y,noHeader:s||!v,sortParam:i,blocks:[Jp("nameValue",{markerType:"item",markerColor:f,name:b,noName:!Object(mt["trim"])(b),value:e,valueType:n})].concat(r||[])})}function vg(t,e,n,r,i){var o=e.getData(),a=Object(mt["reduce"])(t,(function(t,e,n){var r=o.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(Jp("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?Object(mt["each"])(r,(function(t){c(ap(o,n,t),t)})):Object(mt["each"])(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var yg=Ho();function mg(t,e){return t.getName(e)||t.getId(e)}var bg="__universalTransitionEnabled",_g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return vt(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=cp({count:Og,reset:Sg}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var r=yg(this).sourceManager=new Up(this);r.prepareSource();var i=this.getInitialData(t,n);Tg(i,this),this.dataTask.context.data=i,yg(this).dataBeforeProcessed=i,xg(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Qh(this),r=n?td(t):{},i=this.subType;od.hasClass(i)&&(i+="Series"),mt["merge"](t,e.getTheme().get(this.subType)),mt["merge"](t,this.getDefaultOption()),Oo(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Jh(t,r,n)},e.prototype.mergeOption=function(t,e){t=mt["merge"](this.option,t,!0),this.fillDataTextStyle(t.data);var n=Qh(this);n&&Jh(this.option,t,n);var r=yg(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);Tg(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,yg(this).dataBeforeProcessed=i,xg(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!mt["isTypedArray"](t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=Id.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(i)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[mg(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[bg])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){mt["isObject"](i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l0&&this._innerSelect(t,e)}},e.registerClass=function(t){return od.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(od);function xg(t){var e=t.name;No(t)||(t.name=wg(t)||e)}function wg(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return mt["each"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}function Og(t){return t.model.getRawData().count()}function Sg(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Mg}function Mg(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Tg(t,e){mt["each"](mt["concatArray"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,mt["curry"](Cg,e))}))}function Cg(t,e){var n=jg(t);return n&&n.setOutputEnd((e||this).count()),e}function jg(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}mt["mixin"](_g,lp),mt["mixin"](_g,Id),aa(_g,od);var Ig=_g,kg=function(){function t(){this.group=new Pi,this.uid=Nc("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();ia(kg),ha(kg);var Ag=kg;function Dg(){var t=Ho();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var Pg=Ts.CMD,Lg=[[],[],[]],Rg=Math.sqrt,Eg=Math.atan2;function Ng(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=Pg.M,h=Pg.C,d=Pg.L,f=Pg.R,p=Pg.A,g=Pg.Q;for(i=0,o=0;i1&&(a*=Bg(p),s*=Bg(p));var g=(i===o?-1:1)*Bg((a*a*(s*s)-a*a*(f*f)-s*s*(d*d))/(a*a*(f*f)+s*s*(d*d)))||0,v=g*a*f/s,y=g*-s*d/a,m=(t+n)/2+Fg(h)*v-zg(h)*y,b=(e+r)/2+zg(h)*v+Fg(h)*y,_=Wg([1,0],[(d-v)/a,(f-y)/s]),x=[(d-v)/a,(f-y)/s],w=[(-1*d-v)/a,(-1*f-y)/s],O=Wg(x,w);if(Gg(x,w)<=-1&&(O=Vg),Gg(x,w)>=1&&(O=0),O<0){var S=Math.round(O/Vg*1e6)/1e6;O=2*Vg+S%2*Vg}c.addData(u,m,b,a,s,_,O,h,o)}var Yg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Xg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function qg(t){var e=new Ts;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=Ts.CMD,l=t.match(Yg);if(!l)return e;for(var u=0;uk*k+A*A&&(S=T,M=C),{cx:S,cy:M,x0:-c,y0:-h,x1:S*(i/x-1),y1:M*(i/x-1)}}function xv(t){var e;if(Object(mt["isArray"])(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function wv(t,e){var n,r=vv(e.r,0),i=vv(e.r0||0,0),o=r>0,a=i>0;if(o||a){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=e.cx,h=e.cy,d=!!e.clockwise,f=pv(u-l),p=f>uv&&f%uv;if(p>mv&&(f=p),r>mv)if(f>uv-mv)t.moveTo(c+r*hv(l),h+r*cv(l)),t.arc(c,h,r,l,u,!d),i>mv&&(t.moveTo(c+i*hv(u),h+i*cv(u)),t.arc(c,h,i,u,l,d));else{var g=void 0,v=void 0,y=void 0,m=void 0,b=void 0,_=void 0,x=void 0,w=void 0,O=void 0,S=void 0,M=void 0,T=void 0,C=void 0,j=void 0,I=void 0,k=void 0,A=r*hv(l),D=r*cv(l),P=i*hv(u),L=i*cv(u),R=f>mv;if(R){var E=e.cornerRadius;E&&(n=xv(E),g=n[0],v=n[1],y=n[2],m=n[3]);var N=pv(r-i)/2;if(b=yv(N,y),_=yv(N,m),x=yv(N,g),w=yv(N,v),M=O=vv(b,_),T=S=vv(x,w),(O>mv||S>mv)&&(C=r*hv(u),j=r*cv(u),I=i*hv(l),k=i*cv(l),fmv){var U=yv(y,M),Y=yv(m,M),X=_v(I,k,A,D,r,U,d),q=_v(C,j,P,L,r,Y,d);t.moveTo(c+X.cx+X.x0,h+X.cy+X.y0),M0&&t.arc(c+X.cx,h+X.cy,U,fv(X.y0,X.x0),fv(X.y1,X.x1),!d),t.arc(c,h,r,fv(X.cy+X.y1,X.cx+X.x1),fv(q.cy+q.y1,q.cx+q.x1),!d),Y>0&&t.arc(c+q.cx,h+q.cy,Y,fv(q.y1,q.x1),fv(q.y0,q.x0),!d))}else t.moveTo(c+A,h+D),t.arc(c,h,r,l,u,!d);else t.moveTo(c+A,h+D);if(i>mv&&R)if(T>mv){U=yv(g,T),Y=yv(v,T),X=_v(P,L,C,j,i,-Y,d),q=_v(A,D,I,k,i,-U,d);t.lineTo(c+X.cx+X.x0,h+X.cy+X.y0),T0&&t.arc(c+X.cx,h+X.cy,Y,fv(X.y0,X.x0),fv(X.y1,X.x1),!d),t.arc(c,h,i,fv(X.cy+X.y1,X.cx+X.x1),fv(q.cy+q.y1,q.cx+q.x1),d),U>0&&t.arc(c+q.cx,h+q.cy,U,fv(q.y1,q.x1),fv(q.y0,q.x0),!d))}else t.lineTo(c+P,h+L),t.arc(c,h,i,u,l,d);else t.lineTo(c+P,h+L)}else t.moveTo(c,h);t.closePath()}}}var Ov=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),Sv=function(t){function e(e){return t.call(this,e)||this}return vt(e,t),e.prototype.getDefaultShape=function(){return new Ov},e.prototype.buildPath=function(t,e){wv(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Qs);Sv.prototype.type="sector";var Mv=Sv,Tv=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Cv=function(t){function e(e){return t.call(this,e)||this}return vt(e,t),e.prototype.getDefaultShape=function(){return new Tv},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(Qs);Cv.prototype.type="ring";var jv=Cv;function Iv(t,e,n,r){var i,o,a,s,l=[],u=[],c=[],h=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;d=2){if(r){var o=Iv(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var h=i.length;siy[1]){if(a=!1,i)return a;var u=Math.abs(iy[0]-ry[1]),c=Math.abs(ry[0]-iy[1]);Math.min(u,c)>r.len()&&(uMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Ay(t){return!t.isGroup}function Dy(t){return null!=t.shape}function Py(t,e,n){if(t&&e){var r=i(t);e.traverse((function(t){if(Ay(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),Qu(t,i,n,Ll(t).dataIndex)}}}))}function i(t){var e={};return t.traverse((function(t){Ay(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Dy(t)&&(e.shape=Object(mt["extend"])({},t.shape)),e}}function Ly(t,e){return Object(mt["map"])(t,(function(t){var n=t[0];n=dy(n,e.x),n=fy(n,e.x+e.width);var r=t[1];return r=dy(r,e.y),r=fy(r,e.y+e.height),[n,r]}))}function Ry(t,e){var n=dy(t.x,e.x),r=fy(t.x+t.width,e.x+e.width),i=dy(t.y,e.y),o=fy(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function Ey(t,e,n){var r=Object(mt["extend"])({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Object(mt["defaults"])(i,n),new al(r)):_y(t.replace("path://",""),r,n,"center")}function Ny(t,e,n,r,i){for(var o=0,a=i[i.length-1];o1)return!1;var v=zy(f,p,c,h)/d;return!(v<0||v>1)}function zy(t,e,n,r){return t*r-n*e}function Fy(t){return t<=1e-6&&t>=-1e-6}function Vy(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Object(mt["isString"])(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Object(mt["each"])(Object(mt["keys"])(l),(function(t){Object(mt["hasOwn"])(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Ll(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Object(mt["defaults"])({content:r,formatterParams:s},i)}}function Hy(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Gy(t,e){if(t)if(Object(mt["isArray"])(t))for(var n=0;n=0?h():c=setTimeout(h,-i),l=r};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function rm(t,e,n,r){var i=t[e];if(i){var o=i[Jy]||i,a=i[em],s=i[tm];if(s!==n||a!==r){if(null==n||!r)return t[e]=o;i=t[e]=nm(o,n,"debounce"===r),i[Jy]=o,i[em]=r,i[tm]=n}return i}}function im(t,e){var n=t[e];n&&n[Jy]&&(n.clear&&n.clear(),t[e]=n[Jy])}var om=Ho(),am={itemStyle:da(Ac,!0),lineStyle:da(jc,!0)},sm={lineStyle:"stroke",itemStyle:"fill"};function lm(t,e){var n=t.visualStyleMapper||am[e];return n||am.itemStyle}function um(t,e){var n=t.visualDrawType||sm[e];return n||"fill"}var cm={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=lm(t,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=um(t,r),u=a[l],c=Object(mt["isFunction"])(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(mt["isFunction"])(a.fill)?d:a.fill,a.stroke="auto"===a.stroke||Object(mt["isFunction"])(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=Object(mt["extend"])({},a);i[l]=c(r),e.setItemVisual(n,"style",i)}}}},hm=new Rc,dm={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=lm(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){hm.option=n[r];var a=i(hm),s=t.ensureUniqueItemVisual(e,"style");Object(mt["extend"])(s,a),hm.option.decal&&(t.setItemVisual(e,"decal",hm.option.decal),hm.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},fm={performRawSeries:!0,overallReset:function(t){var e=Object(mt["createHashMap"])();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),om(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=om(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=um(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t],l=i.getItemVisual(a,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",h=n.count();u[s]=e.getColorFromPalette(c,o,h)}}))}}))}},pm=Math.PI;function gm(t,e){e=e||{},mt["defaults"](e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Pi,r=new gl({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new Pl({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new gl({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&(i=new qv({shape:{startAngle:-pm/2,endAngle:-pm/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*pm/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*pm/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var vm=function(){function t(t,e,n,r){this._stageTaskMap=Object(mt["createHashMap"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,a=r&&r.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData(),i=r.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,a=t.get("large")&&i>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(mt["createHashMap"])();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(mt["each"])(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";Object(mt["assert"])(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(mt["each"])(t,(function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){a(r,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var f=o.getPerformArgs(c,r.block);d.each((function(t){t.perform(f)})),c.perform(f)&&(i=!0)}else u&&u.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Object(mt["createHashMap"])(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||cp({plan:xm,reset:wm,count:Mm}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||cp({reset:ym});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Object(mt["createHashMap"])(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1,d="";function f(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,cp({reset:mm,onDirty:_m})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,i._pipe(t,n)}Object(mt["assert"])(!t.createOnAllSeries,d),l?n.eachRawSeriesByType(l,f):u?u(n,r).each(f):(c=!1,Object(mt["each"])(n.getSeries(),f)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return Object(mt["isFunction"])(t)&&(t={overallReset:t,seriesType:Tm(t)}),t.uid=Nc("stageHandler"),e&&(t.visualType=e),t},t}();function ym(t){t.overallReset(t.ecModel,t.api,t.payload)}function mm(t){return t.overallProgress&&bm}function bm(){this.agent.dirty(),this.getDownstream().dirty()}function _m(){this.agent&&this.agent.dirty()}function xm(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function wm(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=wo(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(mt["map"])(e,(function(t,e){return Sm(e)})):Om}var Om=Sm(0);function Sm(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o0&&c===i.length-u.length){var h=i.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function u(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Vm=["symbol","symbolSize","symbolRotate","symbolOffset"],Hm=Vm.concat(["symbolKeepAspect"]),Gm={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a=0&&db(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function gb(t,e,n){for(var r="radial"===e.type?pb(t,e,n):fb(t,e,n),i=e.colorStops,o=0;o0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(mt["isNumber"])(t)?[t]:Object(mt["isArray"])(t)?t:null:null}function _b(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&bb(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&1!==i&&(n=Object(mt["map"])(n,(function(t){return t/i})),r/=i)}return[n,r]}var xb=new Ts(!0);function wb(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Ob(t){return"string"===typeof t&&"none"!==t}function Sb(t){var e=t.fill;return null!=e&&"none"!==e}function Mb(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Tb(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Cb(t,e,n){var r=ma(e.image,e.__image,n);if(_a(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*mt["RADIAN_TO_DEGREE"]),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}function jb(t,e,n,r){var i,o=wb(n),a=Sb(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||xb,h=e.__dirty;if(!r){var d=n.fill,f=n.stroke,p=a&&!!d.colorStops,g=o&&!!f.colorStops,v=a&&!!d.image,y=o&&!!f.image,m=void 0,b=void 0,_=void 0,x=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(m=h?gb(t,d,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(b=h?gb(t,f,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),v&&(_=h||!e.__canvasFillPattern?Cb(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=_),y&&(x=h||!e.__canvasStrokePattern?Cb(t,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),p?t.fillStyle=m:v&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=b:y&&(x?t.strokeStyle=x:o=!1)}var O,S,M=e.getGlobalScale();c.setScale(M[0],M[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(i=_b(e),O=i[0],S=i[1]);var T=!0;(u||h&He)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),T=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),T&&c.rebuildPath(t,l?s:1),O&&(t.setLineDash(O),t.lineDashOffset=S),r||(n.strokeFirst?(o&&Tb(t,n),a&&Mb(t,n)):(a&&Mb(t,n),o&&Tb(t,n))),O&&t.setLineDash([])}function Ib(t,e,n){var r=e.__image=ma(n.image,e.__image,e,e.onload);if(r&&_a(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var h=a-u,d=s-c;t.drawImage(r,u,c,h,d,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}function kb(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||li["a"],t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(r=_b(e),o=r[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(wb(n)&&t.strokeText(i,n.x,n.y),Sb(n)&&t.fillText(i,n.x,n.y)):(Sb(n)&&t.fillText(i,n.x,n.y),wb(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}var Ab=["shadowBlur","shadowOffsetX","shadowOffsetY"],Db=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Pb(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){Wb(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Na.opacity:a}(r||e.blend!==n.blend)&&(o||(Wb(t,i),o=!0),t.globalCompositeOperation=e.blend||Na.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[k_])if(this._disposed)cx(this.id);else{var r,i,o;if(Object(mt["isObject"])(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[k_]=!0,!this._model||e){var a=new af(this._api),s=this._theme,l=this._model=new Yd;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},px);var u={seriesTransition:o,optionChanged:!0};if(n)this[A_]={silent:r,updateParams:u},this[k_]=!1,this.getZr().wakeUp();else{try{V_(this),W_.update.call(this,null,u)}catch(c){throw this[A_]=null,this[k_]=!1,c}this._ssr||this._zr.flush(),this[A_]=null,this[k_]=!1,q_.call(this,r),$_.call(this,r)}}},e.prototype.setTheme=function(){Ed("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||c_&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(yt["a"].svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(mt["each"])(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,r=[],i=this;Object(mt["each"])(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(mt["each"])(r,(function(t){t.group.ignore=!1})),o}cx(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(bx[n]){var a=o,s=o,l=-o,u=-o,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Object(mt["each"])(mx,(function(o,h){if(o.group===n){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(mt["clone"])(t)),f=o.getDom().getBoundingClientRect();a=r(f.left,a),s=r(f.top,s),l=i(f.right,l),u=i(f.bottom,u),c.push({dom:d,left:f.left,top:f.top})}})),a*=h,s*=h,l*=h,u*=h;var d=l-a,f=u-s,p=li["c"].createCanvas(),g=zi(p,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:f}),e){var v="";return Object(mt["each"])(c,(function(t){var e=t.left-a,n=t.top-s;v+=''+t.dom+""})),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new gl({shape:{x:0,y:0,width:d,height:f},style:{fill:t.connectedBackgroundColor}})),Object(mt["each"])(c,(function(t){var e=new al({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}cx(this.id)},e.prototype.convertToPixel=function(t,e){return U_(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return U_(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=Wo(r,t);return Object(mt["each"])(i,(function(t,r){r.indexOf("Models")>=0&&Object(mt["each"])(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}cx(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,r=Wo(n,t,{defaultMainType:"series"}),i=r.seriesModel;var o=i.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=a?Um(o,a,e):Ym(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(mt["each"])(ux,(function(e){var n=function(n){var r,i=t.getModel(),o=n.target,a="globalout"===e;if(a?r={}:o&&$m(o,(function(t){var e=Ll(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return r=Object(mt["extend"])({},e.eventData),!0}),!0),r){var s=r.componentType,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:u,view:c},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(mt["each"])(dx,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(mt["each"])(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),qm(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?cx(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)cx(this.id);else{this._disposed=!0;var t=this.getDom();t&&qo(this.getDom(),wx,"");var e=this,n=e._api,r=e._model;Object(mt["each"])(e._componentsViews,(function(t){t.dispose(r,n)})),Object(mt["each"])(e._chartsViews,(function(t){t.dispose(r,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete mx[e.id]}},e.prototype.resize=function(t){if(!this[k_])if(this._disposed)cx(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[A_]&&(null==r&&(r=this[A_].silent),n=!0,this[A_]=null),this[k_]=!0;try{n&&V_(this),W_.update.call(this,{type:"resize",animation:Object(mt["extend"])({duration:0},t&&t.animation)})}catch(i){throw this[k_]=!1,i}this[k_]=!1,q_.call(this,r),$_.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)cx(this.id);else if(Object(mt["isObject"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),yx[t]){var n=yx[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?cx(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(mt["extend"])({},t);return e.type=dx[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)cx(this.id);else if(Object(mt["isObject"])(e)||(e={silent:!!e}),hx[t.type]&&this._model)if(this[k_])this._pendingActions.push(t);else{var n=e.silent;X_.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&yt["a"].browser.weChat&&this._throttledZrFlush(),q_.call(this,n),$_.call(this,n)}},e.prototype.updateLabelLayout=function(){a_.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)cx(this.id);else{var e=t.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(e);0,r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],n=[],r=!1;if(t.eachComponent((function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})})),r){var i,o,a=e.concat(n);ze(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(mt["each"])(a,(function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}function n(t){for(var e=[],n=t.currentStates,r=0;re.get("hoverLayerThreshold")&&!yt["a"].node&&!yt["a"].worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function i(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function o(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,r=t.get("zlevel")||0;e.eachRendered((function(t){return a(t,n,r,-1/0),!0}))}}function a(t,e,n,r){var i=t.getTextContent(),o=t.getTextGuideLine(),s=t.isGroup;if(s)for(var l=t.childrenRef(),u=0;u0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(tc(t))return;if(t instanceof Qs&&qu(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}}))}V_=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),H_(t,!0),H_(t,!1),e.plan()},H_=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l=0)){Vx.push(n);var o=Am.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function Gx(t,e){yx[t]=e}function Wx(t){Object(li["d"])({createCanvas:t})}function Ux(t,e,n){var r=u_("registerMap");r&&r(t,e,n)}function Yx(t){var e=u_("getMap");return e&&e(t)}var Xx=jp;Fx(x_,cm),Fx(S_,dm),Fx(S_,fm),Fx(x_,Gm),Fx(S_,Wm),Fx(j_,i_),Ax(kf),Dx(g_,Af),Gx("default",gm),Ex({type:Xl,event:Xl,update:Xl},mt["noop"]),Ex({type:ql,event:ql,update:ql},mt["noop"]),Ex({type:$l,event:$l,update:$l},mt["noop"]),Ex({type:Zl,event:Zl,update:Zl},mt["noop"]),Ex({type:Kl,event:Kl,update:Kl},mt["noop"]),kx("light",Pm),kx("dark",zm);var qx={},$x=[],Zx={registerPreprocessor:Ax,registerProcessor:Dx,registerPostInit:Px,registerPostUpdate:Lx,registerUpdateLifecycle:Rx,registerAction:Ex,registerCoordinateSystem:Nx,registerLayout:zx,registerVisual:Fx,registerTransform:Xx,registerLoading:Gx,registerMap:Ux,registerImpl:l_,PRIORITY:I_,ComponentModel:od,ComponentView:Ag,SeriesModel:Ig,ChartView:Qy,registerComponentModel:function(t){od.registerClass(t)},registerComponentView:function(t){Ag.registerClass(t)},registerSeriesModel:function(t){Ig.registerClass(t)},registerChartView:function(t){Qy.registerClass(t)},registerSubTypeDefaulter:function(t,e){od.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Gi(t,e)}};function Kx(t){Object(mt["isArray"])(t)?Object(mt["each"])(t,(function(t){Kx(t)})):Object(mt["indexOf"])($x,t)>=0||($x.push(t),Object(mt["isFunction"])(t)&&(t={install:t}),t.install(Zx))}function Qx(t){return null==t?0:t.length||1}function Jx(t){return t}var tw=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Jx,this._newKeyGetter=r||Jx,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),r[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var d=0;d1)for(var a=0;a30}var vw,yw,mw,bw,_w,xw,ww,Ow=mt["isObject"],Sw=mt["map"],Mw="undefined"===typeof Int32Array?Array:Int32Array,Tw="e\0\0",Cw=-1,jw=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Iw=["_approximateExtent"],kw=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;dw(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u=e)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,a=r.getSource().sourceFormat,s=a===cd;if(s&&!r.pure)for(var l=[],u=t;u0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),mt["isArray"](i)?i=i.slice():Ow(i)&&(i=mt["extend"]({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,Ow(e)?mt["extend"](r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){Ow(t)?mt["extend"](this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?mt["extend"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Rl(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){mt["each"](this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Sw(this.dimensions,this._getDimInfo,this),this.hostModel)),_w(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];mt["isFunction"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(mt["slice"](arguments)))})},t.internalField=function(){vw=function(t){var e=t._invertedIndicesMap;mt["each"](e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new Mw(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),r[e]=s}}}(),t}(),Aw=kw;function Dw(t,e){return Pw(t,e).dimensions}function Pw(t,e){zf(t)||(t=Vf(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Object(mt["createHashMap"])(),o=[],a=Rw(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&gw(a),l=r===t.dimensionsDefine,u=l?pw(t):fw(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=Object(mt["createHashMap"])(c),d=new Ep(a),f=0;f0&&(r.name=i+(o-1)),o++,e.set(i,o)}}function Rw(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Object(mt["each"])(e,(function(t){var e;Object(mt["isObject"])(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}function Ew(t,e,n){var r=e.data;if(n||r.hasOwnProperty(t)){var i=0;while(r.hasOwnProperty(t+i))i++;t+=i}return e.set(t,!0),t}var Nw=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(mt["createHashMap"])(),this.categoryAxisMap=Object(mt["createHashMap"])(),this.coordSysName=t}return t}();function Bw(t){var e=t.get("coordinateSystem"),n=new Nw(e),r=zw[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var zw={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",Yo).models[0],o=t.getReferringComponents("yAxis",Yo).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Fw(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),Fw(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",Yo).models[0];e.coordSysDims=["single"],n.set("single",i),Fw(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",Yo).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Fw(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),Fw(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Object(mt["each"])(o.parallelAxisIndex,(function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),Fw(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function Fw(t){return"category"===t.get("type")}function Vw(t,e,n){n=n||{};var r,i,o,a=n.byIndex,s=n.stackedCoordDimension;Hw(e)?r=e:(i=e.schema,r=i.dimensions,o=e.store);var l,u,c,h,d=!(!t||!t.get("stack"));if(Object(mt["each"])(r,(function(t,e){Object(mt["isString"])(t)&&(r[e]=t={name:t}),d&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var f=u.coordDim,p=u.type,g=0;Object(mt["each"])(r,(function(t){t.coordDim===f&&g++}));var v={name:c,coordDim:f,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,p),y.storeDimIndex=o.ensureCalculationDimension(c,p)),i.appendCalculationDimension(v),i.appendCalculationDimension(y)):(r.push(v),r.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function Hw(t){return!dw(t.schema)}function Gw(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Ww(t,e){return Gw(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Uw(t,e){var n,r=t.get("coordinateSystem"),i=Qd.get(r);return e&&e.coordSysDims&&(n=mt["map"](e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=ow(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function Yw(t,e,n){var r,i;return n&&mt["each"](t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)})),i||null==r||(t[r].otherDims.itemName=0),r}function Xw(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=Vf(t)):(r=i.getSource(),o=r.sourceFormat===cd);var a=Bw(e),s=Uw(e,a),l=n.useEncodeDefaulter,u=mt["isFunction"](l)?l:l?mt["curry"](xd,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},h=Pw(r,c),d=Yw(h.dimensions,n.createInvertedIndices,a),f=o?null:i.getSharedDataStore(h),p=Vw(e,{schema:h,store:f}),g=new Aw(h,e);g.setCalculationInfo(p);var v=null!=d&&qw(r)?function(t,e,n,r){return r===d?n:this.defaultDimValueGetter(t,e,n,r)}:null;return g.hasItemOption=!1,g.initData(o?r:f,null,v),g}function qw(t){if(t.sourceFormat===cd){var e=$w(t.data||[]);return!mt["isArray"](Mo(e))}}function $w(t){var e=0;while(ee[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();ha(Kw);var Qw=Kw,Jw=0,tO=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Jw}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&Object(mt["map"])(r,eO);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(mt["isString"])(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return e=r.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(mt["createHashMap"])(this.categories))},t}();function eO(t){return Object(mt["isObject"])(t)&&null!=t.value?t.value:t+""}var nO=tO;function rO(t){return"interval"===t.type||"log"===t.type}function iO(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=co(o/e,!0);null!=n&&ar&&(a=i.interval=r);var s=i.intervalPrecision=aO(a),l=i.niceTickExtent=[Zi(Math.ceil(t[0]/a)*a,s),Zi(Math.floor(t[1]/a)*a,s)];return lO(l,t),i}function oO(t){var e=Math.pow(10,uo(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Zi(n*e)}function aO(t){return Qi(t)+2}function sO(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function lO(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),sO(t,0,e),sO(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function uO(t,e){return t>=e[0]&&t<=e[1]}function cO(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function hO(t,e){return t*(e[1]-e[0])+e[0]}var dO=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new nO({})),Object(mt["isArray"])(r)&&(r=new nO({categories:Object(mt["map"])(r,(function(t){return Object(mt["isObject"])(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return vt(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(mt["isString"])(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),uO(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),cO(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(hO(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Qw);Qw.registerClass(dO);var fO=dO,pO=Zi,gO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return vt(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return uO(t,this._extent)},e.prototype.normalize=function(t){return cO(t,this._extent)},e.prototype.scale=function(t){return hO(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=aO(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]a)return[]}var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&(t?o.push({value:pO(l+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;ir[0]&&h0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}function MO(t){var e=SO(t),n=[];return Object(mt["each"])(t,(function(t){var r,i=t.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),h=Math.abs(c[1]-c[0]);r=l?u/h*l:u}else{var d=t.getData();r=Math.abs(a[1]-a[0])/d.count()}var f=$i(t.get("barWidth"),r),p=$i(t.get("barMaxWidth"),r),g=$i(t.get("barMinWidth")||(AO(t)?.5:1),r),v=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:f,barMaxWidth:p,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:wO(o),stackId:xO(t)})})),TO(n)}function TO(t){var e={};Object(mt["each"])(t,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return Object(mt["each"])(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=Object(mt["keys"])(r).length;o=Math.max(35-4*a,15)+"%"}var s=$i(o,i),l=$i(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),Object(mt["each"])(r,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,u-=r+l*r,c--}else{var r=h;e&&er&&(r=n),r!==h&&(t.width=r,u-=r+l*r,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,f=0;Object(mt["each"])(r,(function(t,e){t.width||(t.width=h),d=t,f+=t.width*(1+l)})),d&&(f-=d.width*l);var p=-f/2;Object(mt["each"])(r,(function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:p,width:t.width},p+=t.width*(1+l)}))})),n}function CO(t,e,n){if(t&&e){var r=t[wO(e)];return null!=r&&null!=n?r[xO(n)]:r}}function jO(t,e){var n=OO(t,e),r=MO(n);Object(mt["each"])(n,(function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=xO(t),a=r[wO(i)][o],s=a.offset,l=a.width;e.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function IO(t){return{seriesType:t,plan:Dg(),reset:function(t){if(kO(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=e.getDimensionIndex(e.mapDimension(i.dim)),a=e.getDimensionIndex(e.mapDimension(r.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),c=Gw(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),d=DO(r,i),f=AO(t),p=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(t,e){var r,i=t.count,l=f&&bO(3*i),u=f&&s&&bO(3*i),m=f&&bO(i),b=n.master.getRect(),_=h?b.width:b.height,x=e.getStore(),w=0;while(null!=(r=t.next())){var O=x.get(c?g:o,r),S=x.get(a,r),M=d,T=void 0;c&&(T=+O-x.get(o,r));var C=void 0,j=void 0,I=void 0,k=void 0;if(h){var A=n.dataToPoint([O,S]);if(c){var D=n.dataToPoint([T,S]);M=D[0]}C=M,j=A[1]+y,I=A[0]-M,k=v,Math.abs(I)>>1;t[i][1]n&&(this._approxInterval=n);var o=RO.length,a=Math.min(PO(RO,this._approxInterval,0,o),o-1);this._interval=RO[a][1],this._minLevelUnit=RO[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(mt["isNumber"])(t)?t:+so(t)},e.prototype.contain=function(t){return uO(this.parse(t),this._extent)},e.prototype.normalize=function(t){return cO(this.parse(t),this._extent)},e.prototype.scale=function(t){return hO(t,this._extent)},e.type="time",e}(vO),RO=[["second",Jc],["minute",th],["hour",eh],["quarter-day",6*eh],["half-day",12*eh],["day",1.2*nh],["half-week",3.5*nh],["week",7*nh],["month",31*nh],["quarter",95*nh],["half-year",rh/2],["year",rh]];function EO(t,e,n,r){var i=so(e),o=so(n),a=function(t){return vh(i,t,r)===vh(o,t,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},d=function(){return h()&&a("second")},f=function(){return d()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return d();case"millisecond":return f()}}function NO(t,e){return t/=nh,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function BO(t){var e=30*nh;return t/=e,t>6?6:t>3?3:t>2?2:1}function zO(t){return t/=eh,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function FO(t,e){return t/=e?th:Jc,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function VO(t){return co(t,!0)}function HO(t,e,n){var r=new Date(t);switch(ch(e)){case"year":case"month":r[Mh(n)](0);case"day":r[Th(n)](1);case"hour":r[Ch(n)](0);case"minute":r[jh(n)](0);case"second":r[Ih(n)](0),r[kh(n)](0)}return r.getTime()}function GO(t,e,n,r){var i=1e4,o=lh,a=0;function s(t,e,n,i,o,a,s){var l=new Date(e),u=e,c=l[i]();while(u1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u=r[0]&&m<=r[1]&&h++)}var b=(r[1]-r[0])/e;if(h>1.5*b&&d>b/1.5)break;if(u.push(v),h>b||t===o[f])break}c=[]}}}var _=Object(mt["filter"])(Object(mt["map"])(u,(function(t){return Object(mt["filter"])(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),x=[],w=_.length-1;for(f=0;f<_.length;++f)for(var O=_[f],S=0;S0)r*=10;var o=[Zi($O(e[0]/r)*r),Zi(qO(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){YO.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=KO(t)/KO(this.base),uO(t,this._extent)},e.prototype.normalize=function(t){return t=KO(t)/KO(this.base),cO(t,this._extent)},e.prototype.scale=function(t){return t=hO(t,this._extent),ZO(this.base,t)},e.type="log",e}(Qw),JO=QO.prototype;function tS(t,e){return XO(t,Qi(e))}JO.getMinorTicks=YO.getMinorTicks,JO.getLabel=YO.getLabel,Qw.registerClass(QO);var eS=QO,nS=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[iS[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=rS[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),rS={min:"_determinedMin",max:"_determinedMax"},iS={min:"_dataMin",max:"_dataMax"};function oS(t,e,n){var r=t.rawExtentInfo;return r||(r=new nS(t,e,n),t.rawExtentInfo=r,r)}function aS(t,e){return null==e?null:Object(mt["eqNaN"])(e)?NaN:t.parse(e)}function sS(t,e){var n=t.type,r=oS(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===n){var s=OO("bar",a),l=!1;if(mt["each"](s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=MO(s),c=lS(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function lS(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=CO(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;mt["each"](a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;mt["each"](a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=1-(s+l)/o,d=c/h-c;return e+=d*(l/u),t-=d*(s/u),{min:t,max:e}}function uS(t,e){var n=e,r=sS(t,n),i=r.extent,o=n.get("splitNumber");t instanceof eS&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function cS(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new fO({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new WO({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Qw.getClass(e)||vO)}}function hS(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function dS(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,r){return t.scale.getFormattedLabel(n,r,e)}}(e):mt["isString"](e)?function(e){return function(n){var r=t.scale.getLabel(n),i=e.replace("{value}",null!=r?r:"");return i}}(e):mt["isFunction"](e)?function(e){return function(r,i){return null!=n&&(i=r.value-n),e(fS(t,r),i,null!=r.level?{level:r.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function fS(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function pS(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();n instanceof fO?i=n.count():(r=n.getTicks(),i=r.length);var a,s=t.getLabelModel(),l=dS(t),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;cn&&(t=i,n=a)}if(t)return AS(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Object(mt["each"])(i,(function(e){"polygon"===e.type?kS(e.exterior,n,r,t):Object(mt["each"])(e.points,(function(e){kS(e,n,r,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new ai(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;r>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function zS(t,e){return t=ES(t),mt["map"](mt["filter"](t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new PS(o[0],o.slice(1)));break;case"MultiPolygon":mt["each"](r.coordinates,(function(t){t[0]&&i.push(new PS(t[0],t.slice(1)))}));break;case"LineString":i.push(new LS([r.coordinates]));break;case"MultiLineString":i.push(new LS(r.coordinates))}var a=new RS(n[e||"name"],i,n.cp);return a.properties=n,a}))}function FS(t,e,n,r,i,o,a,s){var l=new Pl({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var VS=Ho();function HS(t){return"category"===t.type?WS(t):XS(t)}function GS(t,e){return"category"===t.type?YS(t,e):{ticks:mt["map"](t.scale.getTicks(),(function(t){return t.value}))}}function WS(t){var e=t.getLabelModel(),n=US(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function US(t,e){var n,r,i=qS(t,"labels"),o=vS(e),a=$S(i,o);return a||(mt["isFunction"](o)?n=eM(t,o):(r="auto"===o?KS(t):o,n=tM(t,r)),ZS(i,o,{labels:n,labelCategoryInterval:r}))}function YS(t,e){var n,r,i=qS(t,"ticks"),o=vS(e),a=$S(i,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),mt["isFunction"](o))n=eM(t,o,!0);else if("auto"===o){var s=US(t,t.getLabelModel());r=s.labelCategoryInterval,n=mt["map"](s.labels,(function(t){return t.tickValue}))}else r=o,n=tM(t,r,!0);return ZS(i,o,{ticks:n,tickCategoryInterval:r})}function XS(t){var e=t.scale.getTicks(),n=dS(t);return{labels:mt["map"](e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function qS(t,e){return VS(t)[e]||(VS(t)[e]=[])}function $S(t,e){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),d=0,f=0;l<=o[1];l+=s){var p=0,g=0,v=di(n({value:l}),e.font,"center","top");p=1.3*v.width,g=1.3*v.height,d=Math.max(d,p,7),f=Math.max(f,g,7)}var y=d/c,m=f/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var b=Math.max(0,Math.floor(Math.min(y,m))),_=VS(t.model),x=t.getExtent(),w=_.lastAutoInterval,O=_.lastTickCount;return null!=w&&null!=O&&Math.abs(w-b)<=1&&Math.abs(O-a)<=1&&w>b&&_.axisExtent0===x[0]&&_.axisExtent1===x[1]?b=w:(_.lastTickCount=a,_.lastAutoInterval=b,_.axisExtent0=x[0],_.axisExtent1=x[1]),b}function JS(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function tM(t,e,n){var r=dS(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=yS(t),d=a.get("showMinLabel")||h,f=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return f&&p-l!==o[1]&&g(o[1]),s}function eM(t,e,n){var r=t.scale,i=dS(t),o=[];return mt["each"](r.getTicks(),(function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})})),o}var nM=[0,1],rM=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return to(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&(n=n.slice(),iM(n,r.count())),qi(t,nM,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),iM(n,r.count()));var i=qi(t,n,nM,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=GS(this,e),r=n.ticks,i=Object(mt["map"])(r,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),o=e.get("alignWithLabel");return oM(this,i,o,t.clamp),i},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),r=Object(mt["map"])(n,(function(t){return Object(mt["map"])(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return r},t.prototype.getViewLabels=function(){return HS(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return QS(this)},t}();function iM(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function oM(t,e,n,r){var i=e.length;if(t.onBand&&!n&&i){var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],o=e[1]={coord:s[0]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;Object(mt["each"])(e,(function(t){t.coord-=u/2}));var c=t.scale.getExtent();a=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*a},e.push(o)}var h=s[0]>s[1];d(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift()),r&&d(s[0],e[0].coord)&&e.unshift({coord:s[0]}),d(s[1],o.coord)&&(r?o.coord=s[1]:e.pop()),r&&d(o.coord,s[1])&&e.push({coord:s[1]})}function d(t,e){return t=Zi(t),e=Zi(e),h?t>e:ti&&(i+=hM);var f=Math.atan2(s,a);if(f<0&&(f+=hM),f>=r&&f<=i||f+hM>=r&&f+hM<=i)return l[0]=c,l[1]=h,u-n;var p=n*Math.cos(r)+t,g=n*Math.sin(r)+e,v=n*Math.cos(i)+t,y=n*Math.sin(i)+e,m=(p-a)*(p-a)+(g-s)*(g-s),b=(v-a)*(v-a)+(y-s)*(y-s);return m0){e=e/180*Math.PI,xM.fromArray(t[0]),wM.fromArray(t[1]),OM.fromArray(t[2]),Zr.sub(SM,xM,wM),Zr.sub(MM,OM,wM);var n=SM.len(),r=MM.len();if(!(n<.001||r<.001)){SM.scale(1/n),MM.scale(1/r);var i=SM.dot(MM),o=Math.cos(e);if(o1&&Zr.copy(jM,OM),jM.toArray(t[1])}}}}function kM(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function AM(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Et(r[0],r[1]),o=Et(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=Ft([],r[1],r[0],a/i),l=Ft([],r[1],r[2],a/o),u=Ft([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&o&&w(-h/a,0,a);var v,y,m=t[0],b=t[a-1];return _(),v<0&&O(-v,.8),y<0&&O(y,.8),_(),x(v,y,1),x(y,v,-1),_(),v<0&&S(-v),y<0&&S(y),u}function _(){v=m.rect[e]-r,y=i-b.rect[e]-b.rect[n]}function x(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){w(r*n,0,a);var i=r+t;i<0&&O(-i*n,1)}else O(-t*n,1)}}function w(n,r,i){0!==n&&(u=!0);for(var o=r;o0)for(l=0;l0;l--){d=o[l-1]*h;w(-d,l,a)}}}function S(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r0?w(n,0,r+1):w(-n,a-r-1,a),t-=n,t<=0)return}}function EM(t,e,n,r){return RM(t,"x","width",e,n,r)}function NM(t,e,n,r){return RM(t,"y","height",e,n,r)}function BM(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new ai(0,0,0,0);function r(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var i=0;i=0&&n.attr(i.oldLayoutSelect),Object(mt["indexOf"])(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Qu(n,l,e,s)}else if(n.attr(l),!_c(n).valueAnimation){var h=Object(mt["retrieve2"])(n.style.opacity,1);n.style.opacity=0,Ju(n,{style:{opacity:h}},e,s)}if(i.oldLayout=l,n.states.select){var d=i.oldLayoutSelect={};UM(d,l,YM),UM(d,n.states.select,YM)}if(n.states.emphasis){var f=i.oldLayoutEmphasis={};UM(f,l,YM),UM(f,n.states.emphasis,YM)}wc(n,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){i=WM(r),o=i.oldLayout;var p={points:r.shape.points};o?(r.attr({shape:o}),Qu(r,{shape:p},e)):(r.setShape(p),r.style.strokePercent=0,Ju(r,{style:{strokePercent:1}},e)),i.oldLayout=p}},t}(),qM=XM,$M=Ho();function ZM(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var r=$M(e).labelManager;r||(r=$M(e).labelManager=new qM),r.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=$M(e).labelManager;n.updatedSeries.forEach((function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}Kx(ZM);var KM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return vt(e,t),e.prototype.getInitialData=function(t){return Zw(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new Pi,n=ub("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*t.itemHeight,s=ub(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?i:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Ig),QM=KM;function JM(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=ap(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a=0&&r.push(e[o])}return r.join(" ")}var eT=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return vt(e,t),e.prototype._createSymbol=function(t,e,n,r,i){this.removeAll();var o=ub(t,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=nT,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){bu(this.childAt(0))},e.prototype.downplay=function(){_u(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(d):Qu(h,d,a,n),ic(h)}if(this._updateCommon(t,n,s,r,i),l){h=this.childAt(0);if(!u){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Ju(h,d,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,u,c,h,d,f,p=this.childAt(0),g=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,h=r.labelStatesModels,d=r.hoverScale,f=r.cursorStyle,c=r.emphasisDisabled),!r||t.hasItemOption){var v=r&&r.itemModel?r.itemModel:t.getItemModel(e),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),h=cc(v),d=y.getShallow("scale"),f=v.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");p.attr("rotation",(m||0)*Math.PI/180||0);var b=hb(t.getItemVisual(e,"symbolOffset"),n);b&&(p.x=b[0],p.y=b[1]),f&&p.attr("cursor",f);var _=t.getItemVisual(e,"style"),x=_.fill;if(p instanceof al){var w=p.style;p.useStyle(Object(mt["extend"])({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else p.__isEmptyBrush?p.useStyle(Object(mt["extend"])({},_)):p.useStyle(_),p.style.decal=null,p.setColor(x,i&&i.symbolInnerColor),p.style.strokeNoScale=!0;var O=t.getItemVisual(e,"liftZ"),S=this._z2;null!=O?null==S&&(this._z2=p.z2,p.z2+=O):null!=S&&(p.z2=S,this._z2=null);var M=i&&i.useNameLabel;function T(e){return M?t.getName(e):JM(t,e)}uc(p,h,{labelFetcher:g,labelDataIndex:e,defaultText:T,inheritColor:x,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=p.ensureState("emphasis");if(C.style=o,p.ensureState("select").style=s,p.ensureState("blur").style=a,d){var j=Math.max(Object(mt["isNumber"])(d)?d:1.1,3/this._sizeY);C.scaleX=this._sizeX*j,C.scaleY=this._sizeY*j}this.setSymbolScale(1),Bu(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=Ll(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&ec(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();ec(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return cb(t.getItemVisual(e,"symbolSize"))},e}(Pi);function nT(t,e){this.parent.drift(t,e)}var rT=eT;function iT(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function oT(t){return null==t||Object(mt["isObject"])(t)||(t={isIgnore:t}),t||{}}function aT(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:cc(e),cursorStyle:e.get("cursor")}}var sT=function(){function t(t){this.group=new Pi,this._SymbolCtor=t||rT}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=oT(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=aT(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add((function(r){var i=u(r);if(iT(t,i,r,e)){var a=new o(t,r,s,l);a.setPosition(i),t.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,h){var d=i.getItemGraphicEl(h),f=u(c);if(iT(t,f,c,e)){var p=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==p)n.remove(d),d=new o(t,c,s,l),d.setPosition(f);else{d.updateData(t,c,s,l);var v={x:f[0],y:f[1]};a?d.attr(v):Qu(d,v,r)}n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),r)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=aT(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=oT(n);for(var i=t.start;i0?n=r[0]:r[1]<0&&(n=r[1]),n}function hT(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}function dT(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function fT(t,e,n,r,i,o,a,s){for(var l=dT(t,e),u=[],c=[],h=[],d=[],f=[],p=[],g=[],v=uT(i,e,a),y=t.getLayout("points")||[],m=e.getLayout("points")||[],b=0;b=i||g<0)break;if(vT(y,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,m),h=y,d=m;else{var b=y-u,_=m-c;if(b*b+_*_<.5){g+=o;continue}if(a>0){var x=g+o,w=e[2*x],O=e[2*x+1];while(w===y&&O===m&&v=r||vT(w,O))f=y,p=m;else{T=w-u,C=O-c;var k=y-u,A=w-y,D=m-c,P=O-m,L=void 0,R=void 0;if("x"===s){L=Math.abs(k),R=Math.abs(A);var E=T>0?1:-1;f=y-E*L*a,p=m,j=y+E*R*a,I=m}else if("y"===s){L=Math.abs(D),R=Math.abs(P);var N=C>0?1:-1;f=y,p=m-N*L*a,j=y,I=m+N*R*a}else L=Math.sqrt(k*k+D*D),R=Math.sqrt(A*A+P*P),M=R/(R+L),f=y-T*a*(1-M),p=m-C*a*(1-M),j=y+T*a*M,I=m+C*a*M,j=pT(j,gT(w,y)),I=pT(I,gT(O,m)),j=gT(j,pT(w,y)),I=gT(I,pT(O,m)),T=j-y,C=I-m,f=y-T*L/R,p=m-C*L/R,f=pT(f,gT(u,y)),p=pT(p,gT(c,m)),f=gT(f,pT(u,y)),p=gT(p,pT(c,m)),T=y-f,C=m-p,j=y+T*R/L,I=m+C*R/L}t.bezierCurveTo(h,d,f,p,y,m),h=j,d=I}else t.lineTo(y,m)}u=y,c=m,g+=o}return v}var mT=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),bT=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return vt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new mT},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0;i--)if(!vT(n[2*i-2],n[2*i-1]))break;for(;r=0){var m=s?(d-r)*y+r:(h-n)*y+n;return s?[t,m]:[m,t]}n=h,r=d;break;case a.C:h=o[u++],d=o[u++],f=o[u++],p=o[u++],g=o[u++],v=o[u++];var b=s?dn(n,h,f,g,t,l):dn(r,d,p,v,t,l);if(b>0)for(var _=0;_=0){m=s?cn(r,d,p,v,x):cn(n,h,f,g,x);return s?[t,m]:[m,t]}}n=g,r=v;break}}},e}(Qs),_T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vt(e,t),e}(mT),xT=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return vt(e,t),e.prototype.getDefaultShape=function(){return new _T},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0;o--)if(!vT(n[2*o-2],n[2*o-1]))break;for(;ie){r?i.push(a(r,l,e)):n&&i.push(a(n,l,0),a(n,l,e));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}function PT(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count()&&"cartesian2d"===e.type){for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,"x"===i||"y"===i){o=r[a];break}}if(o){var l=e.getAxis(i),u=mt["map"](o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=DT(u,"x"===i?n.getWidth():n.getHeight()),f=d.length;if(!f&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var p=10,g=d[0].coord-p,v=d[f-1].coord+p,y=v-g;if(y<.001)return"transparent";mt["each"](d,(function(t){t.offset=(t.coord-g)/y})),d.push({offset:f?d[f-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:h[0]||"transparent"});var m=new ty(0,0,0,0,d,!0);return m[i]=g,m[i+"2"]=v,m}}}function LT(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!RT(o,e))){var a=e.mapDimension(o.dim),s={};return mt["each"](o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function RT(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;ar)return!1;return!0}function ET(t,e){return isNaN(t)||isNaN(e)}function NT(t){for(var e=t.length/2;e>0;e--)if(!ET(t[2*e-2],t[2*e-1]))break;return e-1}function BT(t,e){return[t[2*e],t[2*e+1]]}function zT(t,e,n){for(var r,i,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=e||r>=e&&i<=e){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(e-r)/(i-r)}}function FT(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var L=f.getState("emphasis").style;L.lineWidth=+f.style.lineWidth+1}Ll(f).seriesIndex=t.seriesIndex,Bu(f,A,D,P);var R=IT(t.get("smooth")),E=t.get("smoothMonotone");if(f.setShape({smooth:R,smoothMonotone:E,connectNulls:w}),p){var N=a.getCalculationInfo("stackedOnSeries"),B=0;p.useStyle(mt["defaults"](l.getAreaStyle(),{fill:C,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),N&&(B=IT(N.get("smooth"))),p.setShape({smooth:R,stackedOnSmooth:B,smoothMonotone:E,connectNulls:w}),Hu(p,t,"areaStyle"),Ll(p).seriesIndex=t.seriesIndex,Bu(p,A,D,P)}var z=function(t){r._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=i,this._stackedOnPoints=_,this._points=u,this._step=T,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,f),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,e){Ll(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=Vo(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel"),h=t.get("z");s=new rT(i,o),s.x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Qy.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=Vo(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Qy.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;cu(this._polyline,t),e&&cu(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new bT({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new xT({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(r=o.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===o.dim,i=!0);var s=t.hostModel,l=s.get("animationDuration");mt["isFunction"](l)&&(l=l(null));var u=s.get("animationDelay")||0,c=mt["isFunction"](u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],d=void 0,f=void 0,p=void 0;if(n)if(i){var g=n,v=e.pointToCoord(h);r?(d=g.startAngle,f=g.endAngle,p=-v[1]/180*Math.PI):(d=g.r0,f=g.r,p=v[0])}else{var y=n;r?(d=y.x,f=y.x+y.width,p=t.x):(d=y.y+y.height,f=y.y,p=t.y)}var m=f===d?0:(p-d)/(f-d);a&&(m=1-m);var b=mt["isFunction"](u)?u(o):l*m+c,_=s.getSymbolPath(),x=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:b}),_.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if(FT(t)){var i=t.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new Pl({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=NT(a);l>=0&&(uc(o,cc(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?tT(i,n):JM(i,t)},enableTextSetter:!0},HT(r,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),f=o.get("distance")||0,p=a.getBaseAxis(),g=p.isHorizontal(),v=p.inverse,y=e.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,b=(g?f:0)*(v?-1:1),_=(g?0:-f)*(v?-1:1),x=g?"x":"y",w=zT(u,m,x),O=w.range,S=O[1]-O[0],M=void 0;if(S>=1){if(S>1&&!h){var T=BT(u,O[0]);s.attr({x:T[0]+b,y:T[1]+_}),i&&(M=c.getRawValue(O[0]))}else{T=l.getPointOn(m,x);T&&s.attr({x:T[0]+b,y:T[1]+_});var C=c.getRawValue(O[0]),j=c.getRawValue(O[1]);i&&(M=Ko(n,d,C,j,w.t))}r.lastFrameIndex=O[0]}else{var I=1===t||r.lastFrameIndex>0?O[0]:0;T=BT(u,I);i&&(M=c.getRawValue(I)),s.attr({x:T[0]+b,y:T[1]+_})}i&&_c(s).setLabelText(M)}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=fT(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),h=c.current,d=c.stackedOnCurrent,f=c.next,p=c.stackedOnNext;if(i&&(h=AT(c.current,n,i,a),d=AT(c.stackedOnCurrent,n,i,a),f=AT(c.next,n,i,a),p=AT(c.stackedOnNext,n,i,a)),jT(h,f)>3e3||l&&jT(d,p)>3e3)return s.stopAnimation(),s.setShape({points:f}),void(l&&(l.stopAnimation(),l.setShape({points:f,stackedOnPoints:p})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:f}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),Qu(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),Qu(l,{shape:{stackedOnPoints:p}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=c.status,m=0;me&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(isFinite(d)&&d>1){"lttb"===i&&t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/d));var f=void 0;Object(mt["isString"])(i)?f=YT[i]:Object(mt["isFunction"])(i)&&(f=i),f&&t.setData(r.downSample(r.mapDimension(l.dim),1/d,f,XT))}}}}}function $T(t){t.registerChartView(WT),t.registerSeriesModel(QM),t.registerLayout(UT("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,qT("line"))}var ZT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return vt(e,t),e.prototype.getInitialData=function(t,e){return Zw(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e&&e.clampData){var n=e.dataToPoint(e.clampData(t)),r=this.getData(),i=r.getLayout("offset"),o=r.getLayout("size"),a=e.getBaseAxis().isHorizontal()?0:1;return n[a]+=i+o/2,n}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Ig);Ig.registerClass(ZT);var KT=ZT,QT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return vt(e,t),e.prototype.getInitialData=function(){return Zw(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Fc(KT.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(KT),JT=QT,tC=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),eC=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return vt(e,t),e.prototype.getDefaultShape=function(){return new tC},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,d=c?u-lMath.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}function oC(t,e,n){return e*Math.sin(t)*(n?-1:1)}function aC(t,e,n){return e*Math.cos(t)*(n?1:-1)}var sC=Math.max,lC=Math.min;function uC(t,e){var n=t.getArea&&t.getArea();if(MT(t,"cartesian2d")){var r=t.getBaseAxis();if("category"!==r.type||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}var cC=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return vt(e,t),e.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){Gy(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,r){var i,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=fC(t,l);h&&this._enableRealtimeSort(h,a,n);var d=t.get("clip",!0)||h,f=uC(l,a);o.removeClipPath();var p=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),y=v.get("borderRadius")||0,m=[],b=this._backgroundEls,_=r&&r.isInitSort,x=r&&"changeAxisOrder"===r.type;function w(t){var e=bC[l.type](a,t),n=kC(l,i,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",y),m[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),r=bC[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&mC[l.type](r)){var s=!1;d&&(s=hC[l.type](f,r));var v=dC[l.type](t,a,e,r,i,c,u.model,!1,p);h&&(v.forceLabelAnimation=!0),wC(v,a,e,n,r,t,i,"polar"===l.type),_?v.attr({shape:r}):h?pC(h,c,v,r,e,i,!1,!1):Ju(v,{shape:r},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}})).update((function(e,n){var r=a.getItemModel(e),O=bC[l.type](a,e,r);if(g){var S=void 0;0===b.length?S=w(n):(S=b[n],S.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&S.setShape("r",y),m[e]=S);var M=bC[l.type](a,e),T=IC(i,M,l);Qu(S,{shape:T},c,e)}var C=s.getItemGraphicEl(n);if(a.hasValue(e)&&mC[l.type](O)){var j=!1;if(d&&(j=hC[l.type](f,O),j&&o.remove(C)),C?ic(C):C=dC[l.type](t,a,e,O,i,c,u.model,!!C,p),h&&(C.forceLabelAnimation=!0),x){var I=C.getTextContent();if(I){var k=_c(I);null!=k.prevValue&&(k.prevValue=k.value)}}else wC(C,a,e,r,O,t,i,"polar"===l.type);_?C.attr({shape:O}):h?pC(h,c,C,O,e,i,!0,x):Qu(C,{shape:O},t,e,null),a.setItemGraphicEl(e,C),C.ignore=j,o.add(C)}else o.remove(C)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&rc(n,t,e)})).execute();var O=this._backgroundGroup||(this._backgroundGroup=new Pi);O.removeAll();for(var S=0;So)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){rc(e,t,Ll(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Qy),hC={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=sC(e.x,t.x),s=lC(e.x+e.width,i),l=sC(e.y,t.y),u=lC(e.y+e.height,o),c=si?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=lC(e.r,t.r),o=sC(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){r=e.r;e.r=e.r0,e.r0=r}return a}},dC={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new gl({shape:Object(mt["extend"])({},r),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,h=i?"height":"width";c[h]=0}return u},polar:function(t,e,n,r,i,o,a,s,l){var u=!i&&l?nC:Mv,c=new u({shape:r,z2:1});c.name="item";var h=xC(i);if(c.calculateTextPosition=rC(h,{isRoundCap:u===nC}),o){var d=c.shape,f=i?"r":"endAngle",p={};d[f]=i?0:r.startAngle,p[f]=r[f],(s?Qu:Ju)(c,{shape:p},o)}return c}};function fC(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===e.type)return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function pC(t,e,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?Qu:Ju)(n,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(a?Qu:Ju)(n,{shape:u},c,i)}function gC(t,e){for(var n=0;n0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function _C(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function xC(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function wC(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",r.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var u=r.getShallow("cursor");u&&t.attr("cursor",u);var c=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",h=cc(r);uc(t,h,{labelFetcher:o,labelDataIndex:n,defaultText:JM(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=t.getTextContent();if(s&&d){var f=r.get(["label","position"]);t.textConfig.inside="middle"===f||null,iC(t,"outside"===f?c:f,xC(a),r.get(["label","rotate"]))}xc(d,h,o.getRawValue(n),(function(t){return tT(e,t)}));var p=r.getModel(["emphasis"]);Bu(t,p.get("focus"),p.get("blurScope"),p.get("disabled")),Hu(t,r),_C(i)&&(t.style.fill="none",t.style.stroke="none",Object(mt["each"])(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function OC(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}var SC=function(){function t(){}return t}(),MC=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return vt(e,t),e.prototype.getDefaultShape=function(){return new SC},e.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?n:null}),30,!1);function jC(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=o.length/3;c=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function IC(t,e,n){if(MT(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}i=n.getArea();var o=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}function kC(t,e,n){var r="polar"===t.type?Mv:gl;return new r({shape:IC(e,n,t),silent:!0,z2:0})}var AC=cC;function DC(t){t.registerChartView(AC),t.registerSeriesModel(JT),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,mt["curry"](jO,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,IO("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,qT("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var PC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return vt(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(od),LC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return vt(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,i=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=mt["retrieve2"](t.get("textBaseline"),t.get("textVerticalAlign")),l=new Pl({style:hc(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new Pl({style:hc(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),f=t.get("sublink"),p=t.get("triggerEvent",!0);l.silent=!d&&!p,h.silent=!f&&!p,d&&l.on("click",(function(){Uh(d,"_"+t.get("target"))})),f&&h.on("click",(function(){Uh(f,"_"+t.get("subtarget"))})),Ll(l).eventData=Ll(h).eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(l),c&&r.add(h);var g=r.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var y=Kh(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),r.x=y.x,r.y=y.y,r.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),h.setStyle(m),g=r.getBoundingRect();var b=y.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var x=new gl({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});r.add(x)}},e.type="title",e}(Ag);function RC(t){t.registerComponentModel(PC),t.registerComponentView(LC)}function EC(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return NC(n,t,e),n.seriesInvolved&&zC(n,t),n}function NC(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];Object(mt["each"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=YC(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",r);if(Object(mt["each"])(n.getAxes(),Object(mt["curry"])(p,!1,null)),n.getTooltipAxes&&r&&c.get("show")){var h="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),f=n.getTooltipAxes(c.get(["axisPointer","axis"]));(h||d)&&Object(mt["each"])(f.baseAxes,Object(mt["curry"])(p,!d||"cross",h)),d&&Object(mt["each"])(f.otherAxes,Object(mt["curry"])(p,"cross",!1))}}function p(r,s,u){var h=u.model.getModel("axisPointer",i),d=h.get("show");if(d&&("auto"!==d||r||UC(h))){null==s&&(s=h.get("triggerTooltip")),h=r?BC(u,c,i,e,r,s):h;var f=h.get("snap"),p=YC(u.model),g=s||f||"category"===u.type,v=t.axesInfo[p]={key:p,axis:u,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:f,useHandle:UC(h),seriesModels:[],linkGroup:null};l[p]=v,t.seriesInvolved=t.seriesInvolved||g;var y=FC(o,u);if(null!=y){var m=a[y]||(a[y]={axesInfo:{}});m.axesInfo[p]=v,m.mapper=o[y].mapper,v.linkGroup=m}}}}))}function BC(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(mt["each"])(s,(function(t){l[t]=Object(mt["clone"])(a.get(t))})),l.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===i){var c=a.get(["label","show"]);if(u.show=null==c||c,!o){var h=l.lineStyle=a.get("crossStyle");h&&Object(mt["defaults"])(u,h.textStyle)}}return t.model.getModel("axisPointer",new Rc(l,n,r))}function zC(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==e.get(["axisPointer","show"],!0)&&Object(mt["each"])(t.coordSysAxesInfo[YC(n.model)],(function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function FC(t,e){for(var n=e.model,r=e.dim,i=0;i=0||t===e}function HC(t){var e=GC(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=UC(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),aa)return!0;if(o){var s=GC(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var o=ZC(t).pointerEl=new a[i.type](KC(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=ZC(t).labelEl=new Pl(KC(e.label));t.add(i),nj(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=ZC(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=ZC(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),nj(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=Ey(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){ge(t.event)},onmousedown:QC(this._onHandleDragMove,this,0,0),drift:QC(this._onHandleDragMove,this),ondragend:QC(this._onHandleDragEnd,this)}),r.add(i)),ij(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");mt["isArray"](s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,rm(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){tj(this._axisPointerModel,!e&&this._moveAnimation,this._handle,rj(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(rj(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(rj(r)),ZC(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),im(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function tj(t,e,n,r){ej(ZC(n).lastProp,r)||(ZC(n).lastProp=r,e?Qu(n,r,t):(n.stopAnimation(),n.attr(r)))}function ej(t,e){if(mt["isObject"](t)&&mt["isObject"](e)){var n=!0;return mt["each"](e,(function(e,r){n=n&&ej(t[r],e)})),!!n}return t===e}function nj(t,e){t[e.get(["label","show"])?"show":"hide"]()}function rj(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function ij(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}var oj=JC,aj=Math.PI,sj=function(){function t(t,e){this.group=new Pi,this.opt=e,this.axisModel=t,Object(mt["defaults"])(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Pi({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!lj[t]},t.prototype.add=function(t){lj[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var r,i,o=io(e-t);return oo(o)?(i=n>0?"top":"bottom",r="center"):oo(o-aj)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),lj={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if("auto"===i&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0];a&&(Vt(s,s,a),Vt(l,l,a));var u=Object(mt["extend"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Fv({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var h=e.get(["axisLine","symbol"]);if(null!=h){var d=e.get(["axisLine","symbolSize"]);Object(mt["isString"])(h)&&(h=[h,h]),(Object(mt["isString"])(d)||Object(mt["isNumber"])(d))&&(d=[d,d]);var f=hb(e.get(["axisLine","symbolOffset"])||0,d),p=d[0],g=d[1];Object(mt["each"])([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,r){if("none"!==h[r]&&null!=h[r]){var i=ub(h[r],-p/2,-g/2,p,g,u.stroke,!0),o=e.r+e.offset;i.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,r){var i=gj(n,r,e,t),o=yj(n,r,e,t);if(cj(e,o,i),vj(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=LM(Object(mt["map"])(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));BM(a)}},axisName:function(t,e,n,r){var i=Object(mt["retrieve"])(t.axisName,e.get("name"));if(i){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),d=h[0]>h[1]?-1:1,f=["start"===s?h[0]-d*c:"end"===s?h[1]+d*c:(h[0]+h[1])/2,fj(s)?t.labelOffset+l*c:0],p=e.get("nameRotate");null!=p&&(p=p*aj/180),fj(s)?o=sj.innerTextLayout(t.rotation,null!=p?p:t.rotation,l):(o=uj(t.rotation,s,p||0,h),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,m=Object(mt["retrieve"])(t.nameTruncateMaxWidth,v.maxWidth,a),b=new Pl({x:f[0],y:f[1],rotation:o.rotation,silent:sj.isLabelSilent(e),style:hc(u,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Vy({el:b,componentModel:e,itemName:i}),b.__fullText=i,b.anid="name",e.get("triggerEvent")){var _=sj.makeAxisEventDataBase(e);_.targetType="axisName",_.name=i,Ll(b).eventData=_}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function uj(t,e,n,r){var i,o,a=io(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;return oo(a-aj/2)?(o=l?"bottom":"top",i="center"):oo(a-1.5*aj)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*aj&&a>aj/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function cj(t,e,n){if(!yS(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],d=n[n.length-2];!1===r?(hj(o),hj(u)):dj(o,a)&&(r?(hj(a),hj(c)):(hj(o),hj(u))),!1===i?(hj(s),hj(h)):dj(l,s)&&(i?(hj(l),hj(d)):(hj(s),hj(h)))}}function hj(t){t&&(t.ignore=!0)}function dj(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=kr([]);return Lr(i,i,-t.rotation),n.applyTransform(Dr([],i,t.getLocalTransform())),r.applyTransform(Dr([],i,e.getLocalTransform())),n.intersect(r)}}function fj(t){return"middle"===t||"center"===t}function pj(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){Uj("axisPointer",e)},e.prototype.dispose=function(t,e){Uj("axisPointer",e)},e.type="axisPointer",e}(Ag),Xj=Yj;function qj(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=Vo(o,t);if(null==a||a<0||mt["isArray"](a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,d=u.dim,f="x"===h||"radius"===h?1:0,p=o.mapDimension(d),g=[];g[f]=o.get(p,a),g[1-f]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(o.getValues(mt["map"](l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:s}}var $j=Ho();function Zj(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||Object(mt["bind"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){aI(i)&&(i=qj({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=aI(i),u=o.axesInfo,c=s.axesInfo,h="leave"===r||aI(i),d={},f={},p={list:[],map:{}},g={showPointer:Object(mt["curry"])(Jj,f),showTooltip:Object(mt["curry"])(tI,p)};Object(mt["each"])(s.coordSysMap,(function(t,e){var n=l||t.containPoint(i);Object(mt["each"])(s.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=iI(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&Kj(t,a,g,!1,d)}}))}));var v={};return Object(mt["each"])(c,(function(t,e){var n=t.linkGroup;n&&!f[e]&&Object(mt["each"])(n.axesInfo,(function(e,r){var i=f[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,oI(e),oI(t)))),v[t.key]=o}}))})),Object(mt["each"])(v,(function(t,e){Kj(c[e],t,g,!0,d)})),eI(f,c,d),nI(p,i,t,a),rI(c,a,n),d}}function Kj(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=Qj(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&Object(mt["extend"])(i,s[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function Qj(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return Object(mt["each"])(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!c.length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var f=t-u,p=Math.abs(f);p<=a&&((p=0&&s<0)&&(a=p,s=f,i=u,o.length=0),Object(mt["each"])(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}function Jj(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function tI(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=YC(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function eI(t,e,n){var r=n.axesInfo=[];Object(mt["each"])(e,(function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}function nI(t,e,n,r){if(!aI(e)&&t.list.length){var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}else r({type:"hideTip"})}function rI(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=$j(r)[i]||{},a=$j(r)[i]={};Object(mt["each"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&Object(mt["each"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];Object(mt["each"])(o,(function(t,e){!a[e]&&l.push(t)})),Object(mt["each"])(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function iI(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function oI(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function aI(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function sI(t){$C.registerAxisPointerClass("CartesianAxisPointer",Lj),t.registerComponentModel(Ej),t.registerComponentView(Xj),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(mt["isArray"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=EC(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Zj)}var lI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return vt(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(od),uI=lI;function cI(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function hI(t){if(yt["a"].domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,h=s+i,d=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),f=Math.round(100*((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-h)/2))/100;l+=";"+a+":-"+f+"px";var p=e+" solid "+i+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;",l+";"+u+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function xI(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=yt["a"].transformSupported?","+yI+r:",left"+r+",top"+r),vI+":"+i}function wI(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!yt["a"].transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=yt["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+yI+":"+a+";":[["top",0],["left",0],[dI,a]]}function OI(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),Object(mt["each"])(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}function SI(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=fg(t,"html"),d=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+d),e&&i&&r.push(xI(i,n)),o&&r.push("background-color:"+o),Object(mt["each"])(["width","color","radius"],(function(e){var n="border-"+e,i=Dh(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(OI(c)),null!=h&&r.push("padding:"+Ph(h).join("px ")+"px"),r.join(";")+";"}function MI(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&te(t,a,document.body,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var TI=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,yt["a"].wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;MI(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(r):t.appendChild(r),this._container=t;var a=this;r.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},r.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler,n=i.painter.getViewportRoot();he(n,t,!0),e.dispatch("mousemove",t)}},r.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=gI(e,"position"),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=mI+SI(t,!this._firstShow,this._longHide)+wI(i[0],i[1],!0)+"border-color:"+Wh(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null!=t){var a="";if(Object(mt["isString"])(i)&&"item"===n.get("trigger")&&!cI(n)&&(a=_I(n,r,i)),Object(mt["isString"])(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(mt["isArray"])(t)||(t=[t]);for(var s=0;s=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,r=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!yt["a"].node&&n.getDom()){var i=EI(r,n);this._ticket="";var o=r.dataByCoordSys,a=VI(r,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=PI;l.x=r.x,l.y=r.y,l.update(),Ll(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var u=qj(r,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(EI(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s){var l=s.getData(),u=RI([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,r=this._tooltipModel;if(r){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var o,a;this._lastDataByCoordSys=null,$m(n,(function(t){return null!=Ll(t).dataIndex?(o=t,!0):null!=Ll(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(mt["bind"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=RI([e.tooltipOption],r),a=this._renderMode,s=[],l=Jp("section",{blocks:[],noHeader:!0}),u=[],c=new pg;Object(mt["each"])(t,(function(t){Object(mt["each"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=wj(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=Jp("section",{header:o,noHeader:!Object(mt["trim"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Object(mt["each"])(t.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=d.getDataParams(f);if(!(p.dataIndex<0)){p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=fS(e.axis,{value:i}),p.axisValueLabel=o,p.marker=c.makeTooltipMarker("item",Wh(p.color),a);var g=up(d.formatTooltip(f,!0,null)),v=g.frag;if(v){var y=RI([d],r).get("valueFormatter");h.blocks.push(y?Object(mt["extend"])({valueFormatter:y},v):v)}g.text&&u.push(g.text),s.push(p)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,d=o.get("order"),f=og(l,c,a,d,n.get("useUTC"),o.get("textStyle"));f&&u.unshift(f);var p="richText"===a?"\n\n":"
",g=u.join(p);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=Ll(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),h=this._renderMode,d=t.positionDefault,f=RI([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=f.get("trigger");if(null==p||"item"===p){var g=s.getDataParams(l,u),v=new pg;g.marker=v.makeTooltipMarker("item",Wh(g.color),h);var y=up(s.formatTooltip(l,!1,u)),m=f.get("order"),b=f.get("valueFormatter"),_=y.frag,x=_?og(b?Object(mt["extend"])({valueFormatter:b},_):_,v,h,m,r.get("useUTC"),f.get("textStyle")):y.text,w="item_"+s.name+"_"+l;this._showOrMove(f,(function(){this._showTooltipContent(f,x,g,w,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r=Ll(e),i=r.tooltipConfig,o=i.option||{};if(Object(mt["isString"])(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,c=RI(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),d=Math.random()+"",f=new pg;this._showOrMove(c,(function(){var n=Object(mt["clone"])(c.get("formatterParams")||{});this._showTooltipContent(c,h,n,d,t.offsetX,t.offsetY,t.position,e,f)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,d=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")),f=d.color;if(c)if(Object(mt["isString"])(c)){var p=t.ecModel.get("useUTC"),g=Object(mt["isArray"])(n)?n[0]:n,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,v&&(h=fh(g.axisValue,h,p)),h=Fh(h,n,!0)}else if(Object(mt["isFunction"])(c)){var y=Object(mt["bind"])((function(e,r){e===this._ticket&&(u.setContent(r,l,t,f,a),this._updatePosition(t,a,i,o,u,n,s))}),this);this._ticket=r,h=c(n,r,y)}else h=c;u.setContent(h,l,t,f,a),u.show(t,f),this._updatePosition(t,a,i,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||Object(mt["isArray"])(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(mt["isArray"])(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),Object(mt["isFunction"])(e)&&(e=e([n,r],o,i.el,d,{viewSize:[s,l],contentSize:u.slice()})),Object(mt["isArray"])(e))n=$i(e[0],s),r=$i(e[1],l);else if(Object(mt["isObject"])(e)){var f=e;f.width=u[0],f.height=u[1];var p=Kh(f,{width:s,height:l});n=p.x,r=p.y,c=null,h=null}else if(Object(mt["isString"])(e)&&a){var g=zI(e,d,u,t.get("borderWidth"));n=g[0],r=g[1]}else{g=NI(n,r,i,s,l,c?null:20,h?null:20);n=g[0],r=g[1]}if(c&&(n-=FI(c)?u[0]/2:"right"===c?u[0]:0),h&&(r-=FI(h)?u[1]/2:"bottom"===h?u[1]:0),cI(t)){g=BI(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&Object(mt["each"])(n,(function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];i=i&&a.length===l.length,i&&Object(mt["each"])(a,(function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,i&&Object(mt["each"])(a,(function(t,e){var n=s[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&Object(mt["each"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!yt["a"].node&&e.getDom()&&(im(this,"_updatePosition"),this._tooltipContent.dispose(),Uj("itemTooltip",e))},e.type="tooltip",e}(Ag);function RI(t,e,n){var r,i=e.ecModel;n?(r=new Rc(n,i,i),r=new Rc(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Rc&&(a=a.get("tooltip",!0)),Object(mt["isString"])(a)&&(a={formatter:a}),a&&(r=new Rc(a,r,i)))}return r}function EI(t,e){return t.dispatchAction||Object(mt["bind"])(e.dispatchAction,e)}function NI(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>r?t-=l+o:t+=o),null!=a&&(e+u+a>i?e-=u+a:e+=a),[t,e]}function BI(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function zI(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function FI(t){return"center"===t||"middle"===t}function VI(t,e,n){var r=Uo(t).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o=Xo(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=Ll(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:i,componentIndex:a.componentIndex,el:s}:void 0}}}var HI=LI;function GI(t){Kx(sI),t.registerComponentModel(uI),t.registerComponentView(HI),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},mt["noop"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},mt["noop"])}var WI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vt(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(od),UI=WI,YI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vt(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Yo).models[0]},e.type="cartesian2dAxis",e}(od);mt["mixin"](YI,bS);var XI={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},qI=mt["merge"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},XI),$I=mt["merge"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},XI),ZI=mt["merge"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},$I),KI=mt["defaults"]({logBase:10},$I),QI={category:qI,value:$I,time:ZI,log:KI},JI={value:1,category:1,time:1,log:1};function tk(t,e,n,r){Object(mt["each"])(JI,(function(i,o){var a=Object(mt["merge"])(Object(mt["merge"])({},QI[o],!0),r,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return vt(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Qh(this),r=n?td(t):{},i=e.getTheme();Object(mt["merge"])(t,i.get(o+"Axis")),Object(mt["merge"])(t,this.getDefaultOption()),t.type=ek(t),n&&Jh(t,r,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=nO.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",ek)}function ek(t){return t.type||(t.data?"category":"value")}var nk=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return mt["map"](this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),mt["filter"](this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),rk=nk,ik=["x","y"];function ok(t){return"interval"===t.type||"time"===t.type}var ak=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=ik,e}return vt(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(ok(t)&&ok(e)){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,h=i[1]-r[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=Er([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),r=this.dataToPoint(e),i=this.getArea(),o=new ai(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return Vt(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Vt(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),r=Math.min(e[0],e[1]),i=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-r;return new ai(n,r,i,o)},e}(rk),sk=ak,lk=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return vt(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(aM),uk=lk,ck=Math.log;function hk(t,e,n){var r=vO.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=sS(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var d=ck(t.base);u=[ck(u[0])/d,ck(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var f=r.getExtent.call(t);c&&(u[0]=f[0]),h&&(u[1]=f[1]);var p=r.getInterval.call(t),g=u[0],v=u[1];if(c&&h)p=(v-g)/a;else if(c){v=u[0]+p*a;while(vu[0]&&isFinite(g)&&isFinite(u[0]))p=oO(p),g=u[1]-p*a}else{var y=t.getTicks().length-1;y>a&&(p=oO(p));var m=p*a;v=Math.ceil(u[1]/p)*p,g=Zi(v-m),g<0&&u[0]>=0?(g=0,v=Zi(m)):v>0&&u[1]<=0&&(v=0,g=-Zi(m))}var b=(i[0].value-o[0].value)/s,_=(i[a].value-o[a].value)/s;r.setExtent.call(t,g+p*b,v+p*_),r.setInterval.call(t,p),(b||_)&&r.setNiceExtent.call(t,g+p,v-p)}var dk=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ik,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function r(t){var e,n=Object(mt["keys"])(t),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=+n[o],s=t[a],l=s.model,u=s.scale;rO(u)&&l.get("alignTicks")&&null==l.get("interval")?i.push(s):(uS(u,l),rO(u)&&(e=s))}i.length&&(e||(e=i.pop(),uS(e.scale,e.model)),Object(mt["each"])(i,(function(t){hk(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),r(n.x),r(n.y);var i={};Object(mt["each"])(n.x,(function(t){pk(n,"y",t,i)})),Object(mt["each"])(n.y,(function(t){pk(n,"x",t,i)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=Kh(r,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){Object(mt["each"])(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),vk(t,e?o.x:o.y)}))}s(),i&&(Object(mt["each"])(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=pS(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+r,"top"===t.position?o.y+=e.height+r:"left"===t.position&&(o.x+=e.width+r)}}})),s()),Object(mt["each"])(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Object(mt["isObject"])(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,i=this._coordsList;r":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Rk=function(){function t(t){var e=this._condVal=Object(mt["isString"])(t)?new RegExp(t):Object(mt["isRegExp"])(t)?t:null;if(null==e){var n="";0,Nd(n)}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(mt["isString"])(e)?this._condVal.test(t):!!Object(mt["isNumber"])(e)&&this._condVal.test(t+"")},t}(),Ek=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),Nk=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(od),Jk=Qk;function tA(t,e){var n=Ph(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new gl({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),t}var eA=mt["curry"],nA=mt["each"],rA=Pi,iA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return vt(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new rA),this.group.add(this._selectorGroup=new rA),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),o=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=Kh(l,u,c),d=this.layoutInner(t,i,h,r,a,s),f=Kh(mt["defaults"]({width:d.width,height:d.height},l),u,c);this.group.x=f.x-d.x,this.group.y=f.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=tA(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=mt["createHashMap"](),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),nA(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new rA;return h.newline=!0,void s.add(h)}var d=n.getSeriesByName(a)[0];if(!l.get(a)){if(d){var f=d.getData(),p=f.getVisual("legendLineStyle")||{},g=f.getVisual("legendIcon"),v=f.getVisual("style"),y=this._createItem(d,a,o,i,e,t,p,v,g,u,r);y.on("click",eA(sA,a,null,r,c)).on("mouseover",eA(uA,d.name,null,r,c)).on("mouseout",eA(cA,d.name,null,r,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var h=s.indexOfName(a),d=s.getItemVisual(h,"style"),f=s.getItemVisual(h,"legendIcon"),p=Object(jn["parse"])(d.fill);p&&0===p[3]&&(p[3]=.2,d=mt["extend"](mt["extend"]({},d),{fill:Object(jn["stringify"])(p,"rgba")}));var g=this._createItem(n,a,o,i,e,t,{},d,f,u,r);g.on("click",eA(sA,null,a,r,c)).on("mouseover",eA(uA,null,a,r,c)).on("mouseout",eA(cA,null,a,r,c)),l.set(a,!0)}}),this);0}}),this),i&&this._createSelector(i,e,r,o,a)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();nA(t,(function(t){var r=t.type,i=new Pl({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);uc(i,{normal:a,emphasis:s},{defaultText:t.title}),Eu(i)}))},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u,c){var h=t.visualDrawType,d=i.get("itemWidth"),f=i.get("itemHeight"),p=i.isSelected(e),g=r.get("symbolRotate"),v=r.get("symbolKeepAspect"),y=r.get("icon");l=y||l||"roundRect";var m=oA(l,r,a,s,h,p,c),b=new rA,_=r.getModel("textStyle");if(!mt["isFunction"](t.getLegendIcon)||y&&"inherit"!==y){var x="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;b.add(aA({itemWidth:d,itemHeight:f,icon:l,iconRotate:x,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}))}else b.add(t.getLegendIcon({itemWidth:d,itemHeight:f,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}));var w="left"===o?d+5:-5,O=o,S=i.get("formatter"),M=e;mt["isString"](S)&&S?M=S.replace("{name}",null!=e?e:""):mt["isFunction"](S)&&(M=S(e));var T=r.get("inactiveColor");b.add(new Pl({style:hc(_,{text:M,x:w,y:f/2,fill:p?_.getTextColor():T,align:O,verticalAlign:"middle"})}));var C=new gl({shape:b.getBoundingRect(),invisible:!0}),j=r.getModel("tooltip");return j.get("show")&&Vy({el:C,componentModel:i,itemName:e,itemTooltipOption:j.option}),b.add(C),b.eachChild((function(t){t.silent=!0})),C.silent=!u,this.getContentGroup().add(b),Eu(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Zh(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){Zh("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),f=t.getOrient().index,p=0===f?"width":"height",g=0===f?"height":"width",v=0===f?"y":"x";"end"===o?h[f]+=l[p]+d:u[f]+=c[p]+d,h[1-f]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[p]=l[p]+d+c[p],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-f]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Ag);function oA(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),nA(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?Qb(h,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]),"inherit"===u.stroke&&(u.stroke=r[c]),"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity),s(u,r);var d=e.getModel("lineStyle"),f=d.getLineStyle();if(s(f,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===f.stroke&&(f.stroke=r.fill),!o){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===p?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),f.stroke=d.get("inactiveColor"),f.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}function aA(t){var e=t.icon||"roundRect",n=ub(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function sA(t,e,n,r){cA(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),uA(t,e,n,r)}function lA(t){var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;while(rn[i],p=[-h.x,-h.y];e||(p[r]=l[s]);var g=[0,0],v=[-d.x,-d.y],y=mt["retrieve2"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(f){var m=t.get("pageButtonPosition",!0);"end"===m?v[r]+=n[i]-d[i]:g[r]+=d[i]+y}v[1-r]+=h[o]/2-d[o]/2,l.setPosition(p),u.setPosition(g),c.setPosition(v);var b={x:0,y:0};if(b[i]=f?n[i]:h[i],b[o]=Math.max(h[o],d[o]),b[a]=Math.min(0,d[a]+v[1-r]),u.__rectSize=n[i],f){var _={x:0,y:0};_[i]=Math.max(n[i]-d[i]-y,0),_[o]=b[o],u.setClipPath(new gl({shape:_})),u.__rectSize=_[i]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(t);return null!=x.pageIndex&&Qu(l,{x:x.contentPosition[0],y:x.contentPosition[1]},f?t:null),this._updatePageInfoView(t,x),b},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;mt["each"](["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",o=null!=e[i],a=n.childOfName(r);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",mt["isString"](i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=_A[i],a=xA[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var f=m(u);d.contentPosition[i]=-f.s;for(var p=s+1,g=f,v=f,y=null;p<=c;++p)y=m(l[p]),(!y&&v.e>g.s+r||y&&!b(y,g.s))&&(g=v.i>g.i?v:y,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),v=y;for(p=s-1,g=f,v=f,y=null;p>=-1;--p)y=m(l[p]),y&&b(v,y.s)||!(g.i=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,r=this.getContentGroup();return r.eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)})),null!=e?e:n},e.type="legend.scroll",e}(hA),OA=wA;function SA(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function MA(t){Kx(gA),t.registerComponentModel(mA),t.registerComponentView(OA),SA(t)}function TA(t){Kx(gA),Kx(MA)}var CA=Ts.CMD;function jA(t,e){return Math.abs(t-e)<1e-5}function IA(t){var e,n,r,i,o,a=t.data,s=t.len(),l=[],u=0,c=0,h=0,d=0;function f(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function p(t,n,r,i){jA(t,r)&&jA(n,i)||e.push(t,n,r,i,r,i)}function g(t,n,r,i,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=nS:C2&&l.push(e),l}function kA(t,e,n,r,i,o,a,s,l,u){if(jA(t,n)&&jA(e,r)&&jA(i,a)&&jA(o,s))l.push(a,s);else{var c=2/u,h=c*c,d=a-t,f=s-e,p=Math.sqrt(d*d+f*f);d/=p,f/=p;var g=n-t,v=r-e,y=i-a,m=o-s,b=g*g+v*v,_=y*y+m*m;if(b=0&&S=0)l.push(a,s);else{var M=[],T=[];pn(t,n,i,a,.5,M),pn(e,r,o,s,.5,T),kA(M[0],T[0],M[1],T[1],M[2],T[2],M[3],T[3],l,u),kA(M[4],T[4],M[5],T[5],M[6],T[6],M[7],T[7],l,u)}}}}function AA(t,e){var n=IA(t),r=[];e=e||1;for(var i=0;i0)for(u=0;uMath.abs(u),h=DA([l,u],c?0:1,e),d=(c?s:u)/h.length,f=0;fi,a=DA([r,i],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,d=0;d1?null:new Zr(g*l+t,g*u+e)}function NA(t,e,n){var r=new Zr;Zr.sub(r,n,e),r.normalize();var i=new Zr;Zr.sub(i,t,e);var o=i.dot(r);return o}function BA(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function zA(t,e,n){for(var r=t.length,i=[],o=0;oa?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),zA(e,u,c)}function VA(t,e,n,r){if(1===n)r.push(e);else{var i=Math.floor(n/2),o=t(e);VA(t,o[0],i,r),VA(t,o[1],n-i,r)}return r}function HA(t,e){for(var n=[],r=0;r0)for(var x=r/n,w=-r/2;w<=r/2;w+=x){var O=Math.sin(w),S=Math.cos(w),M=0;for(b=0;b0;u/=2){var c=0,h=0;(t&u)>0&&(c=1),(e&u)>0&&(h=1),l+=u*u*(3*c^h),0===h&&(1===c&&(t=u-1-t,e=u-1-e),s=t,t=e,e=s)}return l}function sD(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,o=Object(mt["map"])(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]})),a=Object(mt["map"])(o,(function(o,a){return{cp:o,z:aD(o[0],o[1],e,n,r,i),path:t[a]}}));return a.sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function lD(t){return UA(t.path,t.count)}function uD(){return{fromIndividuals:[],toIndividuals:[],count:0}}function cD(t,e,n){var r=[];function i(t){for(var e=0;e=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[i].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var pD={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r0){var s,l,u=r.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);dD(t)&&(s=t,l=e),dD(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,d=s?fD(l,s):fD(h?e:t,[h?t:e]),f=0,p=0;pyD))for(var r=n.getIndices(),i=bD(n),o=0;o0&&i.group.traverse((function(t){t instanceof Qs&&!t.animators.length&&t.animateFrom({style:{opacity:0}},o)}))}))}function CD(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function jD(t){return Object(mt["isArray"])(t)?t.sort().join(","):t}function ID(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function kD(t,e){var n=Object(mt["createHashMap"])(),r=Object(mt["createHashMap"])(),i=Object(mt["createHashMap"])();return Object(mt["each"])(t.oldSeries,(function(e,n){var o=t.oldData[n],a=CD(e),s=jD(a);r.set(s,o),Object(mt["isArray"])(a)&&Object(mt["each"])(a,(function(t){i.set(t,{data:o,key:s})}))})),Object(mt["each"])(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.getData(),o=CD(t),a=jD(o),s=r.get(a);if(s)n.set(a,{oldSeries:[{divide:ID(s),data:s}],newSeries:[{divide:ID(e),data:e}]});else if(Object(mt["isArray"])(o)){0;var l=[];Object(mt["each"])(o,(function(t){var e=r.get(t);e&&l.push({divide:ID(e),data:e})})),l.length&&n.set(a,{oldSeries:l,newSeries:[{data:e,divide:ID(e)}]})}else{var u=i.get(o);if(u){var c=n.get(u.key);c||(c={oldSeries:[{data:u.data,divide:ID(u.data)}],newSeries:[]},n.set(u.key,c)),c.newSeries.push({data:e,divide:ID(e)})}}}})),n}function AD(t,e){for(var n=0;n=0&&i.push({data:e.oldData[n],divide:ID(e.oldData[n]),dim:t.dimension})})),Object(mt["each"])(wo(t.to),(function(t){var e=AD(n.updatedSeries,t);if(e>=0){var r=n.updatedSeries[e].getData();o.push({data:r,divide:ID(r),dim:t.dimension})}})),i.length>0&&o.length>0&&TD(i,o,r)}function PD(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(mt["each"])(wo(n.seriesTransition),(function(t){Object(mt["each"])(wo(t.to),(function(t){for(var e=n.updatedSeries,r=0;r=a)}}for(var c=this.__startIndex;c15)break}}n.prevElClipPaths&&h.restore()};if(f)if(0===f.length)s=l.__endIndex;else for(var _=d.dpr,x=0;x0&&t>r[0]){for(s=0;st)break;a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r0?zD:0),this._needsManuallyCompositing),u.__builtin__||mt["logError"]("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,e(o),a=u),r.__dirty&Fe&&!r.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,mt["each"](this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?mt["merge"](n[t],e,!0):n[t]=e;for(var r=0;r{}}},setup(t){let e=null;const{options:n}=Object(p["toRefs"])(t),r=Object(p["reactive"])({echart:Object(p["ref"])()}),i=()=>{e=YD.init(r.echart),e.setOption({...n.value})},o=()=>{e.setOption({...n.value}),e.resize()},a=()=>{e&&e.resize()};return Object(p["watch"])(()=>n.value,t=>{t&&o()},{deep:!0}),Object(p["onBeforeUnmount"])(()=>{window.removeEventListener("resize",a)}),Object(p["onMounted"])(()=>{window.addEventListener("resize",a),i()}),{...Object(p["toRefs"])(r)}}});n("3ebb");const qD=Z()(XD,[["render",pt]]);var $D=qD,ZD=n("14b4");const KD=(t={},e=((t,e)=>Number(t)-Number(e)))=>{const n=Object.keys(t);if(!n.length)return{};const r={};return n.sort(e).forEach(e=>r[e]=t[e]),r},QD=(t,e)=>{if(!e)return{};e=KD(e);const n=Object.keys(e),r={tooltip:{trigger:"axis"},yAxis:{type:"value"},xAxis:{type:"category",data:n.map(t=>Object(D["b"])(t)),axisTick:{alignWithLabel:!0,interval:0}},grid:{top:40,bottom:50}};t&&(r.title={left:"center",text:t});const i={};return Object.values(e).forEach(t=>{const e=Object.keys(t);e.forEach(e=>{const n=ZD["a"].global.t(e);i[n]||(i[n]=[]),i[n].push(t[e])})}),r.legend={top:"bottom",data:Object.keys(i),lineStyle:{opacity:0}},r.series=Object.keys(i).map(t=>({name:t,type:"line",symbol:"circle",data:i[t]})),r};var JD=n("434d"),tP=n("35c8"),eP=n("f38b");const nP={class:"branch-selector"},rP={class:"branch-btn-label"},iP={class:"branch-selector-search"},oP=["onClick"],aP={class:"item-icon"},sP={class:"item-label"},lP={key:1,class:"empty-tips"},uP=["onClick"],cP={class:"item-icon"},hP={class:"item-label"},dP={key:1,class:"empty-tips"},fP={class:"g-mr-4"},pP={class:"g-mr-4"},gP={class:"g-ml-24"};var vP=Object(p["defineComponent"])({__name:"Selector",props:{catalog:String,db:String,table:String,disabled:Boolean},emits:["refChange"],setup(t,{emit:e}){const n=t,{t:r}=Object(I["b"])(),i=Object(p["computed"])(()=>n.disabled),o=Object(p["ref"])({value:"",type:eP["a"].BRANCH,label:""}),a=Object(p["ref"])(""),s=Object(p["ref"])(""),l=Object(p["ref"])(eP["a"].BRANCH),u=Object(p["ref"])([]),c=Object(p["ref"])([]),h=Object(p["computed"])(()=>u.value.filter(t=>!a.value||t.label.includes(a.value))),d=Object(p["computed"])(()=>c.value.filter(t=>!s.value||t.label.includes(s.value))),f=Object(p["ref"])(eP["c"].ALL),g=Object(p["reactive"])([eP["c"].ALL,eP["c"].OPTIMIZING,eP["c"].NONOPTIMIZING]),v=t=>{t.stopPropagation()},y=t=>t.parentNode||document.body,m=t=>{o.value=t,f.value=eP["c"].ALL,e("refChange",{ref:t.value,operation:eP["c"].ALL})},b=t=>{e("refChange",{ref:o.value.value,operation:t})},_=async()=>{const t=await Object(A["b"])(n);u.value=(t.list||[]).map(t=>({value:t.name,label:t.name,type:eP["a"].BRANCH})),u.value.length&&m(u.value[0])},x=async()=>{const t=await Object(A["n"])(n);c.value=(t.list||[]).map(t=>({value:t.name,label:t.name,type:eP["a"].TAG}))},w=async()=>{await Promise.all([_(),x()])};return Object(p["onMounted"])(()=>{l.value=eP["a"].BRANCH,w()}),(t,e)=>{const n=Object(p["resolveComponent"])("svg-icon"),r=Object(p["resolveComponent"])("a-button"),_=Object(p["resolveComponent"])("a-input"),x=Object(p["resolveComponent"])("a-tab-pane"),w=Object(p["resolveComponent"])("a-tabs"),O=Object(p["resolveComponent"])("a-dropdown"),S=Object(p["resolveComponent"])("a-select-option"),M=Object(p["resolveComponent"])("a-select");return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",nP,[Object(p["createVNode"])(O,{trigger:["click"],placement:"bottomLeft",getPopupContainer:y},{overlay:Object(p["withCtx"])(()=>[Object(p["createElementVNode"])("div",null,[Object(p["createElementVNode"])("div",iP,[Object(p["withDirectives"])(Object(p["createVNode"])(_,{value:a.value,"onUpdate:value":e[0]||(e[0]=t=>a.value=t),placeholder:t.$t("Filter branches/tags"),onClick:v},null,8,["value","placeholder"]),[[p["vShow"],l.value===Object(p["unref"])(eP["a"]).BRANCH]]),Object(p["withDirectives"])(Object(p["createVNode"])(_,{value:s.value,"onUpdate:value":e[1]||(e[1]=t=>s.value=t),placeholder:t.$t("Filter branches/tags"),onClick:v},null,8,["value","placeholder"]),[[p["vShow"],l.value===Object(p["unref"])(eP["a"]).TAG]])]),Object(p["createVNode"])(w,{activeKey:l.value,"onUpdate:activeKey":e[2]||(e[2]=t=>l.value=t),type:"card"},{default:Object(p["withCtx"])(()=>[(Object(p["openBlock"])(),Object(p["createBlock"])(x,{key:Object(p["unref"])(eP["a"]).BRANCH,tab:"Branches"},{default:Object(p["withCtx"])(()=>[Object(p["unref"])(h).length?(Object(p["openBlock"])(!0),Object(p["createElementBlock"])(p["Fragment"],{key:0},Object(p["renderList"])(Object(p["unref"])(h),(t,e)=>(Object(p["openBlock"])(),Object(p["createElementBlock"])("div",{class:"branch-selector-item",key:e,onClick:e=>m(t)},[Object(p["createElementVNode"])("div",aP,[t.value===o.value.value?(Object(p["openBlock"])(),Object(p["createBlock"])(Object(p["unref"])(JD["a"]),{key:0})):Object(p["createCommentVNode"])("",!0)]),Object(p["createElementVNode"])("span",sP,Object(p["toDisplayString"])(t.label),1)],8,oP))),128)):(Object(p["openBlock"])(),Object(p["createElementBlock"])("span",lP,Object(p["toDisplayString"])(t.$t("nothingToShow")),1))]),_:1})),(Object(p["openBlock"])(),Object(p["createBlock"])(x,{key:Object(p["unref"])(eP["a"]).TAG,tab:"Tags"},{default:Object(p["withCtx"])(()=>[Object(p["unref"])(d).length?(Object(p["openBlock"])(!0),Object(p["createElementBlock"])(p["Fragment"],{key:0},Object(p["renderList"])(Object(p["unref"])(d),(t,e)=>(Object(p["openBlock"])(),Object(p["createElementBlock"])("div",{class:"branch-selector-item",key:e,onClick:e=>m(t)},[Object(p["createElementVNode"])("div",cP,[t.value===o.value.value?(Object(p["openBlock"])(),Object(p["createBlock"])(Object(p["unref"])(JD["a"]),{key:0})):Object(p["createCommentVNode"])("",!0)]),Object(p["createElementVNode"])("span",hP,Object(p["toDisplayString"])(t.label),1)],8,uP))),128)):(Object(p["openBlock"])(),Object(p["createElementBlock"])("span",dP,Object(p["toDisplayString"])(t.$t("nothingToShow")),1))]),_:1}))]),_:1},8,["activeKey"])])]),default:Object(p["withCtx"])(()=>[Object(p["createVNode"])(r,{class:"branch-btn",disabled:!o.value.value||Object(p["unref"])(i)},{default:Object(p["withCtx"])(()=>[Object(p["createVNode"])(n,{className:"branch-selector-icon","icon-class":o.value.type,class:"g-mr-8"},null,8,["icon-class"]),Object(p["createElementVNode"])("span",rP,Object(p["toDisplayString"])(o.value.label),1),Object(p["createVNode"])(Object(p["unref"])(tP["a"]))]),_:1},8,["disabled"])]),_:1}),Object(p["createElementVNode"])("div",null,[Object(p["createVNode"])(n,{className:"branch-selector-icon","icon-class":"branch",class:"g-mr-4 g-ml-16"}),Object(p["createElementVNode"])("span",fP,Object(p["toDisplayString"])(u.value.length),1),Object(p["createElementVNode"])("span",null,Object(p["toDisplayString"])(t.$t("branches")),1)]),Object(p["createElementVNode"])("div",null,[Object(p["createVNode"])(n,{className:"branch-selector-icon","icon-class":"tag",class:"g-mr-4 g-ml-16"}),Object(p["createElementVNode"])("span",pP,Object(p["toDisplayString"])(c.value.length),1),Object(p["createElementVNode"])("span",null,Object(p["toDisplayString"])(t.$t("tags")),1)]),Object(p["createElementVNode"])("div",gP,[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t.$t("operation"))+": ",1),Object(p["createVNode"])(M,{class:"g-ml-8",value:f.value,"onUpdate:value":e[3]||(e[3]=t=>f.value=t),style:{width:"160px"},disabled:Object(p["unref"])(i),onChange:b},{default:Object(p["withCtx"])(()=>[(Object(p["openBlock"])(!0),Object(p["createElementBlock"])(p["Fragment"],null,Object(p["renderList"])(g,t=>(Object(p["openBlock"])(),Object(p["createBlock"])(S,{value:t,key:t},{default:Object(p["withCtx"])(()=>[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","disabled"])])])}}});n("1448");const yP=vP;var mP=yP;const bP={class:"table-snapshots"},_P=Object(p["createTextVNode"])("All");var xP=Object(p["defineComponent"])({__name:"Snapshots",setup(t){const e=Object(p["ref"])(!1),{t:n}=Object(I["b"])(),r=Object(p["shallowReactive"])([{title:n("snapshotId"),dataIndex:"snapshotId",ellipsis:!0},{title:n("operation"),dataIndex:"operation"},{title:n("records"),dataIndex:"records"},{title:n("fileCount"),dataIndex:"fileCount"},{title:n("commitTime"),dataIndex:"commitTime"}]),i=Object(p["shallowReactive"])([{title:n("operation"),dataIndex:"operation",width:120,ellipsis:!0},{title:n("file"),dataIndex:"file",ellipsis:!0},{title:n("partition"),dataIndex:"partition",width:120},{title:n("fileType"),dataIndex:"fileType",width:120,ellipsis:!0},{title:n("size"),dataIndex:"size",width:120},{title:n("commitTime"),dataIndex:"commitTime",width:200,ellipsis:!0},{title:n("path"),dataIndex:"path",ellipsis:!0}]),o=Object(p["reactive"])([]),a=Object(p["reactive"])([]),s=Object(p["ref"])(""),l=Object(p["ref"])(!1),u=Object(p["reactive"])(Object(J["a"])()),c=Object(p["reactive"])(Object(J["a"])()),h=Object(k["d"])(),d=h.query,f=Object(p["reactive"])({catalog:"",db:"",table:"",...d}),g=Object(p["ref"])({}),v=Object(p["ref"])({}),y=Object(p["ref"])(""),m=Object(p["ref"])(""),b=t=>{y.value=t.ref,m.value=t.operation,_()};async function _(){try{l.value=!0,o.length=0;const t=await Object(A["k"])({...f,ref:y.value,operation:m.value,page:u.current,pageSize:u.pageSize}),{list:e=[],total:r}=t,i={},a={};e.forEach(t=>{const{recordsSummaryForChart:e,filesSummaryForChart:n,commitTime:r}=t;i[r]=e||{},a[r]=n||{},"OPTIMIZE"===t.producer&&(t.operation=t.operation+"(optimizing)"),t.commitTime=t.commitTime?Object(D["b"])(t.commitTime):"",o.push(t)}),g.value=QD(n("recordChartTitle"),i),v.value=QD(n("fileChartTitle"),a),u.total=r}catch(t){}finally{l.value=!1}}function x({current:t=1,pageSize:n=25}){e.value?(c.current=t,n!==c.pageSize&&(c.current=1),c.pageSize=n):(u.current=t,n!==u.pageSize&&(u.current=1),u.pageSize=n),w()}function w(){e.value?O():_()}async function O(){try{a.length=0,l.value=!0;const t={...f,snapshotId:s.value,page:c.current,pageSize:c.pageSize},e=await Object(A["e"])(t),{list:n,total:r}=e;c.total=r,n.forEach(t=>{t.commitTime=t.commitTime?Object(D["b"])(t.commitTime):"",a.push(t)})}catch(t){}finally{l.value=!1}}function S(t){s.value=t.snapshotId,e.value=!e.value,e.value&&(c.current=1,O())}return Object(p["onMounted"])(()=>{e.value=!1}),(t,n)=>{const h=Object(p["resolveComponent"])("a-col"),d=Object(p["resolveComponent"])("a-row"),y=Object(p["resolveComponent"])("a-button"),m=Object(p["resolveComponent"])("a-table"),_=Object(p["resolveComponent"])("a-breadcrumb-item"),w=Object(p["resolveComponent"])("a-breadcrumb"),O=Object(p["resolveComponent"])("a-tooltip");return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",bP,[e.value?(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:1},[Object(p["createVNode"])(w,{separator:">"},{default:Object(p["withCtx"])(()=>[Object(p["createVNode"])(_,{onClick:S,class:"text-active"},{default:Object(p["withCtx"])(()=>[_P]),_:1}),Object(p["createVNode"])(_,null,{default:Object(p["withCtx"])(()=>[Object(p["createTextVNode"])(Object(p["toDisplayString"])(`${t.$t("snapshotId")} ${s.value}`),1)]),_:1})]),_:1}),Object(p["createVNode"])(m,{rowKey:"file",columns:Object(p["unref"])(i),"data-source":a,pagination:c,loading:l.value,onChange:x,class:"g-mt-8"},{bodyCell:Object(p["withCtx"])(({column:t,record:e})=>["path"===t.dataIndex?(Object(p["openBlock"])(),Object(p["createBlock"])(O,{key:0},{title:Object(p["withCtx"])(()=>[Object(p["createTextVNode"])(Object(p["toDisplayString"])(e.path),1)]),default:Object(p["withCtx"])(()=>[Object(p["createElementVNode"])("span",null,Object(p["toDisplayString"])(e.path),1)]),_:2},1024)):Object(p["createCommentVNode"])("",!0)]),_:1},8,["columns","data-source","pagination","loading"])],64)):(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:0},[Object(p["createVNode"])(d,null,{default:Object(p["withCtx"])(()=>[Object(p["createVNode"])(h,{span:12},{default:Object(p["withCtx"])(()=>[Object(p["createVNode"])($D,{loading:l.value,options:g.value},null,8,["loading","options"])]),_:1}),Object(p["createVNode"])(h,{span:12},{default:Object(p["withCtx"])(()=>[Object(p["createVNode"])($D,{loading:l.value,options:v.value},null,8,["loading","options"])]),_:1})]),_:1}),Object(p["createVNode"])(mP,{catalog:f.catalog,db:f.db,table:f.table,disabled:l.value,onRefChange:b},null,8,["catalog","db","table","disabled"]),Object(p["createVNode"])(m,{rowKey:"snapshotId",columns:Object(p["unref"])(r),"data-source":o,pagination:u,loading:l.value,onChange:x},{bodyCell:Object(p["withCtx"])(({column:t,record:e})=>["snapshotId"===t.dataIndex?(Object(p["openBlock"])(),Object(p["createBlock"])(y,{key:0,type:"link",onClick:t=>S(e)},{default:Object(p["withCtx"])(()=>[Object(p["createTextVNode"])(Object(p["toDisplayString"])(e.snapshotId),1)]),_:2},1032,["onClick"])):Object(p["createCommentVNode"])("",!0)]),expandedRowRender:Object(p["withCtx"])(({record:t})=>[(Object(p["openBlock"])(!0),Object(p["createElementBlock"])(p["Fragment"],null,Object(p["renderList"])(t.summary,(t,e)=>(Object(p["openBlock"])(),Object(p["createBlock"])(d,{type:"flex",gutter:16,key:e},{default:Object(p["withCtx"])(()=>[Object(p["createVNode"])(h,{flex:"220px",style:{"text-align":"right"}},{default:Object(p["withCtx"])(()=>[Object(p["createTextVNode"])(Object(p["toDisplayString"])(e)+" :",1)]),_:2},1024),Object(p["createVNode"])(h,{flex:"auto"},{default:Object(p["withCtx"])(()=>[Object(p["createTextVNode"])(Object(p["toDisplayString"])(t),1)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["columns","data-source","pagination","loading"])],64))])}}});n("b328");const wP=Z()(xP,[["__scopeId","data-v-21a1677f"]]);var OP=wP,SP=(n("cd17"),n("ed3b")),MP=n("3c7f");const TP=t=>(Object(p["pushScopeId"])("data-v-7de44d54"),t=t(),Object(p["popScopeId"])(),t),CP={class:"table-optinize"},jP={class:""},IP=TP(()=>Object(p["createElementVNode"])("div",{class:""},"success / total",-1)),kP={class:""},AP=TP(()=>Object(p["createElementVNode"])("div",{class:""},"size / count",-1)),DP={class:""},PP=TP(()=>Object(p["createElementVNode"])("div",{class:""},"size / count",-1)),LP={key:0,class:"g-flex-ac"},RP={class:"tip-title"};var EP=Object(p["defineComponent"])({__name:"Optimized",setup(t){const e=Object(p["shallowReactive"])({RUNNING:{title:"RUNNING",color:"#1890ff"},CLOSED:{title:"CLOSED",color:"#c9cdd4"},SUCCESS:{title:"SUCCESS",color:"#0ad787"},FAILED:{title:"FAILED",color:"#f5222d"}}),{t:n}=Object(I["b"])(),r=Object(p["shallowReactive"])([{title:n("processId"),dataIndex:"processId"},{title:n("startTime"),dataIndex:"startTime"},{title:n("type"),dataIndex:"optimizingType"},{title:n("status"),dataIndex:"status"},{title:n("duration"),dataIndex:"duration"},{title:n("tasks"),dataIndex:"tasks"},{title:n("finishTime"),dataIndex:"finishTime"},{title:n("input"),dataIndex:"inputFiles"},{title:n("output"),dataIndex:"outputFiles"}]),i=Object(p["reactive"])([]),o=Object(p["ref"])(!1),a=Object(p["ref"])(!0),s=Object(p["ref"])(""),l=Object(p["reactive"])(Object(J["a"])()),u=Object(k["d"])(),c=u.query,h=Object(p["reactive"])({catalog:"",db:"",table:"",...c});async function d(){try{o.value=!0,i.length=0;const t=await Object(A["h"])({...h,page:l.current,pageSize:l.pageSize}),{list:e,total:n=0}=t;l.total=n,i.push(...[...e||[]].map(t=>{const{inputFiles:e={},outputFiles:n={}}=t;return"RUNNING"===t.status&&(a.value=!1,s.value=t.processId),{...t,startTime:t.startTime?Object(D["b"])(t.startTime):"-",finishTime:t.finishTime?Object(D["b"])(t.finishTime):"-",optimizingType:t.optimizingType?t.optimizingType:"-",duration:Object(D["e"])(t.duration||"-"),inputFiles:`${Object(D["a"])(e.totalSize)} / ${e.fileCnt}`,outputFiles:`${Object(D["a"])(n.totalSize)} / ${n.fileCnt}`,tasks:`${t.successTasks||"-"} / ${t.totalTasks||"-"}${t.runningTasks?` (${t.runningTasks} running)`:""}`}}))}catch(t){}finally{o.value=!1}}async function f(){SP["a"].confirm({title:n("cancelOptimizingProcessOptModalTitle"),content:"",okText:"",cancelText:"",onOk:async()=>{try{o.value=!0;await Object(A["a"])({...h,processId:s.value});a.value=!0,d()}catch(t){}}})}function g({current:t=1,pageSize:e=25}=l){l.current=t,e!==l.pageSize&&(l.current=1),l.pageSize=e,d()}return Object(p["onMounted"])(()=>{d()}),(t,s)=>{const u=Object(p["resolveComponent"])("a-button"),c=Object(p["resolveComponent"])("a-tooltip"),h=Object(p["resolveComponent"])("a-table");return Object(p["openBlock"])(),Object(p["createElementBlock"])("div",CP,[Object(p["createVNode"])(u,{type:"primary",disabled:a.value,"onUpdate:disabled":s[0]||(s[0]=t=>a.value=t),class:"g-mb-16",onClick:f},{default:Object(p["withCtx"])(()=>[Object(p["createTextVNode"])(Object(p["toDisplayString"])(Object(p["unref"])(n)("cancel")),1)]),_:1},8,["disabled"]),Object(p["createVNode"])(h,{rowKey:"processId",columns:Object(p["unref"])(r),"data-source":i,pagination:l,onChange:g,loading:o.value},{headerCell:Object(p["withCtx"])(({column:t})=>["tasks"===t.dataIndex?(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:0},[Object(p["createElementVNode"])("div",jP,Object(p["toDisplayString"])(t.title),1),IP],64)):Object(p["createCommentVNode"])("",!0),"inputFiles"===t.dataIndex?(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:1},[Object(p["createElementVNode"])("div",kP,Object(p["toDisplayString"])(t.title),1),AP],64)):Object(p["createCommentVNode"])("",!0),"outputFiles"===t.dataIndex?(Object(p["openBlock"])(),Object(p["createElementBlock"])(p["Fragment"],{key:2},[Object(p["createElementVNode"])("div",DP,Object(p["toDisplayString"])(t.title),1),PP],64)):Object(p["createCommentVNode"])("",!0)]),bodyCell:Object(p["withCtx"])(({record:t,column:n})=>["status"===n.dataIndex?(Object(p["openBlock"])(),Object(p["createElementBlock"])("div",LP,[Object(p["createElementVNode"])("span",{style:Object(p["normalizeStyle"])({"background-color":(Object(p["unref"])(e)[t.status]||{}).color}),class:"status-icon"},null,4),Object(p["createElementVNode"])("span",null,Object(p["toDisplayString"])(t.status),1),"FAILED"===t.status?(Object(p["openBlock"])(),Object(p["createBlock"])(c,{key:0,placement:"topRight",class:"g-ml-4",overlayClassName:"table-failed-tip"},{title:Object(p["withCtx"])(()=>[Object(p["createElementVNode"])("div",RP,Object(p["toDisplayString"])(t.failReason),1)]),default:Object(p["withCtx"])(()=>[Object(p["createVNode"])(Object(p["unref"])(MP["a"]))]),_:2},1024)):Object(p["createCommentVNode"])("",!0)])):Object(p["createCommentVNode"])("",!0)]),_:1},8,["columns","data-source","pagination","loading"])])}}});n("614d"),n("add7");const NP=Z()(EP,[["__scopeId","data-v-7de44d54"]]);var BP=NP,zP=n("0613"),FP=Object(p["defineComponent"])({name:"Tables",components:{UDetails:Q,UFiles:it,UOperations:ft,USnapshots:OP,UOptimized:BP},setup(){const t=Object(k["e"])(),e=Object(k["d"])(),n=Object(zP["a"])(),r=Object(p["ref"])(),i=Object(p["shallowReactive"])([{key:"Snapshots",label:"Snapshots"},{key:"Optimized",label:"Optimizing"},{key:"Operations",label:"Operations"}]),o=Object(p["reactive"])({activeKey:"Details",isSecondaryNav:!1,baseInfo:{tableType:"",tableName:"",createTime:"",size:"",file:"",averageFile:"",tableFormat:"",hasPartition:!1},detailLoaded:!1}),a=Object(p["computed"])(()=>"ICEBERG"===o.baseInfo.tableType),s=t=>{o.detailLoaded=!0,o.baseInfo={...t}},l=n=>{const r={...e.query};r.tab=n,t.replace({query:{...r}})},u=()=>{},c=()=>{},h=()=>{n.updateTablesMenu(!1)},d=()=>{o.isSecondaryNav=!1,t.back()};return Object(p["watch"])(()=>e.path,()=>{o.isSecondaryNav=!!(e.path.indexOf("create")>-1)},{immediate:!0}),Object(p["watch"])(()=>e.query,(t,e)=>{const{catalog:n,db:r,table:i}=t,{catalog:a,db:s,table:l}=e;o.activeKey=`${n}${r}${i}`===`${a}${s}${l}`?t.tab:"Details"}),Object(p["onMounted"])(()=>{var t;o.activeKey=(null===(t=e.query)||void 0===t?void 0:t.tab)||"Details",Object(p["nextTick"])(()=>{r.value&&r.value.getTableDetails()})}),{...Object(p["toRefs"])(o),tabConfigs:i,store:n,isIceberg:a,editTable:u,delTable:c,setBaseDetailInfo:s,hideTablesMenu:h,goBack:d,onChangeTab:l}}});n("e353");const VP=Z()(FP,[["render",j],["__scopeId","data-v-3ca83c09"]]);e["default"]=VP},c3a6:function(t,e,n){},d360:function(t,e,n){},d51b:function(t,e,n){"use strict";var r=function(){function t(t){this.value=t}return t}(),i=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new r(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),o=function(){function t(t){this._list=new i,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,o=null;if(null==i[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e["a"]=o},da03b:function(t,e,n){"use strict";n("ef8b")},df0a:function(t,e,n){},e353:function(t,e,n){"use strict";n("3cc0")},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},ee38:function(t,e,n){},ef8b:function(t,e,n){},f38b:function(t,e,n){"use strict";var r,i,o,a,s;n.d(e,"b",(function(){return r})),n.d(e,"e",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return s})),function(t){t["Created"]="#f5f5f5",t["Failed"]="#fff2f0",t["Finished"]="#f6ffed",t["Canceled"]="#f5f5f5"}(r||(r={})),function(t){t["failed"]="FAILED",t["upgrading"]="UPGRADING",t["success"]="SUCCESS",t["none"]="NONE"}(i||(i={})),function(t){t["ICEBERG"]="iceberg",t["ARCTIC"]="amoro",t["HIVE"]="hive",t["PAIMON"]="paimon"}(o||(o={})),function(t){t["BRANCH"]="branch",t["TAG"]="tag"}(a||(a={})),function(t){t["ALL"]="all",t["OPTIMIZING"]="optimizing",t["NONOPTIMIZING"]="non-optimizing"}(s||(s={}))}}]); \ No newline at end of file +*/function Ei(t){delete Ni[t]}function Ri(t){if(!t)return!1;if("string"===typeof t)return Object(Tn["lum"])(t,1)0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*c+a}function $i(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return mt["isString"](t)?Xi(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Zi(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Yi),t=(+t).toFixed(e),n?t:+t}function Ki(t){return t.sort((function(t,e){return t-e})),t}function Qi(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Ji(t)}function Ji(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function to(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function eo(t,e,n){if(!t[e])return 0;var r=mt["reduce"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===r)return 0;var i=Math.pow(10,n),o=mt["map"](t,(function(t){return(isNaN(t)?0:t)/r*i*100})),a=100*i,s=mt["map"](o,(function(t){return Math.floor(t)})),l=mt["reduce"](s,(function(t,e){return t+e}),0),c=mt["map"](o,(function(t,e){return t-s[e]}));while(lu&&(u=c[d],h=d);++s[h],c[h]=0,++l}return s[e]/i}function no(t,e){var n=Math.max(Qi(t),Qi(e)),r=t+e;return n>Yi?r:Zi(r,n)}var ro=9007199254740991;function io(t){var e=2*Math.PI;return(t%e+e)%e}function oo(t){return t>-Ui&&t=10&&e++,e}function uo(t,e){var n,r=co(t),i=Math.pow(10,r),o=t/i;return n=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=n*i,r>=-20?+t.toFixed(r<0?-r:0):t}function ho(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function po(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,r=0;r=0||i&&mt["indexOf"](i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var pa=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],fa=da(pa),ga=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return fa(this,t,e)},t}(),va=new si["a"](50);function ya(t){if("string"===typeof t){var e=va.get(t);return e&&e.image}return t}function ma(t,e,n,r,i){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=va.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?(e=o.image,!_a(e)&&o.pending.push(a)):(e=li["c"].loadImage(t,ba,ba),e.__zrImageSrc=t,va.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function ba(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var c=ui(n,e);return c>s&&(n="",c=0),s=t-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=s,i.containerWidth=t,i}function Sa(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=ui(t,r);if(o<=n)return t;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?ja(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,s),o=ui(t,r)}return""===t&&(t=e.placeholder),t}function ja(t,e,n,r){for(var i=0,o=0,a=t.length;op&&u){var f=Math.floor(p/l);n=n.slice(0,f)}if(t&&a&&null!=h)for(var g=wa(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;vl&&Da(n,t.substring(l,c),e,s),Da(n,r[2],e,s,r[1]),l=xa.lastIndex}lo){x>0?(m.tokens=m.tokens.slice(0,x),v(m,_,b),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break t}var T=w.width,k=null==T||"auto"===T;if("string"===typeof T&&"%"===T.charAt(T.length-1))O.percentWidth=T,u.push(O),O.contentWidth=ui(O.text,C);else{if(k){var I=w.backgroundColor,D=I&&I.image;D&&(D=ya(D),_a(D)&&(O.width=Math.max(O.width,D.width*M/D.height)))}var A=f&&null!=i?i-_:null;null!=A&&A0&&f+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=f}else{var g=Na(e,u,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v=33&&e<=383}var Pa=Object(mt["reduce"])(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function La(t){return!Aa(t)||!!Pa[t]}function Na(t,e,n,r,i){for(var o=[],a=[],s="",l="",c=0,u=0,h=0;hn:i+u+p>n)?u?(s||l)&&(f?(s||(s=l,l="",c=0,u=c),o.push(s),a.push(u-c),l+=d,c+=p,s="",u=c):(l&&(s+=l,l="",c=0),o.push(s),a.push(u),s=d,u=p)):f?(o.push(l),a.push(c),l=d,c=p):(o.push(d),a.push(p)):(u+=p,f?(l+=d,c+=p):(l&&(s+=l,l="",c=0),s+=d))}else l&&(s+=l,u+=c),o.push(s),a.push(u),s="",l="",c=0,u=0}return o.length||s||(s=t,l="",c=0),l&&(s+=l),s&&(o.push(s),a.push(u)),1===o.length&&(u+=i),{accumWidth:u,lines:o,linesWidths:a}}var Ea="__zr_style_"+Math.round(10*Math.random()),Ra={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ba={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ra[Ea]=!0;var za=["z","z2","invisible"],Fa=["invisible"],Va=function(t){function e(e){return t.call(this,e)||this}return vt(e,t),e.prototype._init=function(e){for(var n=Object(mt["keys"])(e),r=0;r1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(Ka[0]=$a(i)*n+t,Ka[1]=qa(i)*r+e,Qa[0]=$a(o)*n+t,Qa[1]=qa(o)*r+e,c(s,Ka,Qa),u(l,Ka,Qa),i%=Za,i<0&&(i+=Za),o%=Za,o<0&&(o+=Za),i>o&&!a?o+=Za:ii&&(Ja[0]=$a(p)*n+t,Ja[1]=qa(p)*r+e,c(s,Ja,s),u(l,Ja,l))}var ss={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ls=[],cs=[],us=[],hs=[],ds=[],ps=[],fs=Math.min,gs=Math.max,vs=Math.cos,ys=Math.sin,ms=Math.abs,bs=Math.PI,_s=2*bs,xs="undefined"!==typeof Float32Array,Os=[];function ws(t){var e=Math.round(t/bs*1e8)/1e8;return e%2*bs}function Ss(t,e){var n=ws(t[0]);n<0&&(n+=_s);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=_s?i=n+_s:e&&n-i>=_s?i=n-_s:!e&&n>i?i=n+(_s-ws(n-i)):e&&n0&&(this._ux=ms(n/Sr/t)||0,this._uy=ms(n/Sr/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(ss.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=ms(t-this._xi),r=ms(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(ss.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(ss.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(ss.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),Os[0]=r,Os[1]=i,Ss(Os,o),r=Os[0],i=Os[1];var a=i-r;return this.addData(ss.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=vs(i)*n+t,this._yi=ys(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(ss.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(ss.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!xs||(this.data=new Float32Array(e));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){us[0]=us[1]=ds[0]=ds[1]=Number.MAX_VALUE,hs[0]=hs[1]=ps[0]=ps[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;tn||ms(m)>r||h===e-1)&&(f=Math.sqrt(y*y+m*m),i=g,o=v);break;case ss.C:var b=t[h++],_=t[h++],x=(g=t[h++],v=t[h++],t[h++]),O=t[h++];f=vn(i,o,b,_,g,v,x,O,10),i=x,o=O;break;case ss.Q:b=t[h++],_=t[h++],g=t[h++],v=t[h++];f=wn(i,o,b,_,g,v,10),i=g,o=v;break;case ss.A:var w=t[h++],S=t[h++],j=t[h++],C=t[h++],M=t[h++],T=t[h++],k=T+M;h+=1;t[h++];p&&(a=vs(M)*j+w,s=ys(M)*C+S),f=gs(j,C)*fs(_s,Math.abs(T)),i=vs(k)*j+w,o=ys(k)*C+S;break;case ss.R:a=i=t[h++],s=o=t[h++];var I=t[h++],D=t[h++];f=2*I+2*D;break;case ss.Z:y=a-i,m=s-o;f=Math.sqrt(y*y+m*m),i=a,o=s;break}f>=0&&(l[u++]=f,c+=f)}return this._pathLen=c,c},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,c,u,h,d,p=this.data,f=this._ux,g=this._uy,v=this._len,y=e<1,m=0,b=0,_=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,c=this._pathLen,u=e*c,u))t:for(var x=0;x0&&(t.lineTo(h,d),_=0),O){case ss.M:n=i=p[x++],r=o=p[x++],t.moveTo(i,o);break;case ss.L:a=p[x++],s=p[x++];var S=ms(a-i),j=ms(s-o);if(S>f||j>g){if(y){var C=l[b++];if(m+C>u){var M=(u-m)/C;t.lineTo(i*(1-M)+a*M,o*(1-M)+s*M);break t}m+=C}t.lineTo(a,s),i=a,o=s,_=0}else{var T=S*S+j*j;T>_&&(h=a,d=s,_=T)}break;case ss.C:var k=p[x++],I=p[x++],D=p[x++],A=p[x++],P=p[x++],L=p[x++];if(y){C=l[b++];if(m+C>u){M=(u-m)/C;fn(i,k,D,P,M,ls),fn(o,I,A,L,M,cs),t.bezierCurveTo(ls[1],cs[1],ls[2],cs[2],ls[3],cs[3]);break t}m+=C}t.bezierCurveTo(k,I,D,A,P,L),i=P,o=L;break;case ss.Q:k=p[x++],I=p[x++],D=p[x++],A=p[x++];if(y){C=l[b++];if(m+C>u){M=(u-m)/C;xn(i,k,D,M,ls),xn(o,I,A,M,cs),t.quadraticCurveTo(ls[1],cs[1],ls[2],cs[2]);break t}m+=C}t.quadraticCurveTo(k,I,D,A),i=D,o=A;break;case ss.A:var N=p[x++],E=p[x++],R=p[x++],B=p[x++],z=p[x++],F=p[x++],V=p[x++],H=!p[x++],G=R>B?R:B,W=ms(R-B)>.001,U=z+F,Y=!1;if(y){C=l[b++];m+C>u&&(U=z+F*(u-m)/C,Y=!0),m+=C}if(W&&t.ellipse?t.ellipse(N,E,R,B,V,z,U,H):t.arc(N,E,G,z,U,H),Y)break t;w&&(n=vs(z)*R+N,r=ys(z)*B+E),i=vs(U)*R+N,o=ys(U)*B+E;break;case ss.R:n=i=p[x],r=o=p[x+1],a=p[x++],s=p[x++];var X=p[x++],q=p[x++];if(y){C=l[b++];if(m+C>u){var $=u-m;t.moveTo(a,s),t.lineTo(a+fs($,X),s),$-=X,$>0&&t.lineTo(a+X,s+fs($,q)),$-=q,$>0&&t.lineTo(a+gs(X-$,0),s+q),$-=X,$>0&&t.lineTo(a,s+gs(q-$,0));break t}m+=C}t.rect(a,s,X,q);break;case ss.Z:if(y){C=l[b++];if(m+C>u){M=(u-m)/C;t.lineTo(i*(1-M)+n*M,o*(1-M)+r*M);break t}m+=C}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=ss,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),Cs=js;function Ms(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,c=t;if(a>e+s&&a>r+s||at+s&&o>n+s||oe+h&&u>r+h&&u>o+h&&u>s+h||ut+h&&c>n+h&&c>i+h&&c>a+h||ce+c&&l>r+c&&l>o+c||lt+c&&s>n+c&&s>i+c||sn||u+ci&&(i+=As);var d=Math.atan2(l,s);return d<0&&(d+=As),d>=r&&d<=i||d+As>=r&&d+As<=i}function Ls(t,e,n,r,i,o){if(o>e&&o>r||oi?s:0}var Ns=Cs.CMD,Es=2*Math.PI,Rs=1e-4;function Bs(t,e){return Math.abs(t-e)e&&c>r&&c>o&&c>s||c1&&Vs(),p=un(e,r,o,s,Fs[0]),d>1&&(f=un(e,r,o,s,Fs[1]))),2===d?ve&&s>r&&s>o||s=0&&c<=1){for(var u=0,h=yn(e,r,o,c),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);zs[0]=-l,zs[1]=l;var c=Math.abs(r-i);if(c<1e-4)return 0;if(c>=Es-1e-4){r=0,i=Es;var u=o?1:-1;return a>=zs[0]+t&&a<=zs[1]+t?u:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Es,i+=Es);for(var d=0,p=0;p<2;p++){var f=zs[p];if(f+t>a){var g=Math.atan2(s,f);u=o?1:-1;g<0&&(g=Es+g),(g>=r&&g<=i||g+Es>=r&&g+Es<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(u=-u),d+=u)}}return d}function Us(t,e,n,r,i){for(var o,a,s=t.data,l=t.len(),c=0,u=0,h=0,d=0,p=0,f=0;f1&&(n||(c+=Ls(u,h,d,p,r,i))),v&&(u=s[f],h=s[f+1],d=u,p=h),g){case Ns.M:d=s[f++],p=s[f++],u=d,h=p;break;case Ns.L:if(n){if(Ms(u,h,s[f],s[f+1],e,r,i))return!0}else c+=Ls(u,h,s[f],s[f+1],r,i)||0;u=s[f++],h=s[f++];break;case Ns.C:if(n){if(Ts(u,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],e,r,i))return!0}else c+=Hs(u,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],r,i)||0;u=s[f++],h=s[f++];break;case Ns.Q:if(n){if(ks(u,h,s[f++],s[f++],s[f],s[f+1],e,r,i))return!0}else c+=Gs(u,h,s[f++],s[f++],s[f],s[f+1],r,i)||0;u=s[f++],h=s[f++];break;case Ns.A:var y=s[f++],m=s[f++],b=s[f++],_=s[f++],x=s[f++],O=s[f++];f+=1;var w=!!(1-s[f++]);o=Math.cos(x)*b+y,a=Math.sin(x)*_+m,v?(d=o,p=a):c+=Ls(u,h,o,a,r,i);var S=(r-y)*_/b+y;if(n){if(Ps(y,m,_,x,x+O,w,e,S,i))return!0}else c+=Ws(y,m,_,x,x+O,w,S,i);u=Math.cos(x+O)*b+y,h=Math.sin(x+O)*_+m;break;case Ns.R:d=u=s[f++],p=h=s[f++];var j=s[f++],C=s[f++];if(o=d+j,a=p+C,n){if(Ms(d,p,o,p,e,r,i)||Ms(o,p,o,a,e,r,i)||Ms(o,a,d,a,e,r,i)||Ms(d,a,d,p,e,r,i))return!0}else c+=Ls(o,p,o,a,r,i),c+=Ls(d,a,d,p,r,i);break;case Ns.Z:if(n){if(Ms(u,h,d,p,e,r,i))return!0}else c+=Ls(u,h,d,p,r,i);u=d,h=p;break}}return n||Bs(h,p)||(c+=Ls(u,h,d,p,r,i)||0),0!==c}function Ys(t,e,n){return Us(t,0,!1,e,n)}function Xs(t,e,n,r){return Us(t,e,!0,n,r)}var qs=Object(mt["defaults"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ra),$s={style:Object(mt["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ba.style)},Zs=Yr.concat(["invisible","culling","z","z2","zlevel","parent"]),Ks=function(t){function e(e){return t.call(this,e)||this}return vt(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s.5?Cr:e>.2?Tr:Mr}if(t)return Mr}return Cr},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(mt["isString"])(e)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Object(Tn["lum"])(t,0)0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&He)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),Xs(o,a/s,t,e)))return!0}if(this.hasFill())return Ys(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=He,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"===typeof t?n[t]=e:Object(mt["extend"])(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&He)},e.prototype.createStyle=function(t){return Object(mt["createObject"])(qs,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(mt["extend"])({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Object(mt["extend"])({},r.shape),Object(mt["extend"])(s,n.shape)):(s=Object(mt["extend"])({},i?this.shape:r.shape),Object(mt["extend"])(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=Object(mt["extend"])({},this.shape);for(var c={},u=Object(mt["keys"])(s),h=0;h0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return Object(mt["createObject"])(Js,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=di(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Ua);tl.prototype.type="tspan";var el=tl,nl=Object(mt["defaults"])({x:0,y:0},Ra),rl={style:Object(mt["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ba.style)};function il(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var ol=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vt(e,t),e.prototype.createStyle=function(t){return Object(mt["createObject"])(nl,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=il(e.image)?e.image:this.__image;if(!r)return 0;var i="width"===t?"height":"width",o=e[i];return null==o?r[t]:r[t]/r[i]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return rl},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ai(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Ua);ol.prototype.type="image";var al=ol;function sl(t,e){var n,r,i,o,a,s=e.x,l=e.y,c=e.width,u=e.height,h=e.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"===typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>c&&(a=n+r,n*=c/a,r*=c/a),i+o>c&&(a=i+o,i*=c/a,o*=c/a),r+i>u&&(a=r+i,r*=u/a,i*=u/a),n+o>u&&(a=n+o,n*=u/a,o*=u/a),t.moveTo(s+n,l),t.lineTo(s+c-r,l),0!==r&&t.arc(s+c-r,l+r,r,-Math.PI/2,0),t.lineTo(s+c,l+u-i),0!==i&&t.arc(s+c-i,l+u-i,i,0,Math.PI/2),t.lineTo(s+o,l+u),0!==o&&t.arc(s+o,l+u-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var ll=Math.round;function cl(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(ll(2*r)===ll(2*i)&&(t.x1=t.x2=hl(r,s,!0)),ll(2*o)===ll(2*a)&&(t.y1=t.y2=hl(o,s,!0)),t):t}}function ul(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=hl(r,s,!0),t.y=hl(i,s,!0),t.width=Math.max(hl(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(hl(i+a,s,!1)-t.y,0===a?0:1),t):t}}function hl(t,e,n){if(!e)return t;var r=ll(2*t);return(r+ll(e))%2===0?r/2:(r+(n?1:-1))/2}var dl=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),pl={},fl=function(t){function e(e){return t.call(this,e)||this}return vt(e,t),e.prototype.getDefaultShape=function(){return new dl},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=ul(pl,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?sl(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Qs);fl.prototype.type="rect";var gl=fl,vl={fill:"#000"},yl=2,ml={style:Object(mt["defaults"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ba.style)},bl=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=vl,n.attr(e),n}return vt(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,C=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),M=i.calculatedLineHeight,T=0;T=0&&(T=_[M],"right"===T.align))this._placeToken(T,t,O,g,C,"right",y),w-=T.width,C-=T.width,M--;j+=(r-(j-f)-(v-C)-w)/2;while(S<=M)T=_[S],this._placeToken(T,t,O,g,j+T.width/2,"center",y),j+=T.width,S++;g+=O}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,c=r+n/2;"top"===l?c=r+t.height/2:"bottom"===l&&(c=r+n-t.height/2);var u=!t.isLineHolder&&Al(s);u&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,c-t.height/2,t.width,t.height);var h=!!s.backgroundColor,d=t.textPadding;d&&(i=Il(i,o,d),c-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(el),f=p.createStyle();p.useStyle(f);var g=this._defaultStyle,v=!1,y=0,m=kl("fill"in s?s.fill:"fill"in e?e.fill:(v=!0,g.fill)),b=Tl("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!v?null:(y=yl,g.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=i,f.y=c,_&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||li["a"],f.opacity=Object(mt["retrieve3"])(s.opacity,e.opacity,1),Sl(f,s),b&&(f.lineWidth=Object(mt["retrieve3"])(s.lineWidth,e.lineWidth,y),f.lineDash=Object(mt["retrieve2"])(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=b),m&&(f.fill=m);var x=t.contentWidth,O=t.contentHeight;p.setBoundingRect(new ai(pi(f.x,x,f.textAlign),fi(f.y,O,f.textBaseline),x,O))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l=t.backgroundColor,c=t.borderWidth,u=t.borderColor,h=l&&l.image,d=l&&!h,p=t.borderRadius,f=this;if(d||t.lineHeight||c&&u){a=this._getOrCreateChild(gl),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=r,g.width=i,g.height=o,g.r=p,a.dirtyShape()}if(d){var v=a.style;v.fill=l||null,v.fillOpacity=Object(mt["retrieve2"])(t.fillOpacity,1)}else if(h){s=this._getOrCreateChild(al),s.onload=function(){f.dirtyStyle()};var y=s.style;y.image=l.image,y.x=n,y.y=r,y.width=i,y.height=o}if(c&&u){v=a.style;v.lineWidth=c,v.stroke=u,v.strokeOpacity=Object(mt["retrieve2"])(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=Object(mt["retrieve3"])(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return jl(t)&&(e=[t.fontStyle,t.fontWeight,wl(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(mt["trim"])(e)||t.textFont||t.font},e}(Ua),_l={left:!0,right:1,center:1},xl={top:1,bottom:1,middle:1},Ol=["fontStyle","fontWeight","fontSize","fontFamily"];function wl(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?li["b"]+"px":t+"px":t}function Sl(t,e){for(var n=0;n=0,o=!1;if(t instanceof Qs){var a=Bl(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Ql(s)||Ql(l)){r=r||{};var c=r.style||{};"inherit"===c.fill?(o=!0,r=Object(mt["extend"])({},r),c=Object(mt["extend"])({},c),c.fill=s):!Ql(c.fill)&&Ql(s)?(o=!0,r=Object(mt["extend"])({},r),c=Object(mt["extend"])({},c),c.fill=tc(s)):!Ql(c.stroke)&&Ql(l)&&(o||(r=Object(mt["extend"])({},r),c=Object(mt["extend"])({},c)),c.stroke=tc(l)),r.style=c}}if(r&&null==r.z2){o||(r=Object(mt["extend"])({},r));var u=t.z2EmphasisLift;r.z2=t.z2+(null!=u?u:Ul)}return r}function pc(t,e,n){if(n&&null==n.z2){n=Object(mt["extend"])({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:Yl)}return n}function fc(t,e,n){var r=Object(mt["indexOf"])(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:hc(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=Object(mt["extend"])({},n),a=Object(mt["extend"])({opacity:r?i:.1*o.opacity},a),n.style=a),n}function gc(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return dc(this,t,e,n);if("blur"===t)return fc(this,t,n);if("select"===t)return pc(this,t,n)}return n}function vc(t){t.stateProxy=gc;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=gc),n&&(n.stateProxy=gc)}function yc(t,e){!jc(t,e)&&!t.__highByOuter&&cc(t,nc)}function mc(t,e){!jc(t,e)&&!t.__highByOuter&&cc(t,rc)}function bc(t,e){t.__highByOuter|=1<<(e||0),cc(t,nc)}function _c(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&cc(t,rc)}function xc(t){cc(t,ic)}function Oc(t){cc(t,oc)}function wc(t){cc(t,ac)}function Sc(t){cc(t,sc)}function jc(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Cc(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=zl(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){oc(t)})),a&&n.push(i)),o.isBlured=!1})),Object(mt["each"])(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function Mc(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function Ec(t,e,n){Gc(t,!0),cc(t,vc),zc(t,e,n)}function Rc(t){Gc(t,!1)}function Bc(t,e,n,r){r?Rc(t):Ec(t,e,n)}function zc(t,e,n){var r=Ll(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var Fc=["emphasis","blur","select"],Vc={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Hc(t,e,n,r){n=n||"itemStyle";for(var i=0;i0){var h=u.duration,d=u.delay,p=u.easing,f={duration:h,delay:d||0,easing:p,done:o,force:!!o||!!a,setToFinal:!c,scope:t,during:a};l?e.animateFrom(n,f):e.animateTo(n,f)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function Qc(t,e,n,r,i,o){Kc("update",t,e,n,r,i,o)}function Jc(t,e,n,r,i,o){Kc("enter",t,e,n,r,i,o)}function tu(t){if(!t.__zr)return!0;for(var e=0;e=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,r,i){if(t.length){var o=n(e),a=o.graph,s=o.noEntryList,l={};mt["each"](t,(function(t){l[t]=!0}));while(s.length){var c=s.pop(),u=a[c],h=!!l[c];h&&(r.call(i,c,u.originalDeps.slice()),delete l[c]),mt["each"](u.successor,h?p:d)}mt["each"](l,(function(){var t="";throw new Error(t)}))}function d(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function p(t){l[t]=!0,d(t)}}}function Fu(t,e){return mt["merge"](mt["merge"]({},t,!0),e,!0)}var Vu={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Hu={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},Gu="ZH",Wu="EN",Uu=Wu,Yu={},Xu={},qu=yt["a"].domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(Gu)>-1?Gu:Uu}():Uu;function $u(t,e){t=t.toUpperCase(),Xu[t]=new Nu(e),Yu[t]=e}function Zu(t){if(Object(mt["isString"])(t)){var e=Yu[t.toUpperCase()]||{};return t===Gu||t===Wu?Object(mt["clone"])(e):Object(mt["merge"])(Object(mt["clone"])(e),Object(mt["clone"])(Yu[Uu]),!1)}return Object(mt["merge"])(Object(mt["clone"])(t),Object(mt["clone"])(Yu[Uu]),!1)}function Ku(t){return Xu[t]}function Qu(){return Xu[Uu]}$u(Wu,Vu),$u(Gu,Hu);var Ju=1e3,th=60*Ju,eh=60*th,nh=24*eh,rh=365*nh,ih={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},oh="{yyyy}-{MM}-{dd}",ah={year:"{yyyy}",month:"{yyyy}-{MM}",day:oh,hour:oh+" "+ih.hour,minute:oh+" "+ih.minute,second:oh+" "+ih.second,millisecond:ih.none},sh=["year","month","day","hour","minute","second","millisecond"],lh=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ch(t,e){return t+="","0000".substr(0,e-t.length)+t}function uh(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function hh(t){return t===uh(t)}function dh(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ph(t,e,n,r){var i=so(t),o=i[yh(n)](),a=i[mh(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[bh(n)](),c=i["get"+(n?"UTC":"")+"Day"](),u=i[_h(n)](),h=(u-1)%12+1,d=i[xh(n)](),p=i[Oh(n)](),f=i[wh(n)](),g=r instanceof Nu?r:Ku(r||qu)||Qu(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),b=v.get("dayOfWeek"),_=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,ch(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,ch(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[c]).replace(/{ee}/g,_[c]).replace(/{e}/g,c+"").replace(/{HH}/g,ch(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,ch(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ch(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,ch(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,ch(f,3)).replace(/{S}/g,f+"")}function fh(t,e,n,r,i){var o=null;if(mt["isString"](n))o=n;else if(mt["isFunction"](n))o=n(t.value,e,{level:t.level});else{var a=mt["extend"]({},ih);if(t.level>0)for(var s=0;s=0;--s)if(l[c]){o=l[c];break}o=o||a.none}if(mt["isArray"](o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;h=Math.min(h,o.length-1),o=o[h]}}return ph(new Date(t.value),o,i,r)}function gh(t,e){var n=so(t),r=n[mh(e)]()+1,i=n[bh(e)](),o=n[_h(e)](),a=n[xh(e)](),s=n[Oh(e)](),l=n[wh(e)](),c=0===l,u=c&&0===s,h=u&&0===a,d=h&&0===o,p=d&&1===i,f=p&&1===r;return f?"year":p?"month":d?"day":h?"hour":u?"minute":c?"second":"millisecond"}function vh(t,e,n){var r=mt["isNumber"](t)?so(t):t;switch(e=e||gh(t,n),e){case"year":return r[yh(n)]();case"half-year":return r[mh(n)]()>=6?1:0;case"quarter":return Math.floor((r[mh(n)]()+1)/4);case"month":return r[mh(n)]();case"day":return r[bh(n)]();case"half-day":return r[_h(n)]()/24;case"hour":return r[_h(n)]();case"minute":return r[xh(n)]();case"second":return r[Oh(n)]();case"millisecond":return r[wh(n)]()}}function yh(t){return t?"getUTCFullYear":"getFullYear"}function mh(t){return t?"getUTCMonth":"getMonth"}function bh(t){return t?"getUTCDate":"getDate"}function _h(t){return t?"getUTCHours":"getHours"}function xh(t){return t?"getUTCMinutes":"getMinutes"}function Oh(t){return t?"getUTCSeconds":"getSeconds"}function wh(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Sh(t){return t?"setUTCFullYear":"setFullYear"}function jh(t){return t?"setUTCMonth":"setMonth"}function Ch(t){return t?"setUTCDate":"setDate"}function Mh(t){return t?"setUTCHours":"setHours"}function Th(t){return t?"setUTCMinutes":"setMinutes"}function kh(t){return t?"setUTCSeconds":"setSeconds"}function Ih(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Dh(t){if(!go(t))return mt["isString"](t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Ah(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Ph=mt["normalizeCssArray"],Lh=/([&<>"'])/g,Nh={"&":"&","<":"<",">":">",'"':""","'":"'"};function Eh(t){return null==t?"":(t+"").replace(Lh,(function(t,e){return Nh[e]}))}function Rh(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(t){return t&&mt["trim"](t)?t:"-"}function o(t){return!(null==t||isNaN(t)||!isFinite(t))}var a="time"===e,s=t instanceof Date;if(a||s){var l=a?so(t):t;if(!isNaN(+l))return ph(l,r,n);if(s)return"-"}if("ordinal"===e)return mt["isStringSafe"](t)?i(t):mt["isNumber"](t)&&o(t)?t+"":"-";var c=fo(t);return o(c)?Dh(c):mt["isStringSafe"](t)?i(t):"boolean"===typeof t?t+"":"-"}var Bh=["a","b","c","d","e","f","g"],zh=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Fh(t,e,n){mt["isArray"](e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Hh(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=so(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),c=r[i+"Minutes"](),u=r[i+"Seconds"](),h=r[i+"Milliseconds"]();return t=t.replace("MM",ch(a,2)).replace("M",a).replace("yyyy",o).replace("yy",ch(o%100+"",2)).replace("dd",ch(s,2)).replace("d",s).replace("hh",ch(l,2)).replace("h",l).replace("mm",ch(c,2)).replace("m",c).replace("ss",ch(u,2)).replace("s",u).replace("SSS",ch(h,3)),t}function Gh(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Wh(t,e){return e=e||"transparent",mt["isString"](t)?t:mt["isObject"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Uh(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Yh=mt["each"],Xh=["left","right","top","bottom","width","height"],qh=[["width","left","right"],["height","top","bottom"]];function $h(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(l,c){var u,h,d=l.getBoundingRect(),p=e.childAt(c+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);u=o+g,u>r||l.newline?(o=0,u=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(f?-f.y+d.y:0);h=a+v,h>i||l.newline?(o+=s+n,a=0,h=v,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=u+n:a=h+n)}))}var Zh=$h;mt["curry"]($h,"vertical"),mt["curry"]($h,"horizontal");function Kh(t,e,n){n=Ph(n||0);var r=e.width,i=e.height,o=$i(t.left,r),a=$i(t.top,i),s=$i(t.right,r),l=$i(t.bottom,i),c=$i(t.width,r),u=$i(t.height,i),h=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(c)&&(c=r-s-d-o),isNaN(u)&&(u=i-l-h-a),null!=p&&(isNaN(c)&&isNaN(u)&&(p>r/i?c=.8*r:u=.8*i),isNaN(c)&&(c=p*u),isNaN(u)&&(u=c/p)),isNaN(o)&&(o=r-s-c-d),isNaN(a)&&(a=i-l-u-h),t.left||t.right){case"center":o=r/2-c/2-n[3];break;case"right":o=r-c-d;break}switch(t.top||t.bottom){case"middle":case"center":a=i/2-u/2-n[0];break;case"bottom":a=i-u-h;break}o=o||0,a=a||0,isNaN(c)&&(c=r-d-o-(s||0)),isNaN(u)&&(u=i-h-a-(l||0));var f=new ai(o+n[3],a+n[0],c,u);return f.margin=n,f}function Qh(t){var e=t.layoutMode||t.constructor.layoutMode;return mt["isObject"](e)?e:e?{type:e}:null}function Jh(t,e,n){var r=n&&n.ignoreSize;!mt["isArray"](r)&&(r=[r,r]);var i=a(qh[0],0),o=a(qh[1],1);function a(n,i){var o={},a=0,c={},u=0,h=2;if(Yh(n,(function(e){c[e]=t[e]})),Yh(n,(function(t){s(e,t)&&(o[t]=c[t]=e[t]),l(o,t)&&a++,l(c,t)&&u++})),r[i])return l(e,n[1])?c[n[2]]=null:l(e,n[2])&&(c[n[1]]=null),c;if(u!==h&&a){if(a>=h)return o;for(var d=0;d=0;a--)o=mt["merge"](o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return Xo(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Nu);function id(t){var e=[];return mt["each"](rd.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=mt["map"](e,(function(t){return ea(t).main})),"dataset"!==t&&mt["indexOf"](e,"dataset")<=0&&e.unshift("dataset"),e}aa(rd,Nu),ha(rd),Bu(rd),zu(rd,id);var od=rd,ad="";"undefined"!==typeof navigator&&(ad=navigator.platform||"");var sd="rgba(0, 0, 0, 0.2)",ld={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:sd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:sd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:sd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:sd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:sd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:sd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ad.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},cd=Object(mt["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),ud="original",hd="arrayRows",dd="objectRows",pd="keyedColumns",fd="typedArray",gd="unknown",vd="column",yd="row",md={Must:1,Might:2,Not:3},bd=Ho();function _d(t){bd(t).datasetMap=Object(mt["createHashMap"])()}function xd(t,e,n){var r={},i=Od(e);if(!i||!t)return r;var o,a,s=[],l=[],c=e.ecModel,u=bd(c).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(mt["each"])(t,(function(e,n){var i=Object(mt["isObject"])(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=f(i)),r[i.name]=[]}));var d=u.get(h)||u.set(h,{categoryWayDim:a,valueWayDim:0});function p(t,e,n){for(var r=0;re)return t[r];return t[n-1]}function Dd(t,e,n,r,i,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(i))return c[i];var u=null!=a&&r?Id(r,a):n;if(u=u||n,u&&u.length){var h=u[l];return i&&(c[i]=h),s.paletteIdx=(l+1)%u.length,h}}function Ad(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Pd,Ld,Nd;"undefined"!==typeof console&&console.warn&&console.log;function Ed(t){0}function Rd(t){throw new Error(t)}var Bd="\0_ec_inner",zd=1;var Fd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vt(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new Nu(r),this._locale=new Nu(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=Ud(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Ud(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):Nd(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&Object(mt["each"])(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=Object(mt["createHashMap"])(),s=e&&e.replaceMergeMainTypeMap;function l(e){var o=Md(this,e,Oo(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",c=Mo(a,o,l);zo(c,e,od),n[e]=null,r.set(e,null),i.set(e,0);var u,h=[],d=[],p=0;Object(mt["each"])(c,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=od.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(u)return void 0;u=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Object(mt["extend"])({componentIndex:n},t.keyInfo);r=new a(i,this,this,s),Object(mt["extend"])(r,s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),d.push(r),p++):(h.push(void 0),d.push(void 0))}),this),n[e]=h,r.set(e,d),i.set(e,p),"series"===e&&Pd(this)}_d(this),Object(mt["each"])(t,(function(t,e){null!=t&&(od.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(mt["clone"])(t):Object(mt["merge"])(n[e],t,!0))})),s&&s.each((function(t,e){od.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),od.topologicalTravel(o,od.getAllClassMainTypes(),l,this),this._seriesIndices||Pd(this)},e.prototype.getOption=function(){var t=Object(mt["clone"])(this.option);return Object(mt["each"])(t,(function(e,n){if(od.hasClass(n)){for(var r=Oo(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Bo(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t[Bd],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i=e:"max"===n?t<=e:t===e}function ip(t,e){return t.join(",")===e.join(",")}var op=tp,ap=mt["each"],sp=mt["isObject"],lp=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function cp(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=lp.length;n=0;g--){var v=t[g];if(s||(d=v.data.rawIndexOf(v.stackedByDimension,h)),d>=0){var y=v.data.getByRawIndex(v.stackResultDimension,d);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&p>=0&&y>0||"samesign"===l&&p<=0&&y<0){p=no(p,y),f=y;break}}}return r[0]=p,r[1]=f,r}))}))}var Ap,Pp,Lp,Np,Ep,Rp=function(){function t(t){this.data=t.data||(t.sourceFormat===pd?{}:[]),this.sourceFormat=t.sourceFormat||gd,this.seriesLayoutBy=t.seriesLayoutBy||vd,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nc&&(c=p)}s[0]=l,s[1]=c}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return af(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function cf(t){var e,n;return mt["isObject"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}function uf(t){return new hf(t)}var hf=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,a=u(this._modBy),s=this._modDataCount||0,l=u(t&&t.modBy),c=t&&t.modDataCount||0;function u(t){return!(t>=1)&&(t=1),t}a===l&&s===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=c;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(o||d1&&r>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},yf=function(){function t(t,e){if(!Object(mt["isNumber"])(e)){var n="";0,Rd(n)}this._opFn=vf[t],this._rvalFloat=fo(e)}return t.prototype.evaluate=function(t){return Object(mt["isNumber"])(t)?this._opFn(t,this._rvalFloat):this._opFn(fo(t),this._rvalFloat)},t}(),mf=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(mt["isNumber"])(t)?t:fo(t),r=Object(mt["isNumber"])(e)?e:fo(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=Object(mt["isString"])(t),s=Object(mt["isString"])(e);a&&(n=s?t:0),s&&(r=a?e:0)}return nr?-this._resultLT:0},t}(),bf=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=fo(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=fo(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function _f(t,e){return"eq"===t||"ne"===t?new bf("eq"===t,e):Object(mt["hasOwn"])(vf,t)?new yf(t,e):null}var xf=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return pf(t,e)},t}();function Of(t,e){var n=new xf,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==vd&&Rd(a);var s=[],l={},c=t.dimensionsDefine;if(c)Object(mt["each"])(c,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";Object(mt["hasOwn"])(l,n)&&Rd(i),l[n]=r}}));else for(var u=0;u65535?Lf:Nf}function Ff(){return[1/0,-1/0]}function Vf(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Hf(t,e,n,r,i){var o=Bf[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),c=0;cg[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Object(mt["map"])(o,(function(t){return t.property})),c=0;cv[1]&&(v[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks,i=r[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,c=0,u=this.count();c=0&&s<0)&&(a=p,s=d,l=0),d===s&&(o[l++]=c))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i=u&&y<=h||isNaN(y))&&(s[l++]=f),f++}p=!0}else if(2===i){g=d[r[0]];var m=d[r[1]],b=t[r[1]][0],_=t[r[1]][1];for(v=0;v=u&&y<=h||isNaN(y))&&(x>=b&&x<=_||isNaN(x))&&(s[l++]=f),f++}p=!0}}if(!p)if(1===i)for(v=0;v=u&&y<=h||isNaN(y))&&(s[l++]=O)}else for(v=0;vt[j][1])&&(w=!1)}w&&(s[l++]=e.getRawIndex(v))}return lv[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),c=0,u=Math.floor(1/e),h=this.getRawIndex(0),d=new(zf(this._rawCount))(Math.min(2*(Math.ceil(l/u)+2),l));d[c++]=h;for(var p=1;pn&&(n=r,i=b))}C>0&&Cc-p&&(s=c-p,a.length=s);for(var f=0;fu[1]&&(u[1]=v),h[d++]=y}return i._count=d,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();is&&(s=u)}return r=[a,s],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return pf(t[r],this._dimensions[r])}Af={arrayRows:t,objectRows:function(t,e,n,r){return pf(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return pf(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),Wf=Gf,Uf=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Xf(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var c=r[0];c.prepareSource(),l=c.getSource(),a=l.data,s=l.sourceFormat,e=[c._getVersionSign()]}else a=o.get("data",!0),s=Object(mt["isTypedArray"])(a)?fd:ud,e=[];var u=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=Object(mt["retrieve2"])(u.seriesLayoutBy,h.seriesLayoutBy)||null,p=Object(mt["retrieve2"])(u.sourceHeader,h.sourceHeader),f=Object(mt["retrieve2"])(u.dimensions,h.dimensions),g=d!==h.seriesLayoutBy||!!p!==!!h.sourceHeader||f;t=g?[zp(a,{seriesLayoutBy:d,sourceHeader:p,dimensions:f},s)]:[]}else{var v=n;if(i){var y=this._applyTransform(r);t=y.sourceList,e=y.upstreamSignList}else{var m=v.get("source",!0);t=[zp(m,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){var o="";1!==t.length&&qf(o)}var a=[],s=[];return Object(mt["each"])(t,(function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||qf(n),a.push(e),s.push(t._getVersionSign())})),r?e=kf(r,a,{datasetIndex:n.componentIndex}):null!=i&&(e=[Vp(a[0])]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||n>0&&!t.noHeader;return Object(mt["each"])(t.blocks,(function(t){var n=ng(t);n>=e&&(e=n+ +(r&&(!n||tg(t)&&!t.noHeader)))})),e}return 0}function rg(t,e,n,r){var i=e.noHeader,o=ag(ng(e)),a=[],s=e.blocks||[];Object(mt["assert"])(!s||Object(mt["isArray"])(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Object(mt["hasOwn"])(c,l)){var u=new mf(c[l],null);s.sort((function(t,e){return u.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Object(mt["each"])(s,(function(n,i){var s=e.valueFormatter,l=eg(n)(s?Object(mt["extend"])(Object(mt["extend"])({},t),{valueFormatter:s}):t,n,i>0?o.html:0,r);null!=l&&a.push(l)}));var h="richText"===t.renderMode?a.join(o.richText):sg(a.join(""),i?n:o.html);if(i)return h;var d=Rh(e.header,"ordinal",t.useUTC),p=Zf(r,t.renderMode).nameStyle;return"richText"===t.renderMode?ug(t,d,p)+o.richText+h:sg('
'+Eh(d)+"
"+h,n)}function ig(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,c=t.useUTC,u=e.valueFormatter||t.valueFormatter||function(t){return t=Object(mt["isArray"])(t)?t:[t],Object(mt["map"])(t,(function(t,e){return Rh(t,Object(mt["isArray"])(p)?p[e]:p,c)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),d=o?"":Rh(l,"ordinal",c),p=e.valueType,f=a?[]:u(e.value),g=!s||!o,v=!s&&o,y=Zf(r,i),m=y.nameStyle,b=y.valueStyle;return"richText"===i?(s?"":h)+(o?"":ug(t,d,m))+(a?"":hg(t,f,g,v,b)):sg((s?"":h)+(o?"":lg(d,!s,m))+(a?"":cg(f,g,v,b)),n)}}function og(t,e,n,r,i,o){if(t){var a=eg(t),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function ag(t){return{html:Kf[t],richText:Qf[t]}}function sg(t,e){var n='
',r="margin: "+e+"px 0 0";return'
'+t+n+"
"}function lg(t,e,n){var r=e?"margin-left:2px":"";return''+Eh(t)+""}function cg(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=Object(mt["isArray"])(t)?t:[t],''+Object(mt["map"])(t,(function(t){return Eh(t)})).join("  ")+""}function ug(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function hg(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(mt["isArray"])(e)?e.join(" "):e,o)}function dg(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return Wh(r)}function pg(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var fg=function(){function t(){this.richTextStyles={},this._nextStyleNameId=vo()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=Vh({color:e,type:t,renderMode:n,markerId:r});return Object(mt["isString"])(i)?i:(this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(mt["isArray"])(e)?Object(mt["each"])(e,(function(t){return Object(mt["extend"])(n,t)})):Object(mt["extend"])(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();function gg(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),c=l.mapDimensionsAll("defaultedTooltip"),u=c.length,h=o.getRawValue(a),d=Object(mt["isArray"])(h),p=dg(o,a);if(u>1||d&&!u){var f=vg(h,o,a,c,p);e=f.inlineValues,n=f.inlineValueTypes,r=f.blocks,i=f.inlineValues[0]}else if(u){var g=l.getDimensionInfo(c[0]);i=e=af(l,a,c[0]),n=g.type}else i=e=d?h[0]:h;var v=Ro(o),y=v&&o.name||"",m=l.getName(a),b=s?y:m;return Jf("section",{header:y,noHeader:s||!v,sortParam:i,blocks:[Jf("nameValue",{markerType:"item",markerColor:p,name:b,noName:!Object(mt["trim"])(b),value:e,valueType:n})].concat(r||[])})}function vg(t,e,n,r,i){var o=e.getData(),a=Object(mt["reduce"])(t,(function(t,e,n){var r=o.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],c=[];function u(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?c.push(Jf("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?Object(mt["each"])(r,(function(t){u(af(o,n,t),t)})):Object(mt["each"])(t,u),{inlineValues:s,inlineValueTypes:l,blocks:c}}var yg=Ho();function mg(t,e){return t.getName(e)||t.getId(e)}var bg="__universalTransitionEnabled",_g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return vt(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=uf({count:wg,reset:Sg}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var r=yg(this).sourceManager=new Uf(this);r.prepareSource();var i=this.getInitialData(t,n);Cg(i,this),this.dataTask.context.data=i,yg(this).dataBeforeProcessed=i,xg(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Qh(this),r=n?td(t):{},i=this.subType;od.hasClass(i)&&(i+="Series"),mt["merge"](t,e.getTheme().get(this.subType)),mt["merge"](t,this.getDefaultOption()),wo(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Jh(t,r,n)},e.prototype.mergeOption=function(t,e){t=mt["merge"](this.option,t,!0),this.fillDataTextStyle(t.data);var n=Qh(this);n&&Jh(this.option,t,n);var r=yg(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);Cg(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,yg(this).dataBeforeProcessed=i,xg(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!mt["isTypedArray"](t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=kd.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(i)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[mg(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[bg])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){mt["isObject"](i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l0&&this._innerSelect(t,e)}},e.registerClass=function(t){return od.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(od);function xg(t){var e=t.name;Ro(t)||(t.name=Og(t)||e)}function Og(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return mt["each"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}function wg(t){return t.model.getRawData().count()}function Sg(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),jg}function jg(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Cg(t,e){mt["each"](mt["concatArray"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,mt["curry"](Mg,e))}))}function Mg(t,e){var n=Tg(t);return n&&n.setOutputEnd((e||this).count()),e}function Tg(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}mt["mixin"](_g,lf),mt["mixin"](_g,kd),aa(_g,od);var kg=_g,Ig=function(){function t(){this.group=new Pi,this.uid=Ru("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();ia(Ig),ha(Ig);var Dg=Ig;function Ag(){var t=Ho();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var Pg=Cs.CMD,Lg=[[],[],[]],Ng=Math.sqrt,Eg=Math.atan2;function Rg(t,e){if(e){var n,r,i,o,a,s,l=t.data,c=t.len(),u=Pg.M,h=Pg.C,d=Pg.L,p=Pg.R,f=Pg.A,g=Pg.Q;for(i=0,o=0;i1&&(a*=Bg(f),s*=Bg(f));var g=(i===o?-1:1)*Bg((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,v=g*a*p/s,y=g*-s*d/a,m=(t+n)/2+Fg(h)*v-zg(h)*y,b=(e+r)/2+zg(h)*v+Fg(h)*y,_=Wg([1,0],[(d-v)/a,(p-y)/s]),x=[(d-v)/a,(p-y)/s],O=[(-1*d-v)/a,(-1*p-y)/s],w=Wg(x,O);if(Gg(x,O)<=-1&&(w=Vg),Gg(x,O)>=1&&(w=0),w<0){var S=Math.round(w/Vg*1e6)/1e6;w=2*Vg+S%2*Vg}u.addData(c,m,b,a,s,_,w,h,o)}var Yg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Xg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function qg(t){var e=new Cs;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=Cs.CMD,l=t.match(Yg);if(!l)return e;for(var c=0;cI*I+D*D&&(S=C,j=M),{cx:S,cy:j,x0:-u,y0:-h,x1:S*(i/x-1),y1:j*(i/x-1)}}function xv(t){var e;if(Object(mt["isArray"])(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function Ov(t,e){var n,r=vv(e.r,0),i=vv(e.r0||0,0),o=r>0,a=i>0;if(o||a){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,c=e.endAngle;if(!isNaN(l)&&!isNaN(c)){var u=e.cx,h=e.cy,d=!!e.clockwise,p=fv(c-l),f=p>cv&&p%cv;if(f>mv&&(p=f),r>mv)if(p>cv-mv)t.moveTo(u+r*hv(l),h+r*uv(l)),t.arc(u,h,r,l,c,!d),i>mv&&(t.moveTo(u+i*hv(c),h+i*uv(c)),t.arc(u,h,i,c,l,d));else{var g=void 0,v=void 0,y=void 0,m=void 0,b=void 0,_=void 0,x=void 0,O=void 0,w=void 0,S=void 0,j=void 0,C=void 0,M=void 0,T=void 0,k=void 0,I=void 0,D=r*hv(l),A=r*uv(l),P=i*hv(c),L=i*uv(c),N=p>mv;if(N){var E=e.cornerRadius;E&&(n=xv(E),g=n[0],v=n[1],y=n[2],m=n[3]);var R=fv(r-i)/2;if(b=yv(R,y),_=yv(R,m),x=yv(R,g),O=yv(R,v),j=w=vv(b,_),C=S=vv(x,O),(w>mv||S>mv)&&(M=r*hv(c),T=r*uv(c),k=i*hv(l),I=i*uv(l),pmv){var U=yv(y,j),Y=yv(m,j),X=_v(k,I,D,A,r,U,d),q=_v(M,T,P,L,r,Y,d);t.moveTo(u+X.cx+X.x0,h+X.cy+X.y0),j0&&t.arc(u+X.cx,h+X.cy,U,pv(X.y0,X.x0),pv(X.y1,X.x1),!d),t.arc(u,h,r,pv(X.cy+X.y1,X.cx+X.x1),pv(q.cy+q.y1,q.cx+q.x1),!d),Y>0&&t.arc(u+q.cx,h+q.cy,Y,pv(q.y1,q.x1),pv(q.y0,q.x0),!d))}else t.moveTo(u+D,h+A),t.arc(u,h,r,l,c,!d);else t.moveTo(u+D,h+A);if(i>mv&&N)if(C>mv){U=yv(g,C),Y=yv(v,C),X=_v(P,L,M,T,i,-Y,d),q=_v(D,A,k,I,i,-U,d);t.lineTo(u+X.cx+X.x0,h+X.cy+X.y0),C0&&t.arc(u+X.cx,h+X.cy,Y,pv(X.y0,X.x0),pv(X.y1,X.x1),!d),t.arc(u,h,i,pv(X.cy+X.y1,X.cx+X.x1),pv(q.cy+q.y1,q.cx+q.x1),d),U>0&&t.arc(u+q.cx,h+q.cy,U,pv(q.y1,q.x1),pv(q.y0,q.x0),!d))}else t.lineTo(u+P,h+L),t.arc(u,h,i,c,l,d);else t.lineTo(u+P,h+L)}else t.moveTo(u,h);t.closePath()}}}var wv=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),Sv=function(t){function e(e){return t.call(this,e)||this}return vt(e,t),e.prototype.getDefaultShape=function(){return new wv},e.prototype.buildPath=function(t,e){Ov(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Qs);Sv.prototype.type="sector";var jv=Sv,Cv=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Mv=function(t){function e(e){return t.call(this,e)||this}return vt(e,t),e.prototype.getDefaultShape=function(){return new Cv},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(Qs);Mv.prototype.type="ring";var Tv=Mv;function kv(t,e,n,r){var i,o,a,s,l=[],c=[],u=[],h=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=t.length;d=2){if(r){var o=kv(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],c=o[2*s+1],u=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],c[0],c[1],u[0],u[1])}}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var h=i.length;siy[1]){if(a=!1,i)return a;var c=Math.abs(iy[0]-ry[1]),u=Math.abs(ry[0]-iy[1]);Math.min(c,u)>r.len()&&(cMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Dy(t){return!t.isGroup}function Ay(t){return null!=t.shape}function Py(t,e,n){if(t&&e){var r=i(t);e.traverse((function(t){if(Dy(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),Qc(t,i,n,Ll(t).dataIndex)}}}))}function i(t){var e={};return t.traverse((function(t){Dy(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Ay(t)&&(e.shape=Object(mt["extend"])({},t.shape)),e}}function Ly(t,e){return Object(mt["map"])(t,(function(t){var n=t[0];n=dy(n,e.x),n=py(n,e.x+e.width);var r=t[1];return r=dy(r,e.y),r=py(r,e.y+e.height),[n,r]}))}function Ny(t,e){var n=dy(t.x,e.x),r=py(t.x+t.width,e.x+e.width),i=dy(t.y,e.y),o=py(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function Ey(t,e,n){var r=Object(mt["extend"])({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Object(mt["defaults"])(i,n),new al(r)):_y(t.replace("path://",""),r,n,"center")}function Ry(t,e,n,r,i){for(var o=0,a=i[i.length-1];o1)return!1;var v=zy(p,f,u,h)/d;return!(v<0||v>1)}function zy(t,e,n,r){return t*r-n*e}function Fy(t){return t<=1e-6&&t>=-1e-6}function Vy(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Object(mt["isString"])(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Object(mt["each"])(Object(mt["keys"])(l),(function(t){Object(mt["hasOwn"])(s,t)||(s[t]=l[t],s.$vars.push(t))}));var c=Ll(t.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:r,option:Object(mt["defaults"])({content:r,formatterParams:s},i)}}function Hy(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Gy(t,e){if(t)if(Object(mt["isArray"])(t))for(var n=0;n=0?h():u=setTimeout(h,-i),l=r};return d.clear=function(){u&&(clearTimeout(u),u=null)},d.debounceNextCall=function(t){s=t},d}function rm(t,e,n,r){var i=t[e];if(i){var o=i[Jy]||i,a=i[em],s=i[tm];if(s!==n||a!==r){if(null==n||!r)return t[e]=o;i=t[e]=nm(o,n,"debounce"===r),i[Jy]=o,i[em]=r,i[tm]=n}return i}}function im(t,e){var n=t[e];n&&n[Jy]&&(n.clear&&n.clear(),t[e]=n[Jy])}var om=Ho(),am={itemStyle:da(Du,!0),lineStyle:da(Tu,!0)},sm={lineStyle:"stroke",itemStyle:"fill"};function lm(t,e){var n=t.visualStyleMapper||am[e];return n||am.itemStyle}function cm(t,e){var n=t.visualDrawType||sm[e];return n||"fill"}var um={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=lm(t,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=cm(t,r),c=a[l],u=Object(mt["isFunction"])(c)?c:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||u||h){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(mt["isFunction"])(a.fill)?d:a.fill,a.stroke="auto"===a.stroke||Object(mt["isFunction"])(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=Object(mt["extend"])({},a);i[l]=u(r),e.setItemVisual(n,"style",i)}}}},hm=new Nu,dm={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=lm(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){hm.option=n[r];var a=i(hm),s=t.ensureUniqueItemVisual(e,"style");Object(mt["extend"])(s,a),hm.option.decal&&(t.setItemVisual(e,"decal",hm.option.decal),hm.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},pm={performRawSeries:!0,overallReset:function(t){var e=Object(mt["createHashMap"])();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),om(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=om(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=cm(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t],l=i.getItemVisual(a,"colorFromPalette");if(l){var c=i.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",h=n.count();c[s]=e.getColorFromPalette(u,o,h)}}))}}))}},fm=Math.PI;function gm(t,e){e=e||{},mt["defaults"](e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Pi,r=new gl({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new Pl({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new gl({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&(i=new qv({shape:{startAngle:-fm/2,endAngle:-fm/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*fm/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*fm/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),c=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:c}),a.setShape({x:l-s,y:c-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var vm=function(){function t(t,e,n,r){this._stageTaskMap=Object(mt["createHashMap"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,a=r&&r.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData(),i=r.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,a=t.get("large")&&i>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(mt["createHashMap"])();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(mt["each"])(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";Object(mt["assert"])(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(mt["each"])(t,(function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var h,d=u.agentStubMap;d.each((function(t){a(r,t)&&(t.dirty(),h=!0)})),h&&u.dirty(),o.updatePayload(u,n);var p=o.getPerformArgs(u,r.block);d.each((function(t){t.perform(p)})),u.perform(p)&&(i=!0)}else c&&c.each((function(s,l){a(r,s)&&s.dirty();var c=o.getPerformArgs(s,r.block);c.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(c)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Object(mt["createHashMap"])(),s=t.seriesType,l=t.getTargetSeries;function c(e){var s=e.uid,l=a.set(s,o&&o.get(s)||uf({plan:xm,reset:Om,count:jm}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(c):s?n.eachRawSeriesByType(s,c):l&&l(n,r).each(c)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||uf({reset:ym});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Object(mt["createHashMap"])(),l=t.seriesType,c=t.getTargetSeries,u=!0,h=!1,d="";function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,uf({reset:mm,onDirty:_m})));n.context={model:t,overallProgress:u},n.agent=o,n.__block=u,i._pipe(t,n)}Object(mt["assert"])(!t.createOnAllSeries,d),l?n.eachRawSeriesByType(l,p):c?c(n,r).each(p):(u=!1,Object(mt["each"])(n.getSeries(),p)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return Object(mt["isFunction"])(t)&&(t={overallReset:t,seriesType:Cm(t)}),t.uid=Ru("stageHandler"),e&&(t.visualType=e),t},t}();function ym(t){t.overallReset(t.ecModel,t.api,t.payload)}function mm(t){return t.overallProgress&&bm}function bm(){this.agent.dirty(),this.getDownstream().dirty()}function _m(){this.agent&&this.agent.dirty()}function xm(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Om(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Oo(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(mt["map"])(e,(function(t,e){return Sm(e)})):wm}var wm=Sm(0);function Sm(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o0&&u===i.length-c.length){var h=i.slice(0,u);"data"!==h&&(e.mainType=h,e[c.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return c(s,o,"mainType")&&c(s,o,"subType")&&c(s,o,"index","componentIndex")&&c(s,o,"name")&&c(s,o,"id")&&c(l,i,"name")&&c(l,i,"dataIndex")&&c(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function c(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Vm=["symbol","symbolSize","symbolRotate","symbolOffset"],Hm=Vm.concat(["symbolKeepAspect"]),Gm={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a=0&&db(l)?l:.5;var c=t.createRadialGradient(a,s,0,a,s,l);return c}function gb(t,e,n){for(var r="radial"===e.type?fb(t,e,n):pb(t,e,n),i=e.colorStops,o=0;o0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(mt["isNumber"])(t)?[t]:Object(mt["isArray"])(t)?t:null:null}function _b(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&bb(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&1!==i&&(n=Object(mt["map"])(n,(function(t){return t/i})),r/=i)}return[n,r]}var xb=new Cs(!0);function Ob(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function wb(t){return"string"===typeof t&&"none"!==t}function Sb(t){var e=t.fill;return null!=e&&"none"!==e}function jb(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Cb(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Mb(t,e,n){var r=ma(e.image,e.__image,n);if(_a(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*mt["RADIAN_TO_DEGREE"]),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}function Tb(t,e,n,r){var i,o=Ob(n),a=Sb(n),s=n.strokePercent,l=s<1,c=!e.path;e.silent&&!l||!c||e.createPathProxy();var u=e.path||xb,h=e.__dirty;if(!r){var d=n.fill,p=n.stroke,f=a&&!!d.colorStops,g=o&&!!p.colorStops,v=a&&!!d.image,y=o&&!!p.image,m=void 0,b=void 0,_=void 0,x=void 0,O=void 0;(f||g)&&(O=e.getBoundingRect()),f&&(m=h?gb(t,d,O):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(b=h?gb(t,p,O):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),v&&(_=h||!e.__canvasFillPattern?Mb(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=_),y&&(x=h||!e.__canvasStrokePattern?Mb(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),f?t.fillStyle=m:v&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=b:y&&(x?t.strokeStyle=x:o=!1)}var w,S,j=e.getGlobalScale();u.setScale(j[0],j[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(i=_b(e),w=i[0],S=i[1]);var C=!0;(c||h&He)&&(u.setDPR(t.dpr),l?u.setContext(null):(u.setContext(t),C=!1),u.reset(),e.buildPath(u,e.shape,r),u.toStatic(),e.pathUpdated()),C&&u.rebuildPath(t,l?s:1),w&&(t.setLineDash(w),t.lineDashOffset=S),r||(n.strokeFirst?(o&&Cb(t,n),a&&jb(t,n)):(a&&jb(t,n),o&&Cb(t,n))),w&&t.setLineDash([])}function kb(t,e,n){var r=e.__image=ma(n.image,e.__image,e,e.onload);if(r&&_a(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,u=n.sy||0;t.drawImage(r,c,u,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){c=n.sx,u=n.sy;var h=a-c,d=s-u;t.drawImage(r,c,u,h,d,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}function Ib(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||li["a"],t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(r=_b(e),o=r[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Ob(n)&&t.strokeText(i,n.x,n.y),Sb(n)&&t.fillText(i,n.x,n.y)):(Sb(n)&&t.fillText(i,n.x,n.y),Ob(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}var Db=["shadowBlur","shadowOffsetX","shadowOffsetY"],Ab=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Pb(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){Wb(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Ra.opacity:a}(r||e.blend!==n.blend)&&(o||(Wb(t,i),o=!0),t.globalCompositeOperation=e.blend||Ra.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[I_])if(this._disposed)ux(this.id);else{var r,i,o;if(Object(mt["isObject"])(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[I_]=!0,!this._model||e){var a=new op(this._api),s=this._theme,l=this._model=new Yd;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},fx);var c={seriesTransition:o,optionChanged:!0};if(n)this[D_]={silent:r,updateParams:c},this[I_]=!1,this.getZr().wakeUp();else{try{V_(this),W_.update.call(this,null,c)}catch(u){throw this[D_]=null,this[I_]=!1,u}this._ssr||this._zr.flush(),this[D_]=null,this[I_]=!1,q_.call(this,r),$_.call(this,r)}}},e.prototype.setTheme=function(){Ed("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||u_&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(yt["a"].svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(mt["each"])(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,r=[],i=this;Object(mt["each"])(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(mt["each"])(r,(function(t){t.group.ignore=!1})),o}ux(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(bx[n]){var a=o,s=o,l=-o,c=-o,u=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Object(mt["each"])(mx,(function(o,h){if(o.group===n){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(mt["clone"])(t)),p=o.getDom().getBoundingClientRect();a=r(p.left,a),s=r(p.top,s),l=i(p.right,l),c=i(p.bottom,c),u.push({dom:d,left:p.left,top:p.top})}})),a*=h,s*=h,l*=h,c*=h;var d=l-a,p=c-s,f=li["c"].createCanvas(),g=zi(f,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:p}),e){var v="";return Object(mt["each"])(u,(function(t){var e=t.left-a,n=t.top-s;v+=''+t.dom+""})),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new gl({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),Object(mt["each"])(u,(function(t){var e=new al({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}ux(this.id)},e.prototype.convertToPixel=function(t,e){return U_(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return U_(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=Wo(r,t);return Object(mt["each"])(i,(function(t,r){r.indexOf("Models")>=0&&Object(mt["each"])(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}ux(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,r=Wo(n,t,{defaultMainType:"series"}),i=r.seriesModel;var o=i.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=a?Um(o,a,e):Ym(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(mt["each"])(cx,(function(e){var n=function(n){var r,i=t.getModel(),o=n.target,a="globalout"===e;if(a?r={}:o&&$m(o,(function(t){var e=Ll(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return r=Object(mt["extend"])({},e.eventData),!0}),!0),r){var s=r.componentType,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var c=s&&null!=l&&i.getComponent(s,l),u=c&&t["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:c,view:u},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(mt["each"])(dx,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(mt["each"])(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),qm(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?ux(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)ux(this.id);else{this._disposed=!0;var t=this.getDom();t&&qo(this.getDom(),Ox,"");var e=this,n=e._api,r=e._model;Object(mt["each"])(e._componentsViews,(function(t){t.dispose(r,n)})),Object(mt["each"])(e._chartsViews,(function(t){t.dispose(r,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete mx[e.id]}},e.prototype.resize=function(t){if(!this[I_])if(this._disposed)ux(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[D_]&&(null==r&&(r=this[D_].silent),n=!0,this[D_]=null),this[I_]=!0;try{n&&V_(this),W_.update.call(this,{type:"resize",animation:Object(mt["extend"])({duration:0},t&&t.animation)})}catch(i){throw this[I_]=!1,i}this[I_]=!1,q_.call(this,r),$_.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)ux(this.id);else if(Object(mt["isObject"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),yx[t]){var n=yx[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?ux(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(mt["extend"])({},t);return e.type=dx[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)ux(this.id);else if(Object(mt["isObject"])(e)||(e={silent:!!e}),hx[t.type]&&this._model)if(this[I_])this._pendingActions.push(t);else{var n=e.silent;X_.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&yt["a"].browser.weChat&&this._throttledZrFlush(),q_.call(this,n),$_.call(this,n)}},e.prototype.updateLabelLayout=function(){a_.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)ux(this.id);else{var e=t.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(e);0,r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],n=[],r=!1;if(t.eachComponent((function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})})),r){var i,o,a=e.concat(n);ze(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(mt["each"])(a,(function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}function n(t){for(var e=[],n=t.currentStates,r=0;re.get("hoverLayerThreshold")&&!yt["a"].node&&!yt["a"].worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function i(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function o(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,r=t.get("zlevel")||0;e.eachRendered((function(t){return a(t,n,r,-1/0),!0}))}}function a(t,e,n,r){var i=t.getTextContent(),o=t.getTextGuideLine(),s=t.isGroup;if(s)for(var l=t.childrenRef(),c=0;c0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(tu(t))return;if(t instanceof Qs&&qc(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}}))}V_=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),H_(t,!0),H_(t,!1),e.plan()},H_=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l=0)){Vx.push(n);var o=Dm.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function Gx(t,e){yx[t]=e}function Wx(t){Object(li["d"])({createCanvas:t})}function Ux(t,e,n){var r=c_("registerMap");r&&r(t,e,n)}function Yx(t){var e=c_("getMap");return e&&e(t)}var Xx=Tf;Fx(x_,um),Fx(S_,dm),Fx(S_,pm),Fx(x_,Gm),Fx(S_,Wm),Fx(T_,i_),Dx(kp),Ax(g_,Ip),Gx("default",gm),Ex({type:Xl,event:Xl,update:Xl},mt["noop"]),Ex({type:ql,event:ql,update:ql},mt["noop"]),Ex({type:$l,event:$l,update:$l},mt["noop"]),Ex({type:Zl,event:Zl,update:Zl},mt["noop"]),Ex({type:Kl,event:Kl,update:Kl},mt["noop"]),Ix("light",Pm),Ix("dark",zm);var qx={},$x=[],Zx={registerPreprocessor:Dx,registerProcessor:Ax,registerPostInit:Px,registerPostUpdate:Lx,registerUpdateLifecycle:Nx,registerAction:Ex,registerCoordinateSystem:Rx,registerLayout:zx,registerVisual:Fx,registerTransform:Xx,registerLoading:Gx,registerMap:Ux,registerImpl:l_,PRIORITY:k_,ComponentModel:od,ComponentView:Dg,SeriesModel:kg,ChartView:Qy,registerComponentModel:function(t){od.registerClass(t)},registerComponentView:function(t){Dg.registerClass(t)},registerSeriesModel:function(t){kg.registerClass(t)},registerChartView:function(t){Qy.registerClass(t)},registerSubTypeDefaulter:function(t,e){od.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Gi(t,e)}};function Kx(t){Object(mt["isArray"])(t)?Object(mt["each"])(t,(function(t){Kx(t)})):Object(mt["indexOf"])($x,t)>=0||($x.push(t),Object(mt["isFunction"])(t)&&(t={install:t}),t.install(Zx))}function Qx(t){return null==t?0:t.length||1}function Jx(t){return t}var tO=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Jx,this._newKeyGetter=r||Jx,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o1){var c=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(c,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a1&&1===h)this._updateManyToOne&&this._updateManyToOne(c,l),r[s]=null;else if(1===u&&h>1)this._updateOneToMany&&this._updateOneToMany(c,l),r[s]=null;else if(1===u&&1===h)this._update&&this._update(c,l),r[s]=null;else if(u>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,l),r[s]=null;else if(u>1)for(var d=0;d1)for(var a=0;a30}var vO,yO,mO,bO,_O,xO,OO,wO=mt["isObject"],SO=mt["map"],jO="undefined"===typeof Int32Array?Array:Int32Array,CO="e\0\0",MO=-1,TO=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],kO=["_approximateExtent"],IO=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;dO(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},c=0;c=e)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,a=r.getSource().sourceFormat,s=a===ud;if(s&&!r.pure)for(var l=[],c=t;c0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),mt["isArray"](i)?i=i.slice():wO(i)&&(i=mt["extend"]({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,wO(e)?mt["extend"](r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){wO(t)?mt["extend"](this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?mt["extend"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Nl(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){mt["each"](this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:SO(this.dimensions,this._getDimInfo,this),this.hostModel)),_O(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];mt["isFunction"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(mt["slice"](arguments)))})},t.internalField=function(){vO=function(t){var e=t._invertedIndicesMap;mt["each"](e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new jO(o.categories.length);for(var s=0;s1&&(s+="__ec__"+c),r[e]=s}}}(),t}(),DO=IO;function AO(t,e){return PO(t,e).dimensions}function PO(t,e){Bp(t)||(t=Fp(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Object(mt["createHashMap"])(),o=[],a=NO(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&gO(a),l=r===t.dimensionsDefine,c=l?fO(t):pO(r),u=e.encodeDefine;!u&&e.encodeDefaulter&&(u=e.encodeDefaulter(t,a));for(var h=Object(mt["createHashMap"])(u),d=new Ef(a),p=0;p0&&(r.name=i+(o-1)),o++,e.set(i,o)}}function NO(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Object(mt["each"])(e,(function(t){var e;Object(mt["isObject"])(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}function EO(t,e,n){var r=e.data;if(n||r.hasOwnProperty(t)){var i=0;while(r.hasOwnProperty(t+i))i++;t+=i}return e.set(t,!0),t}var RO=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(mt["createHashMap"])(),this.categoryAxisMap=Object(mt["createHashMap"])(),this.coordSysName=t}return t}();function BO(t){var e=t.get("coordinateSystem"),n=new RO(e),r=zO[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var zO={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",Yo).models[0],o=t.getReferringComponents("yAxis",Yo).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),FO(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),FO(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",Yo).models[0];e.coordSysDims=["single"],n.set("single",i),FO(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",Yo).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),FO(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),FO(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Object(mt["each"])(o.parallelAxisIndex,(function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),FO(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function FO(t){return"category"===t.get("type")}function VO(t,e,n){n=n||{};var r,i,o,a=n.byIndex,s=n.stackedCoordDimension;HO(e)?r=e:(i=e.schema,r=i.dimensions,o=e.store);var l,c,u,h,d=!(!t||!t.get("stack"));if(Object(mt["each"])(r,(function(t,e){Object(mt["isString"])(t)&&(r[e]=t={name:t}),d&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),c||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(c=t))})),!c||a||l||(a=!0),c){u="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var p=c.coordDim,f=c.type,g=0;Object(mt["each"])(r,(function(t){t.coordDim===p&&g++}));var v={name:u,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,f),y.storeDimIndex=o.ensureCalculationDimension(u,f)),i.appendCalculationDimension(v),i.appendCalculationDimension(y)):(r.push(v),r.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:u}}function HO(t){return!dO(t.schema)}function GO(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function WO(t,e){return GO(t,e)?t.getCalculationInfo("stackResultDimension"):e}function UO(t,e){var n,r=t.get("coordinateSystem"),i=Qd.get(r);return e&&e.coordSysDims&&(n=mt["map"](e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=oO(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function YO(t,e,n){var r,i;return n&&mt["each"](t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)})),i||null==r||(t[r].otherDims.itemName=0),r}function XO(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=Fp(t)):(r=i.getSource(),o=r.sourceFormat===ud);var a=BO(e),s=UO(e,a),l=n.useEncodeDefaulter,c=mt["isFunction"](l)?l:l?mt["curry"](xd,s,e):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o},h=PO(r,u),d=YO(h.dimensions,n.createInvertedIndices,a),p=o?null:i.getSharedDataStore(h),f=VO(e,{schema:h,store:p}),g=new DO(h,e);g.setCalculationInfo(f);var v=null!=d&&qO(r)?function(t,e,n,r){return r===d?n:this.defaultDimValueGetter(t,e,n,r)}:null;return g.hasItemOption=!1,g.initData(o?r:p,null,v),g}function qO(t){if(t.sourceFormat===ud){var e=$O(t.data||[]);return!mt["isArray"](jo(e))}}function $O(t){var e=0;while(ee[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();ha(KO);var QO=KO,JO=0,tw=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++JO}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&Object(mt["map"])(r,ew);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(mt["isString"])(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return e=r.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(mt["createHashMap"])(this.categories))},t}();function ew(t){return Object(mt["isObject"])(t)&&null!=t.value?t.value:t+""}var nw=tw;function rw(t){return"interval"===t.type||"log"===t.type}function iw(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=uo(o/e,!0);null!=n&&ar&&(a=i.interval=r);var s=i.intervalPrecision=aw(a),l=i.niceTickExtent=[Zi(Math.ceil(t[0]/a)*a,s),Zi(Math.floor(t[1]/a)*a,s)];return lw(l,t),i}function ow(t){var e=Math.pow(10,co(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Zi(n*e)}function aw(t){return Qi(t)+2}function sw(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function lw(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),sw(t,0,e),sw(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function cw(t,e){return t>=e[0]&&t<=e[1]}function uw(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function hw(t,e){return t*(e[1]-e[0])+e[0]}var dw=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new nw({})),Object(mt["isArray"])(r)&&(r=new nw({categories:Object(mt["map"])(r,(function(t){return Object(mt["isObject"])(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return vt(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(mt["isString"])(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),cw(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),uw(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(hw(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(QO);QO.registerClass(dw);var pw=dw,fw=Zi,gw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return vt(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return cw(t,this._extent)},e.prototype.normalize=function(t){return uw(t,this._extent)},e.prototype.scale=function(t){return hw(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=aw(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]a)return[]}var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&(t?o.push({value:fw(l+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;ir[0]&&h0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}function jw(t){var e=Sw(t),n=[];return Object(mt["each"])(t,(function(t){var r,i=t.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],c=Math.abs(a[1]-a[0]),u=o.scale.getExtent(),h=Math.abs(u[1]-u[0]);r=l?c/h*l:c}else{var d=t.getData();r=Math.abs(a[1]-a[0])/d.count()}var p=$i(t.get("barWidth"),r),f=$i(t.get("barMaxWidth"),r),g=$i(t.get("barMinWidth")||(Dw(t)?.5:1),r),v=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:p,barMaxWidth:f,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:Ow(o),stackId:xw(t)})})),Cw(n)}function Cw(t){var e={};Object(mt["each"])(t,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var c=t.barMaxWidth;c&&(a[s].maxWidth=c);var u=t.barMinWidth;u&&(a[s].minWidth=u);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return Object(mt["each"])(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=Object(mt["keys"])(r).length;o=Math.max(35-4*a,15)+"%"}var s=$i(o,i),l=$i(t.gap,1),c=t.remainedWidth,u=t.autoWidthCount,h=(c-s)/(u+(u-1)*l);h=Math.max(h,0),Object(mt["each"])(r,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,c-=r+l*r,u--}else{var r=h;e&&er&&(r=n),r!==h&&(t.width=r,c-=r+l*r,u--)}})),h=(c-s)/(u+(u-1)*l),h=Math.max(h,0);var d,p=0;Object(mt["each"])(r,(function(t,e){t.width||(t.width=h),d=t,p+=t.width*(1+l)})),d&&(p-=d.width*l);var f=-p/2;Object(mt["each"])(r,(function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}function Mw(t,e,n){if(t&&e){var r=t[Ow(e)];return null!=r&&null!=n?r[xw(n)]:r}}function Tw(t,e){var n=ww(t,e),r=jw(n);Object(mt["each"])(n,(function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=xw(t),a=r[Ow(i)][o],s=a.offset,l=a.width;e.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function kw(t){return{seriesType:t,plan:Ag(),reset:function(t){if(Iw(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=e.getDimensionIndex(e.mapDimension(i.dim)),a=e.getDimensionIndex(e.mapDimension(r.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),c=e.getCalculationInfo("stackResultDimension"),u=GO(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),d=Aw(r,i),p=Dw(t),f=t.get("barMinHeight")||0,g=c&&e.getDimensionIndex(c),v=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(t,e){var r,i=t.count,l=p&&bw(3*i),c=p&&s&&bw(3*i),m=p&&bw(i),b=n.master.getRect(),_=h?b.width:b.height,x=e.getStore(),O=0;while(null!=(r=t.next())){var w=x.get(u?g:o,r),S=x.get(a,r),j=d,C=void 0;u&&(C=+w-x.get(o,r));var M=void 0,T=void 0,k=void 0,I=void 0;if(h){var D=n.dataToPoint([w,S]);if(u){var A=n.dataToPoint([C,S]);j=A[0]}M=j,T=D[1]+y,k=D[0]-j,I=v,Math.abs(k)>>1;t[i][1]n&&(this._approxInterval=n);var o=Nw.length,a=Math.min(Pw(Nw,this._approxInterval,0,o),o-1);this._interval=Nw[a][1],this._minLevelUnit=Nw[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(mt["isNumber"])(t)?t:+so(t)},e.prototype.contain=function(t){return cw(this.parse(t),this._extent)},e.prototype.normalize=function(t){return uw(this.parse(t),this._extent)},e.prototype.scale=function(t){return hw(t,this._extent)},e.type="time",e}(vw),Nw=[["second",Ju],["minute",th],["hour",eh],["quarter-day",6*eh],["half-day",12*eh],["day",1.2*nh],["half-week",3.5*nh],["week",7*nh],["month",31*nh],["quarter",95*nh],["half-year",rh/2],["year",rh]];function Ew(t,e,n,r){var i=so(e),o=so(n),a=function(t){return vh(i,t,r)===vh(o,t,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},c=function(){return l()&&a("day")},u=function(){return c()&&a("hour")},h=function(){return u()&&a("minute")},d=function(){return h()&&a("second")},p=function(){return d()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return c();case"hour":return u();case"minute":return h();case"second":return d();case"millisecond":return p()}}function Rw(t,e){return t/=nh,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Bw(t){var e=30*nh;return t/=e,t>6?6:t>3?3:t>2?2:1}function zw(t){return t/=eh,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Fw(t,e){return t/=e?th:Ju,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Vw(t){return uo(t,!0)}function Hw(t,e,n){var r=new Date(t);switch(uh(e)){case"year":case"month":r[jh(n)](0);case"day":r[Ch(n)](1);case"hour":r[Mh(n)](0);case"minute":r[Th(n)](0);case"second":r[kh(n)](0),r[Ih(n)](0)}return r.getTime()}function Gw(t,e,n,r){var i=1e4,o=lh,a=0;function s(t,e,n,i,o,a,s){var l=new Date(e),c=e,u=l[i]();while(c1&&0===c&&o.unshift({value:o[0].value-d})}}for(c=0;c=r[0]&&m<=r[1]&&h++)}var b=(r[1]-r[0])/e;if(h>1.5*b&&d>b/1.5)break;if(c.push(v),h>b||t===o[p])break}u=[]}}}var _=Object(mt["filter"])(Object(mt["map"])(c,(function(t){return Object(mt["filter"])(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),x=[],O=_.length-1;for(p=0;p<_.length;++p)for(var w=_[p],S=0;S0)r*=10;var o=[Zi($w(e[0]/r)*r),Zi(qw(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){Yw.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Kw(t)/Kw(this.base),cw(t,this._extent)},e.prototype.normalize=function(t){return t=Kw(t)/Kw(this.base),uw(t,this._extent)},e.prototype.scale=function(t){return t=hw(t,this._extent),Zw(this.base,t)},e.type="log",e}(QO),Jw=Qw.prototype;function tS(t,e){return Xw(t,Qi(e))}Jw.getMinorTicks=Yw.getMinorTicks,Jw.getLabel=Yw.getLabel,QO.registerClass(Qw);var eS=Qw,nS=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(a=0),a<0&&s<0&&!c&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,c=!0),{min:a,max:s,minFixed:l,maxFixed:c,isBlank:u}},t.prototype.modifyDataMinMax=function(t,e){this[iS[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=rS[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),rS={min:"_determinedMin",max:"_determinedMax"},iS={min:"_dataMin",max:"_dataMax"};function oS(t,e,n){var r=t.rawExtentInfo;return r||(r=new nS(t,e,n),t.rawExtentInfo=r,r)}function aS(t,e){return null==e?null:Object(mt["eqNaN"])(e)?NaN:t.parse(e)}function sS(t,e){var n=t.type,r=oS(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===n){var s=ww("bar",a),l=!1;if(mt["each"](s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var c=jw(s),u=lS(i,o,e,c);i=u.min,o=u.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function lS(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=Mw(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;mt["each"](a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;mt["each"](a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=e-t,h=1-(s+l)/o,d=u/h-u;return e+=d*(l/c),t-=d*(s/c),{min:t,max:e}}function cS(t,e){var n=e,r=sS(t,n),i=r.extent,o=n.get("splitNumber");t instanceof eS&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function uS(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new pw({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Ww({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(QO.getClass(e)||vw)}}function hS(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function dS(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,r){return t.scale.getFormattedLabel(n,r,e)}}(e):mt["isString"](e)?function(e){return function(n){var r=t.scale.getLabel(n),i=e.replace("{value}",null!=r?r:"");return i}}(e):mt["isFunction"](e)?function(e){return function(r,i){return null!=n&&(i=r.value-n),e(pS(t,r),i,null!=r.level?{level:r.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function pS(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function fS(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();n instanceof pw?i=n.count():(r=n.getTicks(),i=r.length);var a,s=t.getLabelModel(),l=dS(t),c=1;i>40&&(c=Math.ceil(i/40));for(var u=0;un&&(t=i,n=a)}if(t)return DS(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Object(mt["each"])(i,(function(e){"polygon"===e.type?IS(e.exterior,n,r,t):Object(mt["each"])(e.points,(function(e){IS(e,n,r,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new ai(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;r>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function zS(t,e){return t=ES(t),mt["map"](mt["filter"](t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new PS(o[0],o.slice(1)));break;case"MultiPolygon":mt["each"](r.coordinates,(function(t){t[0]&&i.push(new PS(t[0],t.slice(1)))}));break;case"LineString":i.push(new LS([r.coordinates]));break;case"MultiLineString":i.push(new LS(r.coordinates))}var a=new NS(n[e||"name"],i,n.cp);return a.properties=n,a}))}function FS(t,e,n,r,i,o,a,s){var l=new Pl({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var VS=Ho();function HS(t){return"category"===t.type?WS(t):XS(t)}function GS(t,e){return"category"===t.type?YS(t,e):{ticks:mt["map"](t.scale.getTicks(),(function(t){return t.value}))}}function WS(t){var e=t.getLabelModel(),n=US(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function US(t,e){var n,r,i=qS(t,"labels"),o=vS(e),a=$S(i,o);return a||(mt["isFunction"](o)?n=ej(t,o):(r="auto"===o?KS(t):o,n=tj(t,r)),ZS(i,o,{labels:n,labelCategoryInterval:r}))}function YS(t,e){var n,r,i=qS(t,"ticks"),o=vS(e),a=$S(i,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),mt["isFunction"](o))n=ej(t,o,!0);else if("auto"===o){var s=US(t,t.getLabelModel());r=s.labelCategoryInterval,n=mt["map"](s.labels,(function(t){return t.tickValue}))}else r=o,n=tj(t,r,!0);return ZS(i,o,{ticks:n,tickCategoryInterval:r})}function XS(t){var e=t.scale.getTicks(),n=dS(t);return{labels:mt["map"](e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function qS(t,e){return VS(t)[e]||(VS(t)[e]=[])}function $S(t,e){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],c=t.dataToCoord(l+1)-t.dataToCoord(l),u=Math.abs(c*Math.cos(r)),h=Math.abs(c*Math.sin(r)),d=0,p=0;l<=o[1];l+=s){var f=0,g=0,v=di(n({value:l}),e.font,"center","top");f=1.3*v.width,g=1.3*v.height,d=Math.max(d,f,7),p=Math.max(p,g,7)}var y=d/u,m=p/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var b=Math.max(0,Math.floor(Math.min(y,m))),_=VS(t.model),x=t.getExtent(),O=_.lastAutoInterval,w=_.lastTickCount;return null!=O&&null!=w&&Math.abs(O-b)<=1&&Math.abs(w-a)<=1&&O>b&&_.axisExtent0===x[0]&&_.axisExtent1===x[1]?b=O:(_.lastTickCount=a,_.lastAutoInterval=b,_.axisExtent0=x[0],_.axisExtent1=x[1]),b}function JS(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function tj(t,e,n){var r=dS(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),c=o[0],u=i.count();0!==c&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var h=yS(t),d=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;d&&c!==o[0]&&g(o[0]);for(var f=c;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return p&&f-l!==o[1]&&g(o[1]),s}function ej(t,e,n){var r=t.scale,i=dS(t),o=[];return mt["each"](r.getTicks(),(function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})})),o}var nj=[0,1],rj=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return to(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&(n=n.slice(),ij(n,r.count())),qi(t,nj,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),ij(n,r.count()));var i=qi(t,n,nj,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=GS(this,e),r=n.ticks,i=Object(mt["map"])(r,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),o=e.get("alignWithLabel");return oj(this,i,o,t.clamp),i},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),r=Object(mt["map"])(n,(function(t){return Object(mt["map"])(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return r},t.prototype.getViewLabels=function(){return HS(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return QS(this)},t}();function ij(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function oj(t,e,n,r){var i=e.length;if(t.onBand&&!n&&i){var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],o=e[1]={coord:s[0]};else{var l=e[i-1].tickValue-e[0].tickValue,c=(e[i-1].coord-e[0].coord)/l;Object(mt["each"])(e,(function(t){t.coord-=c/2}));var u=t.scale.getExtent();a=1+u[1]-e[i-1].tickValue,o={coord:e[i-1].coord+c*a},e.push(o)}var h=s[0]>s[1];d(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift()),r&&d(s[0],e[0].coord)&&e.unshift({coord:s[0]}),d(s[1],o.coord)&&(r?o.coord=s[1]:e.pop()),r&&d(o.coord,s[1])&&e.push({coord:s[1]})}function d(t,e){return t=Zi(t),e=Zi(e),h?t>e:ti&&(i+=hj);var p=Math.atan2(s,a);if(p<0&&(p+=hj),p>=r&&p<=i||p+hj>=r&&p+hj<=i)return l[0]=u,l[1]=h,c-n;var f=n*Math.cos(r)+t,g=n*Math.sin(r)+e,v=n*Math.cos(i)+t,y=n*Math.sin(i)+e,m=(f-a)*(f-a)+(g-s)*(g-s),b=(v-a)*(v-a)+(y-s)*(y-s);return m0){e=e/180*Math.PI,xj.fromArray(t[0]),Oj.fromArray(t[1]),wj.fromArray(t[2]),Zr.sub(Sj,xj,Oj),Zr.sub(jj,wj,Oj);var n=Sj.len(),r=jj.len();if(!(n<.001||r<.001)){Sj.scale(1/n),jj.scale(1/r);var i=Sj.dot(jj),o=Math.cos(e);if(o1&&Zr.copy(Tj,wj),Tj.toArray(t[1])}}}}function Ij(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function Dj(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Et(r[0],r[1]),o=Et(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=Ft([],r[1],r[0],a/i),l=Ft([],r[1],r[2],a/o),c=Ft([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var u=1;u0&&o&&O(-h/a,0,a);var v,y,m=t[0],b=t[a-1];return _(),v<0&&w(-v,.8),y<0&&w(y,.8),_(),x(v,y,1),x(y,v,-1),_(),v<0&&S(-v),y<0&&S(y),c}function _(){v=m.rect[e]-r,y=i-b.rect[e]-b.rect[n]}function x(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){O(r*n,0,a);var i=r+t;i<0&&w(-i*n,1)}else w(-t*n,1)}}function O(n,r,i){0!==n&&(c=!0);for(var o=r;o0)for(l=0;l0;l--){d=o[l-1]*h;O(-d,l,a)}}}function S(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r0?O(n,0,r+1):O(-n,a-r-1,a),t-=n,t<=0)return}}function Ej(t,e,n,r){return Nj(t,"x","width",e,n,r)}function Rj(t,e,n,r){return Nj(t,"y","height",e,n,r)}function Bj(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new ai(0,0,0,0);function r(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var i=0;i=0&&n.attr(i.oldLayoutSelect),Object(mt["indexOf"])(u,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Qc(n,l,e,s)}else if(n.attr(l),!_u(n).valueAnimation){var h=Object(mt["retrieve2"])(n.style.opacity,1);n.style.opacity=0,Jc(n,{style:{opacity:h}},e,s)}if(i.oldLayout=l,n.states.select){var d=i.oldLayoutSelect={};Uj(d,l,Yj),Uj(d,n.states.select,Yj)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};Uj(p,l,Yj),Uj(p,n.states.emphasis,Yj)}Ou(n,s,c,e,e)}if(r&&!r.ignore&&!r.invisible){i=Wj(r),o=i.oldLayout;var f={points:r.shape.points};o?(r.attr({shape:o}),Qc(r,{shape:f},e)):(r.setShape(f),r.style.strokePercent=0,Jc(r,{style:{strokePercent:1}},e)),i.oldLayout=f}},t}(),qj=Xj,$j=Ho();function Zj(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var r=$j(e).labelManager;r||(r=$j(e).labelManager=new qj),r.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=$j(e).labelManager;n.updatedSeries.forEach((function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}Kx(Zj);var Kj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return vt(e,t),e.prototype.getInitialData=function(t){return ZO(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new Pi,n=cb("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*t.itemHeight,s=cb(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?i:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(kg),Qj=Kj;function Jj(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=af(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a=0&&r.push(e[o])}return r.join(" ")}var eC=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return vt(e,t),e.prototype._createSymbol=function(t,e,n,r,i){this.removeAll();var o=cb(t,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=nC,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){bc(this.childAt(0))},e.prototype.downplay=function(){_c(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,c=i&&i.disableAnimation;if(l){var u=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,u)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};c?h.attr(d):Qc(h,d,a,n),iu(h)}if(this._updateCommon(t,n,s,r,i),l){h=this.childAt(0);if(!c){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Jc(h,d,a,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,c,u,h,d,p,f=this.childAt(0),g=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,c=r.blurScope,h=r.labelStatesModels,d=r.hoverScale,p=r.cursorStyle,u=r.emphasisDisabled),!r||t.hasItemOption){var v=r&&r.itemModel?r.itemModel:t.getItemModel(e),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),c=y.get("blurScope"),u=y.get("disabled"),h=uu(v),d=y.getShallow("scale"),p=v.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var b=hb(t.getItemVisual(e,"symbolOffset"),n);b&&(f.x=b[0],f.y=b[1]),p&&f.attr("cursor",p);var _=t.getItemVisual(e,"style"),x=_.fill;if(f instanceof al){var O=f.style;f.useStyle(Object(mt["extend"])({image:O.image,x:O.x,y:O.y,width:O.width,height:O.height},_))}else f.__isEmptyBrush?f.useStyle(Object(mt["extend"])({},_)):f.useStyle(_),f.style.decal=null,f.setColor(x,i&&i.symbolInnerColor),f.style.strokeNoScale=!0;var w=t.getItemVisual(e,"liftZ"),S=this._z2;null!=w?null==S&&(this._z2=f.z2,f.z2+=w):null!=S&&(f.z2=S,this._z2=null);var j=i&&i.useNameLabel;function C(e){return j?t.getName(e):Jj(t,e)}cu(f,h,{labelFetcher:g,labelDataIndex:e,defaultText:C,inheritColor:x,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=f.ensureState("emphasis");if(M.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a,d){var T=Math.max(Object(mt["isNumber"])(d)?d:1.1,3/this._sizeY);M.scaleX=this._sizeX*T,M.scaleY=this._sizeY*T}this.setSymbolScale(1),Bc(this,l,c,u)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=Ll(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&eu(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();eu(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return ub(t.getItemVisual(e,"symbolSize"))},e}(Pi);function nC(t,e){this.parent.drift(t,e)}var rC=eC;function iC(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function oC(t){return null==t||Object(mt["isObject"])(t)||(t={isIgnore:t}),t||{}}function aC(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:uu(e),cursorStyle:e.get("cursor")}}var sC=function(){function t(t){this.group=new Pi,this._SymbolCtor=t||rC}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=oC(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=aC(t),l={disableAnimation:a},c=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add((function(r){var i=c(r);if(iC(t,i,r,e)){var a=new o(t,r,s,l);a.setPosition(i),t.setItemGraphicEl(r,a),n.add(a)}})).update((function(u,h){var d=i.getItemGraphicEl(h),p=c(u);if(iC(t,p,u,e)){var f=t.getItemVisual(u,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),d=new o(t,u,s,l),d.setPosition(p);else{d.updateData(t,u,s,l);var v={x:p[0],y:p[1]};a?d.attr(v):Qc(d,v,r)}n.add(d),t.setItemGraphicEl(u,d)}else n.remove(d)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),r)})).execute(),this._getSymbolPoint=c,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=aC(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=oC(n);for(var i=t.start;i0?n=r[0]:r[1]<0&&(n=r[1]),n}function hC(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}function dC(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function pC(t,e,n,r,i,o,a,s){for(var l=dC(t,e),c=[],u=[],h=[],d=[],p=[],f=[],g=[],v=cC(i,e,a),y=t.getLayout("points")||[],m=e.getLayout("points")||[],b=0;b=i||g<0)break;if(vC(y,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,m),h=y,d=m;else{var b=y-c,_=m-u;if(b*b+_*_<.5){g+=o;continue}if(a>0){var x=g+o,O=e[2*x],w=e[2*x+1];while(O===y&&w===m&&v=r||vC(O,w))p=y,f=m;else{C=O-c,M=w-u;var I=y-c,D=O-y,A=m-u,P=w-m,L=void 0,N=void 0;if("x"===s){L=Math.abs(I),N=Math.abs(D);var E=C>0?1:-1;p=y-E*L*a,f=m,T=y+E*N*a,k=m}else if("y"===s){L=Math.abs(A),N=Math.abs(P);var R=M>0?1:-1;p=y,f=m-R*L*a,T=y,k=m+R*N*a}else L=Math.sqrt(I*I+A*A),N=Math.sqrt(D*D+P*P),j=N/(N+L),p=y-C*a*(1-j),f=m-M*a*(1-j),T=y+C*a*j,k=m+M*a*j,T=fC(T,gC(O,y)),k=fC(k,gC(w,m)),T=gC(T,fC(O,y)),k=gC(k,fC(w,m)),C=T-y,M=k-m,p=y-C*L/N,f=m-M*L/N,p=fC(p,gC(c,y)),f=fC(f,gC(u,m)),p=gC(p,fC(c,y)),f=gC(f,fC(u,m)),C=y-p,M=m-f,T=y+C*N/L,k=m+M*N/L}t.bezierCurveTo(h,d,p,f,y,m),h=T,d=k}else t.lineTo(y,m)}c=y,u=m,g+=o}return v}var mC=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),bC=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return vt(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new mC},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0;i--)if(!vC(n[2*i-2],n[2*i-1]))break;for(;r=0){var m=s?(d-r)*y+r:(h-n)*y+n;return s?[t,m]:[m,t]}n=h,r=d;break;case a.C:h=o[c++],d=o[c++],p=o[c++],f=o[c++],g=o[c++],v=o[c++];var b=s?dn(n,h,p,g,t,l):dn(r,d,f,v,t,l);if(b>0)for(var _=0;_=0){m=s?un(r,d,f,v,x):un(n,h,p,g,x);return s?[t,m]:[m,t]}}n=g,r=v;break}}},e}(Qs),_C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vt(e,t),e}(mC),xC=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return vt(e,t),e.prototype.getDefaultShape=function(){return new _C},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0;o--)if(!vC(n[2*o-2],n[2*o-1]))break;for(;ie){r?i.push(a(r,l,e)):n&&i.push(a(n,l,0),a(n,l,e));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}function PC(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count()&&"cartesian2d"===e.type){for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,"x"===i||"y"===i){o=r[a];break}}if(o){var l=e.getAxis(i),c=mt["map"](o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),u=c.length,h=o.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),h.reverse());var d=AC(c,"x"===i?n.getWidth():n.getHeight()),p=d.length;if(!p&&u)return c[0].coord<0?h[1]?h[1]:c[u-1].color:h[0]?h[0]:c[0].color;var f=10,g=d[0].coord-f,v=d[p-1].coord+f,y=v-g;if(y<.001)return"transparent";mt["each"](d,(function(t){t.offset=(t.coord-g)/y})),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var m=new ty(0,0,0,0,d,!0);return m[i]=g,m[i+"2"]=v,m}}}function LC(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!NC(o,e))){var a=e.mapDimension(o.dim),s={};return mt["each"](o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function NC(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;ar)return!1;return!0}function EC(t,e){return isNaN(t)||isNaN(e)}function RC(t){for(var e=t.length/2;e>0;e--)if(!EC(t[2*e-2],t[2*e-1]))break;return e-1}function BC(t,e){return[t[2*e],t[2*e+1]]}function zC(t,e,n){for(var r,i,o=t.length/2,a="x"===n?0:1,s=0,l=-1,c=0;c=e||r>=e&&i<=e){l=c;break}s=c,r=i}else r=i;return{range:[s,l],t:(e-r)/(i-r)}}function FC(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var L=p.getState("emphasis").style;L.lineWidth=+p.style.lineWidth+1}Ll(p).seriesIndex=t.seriesIndex,Bc(p,D,A,P);var N=kC(t.get("smooth")),E=t.get("smoothMonotone");if(p.setShape({smooth:N,smoothMonotone:E,connectNulls:O}),f){var R=a.getCalculationInfo("stackedOnSeries"),B=0;f.useStyle(mt["defaults"](l.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),R&&(B=kC(R.get("smooth"))),f.setShape({smooth:N,stackedOnSmooth:B,smoothMonotone:E,connectNulls:O}),Hc(f,t,"areaStyle"),Ll(f).seriesIndex=t.seriesIndex,Bc(f,D,A,P)}var z=function(t){r._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=i,this._stackedOnPoints=_,this._points=c,this._step=C,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,p),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){Ll(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=Vo(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],c=a[2*o+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var u=t.get("zlevel"),h=t.get("z");s=new rC(i,o),s.x=l,s.y=c,s.setZ(u,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=u,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Qy.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=Vo(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Qy.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;uc(this._polyline,t),e&&uc(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new bC({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new xC({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(r=o.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===o.dim,i=!0);var s=t.hostModel,l=s.get("animationDuration");mt["isFunction"](l)&&(l=l(null));var c=s.get("animationDelay")||0,u=mt["isFunction"](c)?c(null):c;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],d=void 0,p=void 0,f=void 0;if(n)if(i){var g=n,v=e.pointToCoord(h);r?(d=g.startAngle,p=g.endAngle,f=-v[1]/180*Math.PI):(d=g.r0,p=g.r,f=v[0])}else{var y=n;r?(d=y.x,p=y.x+y.width,f=t.x):(d=y.y+y.height,p=y.y,f=t.y)}var m=p===d?0:(f-d)/(p-d);a&&(m=1-m);var b=mt["isFunction"](c)?c(o):l*m+u,_=s.getSymbolPath(),x=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:b}),_.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if(FC(t)){var i=t.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new Pl({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=RC(a);l>=0&&(cu(o,uu(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?tC(i,n):Jj(i,t)},enableTextSetter:!0},HC(r,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var c=n.getLayout("points"),u=n.hostModel,h=u.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,y=e.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,b=(g?p:0)*(v?-1:1),_=(g?0:-p)*(v?-1:1),x=g?"x":"y",O=zC(c,m,x),w=O.range,S=w[1]-w[0],j=void 0;if(S>=1){if(S>1&&!h){var C=BC(c,w[0]);s.attr({x:C[0]+b,y:C[1]+_}),i&&(j=u.getRawValue(w[0]))}else{C=l.getPointOn(m,x);C&&s.attr({x:C[0]+b,y:C[1]+_});var M=u.getRawValue(w[0]),T=u.getRawValue(w[1]);i&&(j=Ko(n,d,M,T,O.t))}r.lastFrameIndex=w[0]}else{var k=1===t||r.lastFrameIndex>0?w[0]:0;C=BC(c,k);i&&(j=u.getRawValue(k)),s.attr({x:C[0]+b,y:C[1]+_})}i&&_u(s).setLabelText(j)}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var s=this._polyline,l=this._polygon,c=t.hostModel,u=pC(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),h=u.current,d=u.stackedOnCurrent,p=u.next,f=u.stackedOnNext;if(i&&(h=DC(u.current,n,i,a),d=DC(u.stackedOnCurrent,n,i,a),p=DC(u.next,n,i,a),f=DC(u.stackedOnNext,n,i,a)),TC(h,p)>3e3||l&&TC(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=u.current,s.shape.points=h;var g={shape:{points:p}};u.current!==h&&(g.shape.__points=u.next),s.stopAnimation(),Qc(s,g,c),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),Qc(l,{shape:{stackedOnPoints:f}},c),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=u.status,m=0;me&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),c=s.getExtent(),u=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(u||1),d=Math.round(a/h);if(isFinite(d)&&d>1){"lttb"===i&&t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/d));var p=void 0;Object(mt["isString"])(i)?p=YC[i]:Object(mt["isFunction"])(i)&&(p=i),p&&t.setData(r.downSample(r.mapDimension(l.dim),1/d,p,XC))}}}}}function $C(t){t.registerChartView(WC),t.registerSeriesModel(Qj),t.registerLayout(UC("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,qC("line"))}var ZC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return vt(e,t),e.prototype.getInitialData=function(t,e){return ZO(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e&&e.clampData){var n=e.dataToPoint(e.clampData(t)),r=this.getData(),i=r.getLayout("offset"),o=r.getLayout("size"),a=e.getBaseAxis().isHorizontal()?0:1;return n[a]+=i+o/2,n}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(kg);kg.registerClass(ZC);var KC=ZC,QC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return vt(e,t),e.prototype.getInitialData=function(){return ZO(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Fu(KC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(KC),JC=QC,tM=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),eM=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return vt(e,t),e.prototype.getDefaultShape=function(){return new tM},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,l=e.startAngle,c=e.endAngle,u=e.clockwise,h=2*Math.PI,d=u?c-lMath.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),t.setTextConfig({rotation:u})}}function oM(t,e,n){return e*Math.sin(t)*(n?-1:1)}function aM(t,e,n){return e*Math.cos(t)*(n?1:-1)}var sM=Math.max,lM=Math.min;function cM(t,e){var n=t.getArea&&t.getArea();if(jC(t,"cartesian2d")){var r=t.getBaseAxis();if("category"!==r.type||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}var uM=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return vt(e,t),e.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){Gy(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,r){var i,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?i=c.isHorizontal():"polar"===l.type&&(i="angle"===c.dim);var u=t.isAnimationEnabled()?t:null,h=pM(t,l);h&&this._enableRealtimeSort(h,a,n);var d=t.get("clip",!0)||h,p=cM(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),y=v.get("borderRadius")||0,m=[],b=this._backgroundEls,_=r&&r.isInitSort,x=r&&"changeAxisOrder"===r.type;function O(t){var e=bM[l.type](a,t),n=IM(l,i,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",y),m[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),r=bM[l.type](a,e,n);if(g&&O(e),a.hasValue(e)&&mM[l.type](r)){var s=!1;d&&(s=hM[l.type](p,r));var v=dM[l.type](t,a,e,r,i,u,c.model,!1,f);h&&(v.forceLabelAnimation=!0),OM(v,a,e,n,r,t,i,"polar"===l.type),_?v.attr({shape:r}):h?fM(h,u,v,r,e,i,!1,!1):Jc(v,{shape:r},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}})).update((function(e,n){var r=a.getItemModel(e),w=bM[l.type](a,e,r);if(g){var S=void 0;0===b.length?S=O(n):(S=b[n],S.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&S.setShape("r",y),m[e]=S);var j=bM[l.type](a,e),C=kM(i,j,l);Qc(S,{shape:C},u,e)}var M=s.getItemGraphicEl(n);if(a.hasValue(e)&&mM[l.type](w)){var T=!1;if(d&&(T=hM[l.type](p,w),T&&o.remove(M)),M?iu(M):M=dM[l.type](t,a,e,w,i,u,c.model,!!M,f),h&&(M.forceLabelAnimation=!0),x){var k=M.getTextContent();if(k){var I=_u(k);null!=I.prevValue&&(I.prevValue=I.value)}}else OM(M,a,e,r,w,t,i,"polar"===l.type);_?M.attr({shape:w}):h?fM(h,u,M,w,e,i,!0,x):Qc(M,{shape:w},t,e,null),a.setItemGraphicEl(e,M),M.ignore=T,o.add(M)}else o.remove(M)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&ru(n,t,e)})).execute();var w=this._backgroundGroup||(this._backgroundGroup=new Pi);w.removeAll();for(var S=0;So)return!0;o=c}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){ru(e,t,Ll(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Qy),hM={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=sM(e.x,t.x),s=lM(e.x+e.width,i),l=sM(e.y,t.y),c=lM(e.y+e.height,o),u=si?s:a,e.y=h&&l>o?c:l,e.width=u?0:s-a,e.height=h?0:c-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),u||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=lM(e.r,t.r),o=sM(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){r=e.r;e.r=e.r0,e.r0=r}return a}},dM={cartesian2d:function(t,e,n,r,i,o,a,s,l){var c=new gl({shape:Object(mt["extend"])({},r),z2:1});if(c.__dataIndex=n,c.name="item",o){var u=c.shape,h=i?"height":"width";u[h]=0}return c},polar:function(t,e,n,r,i,o,a,s,l){var c=!i&&l?nM:jv,u=new c({shape:r,z2:1});u.name="item";var h=xM(i);if(u.calculateTextPosition=rM(h,{isRoundCap:c===nM}),o){var d=u.shape,p=i?"r":"endAngle",f={};d[p]=i?0:r.startAngle,f[p]=r[p],(s?Qc:Jc)(u,{shape:f},o)}return u}};function pM(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===e.type)return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function fM(t,e,n,r,i,o,a,s){var l,c;o?(c={x:r.x,width:r.width},l={y:r.y,height:r.height}):(c={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?Qc:Jc)(n,{shape:l},e,i,null);var u=e?t.baseAxis.model:null;(a?Qc:Jc)(n,{shape:c},u,i)}function gM(t,e){for(var n=0;n0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function _M(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function xM(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function OM(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",r.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var c=r.getShallow("cursor");c&&t.attr("cursor",c);var u=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",h=uu(r);cu(t,h,{labelFetcher:o,labelDataIndex:n,defaultText:Jj(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:u});var d=t.getTextContent();if(s&&d){var p=r.get(["label","position"]);t.textConfig.inside="middle"===p||null,iM(t,"outside"===p?u:p,xM(a),r.get(["label","rotate"]))}xu(d,h,o.getRawValue(n),(function(t){return tC(e,t)}));var f=r.getModel(["emphasis"]);Bc(t,f.get("focus"),f.get("blurScope"),f.get("disabled")),Hc(t,r),_M(i)&&(t.style.fill="none",t.style.stroke="none",Object(mt["each"])(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function wM(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}var SM=function(){function t(){}return t}(),jM=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return vt(e,t),e.prototype.getDefaultShape=function(){return new SM},e.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?n:null}),30,!1);function TM(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],c=t.barWidth,u=0,h=o.length/3;u=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[u]}return-1}function kM(t,e,n){if(jC(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}i=n.getArea();var o=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}function IM(t,e,n){var r="polar"===t.type?jv:gl;return new r({shape:kM(e,n,t),silent:!0,z2:0})}var DM=uM;function AM(t){t.registerChartView(DM),t.registerSeriesModel(JC),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,mt["curry"](Tw,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,kw("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,qC("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var PM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return vt(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(od),LM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return vt(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,i=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=mt["retrieve2"](t.get("textBaseline"),t.get("textVerticalAlign")),l=new Pl({style:hu(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),c=l.getBoundingRect(),u=t.get("subtext"),h=new Pl({style:hu(o,{text:u,fill:o.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!d&&!f,h.silent=!p&&!f,d&&l.on("click",(function(){Uh(d,"_"+t.get("target"))})),p&&h.on("click",(function(){Uh(p,"_"+t.get("subtarget"))})),Ll(l).eventData=Ll(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(l),u&&r.add(h);var g=r.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var y=Kh(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),r.x=y.x,r.y=y.y,r.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),h.setStyle(m),g=r.getBoundingRect();var b=y.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var x=new gl({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});r.add(x)}},e.type="title",e}(Dg);function NM(t){t.registerComponentModel(PM),t.registerComponentView(LM)}function EM(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return RM(n,t,e),n.seriesInvolved&&zM(n,t),n}function RM(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];Object(mt["each"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=YM(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var c=n.model,u=c.getModel("tooltip",r);if(Object(mt["each"])(n.getAxes(),Object(mt["curry"])(f,!1,null)),n.getTooltipAxes&&r&&u.get("show")){var h="axis"===u.get("trigger"),d="cross"===u.get(["axisPointer","type"]),p=n.getTooltipAxes(u.get(["axisPointer","axis"]));(h||d)&&Object(mt["each"])(p.baseAxes,Object(mt["curry"])(f,!d||"cross",h)),d&&Object(mt["each"])(p.otherAxes,Object(mt["curry"])(f,"cross",!1))}}function f(r,s,c){var h=c.model.getModel("axisPointer",i),d=h.get("show");if(d&&("auto"!==d||r||UM(h))){null==s&&(s=h.get("triggerTooltip")),h=r?BM(c,u,i,e,r,s):h;var p=h.get("snap"),f=YM(c.model),g=s||p||"category"===c.type,v=t.axesInfo[f]={key:f,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:p,useHandle:UM(h),seriesModels:[],linkGroup:null};l[f]=v,t.seriesInvolved=t.seriesInvolved||g;var y=FM(o,c);if(null!=y){var m=a[y]||(a[y]={axesInfo:{}});m.axesInfo[f]=v,m.mapper=o[y].mapper,v.linkGroup=m}}}}))}function BM(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(mt["each"])(s,(function(t){l[t]=Object(mt["clone"])(a.get(t))})),l.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(l.type="line");var c=l.label||(l.label={});if(null==c.show&&(c.show=!1),"cross"===i){var u=a.get(["label","show"]);if(c.show=null==u||u,!o){var h=l.lineStyle=a.get("crossStyle");h&&Object(mt["defaults"])(c,h.textStyle)}}return t.model.getModel("axisPointer",new Nu(l,n,r))}function zM(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==e.get(["axisPointer","show"],!0)&&Object(mt["each"])(t.coordSysAxesInfo[YM(n.model)],(function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function FM(t,e){for(var n=e.model,r=e.dim,i=0;i=0||t===e}function HM(t){var e=GM(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=UM(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),aa)return!0;if(o){var s=GM(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var o=ZM(t).pointerEl=new a[i.type](KM(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=ZM(t).labelEl=new Pl(KM(e.label));t.add(i),nT(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=ZM(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=ZM(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),nT(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=Ey(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){ge(t.event)},onmousedown:QM(this._onHandleDragMove,this,0,0),drift:QM(this._onHandleDragMove,this),ondragend:QM(this._onHandleDragEnd,this)}),r.add(i)),iT(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");mt["isArray"](s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,rm(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){tT(this._axisPointerModel,!e&&this._moveAnimation,this._handle,rT(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(rT(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(rT(r)),ZM(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),im(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function tT(t,e,n,r){eT(ZM(n).lastProp,r)||(ZM(n).lastProp=r,e?Qc(n,r,t):(n.stopAnimation(),n.attr(r)))}function eT(t,e){if(mt["isObject"](t)&&mt["isObject"](e)){var n=!0;return mt["each"](e,(function(e,r){n=n&&eT(t[r],e)})),!!n}return t===e}function nT(t,e){t[e.get(["label","show"])?"show":"hide"]()}function rT(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function iT(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}var oT=JM,aT=Math.PI,sT=function(){function t(t,e){this.group=new Pi,this.opt=e,this.axisModel=t,Object(mt["defaults"])(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Pi({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!lT[t]},t.prototype.add=function(t){lT[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var r,i,o=io(e-t);return oo(o)?(i=n>0?"top":"bottom",r="center"):oo(o-aT)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),lT={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if("auto"===i&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0];a&&(Vt(s,s,a),Vt(l,l,a));var c=Object(mt["extend"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),u=new Fv({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});u.anid="line",n.add(u);var h=e.get(["axisLine","symbol"]);if(null!=h){var d=e.get(["axisLine","symbolSize"]);Object(mt["isString"])(h)&&(h=[h,h]),(Object(mt["isString"])(d)||Object(mt["isNumber"])(d))&&(d=[d,d]);var p=hb(e.get(["axisLine","symbolOffset"])||0,d),f=d[0],g=d[1];Object(mt["each"])([{rotate:t.rotation+Math.PI/2,offset:p[0],r:0},{rotate:t.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,r){if("none"!==h[r]&&null!=h[r]){var i=cb(h[r],-f/2,-g/2,f,g,c.stroke,!0),o=e.r+e.offset;i.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,r){var i=gT(n,r,e,t),o=yT(n,r,e,t);if(uT(e,o,i),vT(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=Lj(Object(mt["map"])(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));Bj(a)}},axisName:function(t,e,n,r){var i=Object(mt["retrieve"])(t.axisName,e.get("name"));if(i){var o,a,s=e.get("nameLocation"),l=t.nameDirection,c=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,h=e.axis.getExtent(),d=h[0]>h[1]?-1:1,p=["start"===s?h[0]-d*u:"end"===s?h[1]+d*u:(h[0]+h[1])/2,pT(s)?t.labelOffset+l*u:0],f=e.get("nameRotate");null!=f&&(f=f*aT/180),pT(s)?o=sT.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=cT(t.rotation,s,f||0,h),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=c.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,m=Object(mt["retrieve"])(t.nameTruncateMaxWidth,v.maxWidth,a),b=new Pl({x:p[0],y:p[1],rotation:o.rotation,silent:sT.isLabelSilent(e),style:hu(c,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:c.get("align")||o.textAlign,verticalAlign:c.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Vy({el:b,componentModel:e,itemName:i}),b.__fullText=i,b.anid="name",e.get("triggerEvent")){var _=sT.makeAxisEventDataBase(e);_.targetType="axisName",_.name=i,Ll(b).eventData=_}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function cT(t,e,n,r){var i,o,a=io(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;return oo(a-aT/2)?(o=l?"bottom":"top",i="center"):oo(a-1.5*aT)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*aT&&a>aT/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function uT(t,e,n){if(!yS(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],c=n[0],u=n[1],h=n[n.length-1],d=n[n.length-2];!1===r?(hT(o),hT(c)):dT(o,a)&&(r?(hT(a),hT(u)):(hT(o),hT(c))),!1===i?(hT(s),hT(h)):dT(l,s)&&(i?(hT(l),hT(d)):(hT(s),hT(h)))}}function hT(t){t&&(t.ignore=!0)}function dT(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=Ir([]);return Lr(i,i,-t.rotation),n.applyTransform(Ar([],i,t.getLocalTransform())),r.applyTransform(Ar([],i,e.getLocalTransform())),n.intersect(r)}}function pT(t){return"middle"===t||"center"===t}function fT(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){UT("axisPointer",e)},e.prototype.dispose=function(t,e){UT("axisPointer",e)},e.type="axisPointer",e}(Dg),XT=YT;function qT(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=Vo(o,t);if(null==a||a<0||mt["isArray"](a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c),h=u.dim,d=c.dim,p="x"===h||"radius"===h?1:0,f=o.mapDimension(d),g=[];g[p]=o.get(f,a),g[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(o.getValues(mt["map"](l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:s}}var $T=Ho();function ZT(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||Object(mt["bind"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){ak(i)&&(i=qT({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=ak(i),c=o.axesInfo,u=s.axesInfo,h="leave"===r||ak(i),d={},p={},f={list:[],map:{}},g={showPointer:Object(mt["curry"])(JT,p),showTooltip:Object(mt["curry"])(tk,f)};Object(mt["each"])(s.coordSysMap,(function(t,e){var n=l||t.containPoint(i);Object(mt["each"])(s.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=ik(c,t);if(!h&&n&&(!c||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&KT(t,a,g,!1,d)}}))}));var v={};return Object(mt["each"])(u,(function(t,e){var n=t.linkGroup;n&&!p[e]&&Object(mt["each"])(n.axesInfo,(function(e,r){var i=p[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,ok(e),ok(t)))),v[t.key]=o}}))})),Object(mt["each"])(v,(function(t,e){KT(u[e],t,g,!0,d)})),ek(p,u,d),nk(f,i,t,a),rk(u,a,n),d}}function KT(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=QT(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&Object(mt["extend"])(i,s[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function QT(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return Object(mt["each"])(e.seriesModels,(function(e,l){var c,u,h=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);u=d.dataIndices,c=d.nestestValue}else{if(u=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!u.length)return;c=e.getData().get(h[0],u[0])}if(null!=c&&isFinite(c)){var p=t-c,f=Math.abs(p);f<=a&&((f=0&&s<0)&&(a=f,s=p,i=c,o.length=0),Object(mt["each"])(u,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}function JT(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function tk(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,c=YM(l),u=t.map[c];u||(u=t.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(u)),u.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function ek(t,e,n){var r=n.axesInfo=[];Object(mt["each"])(e,(function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}function nk(t,e,n,r){if(!ak(e)&&t.list.length){var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}else r({type:"hideTip"})}function rk(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=$T(r)[i]||{},a=$T(r)[i]={};Object(mt["each"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&Object(mt["each"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];Object(mt["each"])(o,(function(t,e){!a[e]&&l.push(t)})),Object(mt["each"])(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function ik(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function ok(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function ak(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function sk(t){$M.registerAxisPointerClass("CartesianAxisPointer",LT),t.registerComponentModel(ET),t.registerComponentView(XT),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(mt["isArray"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=EM(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},ZT)}var lk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return vt(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(od),ck=lk;function uk(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function hk(t){if(yt["a"].domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n-1?(l+="top:50%",c+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var u=o*Math.PI/180,h=s+i,d=h*Math.abs(Math.cos(u))+h*Math.abs(Math.sin(u)),p=Math.round(100*((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-h)/2))/100;l+=";"+a+":-"+p+"px";var f=e+" solid "+i+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;",l+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+r+";"];return'
'}function xk(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=yt["a"].transformSupported?","+yk+r:",left"+r+",top"+r),vk+":"+i}function Ok(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!yt["a"].transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=yt["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+yk+":"+a+";":[["top",0],["left",0],[dk,a]]}function wk(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),Object(mt["each"])(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}function Sk(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),u=t.getModel("textStyle"),h=pg(t,"html"),d=l+"px "+c+"px "+a+"px "+s;return r.push("box-shadow:"+d),e&&i&&r.push(xk(i,n)),o&&r.push("background-color:"+o),Object(mt["each"])(["width","color","radius"],(function(e){var n="border-"+e,i=Ah(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(wk(u)),null!=h&&r.push("padding:"+Ph(h).join("px ")+"px"),r.join(";")+";"}function jk(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&te(t,a,document.body,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var Ck=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,yt["a"].wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;jk(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(r):t.appendChild(r),this._container=t;var a=this;r.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},r.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler,n=i.painter.getViewportRoot();he(n,t,!0),e.dispatch("mousemove",t)}},r.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=gk(e,"position"),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=mk+Sk(t,!this._firstShow,this._longHide)+Ok(i[0],i[1],!0)+"border-color:"+Wh(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null!=t){var a="";if(Object(mt["isString"])(i)&&"item"===n.get("trigger")&&!uk(n)&&(a=_k(n,r,i)),Object(mt["isString"])(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(mt["isArray"])(t)||(t=[t]);for(var s=0;s=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,r=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!yt["a"].node&&n.getDom()){var i=Ek(r,n);this._ticket="";var o=r.dataByCoordSys,a=Vk(r,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=Pk;l.x=r.x,l.y=r.y,l.update(),Ll(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var c=qT(r,e),u=c.point[0],h=c.point[1];null!=u&&null!=h&&this._tryShow({offsetX:u,offsetY:h,target:c.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(Ek(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s){var l=s.getData(),c=Nk([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===c.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,r=this._tooltipModel;if(r){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var o,a;this._lastDataByCoordSys=null,$m(n,(function(t){return null!=Ll(t).dataIndex?(o=t,!0):null!=Ll(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(mt["bind"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=Nk([e.tooltipOption],r),a=this._renderMode,s=[],l=Jf("section",{blocks:[],noHeader:!0}),c=[],u=new fg;Object(mt["each"])(t,(function(t){Object(mt["each"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=OT(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=Jf("section",{header:o,noHeader:!Object(mt["trim"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Object(mt["each"])(t.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=d.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=pS(e.axis,{value:i}),f.axisValueLabel=o,f.marker=u.makeTooltipMarker("item",Wh(f.color),a);var g=cf(d.formatTooltip(p,!0,null)),v=g.frag;if(v){var y=Nk([d],r).get("valueFormatter");h.blocks.push(y?Object(mt["extend"])({valueFormatter:y},v):v)}g.text&&c.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),c.reverse();var h=e.position,d=o.get("order"),p=og(l,u,a,d,n.get("useUTC"),o.get("textStyle"));p&&c.unshift(p);var f="richText"===a?"\n\n":"
",g=c.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],h,null,u)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=Ll(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,c=i.dataType,u=s.getData(c),h=this._renderMode,d=t.positionDefault,p=Nk([u.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,c),v=new fg;g.marker=v.makeTooltipMarker("item",Wh(g.color),h);var y=cf(s.formatTooltip(l,!1,c)),m=p.get("order"),b=p.get("valueFormatter"),_=y.frag,x=_?og(b?Object(mt["extend"])({valueFormatter:b},_):_,v,h,m,r.get("useUTC"),p.get("textStyle")):y.text,O="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,x,g,O,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r=Ll(e),i=r.tooltipConfig,o=i.option||{};if(Object(mt["isString"])(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var c=t.positionDefault,u=Nk(s,this._tooltipModel,c?{position:c}:null),h=u.get("content"),d=Math.random()+"",p=new fg;this._showOrMove(u,(function(){var n=Object(mt["clone"])(u.get("formatterParams")||{});this._showTooltipContent(u,h,n,d,t.offsetX,t.offsetY,t.position,e,p)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var u=t.get("formatter");a=a||t.get("position");var h=e,d=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")),p=d.color;if(u)if(Object(mt["isString"])(u)){var f=t.ecModel.get("useUTC"),g=Object(mt["isArray"])(n)?n[0]:n,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=u,v&&(h=ph(g.axisValue,h,f)),h=Fh(h,n,!0)}else if(Object(mt["isFunction"])(u)){var y=Object(mt["bind"])((function(e,r){e===this._ticket&&(c.setContent(r,l,t,p,a),this._updatePosition(t,a,i,o,c,n,s))}),this);this._ticket=r,h=u(n,r,y)}else h=u;c.setContent(h,l,t,p,a),c.show(t,p),this._updatePosition(t,a,i,o,c,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||Object(mt["isArray"])(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(mt["isArray"])(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var c=i.getSize(),u=t.get("align"),h=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),Object(mt["isFunction"])(e)&&(e=e([n,r],o,i.el,d,{viewSize:[s,l],contentSize:c.slice()})),Object(mt["isArray"])(e))n=$i(e[0],s),r=$i(e[1],l);else if(Object(mt["isObject"])(e)){var p=e;p.width=c[0],p.height=c[1];var f=Kh(p,{width:s,height:l});n=f.x,r=f.y,u=null,h=null}else if(Object(mt["isString"])(e)&&a){var g=zk(e,d,c,t.get("borderWidth"));n=g[0],r=g[1]}else{g=Rk(n,r,i,s,l,u?null:20,h?null:20);n=g[0],r=g[1]}if(u&&(n-=Fk(u)?c[0]/2:"right"===u?c[0]:0),h&&(r-=Fk(h)?c[1]/2:"bottom"===h?c[1]:0),uk(t)){g=Bk(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&Object(mt["each"])(n,(function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];i=i&&a.length===l.length,i&&Object(mt["each"])(a,(function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,i&&Object(mt["each"])(a,(function(t,e){var n=s[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&Object(mt["each"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!yt["a"].node&&e.getDom()&&(im(this,"_updatePosition"),this._tooltipContent.dispose(),UT("itemTooltip",e))},e.type="tooltip",e}(Dg);function Nk(t,e,n){var r,i=e.ecModel;n?(r=new Nu(n,i,i),r=new Nu(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Nu&&(a=a.get("tooltip",!0)),Object(mt["isString"])(a)&&(a={formatter:a}),a&&(r=new Nu(a,r,i)))}return r}function Ek(t,e){return t.dispatchAction||Object(mt["bind"])(e.dispatchAction,e)}function Rk(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],c=s[1];return null!=o&&(t+l+o+2>r?t-=l+o:t+=o),null!=a&&(e+c+a>i?e-=c+a:e+=a),[t,e]}function Bk(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function zk(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,c=e.width,u=e.height;switch(t){case"inside":s=e.x+c/2-i/2,l=e.y+u/2-o/2;break;case"top":s=e.x+c/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+c/2-i/2,l=e.y+u+a;break;case"left":s=e.x-i-a,l=e.y+u/2-o/2;break;case"right":s=e.x+c+a,l=e.y+u/2-o/2}return[s,l]}function Fk(t){return"center"===t||"middle"===t}function Vk(t,e,n){var r=Uo(t).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o=Xo(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=Ll(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:i,componentIndex:a.componentIndex,el:s}:void 0}}}var Hk=Lk;function Gk(t){Kx(sk),t.registerComponentModel(ck),t.registerComponentView(Hk),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},mt["noop"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},mt["noop"])}var Wk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vt(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(od),Uk=Wk,Yk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vt(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Yo).models[0]},e.type="cartesian2dAxis",e}(od);mt["mixin"](Yk,bS);var Xk={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},qk=mt["merge"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Xk),$k=mt["merge"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Xk),Zk=mt["merge"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},$k),Kk=mt["defaults"]({logBase:10},$k),Qk={category:qk,value:$k,time:Zk,log:Kk},Jk={value:1,category:1,time:1,log:1};function tI(t,e,n,r){Object(mt["each"])(Jk,(function(i,o){var a=Object(mt["merge"])(Object(mt["merge"])({},Qk[o],!0),r,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return vt(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Qh(this),r=n?td(t):{},i=e.getTheme();Object(mt["merge"])(t,i.get(o+"Axis")),Object(mt["merge"])(t,this.getDefaultOption()),t.type=eI(t),n&&Jh(t,r,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=nw.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",eI)}function eI(t){return t.type||(t.data?"category":"value")}var nI=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return mt["map"](this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),mt["filter"](this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),rI=nI,iI=["x","y"];function oI(t){return"interval"===t.type||"time"===t.type}var aI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=iI,e}return vt(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(oI(t)&&oI(e)){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,c=(o[1]-i[1])/s,u=i[0]-n[0]*l,h=i[1]-r[0]*c,d=this._transform=[l,0,0,c,u,h];this._invTransform=Er([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),r=this.dataToPoint(e),i=this.getArea(),o=new ai(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return Vt(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Vt(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),r=Math.min(e[0],e[1]),i=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-r;return new ai(n,r,i,o)},e}(rI),sI=aI,lI=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return vt(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(aj),cI=lI,uI=Math.log;function hI(t,e,n){var r=vw.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=sS(t,e),c=l.extent,u=l.fixMin,h=l.fixMax;if("log"===t.type){var d=uI(t.base);c=[uI(c[0])/d,uI(c[1])/d]}t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:a,fixMin:u,fixMax:h});var p=r.getExtent.call(t);u&&(c[0]=p[0]),h&&(c[1]=p[1]);var f=r.getInterval.call(t),g=c[0],v=c[1];if(u&&h)f=(v-g)/a;else if(u){v=c[0]+f*a;while(vc[0]&&isFinite(g)&&isFinite(c[0]))f=ow(f),g=c[1]-f*a}else{var y=t.getTicks().length-1;y>a&&(f=ow(f));var m=f*a;v=Math.ceil(c[1]/f)*f,g=Zi(v-m),g<0&&c[0]>=0?(g=0,v=Zi(m)):v>0&&c[1]<=0&&(v=0,g=-Zi(m))}var b=(i[0].value-o[0].value)/s,_=(i[a].value-o[a].value)/s;r.setExtent.call(t,g+f*b,v+f*_),r.setInterval.call(t,f),(b||_)&&r.setNiceExtent.call(t,g+f,v-f)}var dI=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=iI,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function r(t){var e,n=Object(mt["keys"])(t),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=+n[o],s=t[a],l=s.model,c=s.scale;rw(c)&&l.get("alignTicks")&&null==l.get("interval")?i.push(s):(cS(c,l),rw(c)&&(e=s))}i.length&&(e||(e=i.pop(),cS(e.scale,e.model)),Object(mt["each"])(i,(function(t){hI(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),r(n.x),r(n.y);var i={};Object(mt["each"])(n.x,(function(t){fI(n,"y",t,i)})),Object(mt["each"])(n.y,(function(t){fI(n,"x",t,i)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=Kh(r,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){Object(mt["each"])(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),vI(t,e?o.x:o.y)}))}s(),i&&(Object(mt["each"])(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=fS(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+r,"top"===t.position?o.y+=e.height+r:"left"===t.position&&(o.x+=e.width+r)}}})),s()),Object(mt["each"])(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Object(mt["isObject"])(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,i=this._coordsList;r":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},NI=function(){function t(t){var e=this._condVal=Object(mt["isString"])(t)?new RegExp(t):Object(mt["isRegExp"])(t)?t:null;if(null==e){var n="";0,Rd(n)}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(mt["isString"])(e)?this._condVal.test(t):!!Object(mt["isNumber"])(e)&&this._condVal.test(t+"")},t}(),EI=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),RI=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(od),JI=QI;function tD(t,e){var n=Ph(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new gl({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),t}var eD=mt["curry"],nD=mt["each"],rD=Pi,iD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return vt(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new rD),this.group.add(this._selectorGroup=new rD),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),o=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},u=t.get("padding"),h=Kh(l,c,u),d=this.layoutInner(t,i,h,r,a,s),p=Kh(mt["defaults"]({width:d.width,height:d.height},l),c,u);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=tD(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=mt["createHashMap"](),c=e.get("selectedMode"),u=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&u.push(t.id)})),nD(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new rD;return h.newline=!0,void s.add(h)}var d=n.getSeriesByName(a)[0];if(!l.get(a)){if(d){var p=d.getData(),f=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),v=p.getVisual("style"),y=this._createItem(d,a,o,i,e,t,f,v,g,c,r);y.on("click",eD(sD,a,null,r,u)).on("mouseover",eD(cD,d.name,null,r,u)).on("mouseout",eD(uD,d.name,null,r,u)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var h=s.indexOfName(a),d=s.getItemVisual(h,"style"),p=s.getItemVisual(h,"legendIcon"),f=Object(Tn["parse"])(d.fill);f&&0===f[3]&&(f[3]=.2,d=mt["extend"](mt["extend"]({},d),{fill:Object(Tn["stringify"])(f,"rgba")}));var g=this._createItem(n,a,o,i,e,t,{},d,p,c,r);g.on("click",eD(sD,null,a,r,u)).on("mouseover",eD(cD,null,a,r,u)).on("mouseout",eD(uD,null,a,r,u)),l.set(a,!0)}}),this);0}}),this),i&&this._createSelector(i,e,r,o,a)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();nD(t,(function(t){var r=t.type,i=new Pl({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);cu(i,{normal:a,emphasis:s},{defaultText:t.title}),Ec(i)}))},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,c,u){var h=t.visualDrawType,d=i.get("itemWidth"),p=i.get("itemHeight"),f=i.isSelected(e),g=r.get("symbolRotate"),v=r.get("symbolKeepAspect"),y=r.get("icon");l=y||l||"roundRect";var m=oD(l,r,a,s,h,f,u),b=new rD,_=r.getModel("textStyle");if(!mt["isFunction"](t.getLegendIcon)||y&&"inherit"!==y){var x="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;b.add(aD({itemWidth:d,itemHeight:p,icon:l,iconRotate:x,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}))}else b.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}));var O="left"===o?d+5:-5,w=o,S=i.get("formatter"),j=e;mt["isString"](S)&&S?j=S.replace("{name}",null!=e?e:""):mt["isFunction"](S)&&(j=S(e));var C=r.get("inactiveColor");b.add(new Pl({style:hu(_,{text:j,x:O,y:p/2,fill:f?_.getTextColor():C,align:w,verticalAlign:"middle"})}));var M=new gl({shape:b.getBoundingRect(),invisible:!0}),T=r.getModel("tooltip");return T.get("show")&&Vy({el:M,componentModel:i,itemName:e,itemTooltipOption:T.option}),b.add(M),b.eachChild((function(t){t.silent=!0})),M.silent=!c,this.getContentGroup().add(b),Ec(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Zh(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),c=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){Zh("horizontal",s,t.get("selectorItemGap",!0));var u=s.getBoundingRect(),h=[-u.x,-u.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",v=0===p?"y":"x";"end"===o?h[p]+=l[f]+d:c[p]+=u[f]+d,h[1-p]+=l[g]/2-u[g]/2,s.x=h[0],s.y=h[1],a.x=c[0],a.y=c[1];var y={x:0,y:0};return y[f]=l[f]+d+u[f],y[g]=Math.max(l[g],u[g]),y[v]=Math.min(0,u[v]+h[1-p]),y}return a.x=c[0],a.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Dg);function oD(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),nD(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var l=e.getModel("itemStyle"),c=l.getItemStyle(),u=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");c.decal=h&&"inherit"!==h?Qb(h,a):r.decal,"inherit"===c.fill&&(c.fill=r[i]),"inherit"===c.stroke&&(c.stroke=r[u]),"inherit"===c.opacity&&(c.opacity=("fill"===i?r:n).opacity),s(c,r);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===c.fill&&(c.fill=r.fill),"auto"===c.stroke&&(c.stroke=r.fill),"auto"===p.stroke&&(p.stroke=r.fill),!o){var f=e.get("inactiveBorderWidth"),g=c[u];c.lineWidth="auto"===f?r.lineWidth>0&&g?2:0:c.lineWidth,c.fill=e.get("inactiveColor"),c.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:c,lineStyle:p}}function aD(t){var e=t.icon||"roundRect",n=cb(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function sD(t,e,n,r){uD(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),cD(t,e,n,r)}function lD(t){var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;while(rn[i],f=[-h.x,-h.y];e||(f[r]=l[s]);var g=[0,0],v=[-d.x,-d.y],y=mt["retrieve2"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var m=t.get("pageButtonPosition",!0);"end"===m?v[r]+=n[i]-d[i]:g[r]+=d[i]+y}v[1-r]+=h[o]/2-d[o]/2,l.setPosition(f),c.setPosition(g),u.setPosition(v);var b={x:0,y:0};if(b[i]=p?n[i]:h[i],b[o]=Math.max(h[o],d[o]),b[a]=Math.min(0,d[a]+v[1-r]),c.__rectSize=n[i],p){var _={x:0,y:0};_[i]=Math.max(n[i]-d[i]-y,0),_[o]=b[o],c.setClipPath(new gl({shape:_})),c.__rectSize=_[i]}else u.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(t);return null!=x.pageIndex&&Qc(l,{x:x.contentPosition[0],y:x.contentPosition[1]},p?t:null),this._updatePageInfoView(t,x),b},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;mt["each"](["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",o=null!=e[i],a=n.childOfName(r);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",mt["isString"](i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=_D[i],a=xD[i],s=this._findTargetItemIndex(e),l=n.children(),c=l[s],u=l.length,h=u?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=m(c);d.contentPosition[i]=-p.s;for(var f=s+1,g=p,v=p,y=null;f<=u;++f)y=m(l[f]),(!y&&v.e>g.s+r||y&&!b(y,g.s))&&(g=v.i>g.i?v:y,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),v=y;for(f=s-1,g=p,v=p,y=null;f>=-1;--f)y=m(l[f]),y&&b(v,y.s)||!(g.i=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,r=this.getContentGroup();return r.eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)})),null!=e?e:n},e.type="legend.scroll",e}(hD),wD=OD;function SD(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function jD(t){Kx(gD),t.registerComponentModel(mD),t.registerComponentView(wD),SD(t)}function CD(t){Kx(gD),Kx(jD)}var MD=Cs.CMD;function TD(t,e){return Math.abs(t-e)<1e-5}function kD(t){var e,n,r,i,o,a=t.data,s=t.len(),l=[],c=0,u=0,h=0,d=0;function p(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function f(t,n,r,i){TD(t,r)&&TD(n,i)||e.push(t,n,r,i,r,i)}function g(t,n,r,i,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,c=nS:M2&&l.push(e),l}function ID(t,e,n,r,i,o,a,s,l,c){if(TD(t,n)&&TD(e,r)&&TD(i,a)&&TD(o,s))l.push(a,s);else{var u=2/c,h=u*u,d=a-t,p=s-e,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=n-t,v=r-e,y=i-a,m=o-s,b=g*g+v*v,_=y*y+m*m;if(b=0&&S=0)l.push(a,s);else{var j=[],C=[];fn(t,n,i,a,.5,j),fn(e,r,o,s,.5,C),ID(j[0],C[0],j[1],C[1],j[2],C[2],j[3],C[3],l,c),ID(j[4],C[4],j[5],C[5],j[6],C[6],j[7],C[7],l,c)}}}}function DD(t,e){var n=kD(t),r=[];e=e||1;for(var i=0;i0)for(c=0;cMath.abs(c),h=AD([l,c],u?0:1,e),d=(u?s:c)/h.length,p=0;pi,a=AD([r,i],o?0:1,e),s=o?"width":"height",l=o?"height":"width",c=o?"x":"y",u=o?"y":"x",h=t[s]/a.length,d=0;d1?null:new Zr(g*l+t,g*c+e)}function RD(t,e,n){var r=new Zr;Zr.sub(r,n,e),r.normalize();var i=new Zr;Zr.sub(i,t,e);var o=i.dot(r);return o}function BD(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function zD(t,e,n){for(var r=t.length,i=[],o=0;oa?(c.x=u.x=s+o/2,c.y=l,u.y=l+a):(c.y=u.y=l+a/2,c.x=s,u.x=s+o),zD(e,c,u)}function VD(t,e,n,r){if(1===n)r.push(e);else{var i=Math.floor(n/2),o=t(e);VD(t,o[0],i,r),VD(t,o[1],n-i,r)}return r}function HD(t,e){for(var n=[],r=0;r0)for(var x=r/n,O=-r/2;O<=r/2;O+=x){var w=Math.sin(O),S=Math.cos(O),j=0;for(b=0;b0;c/=2){var u=0,h=0;(t&c)>0&&(u=1),(e&c)>0&&(h=1),l+=c*c*(3*u^h),0===h&&(1===u&&(t=c-1-t,e=c-1-e),s=t,t=e,e=s)}return l}function sA(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,o=Object(mt["map"])(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]})),a=Object(mt["map"])(o,(function(o,a){return{cp:o,z:aA(o[0],o[1],e,n,r,i),path:t[a]}}));return a.sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function lA(t){return UD(t.path,t.count)}function cA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function uA(t,e,n){var r=[];function i(t){for(var e=0;e=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var c=Math.ceil(o/2);n[i].many=l.slice(c,o),n[s].many=l.slice(0,c),s++}return n}var fA={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r0){var s,l,c=r.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},a);dA(t)&&(s=t,l=e),dA(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,d=s?pA(l,s):pA(h?e:t,[h?t:e]),p=0,f=0;fyA))for(var r=n.getIndices(),i=bA(n),o=0;o0&&i.group.traverse((function(t){t instanceof Qs&&!t.animators.length&&t.animateFrom({style:{opacity:0}},o)}))}))}function MA(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function TA(t){return Object(mt["isArray"])(t)?t.sort().join(","):t}function kA(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function IA(t,e){var n=Object(mt["createHashMap"])(),r=Object(mt["createHashMap"])(),i=Object(mt["createHashMap"])();return Object(mt["each"])(t.oldSeries,(function(e,n){var o=t.oldData[n],a=MA(e),s=TA(a);r.set(s,o),Object(mt["isArray"])(a)&&Object(mt["each"])(a,(function(t){i.set(t,{data:o,key:s})}))})),Object(mt["each"])(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.getData(),o=MA(t),a=TA(o),s=r.get(a);if(s)n.set(a,{oldSeries:[{divide:kA(s),data:s}],newSeries:[{divide:kA(e),data:e}]});else if(Object(mt["isArray"])(o)){0;var l=[];Object(mt["each"])(o,(function(t){var e=r.get(t);e&&l.push({divide:kA(e),data:e})})),l.length&&n.set(a,{oldSeries:l,newSeries:[{data:e,divide:kA(e)}]})}else{var c=i.get(o);if(c){var u=n.get(c.key);u||(u={oldSeries:[{data:c.data,divide:kA(c.data)}],newSeries:[]},n.set(c.key,u)),u.newSeries.push({data:e,divide:kA(e)})}}}})),n}function DA(t,e){for(var n=0;n=0&&i.push({data:e.oldData[n],divide:kA(e.oldData[n]),dim:t.dimension})})),Object(mt["each"])(Oo(t.to),(function(t){var e=DA(n.updatedSeries,t);if(e>=0){var r=n.updatedSeries[e].getData();o.push({data:r,divide:kA(r),dim:t.dimension})}})),i.length>0&&o.length>0&&CA(i,o,r)}function PA(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(mt["each"])(Oo(n.seriesTransition),(function(t){Object(mt["each"])(Oo(t.to),(function(t){for(var e=n.updatedSeries,r=0;r=a)}}for(var u=this.__startIndex;u15)break}}n.prevElClipPaths&&h.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var _=d.dpr,x=0;x0&&t>r[0]){for(s=0;st)break;a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r0?zA:0),this._needsManuallyCompositing),c.__builtin__||mt["logError"]("ZLevel "+l+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==o&&(c.__dirty=!0),c.__startIndex=o,c.incremental?c.__drawIndex=-1:c.__drawIndex=o,e(o),a=c),r.__dirty&Fe&&!r.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,mt["each"](this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?mt["merge"](n[t],e,!0):n[t]=e;for(var r=0;r{}}},setup(t){let e=null;const{options:n}=Object(f["toRefs"])(t),r=Object(f["reactive"])({echart:Object(f["ref"])()}),i=()=>{e=YA.init(r.echart),e.setOption({...n.value})},o=()=>{e.setOption({...n.value}),e.resize()},a=()=>{e&&e.resize()};return Object(f["watch"])(()=>n.value,t=>{t&&o()},{deep:!0}),Object(f["onBeforeUnmount"])(()=>{window.removeEventListener("resize",a)}),Object(f["onMounted"])(()=>{window.addEventListener("resize",a),i()}),{...Object(f["toRefs"])(r)}}});n("3ebb");const qA=Z()(XA,[["render",ft]]);var $A=qA,ZA=n("14b4");const KA=(t={},e=((t,e)=>Number(t)-Number(e)))=>{const n=Object.keys(t);if(!n.length)return{};const r={};return n.sort(e).forEach(e=>r[e]=t[e]),r},QA=(t,e)=>{if(!e)return{};e=KA(e);const n=Object.keys(e),r={tooltip:{trigger:"axis"},yAxis:{type:"value"},xAxis:{type:"category",data:n.map(t=>Object(A["b"])(t)),axisTick:{alignWithLabel:!0,interval:0}},grid:{top:40,bottom:50}};t&&(r.title={left:"center",text:t});const i={};return Object.values(e).forEach(t=>{const e=Object.keys(t);e.forEach(e=>{const n=ZA["a"].global.t(e);i[n]||(i[n]=[]),i[n].push(t[e])})}),r.legend={top:"bottom",data:Object.keys(i),lineStyle:{opacity:0}},r.series=Object.keys(i).map(t=>({name:t,type:"line",symbol:"circle",data:i[t]})),r};var JA=n("434d"),tP=n("35c8"),eP=n("f38b");const nP={class:"branch-selector"},rP={class:"branch-btn-label"},iP={class:"branch-selector-search"},oP=["onClick"],aP={class:"item-icon"},sP={class:"item-label"},lP={key:1,class:"empty-tips"},cP=["onClick"],uP={class:"item-icon"},hP={class:"item-label"},dP={key:1,class:"empty-tips"},pP={class:"g-mr-4"},fP={class:"g-mr-4"},gP={class:"g-ml-24"};var vP=Object(f["defineComponent"])({__name:"Selector",props:{catalog:String,db:String,table:String,disabled:Boolean},emits:["refChange"],setup(t,{emit:e}){const n=t,{t:r}=Object(k["b"])(),i=Object(f["computed"])(()=>n.disabled),o=Object(f["ref"])({value:"",type:eP["a"].BRANCH,label:""}),a=Object(f["ref"])(""),s=Object(f["ref"])(""),l=Object(f["ref"])(eP["a"].BRANCH),c=Object(f["ref"])([]),u=Object(f["ref"])([]),h=Object(f["computed"])(()=>c.value.filter(t=>!a.value||t.label.includes(a.value))),d=Object(f["computed"])(()=>u.value.filter(t=>!s.value||t.label.includes(s.value))),p=Object(f["ref"])(eP["c"].ALL),g=Object(f["reactive"])([eP["c"].ALL,eP["c"].OPTIMIZING,eP["c"].NONOPTIMIZING]),v=t=>{t.stopPropagation()},y=t=>t.parentNode||document.body,m=t=>{o.value=t,p.value=eP["c"].ALL,e("refChange",{ref:t.value,operation:eP["c"].ALL})},b=t=>{e("refChange",{ref:o.value.value,operation:t})},_=async()=>{const t=await Object(D["b"])(n);c.value=(t.list||[]).map(t=>({value:t.name,label:t.name,type:eP["a"].BRANCH})),c.value.length&&m(c.value[0])},x=async()=>{const t=await Object(D["n"])(n);u.value=(t.list||[]).map(t=>({value:t.name,label:t.name,type:eP["a"].TAG}))},O=async()=>{await Promise.all([_(),x()])};return Object(f["onMounted"])(()=>{l.value=eP["a"].BRANCH,O()}),(t,e)=>{const n=Object(f["resolveComponent"])("svg-icon"),r=Object(f["resolveComponent"])("a-button"),_=Object(f["resolveComponent"])("a-input"),x=Object(f["resolveComponent"])("a-tab-pane"),O=Object(f["resolveComponent"])("a-tabs"),w=Object(f["resolveComponent"])("a-dropdown"),S=Object(f["resolveComponent"])("a-select-option"),j=Object(f["resolveComponent"])("a-select");return Object(f["openBlock"])(),Object(f["createElementBlock"])("div",nP,[Object(f["createVNode"])(w,{trigger:["click"],placement:"bottomLeft",getPopupContainer:y},{overlay:Object(f["withCtx"])(()=>[Object(f["createElementVNode"])("div",null,[Object(f["createElementVNode"])("div",iP,[Object(f["withDirectives"])(Object(f["createVNode"])(_,{value:a.value,"onUpdate:value":e[0]||(e[0]=t=>a.value=t),placeholder:t.$t("Filter branches/tags"),onClick:v},null,8,["value","placeholder"]),[[f["vShow"],l.value===Object(f["unref"])(eP["a"]).BRANCH]]),Object(f["withDirectives"])(Object(f["createVNode"])(_,{value:s.value,"onUpdate:value":e[1]||(e[1]=t=>s.value=t),placeholder:t.$t("Filter branches/tags"),onClick:v},null,8,["value","placeholder"]),[[f["vShow"],l.value===Object(f["unref"])(eP["a"]).TAG]])]),Object(f["createVNode"])(O,{activeKey:l.value,"onUpdate:activeKey":e[2]||(e[2]=t=>l.value=t),type:"card"},{default:Object(f["withCtx"])(()=>[(Object(f["openBlock"])(),Object(f["createBlock"])(x,{key:Object(f["unref"])(eP["a"]).BRANCH,tab:"Branches"},{default:Object(f["withCtx"])(()=>[Object(f["unref"])(h).length?(Object(f["openBlock"])(!0),Object(f["createElementBlock"])(f["Fragment"],{key:0},Object(f["renderList"])(Object(f["unref"])(h),(t,e)=>(Object(f["openBlock"])(),Object(f["createElementBlock"])("div",{class:"branch-selector-item",key:e,onClick:e=>m(t)},[Object(f["createElementVNode"])("div",aP,[t.value===o.value.value?(Object(f["openBlock"])(),Object(f["createBlock"])(Object(f["unref"])(JA["a"]),{key:0})):Object(f["createCommentVNode"])("",!0)]),Object(f["createElementVNode"])("span",sP,Object(f["toDisplayString"])(t.label),1)],8,oP))),128)):(Object(f["openBlock"])(),Object(f["createElementBlock"])("span",lP,Object(f["toDisplayString"])(t.$t("nothingToShow")),1))]),_:1})),(Object(f["openBlock"])(),Object(f["createBlock"])(x,{key:Object(f["unref"])(eP["a"]).TAG,tab:"Tags"},{default:Object(f["withCtx"])(()=>[Object(f["unref"])(d).length?(Object(f["openBlock"])(!0),Object(f["createElementBlock"])(f["Fragment"],{key:0},Object(f["renderList"])(Object(f["unref"])(d),(t,e)=>(Object(f["openBlock"])(),Object(f["createElementBlock"])("div",{class:"branch-selector-item",key:e,onClick:e=>m(t)},[Object(f["createElementVNode"])("div",uP,[t.value===o.value.value?(Object(f["openBlock"])(),Object(f["createBlock"])(Object(f["unref"])(JA["a"]),{key:0})):Object(f["createCommentVNode"])("",!0)]),Object(f["createElementVNode"])("span",hP,Object(f["toDisplayString"])(t.label),1)],8,cP))),128)):(Object(f["openBlock"])(),Object(f["createElementBlock"])("span",dP,Object(f["toDisplayString"])(t.$t("nothingToShow")),1))]),_:1}))]),_:1},8,["activeKey"])])]),default:Object(f["withCtx"])(()=>[Object(f["createVNode"])(r,{class:"branch-btn",disabled:!o.value.value||Object(f["unref"])(i)},{default:Object(f["withCtx"])(()=>[Object(f["createVNode"])(n,{className:"branch-selector-icon","icon-class":o.value.type,class:"g-mr-8"},null,8,["icon-class"]),Object(f["createElementVNode"])("span",rP,Object(f["toDisplayString"])(o.value.label),1),Object(f["createVNode"])(Object(f["unref"])(tP["a"]))]),_:1},8,["disabled"])]),_:1}),Object(f["createElementVNode"])("div",null,[Object(f["createVNode"])(n,{className:"branch-selector-icon","icon-class":"branch",class:"g-mr-4 g-ml-16"}),Object(f["createElementVNode"])("span",pP,Object(f["toDisplayString"])(c.value.length),1),Object(f["createElementVNode"])("span",null,Object(f["toDisplayString"])(t.$t("branches")),1)]),Object(f["createElementVNode"])("div",null,[Object(f["createVNode"])(n,{className:"branch-selector-icon","icon-class":"tag",class:"g-mr-4 g-ml-16"}),Object(f["createElementVNode"])("span",fP,Object(f["toDisplayString"])(u.value.length),1),Object(f["createElementVNode"])("span",null,Object(f["toDisplayString"])(t.$t("tags")),1)]),Object(f["createElementVNode"])("div",gP,[Object(f["createTextVNode"])(Object(f["toDisplayString"])(t.$t("operation"))+": ",1),Object(f["createVNode"])(j,{class:"g-ml-8",value:p.value,"onUpdate:value":e[3]||(e[3]=t=>p.value=t),style:{width:"160px"},disabled:Object(f["unref"])(i),onChange:b},{default:Object(f["withCtx"])(()=>[(Object(f["openBlock"])(!0),Object(f["createElementBlock"])(f["Fragment"],null,Object(f["renderList"])(g,t=>(Object(f["openBlock"])(),Object(f["createBlock"])(S,{value:t,key:t},{default:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(t),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","disabled"])])])}}});n("1448");const yP=vP;var mP=yP;const bP={class:"table-snapshots"},_P=Object(f["createTextVNode"])("All");var xP=Object(f["defineComponent"])({__name:"Snapshots",setup(t){const e=Object(f["ref"])(!1),{t:n}=Object(k["b"])(),r=Object(f["shallowReactive"])([{title:n("snapshotId"),dataIndex:"snapshotId",ellipsis:!0},{title:n("operation"),dataIndex:"operation"},{title:n("records"),dataIndex:"records"},{title:n("fileCount"),dataIndex:"fileCount"},{title:n("commitTime"),dataIndex:"commitTime"}]),i=Object(f["shallowReactive"])([{title:n("operation"),dataIndex:"operation",width:120,ellipsis:!0},{title:n("file"),dataIndex:"file",ellipsis:!0},{title:n("partition"),dataIndex:"partition",width:120},{title:n("fileType"),dataIndex:"fileType",width:120,ellipsis:!0},{title:n("size"),dataIndex:"size",width:120},{title:n("commitTime"),dataIndex:"commitTime",width:200,ellipsis:!0},{title:n("path"),dataIndex:"path",ellipsis:!0}]),o=Object(f["reactive"])([]),a=Object(f["reactive"])([]),s=Object(f["ref"])(""),l=Object(f["ref"])(!1),c=Object(f["reactive"])(Object(J["a"])()),u=Object(f["reactive"])(Object(J["a"])()),h=Object(I["d"])(),d=h.query,p=Object(f["reactive"])({catalog:"",db:"",table:"",...d}),g=Object(f["ref"])({}),v=Object(f["ref"])({}),y=Object(f["ref"])(""),m=Object(f["ref"])(""),b=t=>{y.value=t.ref,m.value=t.operation,_()};async function _(){try{l.value=!0,o.length=0;const t=await Object(D["k"])({...p,ref:y.value,operation:m.value,page:c.current,pageSize:c.pageSize}),{list:e=[],total:r}=t,i={},a={};e.forEach(t=>{const{recordsSummaryForChart:e,filesSummaryForChart:n,commitTime:r}=t;i[r]=e||{},a[r]=n||{},"OPTIMIZE"===t.producer&&(t.operation=t.operation+"(optimizing)"),t.commitTime=t.commitTime?Object(A["b"])(t.commitTime):"-",o.push(t)}),g.value=QA(n("recordChartTitle"),i),v.value=QA(n("fileChartTitle"),a),c.total=r}catch(t){}finally{l.value=!1}}function x({current:t=1,pageSize:n=25}){e.value?(u.current=t,n!==u.pageSize&&(u.current=1),u.pageSize=n):(c.current=t,n!==c.pageSize&&(c.current=1),c.pageSize=n),O()}function O(){e.value?w():_()}async function w(){try{a.length=0,l.value=!0;const t={...p,snapshotId:s.value,page:u.current,pageSize:u.pageSize},e=await Object(D["e"])(t),{list:n,total:r}=e;u.total=r,n.forEach(t=>{t.commitTime=t.commitTime?Object(A["b"])(t.commitTime):"",a.push(t)})}catch(t){}finally{l.value=!1}}function S(t){s.value=t.snapshotId,e.value=!e.value,e.value&&(u.current=1,w())}return Object(f["onMounted"])(()=>{e.value=!1}),(t,n)=>{const h=Object(f["resolveComponent"])("a-col"),d=Object(f["resolveComponent"])("a-row"),y=Object(f["resolveComponent"])("a-button"),m=Object(f["resolveComponent"])("a-table"),_=Object(f["resolveComponent"])("a-breadcrumb-item"),O=Object(f["resolveComponent"])("a-breadcrumb"),w=Object(f["resolveComponent"])("a-tooltip");return Object(f["openBlock"])(),Object(f["createElementBlock"])("div",bP,[e.value?(Object(f["openBlock"])(),Object(f["createElementBlock"])(f["Fragment"],{key:1},[Object(f["createVNode"])(O,{separator:">"},{default:Object(f["withCtx"])(()=>[Object(f["createVNode"])(_,{onClick:S,class:"text-active"},{default:Object(f["withCtx"])(()=>[_P]),_:1}),Object(f["createVNode"])(_,null,{default:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(`${t.$t("snapshotId")} ${s.value}`),1)]),_:1})]),_:1}),Object(f["createVNode"])(m,{rowKey:"file",columns:Object(f["unref"])(i),"data-source":a,pagination:u,loading:l.value,onChange:x,class:"g-mt-8"},{bodyCell:Object(f["withCtx"])(({column:t,record:e})=>["path"===t.dataIndex?(Object(f["openBlock"])(),Object(f["createBlock"])(w,{key:0},{title:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(e.path),1)]),default:Object(f["withCtx"])(()=>[Object(f["createElementVNode"])("span",null,Object(f["toDisplayString"])(e.path),1)]),_:2},1024)):Object(f["createCommentVNode"])("",!0),"file"===t.dataIndex?(Object(f["openBlock"])(),Object(f["createBlock"])(w,{key:1},{title:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(e.file),1)]),default:Object(f["withCtx"])(()=>[Object(f["createElementVNode"])("span",null,Object(f["toDisplayString"])(e.file),1)]),_:2},1024)):Object(f["createCommentVNode"])("",!0)]),_:1},8,["columns","data-source","pagination","loading"])],64)):(Object(f["openBlock"])(),Object(f["createElementBlock"])(f["Fragment"],{key:0},[Object(f["createVNode"])(d,null,{default:Object(f["withCtx"])(()=>[Object(f["createVNode"])(h,{span:12},{default:Object(f["withCtx"])(()=>[Object(f["createVNode"])($A,{loading:l.value,options:g.value},null,8,["loading","options"])]),_:1}),Object(f["createVNode"])(h,{span:12},{default:Object(f["withCtx"])(()=>[Object(f["createVNode"])($A,{loading:l.value,options:v.value},null,8,["loading","options"])]),_:1})]),_:1}),Object(f["createVNode"])(mP,{catalog:p.catalog,db:p.db,table:p.table,disabled:l.value,onRefChange:b},null,8,["catalog","db","table","disabled"]),Object(f["createVNode"])(m,{rowKey:"snapshotId",columns:Object(f["unref"])(r),"data-source":o,pagination:c,loading:l.value,onChange:x},{bodyCell:Object(f["withCtx"])(({column:t,record:e})=>["snapshotId"===t.dataIndex?(Object(f["openBlock"])(),Object(f["createBlock"])(y,{key:0,type:"link",onClick:t=>S(e)},{default:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(e.snapshotId),1)]),_:2},1032,["onClick"])):Object(f["createCommentVNode"])("",!0)]),expandedRowRender:Object(f["withCtx"])(({record:t})=>[(Object(f["openBlock"])(!0),Object(f["createElementBlock"])(f["Fragment"],null,Object(f["renderList"])(t.summary,(t,e)=>(Object(f["openBlock"])(),Object(f["createBlock"])(d,{type:"flex",gutter:16,key:e},{default:Object(f["withCtx"])(()=>[Object(f["createVNode"])(h,{flex:"220px",style:{"text-align":"right"}},{default:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(e)+" :",1)]),_:2},1024),Object(f["createVNode"])(h,{flex:"auto"},{default:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(t),1)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["columns","data-source","pagination","loading"])],64))])}}});n("e884");const OP=Z()(xP,[["__scopeId","data-v-4a105faf"]]);var wP=OP,SP=(n("cd17"),n("ed3b")),jP=n("3c7f");const CP=t=>(Object(f["pushScopeId"])("data-v-66f12fbb"),t=t(),Object(f["popScopeId"])(),t),MP={class:"table-optimizing"},TP={class:""},kP=CP(()=>Object(f["createElementVNode"])("div",{class:""},"success / total",-1)),IP={class:""},DP=CP(()=>Object(f["createElementVNode"])("div",{class:""},"size / count",-1)),AP={class:""},PP=CP(()=>Object(f["createElementVNode"])("div",{class:""},"size / count",-1)),LP={key:1,class:"g-flex-ac"},NP={class:"tip-title"},EP=Object(f["createTextVNode"])("All"),RP={class:""},BP=CP(()=>Object(f["createElementVNode"])("div",{class:""},"size / count",-1)),zP={class:""},FP=CP(()=>Object(f["createElementVNode"])("div",{class:""},"size / count",-1)),VP={key:1,class:"g-flex-ac"},HP={class:"tip-title"};var GP=Object(f["defineComponent"])({__name:"Optimizing",setup(t){const e=Object(f["ref"])(!1),n=Object(f["shallowReactive"])({RUNNING:{title:"RUNNING",color:"#1890ff"},CLOSED:{title:"CLOSED",color:"#c9cdd4"},SUCCESS:{title:"SUCCESS",color:"#0ad787"},FAILED:{title:"FAILED",color:"#f5222d"}}),r=Object(f["shallowReactive"])({PLANNED:{title:"PLANNED",color:"#ffcc00"},SCHEDULED:{title:"SCHEDULED",color:"#4169E1"},ACKED:{title:"ACKED",color:"#1890ff"},FAILED:{title:"FAILED",color:"#f5222d"},SUCCESS:{title:"SUCCESS",color:"#0ad787"},CANCELED:{title:"CANCELED",color:"#c9cdd4"}}),{t:i}=Object(k["b"])(),o=Object(f["shallowReactive"])([{title:i("processId"),dataIndex:"processId"},{title:i("startTime"),dataIndex:"startTime",width:172},{title:i("type"),dataIndex:"optimizingType"},{title:i("status"),dataIndex:"status"},{title:i("duration"),dataIndex:"duration",width:120},{title:i("tasks"),dataIndex:"tasks"},{title:i("finishTime"),dataIndex:"finishTime",width:172},{title:i("input"),dataIndex:"inputFiles"},{title:i("output"),dataIndex:"outputFiles"}]),a=Object(f["shallowReactive"])([{title:i("taskId"),dataIndex:"taskId",width:82},{title:i("partition"),dataIndex:"partitionData",ellipsis:!0},{title:i("startTime"),dataIndex:"startTime",width:172},{title:i("status"),dataIndex:"status",width:124},{title:i("costTime"),dataIndex:"formatCostTime",width:120},{title:i("finishTime"),dataIndex:"endTime",width:172},{title:i("input"),dataIndex:"inputFilesDesc"},{title:i("output"),dataIndex:"outputFilesDesc"}]),s=Object(f["reactive"])([]),l=Object(f["ref"])(0),c=Object(f["reactive"])([]),u=Object(f["ref"])(!1),h=Object(f["ref"])(!0),d=Object(f["reactive"])(Object(J["a"])()),p=Object(f["reactive"])(Object(J["a"])()),g=Object(I["d"])(),v=g.query,y=Object(f["reactive"])({catalog:"",db:"",table:"",...v});async function m(){try{u.value=!0,s.length=0;const t=await Object(D["h"])({...y,page:d.current,pageSize:d.pageSize}),{list:e,total:n=0}=t;d.total=n,s.push(...[...e||[]].map(t=>{const{inputFiles:e={},outputFiles:n={}}=t;return{...t,startTime:t.startTime?Object(A["b"])(t.startTime):"-",finishTime:t.finishTime?Object(A["b"])(t.finishTime):"-",optimizingType:t.optimizingType?t.optimizingType:"-",duration:Object(A["e"])(t.duration||"-"),inputFiles:`${Object(A["a"])(e.totalSize)} / ${e.fileCnt}`,outputFiles:`${Object(A["a"])(n.totalSize)} / ${n.fileCnt}`,tasks:`${t.successTasks||"0"} / ${t.totalTasks||"0"}${t.runningTasks?` (${t.runningTasks} running)`:""}`}}))}catch(t){}finally{u.value=!1}}async function b(){SP["a"].confirm({title:i("cancelOptimizingProcessOptModalTitle"),content:"",okText:"",cancelText:"",onOk:async()=>{try{u.value=!0;await Object(D["a"])({...y,processId:l.value});h.value=!0,x()}catch(t){}finally{u.value=!1}}})}function _({current:t=1,pageSize:n=25}){e.value?(p.current=t,n!==p.pageSize&&(p.current=1),p.pageSize=n):(d.current=t,n!==d.pageSize&&(d.current=1),d.pageSize=n),x()}function x(){e.value?O():m()}async function O(){try{c.length=0,u.value=!0;const t={...y,processId:l.value,page:p.current,pageSize:p.pageSize},e=await Object(D["o"])(t),{list:n,total:r}=e;p.total=r,n.forEach(t=>{t.startTime=t.startTime?Object(A["b"])(t.startTime):"-",t.endTime=t.endTime?Object(A["b"])(t.endTime):"-",t.formatCostTime=Object(A["e"])(t.costTime),t.thread=t.optimizerToken?"("+t.threadId+")"+t.optimizerToken:"-",t.partitionData=t.partitionData?t.partitionData:"-",t.inputFilesDesc=`${Object(A["a"])(t.inputFiles.totalSize)} / ${t.inputFiles.fileCnt}`,t.outputFilesDesc=`${Object(A["a"])(t.outputFiles.totalSize)} / ${t.outputFiles.fileCnt}`,c.push(t)})}catch(t){}finally{u.value=!1}}function w(t,n){l.value=t,h.value="RUNNING"!==n,e.value=!e.value,e.value&&(p.current=1),x()}return Object(f["onMounted"])(()=>{e.value=!1,x()}),(t,g)=>{const v=Object(f["resolveComponent"])("a-button"),y=Object(f["resolveComponent"])("a-tooltip"),m=Object(f["resolveComponent"])("a-col"),x=Object(f["resolveComponent"])("a-row"),O=Object(f["resolveComponent"])("a-table"),S=Object(f["resolveComponent"])("a-breadcrumb-item"),j=Object(f["resolveComponent"])("a-breadcrumb");return Object(f["openBlock"])(),Object(f["createElementBlock"])("div",MP,[e.value?(Object(f["openBlock"])(),Object(f["createElementBlock"])(f["Fragment"],{key:1},[Object(f["createVNode"])(x,null,{default:Object(f["withCtx"])(()=>[Object(f["createVNode"])(m,{span:18},{default:Object(f["withCtx"])(()=>[Object(f["createVNode"])(j,{separator:">"},{default:Object(f["withCtx"])(()=>[Object(f["createVNode"])(S,{onClick:w,class:"text-active"},{default:Object(f["withCtx"])(()=>[EP]),_:1}),Object(f["createVNode"])(S,null,{default:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(`${t.$t("processId")} ${l.value}`),1)]),_:1})]),_:1})]),_:1}),Object(f["createVNode"])(m,{span:6},{default:Object(f["withCtx"])(()=>[Object(f["createVNode"])(v,{type:"primary",disabled:h.value,"onUpdate:disabled":g[0]||(g[0]=t=>h.value=t),class:"g-mb-16",onClick:b,style:{float:"right"}},{default:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(Object(f["unref"])(i)("cancelProcess")),1)]),_:1},8,["disabled"])]),_:1})]),_:1}),Object(f["createVNode"])(O,{rowKey:"taskId",columns:Object(f["unref"])(a),"data-source":c,pagination:p,loading:u.value,onChange:_,class:"g-mt-8"},{headerCell:Object(f["withCtx"])(({column:t})=>["inputFilesDesc"===t.dataIndex?(Object(f["openBlock"])(),Object(f["createElementBlock"])(f["Fragment"],{key:0},[Object(f["createElementVNode"])("div",RP,Object(f["toDisplayString"])(t.title),1),BP],64)):Object(f["createCommentVNode"])("",!0),"outputFilesDesc"===t.dataIndex?(Object(f["openBlock"])(),Object(f["createElementBlock"])(f["Fragment"],{key:1},[Object(f["createElementVNode"])("div",zP,Object(f["toDisplayString"])(t.title),1),FP],64)):Object(f["createCommentVNode"])("",!0)]),bodyCell:Object(f["withCtx"])(({column:t,record:e})=>["partitionData"===t.dataIndex?(Object(f["openBlock"])(),Object(f["createBlock"])(y,{key:0},{title:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(e.partitionData),1)]),default:Object(f["withCtx"])(()=>[Object(f["createElementVNode"])("span",null,Object(f["toDisplayString"])(e.partitionData),1)]),_:2},1024)):Object(f["createCommentVNode"])("",!0),"status"===t.dataIndex?(Object(f["openBlock"])(),Object(f["createElementBlock"])("div",VP,[Object(f["createElementVNode"])("span",{style:Object(f["normalizeStyle"])({"background-color":(Object(f["unref"])(r)[e.status]||{}).color}),class:"status-icon"},null,4),Object(f["createElementVNode"])("span",null,Object(f["toDisplayString"])(e.status),1),"FAILED"===e.status?(Object(f["openBlock"])(),Object(f["createBlock"])(y,{key:0,placement:"topRight",class:"g-ml-4",overlayClassName:"table-failed-tip"},{title:Object(f["withCtx"])(()=>[Object(f["createElementVNode"])("div",HP,Object(f["toDisplayString"])(e.failReason),1)]),default:Object(f["withCtx"])(()=>[Object(f["createVNode"])(Object(f["unref"])(jP["a"]))]),_:2},1024)):Object(f["createCommentVNode"])("",!0)])):Object(f["createCommentVNode"])("",!0)]),expandedRowRender:Object(f["withCtx"])(({record:t})=>[(Object(f["openBlock"])(!0),Object(f["createElementBlock"])(f["Fragment"],null,Object(f["renderList"])(t.summary,(t,e)=>(Object(f["openBlock"])(),Object(f["createBlock"])(x,{type:"flex",gutter:16,key:e},{default:Object(f["withCtx"])(()=>[Object(f["createVNode"])(m,{flex:"220px",style:{"text-align":"right"}},{default:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(e)+" :",1)]),_:2},1024),Object(f["createVNode"])(m,{flex:"auto"},{default:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(t),1)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["columns","data-source","pagination","loading"])],64)):(Object(f["openBlock"])(),Object(f["createBlock"])(O,{key:0,rowKey:"processId",columns:Object(f["unref"])(o),"data-source":s,pagination:d,loading:u.value,onChange:_},{headerCell:Object(f["withCtx"])(({column:t})=>["tasks"===t.dataIndex?(Object(f["openBlock"])(),Object(f["createElementBlock"])(f["Fragment"],{key:0},[Object(f["createElementVNode"])("div",TP,Object(f["toDisplayString"])(t.title),1),kP],64)):Object(f["createCommentVNode"])("",!0),"inputFiles"===t.dataIndex?(Object(f["openBlock"])(),Object(f["createElementBlock"])(f["Fragment"],{key:1},[Object(f["createElementVNode"])("div",IP,Object(f["toDisplayString"])(t.title),1),DP],64)):Object(f["createCommentVNode"])("",!0),"outputFiles"===t.dataIndex?(Object(f["openBlock"])(),Object(f["createElementBlock"])(f["Fragment"],{key:2},[Object(f["createElementVNode"])("div",AP,Object(f["toDisplayString"])(t.title),1),PP],64)):Object(f["createCommentVNode"])("",!0)]),bodyCell:Object(f["withCtx"])(({record:t,column:e})=>["processId"===e.dataIndex?(Object(f["openBlock"])(),Object(f["createBlock"])(v,{key:0,type:"link",onClick:e=>w(t.processId,t.status)},{default:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(t.processId),1)]),_:2},1032,["onClick"])):Object(f["createCommentVNode"])("",!0),"status"===e.dataIndex?(Object(f["openBlock"])(),Object(f["createElementBlock"])("div",LP,[Object(f["createElementVNode"])("span",{style:Object(f["normalizeStyle"])({"background-color":(Object(f["unref"])(n)[t.status]||{}).color}),class:"status-icon"},null,4),Object(f["createElementVNode"])("span",null,Object(f["toDisplayString"])(t.status),1),"FAILED"===t.status?(Object(f["openBlock"])(),Object(f["createBlock"])(y,{key:0,placement:"topRight",class:"g-ml-4",overlayClassName:"table-failed-tip"},{title:Object(f["withCtx"])(()=>[Object(f["createElementVNode"])("div",NP,Object(f["toDisplayString"])(t.failReason),1)]),default:Object(f["withCtx"])(()=>[Object(f["createVNode"])(Object(f["unref"])(jP["a"]))]),_:2},1024)):Object(f["createCommentVNode"])("",!0)])):Object(f["createCommentVNode"])("",!0)]),expandedRowRender:Object(f["withCtx"])(({record:t})=>[(Object(f["openBlock"])(!0),Object(f["createElementBlock"])(f["Fragment"],null,Object(f["renderList"])(t.summary,(t,e)=>(Object(f["openBlock"])(),Object(f["createBlock"])(x,{type:"flex",gutter:16,key:e},{default:Object(f["withCtx"])(()=>[Object(f["createVNode"])(m,{flex:"220px",style:{"text-align":"right"}},{default:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(e)+" :",1)]),_:2},1024),Object(f["createVNode"])(m,{flex:"auto"},{default:Object(f["withCtx"])(()=>[Object(f["createTextVNode"])(Object(f["toDisplayString"])(t),1)]),_:2},1024)]),_:2},1024))),128))]),_:1},8,["columns","data-source","pagination","loading"]))])}}});n("235c"),n("d7b7");const WP=Z()(GP,[["__scopeId","data-v-66f12fbb"]]);var UP=WP,YP=n("0613"),XP=Object(f["defineComponent"])({name:"Tables",components:{UDetails:Q,UFiles:it,UOperations:pt,USnapshots:wP,UOptimizing:UP},setup(){const t=Object(I["e"])(),e=Object(I["d"])(),n=Object(YP["a"])(),r=Object(f["ref"])(),i=Object(f["shallowReactive"])([{key:"Snapshots",label:"Snapshots"},{key:"Optimizing",label:"Optimizing"},{key:"Operations",label:"Operations"}]),o=Object(f["reactive"])({activeKey:"Details",isSecondaryNav:!1,baseInfo:{tableType:"",tableName:"",createTime:"",size:"",file:"",averageFile:"",tableFormat:"",hasPartition:!1},detailLoaded:!1}),a=Object(f["computed"])(()=>"ICEBERG"===o.baseInfo.tableType),s=t=>{o.detailLoaded=!0,o.baseInfo={...t}},l=n=>{const r={...e.query};r.tab=n,t.replace({query:{...r}})},c=()=>{},u=()=>{},h=()=>{n.updateTablesMenu(!1)},d=()=>{o.isSecondaryNav=!1,t.back()};return Object(f["watch"])(()=>e.path,()=>{o.isSecondaryNav=!!(e.path.indexOf("create")>-1)},{immediate:!0}),Object(f["watch"])(()=>e.query,(t,e)=>{const{catalog:n,db:r,table:i}=t,{catalog:a,db:s,table:l}=e;o.activeKey=`${n}${r}${i}`===`${a}${s}${l}`?t.tab:"Details"}),Object(f["onMounted"])(()=>{var t;o.activeKey=(null===(t=e.query)||void 0===t?void 0:t.tab)||"Details",Object(f["nextTick"])(()=>{r.value&&r.value.getTableDetails()})}),{...Object(f["toRefs"])(o),tabConfigs:i,store:n,isIceberg:a,editTable:c,delTable:u,setBaseDetailInfo:s,hideTablesMenu:h,goBack:d,onChangeTab:l}}});n("8c8c");const qP=Z()(XP,[["render",T],["__scopeId","data-v-4759e59e"]]);e["default"]=qP},d360:function(t,e,n){},d51b:function(t,e,n){"use strict";var r=function(){function t(t){this.value=t}return t}(),i=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new r(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),o=function(){function t(t){this._list=new i,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,o=null;if(null==i[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e["a"]=o},d7b7:function(t,e,n){"use strict";n("61c6")},da03b:function(t,e,n){"use strict";n("ef8b")},dadd:function(t,e,n){},df0a:function(t,e,n){},df32:function(t,e,n){},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e884:function(t,e,n){"use strict";n("df32")},ef8b:function(t,e,n){},f38b:function(t,e,n){"use strict";var r,i,o,a,s;n.d(e,"b",(function(){return r})),n.d(e,"e",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return s})),function(t){t["Created"]="#f5f5f5",t["Failed"]="#fff2f0",t["Finished"]="#f6ffed",t["Canceled"]="#f5f5f5"}(r||(r={})),function(t){t["failed"]="FAILED",t["upgrading"]="UPGRADING",t["success"]="SUCCESS",t["none"]="NONE"}(i||(i={})),function(t){t["ICEBERG"]="iceberg",t["ARCTIC"]="amoro",t["HIVE"]="hive",t["PAIMON"]="paimon"}(o||(o={})),function(t){t["BRANCH"]="branch",t["TAG"]="tag"}(a||(a={})),function(t){t["ALL"]="all",t["OPTIMIZING"]="optimizing",t["NONOPTIMIZING"]="non-optimizing"}(s||(s={}))},fa3c:function(t,e,n){}}]); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/chunk-9fc4147c.a4b06b36.js b/ams/dashboard/src/main/resources/static/js/chunk-9fc4147c.a4b06b36.js new file mode 100644 index 0000000000..4d33c0ba9b --- /dev/null +++ b/ams/dashboard/src/main/resources/static/js/chunk-9fc4147c.a4b06b36.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9fc4147c"],{"376e":function(e,t,a){"use strict";a("5f36")},"3c6b":function(e,t,a){"use strict";a("7fad")},"4e01":function(e,t,a){"use strict";var o=a("7a23"),c=a("a878"),l=a("d257"),n=a("8552"),r=a("47e2");const i={class:"config-properties"},s={key:0},u={class:"config-header g-flex"},p={class:"td g-flex-ac"},b={class:"td g-flex-ac bd-left"},d=Object(o["createTextVNode"])("+");var g=Object(o["defineComponent"])({__name:"Properties",props:{propertiesObj:null,isEdit:{type:Boolean}},setup(e,{expose:t}){const a=e,{t:g}=Object(r["b"])(),f=Object(o["shallowReactive"])([{dataIndex:"key",title:g("key"),width:284,ellipsis:!0},{dataIndex:"value",title:g("value"),ellipsis:!0}]),O=Object(o["ref"])(),j=Object(o["reactive"])({data:[]}),m=Object(o["reactive"])(Object(n["a"])()),h=Object(o["computed"])(()=>a.isEdit);function v(){j.data.length=0,Object.keys(a.propertiesObj).forEach(e=>{j.data.push({key:e,value:a.propertiesObj[e],uuid:Object(l["g"])()})})}function k(e){const t=j.data.indexOf(e);-1!==t&&j.data.splice(t,1)}function y(){j.data.push({key:"",value:"",uuid:Object(l["g"])()})}return Object(o["watch"])(()=>a.propertiesObj,()=>{v()},{immediate:!0,deep:!0}),t({getPropertiesWithoputValidation(){const e={};return j.data.forEach(t=>{e[t.key]=t.value}),Promise.resolve(e)},getProperties(){return O.value.validateFields().then(()=>{const e={};return j.data.forEach(t=>{e[t.key]=t.value}),Promise.resolve(e)}).catch(()=>!1)}}),Object(o["onMounted"])(()=>{}),(e,t)=>{const a=Object(o["resolveComponent"])("a-input"),l=Object(o["resolveComponent"])("a-form-item"),n=Object(o["resolveComponent"])("a-form"),r=Object(o["resolveComponent"])("a-button"),g=Object(o["resolveComponent"])("a-table");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",i,[Object(o["unref"])(h)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",s,[Object(o["createElementVNode"])("div",u,[Object(o["createElementVNode"])("div",p,Object(o["toDisplayString"])(e.$t("key")),1),Object(o["createElementVNode"])("div",b,Object(o["toDisplayString"])(e.$t("value")),1)]),Object(o["createVNode"])(n,{ref_key:"propertiesFormRef",ref:O,model:j,class:"g-mt-12"},{default:Object(o["withCtx"])(()=>[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(j.data,(t,n)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:"config-row",key:t.uuid},[Object(o["createVNode"])(l,{name:["data",n,"key"],rules:[{required:!0,message:""+e.$t(m.inputPh)}],class:"g-mr-8"},{default:Object(o["withCtx"])(()=>[Object(o["createVNode"])(a,{value:t.key,"onUpdate:value":e=>t.key=e,style:{width:"100%"}},null,8,["value","onUpdate:value"])]),_:2},1032,["name","rules"]),Object(o["createVNode"])(l,{name:["data",n,"value"],rules:[{required:!0,message:""+e.$t(m.inputPh)}]},{default:Object(o["withCtx"])(()=>[Object(o["createVNode"])(a,{value:t.value,"onUpdate:value":e=>t.value=e,style:{width:"100%"}},null,8,["value","onUpdate:value"])]),_:2},1032,["name","rules"]),Object(o["createVNode"])(Object(o["unref"])(c["a"]),{class:"icon-close",onClick:e=>k(t)},null,8,["onClick"])]))),128))]),_:1},8,["model"]),Object(o["createVNode"])(r,{class:"config-btn",onClick:y},{default:Object(o["withCtx"])(()=>[d]),_:1})])):Object(o["createCommentVNode"])("",!0),Object(o["unref"])(h)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createBlock"])(g,{key:1,rowKey:"uuid",columns:Object(o["unref"])(f),"data-source":j.data,pagination:!1},null,8,["columns","data-source"]))])}}});a("9054");const f=g;t["a"]=f},5606:function(e,t,a){"use strict";a.d(t,"d",(function(){return c})),a.d(t,"c",(function(){return l})),a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return r})),a.d(t,"g",(function(){return i})),a.d(t,"f",(function(){return s})),a.d(t,"e",(function(){return u}));var o=a("b32d");function c(){return o["a"].get("ams/v1/catalog/metastore/types")}function l(e){return o["a"].get("ams/v1/catalogs/"+e)}function n(e){return o["a"].delete("ams/v1/catalogs/"+e)}function r(e){return o["a"].get(`ams/v1/catalogs/${e}/delete/check`)}function i(e){const{isCreate:t,name:a}=e;return delete e.isCreate,t?o["a"].post("ams/v1/catalogs",{...e}):o["a"].put("ams/v1/catalogs/"+a,{...e})}function s(){return o["a"].get("ams/v1/settings/system")}function u(){return o["a"].get("ams/v1/settings/containers")}},5738:function(e,t,a){"use strict";a.d(t,"c",(function(){return c})),a.d(t,"d",(function(){return l})),a.d(t,"m",(function(){return n})),a.d(t,"l",(function(){return r})),a.d(t,"f",(function(){return i})),a.d(t,"q",(function(){return s})),a.d(t,"j",(function(){return u})),a.d(t,"i",(function(){return p})),a.d(t,"k",(function(){return b})),a.d(t,"e",(function(){return d})),a.d(t,"g",(function(){return g})),a.d(t,"h",(function(){return f})),a.d(t,"o",(function(){return O})),a.d(t,"r",(function(){return j})),a.d(t,"p",(function(){return m})),a.d(t,"a",(function(){return h})),a.d(t,"b",(function(){return v})),a.d(t,"n",(function(){return k}));var o=a("b32d");function c(){return o["a"].get("ams/v1/catalogs")}function l(e){const{catalog:t,keywords:a}=e;return o["a"].get(`ams/v1/catalogs/${t}/databases`,{params:{keywords:a}})}function n(e){const{catalog:t,db:a,keywords:c}=e;return o["a"].get(`ams/v1/catalogs/${t}/databases/${a}/tables`,{params:{keywords:c}})}function r({catalog:e="",db:t="",table:a="",token:c=""}){return o["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/details`,{params:{token:c}})}function i({catalog:e="",db:t="",table:a=""}){return o["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/hive/details`)}function s({catalog:e="",db:t="",table:a=""}){return o["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/upgrade/status`)}function u(e){const{catalog:t,db:a,table:c,page:l,pageSize:n,token:r}=e;return o["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/partitions`,{params:{page:l,pageSize:n,token:r}})}function p(e){const{catalog:t,db:a,table:c,partition:l,specId:n,page:r,pageSize:i,token:s}=e;return o["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/partitions/${l}/files`,{params:{specId:n,page:r,pageSize:i,token:s}})}function b(e){const{catalog:t,db:a,table:c,page:l,pageSize:n,token:r,ref:i,operation:s}=e;return o["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/snapshots`,{params:{page:l,pageSize:n,token:r,ref:i,operation:s}})}function d(e){const{catalog:t,db:a,table:c,snapshotId:l,page:n,pageSize:r,token:i}=e;return o["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/snapshots/${l}/detail`,{params:{page:n,pageSize:r,token:i}})}function g(e){const{catalog:t,db:a,table:c,page:l,pageSize:n,token:r}=e;return o["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/operations`,{params:{page:l,pageSize:n,token:r}})}function f(e){const{catalog:t,db:a,table:c,page:l,pageSize:n,token:r}=e;return o["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/optimizing-processes`,{params:{page:l,pageSize:n,token:r}})}function O(e){const{catalog:t,db:a,table:c,processId:l,page:n,pageSize:r,token:i}=e;return o["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/optimizing-processes/${l}/tasks`,{params:{page:n,pageSize:r,token:i}})}function j({catalog:e="",db:t="",table:a="",properties:c={},pkList:l=[]}){return o["a"].post(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/upgrade`,{properties:c,pkList:l})}function m(){return o["a"].get("ams/v1/upgrade/properties")}function h({catalog:e="",db:t="",table:a="",processId:c=""}){return o["a"].post(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/optimizing-processes/${c}/cancel`)}function v(e){const{catalog:t,db:a,table:c}=e;return o["a"].get(`/ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/branches`)}function k(e){const{catalog:t,db:a,table:c}=e;return o["a"].get(`/ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/tags`)}},"5f36":function(e,t,a){},"6c78":function(e,t,a){},"7fad":function(e,t,a){},8552:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var o=a("7a23"),c=a("47e2");function l(){const{t:e}=Object(c["b"])(),t=Object(o["computed"])(()=>e("catalog")).value,a=Object(o["computed"])(()=>e("databaseName")).value,l=Object(o["computed"])(()=>e("tableName")).value,n=Object(o["computed"])(()=>e("optimzerGroup")).value,r=Object(o["computed"])(()=>e("resourceGroup")).value,i=Object(o["computed"])(()=>e("parallelism")).value,s=Object(o["computed"])(()=>e("username")).value,u=Object(o["computed"])(()=>e("password")).value,p=Object(o["computed"])(()=>e("database",2)).value,b=Object(o["computed"])(()=>e("table",2)).value,d=Object(o["computed"])(()=>e("name")).value,g=Object(o["computed"])(()=>e("container")).value;return{selectPh:e("selectPlaceholder"),inputPh:e("inputPlaceholder"),selectClPh:e("selectPlaceholder",{selectPh:t}),selectDBPh:e("selectPlaceholder",{selectPh:a}),inputDBPh:e("inputPlaceholder",{inputPh:a}),inputClPh:e("inputPlaceholder",{inputPh:t}),inputTNPh:e("inputPlaceholder",{inputPh:l}),selectOptGroupPh:e("inputPlaceholder",{inputPh:n}),resourceGroupPh:e("inputPlaceholder",{inputPh:r}),parallelismPh:e("inputPlaceholder",{inputPh:i}),usernamePh:e("inputPlaceholder",{inputPh:s}),passwordPh:e("inputPlaceholder",{inputPh:u}),filterDBPh:e("filterPlaceholder",{inputPh:p}),filterTablePh:e("filterPlaceholder",{inputPh:b}),groupNamePh:e("inputPlaceholder",{inputPh:d}),groupContainer:e("selectPlaceholder",{selectPh:g})}}},9054:function(e,t,a){"use strict";a("6c78")},"9df0":function(e,t,a){},adb5:function(e,t,a){"use strict";a.r(t);a("cd17");var o=a("ed3b"),c=(a("06f4"),a("fc25")),l=a("7a23"),n=a("5738"),r=(a("3b18"),a("f64c")),i=a("5606"),s=a("47e2"),u=a("4e01"),p=a("8552"),b=a("6c02"),d=a("e723");const g={class:"detail-wrap"},f={class:"detail-content-wrap"},O={class:"content-wrap"},j={class:"header"},m={key:1,class:"config-value"},h={key:1},v={key:1},k={key:1},y={class:"header"},C={key:1,class:"config-value"},E={key:1,class:"config-value"},B={key:1,class:"config-value"},N={key:3},w=["onClick"],$={class:"header"},P={key:1,class:"config-value"},_={key:1,class:"config-value"},S={key:1,class:"config-value"},V={key:6},I=["onClick","title"],x={key:1,class:"config-value"},z={key:1,class:"config-value"},D={class:"header"},G={class:"header"},U={key:0,class:"footer-btn"},R={key:1,class:"footer-btn"};var M=Object(l["defineComponent"])({__name:"Detail",props:{isEdit:{type:Boolean}},emits:["updateEdit","updateCatalogs"],setup(e,{emit:t}){const a=e,c={"Internal Catalog":"Internal Catalog","External Catalog":"External Catalog"},{t:n}=Object(s["b"])(),M=Object(b["d"])(),T=Object(l["reactive"])(Object(p["a"])()),L=Object(l["ref"])(""),A=Object(l["computed"])(()=>a.isEdit),F=Object(l["computed"])(()=>"/ams/v1/files"),q=Object(l["computed"])(()=>{var e;const t=((null===(e=M.query)||void 0===e?void 0:e.catalogname)||"").toString();return"new catalog"===decodeURIComponent(t)}),K=Object(l["computed"])(()=>"hive"===oe.catalog.type),H=(Object(l["computed"])(()=>"ams"===oe.catalog.type),Object(l["ref"])(!1)),X=Object(l["ref"])(),J=Object(l["ref"])(),W=Object(l["ref"])(),Z={MIXED_HIVE:"MIXED_HIVE",ICEBERG:"ICEBERG",MIXED_ICEBERG:"MIXED_ICEBERG",PAIMON:"PAIMON"},Q={[Z.ICEBERG]:"Iceberg",[Z.MIXED_HIVE]:"Mixed Hive",[Z.MIXED_ICEBERG]:"Mixed Iceberg",[Z.PAIMON]:"Paimon"},Y={ams:[Z.MIXED_ICEBERG,Z.ICEBERG],hive:[Z.MIXED_HIVE,Z.MIXED_ICEBERG,Z.ICEBERG,Z.PAIMON],hadoop:[Z.MIXED_ICEBERG,Z.ICEBERG,Z.PAIMON],glue:[Z.MIXED_ICEBERG,Z.ICEBERG],custom:[Z.MIXED_ICEBERG,Z.ICEBERG]},ee={"hadoop.core.site":"core-site.xml","hadoop.hdfs.site":"hdfs-site.xml","hive.site":"hive-site.xml"},te={storageConfig:{"hadoop.core.site":"","hadoop.hdfs.site":""},authConfig:{"auth.kerberos.keytab":"","auth.kerberos.krb5":""}},ae=Object(l["ref"])([{label:c["Internal Catalog"],value:c["Internal Catalog"]},{label:c["External Catalog"],value:c["External Catalog"]}]),oe=Object(l["reactive"])({catalog:{name:"",type:"ams",typeshow:c["Internal Catalog"],optimizerGroup:void 0},tableFormat:"",storageConfig:{},authConfig:{},properties:{},tableProperties:{},storageConfigArray:[],authConfigArray:[]}),ce=Object(l["reactive"])([{label:"SIMPLE",value:"SIMPLE"},{label:"KERBEROS",value:"KERBEROS"}]),le=Object(l["reactive"])([{label:"AK/SK",value:"AK/SK"},{label:"CUSTOM",value:"CUSTOM"}]),ne={"hadoop.core.site":"Hadoop core-site","hadoop.hdfs.site":"Hadoop hdfs-site","hive.site":"Hadoop hive-site"},re={"auth.kerberos.keytab":"Kerberos Keytab","auth.kerberos.krb5":"Kerberos Krb5"},ie={ams:["warehouse"],hadoop:["warehouse"],custom:["catalog-impl"],glue:["warehouse","lock-impl","lock.table"],PAIMON:["warehouse"]};Object(l["watch"])(()=>M.query,e=>{e&&pe()},{immediate:!0,deep:!0});const se=Object(l["reactive"])([]),ue=Object(l["ref"])([]);function pe(){fe()}const be=async()=>{const e=await Object(d["e"])(),t=(e||[]).map(e=>({lable:e.resourceGroup.name,value:e.resourceGroup.name}));ue.value=t};async function de(){const e=await Object(i["d"])();(e||[]).forEach(e=>{"ams"!==e.value&&se.push({label:e.display,value:e.value})}),ge()}function ge(){L.value=(se.find(e=>e.value===oe.catalog.type)||{}).label}async function fe(){try{H.value=!0;const{catalogname:e,type:t}=M.query;if(!e)return;if(q.value){oe.catalog.name="",oe.catalog.type=t||"ams",oe.catalog.optimizerGroup=void 0,oe.tableFormat=Z.MIXED_ICEBERG,oe.authConfig={...te.authConfig},oe.storageConfig={...te.storageConfig};const e=ie[oe.catalog.type]||[];oe.properties={},e.forEach(e=>{oe.properties[e]=""}),oe.tableProperties={},oe.storageConfigArray.length=0,oe.authConfigArray.length=0}else{const t=await Object(i["c"])(e);if(!t)return;const{name:a,type:o,tableFormatList:c,storageConfig:l,authConfig:n,properties:r,tableProperties:s,optimizerGroup:u}=t;oe.catalog.name=a,oe.catalog.type=o,oe.catalog.optimizerGroup=u,oe.tableFormat=c.join(""),oe.authConfig=n,oe.storageConfig=l,oe.properties=r||{},oe.tableProperties=s||{},oe.storageConfigArray.length=0,oe.authConfigArray.length=0,ge()}oe.catalog.typeshow="ams"===oe.catalog.type?c["Internal Catalog"]:c["External Catalog"];const{storageConfig:a,authConfig:o}=oe;Object.keys(a).forEach(e=>{const t=["hadoop.core.site","hadoop.hdfs.site"];if(K.value&&t.push("hive.site"),t.includes(e)){var o,c,l;const t={key:e,label:ne[e],value:null===(o=a[e])||void 0===o?void 0:o.fileName,fileName:null===(c=a[e])||void 0===c?void 0:c.fileName,fileUrl:null===(l=a[e])||void 0===l?void 0:l.fileUrl,fileId:"",fileList:[],uploadLoading:!1,isSuccess:!1};oe.storageConfigArray.push(t)}}),Object.keys(o).forEach(e=>{if(["auth.kerberos.keytab","auth.kerberos.krb5"].includes(e)){var t,a,c;const l={key:e,label:re[e],value:null===(t=o[e])||void 0===t?void 0:t.fileName,fileName:null===(a=o[e])||void 0===a?void 0:a.fileName,fileUrl:null===(c=o[e])||void 0===c?void 0:c.fileUrl,fileId:"",fileList:[],uploadLoading:!1,isSuccess:!1};oe.authConfigArray.push(l)}})}catch(e){}finally{H.value=!1}}const Oe=e=>{e===c["Internal Catalog"]?oe.catalog.type="ams":oe.catalog.type=se[0].value,Ee()},je=Object(l["computed"])(()=>{const e=oe.catalog.type;return Y[e]||[]});async function me(){const e=await J.value.getPropertiesWithoputValidation(),t=ie[oe.catalog.type]||[];t.forEach(t=>{t&&!e[t]&&(e[t]="")});const a=ie[oe.tableFormat]||[];a.forEach(t=>{t&&!e[t]&&(e[t]="")});for(const o in e)e[o]||t.includes(o)||a.includes(o)||delete e[o];oe.properties=e}const he=Object(l["reactive"])([{label:"S3",value:"S3"}]),ve=Object(l["reactive"])([{label:"Hadoop",value:"Hadoop"}]),ke=Object(l["reactive"])([{label:"Hadoop",value:"Hadoop"},{label:"S3",value:"S3"}]),ye=Object(l["computed"])(()=>{const e=oe.catalog.type;return"ams"===e||"custom"===e?ke:"glue"===e?he:"hive"===e||"hadoop"===e?ve:null}),Ce=Object(l["computed"])(()=>{const e=oe.storageConfig["storage.type"];return"Hadoop"===e?ce:"S3"===e?le:null});async function Ee(){if(oe.tableFormat=je.value[0],!q.value)return;const e=oe.storageConfigArray.findIndex(e=>"hive.site"===e.key);if(K.value){if(e>-1)return;oe.storageConfigArray.push({key:"hive.site",label:ne["hive.site"],value:"",fileName:"",fileUrl:"",fileId:"",fileList:[],uploadLoading:!1,isSuccess:!1}),oe.storageConfig["hive.site"]=""}else e>-1&&(oe.storageConfigArray.splice(e,1),delete oe.storageConfig["hive.site"]);await me()}async function Be(){await me()}function Ne(){t("updateEdit",!0)}async function we(){const e=await Object(i["a"])(oe.catalog.name);e?Ve():o["a"].confirm({title:n("cannotDeleteModalTitle"),content:n("cannotDeleteModalContent"),wrapClassName:"not-delete-modal"})}async function $e(e,t){return t?/^[a-zA-Z][\w-]*$/.test(t)?Promise.resolve():Promise.reject(new Error(n("invalidInput"))):Promise.reject(new Error(n("inputPlaceholder")))}function Pe(){const{storageConfig:e,authConfig:t,storageConfigArray:a,authConfigArray:o}=oe;Object.keys(t).forEach(e=>{if(["auth.kerberos.keytab","auth.kerberos.krb5"].includes(e)){const a=(o.find(t=>t.key===e)||{}).fileId;t[e]=a}}),Object.keys(e).forEach(t=>{if(["hadoop.core.site","hadoop.hdfs.site","hive.site"].includes(t)){const o=(a.find(e=>e.key===t)||{}).fileId;e[t]=o}})}function _e(){X.value.validateFields().then(async()=>{const{catalog:e,tableFormat:a,storageConfig:o,authConfig:c}=oe,l=await J.value.getProperties(),s=await W.value.getProperties();if(!l)return;if(!s)return;H.value=!0;const{typeshow:u,...p}=e;Pe(),await Object(i["g"])({isCreate:q.value,...p,tableFormatList:[a],storageConfig:o,authConfig:c,properties:l,tableProperties:s}).then(()=>{r["a"].success(`${n("save")} ${n("success")}`),t("updateEdit",!1,{catalogName:e.name,catalogType:e.type}),fe(),X.value.resetFields()}).catch(()=>{r["a"].error(`${n("save")} ${n("failed")}`)}).finally(()=>{H.value=!1})}).catch(()=>{})}function Se(){X.value.resetFields(),t("updateEdit",!1),fe()}async function Ve(){o["a"].confirm({title:n("deleteCatalogModalTitle"),onOk:async()=>{await Object(i["b"])(oe.catalog.name),r["a"].success(`${n("remove")} ${n("success")}`),t("updateEdit",!1,{})}})}function Ie(e,t,a){try{if("uploading"===e.file.status?t.uploadLoading=!0:t.uploadLoading=!1,"done"===e.file.status){const{code:o}=e.file.response;if(200!==o)throw new Error("failed");const{url:c,id:l}=e.file.response.result;t.isSuccess=!0,t.fileName="STORAGE"===a?ee[t.key]:e.file.name,t.fileUrl=c,t.fileId=l,r["a"].success(`${e.file.name} ${n("uploaded")} ${n("success")}`)}else"error"===e.file.status&&(t.isSuccess=!1,r["a"].error(`${e.file.name} ${n("uploaded")} ${n("failed")}`))}catch(o){r["a"].error(`${n("uploaded")} ${n("failed")}`)}}function xe(e){e&&window.open(e)}return Object(l["onMounted"])(()=>{de(),be()}),(e,t)=>{const a=Object(l["resolveComponent"])("a-form-item"),o=Object(l["resolveComponent"])("a-input"),n=Object(l["resolveComponent"])("a-select"),r=Object(l["resolveComponent"])("a-radio"),i=Object(l["resolveComponent"])("a-radio-group"),s=Object(l["resolveComponent"])("a-button"),p=Object(l["resolveComponent"])("a-upload"),b=Object(l["resolveComponent"])("a-form"),d=Object(l["resolveComponent"])("u-loading");return Object(l["openBlock"])(),Object(l["createElementBlock"])("div",g,[Object(l["createElementVNode"])("div",f,[Object(l["createElementVNode"])("div",O,[Object(l["createVNode"])(b,{ref_key:"formRef",ref:X,model:oe,class:"catalog-form"},{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(a,null,{default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("p",j,Object(l["toDisplayString"])(e.$t("basic")),1)]),_:1}),Object(l["createVNode"])(a,{label:e.$t("name"),name:["catalog","name"],rules:[{required:Object(l["unref"])(A)&&Object(l["unref"])(q),validator:$e}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)&&Object(l["unref"])(q)?(Object(l["openBlock"])(),Object(l["createBlock"])(o,{key:0,value:oe.catalog.name,"onUpdate:value":t[0]||(t[0]=e=>oe.catalog.name=e)},null,8,["value"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",m,Object(l["toDisplayString"])(oe.catalog.name),1))]),_:1},8,["label","rules"]),Object(l["createVNode"])(a,{label:e.$t("type"),name:["catalog","typeshow"]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)&&Object(l["unref"])(q)?(Object(l["openBlock"])(),Object(l["createBlock"])(n,{key:0,value:oe.catalog.typeshow,"onUpdate:value":t[1]||(t[1]=e=>oe.catalog.typeshow=e),options:ae.value,placeholder:T.selectPh,onChange:Oe},null,8,["value","options","placeholder"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",h,Object(l["toDisplayString"])(oe.catalog.typeshow),1))]),_:1},8,["label"]),oe.catalog.typeshow===c["External Catalog"]?(Object(l["openBlock"])(),Object(l["createBlock"])(a,{key:0,label:e.$t("metastore"),name:["catalog","type"],rules:[{required:Object(l["unref"])(A)&&Object(l["unref"])(q)}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)&&Object(l["unref"])(q)?(Object(l["openBlock"])(),Object(l["createBlock"])(n,{key:0,value:oe.catalog.type,"onUpdate:value":t[2]||(t[2]=e=>oe.catalog.type=e),options:se,placeholder:T.selectPh,onChange:Ee},null,8,["value","options","placeholder"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",v,Object(l["toDisplayString"])(L.value),1))]),_:1},8,["label","rules"])):Object(l["createCommentVNode"])("",!0),Object(l["createVNode"])(a,{label:e.$t("tableFormat"),name:["tableFormat"],rules:[{required:Object(l["unref"])(A)&&Object(l["unref"])(q)}]},{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(i,{disabled:!Object(l["unref"])(A)||!Object(l["unref"])(q),value:oe.tableFormat,"onUpdate:value":t[3]||(t[3]=e=>oe.tableFormat=e),name:"radioGroup",onChange:Be},{default:Object(l["withCtx"])(()=>[(Object(l["openBlock"])(!0),Object(l["createElementBlock"])(l["Fragment"],null,Object(l["renderList"])(Object(l["unref"])(je),e=>(Object(l["openBlock"])(),Object(l["createBlock"])(r,{key:e,value:e},{default:Object(l["withCtx"])(()=>[Object(l["createTextVNode"])(Object(l["toDisplayString"])(Q[e]),1)]),_:2},1032,["value"]))),128))]),_:1},8,["disabled","value"])]),_:1},8,["label","rules"]),Object(l["createVNode"])(a,{label:e.$t("optimizerGroup"),name:["catalog","optimizerGroup"],rules:[{required:Object(l["unref"])(A)}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(n,{key:0,value:oe.catalog.optimizerGroup,"onUpdate:value":t[4]||(t[4]=e=>oe.catalog.optimizerGroup=e),options:ue.value,placeholder:T.selectPh},null,8,["value","options","placeholder"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",k,Object(l["toDisplayString"])(oe.catalog.optimizerGroup),1))]),_:1},8,["label","rules"]),Object(l["createVNode"])(a,null,{default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("p",y,Object(l["toDisplayString"])(e.$t("storageConfigName")),1)]),_:1}),Object(l["createVNode"])(a,{label:"Type",name:["storageConfig","storage.type"],rules:[{required:Object(l["unref"])(A)}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(n,{key:0,value:oe.storageConfig["storage.type"],"onUpdate:value":t[5]||(t[5]=e=>oe.storageConfig["storage.type"]=e),placeholder:T.selectPh,options:Object(l["unref"])(ye)},null,8,["value","placeholder","options"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",C,Object(l["toDisplayString"])(oe.storageConfig["storage.type"]),1))]),_:1},8,["name","rules"]),"S3"===oe.storageConfig["storage.type"]?(Object(l["openBlock"])(),Object(l["createBlock"])(a,{key:1,label:"Endpoint",name:["storageConfig","storage.s3.endpoint"],rules:[{required:!1}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(o,{key:0,value:oe.storageConfig["storage.s3.endpoint"],"onUpdate:value":t[6]||(t[6]=e=>oe.storageConfig["storage.s3.endpoint"]=e)},null,8,["value"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",E,Object(l["toDisplayString"])(oe.storageConfig["storage.s3.endpoint"]),1))]),_:1},8,["name"])):Object(l["createCommentVNode"])("",!0),"S3"===oe.storageConfig["storage.type"]?(Object(l["openBlock"])(),Object(l["createBlock"])(a,{key:2,label:"Region",name:["storageConfig","storage.s3.region"],rules:[{required:!1}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(o,{key:0,value:oe.storageConfig["storage.s3.region"],"onUpdate:value":t[7]||(t[7]=e=>oe.storageConfig["storage.s3.region"]=e)},null,8,["value"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",B,Object(l["toDisplayString"])(oe.storageConfig["storage.s3.region"]),1))]),_:1},8,["name"])):Object(l["createCommentVNode"])("",!0),"Hadoop"===oe.storageConfig["storage.type"]?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",N,[(Object(l["openBlock"])(!0),Object(l["createElementBlock"])(l["Fragment"],null,Object(l["renderList"])(oe.storageConfigArray,t=>(Object(l["openBlock"])(),Object(l["createBlock"])(a,{key:t.label,label:t.label,class:"g-flex-ac"},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(p,{key:0,"file-list":t.fileList,"onUpdate:file-list":e=>t.fileList=e,name:"file",accept:".xml",showUploadList:!1,action:Object(l["unref"])(F),disabled:t.uploadLoading,onChange:e=>Ie(e,t,"STORAGE")},{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(s,{type:"primary",ghost:"",loading:t.uploadLoading,class:"g-mr-12"},{default:Object(l["withCtx"])(()=>[Object(l["createTextVNode"])(Object(l["toDisplayString"])(e.$t("upload")),1)]),_:2},1032,["loading"])]),_:2},1032,["file-list","onUpdate:file-list","action","disabled","onChange"])):Object(l["createCommentVNode"])("",!0),t.isSuccess||t.fileName?(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",{key:1,class:Object(l["normalizeClass"])(["config-value",{"view-active":!!t.fileUrl}]),onClick:e=>xe(t.fileUrl)},Object(l["toDisplayString"])(t.fileName),11,w)):Object(l["createCommentVNode"])("",!0)]),_:2},1032,["label"]))),128))])):Object(l["createCommentVNode"])("",!0),Object(l["createVNode"])(a,null,{default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("p",$,Object(l["toDisplayString"])(e.$t("authenticationConfig")),1)]),_:1}),Object(l["createVNode"])(a,{label:"Type",name:["authConfig","auth.type"],rules:[{required:Object(l["unref"])(A)}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(n,{key:0,value:oe.authConfig["auth.type"],"onUpdate:value":t[8]||(t[8]=e=>oe.authConfig["auth.type"]=e),placeholder:T.selectPh,options:Object(l["unref"])(Ce)},null,8,["value","placeholder","options"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",P,Object(l["toDisplayString"])(oe.authConfig["auth.type"]),1))]),_:1},8,["name","rules"]),"SIMPLE"===oe.authConfig["auth.type"]?(Object(l["openBlock"])(),Object(l["createBlock"])(a,{key:4,label:"Hadoop Username",name:["authConfig","auth.simple.hadoop_username"],rules:[{required:Object(l["unref"])(A)}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(o,{key:0,value:oe.authConfig["auth.simple.hadoop_username"],"onUpdate:value":t[9]||(t[9]=e=>oe.authConfig["auth.simple.hadoop_username"]=e)},null,8,["value"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",_,Object(l["toDisplayString"])(oe.authConfig["auth.simple.hadoop_username"]),1))]),_:1},8,["name","rules"])):Object(l["createCommentVNode"])("",!0),"KERBEROS"===oe.authConfig["auth.type"]?(Object(l["openBlock"])(),Object(l["createBlock"])(a,{key:5,label:"Kerberos Principal",name:["authConfig","auth.kerberos.principal"],rules:[{required:Object(l["unref"])(A)}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(o,{key:0,value:oe.authConfig["auth.kerberos.principal"],"onUpdate:value":t[10]||(t[10]=e=>oe.authConfig["auth.kerberos.principal"]=e)},null,8,["value"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",S,Object(l["toDisplayString"])(oe.authConfig["auth.kerberos.principal"]),1))]),_:1},8,["name","rules"])):Object(l["createCommentVNode"])("",!0),"KERBEROS"===oe.authConfig["auth.type"]?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",V,[(Object(l["openBlock"])(!0),Object(l["createElementBlock"])(l["Fragment"],null,Object(l["renderList"])(oe.authConfigArray,t=>(Object(l["openBlock"])(),Object(l["createBlock"])(a,{key:t.label,label:t.label,class:"g-flex-ac"},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(p,{key:0,"file-list":t.fileList,"onUpdate:file-list":e=>t.fileList=e,name:"file",accept:"auth.kerberos.keytab"===t.key?".keytab":".conf",showUploadList:!1,action:Object(l["unref"])(F),disabled:t.uploadLoading,onChange:e=>Ie(e,t)},{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(s,{type:"primary",ghost:"",loading:t.uploadLoading,class:"g-mr-12"},{default:Object(l["withCtx"])(()=>[Object(l["createTextVNode"])(Object(l["toDisplayString"])(e.$t("upload")),1)]),_:2},1032,["loading"])]),_:2},1032,["file-list","onUpdate:file-list","accept","action","disabled","onChange"])):Object(l["createCommentVNode"])("",!0),t.isSuccess||t.fileName?(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",{key:1,class:Object(l["normalizeClass"])(["config-value auth-filename",{"view-active":!!t.fileUrl}]),onClick:e=>xe(t.fileUrl),title:t.fileName},Object(l["toDisplayString"])(t.fileName),11,I)):Object(l["createCommentVNode"])("",!0)]),_:2},1032,["label"]))),128))])):Object(l["createCommentVNode"])("",!0),"AK/SK"===oe.authConfig["auth.type"]?(Object(l["openBlock"])(),Object(l["createBlock"])(a,{key:7,label:"Access Key",name:["authConfig","auth.ak_sk.access_key"],rules:[{required:Object(l["unref"])(A)}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(o,{key:0,value:oe.authConfig["auth.ak_sk.access_key"],"onUpdate:value":t[11]||(t[11]=e=>oe.authConfig["auth.ak_sk.access_key"]=e)},null,8,["value"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",x,Object(l["toDisplayString"])(oe.authConfig["auth.ak_sk.access_key"]),1))]),_:1},8,["name","rules"])):Object(l["createCommentVNode"])("",!0),"AK/SK"===oe.authConfig["auth.type"]?(Object(l["openBlock"])(),Object(l["createBlock"])(a,{key:8,label:"Secret Key",name:["authConfig","auth.ak_sk.secret_key"],rules:[{required:Object(l["unref"])(A)}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(o,{key:0,value:oe.authConfig["auth.ak_sk.secret_key"],"onUpdate:value":t[12]||(t[12]=e=>oe.authConfig["auth.ak_sk.secret_key"]=e)},null,8,["value"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",z,Object(l["toDisplayString"])(oe.authConfig["auth.ak_sk.secret_key"]),1))]),_:1},8,["name","rules"])):Object(l["createCommentVNode"])("",!0),Object(l["createVNode"])(a,null,{default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("p",D,Object(l["toDisplayString"])(e.$t("properties")),1)]),_:1}),Object(l["createVNode"])(a,null,{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(u["a"],{propertiesObj:oe.properties,isEdit:Object(l["unref"])(A),ref_key:"propertiesRef",ref:J},null,8,["propertiesObj","isEdit"])]),_:1}),Object(l["createVNode"])(a,null,{default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("p",G,Object(l["toDisplayString"])(e.$t("tableProperties")),1)]),_:1}),Object(l["createVNode"])(a,null,{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(u["a"],{propertiesObj:oe.tableProperties,isEdit:Object(l["unref"])(A),ref_key:"tablePropertiesRef",ref:W},null,8,["propertiesObj","isEdit"])]),_:1})]),_:1},8,["model"])])]),Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",U,[Object(l["createVNode"])(s,{type:"primary",onClick:_e,class:"save-btn g-mr-12"},{default:Object(l["withCtx"])(()=>[Object(l["createTextVNode"])(Object(l["toDisplayString"])(e.$t("save")),1)]),_:1}),Object(l["createVNode"])(s,{onClick:Se},{default:Object(l["withCtx"])(()=>[Object(l["createTextVNode"])(Object(l["toDisplayString"])(e.$t("cancel")),1)]),_:1})])):Object(l["createCommentVNode"])("",!0),Object(l["unref"])(A)?Object(l["createCommentVNode"])("",!0):(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",R,[Object(l["createVNode"])(s,{type:"primary",onClick:Ne,class:"edit-btn g-mr-12"},{default:Object(l["withCtx"])(()=>[Object(l["createTextVNode"])(Object(l["toDisplayString"])(e.$t("edit")),1)]),_:1}),Object(l["createVNode"])(s,{onClick:we,class:"remove-btn"},{default:Object(l["withCtx"])(()=>[Object(l["createTextVNode"])(Object(l["toDisplayString"])(e.$t("remove")),1)]),_:1})])),H.value?(Object(l["openBlock"])(),Object(l["createBlock"])(d,{key:2})):Object(l["createCommentVNode"])("",!0)])}}}),T=(a("3c6b"),a("376e"),a("6b0d")),L=a.n(T);const A=L()(M,[["__scopeId","data-v-019ab485"]]);var F=A;const q={class:"catalogs-wrap g-flex"},K={class:"catalog-list-left"},H={class:"catalog-header"},X={key:0,class:"catalog-list"},J=["onClick"],W=Object(l["createTextVNode"])("+"),Z={class:"catalog-detail"};var Q=Object(l["defineComponent"])({__name:"index",setup(e){const{t:t}=Object(s["b"])(),a=Object(b["e"])(),r=Object(b["d"])(),i=Object(l["reactive"])([]),u=Object(l["reactive"])({}),p=Object(l["ref"])(!1),d="new catalog",g=Object(l["ref"])(!1),f=c["a"].PRESENTED_IMAGE_SIMPLE;async function O(){try{g.value=!0;const e=await Object(n["c"])();i.length=0,(e||[]).forEach(e=>{i.push({catalogName:e.catalogName,catalogType:e.catalogType})})}finally{g.value=!1}}function j(){const{catalogname:e="",type:t}=r.query,a={};if(decodeURIComponent(e)!==d){var o,c;if(e)a.catalogName=e,a.catalogType=t;else a.catalogName=null===(o=i[0])||void 0===o?void 0:o.catalogName,a.catalogType=null===(c=i[0])||void 0===c?void 0:c.catalogType;h(a)}else y()}function m(e){p.value?E(()=>{h(e),p.value=!1,v(!1)}):h(e)}async function h(e){const{catalogName:t,catalogType:o}=e;u.catalogName=t||"",u.catalogType=o||"",await a.replace({path:"/catalogs",query:{catalogname:encodeURIComponent(u.catalogName),type:u.catalogType}})}async function v(e,t){var a,o;(p.value=e,t)&&(await k(),null!==t&&void 0!==t&&t.catalogName||(t.catalogName=null===(a=i[0])||void 0===a?void 0:a.catalogName,t.catalogType=null===(o=i[0])||void 0===o?void 0:o.catalogType));const c=i.findIndex(e=>e.catalogName===d);if(c>-1){var l,n;i.splice(c);const e={catalogName:null===(l=i[0])||void 0===l?void 0:l.catalogName,catalogType:null===(n=i[0])||void 0===n?void 0:n.catalogType};h(e)}else t&&h(t)}async function k(){await O()}function y(){p.value?E(()=>{C()}):C()}async function C(){const e={catalogName:d,catalogType:""};await h(e),i.push(e),p.value=!0}function E(e){o["a"].confirm({title:t("leavePageModalTitle"),content:t("leavePageModalContent"),okText:t("leave"),onOk:async()=>{e&&await e()}})}return Object(l["onMounted"])(async()=>{await O(),j()}),Object(b["c"])((e,t,a)=>{p.value?E(()=>{a()}):a()}),(e,t)=>{const a=Object(l["resolveComponent"])("a-button"),o=Object(l["resolveComponent"])("a-empty");return Object(l["openBlock"])(),Object(l["createElementBlock"])("div",q,[Object(l["createElementVNode"])("div",K,[Object(l["createElementVNode"])("div",H,Object(l["toDisplayString"])(`${e.$t("catalog")} ${e.$t("list")}`),1),i.length&&!g.value?(Object(l["openBlock"])(),Object(l["createElementBlock"])("ul",X,[(Object(l["openBlock"])(!0),Object(l["createElementBlock"])(l["Fragment"],null,Object(l["renderList"])(i,e=>(Object(l["openBlock"])(),Object(l["createElementBlock"])("li",{key:e.catalogName,class:Object(l["normalizeClass"])(["catalog-item g-text-nowrap",{active:e.catalogName===u.catalogName}]),onClick:t=>m(e)},Object(l["toDisplayString"])(e.catalogName),11,J))),128))])):Object(l["createCommentVNode"])("",!0),Object(l["createVNode"])(a,{onClick:y,disabled:u.catalogName===d,class:"add-btn"},{default:Object(l["withCtx"])(()=>[W]),_:1},8,["disabled"])]),Object(l["createElementVNode"])("div",Z,[i.length||g.value?(Object(l["openBlock"])(),Object(l["createBlock"])(F,{key:1,isEdit:p.value,onUpdateEdit:v,onUpdateCatalogs:k},null,8,["isEdit"])):(Object(l["openBlock"])(),Object(l["createBlock"])(o,{key:0,image:Object(l["unref"])(f),class:"detail-empty"},null,8,["image"]))])])}}});a("c5c7");const Y=L()(Q,[["__scopeId","data-v-0914312d"]]);t["default"]=Y},c5c7:function(e,t,a){"use strict";a("9df0")},e723:function(e,t,a){"use strict";a.d(t,"d",(function(){return c})),a.d(t,"c",(function(){return l})),a.d(t,"i",(function(){return n})),a.d(t,"h",(function(){return r})),a.d(t,"e",(function(){return i})),a.d(t,"b",(function(){return s})),a.d(t,"a",(function(){return u})),a.d(t,"j",(function(){return p})),a.d(t,"g",(function(){return b})),a.d(t,"f",(function(){return d}));var o=a("b32d");function c(e){const{optimizerGroup:t,page:a,pageSize:c}=e;return o["a"].get(`ams/v1/optimize/optimizerGroups/${t}/tables`,{params:{page:a,pageSize:c}})}function l(e){const{optimizerGroup:t,page:a,pageSize:c}=e;return o["a"].get(`ams/v1/optimize/optimizerGroups/${t}/optimizers`,{params:{page:a,pageSize:c}})}function n(e){const{optimizerGroup:t,parallelism:a}=e;return o["a"].post(`ams/v1/optimize/optimizerGroups/${t}/optimizers`,{parallelism:a})}function r(e){const{optimizerGroup:t,jobId:a}=e;return o["a"].delete(`ams/v1/optimize/optimizerGroups/${t}/optimizers/${a}`)}async function i(){const e=await o["a"].get("ams/v1/optimize/resourceGroups");return e}const s=async()=>{const e=await o["a"].get("ams/v1/optimize/containers/get");return e},u=e=>o["a"].post("ams/v1/optimize/resourceGroups",e),p=e=>o["a"].put("ams/v1/optimize/resourceGroups",e),b=e=>o["a"].get(`/ams/v1/optimize/resourceGroups/${e.name}/delete/check`),d=e=>o["a"].delete("/ams/v1/optimize/resourceGroups/"+e.name)}}]); \ No newline at end of file diff --git a/ams/dashboard/src/main/resources/static/js/chunk-9fc4147c.d8508248.js b/ams/dashboard/src/main/resources/static/js/chunk-9fc4147c.d8508248.js deleted file mode 100644 index ddbb64d18a..0000000000 --- a/ams/dashboard/src/main/resources/static/js/chunk-9fc4147c.d8508248.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9fc4147c"],{"376e":function(e,t,a){"use strict";a("5f36")},"3c6b":function(e,t,a){"use strict";a("7fad")},"4e01":function(e,t,a){"use strict";var o=a("7a23"),c=a("a878"),l=a("d257"),n=a("8552"),r=a("47e2");const i={class:"config-properties"},s={key:0},u={class:"config-header g-flex"},p={class:"td g-flex-ac"},b={class:"td g-flex-ac bd-left"},d=Object(o["createTextVNode"])("+");var g=Object(o["defineComponent"])({__name:"Properties",props:{propertiesObj:null,isEdit:{type:Boolean}},setup(e,{expose:t}){const a=e,{t:g}=Object(r["b"])(),f=Object(o["shallowReactive"])([{dataIndex:"key",title:g("key"),width:284,ellipsis:!0},{dataIndex:"value",title:g("value"),ellipsis:!0}]),O=Object(o["ref"])(),j=Object(o["reactive"])({data:[]}),m=Object(o["reactive"])(Object(n["a"])()),h=Object(o["computed"])(()=>a.isEdit);function v(){j.data.length=0,Object.keys(a.propertiesObj).forEach(e=>{j.data.push({key:e,value:a.propertiesObj[e],uuid:Object(l["g"])()})})}function k(e){const t=j.data.indexOf(e);-1!==t&&j.data.splice(t,1)}function y(){j.data.push({key:"",value:"",uuid:Object(l["g"])()})}return Object(o["watch"])(()=>a.propertiesObj,()=>{v()},{immediate:!0,deep:!0}),t({getPropertiesWithoputValidation(){const e={};return j.data.forEach(t=>{e[t.key]=t.value}),Promise.resolve(e)},getProperties(){return O.value.validateFields().then(()=>{const e={};return j.data.forEach(t=>{e[t.key]=t.value}),Promise.resolve(e)}).catch(()=>!1)}}),Object(o["onMounted"])(()=>{}),(e,t)=>{const a=Object(o["resolveComponent"])("a-input"),l=Object(o["resolveComponent"])("a-form-item"),n=Object(o["resolveComponent"])("a-form"),r=Object(o["resolveComponent"])("a-button"),g=Object(o["resolveComponent"])("a-table");return Object(o["openBlock"])(),Object(o["createElementBlock"])("div",i,[Object(o["unref"])(h)?(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",s,[Object(o["createElementVNode"])("div",u,[Object(o["createElementVNode"])("div",p,Object(o["toDisplayString"])(e.$t("key")),1),Object(o["createElementVNode"])("div",b,Object(o["toDisplayString"])(e.$t("value")),1)]),Object(o["createVNode"])(n,{ref_key:"propertiesFormRef",ref:O,model:j,class:"g-mt-12"},{default:Object(o["withCtx"])(()=>[(Object(o["openBlock"])(!0),Object(o["createElementBlock"])(o["Fragment"],null,Object(o["renderList"])(j.data,(t,n)=>(Object(o["openBlock"])(),Object(o["createElementBlock"])("div",{class:"config-row",key:t.uuid},[Object(o["createVNode"])(l,{name:["data",n,"key"],rules:[{required:!0,message:""+e.$t(m.inputPh)}],class:"g-mr-8"},{default:Object(o["withCtx"])(()=>[Object(o["createVNode"])(a,{value:t.key,"onUpdate:value":e=>t.key=e,style:{width:"100%"}},null,8,["value","onUpdate:value"])]),_:2},1032,["name","rules"]),Object(o["createVNode"])(l,{name:["data",n,"value"],rules:[{required:!0,message:""+e.$t(m.inputPh)}]},{default:Object(o["withCtx"])(()=>[Object(o["createVNode"])(a,{value:t.value,"onUpdate:value":e=>t.value=e,style:{width:"100%"}},null,8,["value","onUpdate:value"])]),_:2},1032,["name","rules"]),Object(o["createVNode"])(Object(o["unref"])(c["a"]),{class:"icon-close",onClick:e=>k(t)},null,8,["onClick"])]))),128))]),_:1},8,["model"]),Object(o["createVNode"])(r,{class:"config-btn",onClick:y},{default:Object(o["withCtx"])(()=>[d]),_:1})])):Object(o["createCommentVNode"])("",!0),Object(o["unref"])(h)?Object(o["createCommentVNode"])("",!0):(Object(o["openBlock"])(),Object(o["createBlock"])(g,{key:1,rowKey:"uuid",columns:Object(o["unref"])(f),"data-source":j.data,pagination:!1},null,8,["columns","data-source"]))])}}});a("9054");const f=g;t["a"]=f},5606:function(e,t,a){"use strict";a.d(t,"d",(function(){return c})),a.d(t,"c",(function(){return l})),a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return r})),a.d(t,"g",(function(){return i})),a.d(t,"f",(function(){return s})),a.d(t,"e",(function(){return u}));var o=a("b32d");function c(){return o["a"].get("ams/v1/catalog/metastore/types")}function l(e){return o["a"].get("ams/v1/catalogs/"+e)}function n(e){return o["a"].delete("ams/v1/catalogs/"+e)}function r(e){return o["a"].get(`ams/v1/catalogs/${e}/delete/check`)}function i(e){const{isCreate:t,name:a}=e;return delete e.isCreate,t?o["a"].post("ams/v1/catalogs",{...e}):o["a"].put("ams/v1/catalogs/"+a,{...e})}function s(){return o["a"].get("ams/v1/settings/system")}function u(){return o["a"].get("ams/v1/settings/containers")}},5738:function(e,t,a){"use strict";a.d(t,"c",(function(){return c})),a.d(t,"d",(function(){return l})),a.d(t,"m",(function(){return n})),a.d(t,"l",(function(){return r})),a.d(t,"f",(function(){return i})),a.d(t,"p",(function(){return s})),a.d(t,"j",(function(){return u})),a.d(t,"i",(function(){return p})),a.d(t,"k",(function(){return b})),a.d(t,"e",(function(){return d})),a.d(t,"g",(function(){return g})),a.d(t,"h",(function(){return f})),a.d(t,"q",(function(){return O})),a.d(t,"o",(function(){return j})),a.d(t,"a",(function(){return m})),a.d(t,"b",(function(){return h})),a.d(t,"n",(function(){return v}));var o=a("b32d");function c(){return o["a"].get("ams/v1/catalogs")}function l(e){const{catalog:t,keywords:a}=e;return o["a"].get(`ams/v1/catalogs/${t}/databases`,{params:{keywords:a}})}function n(e){const{catalog:t,db:a,keywords:c}=e;return o["a"].get(`ams/v1/catalogs/${t}/databases/${a}/tables`,{params:{keywords:c}})}function r({catalog:e="",db:t="",table:a="",token:c=""}){return o["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/details`,{params:{token:c}})}function i({catalog:e="",db:t="",table:a=""}){return o["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/hive/details`)}function s({catalog:e="",db:t="",table:a=""}){return o["a"].get(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/upgrade/status`)}function u(e){const{catalog:t,db:a,table:c,page:l,pageSize:n,token:r}=e;return o["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/partitions`,{params:{page:l,pageSize:n,token:r}})}function p(e){const{catalog:t,db:a,table:c,partition:l,specId:n,page:r,pageSize:i,token:s}=e;return o["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/partitions/${l}/files`,{params:{specId:n,page:r,pageSize:i,token:s}})}function b(e){const{catalog:t,db:a,table:c,page:l,pageSize:n,token:r,ref:i,operation:s}=e;return o["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/snapshots`,{params:{page:l,pageSize:n,token:r,ref:i,operation:s}})}function d(e){const{catalog:t,db:a,table:c,snapshotId:l,page:n,pageSize:r,token:i}=e;return o["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/snapshots/${l}/detail`,{params:{page:n,pageSize:r,token:i}})}function g(e){const{catalog:t,db:a,table:c,page:l,pageSize:n,token:r}=e;return o["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/operations`,{params:{page:l,pageSize:n,token:r}})}function f(e){const{catalog:t,db:a,table:c,page:l,pageSize:n,token:r}=e;return o["a"].get(`ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/optimizing-processes`,{params:{page:l,pageSize:n,token:r}})}function O({catalog:e="",db:t="",table:a="",properties:c={},pkList:l=[]}){return o["a"].post(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/upgrade`,{properties:c,pkList:l})}function j(){return o["a"].get("ams/v1/upgrade/properties")}function m({catalog:e="",db:t="",table:a="",processId:c=""}){return o["a"].post(`ams/v1/tables/catalogs/${e}/dbs/${t}/tables/${a}/optimizing-processes/${c}/cancel`)}function h(e){const{catalog:t,db:a,table:c}=e;return o["a"].get(`/ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/branches`)}function v(e){const{catalog:t,db:a,table:c}=e;return o["a"].get(`/ams/v1/tables/catalogs/${t}/dbs/${a}/tables/${c}/tags`)}},"5f36":function(e,t,a){},"6c78":function(e,t,a){},"7fad":function(e,t,a){},8552:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var o=a("7a23"),c=a("47e2");function l(){const{t:e}=Object(c["b"])(),t=Object(o["computed"])(()=>e("catalog")).value,a=Object(o["computed"])(()=>e("databaseName")).value,l=Object(o["computed"])(()=>e("tableName")).value,n=Object(o["computed"])(()=>e("optimzerGroup")).value,r=Object(o["computed"])(()=>e("resourceGroup")).value,i=Object(o["computed"])(()=>e("parallelism")).value,s=Object(o["computed"])(()=>e("username")).value,u=Object(o["computed"])(()=>e("password")).value,p=Object(o["computed"])(()=>e("database",2)).value,b=Object(o["computed"])(()=>e("table",2)).value,d=Object(o["computed"])(()=>e("name")).value,g=Object(o["computed"])(()=>e("container")).value;return{selectPh:e("selectPlaceholder"),inputPh:e("inputPlaceholder"),selectClPh:e("selectPlaceholder",{selectPh:t}),selectDBPh:e("selectPlaceholder",{selectPh:a}),inputDBPh:e("inputPlaceholder",{inputPh:a}),inputClPh:e("inputPlaceholder",{inputPh:t}),inputTNPh:e("inputPlaceholder",{inputPh:l}),selectOptGroupPh:e("inputPlaceholder",{inputPh:n}),resourceGroupPh:e("inputPlaceholder",{inputPh:r}),parallelismPh:e("inputPlaceholder",{inputPh:i}),usernamePh:e("inputPlaceholder",{inputPh:s}),passwordPh:e("inputPlaceholder",{inputPh:u}),filterDBPh:e("filterPlaceholder",{inputPh:p}),filterTablePh:e("filterPlaceholder",{inputPh:b}),groupNamePh:e("inputPlaceholder",{inputPh:d}),groupContainer:e("selectPlaceholder",{selectPh:g})}}},9054:function(e,t,a){"use strict";a("6c78")},"9df0":function(e,t,a){},adb5:function(e,t,a){"use strict";a.r(t);a("cd17");var o=a("ed3b"),c=(a("06f4"),a("fc25")),l=a("7a23"),n=a("5738"),r=(a("3b18"),a("f64c")),i=a("5606"),s=a("47e2"),u=a("4e01"),p=a("8552"),b=a("6c02"),d=a("e723");const g={class:"detail-wrap"},f={class:"detail-content-wrap"},O={class:"content-wrap"},j={class:"header"},m={key:1,class:"config-value"},h={key:1},v={key:1},k={key:1},y={class:"header"},C={key:1,class:"config-value"},E={key:1,class:"config-value"},B={key:1,class:"config-value"},N={key:3},w=["onClick"],$={class:"header"},P={key:1,class:"config-value"},_={key:1,class:"config-value"},S={key:1,class:"config-value"},V={key:6},I=["onClick","title"],x={key:1,class:"config-value"},z={key:1,class:"config-value"},D={class:"header"},G={class:"header"},U={key:0,class:"footer-btn"},R={key:1,class:"footer-btn"};var M=Object(l["defineComponent"])({__name:"Detail",props:{isEdit:{type:Boolean}},emits:["updateEdit","updateCatalogs"],setup(e,{emit:t}){const a=e,c={"Internal Catalog":"Internal Catalog","External Catalog":"External Catalog"},{t:n}=Object(s["b"])(),M=Object(b["d"])(),T=Object(l["reactive"])(Object(p["a"])()),L=Object(l["ref"])(""),A=Object(l["computed"])(()=>a.isEdit),F=Object(l["computed"])(()=>"/ams/v1/files"),q=Object(l["computed"])(()=>{var e;const t=((null===(e=M.query)||void 0===e?void 0:e.catalogname)||"").toString();return"new catalog"===decodeURIComponent(t)}),K=Object(l["computed"])(()=>"hive"===oe.catalog.type),H=(Object(l["computed"])(()=>"ams"===oe.catalog.type),Object(l["ref"])(!1)),X=Object(l["ref"])(),J=Object(l["ref"])(),W=Object(l["ref"])(),Z={MIXED_HIVE:"MIXED_HIVE",ICEBERG:"ICEBERG",MIXED_ICEBERG:"MIXED_ICEBERG",PAIMON:"PAIMON"},Q={[Z.ICEBERG]:"Iceberg",[Z.MIXED_HIVE]:"Mixed Hive",[Z.MIXED_ICEBERG]:"Mixed Iceberg",[Z.PAIMON]:"Paimon"},Y={ams:[Z.MIXED_ICEBERG,Z.ICEBERG],hive:[Z.MIXED_HIVE,Z.MIXED_ICEBERG,Z.ICEBERG,Z.PAIMON],hadoop:[Z.MIXED_ICEBERG,Z.ICEBERG,Z.PAIMON],glue:[Z.MIXED_ICEBERG,Z.ICEBERG],custom:[Z.MIXED_ICEBERG,Z.ICEBERG]},ee={"hadoop.core.site":"core-site.xml","hadoop.hdfs.site":"hdfs-site.xml","hive.site":"hive-site.xml"},te={storageConfig:{"hadoop.core.site":"","hadoop.hdfs.site":""},authConfig:{"auth.kerberos.keytab":"","auth.kerberos.krb5":""}},ae=Object(l["ref"])([{label:c["Internal Catalog"],value:c["Internal Catalog"]},{label:c["External Catalog"],value:c["External Catalog"]}]),oe=Object(l["reactive"])({catalog:{name:"",type:"ams",typeshow:c["Internal Catalog"],optimizerGroup:void 0},tableFormat:"",storageConfig:{},authConfig:{},properties:{},tableProperties:{},storageConfigArray:[],authConfigArray:[]}),ce=Object(l["reactive"])([{label:"SIMPLE",value:"SIMPLE"},{label:"KERBEROS",value:"KERBEROS"}]),le=Object(l["reactive"])([{label:"AK/SK",value:"AK/SK"},{label:"CUSTOM",value:"CUSTOM"}]),ne={"hadoop.core.site":"Hadoop core-site","hadoop.hdfs.site":"Hadoop hdfs-site","hive.site":"Hadoop hive-site"},re={"auth.kerberos.keytab":"Kerberos Keytab","auth.kerberos.krb5":"Kerberos Krb5"},ie={ams:["warehouse"],hadoop:["warehouse"],custom:["catalog-impl"],glue:["warehouse","lock-impl","lock.table"],PAIMON:["warehouse"]};Object(l["watch"])(()=>M.query,e=>{e&&pe()},{immediate:!0,deep:!0});const se=Object(l["reactive"])([]),ue=Object(l["ref"])([]);function pe(){fe()}const be=async()=>{const e=await Object(d["e"])(),t=(e||[]).map(e=>({lable:e.resourceGroup.name,value:e.resourceGroup.name}));ue.value=t};async function de(){const e=await Object(i["d"])();(e||[]).forEach(e=>{"ams"!==e.value&&se.push({label:e.display,value:e.value})}),ge()}function ge(){L.value=(se.find(e=>e.value===oe.catalog.type)||{}).label}async function fe(){try{H.value=!0;const{catalogname:e,type:t}=M.query;if(!e)return;if(q.value){oe.catalog.name="",oe.catalog.type=t||"ams",oe.catalog.optimizerGroup=void 0,oe.tableFormat=Z.MIXED_ICEBERG,oe.authConfig={...te.authConfig},oe.storageConfig={...te.storageConfig};const e=ie[oe.catalog.type]||[];oe.properties={},e.forEach(e=>{oe.properties[e]=""}),oe.tableProperties={},oe.storageConfigArray.length=0,oe.authConfigArray.length=0}else{const t=await Object(i["c"])(e);if(!t)return;const{name:a,type:o,tableFormatList:c,storageConfig:l,authConfig:n,properties:r,tableProperties:s,optimizerGroup:u}=t;oe.catalog.name=a,oe.catalog.type=o,oe.catalog.optimizerGroup=u,oe.tableFormat=c.join(""),oe.authConfig=n,oe.storageConfig=l,oe.properties=r||{},oe.tableProperties=s||{},oe.storageConfigArray.length=0,oe.authConfigArray.length=0,ge()}oe.catalog.typeshow="ams"===oe.catalog.type?c["Internal Catalog"]:c["External Catalog"];const{storageConfig:a,authConfig:o}=oe;Object.keys(a).forEach(e=>{const t=["hadoop.core.site","hadoop.hdfs.site"];if(K.value&&t.push("hive.site"),t.includes(e)){var o,c,l;const t={key:e,label:ne[e],value:null===(o=a[e])||void 0===o?void 0:o.fileName,fileName:null===(c=a[e])||void 0===c?void 0:c.fileName,fileUrl:null===(l=a[e])||void 0===l?void 0:l.fileUrl,fileId:"",fileList:[],uploadLoading:!1,isSuccess:!1};oe.storageConfigArray.push(t)}}),Object.keys(o).forEach(e=>{if(["auth.kerberos.keytab","auth.kerberos.krb5"].includes(e)){var t,a,c;const l={key:e,label:re[e],value:null===(t=o[e])||void 0===t?void 0:t.fileName,fileName:null===(a=o[e])||void 0===a?void 0:a.fileName,fileUrl:null===(c=o[e])||void 0===c?void 0:c.fileUrl,fileId:"",fileList:[],uploadLoading:!1,isSuccess:!1};oe.authConfigArray.push(l)}})}catch(e){}finally{H.value=!1}}const Oe=e=>{e===c["Internal Catalog"]?oe.catalog.type="ams":oe.catalog.type=se[0].value,Ee()},je=Object(l["computed"])(()=>{const e=oe.catalog.type;return Y[e]||[]});async function me(){const e=await J.value.getPropertiesWithoputValidation(),t=ie[oe.catalog.type]||[];t.forEach(t=>{t&&!e[t]&&(e[t]="")});const a=ie[oe.tableFormat]||[];a.forEach(t=>{t&&!e[t]&&(e[t]="")});for(const o in e)e[o]||t.includes(o)||a.includes(o)||delete e[o];oe.properties=e}const he=Object(l["reactive"])([{label:"S3",value:"S3"}]),ve=Object(l["reactive"])([{label:"Hadoop",value:"Hadoop"}]),ke=Object(l["reactive"])([{label:"Hadoop",value:"Hadoop"},{label:"S3",value:"S3"}]),ye=Object(l["computed"])(()=>{const e=oe.catalog.type;return"ams"===e||"custom"===e?ke:"glue"===e?he:"hive"===e||"hadoop"===e?ve:null}),Ce=Object(l["computed"])(()=>{const e=oe.storageConfig["storage.type"];return"Hadoop"===e?ce:"S3"===e?le:null});async function Ee(){if(oe.tableFormat=je.value[0],!q.value)return;const e=oe.storageConfigArray.findIndex(e=>"hive.site"===e.key);if(K.value){if(e>-1)return;oe.storageConfigArray.push({key:"hive.site",label:ne["hive.site"],value:"",fileName:"",fileUrl:"",fileId:"",fileList:[],uploadLoading:!1,isSuccess:!1}),oe.storageConfig["hive.site"]=""}else e>-1&&(oe.storageConfigArray.splice(e,1),delete oe.storageConfig["hive.site"]);await me()}async function Be(){await me()}function Ne(){t("updateEdit",!0)}async function we(){const e=await Object(i["a"])(oe.catalog.name);e?Ve():o["a"].confirm({title:n("cannotDeleteModalTitle"),content:n("cannotDeleteModalContent"),wrapClassName:"not-delete-modal"})}async function $e(e,t){return t?/^[a-zA-Z][\w-]*$/.test(t)?Promise.resolve():Promise.reject(new Error(n("invalidInput"))):Promise.reject(new Error(n("inputPlaceholder")))}function Pe(){const{storageConfig:e,authConfig:t,storageConfigArray:a,authConfigArray:o}=oe;Object.keys(t).forEach(e=>{if(["auth.kerberos.keytab","auth.kerberos.krb5"].includes(e)){const a=(o.find(t=>t.key===e)||{}).fileId;t[e]=a}}),Object.keys(e).forEach(t=>{if(["hadoop.core.site","hadoop.hdfs.site","hive.site"].includes(t)){const o=(a.find(e=>e.key===t)||{}).fileId;e[t]=o}})}function _e(){X.value.validateFields().then(async()=>{const{catalog:e,tableFormat:a,storageConfig:o,authConfig:c}=oe,l=await J.value.getProperties(),s=await W.value.getProperties();if(!l)return;if(!s)return;H.value=!0;const{typeshow:u,...p}=e;Pe(),await Object(i["g"])({isCreate:q.value,...p,tableFormatList:[a],storageConfig:o,authConfig:c,properties:l,tableProperties:s}).then(()=>{r["a"].success(`${n("save")} ${n("success")}`),t("updateEdit",!1,{catalogName:e.name,catalogType:e.type}),fe(),X.value.resetFields()}).catch(()=>{r["a"].error(`${n("save")} ${n("failed")}`)}).finally(()=>{H.value=!1})}).catch(()=>{})}function Se(){X.value.resetFields(),t("updateEdit",!1),fe()}async function Ve(){o["a"].confirm({title:n("deleteCatalogModalTitle"),onOk:async()=>{await Object(i["b"])(oe.catalog.name),r["a"].success(`${n("remove")} ${n("success")}`),t("updateEdit",!1,{})}})}function Ie(e,t,a){try{if("uploading"===e.file.status?t.uploadLoading=!0:t.uploadLoading=!1,"done"===e.file.status){const{code:o}=e.file.response;if(200!==o)throw new Error("failed");const{url:c,id:l}=e.file.response.result;t.isSuccess=!0,t.fileName="STORAGE"===a?ee[t.key]:e.file.name,t.fileUrl=c,t.fileId=l,r["a"].success(`${e.file.name} ${n("uploaded")} ${n("success")}`)}else"error"===e.file.status&&(t.isSuccess=!1,r["a"].error(`${e.file.name} ${n("uploaded")} ${n("failed")}`))}catch(o){r["a"].error(`${n("uploaded")} ${n("failed")}`)}}function xe(e){e&&window.open(e)}return Object(l["onMounted"])(()=>{de(),be()}),(e,t)=>{const a=Object(l["resolveComponent"])("a-form-item"),o=Object(l["resolveComponent"])("a-input"),n=Object(l["resolveComponent"])("a-select"),r=Object(l["resolveComponent"])("a-radio"),i=Object(l["resolveComponent"])("a-radio-group"),s=Object(l["resolveComponent"])("a-button"),p=Object(l["resolveComponent"])("a-upload"),b=Object(l["resolveComponent"])("a-form"),d=Object(l["resolveComponent"])("u-loading");return Object(l["openBlock"])(),Object(l["createElementBlock"])("div",g,[Object(l["createElementVNode"])("div",f,[Object(l["createElementVNode"])("div",O,[Object(l["createVNode"])(b,{ref_key:"formRef",ref:X,model:oe,class:"catalog-form"},{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(a,null,{default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("p",j,Object(l["toDisplayString"])(e.$t("basic")),1)]),_:1}),Object(l["createVNode"])(a,{label:e.$t("name"),name:["catalog","name"],rules:[{required:Object(l["unref"])(A)&&Object(l["unref"])(q),validator:$e}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)&&Object(l["unref"])(q)?(Object(l["openBlock"])(),Object(l["createBlock"])(o,{key:0,value:oe.catalog.name,"onUpdate:value":t[0]||(t[0]=e=>oe.catalog.name=e)},null,8,["value"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",m,Object(l["toDisplayString"])(oe.catalog.name),1))]),_:1},8,["label","rules"]),Object(l["createVNode"])(a,{label:e.$t("type"),name:["catalog","typeshow"]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)&&Object(l["unref"])(q)?(Object(l["openBlock"])(),Object(l["createBlock"])(n,{key:0,value:oe.catalog.typeshow,"onUpdate:value":t[1]||(t[1]=e=>oe.catalog.typeshow=e),options:ae.value,placeholder:T.selectPh,onChange:Oe},null,8,["value","options","placeholder"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",h,Object(l["toDisplayString"])(oe.catalog.typeshow),1))]),_:1},8,["label"]),oe.catalog.typeshow===c["External Catalog"]?(Object(l["openBlock"])(),Object(l["createBlock"])(a,{key:0,label:e.$t("metastore"),name:["catalog","type"],rules:[{required:Object(l["unref"])(A)&&Object(l["unref"])(q)}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)&&Object(l["unref"])(q)?(Object(l["openBlock"])(),Object(l["createBlock"])(n,{key:0,value:oe.catalog.type,"onUpdate:value":t[2]||(t[2]=e=>oe.catalog.type=e),options:se,placeholder:T.selectPh,onChange:Ee},null,8,["value","options","placeholder"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",v,Object(l["toDisplayString"])(L.value),1))]),_:1},8,["label","rules"])):Object(l["createCommentVNode"])("",!0),Object(l["createVNode"])(a,{label:e.$t("tableFormat"),name:["tableFormat"],rules:[{required:Object(l["unref"])(A)&&Object(l["unref"])(q)}]},{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(i,{disabled:!Object(l["unref"])(A)||!Object(l["unref"])(q),value:oe.tableFormat,"onUpdate:value":t[3]||(t[3]=e=>oe.tableFormat=e),name:"radioGroup",onChange:Be},{default:Object(l["withCtx"])(()=>[(Object(l["openBlock"])(!0),Object(l["createElementBlock"])(l["Fragment"],null,Object(l["renderList"])(Object(l["unref"])(je),e=>(Object(l["openBlock"])(),Object(l["createBlock"])(r,{key:e,value:e},{default:Object(l["withCtx"])(()=>[Object(l["createTextVNode"])(Object(l["toDisplayString"])(Q[e]),1)]),_:2},1032,["value"]))),128))]),_:1},8,["disabled","value"])]),_:1},8,["label","rules"]),Object(l["createVNode"])(a,{label:e.$t("optimizerGroup"),name:["catalog","optimizerGroup"],rules:[{required:Object(l["unref"])(A)}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(n,{key:0,value:oe.catalog.optimizerGroup,"onUpdate:value":t[4]||(t[4]=e=>oe.catalog.optimizerGroup=e),options:ue.value,placeholder:T.selectPh},null,8,["value","options","placeholder"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",k,Object(l["toDisplayString"])(oe.catalog.optimizerGroup),1))]),_:1},8,["label","rules"]),Object(l["createVNode"])(a,null,{default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("p",y,Object(l["toDisplayString"])(e.$t("storageConfigName")),1)]),_:1}),Object(l["createVNode"])(a,{label:"Type",name:["storageConfig","storage.type"],rules:[{required:Object(l["unref"])(A)}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(n,{key:0,value:oe.storageConfig["storage.type"],"onUpdate:value":t[5]||(t[5]=e=>oe.storageConfig["storage.type"]=e),placeholder:T.selectPh,options:Object(l["unref"])(ye)},null,8,["value","placeholder","options"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",C,Object(l["toDisplayString"])(oe.storageConfig["storage.type"]),1))]),_:1},8,["name","rules"]),"S3"===oe.storageConfig["storage.type"]?(Object(l["openBlock"])(),Object(l["createBlock"])(a,{key:1,label:"Endpoint",name:["storageConfig","storage.s3.endpoint"],rules:[{required:!1}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(o,{key:0,value:oe.storageConfig["storage.s3.endpoint"],"onUpdate:value":t[6]||(t[6]=e=>oe.storageConfig["storage.s3.endpoint"]=e)},null,8,["value"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",E,Object(l["toDisplayString"])(oe.storageConfig["storage.s3.endpoint"]),1))]),_:1},8,["name"])):Object(l["createCommentVNode"])("",!0),"S3"===oe.storageConfig["storage.type"]?(Object(l["openBlock"])(),Object(l["createBlock"])(a,{key:2,label:"Region",name:["storageConfig","storage.s3.region"],rules:[{required:!1}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(o,{key:0,value:oe.storageConfig["storage.s3.region"],"onUpdate:value":t[7]||(t[7]=e=>oe.storageConfig["storage.s3.region"]=e)},null,8,["value"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",B,Object(l["toDisplayString"])(oe.storageConfig["storage.s3.region"]),1))]),_:1},8,["name"])):Object(l["createCommentVNode"])("",!0),"Hadoop"===oe.storageConfig["storage.type"]?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",N,[(Object(l["openBlock"])(!0),Object(l["createElementBlock"])(l["Fragment"],null,Object(l["renderList"])(oe.storageConfigArray,t=>(Object(l["openBlock"])(),Object(l["createBlock"])(a,{key:t.label,label:t.label,class:"g-flex-ac"},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(p,{key:0,"file-list":t.fileList,"onUpdate:file-list":e=>t.fileList=e,name:"file",accept:".xml",showUploadList:!1,action:Object(l["unref"])(F),disabled:t.uploadLoading,onChange:e=>Ie(e,t,"STORAGE")},{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(s,{type:"primary",ghost:"",loading:t.uploadLoading,class:"g-mr-12"},{default:Object(l["withCtx"])(()=>[Object(l["createTextVNode"])(Object(l["toDisplayString"])(e.$t("upload")),1)]),_:2},1032,["loading"])]),_:2},1032,["file-list","onUpdate:file-list","action","disabled","onChange"])):Object(l["createCommentVNode"])("",!0),t.isSuccess||t.fileName?(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",{key:1,class:Object(l["normalizeClass"])(["config-value",{"view-active":!!t.fileUrl}]),onClick:e=>xe(t.fileUrl)},Object(l["toDisplayString"])(t.fileName),11,w)):Object(l["createCommentVNode"])("",!0)]),_:2},1032,["label"]))),128))])):Object(l["createCommentVNode"])("",!0),Object(l["createVNode"])(a,null,{default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("p",$,Object(l["toDisplayString"])(e.$t("authenticationConfig")),1)]),_:1}),Object(l["createVNode"])(a,{label:"Type",name:["authConfig","auth.type"],rules:[{required:Object(l["unref"])(A)}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(n,{key:0,value:oe.authConfig["auth.type"],"onUpdate:value":t[8]||(t[8]=e=>oe.authConfig["auth.type"]=e),placeholder:T.selectPh,options:Object(l["unref"])(Ce)},null,8,["value","placeholder","options"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",P,Object(l["toDisplayString"])(oe.authConfig["auth.type"]),1))]),_:1},8,["name","rules"]),"SIMPLE"===oe.authConfig["auth.type"]?(Object(l["openBlock"])(),Object(l["createBlock"])(a,{key:4,label:"Hadoop Username",name:["authConfig","auth.simple.hadoop_username"],rules:[{required:Object(l["unref"])(A)}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(o,{key:0,value:oe.authConfig["auth.simple.hadoop_username"],"onUpdate:value":t[9]||(t[9]=e=>oe.authConfig["auth.simple.hadoop_username"]=e)},null,8,["value"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",_,Object(l["toDisplayString"])(oe.authConfig["auth.simple.hadoop_username"]),1))]),_:1},8,["name","rules"])):Object(l["createCommentVNode"])("",!0),"KERBEROS"===oe.authConfig["auth.type"]?(Object(l["openBlock"])(),Object(l["createBlock"])(a,{key:5,label:"Kerberos Principal",name:["authConfig","auth.kerberos.principal"],rules:[{required:Object(l["unref"])(A)}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(o,{key:0,value:oe.authConfig["auth.kerberos.principal"],"onUpdate:value":t[10]||(t[10]=e=>oe.authConfig["auth.kerberos.principal"]=e)},null,8,["value"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",S,Object(l["toDisplayString"])(oe.authConfig["auth.kerberos.principal"]),1))]),_:1},8,["name","rules"])):Object(l["createCommentVNode"])("",!0),"KERBEROS"===oe.authConfig["auth.type"]?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",V,[(Object(l["openBlock"])(!0),Object(l["createElementBlock"])(l["Fragment"],null,Object(l["renderList"])(oe.authConfigArray,t=>(Object(l["openBlock"])(),Object(l["createBlock"])(a,{key:t.label,label:t.label,class:"g-flex-ac"},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(p,{key:0,"file-list":t.fileList,"onUpdate:file-list":e=>t.fileList=e,name:"file",accept:"auth.kerberos.keytab"===t.key?".keytab":".conf",showUploadList:!1,action:Object(l["unref"])(F),disabled:t.uploadLoading,onChange:e=>Ie(e,t)},{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(s,{type:"primary",ghost:"",loading:t.uploadLoading,class:"g-mr-12"},{default:Object(l["withCtx"])(()=>[Object(l["createTextVNode"])(Object(l["toDisplayString"])(e.$t("upload")),1)]),_:2},1032,["loading"])]),_:2},1032,["file-list","onUpdate:file-list","accept","action","disabled","onChange"])):Object(l["createCommentVNode"])("",!0),t.isSuccess||t.fileName?(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",{key:1,class:Object(l["normalizeClass"])(["config-value auth-filename",{"view-active":!!t.fileUrl}]),onClick:e=>xe(t.fileUrl),title:t.fileName},Object(l["toDisplayString"])(t.fileName),11,I)):Object(l["createCommentVNode"])("",!0)]),_:2},1032,["label"]))),128))])):Object(l["createCommentVNode"])("",!0),"AK/SK"===oe.authConfig["auth.type"]?(Object(l["openBlock"])(),Object(l["createBlock"])(a,{key:7,label:"Access Key",name:["authConfig","auth.ak_sk.access_key"],rules:[{required:Object(l["unref"])(A)}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(o,{key:0,value:oe.authConfig["auth.ak_sk.access_key"],"onUpdate:value":t[11]||(t[11]=e=>oe.authConfig["auth.ak_sk.access_key"]=e)},null,8,["value"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",x,Object(l["toDisplayString"])(oe.authConfig["auth.ak_sk.access_key"]),1))]),_:1},8,["name","rules"])):Object(l["createCommentVNode"])("",!0),"AK/SK"===oe.authConfig["auth.type"]?(Object(l["openBlock"])(),Object(l["createBlock"])(a,{key:8,label:"Secret Key",name:["authConfig","auth.ak_sk.secret_key"],rules:[{required:Object(l["unref"])(A)}]},{default:Object(l["withCtx"])(()=>[Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createBlock"])(o,{key:0,value:oe.authConfig["auth.ak_sk.secret_key"],"onUpdate:value":t[12]||(t[12]=e=>oe.authConfig["auth.ak_sk.secret_key"]=e)},null,8,["value"])):(Object(l["openBlock"])(),Object(l["createElementBlock"])("span",z,Object(l["toDisplayString"])(oe.authConfig["auth.ak_sk.secret_key"]),1))]),_:1},8,["name","rules"])):Object(l["createCommentVNode"])("",!0),Object(l["createVNode"])(a,null,{default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("p",D,Object(l["toDisplayString"])(e.$t("properties")),1)]),_:1}),Object(l["createVNode"])(a,null,{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(u["a"],{propertiesObj:oe.properties,isEdit:Object(l["unref"])(A),ref_key:"propertiesRef",ref:J},null,8,["propertiesObj","isEdit"])]),_:1}),Object(l["createVNode"])(a,null,{default:Object(l["withCtx"])(()=>[Object(l["createElementVNode"])("p",G,Object(l["toDisplayString"])(e.$t("tableProperties")),1)]),_:1}),Object(l["createVNode"])(a,null,{default:Object(l["withCtx"])(()=>[Object(l["createVNode"])(u["a"],{propertiesObj:oe.tableProperties,isEdit:Object(l["unref"])(A),ref_key:"tablePropertiesRef",ref:W},null,8,["propertiesObj","isEdit"])]),_:1})]),_:1},8,["model"])])]),Object(l["unref"])(A)?(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",U,[Object(l["createVNode"])(s,{type:"primary",onClick:_e,class:"save-btn g-mr-12"},{default:Object(l["withCtx"])(()=>[Object(l["createTextVNode"])(Object(l["toDisplayString"])(e.$t("save")),1)]),_:1}),Object(l["createVNode"])(s,{onClick:Se},{default:Object(l["withCtx"])(()=>[Object(l["createTextVNode"])(Object(l["toDisplayString"])(e.$t("cancel")),1)]),_:1})])):Object(l["createCommentVNode"])("",!0),Object(l["unref"])(A)?Object(l["createCommentVNode"])("",!0):(Object(l["openBlock"])(),Object(l["createElementBlock"])("div",R,[Object(l["createVNode"])(s,{type:"primary",onClick:Ne,class:"edit-btn g-mr-12"},{default:Object(l["withCtx"])(()=>[Object(l["createTextVNode"])(Object(l["toDisplayString"])(e.$t("edit")),1)]),_:1}),Object(l["createVNode"])(s,{onClick:we,class:"remove-btn"},{default:Object(l["withCtx"])(()=>[Object(l["createTextVNode"])(Object(l["toDisplayString"])(e.$t("remove")),1)]),_:1})])),H.value?(Object(l["openBlock"])(),Object(l["createBlock"])(d,{key:2})):Object(l["createCommentVNode"])("",!0)])}}}),T=(a("3c6b"),a("376e"),a("6b0d")),L=a.n(T);const A=L()(M,[["__scopeId","data-v-019ab485"]]);var F=A;const q={class:"catalogs-wrap g-flex"},K={class:"catalog-list-left"},H={class:"catalog-header"},X={key:0,class:"catalog-list"},J=["onClick"],W=Object(l["createTextVNode"])("+"),Z={class:"catalog-detail"};var Q=Object(l["defineComponent"])({__name:"index",setup(e){const{t:t}=Object(s["b"])(),a=Object(b["e"])(),r=Object(b["d"])(),i=Object(l["reactive"])([]),u=Object(l["reactive"])({}),p=Object(l["ref"])(!1),d="new catalog",g=Object(l["ref"])(!1),f=c["a"].PRESENTED_IMAGE_SIMPLE;async function O(){try{g.value=!0;const e=await Object(n["c"])();i.length=0,(e||[]).forEach(e=>{i.push({catalogName:e.catalogName,catalogType:e.catalogType})})}finally{g.value=!1}}function j(){const{catalogname:e="",type:t}=r.query,a={};if(decodeURIComponent(e)!==d){var o,c;if(e)a.catalogName=e,a.catalogType=t;else a.catalogName=null===(o=i[0])||void 0===o?void 0:o.catalogName,a.catalogType=null===(c=i[0])||void 0===c?void 0:c.catalogType;h(a)}else y()}function m(e){p.value?E(()=>{h(e),p.value=!1,v(!1)}):h(e)}async function h(e){const{catalogName:t,catalogType:o}=e;u.catalogName=t||"",u.catalogType=o||"",await a.replace({path:"/catalogs",query:{catalogname:encodeURIComponent(u.catalogName),type:u.catalogType}})}async function v(e,t){var a,o;(p.value=e,t)&&(await k(),null!==t&&void 0!==t&&t.catalogName||(t.catalogName=null===(a=i[0])||void 0===a?void 0:a.catalogName,t.catalogType=null===(o=i[0])||void 0===o?void 0:o.catalogType));const c=i.findIndex(e=>e.catalogName===d);if(c>-1){var l,n;i.splice(c);const e={catalogName:null===(l=i[0])||void 0===l?void 0:l.catalogName,catalogType:null===(n=i[0])||void 0===n?void 0:n.catalogType};h(e)}else t&&h(t)}async function k(){await O()}function y(){p.value?E(()=>{C()}):C()}async function C(){const e={catalogName:d,catalogType:""};await h(e),i.push(e),p.value=!0}function E(e){o["a"].confirm({title:t("leavePageModalTitle"),content:t("leavePageModalContent"),okText:t("leave"),onOk:async()=>{e&&await e()}})}return Object(l["onMounted"])(async()=>{await O(),j()}),Object(b["c"])((e,t,a)=>{p.value?E(()=>{a()}):a()}),(e,t)=>{const a=Object(l["resolveComponent"])("a-button"),o=Object(l["resolveComponent"])("a-empty");return Object(l["openBlock"])(),Object(l["createElementBlock"])("div",q,[Object(l["createElementVNode"])("div",K,[Object(l["createElementVNode"])("div",H,Object(l["toDisplayString"])(`${e.$t("catalog")} ${e.$t("list")}`),1),i.length&&!g.value?(Object(l["openBlock"])(),Object(l["createElementBlock"])("ul",X,[(Object(l["openBlock"])(!0),Object(l["createElementBlock"])(l["Fragment"],null,Object(l["renderList"])(i,e=>(Object(l["openBlock"])(),Object(l["createElementBlock"])("li",{key:e.catalogName,class:Object(l["normalizeClass"])(["catalog-item g-text-nowrap",{active:e.catalogName===u.catalogName}]),onClick:t=>m(e)},Object(l["toDisplayString"])(e.catalogName),11,J))),128))])):Object(l["createCommentVNode"])("",!0),Object(l["createVNode"])(a,{onClick:y,disabled:u.catalogName===d,class:"add-btn"},{default:Object(l["withCtx"])(()=>[W]),_:1},8,["disabled"])]),Object(l["createElementVNode"])("div",Z,[i.length||g.value?(Object(l["openBlock"])(),Object(l["createBlock"])(F,{key:1,isEdit:p.value,onUpdateEdit:v,onUpdateCatalogs:k},null,8,["isEdit"])):(Object(l["openBlock"])(),Object(l["createBlock"])(o,{key:0,image:Object(l["unref"])(f),class:"detail-empty"},null,8,["image"]))])])}}});a("c5c7");const Y=L()(Q,[["__scopeId","data-v-0914312d"]]);t["default"]=Y},c5c7:function(e,t,a){"use strict";a("9df0")},e723:function(e,t,a){"use strict";a.d(t,"d",(function(){return c})),a.d(t,"c",(function(){return l})),a.d(t,"i",(function(){return n})),a.d(t,"h",(function(){return r})),a.d(t,"e",(function(){return i})),a.d(t,"b",(function(){return s})),a.d(t,"a",(function(){return u})),a.d(t,"j",(function(){return p})),a.d(t,"g",(function(){return b})),a.d(t,"f",(function(){return d}));var o=a("b32d");function c(e){const{optimizerGroup:t,page:a,pageSize:c}=e;return o["a"].get(`ams/v1/optimize/optimizerGroups/${t}/tables`,{params:{page:a,pageSize:c}})}function l(e){const{optimizerGroup:t,page:a,pageSize:c}=e;return o["a"].get(`ams/v1/optimize/optimizerGroups/${t}/optimizers`,{params:{page:a,pageSize:c}})}function n(e){const{optimizerGroup:t,parallelism:a}=e;return o["a"].post(`ams/v1/optimize/optimizerGroups/${t}/optimizers`,{parallelism:a})}function r(e){const{optimizerGroup:t,jobId:a}=e;return o["a"].delete(`ams/v1/optimize/optimizerGroups/${t}/optimizers/${a}`)}async function i(){const e=await o["a"].get("ams/v1/optimize/resourceGroups");return e}const s=async()=>{const e=await o["a"].get("ams/v1/optimize/containers/get");return e},u=e=>o["a"].post("ams/v1/optimize/resourceGroups",e),p=e=>o["a"].put("ams/v1/optimize/resourceGroups",e),b=e=>o["a"].get(`/ams/v1/optimize/resourceGroups/${e.name}/delete/check`),d=e=>o["a"].delete("/ams/v1/optimize/resourceGroups/"+e.name)}}]); \ No newline at end of file diff --git a/ams/dashboard/src/services/table.service.ts b/ams/dashboard/src/services/table.service.ts index e8355971de..95a9df6989 100644 --- a/ams/dashboard/src/services/table.service.ts +++ b/ams/dashboard/src/services/table.service.ts @@ -149,8 +149,8 @@ export function getOperations( const { catalog, db, table, page, pageSize, token } = params return request.get(`ams/v1/tables/catalogs/${catalog}/dbs/${db}/tables/${table}/operations`, { params: { page, pageSize, token } }) } -// get optimizes -export function getOptimizes( +// get optimizing processes +export function getOptimizingProcesses( params: { catalog: string db: string, @@ -164,6 +164,22 @@ export function getOptimizes( return request.get(`ams/v1/tables/catalogs/${catalog}/dbs/${db}/tables/${table}/optimizing-processes`, { params: { page, pageSize, token } }) } +// get optimizing taskes +export function getTasksByOptimizingProcessId( + params: { + catalog: string + db: string, + table: string, + processId: number, + page: number + pageSize: number + token?: string + } +) { + const { catalog, db, table, processId, page, pageSize, token } = params + return request.get(`ams/v1/tables/catalogs/${catalog}/dbs/${db}/tables/${table}/optimizing-processes/${processId}/tasks`, { params: { page, pageSize, token } }) +} + export function upgradeHiveTable( { catalog = '' as string, db = '' as string, table = '' as string, properties = {} as IMap, pkList = [] as IMap[] } ) { diff --git a/ams/dashboard/src/types/common.type.ts b/ams/dashboard/src/types/common.type.ts index 2e7049b17a..33d109073f 100644 --- a/ams/dashboard/src/types/common.type.ts +++ b/ams/dashboard/src/types/common.type.ts @@ -136,6 +136,35 @@ export interface BreadcrumbSnapshotItem { commitTime: number | string } +export interface FilesStatistics { + fileCnt: number + totalSize: number + averageSize: number +} + +export interface BreadcrumbOptimizingItem { + tableId: number + processId: number + taskId: number + partitionData: string + status: string + retryNum: number + optimizerToken: string + threadId: number + thread: string + startTime: number | string + endTime: number | string + costTime: number + formatCostTime: string + failReason: string + summary: Record + inputFiles: FilesStatistics + outputFiles: FilesStatistics + inputFilesDesc: string + outputFilesDesc: string + properties: Record +} + export interface SnapshotItemSummary { 'total-data-files': number 'total-delete-files': number diff --git a/ams/dashboard/src/utils/index.ts b/ams/dashboard/src/utils/index.ts index 8821a3f6e7..9598f6cf3a 100644 --- a/ams/dashboard/src/utils/index.ts +++ b/ams/dashboard/src/utils/index.ts @@ -56,16 +56,23 @@ export const formatMS2Time = (time: number, fromHour?: boolean): string => { return '0 ms' } if (time < Second) { - return (fromHour ? '0 min ' : '') + `${time} ms` + return fromHour ? '0 min ' : time + ' ms' } if (time >= Second && time < Minute) { const s = Math.floor(time / Second) - return (fromHour ? '0 min ' : '') + (s ? s + ' s' : '') + if (fromHour) { + return '0 min' + } + return s ? s + ' s' : '' } if (time >= Minute && time < Hour) { const calcMin = Math.floor(time / Minute) const s = Math.floor((time - calcMin * Minute) / Second) - return time % Minute === 0 ? time / Minute + ' min' : calcMin + ' min ' + (s ? s + ' s' : '') + if (fromHour) { + return calcMin + ' min' + } else { + return time % Minute === 0 ? time / Minute + ' min' : calcMin + ' min ' + (s ? s + ' s' : '') + } } if (time % Hour === 0) { return time / Hour + ' h' diff --git a/ams/dashboard/src/views/tables/components/Files.vue b/ams/dashboard/src/views/tables/components/Files.vue index 9b08f0fe86..26b4c174b2 100644 --- a/ams/dashboard/src/views/tables/components/Files.vue +++ b/ams/dashboard/src/views/tables/components/Files.vue @@ -31,6 +31,12 @@ :loading="loading" > @@ -140,7 +146,7 @@ async function getTableInfo() { if (p.producer === 'OPTIMIZE') { p.operation = p.operation + '(optimizing)' } - p.commitTime = p.commitTime ? dateFormat(p.commitTime) : '' + p.commitTime = p.commitTime ? dateFormat(p.commitTime) : '-' dataSource.push(p) }) recordChartOption.value = generateLineChartOption(t('recordChartTitle'), rcData) diff --git a/ams/dashboard/src/views/tables/index.vue b/ams/dashboard/src/views/tables/index.vue index 93cb956174..47cadd4518 100644 --- a/ams/dashboard/src/views/tables/index.vue +++ b/ams/dashboard/src/views/tables/index.vue @@ -48,7 +48,7 @@ import UDetails from './components/Details.vue' import UFiles from './components/Files.vue' import UOperations from './components/Operations.vue' import USnapshots from './components/Snapshots.vue' -import UOptimized from './components/Optimized.vue' +import UOptimizing from './components/Optimizing.vue' import { useRoute, useRouter } from 'vue-router' import useStore from '@/store/index' import { IBaseDetailInfo, IMap } from '@/types/common.type' @@ -62,7 +62,7 @@ export default defineComponent({ UFiles, UOperations, USnapshots, - UOptimized + UOptimizing }, setup() { const router = useRouter() @@ -75,7 +75,7 @@ export default defineComponent({ // { key: 'Details' }, // { key: 'Files' }, { key: 'Snapshots', label: 'Snapshots' }, - { key: 'Optimized', label: 'Optimizing' }, + { key: 'Optimizing', label: 'Optimizing' }, { key: 'Operations', label: 'Operations' } ]) diff --git a/ams/server/src/main/java/com/netease/arctic/server/dashboard/MixedAndIcebergTableDescriptor.java b/ams/server/src/main/java/com/netease/arctic/server/dashboard/MixedAndIcebergTableDescriptor.java index 56850d0d33..aad637dfa1 100644 --- a/ams/server/src/main/java/com/netease/arctic/server/dashboard/MixedAndIcebergTableDescriptor.java +++ b/ams/server/src/main/java/com/netease/arctic/server/dashboard/MixedAndIcebergTableDescriptor.java @@ -469,12 +469,15 @@ public List getOptimizingTaskInfos(AmoroTable amoroTable, taskMeta.getPartitionData(), taskMeta.getStatus(), taskMeta.getRetryNum(), + taskMeta.getOptimizerToken(), taskMeta.getThreadId(), taskMeta.getStartTime(), taskMeta.getEndTime(), taskMeta.getCostTime(), taskMeta.getFailReason(), - taskMeta.getMetricsSummary(), + taskMeta.getMetricsSummary().getInputFilesStatistics(), + taskMeta.getMetricsSummary().getOutputFilesStatistics(), + taskMeta.getMetricsSummary().summaryAsMap(true), taskMeta.getProperties())) .collect(Collectors.toList()); } diff --git a/ams/server/src/main/java/com/netease/arctic/server/dashboard/PaimonTableDescriptor.java b/ams/server/src/main/java/com/netease/arctic/server/dashboard/PaimonTableDescriptor.java index 04a48c0ea9..3de4ca45b3 100644 --- a/ams/server/src/main/java/com/netease/arctic/server/dashboard/PaimonTableDescriptor.java +++ b/ams/server/src/main/java/com/netease/arctic/server/dashboard/PaimonTableDescriptor.java @@ -386,6 +386,7 @@ public Pair, Integer> getOptimizingProcessesInfo( } optimizingProcessInfo.setInputFiles(inputBuilder.build()); optimizingProcessInfo.setOutputFiles(outputBuilder.build()); + optimizingProcessInfo.setSummary(Collections.emptyMap()); return optimizingProcessInfo; }) .collect(Collectors.toList()); diff --git a/ams/server/src/main/java/com/netease/arctic/server/dashboard/controller/TableController.java b/ams/server/src/main/java/com/netease/arctic/server/dashboard/controller/TableController.java index 9e853166ab..d0380d833d 100644 --- a/ams/server/src/main/java/com/netease/arctic/server/dashboard/controller/TableController.java +++ b/ams/server/src/main/java/com/netease/arctic/server/dashboard/controller/TableController.java @@ -650,12 +650,16 @@ public void cancelOptimizingProcess(Context ctx) { TableIdentifier.of(catalog, db, table).buildTableIdentifier()); TableRuntime tableRuntime = serverTableIdentifier != null ? tableService.getRuntime(serverTableIdentifier) : null; - if (tableRuntime != null - && tableRuntime.getOptimizingProcess() != null - && Objects.equals( - tableRuntime.getOptimizingProcess().getProcessId(), Long.parseLong(processId))) { - tableRuntime.getOptimizingProcess().close(); - } + + Preconditions.checkArgument( + tableRuntime != null + && tableRuntime.getOptimizingProcess() != null + && Objects.equals( + tableRuntime.getOptimizingProcess().getProcessId(), Long.parseLong(processId)), + "Can't cancel optimizing process %s", + processId); + + tableRuntime.getOptimizingProcess().close(); ctx.json(OkResponse.ok()); } diff --git a/ams/server/src/main/java/com/netease/arctic/server/dashboard/model/OptimizingProcessInfo.java b/ams/server/src/main/java/com/netease/arctic/server/dashboard/model/OptimizingProcessInfo.java index f80d453c18..3defff0634 100644 --- a/ams/server/src/main/java/com/netease/arctic/server/dashboard/model/OptimizingProcessInfo.java +++ b/ams/server/src/main/java/com/netease/arctic/server/dashboard/model/OptimizingProcessInfo.java @@ -18,7 +18,6 @@ package com.netease.arctic.server.dashboard.model; -import com.netease.arctic.server.dashboard.utils.FilesStatisticsBuilder; import com.netease.arctic.server.optimizing.MetricsSummary; import com.netease.arctic.server.optimizing.OptimizingProcess; import com.netease.arctic.server.optimizing.OptimizingProcessMeta; @@ -26,6 +25,7 @@ import com.netease.arctic.server.optimizing.OptimizingType; import java.util.List; +import java.util.Map; public class OptimizingProcessInfo { private Long tableId; @@ -45,8 +45,7 @@ public class OptimizingProcessInfo { private long finishTime; private FilesStatistics inputFiles; private FilesStatistics outputFiles; - - private MetricsSummary summary; + private Map summary; public Long getTableId() { return tableId; @@ -176,11 +175,11 @@ public void setOutputFiles(FilesStatistics outputFiles) { this.outputFiles = outputFiles; } - public MetricsSummary getSummary() { + public Map getSummary() { return summary; } - public void setSummary(MetricsSummary summary) { + public void setSummary(Map summary) { this.summary = summary; } @@ -209,24 +208,11 @@ public static OptimizingProcessInfo build( result.setSuccessTasks(successTasks); result.setRunningTasks(runningTasks); } - FilesStatisticsBuilder inputBuilder = new FilesStatisticsBuilder(); - FilesStatisticsBuilder outputBuilder = new FilesStatisticsBuilder(); MetricsSummary summary = meta.getSummary(); if (summary != null) { - inputBuilder.addFiles(summary.getEqualityDeleteSize(), summary.getEqDeleteFileCnt()); - inputBuilder.addFiles( - summary.getPositionDeleteSize() + summary.getPositionalDeleteSize(), - summary.getPosDeleteFileCnt()); - inputBuilder.addFiles(summary.getRewriteDataSize(), summary.getRewriteDataFileCnt()); - inputBuilder.addFiles( - summary.getRewritePosDataSize(), - summary.getReRowDeletedDataFileCnt() + summary.getRewritePosDataFileCnt()); - outputBuilder.addFiles(summary.getNewFileSize(), summary.getNewFileCnt()); - outputBuilder.addFiles(summary.getNewDataSize(), summary.getNewDataFileCnt()); - outputBuilder.addFiles(summary.getNewDeleteSize(), summary.getNewDeleteFileCnt()); + result.setInputFiles(summary.getInputFilesStatistics()); + result.setOutputFiles(summary.getOutputFilesStatistics()); } - result.setInputFiles(inputBuilder.build()); - result.setOutputFiles(outputBuilder.build()); result.setTableId(meta.getTableId()); result.setCatalogName(meta.getCatalogName()); @@ -243,7 +229,7 @@ public static OptimizingProcessInfo build( ? meta.getEndTime() - meta.getPlanTime() : System.currentTimeMillis() - meta.getPlanTime()); result.setFinishTime(meta.getEndTime()); - result.setSummary(meta.getSummary()); + result.setSummary(meta.getSummary().summaryAsMap(true)); return result; } } diff --git a/ams/server/src/main/java/com/netease/arctic/server/dashboard/model/OptimizingTaskInfo.java b/ams/server/src/main/java/com/netease/arctic/server/dashboard/model/OptimizingTaskInfo.java index e2f31e109f..93c4037aae 100644 --- a/ams/server/src/main/java/com/netease/arctic/server/dashboard/model/OptimizingTaskInfo.java +++ b/ams/server/src/main/java/com/netease/arctic/server/dashboard/model/OptimizingTaskInfo.java @@ -18,24 +18,31 @@ package com.netease.arctic.server.dashboard.model; -import com.netease.arctic.server.optimizing.MetricsSummary; +import static com.netease.arctic.server.ArcticServiceConstants.INVALID_TIME; + import com.netease.arctic.server.optimizing.TaskRuntime; import java.util.Map; public class OptimizingTaskInfo { + public static String RETRY_COUNT_PROP = "retry-count"; + public static String OPTIMIZER_TOKEN_PROP = "optimizer.token"; + public static String OPTIMIZER_THREAD_ID_PROP = "optimizer.thread-id"; private Long tableId; private Long processId; private int taskId; private String partitionData; private TaskRuntime.Status status; private int retryNum; + private String optimizerToken; private int threadId; private long startTime; private long endTime; private long costTime; private String failReason; - private MetricsSummary summary; + private FilesStatistics inputFiles; + private FilesStatistics outputFiles; + private Map summary; private Map properties; public OptimizingTaskInfo( @@ -45,12 +52,15 @@ public OptimizingTaskInfo( String partitionData, TaskRuntime.Status status, int retryNum, + String optimizerToken, int threadId, long startTime, long endTime, long costTime, String failReason, - MetricsSummary summary, + FilesStatistics inputFiles, + FilesStatistics outputFiles, + Map summary, Map properties) { this.tableId = tableId; this.processId = processId; @@ -58,13 +68,25 @@ public OptimizingTaskInfo( this.partitionData = partitionData; this.status = status; this.retryNum = retryNum; + this.optimizerToken = optimizerToken; this.threadId = threadId; this.startTime = startTime; this.endTime = endTime; - this.costTime = costTime; + if (costTime == 0 && startTime != INVALID_TIME && endTime == INVALID_TIME) { + this.costTime = System.currentTimeMillis() - startTime; + } else { + this.costTime = costTime; + } this.failReason = failReason; + this.inputFiles = inputFiles; + this.outputFiles = outputFiles; this.summary = summary; this.properties = properties; + this.summary.put(RETRY_COUNT_PROP, String.valueOf(retryNum)); + if (this.optimizerToken != null) { + this.summary.put(OPTIMIZER_TOKEN_PROP, optimizerToken); + this.summary.put(OPTIMIZER_THREAD_ID_PROP, String.valueOf(threadId)); + } } public Long getTableId() { @@ -115,6 +137,14 @@ public void setRetryNum(int retryNum) { this.retryNum = retryNum; } + public String getOptimizerToken() { + return optimizerToken; + } + + public void setOptimizerToken(String optimizerToken) { + this.optimizerToken = optimizerToken; + } + public int getThreadId() { return threadId; } @@ -155,11 +185,11 @@ public void setFailReason(String failReason) { this.failReason = failReason; } - public MetricsSummary getSummary() { + public Map getSummary() { return summary; } - public void setSummary(MetricsSummary summary) { + public void setSummary(Map summary) { this.summary = summary; } @@ -170,4 +200,20 @@ public Map getProperties() { public void setProperties(Map properties) { this.properties = properties; } + + public FilesStatistics getInputFiles() { + return inputFiles; + } + + public void setInputFiles(FilesStatistics inputFiles) { + this.inputFiles = inputFiles; + } + + public FilesStatistics getOutputFiles() { + return outputFiles; + } + + public void setOutputFiles(FilesStatistics outputFiles) { + this.outputFiles = outputFiles; + } } diff --git a/ams/server/src/main/java/com/netease/arctic/server/dashboard/utils/OptimizingUtil.java b/ams/server/src/main/java/com/netease/arctic/server/dashboard/utils/OptimizingUtil.java index c254a6c438..1c3383b425 100644 --- a/ams/server/src/main/java/com/netease/arctic/server/dashboard/utils/OptimizingUtil.java +++ b/ams/server/src/main/java/com/netease/arctic/server/dashboard/utils/OptimizingUtil.java @@ -62,7 +62,8 @@ private static FilesStatistics collectOptimizingFileInfo(MetricsSummary metricsS return FilesStatistics.builder() .addFiles(metricsSummary.getEqualityDeleteSize(), metricsSummary.getEqDeleteFileCnt()) .addFiles( - metricsSummary.getPositionalDeleteSize() + metricsSummary.getPositionDeleteSize(), + Math.max( + metricsSummary.getPositionalDeleteSize(), metricsSummary.getPositionDeleteSize()), metricsSummary.getPosDeleteFileCnt()) .addFiles(metricsSummary.getRewriteDataSize(), metricsSummary.getRewriteDataFileCnt()) .build(); diff --git a/ams/server/src/main/java/com/netease/arctic/server/optimizing/MetricsSummary.java b/ams/server/src/main/java/com/netease/arctic/server/optimizing/MetricsSummary.java index 013602b33f..1c0d3558d2 100644 --- a/ams/server/src/main/java/com/netease/arctic/server/optimizing/MetricsSummary.java +++ b/ams/server/src/main/java/com/netease/arctic/server/optimizing/MetricsSummary.java @@ -1,20 +1,63 @@ package com.netease.arctic.server.optimizing; +import static com.netease.arctic.server.dashboard.utils.AmsUtil.byteToXB; + import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.netease.arctic.optimizing.RewriteFilesInput; +import com.netease.arctic.server.dashboard.model.FilesStatistics; +import com.netease.arctic.server.dashboard.utils.FilesStatisticsBuilder; import org.apache.iceberg.ContentFile; import org.apache.iceberg.DataFile; import org.apache.iceberg.FileContent; import org.apache.iceberg.relocated.com.google.common.base.MoreObjects; import java.util.Collection; +import java.util.LinkedHashMap; +import java.util.Map; @JsonIgnoreProperties(ignoreUnknown = true) public class MetricsSummary { + public static final String INPUT_DATA_FILES = "input-data-files(rewrite)"; + public static final String INPUT_DATA_SIZE = "input-data-size(rewrite)"; + public static final String INPUT_DATA_RECORDS = "input-data-records(rewrite)"; + public static final String INPUT_READ_ONLY_DATA_FILES = "input-data-files(read-only)"; + public static final String INPUT_READ_ONLY_DATA_SIZE = "input-data-size(read-only)"; + public static final String INPUT_READ_ONLY_DATA_RECORDS = "input-data-records(read-only)"; + public static final String INPUT_EQ_DELETE_FILES = "input-equality-delete-files"; + public static final String INPUT_EQ_DELETE_SIZE = "input-equality-delete-size"; + public static final String INPUT_EQ_DELETE_RECORDS = "input-equality-delete-records"; + public static final String INPUT_POS_DELETE_FILES = "input-position-delete-files"; + public static final String INPUT_POS_DELETE_SIZE = "input-position-delete-size"; + public static final String INPUT_POS_DELETE_RECORDS = "input-position-delete-records"; + public static final String OUTPUT_DATA_FILES = "output-data-files"; + public static final String OUTPUT_DATA_SIZE = "output-data-size"; + public static final String OUTPUT_DATA_RECORDS = "output-data-records"; + public static final String OUTPUT_DELETE_FILES = "output-delete-files"; + public static final String OUTPUT_DELETE_SIZE = "output-delete-size"; + public static final String OUTPUT_DELETE_RECORDS = "output-delete-records"; + private long rewriteDataSize = 0; + private int rewriteDataFileCnt = 0; + private long rewriteDataRecordCnt = 0; + private long rewritePosDataSize = 0; + private int rewritePosDataFileCnt = 0; + /** @deprecated since 0.7.0, will be removed in 0.8.0 */ + @Deprecated private int reRowDeletedDataFileCnt = 0; + + private long rewritePosDataRecordCnt = 0; + private long equalityDeleteSize = 0; + private int eqDeleteFileCnt = 0; + private long eqDeleteRecordCnt = 0; + private long positionDeleteSize = 0; + /** @deprecated since 0.7.0, will be removed in 0.8.0 */ + @Deprecated private long positionalDeleteSize = 0; + + private int posDeleteFileCnt = 0; + private long posDeleteRecordCnt = 0; + /** @deprecated since 0.7.0, will be removed in 0.8.0 */ - @Deprecated long newFileSize = 0; + @Deprecated private long newFileSize = 0; - @Deprecated int newFileCnt = 0; + @Deprecated private int newFileCnt = 0; private long newDataSize = 0; private int newDataFileCnt = 0; private long newDataRecordCnt = 0; @@ -23,30 +66,13 @@ public class MetricsSummary { private int newDeleteFileCnt = 0; private long newDeleteRecordCnt = 0; - private long rewriteDataSize = 0; - private long rewritePosDataSize = 0; - private long equalityDeleteSize = 0; - /** @deprecated since 0.7.0, will be removed in 0.8.0 */ - @Deprecated private long positionalDeleteSize = 0; - - private long positionDeleteSize = 0; - private int rewriteDataFileCnt = 0; - /** @deprecated since 0.7.0, will be removed in 0.8.0 */ - @Deprecated private int reRowDeletedDataFileCnt = 0; - - private int rewritePosDataFileCnt = 0; - private int eqDeleteFileCnt = 0; - private int posDeleteFileCnt = 0; - private int rewriteDataRecordCnt = 0; - private int rewritePosDataRecordCnt = 0; - private int eqDeleteRecordCnt = 0; - private int posDeleteRecordCnt = 0; public MetricsSummary() {} protected MetricsSummary(RewriteFilesInput input) { rewriteDataFileCnt = input.rewrittenDataFiles().length; rewritePosDataFileCnt = input.rePosDeletedDataFiles().length; + reRowDeletedDataFileCnt = input.rePosDeletedDataFiles().length; for (DataFile rewriteFile : input.rewrittenDataFiles()) { rewriteDataSize += rewriteFile.fileSizeInBytes(); rewriteDataRecordCnt += rewriteFile.recordCount(); @@ -58,6 +84,7 @@ protected MetricsSummary(RewriteFilesInput input) { for (ContentFile delete : input.deleteFiles()) { if (delete.content() == FileContent.POSITION_DELETES) { positionDeleteSize += delete.fileSizeInBytes(); + positionalDeleteSize += delete.fileSizeInBytes(); posDeleteRecordCnt += delete.recordCount(); posDeleteFileCnt++; } else { @@ -80,13 +107,20 @@ public MetricsSummary(Collection taskRuntimes) { newDeleteFileCnt += metrics.getNewDeleteFileCnt(); newDeleteRecordCnt += metrics.getNewDeleteRecordCnt(); rewriteDataFileCnt += metrics.getRewriteDataFileCnt(); - reRowDeletedDataFileCnt += metrics.getReRowDeletedDataFileCnt(); - rewritePosDataFileCnt += metrics.getRewritePosDataFileCnt(); + // to be compatible with old metrics name when calculating total metrics of all tasks + reRowDeletedDataFileCnt += + Math.max( + metrics.getReRowDeletedDataFileCnt(), metrics.getRewritePosDataFileCnt()); + rewritePosDataFileCnt += + Math.max( + metrics.getReRowDeletedDataFileCnt(), metrics.getRewritePosDataFileCnt()); rewriteDataSize += metrics.getRewriteDataSize(); rewritePosDataSize += metrics.getRewritePosDataSize(); posDeleteFileCnt += metrics.getPosDeleteFileCnt(); - positionalDeleteSize += metrics.getPositionalDeleteSize(); - positionDeleteSize += metrics.getPositionDeleteSize(); + positionalDeleteSize += + Math.max(metrics.getPositionalDeleteSize(), metrics.getPositionDeleteSize()); + positionDeleteSize += + Math.max(metrics.getPositionalDeleteSize(), metrics.getPositionDeleteSize()); eqDeleteFileCnt += metrics.getEqDeleteFileCnt(); equalityDeleteSize += metrics.getEqualityDeleteSize(); rewriteDataRecordCnt += metrics.getRewriteDataRecordCnt(); @@ -98,6 +132,71 @@ public MetricsSummary(Collection taskRuntimes) { }); } + public Map summaryAsMap(boolean humanReadable) { + Map summary = new LinkedHashMap<>(); + put(summary, INPUT_DATA_FILES, rewriteDataFileCnt); + put(summary, INPUT_DATA_SIZE, rewriteDataSize, humanReadable); + put(summary, INPUT_DATA_RECORDS, rewriteDataRecordCnt); + putIfPositive( + summary, + INPUT_READ_ONLY_DATA_FILES, + Math.max(reRowDeletedDataFileCnt, rewritePosDataFileCnt)); + putIfPositive(summary, INPUT_READ_ONLY_DATA_SIZE, rewritePosDataSize, humanReadable); + putIfPositive(summary, INPUT_READ_ONLY_DATA_RECORDS, rewritePosDataRecordCnt); + putIfPositive(summary, INPUT_EQ_DELETE_FILES, eqDeleteFileCnt); + putIfPositive(summary, INPUT_EQ_DELETE_SIZE, equalityDeleteSize, humanReadable); + putIfPositive(summary, INPUT_EQ_DELETE_RECORDS, eqDeleteRecordCnt); + putIfPositive(summary, INPUT_POS_DELETE_FILES, posDeleteFileCnt); + putIfPositive( + summary, + INPUT_POS_DELETE_SIZE, + Math.max(positionalDeleteSize, positionDeleteSize), + humanReadable); + putIfPositive(summary, INPUT_POS_DELETE_RECORDS, posDeleteRecordCnt); + put(summary, OUTPUT_DATA_FILES, newDataFileCnt); + put(summary, OUTPUT_DATA_SIZE, newDataSize, humanReadable); + put(summary, OUTPUT_DATA_RECORDS, newDataRecordCnt); + putIfPositive(summary, OUTPUT_DELETE_FILES, newDeleteFileCnt); + putIfPositive(summary, OUTPUT_DELETE_SIZE, newDeleteSize, humanReadable); + putIfPositive(summary, OUTPUT_DELETE_RECORDS, newDeleteRecordCnt); + return summary; + } + + private void putIfPositive(Map summary, String key, long value) { + putIfPositive(summary, key, value, false); + } + + private void putIfPositive( + Map summary, String key, long value, boolean humanReadable) { + if (value > 0) { + put(summary, key, value, humanReadable); + } + } + + private void put(Map summary, String key, long value) { + put(summary, key, value, false); + } + + private void put(Map summary, String key, long value, boolean humanReadable) { + summary.put(key, humanReadable ? byteToXB(value) : String.valueOf(value)); + } + + public FilesStatistics getInputFilesStatistics() { + FilesStatisticsBuilder inputBuilder = new FilesStatisticsBuilder(); + inputBuilder.addFiles(equalityDeleteSize, eqDeleteFileCnt); + inputBuilder.addFiles(Math.max(positionDeleteSize, positionalDeleteSize), posDeleteFileCnt); + inputBuilder.addFiles(rewriteDataSize, rewriteDataFileCnt); + inputBuilder.addFiles( + rewritePosDataSize, Math.max(reRowDeletedDataFileCnt, rewritePosDataFileCnt)); + return inputBuilder.build(); + } + + public FilesStatistics getOutputFilesStatistics() { + FilesStatisticsBuilder outputBuilder = new FilesStatisticsBuilder(); + outputBuilder.addFiles(newFileSize, newFileCnt); + return outputBuilder.build(); + } + public long getNewFileSize() { return newFileSize; } @@ -154,6 +253,14 @@ protected void setNewDeleteRecordCnt(long newDeleteRecordCnt) { this.newDeleteRecordCnt = newDeleteRecordCnt; } + public void setNewFileSize(long newFileSize) { + this.newFileSize = newFileSize; + } + + public void setNewFileCnt(int newFileCnt) { + this.newFileCnt = newFileCnt; + } + public long getRewriteDataSize() { return rewriteDataSize; } @@ -194,25 +301,39 @@ public int getPosDeleteFileCnt() { return posDeleteFileCnt; } - public int getRewriteDataRecordCnt() { + public long getRewriteDataRecordCnt() { return rewriteDataRecordCnt; } - public int getRewritePosDataRecordCnt() { + public long getRewritePosDataRecordCnt() { return rewritePosDataRecordCnt; } - public int getEqDeleteRecordCnt() { + public long getEqDeleteRecordCnt() { return eqDeleteRecordCnt; } - public int getPosDeleteRecordCnt() { + public long getPosDeleteRecordCnt() { return posDeleteRecordCnt; } @Override public String toString() { return MoreObjects.toStringHelper(this) + .add("rewriteDataSize", rewriteDataSize) + .add("rewriteDataFileCnt", rewriteDataFileCnt) + .add("rewriteDataRecordCnt", rewriteDataRecordCnt) + .add("rewritePosDataSize", rewritePosDataSize) + .add("rewritePosDataFileCnt", rewritePosDataFileCnt) + .add("reRowDeletedDataFileCnt", reRowDeletedDataFileCnt) + .add("rewritePosDataRecordCnt", rewritePosDataRecordCnt) + .add("equalityDeleteSize", equalityDeleteSize) + .add("eqDeleteFileCnt", eqDeleteFileCnt) + .add("eqDeleteRecordCnt", eqDeleteRecordCnt) + .add("positionDeleteSize", positionDeleteSize) + .add("positionalDeleteSize", positionalDeleteSize) + .add("posDeleteFileCnt", posDeleteFileCnt) + .add("posDeleteRecordCnt", posDeleteRecordCnt) .add("newFileSize", newFileSize) .add("newFileCnt", newFileCnt) .add("newDataSize", newDataSize) @@ -221,20 +342,6 @@ public String toString() { .add("newDeleteSize", newDeleteSize) .add("newDeleteFileCnt", newDeleteFileCnt) .add("newDeleteRecordCnt", newDeleteRecordCnt) - .add("rewriteDataSize", rewriteDataSize) - .add("rewritePosDataSize", rewritePosDataSize) - .add("equalityDeleteSize", equalityDeleteSize) - .add("positionalDeleteSize", positionalDeleteSize) - .add("positionDeleteSize", positionDeleteSize) - .add("rewriteDataFileCnt", rewriteDataFileCnt) - .add("reRowDeletedDataFileCnt", reRowDeletedDataFileCnt) - .add("rewritePosDataFileCnt", rewritePosDataFileCnt) - .add("eqDeleteFileCnt", eqDeleteFileCnt) - .add("posDeleteFileCnt", posDeleteFileCnt) - .add("rewriteDataRecordCnt", rewriteDataRecordCnt) - .add("rewritePosDataRecordCnt", rewritePosDataRecordCnt) - .add("eqDeleteRecordCnt", eqDeleteRecordCnt) - .add("posDeleteRecordCnt", posDeleteRecordCnt) .toString(); } } diff --git a/ams/server/src/main/java/com/netease/arctic/server/optimizing/OptimizingQueue.java b/ams/server/src/main/java/com/netease/arctic/server/optimizing/OptimizingQueue.java index 683433c9d4..8adf75cc7d 100644 --- a/ams/server/src/main/java/com/netease/arctic/server/optimizing/OptimizingQueue.java +++ b/ams/server/src/main/java/com/netease/arctic/server/optimizing/OptimizingQueue.java @@ -381,10 +381,10 @@ public Status getStatus() { public void close() { lock.lock(); try { - persistProcessCompleted(false); - clearProcess(this); this.status = OptimizingProcess.Status.CLOSED; this.endTime = System.currentTimeMillis(); + persistProcessCompleted(false); + clearProcess(this); } finally { lock.unlock(); } @@ -423,7 +423,6 @@ public void acceptResult(TaskRuntime taskRuntime) { this.status = OptimizingProcess.Status.FAILED; this.endTime = taskRuntime.getEndTime(); persistProcessCompleted(false); - System.out.println("/n/n #### task status {}" + taskRuntime.getStatus()); } } } catch (Exception e) { diff --git a/ams/server/src/main/java/com/netease/arctic/server/optimizing/TaskRuntime.java b/ams/server/src/main/java/com/netease/arctic/server/optimizing/TaskRuntime.java index c5faee48c2..94994e9baf 100644 --- a/ams/server/src/main/java/com/netease/arctic/server/optimizing/TaskRuntime.java +++ b/ams/server/src/main/java/com/netease/arctic/server/optimizing/TaskRuntime.java @@ -50,7 +50,7 @@ public class TaskRuntime extends StatedPersistentBase { @StateField private int runTimes = 0; @StateField private long startTime = ArcticServiceConstants.INVALID_TIME; @StateField private long endTime = ArcticServiceConstants.INVALID_TIME; - @StateField private long costTime = 0; + @StateField private long costTime = ArcticServiceConstants.INVALID_TIME; @StateField private String token; @StateField private int threadId = -1; @StateField private String failReason; @@ -92,6 +92,8 @@ public void complete(OptimizerThread thread, OptimizingTaskResult result) { summary.setNewDeleteSize(OptimizingUtil.getFileSize(filesOutput.getDeleteFiles())); summary.setNewDeleteRecordCnt( OptimizingUtil.getRecordCnt(filesOutput.getDeleteFiles())); + summary.setNewFileSize(summary.getNewDataSize() + summary.getNewDeleteSize()); + summary.setNewFileCnt(summary.getNewDataFileCnt() + summary.getNewDeleteFileCnt()); endTime = System.currentTimeMillis(); costTime += endTime - startTime; output = filesOutput; @@ -108,7 +110,15 @@ void reset() { invokeConsisitency( () -> { statusMachine.accept(Status.PLANNED); - doAs(OptimizingMapper.class, mapper -> mapper.updateTaskStatus(this, Status.PLANNED)); + startTime = ArcticServiceConstants.INVALID_TIME; + endTime = ArcticServiceConstants.INVALID_TIME; + token = null; + threadId = -1; + failReason = null; + output = null; + summary = new MetricsSummary(input); + // The cost time should not be reset since it is the total cost time of all runs. + persistTaskRuntime(this); }); } @@ -128,8 +138,6 @@ public void ack(OptimizerThread thread) { () -> { validThread(thread); statusMachine.accept(Status.ACKED); - startTime = System.currentTimeMillis(); - endTime = ArcticServiceConstants.INVALID_TIME; persistTaskRuntime(this); }); } @@ -138,7 +146,10 @@ void tryCanceling() { invokeConsisitency( () -> { if (statusMachine.tryAccepting(Status.CANCELED)) { - costTime = System.currentTimeMillis() - startTime; + endTime = System.currentTimeMillis(); + if (startTime != ArcticServiceConstants.INVALID_TIME) { + costTime += endTime - startTime; + } persistTaskRuntime(this); } }); @@ -234,10 +245,6 @@ public String getFailReason() { } public long getCostTime() { - if (endTime == ArcticServiceConstants.INVALID_TIME) { - long elapse = System.currentTimeMillis() - startTime; - return Math.max(0, elapse) + costTime; - } return costTime; } @@ -345,7 +352,7 @@ private Set getNext() { } public synchronized boolean tryAccepting(Status targetStatus) { - if (owner.isClosed() || !getNext().contains(targetStatus)) { + if (!getNext().contains(targetStatus)) { return false; } status = targetStatus; diff --git a/ams/server/src/main/java/com/netease/arctic/server/persistence/mapper/OptimizingMapper.java b/ams/server/src/main/java/com/netease/arctic/server/persistence/mapper/OptimizingMapper.java index 50a5059698..0656c91390 100644 --- a/ams/server/src/main/java/com/netease/arctic/server/persistence/mapper/OptimizingMapper.java +++ b/ams/server/src/main/java/com/netease/arctic/server/persistence/mapper/OptimizingMapper.java @@ -207,12 +207,6 @@ List selectTaskRuntimes( + "task_id = #{taskRuntime.taskId.taskId}") void updateTaskRuntime(@Param("taskRuntime") TaskRuntime taskRuntime); - @Update( - "UPDATE task_runtime SET status = #{status} WHERE process_id = #{taskRuntime.taskId.processId} AND " - + "task_id = #{taskRuntime.taskId.taskId}") - void updateTaskStatus( - @Param("taskRuntime") TaskRuntime taskRuntime, @Param("status") TaskRuntime.Status status); - @Delete("DELETE FROM task_runtime WHERE table_id = #{tableId} AND process_id < #{time}") void deleteTaskRuntimesBefore(@Param("tableId") long tableId, @Param("time") long time); diff --git a/ams/server/src/test/java/com/netease/arctic/server/TestDefaultOptimizingService.java b/ams/server/src/test/java/com/netease/arctic/server/TestDefaultOptimizingService.java index 26fa8cc7d7..e43fddde57 100644 --- a/ams/server/src/test/java/com/netease/arctic/server/TestDefaultOptimizingService.java +++ b/ams/server/src/test/java/com/netease/arctic/server/TestDefaultOptimizingService.java @@ -335,10 +335,7 @@ public void testReloadFailedTask() { optimizingService().ackTask(token, THREAD_ID, task.getTaskId()); optimizingService() .completeTask(token, buildOptimizingTaskFailResult(task.getTaskId(), "error")); - - Assertions.assertEquals( - optimizingService().listTasks(defaultResourceGroup().getName()).get(0).getFailReason(), - "error"); + assertTaskStatus(TaskRuntime.Status.PLANNED); } private OptimizerRegisterInfo buildRegisterInfo() {