iking-web-ui-pro 0.2.59 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/dist/{IKApprovalProcess → IkApprovalProcess}/ik.index.es.js +2 -2
  2. package/dist/{IKApprovalProcess → IkApprovalProcess}/ik.index.umd.js +1 -1
  3. package/dist/{IKApprovalProcess → IkApprovalProcess}/iking-web-ui-pro.css +1 -1
  4. package/dist/{IKApprovalProcessDetail → IkApprovalProcessDetail}/ik.index.es.js +2 -2
  5. package/dist/{IKApprovalProcessDetail → IkApprovalProcessDetail}/ik.index.umd.js +2 -2
  6. package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -0
  7. package/dist/IkBaseDialog/ik.index.es.js +1 -1
  8. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  9. package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
  10. package/dist/IkBtnSetting/ik.index.es.js +1 -1
  11. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  12. package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
  13. package/dist/{IKCalendar → IkCalendar}/ik.index.es.js +674 -657
  14. package/dist/IkCalendar/ik.index.umd.js +1 -0
  15. package/dist/{IKCalendar → IkCalendar}/iking-web-ui-pro.css +1 -1
  16. package/dist/IkCollapseCard/ik.index.es.js +6 -6
  17. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  18. package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
  19. package/dist/IkDescription/ik.index.es.js +1 -1
  20. package/dist/IkDescription/ik.index.umd.js +1 -1
  21. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  22. package/dist/IkDetailPreviewFiles/ik.index.es.js +1 -1
  23. package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
  24. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  25. package/dist/{IKExpandCollapse → IkExpandCollapse}/ik.index.es.js +6 -6
  26. package/dist/{IKExpandCollapse → IkExpandCollapse}/ik.index.umd.js +1 -1
  27. package/dist/{IKExpandCollapse → IkExpandCollapse}/iking-web-ui-pro.css +1 -1
  28. package/dist/IkFullCalendar/ik.index.es.js +689 -672
  29. package/dist/IkFullCalendar/ik.index.umd.js +1 -1
  30. package/dist/{IKHorizontalStepBar → IkHorizontalStepBar}/ik.index.es.js +15 -15
  31. package/dist/{IKHorizontalStepBar → IkHorizontalStepBar}/ik.index.umd.js +1 -1
  32. package/dist/{IKHorizontalStepBar → IkHorizontalStepBar}/iking-web-ui-pro.css +1 -1
  33. package/dist/IkIconPicker/ik.index.es.js +39 -39
  34. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  35. package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
  36. package/dist/IkImageUploadEditor/ik.index.es.js +2492 -2487
  37. package/dist/IkImageUploadEditor/ik.index.umd.js +11 -11
  38. package/dist/IkMonacoEditor/ik.index.es.js +1 -1
  39. package/dist/IkMonacoEditor/ik.index.umd.js +1 -1
  40. package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
  41. package/dist/IkPageFull/ik.index.es.js +1 -1
  42. package/dist/IkPageFull/ik.index.umd.js +1 -1
  43. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  44. package/dist/{IKPreviewFile → IkPreviewFile}/ik.index.es.js +1 -1
  45. package/dist/{IKPreviewFile → IkPreviewFile}/ik.index.umd.js +1 -1
  46. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -0
  47. package/dist/IkPreviewFileDialog/ik.index.es.js +1 -1
  48. package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
  49. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  50. package/dist/IkSchedule/ik.index.es.js +689 -672
  51. package/dist/IkSchedule/ik.index.umd.js +1 -1
  52. package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
  53. package/dist/{IKSearch → IkSearch}/ik.index.es.js +4 -4
  54. package/dist/{IKSearch → IkSearch}/ik.index.umd.js +2 -2
  55. package/dist/{IKSearch → IkSearch}/iking-web-ui-pro.css +1 -1
  56. package/dist/{IKSearchHead → IkSearchHead}/ik.index.es.js +8 -8
  57. package/dist/{IKSearchHead → IkSearchHead}/ik.index.umd.js +1 -1
  58. package/dist/{IKSearchHead → IkSearchHead}/iking-web-ui-pro.css +1 -1
  59. package/dist/IkSideText/ik.index.es.js +66 -72
  60. package/dist/IkSideText/ik.index.umd.js +1 -1
  61. package/dist/IkSideText/iking-web-ui-pro.css +1 -1
  62. package/dist/IkSvgIcon/ik.index.es.js +9 -9
  63. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  64. package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
  65. package/dist/IkUploadFile/ik.index.es.js +1 -1
  66. package/dist/IkUploadFile/ik.index.umd.js +1 -1
  67. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  68. package/dist/IkUploadImage/ik.index.es.js +1 -1
  69. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  70. package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
  71. package/dist/{IKVerticalStepBar → IkVerticalStepBar}/ik.index.es.js +8 -8
  72. package/dist/{IKVerticalStepBar → IkVerticalStepBar}/ik.index.umd.js +3 -3
  73. package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -0
  74. package/dist/iking-web-ui-pro.css +2 -2
  75. package/dist/index.es.js +36774 -36448
  76. package/dist/index.umd.js +142 -142
  77. package/dist/src/components/IkApprovalProcess/index.d.ts +5 -5
  78. package/dist/src/components/IkApprovalProcess/src/{IKApprovalProcess.vue.d.ts → IkApprovalProcess.vue.d.ts} +5 -5
  79. package/dist/src/components/IkApprovalProcessDetail/index.d.ts +5 -5
  80. package/dist/src/components/IkApprovalProcessDetail/src/IkApprovalProcessDetail.vue.d.ts +5 -5
  81. package/dist/src/components/IkAutoCard/index.d.ts +6 -12
  82. package/dist/src/components/IkAutoCard/src/IkAutoCard.vue.d.ts +4 -4
  83. package/dist/src/components/IkBaseDialog/index.d.ts +6 -35
  84. package/dist/src/components/IkBaseDialog/src/CloseIcon.vue.d.ts +4 -4
  85. package/dist/src/components/IkBaseDialog/src/IkBaseDialog.vue.d.ts +4 -4
  86. package/dist/src/components/IkBottomOperate/index.d.ts +15 -43
  87. package/dist/src/components/IkBottomOperate/src/IkBottomOperate.vue.d.ts +7 -7
  88. package/dist/src/components/IkBtnContent/index.d.ts +7 -5
  89. package/dist/src/components/IkBtnContent/src/index.d.ts +7 -5
  90. package/dist/src/components/IkBtnSetting/index.d.ts +5 -5
  91. package/dist/src/components/IkBtnSetting/src/IkBtnSetting.vue.d.ts +5 -5
  92. package/dist/src/components/IkCalendar/index.d.ts +5 -5
  93. package/dist/src/components/IkCalendar/src/IkCalendar.vue.d.ts +5 -5
  94. package/dist/src/components/IkCollapseCard/index.d.ts +6 -12
  95. package/dist/src/components/IkCollapseCard/src/index.vue.d.ts +4 -4
  96. package/dist/src/components/IkCurrencyInput/index.d.ts +5 -5
  97. package/dist/src/components/IkCurrencyInput/src/IkCurrencyInput.vue.d.ts +5 -5
  98. package/dist/src/components/IkDescription/index.d.ts +6 -39
  99. package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +4 -4
  100. package/dist/src/components/IkDetailPreviewFiles/index.d.ts +4 -4
  101. package/dist/src/components/IkDetailPreviewFiles/src/IkDetailPreviewFiles.vue.d.ts +4 -4
  102. package/dist/src/components/IkDragList/index.d.ts +13 -130
  103. package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +6 -6
  104. package/dist/src/components/IkEmpty/index.d.ts +6 -19
  105. package/dist/src/components/IkEmpty/src/index.vue.d.ts +4 -4
  106. package/dist/src/components/IkExpandCollapse/index.d.ts +5 -5
  107. package/dist/src/components/IkExpandCollapse/src/IkExpandCollapse.vue.d.ts +5 -5
  108. package/dist/src/components/IkFileIcon/index.d.ts +4 -4
  109. package/dist/src/components/IkFileIcon/src/IkFileIcon.vue.d.ts +4 -4
  110. package/dist/src/components/IkFullCalendar/index.d.ts +6 -6
  111. package/dist/src/components/IkHorizontalStepBar/index.d.ts +10 -61
  112. package/dist/src/components/IkHorizontalStepBar/src/IkHorizontalStepBar.vue.d.ts +5 -5
  113. package/dist/src/components/IkIconPicker/index.d.ts +4 -4
  114. package/dist/src/components/IkIconPicker/src/index.vue.d.ts +4 -4
  115. package/dist/src/components/IkImageEditor/index.d.ts +1 -1
  116. package/dist/src/components/IkImageUploadEditor/index.d.ts +4 -4
  117. package/dist/src/components/IkImageUploadEditor/src/IkImageUploadEditor.vue.d.ts +4 -4
  118. package/dist/src/components/IkMonacoEditor/index.d.ts +167 -10
  119. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +167 -10
  120. package/dist/src/components/IkOnlyOffice/index.d.ts +4 -4
  121. package/dist/src/components/IkOnlyOffice/src/IkOnlyOffice.vue.d.ts +4 -4
  122. package/dist/src/components/IkPageFull/index.d.ts +54 -143
  123. package/dist/src/components/IkPageFull/src/IkDialog.d.ts +369 -5
  124. package/dist/src/components/IkPageFull/src/IkPage.vue.d.ts +5 -5
  125. package/dist/src/components/IkPageFull/src/IkPageHead.vue.d.ts +5 -5
  126. package/dist/src/components/IkPageFull/src/IkPageTable.vue.d.ts +8 -8
  127. package/dist/src/components/IkPageFull/src/IkSearchAuto.d.ts +6 -6
  128. package/dist/src/components/IkPageFull/src/index.vue.d.ts +20 -14
  129. package/dist/src/components/IkPageTabs/index.d.ts +13 -38
  130. package/dist/src/components/IkPageTabs/src/IkPageTabs.vue.d.ts +6 -6
  131. package/dist/src/components/IkPickerUser/index.d.ts +9 -9
  132. package/dist/src/components/IkPickerUser/src/avatar/Avatar.vue.d.ts +4 -4
  133. package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +5 -5
  134. package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +5 -5
  135. package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +5 -5
  136. package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +9 -9
  137. package/dist/src/components/IkPickerUser/src/svg/close_svg.vue.d.ts +1 -1
  138. package/dist/src/components/IkPickerUser/src/svg/group_svg.vue.d.ts +1 -1
  139. package/dist/src/components/IkPickerUser/src/svg/post_svg.vue.d.ts +1 -1
  140. package/dist/src/components/IkPickerUser/src/svg/role_svg.vue.d.ts +1 -1
  141. package/dist/src/components/IkPickerUser/src/svg/search_svg.vue.d.ts +1 -1
  142. package/dist/src/components/IkPickerUser/src/use-picker-data.d.ts +1 -1
  143. package/dist/src/components/IkPlayer/index.d.ts +10 -26
  144. package/dist/src/components/IkPlayer/src/Player.vue.d.ts +5 -5
  145. package/dist/src/components/IkPreviewFile/index.d.ts +10 -102
  146. package/dist/src/components/IkPreviewFile/src/IkPreviewFile.vue.d.ts +5 -5
  147. package/dist/src/components/IkPreviewFileDialog/index.d.ts +4 -4
  148. package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +4 -4
  149. package/dist/src/components/IkPrintConfig/index.d.ts +5 -5
  150. package/dist/src/components/IkPrintView/index.d.ts +5 -5
  151. package/dist/src/components/IkRadioGroup/index.d.ts +4 -4
  152. package/dist/src/components/IkRadioGroup/src/index.vue.d.ts +4 -4
  153. package/dist/src/components/IkSchedule/index.d.ts +17 -48
  154. package/dist/src/components/IkSearch/index.d.ts +24 -84
  155. package/dist/src/components/IkSearch/src/IkSearch.vue.d.ts +10 -10
  156. package/dist/src/components/IkSearch/src/IkSearchAuto.d.ts +5 -5
  157. package/dist/src/components/IkSearchHead/index.d.ts +5 -5
  158. package/dist/src/components/IkSearchHead/src/IkSearchHead.vue.d.ts +5 -5
  159. package/dist/src/components/IkSelectTag/index.d.ts +10 -25
  160. package/dist/src/components/IkSelectTag/src/index.vue.d.ts +5 -5
  161. package/dist/src/components/IkSideText/IkLinearIcon.vue.d.ts +4 -4
  162. package/dist/src/components/IkSideText/IkSideText.vue.d.ts +4 -4
  163. package/dist/src/components/IkSideText/index.d.ts +4 -4
  164. package/dist/src/components/IkStatu/index.d.ts +5 -5
  165. package/dist/src/components/IkStatu/src/index.vue.d.ts +5 -5
  166. package/dist/src/components/IkStatuOver/index.d.ts +5 -5
  167. package/dist/src/components/IkStatuOver/src/index.vue.d.ts +5 -5
  168. package/dist/src/components/IkSvgIcon/index.d.ts +12 -12
  169. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +4 -4
  170. package/dist/src/components/IkTemplateOfficeConfig/index.d.ts +6 -6
  171. package/dist/src/components/IkTinymce/index.d.ts +5 -5
  172. package/dist/src/components/IkTinymce/src/index.vue.d.ts +5 -5
  173. package/dist/src/components/IkTooltip/index.d.ts +9 -22
  174. package/dist/src/components/IkTooltip/src/index.vue.d.ts +5 -5
  175. package/dist/src/components/IkTree/IkTree.vue.d.ts +807 -127
  176. package/dist/src/components/IkTree/index.d.ts +2630 -611
  177. package/dist/src/components/IkUploadFile/index.d.ts +14 -135
  178. package/dist/src/components/IkUploadFile/src/index.vue.d.ts +7 -7
  179. package/dist/src/components/IkUploadImage/index.d.ts +10 -79
  180. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +5 -5
  181. package/dist/src/components/IkUploadImage/src/loading.vue.d.ts +1 -1
  182. package/dist/src/components/IkVerticalStepBar/index.d.ts +5 -5
  183. package/dist/src/components/IkVerticalStepBar/src/IkVerticalStepBar.vue.d.ts +5 -5
  184. package/dist/src/components/Provider/ProviderConfig.vue.d.ts +4 -4
  185. package/dist/src/components/Provider/index.d.ts +6 -27
  186. package/dist/src/iking-ui/defaults.d.ts +1 -1
  187. package/dist/src/iking-ui/index.d.ts +1 -1
  188. package/package.json +1 -1
  189. package/dist/IKApprovalProcessDetail/iking-web-ui-pro.css +0 -1
  190. package/dist/IKCalendar/ik.index.umd.js +0 -1
  191. package/dist/IKPreviewFile/iking-web-ui-pro.css +0 -1
  192. package/dist/IKVerticalStepBar/iking-web-ui-pro.css +0 -1
