iking-web-ui-pro 0.2.21 → 0.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IKExpandCollapse/ik.index.es.js +79 -73
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +302 -296
- package/dist/IKPreviewFile/ik.index.umd.js +16 -16
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +130 -124
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +306 -300
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +117 -111
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +242 -236
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +83 -77
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +434 -428
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +308 -302
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +140 -134
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +383 -377
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1135 -1129
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +588 -582
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +2960 -2954
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +111 -105
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +74 -68
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +720 -714
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +223 -217
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +5502 -5496
- package/dist/index.umd.js +78 -78
- package/dist/src/components/IkSvgIcon/index.d.ts +6 -2
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +6 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(ie,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("vue"),require("iking-utils-pro"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro","element-plus"],c):(ie=typeof globalThis<"u"?globalThis:ie||self,c(ie.index={},ie.vue,ie["iking-utils-pro"],ie["element-plus"]))})(this,function(ie,c,Se,Qi){"use strict";const ce=(a,s)=>{if(a.install=r=>{for(const t of[a,...Object.values(s??{})])r.component(t.name,t)},s)for(const[r,t]of Object.entries(s))a[r]=t;return a},lt=(a,s)=>{var i,n,o,l;const r=(i=a==null?void 0:a.response)!=null&&i.data?Wt((o=(n=a==null?void 0:a.response)==null?void 0:n.data)==null?void 0:o.suffix):((l=a.raw)==null?void 0:l.type)||Wt(a[s.suffix]),t=r==null?void 0:r.toLowerCase(),e={sheet:"excel",excel:"excel",zip:"zip","application/x-compressed":"zip",image:"image",video:"video",audio:"audio",pdf:"pdf",text:"txt",txt:"txt",word:"word",ppt:"ppt",exe:"exe",json:"json"};for(let u in e)if(typeof t=="string"&&(t.includes(u)||t===u))return e[u];return"unknown"},en={".doc":"word",".docx":"word",".docxf":"word",".docm":"word",".dot":"word",".dotm":"word",".dotx":"word",".epub":"word",".fodt":"word",".htm":"word",".html":"word",".mht":"word",".odt":"word",".ott":"word",".rtf":"word",".djvu":"word",".oxps":"word",".oform":"word",".fb2":"word",".xml":"word",".xps":"word",".csv":"excel",".xls":"excel",".xlsx":"excel",".fods":"excel",".ods":"excel",".ots":"excel",".xlsb":"excel",".xlsm":"excel",".xlt":"excel",".xltm":"excel",".xltx":"excel",".fodp":"ppt",".odp":"ppt",".otp":"ppt",".pot":"ppt",".potm":"ppt",".potx":"ppt",".pps":"ppt",".ppsm":"ppt",".ppsx":"ppt",".ppt":"ppt",".pptm":"ppt",".pptx":"ppt",".zip":"zip",".rar":"zip",".7z":"zip",".apz":"zip",".ar":"zip",".bz":"zip",".car":"zip",".dar":"zip",".cpgz":"zip",".f":"zip",".ha":"zip",".hbc":"zip",".hbc2":"zip",".hbe":"zip",".hpk":"zip",".hyp":"zip",".png":"image",".jpg":"image",".jpeg":"image",".bmp":"image",".gif":"image",".webp":"image",".psd":"image",".svg":"image",".tiff":"image",".avi":"video",".wmv":"video",".mpeg":"video",".mp4":"video",".mpm4v":"video",".mov":"video",".asf":"video",".flv":"video",".f4v":"video",".rmvb":"video",".rm":"video",".3gp":"video",".vob":"video",".txt":"txt",".pdf":"pdf"},Wt=a=>{const s=a==null?void 0:a.toLocaleLowerCase(),r=s!=null&&s.startsWith(".")?s:`.${s}`;return r&&en[r]||"unknow"},tn=a=>{let s="",r=["doc","docx"],t=["xls","xlsx"],e=["ppt","pptx"],i=["pdf"];return r.includes(a)&&(s="word"),t.includes(a)&&(s="cell"),e.includes(a)&&(s="slide"),i.includes(a)&&(s="text-pdf"),s},nn={key:0,t:"1686300059786",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7671",width:"200",height:"200"},rn=[c.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#50CD89","p-id":"7672"},null,-1),c.createElementVNode("path",{d:"M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",fill:"#FFF7F7","p-id":"7673"},null,-1),c.createElementVNode("path",{d:"M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",fill:"#FFFFFF","p-id":"7674"},null,-1),c.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)],on={key:1,t:"1686301531714",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9067",width:"200",height:"200"},sn=[c.createElementVNode("path",{d:"M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",fill:"#FFA621","p-id":"9068"},null,-1),c.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"9069"},null,-1)],an={key:2,t:"1686300141125",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8137",width:"200",height:"200"},ln=[c.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",fill:"#F1416C","p-id":"8138"},null,-1),c.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8139"},null,-1)],un={key:3,t:"1686300157181",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8292",width:"200",height:"200"},cn=[c.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",fill:"#029EF7","p-id":"8293"},null,-1),c.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8294"},null,-1)],fn={key:4,t:"1686300180947",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8447",width:"200",height:"200"},hn=[c.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",fill:"#F1416C","p-id":"8448"},null,-1),c.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8449"},null,-1)],dn={key:5,t:"1686300195363",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8602",width:"200",height:"200"},gn=[c.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",fill:"#029EF7","p-id":"8603"},null,-1),c.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8604"},null,-1)],pn={key:6,t:"1686300209288",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8757",width:"200",height:"200"},vn=[c.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",fill:"#FFA621","p-id":"8758"},null,-1),c.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8759"},null,-1)],mn={key:7,t:"1686300225262",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8912",width:"200",height:"200"},yn=[c.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",fill:"#FFA621","p-id":"8913"},null,-1),c.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8914"},null,-1)],_n={key:8,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},kn=[c.createElementVNode("path",{d:"M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",fill:"#00BD76","p-id":"4337"},null,-1),c.createElementVNode("path",{d:"M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",fill:"#FFFFFF",opacity:".9","p-id":"4338"},null,-1),c.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)],Cn={key:9,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},En=[c.createElementVNode("path",{d:"M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z",fill:"#8199AF","p-id":"8002"},null,-1),c.createElementVNode("path",{d:"M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",fill:"#617F9B","p-id":"8003"},null,-1),c.createElementVNode("path",{d:"M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",fill:"#FFFFFF",opacity:".5","p-id":"8004"},null,-1),c.createElementVNode("path",{d:"M344 862.4h-100.8c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h100.8c4.8 0 9.6 4.8 9.6 11.2 0 6.4-4.8 9.6-9.6 9.6h-94.4v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h94.4c4.8 0 9.6 4.8 9.6 9.6 0 6.4-4.8 11.2-9.6 11.2z m193.6 1.6c-4.8 0-8 0-9.6-3.2l-59.2-80-60.8 80c-1.6 3.2-4.8 3.2-8 3.2-6.4 0-11.2-4.8-11.2-11.2 0-1.6 0-4.8 1.6-6.4l62.4-81.6-57.6-78.4c-1.6-1.6-3.2-3.2-3.2-6.4 0-4.8 4.8-11.2 12.8-11.2 3.2 0 6.4 1.6 8 4.8l56 73.6 54.4-73.6c1.6-3.2 4.8-4.8 9.6-4.8s11.2 4.8 11.2 11.2c0 3.2 0 4.8-1.6 6.4l-57.6 76.8 60.8 83.2c1.6 1.6 3.2 4.8 3.2 6.4 0 6.4-6.4 11.2-11.2 11.2z m171.2-1.6h-99.2c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h99.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-92.8v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h92.8c6.4 0 11.2 4.8 11.2 9.6 0 6.4-4.8 11.2-11.2 11.2z",fill:"#FFFFFF","p-id":"8005"},null,-1)],wn={key:10,t:"1714099890925",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2271",width:"200",height:"200"},bn=[c.createElementVNode("path",{d:"M227.555556 28.444444h389.404444a19.911111 19.911111 0 0 1 14.734222 6.542223l271.132445 298.211555a28.444444 28.444444 0 0 1 7.395555 19.143111V938.666667a56.888889 56.888889 0 0 1-56.888889 56.888889H227.555556a56.888889 56.888889 0 0 1-56.888889-56.888889V85.333333a56.888889 56.888889 0 0 1 56.888889-56.888889z",fill:"#0DD59D","p-id":"2272"},null,-1),c.createElementVNode("path",{d:"M625.777778 30.492444a19.911111 19.911111 0 0 1 5.916444 4.465778l271.132445 298.24a28.444444 28.444444 0 0 1 5.176889 8.135111H682.666667a56.888889 56.888889 0 0 1-56.888889-56.888889V30.492444z",fill:"#FFFFFF","fill-opacity":".65","p-id":"2273"},null,-1),c.createElementVNode("path",{d:"M396.288 645.176889c0 5.461333-0.796444 10.865778-2.389333 16.156444-1.592889 5.319111-4.266667 10.069333-7.964445 14.222223-3.697778 4.181333-8.647111 7.509333-14.791111 10.012444a60.871111 60.871111 0 0 1-22.869333 3.754667c-15.160889 0-26.851556-3.982222-35.043556-11.946667-8.192-7.964444-12.288-19.683556-12.288-35.157333v-10.012445h21.617778v6.826667c0 4.721778 0.369778 9.045333 1.137778 12.970667a28.074667 28.074667 0 0 0 3.982222 10.24 18.773333 18.773333 0 0 0 7.964444 6.712888c3.413333 1.592889 7.765333 2.389333 13.084445 2.389334 9.870222 0 16.64-2.645333 20.366222-7.964445 3.697778-5.290667 5.575111-12.430222 5.575111-21.390222v-118.784h21.617778v121.969778z m44.145778 3.413333c0.142222 4.266667 1.137778 7.850667 2.958222 10.808889a20.593778 20.593778 0 0 0 7.168 7.054222c2.958222 1.763556 6.286222 3.015111 10.012444 3.754667 3.697778 0.768 7.537778 1.137778 11.491556 1.137778 3.043556 0 6.229333-0.227556 9.557333-0.682667 3.328-0.455111 6.4-1.28 9.216-2.503111a17.294222 17.294222 0 0 0 6.940445-5.347556 14.250667 14.250667 0 0 0 2.730666-8.988444 12.885333 12.885333 0 0 0-5.688888-11.377778c-3.783111-2.56-8.533333-4.664889-14.222223-6.257778a232.561778 232.561778 0 0 0-18.545777-4.323555 96.227556 96.227556 0 0 1-18.545778-5.461333 38.4 38.4 0 0 1-14.222222-9.898667c-3.783111-4.266667-5.688889-10.154667-5.688889-17.749333a28.16 28.16 0 0 1 3.982222-15.246223c2.645333-4.266667 6.058667-7.68 10.24-10.353777 4.181333-2.645333 8.874667-4.608 14.108444-5.916445 5.233778-1.28 10.439111-1.934222 15.587556-1.934222 6.684444 0 12.8 0.568889 18.432 1.706667 5.603556 1.137778 10.581333 3.128889 14.904889 5.916444 4.323556 2.816 7.765333 6.599111 10.353778 11.377778 2.56 4.778667 4.096 10.752 4.551111 17.863111h-19.342223a19.569778 19.569778 0 0 0-2.958222-9.443556 19.370667 19.370667 0 0 0-6.371555-6.030222 28.956444 28.956444 0 0 0-8.533334-3.299555 43.918222 43.918222 0 0 0-9.443555-1.024c-2.872889 0-5.802667 0.227556-8.760889 0.682666a29.496889 29.496889 0 0 0-8.078222 2.389334 16.270222 16.270222 0 0 0-5.916445 4.551111 11.463111 11.463111 0 0 0-2.275555 7.395555c0 3.356444 1.166222 6.115556 3.527111 8.305778a28.16 28.16 0 0 0 8.988444 5.461333c3.640889 1.422222 7.736889 2.673778 12.288 3.640889 4.551111 0.995556 9.102222 1.991111 13.653334 3.072 4.835556 1.080889 9.585778 2.360889 14.222222 3.868445 4.636444 1.536 8.732444 3.527111 12.288 6.030222s6.456889 5.660444 8.647111 9.443555a27.733333 27.733333 0 0 1 3.299555 14.108445c0 7.111111-1.479111 13.056-4.437333 17.749333a34.702222 34.702222 0 0 1-11.605333 11.377778 48.497778 48.497778 0 0 1-16.156445 6.030222c-5.973333 1.137778-11.946667 1.706667-17.863111 1.706667a82.773333 82.773333 0 0 1-18.659555-2.048 45.795556 45.795556 0 0 1-15.701334-6.712889 34.218667 34.218667 0 0 1-10.922666-12.288 42.581333 42.581333 0 0 1-4.551111-18.545778h19.342222z m116.053333-21.617778c0 7.111111 0.938667 13.482667 2.844445 19.000889 1.905778 5.546667 4.522667 10.183111 7.850666 13.880889a34.076444 34.076444 0 0 0 25.941334 11.491556 34.076444 34.076444 0 0 0 25.941333-11.491556c3.328-3.697778 5.973333-8.334222 7.850667-13.880889 1.905778-5.518222 2.844444-11.861333 2.844444-19.000889 0-7.111111-0.938667-13.454222-2.844444-19.000888a41.016889 41.016889 0 0 0-7.850667-13.994667 33.422222 33.422222 0 0 0-11.719111-8.647111 34.872889 34.872889 0 0 0-14.222222-2.958222c-5.006222 0-9.756444 0.995556-14.222223 2.958222-4.465778 1.991111-8.391111 4.835556-11.719111 8.647111-3.328 3.811556-5.973333 8.476444-7.850666 13.994667-1.905778 5.546667-2.844444 11.889778-2.844445 19.000888z m-20.48 0c0-8.647111 1.223111-16.725333 3.640889-24.234666a54.897778 54.897778 0 0 1 10.922667-19.569778c4.835556-5.518222 10.837333-9.898667 17.976889-13.084444 7.111111-3.185778 15.331556-4.778667 24.576-4.778667 9.386667 0 17.635556 1.592889 24.689777 4.778667 7.054222 3.185778 12.999111 7.566222 17.863111 13.084444 4.835556 5.546667 8.504889 12.060444 10.922667 19.569778 2.417778 7.509333 3.640889 15.587556 3.640889 24.234666 0 8.647111-1.223111 16.696889-3.640889 24.120889-2.417778 7.452444-6.058667 13.937778-10.922667 19.456-4.835556 5.546667-10.808889 9.870222-17.863111 12.970667-7.054222 3.128889-15.274667 4.664889-24.689777 4.664889-9.244444 0-17.436444-1.536-24.576-4.664889a50.261333 50.261333 0 0 1-17.976889-12.970667 55.068444 55.068444 0 0 1-10.922667-19.456 77.283556 77.283556 0 0 1-3.640889-24.120889z m136.988445-58.936888h18.204444v18.659555h0.455111c8.049778-14.250667 20.764444-21.390222 38.229333-21.390222 7.736889 0 14.193778 1.080889 19.342223 3.185778 5.148444 2.133333 9.329778 5.091556 12.515555 8.874666 3.185778 3.811556 5.404444 8.305778 6.712889 13.539556 1.28 5.233778 1.934222 11.036444 1.934222 17.408v77.368889h-19.342222v-79.644445c0-7.281778-2.133333-13.027556-6.371555-17.294222-4.266667-4.266667-10.097778-6.371556-17.521778-6.371555-5.916444 0-11.036444 0.910222-15.36 2.730666a28.814222 28.814222 0 0 0-10.808889 7.736889 33.336889 33.336889 0 0 0-6.485333 11.719111c-1.422222 4.494222-2.161778 9.386667-2.161778 14.677334v66.446222h-19.342222V568.035556z",fill:"#FFFFFF","p-id":"2274"},null,-1)],Tn={key:11,t:"1686300037564",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7515",width:"200",height:"200"},Sn=[c.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#029EF7","p-id":"7516"},null,-1),c.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),c.createElementVNode("path",{d:"M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",fill:"#FFFFFF","p-id":"7518"},null,-1)],xn=ce(c.defineComponent({__name:"IkFileIcon",props:{type:{type:String,default:"unknow"},file:{type:Object,default:()=>null},fields:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})}},setup(a){const s=a,r=c.computed(()=>s.file?lt(s.file,s.fields):s.type);return(t,e)=>r.value==="image"?(c.openBlock(),c.createElementBlock("svg",nn,rn)):r.value==="zip"?(c.openBlock(),c.createElementBlock("svg",on,sn)):r.value==="ppt"?(c.openBlock(),c.createElementBlock("svg",an,ln)):r.value==="word"?(c.openBlock(),c.createElementBlock("svg",un,cn)):r.value==="pdf"?(c.openBlock(),c.createElementBlock("svg",fn,hn)):r.value==="txt"?(c.openBlock(),c.createElementBlock("svg",dn,gn)):r.value==="audio"?(c.openBlock(),c.createElementBlock("svg",pn,vn)):r.value==="video"?(c.openBlock(),c.createElementBlock("svg",mn,yn)):r.value==="excel"?(c.openBlock(),c.createElementBlock("svg",_n,kn)):r.value==="exe"?(c.openBlock(),c.createElementBlock("svg",Cn,En)):r.value==="json"?(c.openBlock(),c.createElementBlock("svg",wn,bn)):(c.openBlock(),c.createElementBlock("svg",Tn,Sn))}}));/*! Element Plus Icons Vue v2.3.1 */var In=c.defineComponent({name:"Close",__name:"close",setup(a){return(s,r)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Pn=In;const Me=(a,s)=>{const r=a.__vccOpts||a;for(const[t,e]of s)r[t]=e;return r},An=a=>({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",并行分支:"PARALLEL",子流程:"SUB_PROCESS",...a.defaultNodeType},defaultFile:{id:"id",parallelInstances:"parallelInstances",backToInstanceNodeName:"backToInstanceNodeName",backToRecordNodeName:"backToRecordNodeName",nodeId:"sortOrder",nodeType:"type",nodeTypeName:"name",approveStatus:"status",approveStatusName:"statusName",approveType:"approveType",multiExecutorType:"multiExecutorType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approvalCategory:"approvalCategory",isShowAdd:"initiatorSpecify",isShowAddCopy:"initiatorSpecifyCarbonCopy",executorEmpty:"executorEmpty",executorEmptyStrategy:"executorEmptyStrategy",reserveExecutorUsers:"reserveExecutorUsers",approvePersonList:"executorUsers",initiatorSpecifiedScope:"initiatorSpecifiedScope",initiatorSpecifiedScopeType:"initiatorSpecifiedScopeType",singleApproval:"singleApproval",originator:"username",...a.defaultFieldMap},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...a.statusWithoutApprover},multiple:!1,chooseType:[],statusOption:{发起:"INITIATE",等待:"WAIT",同意:"PASS",撤销:"REVOKE",拒绝:"REJECT",转交:"TRANSFER",加签:"APPEND",退回:"BACK",评论:"COMMENT",待执行:"WAITING",执行中:"RUNNING",...a.defaultStatus},listData:[]}),Ln=(a,s,r)=>{let t="";switch(s){case a.nodeType.审批节点:r&&r.length==1?t="ikapprove-ziyuan":t="ikapprove-shenpi";break;case a.nodeType.办理节点:t="ikapprove-bianji";break;case a.nodeType.抄送节点:t="ikapprove-chaosong";break;case a.nodeType.并行分支:t="ikapprove-fenzhi";break;case a.nodeType.子流程:t="ikapprove-ziliucheng1";break;default:t="ikapprove-ziyuan"}return`ikapprove ${t}`},ut=a=>{const s=c.inject("loadUrl"),r=c.computed(()=>a.loadUrl||a.fileUrl||(s==null?void 0:s.value)),t=c.inject("uploadUrl"),e=c.computed(()=>a.action||a.uploadUrl||(t==null?void 0:t.value)),i=c.inject("token"),n=c.computed(()=>a.token||(i==null?void 0:i.value)),o=c.inject("onlyofficeConfig"),l=c.computed(()=>a.onlyofficeConfig||(o==null?void 0:o.value)),u=c.inject("userInfo"),f=c.computed(()=>a.userInfo||(u==null?void 0:u.value));return{cLoadUrl:r,cUploadUrl:e,cToken:n,cOnlyofficeConfig:l,cUserInfo:f}},Dn=(a,s=2)=>{if(a===void 0)return"";if(a===0)return"0 B";const r=["B","KB","MB","GB","TB"],t=Math.floor(Math.log(a)/Math.log(1024));let e=a/Math.pow(1024,t);return(e%1===0?e.toFixed(s||0):e.toFixed(s))+" "+r[t]},xe=(a,s)=>s?s.startsWith("http")?s:`${a||location.origin}${s}`:"",On=["onClick"],Rn={class:"fileName simple"},Nn=["onClick"],Fn={class:"text"},Mn={class:"fileName"},Bn={class:"size"},Hn=c.defineComponent({__name:"IkPreviewFile",props:{list:{type:Array,default:()=>[]},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},field:{required:!0,type:Object,default:()=>({})},iconSize:{type:Number,default:40},showBg:{type:Boolean,default:!0},width:{type:Number||String,default:"100%"},iconHoverShow:{type:Boolean,default:!1},isOnlyOfficePreview:{type:Boolean,default:!0},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},jwtToken:{type:String,default:""},simple:{type:Boolean,default:!1}},setup(a){const s=a,{cLoadUrl:r,cOnlyofficeConfig:t}=ut(s),e=c.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...s.field})),i=c.ref({}),n=c.ref(!1),o=h=>{var p,v;i.value={...h,name:h.name,url:xe(r.value,h.url||((v=(p=h==null?void 0:h.response)==null?void 0:p.data)==null?void 0:v.id)||(h==null?void 0:h.id))},n.value=!0},l=h=>{Se.ikFile.downloadFile(xe(r.value,h[e.value.url]||h.attachmentId||h.id),h[e.value.name]||h.attachmentName)},u=c.computed(()=>Se.paramType.isNumber(s.width)?`${s.width}px`:s.width),f=c.computed(()=>s.list.map(h=>({...h,name:h[e.value.name]||h.attachmentName,size:h[e.value.size]||h.fileSize||h.attachmentSize,suffix:h[e.value.suffix]||h.attachmentSuffix})));return(h,p)=>{var g,m,_;const v=c.resolveComponent("tmplate");return c.openBlock(),c.createElementBlock(c.Fragment,null,[(g=a.list)!=null&&g.length?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[a.simple?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:0},c.renderList(f.value,(C,b)=>(c.openBlock(),c.createElementBlock("div",{class:"iking-privew-annex simple",onClick:E=>o(C),style:c.normalizeStyle({width:u.value})},[c.createElementVNode("div",Rn,c.toDisplayString(C.name),1),c.createElementVNode("div",{class:c.normalizeClass(["flex flex-center",{"hover-show":a.iconHoverShow}])},[c.createVNode(c.unref(ye),{name:"iksvg_daochu",onClick:c.withModifiers(E=>l(C),["stop"]),size:20,active:""},null,8,["onClick"]),c.createVNode(c.unref(ye),{name:"iksvg_yulan",size:20,active:""}),c.renderSlot(h.$slots,"operation",{data:{...C,findex:b}})],2)],12,On))),256)):(c.openBlock(),c.createBlock(v,{key:1},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(f.value,(C,b)=>{var E;return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["iking-privew-annex",{"is-bg":a.showBg}]),key:b,style:c.normalizeStyle({marginBottom:b==((E=a.list)==null?void 0:E.length)-1?"0":"10px",width:u.value})},[c.createElementVNode("div",{class:"file-card",onClick:N=>o(C)},[c.createVNode(c.unref(xn),{file:C,style:c.normalizeStyle({height:`${a.iconSize}px`}),class:"ikui-w-auto",fields:e.value},null,8,["file","style","fields"]),c.createElementVNode("div",Fn,[c.createElementVNode("div",Mn,c.toDisplayString(C.name),1),c.createElementVNode("div",Bn,c.toDisplayString(c.unref(Dn)(C.size)),1)]),c.createElementVNode("div",{class:c.normalizeClass(["flex flex-center",{"hover-show":a.iconHoverShow}])},[c.createVNode(c.unref(ye),{name:"iksvg_daochu",onClick:c.withModifiers(N=>l(C),["stop"]),bg:a.showBg,size:a.showBg?"default":20,title:"下载"},null,8,["onClick","bg","size"]),c.createVNode(c.unref(ye),{name:"iksvg_yulan",bg:a.showBg,size:a.showBg?"default":20,title:"预览"},null,8,["bg","size"]),c.renderSlot(h.$slots,"operation",{data:{...C,findex:b}})],2)],8,Nn)],6)}),128))]),_:3}))],64)):c.createCommentVNode("v-if",!0),c.createVNode(c.unref(zn),{show:n.value,"onUpdate:show":p[0]||(p[0]=C=>n.value=C),loadUrl:c.unref(r),file:i.value,onlyofficeServer:((m=c.unref(t))==null?void 0:m.serverUrl)||a.onlyofficeServer,onlyOfficeConfig:c.unref(t),onlyOfficeAccept:((_=c.unref(t))==null?void 0:_.accept)||a.onlyOfficeAccept},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig","onlyOfficeAccept"])],64)}}}),il="",Vn=ce(Hn),Un=c.defineComponent({__name:"IkPreviewFileDialog",props:c.mergeModels({file:{type:Object,default:()=>[]},loadUrl:{type:String,default:""},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},field:{type:Object,default:()=>({})}},{show:{default:!1},showModifiers:{}}),emits:["update:show"],setup(a){const s=a,r=c.useModel(a,"show"),t=c.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize",...s.field})),e=c.ref(null),i=c.ref(null),n=c.reactive({image:!1,office:!1,video:!1}),o=u=>{var f,h,p,v,g,m,_;try{const C=((f=u==null?void 0:u.response)==null?void 0:f.data)||u,b=C[t.value.url]||(C==null?void 0:C.id)||C.attachmentId,E=(h=C[t.value.suffix]||C.attachmentSuffix)==null?void 0:h.toLowerCase(),N=C[t.value.name]||(C==null?void 0:C.attachmentName)||(C==null?void 0:C.originName);if(i.value={...u,name:u[t.value.name],url:xe(s.loadUrl,b)},u&<(u,t.value)==="image"){n.image=!0;return}else if(u&<(u,t.value)==="video"){n.video=!0;return}else if((((p=s.onlyOfficeConfig)==null?void 0:p.accept)||s.onlyOfficeAccept).includes(E)){n.office=!0,e.value={...s.onlyOfficeConfig,editorConfig:{...((v=s.onlyOfficeConfig)==null?void 0:v.editorConfig)||{},customization:{...((m=(g=s.onlyOfficeConfig)==null?void 0:g.editorConfig)==null?void 0:m.customization)||{},review:{reviewDisplay:"final"}}},document:{key:Se.buildUUID(),title:N,url:xe(s.loadUrl,b),fileType:E,...((_=s.onlyOfficeConfig)==null?void 0:_.document)||{}},documentType:tn(E)};return}}catch(C){console.info("预览错误: ",C)}};c.watch([r,s.file],([u,f])=>{u&&c.nextTick(()=>{o(s.file)})});const l=()=>{r.value=!1,n.office=!1,n.image=!1,n.video=!1,i.value=null};return(u,f)=>{var p,v,g;const h=c.resolveComponent("el-image-viewer");return r.value?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[(p=i.value)!=null&&p.url&&n.image?(c.openBlock(),c.createBlock(h,{key:0,onClose:f[0]||(f[0]=m=>l()),ref:"previewImgRef","url-list":[(v=i.value)==null?void 0:v.url],teleported:""},null,8,["url-list"])):c.createCommentVNode("v-if",!0),c.createCommentVNode(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),c.createCommentVNode(" 文档类 "),c.createVNode(c.unref(Ss),{modelValue:n.video,"onUpdate:modelValue":f[1]||(f[1]=m=>n.video=m),url:(g=i.value)==null?void 0:g.url},null,8,["modelValue","url"]),c.createVNode(c.unref(ir),{modelValue:n.office,"onUpdate:modelValue":f[2]||(f[2]=m=>n.office=m),draggable:"","no-footer":"","no-header":"",fullscreen:"","show-close-bg":"","destroy-on-close":"","close-on-click-modal":"","close-on-press-escape":!1,"append-to-body":"",onClose:l,"modal-class":"ik-only-preview-dialog"},{default:c.withCtx(()=>{var m;return[c.createVNode(c.unref(cr),{"config-options":e.value,"document-server-url":((m=a.onlyOfficeConfig)==null?void 0:m.serverUrl)||a.onlyofficeServer},null,8,["config-options","document-server-url"])]}),_:1},8,["modelValue"])],64)):c.createCommentVNode("v-if",!0)}}}),nl="",zn=ce(Un),jn={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},$n={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},Wn=["xlink:href"],Gn=["src"],Kn={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},Yn=["xlink:href"],Xn=["src"],qn=c.defineComponent({name:"IkSvgIcon",__name:"index",props:{active:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},color:{},colorLight:{},disabled:{type:Boolean,default:!1},error:{type:Boolean},flip:{},name:{},notip:{type:Boolean,default:!1},opacity:{default:.5},padding:{default:"6px"},primary:{type:Boolean},rotate:{},showBg:{type:Boolean,default:!1},size:{default:""},success:{type:Boolean},tableIconType:{},title:{},type:{},warning:{type:Boolean},width:{}},setup(a){const s=a,r=c.computed(()=>s),t=c.computed(()=>{const{name:i}=r.value;return/^http?:\/\//.test(i)?"img":/i-[^:]+:[^:]+/.test(i)?"unocss":i!=null&&i.startsWith("iksig")?"iksig":i!=null&&i.includes(":")?"iconify":i!=null&&i.startsWith("iksvg")?"svg":"i"}),e=c.computed(()=>{const i=[];if(r.value.flip)switch(r.value.flip){case"horizontal":i.push("rotateY(180deg)");break;case"vertical":i.push("rotateX(180deg)");break;case"both":i.push("rotateX(180deg)"),i.push("rotateY(180deg)");break}r.value.rotate&&i.push(`rotate(${r.value.rotate%360}deg)`);const n={...r.value.color&&{color:r.value.color},...r.value.size&&{fontSize:typeof r.value.size=="number"?`${r.value.size}px`:r.value.size},...i.length&&{transform:i.join(" ")},padding:r.value.showBg||r.value.bg?r.value.padding:0,...r.value.color&&t.value!=="iksig"?{"--ik-color-icon-dark":r.value.color,"--ik-color-icon-light":r.value.colorLight||Se.ikColor.setOpacity(r.value.color,r.value.opacity)}:{}};return r.value.width&&(n.width=n.height=typeof r.value.width=="number"?`${r.value.width}px`:r.value.width),n});return(i,n)=>{const o=c.resolveComponent("el-tooltip"),l=c.resolveComponent("el-button");return r.value.tableIconType==="icon"||!r.value.tableIconType?(c.openBlock(),c.createElementBlock("span",jn,[r.value.notip||!r.value.title?(c.openBlock(),c.createElementBlock("i",{key:0,class:c.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[i.name]:t.value==="unocss","show-bg":r.value.showBg||r.value.bg,default:r.value.size==="default",small:r.value.size==="small",big:r.value.size==="big",warning:r.value.warning||r.value.type==="warning",primary:r.value.primary||r.value.type==="primary",success:i.success||r.value.type==="success",error:r.value.error||r.value.type==="error",active:r.value.active,disabled:r.value.disabled}]),style:c.normalizeStyle(e.value)},[c.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),t.value==="iksig"?(c.openBlock(),c.createElementBlock("i",{key:0,class:c.normalizeClass(`iksig ${r.value.name}`),style:c.normalizeStyle(e.value)},null,6)):t.value==="svg"?(c.openBlock(),c.createElementBlock("svg",$n,[c.createElementVNode("use",{"xlink:href":`#${r.value.name}`},null,8,Wn)])):t.value==="img"?(c.openBlock(),c.createElementBlock("img",{key:2,src:r.value.name,class:"h-[1em] w-[1em]"},null,8,Gn)):(c.openBlock(),c.createElementBlock("i",{key:3,class:c.normalizeClass(r.value.name),style:c.normalizeStyle(e.value)},null,6))],6)):(c.openBlock(),c.createBlock(o,{key:1,content:r.value.title,placement:"top"},{default:c.withCtx(()=>[c.createElementVNode("i",{class:c.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[i.name]:t.value==="unocss","show-bg":r.value.showBg||r.value.bg,default:r.value.size==="default",small:r.value.size==="small",big:r.value.size==="big",warning:r.value.warning||r.value.type==="warning",primary:i.primary||r.value.type==="primary",success:i.success||r.value.type==="success",error:r.value.error||r.value.type==="error",active:r.value.active}]),style:c.normalizeStyle(e.value)},[t.value==="iksig"?(c.openBlock(),c.createElementBlock("i",{key:0,class:c.normalizeClass(`iksig ${r.value.name}`),style:c.normalizeStyle(e.value)},null,6)):t.value==="svg"?(c.openBlock(),c.createElementBlock("svg",Kn,[c.createElementVNode("use",{"xlink:href":`#${r.value.name}`},null,8,Yn)])):t.value==="img"?(c.openBlock(),c.createElementBlock("img",{key:2,src:r.value.name,class:"h-[1em] w-[1em]"},null,8,Xn)):(c.openBlock(),c.createElementBlock("i",{key:3,class:c.normalizeClass(r.value.name),style:c.normalizeStyle(e.value)},null,6))],6)]),_:1},8,["content"]))])):(c.openBlock(),c.createBlock(l,{key:1,type:["warning","error"].includes(r.value.type)?"danger":""},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(r.value.title),1)]),_:1},8,["type"]))}}}),rl="",ye=ce(Me(qn,[["__scopeId","data-v-a7ec508a"]])),Jn={key:0,class:"exit-main-page-maximize"},Zn=c.defineComponent({__name:"CloseIcon",props:{showBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},setup(a){return(s,r)=>(c.openBlock(),c.createElementBlock("div",null,[a.showBg&&a.fullscreen?(c.openBlock(),c.createElementBlock("div",Jn,[c.createVNode(c.unref(ye),{name:"iksvg_guanbidanchuang",title:"关闭",size:20,error:""})])):(c.openBlock(),c.createBlock(c.unref(ye),{key:1,error:"",name:"iksvg_guanbidanchuang",title:"关闭",size:20}))]))}}),sl="",Qn=Me(Zn,[["__scopeId","data-v-79f49df8"]]),er={class:"base-header"},tr=c.defineComponent({__name:"IkBaseDialog",props:c.mergeModels({title:{default:""},cancelText:{default:"取消"},confirmText:{default:"确认"},noHeader:{type:Boolean},noFooter:{type:Boolean},showCloseBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1,noHeader:!1,noFooter:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(a){const s=a,r=c.useModel(a,"modelValue"),t=c.ref(s.fullscreen),e=()=>{t.value=!t.value},i=c.defineComponent({setup(){return()=>c.h(Qn,{showBg:s.showCloseBg,fullscreen:s.fullscreen})}});return(n,o)=>{const l=c.resolveComponent("el-dialog");return c.openBlock(),c.createBlock(l,c.mergeProps({modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=u=>r.value=u)},n.$attrs,{"close-icon":c.unref(i),class:`ik-base-dialog ${n.noHeader?"no-header":""} ${n.noFooter?"no-footer":""}`,fullscreen:t.value,"modal-class":"baseDialog"}),c.createSlots({icon:c.withCtx(()=>[c.renderSlot(n.$slots,"title",{},()=>[c.createTextVNode(c.toDisplayString(n.title),1)])]),header:c.withCtx(()=>[c.createElementVNode("div",er,[c.renderSlot(n.$slots,"header",{},()=>[c.createTextVNode(c.toDisplayString(n.title),1)])]),n.$attrs.showClose?(c.openBlock(),c.createBlock(c.unref(ye),{key:0,onClick:e,name:t.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:t.value?"退出全屏":"全屏"},null,8,["name","title"])):c.createCommentVNode("v-if",!0)]),default:c.withCtx(()=>[c.renderSlot(n.$slots,"default")]),_:2},[n.$slots.footer?{name:"footer",fn:c.withCtx(()=>[c.renderSlot(n.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}),al="",ir=ce(tr),ll="";var nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ct(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function rr(a,s,r,t){function e(i){return i instanceof r?i:new r(function(n){n(i)})}return new(r||(r=Promise))(function(i,n){function o(f){try{u(t.next(f))}catch(h){n(h)}}function l(f){try{u(t.throw(f))}catch(h){n(h)}}function u(f){f.done?i(f.value):e(f.value).then(o,l)}u((t=t.apply(a,s||[])).next())})}function or(a,s){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,e,i,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(u){return function(f){return l([u,f])}}function l(u){if(t)throw new TypeError("Generator is already executing.");for(;n&&(n=0,u[0]&&(r=0)),r;)try{if(t=1,e&&(i=u[0]&2?e.return:u[0]?e.throw||((i=e.return)&&i.call(e),0):e.next)&&!(i=i.call(e,u[1])).done)return i;switch(e=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,e=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=s.call(a,r)}catch(f){u=[6,f],e=0}finally{t=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var sr=function(a,s){return rr(void 0,void 0,void 0,function(){return or(this,function(r){return[2,new Promise(function(t,e){try{if(window.DocsAPI)return t(null);var i=document.getElementById(s);if(i)var n=setInterval(function(){var l=i.getAttribute("loading");if(!l){if(clearInterval(n),window.DocsAPI)return t(null);var u=Gt(s,a,t,e);i.remove(),document.body.appendChild(u)}},500);else{var o=Gt(s,a,t,e);document.body.appendChild(o)}}catch(l){console.error(l)}})]})})},Gt=function(a,s,r,t){var e=document.createElement("script");return e.id=a,e.type="text/javascript",e.src=s,e.async=!0,e.onload=function(){e.removeAttribute("loading"),r(null)},e.onerror=function(i){e.removeAttribute("loading"),t(i)},e.setAttribute("loading",""),e},ft=c.defineComponent({name:"DocumentEditor",props:{id:{type:String,required:!0},documentServerUrl:{type:String,required:!0},config:{type:Object,required:!0},document_fileType:String,document_title:String,documentType:String,editorConfig_lang:String,height:String,type:String,width:String,onLoadComponentError:Function,events_onAppReady:Function,events_onDocumentStateChange:Function,events_onMetaChange:Function,events_onDocumentReady:Function,events_onInfo:Function,events_onWarning:Function,events_onError:Function,events_onRequestSharingSettings:Function,events_onRequestRename:Function,events_onMakeActionLink:Function,events_onRequestInsertImage:Function,events_onRequestSaveAs:Function,events_onRequestMailMergeRecipients:Function,events_onRequestCompareFile:Function,events_onRequestEditRights:Function,events_onRequestHistory:Function,events_onRequestHistoryClose:Function,events_onRequestHistoryData:Function,events_onRequestRestore:Function,events_onRequestSelectSpreadsheet:Function,events_onRequestSelectDocument:Function},mounted:function(){var a=this,s=this.documentServerUrl;s.endsWith("/")||(s+="/");var r="".concat(s,"web-apps/apps/api/documents/api.js");sr(r,"onlyoffice-api-script").then(function(){return a.onLoad()}).catch(function(){a.onError(-2)})},unmounted:function(){var a,s=this.id||"";!((a=window==null?void 0:window.DocEditor)===null||a===void 0)&&a.instances[s]&&(window.DocEditor.instances[s].destroyEditor(),window.DocEditor.instances[s]=void 0)},watch:{config:{handler:function(a,s){this.onChangeProps()},deep:!0},document_fileType:function(a,s){this.onChangeProps()},document_title:function(a,s){this.onChangeProps()},documentType:function(a,s){this.onChangeProps()},editorConfig_lang:function(a,s){this.onChangeProps()},height:function(a,s){this.onChangeProps()},type:function(a,s){this.onChangeProps()},width:function(a,s){this.onChangeProps()}},methods:{onLoad:function(){var a,s;try{var r=this.id||"";if(window.DocsAPI||this.onError(-3),!((a=window==null?void 0:window.DocEditor)===null||a===void 0)&&a.instances[r]){console.log("Skip loading. Instance already exists",r);return}!((s=window==null?void 0:window.DocEditor)===null||s===void 0)&&s.instances||(window.DocEditor={instances:{}});var t=Object.assign({document:{fileType:this.document_fileType,title:this.document_title},documentType:this.documentType,editorConfig:{lang:this.editorConfig_lang},events:{onAppReady:this.onAppReady,onDocumentStateChange:this.events_onDocumentStateChange,onMetaChange:this.events_onMetaChange,onDocumentReady:this.events_onDocumentReady,onInfo:this.events_onInfo,onWarning:this.events_onWarning,onError:this.events_onError,onRequestSharingSettings:this.events_onRequestSharingSettings,onRequestRename:this.events_onRequestRename,onMakeActionLink:this.events_onMakeActionLink,onRequestInsertImage:this.events_onRequestInsertImage,onRequestSaveAs:this.events_onRequestSaveAs,onRequestMailMergeRecipients:this.events_onRequestMailMergeRecipients,onRequestCompareFile:this.events_onRequestCompareFile,onRequestEditRights:this.events_onRequestEditRights,onRequestHistory:this.events_onRequestHistory,onRequestHistoryClose:this.events_onRequestHistoryClose,onRequestHistoryData:this.events_onRequestHistoryData,onRequestRestore:this.events_onRequestRestore,onRequestSelectSpreadsheet:this.events_onRequestSelectSpreadsheet,onRequestSelectDocument:this.events_onRequestSelectDocument},height:this.height,type:this.type,width:this.width},this.config||{}),e=window.DocsAPI.DocEditor(r,t);window.DocEditor.instances[r]=e}catch(i){console.error(i),this.onError(-1)}},onError:function(a){var s;switch(a){case-2:s="Error load DocsAPI from "+this.documentServerUrl;break;case-3:s="DocsAPI is not defined";break;default:s="Unknown error loading component",a=-1}typeof this.onLoadComponentError>"u"?console.error(s):this.onLoadComponentError(a,s)},onAppReady:function(){var a=this.id||"";this.events_onAppReady(window.DocEditor.instances[a])},onChangeProps:function(){var a,s=this.id||"";!((a=window==null?void 0:window.DocEditor)===null||a===void 0)&&a.instances[s]&&(window.DocEditor.instances[s].destroyEditor(),window.DocEditor.instances[s]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const ar=["id"];function lr(a,s,r,t,e,i){return c.openBlock(),c.createElementBlock("div",{id:a.id},null,8,ar)}ft.render=lr,ft.__file="src/components/DocumentEditor.vue";const ur=c.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"}},setup(a){const s=a,r=c.ref({width:"100%",height:"100%",...s.configOptions||{},...s.configOptions}),t=()=>{console.info("文档加载完成",s.configOptions)};return(e,i)=>(c.openBlock(),c.createElementBlock("div",{style:c.normalizeStyle({height:s.officeHeight})},[c.createVNode(c.unref(ft),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":a.documentServerUrl,config:r.value,events_onDocumentReady:t},null,8,["id","document-server-url","config"])],4))}}),ul="",cr=ce(Me(ur,[["__scopeId","data-v-98d51ef9"]]));function Kt(a,s){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(a);s&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})),r.push.apply(r,t)}return r}function U(a){for(var s=1;s<arguments.length;s++){var r=arguments[s]!=null?arguments[s]:{};s%2?Kt(Object(r),!0).forEach(function(t){k(a,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):Kt(Object(r)).forEach(function(t){Object.defineProperty(a,t,Object.getOwnPropertyDescriptor(r,t))})}return a}function G(a){"@babel/helpers - typeof";return G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},G(a)}function T(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function Yt(a,s){for(var r=0;r<s.length;r++){var t=s[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,Xt(t.key),t)}}function S(a,s,r){return s&&Yt(a.prototype,s),r&&Yt(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}function k(a,s,r){return s=Xt(s),s in a?Object.defineProperty(a,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[s]=r,a}function I(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),s&&ht(a,s)}function A(a){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},A(a)}function ht(a,s){return ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ht(a,s)}function fr(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function dt(a,s){if(s&&(typeof s=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(a)}function P(a){var s=fr();return function(){var t=A(a),e;if(s){var i=A(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return dt(this,e)}}function hr(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=A(a),a!==null););return a}function L(){return typeof Reflect<"u"&&Reflect.get?L=Reflect.get.bind():L=function(s,r,t){var e=hr(s,r);if(e){var i=Object.getOwnPropertyDescriptor(e,r);return i.get?i.get.call(arguments.length<3?s:t):i.value}},L.apply(this,arguments)}function Q(a){return dr(a)||gr(a)||pr(a)||vr()}function dr(a){if(Array.isArray(a))return gt(a)}function gr(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function pr(a,s){if(a){if(typeof a=="string")return gt(a,s);var r=Object.prototype.toString.call(a).slice(8,-1);if(r==="Object"&&a.constructor&&(r=a.constructor.name),r==="Map"||r==="Set")return Array.from(a);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gt(a,s)}}function gt(a,s){(s==null||s>a.length)&&(s=a.length);for(var r=0,t=new Array(s);r<s;r++)t[r]=a[r];return t}function vr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1
|
+
(function(ie,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("vue"),require("iking-utils-pro"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro","element-plus"],c):(ie=typeof globalThis<"u"?globalThis:ie||self,c(ie.index={},ie.vue,ie["iking-utils-pro"],ie["element-plus"]))})(this,function(ie,c,Se,Qi){"use strict";const ce=(a,s)=>{if(a.install=r=>{for(const t of[a,...Object.values(s??{})])r.component(t.name,t)},s)for(const[r,t]of Object.entries(s))a[r]=t;return a},lt=(a,s)=>{var i,n,o,l;const r=(i=a==null?void 0:a.response)!=null&&i.data?Wt((o=(n=a==null?void 0:a.response)==null?void 0:n.data)==null?void 0:o.suffix):((l=a.raw)==null?void 0:l.type)||Wt(a[s.suffix]),t=r==null?void 0:r.toLowerCase(),e={sheet:"excel",excel:"excel",zip:"zip","application/x-compressed":"zip",image:"image",video:"video",audio:"audio",pdf:"pdf",text:"txt",txt:"txt",word:"word",ppt:"ppt",exe:"exe",json:"json"};for(let u in e)if(typeof t=="string"&&(t.includes(u)||t===u))return e[u];return"unknown"},en={".doc":"word",".docx":"word",".docxf":"word",".docm":"word",".dot":"word",".dotm":"word",".dotx":"word",".epub":"word",".fodt":"word",".htm":"word",".html":"word",".mht":"word",".odt":"word",".ott":"word",".rtf":"word",".djvu":"word",".oxps":"word",".oform":"word",".fb2":"word",".xml":"word",".xps":"word",".csv":"excel",".xls":"excel",".xlsx":"excel",".fods":"excel",".ods":"excel",".ots":"excel",".xlsb":"excel",".xlsm":"excel",".xlt":"excel",".xltm":"excel",".xltx":"excel",".fodp":"ppt",".odp":"ppt",".otp":"ppt",".pot":"ppt",".potm":"ppt",".potx":"ppt",".pps":"ppt",".ppsm":"ppt",".ppsx":"ppt",".ppt":"ppt",".pptm":"ppt",".pptx":"ppt",".zip":"zip",".rar":"zip",".7z":"zip",".apz":"zip",".ar":"zip",".bz":"zip",".car":"zip",".dar":"zip",".cpgz":"zip",".f":"zip",".ha":"zip",".hbc":"zip",".hbc2":"zip",".hbe":"zip",".hpk":"zip",".hyp":"zip",".png":"image",".jpg":"image",".jpeg":"image",".bmp":"image",".gif":"image",".webp":"image",".psd":"image",".svg":"image",".tiff":"image",".avi":"video",".wmv":"video",".mpeg":"video",".mp4":"video",".mpm4v":"video",".mov":"video",".asf":"video",".flv":"video",".f4v":"video",".rmvb":"video",".rm":"video",".3gp":"video",".vob":"video",".txt":"txt",".pdf":"pdf"},Wt=a=>{const s=a==null?void 0:a.toLocaleLowerCase(),r=s!=null&&s.startsWith(".")?s:`.${s}`;return r&&en[r]||"unknow"},tn=a=>{let s="",r=["doc","docx"],t=["xls","xlsx"],e=["ppt","pptx"],i=["pdf"];return r.includes(a)&&(s="word"),t.includes(a)&&(s="cell"),e.includes(a)&&(s="slide"),i.includes(a)&&(s="text-pdf"),s},nn={key:0,t:"1686300059786",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7671",width:"200",height:"200"},rn=[c.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#50CD89","p-id":"7672"},null,-1),c.createElementVNode("path",{d:"M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",fill:"#FFF7F7","p-id":"7673"},null,-1),c.createElementVNode("path",{d:"M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",fill:"#FFFFFF","p-id":"7674"},null,-1),c.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)],on={key:1,t:"1686301531714",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9067",width:"200",height:"200"},sn=[c.createElementVNode("path",{d:"M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",fill:"#FFA621","p-id":"9068"},null,-1),c.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"9069"},null,-1)],an={key:2,t:"1686300141125",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8137",width:"200",height:"200"},ln=[c.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",fill:"#F1416C","p-id":"8138"},null,-1),c.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8139"},null,-1)],un={key:3,t:"1686300157181",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8292",width:"200",height:"200"},cn=[c.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",fill:"#029EF7","p-id":"8293"},null,-1),c.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8294"},null,-1)],fn={key:4,t:"1686300180947",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8447",width:"200",height:"200"},hn=[c.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",fill:"#F1416C","p-id":"8448"},null,-1),c.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8449"},null,-1)],dn={key:5,t:"1686300195363",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8602",width:"200",height:"200"},gn=[c.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",fill:"#029EF7","p-id":"8603"},null,-1),c.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8604"},null,-1)],pn={key:6,t:"1686300209288",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8757",width:"200",height:"200"},vn=[c.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",fill:"#FFA621","p-id":"8758"},null,-1),c.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8759"},null,-1)],mn={key:7,t:"1686300225262",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8912",width:"200",height:"200"},yn=[c.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",fill:"#FFA621","p-id":"8913"},null,-1),c.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8914"},null,-1)],_n={key:8,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},kn=[c.createElementVNode("path",{d:"M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",fill:"#00BD76","p-id":"4337"},null,-1),c.createElementVNode("path",{d:"M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",fill:"#FFFFFF",opacity:".9","p-id":"4338"},null,-1),c.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)],Cn={key:9,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},En=[c.createElementVNode("path",{d:"M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z",fill:"#8199AF","p-id":"8002"},null,-1),c.createElementVNode("path",{d:"M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",fill:"#617F9B","p-id":"8003"},null,-1),c.createElementVNode("path",{d:"M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",fill:"#FFFFFF",opacity:".5","p-id":"8004"},null,-1),c.createElementVNode("path",{d:"M344 862.4h-100.8c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h100.8c4.8 0 9.6 4.8 9.6 11.2 0 6.4-4.8 9.6-9.6 9.6h-94.4v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h94.4c4.8 0 9.6 4.8 9.6 9.6 0 6.4-4.8 11.2-9.6 11.2z m193.6 1.6c-4.8 0-8 0-9.6-3.2l-59.2-80-60.8 80c-1.6 3.2-4.8 3.2-8 3.2-6.4 0-11.2-4.8-11.2-11.2 0-1.6 0-4.8 1.6-6.4l62.4-81.6-57.6-78.4c-1.6-1.6-3.2-3.2-3.2-6.4 0-4.8 4.8-11.2 12.8-11.2 3.2 0 6.4 1.6 8 4.8l56 73.6 54.4-73.6c1.6-3.2 4.8-4.8 9.6-4.8s11.2 4.8 11.2 11.2c0 3.2 0 4.8-1.6 6.4l-57.6 76.8 60.8 83.2c1.6 1.6 3.2 4.8 3.2 6.4 0 6.4-6.4 11.2-11.2 11.2z m171.2-1.6h-99.2c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h99.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-92.8v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h92.8c6.4 0 11.2 4.8 11.2 9.6 0 6.4-4.8 11.2-11.2 11.2z",fill:"#FFFFFF","p-id":"8005"},null,-1)],wn={key:10,t:"1714099890925",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2271",width:"200",height:"200"},bn=[c.createElementVNode("path",{d:"M227.555556 28.444444h389.404444a19.911111 19.911111 0 0 1 14.734222 6.542223l271.132445 298.211555a28.444444 28.444444 0 0 1 7.395555 19.143111V938.666667a56.888889 56.888889 0 0 1-56.888889 56.888889H227.555556a56.888889 56.888889 0 0 1-56.888889-56.888889V85.333333a56.888889 56.888889 0 0 1 56.888889-56.888889z",fill:"#0DD59D","p-id":"2272"},null,-1),c.createElementVNode("path",{d:"M625.777778 30.492444a19.911111 19.911111 0 0 1 5.916444 4.465778l271.132445 298.24a28.444444 28.444444 0 0 1 5.176889 8.135111H682.666667a56.888889 56.888889 0 0 1-56.888889-56.888889V30.492444z",fill:"#FFFFFF","fill-opacity":".65","p-id":"2273"},null,-1),c.createElementVNode("path",{d:"M396.288 645.176889c0 5.461333-0.796444 10.865778-2.389333 16.156444-1.592889 5.319111-4.266667 10.069333-7.964445 14.222223-3.697778 4.181333-8.647111 7.509333-14.791111 10.012444a60.871111 60.871111 0 0 1-22.869333 3.754667c-15.160889 0-26.851556-3.982222-35.043556-11.946667-8.192-7.964444-12.288-19.683556-12.288-35.157333v-10.012445h21.617778v6.826667c0 4.721778 0.369778 9.045333 1.137778 12.970667a28.074667 28.074667 0 0 0 3.982222 10.24 18.773333 18.773333 0 0 0 7.964444 6.712888c3.413333 1.592889 7.765333 2.389333 13.084445 2.389334 9.870222 0 16.64-2.645333 20.366222-7.964445 3.697778-5.290667 5.575111-12.430222 5.575111-21.390222v-118.784h21.617778v121.969778z m44.145778 3.413333c0.142222 4.266667 1.137778 7.850667 2.958222 10.808889a20.593778 20.593778 0 0 0 7.168 7.054222c2.958222 1.763556 6.286222 3.015111 10.012444 3.754667 3.697778 0.768 7.537778 1.137778 11.491556 1.137778 3.043556 0 6.229333-0.227556 9.557333-0.682667 3.328-0.455111 6.4-1.28 9.216-2.503111a17.294222 17.294222 0 0 0 6.940445-5.347556 14.250667 14.250667 0 0 0 2.730666-8.988444 12.885333 12.885333 0 0 0-5.688888-11.377778c-3.783111-2.56-8.533333-4.664889-14.222223-6.257778a232.561778 232.561778 0 0 0-18.545777-4.323555 96.227556 96.227556 0 0 1-18.545778-5.461333 38.4 38.4 0 0 1-14.222222-9.898667c-3.783111-4.266667-5.688889-10.154667-5.688889-17.749333a28.16 28.16 0 0 1 3.982222-15.246223c2.645333-4.266667 6.058667-7.68 10.24-10.353777 4.181333-2.645333 8.874667-4.608 14.108444-5.916445 5.233778-1.28 10.439111-1.934222 15.587556-1.934222 6.684444 0 12.8 0.568889 18.432 1.706667 5.603556 1.137778 10.581333 3.128889 14.904889 5.916444 4.323556 2.816 7.765333 6.599111 10.353778 11.377778 2.56 4.778667 4.096 10.752 4.551111 17.863111h-19.342223a19.569778 19.569778 0 0 0-2.958222-9.443556 19.370667 19.370667 0 0 0-6.371555-6.030222 28.956444 28.956444 0 0 0-8.533334-3.299555 43.918222 43.918222 0 0 0-9.443555-1.024c-2.872889 0-5.802667 0.227556-8.760889 0.682666a29.496889 29.496889 0 0 0-8.078222 2.389334 16.270222 16.270222 0 0 0-5.916445 4.551111 11.463111 11.463111 0 0 0-2.275555 7.395555c0 3.356444 1.166222 6.115556 3.527111 8.305778a28.16 28.16 0 0 0 8.988444 5.461333c3.640889 1.422222 7.736889 2.673778 12.288 3.640889 4.551111 0.995556 9.102222 1.991111 13.653334 3.072 4.835556 1.080889 9.585778 2.360889 14.222222 3.868445 4.636444 1.536 8.732444 3.527111 12.288 6.030222s6.456889 5.660444 8.647111 9.443555a27.733333 27.733333 0 0 1 3.299555 14.108445c0 7.111111-1.479111 13.056-4.437333 17.749333a34.702222 34.702222 0 0 1-11.605333 11.377778 48.497778 48.497778 0 0 1-16.156445 6.030222c-5.973333 1.137778-11.946667 1.706667-17.863111 1.706667a82.773333 82.773333 0 0 1-18.659555-2.048 45.795556 45.795556 0 0 1-15.701334-6.712889 34.218667 34.218667 0 0 1-10.922666-12.288 42.581333 42.581333 0 0 1-4.551111-18.545778h19.342222z m116.053333-21.617778c0 7.111111 0.938667 13.482667 2.844445 19.000889 1.905778 5.546667 4.522667 10.183111 7.850666 13.880889a34.076444 34.076444 0 0 0 25.941334 11.491556 34.076444 34.076444 0 0 0 25.941333-11.491556c3.328-3.697778 5.973333-8.334222 7.850667-13.880889 1.905778-5.518222 2.844444-11.861333 2.844444-19.000889 0-7.111111-0.938667-13.454222-2.844444-19.000888a41.016889 41.016889 0 0 0-7.850667-13.994667 33.422222 33.422222 0 0 0-11.719111-8.647111 34.872889 34.872889 0 0 0-14.222222-2.958222c-5.006222 0-9.756444 0.995556-14.222223 2.958222-4.465778 1.991111-8.391111 4.835556-11.719111 8.647111-3.328 3.811556-5.973333 8.476444-7.850666 13.994667-1.905778 5.546667-2.844444 11.889778-2.844445 19.000888z m-20.48 0c0-8.647111 1.223111-16.725333 3.640889-24.234666a54.897778 54.897778 0 0 1 10.922667-19.569778c4.835556-5.518222 10.837333-9.898667 17.976889-13.084444 7.111111-3.185778 15.331556-4.778667 24.576-4.778667 9.386667 0 17.635556 1.592889 24.689777 4.778667 7.054222 3.185778 12.999111 7.566222 17.863111 13.084444 4.835556 5.546667 8.504889 12.060444 10.922667 19.569778 2.417778 7.509333 3.640889 15.587556 3.640889 24.234666 0 8.647111-1.223111 16.696889-3.640889 24.120889-2.417778 7.452444-6.058667 13.937778-10.922667 19.456-4.835556 5.546667-10.808889 9.870222-17.863111 12.970667-7.054222 3.128889-15.274667 4.664889-24.689777 4.664889-9.244444 0-17.436444-1.536-24.576-4.664889a50.261333 50.261333 0 0 1-17.976889-12.970667 55.068444 55.068444 0 0 1-10.922667-19.456 77.283556 77.283556 0 0 1-3.640889-24.120889z m136.988445-58.936888h18.204444v18.659555h0.455111c8.049778-14.250667 20.764444-21.390222 38.229333-21.390222 7.736889 0 14.193778 1.080889 19.342223 3.185778 5.148444 2.133333 9.329778 5.091556 12.515555 8.874666 3.185778 3.811556 5.404444 8.305778 6.712889 13.539556 1.28 5.233778 1.934222 11.036444 1.934222 17.408v77.368889h-19.342222v-79.644445c0-7.281778-2.133333-13.027556-6.371555-17.294222-4.266667-4.266667-10.097778-6.371556-17.521778-6.371555-5.916444 0-11.036444 0.910222-15.36 2.730666a28.814222 28.814222 0 0 0-10.808889 7.736889 33.336889 33.336889 0 0 0-6.485333 11.719111c-1.422222 4.494222-2.161778 9.386667-2.161778 14.677334v66.446222h-19.342222V568.035556z",fill:"#FFFFFF","p-id":"2274"},null,-1)],Tn={key:11,t:"1686300037564",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7515",width:"200",height:"200"},Sn=[c.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#029EF7","p-id":"7516"},null,-1),c.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),c.createElementVNode("path",{d:"M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",fill:"#FFFFFF","p-id":"7518"},null,-1)],xn=ce(c.defineComponent({__name:"IkFileIcon",props:{type:{type:String,default:"unknow"},file:{type:Object,default:()=>null},fields:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})}},setup(a){const s=a,r=c.computed(()=>s.file?lt(s.file,s.fields):s.type);return(t,e)=>r.value==="image"?(c.openBlock(),c.createElementBlock("svg",nn,rn)):r.value==="zip"?(c.openBlock(),c.createElementBlock("svg",on,sn)):r.value==="ppt"?(c.openBlock(),c.createElementBlock("svg",an,ln)):r.value==="word"?(c.openBlock(),c.createElementBlock("svg",un,cn)):r.value==="pdf"?(c.openBlock(),c.createElementBlock("svg",fn,hn)):r.value==="txt"?(c.openBlock(),c.createElementBlock("svg",dn,gn)):r.value==="audio"?(c.openBlock(),c.createElementBlock("svg",pn,vn)):r.value==="video"?(c.openBlock(),c.createElementBlock("svg",mn,yn)):r.value==="excel"?(c.openBlock(),c.createElementBlock("svg",_n,kn)):r.value==="exe"?(c.openBlock(),c.createElementBlock("svg",Cn,En)):r.value==="json"?(c.openBlock(),c.createElementBlock("svg",wn,bn)):(c.openBlock(),c.createElementBlock("svg",Tn,Sn))}}));/*! Element Plus Icons Vue v2.3.1 */var In=c.defineComponent({name:"Close",__name:"close",setup(a){return(s,r)=>(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[c.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Pn=In;const Me=(a,s)=>{const r=a.__vccOpts||a;for(const[t,e]of s)r[t]=e;return r},An=a=>({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",并行分支:"PARALLEL",子流程:"SUB_PROCESS",...a.defaultNodeType},defaultFile:{id:"id",parallelInstances:"parallelInstances",backToInstanceNodeName:"backToInstanceNodeName",backToRecordNodeName:"backToRecordNodeName",nodeId:"sortOrder",nodeType:"type",nodeTypeName:"name",approveStatus:"status",approveStatusName:"statusName",approveType:"approveType",multiExecutorType:"multiExecutorType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approvalCategory:"approvalCategory",isShowAdd:"initiatorSpecify",isShowAddCopy:"initiatorSpecifyCarbonCopy",executorEmpty:"executorEmpty",executorEmptyStrategy:"executorEmptyStrategy",reserveExecutorUsers:"reserveExecutorUsers",approvePersonList:"executorUsers",initiatorSpecifiedScope:"initiatorSpecifiedScope",initiatorSpecifiedScopeType:"initiatorSpecifiedScopeType",singleApproval:"singleApproval",originator:"username",...a.defaultFieldMap},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...a.statusWithoutApprover},multiple:!1,chooseType:[],statusOption:{发起:"INITIATE",等待:"WAIT",同意:"PASS",撤销:"REVOKE",拒绝:"REJECT",转交:"TRANSFER",加签:"APPEND",退回:"BACK",评论:"COMMENT",待执行:"WAITING",执行中:"RUNNING",...a.defaultStatus},listData:[]}),Ln=(a,s,r)=>{let t="";switch(s){case a.nodeType.审批节点:r&&r.length==1?t="ikapprove-ziyuan":t="ikapprove-shenpi";break;case a.nodeType.办理节点:t="ikapprove-bianji";break;case a.nodeType.抄送节点:t="ikapprove-chaosong";break;case a.nodeType.并行分支:t="ikapprove-fenzhi";break;case a.nodeType.子流程:t="ikapprove-ziliucheng1";break;default:t="ikapprove-ziyuan"}return`ikapprove ${t}`},ut=a=>{const s=c.inject("loadUrl"),r=c.computed(()=>a.loadUrl||a.fileUrl||(s==null?void 0:s.value)),t=c.inject("uploadUrl"),e=c.computed(()=>a.action||a.uploadUrl||(t==null?void 0:t.value)),i=c.inject("token"),n=c.computed(()=>a.token||(i==null?void 0:i.value)),o=c.inject("onlyofficeConfig"),l=c.computed(()=>a.onlyofficeConfig||(o==null?void 0:o.value)),u=c.inject("userInfo"),f=c.computed(()=>a.userInfo||(u==null?void 0:u.value));return{cLoadUrl:r,cUploadUrl:e,cToken:n,cOnlyofficeConfig:l,cUserInfo:f}},Dn=(a,s=2)=>{if(a===void 0)return"";if(a===0)return"0 B";const r=["B","KB","MB","GB","TB"],t=Math.floor(Math.log(a)/Math.log(1024));let e=a/Math.pow(1024,t);return(e%1===0?e.toFixed(s||0):e.toFixed(s))+" "+r[t]},xe=(a,s)=>s?s.startsWith("http")?s:`${a||location.origin}${s}`:"",On=["onClick"],Rn={class:"fileName simple"},Nn=["onClick"],Fn={class:"text"},Mn={class:"fileName"},Bn={class:"size"},Hn=c.defineComponent({__name:"IkPreviewFile",props:{list:{type:Array,default:()=>[]},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},field:{required:!0,type:Object,default:()=>({})},iconSize:{type:Number,default:40},showBg:{type:Boolean,default:!0},width:{type:Number||String,default:"100%"},iconHoverShow:{type:Boolean,default:!1},isOnlyOfficePreview:{type:Boolean,default:!0},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},jwtToken:{type:String,default:""},simple:{type:Boolean,default:!1}},setup(a){const s=a,{cLoadUrl:r,cOnlyofficeConfig:t}=ut(s),e=c.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...s.field})),i=c.ref({}),n=c.ref(!1),o=h=>{var p,v;i.value={...h,name:h.name,url:xe(r.value,h.url||((v=(p=h==null?void 0:h.response)==null?void 0:p.data)==null?void 0:v.id)||(h==null?void 0:h.id))},n.value=!0},l=h=>{Se.ikFile.downloadFile(xe(r.value,h[e.value.url]||h.attachmentId||h.id),h[e.value.name]||h.attachmentName)},u=c.computed(()=>Se.paramType.isNumber(s.width)?`${s.width}px`:s.width),f=c.computed(()=>s.list.map(h=>({...h,name:h[e.value.name]||h.attachmentName,size:h[e.value.size]||h.fileSize||h.attachmentSize,suffix:h[e.value.suffix]||h.attachmentSuffix})));return(h,p)=>{var g,m,_;const v=c.resolveComponent("tmplate");return c.openBlock(),c.createElementBlock(c.Fragment,null,[(g=a.list)!=null&&g.length?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[a.simple?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:0},c.renderList(f.value,(C,b)=>(c.openBlock(),c.createElementBlock("div",{class:"iking-privew-annex simple",onClick:E=>o(C),style:c.normalizeStyle({width:u.value})},[c.createElementVNode("div",Rn,c.toDisplayString(C.name),1),c.createElementVNode("div",{class:c.normalizeClass(["flex flex-center",{"hover-show":a.iconHoverShow}])},[c.createVNode(c.unref(ye),{name:"iksvg_daochu",onClick:c.withModifiers(E=>l(C),["stop"]),size:20,active:""},null,8,["onClick"]),c.createVNode(c.unref(ye),{name:"iksvg_yulan",size:20,active:""}),c.renderSlot(h.$slots,"operation",{data:{...C,findex:b}})],2)],12,On))),256)):(c.openBlock(),c.createBlock(v,{key:1},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(f.value,(C,b)=>{var E;return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["iking-privew-annex",{"is-bg":a.showBg}]),key:b,style:c.normalizeStyle({marginBottom:b==((E=a.list)==null?void 0:E.length)-1?"0":"10px",width:u.value})},[c.createElementVNode("div",{class:"file-card",onClick:N=>o(C)},[c.createVNode(c.unref(xn),{file:C,style:c.normalizeStyle({height:`${a.iconSize}px`}),class:"ikui-w-auto",fields:e.value},null,8,["file","style","fields"]),c.createElementVNode("div",Fn,[c.createElementVNode("div",Mn,c.toDisplayString(C.name),1),c.createElementVNode("div",Bn,c.toDisplayString(c.unref(Dn)(C.size)),1)]),c.createElementVNode("div",{class:c.normalizeClass(["flex flex-center",{"hover-show":a.iconHoverShow}])},[c.createVNode(c.unref(ye),{name:"iksvg_daochu",onClick:c.withModifiers(N=>l(C),["stop"]),bg:a.showBg,size:a.showBg?"default":20,title:"下载"},null,8,["onClick","bg","size"]),c.createVNode(c.unref(ye),{name:"iksvg_yulan",bg:a.showBg,size:a.showBg?"default":20,title:"预览"},null,8,["bg","size"]),c.renderSlot(h.$slots,"operation",{data:{...C,findex:b}})],2)],8,Nn)],6)}),128))]),_:3}))],64)):c.createCommentVNode("v-if",!0),c.createVNode(c.unref(zn),{show:n.value,"onUpdate:show":p[0]||(p[0]=C=>n.value=C),loadUrl:c.unref(r),file:i.value,onlyofficeServer:((m=c.unref(t))==null?void 0:m.serverUrl)||a.onlyofficeServer,onlyOfficeConfig:c.unref(t),onlyOfficeAccept:((_=c.unref(t))==null?void 0:_.accept)||a.onlyOfficeAccept},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig","onlyOfficeAccept"])],64)}}}),il="",Vn=ce(Hn),Un=c.defineComponent({__name:"IkPreviewFileDialog",props:c.mergeModels({file:{type:Object,default:()=>[]},loadUrl:{type:String,default:""},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""},onlyOfficeConfig:{type:Object,default:()=>({})},field:{type:Object,default:()=>({})}},{show:{default:!1},showModifiers:{}}),emits:["update:show"],setup(a){const s=a,r=c.useModel(a,"show"),t=c.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize",...s.field})),e=c.ref(null),i=c.ref(null),n=c.reactive({image:!1,office:!1,video:!1}),o=u=>{var f,h,p,v,g,m,_;try{const C=((f=u==null?void 0:u.response)==null?void 0:f.data)||u,b=C[t.value.url]||(C==null?void 0:C.id)||C.attachmentId,E=(h=C[t.value.suffix]||C.attachmentSuffix)==null?void 0:h.toLowerCase(),N=C[t.value.name]||(C==null?void 0:C.attachmentName)||(C==null?void 0:C.originName);if(i.value={...u,name:u[t.value.name],url:xe(s.loadUrl,b)},u&<(u,t.value)==="image"){n.image=!0;return}else if(u&<(u,t.value)==="video"){n.video=!0;return}else if((((p=s.onlyOfficeConfig)==null?void 0:p.accept)||s.onlyOfficeAccept).includes(E)){n.office=!0,e.value={...s.onlyOfficeConfig,editorConfig:{...((v=s.onlyOfficeConfig)==null?void 0:v.editorConfig)||{},customization:{...((m=(g=s.onlyOfficeConfig)==null?void 0:g.editorConfig)==null?void 0:m.customization)||{},review:{reviewDisplay:"final"}}},document:{key:Se.buildUUID(),title:N,url:xe(s.loadUrl,b),fileType:E,...((_=s.onlyOfficeConfig)==null?void 0:_.document)||{}},documentType:tn(E)};return}}catch(C){console.info("预览错误: ",C)}};c.watch([r,s.file],([u,f])=>{u&&c.nextTick(()=>{o(s.file)})});const l=()=>{r.value=!1,n.office=!1,n.image=!1,n.video=!1,i.value=null};return(u,f)=>{var p,v,g;const h=c.resolveComponent("el-image-viewer");return r.value?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[(p=i.value)!=null&&p.url&&n.image?(c.openBlock(),c.createBlock(h,{key:0,onClose:f[0]||(f[0]=m=>l()),ref:"previewImgRef","url-list":[(v=i.value)==null?void 0:v.url],teleported:""},null,8,["url-list"])):c.createCommentVNode("v-if",!0),c.createCommentVNode(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),c.createCommentVNode(" 文档类 "),c.createVNode(c.unref(Ss),{modelValue:n.video,"onUpdate:modelValue":f[1]||(f[1]=m=>n.video=m),url:(g=i.value)==null?void 0:g.url},null,8,["modelValue","url"]),c.createVNode(c.unref(ir),{modelValue:n.office,"onUpdate:modelValue":f[2]||(f[2]=m=>n.office=m),draggable:"","no-footer":"","no-header":"",fullscreen:"","show-close-bg":"","destroy-on-close":"","close-on-click-modal":"","close-on-press-escape":!1,"append-to-body":"",onClose:l,"modal-class":"ik-only-preview-dialog"},{default:c.withCtx(()=>{var m;return[c.createVNode(c.unref(cr),{"config-options":e.value,"document-server-url":((m=a.onlyOfficeConfig)==null?void 0:m.serverUrl)||a.onlyofficeServer},null,8,["config-options","document-server-url"])]}),_:1},8,["modelValue"])],64)):c.createCommentVNode("v-if",!0)}}}),nl="",zn=ce(Un),jn={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},$n={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},Wn=["xlink:href"],Gn=["src"],Kn={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},Yn=["xlink:href"],Xn=["src"],qn=c.defineComponent({name:"IkSvgIcon",__name:"index",props:{active:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},color:{},colorLight:{},disabled:{type:Boolean,default:!1},error:{type:Boolean},flip:{},name:{},notip:{type:Boolean,default:!1},opacity:{default:.5},padding:{default:"6px"},primary:{type:Boolean},rotate:{},showBg:{type:Boolean,default:!1},size:{default:""},success:{type:Boolean},tableIconType:{},title:{},type:{},warning:{type:Boolean},width:{}},emits:["click"],setup(a,{emit:s}){const r=a,t=c.computed(()=>r),e=c.computed(()=>{const{name:l}=t.value;return/^http?:\/\//.test(l)?"img":/i-[^:]+:[^:]+/.test(l)?"unocss":l!=null&&l.startsWith("iksig")?"iksig":l!=null&&l.includes(":")?"iconify":l!=null&&l.startsWith("iksvg")?"svg":"i"}),i=c.computed(()=>{const l=[];if(t.value.flip)switch(t.value.flip){case"horizontal":l.push("rotateY(180deg)");break;case"vertical":l.push("rotateX(180deg)");break;case"both":l.push("rotateX(180deg)"),l.push("rotateY(180deg)");break}t.value.rotate&&l.push(`rotate(${t.value.rotate%360}deg)`);const u={...t.value.color&&{color:t.value.color},...t.value.size&&{fontSize:typeof t.value.size=="number"?`${t.value.size}px`:t.value.size},...l.length&&{transform:l.join(" ")},padding:t.value.showBg||t.value.bg?t.value.padding:0,...t.value.color&&e.value!=="iksig"?{"--ik-color-icon-dark":t.value.color,"--ik-color-icon-light":t.value.colorLight||Se.ikColor.setOpacity(t.value.color,t.value.opacity)}:{}};return t.value.width&&(u.width=u.height=typeof t.value.width=="number"?`${t.value.width}px`:t.value.width),u}),n=s,o=l=>{t.value.disabled||n("click",l)};return(l,u)=>{const f=c.resolveComponent("el-tooltip"),h=c.resolveComponent("el-button");return t.value.tableIconType==="icon"||!t.value.tableIconType?(c.openBlock(),c.createElementBlock("span",jn,[t.value.notip||!t.value.title?(c.openBlock(),c.createElementBlock("i",{key:0,onClick:c.withModifiers(o,["stop"]),class:c.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[l.name]:e.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:t.value.primary||t.value.type==="primary",success:l.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active,disabled:t.value.disabled}]),style:c.normalizeStyle(i.value)},[c.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),e.value==="iksig"?(c.openBlock(),c.createElementBlock("i",{key:0,class:c.normalizeClass(`iksig ${t.value.name}`),style:c.normalizeStyle(i.value)},null,6)):e.value==="svg"?(c.openBlock(),c.createElementBlock("svg",$n,[c.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,Wn)])):e.value==="img"?(c.openBlock(),c.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,Gn)):(c.openBlock(),c.createElementBlock("i",{key:3,class:c.normalizeClass(t.value.name),style:c.normalizeStyle(i.value)},null,6))],6)):(c.openBlock(),c.createBlock(f,{key:1,content:t.value.title,placement:"top"},{default:c.withCtx(()=>[c.createElementVNode("i",{class:c.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[l.name]:e.value==="unocss","show-bg":t.value.showBg||t.value.bg,default:t.value.size==="default",small:t.value.size==="small",big:t.value.size==="big",warning:t.value.warning||t.value.type==="warning",primary:l.primary||t.value.type==="primary",success:l.success||t.value.type==="success",error:t.value.error||t.value.type==="error",active:t.value.active}]),onClick:c.withModifiers(o,["stop"]),style:c.normalizeStyle(i.value)},[e.value==="iksig"?(c.openBlock(),c.createElementBlock("i",{key:0,class:c.normalizeClass(`iksig ${t.value.name}`),style:c.normalizeStyle(i.value)},null,6)):e.value==="svg"?(c.openBlock(),c.createElementBlock("svg",Kn,[c.createElementVNode("use",{"xlink:href":`#${t.value.name}`},null,8,Yn)])):e.value==="img"?(c.openBlock(),c.createElementBlock("img",{key:2,src:t.value.name,class:"h-[1em] w-[1em]"},null,8,Xn)):(c.openBlock(),c.createElementBlock("i",{key:3,class:c.normalizeClass(t.value.name),style:c.normalizeStyle(i.value)},null,6))],6)]),_:1},8,["content"]))])):(c.openBlock(),c.createBlock(h,{key:1,type:["warning","error"].includes(t.value.type)?"danger":"",onClick:c.withModifiers(o,["stop"])},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(t.value.title),1)]),_:1},8,["type"]))}}}),rl="",ye=ce(Me(qn,[["__scopeId","data-v-4a1004b9"]])),Jn={key:0,class:"exit-main-page-maximize"},Zn=c.defineComponent({__name:"CloseIcon",props:{showBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},setup(a){return(s,r)=>(c.openBlock(),c.createElementBlock("div",null,[a.showBg&&a.fullscreen?(c.openBlock(),c.createElementBlock("div",Jn,[c.createVNode(c.unref(ye),{name:"iksvg_guanbidanchuang",title:"关闭",size:20,error:""})])):(c.openBlock(),c.createBlock(c.unref(ye),{key:1,error:"",name:"iksvg_guanbidanchuang",title:"关闭",size:20}))]))}}),sl="",Qn=Me(Zn,[["__scopeId","data-v-79f49df8"]]),er={class:"base-header"},tr=c.defineComponent({__name:"IkBaseDialog",props:c.mergeModels({title:{default:""},cancelText:{default:"取消"},confirmText:{default:"确认"},noHeader:{type:Boolean},noFooter:{type:Boolean},showCloseBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1,noHeader:!1,noFooter:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(a){const s=a,r=c.useModel(a,"modelValue"),t=c.ref(s.fullscreen),e=()=>{t.value=!t.value},i=c.defineComponent({setup(){return()=>c.h(Qn,{showBg:s.showCloseBg,fullscreen:s.fullscreen})}});return(n,o)=>{const l=c.resolveComponent("el-dialog");return c.openBlock(),c.createBlock(l,c.mergeProps({modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=u=>r.value=u)},n.$attrs,{"close-icon":c.unref(i),class:`ik-base-dialog ${n.noHeader?"no-header":""} ${n.noFooter?"no-footer":""}`,fullscreen:t.value,"modal-class":"baseDialog"}),c.createSlots({icon:c.withCtx(()=>[c.renderSlot(n.$slots,"title",{},()=>[c.createTextVNode(c.toDisplayString(n.title),1)])]),header:c.withCtx(()=>[c.createElementVNode("div",er,[c.renderSlot(n.$slots,"header",{},()=>[c.createTextVNode(c.toDisplayString(n.title),1)])]),n.$attrs.showClose?(c.openBlock(),c.createBlock(c.unref(ye),{key:0,onClick:e,name:t.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:t.value?"退出全屏":"全屏"},null,8,["name","title"])):c.createCommentVNode("v-if",!0)]),default:c.withCtx(()=>[c.renderSlot(n.$slots,"default")]),_:2},[n.$slots.footer?{name:"footer",fn:c.withCtx(()=>[c.renderSlot(n.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}),al="",ir=ce(tr),ll="";var nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ct(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function rr(a,s,r,t){function e(i){return i instanceof r?i:new r(function(n){n(i)})}return new(r||(r=Promise))(function(i,n){function o(f){try{u(t.next(f))}catch(h){n(h)}}function l(f){try{u(t.throw(f))}catch(h){n(h)}}function u(f){f.done?i(f.value):e(f.value).then(o,l)}u((t=t.apply(a,s||[])).next())})}function or(a,s){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,e,i,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(u){return function(f){return l([u,f])}}function l(u){if(t)throw new TypeError("Generator is already executing.");for(;n&&(n=0,u[0]&&(r=0)),r;)try{if(t=1,e&&(i=u[0]&2?e.return:u[0]?e.throw||((i=e.return)&&i.call(e),0):e.next)&&!(i=i.call(e,u[1])).done)return i;switch(e=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,e=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1],i=u;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(u);break}i[2]&&r.ops.pop(),r.trys.pop();continue}u=s.call(a,r)}catch(f){u=[6,f],e=0}finally{t=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var sr=function(a,s){return rr(void 0,void 0,void 0,function(){return or(this,function(r){return[2,new Promise(function(t,e){try{if(window.DocsAPI)return t(null);var i=document.getElementById(s);if(i)var n=setInterval(function(){var l=i.getAttribute("loading");if(!l){if(clearInterval(n),window.DocsAPI)return t(null);var u=Gt(s,a,t,e);i.remove(),document.body.appendChild(u)}},500);else{var o=Gt(s,a,t,e);document.body.appendChild(o)}}catch(l){console.error(l)}})]})})},Gt=function(a,s,r,t){var e=document.createElement("script");return e.id=a,e.type="text/javascript",e.src=s,e.async=!0,e.onload=function(){e.removeAttribute("loading"),r(null)},e.onerror=function(i){e.removeAttribute("loading"),t(i)},e.setAttribute("loading",""),e},ft=c.defineComponent({name:"DocumentEditor",props:{id:{type:String,required:!0},documentServerUrl:{type:String,required:!0},config:{type:Object,required:!0},document_fileType:String,document_title:String,documentType:String,editorConfig_lang:String,height:String,type:String,width:String,onLoadComponentError:Function,events_onAppReady:Function,events_onDocumentStateChange:Function,events_onMetaChange:Function,events_onDocumentReady:Function,events_onInfo:Function,events_onWarning:Function,events_onError:Function,events_onRequestSharingSettings:Function,events_onRequestRename:Function,events_onMakeActionLink:Function,events_onRequestInsertImage:Function,events_onRequestSaveAs:Function,events_onRequestMailMergeRecipients:Function,events_onRequestCompareFile:Function,events_onRequestEditRights:Function,events_onRequestHistory:Function,events_onRequestHistoryClose:Function,events_onRequestHistoryData:Function,events_onRequestRestore:Function,events_onRequestSelectSpreadsheet:Function,events_onRequestSelectDocument:Function},mounted:function(){var a=this,s=this.documentServerUrl;s.endsWith("/")||(s+="/");var r="".concat(s,"web-apps/apps/api/documents/api.js");sr(r,"onlyoffice-api-script").then(function(){return a.onLoad()}).catch(function(){a.onError(-2)})},unmounted:function(){var a,s=this.id||"";!((a=window==null?void 0:window.DocEditor)===null||a===void 0)&&a.instances[s]&&(window.DocEditor.instances[s].destroyEditor(),window.DocEditor.instances[s]=void 0)},watch:{config:{handler:function(a,s){this.onChangeProps()},deep:!0},document_fileType:function(a,s){this.onChangeProps()},document_title:function(a,s){this.onChangeProps()},documentType:function(a,s){this.onChangeProps()},editorConfig_lang:function(a,s){this.onChangeProps()},height:function(a,s){this.onChangeProps()},type:function(a,s){this.onChangeProps()},width:function(a,s){this.onChangeProps()}},methods:{onLoad:function(){var a,s;try{var r=this.id||"";if(window.DocsAPI||this.onError(-3),!((a=window==null?void 0:window.DocEditor)===null||a===void 0)&&a.instances[r]){console.log("Skip loading. Instance already exists",r);return}!((s=window==null?void 0:window.DocEditor)===null||s===void 0)&&s.instances||(window.DocEditor={instances:{}});var t=Object.assign({document:{fileType:this.document_fileType,title:this.document_title},documentType:this.documentType,editorConfig:{lang:this.editorConfig_lang},events:{onAppReady:this.onAppReady,onDocumentStateChange:this.events_onDocumentStateChange,onMetaChange:this.events_onMetaChange,onDocumentReady:this.events_onDocumentReady,onInfo:this.events_onInfo,onWarning:this.events_onWarning,onError:this.events_onError,onRequestSharingSettings:this.events_onRequestSharingSettings,onRequestRename:this.events_onRequestRename,onMakeActionLink:this.events_onMakeActionLink,onRequestInsertImage:this.events_onRequestInsertImage,onRequestSaveAs:this.events_onRequestSaveAs,onRequestMailMergeRecipients:this.events_onRequestMailMergeRecipients,onRequestCompareFile:this.events_onRequestCompareFile,onRequestEditRights:this.events_onRequestEditRights,onRequestHistory:this.events_onRequestHistory,onRequestHistoryClose:this.events_onRequestHistoryClose,onRequestHistoryData:this.events_onRequestHistoryData,onRequestRestore:this.events_onRequestRestore,onRequestSelectSpreadsheet:this.events_onRequestSelectSpreadsheet,onRequestSelectDocument:this.events_onRequestSelectDocument},height:this.height,type:this.type,width:this.width},this.config||{}),e=window.DocsAPI.DocEditor(r,t);window.DocEditor.instances[r]=e}catch(i){console.error(i),this.onError(-1)}},onError:function(a){var s;switch(a){case-2:s="Error load DocsAPI from "+this.documentServerUrl;break;case-3:s="DocsAPI is not defined";break;default:s="Unknown error loading component",a=-1}typeof this.onLoadComponentError>"u"?console.error(s):this.onLoadComponentError(a,s)},onAppReady:function(){var a=this.id||"";this.events_onAppReady(window.DocEditor.instances[a])},onChangeProps:function(){var a,s=this.id||"";!((a=window==null?void 0:window.DocEditor)===null||a===void 0)&&a.instances[s]&&(window.DocEditor.instances[s].destroyEditor(),window.DocEditor.instances[s]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const ar=["id"];function lr(a,s,r,t,e,i){return c.openBlock(),c.createElementBlock("div",{id:a.id},null,8,ar)}ft.render=lr,ft.__file="src/components/DocumentEditor.vue";const ur=c.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"}},setup(a){const s=a,r=c.ref({width:"100%",height:"100%",...s.configOptions||{},...s.configOptions}),t=()=>{console.info("文档加载完成",s.configOptions)};return(e,i)=>(c.openBlock(),c.createElementBlock("div",{style:c.normalizeStyle({height:s.officeHeight})},[c.createVNode(c.unref(ft),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":a.documentServerUrl,config:r.value,events_onDocumentReady:t},null,8,["id","document-server-url","config"])],4))}}),ul="",cr=ce(Me(ur,[["__scopeId","data-v-98d51ef9"]]));function Kt(a,s){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(a);s&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})),r.push.apply(r,t)}return r}function U(a){for(var s=1;s<arguments.length;s++){var r=arguments[s]!=null?arguments[s]:{};s%2?Kt(Object(r),!0).forEach(function(t){k(a,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):Kt(Object(r)).forEach(function(t){Object.defineProperty(a,t,Object.getOwnPropertyDescriptor(r,t))})}return a}function G(a){"@babel/helpers - typeof";return G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},G(a)}function T(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function Yt(a,s){for(var r=0;r<s.length;r++){var t=s[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,Xt(t.key),t)}}function S(a,s,r){return s&&Yt(a.prototype,s),r&&Yt(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}function k(a,s,r){return s=Xt(s),s in a?Object.defineProperty(a,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[s]=r,a}function I(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),s&&ht(a,s)}function A(a){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},A(a)}function ht(a,s){return ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ht(a,s)}function fr(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function dt(a,s){if(s&&(typeof s=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(a)}function P(a){var s=fr();return function(){var t=A(a),e;if(s){var i=A(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return dt(this,e)}}function hr(a,s){for(;!Object.prototype.hasOwnProperty.call(a,s)&&(a=A(a),a!==null););return a}function L(){return typeof Reflect<"u"&&Reflect.get?L=Reflect.get.bind():L=function(s,r,t){var e=hr(s,r);if(e){var i=Object.getOwnPropertyDescriptor(e,r);return i.get?i.get.call(arguments.length<3?s:t):i.value}},L.apply(this,arguments)}function Q(a){return dr(a)||gr(a)||pr(a)||vr()}function dr(a){if(Array.isArray(a))return gt(a)}function gr(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function pr(a,s){if(a){if(typeof a=="string")return gt(a,s);var r=Object.prototype.toString.call(a).slice(8,-1);if(r==="Object"&&a.constructor&&(r=a.constructor.name),r==="Map"||r==="Set")return Array.from(a);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gt(a,s)}}function gt(a,s){(s==null||s>a.length)&&(s=a.length);for(var r=0,t=new Array(s);r<s;r++)t[r]=a[r];return t}function vr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mr(a,s){if(typeof a!="object"||a===null)return a;var r=a[Symbol.toPrimitive];if(r!==void 0){var t=r.call(a,s||"default");if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(a)}function Xt(a){var s=mr(a,"string");return typeof s=="symbol"?s:String(s)}var qt={exports:{}};(function(a){var s=Object.prototype.hasOwnProperty,r="~";function t(){}Object.create&&(t.prototype=Object.create(null),new t().__proto__||(r=!1));function e(l,u,f){this.fn=l,this.context=u,this.once=f||!1}function i(l,u,f,h,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var v=new e(f,h||l,p),g=r?r+u:u;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],v]:l._events[g].push(v):(l._events[g]=v,l._eventsCount++),l}function n(l,u){--l._eventsCount===0?l._events=new t:delete l._events[u]}function o(){this._events=new t,this._eventsCount=0}o.prototype.eventNames=function(){var u=[],f,h;if(this._eventsCount===0)return u;for(h in f=this._events)s.call(f,h)&&u.push(r?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},o.prototype.listeners=function(u){var f=r?r+u:u,h=this._events[f];if(!h)return[];if(h.fn)return[h.fn];for(var p=0,v=h.length,g=new Array(v);p<v;p++)g[p]=h[p].fn;return g},o.prototype.listenerCount=function(u){var f=r?r+u:u,h=this._events[f];return h?h.fn?1:h.length:0},o.prototype.emit=function(u,f,h,p,v,g){var m=r?r+u:u;if(!this._events[m])return!1;var _=this._events[m],C=arguments.length,b,E;if(_.fn){switch(_.once&&this.removeListener(u,_.fn,void 0,!0),C){case 1:return _.fn.call(_.context),!0;case 2:return _.fn.call(_.context,f),!0;case 3:return _.fn.call(_.context,f,h),!0;case 4:return _.fn.call(_.context,f,h,p),!0;case 5:return _.fn.call(_.context,f,h,p,v),!0;case 6:return _.fn.call(_.context,f,h,p,v,g),!0}for(E=1,b=new Array(C-1);E<C;E++)b[E-1]=arguments[E];_.fn.apply(_.context,b)}else{var N=_.length,R;for(E=0;E<N;E++)switch(_[E].once&&this.removeListener(u,_[E].fn,void 0,!0),C){case 1:_[E].fn.call(_[E].context);break;case 2:_[E].fn.call(_[E].context,f);break;case 3:_[E].fn.call(_[E].context,f,h);break;case 4:_[E].fn.call(_[E].context,f,h,p);break;default:if(!b)for(R=1,b=new Array(C-1);R<C;R++)b[R-1]=arguments[R];_[E].fn.apply(_[E].context,b)}}return!0},o.prototype.on=function(u,f,h){return i(this,u,f,h,!1)},o.prototype.once=function(u,f,h){return i(this,u,f,h,!0)},o.prototype.removeListener=function(u,f,h,p){var v=r?r+u:u;if(!this._events[v])return this;if(!f)return n(this,v),this;var g=this._events[v];if(g.fn)g.fn===f&&(!p||g.once)&&(!h||g.context===h)&&n(this,v);else{for(var m=0,_=[],C=g.length;m<C;m++)(g[m].fn!==f||p&&!g[m].once||h&&g[m].context!==h)&&_.push(g[m]);_.length?this._events[v]=_.length===1?_[0]:_:n(this,v)}return this},o.prototype.removeAllListeners=function(u){var f;return u?(f=r?r+u:u,this._events[f]&&n(this,f)):(this._events=new t,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=r,o.EventEmitter=o,a.exports=o})(qt);var Jt=qt.exports;const Zt=ct(Jt);var yr=typeof window<"u"&&window.location&&window.location.href.indexOf("xgplayerdebugger=1")>-1,pt={info:"color: #525252; background-color: #90ee90;",error:"color: #525252; background-color: red;",warn:"color: #525252; background-color: yellow; "},vt="%c[xgplayer]",F={config:{debug:yr?3:0},logInfo:function(s){for(var r,t=arguments.length,e=new Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];this.config.debug>=3&&(r=console).log.apply(r,[vt,pt.info,s].concat(e))},logWarn:function(s){for(var r,t=arguments.length,e=new Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];this.config.debug>=1&&(r=console).warn.apply(r,[vt,pt.warn,s].concat(e))},logError:function(s){var r;if(!(this.config.debug<1)){for(var t=this.config.debug>=2?"trace":"error",e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];(r=console)[t].apply(r,[vt,pt.error,s].concat(i))}}};function _r(a){a.logInfo=F.logInfo.bind(a),a.logWarn=F.logWarn.bind(a),a.logError=F.logError.bind(a)}var kr=function(){function a(s){T(this,a),this.bufferedList=s}return S(a,[{key:"start",value:function(r){return this.bufferedList[r].start}},{key:"end",value:function(r){return this.bufferedList[r].end}},{key:"length",get:function(){return this.bufferedList.length}}]),a}(),d={};d.createDom=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",e=document.createElement(a);return e.className=t,e.innerHTML=s,Object.keys(r).forEach(function(i){var n=i,o=r[i];a==="video"||a==="audio"||a==="live-video"?o&&e.setAttribute(n,o):e.setAttribute(n,o)}),e},d.createDomFromHtml=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";try{var t=document.createElement("div");t.innerHTML=a;var e=t.children;return t=null,e.length>0?(e=e[0],r&&d.addClass(e,r),s&&Object.keys(s).forEach(function(i){e.setAttribute(i,s[i])}),e):null}catch(i){return F.logError("util.createDomFromHtml",i),null}},d.hasClass=function(a,s){if(!a||!s)return!1;try{return Array.prototype.some.call(a.classList,function(t){return t===s})}catch{var r=a.className&&G(a.className)==="object"?a.getAttribute("class"):a.className;return r&&!!r.match(new RegExp("(\\s|^)"+s+"(\\s|$)"))}},d.addClass=function(a,s){if(!(!a||!s))try{s.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(r){r&&a.classList.add(r)})}catch{d.hasClass(a,s)||(a.className&&G(a.className)==="object"?a.setAttribute("class",a.getAttribute("class")+" "+s):a.className+=" "+s)}},d.removeClass=function(a,s){if(!(!a||!s))try{s.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(r){r&&a.classList.remove(r)})}catch{d.hasClass(a,s)&&s.split(/\s+/g).forEach(function(t){var e=new RegExp("(\\s|^)"+t+"(\\s|$)");a.className&&G(a.className)==="object"?a.setAttribute("class",a.getAttribute("class").replace(e," ")):a.className=a.className.replace(e," ")})}},d.toggleClass=function(a,s){a&&s.split(/\s+/g).forEach(function(r){d.hasClass(a,r)?d.removeClass(a,r):d.addClass(a,r)})},d.classNames=function(){for(var a=arguments,s=[],r=function(i){d.typeOf(a[i])==="String"?s.push(a[i]):d.typeOf(a[i])==="Object"&&Object.keys(a[i]).map(function(n){a[i][n]&&s.push(n)})},t=0;t<arguments.length;t++)r(t);return s.join(" ")},d.findDom=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,s=arguments.length>1?arguments[1]:void 0,r;try{r=a.querySelector(s)}catch(t){F.logError("util.findDom",t),s.indexOf("#")===0&&(r=a.getElementById(s.slice(1)))}return r},d.getCss=function(a,s){return a.currentStyle?a.currentStyle[s]:document.defaultView.getComputedStyle(a,!1)[s]},d.padStart=function(a,s,r){for(var t=String(r),e=s>>0,i=Math.ceil(e/t.length),n=[],o=String(a);i--;)n.push(t);return n.join("").substring(0,e-o.length)+o},d.format=function(a){if(window.isNaN(a))return"";a=Math.round(a);var s=d.padStart(Math.floor(a/3600),2,0),r=d.padStart(Math.floor((a-s*3600)/60),2,0),t=d.padStart(Math.floor(a-s*3600-r*60),2,0);return(s==="00"?[r,t]:[s,r,t]).join(":")},d.event=function(a){if(a.touches){var s=a.touches[0]||a.changedTouches[0];a.clientX=s.clientX||0,a.clientY=s.clientY||0,a.offsetX=s.pageX-s.target.offsetLeft,a.offsetY=s.pageY-s.target.offsetTop}a._target=a.target||a.srcElement},d.typeOf=function(a){return Object.prototype.toString.call(a).match(/([^\s.*]+)(?=]$)/g)[0]},d.deepCopy=function(a,s){if(d.typeOf(s)==="Object"&&d.typeOf(a)==="Object")return Object.keys(s).forEach(function(r){d.typeOf(s[r])==="Object"&&!(s[r]instanceof Node)?a[r]===void 0||a[r]===void 0?a[r]=s[r]:d.deepCopy(a[r],s[r]):d.typeOf(s[r])==="Array"?a[r]=d.typeOf(a[r])==="Array"?a[r].concat(s[r]):s[r]:a[r]=s[r]}),a},d.deepMerge=function(a,s){return Object.keys(s).map(function(r){if(d.typeOf(s[r])==="Array"&&d.typeOf(a[r])==="Array"){if(d.typeOf(a[r])==="Array"){var t;(t=a[r]).push.apply(t,Q(s[r]))}}else d.typeOf(a[r])===d.typeOf(s[r])&&a[r]!==null&&d.typeOf(a[r])==="Object"&&!(s[r]instanceof window.Node)?d.deepMerge(a[r],s[r]):s[r]!==null&&(a[r]=s[r])}),a},d.getBgImage=function(a){var s=(a.currentStyle||window.getComputedStyle(a,null)).backgroundImage;if(!s||s==="none")return"";var r=document.createElement("a");return r.href=s.replace(/url\("|"\)/g,""),r.href},d.copyDom=function(a){if(a&&a.nodeType===1){var s=document.createElement(a.tagName);return Array.prototype.forEach.call(a.attributes,function(r){s.setAttribute(r.name,r.value)}),a.innerHTML&&(s.innerHTML=a.innerHTML),s}else return""},d.setInterval=function(a,s,r,t){a._interval[s]||(a._interval[s]=window.setInterval(r.bind(a),t))},d.clearInterval=function(a,s){clearInterval(a._interval[s]),a._interval[s]=null},d.setTimeout=function(a,s,r){a._timers||(a._timers=[]);var t=setTimeout(function(){s(),d.clearTimeout(a,t)},r);return a._timers.push(t),t},d.clearTimeout=function(a,s){var r=a._timers;if(d.typeOf(r)==="Array"){for(var t=0;t<r.length;t++)if(r[t]===s){r.splice(t,1),clearTimeout(s);break}}else clearTimeout(s)},d.clearAllTimers=function(a){var s=a._timers;d.typeOf(s)==="Array"&&(s.map(function(r){clearTimeout(r)}),a._timerIds=[])},d.createImgBtn=function(a,s,r,t){var e=d.createDom("xg-".concat(a),"",{},"xgplayer-".concat(a,"-img"));if(e.style.backgroundImage='url("'.concat(s,'")'),r&&t){var i,n,o;["px","rem","em","pt","dp","vw","vh","vm","%"].every(function(l){return r.indexOf(l)>-1&&t.indexOf(l)>-1?(i=parseFloat(r.slice(0,r.indexOf(l)).trim()),n=parseFloat(t.slice(0,t.indexOf(l)).trim()),o=l,!1):!0}),e.style.width="".concat(i).concat(o),e.style.height="".concat(n).concat(o),e.style.backgroundSize="".concat(i).concat(o," ").concat(n).concat(o),a==="start"?e.style.margin="-".concat(n/2).concat(o," auto auto -").concat(i/2).concat(o):e.style.margin="auto 5px auto 5px"}return e},d.Hex2RGBA=function(a,s){var r=[];if(/^\#[0-9A-F]{3}$/i.test(a)){var t="#";a.replace(/[0-9A-F]/ig,function(e){t+=e+e}),a=t}return/^#[0-9A-F]{6}$/i.test(a)?(a.replace(/[0-9A-F]{2}/ig,function(e){r.push(parseInt(e,16))}),"rgba(".concat(r.join(","),", ").concat(s,")")):"rgba(255, 255, 255, 0.1)"},d.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},d.checkIsFunction=function(a){return a&&typeof a=="function"},d.checkIsObject=function(a){return a!==null&&G(a)==="object"},d.hide=function(a){a.style.display="none"},d.show=function(a,s){a.style.display=s||"block"},d.isUndefined=function(a){if(typeof a>"u"||a===null)return!0},d.isNotNull=function(a){return a!=null},d.setStyleFromCsstext=function(a,s){if(s)if(d.typeOf(s)==="String"){var r=s.replace(/\s+/g,"").split(";");r.map(function(t){if(t){var e=t.split(":");e.length>1&&(a.style[e[0]]=e[1])}})}else Object.keys(s).map(function(t){a.style[t]=s[t]})};function Cr(a,s){for(var r=0,t=s.length;r<t;r++)if(a.indexOf(s[r])>-1)return!0;return!1}d.filterStyleFromText=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],r=a.style.cssText;if(!r)return{};var t=r.replace(/\s+/g,"").split(";"),e={},i={};return t.map(function(n){if(n){var o=n.split(":");o.length>1&&(Cr(o[0],s)?e[o[0]]=o[1]:i[o[0]]=o[1])}}),a.setAttribute("style",""),Object.keys(i).map(function(n){a.style[n]=i[n]}),e},d.getStyleFromCsstext=function(a){var s=a.style.cssText;if(!s)return{};var r=s.replace(/\s+/g,"").split(";"),t={};return r.map(function(e){if(e){var i=e.split(":");i.length>1&&(t[i[0]]=i[1])}}),t},d.preloadImg=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};if(a){var t=new window.Image;t.onload=function(e){t=null,s&&s(e)},t.onerror=function(e){t=null,r&&r(e)},t.src=a}},d.stopPropagation=function(a){a&&a.stopPropagation()},d.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},d.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},d.checkTouchSupport=function(){return"ontouchstart"in window},d.getBuffered2=function(a){for(var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5,r=[],t=0;t<a.length;t++)r.push({start:a.start(t)<.5?0:a.start(t),end:a.end(t)});r.sort(function(l,u){var f=l.start-u.start;return f||u.end-l.end});var e=[];if(s)for(var i=0;i<r.length;i++){var n=e.length;if(n){var o=e[n-1].end;r[i].start-o<s?r[i].end>o&&(e[n-1].end=r[i].end):e.push(r[i])}else e.push(r[i])}else e=r;return new kr(e)},d.getEventPos=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return a.touches&&a.touches.length>0&&(a=a.touches[0]),{x:a.x/s,y:a.y/s,clientX:a.clientX/s,clientY:a.clientY/s,offsetX:a.offsetX/s,offsetY:a.offsetY/s,pageX:a.pageX/s,pageY:a.pageY/s}},d.requestAnimationFrame=function(a){var s=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(s)return s(a)},d.getHostFromUrl=function(a){if(d.typeOf(a)!=="String")return"";var s=a.split("/"),r="";return s.length>3&&s[2]&&(r=s[2]),r},d.cancelAnimationFrame=function(a){var s=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;s&&s(a)},d.isMSE=function(a){return a.media&&(a=a.media),!a||!(a instanceof HTMLMediaElement)?!1:/^blob/.test(a.currentSrc)||/^blob/.test(a.src)},d.isBlob=function(a){return typeof a=="string"&&/^blob/.test(a)},d.generateSessionId=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,s=new Date().getTime();try{a=parseInt(a)}catch{a=0}s+=a,window.performance&&typeof window.performance.now=="function"&&(s+=parseInt(window.performance.now()));var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(s+Math.random()*16)%16|0;return s=Math.floor(s/16),(t==="x"?e:e&3|8).toString(16)});return r},d.createEvent=function(a){var s;return typeof window.Event=="function"?s=new Event(a):(s=document.createEvent("Event"),s.initEvent(a,!0,!0)),s},d.adjustTimeByDuration=function(a,s,r){return!s||!a?a:a>s||r&&a<s?s:a},d.createPositionBar=function(a,s){var r=d.createDom("xg-bar","",{"data-index":-1},a);return s.appendChild(r),r},d.getTransformStyle=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{x:0,y:0,scale:1,rotate:0},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r={scale:"".concat(a.scale||1),translate:"".concat(a.x||0,"%, ").concat(a.y||0,"%"),rotate:"".concat(a.rotate||0,"deg")},t=Object.keys(r);return t.forEach(function(e){var i=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),n="".concat(e,"(").concat(r[e],")");i.test(s)?(i.lastIndex=-1,s=s.replace(i,n)):s+="".concat(n," ")}),s},d.convertDeg=function(a){return Math.abs(a)<=1?a*360:a%360},d.getIndexByTime=function(a,s){var r=s.length,t=-1;if(r<1)return t;if(a<=s[0].end||r<2)t=0;else if(a>s[r-1].end)t=r-1;else for(var e=1;e<r;e++)if(a>s[e-1].end&&a<=s[e].end){t=e;break}return t},d.getOffsetCurrentTime=function(a,s){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1,t=-1;if(r>=0&&r<s.length?t=r:t=d.getIndexByTime(a,s),t<0)return-1;var e=s.length,i=s[t],n=i.start,o=i.end,l=i.cTime,u=i.offset;return a<n?l:a>=n&&a<=o?a-u:a>o&&t>=e-1?o:-1},d.getCurrentTimeByOffset=function(a,s){var r=-1;if(!s||s.length<0)return a;for(var t=0;t<s.length;t++)if(a<=s[t].duration){r=t;break}if(r!==-1){var e=s[r].start;return r-1<0?e+a:e+(a-s[r-1].duration)}return a};function Qt(a){var s=G(a);return a!==null&&(s==="object"||s==="function")}function Er(a,s,r){var t,e,i,n,o,l,u=0,f=!1,h=!1,p=!0,v=!s&&s!==0&&typeof window.requestAnimationFrame=="function";if(typeof a!="function")throw new TypeError("Expected a function");s=+s||0,Qt(r)&&(f=!!r.leading,h="maxWait"in r,i=h?Math.max(+r.maxWait||0,s):i,p="trailing"in r?!!r.trailing:p);function g(x){var $=t,Z=e;return t=e=void 0,u=x,n=a.apply(Z,$),n}function m(x,$){return v?(window.cancelAnimationFrame(o),window.requestAnimationFrame(x)):setTimeout(x,$)}function _(x){if(v)return window.cancelAnimationFrame(x);clearTimeout(x)}function C(x){return u=x,o=m(N,s),f?g(x):n}function b(x){var $=x-l,Z=x-u,te=s-$;return h?Math.min(te,i-Z):te}function E(x){var $=x-l,Z=x-u;return l===void 0||$>=s||$<0||h&&Z>=i}function N(){var x=Date.now();if(E(x))return R(x);o=m(N,b(x))}function R(x){return o=void 0,p&&t?g(x):(t=e=void 0,n)}function H(){o!==void 0&&_(o),u=0,t=l=e=o=void 0}function D(){return o===void 0?n:R(Date.now())}function j(){return o!==void 0}function z(){for(var x=Date.now(),$=E(x),Z=arguments.length,te=new Array(Z),Te=0;Te<Z;Te++)te[Te]=arguments[Te];if(t=te,e=this,l=x,$){if(o===void 0)return C(l);if(h)return o=m(N,s),g(l)}return o===void 0&&(o=m(N,s)),n}return z.cancel=H,z.flush=D,z.pending=j,z}function wr(a,s,r){var t=!0,e=!0;if(typeof a!="function")throw new TypeError("Expected a function");return Qt(r)&&(t="leading"in r?!!r.leading:t,e="trailing"in r?!!r.trailing:e),Er(a,s,{leading:t,trailing:e,maxWait:s})}function br(){var a=(document.documentElement.getAttribute("lang")||navigator.language||"zh-cn").toLocaleLowerCase();return a==="zh-cn"&&(a="zh"),a}function Tr(a,s,r){if(a){var t=a.getAttribute(r);return!!(t&&t===s&&(a.tagName==="VIDEO"||a.tagName==="AUDIO"))}}var ei={android:/(Android)\s([\d.]+)/,ios:/(Version)\/([\d.]+)/},Sr=["avc1.42E01E, mp4a.40.2","avc1.58A01E, mp4a.40.2","avc1.4D401E, mp4a.40.2","avc1.64001E, mp4a.40.2","avc1.42E01E","mp4v.20.8","avc1.42E01E, mp4a.40.2","avc1.58A01E, mp4a.40.2","avc1.4D401E, mp4a.40.2","avc1.64001E, mp4a.40.2","mp4v.20.8, mp4a.40.2","mp4v.20.240, mp4a.40.2"],O={get device(){var a=O.os;return a.isPc?"pc":"mobile"},get browser(){if(typeof navigator>"u")return"";var a=navigator.userAgent.toLowerCase(),s={ie:/rv:([\d.]+)\) like gecko/,firefox:/firefox\/([\d.]+)/,chrome:/chrome\/([\d.]+)/,opera:/opera.([\d.]+)/,safari:/version\/([\d.]+).*safari/};return[].concat(Object.keys(s).filter(function(r){return s[r].test(a)}))[0]},get os(){if(typeof navigator>"u")return{};var a=navigator.userAgent,s=/(?:Windows Phone)/.test(a),r=/(?:SymbianOS)/.test(a)||s,t=/(?:Android)/.test(a),e=/(?:Firefox)/.test(a),i=/(?:iPad|PlayBook)/.test(a)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,n=i||t&&!/(?:Mobile)/.test(a)||e&&/(?:Tablet)/.test(a),o=/(?:iPhone)/.test(a)&&!n,l=!o&&!t&&!r&&!n;return{isTablet:n,isPhone:o,isIpad:i,isIos:o||i,isAndroid:t,isPc:l,isSymbian:r,isWindowsPhone:s,isFireFox:e}},get osVersion(){if(typeof navigator>"u")return 0;var a=navigator.userAgent,s="";/(?:iPhone)|(?:iPad|PlayBook)/.test(a)?s=ei.ios:s=ei.android;var r=s?s.exec(a):[];if(r&&r.length>=3){var t=r[2].split(".");return t.length>0?parseInt(t[0]):0}return 0},get isWeixin(){if(typeof navigator>"u")return!1;var a=/(micromessenger)\/([\d.]+)/,s=a.exec(navigator.userAgent.toLocaleLowerCase());return!!s},isSupportMP4:function(){var s={isSupport:!1,mime:""};if(typeof document>"u")return s;if(this.supportResult)return this.supportResult;var r=document.createElement("video");return typeof r.canPlayType=="function"&&Sr.map(function(t){r.canPlayType('video/mp4; codecs="'.concat(t,'"'))==="probably"&&(s.isSupport=!0,s.mime+="||".concat(t))}),this.supportResult=s,r=null,s},isMSESupport:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:'video/mp4; codecs="avc1.42E01E,mp4a.40.2"';if(typeof MediaSource>"u"||!MediaSource)return!1;try{return MediaSource.isTypeSupported(s)}catch(r){return this._logger.error(s,r),!1}},isHevcSupported:function(){return typeof MediaSource>"u"||!MediaSource.isTypeSupported?!1:MediaSource.isTypeSupported('video/mp4;codecs="hev1.1.6.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.2.4.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.3.E.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.4.10.L120.90"')},probeConfigSupported:function(s){var r={supported:!1,smooth:!1,powerEfficient:!1};if(!s||typeof navigator>"u")return Promise.resolve(r);if(navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo)return navigator.mediaCapabilities.decodingInfo(s);var t=s.video||{},e=s.audio||{};try{var i=MediaSource.isTypeSupported(t.contentType),n=MediaSource.isTypeSupported(e.contentType);return Promise.resolve({supported:i&&n,smooth:!1,powerEfficient:!1})}catch{return Promise.resolve(r)}}},mt="3.0.18",ti={1:"media",2:"media",3:"media",4:"media",5:"media",6:"media"},ii={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},je=S(function a(s){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};T(this,a);var t=s&&s.i18n?s.i18n.ERROR_TYPES:null;if(s.media){var e=r.mediaError?r.mediaError:s.media.error||{},i=s.duration,n=s.currentTime,o=s.ended,l=s.src,u=s.currentSrc,f=s.media,h=f.readyState,p=f.networkState,v=r.errorCode||e.code;ii[v]&&(v=ii[v]);var g={playerVersion:mt,currentTime:n,duration:i,ended:o,readyState:h,networkState:p,src:l||u,errorType:r.errorType,errorCode:v,message:r.errorMessage||e.message,mediaError:e,originError:r.originError?r.originError.stack:"",host:d.getHostFromUrl(l||u)};return r.ext&&Object.keys(r.ext).map(function(b){g[b]=r.ext[b]}),g}else if(arguments.length>1){for(var m={playerVersion:mt,domain:document.domain},_=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],C=0;C<arguments.length;C++)m[_[C]]=arguments[C];return m.ex=t?(t[arguments[0]]||{}).msg:"",m}}),X="play",yt="playing",_e="ended",Ie="pause",Be="error",$e="seeking",oe="seeked",q="timeupdate",He="waiting",se="canplay",xr="canplaythrough",fe="durationchange",ni="volumechange",ae="loadeddata",Ir="loadedmetadata",ri="ratechange",oi="progress",_t="loadstart",ke="emptied",Pr="stalled",Ar="suspend",Lr="abort",Dr="bufferedChange",kt="focus",si="blur",Ct="ready",ai="urlNull",Ce="autoplay_started",Et="autoplay_was_prevented",We="complete",Ge="replay",wt="destroy",Ke="urlchange",bt="download_speed_change",li="leaveplayer",ui="enterplayer",ci="loading",le="fullscreen_change",Ye="cssFullscreen_change",Xe="mini_state_change",Tt="definition_change",Or="before_definition_change",St="after_definition_change",Rr="SEI_PARSED",Nr="retry",he="video_resize",xt="pip_change",fi="rotate",hi="screenShot",qe="playnext",di="shortcut",gi="xglog",Je="user_action",Ze="reset",pi="source_error",vi="source_success",Fr="switch_subtitle",mi=["play","playing","ended","pause","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","volumechange","loadeddata","loadedmetadata","ratechange","progress","loadstart","emptied","stalled","suspend","abort","lowdecode"],yi={STATS_INFO:"stats_info",STATS_DOWNLOAD:"stats_download",STATS_RESET:"stats_reset"},_i="fps_stuck";const Mr=Object.freeze(Object.defineProperty({__proto__:null,ABORT:Lr,AFTER_DEFINITION_CHANGE:St,AUTOPLAY_PREVENTED:Et,AUTOPLAY_STARTED:Ce,BEFORE_DEFINITION_CHANGE:Or,BUFFER_CHANGE:Dr,CANPLAY:se,CANPLAY_THROUGH:xr,COMPLETE:We,CSS_FULLSCREEN_CHANGE:Ye,DEFINITION_CHANGE:Tt,DESTROY:wt,DOWNLOAD_SPEED_CHANGE:bt,DURATION_CHANGE:fe,EMPTIED:ke,ENDED:_e,ENTER_PLAYER:ui,ERROR:Be,FPS_STUCK:_i,FULLSCREEN_CHANGE:le,LEAVE_PLAYER:li,LOADED_DATA:ae,LOADED_METADATA:Ir,LOADING:ci,LOAD_START:_t,MINI_STATE_CHANGE:Xe,PAUSE:Ie,PIP_CHANGE:xt,PLAY:X,PLAYER_BLUR:si,PLAYER_FOCUS:kt,PLAYING:yt,PLAYNEXT:qe,PROGRESS:oi,RATE_CHANGE:ri,READY:Ct,REPLAY:Ge,RESET:Ze,RETRY:Nr,ROTATE:fi,SCREEN_SHOT:hi,SEEKED:oe,SEEKING:$e,SEI_PARSED:Rr,SHORTCUT:di,SOURCE_ERROR:pi,SOURCE_SUCCESS:vi,STALLED:Pr,STATS_EVENTS:yi,SUSPEND:Ar,SWITCH_SUBTITLE:Fr,TIME_UPDATE:q,URL_CHANGE:Ke,URL_NULL:ai,USER_ACTION:Je,VIDEO_EVENTS:mi,VIDEO_RESIZE:he,VOLUME_CHANGE:ni,WAITING:He,XGLOG:gi},Symbol.toStringTag,{value:"Module"}));function It(a,s){!this||!this.emit||(a==="error"?this.errorHandler(a,s.error):this.emit(a,s))}function Br(a,s){return function(r,t){var e={player:s,eventName:a,originalEvent:r,detail:r.detail||{},timeStamp:r.timeStamp,currentTime:s.currentTime,duration:s.duration,paused:s.paused,ended:s.ended,isInternalOp:!!s._internalOp[r.type],muted:s.muted,volume:s.volume,host:d.getHostFromUrl(s.currentSrc),vtype:s.vtype};if(s.removeInnerOP(r.type),a==="timeupdate"&&(s._currentTime=s.media&&s.media.currentTime),a==="ratechange"){var i=s.media?s.media.playbackRate:0;if(i&&s._rate===i)return;s._rate=s.media&&s.media.playbackRate}if(a==="durationchange"&&(s._duration=s.media.duration),a==="volumechange"&&(e.isMutedChange=s._lastMuted!==s.muted,s._lastMuted=s.muted),a==="error"&&(e.error=t||s.video.error),s.mediaEventMiddleware[a]){var n=It.bind(s,a,e);try{s.mediaEventMiddleware[a].call(s,e,n)}catch(o){throw It.call(s,a,e),o}}else It.call(s,a,e)}}var Hr=function(a){I(r,a);var s=P(r);function r(t){var e;T(this,r),e=s.call(this,t),e._hasStart=!1,e._currentTime=0,e._duration=0,e._internalOp={},e._lastMuted=!1,e.vtype="MP4",e._rate=-1,e.mediaConfig=Object.assign({},{controls:!1,autoplay:t.autoplay,playsinline:t.playsinline,"x5-playsinline":t.playsinline,"webkit-playsinline":t.playsinline,"x5-video-player-fullscreen":t["x5-video-player-fullscreen"]||t.x5VideoPlayerFullscreen,"x5-video-orientation":t["x5-video-orientation"]||t.x5VideoOrientation,airplay:t.airplay,"webkit-airplay":t.airplay,tabindex:t.tabindex|0,mediaType:t.mediaType||"video","data-index":-1},t.videoConfig,t.videoAttributes);var i=t["x5-video-player-type"]||t.x5VideoPlayerType;return O.isWeixin&&O.os.isAndroid&&i&&(e.mediaConfig["x5-video-player-type"]=i,delete e.mediaConfig.playsinline,delete e.mediaConfig["webkit-playsinline"],delete e.mediaConfig["x5-playsinline"]),t.loop&&(e.mediaConfig.loop="loop"),t.autoplayMuted&&!Object.prototype.hasOwnProperty.call(e.mediaConfig,"muted")&&(e.mediaConfig.muted=!0),e.media=d.createDom(e.mediaConfig.mediaType,"",e.mediaConfig,""),t.defaultPlaybackRate&&(e.media.defaultPlaybackRate=e.media.playbackRate=t.defaultPlaybackRate),d.typeOf(t.volume)==="Number"&&(e.volume=t.volume),t.autoplayMuted&&(e.media.muted=!0,e._lastMuted=!0),t.autoplay&&(e.media.autoplay=!0),e._interval={},e.mediaEventMiddleware={},e.attachVideoEvents(),e}return S(r,[{key:"setEventsMiddleware",value:function(e){var i=this;Object.keys(e).map(function(n){i.mediaEventMiddleware[n]=e[n]})}},{key:"removeEventsMiddleware",value:function(e){var i=this;Object.keys(e).map(function(n){delete i.mediaEventMiddleware[n]})}},{key:"attachVideoEvents",value:function(){var e=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.media;this._evHandlers||(this._evHandlers=mi.map(function(n){var o="on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));return typeof e[o]=="function"&&e.on(n,e[o]),k({},n,Br(n,e))})),this._evHandlers.forEach(function(n){var o=Object.keys(n)[0];i.addEventListener(o,n[o],!1)})}},{key:"detachVideoEvents",value:function(){var e=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.media;this._evHandlers.forEach(function(n){var o=Object.keys(n)[0];i.removeEventListener(o,n[o],!1)}),this._evHandlers.forEach(function(n){var o=Object.keys(n)[0],l="on".concat(o.charAt(0).toUpperCase()).concat(o.slice(1));typeof e[l]=="function"&&e.off(o,e[l])}),this._evHandlers=null}},{key:"_attachSourceEvents",value:function(e,i){var n=this;e.removeAttribute("src"),e.load(),i.forEach(function(h,p){n.media.appendChild(d.createDom("source","",{src:"".concat(h.src),type:"".concat(h.type||""),"data-index":p+1}))});var o=e.children;if(o){this._videoSourceCount=o.length,this._videoSourceIndex=o.length,this._vLoadeddata=function(h){n.emit(vi,{src:h.target.currentSrc,host:d.getHostFromUrl(h.target.currentSrc)})};for(var l=null,u=0;u<this._evHandlers.length;u++)if(Object.keys(this._evHandlers[u])[0]==="error"){l=this._evHandlers[u];break}!this._sourceError&&(this._sourceError=function(h){var p=parseInt(h.target.getAttribute("data-index"),10);if(n._videoSourceIndex--,n._videoSourceIndex===0||p>=n._videoSourceCount){var v={code:4,message:"sources_load_error"};l?l.error(h,v):n.errorHandler("error",v)}var g=ti[4];n.emit(pi,new je(n,{errorType:g,errorCode:4,errorMessage:"sources_load_error",mediaError:{code:4,message:"sources_load_error"},src:h.target.src}))});for(var f=0;f<o.length;f++)o[f].addEventListener("error",this._sourceError);e.addEventListener("loadeddata",this._vLoadeddata)}}},{key:"_detachSourceEvents",value:function(e){var i=e.children;if(!(!i||i.length===0||!this._sourceError)){for(var n=0;n<i.length;n++)i[n].removeEventListener("error",this._sourceError);for(;i.length>0;)e.removeChild(i[0]);this._vLoadeddata&&e.removeEventListener("loadeddata",this._vLoadeddata)}}},{key:"errorHandler",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.media&&(this.media.error||i)){var n=this.media.error||i,o=n.code?ti[n.code]:"other",l=n.message;this.media.currentSrc||(l="empty_src",n={code:6,message:l}),this.emit(e,new je(this,{errorType:o,errorCode:n.code,errorMessage:n.message||"",mediaError:n}))}}},{key:"destroy",value:function(){this.media&&(this.media.pause&&(this.media.pause(),this.media.muted=!0),this.media.removeAttribute("src"),this.media.load()),this._currentTime=0,this._duration=0,this.mediaConfig=null;for(var e in this._interval)Object.prototype.hasOwnProperty.call(this._interval,e)&&(clearInterval(this._interval[e]),this._interval[e]=null);this.detachVideoEvents(),this.media=null,this.mediaEventMiddleware={},this.removeAllListeners()}},{key:"video",get:function(){return this.media},set:function(e){this.media=e}},{key:"play",value:function(){var e=this.media?this.media.play():null;return e}},{key:"pause",value:function(){this.media&&this.media.pause()}},{key:"load",value:function(){this.media&&this.media.load()}},{key:"canPlayType",value:function(e){return this.media?this.media.canPlayType(e):!1}},{key:"getBufferedRange",value:function(e){var i=[0,0];if(!this.media)return i;e||(e=this.media.buffered);var n=this.media.currentTime;if(e)for(var o=0,l=e.length;o<l&&(i[0]=e.start(o),i[1]=e.end(o),!(i[0]<=n&&n<=i[1]));o++);return i[0]-n<=0&&n-i[1]<=0?i:[0,0]}},{key:"autoplay",get:function(){return this.media?this.media.autoplay:!1},set:function(e){this.media&&(this.media.autoplay=e)}},{key:"buffered",get:function(){return this.media?this.media.buffered:null}},{key:"buffered2",get:function(){return this.media&&this.media.buffered?d.getBuffered2(this.media.buffered):null}},{key:"bufferedPoint",get:function(){var e={start:0,end:0};if(!this.media)return e;var i=this.media.buffered;if(!i||i.length===0)return e;for(var n=0;n<i.length;n++)if((i.start(n)<=this.currentTime||i.start(n)<.1)&&i.end(n)>=this.currentTime)return{start:i.start(n),end:i.end(n)};return e}},{key:"crossOrigin",get:function(){return this.media?this.media.crossOrigin:""},set:function(e){this.media&&(this.media.crossOrigin=e)}},{key:"currentSrc",get:function(){return this.media?this.media.currentSrc:""},set:function(e){this.media&&(this.media.currentSrc=e)}},{key:"currentTime",get:function(){return this.media?this.media.currentTime!==void 0?this.media.currentTime:this._currentTime:0},set:function(e){this.media&&(this.media.currentTime=e)}},{key:"defaultMuted",get:function(){return this.media?this.media.defaultMuted:!1},set:function(e){this.media&&(this.media.defaultMuted=e)}},{key:"duration",get:function(){return this._duration}},{key:"ended",get:function(){return this.media?this.media.ended:!1}},{key:"error",get:function(){return this.media.error}},{key:"errorNote",get:function(){var e=this.media.error;if(!e)return"";var i=["MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED"];return i[this.media.error.code-1]}},{key:"loop",get:function(){return this.media?this.media.loop:!1},set:function(e){this.media&&(this.media.loop=e)}},{key:"muted",get:function(){return this.media?this.media.muted:!1},set:function(e){!this.media||this.media.muted===e||(this._lastMuted=this.media.muted,this.media.muted=e)}},{key:"networkState",get:function(){return this.media.networkState}},{key:"paused",get:function(){return this.media?this.media.paused:!0}},{key:"playbackRate",get:function(){return this.media?this.media.playbackRate:0},set:function(e){!this.media||e===1/0||(this.media.defaultPlaybackRate=e,this.media.playbackRate=e)}},{key:"played",get:function(){return this.media?this.media.played:null}},{key:"preload",get:function(){return this.media?this.media.preload:!1},set:function(e){this.media&&(this.media.preload=e)}},{key:"readyState",get:function(){return this.media.readyState}},{key:"seekable",get:function(){return this.media?this.media.seekable:!1}},{key:"seeking",get:function(){return this.media?this.media.seeking:!1}},{key:"src",get:function(){return this.media?this.media.src:""},set:function(e){if(this.media){if(this.emit(Ke,e),this.emit(He),this._currentTime=0,this._duration=0,d.isMSE(this.media)){this.onWaiting();return}this._detachSourceEvents(this.media),d.typeOf(e)==="Array"?this._attachSourceEvents(this.media,e):e?this.media.src=e:this.media.removeAttribute("src"),this.load()}}},{key:"volume",get:function(){return this.media?this.media.volume:0},set:function(e){e===1/0||!this.media||(this.media.volume=e)}},{key:"aspectRatio",get:function(){return this.media?this.media.videoWidth/this.media.videoHeight:0}},{key:"addInnerOP",value:function(e){this._internalOp[e]=!0}},{key:"removeInnerOP",value:function(e){delete this._internalOp[e]}},{key:"emit",value:function(e,i){for(var n,o=arguments.length,l=new Array(o>2?o-2:0),u=2;u<o;u++)l[u-2]=arguments[u];(n=L(A(r.prototype),"emit",this)).call.apply(n,[this,e,i].concat(l))}},{key:"on",value:function(e,i){for(var n,o=arguments.length,l=new Array(o>2?o-2:0),u=2;u<o;u++)l[u-2]=arguments[u];(n=L(A(r.prototype),"on",this)).call.apply(n,[this,e,i].concat(l))}},{key:"once",value:function(e,i){for(var n,o=arguments.length,l=new Array(o>2?o-2:0),u=2;u<o;u++)l[u-2]=arguments[u];(n=L(A(r.prototype),"once",this)).call.apply(n,[this,e,i].concat(l))}},{key:"off",value:function(e,i){for(var n,o=arguments.length,l=new Array(o>2?o-2:0),u=2;u<o;u++)l[u-2]=arguments[u];(n=L(A(r.prototype),"off",this)).call.apply(n,[this,e,i].concat(l))}},{key:"offAll",value:function(){L(A(r.prototype),"removeAllListeners",this).call(this)}}]),r}(Zt),Vr=function(){function a(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{name:"xgplayer",version:1,db:null,ojstore:{name:"xg-m4a",keypath:"vid"}};T(this,a),this.indexedDB=window.indexedDB||window.webkitindexedDB,this.IDBKeyRange=window.IDBKeyRange||window.webkitIDBKeyRange,this.myDB=s}return S(a,[{key:"openDB",value:function(r){var t=this,e=this,i=this.myDB.version||1,n=e.indexedDB.open(e.myDB.name,i);n.onerror=function(o){},n.onsuccess=function(o){t.myDB.db=o.target.result,r.call(e)},n.onupgradeneeded=function(o){var l=o.target.result;o.target.transaction,l.objectStoreNames.contains(e.myDB.ojstore.name)||l.createObjectStore(e.myDB.ojstore.name,{keyPath:e.myDB.ojstore.keypath})}}},{key:"deletedb",value:function(){var r=this;r.indexedDB.deleteDatabase(this.myDB.name)}},{key:"closeDB",value:function(){this.myDB.db.close()}},{key:"addData",value:function(r,t){for(var e=this.myDB.db.transaction(r,"readwrite").objectStore(r),i,n=0;n<t.length;n++)i=e.add(t[n]),i.onerror=function(){},i.onsuccess=function(){}}},{key:"putData",value:function(r,t){for(var e=this.myDB.db.transaction(r,"readwrite").objectStore(r),i,n=0;n<t.length;n++)i=e.put(t[n]),i.onerror=function(){},i.onsuccess=function(){}}},{key:"getDataByKey",value:function(r,t,e){var i=this,n=this.myDB.db.transaction(r,"readwrite").objectStore(r),o=n.get(t);o.onerror=function(){e.call(i,null)},o.onsuccess=function(l){var u=l.target.result;e.call(i,u)}}},{key:"deleteData",value:function(r,t){var e=this.myDB.db.transaction(r,"readwrite").objectStore(r);e.delete(t)}},{key:"clearData",value:function(r){var t=this.myDB.db.transaction(r,"readwrite").objectStore(r);t.clear()}}]),a}(),ki=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],Ci=["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],Ei=["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],Ee="data-xgplayerid";function Qe(a,s,r){for(var t=arguments.length,e=new Array(t>3?t-3:0),i=3;i<t;i++)e[i-3]=arguments[i];var n=s.call.apply(s,[a].concat(e));!r||typeof r!="function"||(n&&n.then?n.then(function(){for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];r.call.apply(r,[a].concat(l))}):r.call.apply(r,[a].concat(e)))}function et(a,s){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{pre:null,next:null};return this.__hooks||(this.__hooks={}),!this.__hooks[a]&&(this.__hooks[a]=null),(function(){var t=arguments,e=this;if(r.pre)try{var i;(i=r.pre).call.apply(i,[this].concat(Array.prototype.slice.call(arguments)))}catch(l){throw l.message="[pluginName: ".concat(this.pluginName,":").concat(a,":pre error] >> ").concat(l.message),l}if(this.__hooks&&this.__hooks[a])try{var n,o=(n=this.__hooks[a]).call.apply(n,[this,this].concat(Array.prototype.slice.call(arguments)));o?o.then?o.then(function(l){l!==!1&&Qe.apply(void 0,[e,s,r.next].concat(Q(t)))}).catch(function(l){throw l}):Qe.apply(void 0,[this,s,r.next].concat(Array.prototype.slice.call(arguments))):o===void 0&&Qe.apply(void 0,[this,s,r.next].concat(Array.prototype.slice.call(arguments)))}catch(l){throw l.message="[pluginName: ".concat(this.pluginName,":").concat(a,"] >> ").concat(l.message),l}else Qe.apply(void 0,[this,s,r.next].concat(Array.prototype.slice.call(arguments)))}).bind(this)}function tt(a,s){var r=this.__hooks;if(r)return r.hasOwnProperty(a)?(r&&(r[a]=s),!0):(console.warn("has no supported hook which name [".concat(a,"]")),!1)}function it(a,s){var r=this.__hooks;r&&delete r[a]}function wi(a){if(!(!this.plugins||!this.plugins[a.toLowerCase()])){for(var s=this.plugins[a.toLowerCase()],r=arguments.length,t=new Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];return s.useHooks&&s.useHooks.apply(s,t)}}function bi(a){if(!(!this.plugins||!this.plugins[a.toLowerCase()])){var s=this.plugins[a.toLowerCase()];if(s){for(var r=arguments.length,t=new Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];return s.removeHooks&&s.removeHooks.apply(s,t)}}}function Ti(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];a.__hooks={},s&&s.map(function(r){a.__hooks[r]=null}),Object.defineProperty(a,"hooks",{get:function(){return a.__hooks&&Object.keys(a.__hooks).map(function(t){if(a.__hooks[t])return t})}})}function Si(a){a.__hooks=null}function ue(a,s,r){for(var t=arguments.length,e=new Array(t>3?t-3:0),i=3;i<t;i++)e[i-3]=arguments[i];if(a.__hooks&&a.__hooks[s]){var n,o=(n=a.__hooks[s]).call.apply(n,[a,a].concat(e));if(o&&o.then)o.then(function(l){return l===!1?null:r.call.apply(r,[a,a].concat(e))}).catch(function(l){console.warn("[runHooks]".concat(s," reject"),l.message)});else if(o!==!1)return r.call.apply(r,[a,a].concat(e))}else return r.call.apply(r,[a,a].concat(e))}function Pt(a,s){F.logError("[".concat(a,"] event or callback cant be undefined or null when call ").concat(s))}var de=function(){function a(s){T(this,a),d.checkIsFunction(this.beforeCreate)&&this.beforeCreate(s),Ti(this),this.__args=s,this.__events={},this.__onceEvents={},this.config=s.config||{},this.player=null,this.playerConfig={},this.pluginName="",this.__init(s)}return S(a,[{key:"beforeCreate",value:function(r){}},{key:"afterCreate",value:function(){}},{key:"beforePlayerInit",value:function(){}},{key:"onPluginsReady",value:function(){}},{key:"afterPlayerInit",value:function(){}},{key:"destroy",value:function(){}},{key:"__init",value:function(r){this.player=r.player,this.playerConfig=r.player&&r.player.config,this.pluginName=r.pluginName?r.pluginName.toLowerCase():this.constructor.pluginName.toLowerCase(),this.logger=r.player&&r.player.logger}},{key:"updateLang",value:function(r){r||(r=this.lang)}},{key:"lang",get:function(){return this.player.lang}},{key:"i18n",get:function(){return this.player.i18n}},{key:"i18nKeys",get:function(){return this.player.i18nKeys}},{key:"domEventType",get:function(){var r=d.checkTouchSupport()?"touch":"mouse";return this.playerConfig&&(this.playerConfig.domEventType==="touch"||this.playerConfig.domEventType==="mouse")&&(r=this.playerConfig.domEventType),r}},{key:"on",value:function(r,t){var e=this;if(!r||!t||!this.player){Pt(this.pluginName,"plugin.on(event, callback)");return}typeof r=="string"?(this.__events[r]=t,this.player.on(r,t)):Array.isArray(r)&&r.forEach(function(i){e.__events[i]=t,e.player.on(i,t)})}},{key:"once",value:function(r,t){var e=this;if(!r||!t||!this.player){Pt(this.pluginName,"plugin.once(event, callback)");return}typeof r=="string"?(this.__onceEvents[r]=t,this.player.once(r,t)):Array.isArray(r)&&r.forEach(function(i){e.__onceEvents[i]=t,e.player.once(r,t)})}},{key:"off",value:function(r,t){var e=this;if(!r||!t||!this.player){Pt(this.pluginName,"plugin.off(event, callback)");return}typeof r=="string"?(delete this.__events[r],this.player.off(r,t)):Array.isArray(r)&&r.forEach(function(i){delete e.__events[r],e.player.off(i,t)})}},{key:"offAll",value:function(){var r=this;["__events","__onceEvents"].forEach(function(t){Object.keys(r[t]).forEach(function(e){r[t][e]&&r.off(e,r[t][e]),e&&delete r[t][e]})}),this.__events={},this.__onceEvents={}}},{key:"emit",value:function(r){var t;if(this.player){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];(t=this.player).emit.apply(t,[r].concat(i))}}},{key:"emitUserAction",value:function(r,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.player){var i=U(U({},e),{},{pluginName:this.pluginName});this.player.emitUserAction(r,t,i)}}},{key:"hook",value:function(r,t){return et.call.apply(et,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"useHooks",value:function(r,t){for(var e=arguments.length,i=new Array(e>2?e-2:0),n=2;n<e;n++)i[n-2]=arguments[n];return tt.call.apply(tt,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"removeHooks",value:function(r,t){for(var e=arguments.length,i=new Array(e>2?e-2:0),n=2;n<e;n++)i[n-2]=arguments[n];return it.call.apply(it,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"registerPlugin",value:function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";if(this.player)return e&&(t.pluginName=e),this.player.registerPlugin({plugin:r,options:t})}},{key:"getPlugin",value:function(r){return this.player?this.player.getPlugin(r):null}},{key:"__destroy",value:function(){var r=this,t=this.player,e=this.pluginName;this.offAll(),d.clearAllTimers(this),d.checkIsFunction(this.destroy)&&this.destroy(),["player","playerConfig","pluginName","logger","__args","__hooks"].map(function(i){r[i]=null}),t.unRegisterPlugin(e),Si(this)}}],[{key:"defineGetterOrSetter",value:function(r,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&Object.defineProperty(r,e,t[e])}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),a}(),Ur=9;if(typeof Element<"u"&&!Element.prototype.matches){var Pe=Element.prototype;Pe.matches=Pe.matchesSelector||Pe.mozMatchesSelector||Pe.msMatchesSelector||Pe.oMatchesSelector||Pe.webkitMatchesSelector}function zr(a,s){for(;a&&a.nodeType!==Ur;){if(typeof a.matches=="function"&&a.matches(s))return a;a=a.parentNode}}var jr=zr,$r=jr;function At(a,s,r,t,e){var i=Gr.apply(this,arguments);return a.addEventListener(r,i,e),{destroy:function(){a.removeEventListener(r,i,e)}}}function Wr(a,s,r,t,e){return typeof a.addEventListener=="function"?At.apply(null,arguments):typeof r=="function"?At.bind(null,document).apply(null,arguments):(typeof a=="string"&&(a=document.querySelectorAll(a)),Array.prototype.map.call(a,function(i){return At(i,s,r,t,e)}))}function Gr(a,s,r,t){return function(e){e.delegateTarget=$r(e.target,s),e.delegateTarget&&t.call(a,e)}}var Kr=Wr;const xi=ct(Kr);var Yr={CONTROLS:"controls",ROOT:"root"},V={ROOT:"root",ROOT_LEFT:"rootLeft",ROOT_RIGHT:"rootRight",ROOT_TOP:"rootTop",CONTROLS_LEFT:"controlsLeft",CONTROLS_RIGTH:"controlsRight",CONTROLS_RIGHT:"controlsRight",CONTROLS_CENTER:"controlsCenter",CONTROLS:"controls"},Ii={ICON_DISABLE:"xg-icon-disable",ICON_HIDE:"xg-icon-hide"};function Lt(a){return a?a.indexOf&&/^(?:http|data:|\/)/.test(a):!1}function Xr(a,s){return G(a)==="object"&&a.class&&typeof a.class=="string"?"".concat(s," ").concat(a.class):s}function qr(a,s){return G(a)==="object"&&a.attr&&G(a.attr)==="object"&&Object.keys(a.attr).map(function(r){s[r]=a.attr[r]}),s}function Pi(a,s){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},e=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",i=null;if(a instanceof window.Element)return d.addClass(a,r),Object.keys(t).map(function(n){a.setAttribute(n,t[n])}),a;if(Lt(a)||Lt(a.url))return t.src=Lt(a)?a:a.url||"",i=d.createDom(a.tag||"img","",t,"xg-img ".concat(r)),i;if(typeof a=="function")try{return i=a(),i instanceof window.Element?(d.addClass(i,r),Object.keys(t).map(function(n){i.setAttribute(n,t[n])}),i):(F.logWarn("warn>>icons.".concat(s," in config of plugin named [").concat(e,"] is a function mast return an Element Object")),null)}catch(n){return F.logError("Plugin named [".concat(e,"]:createIcon"),n),null}return typeof a=="string"?d.createDomFromHtml(a,t,r):(F.logWarn("warn>>icons.".concat(s," in config of plugin named [").concat(e,"] is invalid")),null)}function Jr(a,s){var r=s.config.icons||s.playerConfig.icons;Object.keys(a).map(function(t){var e=a[t],i=e&&e.class?e.class:"",n=e&&e.attr?e.attr:{},o=null;r&&r[t]&&(i=Xr(r[t],i),n=qr(r[t],n),o=Pi(r[t],t,i,n,s.pluginName)),!o&&e&&(o=Pi(e.icon?e.icon:e,n,i,{},s.pluginName)),s.icons[t]=o})}function Zr(a,s){Object.keys(a).map(function(r){Object.defineProperty(s.langText,r,{get:function(){var e=s.lang,i=s.i18n;return i[r]?i[r]:a[r]&&a[r][e]||""}})})}var B=function(a){I(r,a);var s=P(r);function r(){var t,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return T(this,r),t=s.call(this,e),t.__delegates=[],t}return S(r,[{key:"__init",value:function(e){if(L(A(r.prototype),"__init",this).call(this,e),!!e.root){var i=e.root,n=null;this.icons={},this.root=null,this.parent=null;var o=this.registerIcons()||{};Jr(o,this),this.langText={};var l=this.registerLanguageTexts()||{};Zr(l,this);var u="";try{u=this.render()}catch(p){throw F.logError("Plugin:".concat(this.pluginName,":render"),p),new Error("Plugin:".concat(this.pluginName,":render:").concat(p.message))}if(u)n=r.insert(u,i,e.index),n.setAttribute("data-index",e.index);else if(e.tag)n=d.createDom(e.tag,"",e.attr,e.name),n.setAttribute("data-index",e.index),i.appendChild(n);else return;this.root=n,this.parent=i;var f=this.config.attr||{},h=this.config.style||{};this.setAttr(f),this.setStyle(h),this.config.index&&this.root.setAttribute("data-index",this.config.index),this.__registerChildren()}}},{key:"__registerChildren",value:function(){var e=this;if(this.root){this._children=[];var i=this.children();i&&G(i)==="object"&&Object.keys(i).length>0&&Object.keys(i).map(function(n){var o=n,l=i[o],u={root:e.root},f,h;typeof l=="function"?(f=e.config[o]||{},h=l):G(l)==="object"&&typeof l.plugin=="function"&&(f=l.options?d.deepCopy(e.config[o]||{},l.options):e.config[o]||{},h=l.plugin),u.config=f,f.index!==void 0&&(u.index=f.index),f.root&&(u.root=f.root),e.registerPlugin(h,u,o)})}}},{key:"updateLang",value:function(e){e||(e=this.lang);function i(u,f){for(var h=0;h<u.children.length;h++)u.children[h].children.length>0?i(u.children[h],f):f(u.children[h])}var n=this.root,o=this.i18n,l=this.langText;n&&i(n,function(u){var f=u.getAttribute&&u.getAttribute("lang-key");if(f){var h=o[f.toUpperCase()]||l[f];h&&(u.innerHTML=typeof h=="function"?h(e):h)}})}},{key:"lang",get:function(){return this.player.lang}},{key:"changeLangTextKey",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=this.i18n||{},o=this.langText;e.setAttribute&&e.setAttribute("lang-key",i);var l=n[i]||o[i]||"";l&&(e.innerHTML=l)}},{key:"plugins",value:function(){return this._children}},{key:"disable",value:function(){this.config.disable=!0,d.addClass(this.find(".xgplayer-icon"),Ii.ICON_DISABLE)}},{key:"enable",value:function(){this.config.disable=!1,d.removeClass(this.find(".xgplayer-icon"),Ii.ICON_DISABLE)}},{key:"children",value:function(){return{}}},{key:"registerPlugin",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";i.root=i.root||this.root;var o=L(A(r.prototype),"registerPlugin",this).call(this,e,i,n);return this._children.push(o),o}},{key:"registerIcons",value:function(){return{}}},{key:"registerLanguageTexts",value:function(){return{}}},{key:"find",value:function(e){if(this.root)return this.root.querySelector(e)}},{key:"bind",value:function(e,i,n){var o=this;if(arguments.length<3&&typeof i=="function")Array.isArray(e)?e.forEach(function(u){o.bindEL(u,i)}):this.bindEL(e,i);else{var l=r.delegate.call(this,this.root,e,i,n);this.__delegates=this.__delegates.concat(l)}}},{key:"unbind",value:function(e,i){var n=this;if(arguments.length<3&&typeof i=="function")Array.isArray(e)?e.forEach(function(u){n.unbindEL(u,i)}):this.unbindEL(e,i);else for(var o="".concat(e,"_").concat(i),l=0;l<this.__delegates.length;l++)if(this.__delegates[l].key===o){this.__delegates[l].destroy(),this.__delegates.splice(l,1);break}}},{key:"setStyle",value:function(e,i){var n=this;if(this.root){if(d.typeOf(e)==="String")return this.root.style[e]=i;d.typeOf(e)==="Object"&&Object.keys(e).map(function(o){n.root.style[o]=e[o]})}}},{key:"setAttr",value:function(e,i){var n=this;if(this.root){if(d.typeOf(e)==="String")return this.root.setAttribute(e,i);d.typeOf(e)==="Object"&&Object.keys(e).map(function(o){n.root.setAttribute(o,e[o])})}}},{key:"setHtml",value:function(e,i){this.root&&(this.root.innerHTML=e,typeof i=="function"&&i())}},{key:"bindEL",value:function(e,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.root&&"on".concat(e)in this.root&&typeof i=="function"&&this.root.addEventListener(e,i,n)}},{key:"unbindEL",value:function(e,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.root&&"on".concat(e)in this.root&&typeof i=="function"&&this.root.removeEventListener(e,i,n)}},{key:"show",value:function(e){if(this.root){this.root.style.display=e!==void 0?e:"block";var i=window.getComputedStyle(this.root,null),n=i.getPropertyValue("display");if(n==="none")return this.root.style.display="block"}}},{key:"hide",value:function(){this.root&&(this.root.style.display="none")}},{key:"appendChild",value:function(e,i){if(!this.root)return null;if(arguments.length<2&&arguments[0]instanceof window.Element)return this.root.appendChild(arguments[0]);if(!i||!(i instanceof window.Element))return null;try{return typeof e=="string"?this.find(e).appendChild(i):e.appendChild(i)}catch(n){return F.logError("Plugin:appendChild",n),null}}},{key:"render",value:function(){return""}},{key:"destroy",value:function(){}},{key:"__destroy",value:function(){var e=this,i=this.player;this.__delegates.map(function(n){n.destroy()}),this.__delegates=[],this._children instanceof Array&&(this._children.map(function(n){i.unRegisterPlugin(n.pluginName)}),this._children=null),this.root&&(this.root.hasOwnProperty("remove")?this.root.remove():this.root.parentNode&&this.root.parentNode.removeChild(this.root)),L(A(r.prototype),"__destroy",this).call(this),this.icons={},["root","parent"].map(function(n){e[n]=null})}}],[{key:"insert",value:function(e,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=i.children.length,l=Number(n),u=e instanceof window.Node;if(o){for(var f=0,h=null,p="";f<o;f++){h=i.children[f];var v=Number(h.getAttribute("data-index"));if(v>=l){p="beforebegin";break}else v<l&&(p="afterend")}return u?p==="afterend"?i.appendChild(e):i.insertBefore(e,h):h.insertAdjacentHTML(p,e),p==="afterend"?i.children[i.children.length-1]:i.children[f]}else return u?i.appendChild(e):i.insertAdjacentHTML("beforeend",e),i.children[i.children.length-1]}},{key:"defaultConfig",get:function(){return{}}},{key:"delegate",value:function(e,i,n,o){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,u=[];if(e instanceof window.Node&&typeof o=="function")if(Array.isArray(n))n.forEach(function(h){var p=xi(e,i,h,o,l);p.key="".concat(i,"_").concat(h),u.push(p)});else{var f=xi(e,i,n,o,l);f.key="".concat(i,"_").concat(n),u.push(f)}return u}},{key:"ROOT_TYPES",get:function(){return Yr}},{key:"POSITIONS",get:function(){return V}}]),r}(de),Qr=function(){function a(){var s=this;if(T(this,a),k(this,"__trigger",function(r){var t=new Date().getTime();s.timeStamp=t;for(var e=0;e<r.length;e++)s.__runHandler(r[e].target)}),this.__handlers=[],this.timeStamp=0,this.observer=null,!!window.ResizeObserver)try{this.observer=new window.ResizeObserver(wr(this.__trigger,100,{trailing:!0})),this.timeStamp=new Date().getTime()}catch(r){console.error(r)}}return S(a,[{key:"addObserver",value:function(r,t){if(this.observer){this.observer&&this.observer.observe(r);for(var e=r.getAttribute(Ee),i=this.__handlers,n=-1,o=0;o<i.length;o++)i[o]&&r===i[o].target&&(n=o);n>-1?this.__handlers[n].handler=t:this.__handlers.push({target:r,handler:t,playerId:e})}}},{key:"unObserver",value:function(r){var t=-1;this.__handlers.map(function(e,i){r===e.target&&(t=i)});try{this.observer&&this.observer.unobserve(r)}catch{}this.observer&&this.observer.unobserve(r),t>-1&&this.__handlers.splice(t,1)}},{key:"destroyObserver",value:function(){this.observer&&this.observer.disconnect(),this.observer=null,this.__handlers=null}},{key:"__runHandler",value:function(r){for(var t=this.__handlers,e=0;e<t.length;e++)if(t[e]&&r===t[e].target){try{t[e].handler(r)}catch(i){console.error(i)}return!0}return!1}}]),a}(),Ve=null;function eo(a,s){return Ve||(Ve=new Qr),Ve.addObserver(a,s),Ve}function to(a,s){Ve.unObserver(a,s)}var W={pluginGroup:{},init:function(s){var r=s._pluginInfoId;r||(r=new Date().getTime(),s._pluginInfoId=r),!s.config.closeResizeObserver&&eo(s.root,function(){s.resize()}),this.pluginGroup[r]={_originalOptions:s.config||{},_plugins:{}}},formatPluginInfo:function(s,r){var t=null,e=null;return s.plugin&&typeof s.plugin=="function"?(t=s.plugin,e=s.options):(t=s,e={}),r&&(e.config=r||{}),{PLUFGIN:t,options:e}},checkPluginIfExits:function(s,r){for(var t=0;t<r.length;t++)if(s.toLowerCase()===r[t].pluginName.toLowerCase())return!0;return!1},getRootByConfig:function(s,r){for(var t=Object.keys(r),e=null,i=0;i<t.length;i++)if(s.toLowerCase()===t[i].toLowerCase()){e=r[t[i]];break}return d.typeOf(e)==="Object"?{root:e.root,position:e.position}:{}},lazyRegister:function(s,r){var t=this,e=r.timeout||1500;return Promise.race([r.loader().then(function(i){var n;i&&i.__esModule?n=i.default:n=i,t.register(s,n,i.options)}),new Promise(function(i,n){setTimeout(function(){n(new Error("timeout"))},e)})])},register:function(s,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!(!s||!r||typeof r!="function"||r.prototype===void 0)){var e=s._pluginInfoId;if(!(!e||!this.pluginGroup[e])){this.pluginGroup[e]._plugins||(this.pluginGroup[e]._plugins={});var i=this.pluginGroup[e]._plugins,n=this.pluginGroup[e]._originalOptions;t.player=s;var o=t.pluginName||r.pluginName;if(!o)throw new Error("The property pluginName is necessary");if(r.isSupported&&!r.isSupported(s.config.mediaType,s.config.codecType)){console.warn("not supported plugin [".concat(o,"]"));return}t.config||(t.config={});for(var l=Object.keys(n),u=0;u<l.length;u++)if(o.toLowerCase()===l[u].toLowerCase()){var f=n[l[u]];d.typeOf(f)==="Object"?t.config=Object.assign({},t.config,n[l[u]]):d.typeOf(f)==="Boolean"&&(t.config.disable=!f);break}r.defaultConfig&&Object.keys(r.defaultConfig).forEach(function(p){typeof t.config[p]>"u"&&(t.config[p]=r.defaultConfig[p])}),t.root?typeof t.root=="string"&&(t.root=s[t.root]):t.root=s.root,t.index=t.config.index||0;try{i[o.toLowerCase()]&&(this.unRegister(e,o.toLowerCase()),console.warn("the is one plugin with same pluginName [".concat(o,"] exist, destroy the old instance")));var h=new r(t);return i[o.toLowerCase()]=h,i[o.toLowerCase()].func=r,h&&typeof h.afterCreate=="function"&&h.afterCreate(),h}catch(p){throw console.error(p),p}}}},unRegister:function(s,r){s._pluginInfoId&&(s=s._pluginInfoId),r=r.toLowerCase();try{var t=this.pluginGroup[s]._plugins[r];t&&(t.pluginName&&t.__destroy(),delete this.pluginGroup[s]._plugins[r])}catch(e){console.error("[unRegister:".concat(r,"] cgid:[").concat(s,"] error"),e)}},deletePlugin:function(s,r){var t=s._pluginInfoId;t&&this.pluginGroup[t]&&this.pluginGroup[t]._plugins&&delete this.pluginGroup[t]._plugins[r]},getPlugins:function(s){var r=s._pluginInfoId;return r&&this.pluginGroup[r]?this.pluginGroup[r]._plugins:{}},findPlugin:function(s,r){var t=s._pluginInfoId;if(!t||!this.pluginGroup[t])return null;var e=r.toLowerCase();return this.pluginGroup[t]._plugins[e]},beforeInit:function(s){var r=this;function t(e){return!e||!e.then?new Promise(function(i){i()}):e}return new Promise(function(e){if(r.pluginGroup){var i;return s._loadingPlugins&&s._loadingPlugins.length?i=Promise.all(s._loadingPlugins):i=Promise.resolve(),i.then(function(){var n=s._pluginInfoId;if(!r.pluginGroup[n]){e();return}var o=r.pluginGroup[n]._plugins,l=[];Object.keys(o).forEach(function(u){if(o[u]&&o[u].beforePlayerInit)try{var f=o[u].beforePlayerInit();l.push(t(f))}catch(h){throw l.push(t(null)),h}}),Promise.all([].concat(l)).then(function(){e()}).catch(function(u){console.error(u),e()})})}})},afterInit:function(s){var r=s._pluginInfoId;if(!(!r||!this.pluginGroup[r])){var t=this.pluginGroup[r]._plugins;Object.keys(t).forEach(function(e){t[e]&&t[e].afterPlayerInit&&t[e].afterPlayerInit()})}},setLang:function(s,r){var t=r._pluginInfoId;if(!(!t||!this.pluginGroup[t])){var e=this.pluginGroup[t]._plugins;Object.keys(e).forEach(function(i){if(e[i].updateLang)e[i].updateLang(s);else try{e[i].lang=s}catch{console.warn("".concat(i," setLang"))}})}},reRender:function(s){var r=this,t=s._pluginInfoId;if(!(!t||!this.pluginGroup[t])){var e=[],i=this.pluginGroup[t]._plugins;Object.keys(i).forEach(function(n){n!=="controls"&&i[n]&&(e.push({plugin:i[n].func,options:i[n].__args}),r.unRegister(t,n))}),e.forEach(function(n){r.register(s,n.plugin,n.options)})}},onPluginsReady:function(s){var r=s._pluginInfoId;if(!(!r||!this.pluginGroup[r])){var t=this.pluginGroup[r]._plugins||{};Object.keys(t).forEach(function(e){t[e].onPluginsReady&&typeof t[e].onPluginsReady=="function"&&t[e].onPluginsReady()})}},destroy:function(s){var r=s._pluginInfoId;if(this.pluginGroup[r]){to(s.root);for(var t=this.pluginGroup[r]._plugins,e=0,i=Object.keys(t);e<i.length;e++){var n=i[e];this.unRegister(r,n)}delete this.pluginGroup[r],delete s._pluginInfoId}}},w={DEFAULT:"xgplayer",DEFAULT_SKIN:"xgplayer-skin-default",ENTER:"xgplayer-is-enter",PAUSED:"xgplayer-pause",PLAYING:"xgplayer-playing",ENDED:"xgplayer-ended",CANPLAY:"xgplayer-canplay",LOADING:"xgplayer-isloading",ERROR:"xgplayer-is-error",REPLAY:"xgplayer-replay",NO_START:"xgplayer-nostart",ACTIVE:"xgplayer-active",INACTIVE:"xgplayer-inactive",FULLSCREEN:"xgplayer-is-fullscreen",CSS_FULLSCREEN:"xgplayer-is-cssfullscreen",ROTATE_FULLSCREEN:"xgplayer-rotate-fullscreen",PARENT_ROTATE_FULLSCREEN:"xgplayer-rotate-parent",PARENT_FULLSCREEN:"xgplayer-fullscreen-parent",INNER_FULLSCREEN:"xgplayer-fullscreen-inner",NO_CONTROLS:"no-controls",FLEX_CONTROLS:"flex-controls",CONTROLS_FOLLOW:"controls-follow",CONTROLS_AUTOHIDE:"controls-autohide",TOP_BAR_AUTOHIDE:"top-bar-autohide",NOT_ALLOW_AUTOPLAY:"not-allow-autoplay",SEEKING:"seeking",PC:"xgplayer-pc",MOBILE:"xgplayer-mobile",MINI:"xgplayer-mini"};function Ai(){return{id:"",el:null,url:"",domEventType:"default",nullUrlStart:!1,width:600,height:337.5,fluid:!1,fitVideoSize:"fixed",videoFillMode:"auto",volume:.6,autoplay:!1,autoplayMuted:!1,loop:!1,isLive:!1,zoom:1,videoInit:!0,poster:"",isMobileSimulateMode:!1,defaultPlaybackRate:1,execBeforePluginsCall:null,allowSeekAfterEnded:!0,enableContextmenu:!0,closeVideoClick:!1,closeVideoDblclick:!1,closePlayerBlur:!1,closeDelayBlur:!1,leavePlayerTime:3e3,closePlayVideoFocus:!1,closePauseVideoFocus:!1,closeFocusVideoFocus:!0,closeControlsBlur:!0,topBarAutoHide:!0,videoAttributes:{},startTime:0,seekedStatus:"play",miniprogress:!1,disableSwipeHandler:function(){},enableSwipeHandler:function(){},preProcessUrl:null,ignores:[],whitelist:[],inactive:3e3,lang:br(),controls:!0,marginControls:!1,fullscreenTarget:null,screenShot:!1,rotate:!1,pip:!1,download:!1,mini:!1,cssFullscreen:!0,keyShortcut:!0,presets:[],plugins:[],playbackRate:1,definition:{list:[]},playsinline:!0,customDuration:0,timeOffset:0,icons:{},i18n:[],tabindex:0,thumbnail:null,videoConfig:{},isHideTips:!1,minWaitDelay:200,commonStyle:{progressColor:"",playedColor:"",cachedColor:"",sliderBtnStyle:{},volumeColor:""}}}var io=function(s,r){var t,e,i;r.preset&&r.options?i=new r.preset(r.options,s.config):i=new r({},s.config);var n=i,o=n.plugins,l=o===void 0?[]:o,u=n.ignores,f=u===void 0?[]:u,h=n.icons,p=h===void 0?{}:h,v=n.i18n,g=v===void 0?[]:v;s.config.plugins||(s.config.plugins=[]),s.config.ignores||(s.config.ignores=[]),(t=s.config.plugins).push.apply(t,Q(l)),(e=s.config.ignores).push.apply(e,Q(f)),Object.keys(p).map(function(_){s.config.icons[_]||(s.config.icons[_]=p[_])});var m=s.config.i18n||[];g.push.apply(g,Q(m)),s.config.i18n=g},no=function(a){I(r,a);var s=P(r);function r(){var t;T(this,r);for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return t=s.call.apply(s,[this].concat(i)),k(y(t),"onMouseEnter",function(o){var l=y(t),u=l.player,f=l.playerConfig;f.closeControlsBlur&&u.focus({autoHide:!1})}),k(y(t),"onMouseLeave",function(o){var l=y(t),u=l.player;u.focus()}),t}return S(r,[{key:"beforeCreate",value:function(e){!e.config.mode&&O.device==="mobile"&&(e.config.mode="flex"),e.player.config.marginControls&&(e.config.autoHide=!1)}},{key:"afterCreate",value:function(){var e=this,i=this.config,n=i.disable,o=i.height,l=i.mode;if(!n){l==="flex"&&this.player.addClass(w.FLEX_CONTROLS);var u={height:"".concat(o,"px")};Object.keys(u).map(function(h){e.root.style[h]=u[h]}),this.left=this.find("xg-left-grid"),this.center=this.find("xg-center-grid"),this.right=this.find("xg-right-grid"),this.innerRoot=this.find("xg-inner-controls"),this.on(Xe,function(h){h?d.addClass(e.root,"mini-controls"):d.removeClass(e.root,"mini-controls")});var f=this.playerConfig.isMobileSimulateMode;O.device!=="mobile"&&f!=="mobile"&&(this.bind("mouseenter",this.onMouseEnter),this.bind("mouseleave",this.onMouseLeave))}}},{key:"focus",value:function(){this.player.focus({autoHide:!1})}},{key:"focusAwhile",value:function(){this.player.focus({autoHide:!0})}},{key:"blur",value:function(){this.player.blur({ignorePaused:!0})}},{key:"recoverAutoHide",value:function(){this.config.autoHide&&d.addClass(this.root,w.CONTROLS_AUTOHIDE)}},{key:"pauseAutoHide",value:function(){d.removeClass(this.root,w.CONTROLS_AUTOHIDE)}},{key:"show",value:function(e){this.root.style.display="",this.player.focus()}},{key:"hide",value:function(){this.root.style.display="none"}},{key:"mode",get:function(){return this.config.mode}},{key:"registerPlugin",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(this.root){var o=e.defaultConfig||{};if(!i.root){var l=i.position?i.position:i.config&&i.config.position?i.config.position:o.position;switch(l){case V.CONTROLS_LEFT:i.root=this.left;break;case V.CONTROLS_RIGHT:i.root=this.right;break;case V.CONTROLS_CENTER:i.root=this.center;break;case V.CONTROLS:i.root=this.root;break;default:i.root=this.left}return L(A(r.prototype),"registerPlugin",this).call(this,e,i,n)}}}},{key:"destroy",value:function(){O.device!=="mobile"&&(this.unbind("mouseenter",this.onMouseEnter),this.unbind("mouseleave",this.onMouseLeave))}},{key:"render",value:function(){var e=this.config,i=e.mode,n=e.autoHide,o=e.initShow,l=e.disable;if(!l){var u=d.classNames({"xgplayer-controls":!0},{"flex-controls":i==="flex"},{"bottom-controls":i==="bottom"},k({},w.CONTROLS_AUTOHIDE,n),{"xgplayer-controls-initshow":o||!n});return'<xg-controls class="'.concat(u,`" unselectable="on">
|
|
3
3
|
<xg-inner-controls class="xg-inner-controls xg-pos">
|
|
4
4
|
<xg-left-grid class="xg-left-grid">
|