@@ -1,4 +1,4 @@
1
- (function(le,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue"),require("iking-utils-pro"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro","element-plus"],u):(le=typeof globalThis<"u"?globalThis:le||self,u(le.index={},le.vue,le["iking-utils-pro"],le["element-plus"]))})(this,function(le,u,re,Y){"use strict";const pe=(s,a)=>(s.install=r=>{for(const t of[s,...Object.values({})])r.component(t.name,t)},s),_t=(s,a)=>{var i,n,o,l;const r=(i=s==null?void 0:s.response)!=null&&i.data?ai((o=(n=s==null?void 0:s.response)==null?void 0:n.data)==null?void 0:o.suffix):((l=s.raw)==null?void 0:l.type)||ai(s[a.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 c in e)if(typeof t=="string"&&(t.includes(c)||t===c))return e[c];return"unknown"},Rn={".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"},ai=s=>{const a=s==null?void 0:s.toLocaleLowerCase(),r=a!=null&&a.startsWith(".")?a:`.${a}`;return r&&Rn[r]||"unknow"},Fn=s=>{let a="",r=["doc","docx"],t=["xls","xlsx"],e=["ppt","pptx"],i=["pdf"];return r.includes(s)&&(a="word"),t.includes(s)&&(a="cell"),e.includes(s)&&(a="slide"),i.includes(s)&&(a="text-pdf"),a},Mn={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"},Bn={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"},Vn={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"},Hn={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"},zn={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"},Un={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"},jn={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"},Wn={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"},$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"},Gn={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"},Kn={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"},Yn={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"},si=pe(u.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(s){const a=s,r=u.computed(()=>a.file?_t(a.file,a.fields):a.type);return(t,e)=>r.value==="image"?(u.openBlock(),u.createElementBlock("svg",Mn,e[0]||(e[0]=[u.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),u.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),u.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),u.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)]))):r.value==="zip"?(u.openBlock(),u.createElementBlock("svg",Bn,e[1]||(e[1]=[u.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),u.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)]))):r.value==="ppt"?(u.openBlock(),u.createElementBlock("svg",Vn,e[2]||(e[2]=[u.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),u.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)]))):r.value==="word"?(u.openBlock(),u.createElementBlock("svg",Hn,e[3]||(e[3]=[u.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),u.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)]))):r.value==="pdf"?(u.openBlock(),u.createElementBlock("svg",zn,e[4]||(e[4]=[u.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),u.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)]))):r.value==="txt"?(u.openBlock(),u.createElementBlock("svg",Un,e[5]||(e[5]=[u.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),u.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)]))):r.value==="audio"?(u.openBlock(),u.createElementBlock("svg",jn,e[6]||(e[6]=[u.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),u.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)]))):r.value==="video"?(u.openBlock(),u.createElementBlock("svg",Wn,e[7]||(e[7]=[u.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),u.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)]))):r.value==="excel"?(u.openBlock(),u.createElementBlock("svg",$n,e[8]||(e[8]=[u.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),u.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),u.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)]))):r.value==="exe"?(u.openBlock(),u.createElementBlock("svg",Gn,e[9]||(e[9]=[u.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),u.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),u.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),u.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)]))):r.value==="json"?(u.openBlock(),u.createElementBlock("svg",Kn,e[10]||(e[10]=[u.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),u.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),u.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)]))):(u.openBlock(),u.createElementBlock("svg",Yn,e[11]||(e[11]=[u.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),u.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),u.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)])))}}));/*! Element Plus Icons Vue v2.3.1 */var Xn=u.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[u.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),qn=Xn,Zn=u.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[u.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Jn=Zn,Qn=u.defineComponent({name:"Close",__name:"close",setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[u.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"})]))}}),li=Qn,er=u.defineComponent({name:"FullScreen",__name:"full-screen",setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[u.createElementVNode("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),tr=er,ir=u.defineComponent({name:"RefreshLeft",__name:"refresh-left",setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[u.createElementVNode("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),nr=ir,rr=u.defineComponent({name:"RefreshRight",__name:"refresh-right",setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[u.createElementVNode("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),or=rr,ar=u.defineComponent({name:"ScaleToOriginal",__name:"scale-to-original",setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[u.createElementVNode("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),sr=ar,lr=u.defineComponent({name:"ZoomIn",__name:"zoom-in",setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[u.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),ur=lr,cr=u.defineComponent({name:"ZoomOut",__name:"zoom-out",setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[u.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),fr=cr;const Ze=(s,a)=>{const r=s.__vccOpts||s;for(const[t,e]of a)r[t]=e;return r},hr=s=>({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",并行分支:"PARALLEL",子流程:"SUB_PROCESS",...s.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",...s.defaultFieldMap},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...s.statusWithoutApprover},multiple:!1,chooseType:[],statusOption:{发起:"INITIATE",等待:"WAIT",同意:"PASS",撤销:"REVOKE",拒绝:"REJECT",转交:"TRANSFER",加签:"APPEND",退回:"BACK",评论:"COMMENT",待执行:"WAITING",执行中:"RUNNING",...s.defaultStatus},listData:[]}),dr=(s,a,r)=>{let t="";switch(a){case s.nodeType.审批节点:r&&r.length==1?t="ikapprove-ziyuan":t="ikapprove-shenpi";break;case s.nodeType.办理节点:t="ikapprove-bianji";break;case s.nodeType.抄送节点:t="ikapprove-chaosong";break;case s.nodeType.并行分支:t="ikapprove-fenzhi";break;case s.nodeType.子流程:t="ikapprove-ziliucheng1";break;default:t="ikapprove-ziyuan"}return`ikapprove ${t}`},ui=["csv","djvu","doc","docm","docx","docxf","dot","dotm","dotx","epub","fb2","fodp","fods","fodt","htm","html","mht","odp","ods","odt","oform","otp","ots","ott","oxps","pdf","pot","potm","potx","pps","ppsm","ppsx","ppt","pptm","pptx","rtf","txt","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xml","xps","png","jpeg","jpg","webp","video","mp4","flv","tls"],kt=s=>{const a=u.inject("loadUrl"),r=u.computed(()=>s.loadUrl||s.fileUrl||(a==null?void 0:a.value)),t=u.inject("uploadUrl"),e=u.computed(()=>s.action||s.uploadUrl||(t==null?void 0:t.value)),i=u.inject("token"),n=u.computed(()=>s.token||(i==null?void 0:i.value)),o=u.inject("onlyofficeConfig"),l=u.computed(()=>s.onlyofficeConfig||(o==null?void 0:o.value)),c=u.inject("userInfo"),f=u.computed(()=>s.userInfo||(c==null?void 0:c.value)),h=[...ui,...ui.map(g=>g.toLocaleUpperCase())];return{cLoadUrl:r,cUploadUrl:e,cToken:n,cOnlyofficeConfig:l,cUserInfo:f,cOnlyofficePreviewType:h}},Ct=(s,a=2)=>{if(s===void 0)return"";if(s===0)return"0 B";const r=["B","KB","MB","GB","TB"],t=Math.floor(Math.log(s)/Math.log(1024));let e=s/Math.pow(1024,t);return(e%1===0?e.toFixed(a||0):e.toFixed(a))+" "+r[t]},Fe=(s,a)=>a?a.startsWith("http")?a:`${s||location.origin}${a}`:"",pr=["onClick"],gr={class:"flex"},mr={class:"fileName simple"},vr={key:0,class:"size",style:{"padding-right":"20px"}},yr=["onClick"],_r={class:"file-list"},kr={class:"flex"},Cr={class:"fileName simple"},wr={key:0,class:"size",style:{"padding-right":"20px"}},Er=["onClick"],br={class:"text"},Tr={class:"fileName"},Sr={class:"size"},xr=pe(u.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},showType:{type:String,default:"default"},showDownloadBtn:{type:Boolean,default:!0},showPreviewBtn:{type:Boolean,default:!0},showFileSize:{type:Boolean,default:!1}},emits:["handPreview"],setup(s,{emit:a}){const r=s,t=u.computed(()=>r.simple?"simple":r.showType),{cLoadUrl:e,cOnlyofficeConfig:i,cOnlyofficePreviewType:n}=kt(r),o=a,l=u.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...r.field})),c=u.ref({}),f=u.ref(!1),h=v=>{var y,C;c.value={...v,name:v.name,url:Fe(e.value,v[l.value.url]||((C=(y=v==null?void 0:v.response)==null?void 0:y.data)==null?void 0:C.id)||(v==null?void 0:v.id))},r.isOnlyOfficePreview&&(f.value=!0),o("handPreview",c.value)},g=v=>{re.ikFile.downloadFile(Fe(e.value,v[l.value.url]||v.attachmentId||v.id),v[l.value.name]||v.attachmentName)},m=u.computed(()=>re.paramType.isNumber(r.width)?`${r.width}px`:r.width),p=u.computed(()=>r.list.map(v=>{var C;const y=v[l.value.name]||v.attachmentName;return{...v,name:y,size:v[l.value.size]||(v==null?void 0:v.fileSize)||(v==null?void 0:v.attachmentSize),suffix:v[l.value.suffix]||(v==null?void 0:v.attachmentSuffix)||((C=y.split("."))==null?void 0:C.at(-1))}}));return(v,y)=>{var w,E,O;const C=u.resolveComponent("tmplate");return u.openBlock(),u.createElementBlock(u.Fragment,null,[(w=s.list)!=null&&w.length?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createCommentVNode(" 简单模式 "),t.value==="simple"?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(p.value,(T,R)=>(u.openBlock(),u.createElementBlock("div",{class:"iking-privew-annex simple",key:R,onClick:P=>h(T),style:u.normalizeStyle({width:m.value})},[u.createElementVNode("div",gr,[u.createElementVNode("div",mr,u.toDisplayString(T.name),1),s.showFileSize?(u.openBlock(),u.createElementBlock("div",vr,u.toDisplayString(T.size?`(${u.unref(Ct)(T.size)})`:""),1)):u.createCommentVNode("v-if",!0)]),u.createElementVNode("div",{class:u.normalizeClass(["flex flex-center",{"hover-show":s.iconHoverShow}])},[s.showDownloadBtn?(u.openBlock(),u.createBlock(u.unref(Ce),{key:0,name:"iksvg_daochu",onClick:u.withModifiers(P=>g(T),["stop"]),size:20},null,8,["onClick"])):u.createCommentVNode("v-if",!0),u.unref(n).includes(T.suffix)&&s.showPreviewBtn?(u.openBlock(),u.createBlock(u.unref(Ce),{key:1,name:"iksvg_yulan",size:20,onClick:u.withModifiers(P=>h(T),["stop"])},null,8,["onClick"])):u.createCommentVNode("v-if",!0),u.renderSlot(v.$slots,"operation",{data:{...T,findex:R}})],2)],12,pr))),128)):t.value==="simple-icon"?(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createCommentVNode(" 简单图标模式 "),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(p.value,(T,R)=>(u.openBlock(),u.createElementBlock("div",{class:"iking-privew-annex simple-icon",key:R,onClick:P=>h(T),style:u.normalizeStyle({width:m.value})},[u.createElementVNode("div",_r,[u.createVNode(u.unref(si),{file:T,style:u.normalizeStyle({height:`${s.iconSize}px`,marginRight:"10px"}),class:"ikui-w-auto",fields:l.value},null,8,["file","style","fields"]),u.createElementVNode("div",kr,[u.createElementVNode("div",Cr,u.toDisplayString(T.name),1),s.showFileSize?(u.openBlock(),u.createElementBlock("div",wr,u.toDisplayString(T.size?`(${u.unref(Ct)(T.size)})`:""),1)):u.createCommentVNode("v-if",!0)])]),s.showDownloadBtn?(u.openBlock(),u.createBlock(u.unref(Ce),{key:0,name:"iksvg_daochu",size:20,title:"下载",onClick:u.withModifiers(P=>g(T),["stop"])},null,8,["onClick"])):u.createCommentVNode("v-if",!0),u.unref(n).includes(T.suffix)&&s.showPreviewBtn?(u.openBlock(),u.createBlock(u.unref(Ce),{key:1,name:"iksvg_yulan",size:20,onClick:u.withModifiers(P=>h(T),["stop"])},null,8,["onClick"])):u.createCommentVNode("v-if",!0)],12,yr))),128))],64)):(u.openBlock(),u.createElementBlock(u.Fragment,{key:2},[u.createCommentVNode(" 默认模式 "),u.createVNode(C,null,{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(p.value,(T,R)=>{var P;return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["iking-privew-annex",{"is-bg":s.showBg}]),key:R,style:u.normalizeStyle({marginBottom:R==((P=s.list)==null?void 0:P.length)-1?"0":"10px",width:m.value})},[u.createElementVNode("div",{class:"file-card",onClick:W=>h(T)},[u.createVNode(u.unref(si),{file:T,style:u.normalizeStyle({height:`${s.iconSize}px`}),class:"ikui-w-auto",fields:l.value},null,8,["file","style","fields"]),u.createElementVNode("div",br,[u.createElementVNode("div",Tr,u.toDisplayString(T.name),1),u.createElementVNode("div",Sr,u.toDisplayString(u.unref(Ct)(T.size)),1)]),u.createElementVNode("div",{class:u.normalizeClass(["flex flex-center",{"hover-show":s.iconHoverShow}])},[s.showDownloadBtn?(u.openBlock(),u.createBlock(u.unref(Ce),{key:0,name:"iksvg_daochu",onClick:u.withModifiers(W=>g(T),["stop"]),bg:s.showBg,size:s.showBg?"default":20,title:"下载"},null,8,["onClick","bg","size"])):u.createCommentVNode("v-if",!0),u.unref(n).includes(T.suffix)&&s.showPreviewBtn?(u.openBlock(),u.createBlock(u.unref(Ce),{key:1,name:"iksvg_yulan",bg:s.showBg,size:s.showBg?"default":20,title:"预览",onClick:u.withModifiers(W=>h(T),["stop"])},null,8,["bg","size","onClick"])):u.createCommentVNode("v-if",!0),u.renderSlot(v.$slots,"operation",{data:{...T,findex:R}})],2)],8,Er)],6)}),128))]),_:3})],2112))],64)):u.createCommentVNode("v-if",!0),u.createVNode(u.unref(Ir),{show:f.value,"onUpdate:show":y[0]||(y[0]=T=>f.value=T),loadUrl:u.unref(e),file:c.value,onlyofficeServer:((E=u.unref(i))==null?void 0:E.serverUrl)||s.onlyofficeServer,onlyOfficeConfig:u.unref(i),onlyOfficeAccept:((O=u.unref(i))==null?void 0:O.accept)||s.onlyOfficeAccept},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig","onlyOfficeAccept"])],64)}}})),Ir=pe(u.defineComponent({__name:"IkPreviewFileDialog",props:u.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(s){const a=s,r=u.useModel(s,"show"),t=u.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize",...a.field})),e=u.ref(null),i=u.ref(null),n=u.reactive({image:!1,office:!1,video:!1}),o=c=>{var f,h,g,m,p,v,y;try{const C=((f=c==null?void 0:c.response)==null?void 0:f.data)||c,w=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(),O=C[t.value.name]||(C==null?void 0:C.attachmentName)||(C==null?void 0:C.originName);if(i.value={...c,name:c[t.value.name],url:Fe(a.loadUrl,w)},c&&_t(c,t.value)==="image"){n.image=!0;return}else if(c&&_t(c,t.value)==="video"){n.video=!0;return}else if((((g=a.onlyOfficeConfig)==null?void 0:g.accept)||a.onlyOfficeAccept).includes(E)){n.office=!0,e.value={...a.onlyOfficeConfig,editorConfig:{...((m=a.onlyOfficeConfig)==null?void 0:m.editorConfig)||{},customization:{...((v=(p=a.onlyOfficeConfig)==null?void 0:p.editorConfig)==null?void 0:v.customization)||{},review:{reviewDisplay:"final"}}},document:{key:re.buildUUID(),title:O,url:Fe(a.loadUrl,w),fileType:E,...((y=a.onlyOfficeConfig)==null?void 0:y.document)||{}},documentType:Fn(E)};return}}catch(C){console.info("预览错误: ",C)}};u.watch([r,a.file],([c,f])=>{c&&u.nextTick(()=>{o(a.file)})});const l=()=>{r.value=!1,n.office=!1,n.image=!1,n.video=!1,i.value=null};return(c,f)=>{var h,g,m;return r.value?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[(h=i.value)!=null&&h.url&&n.image?(u.openBlock(),u.createBlock(u.unref(ro),{key:0,onClose:f[0]||(f[0]=p=>l()),ref:"previewImgRef","url-list":[(g=i.value)==null?void 0:g.url],teleported:"","z-index":9999},null,8,["url-list"])):u.createCommentVNode("v-if",!0),u.createCommentVNode(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),u.createCommentVNode(" 文档类 "),u.createVNode(u.unref(ys),{modelValue:n.video,"onUpdate:modelValue":f[1]||(f[1]=p=>n.video=p),url:(m=i.value)==null?void 0:m.url},null,8,["modelValue","url"]),u.createVNode(u.unref(Br),{modelValue:n.office,"onUpdate:modelValue":f[2]||(f[2]=p=>n.office=p),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:u.withCtx(()=>{var p;return[u.createVNode(u.unref(Wr),{"config-options":e.value,"document-server-url":((p=s.onlyOfficeConfig)==null?void 0:p.serverUrl)||s.onlyofficeServer},null,8,["config-options","document-server-url"])]}),_:1},8,["modelValue"])],64)):u.createCommentVNode("v-if",!0)}}})),Pr={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},Ar={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},Lr=["xlink:href"],Dr=["src"],Nr={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},Or=["xlink:href"],Rr=["src"],Ce=pe(Ze(u.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(s){const a=s,r=u.computed(()=>a),t=u.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=u.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={pointerEvents:r.value.disabled?"none":"auto",...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-icon-deep-color":r.value.color,"--ik-icon-shallow-color":r.value.colorLight||re.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=u.resolveComponent("el-tooltip"),l=u.resolveComponent("el-button");return r.value.tableIconType==="icon"||!r.value.tableIconType?(u.openBlock(),u.createElementBlock("span",Pr,[r.value.notip||!r.value.title?(u.openBlock(),u.createElementBlock("i",{key:0,class:u.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:u.normalizeStyle(e.value)},[u.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),t.value==="iksig"?(u.openBlock(),u.createElementBlock("i",{key:0,class:u.normalizeClass(`iksig ${r.value.name}`),style:u.normalizeStyle(e.value)},null,6)):t.value==="svg"?(u.openBlock(),u.createElementBlock("svg",Ar,[u.createElementVNode("use",{"xlink:href":`#${r.value.name}`},null,8,Lr)])):t.value==="img"?(u.openBlock(),u.createElementBlock("img",{key:2,src:r.value.name,class:"h-[1em] w-[1em]"},null,8,Dr)):(u.openBlock(),u.createElementBlock("i",{key:3,class:u.normalizeClass(r.value.name),style:u.normalizeStyle(e.value)},null,6))],6)):(u.openBlock(),u.createBlock(o,{key:1,content:r.value.title,placement:"top"},{default:u.withCtx(()=>[u.createElementVNode("i",{class:u.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:u.normalizeStyle(e.value)},[t.value==="iksig"?(u.openBlock(),u.createElementBlock("i",{key:0,class:u.normalizeClass(`iksig ${r.value.name}`),style:u.normalizeStyle(e.value)},null,6)):t.value==="svg"?(u.openBlock(),u.createElementBlock("svg",Nr,[u.createElementVNode("use",{"xlink:href":`#${r.value.name}`},null,8,Or)])):t.value==="img"?(u.openBlock(),u.createElementBlock("img",{key:2,src:r.value.name,class:"h-[1em] w-[1em]"},null,8,Rr)):(u.openBlock(),u.createElementBlock("i",{key:3,class:u.normalizeClass(r.value.name),style:u.normalizeStyle(e.value)},null,6))],6)]),_:1},8,["content"]))])):(u.openBlock(),u.createBlock(l,{key:1,type:["warning","error"].includes(r.value.type)?"danger":""},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(r.value.title),1)]),_:1},8,["type"]))}}}),[["__scopeId","data-v-1eff3be4"]]));function wt(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}const Fr=Ze(u.defineComponent({__name:"CloseIcon",props:{showBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass({"exit-main-page-maximize":s.showBg&&s.fullscreen})},[u.createVNode(u.unref(Ce),{name:"iksvg_guanbidanchuang",title:"关闭",size:20,error:""})],2))}}),[["__scopeId","data-v-ddb34200"]]),Mr={class:"base-header"},Br=pe(u.defineComponent({__name:"IkBaseDialog",props:u.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(s){const a=s,r=u.useModel(s,"modelValue"),t=u.ref(a.fullscreen),e=()=>{t.value=!t.value},i=u.defineComponent({setup(){return()=>u.h(Fr,{showBg:a.showCloseBg,fullscreen:a.fullscreen})}});return(n,o)=>{const l=u.resolveComponent("el-dialog");return u.openBlock(),u.createBlock(l,u.mergeProps({modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=c=>r.value=c),"align-center":""},n.$attrs,{"close-icon":u.unref(i),class:`ik-base-dialog ${n.noHeader?"no-header":""} ${n.noFooter?"no-footer":""}`,fullscreen:t.value,"modal-class":"baseDialog"}),u.createSlots({icon:u.withCtx(()=>[u.renderSlot(n.$slots,"title",{},()=>[u.createTextVNode(u.toDisplayString(n.title),1)])]),header:u.withCtx(()=>[u.createElementVNode("div",Mr,[u.renderSlot(n.$slots,"header",{},()=>[u.createTextVNode(u.toDisplayString(n.title),1)])]),n.$attrs.showClose?(u.openBlock(),u.createBlock(u.unref(Ce),{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"])):u.createCommentVNode("v-if",!0)]),default:u.withCtx(()=>[u.renderSlot(n.$slots,"default")]),_:2},[n.$slots.footer?{name:"footer",fn:u.withCtx(()=>[u.renderSlot(n.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}));function Vr(s,a,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{c(t.next(f))}catch(h){n(h)}}function l(f){try{c(t.throw(f))}catch(h){n(h)}}function c(f){f.done?i(f.value):e(f.value).then(o,l)}c((t=t.apply(s,[])).next())})}function Hr(s,a){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(c){return function(f){return l([c,f])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;n&&(n=0,c[0]&&(r=0)),r;)try{if(t=1,e&&(i=c[0]&2?e.return:c[0]?e.throw||((i=e.return)&&i.call(e),0):e.next)&&!(i=i.call(e,c[1])).done)return i;switch(e=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,e=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=a.call(s,r)}catch(f){c=[6,f],e=0}finally{t=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var zr=function(s,a){return Vr(void 0,void 0,void 0,function(){return Hr(this,function(r){return[2,new Promise(function(t,e){try{if(window.DocsAPI)return t(null);var i=document.getElementById(a);if(i)var n=setInterval(function(){var l=i.getAttribute("loading");if(!l){if(clearInterval(n),window.DocsAPI)return t(null);var c=ci(a,s,t,e);i.remove(),document.body.appendChild(c)}},500);else{var o=ci(a,s,t,e);document.body.appendChild(o)}}catch(l){console.error(l)}})]})})},ci=function(s,a,r,t){var e=document.createElement("script");return e.id=s,e.type="text/javascript",e.src=a,e.async=!0,e.onload=function(){e.removeAttribute("loading"),r(null)},e.onerror=function(i){e.removeAttribute("loading"),t(i)},e.setAttribute("loading",""),e},Et=u.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 s=this,a=this.documentServerUrl;a.endsWith("/")||(a+="/");var r="".concat(a,"web-apps/apps/api/documents/api.js");zr(r,"onlyoffice-api-script").then(function(){return s.onLoad()}).catch(function(){s.onError(-2)})},unmounted:function(){var s,a=this.id||"";!((s=window==null?void 0:window.DocEditor)===null||s===void 0)&&s.instances[a]&&(window.DocEditor.instances[a].destroyEditor(),window.DocEditor.instances[a]=void 0)},watch:{config:{handler:function(s,a){this.onChangeProps()},deep:!0},document_fileType:function(s,a){this.onChangeProps()},document_title:function(s,a){this.onChangeProps()},documentType:function(s,a){this.onChangeProps()},editorConfig_lang:function(s,a){this.onChangeProps()},height:function(s,a){this.onChangeProps()},type:function(s,a){this.onChangeProps()},width:function(s,a){this.onChangeProps()}},methods:{onLoad:function(){var s,a;try{var r=this.id||"";if(window.DocsAPI||this.onError(-3),!((s=window==null?void 0:window.DocEditor)===null||s===void 0)&&s.instances[r]){console.log("Skip loading. Instance already exists",r);return}!((a=window==null?void 0:window.DocEditor)===null||a===void 0)&&a.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(s){var a;switch(s){case-2:a="Error load DocsAPI from "+this.documentServerUrl;break;case-3:a="DocsAPI is not defined";break;default:a="Unknown error loading component",s=-1}typeof this.onLoadComponentError>"u"?console.error(a):this.onLoadComponentError(s,a)},onAppReady:function(){var s=this.id||"";this.events_onAppReady(window.DocEditor.instances[s])},onChangeProps:function(){var s,a=this.id||"";!((s=window==null?void 0:window.DocEditor)===null||s===void 0)&&s.instances[a]&&(window.DocEditor.instances[a].destroyEditor(),window.DocEditor.instances[a]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const Ur=["id"];function jr(s,a,r,t,e,i){return u.openBlock(),u.createElementBlock("div",{id:s.id},null,8,Ur)}Et.render=jr,Et.__file="src/components/DocumentEditor.vue";const Wr=pe(u.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"}},setup(s){const a=s,r=u.ref({width:"100%",height:"100%",...a.configOptions||{},...a.configOptions}),t=()=>{console.info("文档加载完成",a.configOptions)};return(e,i)=>(u.openBlock(),u.createElementBlock("div",{style:u.normalizeStyle({height:a.officeHeight})},[u.createVNode(u.unref(Et),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":s.documentServerUrl,config:r.value,events_onDocumentReady:t},null,8,["id","document-server-url","config"])],4))}}));var fi;const hi=typeof window<"u",$r=s=>typeof s=="string",Gr=()=>{};hi&&((fi=window==null?void 0:window.navigator)!=null&&fi.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function di(s){return typeof s=="function"?s():u.unref(s)}function Kr(s){return s}function Yr(s){return u.getCurrentScope()?(u.onScopeDispose(s),!0):!1}function Xr(s){var a;const r=di(s);return(a=r==null?void 0:r.$el)!=null?a:r}const qr=hi?window:void 0;function Je(...s){let a,r,t,e;if($r(s[0])||Array.isArray(s[0])?([r,t,e]=s,a=qr):[a,r,t,e]=s,!a)return Gr;Array.isArray(r)||(r=[r]),Array.isArray(t)||(t=[t]);const i=[],n=()=>{i.forEach(f=>f()),i.length=0},o=(f,h,g,m)=>(f.addEventListener(h,g,m),()=>f.removeEventListener(h,g,m)),l=u.watch(()=>[Xr(a),di(e)],([f,h])=>{n(),f&&i.push(...r.flatMap(g=>t.map(m=>o(f,g,m,h))))},{immediate:!0,flush:"post"}),c=()=>{l(),n()};return Yr(c),c}const pi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gi="__vueuse_ssr_handlers__";pi[gi]=pi[gi]||{};var mi;(function(s){s.UP="UP",s.RIGHT="RIGHT",s.DOWN="DOWN",s.LEFT="LEFT",s.NONE="NONE"})(mi||(mi={}));var Zr=Object.defineProperty,vi=Object.getOwnPropertySymbols,Jr=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable,yi=(s,a,r)=>a in s?Zr(s,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[a]=r,eo=(s,a)=>{for(var r in a)Jr.call(a,r)&&yi(s,r,a[r]);if(vi)for(var r of vi(a))Qr.call(a,r)&&yi(s,r,a[r]);return s};eo({linear:Kr},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const to={urlList:{type:Array,default:()=>[]},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:["anonymous","use-credentials",""]}},io={close:()=>!0,switch:s=>re.paramType.isNumber(s),rotate:s=>re.paramType.isNumber(s)},no=["src","crossorigin"],ro=pe(u.defineComponent({name:"ElImageViewer",__name:"IkImageViewer",props:to,emits:io,setup(s,{expose:a,emit:r}){const t=F=>Object.keys(F),e={CONTAIN:{name:"contain",icon:u.markRaw(tr)},ORIGINAL:{name:"original",icon:u.markRaw(sr)}},i=s,n=r,{t:o}=Y.useLocale(),l=Y.useNamespace("image-viewer"),{nextZIndex:c}=Y.useZIndex(),f=u.ref(),h=u.ref([]),g=u.effectScope(),m=u.ref(!0),p=u.ref(i.initialIndex),v=u.shallowRef(e.CONTAIN),y=u.ref({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),C=u.ref(i.zIndex??c()),w=u.computed(()=>{const{urlList:F}=i;return F.length<=1}),E=u.computed(()=>p.value===0),O=u.computed(()=>p.value===i.urlList.length-1),T=u.computed(()=>i.urlList[p.value]),R=u.computed(()=>[l.e("btn"),l.e("prev"),l.is("disabled",!i.infinite&&E.value)]),P=u.computed(()=>[l.e("btn"),l.e("next"),l.is("disabled",!i.infinite&&O.value)]),W=u.computed(()=>{const{scale:F,deg:z,offsetX:G,offsetY:se,enableTransition:he}=y.value;let de=G/F,Ie=se/F;const qe=z*Math.PI/180,Nn=Math.cos(qe),On=Math.sin(qe);de=de*Nn+Ie*On,Ie=Ie*Nn-G/F*On;const oi={transform:`scale(${F}) rotate(${z}deg) translate(${de}px, ${Ie}px)`,transition:he?"transform .3s":""};return v.value.name===e.CONTAIN.name&&(oi.maxWidth=oi.maxHeight="100%"),oi});function j(){K(),n("close")}function I(){const F=re._.throttle(G=>{switch(G.code){case Y.EVENT_CODE.esc:i.closeOnPressEscape&&j();break;case Y.EVENT_CODE.space:An();break;case Y.EVENT_CODE.left:Ln();break;case Y.EVENT_CODE.up:Re("zoomIn");break;case Y.EVENT_CODE.right:Dn();break;case Y.EVENT_CODE.down:Re("zoomOut");break}}),z=re._.throttle(G=>{const se=G.deltaY||G.deltaX;Re(se<0?"zoomIn":"zoomOut",{zoomRate:i.zoomRate,enableTransition:!1})});g.run(()=>{Je(document,"keydown",F),Je(document,"wheel",z)})}function K(){g.stop()}function J(){m.value=!1}function ne(F){m.value=!1,F.target.alt=o("el.image.error")}function ke(F){if(m.value||F.button!==0||!f.value)return;y.value.enableTransition=!1;const{offsetX:z,offsetY:G}=y.value,se=F.pageX,he=F.pageY,de=re._.throttle(qe=>{y.value={...y.value,offsetX:z+qe.pageX-se,offsetY:G+qe.pageY-he}}),Ie=Je(document,"mousemove",de);Je(document,"mouseup",()=>{Ie()}),F.preventDefault()}function Pn(){y.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function An(){if(m.value)return;const F=t(e),z=Object.values(e),G=v.value.name,he=((z==null?void 0:z.findIndex(de=>de.name===G))+1)%F.length;v.value=e[F[he]],Pn()}function ri(F){const z=i.urlList.length;p.value=(F+z)%z}function Ln(){E.value&&!i.infinite||ri(p.value-1)}function Dn(){O.value&&!i.infinite||ri(p.value+1)}function Re(F,z={}){if(m.value)return;const{minScale:G,maxScale:se}=i,{zoomRate:he,rotateDeg:de,enableTransition:Ie}={zoomRate:i.zoomRate,rotateDeg:90,enableTransition:!0,...z};switch(F){case"zoomOut":y.value.scale>G&&(y.value.scale=Number.parseFloat((y.value.scale/he).toFixed(3)));break;case"zoomIn":y.value.scale<se&&(y.value.scale=Number.parseFloat((y.value.scale*he).toFixed(3)));break;case"clockwise":y.value.deg+=de,n("rotate",y.value.deg);break;case"anticlockwise":y.value.deg-=de,n("rotate",y.value.deg);break}y.value.enableTransition=Ie}return u.watch(T,()=>{u.nextTick(()=>{const F=h.value[0];F!=null&&F.complete||(m.value=!0)})}),u.watch(p,F=>{Pn(),n("switch",F)}),u.onMounted(()=>{var F,z;I(),(z=(F=f.value)==null?void 0:F.focus)==null||z.call(F)}),a({setActiveItem:ri}),(F,z)=>(u.openBlock(),u.createBlock(u.Teleport,{to:"body"},[u.createVNode(u.Transition,{name:"viewer-fade",appear:""},{default:u.withCtx(()=>[u.createElementVNode("div",{ref_key:"wrapper",ref:f,tabindex:-1,class:u.normalizeClass(u.unref(l).e("wrapper")),style:u.normalizeStyle({zIndex:C.value})},[u.createElementVNode("div",{class:u.normalizeClass(u.unref(l).e("mask")),onClick:z[0]||(z[0]=u.withModifiers(G=>F.hideOnClickModal&&j(),["self"]))},null,2),u.createCommentVNode(" CLOSE "),u.createElementVNode("span",{class:u.normalizeClass([u.unref(l).e("btn"),u.unref(l).e("close")]),onClick:j},[u.createVNode(u.unref(Y.ElIcon),null,{default:u.withCtx(()=>[u.createVNode(u.unref(li))]),_:1})],2),u.createCommentVNode(" ARROW "),w.value?u.createCommentVNode("v-if",!0):(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createElementVNode("span",{class:u.normalizeClass(R.value),onClick:Ln},[u.createVNode(u.unref(Y.ElIcon),null,{default:u.withCtx(()=>[u.createVNode(u.unref(qn))]),_:1})],2),u.createElementVNode("span",{class:u.normalizeClass(P.value),onClick:Dn},[u.createVNode(u.unref(Y.ElIcon),null,{default:u.withCtx(()=>[u.createVNode(u.unref(Jn))]),_:1})],2)],64)),u.createCommentVNode(" ACTIONS "),u.createElementVNode("div",{class:u.normalizeClass([u.unref(l).e("btn"),u.unref(l).e("actions")])},[u.createElementVNode("div",{class:u.normalizeClass(u.unref(l).e("actions__inner"))},[u.createVNode(u.unref(Y.ElIcon),{onClick:z[1]||(z[1]=G=>Re("zoomOut"))},{default:u.withCtx(()=>[u.createVNode(u.unref(fr))]),_:1}),u.createVNode(u.unref(Y.ElIcon),{onClick:z[2]||(z[2]=G=>Re("zoomIn"))},{default:u.withCtx(()=>[u.createVNode(u.unref(ur))]),_:1}),u.createElementVNode("i",{class:u.normalizeClass(u.unref(l).e("actions__divider"))},null,2),u.createVNode(u.unref(Y.ElIcon),{onClick:An},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(v.value.icon)))]),_:1}),u.createElementVNode("i",{class:u.normalizeClass(u.unref(l).e("actions__divider"))},null,2),u.createVNode(u.unref(Y.ElIcon),{onClick:z[3]||(z[3]=G=>Re("anticlockwise"))},{default:u.withCtx(()=>[u.createVNode(u.unref(nr))]),_:1}),u.createVNode(u.unref(Y.ElIcon),{onClick:z[4]||(z[4]=G=>Re("clockwise"))},{default:u.withCtx(()=>[u.createVNode(u.unref(or))]),_:1})],2)],2),u.createCommentVNode(" CANVAS "),u.createElementVNode("div",{class:u.normalizeClass(u.unref(l).e("canvas"))},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(F.urlList,(G,se)=>u.withDirectives((u.openBlock(),u.createElementBlock("img",{ref_for:!0,ref:he=>h.value[se]=he,key:G,src:G,style:u.normalizeStyle(W.value),class:u.normalizeClass(u.unref(l).e("img")),crossorigin:F.crossorigin,onLoad:J,onError:ne,onMousedown:ke},null,46,no)),[[u.vShow,se===p.value]])),128))],2),u.renderSlot(F.$slots,"default")],6)]),_:3})]))}}));function _i(s,a){var r=Object.keys(s);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(s);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable})),r.push.apply(r,t)}return r}function $(s){for(var a=1;a<arguments.length;a++){var r=arguments[a]!=null?arguments[a]:{};a%2?_i(Object(r),!0).forEach(function(t){k(s,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(r)):_i(Object(r)).forEach(function(t){Object.defineProperty(s,t,Object.getOwnPropertyDescriptor(r,t))})}return s}function q(s){"@babel/helpers - typeof";return q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},q(s)}function S(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function ki(s,a){for(var r=0;r<a.length;r++){var t=a[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(s,Ci(t.key),t)}}function x(s,a,r){return a&&ki(s.prototype,a),r&&ki(s,r),Object.defineProperty(s,"prototype",{writable:!1}),s}function k(s,a,r){return a=Ci(a),a in s?Object.defineProperty(s,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):s[a]=r,s}function A(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),a&&bt(s,a)}function D(s){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},D(s)}function bt(s,a){return bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},bt(s,a)}function oo(){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 _(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function Tt(s,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _(s)}function L(s){var a=oo();return function(){var t=D(s),e;if(a){var i=D(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return Tt(this,e)}}function ao(s,a){for(;!Object.prototype.hasOwnProperty.call(s,a)&&(s=D(s),s!==null););return s}function N(){return typeof Reflect<"u"&&Reflect.get?N=Reflect.get.bind():N=function(a,r,t){var e=ao(a,r);if(e){var i=Object.getOwnPropertyDescriptor(e,r);return i.get?i.get.call(arguments.length<3?a:t):i.value}},N.apply(this,arguments)}function oe(s){return so(s)||lo(s)||uo(s)||co()}function so(s){if(Array.isArray(s))return St(s)}function lo(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}function uo(s,a){if(s){if(typeof s=="string")return St(s,a);var r=Object.prototype.toString.call(s).slice(8,-1);if(r==="Object"&&s.constructor&&(r=s.constructor.name),r==="Map"||r==="Set")return Array.from(s);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return St(s,a)}}function St(s,a){(a==null||a>s.length)&&(a=s.length);for(var r=0,t=new Array(a);r<a;r++)t[r]=s[r];return t}function co(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1
+ (function(le,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue"),require("iking-utils-pro"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils-pro","element-plus"],u):(le=typeof globalThis<"u"?globalThis:le||self,u(le.index={},le.vue,le["iking-utils-pro"],le["element-plus"]))})(this,function(le,u,re,Y){"use strict";const pe=(s,a)=>(s.install=r=>{for(const t of[s,...Object.values({})])r.component(t.name,t)},s),_t=(s,a)=>{var i,n,o,l;const r=(i=s==null?void 0:s.response)!=null&&i.data?ai((o=(n=s==null?void 0:s.response)==null?void 0:n.data)==null?void 0:o.suffix):((l=s.raw)==null?void 0:l.type)||ai(s[a.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 c in e)if(typeof t=="string"&&(t.includes(c)||t===c))return e[c];return"unknown"},Rn={".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"},ai=s=>{const a=s==null?void 0:s.toLocaleLowerCase(),r=a!=null&&a.startsWith(".")?a:`.${a}`;return r&&Rn[r]||"unknow"},Fn=s=>{let a="",r=["doc","docx"],t=["xls","xlsx"],e=["ppt","pptx"],i=["pdf"];return r.includes(s)&&(a="word"),t.includes(s)&&(a="cell"),e.includes(s)&&(a="slide"),i.includes(s)&&(a="text-pdf"),a},Mn={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"},Bn={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"},Vn={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"},Hn={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"},zn={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"},Un={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"},jn={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"},Wn={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"},$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"},Gn={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"},Kn={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"},Yn={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"},si=pe(u.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(s){const a=s,r=u.computed(()=>a.file?_t(a.file,a.fields):a.type);return(t,e)=>r.value==="image"?(u.openBlock(),u.createElementBlock("svg",Mn,e[0]||(e[0]=[u.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),u.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),u.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),u.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)]))):r.value==="zip"?(u.openBlock(),u.createElementBlock("svg",Bn,e[1]||(e[1]=[u.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),u.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)]))):r.value==="ppt"?(u.openBlock(),u.createElementBlock("svg",Vn,e[2]||(e[2]=[u.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),u.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)]))):r.value==="word"?(u.openBlock(),u.createElementBlock("svg",Hn,e[3]||(e[3]=[u.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),u.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)]))):r.value==="pdf"?(u.openBlock(),u.createElementBlock("svg",zn,e[4]||(e[4]=[u.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),u.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)]))):r.value==="txt"?(u.openBlock(),u.createElementBlock("svg",Un,e[5]||(e[5]=[u.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),u.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)]))):r.value==="audio"?(u.openBlock(),u.createElementBlock("svg",jn,e[6]||(e[6]=[u.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),u.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)]))):r.value==="video"?(u.openBlock(),u.createElementBlock("svg",Wn,e[7]||(e[7]=[u.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),u.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)]))):r.value==="excel"?(u.openBlock(),u.createElementBlock("svg",$n,e[8]||(e[8]=[u.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),u.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),u.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)]))):r.value==="exe"?(u.openBlock(),u.createElementBlock("svg",Gn,e[9]||(e[9]=[u.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),u.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),u.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),u.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)]))):r.value==="json"?(u.openBlock(),u.createElementBlock("svg",Kn,e[10]||(e[10]=[u.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),u.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),u.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)]))):(u.openBlock(),u.createElementBlock("svg",Yn,e[11]||(e[11]=[u.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),u.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),u.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)])))}}));/*! Element Plus Icons Vue v2.3.1 */var Xn=u.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[u.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),qn=Xn,Zn=u.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[u.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Jn=Zn,Qn=u.defineComponent({name:"Close",__name:"close",setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[u.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"})]))}}),li=Qn,er=u.defineComponent({name:"FullScreen",__name:"full-screen",setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[u.createElementVNode("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),tr=er,ir=u.defineComponent({name:"RefreshLeft",__name:"refresh-left",setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[u.createElementVNode("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),nr=ir,rr=u.defineComponent({name:"RefreshRight",__name:"refresh-right",setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[u.createElementVNode("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),or=rr,ar=u.defineComponent({name:"ScaleToOriginal",__name:"scale-to-original",setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[u.createElementVNode("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),sr=ar,lr=u.defineComponent({name:"ZoomIn",__name:"zoom-in",setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[u.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),ur=lr,cr=u.defineComponent({name:"ZoomOut",__name:"zoom-out",setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[u.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),fr=cr;const Ze=(s,a)=>{const r=s.__vccOpts||s;for(const[t,e]of a)r[t]=e;return r},hr=s=>({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",并行分支:"PARALLEL",子流程:"SUB_PROCESS",...s.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",...s.defaultFieldMap},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...s.statusWithoutApprover},multiple:!1,chooseType:[],statusOption:{发起:"INITIATE",等待:"WAIT",同意:"PASS",撤销:"REVOKE",拒绝:"REJECT",转交:"TRANSFER",加签:"APPEND",退回:"BACK",评论:"COMMENT",待执行:"WAITING",执行中:"RUNNING",...s.defaultStatus},listData:[]}),dr=(s,a,r)=>{let t="";switch(a){case s.nodeType.审批节点:r&&r.length==1?t="ikapprove-ziyuan":t="ikapprove-shenpi";break;case s.nodeType.办理节点:t="ikapprove-bianji";break;case s.nodeType.抄送节点:t="ikapprove-chaosong";break;case s.nodeType.并行分支:t="ikapprove-fenzhi";break;case s.nodeType.子流程:t="ikapprove-ziliucheng1";break;default:t="ikapprove-ziyuan"}return`ikapprove ${t}`},ui=["csv","djvu","doc","docm","docx","docxf","dot","dotm","dotx","epub","fb2","fodp","fods","fodt","htm","html","mht","odp","ods","odt","oform","otp","ots","ott","oxps","pdf","pot","potm","potx","pps","ppsm","ppsx","ppt","pptm","pptx","rtf","txt","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xml","xps","png","jpeg","jpg","webp","video","mp4","flv","tls"],kt=s=>{const a=u.inject("loadUrl"),r=u.computed(()=>s.loadUrl||s.fileUrl||(a==null?void 0:a.value)),t=u.inject("uploadUrl"),e=u.computed(()=>s.action||s.uploadUrl||(t==null?void 0:t.value)),i=u.inject("token"),n=u.computed(()=>s.token||(i==null?void 0:i.value)),o=u.inject("onlyofficeConfig"),l=u.computed(()=>s.onlyofficeConfig||(o==null?void 0:o.value)),c=u.inject("userInfo"),f=u.computed(()=>s.userInfo||(c==null?void 0:c.value)),h=[...ui,...ui.map(g=>g.toLocaleUpperCase())];return{cLoadUrl:r,cUploadUrl:e,cToken:n,cOnlyofficeConfig:l,cUserInfo:f,cOnlyofficePreviewType:h}},Ct=(s,a=2)=>{if(s===void 0)return"";if(s===0)return"0 B";const r=["B","KB","MB","GB","TB"],t=Math.floor(Math.log(s)/Math.log(1024));let e=s/Math.pow(1024,t);return(e%1===0?e.toFixed(a||0):e.toFixed(a))+" "+r[t]},Fe=(s,a)=>a?a.startsWith("http")?a:`${s||location.origin}${a}`:"",pr=["onClick"],gr={class:"flex"},mr={class:"fileName simple"},vr={key:0,class:"size",style:{"padding-right":"20px"}},yr=["onClick"],_r={class:"file-list"},kr={class:"flex"},Cr={class:"fileName simple"},wr={key:0,class:"size",style:{"padding-right":"20px"}},Er=["onClick"],br={class:"text"},Tr={class:"fileName"},Sr={class:"size"},xr=pe(u.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},showType:{type:String,default:"default"},showDownloadBtn:{type:Boolean,default:!0},showPreviewBtn:{type:Boolean,default:!0},showFileSize:{type:Boolean,default:!1}},emits:["handPreview"],setup(s,{emit:a}){const r=s,t=u.computed(()=>r.simple?"simple":r.showType),{cLoadUrl:e,cOnlyofficeConfig:i,cOnlyofficePreviewType:n}=kt(r),o=a,l=u.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...r.field})),c=u.ref({}),f=u.ref(!1),h=v=>{var y,C;c.value={...v,name:v.name,url:Fe(e.value,v[l.value.url]||((C=(y=v==null?void 0:v.response)==null?void 0:y.data)==null?void 0:C.id)||(v==null?void 0:v.id))},r.isOnlyOfficePreview&&(f.value=!0),o("handPreview",c.value)},g=v=>{re.ikFile.downloadFile(Fe(e.value,v[l.value.url]||v.attachmentId||v.id),v[l.value.name]||v.attachmentName)},m=u.computed(()=>re.paramType.isNumber(r.width)?`${r.width}px`:r.width),p=u.computed(()=>r.list.map(v=>{var C;const y=v[l.value.name]||v.attachmentName;return{...v,name:y,size:v[l.value.size]||(v==null?void 0:v.fileSize)||(v==null?void 0:v.attachmentSize),suffix:v[l.value.suffix]||(v==null?void 0:v.attachmentSuffix)||((C=y.split("."))==null?void 0:C.at(-1))}}));return(v,y)=>{var w,E,O;const C=u.resolveComponent("tmplate");return u.openBlock(),u.createElementBlock(u.Fragment,null,[(w=s.list)!=null&&w.length?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createCommentVNode(" 简单模式 "),t.value==="simple"?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(p.value,(T,R)=>(u.openBlock(),u.createElementBlock("div",{class:"iking-privew-annex simple",key:R,onClick:P=>h(T),style:u.normalizeStyle({width:m.value})},[u.createElementVNode("div",gr,[u.createElementVNode("div",mr,u.toDisplayString(T.name),1),s.showFileSize?(u.openBlock(),u.createElementBlock("div",vr,u.toDisplayString(T.size?`(${u.unref(Ct)(T.size)})`:""),1)):u.createCommentVNode("v-if",!0)]),u.createElementVNode("div",{class:u.normalizeClass(["flex flex-center",{"hover-show":s.iconHoverShow}])},[s.showDownloadBtn?(u.openBlock(),u.createBlock(u.unref(Ce),{key:0,name:"iksvg_daochu",onClick:u.withModifiers(P=>g(T),["stop"]),size:20},null,8,["onClick"])):u.createCommentVNode("v-if",!0),u.unref(n).includes(T.suffix)&&s.showPreviewBtn?(u.openBlock(),u.createBlock(u.unref(Ce),{key:1,name:"iksvg_yulan",size:20,onClick:u.withModifiers(P=>h(T),["stop"])},null,8,["onClick"])):u.createCommentVNode("v-if",!0),u.renderSlot(v.$slots,"operation",{data:{...T,findex:R}})],2)],12,pr))),128)):t.value==="simple-icon"?(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createCommentVNode(" 简单图标模式 "),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(p.value,(T,R)=>(u.openBlock(),u.createElementBlock("div",{class:"iking-privew-annex simple-icon",key:R,onClick:P=>h(T),style:u.normalizeStyle({width:m.value})},[u.createElementVNode("div",_r,[u.createVNode(u.unref(si),{file:T,style:u.normalizeStyle({height:`${s.iconSize}px`,marginRight:"10px"}),class:"ikui-w-auto",fields:l.value},null,8,["file","style","fields"]),u.createElementVNode("div",kr,[u.createElementVNode("div",Cr,u.toDisplayString(T.name),1),s.showFileSize?(u.openBlock(),u.createElementBlock("div",wr,u.toDisplayString(T.size?`(${u.unref(Ct)(T.size)})`:""),1)):u.createCommentVNode("v-if",!0)])]),s.showDownloadBtn?(u.openBlock(),u.createBlock(u.unref(Ce),{key:0,name:"iksvg_daochu",size:20,title:"下载",onClick:u.withModifiers(P=>g(T),["stop"])},null,8,["onClick"])):u.createCommentVNode("v-if",!0),u.unref(n).includes(T.suffix)&&s.showPreviewBtn?(u.openBlock(),u.createBlock(u.unref(Ce),{key:1,name:"iksvg_yulan",size:20,onClick:u.withModifiers(P=>h(T),["stop"])},null,8,["onClick"])):u.createCommentVNode("v-if",!0)],12,yr))),128))],64)):(u.openBlock(),u.createElementBlock(u.Fragment,{key:2},[u.createCommentVNode(" 默认模式 "),u.createVNode(C,null,{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(p.value,(T,R)=>{var P;return u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["iking-privew-annex",{"is-bg":s.showBg}]),key:R,style:u.normalizeStyle({marginBottom:R==((P=s.list)==null?void 0:P.length)-1?"0":"10px",width:m.value})},[u.createElementVNode("div",{class:"file-card",onClick:W=>h(T)},[u.createVNode(u.unref(si),{file:T,style:u.normalizeStyle({height:`${s.iconSize}px`}),class:"ikui-w-auto",fields:l.value},null,8,["file","style","fields"]),u.createElementVNode("div",br,[u.createElementVNode("div",Tr,u.toDisplayString(T.name),1),u.createElementVNode("div",Sr,u.toDisplayString(u.unref(Ct)(T.size)),1)]),u.createElementVNode("div",{class:u.normalizeClass(["flex flex-center",{"hover-show":s.iconHoverShow}])},[s.showDownloadBtn?(u.openBlock(),u.createBlock(u.unref(Ce),{key:0,name:"iksvg_daochu",onClick:u.withModifiers(W=>g(T),["stop"]),bg:s.showBg,size:s.showBg?"default":20,title:"下载"},null,8,["onClick","bg","size"])):u.createCommentVNode("v-if",!0),u.unref(n).includes(T.suffix)&&s.showPreviewBtn?(u.openBlock(),u.createBlock(u.unref(Ce),{key:1,name:"iksvg_yulan",bg:s.showBg,size:s.showBg?"default":20,title:"预览",onClick:u.withModifiers(W=>h(T),["stop"])},null,8,["bg","size","onClick"])):u.createCommentVNode("v-if",!0),u.renderSlot(v.$slots,"operation",{data:{...T,findex:R}})],2)],8,Er)],6)}),128))]),_:3})],2112))],64)):u.createCommentVNode("v-if",!0),u.createVNode(u.unref(Ir),{show:f.value,"onUpdate:show":y[0]||(y[0]=T=>f.value=T),loadUrl:u.unref(e),file:c.value,onlyofficeServer:((E=u.unref(i))==null?void 0:E.serverUrl)||s.onlyofficeServer,onlyOfficeConfig:u.unref(i),onlyOfficeAccept:((O=u.unref(i))==null?void 0:O.accept)||s.onlyOfficeAccept},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig","onlyOfficeAccept"])],64)}}})),Ir=pe(u.defineComponent({__name:"IkPreviewFileDialog",props:u.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(s){const a=s,r=u.useModel(s,"show"),t=u.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize",...a.field})),e=u.ref(null),i=u.ref(null),n=u.reactive({image:!1,office:!1,video:!1}),o=c=>{var f,h,g,m,p,v,y;try{const C=((f=c==null?void 0:c.response)==null?void 0:f.data)||c,w=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(),O=C[t.value.name]||(C==null?void 0:C.attachmentName)||(C==null?void 0:C.originName);if(i.value={...c,name:c[t.value.name],url:Fe(a.loadUrl,w)},c&&_t(c,t.value)==="image"){n.image=!0;return}else if(c&&_t(c,t.value)==="video"){n.video=!0;return}else if((((g=a.onlyOfficeConfig)==null?void 0:g.accept)||a.onlyOfficeAccept).includes(E)){n.office=!0,e.value={...a.onlyOfficeConfig,editorConfig:{...((m=a.onlyOfficeConfig)==null?void 0:m.editorConfig)||{},customization:{...((v=(p=a.onlyOfficeConfig)==null?void 0:p.editorConfig)==null?void 0:v.customization)||{},review:{reviewDisplay:"final"}}},document:{key:re.buildUUID(),title:O,url:Fe(a.loadUrl,w),fileType:E,...((y=a.onlyOfficeConfig)==null?void 0:y.document)||{}},documentType:Fn(E)};return}}catch(C){console.info("预览错误: ",C)}};u.watch([r,a.file],([c,f])=>{c&&u.nextTick(()=>{o(a.file)})});const l=()=>{r.value=!1,n.office=!1,n.image=!1,n.video=!1,i.value=null};return(c,f)=>{var h,g,m;return r.value?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[(h=i.value)!=null&&h.url&&n.image?(u.openBlock(),u.createBlock(u.unref(ro),{key:0,onClose:f[0]||(f[0]=p=>l()),ref:"previewImgRef","url-list":[(g=i.value)==null?void 0:g.url],teleported:"","z-index":9999},null,8,["url-list"])):u.createCommentVNode("v-if",!0),u.createCommentVNode(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),u.createCommentVNode(" 文档类 "),u.createVNode(u.unref(ys),{modelValue:n.video,"onUpdate:modelValue":f[1]||(f[1]=p=>n.video=p),url:(m=i.value)==null?void 0:m.url},null,8,["modelValue","url"]),u.createVNode(u.unref(Br),{modelValue:n.office,"onUpdate:modelValue":f[2]||(f[2]=p=>n.office=p),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:u.withCtx(()=>{var p;return[u.createVNode(u.unref(Wr),{"config-options":e.value,"document-server-url":((p=s.onlyOfficeConfig)==null?void 0:p.serverUrl)||s.onlyofficeServer},null,8,["config-options","document-server-url"])]}),_:1},8,["modelValue"])],64)):u.createCommentVNode("v-if",!0)}}})),Pr={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},Ar={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},Lr=["xlink:href"],Dr=["src"],Nr={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},Or=["xlink:href"],Rr=["src"],Ce=pe(Ze(u.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(s){const a=s,r=u.computed(()=>a),t=u.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=u.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={pointerEvents:r.value.disabled?"none":"auto",...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-icon-deep-color":r.value.color,"--ik-icon-shallow-color":r.value.colorLight||re.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=u.resolveComponent("el-tooltip"),l=u.resolveComponent("el-button");return r.value.tableIconType==="icon"||!r.value.tableIconType?(u.openBlock(),u.createElementBlock("span",Pr,[r.value.notip||!r.value.title?(u.openBlock(),u.createElementBlock("i",{key:0,class:u.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:u.normalizeStyle(e.value)},[u.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),t.value==="iksig"?(u.openBlock(),u.createElementBlock("i",{key:0,class:u.normalizeClass(`iksig ${r.value.name}`),style:u.normalizeStyle(e.value)},null,6)):t.value==="svg"?(u.openBlock(),u.createElementBlock("svg",Ar,[u.createElementVNode("use",{"xlink:href":`#${r.value.name}`},null,8,Lr)])):t.value==="img"?(u.openBlock(),u.createElementBlock("img",{key:2,src:r.value.name,class:"h-[1em] w-[1em]"},null,8,Dr)):(u.openBlock(),u.createElementBlock("i",{key:3,class:u.normalizeClass(r.value.name),style:u.normalizeStyle(e.value)},null,6))],6)):(u.openBlock(),u.createBlock(o,{key:1,content:r.value.title,placement:"top"},{default:u.withCtx(()=>[u.createElementVNode("i",{class:u.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:u.normalizeStyle(e.value)},[t.value==="iksig"?(u.openBlock(),u.createElementBlock("i",{key:0,class:u.normalizeClass(`iksig ${r.value.name}`),style:u.normalizeStyle(e.value)},null,6)):t.value==="svg"?(u.openBlock(),u.createElementBlock("svg",Nr,[u.createElementVNode("use",{"xlink:href":`#${r.value.name}`},null,8,Or)])):t.value==="img"?(u.openBlock(),u.createElementBlock("img",{key:2,src:r.value.name,class:"h-[1em] w-[1em]"},null,8,Rr)):(u.openBlock(),u.createElementBlock("i",{key:3,class:u.normalizeClass(r.value.name),style:u.normalizeStyle(e.value)},null,6))],6)]),_:1},8,["content"]))])):(u.openBlock(),u.createBlock(l,{key:1,type:["warning","error"].includes(r.value.type)?"danger":""},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(r.value.title),1)]),_:1},8,["type"]))}}}),[["__scopeId","data-v-bd4bda5f"]]));function wt(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}const Fr=Ze(u.defineComponent({__name:"CloseIcon",props:{showBg:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1}},setup(s){return(a,r)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass({"exit-main-page-maximize":s.showBg&&s.fullscreen})},[u.createVNode(u.unref(Ce),{name:"iksvg_guanbidanchuang",title:"关闭",size:20,error:""})],2))}}),[["__scopeId","data-v-ddb34200"]]),Mr={class:"base-header"},Br=pe(u.defineComponent({__name:"IkBaseDialog",props:u.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(s){const a=s,r=u.useModel(s,"modelValue"),t=u.ref(a.fullscreen),e=()=>{t.value=!t.value},i=u.defineComponent({setup(){return()=>u.h(Fr,{showBg:a.showCloseBg,fullscreen:a.fullscreen})}});return(n,o)=>{const l=u.resolveComponent("el-dialog");return u.openBlock(),u.createBlock(l,u.mergeProps({modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=c=>r.value=c),"align-center":""},n.$attrs,{"close-icon":u.unref(i),class:`ik-base-dialog ${n.noHeader?"no-header":""} ${n.noFooter?"no-footer":""}`,fullscreen:t.value,"modal-class":"baseDialog"}),u.createSlots({icon:u.withCtx(()=>[u.renderSlot(n.$slots,"title",{},()=>[u.createTextVNode(u.toDisplayString(n.title),1)])]),header:u.withCtx(()=>[u.createElementVNode("div",Mr,[u.renderSlot(n.$slots,"header",{},()=>[u.createTextVNode(u.toDisplayString(n.title),1)])]),n.$attrs.showClose?(u.openBlock(),u.createBlock(u.unref(Ce),{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"])):u.createCommentVNode("v-if",!0)]),default:u.withCtx(()=>[u.renderSlot(n.$slots,"default")]),_:2},[n.$slots.footer?{name:"footer",fn:u.withCtx(()=>[u.renderSlot(n.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","close-icon","class","fullscreen"])}}}));function Vr(s,a,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{c(t.next(f))}catch(h){n(h)}}function l(f){try{c(t.throw(f))}catch(h){n(h)}}function c(f){f.done?i(f.value):e(f.value).then(o,l)}c((t=t.apply(s,[])).next())})}function Hr(s,a){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(c){return function(f){return l([c,f])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;n&&(n=0,c[0]&&(r=0)),r;)try{if(t=1,e&&(i=c[0]&2?e.return:c[0]?e.throw||((i=e.return)&&i.call(e),0):e.next)&&!(i=i.call(e,c[1])).done)return i;switch(e=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,e=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=a.call(s,r)}catch(f){c=[6,f],e=0}finally{t=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var zr=function(s,a){return Vr(void 0,void 0,void 0,function(){return Hr(this,function(r){return[2,new Promise(function(t,e){try{if(window.DocsAPI)return t(null);var i=document.getElementById(a);if(i)var n=setInterval(function(){var l=i.getAttribute("loading");if(!l){if(clearInterval(n),window.DocsAPI)return t(null);var c=ci(a,s,t,e);i.remove(),document.body.appendChild(c)}},500);else{var o=ci(a,s,t,e);document.body.appendChild(o)}}catch(l){console.error(l)}})]})})},ci=function(s,a,r,t){var e=document.createElement("script");return e.id=s,e.type="text/javascript",e.src=a,e.async=!0,e.onload=function(){e.removeAttribute("loading"),r(null)},e.onerror=function(i){e.removeAttribute("loading"),t(i)},e.setAttribute("loading",""),e},Et=u.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 s=this,a=this.documentServerUrl;a.endsWith("/")||(a+="/");var r="".concat(a,"web-apps/apps/api/documents/api.js");zr(r,"onlyoffice-api-script").then(function(){return s.onLoad()}).catch(function(){s.onError(-2)})},unmounted:function(){var s,a=this.id||"";!((s=window==null?void 0:window.DocEditor)===null||s===void 0)&&s.instances[a]&&(window.DocEditor.instances[a].destroyEditor(),window.DocEditor.instances[a]=void 0)},watch:{config:{handler:function(s,a){this.onChangeProps()},deep:!0},document_fileType:function(s,a){this.onChangeProps()},document_title:function(s,a){this.onChangeProps()},documentType:function(s,a){this.onChangeProps()},editorConfig_lang:function(s,a){this.onChangeProps()},height:function(s,a){this.onChangeProps()},type:function(s,a){this.onChangeProps()},width:function(s,a){this.onChangeProps()}},methods:{onLoad:function(){var s,a;try{var r=this.id||"";if(window.DocsAPI||this.onError(-3),!((s=window==null?void 0:window.DocEditor)===null||s===void 0)&&s.instances[r]){console.log("Skip loading. Instance already exists",r);return}!((a=window==null?void 0:window.DocEditor)===null||a===void 0)&&a.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(s){var a;switch(s){case-2:a="Error load DocsAPI from "+this.documentServerUrl;break;case-3:a="DocsAPI is not defined";break;default:a="Unknown error loading component",s=-1}typeof this.onLoadComponentError>"u"?console.error(a):this.onLoadComponentError(s,a)},onAppReady:function(){var s=this.id||"";this.events_onAppReady(window.DocEditor.instances[s])},onChangeProps:function(){var s,a=this.id||"";!((s=window==null?void 0:window.DocEditor)===null||s===void 0)&&s.instances[a]&&(window.DocEditor.instances[a].destroyEditor(),window.DocEditor.instances[a]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const Ur=["id"];function jr(s,a,r,t,e,i){return u.openBlock(),u.createElementBlock("div",{id:s.id},null,8,Ur)}Et.render=jr,Et.__file="src/components/DocumentEditor.vue";const Wr=pe(u.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"}},setup(s){const a=s,r=u.ref({width:"100%",height:"100%",...a.configOptions||{},...a.configOptions}),t=()=>{console.info("文档加载完成",a.configOptions)};return(e,i)=>(u.openBlock(),u.createElementBlock("div",{style:u.normalizeStyle({height:a.officeHeight})},[u.createVNode(u.unref(Et),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":s.documentServerUrl,config:r.value,events_onDocumentReady:t},null,8,["id","document-server-url","config"])],4))}}));var fi;const hi=typeof window<"u",$r=s=>typeof s=="string",Gr=()=>{};hi&&((fi=window==null?void 0:window.navigator)!=null&&fi.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function di(s){return typeof s=="function"?s():u.unref(s)}function Kr(s){return s}function Yr(s){return u.getCurrentScope()?(u.onScopeDispose(s),!0):!1}function Xr(s){var a;const r=di(s);return(a=r==null?void 0:r.$el)!=null?a:r}const qr=hi?window:void 0;function Je(...s){let a,r,t,e;if($r(s[0])||Array.isArray(s[0])?([r,t,e]=s,a=qr):[a,r,t,e]=s,!a)return Gr;Array.isArray(r)||(r=[r]),Array.isArray(t)||(t=[t]);const i=[],n=()=>{i.forEach(f=>f()),i.length=0},o=(f,h,g,m)=>(f.addEventListener(h,g,m),()=>f.removeEventListener(h,g,m)),l=u.watch(()=>[Xr(a),di(e)],([f,h])=>{n(),f&&i.push(...r.flatMap(g=>t.map(m=>o(f,g,m,h))))},{immediate:!0,flush:"post"}),c=()=>{l(),n()};return Yr(c),c}const pi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gi="__vueuse_ssr_handlers__";pi[gi]=pi[gi]||{};var mi;(function(s){s.UP="UP",s.RIGHT="RIGHT",s.DOWN="DOWN",s.LEFT="LEFT",s.NONE="NONE"})(mi||(mi={}));var Zr=Object.defineProperty,vi=Object.getOwnPropertySymbols,Jr=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable,yi=(s,a,r)=>a in s?Zr(s,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[a]=r,eo=(s,a)=>{for(var r in a)Jr.call(a,r)&&yi(s,r,a[r]);if(vi)for(var r of vi(a))Qr.call(a,r)&&yi(s,r,a[r]);return s};eo({linear:Kr},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const to={urlList:{type:Array,default:()=>[]},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:["anonymous","use-credentials",""]}},io={close:()=>!0,switch:s=>re.paramType.isNumber(s),rotate:s=>re.paramType.isNumber(s)},no=["src","crossorigin"],ro=pe(u.defineComponent({name:"ElImageViewer",__name:"IkImageViewer",props:to,emits:io,setup(s,{expose:a,emit:r}){const t=F=>Object.keys(F),e={CONTAIN:{name:"contain",icon:u.markRaw(tr)},ORIGINAL:{name:"original",icon:u.markRaw(sr)}},i=s,n=r,{t:o}=Y.useLocale(),l=Y.useNamespace("image-viewer"),{nextZIndex:c}=Y.useZIndex(),f=u.ref(),h=u.ref([]),g=u.effectScope(),m=u.ref(!0),p=u.ref(i.initialIndex),v=u.shallowRef(e.CONTAIN),y=u.ref({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),C=u.ref(i.zIndex??c()),w=u.computed(()=>{const{urlList:F}=i;return F.length<=1}),E=u.computed(()=>p.value===0),O=u.computed(()=>p.value===i.urlList.length-1),T=u.computed(()=>i.urlList[p.value]),R=u.computed(()=>[l.e("btn"),l.e("prev"),l.is("disabled",!i.infinite&&E.value)]),P=u.computed(()=>[l.e("btn"),l.e("next"),l.is("disabled",!i.infinite&&O.value)]),W=u.computed(()=>{const{scale:F,deg:z,offsetX:G,offsetY:se,enableTransition:he}=y.value;let de=G/F,Ie=se/F;const qe=z*Math.PI/180,Nn=Math.cos(qe),On=Math.sin(qe);de=de*Nn+Ie*On,Ie=Ie*Nn-G/F*On;const oi={transform:`scale(${F}) rotate(${z}deg) translate(${de}px, ${Ie}px)`,transition:he?"transform .3s":""};return v.value.name===e.CONTAIN.name&&(oi.maxWidth=oi.maxHeight="100%"),oi});function j(){K(),n("close")}function I(){const F=re._.throttle(G=>{switch(G.code){case Y.EVENT_CODE.esc:i.closeOnPressEscape&&j();break;case Y.EVENT_CODE.space:An();break;case Y.EVENT_CODE.left:Ln();break;case Y.EVENT_CODE.up:Re("zoomIn");break;case Y.EVENT_CODE.right:Dn();break;case Y.EVENT_CODE.down:Re("zoomOut");break}}),z=re._.throttle(G=>{const se=G.deltaY||G.deltaX;Re(se<0?"zoomIn":"zoomOut",{zoomRate:i.zoomRate,enableTransition:!1})});g.run(()=>{Je(document,"keydown",F),Je(document,"wheel",z)})}function K(){g.stop()}function J(){m.value=!1}function ne(F){m.value=!1,F.target.alt=o("el.image.error")}function ke(F){if(m.value||F.button!==0||!f.value)return;y.value.enableTransition=!1;const{offsetX:z,offsetY:G}=y.value,se=F.pageX,he=F.pageY,de=re._.throttle(qe=>{y.value={...y.value,offsetX:z+qe.pageX-se,offsetY:G+qe.pageY-he}}),Ie=Je(document,"mousemove",de);Je(document,"mouseup",()=>{Ie()}),F.preventDefault()}function Pn(){y.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function An(){if(m.value)return;const F=t(e),z=Object.values(e),G=v.value.name,he=((z==null?void 0:z.findIndex(de=>de.name===G))+1)%F.length;v.value=e[F[he]],Pn()}function ri(F){const z=i.urlList.length;p.value=(F+z)%z}function Ln(){E.value&&!i.infinite||ri(p.value-1)}function Dn(){O.value&&!i.infinite||ri(p.value+1)}function Re(F,z={}){if(m.value)return;const{minScale:G,maxScale:se}=i,{zoomRate:he,rotateDeg:de,enableTransition:Ie}={zoomRate:i.zoomRate,rotateDeg:90,enableTransition:!0,...z};switch(F){case"zoomOut":y.value.scale>G&&(y.value.scale=Number.parseFloat((y.value.scale/he).toFixed(3)));break;case"zoomIn":y.value.scale<se&&(y.value.scale=Number.parseFloat((y.value.scale*he).toFixed(3)));break;case"clockwise":y.value.deg+=de,n("rotate",y.value.deg);break;case"anticlockwise":y.value.deg-=de,n("rotate",y.value.deg);break}y.value.enableTransition=Ie}return u.watch(T,()=>{u.nextTick(()=>{const F=h.value[0];F!=null&&F.complete||(m.value=!0)})}),u.watch(p,F=>{Pn(),n("switch",F)}),u.onMounted(()=>{var F,z;I(),(z=(F=f.value)==null?void 0:F.focus)==null||z.call(F)}),a({setActiveItem:ri}),(F,z)=>(u.openBlock(),u.createBlock(u.Teleport,{to:"body"},[u.createVNode(u.Transition,{name:"viewer-fade",appear:""},{default:u.withCtx(()=>[u.createElementVNode("div",{ref_key:"wrapper",ref:f,tabindex:-1,class:u.normalizeClass(u.unref(l).e("wrapper")),style:u.normalizeStyle({zIndex:C.value})},[u.createElementVNode("div",{class:u.normalizeClass(u.unref(l).e("mask")),onClick:z[0]||(z[0]=u.withModifiers(G=>F.hideOnClickModal&&j(),["self"]))},null,2),u.createCommentVNode(" CLOSE "),u.createElementVNode("span",{class:u.normalizeClass([u.unref(l).e("btn"),u.unref(l).e("close")]),onClick:j},[u.createVNode(u.unref(Y.ElIcon),null,{default:u.withCtx(()=>[u.createVNode(u.unref(li))]),_:1})],2),u.createCommentVNode(" ARROW "),w.value?u.createCommentVNode("v-if",!0):(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[u.createElementVNode("span",{class:u.normalizeClass(R.value),onClick:Ln},[u.createVNode(u.unref(Y.ElIcon),null,{default:u.withCtx(()=>[u.createVNode(u.unref(qn))]),_:1})],2),u.createElementVNode("span",{class:u.normalizeClass(P.value),onClick:Dn},[u.createVNode(u.unref(Y.ElIcon),null,{default:u.withCtx(()=>[u.createVNode(u.unref(Jn))]),_:1})],2)],64)),u.createCommentVNode(" ACTIONS "),u.createElementVNode("div",{class:u.normalizeClass([u.unref(l).e("btn"),u.unref(l).e("actions")])},[u.createElementVNode("div",{class:u.normalizeClass(u.unref(l).e("actions__inner"))},[u.createVNode(u.unref(Y.ElIcon),{onClick:z[1]||(z[1]=G=>Re("zoomOut"))},{default:u.withCtx(()=>[u.createVNode(u.unref(fr))]),_:1}),u.createVNode(u.unref(Y.ElIcon),{onClick:z[2]||(z[2]=G=>Re("zoomIn"))},{default:u.withCtx(()=>[u.createVNode(u.unref(ur))]),_:1}),u.createElementVNode("i",{class:u.normalizeClass(u.unref(l).e("actions__divider"))},null,2),u.createVNode(u.unref(Y.ElIcon),{onClick:An},{default:u.withCtx(()=>[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(v.value.icon)))]),_:1}),u.createElementVNode("i",{class:u.normalizeClass(u.unref(l).e("actions__divider"))},null,2),u.createVNode(u.unref(Y.ElIcon),{onClick:z[3]||(z[3]=G=>Re("anticlockwise"))},{default:u.withCtx(()=>[u.createVNode(u.unref(nr))]),_:1}),u.createVNode(u.unref(Y.ElIcon),{onClick:z[4]||(z[4]=G=>Re("clockwise"))},{default:u.withCtx(()=>[u.createVNode(u.unref(or))]),_:1})],2)],2),u.createCommentVNode(" CANVAS "),u.createElementVNode("div",{class:u.normalizeClass(u.unref(l).e("canvas"))},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(F.urlList,(G,se)=>u.withDirectives((u.openBlock(),u.createElementBlock("img",{ref_for:!0,ref:he=>h.value[se]=he,key:G,src:G,style:u.normalizeStyle(W.value),class:u.normalizeClass(u.unref(l).e("img")),crossorigin:F.crossorigin,onLoad:J,onError:ne,onMousedown:ke},null,46,no)),[[u.vShow,se===p.value]])),128))],2),u.renderSlot(F.$slots,"default")],6)]),_:3})]))}}));function _i(s,a){var r=Object.keys(s);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(s);a&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable})),r.push.apply(r,t)}return r}function $(s){for(var a=1;a<arguments.length;a++){var r=arguments[a]!=null?arguments[a]:{};a%2?_i(Object(r),!0).forEach(function(t){k(s,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(r)):_i(Object(r)).forEach(function(t){Object.defineProperty(s,t,Object.getOwnPropertyDescriptor(r,t))})}return s}function q(s){"@babel/helpers - typeof";return q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},q(s)}function S(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function ki(s,a){for(var r=0;r<a.length;r++){var t=a[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(s,Ci(t.key),t)}}function x(s,a,r){return a&&ki(s.prototype,a),r&&ki(s,r),Object.defineProperty(s,"prototype",{writable:!1}),s}function k(s,a,r){return a=Ci(a),a in s?Object.defineProperty(s,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):s[a]=r,s}function A(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),a&&bt(s,a)}function D(s){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},D(s)}function bt(s,a){return bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},bt(s,a)}function oo(){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 _(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function Tt(s,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _(s)}function L(s){var a=oo();return function(){var t=D(s),e;if(a){var i=D(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return Tt(this,e)}}function ao(s,a){for(;!Object.prototype.hasOwnProperty.call(s,a)&&(s=D(s),s!==null););return s}function N(){return typeof Reflect<"u"&&Reflect.get?N=Reflect.get.bind():N=function(a,r,t){var e=ao(a,r);if(e){var i=Object.getOwnPropertyDescriptor(e,r);return i.get?i.get.call(arguments.length<3?a:t):i.value}},N.apply(this,arguments)}function oe(s){return so(s)||lo(s)||uo(s)||co()}function so(s){if(Array.isArray(s))return St(s)}function lo(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}function uo(s,a){if(s){if(typeof s=="string")return St(s,a);var r=Object.prototype.toString.call(s).slice(8,-1);if(r==="Object"&&s.constructor&&(r=s.constructor.name),r==="Map"||r==="Set")return Array.from(s);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return St(s,a)}}function St(s,a){(a==null||a>s.length)&&(a=s.length);for(var r=0,t=new Array(a);r<a;r++)t[r]=s[r];return t}function co(){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 fo(s,a){if(typeof s!="object"||s===null)return s;var r=s[Symbol.toPrimitive];if(r!==void 0){var t=r.call(s,a||"default");if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(s)}function Ci(s){var a=fo(s,"string");return typeof a=="symbol"?a:String(a)}var xt={exports:{}},wi;function ho(){return wi||(wi=1,function(s){var a=Object.prototype.hasOwnProperty,r="~";function t(){}Object.create&&(t.prototype=Object.create(null),new t().__proto__||(r=!1));function e(l,c,f){this.fn=l,this.context=c,this.once=f||!1}function i(l,c,f,h,g){if(typeof f!="function")throw new TypeError("The listener must be a function");var m=new e(f,h||l,g),p=r?r+c:c;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],m]:l._events[p].push(m):(l._events[p]=m,l._eventsCount++),l}function n(l,c){--l._eventsCount===0?l._events=new t:delete l._events[c]}function o(){this._events=new t,this._eventsCount=0}o.prototype.eventNames=function(){var c=[],f,h;if(this._eventsCount===0)return c;for(h in f=this._events)a.call(f,h)&&c.push(r?h.slice(1):h);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},o.prototype.listeners=function(c){var f=r?r+c:c,h=this._events[f];if(!h)return[];if(h.fn)return[h.fn];for(var g=0,m=h.length,p=new Array(m);g<m;g++)p[g]=h[g].fn;return p},o.prototype.listenerCount=function(c){var f=r?r+c:c,h=this._events[f];return h?h.fn?1:h.length:0},o.prototype.emit=function(c,f,h,g,m,p){var v=r?r+c:c;if(!this._events[v])return!1;var y=this._events[v],C=arguments.length,w,E;if(y.fn){switch(y.once&&this.removeListener(c,y.fn,void 0,!0),C){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,f),!0;case 3:return y.fn.call(y.context,f,h),!0;case 4:return y.fn.call(y.context,f,h,g),!0;case 5:return y.fn.call(y.context,f,h,g,m),!0;case 6:return y.fn.call(y.context,f,h,g,m,p),!0}for(E=1,w=new Array(C-1);E<C;E++)w[E-1]=arguments[E];y.fn.apply(y.context,w)}else{var O=y.length,T;for(E=0;E<O;E++)switch(y[E].once&&this.removeListener(c,y[E].fn,void 0,!0),C){case 1:y[E].fn.call(y[E].context);break;case 2:y[E].fn.call(y[E].context,f);break;case 3:y[E].fn.call(y[E].context,f,h);break;case 4:y[E].fn.call(y[E].context,f,h,g);break;default:if(!w)for(T=1,w=new Array(C-1);T<C;T++)w[T-1]=arguments[T];y[E].fn.apply(y[E].context,w)}}return!0},o.prototype.on=function(c,f,h){return i(this,c,f,h,!1)},o.prototype.once=function(c,f,h){return i(this,c,f,h,!0)},o.prototype.removeListener=function(c,f,h,g){var m=r?r+c:c;if(!this._events[m])return this;if(!f)return n(this,m),this;var p=this._events[m];if(p.fn)p.fn===f&&(!g||p.once)&&(!h||p.context===h)&&n(this,m);else{for(var v=0,y=[],C=p.length;v<C;v++)(p[v].fn!==f||g&&!p[v].once||h&&p[v].context!==h)&&y.push(p[v]);y.length?this._events[m]=y.length===1?y[0]:y:n(this,m)}return this},o.prototype.removeAllListeners=function(c){var f;return c?(f=r?r+c:c,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,s.exports=o}(xt)),xt.exports}var Ei=ho();const bi=wt(Ei);var po=typeof window<"u"&&window.location&&window.location.href.indexOf("xgplayerdebugger=1")>-1,It={info:"color: #525252; background-color: #90ee90;",error:"color: #525252; background-color: red;",warn:"color: #525252; background-color: yellow; "},Pt="%c[xgplayer]",B={config:{debug:po?3:0},logInfo:function(a){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,[Pt,It.info,a].concat(e))},logWarn:function(a){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,[Pt,It.warn,a].concat(e))},logError:function(a){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,[Pt,It.error,a].concat(i))}}};function go(s){s.logInfo=B.logInfo.bind(s),s.logWarn=B.logWarn.bind(s),s.logError=B.logError.bind(s)}var mo=function(){function s(a){S(this,s),this.bufferedList=a}return x(s,[{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}}]),s}(),d={};d.createDom=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",a=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(s);return e.className=t,e.innerHTML=a,Object.keys(r).forEach(function(i){var n=i,o=r[i];s==="video"||s==="audio"||s==="live-video"?o&&e.setAttribute(n,o):e.setAttribute(n,o)}),e},d.createDomFromHtml=function(s){var a=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=s;var e=t.children;return t=null,e.length>0?(e=e[0],r&&d.addClass(e,r),a&&Object.keys(a).forEach(function(i){e.setAttribute(i,a[i])}),e):null}catch(i){return B.logError("util.createDomFromHtml",i),null}},d.hasClass=function(s,a){if(!s||!a)return!1;try{return Array.prototype.some.call(s.classList,function(t){return t===a})}catch{var r=s.className&&q(s.className)==="object"?s.getAttribute("class"):s.className;return r&&!!r.match(new RegExp("(\\s|^)"+a+"(\\s|$)"))}},d.addClass=function(s,a){if(!(!s||!a))try{a.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(r){r&&s.classList.add(r)})}catch{d.hasClass(s,a)||(s.className&&q(s.className)==="object"?s.setAttribute("class",s.getAttribute("class")+" "+a):s.className+=" "+a)}},d.removeClass=function(s,a){if(!(!s||!a))try{a.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(r){r&&s.classList.remove(r)})}catch{d.hasClass(s,a)&&a.split(/\s+/g).forEach(function(t){var e=new RegExp("(\\s|^)"+t+"(\\s|$)");s.className&&q(s.className)==="object"?s.setAttribute("class",s.getAttribute("class").replace(e," ")):s.className=s.className.replace(e," ")})}},d.toggleClass=function(s,a){s&&a.split(/\s+/g).forEach(function(r){d.hasClass(s,r)?d.removeClass(s,r):d.addClass(s,r)})},d.classNames=function(){for(var s=arguments,a=[],r=function(i){d.typeOf(s[i])==="String"?a.push(s[i]):d.typeOf(s[i])==="Object"&&Object.keys(s[i]).map(function(n){s[i][n]&&a.push(n)})},t=0;t<arguments.length;t++)r(t);return a.join(" ")},d.findDom=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,a=arguments.length>1?arguments[1]:void 0,r;try{r=s.querySelector(a)}catch(t){B.logError("util.findDom",t),a.indexOf("#")===0&&(r=s.getElementById(a.slice(1)))}return r},d.getCss=function(s,a){return s.currentStyle?s.currentStyle[a]:document.defaultView.getComputedStyle(s,!1)[a]},d.padStart=function(s,a,r){for(var t=String(r),e=a>>0,i=Math.ceil(e/t.length),n=[],o=String(s);i--;)n.push(t);return n.join("").substring(0,e-o.length)+o},d.format=function(s){if(window.isNaN(s))return"";s=Math.round(s);var a=d.padStart(Math.floor(s/3600),2,0),r=d.padStart(Math.floor((s-a*3600)/60),2,0),t=d.padStart(Math.floor(s-a*3600-r*60),2,0);return(a==="00"?[r,t]:[a,r,t]).join(":")},d.event=function(s){if(s.touches){var a=s.touches[0]||s.changedTouches[0];s.clientX=a.clientX||0,s.clientY=a.clientY||0,s.offsetX=a.pageX-a.target.offsetLeft,s.offsetY=a.pageY-a.target.offsetTop}s._target=s.target||s.srcElement},d.typeOf=function(s){return Object.prototype.toString.call(s).match(/([^\s.*]+)(?=]$)/g)[0]},d.deepCopy=function(s,a){if(d.typeOf(a)==="Object"&&d.typeOf(s)==="Object")return Object.keys(a).forEach(function(r){d.typeOf(a[r])==="Object"&&!(a[r]instanceof Node)?s[r]===void 0||s[r]===void 0?s[r]=a[r]:d.deepCopy(s[r],a[r]):d.typeOf(a[r])==="Array"?s[r]=d.typeOf(s[r])==="Array"?s[r].concat(a[r]):a[r]:s[r]=a[r]}),s},d.deepMerge=function(s,a){return Object.keys(a).map(function(r){if(d.typeOf(a[r])==="Array"&&d.typeOf(s[r])==="Array"){if(d.typeOf(s[r])==="Array"){var t;(t=s[r]).push.apply(t,oe(a[r]))}}else d.typeOf(s[r])===d.typeOf(a[r])&&s[r]!==null&&d.typeOf(s[r])==="Object"&&!(a[r]instanceof window.Node)?d.deepMerge(s[r],a[r]):a[r]!==null&&(s[r]=a[r])}),s},d.getBgImage=function(s){var a=(s.currentStyle||window.getComputedStyle(s,null)).backgroundImage;if(!a||a==="none")return"";var r=document.createElement("a");return r.href=a.replace(/url\("|"\)/g,""),r.href},d.copyDom=function(s){if(s&&s.nodeType===1){var a=document.createElement(s.tagName);return Array.prototype.forEach.call(s.attributes,function(r){a.setAttribute(r.name,r.value)}),s.innerHTML&&(a.innerHTML=s.innerHTML),a}else return""},d.setInterval=function(s,a,r,t){s._interval[a]||(s._interval[a]=window.setInterval(r.bind(s),t))},d.clearInterval=function(s,a){clearInterval(s._interval[a]),s._interval[a]=null},d.setTimeout=function(s,a,r){s._timers||(s._timers=[]);var t=setTimeout(function(){a(),d.clearTimeout(s,t)},r);return s._timers.push(t),t},d.clearTimeout=function(s,a){var r=s._timers;if(d.typeOf(r)==="Array"){for(var t=0;t<r.length;t++)if(r[t]===a){r.splice(t,1),clearTimeout(a);break}}else clearTimeout(a)},d.clearAllTimers=function(s){var a=s._timers;d.typeOf(a)==="Array"&&(a.map(function(r){clearTimeout(r)}),s._timerIds=[])},d.createImgBtn=function(s,a,r,t){var e=d.createDom("xg-".concat(s),"",{},"xgplayer-".concat(s,"-img"));if(e.style.backgroundImage='url("'.concat(a,'")'),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),s==="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(s,a){var r=[];if(/^\#[0-9A-F]{3}$/i.test(s)){var t="#";s.replace(/[0-9A-F]/ig,function(e){t+=e+e}),s=t}return/^#[0-9A-F]{6}$/i.test(s)?(s.replace(/[0-9A-F]{2}/ig,function(e){r.push(parseInt(e,16))}),"rgba(".concat(r.join(","),", ").concat(a,")")):"rgba(255, 255, 255, 0.1)"},d.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},d.checkIsFunction=function(s){return s&&typeof s=="function"},d.checkIsObject=function(s){return s!==null&&q(s)==="object"},d.hide=function(s){s.style.display="none"},d.show=function(s,a){s.style.display=a||"block"},d.isUndefined=function(s){if(typeof s>"u"||s===null)return!0},d.isNotNull=function(s){return s!=null},d.setStyleFromCsstext=function(s,a){if(a)if(d.typeOf(a)==="String"){var r=a.replace(/\s+/g,"").split(";");r.map(function(t){if(t){var e=t.split(":");e.length>1&&(s.style[e[0]]=e[1])}})}else Object.keys(a).map(function(t){s.style[t]=a[t]})};function vo(s,a){for(var r=0,t=a.length;r<t;r++)if(s.indexOf(a[r])>-1)return!0;return!1}d.filterStyleFromText=function(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],r=s.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&&(vo(o[0],a)?e[o[0]]=o[1]:i[o[0]]=o[1])}}),s.setAttribute("style",""),Object.keys(i).map(function(n){s.style[n]=i[n]}),e},d.getStyleFromCsstext=function(s){var a=s.style.cssText;if(!a)return{};var r=a.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(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};if(s){var t=new window.Image;t.onload=function(e){t=null,a&&a(e)},t.onerror=function(e){t=null,r&&r(e)},t.src=s}},d.stopPropagation=function(s){s&&s.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(s){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5,r=[],t=0;t<s.length;t++)r.push({start:s.start(t)<.5?0:s.start(t),end:s.end(t)});r.sort(function(l,c){var f=l.start-c.start;return f||c.end-l.end});var e=[];if(a)for(var i=0;i<r.length;i++){var n=e.length;if(n){var o=e[n-1].end;r[i].start-o<a?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 mo(e)},d.getEventPos=function(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return s.touches&&s.touches.length>0&&(s=s.touches[0]),{x:s.x/a,y:s.y/a,clientX:s.clientX/a,clientY:s.clientY/a,offsetX:s.offsetX/a,offsetY:s.offsetY/a,pageX:s.pageX/a,pageY:s.pageY/a}},d.requestAnimationFrame=function(s){var a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(a)return a(s)},d.getHostFromUrl=function(s){if(d.typeOf(s)!=="String")return"";var a=s.split("/"),r="";return a.length>3&&a[2]&&(r=a[2]),r},d.cancelAnimationFrame=function(s){var a=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;a&&a(s)},d.isMSE=function(s){return s.media&&(s=s.media),!s||!(s instanceof HTMLMediaElement)?!1:/^blob/.test(s.currentSrc)||/^blob/.test(s.src)},d.isBlob=function(s){return typeof s=="string"&&/^blob/.test(s)},d.generateSessionId=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,a=new Date().getTime();try{s=parseInt(s)}catch{s=0}a+=s,window.performance&&typeof window.performance.now=="function"&&(a+=parseInt(window.performance.now()));var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(a+Math.random()*16)%16|0;return a=Math.floor(a/16),(t==="x"?e:e&3|8).toString(16)});return r},d.createEvent=function(s){var a;return typeof window.Event=="function"?a=new Event(s):(a=document.createEvent("Event"),a.initEvent(s,!0,!0)),a},d.adjustTimeByDuration=function(s,a,r){return!a||!s?s:s>a||r&&s<a?a:s},d.createPositionBar=function(s,a){var r=d.createDom("xg-bar","",{"data-index":-1},s);return a.appendChild(r),r},d.getTransformStyle=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{x:0,y:0,scale:1,rotate:0},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r={scale:"".concat(s.scale||1),translate:"".concat(s.x||0,"%, ").concat(s.y||0,"%"),rotate:"".concat(s.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(a)?(i.lastIndex=-1,a=a.replace(i,n)):a+="".concat(n," ")}),a},d.convertDeg=function(s){return Math.abs(s)<=1?s*360:s%360},d.getIndexByTime=function(s,a){var r=a.length,t=-1;if(r<1)return t;if(s<=a[0].end||r<2)t=0;else if(s>a[r-1].end)t=r-1;else for(var e=1;e<r;e++)if(s>a[e-1].end&&s<=a[e].end){t=e;break}return t},d.getOffsetCurrentTime=function(s,a){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1,t=-1;if(r>=0&&r<a.length?t=r:t=d.getIndexByTime(s,a),t<0)return-1;var e=a.length,i=a[t],n=i.start,o=i.end,l=i.cTime,c=i.offset;return s<n?l:s>=n&&s<=o?s-c:s>o&&t>=e-1?o:-1},d.getCurrentTimeByOffset=function(s,a){var r=-1;if(!a||a.length<0)return s;for(var t=0;t<a.length;t++)if(s<=a[t].duration){r=t;break}if(r!==-1){var e=a[r].start;return r-1<0?e+s:e+(s-a[r-1].duration)}return s};function Ti(s){var a=q(s);return s!==null&&(a==="object"||a==="function")}function yo(s,a,r){var t,e,i,n,o,l,c=0,f=!1,h=!1,g=!0,m=!a&&a!==0&&typeof window.requestAnimationFrame=="function";if(typeof s!="function")throw new TypeError("Expected a function");a=+a||0,Ti(r)&&(f=!!r.leading,h="maxWait"in r,i=h?Math.max(+r.maxWait||0,a):i,g="trailing"in r?!!r.trailing:g);function p(I){var K=t,J=e;return t=e=void 0,c=I,n=s.apply(J,K),n}function v(I,K){return m?(window.cancelAnimationFrame(o),window.requestAnimationFrame(I)):setTimeout(I,K)}function y(I){if(m)return window.cancelAnimationFrame(I);clearTimeout(I)}function C(I){return c=I,o=v(O,a),f?p(I):n}function w(I){var K=I-l,J=I-c,ne=a-K;return h?Math.min(ne,i-J):ne}function E(I){var K=I-l,J=I-c;return l===void 0||K>=a||K<0||h&&J>=i}function O(){var I=Date.now();if(E(I))return T(I);o=v(O,w(I))}function T(I){return o=void 0,g&&t?p(I):(t=e=void 0,n)}function R(){o!==void 0&&y(o),c=0,t=l=e=o=void 0}function P(){return o===void 0?n:T(Date.now())}function W(){return o!==void 0}function j(){for(var I=Date.now(),K=E(I),J=arguments.length,ne=new Array(J),ke=0;ke<J;ke++)ne[ke]=arguments[ke];if(t=ne,e=this,l=I,K){if(o===void 0)return C(l);if(h)return o=v(O,a),p(l)}return o===void 0&&(o=v(O,a)),n}return j.cancel=R,j.flush=P,j.pending=W,j}function _o(s,a,r){var t=!0,e=!0;if(typeof s!="function")throw new TypeError("Expected a function");return Ti(r)&&(t="leading"in r?!!r.leading:t,e="trailing"in r?!!r.trailing:e),yo(s,a,{leading:t,trailing:e,maxWait:a})}function ko(){var s=(document.documentElement.getAttribute("lang")||navigator.language||"zh-cn").toLocaleLowerCase();return s==="zh-cn"&&(s="zh"),s}function Co(s,a,r){if(s){var t=s.getAttribute(r);return!!(t&&t===a&&(s.tagName==="VIDEO"||s.tagName==="AUDIO"))}}var Si={android:/(Android)\s([\d.]+)/,ios:/(Version)\/([\d.]+)/},wo=["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","mp4v.20.8, mp4a.40.2","mp4v.20.240, mp4a.40.2"],M={get device(){var s=M.os;return s.isPc?"pc":"mobile"},get browser(){if(typeof navigator>"u")return"";var s=navigator.userAgent.toLowerCase(),a={ie:/rv:([\d.]+)\) like gecko/,firefox:/firefox\/([\d.]+)/,chrome:/chrome\/([\d.]+)/,opera:/opera.([\d.]+)/,safari:/version\/([\d.]+).*safari/};return[].concat(Object.keys(a).filter(function(r){return a[r].test(s)}))[0]},get os(){if(typeof navigator>"u")return{};var s=navigator.userAgent,a=/(?:Windows Phone)/.test(s),r=/(?:SymbianOS)/.test(s)||a,t=/(?:Android)/.test(s),e=/(?:Firefox)/.test(s),i=/(?:iPad|PlayBook)/.test(s)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,n=i||t&&!/(?:Mobile)/.test(s)||e&&/(?:Tablet)/.test(s),o=/(?:iPhone)/.test(s)&&!n,l=!o&&!t&&!r&&!n;return{isTablet:n,isPhone:o,isIpad:i,isIos:o||i,isAndroid:t,isPc:l,isSymbian:r,isWindowsPhone:a,isFireFox:e}},get osVersion(){if(typeof navigator>"u")return 0;var s=navigator.userAgent,a="";/(?:iPhone)|(?:iPad|PlayBook)/.test(s)?a=Si.ios:a=Si.android;var r=a?a.exec(s):[];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 s=/(micromessenger)\/([\d.]+)/,a=s.exec(navigator.userAgent.toLocaleLowerCase());return!!a},isSupportMP4:function(){var a={isSupport:!1,mime:""};if(typeof document>"u")return a;if(this.supportResult)return this.supportResult;var r=document.createElement("video");return typeof r.canPlayType=="function"&&wo.map(function(t){r.canPlayType('video/mp4; codecs="'.concat(t,'"'))==="probably"&&(a.isSupport=!0,a.mime+="||".concat(t))}),this.supportResult=a,r=null,a},isMSESupport:function(){var a=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(a)}catch(r){return this._logger.error(a,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(a){var r={supported:!1,smooth:!1,powerEfficient:!1};if(!a||typeof navigator>"u")return Promise.resolve(r);if(navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo)return navigator.mediaCapabilities.decodingInfo(a);var t=a.video||{},e=a.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)}}},At="3.0.20",xi={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},Qe=x(function s(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};S(this,s);var t=a&&a.i18n?a.i18n.ERROR_TYPES:null;if(a.media){var e=r.mediaError?r.mediaError:a.media.error||{},i=a.duration,n=a.currentTime,o=a.ended,l=a.src,c=a.currentSrc,f=a.media,h=f.readyState,g=f.networkState,m=r.errorCode||e.code;Ii[m]&&(m=Ii[m]);var p={playerVersion:At,currentTime:n,duration:i,ended:o,readyState:h,networkState:g,src:l||c,errorType:r.errorType,errorCode:m,message:r.errorMessage||e.message,mediaError:e,originError:r.originError?r.originError.stack:"",host:d.getHostFromUrl(l||c)};return r.ext&&Object.keys(r.ext).map(function(w){p[w]=r.ext[w]}),p}else if(arguments.length>1){for(var v={playerVersion:At,domain:document.domain},y=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],C=0;C<arguments.length;C++)v[y[C]]=arguments[C];return v.ex=t?(t[arguments[0]]||{}).msg:"",v}}),ee="play",Lt="playing",Pe="ended",Me="pause",$e="error",et="seeking",ge="seeked",te="timeupdate",Ge="waiting",me="canplay",Eo="canplaythrough",ve="durationchange",Pi="volumechange",ye="loadeddata",bo="loadedmetadata",Ai="ratechange",Li="progress",Dt="loadstart",Ae="emptied",To="stalled",So="suspend",xo="abort",Io="bufferedChange",Nt="focus",Di="blur",Ot="ready",Ni="urlNull",Le="autoplay_started",Rt="autoplay_was_prevented",tt="complete",it="replay",Ft="destroy",nt="urlchange",Mt="download_speed_change",Oi="leaveplayer",Ri="enterplayer",Fi="loading",_e="fullscreen_change",rt="cssFullscreen_change",ot="mini_state_change",Bt="definition_change",Po="before_definition_change",Vt="after_definition_change",Ao="SEI_PARSED",Lo="retry",we="video_resize",Ht="pip_change",Mi="rotate",Bi="screenShot",at="playnext",Vi="shortcut",Hi="xglog",st="user_action",lt="reset",zi="source_error",Ui="source_success",Do="switch_subtitle",ji=["play","playing","ended","pause","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","volumechange","loadeddata","loadedmetadata","ratechange","progress","loadstart","emptied","stalled","suspend","abort","lowdecode"],Wi={STATS_INFO:"stats_info",STATS_DOWNLOAD:"stats_download",STATS_RESET:"stats_reset"},$i="fps_stuck";const No=Object.freeze(Object.defineProperty({__proto__:null,ABORT:xo,AFTER_DEFINITION_CHANGE:Vt,AUTOPLAY_PREVENTED:Rt,AUTOPLAY_STARTED:Le,BEFORE_DEFINITION_CHANGE:Po,BUFFER_CHANGE:Io,CANPLAY:me,CANPLAY_THROUGH:Eo,COMPLETE:tt,CSS_FULLSCREEN_CHANGE:rt,DEFINITION_CHANGE:Bt,DESTROY:Ft,DOWNLOAD_SPEED_CHANGE:Mt,DURATION_CHANGE:ve,EMPTIED:Ae,ENDED:Pe,ENTER_PLAYER:Ri,ERROR:$e,FPS_STUCK:$i,FULLSCREEN_CHANGE:_e,LEAVE_PLAYER:Oi,LOADED_DATA:ye,LOADED_METADATA:bo,LOADING:Fi,LOAD_START:Dt,MINI_STATE_CHANGE:ot,PAUSE:Me,PIP_CHANGE:Ht,PLAY:ee,PLAYER_BLUR:Di,PLAYER_FOCUS:Nt,PLAYING:Lt,PLAYNEXT:at,PROGRESS:Li,RATE_CHANGE:Ai,READY:Ot,REPLAY:it,RESET:lt,RETRY:Lo,ROTATE:Mi,SCREEN_SHOT:Bi,SEEKED:ge,SEEKING:et,SEI_PARSED:Ao,SHORTCUT:Vi,SOURCE_ERROR:zi,SOURCE_SUCCESS:Ui,STALLED:To,STATS_EVENTS:Wi,SUSPEND:So,SWITCH_SUBTITLE:Do,TIME_UPDATE:te,URL_CHANGE:nt,URL_NULL:Ni,USER_ACTION:st,VIDEO_EVENTS:ji,VIDEO_RESIZE:we,VOLUME_CHANGE:Pi,WAITING:Ge,XGLOG:Hi},Symbol.toStringTag,{value:"Module"}));function zt(s,a){!this||!this.emit||(s==="error"?this.errorHandler(s,a.error):this.emit(s,a))}function Oo(s,a){return function(r,t){var e={player:a,eventName:s,originalEvent:r,detail:r.detail||{},timeStamp:r.timeStamp,currentTime:a.currentTime,duration:a.duration,paused:a.paused,ended:a.ended,isInternalOp:!!a._internalOp[r.type],muted:a.muted,volume:a.volume,host:d.getHostFromUrl(a.currentSrc),vtype:a.vtype};if(a.removeInnerOP(r.type),s==="timeupdate"&&(a._currentTime=a.media&&a.media.currentTime),s==="ratechange"){var i=a.media?a.media.playbackRate:0;if(i&&a._rate===i)return;a._rate=a.media&&a.media.playbackRate}if(s==="durationchange"&&(a._duration=a.media.duration),s==="volumechange"&&(e.isMutedChange=a._lastMuted!==a.muted,a._lastMuted=a.muted),s==="error"&&(e.error=t||a.video.error),a.mediaEventMiddleware[s]){var n=zt.bind(a,s,e);try{a.mediaEventMiddleware[s].call(a,e,n)}catch(o){throw zt.call(a,s,e),o}}else zt.call(a,s,e)}}var Ro=function(s){A(r,s);var a=L(r);function r(t){var e;S(this,r),e=a.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 M.isWeixin&&M.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 x(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=ji.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,Oo(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,g){n.media.appendChild(d.createDom("source","",{src:"".concat(h.src),type:"".concat(h.type||""),"data-index":g+1}))});var o=e.children;if(o){this._videoSourceCount=o.length,this._videoSourceIndex=o.length,this._vLoadeddata=function(h){n.emit(Ui,{src:h.target.currentSrc,host:d.getHostFromUrl(h.target.currentSrc)})};for(var l=null,c=0;c<this._evHandlers.length;c++)if(Object.keys(this._evHandlers[c])[0]==="error"){l=this._evHandlers[c];break}!this._sourceError&&(this._sourceError=function(h){var g=parseInt(h.target.getAttribute("data-index"),10);if(n._videoSourceIndex--,n._videoSourceIndex===0||g>=n._videoSourceCount){var m={code:4,message:"sources_load_error"};l?l.error(h,m):n.errorHandler("error",m)}var p=xi[4];n.emit(zi,new Qe(n,{errorType:p,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?xi[n.code]:"other",l=n.message;this.media.currentSrc||(l="empty_src",n={code:6,message:l}),this.emit(e,new Qe(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(nt,e),this.emit(Ge),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),c=2;c<o;c++)l[c-2]=arguments[c];(n=N(D(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),c=2;c<o;c++)l[c-2]=arguments[c];(n=N(D(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),c=2;c<o;c++)l[c-2]=arguments[c];(n=N(D(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),c=2;c<o;c++)l[c-2]=arguments[c];(n=N(D(r.prototype),"off",this)).call.apply(n,[this,e,i].concat(l))}},{key:"offAll",value:function(){N(D(r.prototype),"removeAllListeners",this).call(this)}}]),r}(bi),Fo=function(){function s(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{name:"xgplayer",version:1,db:null,ojstore:{name:"xg-m4a",keypath:"vid"}};S(this,s),this.indexedDB=window.indexedDB||window.webkitindexedDB,this.IDBKeyRange=window.IDBKeyRange||window.webkitIDBKeyRange,this.myDB=a}return x(s,[{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 c=l.target.result;e.call(i,c)}}},{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()}}]),s}(),Gi=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],Ki=["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],Yi=["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],De="data-xgplayerid";function ut(s,a,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=a.call.apply(a,[s].concat(e));!r||typeof r!="function"||(n&&n.then?n.then(function(){for(var o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];r.call.apply(r,[s].concat(l))}):r.call.apply(r,[s].concat(e)))}function ct(s,a){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{pre:null,next:null};return this.__hooks||(this.__hooks={}),!this.__hooks[s]&&(this.__hooks[s]=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(o){throw o.message="[pluginName: ".concat(this.pluginName,":").concat(s,":pre error] >> ").concat(o.message),o}if(this.__hooks&&this.__hooks[s])try{var n=ue(this,s,a);n?n.then?n.then(function(o){o!==!1&&ut.apply(void 0,[e,a,r.next].concat(oe(t)))}).catch(function(o){throw o}):ut.apply(void 0,[this,a,r.next].concat(Array.prototype.slice.call(arguments))):n===void 0&&ut.apply(void 0,[this,a,r.next].concat(Array.prototype.slice.call(arguments)))}catch(o){throw o.message="[pluginName: ".concat(this.pluginName,":").concat(s,"] >> ").concat(o.message),o}else ut.apply(void 0,[this,a,r.next].concat(Array.prototype.slice.call(arguments)))}).bind(this)}function Xi(s,a){var r=this.__hooks;if(!r||!Array.isArray(r[s]))return-1;for(var t=r[s],e=0;e<t.length;e++)if(t[e]===a)return e;return-1}function ft(s,a){var r=this.__hooks;if(r)return r.hasOwnProperty(s)?(Array.isArray(r[s])||(r[s]=[]),Xi.call(this,s,a)===-1&&r[s].push(a),!0):(console.warn("has no supported hook which name [".concat(s,"]")),!1)}function ht(s,a){var r=this.__hooks;if(r){if(Array.isArray(r[s])){var t=r[s],e=Xi.call(this,s,a);e!==-1&&t.splice(e,1)}delete r[s]}}function qi(s){if(!(!this.plugins||!this.plugins[s.toLowerCase()])){for(var a=this.plugins[s.toLowerCase()],r=arguments.length,t=new Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];return a.useHooks&&a.useHooks.apply(a,t)}}function Zi(s){if(!(!this.plugins||!this.plugins[s.toLowerCase()])){var a=this.plugins[s.toLowerCase()];if(a){for(var r=arguments.length,t=new Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];return a.removeHooks&&a.removeHooks.apply(a,t)}}}function Ji(s){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];s.__hooks={},a&&a.map(function(r){s.__hooks[r]=null}),Object.defineProperty(s,"hooks",{get:function(){return s.__hooks&&Object.keys(s.__hooks).map(function(t){if(s.__hooks[t])return t})}})}function Qi(s){s.__hooks=null}function ue(s,a,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(s.__hooks&&Array.isArray(s.__hooks[a])){var n=s.__hooks[a],o=-1,l=function c(f,h,g){for(var m=arguments.length,p=new Array(m>3?m-3:0),v=3;v<m;v++)p[v-3]=arguments[v];if(o++,n.length===0||o===n.length)return g.call.apply(g,[f,f].concat(p));var y=n[o],C=y.call.apply(y,[f,f].concat(p));if(C&&C.then)return C.then(function(w){return w===!1?null:c.apply(void 0,[f,h,g].concat(p))}).catch(function(w){console.warn("[runHooks]".concat(h," reject"),w.message)});if(C!==!1)return c.apply(void 0,[f,h,g].concat(p))};return l.apply(void 0,[s,a,r].concat(e))}else return r.call.apply(r,[s,s].concat(e))}function Ut(s,a){B.logError("[".concat(s,"] event or callback cant be undefined or null when call ").concat(a))}var Ee=function(){function s(a){S(this,s),d.checkIsFunction(this.beforeCreate)&&this.beforeCreate(a),Ji(this),this.__args=a,this.__events={},this.__onceEvents={},this.config=a.config||{},this.player=null,this.playerConfig={},this.pluginName="",this.__init(a)}return x(s,[{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){Ut(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){Ut(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){Ut(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=$($({},e),{},{pluginName:this.pluginName});this.player.emitUserAction(r,t,i)}}},{key:"hook",value:function(r,t){return ct.call.apply(ct,[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 ft.call.apply(ft,[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 ht.call.apply(ht,[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),Qi(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:"defineMethod",value:function(r,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&typeof t[e]=="function"&&Object.defineProperty(r,e,{configurable:!0,value:t[e]})}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),s}(),jt,en;function Mo(){if(en)return jt;en=1;var s=9;if(typeof Element<"u"&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}function r(t,e){for(;t&&t.nodeType!==s;){if(typeof t.matches=="function"&&t.matches(e))return t;t=t.parentNode}}return jt=r,jt}var Wt,tn;function Bo(){if(tn)return Wt;tn=1;var s=Mo();function a(e,i,n,o,l){var c=t.apply(this,arguments);return e.addEventListener(n,c,l),{destroy:function(){e.removeEventListener(n,c,l)}}}function r(e,i,n,o,l){return typeof e.addEventListener=="function"?a.apply(null,arguments):typeof n=="function"?a.bind(null,document).apply(null,arguments):(typeof e=="string"&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(c){return a(c,i,n,o,l)}))}function t(e,i,n,o){return function(l){l.delegateTarget=s(l.target,i),l.delegateTarget&&o.call(e,l)}}return Wt=r,Wt}var Vo=Bo();const nn=wt(Vo);var Ho={CONTROLS:"controls",ROOT:"root"},U={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"},rn={ICON_DISABLE:"xg-icon-disable",ICON_HIDE:"xg-icon-hide"};function $t(s){return s?s.indexOf&&/^(?:http|data:|\/)/.test(s):!1}function zo(s,a){return q(s)==="object"&&s.class&&typeof s.class=="string"?"".concat(a," ").concat(s.class):a}function Uo(s,a){return q(s)==="object"&&s.attr&&q(s.attr)==="object"&&Object.keys(s.attr).map(function(r){a[r]=s.attr[r]}),a}function on(s,a){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(s instanceof window.Element)return d.addClass(s,r),Object.keys(t).map(function(n){s.setAttribute(n,t[n])}),s;if($t(s)||$t(s.url))return t.src=$t(s)?s:s.url||"",i=d.createDom(s.tag||"img","",t,"xg-img ".concat(r)),i;if(typeof s=="function")try{return i=s(),i instanceof window.Element?(d.addClass(i,r),Object.keys(t).map(function(n){i.setAttribute(n,t[n])}),i):(B.logWarn("warn>>icons.".concat(a," in config of plugin named [").concat(e,"] is a function mast return an Element Object")),null)}catch(n){return B.logError("Plugin named [".concat(e,"]:createIcon"),n),null}return typeof s=="string"?d.createDomFromHtml(s,t,r):(B.logWarn("warn>>icons.".concat(a," in config of plugin named [").concat(e,"] is invalid")),null)}function jo(s,a){var r=a.config.icons||a.playerConfig.icons;Object.keys(s).map(function(t){var e=s[t],i=e&&e.class?e.class:"",n=e&&e.attr?e.attr:{},o=null;r&&r[t]&&(i=zo(r[t],i),n=Uo(r[t],n),o=on(r[t],t,i,n,a.pluginName)),!o&&e&&(o=on(e.icon?e.icon:e,n,i,{},a.pluginName)),a.icons[t]=o})}function Wo(s,a){Object.keys(s).map(function(r){Object.defineProperty(a.langText,r,{get:function(){var e=a.lang,i=a.i18n;return i[r]?i[r]:s[r]&&s[r][e]||""}})})}var H=function(s){A(r,s);var a=L(r);function r(){var t,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return S(this,r),t=a.call(this,e),t.__delegates=[],t}return x(r,[{key:"__init",value:function(e){if(N(D(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()||{};jo(o,this),this.langText={};var l=this.registerLanguageTexts()||{};Wo(l,this);var c="";try{c=this.render()}catch(g){throw B.logError("Plugin:".concat(this.pluginName,":render"),g),new Error("Plugin:".concat(this.pluginName,":render:").concat(g.message))}if(c)n=r.insert(c,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&&q(i)==="object"&&Object.keys(i).length>0&&Object.keys(i).map(function(n){var o=n,l=i[o],c={root:e.root},f,h;typeof l=="function"?(f=e.config[o]||{},h=l):q(l)==="object"&&typeof l.plugin=="function"&&(f=l.options?d.deepCopy(e.config[o]||{},l.options):e.config[o]||{},h=l.plugin),c.config=f,f.index!==void 0&&(c.index=f.index),f.root&&(c.root=f.root),e.registerPlugin(h,c,o)})}}},{key:"updateLang",value:function(e){e||(e=this.lang);function i(c,f){for(var h=0;h<c.children.length;h++)c.children[h].children.length>0?i(c.children[h],f):f(c.children[h])}var n=this.root,o=this.i18n,l=this.langText;n&&i(n,function(c){var f=c.getAttribute&&c.getAttribute("lang-key");if(f){var h=o[f.toUpperCase()]||l[f];h&&(c.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"),rn.ICON_DISABLE)}},{key:"enable",value:function(){this.config.disable=!1,d.removeClass(this.find(".xgplayer-icon"),rn.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=N(D(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(c){o.bindEL(c,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(c){n.unbindEL(c,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 B.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)),N(D(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),c=e instanceof window.Node;if(o){for(var f=0,h=null,g="";f<o;f++){h=i.children[f];var m=Number(h.getAttribute("data-index"));if(m>=l){g="beforebegin";break}else m<l&&(g="afterend")}return c?g==="afterend"?i.appendChild(e):i.insertBefore(e,h):h.insertAdjacentHTML(g,e),g==="afterend"?i.children[i.children.length-1]:i.children[f]}else return c?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,c=[];if(e instanceof window.Node&&typeof o=="function")if(Array.isArray(n))n.forEach(function(h){var g=nn(e,i,h,o,l);g.key="".concat(i,"_").concat(h),c.push(g)});else{var f=nn(e,i,n,o,l);f.key="".concat(i,"_").concat(n),c.push(f)}return c}},{key:"ROOT_TYPES",get:function(){return Ho}},{key:"POSITIONS",get:function(){return U}}]),r}(Ee),$o=function(){function s(){var a=this;if(S(this,s),k(this,"__trigger",function(r){var t=new Date().getTime();a.timeStamp=t;for(var e=0;e<r.length;e++)a.__runHandler(r[e].target)}),this.__handlers=[],this.timeStamp=0,this.observer=null,!!window.ResizeObserver)try{this.observer=new window.ResizeObserver(_o(this.__trigger,100,{trailing:!0})),this.timeStamp=new Date().getTime()}catch(r){console.error(r)}}return x(s,[{key:"addObserver",value:function(r,t){if(this.observer){this.observer.observe(r);for(var e=r.getAttribute(De),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(i,n){r===i.target&&(t=n)});try{var e;(e=this.observer)===null||e===void 0||e.unobserve(r)}catch{}t>-1&&this.__handlers.splice(t,1)}},{key:"destroyObserver",value:function(){var r;(r=this.observer)===null||r===void 0||r.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}}]),s}(),Ke=null;function Go(s,a){return Ke||(Ke=new $o),Ke.addObserver(s,a),Ke}function Ko(s,a){var r;(r=Ke)===null||r===void 0||r.unObserver(s,a)}var X={pluginGroup:{},init:function(a){var r=a._pluginInfoId;r||(r=new Date().getTime(),a._pluginInfoId=r),!a.config.closeResizeObserver&&Go(a.root,function(){a.resize()}),this.pluginGroup[r]={_originalOptions:a.config||{},_plugins:{}}},formatPluginInfo:function(a,r){var t=null,e=null;return a.plugin&&typeof a.plugin=="function"?(t=a.plugin,e=a.options):(t=a,e={}),r&&(e.config=r||{}),{PLUFGIN:t,options:e}},checkPluginIfExits:function(a,r){for(var t=0;t<r.length;t++)if(a.toLowerCase()===r[t].pluginName.toLowerCase())return!0;return!1},getRootByConfig:function(a,r){for(var t=Object.keys(r),e=null,i=0;i<t.length;i++)if(a.toLowerCase()===t[i].toLowerCase()){e=r[t[i]];break}return d.typeOf(e)==="Object"?{root:e.root,position:e.position}:{}},lazyRegister:function(a,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(a,n,i.options)}),new Promise(function(i,n){setTimeout(function(){n(new Error("timeout"))},e)})])},register:function(a,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!(!a||!r||typeof r!="function"||r.prototype===void 0)){var e=a._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=a;var o=t.pluginName||r.pluginName;if(!o)throw new Error("The property pluginName is necessary");if(r.isSupported&&!r.isSupported(a.config.mediaType,a.config.codecType)){console.warn("not supported plugin [".concat(o,"]"));return}t.config||(t.config={});for(var l=Object.keys(n),c=0;c<l.length;c++)if(o.toLowerCase()===l[c].toLowerCase()){var f=n[l[c]];d.typeOf(f)==="Object"?t.config=Object.assign({},t.config,n[l[c]]):d.typeOf(f)==="Boolean"&&(t.config.disable=!f);break}r.defaultConfig&&Object.keys(r.defaultConfig).forEach(function(g){typeof t.config[g]>"u"&&(t.config[g]=r.defaultConfig[g])}),t.root?typeof t.root=="string"&&(t.root=a[t.root]):t.root=a.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(g){throw console.error(g),g}}}},unRegister:function(a,r){a._pluginInfoId&&(a=a._pluginInfoId),r=r.toLowerCase();try{var t=this.pluginGroup[a]._plugins[r];t&&(t.pluginName&&t.__destroy(),delete this.pluginGroup[a]._plugins[r])}catch(e){console.error("[unRegister:".concat(r,"] cgid:[").concat(a,"] error"),e)}},deletePlugin:function(a,r){var t=a._pluginInfoId;t&&this.pluginGroup[t]&&this.pluginGroup[t]._plugins&&delete this.pluginGroup[t]._plugins[r]},getPlugins:function(a){var r=a._pluginInfoId;return r&&this.pluginGroup[r]?this.pluginGroup[r]._plugins:{}},findPlugin:function(a,r){var t=a._pluginInfoId;if(!t||!this.pluginGroup[t])return null;var e=r.toLowerCase();return this.pluginGroup[t]._plugins[e]},beforeInit:function(a){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 a._loadingPlugins&&a._loadingPlugins.length?i=Promise.all(a._loadingPlugins):i=Promise.resolve(),i.then(function(){var n=a._pluginInfoId;if(!r.pluginGroup[n]){e();return}var o=r.pluginGroup[n]._plugins,l=[];Object.keys(o).forEach(function(c){if(o[c]&&o[c].beforePlayerInit)try{var f=o[c].beforePlayerInit();l.push(t(f))}catch(h){throw l.push(t(null)),h}}),Promise.all([].concat(l)).then(function(){e()}).catch(function(c){console.error(c),e()})})}})},afterInit:function(a){var r=a._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(a,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(a);else try{e[i].lang=a}catch{console.warn("".concat(i," setLang"))}})}},reRender:function(a){var r=this,t=a._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(a,n.plugin,n.options)})}},onPluginsReady:function(a){var r=a._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(a){var r=a._pluginInfoId;if(this.pluginGroup[r]){Ko(a.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 a._pluginInfoId}}},b={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 an(){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:ko(),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 Yo=function(a,r){var t,e,i;r.preset&&r.options?i=new r.preset(r.options,a.config):i=new r({},a.config);var n=i,o=n.plugins,l=o===void 0?[]:o,c=n.ignores,f=c===void 0?[]:c,h=n.icons,g=h===void 0?{}:h,m=n.i18n,p=m===void 0?[]:m;a.config.plugins||(a.config.plugins=[]),a.config.ignores||(a.config.ignores=[]),(t=a.config.plugins).push.apply(t,oe(l)),(e=a.config.ignores).push.apply(e,oe(f)),Object.keys(g).map(function(y){a.config.icons[y]||(a.config.icons[y]=g[y])});var v=a.config.i18n||[];p.push.apply(p,oe(v)),a.config.i18n=p},Xo=function(s){A(r,s);var a=L(r);function r(){var t;S(this,r);for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return t=a.call.apply(a,[this].concat(i)),k(_(t),"onMouseEnter",function(o){var l=_(t),c=l.player,f=l.playerConfig;f.closeControlsBlur&&c.focus({autoHide:!1})}),k(_(t),"onMouseLeave",function(o){var l=_(t),c=l.player;c.focus()}),t}return x(r,[{key:"beforeCreate",value:function(e){!e.config.mode&&M.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(b.FLEX_CONTROLS);var c={height:"".concat(o,"px")};Object.keys(c).map(function(h){e.root.style[h]=c[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(ot,function(h){h?d.addClass(e.root,"mini-controls"):d.removeClass(e.root,"mini-controls")});var f=this.playerConfig.isMobileSimulateMode;M.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,b.CONTROLS_AUTOHIDE)}},{key:"pauseAutoHide",value:function(){d.removeClass(this.root,b.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 U.CONTROLS_LEFT:i.root=this.left;break;case U.CONTROLS_RIGHT:i.root=this.right;break;case U.CONTROLS_CENTER:i.root=this.center;break;case U.CONTROLS:i.root=this.root;break;default:i.root=this.left}return N(D(r.prototype),"registerPlugin",this).call(this,e,i,n)}}}},{key:"destroy",value:function(){M.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 c=d.classNames({"xgplayer-controls":!0},{"flex-controls":i==="flex"},{"bottom-controls":i==="bottom"},k({},b.CONTROLS_AUTOHIDE,n),{"xgplayer-controls-initshow":o||!n});return'<xg-controls class="'.concat(c,`" unselectable="on">
3
3
  <xg-inner-controls class="xg-inner-controls xg-pos">
4
4
  <xg-left-grid class="xg-left-grid">
@@ -223,4 +223,4 @@ Use Save As... to download, then click back to return to this page.`)&&(location
223
223
  <xg-mini-progress-cache class="xg-mini-progress-cache" style="`).concat(f.cached,`"></xg-mini-progress-cache>
224
224
  <xg-mini-progress-played class="xg-mini-progress-played" style="`).concat(f.played,`"></xg-mini-progress-played>
225
225
  </xg-mini-progress>`)}}}],[{key:"pluginName",get:function(){return"MiniProgress"}},{key:"defaultConfig",get:function(){return{mode:"auto",height:2}}}]),r}(H),je={REAL_TIME:"realtime",FIRST_FRAME:"firstframe",FRAME_RATE:"framerate",POSTER:"poster"};function ls(){try{return parseInt(window.performance.now(),10)}catch{return new Date().getTime()}}function us(){try{var s=document.createElement("canvas").getContext;return!!s}catch{return!1}}var vt=null,cs=function(s){A(r,s);var a=L(r);function r(){var t;S(this,r);for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return t=a.call.apply(a,[this].concat(i)),k(_(t),"onLoadedData",function(o){t.player&&(t._frameCount=t.config.startFrameCount,t.stop(),t.renderOnTimeupdate(o),t.off(te,t.renderOnTimeupdate),t.on(te,t.renderOnTimeupdate))}),k(_(t),"onVisibilitychange",function(o){document.visibilityState==="visible"?t._checkIfCanStart()&&t.start():document.visibilityState==="hidden"&&t.stop()}),k(_(t),"renderOnTimeupdate",function(o){if(t._frameCount>0)t.renderOnce(),t._frameCount--;else{t._isLoaded=!0,t.off(te,t.renderOnTimeupdate);var l=t.config.startInterval;!t.player.paused&&t._checkIfCanStart()&&t.start(0,l)}}),k(_(t),"start",function(o,l){var c=t.player.video,f=ls(),h=t.checkVideoIsSupport(c);!h||!t.canvasCtx||(l||(l=t.interval),t.stop(),c.videoWidth&&c.videoHeight&&(t.videoPI=c.videoHeight>0?parseInt(c.videoWidth/c.videoHeight*100,10):0,(t.config.mode===je.REAL_TIME||f-t.preTime>=l)&&(c&&c.videoWidth&&t.update(h,t.videoPI),t.preTime=f)),t.frameId=t._loopType==="timer"?d.setTimeout(_(t),t.start,l):d.requestAnimationFrame(t.start))}),k(_(t),"stop",function(){t.frameId&&(t._loopType==="timer"?d.clearTimeout(_(t),t.frameId):d.cancelAnimationFrame(t.frameId),t.frameId=null)}),t}return x(r,[{key:"afterCreate",value:function(){var e=this;this.playerConfig.dynamicBg===!0&&(this.config.disable=!1),r.isSupport||(this.config.disable=!0);var i=this.config,n=i.disable,o=i.mode,l=i.frameRate;n||(this._pos={width:0,height:0,rwidth:0,rheight:0,x:0,y:0,pi:0},this.isStart=!1,this._isLoaded=!1,this.videoPI=0,this.preTime=0,this.interval=parseInt(1e3/l,10),this.canvas=null,this.canvasCtx=null,this._frameCount=0,this._loopType=this.config.mode!==je.REAL_TIME&&this.interval>=1e3?"timer":"animation",this.once(tt,function(){e.player&&(e.init(),e.renderByPoster(),e.player.paused||e.start())}),o!==je.POSTER&&(o!==je.FIRST_FRAME&&(this.on(Ae,function(){e.stop()}),this.on(ee,function(){var c=e.config.startInterval;e._checkIfCanStart()&&e.start(0,c)}),this.on(Me,function(){e.stop()})),this.on(ye,this.onLoadedData),this.on(Dt,function(){e._isLoaded=!1,e.stop()}),document.addEventListener("visibilitychange",this.onVisibilitychange)))}},{key:"setConfig",value:function(e){var i=this;Object.keys(e).forEach(function(n){n==="root"&&e[n]!==i.config[n]?i.reRender(e[n]):n==="frameRate"?i.interval=parseInt(1e3/e[n],10):n==="disable"&&e[n]&&i.stop(),i.config[n]=e[n]})}},{key:"init",value:function(e){var i=this.player,n=this.config;this.canvasFilter=r.supportCanvasFilter();try{var o=e||n.root;o||(o=n.isInnerRender&&i.innerContainer||i.root),o.insertAdjacentHTML("afterbegin",'<div class="xgplayer-dynamic-bg" data-index="'.concat(n.index,`"><canvas>
226
- </canvas><xgmask></xgmask></div>`)),this.root=o.children[0],this.canvas=this.find("canvas"),this.canvasFilter||(this.canvas.style.filter=n.filter,this.canvas.style.webkitFilter=n.filter),this.mask=this.find("xgmask"),n.addMask&&(this.mask.style.background=n.maskBg),this.canvasCtx=this.canvas.getContext("2d")}catch(l){B.logError("plugin:DynamicBg",l)}}},{key:"reRender",value:function(e){var i=this.config.disable;if(!(!i&&!this.root)){this.stop();var n=this.root?this.root.parentElement:null;if(n!==e&&n.removeChild(this.root),!e){this.root=null;return}this.init(e),this.renderOnce();var o=this.config.startInterval;this._checkIfCanStart()&&this.start(0,o)}}},{key:"checkVideoIsSupport",value:function(e){if(!e)return null;var i=e&&e instanceof window.HTMLVideoElement?e:e.canvas?e.canvas:e.flyVideo?e.flyVideo:null;if(i&&!(M.browser==="safari"&&d.isMSE(i)))return i;var n=i?i.tagName.toLowerCase():"";return n==="canvas"||n==="img"?i:null}},{key:"renderByPoster",value:function(){var e=this.playerConfig.poster;if(e){var i=d.typeOf(e)==="String"?e:d.typeOf(e.poster)==="String"?e.poster:null;this.updateImg(i)}}},{key:"_checkIfCanStart",value:function(){var e=this.config.mode;return this._isLoaded&&!this.player.paused&&e!==je.FIRST_FRAME&&e!==je.POSTER}},{key:"renderOnce",value:function(){var e=this.player.video;if(!(!e.videoWidth||!e.videoHeight)){this.videoPI=parseInt(e.videoWidth/e.videoHeight*100,10);var i=this.checkVideoIsSupport(e);i&&this.update(i,this.videoPI)}}},{key:"updateImg",value:function(e){var i=this;if(e){var n=this.canvas.getBoundingClientRect(),o=n.width,l=n.height,c=new window.Image;c.onload=function(){if(!(!i.canvas||i.frameId||i.isStart)){i.canvas.height=l,i.canvas.width=o;var f=parseInt(o/l*100,10);i.update(c,f),c=null}},c.src=e}}},{key:"update",value:function(e,i){if(!(!this.canvas||!this.canvasCtx||!i))try{var n=this._pos,o=this.config,l=this.canvas.getBoundingClientRect(),c=l.width,f=l.height;if(c!==n.width||f!==n.height||n.pi!==i){var h=parseInt(c/f*100,10);n.pi=i,n.width!==c&&(n.width=this.canvas.width=c),n.height!==f&&(n.height=this.canvas.height=f);var g=f,m=c;h<i?m=parseInt(f*i/100,10):h>i&&(g=parseInt(c*100/i,10)),n.rwidth=m*o.multiple,n.rheight=g*o.multiple,n.x=(c-n.rwidth)/2,n.y=(f-n.rheight)/2}this.canvasFilter&&(this.canvasCtx.filter=o.filter),this.canvasCtx.drawImage(e,n.x,n.y,n.rwidth,n.rheight)}catch(p){B.logError("plugin:DynamicBg",p)}}},{key:"destroy",value:function(){this.stop(),document.removeEventListener("visibilitychange",this.onVisibilitychange),this.canvasCtx=null,this.canvas=null}},{key:"render",value:function(){return""}}],[{key:"pluginName",get:function(){return"dynamicBg"}},{key:"defaultConfig",get:function(){return{isInnerRender:!1,disable:!0,index:-1,mode:"framerate",frameRate:10,filter:"blur(50px)",startFrameCount:2,startInterval:0,addMask:!0,multiple:1.2,maskBg:"rgba(0,0,0,0.7)"}}},{key:"isSupport",get:function(){return typeof vt=="boolean"||(vt=us()),vt}},{key:"supportCanvasFilter",value:function(){return!(M.browser==="safari"||M.browser==="firefox")}}]),r}(H),fs={LANG:"zh-cn",TEXT:{ERROR_TYPES:{network:{code:1,msg:"视频下载错误"},mse:{code:2,msg:"流追加错误"},parse:{code:3,msg:"解析错误"},format:{code:4,msg:"格式错误"},decoder:{code:5,msg:"解码错误"},runtime:{code:6,msg:"语法错误"},timeout:{code:7,msg:"播放超时"},other:{code:8,msg:"其他错误"}},HAVE_NOTHING:"没有关于音频/视频是否就绪的信息",HAVE_METADATA:"音频/视频的元数据已就绪",HAVE_CURRENT_DATA:"关于当前播放位置的数据是可用的,但没有足够的数据来播放下一帧/毫秒",HAVE_FUTURE_DATA:"当前及至少下一帧的数据是可用的",HAVE_ENOUGH_DATA:"可用数据足以开始播放",NETWORK_EMPTY:"音频/视频尚未初始化",NETWORK_IDLE:"音频/视频是活动的且已选取资源,但并未使用网络",NETWORK_LOADING:"浏览器正在下载数据",NETWORK_NO_SOURCE:"未找到音频/视频来源",MEDIA_ERR_ABORTED:"取回过程被用户中止",MEDIA_ERR_NETWORK:"网络错误",MEDIA_ERR_DECODE:"解码错误",MEDIA_ERR_SRC_NOT_SUPPORTED:"不支持的音频/视频格式",REPLAY:"重播",ERROR:"网络连接似乎出现了问题",PLAY_TIPS:"播放",PAUSE_TIPS:"暂停",PLAYNEXT_TIPS:"下一集",DOWNLOAD_TIPS:"下载",ROTATE_TIPS:"旋转",RELOAD_TIPS:"重新载入",FULLSCREEN_TIPS:"进入全屏",EXITFULLSCREEN_TIPS:"退出全屏",CSSFULLSCREEN_TIPS:"进入样式全屏",EXITCSSFULLSCREEN_TIPS:"退出样式全屏",TEXTTRACK:"字幕",PIP:"画中画",SCREENSHOT:"截图",LIVE:"正在直播",OFF:"关闭",OPEN:"开启",MINI_DRAG:"点击按住可拖动视频",MINISCREEN:"小屏幕",REFRESH_TIPS:"请试试",REFRESH:"刷新",FORWARD:"快进中",LIVE_TIP:"直播"}},Xe="info",ni=Wi,hs=function(s){A(r,s);var a=L(r);function r(){var t;S(this,r);for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return t=a.call.apply(a,[this].concat(i)),k(_(t),"_recordUserActions",function(o){var l=t._getTime(),c=Object.assign({},o,{msg:o.msg||o.action});t._stats[Xe].push($($({type:"userAction"},l),{},{payload:c}))}),k(_(t),"_onReset",function(){t.reset()}),k(_(t),"_recordInfo",function(o){t.info(o)}),k(_(t),"_downloadStats",function(){var o=t.getStats(),l=new Blob([JSON.stringify(o)],{type:"application/json"}),c=window.URL.createObjectURL(l),f=document.createElement("a");f.style.display="none",f.href=c,f.download="player.txt",f.disabled=!1,f.click()}),t}return x(r,[{key:"_getTime",value:function(){return{timestamp:Date.now(),timeFormat:new Date().toISOString()}}},{key:"afterCreate",value:function(){this.reset(),this.on(st,this._recordUserActions),this.on(ni.STATS_INFO,this._recordInfo),this.on(ni.STATS_DOWNLOAD,this._downloadStats),this.on(ni.STATS_RESET,this._onReset)}},{key:"destroy",value:function(){this.offAll()}},{key:"downloadStats",value:function(){this._downloadStats()}},{key:"info",value:function(e){e.profile?this._infoProfile(e):this._info(e)}},{key:"_info",value:function(e){var i=this._getTime();this._stats[Xe].push($($({},i),{},{payload:e}))}},{key:"_infoProfile",value:function(e){if(e&&e.startMs){var i=Date.now(),n=i-e.startMs,o=$({cat:"function",dur:n,name:e.name||e.msg,ph:"X",pid:0,tid:0,ts:e.startMs,profile:!0},e);this._info(o)}else console.warn("infoProfile need object data, include startMs")}},{key:"reset",value:function(){var e;this._stats=(e={},k(e,Xe,[]),k(e,"media",{}),e)}},{key:"getStats",value:function(){for(var e=this.player,i=e.media,n=[],o=0;o<i.buffered.length;o++)n.push({start:i.buffered.start(o),end:i.buffered.end(o)});var l={currentTime:i.currentTime,readyState:i.readyState,buffered:n,paused:i.paused,ended:i.ended};return this._stats.media=l,{raw:this._stats,timestat:this._getTimeStats(),profile:this._getProfile()}}},{key:"_getTimeStats",value:function(){var e=this._stats[Xe],i=e.map(function(n){var o=n.payload.data,l="";try{o instanceof Error?l=o.msg:o!==void 0&&(l=JSON.stringify(o))}catch(c){console.log("err",c)}return"[".concat(n.timeFormat,"] : ").concat(n.payload.msg," ").concat(l," ")});return i}},{key:"_getProfile",value:function(){var e={traceEvents:[]},i=this._stats[Xe];return i.forEach(function(n){n.payload.profile&&e.traceEvents.push(n.payload)}),e}}],[{key:"pluginName",get:function(){return"stats"}},{key:"defaultConfig",get:function(){return{}}}]),r}(Ee),xn=function(s){A(r,s);var a=L(r);function r(){var t;S(this,r);for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return t=a.call.apply(a,[this].concat(i)),k(_(t),"onGapJump",function(){var o=_(t),l=o.player,c=o.config;if(l.media.readyState!==HTMLMediaElement.HAVE_NOTHING){if(l.media.seeking){if(!t.seekingEventReceived)return}else t.seekingEventReceived=!1;if(!(l.media.paused&&l.media.currentTime!==0&&t.hasPlayed)){var f=l.media.buffered,h=c.smallGapLimit||.5,g=c.gapDetectionThreshold||.3,m=l.media.currentTime,p=t._getIndex(f,m,g);if(!(p===null||p===0)){console.log("GapJump bufferRange ",f.start(p),f.end(p));var v=f.start(p)+.1,y=l.media.duration;if(!(v>y)){var C=v-m,w=C<=h;C<r.BROWSER_GAP_TOLERANCE||w&&(c.useGapJump!==!1&&(l.media.currentTime=t.isSafari?v+.1:v),t.player&&t.player.emit("detectGap"),console.log("gapJump gapIndex",p," isGapSamll:",w," currentTime:",l.media.currentTime," jumpSize:",m-l.media.currentTime),v!==.08&&l&&l.emit("log",{type:"oneevent",end_type:"gap",vid:l.config.vid,ext:{video_postion:Math.floor(v*1e3)}}))}}}}}),t}return x(r,[{key:"afterCreate",value:function(){var e=this,i=this.config.useGapJump;i!==!1&&(this.hasPlayed=!1,this.seekingEventReceived=!1,this.isSafari=/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),this.on(Ge,this.onGapJump),this.on(ee,function(){e.hasPlayed=!0}),this.on(et,function(){e.seekingEventReceived=!0}))}},{key:"_getIndex",value:function(e,i,n){if(!e||!e.length||e.length===1&&e.end(0)-e.start(0)<1e-6)return null;for(var o=this._getBuffered(e),l=null,c=0;c<o.length;c++){var f=o[c];if(f.start>i&&(c===0||o[c-1].end-i<=n)){l=c;break}}return l}},{key:"_getBuffered",value:function(e){if(!e)return[];for(var i=[],n=0;n<e.length;n++)i.push({start:e.start(n),end:e.end(n)});return i}}],[{key:"pluginName",get:function(){return"gapJump"}},{key:"defaultConfig",get:function(){return{useGapJump:!1,smallGapLimit:.5,gapDetectionThreshold:.3}}}]),r}(H);xn.BROWSER_GAP_TOLERANCE=.001;var ds=function(s){A(r,s);var a=L(r);function r(){var t;S(this,r);for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return t=a.call.apply(a,[this].concat(i)),k(_(t),"onWaiting",function(){var o=_(t),l=o.config;t.jumpCnt>l.jumpCntMax||t.timer||l.useWaitingTimeoutJump===!1||(t.timer=setTimeout(t.onJump,l.waitingTime*1e3))}),k(_(t),"onJump",function(){var o=_(t),l=o.player,c=o.config;if(clearTimeout(t.timer),t.timer=null,!(t.jumpCnt>c.jumpCntMax||c.useWaitingTimeoutJump===!1)&&!(l.media.paused&&l.media.currentTime!==0&&t.hasPlayed)){t.jumpSize=c.jumpSize*(t.jumpCnt+1),t.jumpCnt===c.jumpSize&&t.jumpSize<6&&(t.jumpSize=6);var f=l.currentTime+t.jumpSize,h=l.media.duration;f>h||(t.jumpCnt++,l.currentTime=f)}}),t}return x(r,[{key:"afterCreate",value:function(){var e=this,i=this.config,n=i.useWaitingTimeoutJump,o=i.jumpSize;n!==!1&&(this.hasPlayed=!1,this.jumpCnt=0,this.timer=null,this.jumpSize=o,this.on(Ge,this.onWaiting),this.on([Lt,me],function(){clearTimeout(e.timer),e.timer=null,e.jumpSize=e.config.jumpSize}),this.on(ee,function(){e.hasPlayed=!0}))}}],[{key:"pluginName",get:function(){return"waitingTimeoutJump"}},{key:"defaultConfig",get:function(){return{useWaitingTimeoutJump:!1,waitingTime:15,jumpSize:2,jumpCntMax:4}}}]),r}(H),We="cdn",yt=["cdn"],ps=function(s){A(r,s);var a=L(r);function r(){var t;S(this,r);for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return t=a.call.apply(a,[this].concat(i)),k(_(t),"getSpeed",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:We;if(!t.speedListCache||!t.speedListCache[o]||t.speedListCache[o].length<=0)return 0;var l=0;return t.speedListCache[o].map(function(c){l+=c}),Math.floor(l/t.speedListCache[o].length)}),k(_(t),"startTimer",function(){d.isMSE(t.player.video)||(t.initSpeedList(),t.cnt=0,t.timer=setTimeout(t.testSpeed,t.config.testTimeStep))}),k(_(t),"initSpeedList",function(){t.speedListCache={},yt.forEach(function(o){t.speedListCache[o]=[]})}),k(_(t),"_onRealSpeedChange",function(o){o.speed&&t.appendList(o.speed,o.type||We)}),k(_(t),"testSpeed",function(){if(clearTimeout(t.timer),t.timer=null,!(!t.player||!t.config.openSpeed)){var o=t.config,l=o.url,c=o.loadSize,f=o.testCnt,h=o.testTimeStep,g=l+(l.indexOf("?")<0?"?testst=":"&testst=")+Date.now();if(!(t.cnt>=f)){t.cnt++;try{var m=new Date().getTime(),p=null,v=new XMLHttpRequest;t.xhr=v,v.open("GET",g);var y={},C=Math.floor(Math.random()*10);y.Range="bytes="+C+"-"+(c+C),y&&Object.keys(y).forEach(function(w){v.setRequestHeader(w,y[w])}),v.onreadystatechange=function(){if(v.readyState===4){t.xhr=null,p=new Date().getTime();var w=v.getResponseHeader("Content-Length")/1024*8,E=Math.round(w*1e3/(p-m));t.appendList(E),t.timer=setTimeout(t.testSpeed,h)}},v.send()}catch(w){console.error(w)}}}}),k(_(t),"appendList",function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:We;if(!(!t.speedListCache||!t.speedListCache[l])){var c=t.config.saveSpeedMax;t.speedListCache[l].length>=c&&t.speedListCache[l].shift(),t.speedListCache[l].push(o);var f=_(t),h=f.player;h&&(l===We?h.realTimeSpeed=o:h[t.getSpeedName("realTime",l)]=o),t.updateSpeed(l)}}),k(_(t),"updateSpeed",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:We,l=t.getSpeed(o),c=_(t),f=c.player;if(f)if(o===We)(!f.avgSpeed||l!==f.avgSpeed)&&(f.avgSpeed=l,f.emit(Mt,{speed:l,realTimeSpeed:f.realTimeSpeed}));else{var h=t.getSpeedName("avg",o);(!f[h]||l!==f[h])&&(f[h]=l,f.emit(Mt,{speed:l,realTimeSpeed:f.realTimeSpeed}))}}),t}return x(r,[{key:"afterCreate",value:function(){var e=this.config,i=e.openSpeed,n=e.addSpeedTypeList;(n==null?void 0:n.length)>0&&yt.push.apply(yt,oe(n)),this.initSpeedList(),this.on("real_time_speed",this._onRealSpeedChange),this.timer=null,this.cnt=0,this.xhr=null,i&&this.on([ye,it],this.startTimer)}},{key:"getSpeedName",value:function(e,i){return e+"Speed"+i.toUpperCase()}},{key:"openSpeed",get:function(){return this.config.openSpeed},set:function(e){if(this.config.openSpeed=e,!e&&this.timer){clearTimeout(this.timer),this.timer=null;return}if(this.config.openSpeed){if(this.timer)return;this.timer=setTimeout(this.testSpeed,this.config.testTimeStep)}}},{key:"destroy",value:function(){var e=this;this.off("real_time_speed",this._onRealSpeedChange),this.off([ye,it],this.startTimer),yt.forEach(function(i){e.speedListCache&&e.speedListCache[i]&&(e.speedListCache[i]=[])}),this.speedListCache&&(this.speedListCache={}),clearTimeout(this.timer),this.timer=null,this.xhr&&this.xhr.readyState!==4&&(this.xhr.cancel&&this.xhr.cancel(),this.xhr=null)}}],[{key:"pluginName",get:function(){return"testspeed"}},{key:"defaultConfig",get:function(){return{openSpeed:!1,testCnt:3,loadSize:200*1024,testTimeStep:3e3,url:"",saveSpeedMax:5,addSpeedTypeList:[]}}}]),r}(H),gs=function(s){A(r,s);var a=L(r);function r(){return S(this,r),a.apply(this,arguments)}return x(r,[{key:"afterCreate",value:function(){var e=this,i=this.player,n=this.config,o=i.media||i.video;if(this.timer=null,this._lastDecodedFrames=0,this._currentStuckCount=0,this._lastCheckPoint=null,this._payload=[],!n.disabled){var l=o.getVideoPlaybackQuality;l&&(this.on(ee,function(){e._startTick()}),this.on(Me,function(){e._stopTick()}),this.on(Pe,function(){e._stopTick()}),this.on(Ae,function(){e._stopTick()}))}}},{key:"_startTick",value:function(){var e=this;this._stopTick(),this._timer=setTimeout(function(){e._checkDecodeFPS(),e._startTick()},this.config.tick)}},{key:"_stopTick",value:function(){clearTimeout(this._timer),this._timer=null}},{key:"_checkBuffer",value:function(e,i){for(var n=!1,o=[],l=0;l<i.length;l++){var c=i.start(l),f=i.end(l);if(o.push({start:c,end:f}),c<=e&&e<=f-1){n=!0;break}}return{enoughBuffer:n,buffers:o}}},{key:"_checkStuck",value:function(e,i,n,o){var l=this.player.media||this.player.video,c=document.hidden,f=l.paused,h=l.readyState,g=l.currentTime,m=l.buffered;if(!(c||f||h<4)){var p=this._checkBuffer(g,m),v=p.enoughBuffer,y=p.buffers;v&&(e<=this.config.reportFrame?(this._currentStuckCount++,this._payload.push({currentTime:g,buffers:y,curDecodedFrames:e,totalVideoFrames:i,droppedVideoFrames:n,checkInterval:o}),this._currentStuckCount>=this.config.stuckCount&&(this.emit($i,this._payload),this._reset())):this._reset())}}},{key:"_reset",value:function(){this._payload=[],this._currentStuckCount=0}},{key:"_checkDecodeFPS",value:function(){var e=this.player.media||this.player.video;if(e){var i=e.getVideoPlaybackQuality(),n=i.totalVideoFrames,o=i.droppedVideoFrames,l=performance.now();if(n&&this._lastCheckPoint){var c=n-this._lastDecodedFrames,f=l-this._lastCheckPoint;this._checkStuck(c,n,o,f)}this._lastDecodedFrames=n,this._lastCheckPoint=l}}},{key:"destroy",value:function(){this._stopTick()}}],[{key:"pluginName",get:function(){return"FpsDetect"}},{key:"defaultConfig",get:function(){return{disabled:!1,tick:1e3,stuckCount:3,reportFrame:0}}}]),r}(H);Be.use(fs);var ms=x(function s(a,r){var t,e,i;S(this,s);var n=r&&r.isMobileSimulateMode==="mobile",o=r.isLive,l=o?[]:[La,Ea,ss,os,Aa],c=[].concat(l,[ba,Pa,Ma,Ua,Ja,Qa,Ya,Xa,Ra,Ha]),f=[na,ra,aa,ka,sa,is,ns,as,fa];this.plugins=[hs,ta].concat(oe(c),f,[xn,ds]);var h=n?"mobile":M.device;switch(h){case"pc":(t=this.plugins).push.apply(t,[kn,ei,En,ps,gs]);break;case"mobile":(e=this.plugins).push.apply(e,[va]);break;default:(i=this.plugins).push.apply(i,[kn,ei,En])}(M.os.isIpad||h==="pc")&&this.plugins.push(cs),M.os.isIpad&&this.plugins.push(ei),this.ignores=[],this.i18n=[]}),ae=function(s){A(r,s);var a=L(r);function r(){return S(this,r),a.apply(this,arguments)}return x(r)}(dt);k(ae,"defaultPreset",ms),k(ae,"Util",d),k(ae,"Sniffer",M),k(ae,"Errors",Qe),k(ae,"Events",No),k(ae,"Plugin",H),k(ae,"BasePlugin",Ee),k(ae,"I18N",Be),k(ae,"STATE_CLASS",b),k(ae,"InstManager",un);const vs=["id"],ys=pe(Ze(u.defineComponent({name:"ElImageViewer",__name:"Player",props:u.mergeModels({url:{type:String,default:""},zIndex:{type:Number,default:200},config:{type:Object,default:()=>({})}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:u.mergeModels({close:()=>!0},["update:modelValue"]),setup(s,{emit:a}){let r=null;const t=s,{cLoadUrl:e}=kt(t),i=u.computed(()=>Fe(e.value,t.url)),n={width:"100%",height:"100%",autoplay:!1,volume:.6,controls:!0,playbackRate:[.5,.75,1,1.5,2],crossOrigin:!0,preload:"auto",muted:!1,loop:!0,poster:"",lang:"zh-CN",screenShot:!0},o=u.computed(()=>({...n,...t.config})),l=a,c=u.useModel(s,"modelValue"),f=re.buildUUID(),h=Y.useNamespace("image-viewer");function g(){l("close"),c.value=!1,r.destroy()}return u.watch(()=>c.value,m=>{m&&u.nextTick(()=>{r=new ae({id:f,url:i.value,...o.value})})}),(m,p)=>{const v=u.resolveComponent("el-icon");return c.value?(u.openBlock(),u.createBlock(u.Teleport,{key:0,to:"body"},[u.createVNode(u.Transition,{name:"viewer-fade",appear:""},{default:u.withCtx(()=>[u.createElementVNode("div",{ref:"wrapper",tabindex:-1,class:u.normalizeClass(u.unref(h).e("wrapper")),style:u.normalizeStyle({zIndex:s.zIndex})},[u.createElementVNode("div",{class:u.normalizeClass(u.unref(h).e("mask"))},null,2),u.createCommentVNode(" CANVAS "),u.createElementVNode("div",{class:u.normalizeClass(u.unref(h).e("canvas"))},[u.createElementVNode("div",{id:u.unref(f)},null,8,vs),u.createCommentVNode(" CLOSE "),u.createElementVNode("span",{class:u.normalizeClass([u.unref(h).e("btn"),u.unref(h).e("close")]),onClick:g},[u.createVNode(v,{onClick:g},{default:u.withCtx(()=>[u.createVNode(u.unref(li))]),_:1})],2)],2),u.renderSlot(m.$slots,"default",{},void 0,!0)],6)]),_:3})])):u.createCommentVNode("v-if",!0)}}}),[["__scopeId","data-v-b301aa7d"]])),_s={class:"approveProcess",id:"approveProcess"},ks=["id"],Cs={class:"topBlock"},ws={class:"left"},Es={class:"nodeBg"},bs=["src"],Ts={class:"right"},Ss={class:"topInfo"},xs={key:0},Is={key:0,class:"main-text"},Ps={class:"name"},As={key:0},Ls={key:0},Ds={key:1},Ns={key:0},Os={key:0},Rs={key:1},Fs={key:1},Ms={class:"name"},Bs={key:0},Vs={style:{color:"#000"}},Hs={class:"blue",style:{"margin-left":"5px","font-size":"12px"}},zs={key:1},Us={key:0,class:"blue",style:{"font-size":"12px"}},js={key:1},Ws={key:0,class:"blue",style:{"font-size":"12px"}},$s={key:1,class:"blue",style:{"font-size":"12px"}},Gs={class:"time"},Ks={key:0},Ys={key:1},Xs=["onClick"],qs=["onClick"],Zs={key:0,class:"opinion"},Js={key:0},Qs={key:1},el={style:{color:"var(--el-text-color-primary)","margin-left":"8px"}},tl={key:2,class:"annexImage"},il={key:3,class:"approveList"},nl={class:"nodeBg-list"},rl=["src"],ol={key:1},al={key:2,class:"ikapprove ikapprove-duihao2 green read"},sl=["title"],ll={key:0,class:"branch"},ul={class:"branch-card"},cl={class:"branch-name"},fl={name:"IkingApprovalProcessDetail"},hl=u.defineComponent({...fl,props:{local:{type:Boolean,default:!1},defaultStatus:{type:Object,default:()=>({})},defaultNodeType:{type:Object,default:()=>({})},dataList:{type:Array,default:()=>[]},defaultFieldMap:{type:Object,default:()=>({})},returnNode:{type:Array,default:()=>[]},fileUrl:{type:String,default:""},kkUrl:{type:String,default:""},isOnlyOfficePreview:{type:Boolean,default:!1},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""}},emits:["preview"],setup(s,{emit:a}){const r=s,{cLoadUrl:t}=kt(r),e=u.reactive(hr(r));u.watch(()=>r.dataList,f=>{f&&(u.nextTick(()=>{e.listData=f}),setTimeout(()=>{r.returnNode.length&&i()},500))},{deep:!0}),u.onMounted(()=>{r.dataList.length&&(e.listData=r.dataList,setTimeout(()=>{r.returnNode.length&&i()},500))});const i=()=>{let f=null;if(r!=null&&r.returnNode)for(f of r==null?void 0:r.returnNode){if(isNaN(f[1]))return;let h=Array.from(new Array(f[1]+1).keys()).slice(f[0]);u.nextTick(()=>{n(h)})}},n=f=>{var C,w,E;let h=document.createElement("div"),g=document.getElementById("approveProcess"),m=0,p=(C=document.getElementById(`${f[0]}`))==null?void 0:C.offsetWidth,v=(w=document.getElementById(`${f[0]}`))==null?void 0:w.offsetLeft,y=(E=document.getElementById(`${f[0]}`))==null?void 0:E.offsetTop;f.forEach(O=>{let T=document.getElementById(`${O}`);m+=T.offsetHeight}),setTimeout(()=>{h.style.width=p+32+"px",h.style.height=m+"px",h.style.background="#f9f9f9",h.style.position="absolute",h.style.top=y-16+"px",h.style.left=v-16+"px",h.style.zIndex=-1,g==null||g.appendChild(h)})},o=(f,h,g)=>{var v,y;let m=(v=e.listData)==null?void 0:v.findIndex(C=>C.lineType=="dashed"),p="";if(g&&((y=g[e.defaultFile.approvePersonList])==null?void 0:y.findIndex(w=>w[e.defaultFile.approveStatus]===e.statusOption.执行中))>-1)return"ikapprove ikapprove-dengdai orange";switch(f){case e.statusOption.发起:p="ikapprove-duihao2 green";break;case e.statusOption.执行中:p=m==h?"ikapprove-dengdai orange":"";break;case e.statusOption.同意:p="ikapprove-duihao2 green";break;case e.statusOption.拒绝:p="ikapprove-jujue red";break;case e.statusOption.转交:p="ikapprove-zhuanjiao blue";break;case e.statusOption.加签:p="ikapprove-tianjia blue";break;case e.statusOption.退回:p="ikapprove-s_fanhui2 red";break;case e.statusOption.评论:p="ikapprove-pinglun1 blue";break}return`ikapprove ${p}`},l=(f,h)=>{f.show=!f.show;let g=document.getElementById(`${f[e.defaultFile.nodeId]}`),m=Array.from(g==null?void 0:g.getElementsByClassName("approveList"));for(let p of m)p.style.display=h},c=f=>Fe(t.value,f);return(f,h)=>{const g=u.resolveComponent("el-image"),m=u.resolveComponent("IkingApprovalProcessDetail");return u.openBlock(),u.createElementBlock("div",_s,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.listData,(p,v)=>{var y,C,w,E,O,T,R,P,W,j;return u.openBlock(),u.createElementBlock("div",{class:"approveBlock",id:p[e.defaultFile.nodeId],key:p[e.defaultFile.nodeId]},[u.createElementVNode("div",Cs,[u.createElementVNode("div",ws,[u.createElementVNode("span",Es,[u.createCommentVNode(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),((y=p[e.defaultFile.approvePersonList])==null?void 0:y.length)==1&&p[e.defaultFile.approvePersonList][0].userAvatar?(u.openBlock(),u.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"10px"},src:c(p[e.defaultFile.approvePersonList][0].userAvatar),alt:""},null,8,bs)):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createCommentVNode(" 否则显示对应节点 "),u.createElementVNode("i",{class:u.normalizeClass(u.unref(dr)(e,p[e.defaultFile.nodeType],p[e.defaultFile.approvePersonList]))},null,2)],2112)),u.createCommentVNode(" 审批状态图标 "),u.createElementVNode("i",{class:u.normalizeClass(o(p[e.defaultFile.approveStatus],v,p))},null,2)])]),u.createElementVNode("div",Ts,[u.createElementVNode("div",Ss,[u.createElementVNode("div",null,[u.createCommentVNode(" 不是抄送节点 "),e.nodeType.抄送节点!==p[e.defaultFile.nodeType]?(u.openBlock(),u.createElementBlock("div",xs,[u.createCommentVNode(" 撤销,评论不显示节点名称 "),p[e.defaultFile.approveStatus]!=e.statusOption.撤销&&p[e.defaultFile.approveStatus]!=e.statusOption.评论&&p[e.defaultFile.nodeType]!==e.nodeType.并行分支?(u.openBlock(),u.createElementBlock("div",Is,u.toDisplayString(p[e.defaultFile.nodeTypeName]),1)):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 名字+审批状态 "),u.createElementVNode("div",Ps,[u.createCommentVNode(" 已审批节点文本 "),p[e.defaultFile.lineType]=="solid"?(u.openBlock(),u.createElementBlock("div",As,[u.createElementVNode("span",{style:u.normalizeStyle({color:p[e.defaultFile.approveStatus]==e.statusOption.评论?"#000":""})},u.toDisplayString(p[e.defaultFile.originator]),5),u.createCommentVNode(" 发起,退回不显示状态 "),p[e.defaultFile.approveStatusName]&&p[e.defaultFile.approveStatus]!=e.statusOption.发起&&p[e.defaultFile.approveStatus]!=e.statusOption.退回?(u.openBlock(),u.createElementBlock("span",Ls,u.toDisplayString(p[e.defaultFile.approveStatus]==e.statusOption.评论?" 添加了评论":p!=null&&p.nodeActionAliasName?`(已${p.nodeActionAliasName})`:`(${p[e.defaultFile.approveStatusName]})`),1)):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 退回状态显示 "),p[e.defaultFile.approveStatus]==e.statusOption.退回?(u.openBlock(),u.createElementBlock("span",Ds,[h[0]||(h[0]=u.createElementVNode("span",{class:"red",style:{margin:"0px 5px"}}," 退回至",-1)),u.createTextVNode(" "+u.toDisplayString(p[e.defaultFile.backToInstanceNodeName]||p[e.defaultFile.backToRecordNodeName]),1)])):u.createCommentVNode("v-if",!0)])):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createCommentVNode(" 待审批节点 "),u.createElementVNode("div",null,[((C=p[e.defaultFile.approvePersonList])==null?void 0:C.length)==1?(u.openBlock(),u.createElementBlock("span",Ns,[u.createTextVNode(u.toDisplayString(p[e.defaultFile.originator])+" ",1),p[e.defaultFile.approveStatus]==e.statusOption.等待?(u.openBlock(),u.createElementBlock("span",Os,u.toDisplayString(p!=null&&p.nodeActionAliasName?`(已${p.nodeActionAliasName})`:`(${p[e.defaultFile.approveStatusName]})`),1)):u.createCommentVNode("v-if",!0)])):p[e.defaultFile.approvePersonList]?(u.openBlock(),u.createElementBlock("span",Rs,u.toDisplayString(`${(w=p[e.defaultFile.approvePersonList])==null?void 0:w.length}人${p[e.defaultFile.approveTypeName]}`),1)):u.createCommentVNode("v-if",!0)])],2112))])])):(u.openBlock(),u.createElementBlock("div",Fs,[h[2]||(h[2]=u.createElementVNode("div",{class:"main-text"},"抄送人员",-1)),u.createElementVNode("div",Ms,[u.createCommentVNode(" 抄送一人时 "),((E=p[e.defaultFile.approvePersonList])==null?void 0:E.length)==1?(u.openBlock(),u.createElementBlock("span",Bs,[u.createElementVNode("span",null,[h[1]||(h[1]=u.createTextVNode("已抄送给 ")),u.createElementVNode("span",Vs,u.toDisplayString(p[e.defaultFile.approvePersonList][0].userName),1)]),u.createElementVNode("span",Hs,u.toDisplayString(p[e.defaultFile.approvePersonList][0].status==="END"?"已读":"未读"),1)])):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 抄送多人时 "),((O=p[e.defaultFile.approvePersonList])==null?void 0:O.length)>1?(u.openBlock(),u.createElementBlock("span",zs,[u.createTextVNode(u.toDisplayString(`已抄送${(T=p[e.defaultFile.approvePersonList])==null?void 0:T.length}人`)+" ",1),p[e.defaultFile.allRead]?(u.openBlock(),u.createElementBlock("span",Us," 全部已读 ")):(u.openBlock(),u.createElementBlock("span",js,[p[e.defaultFile.read]?u.createCommentVNode("v-if",!0):(u.openBlock(),u.createElementBlock("span",Ws," 全部未读 ")),p[e.defaultFile.read]?(u.openBlock(),u.createElementBlock("span",$s,u.toDisplayString(p[e.defaultFile.read])+"人已读 ",1)):u.createCommentVNode("v-if",!0)]))])):u.createCommentVNode("v-if",!0)])]))]),u.createElementVNode("div",Gs,[u.createCommentVNode(" 不是抄送节点,展示时间 "),p[e.defaultFile.nodeType]!=e.nodeType.抄送节点&&p[e.defaultFile.approveStatus]!==e.statusOption.等待?(u.openBlock(),u.createElementBlock("span",Ks,u.toDisplayString(u.unref(re.ikDate).toDateTime(p[e.defaultFile.operationTime],"MM/DD HH:mm")),1)):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 是抄送节点,并且抄送人员大于1时,展示图标 "),p[e.defaultFile.nodeType]==e.nodeType.抄送节点&&((R=p[e.defaultFile.approvePersonList])==null?void 0:R.length)>1?(u.openBlock(),u.createElementBlock("span",Ys,[p!=null&&p.show?(u.openBlock(),u.createElementBlock("i",{key:0,class:"ikapprove ikapprove-a-putongjiantouzhankai",onClick:I=>l(p,"grid")},null,8,Xs)):(u.openBlock(),u.createElementBlock("i",{key:1,onClick:I=>l(p,"none"),class:"ikapprove ikapprove-a-putongjiantoushouqi"},null,8,qs))])):u.createCommentVNode("v-if",!0)])])])]),u.createElementVNode("div",{class:"bottomBlock",style:u.normalizeStyle({borderLeft:v==e.listData.length-1?"":`2px ${p[e.defaultFile.lineType]||"dashed"} var(--el-border-color)`})},[u.createCommentVNode(" 审批意见 "),p[e.defaultFile.approveOpinion]||p[e.defaultFile.approveStatus]==e.statusOption.加签?(u.openBlock(),u.createElementBlock("div",Zs,[p[e.defaultFile.approveOpinion]?(u.openBlock(),u.createElementBlock("span",Js,u.toDisplayString(p[e.defaultFile.approveOpinion]),1)):u.createCommentVNode("v-if",!0),p[e.defaultFile.approveStatus]==e.statusOption.加签?(u.openBlock(),u.createElementBlock("span",Qs,[h[3]||(h[3]=u.createElementVNode("span",{class:"ik-text-primary"},"添加审批人",-1)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(p[e.defaultFile.countersignPer],(I,K)=>(u.openBlock(),u.createElementBlock("span",el,u.toDisplayString(I==null?void 0:I.userName)+u.toDisplayString(K<p[e.defaultFile.countersignPer].length-1?"、":""),1))),256))])):u.createCommentVNode("v-if",!0)])):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 附件 "),(P=p[e.defaultFile.attachment])!=null&&P.length?(u.openBlock(),u.createBlock(u.unref(xr),{key:1,list:p[e.defaultFile.attachment]},null,8,["list"])):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 附件图片 "),(W=p[e.defaultFile.attachmentImg])!=null&&W.length?(u.openBlock(),u.createElementBlock("div",tl,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(p[e.defaultFile.attachmentImg],(I,K)=>(u.openBlock(),u.createElementBlock("div",{class:"image",key:K},[u.createVNode(g,{src:c(I),"preview-src-list":p[e.defaultFile.attachmentImg].map(J=>c(J)),fit:"cover","z-index":"9999","zoom-rate":1.2,alt:c(I)},null,8,["src","preview-src-list","alt"])]))),128))])):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 抄送节点或是等待审批状态并且列表长度大于1 "),(p[e.defaultFile.nodeType]==e.nodeType.抄送节点||p[e.defaultFile.approveStatus]==e.statusOption.等待)&&((j=p[e.defaultFile.approvePersonList])==null?void 0:j.length)>1?(u.openBlock(),u.createElementBlock("div",il,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(p[e.defaultFile.approvePersonList],I=>(u.openBlock(),u.createElementBlock("div",{class:"perBlock",key:I.userName},[u.createElementVNode("span",nl,[I.userAvatar?(u.openBlock(),u.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:c(I.userAvatar),alt:""},null,8,rl)):(u.openBlock(),u.createElementBlock("span",ol,u.toDisplayString(I.userName.slice(-2)),1)),I.status==="END"?(u.openBlock(),u.createElementBlock("i",al)):u.createCommentVNode("v-if",!0)]),u.createElementVNode("div",{class:"main-text",title:I.userName},u.toDisplayString(I.userName),9,sl)]))),128))])):u.createCommentVNode("v-if",!0)],4),p[e.defaultFile.nodeType]===e.nodeType.并行分支?(u.openBlock(),u.createElementBlock("div",ll,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(p[e.defaultFile.parallelInstances],I=>(u.openBlock(),u.createElementBlock("div",ul,[u.createElementVNode("div",cl,u.toDisplayString(I.name),1),u.createVNode(m,u.mergeProps({ref_for:!0},r,{"data-list":(I==null?void 0:I.processInstanceNodes)||[]}),null,16,["data-list"])]))),256))])):u.createCommentVNode("v-if",!0)],8,ks)}),128))])}}}),In=pe(Ze(hl,[["__scopeId","data-v-e0a05314"]]));le.IkApprovalProcessDetail=In,le.default=In,Object.defineProperties(le,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
226
+ </canvas><xgmask></xgmask></div>`)),this.root=o.children[0],this.canvas=this.find("canvas"),this.canvasFilter||(this.canvas.style.filter=n.filter,this.canvas.style.webkitFilter=n.filter),this.mask=this.find("xgmask"),n.addMask&&(this.mask.style.background=n.maskBg),this.canvasCtx=this.canvas.getContext("2d")}catch(l){B.logError("plugin:DynamicBg",l)}}},{key:"reRender",value:function(e){var i=this.config.disable;if(!(!i&&!this.root)){this.stop();var n=this.root?this.root.parentElement:null;if(n!==e&&n.removeChild(this.root),!e){this.root=null;return}this.init(e),this.renderOnce();var o=this.config.startInterval;this._checkIfCanStart()&&this.start(0,o)}}},{key:"checkVideoIsSupport",value:function(e){if(!e)return null;var i=e&&e instanceof window.HTMLVideoElement?e:e.canvas?e.canvas:e.flyVideo?e.flyVideo:null;if(i&&!(M.browser==="safari"&&d.isMSE(i)))return i;var n=i?i.tagName.toLowerCase():"";return n==="canvas"||n==="img"?i:null}},{key:"renderByPoster",value:function(){var e=this.playerConfig.poster;if(e){var i=d.typeOf(e)==="String"?e:d.typeOf(e.poster)==="String"?e.poster:null;this.updateImg(i)}}},{key:"_checkIfCanStart",value:function(){var e=this.config.mode;return this._isLoaded&&!this.player.paused&&e!==je.FIRST_FRAME&&e!==je.POSTER}},{key:"renderOnce",value:function(){var e=this.player.video;if(!(!e.videoWidth||!e.videoHeight)){this.videoPI=parseInt(e.videoWidth/e.videoHeight*100,10);var i=this.checkVideoIsSupport(e);i&&this.update(i,this.videoPI)}}},{key:"updateImg",value:function(e){var i=this;if(e){var n=this.canvas.getBoundingClientRect(),o=n.width,l=n.height,c=new window.Image;c.onload=function(){if(!(!i.canvas||i.frameId||i.isStart)){i.canvas.height=l,i.canvas.width=o;var f=parseInt(o/l*100,10);i.update(c,f),c=null}},c.src=e}}},{key:"update",value:function(e,i){if(!(!this.canvas||!this.canvasCtx||!i))try{var n=this._pos,o=this.config,l=this.canvas.getBoundingClientRect(),c=l.width,f=l.height;if(c!==n.width||f!==n.height||n.pi!==i){var h=parseInt(c/f*100,10);n.pi=i,n.width!==c&&(n.width=this.canvas.width=c),n.height!==f&&(n.height=this.canvas.height=f);var g=f,m=c;h<i?m=parseInt(f*i/100,10):h>i&&(g=parseInt(c*100/i,10)),n.rwidth=m*o.multiple,n.rheight=g*o.multiple,n.x=(c-n.rwidth)/2,n.y=(f-n.rheight)/2}this.canvasFilter&&(this.canvasCtx.filter=o.filter),this.canvasCtx.drawImage(e,n.x,n.y,n.rwidth,n.rheight)}catch(p){B.logError("plugin:DynamicBg",p)}}},{key:"destroy",value:function(){this.stop(),document.removeEventListener("visibilitychange",this.onVisibilitychange),this.canvasCtx=null,this.canvas=null}},{key:"render",value:function(){return""}}],[{key:"pluginName",get:function(){return"dynamicBg"}},{key:"defaultConfig",get:function(){return{isInnerRender:!1,disable:!0,index:-1,mode:"framerate",frameRate:10,filter:"blur(50px)",startFrameCount:2,startInterval:0,addMask:!0,multiple:1.2,maskBg:"rgba(0,0,0,0.7)"}}},{key:"isSupport",get:function(){return typeof vt=="boolean"||(vt=us()),vt}},{key:"supportCanvasFilter",value:function(){return!(M.browser==="safari"||M.browser==="firefox")}}]),r}(H),fs={LANG:"zh-cn",TEXT:{ERROR_TYPES:{network:{code:1,msg:"视频下载错误"},mse:{code:2,msg:"流追加错误"},parse:{code:3,msg:"解析错误"},format:{code:4,msg:"格式错误"},decoder:{code:5,msg:"解码错误"},runtime:{code:6,msg:"语法错误"},timeout:{code:7,msg:"播放超时"},other:{code:8,msg:"其他错误"}},HAVE_NOTHING:"没有关于音频/视频是否就绪的信息",HAVE_METADATA:"音频/视频的元数据已就绪",HAVE_CURRENT_DATA:"关于当前播放位置的数据是可用的,但没有足够的数据来播放下一帧/毫秒",HAVE_FUTURE_DATA:"当前及至少下一帧的数据是可用的",HAVE_ENOUGH_DATA:"可用数据足以开始播放",NETWORK_EMPTY:"音频/视频尚未初始化",NETWORK_IDLE:"音频/视频是活动的且已选取资源,但并未使用网络",NETWORK_LOADING:"浏览器正在下载数据",NETWORK_NO_SOURCE:"未找到音频/视频来源",MEDIA_ERR_ABORTED:"取回过程被用户中止",MEDIA_ERR_NETWORK:"网络错误",MEDIA_ERR_DECODE:"解码错误",MEDIA_ERR_SRC_NOT_SUPPORTED:"不支持的音频/视频格式",REPLAY:"重播",ERROR:"网络连接似乎出现了问题",PLAY_TIPS:"播放",PAUSE_TIPS:"暂停",PLAYNEXT_TIPS:"下一集",DOWNLOAD_TIPS:"下载",ROTATE_TIPS:"旋转",RELOAD_TIPS:"重新载入",FULLSCREEN_TIPS:"进入全屏",EXITFULLSCREEN_TIPS:"退出全屏",CSSFULLSCREEN_TIPS:"进入样式全屏",EXITCSSFULLSCREEN_TIPS:"退出样式全屏",TEXTTRACK:"字幕",PIP:"画中画",SCREENSHOT:"截图",LIVE:"正在直播",OFF:"关闭",OPEN:"开启",MINI_DRAG:"点击按住可拖动视频",MINISCREEN:"小屏幕",REFRESH_TIPS:"请试试",REFRESH:"刷新",FORWARD:"快进中",LIVE_TIP:"直播"}},Xe="info",ni=Wi,hs=function(s){A(r,s);var a=L(r);function r(){var t;S(this,r);for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return t=a.call.apply(a,[this].concat(i)),k(_(t),"_recordUserActions",function(o){var l=t._getTime(),c=Object.assign({},o,{msg:o.msg||o.action});t._stats[Xe].push($($({type:"userAction"},l),{},{payload:c}))}),k(_(t),"_onReset",function(){t.reset()}),k(_(t),"_recordInfo",function(o){t.info(o)}),k(_(t),"_downloadStats",function(){var o=t.getStats(),l=new Blob([JSON.stringify(o)],{type:"application/json"}),c=window.URL.createObjectURL(l),f=document.createElement("a");f.style.display="none",f.href=c,f.download="player.txt",f.disabled=!1,f.click()}),t}return x(r,[{key:"_getTime",value:function(){return{timestamp:Date.now(),timeFormat:new Date().toISOString()}}},{key:"afterCreate",value:function(){this.reset(),this.on(st,this._recordUserActions),this.on(ni.STATS_INFO,this._recordInfo),this.on(ni.STATS_DOWNLOAD,this._downloadStats),this.on(ni.STATS_RESET,this._onReset)}},{key:"destroy",value:function(){this.offAll()}},{key:"downloadStats",value:function(){this._downloadStats()}},{key:"info",value:function(e){e.profile?this._infoProfile(e):this._info(e)}},{key:"_info",value:function(e){var i=this._getTime();this._stats[Xe].push($($({},i),{},{payload:e}))}},{key:"_infoProfile",value:function(e){if(e&&e.startMs){var i=Date.now(),n=i-e.startMs,o=$({cat:"function",dur:n,name:e.name||e.msg,ph:"X",pid:0,tid:0,ts:e.startMs,profile:!0},e);this._info(o)}else console.warn("infoProfile need object data, include startMs")}},{key:"reset",value:function(){var e;this._stats=(e={},k(e,Xe,[]),k(e,"media",{}),e)}},{key:"getStats",value:function(){for(var e=this.player,i=e.media,n=[],o=0;o<i.buffered.length;o++)n.push({start:i.buffered.start(o),end:i.buffered.end(o)});var l={currentTime:i.currentTime,readyState:i.readyState,buffered:n,paused:i.paused,ended:i.ended};return this._stats.media=l,{raw:this._stats,timestat:this._getTimeStats(),profile:this._getProfile()}}},{key:"_getTimeStats",value:function(){var e=this._stats[Xe],i=e.map(function(n){var o=n.payload.data,l="";try{o instanceof Error?l=o.msg:o!==void 0&&(l=JSON.stringify(o))}catch(c){console.log("err",c)}return"[".concat(n.timeFormat,"] : ").concat(n.payload.msg," ").concat(l," ")});return i}},{key:"_getProfile",value:function(){var e={traceEvents:[]},i=this._stats[Xe];return i.forEach(function(n){n.payload.profile&&e.traceEvents.push(n.payload)}),e}}],[{key:"pluginName",get:function(){return"stats"}},{key:"defaultConfig",get:function(){return{}}}]),r}(Ee),xn=function(s){A(r,s);var a=L(r);function r(){var t;S(this,r);for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return t=a.call.apply(a,[this].concat(i)),k(_(t),"onGapJump",function(){var o=_(t),l=o.player,c=o.config;if(l.media.readyState!==HTMLMediaElement.HAVE_NOTHING){if(l.media.seeking){if(!t.seekingEventReceived)return}else t.seekingEventReceived=!1;if(!(l.media.paused&&l.media.currentTime!==0&&t.hasPlayed)){var f=l.media.buffered,h=c.smallGapLimit||.5,g=c.gapDetectionThreshold||.3,m=l.media.currentTime,p=t._getIndex(f,m,g);if(!(p===null||p===0)){console.log("GapJump bufferRange ",f.start(p),f.end(p));var v=f.start(p)+.1,y=l.media.duration;if(!(v>y)){var C=v-m,w=C<=h;C<r.BROWSER_GAP_TOLERANCE||w&&(c.useGapJump!==!1&&(l.media.currentTime=t.isSafari?v+.1:v),t.player&&t.player.emit("detectGap"),console.log("gapJump gapIndex",p," isGapSamll:",w," currentTime:",l.media.currentTime," jumpSize:",m-l.media.currentTime),v!==.08&&l&&l.emit("log",{type:"oneevent",end_type:"gap",vid:l.config.vid,ext:{video_postion:Math.floor(v*1e3)}}))}}}}}),t}return x(r,[{key:"afterCreate",value:function(){var e=this,i=this.config.useGapJump;i!==!1&&(this.hasPlayed=!1,this.seekingEventReceived=!1,this.isSafari=/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),this.on(Ge,this.onGapJump),this.on(ee,function(){e.hasPlayed=!0}),this.on(et,function(){e.seekingEventReceived=!0}))}},{key:"_getIndex",value:function(e,i,n){if(!e||!e.length||e.length===1&&e.end(0)-e.start(0)<1e-6)return null;for(var o=this._getBuffered(e),l=null,c=0;c<o.length;c++){var f=o[c];if(f.start>i&&(c===0||o[c-1].end-i<=n)){l=c;break}}return l}},{key:"_getBuffered",value:function(e){if(!e)return[];for(var i=[],n=0;n<e.length;n++)i.push({start:e.start(n),end:e.end(n)});return i}}],[{key:"pluginName",get:function(){return"gapJump"}},{key:"defaultConfig",get:function(){return{useGapJump:!1,smallGapLimit:.5,gapDetectionThreshold:.3}}}]),r}(H);xn.BROWSER_GAP_TOLERANCE=.001;var ds=function(s){A(r,s);var a=L(r);function r(){var t;S(this,r);for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return t=a.call.apply(a,[this].concat(i)),k(_(t),"onWaiting",function(){var o=_(t),l=o.config;t.jumpCnt>l.jumpCntMax||t.timer||l.useWaitingTimeoutJump===!1||(t.timer=setTimeout(t.onJump,l.waitingTime*1e3))}),k(_(t),"onJump",function(){var o=_(t),l=o.player,c=o.config;if(clearTimeout(t.timer),t.timer=null,!(t.jumpCnt>c.jumpCntMax||c.useWaitingTimeoutJump===!1)&&!(l.media.paused&&l.media.currentTime!==0&&t.hasPlayed)){t.jumpSize=c.jumpSize*(t.jumpCnt+1),t.jumpCnt===c.jumpSize&&t.jumpSize<6&&(t.jumpSize=6);var f=l.currentTime+t.jumpSize,h=l.media.duration;f>h||(t.jumpCnt++,l.currentTime=f)}}),t}return x(r,[{key:"afterCreate",value:function(){var e=this,i=this.config,n=i.useWaitingTimeoutJump,o=i.jumpSize;n!==!1&&(this.hasPlayed=!1,this.jumpCnt=0,this.timer=null,this.jumpSize=o,this.on(Ge,this.onWaiting),this.on([Lt,me],function(){clearTimeout(e.timer),e.timer=null,e.jumpSize=e.config.jumpSize}),this.on(ee,function(){e.hasPlayed=!0}))}}],[{key:"pluginName",get:function(){return"waitingTimeoutJump"}},{key:"defaultConfig",get:function(){return{useWaitingTimeoutJump:!1,waitingTime:15,jumpSize:2,jumpCntMax:4}}}]),r}(H),We="cdn",yt=["cdn"],ps=function(s){A(r,s);var a=L(r);function r(){var t;S(this,r);for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return t=a.call.apply(a,[this].concat(i)),k(_(t),"getSpeed",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:We;if(!t.speedListCache||!t.speedListCache[o]||t.speedListCache[o].length<=0)return 0;var l=0;return t.speedListCache[o].map(function(c){l+=c}),Math.floor(l/t.speedListCache[o].length)}),k(_(t),"startTimer",function(){d.isMSE(t.player.video)||(t.initSpeedList(),t.cnt=0,t.timer=setTimeout(t.testSpeed,t.config.testTimeStep))}),k(_(t),"initSpeedList",function(){t.speedListCache={},yt.forEach(function(o){t.speedListCache[o]=[]})}),k(_(t),"_onRealSpeedChange",function(o){o.speed&&t.appendList(o.speed,o.type||We)}),k(_(t),"testSpeed",function(){if(clearTimeout(t.timer),t.timer=null,!(!t.player||!t.config.openSpeed)){var o=t.config,l=o.url,c=o.loadSize,f=o.testCnt,h=o.testTimeStep,g=l+(l.indexOf("?")<0?"?testst=":"&testst=")+Date.now();if(!(t.cnt>=f)){t.cnt++;try{var m=new Date().getTime(),p=null,v=new XMLHttpRequest;t.xhr=v,v.open("GET",g);var y={},C=Math.floor(Math.random()*10);y.Range="bytes="+C+"-"+(c+C),y&&Object.keys(y).forEach(function(w){v.setRequestHeader(w,y[w])}),v.onreadystatechange=function(){if(v.readyState===4){t.xhr=null,p=new Date().getTime();var w=v.getResponseHeader("Content-Length")/1024*8,E=Math.round(w*1e3/(p-m));t.appendList(E),t.timer=setTimeout(t.testSpeed,h)}},v.send()}catch(w){console.error(w)}}}}),k(_(t),"appendList",function(o){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:We;if(!(!t.speedListCache||!t.speedListCache[l])){var c=t.config.saveSpeedMax;t.speedListCache[l].length>=c&&t.speedListCache[l].shift(),t.speedListCache[l].push(o);var f=_(t),h=f.player;h&&(l===We?h.realTimeSpeed=o:h[t.getSpeedName("realTime",l)]=o),t.updateSpeed(l)}}),k(_(t),"updateSpeed",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:We,l=t.getSpeed(o),c=_(t),f=c.player;if(f)if(o===We)(!f.avgSpeed||l!==f.avgSpeed)&&(f.avgSpeed=l,f.emit(Mt,{speed:l,realTimeSpeed:f.realTimeSpeed}));else{var h=t.getSpeedName("avg",o);(!f[h]||l!==f[h])&&(f[h]=l,f.emit(Mt,{speed:l,realTimeSpeed:f.realTimeSpeed}))}}),t}return x(r,[{key:"afterCreate",value:function(){var e=this.config,i=e.openSpeed,n=e.addSpeedTypeList;(n==null?void 0:n.length)>0&&yt.push.apply(yt,oe(n)),this.initSpeedList(),this.on("real_time_speed",this._onRealSpeedChange),this.timer=null,this.cnt=0,this.xhr=null,i&&this.on([ye,it],this.startTimer)}},{key:"getSpeedName",value:function(e,i){return e+"Speed"+i.toUpperCase()}},{key:"openSpeed",get:function(){return this.config.openSpeed},set:function(e){if(this.config.openSpeed=e,!e&&this.timer){clearTimeout(this.timer),this.timer=null;return}if(this.config.openSpeed){if(this.timer)return;this.timer=setTimeout(this.testSpeed,this.config.testTimeStep)}}},{key:"destroy",value:function(){var e=this;this.off("real_time_speed",this._onRealSpeedChange),this.off([ye,it],this.startTimer),yt.forEach(function(i){e.speedListCache&&e.speedListCache[i]&&(e.speedListCache[i]=[])}),this.speedListCache&&(this.speedListCache={}),clearTimeout(this.timer),this.timer=null,this.xhr&&this.xhr.readyState!==4&&(this.xhr.cancel&&this.xhr.cancel(),this.xhr=null)}}],[{key:"pluginName",get:function(){return"testspeed"}},{key:"defaultConfig",get:function(){return{openSpeed:!1,testCnt:3,loadSize:200*1024,testTimeStep:3e3,url:"",saveSpeedMax:5,addSpeedTypeList:[]}}}]),r}(H),gs=function(s){A(r,s);var a=L(r);function r(){return S(this,r),a.apply(this,arguments)}return x(r,[{key:"afterCreate",value:function(){var e=this,i=this.player,n=this.config,o=i.media||i.video;if(this.timer=null,this._lastDecodedFrames=0,this._currentStuckCount=0,this._lastCheckPoint=null,this._payload=[],!n.disabled){var l=o.getVideoPlaybackQuality;l&&(this.on(ee,function(){e._startTick()}),this.on(Me,function(){e._stopTick()}),this.on(Pe,function(){e._stopTick()}),this.on(Ae,function(){e._stopTick()}))}}},{key:"_startTick",value:function(){var e=this;this._stopTick(),this._timer=setTimeout(function(){e._checkDecodeFPS(),e._startTick()},this.config.tick)}},{key:"_stopTick",value:function(){clearTimeout(this._timer),this._timer=null}},{key:"_checkBuffer",value:function(e,i){for(var n=!1,o=[],l=0;l<i.length;l++){var c=i.start(l),f=i.end(l);if(o.push({start:c,end:f}),c<=e&&e<=f-1){n=!0;break}}return{enoughBuffer:n,buffers:o}}},{key:"_checkStuck",value:function(e,i,n,o){var l=this.player.media||this.player.video,c=document.hidden,f=l.paused,h=l.readyState,g=l.currentTime,m=l.buffered;if(!(c||f||h<4)){var p=this._checkBuffer(g,m),v=p.enoughBuffer,y=p.buffers;v&&(e<=this.config.reportFrame?(this._currentStuckCount++,this._payload.push({currentTime:g,buffers:y,curDecodedFrames:e,totalVideoFrames:i,droppedVideoFrames:n,checkInterval:o}),this._currentStuckCount>=this.config.stuckCount&&(this.emit($i,this._payload),this._reset())):this._reset())}}},{key:"_reset",value:function(){this._payload=[],this._currentStuckCount=0}},{key:"_checkDecodeFPS",value:function(){var e=this.player.media||this.player.video;if(e){var i=e.getVideoPlaybackQuality(),n=i.totalVideoFrames,o=i.droppedVideoFrames,l=performance.now();if(n&&this._lastCheckPoint){var c=n-this._lastDecodedFrames,f=l-this._lastCheckPoint;this._checkStuck(c,n,o,f)}this._lastDecodedFrames=n,this._lastCheckPoint=l}}},{key:"destroy",value:function(){this._stopTick()}}],[{key:"pluginName",get:function(){return"FpsDetect"}},{key:"defaultConfig",get:function(){return{disabled:!1,tick:1e3,stuckCount:3,reportFrame:0}}}]),r}(H);Be.use(fs);var ms=x(function s(a,r){var t,e,i;S(this,s);var n=r&&r.isMobileSimulateMode==="mobile",o=r.isLive,l=o?[]:[La,Ea,ss,os,Aa],c=[].concat(l,[ba,Pa,Ma,Ua,Ja,Qa,Ya,Xa,Ra,Ha]),f=[na,ra,aa,ka,sa,is,ns,as,fa];this.plugins=[hs,ta].concat(oe(c),f,[xn,ds]);var h=n?"mobile":M.device;switch(h){case"pc":(t=this.plugins).push.apply(t,[kn,ei,En,ps,gs]);break;case"mobile":(e=this.plugins).push.apply(e,[va]);break;default:(i=this.plugins).push.apply(i,[kn,ei,En])}(M.os.isIpad||h==="pc")&&this.plugins.push(cs),M.os.isIpad&&this.plugins.push(ei),this.ignores=[],this.i18n=[]}),ae=function(s){A(r,s);var a=L(r);function r(){return S(this,r),a.apply(this,arguments)}return x(r)}(dt);k(ae,"defaultPreset",ms),k(ae,"Util",d),k(ae,"Sniffer",M),k(ae,"Errors",Qe),k(ae,"Events",No),k(ae,"Plugin",H),k(ae,"BasePlugin",Ee),k(ae,"I18N",Be),k(ae,"STATE_CLASS",b),k(ae,"InstManager",un);const vs=["id"],ys=pe(Ze(u.defineComponent({name:"ElImageViewer",__name:"Player",props:u.mergeModels({url:{type:String,default:""},zIndex:{type:Number,default:200},config:{type:Object,default:()=>({})}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:u.mergeModels({close:()=>!0},["update:modelValue"]),setup(s,{emit:a}){let r=null;const t=s,{cLoadUrl:e}=kt(t),i=u.computed(()=>Fe(e.value,t.url)),n={width:"100%",height:"100%",autoplay:!1,volume:.6,controls:!0,playbackRate:[.5,.75,1,1.5,2],crossOrigin:!0,preload:"auto",muted:!1,loop:!0,poster:"",lang:"zh-CN",screenShot:!0},o=u.computed(()=>({...n,...t.config})),l=a,c=u.useModel(s,"modelValue"),f=re.buildUUID(),h=Y.useNamespace("image-viewer");function g(){l("close"),c.value=!1,r.destroy()}return u.watch(()=>c.value,m=>{m&&u.nextTick(()=>{r=new ae({id:f,url:i.value,...o.value})})}),(m,p)=>{const v=u.resolveComponent("el-icon");return c.value?(u.openBlock(),u.createBlock(u.Teleport,{key:0,to:"body"},[u.createVNode(u.Transition,{name:"viewer-fade",appear:""},{default:u.withCtx(()=>[u.createElementVNode("div",{ref:"wrapper",tabindex:-1,class:u.normalizeClass(u.unref(h).e("wrapper")),style:u.normalizeStyle({zIndex:s.zIndex})},[u.createElementVNode("div",{class:u.normalizeClass(u.unref(h).e("mask"))},null,2),u.createCommentVNode(" CANVAS "),u.createElementVNode("div",{class:u.normalizeClass(u.unref(h).e("canvas"))},[u.createElementVNode("div",{id:u.unref(f)},null,8,vs),u.createCommentVNode(" CLOSE "),u.createElementVNode("span",{class:u.normalizeClass([u.unref(h).e("btn"),u.unref(h).e("close")]),onClick:g},[u.createVNode(v,{onClick:g},{default:u.withCtx(()=>[u.createVNode(u.unref(li))]),_:1})],2)],2),u.renderSlot(m.$slots,"default",{},void 0,!0)],6)]),_:3})])):u.createCommentVNode("v-if",!0)}}}),[["__scopeId","data-v-b301aa7d"]])),_s={class:"approveProcess",id:"approveProcess"},ks=["id"],Cs={class:"topBlock"},ws={class:"left"},Es={class:"nodeBg"},bs=["src"],Ts={class:"right"},Ss={class:"topInfo"},xs={key:0},Is={key:0,class:"main-text"},Ps={class:"name"},As={key:0},Ls={key:0},Ds={key:1},Ns={key:0},Os={key:0},Rs={key:1},Fs={key:1},Ms={class:"name"},Bs={key:0},Vs={style:{color:"#000"}},Hs={class:"blue",style:{"margin-left":"5px","font-size":"12px"}},zs={key:1},Us={key:0,class:"blue",style:{"font-size":"12px"}},js={key:1},Ws={key:0,class:"blue",style:{"font-size":"12px"}},$s={key:1,class:"blue",style:{"font-size":"12px"}},Gs={class:"time"},Ks={key:0},Ys={key:1},Xs=["onClick"],qs=["onClick"],Zs={key:0,class:"opinion"},Js={key:0},Qs={key:1},el={style:{color:"var(--el-text-color-primary)","margin-left":"8px"}},tl={key:2,class:"annexImage"},il={key:3,class:"approveList"},nl={class:"nodeBg-list"},rl=["src"],ol={key:1},al={key:2,class:"ikapprove ikapprove-duihao2 green read"},sl=["title"],ll={key:0,class:"branch"},ul={class:"branch-card"},cl={class:"branch-name"},fl={name:"IkingApprovalProcessDetail"},hl=u.defineComponent({...fl,props:{local:{type:Boolean,default:!1},defaultStatus:{type:Object,default:()=>({})},defaultNodeType:{type:Object,default:()=>({})},dataList:{type:Array,default:()=>[]},defaultFieldMap:{type:Object,default:()=>({})},returnNode:{type:Array,default:()=>[]},fileUrl:{type:String,default:""},kkUrl:{type:String,default:""},isOnlyOfficePreview:{type:Boolean,default:!1},onlyOfficeAccept:{type:String,default:".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"},onlyofficeServer:{type:String,default:""}},emits:["preview"],setup(s,{emit:a}){const r=s,{cLoadUrl:t}=kt(r),e=u.reactive(hr(r));u.watch(()=>r.dataList,f=>{f&&(u.nextTick(()=>{e.listData=f}),setTimeout(()=>{r.returnNode.length&&i()},500))},{deep:!0}),u.onMounted(()=>{r.dataList.length&&(e.listData=r.dataList,setTimeout(()=>{r.returnNode.length&&i()},500))});const i=()=>{let f=null;if(r!=null&&r.returnNode)for(f of r==null?void 0:r.returnNode){if(isNaN(f[1]))return;let h=Array.from(new Array(f[1]+1).keys()).slice(f[0]);u.nextTick(()=>{n(h)})}},n=f=>{var C,w,E;let h=document.createElement("div"),g=document.getElementById("approveProcess"),m=0,p=(C=document.getElementById(`${f[0]}`))==null?void 0:C.offsetWidth,v=(w=document.getElementById(`${f[0]}`))==null?void 0:w.offsetLeft,y=(E=document.getElementById(`${f[0]}`))==null?void 0:E.offsetTop;f.forEach(O=>{let T=document.getElementById(`${O}`);m+=T.offsetHeight}),setTimeout(()=>{h.style.width=p+32+"px",h.style.height=m+"px",h.style.background="#f9f9f9",h.style.position="absolute",h.style.top=y-16+"px",h.style.left=v-16+"px",h.style.zIndex=-1,g==null||g.appendChild(h)})},o=(f,h,g)=>{var v,y;let m=(v=e.listData)==null?void 0:v.findIndex(C=>C.lineType=="dashed"),p="";if(g&&((y=g[e.defaultFile.approvePersonList])==null?void 0:y.findIndex(w=>w[e.defaultFile.approveStatus]===e.statusOption.执行中))>-1)return"ikapprove ikapprove-dengdai orange";switch(f){case e.statusOption.发起:p="ikapprove-duihao2 green";break;case e.statusOption.执行中:p=m==h?"ikapprove-dengdai orange":"";break;case e.statusOption.同意:p="ikapprove-duihao2 green";break;case e.statusOption.拒绝:p="ikapprove-jujue red";break;case e.statusOption.转交:p="ikapprove-zhuanjiao blue";break;case e.statusOption.加签:p="ikapprove-tianjia blue";break;case e.statusOption.退回:p="ikapprove-s_fanhui2 red";break;case e.statusOption.评论:p="ikapprove-pinglun1 blue";break}return`ikapprove ${p}`},l=(f,h)=>{f.show=!f.show;let g=document.getElementById(`${f[e.defaultFile.nodeId]}`),m=Array.from(g==null?void 0:g.getElementsByClassName("approveList"));for(let p of m)p.style.display=h},c=f=>Fe(t.value,f);return(f,h)=>{const g=u.resolveComponent("el-image"),m=u.resolveComponent("IkingApprovalProcessDetail");return u.openBlock(),u.createElementBlock("div",_s,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.listData,(p,v)=>{var y,C,w,E,O,T,R,P,W,j;return u.openBlock(),u.createElementBlock("div",{class:"approveBlock",id:p[e.defaultFile.nodeId],key:p[e.defaultFile.nodeId]},[u.createElementVNode("div",Cs,[u.createElementVNode("div",ws,[u.createElementVNode("span",Es,[u.createCommentVNode(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),((y=p[e.defaultFile.approvePersonList])==null?void 0:y.length)==1&&p[e.defaultFile.approvePersonList][0].userAvatar?(u.openBlock(),u.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"10px"},src:c(p[e.defaultFile.approvePersonList][0].userAvatar),alt:""},null,8,bs)):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createCommentVNode(" 否则显示对应节点 "),u.createElementVNode("i",{class:u.normalizeClass(u.unref(dr)(e,p[e.defaultFile.nodeType],p[e.defaultFile.approvePersonList]))},null,2)],2112)),u.createCommentVNode(" 审批状态图标 "),u.createElementVNode("i",{class:u.normalizeClass(o(p[e.defaultFile.approveStatus],v,p))},null,2)])]),u.createElementVNode("div",Ts,[u.createElementVNode("div",Ss,[u.createElementVNode("div",null,[u.createCommentVNode(" 不是抄送节点 "),e.nodeType.抄送节点!==p[e.defaultFile.nodeType]?(u.openBlock(),u.createElementBlock("div",xs,[u.createCommentVNode(" 撤销,评论不显示节点名称 "),p[e.defaultFile.approveStatus]!=e.statusOption.撤销&&p[e.defaultFile.approveStatus]!=e.statusOption.评论&&p[e.defaultFile.nodeType]!==e.nodeType.并行分支?(u.openBlock(),u.createElementBlock("div",Is,u.toDisplayString(p[e.defaultFile.nodeTypeName]),1)):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 名字+审批状态 "),u.createElementVNode("div",Ps,[u.createCommentVNode(" 已审批节点文本 "),p[e.defaultFile.lineType]=="solid"?(u.openBlock(),u.createElementBlock("div",As,[u.createElementVNode("span",{style:u.normalizeStyle({color:p[e.defaultFile.approveStatus]==e.statusOption.评论?"#000":""})},u.toDisplayString(p[e.defaultFile.originator]),5),u.createCommentVNode(" 发起,退回不显示状态 "),p[e.defaultFile.approveStatusName]&&p[e.defaultFile.approveStatus]!=e.statusOption.发起&&p[e.defaultFile.approveStatus]!=e.statusOption.退回?(u.openBlock(),u.createElementBlock("span",Ls,u.toDisplayString(p[e.defaultFile.approveStatus]==e.statusOption.评论?" 添加了评论":p!=null&&p.nodeActionAliasName?`(已${p.nodeActionAliasName})`:`(${p[e.defaultFile.approveStatusName]})`),1)):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 退回状态显示 "),p[e.defaultFile.approveStatus]==e.statusOption.退回?(u.openBlock(),u.createElementBlock("span",Ds,[h[0]||(h[0]=u.createElementVNode("span",{class:"red",style:{margin:"0px 5px"}}," 退回至",-1)),u.createTextVNode(" "+u.toDisplayString(p[e.defaultFile.backToInstanceNodeName]||p[e.defaultFile.backToRecordNodeName]),1)])):u.createCommentVNode("v-if",!0)])):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createCommentVNode(" 待审批节点 "),u.createElementVNode("div",null,[((C=p[e.defaultFile.approvePersonList])==null?void 0:C.length)==1?(u.openBlock(),u.createElementBlock("span",Ns,[u.createTextVNode(u.toDisplayString(p[e.defaultFile.originator])+" ",1),p[e.defaultFile.approveStatus]==e.statusOption.等待?(u.openBlock(),u.createElementBlock("span",Os,u.toDisplayString(p!=null&&p.nodeActionAliasName?`(已${p.nodeActionAliasName})`:`(${p[e.defaultFile.approveStatusName]})`),1)):u.createCommentVNode("v-if",!0)])):p[e.defaultFile.approvePersonList]?(u.openBlock(),u.createElementBlock("span",Rs,u.toDisplayString(`${(w=p[e.defaultFile.approvePersonList])==null?void 0:w.length}人${p[e.defaultFile.approveTypeName]}`),1)):u.createCommentVNode("v-if",!0)])],2112))])])):(u.openBlock(),u.createElementBlock("div",Fs,[h[2]||(h[2]=u.createElementVNode("div",{class:"main-text"},"抄送人员",-1)),u.createElementVNode("div",Ms,[u.createCommentVNode(" 抄送一人时 "),((E=p[e.defaultFile.approvePersonList])==null?void 0:E.length)==1?(u.openBlock(),u.createElementBlock("span",Bs,[u.createElementVNode("span",null,[h[1]||(h[1]=u.createTextVNode("已抄送给 ")),u.createElementVNode("span",Vs,u.toDisplayString(p[e.defaultFile.approvePersonList][0].userName),1)]),u.createElementVNode("span",Hs,u.toDisplayString(p[e.defaultFile.approvePersonList][0].status==="END"?"已读":"未读"),1)])):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 抄送多人时 "),((O=p[e.defaultFile.approvePersonList])==null?void 0:O.length)>1?(u.openBlock(),u.createElementBlock("span",zs,[u.createTextVNode(u.toDisplayString(`已抄送${(T=p[e.defaultFile.approvePersonList])==null?void 0:T.length}人`)+" ",1),p[e.defaultFile.allRead]?(u.openBlock(),u.createElementBlock("span",Us," 全部已读 ")):(u.openBlock(),u.createElementBlock("span",js,[p[e.defaultFile.read]?u.createCommentVNode("v-if",!0):(u.openBlock(),u.createElementBlock("span",Ws," 全部未读 ")),p[e.defaultFile.read]?(u.openBlock(),u.createElementBlock("span",$s,u.toDisplayString(p[e.defaultFile.read])+"人已读 ",1)):u.createCommentVNode("v-if",!0)]))])):u.createCommentVNode("v-if",!0)])]))]),u.createElementVNode("div",Gs,[u.createCommentVNode(" 不是抄送节点,展示时间 "),p[e.defaultFile.nodeType]!=e.nodeType.抄送节点&&p[e.defaultFile.approveStatus]!==e.statusOption.等待?(u.openBlock(),u.createElementBlock("span",Ks,u.toDisplayString(u.unref(re.ikDate).toDateTime(p[e.defaultFile.operationTime],"MM/DD HH:mm")),1)):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 是抄送节点,并且抄送人员大于1时,展示图标 "),p[e.defaultFile.nodeType]==e.nodeType.抄送节点&&((R=p[e.defaultFile.approvePersonList])==null?void 0:R.length)>1?(u.openBlock(),u.createElementBlock("span",Ys,[p!=null&&p.show?(u.openBlock(),u.createElementBlock("i",{key:0,class:"ikapprove ikapprove-a-putongjiantouzhankai",onClick:I=>l(p,"grid")},null,8,Xs)):(u.openBlock(),u.createElementBlock("i",{key:1,onClick:I=>l(p,"none"),class:"ikapprove ikapprove-a-putongjiantoushouqi"},null,8,qs))])):u.createCommentVNode("v-if",!0)])])])]),u.createElementVNode("div",{class:"bottomBlock",style:u.normalizeStyle({borderLeft:v==e.listData.length-1?"":`2px ${p[e.defaultFile.lineType]||"dashed"} var(--el-border-color)`})},[u.createCommentVNode(" 审批意见 "),p[e.defaultFile.approveOpinion]||p[e.defaultFile.approveStatus]==e.statusOption.加签?(u.openBlock(),u.createElementBlock("div",Zs,[p[e.defaultFile.approveOpinion]?(u.openBlock(),u.createElementBlock("span",Js,u.toDisplayString(p[e.defaultFile.approveOpinion]),1)):u.createCommentVNode("v-if",!0),p[e.defaultFile.approveStatus]==e.statusOption.加签?(u.openBlock(),u.createElementBlock("span",Qs,[h[3]||(h[3]=u.createElementVNode("span",{class:"ik-text-primary"},"添加审批人",-1)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(p[e.defaultFile.countersignPer],(I,K)=>(u.openBlock(),u.createElementBlock("span",el,u.toDisplayString(I==null?void 0:I.userName)+u.toDisplayString(K<p[e.defaultFile.countersignPer].length-1?"、":""),1))),256))])):u.createCommentVNode("v-if",!0)])):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 附件 "),(P=p[e.defaultFile.attachment])!=null&&P.length?(u.openBlock(),u.createBlock(u.unref(xr),{key:1,list:p[e.defaultFile.attachment]},null,8,["list"])):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 附件图片 "),(W=p[e.defaultFile.attachmentImg])!=null&&W.length?(u.openBlock(),u.createElementBlock("div",tl,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(p[e.defaultFile.attachmentImg],(I,K)=>(u.openBlock(),u.createElementBlock("div",{class:"image",key:K},[u.createVNode(g,{src:c(I),"preview-src-list":p[e.defaultFile.attachmentImg].map(J=>c(J)),fit:"cover","z-index":"9999","zoom-rate":1.2,alt:c(I)},null,8,["src","preview-src-list","alt"])]))),128))])):u.createCommentVNode("v-if",!0),u.createCommentVNode(" 抄送节点或是等待审批状态并且列表长度大于1 "),(p[e.defaultFile.nodeType]==e.nodeType.抄送节点||p[e.defaultFile.approveStatus]==e.statusOption.等待)&&((j=p[e.defaultFile.approvePersonList])==null?void 0:j.length)>1?(u.openBlock(),u.createElementBlock("div",il,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(p[e.defaultFile.approvePersonList],I=>(u.openBlock(),u.createElementBlock("div",{class:"perBlock",key:I.userName},[u.createElementVNode("span",nl,[I.userAvatar?(u.openBlock(),u.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:c(I.userAvatar),alt:""},null,8,rl)):(u.openBlock(),u.createElementBlock("span",ol,u.toDisplayString(I.userName.slice(-2)),1)),I.status==="END"?(u.openBlock(),u.createElementBlock("i",al)):u.createCommentVNode("v-if",!0)]),u.createElementVNode("div",{class:"main-text",title:I.userName},u.toDisplayString(I.userName),9,sl)]))),128))])):u.createCommentVNode("v-if",!0)],4),p[e.defaultFile.nodeType]===e.nodeType.并行分支?(u.openBlock(),u.createElementBlock("div",ll,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(p[e.defaultFile.parallelInstances],I=>(u.openBlock(),u.createElementBlock("div",ul,[u.createElementVNode("div",cl,u.toDisplayString(I.name),1),u.createVNode(m,u.mergeProps({ref_for:!0},r,{"data-list":(I==null?void 0:I.processInstanceNodes)||[]}),null,16,["data-list"])]))),256))])):u.createCommentVNode("v-if",!0)],8,ks)}),128))])}}}),In=pe(Ze(hl,[["__scopeId","data-v-08d2843d"]]));le.IkApprovalProcessDetail=In,le.default=In,Object.defineProperties(le,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});