@smartos-lib/components 1.7.0-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. package/.eslintrc +12 -0
  2. package/.eslintrc-auto-import.json +332 -0
  3. package/Components.code-workspace +143 -0
  4. package/LICENSE +21 -0
  5. package/dist/smart-docx-editor/index.d.ts +2 -0
  6. package/dist/smart-docx-editor/index.js +68 -0
  7. package/dist/smart-file-preview/index.d.ts +18 -0
  8. package/dist/smart-file-preview/index.js +37 -0
  9. package/dist/smart-upload/index.d.ts +2 -0
  10. package/dist/smart-upload/index.js +800 -0
  11. package/index.html +16 -0
  12. package/package.json +23 -0
  13. package/public/favicon.svg +6 -0
  14. package/scripts/components.vite.config.ts +96 -0
  15. package/scripts/shared.ts +9 -0
  16. package/src/App.vue +28 -0
  17. package/src/components/Logo/index.vue +15 -0
  18. package/src/components-private/.gitkeep +0 -0
  19. package/src/composables/useElementStyle.ts +23 -0
  20. package/src/composables/useNaiveStyle.ts +43 -0
  21. package/src/composables/useNaiveTheme.ts +71 -0
  22. package/src/composables/useSmart.ts +36 -0
  23. package/src/layouts/default.vue +3 -0
  24. package/src/main.ts +33 -0
  25. package/src/modules/pinia/index.ts +8 -0
  26. package/src/modules/progress/index.ts +12 -0
  27. package/src/modules/router/install.ts +9 -0
  28. package/src/modules/router/routes.ts +40 -0
  29. package/src/pages/[...all].vue +21 -0
  30. package/src/pages/frame/component/[name].vue +14 -0
  31. package/src/pages/frame/index.vue +81 -0
  32. package/src/pages/index/composables/useTabsManage.ts +46 -0
  33. package/src/pages/index/index.vue +111 -0
  34. package/src/pages/index/type.ts +13 -0
  35. package/src/pages/index/utils/index.ts +41 -0
  36. package/src/settings.ts +9 -0
  37. package/src/shared/components.ts +52 -0
  38. package/src/shared/env.ts +11 -0
  39. package/src/shared/unocss.theme.ts +1600 -0
  40. package/src/stores/theme.ts +29 -0
  41. package/src/styles/element.scss +3 -0
  42. package/src/styles/styles.scss +21 -0
  43. package/src/types.ts +20 -0
  44. package/src/utils/callCustomElementExposed.ts +6 -0
  45. package/src/utils/deepCloneESModule.ts +10 -0
  46. package/src/utils/defineCustomElements.ts +18 -0
  47. package/src/utils/formatComponentsGlob.ts +16 -0
  48. package/src/utils/getFileMD5.ts +31 -0
  49. package/src/utils/getFileNameAndExt.ts +11 -0
  50. package/src/utils/isFileEqual.ts +13 -0
  51. package/src/utils/jsonToFormData.ts +8 -0
  52. package/src/web-components/smart-docx-drive-page/App.vue +37 -0
  53. package/src/web-components/smart-docx-drive-page/apis/doc.ts +85 -0
  54. package/src/web-components/smart-docx-drive-page/apis/file.ts +278 -0
  55. package/src/web-components/smart-docx-drive-page/apis/folder.ts +72 -0
  56. package/src/web-components/smart-docx-drive-page/children/Home.vue +8 -0
  57. package/src/web-components/smart-docx-drive-page/children/Me.vue +47 -0
  58. package/src/web-components/smart-docx-drive-page/components/CustomImage.vue +26 -0
  59. package/src/web-components/smart-docx-drive-page/components/CustomPopover.vue +62 -0
  60. package/src/web-components/smart-docx-drive-page/components/DocxDir.vue +99 -0
  61. package/src/web-components/smart-docx-drive-page/components/DocxDoc.vue +132 -0
  62. package/src/web-components/smart-docx-drive-page/components/DocxDownloadPopoverItem.vue +41 -0
  63. package/src/web-components/smart-docx-drive-page/components/DocxFileList.vue +156 -0
  64. package/src/web-components/smart-docx-drive-page/components/DocxPreview.vue +33 -0
  65. package/src/web-components/smart-docx-drive-page/components/DocxUpload.vue +164 -0
  66. package/src/web-components/smart-docx-drive-page/components/FileIcon.vue +62 -0
  67. package/src/web-components/smart-docx-drive-page/components-private/Header.vue +65 -0
  68. package/src/web-components/smart-docx-drive-page/components-private/Logo.vue +15 -0
  69. package/src/web-components/smart-docx-drive-page/components-private/Menu.vue +34 -0
  70. package/src/web-components/smart-docx-drive-page/components-private/Navbar.vue +36 -0
  71. package/src/web-components/smart-docx-drive-page/composables/useFullscreenElDialog.ts +41 -0
  72. package/src/web-components/smart-docx-drive-page/composables/usePrompt.ts +73 -0
  73. package/src/web-components/smart-docx-drive-page/data.ts +10 -0
  74. package/src/web-components/smart-docx-drive-page/external-style/custom-popover.sass +8 -0
  75. package/src/web-components/smart-docx-drive-page/external-style/index.sass +1 -0
  76. package/src/web-components/smart-docx-drive-page/index.ts +20 -0
  77. package/src/web-components/smart-docx-drive-page/index.vue +39 -0
  78. package/src/web-components/smart-docx-drive-page/info.ts +2 -0
  79. package/src/web-components/smart-docx-drive-page/stores/menu.ts +60 -0
  80. package/src/web-components/smart-docx-drive-page/types.ts +51 -0
  81. package/src/web-components/smart-docx-drive-page/utils/file-actions.ts +63 -0
  82. package/src/web-components/smart-docx-drive-page/utils/file.ts +31 -0
  83. package/src/web-components/smart-docx-editor/App.vue +32 -0
  84. package/src/web-components/smart-docx-editor/MarkdownShortcuts/components/Markdown.vue +202 -0
  85. package/src/web-components/smart-docx-editor/MarkdownShortcuts/components/Menu.vue +100 -0
  86. package/src/web-components/smart-docx-editor/MarkdownShortcuts/components/types.ts +6 -0
  87. package/src/web-components/smart-docx-editor/MarkdownShortcuts/components-react/Markdown.tsx +71 -0
  88. package/src/web-components/smart-docx-editor/MarkdownShortcuts/components-react/MarkdownElement.tsx +81 -0
  89. package/src/web-components/smart-docx-editor/MarkdownShortcuts/components-react/elements/Blockquote/index.sass +6 -0
  90. package/src/web-components/smart-docx-editor/MarkdownShortcuts/components-react/elements/Blockquote/index.tsx +12 -0
  91. package/src/web-components/smart-docx-editor/MarkdownShortcuts/components-react/elements/Heading/index.sass +14 -0
  92. package/src/web-components/smart-docx-editor/MarkdownShortcuts/components-react/elements/Heading/index.tsx +17 -0
  93. package/src/web-components/smart-docx-editor/MarkdownShortcuts/components-react/elements/List/index.scss +16 -0
  94. package/src/web-components/smart-docx-editor/MarkdownShortcuts/components-react/elements/List/index.tsx +39 -0
  95. package/src/web-components/smart-docx-editor/MarkdownShortcuts/components-react/types/custom-types.d.ts +69 -0
  96. package/src/web-components/smart-docx-editor/MarkdownShortcuts/composables/useTextSelection.ts +50 -0
  97. package/src/web-components/smart-docx-editor/MarkdownShortcuts/index.sass +19 -0
  98. package/src/web-components/smart-docx-editor/MarkdownShortcuts/index.vue +21 -0
  99. package/src/web-components/smart-docx-editor/MarkdownShortcuts/shared/const.ts +23 -0
  100. package/src/web-components/smart-docx-editor/MarkdownShortcuts/utils/slateHelpers.ts +23 -0
  101. package/src/web-components/smart-docx-editor/data.ts +38 -0
  102. package/src/web-components/smart-docx-editor/demo.vue +11 -0
  103. package/src/web-components/smart-docx-editor/index.md +3 -0
  104. package/src/web-components/smart-docx-editor/index.ts +5 -0
  105. package/src/web-components/smart-docx-editor/index.vue +12 -0
  106. package/src/web-components/smart-docx-editor/info.ts +2 -0
  107. package/src/web-components/smart-file-preview/category/Code.vue +171 -0
  108. package/src/web-components/smart-file-preview/category/Image.vue +49 -0
  109. package/src/web-components/smart-file-preview/category/Pdf.vue +14 -0
  110. package/src/web-components/smart-file-preview/category/Video.vue +27 -0
  111. package/src/web-components/smart-file-preview/demo.vue +34 -0
  112. package/src/web-components/smart-file-preview/index.md +5 -0
  113. package/src/web-components/smart-file-preview/index.ts +29 -0
  114. package/src/web-components/smart-file-preview/index.vue +56 -0
  115. package/src/web-components/smart-file-preview/info.ts +2 -0
  116. package/src/web-components/smart-file-preview/shared/const.ts +4 -0
  117. package/src/web-components/smart-file-preview/types.ts +38 -0
  118. package/src/web-components/smart-upload/index.ts +5 -0
  119. package/src/web-components/smart-upload/index.vue +101 -0
  120. package/src/web-components/smart-upload/info.ts +2 -0
  121. package/src/web-components/smart-upload/types.ts +28 -0
  122. package/tsconfig.json +15 -0
  123. package/types/auto-imports.d.ts +975 -0
  124. package/types/components.d.ts +14 -0
  125. package/types/env.d.ts +8 -0
  126. package/types/shims.d.ts +6 -0
  127. package/unocss.config.ts +23 -0
  128. package/vite.config.ts +60 -0
@@ -0,0 +1,18 @@
1
+ import * as vue from 'vue';
2
+
3
+ /** 预览文件方法 */
4
+ interface PreviewFile {
5
+ (fileName: string, file: Blob): void;
6
+ }
7
+
8
+ declare const VueCustomElement: vue.VueElementConstructor<globalThis.ExtractPropTypes<{}>>;
9
+ type SmartFilePreviewElement = typeof VueCustomElement & {
10
+ /**
11
+ * 预览文件
12
+ * @param fileName 文件名
13
+ * @param file 文件 Blob 对象
14
+ */
15
+ previewFile: PreviewFile;
16
+ };
17
+
18
+ export type { SmartFilePreviewElement };
@@ -0,0 +1,37 @@
1
+ var Xn;(function(a){"use strict";/**
2
+ * @vue/shared v3.4.15
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/const Yn=()=>{},Gn=Object.prototype.hasOwnProperty,St=(t,e)=>Gn.call(t,e),Et=t=>typeof t=="string",_t=t=>t!==null&&typeof t=="object";function Kn(t){for(var e=-1,n=t==null?0:t.length,i={};++e<n;){var r=t[e];i[r[0]]=r[1]}return i}const Zn=t=>t===void 0,Jn=t=>typeof t=="number",Qn=t=>Et(t)?!Number.isNaN(Number(t)):!1,Ct=t=>Object.keys(t);function ei(t,e="px"){if(!t)return"";if(Jn(t)||Qn(t))return`${t}${e}`;if(Et(t))return t}/*! Element Plus Icons Vue v2.3.1 */var ti=a.defineComponent({name:"Loading",__name:"loading",setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[a.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),ni=ti;const At="__epPropKey",ie=t=>t,ii=t=>_t(t)&&!!t[At],zt=(t,e)=>{if(!_t(t)||ii(t))return t;const{values:n,required:i,default:r,type:o,validator:s}=t,u={type:o,required:!!i,validator:n||s?f=>{let d=!1,c=[];if(n&&(c=Array.from(n),St(t,"default")&&c.push(r),d||(d=c.includes(f))),s&&(d||(d=s(f))),!d&&c.length>0){const h=[...new Set(c)].map(g=>JSON.stringify(g)).join(", ");a.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${h}], got value ${JSON.stringify(f)}.`)}return d}:void 0,[At]:!0};return St(t,"default")&&(u.default=r),u},Ye=t=>Kn(Object.entries(t).map(([e,n])=>[e,zt(n,e)])),Tt=ie([String,Object,Function]),Ge=(t,e)=>{if(t.install=n=>{for(const i of[t,...Object.values(e??{})])n.component(i.name,i)},e)for(const[n,i]of Object.entries(e))t[n]=i;return t},ri=t=>(t.install=Yn,t),oi=["","default","small","large"],ai=({from:t,replacement:e,scope:n,version:i,ref:r,type:o="API"},s)=>{a.watch(()=>a.unref(s),l=>{},{immediate:!0})},si=Symbol("localeContextKey"),Ke="el",li="is-",re=(t,e,n,i,r)=>{let o=`${t}-${e}`;return n&&(o+=`-${n}`),i&&(o+=`__${i}`),r&&(o+=`--${r}`),o},Ot=Symbol("namespaceContextKey"),ci=t=>{const e=t||(a.getCurrentInstance()?a.inject(Ot,a.ref(Ke)):a.ref(Ke));return a.computed(()=>a.unref(e)||Ke)},Te=(t,e)=>{const n=ci(e);return{namespace:n,b:(p="")=>re(n.value,t,p,"",""),e:p=>p?re(n.value,t,"",p,""):"",m:p=>p?re(n.value,t,"","",p):"",be:(p,v)=>p&&v?re(n.value,t,p,v,""):"",em:(p,v)=>p&&v?re(n.value,t,"",p,v):"",bm:(p,v)=>p&&v?re(n.value,t,p,"",v):"",bem:(p,v,y)=>p&&v&&y?re(n.value,t,p,v,y):"",is:(p,...v)=>{const y=v.length>=1?v[0]:!0;return p&&y?`${li}${p}`:""},cssVar:p=>{const v={};for(const y in p)p[y]&&(v[`--${n.value}-${y}`]=p[y]);return v},cssVarName:p=>`--${n.value}-${p}`,cssVarBlock:p=>{const v={};for(const y in p)p[y]&&(v[`--${n.value}-${t}-${y}`]=p[y]);return v},cssVarBlockName:p=>`--${n.value}-${t}-${p}`}},Nt=t=>{const e=a.getCurrentInstance();return a.computed(()=>{var n,i;return(i=(n=e==null?void 0:e.proxy)==null?void 0:n.$props)==null?void 0:i[t]})};a.ref(0);const ui=Symbol("zIndexContextKey"),It=zt({type:String,values:oi,required:!1}),Bt=Symbol("size"),fi=()=>{const t=a.inject(Bt,{});return a.computed(()=>a.unref(t.size)||"")},Dt=Symbol(),Oe=a.ref();function Pt(t,e=void 0){const n=a.getCurrentInstance()?a.inject(Dt,Oe):Oe;return t?a.computed(()=>{var i,r;return(r=(i=n.value)==null?void 0:i[t])!=null?r:e}):n}const di=(t,e,n=!1)=>{var i;const r=!!a.getCurrentInstance(),o=r?Pt():void 0,s=(i=e==null?void 0:e.provide)!=null?i:r?a.provide:void 0;if(!s)return;const l=a.computed(()=>{const u=a.unref(t);return o!=null&&o.value?hi(o.value,u):u});return s(Dt,l),s(si,a.computed(()=>l.value.locale)),s(Ot,a.computed(()=>l.value.namespace)),s(ui,a.computed(()=>l.value.zIndex)),s(Bt,{size:a.computed(()=>l.value.size||"")}),(n||!Oe.value)&&(Oe.value=l.value),l},hi=(t,e)=>{var n;const i=[...new Set([...Ct(t),...Ct(e)])],r={};for(const o of i)r[o]=(n=e[o])!=null?n:t[o];return r},pi=Ye({a11y:{type:Boolean,default:!0},locale:{type:ie(Object)},size:It,button:{type:ie(Object)},experimentalFeatures:{type:ie(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ie(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),gi={},mi=a.defineComponent({name:"ElConfigProvider",props:pi,setup(t,{slots:e}){a.watch(()=>t.message,i=>{Object.assign(gi,i??{})},{immediate:!0,deep:!0});const n=di(t);return()=>a.renderSlot(e,"default",{config:n==null?void 0:n.value})}}),vi=Ge(mi);var Ze=(t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n};const bi=Ye({size:{type:ie([Number,String])},color:{type:String}}),yi=a.defineComponent({name:"ElIcon",inheritAttrs:!1}),wi=a.defineComponent({...yi,props:bi,setup(t){const e=t,n=Te("icon"),i=a.computed(()=>{const{size:r,color:o}=e;return!r&&!o?{}:{fontSize:Zn(r)?void 0:ei(r),"--color":o}});return(r,o)=>(a.openBlock(),a.createElementBlock("i",a.mergeProps({class:a.unref(n).b(),style:a.unref(i)},r.$attrs),[a.renderSlot(r.$slots,"default")],16))}});var xi=Ze(wi,[["__file","icon.vue"]]);const Rt=Ge(xi),Je=Symbol("formContextKey"),Mt=Symbol("formItemContextKey"),ki=(t,e={})=>{const n=a.ref(void 0),i=e.prop?n:Nt("size"),r=e.global?n:fi(),o=e.form?{size:void 0}:a.inject(Je,void 0),s=e.formItem?{size:void 0}:a.inject(Mt,void 0);return a.computed(()=>i.value||a.unref(t)||(s==null?void 0:s.size)||(o==null?void 0:o.size)||r.value||"")},Lt=t=>{const e=Nt("disabled"),n=a.inject(Je,void 0);return a.computed(()=>e.value||a.unref(t)||(n==null?void 0:n.disabled)||!1)},Si=()=>{const t=a.inject(Je,void 0),e=a.inject(Mt,void 0);return{form:t,formItem:e}},jt=Symbol("buttonGroupContextKey"),Ei=(t,e)=>{ai({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},a.computed(()=>t.type==="text"));const n=a.inject(jt,void 0),i=Pt("button"),{form:r}=Si(),o=ki(a.computed(()=>n==null?void 0:n.size)),s=Lt(),l=a.ref(),u=a.useSlots(),f=a.computed(()=>t.type||(n==null?void 0:n.type)||""),d=a.computed(()=>{var m,p,v;return(v=(p=t.autoInsertSpace)!=null?p:(m=i.value)==null?void 0:m.autoInsertSpace)!=null?v:!1}),c=a.computed(()=>t.tag==="button"?{ariaDisabled:s.value||t.loading,disabled:s.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),h=a.computed(()=>{var m;const p=(m=u.default)==null?void 0:m.call(u);if(d.value&&(p==null?void 0:p.length)===1){const v=p[0];if((v==null?void 0:v.type)===a.Text){const y=v.children;return/^\p{Unified_Ideograph}{2}$/u.test(y.trim())}}return!1});return{_disabled:s,_size:o,_type:f,_ref:l,_props:c,shouldAddSpace:h,handleClick:m=>{t.nativeType==="reset"&&(r==null||r.resetFields()),e("click",m)}}},Qe=Ye({size:It,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Tt},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Tt,default:()=>ni},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:ie([String,Object]),default:"button"}}),_i={click:t=>t instanceof MouseEvent};function V(t,e){Ci(t)&&(t="100%");var n=Ai(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function Ne(t){return Math.min(1,Math.max(0,t))}function Ci(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function Ai(t){return typeof t=="string"&&t.indexOf("%")!==-1}function Vt(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Ie(t){return t<=1?"".concat(Number(t)*100,"%"):t}function oe(t){return t.length===1?"0"+t:String(t)}function zi(t,e,n){return{r:V(t,255)*255,g:V(e,255)*255,b:V(n,255)*255}}function Ft(t,e,n){t=V(t,255),e=V(e,255),n=V(n,255);var i=Math.max(t,e,n),r=Math.min(t,e,n),o=0,s=0,l=(i+r)/2;if(i===r)s=0,o=0;else{var u=i-r;switch(s=l>.5?u/(2-i-r):u/(i+r),i){case t:o=(e-n)/u+(e<n?6:0);break;case e:o=(n-t)/u+2;break;case n:o=(t-e)/u+4;break}o/=6}return{h:o,s,l}}function et(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Ti(t,e,n){var i,r,o;if(t=V(t,360),e=V(e,100),n=V(n,100),e===0)r=n,o=n,i=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;i=et(l,s,t+1/3),r=et(l,s,t),o=et(l,s,t-1/3)}return{r:i*255,g:r*255,b:o*255}}function $t(t,e,n){t=V(t,255),e=V(e,255),n=V(n,255);var i=Math.max(t,e,n),r=Math.min(t,e,n),o=0,s=i,l=i-r,u=i===0?0:l/i;if(i===r)o=0;else{switch(i){case t:o=(e-n)/l+(e<n?6:0);break;case e:o=(n-t)/l+2;break;case n:o=(t-e)/l+4;break}o/=6}return{h:o,s:u,v:s}}function Oi(t,e,n){t=V(t,360)*6,e=V(e,100),n=V(n,100);var i=Math.floor(t),r=t-i,o=n*(1-e),s=n*(1-r*e),l=n*(1-(1-r)*e),u=i%6,f=[n,s,o,o,l,n][u],d=[l,n,n,s,o,o][u],c=[o,o,l,n,n,s][u];return{r:f*255,g:d*255,b:c*255}}function Ht(t,e,n,i){var r=[oe(Math.round(t).toString(16)),oe(Math.round(e).toString(16)),oe(Math.round(n).toString(16))];return i&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function Ni(t,e,n,i,r){var o=[oe(Math.round(t).toString(16)),oe(Math.round(e).toString(16)),oe(Math.round(n).toString(16)),oe(Ii(i))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Ii(t){return Math.round(parseFloat(t)*255).toString(16)}function Wt(t){return F(t)/255}function F(t){return parseInt(t,16)}function Bi(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var tt={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Di(t){var e={r:0,g:0,b:0},n=1,i=null,r=null,o=null,s=!1,l=!1;return typeof t=="string"&&(t=Mi(t)),typeof t=="object"&&(G(t.r)&&G(t.g)&&G(t.b)?(e=zi(t.r,t.g,t.b),s=!0,l=String(t.r).substr(-1)==="%"?"prgb":"rgb"):G(t.h)&&G(t.s)&&G(t.v)?(i=Ie(t.s),r=Ie(t.v),e=Oi(t.h,i,r),s=!0,l="hsv"):G(t.h)&&G(t.s)&&G(t.l)&&(i=Ie(t.s),o=Ie(t.l),e=Ti(t.h,i,o),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=Vt(n),{ok:s,format:t.format||l,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var Pi="[-\\+]?\\d+%?",Ri="[-\\+]?\\d*\\.\\d+%?",J="(?:".concat(Ri,")|(?:").concat(Pi,")"),nt="[\\s|\\(]+(".concat(J,")[,|\\s]+(").concat(J,")[,|\\s]+(").concat(J,")\\s*\\)?"),it="[\\s|\\(]+(".concat(J,")[,|\\s]+(").concat(J,")[,|\\s]+(").concat(J,")[,|\\s]+(").concat(J,")\\s*\\)?"),q={CSS_UNIT:new RegExp(J),rgb:new RegExp("rgb"+nt),rgba:new RegExp("rgba"+it),hsl:new RegExp("hsl"+nt),hsla:new RegExp("hsla"+it),hsv:new RegExp("hsv"+nt),hsva:new RegExp("hsva"+it),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Mi(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(tt[t])t=tt[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=q.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=q.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=q.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=q.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=q.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=q.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=q.hex8.exec(t),n?{r:F(n[1]),g:F(n[2]),b:F(n[3]),a:Wt(n[4]),format:e?"name":"hex8"}:(n=q.hex6.exec(t),n?{r:F(n[1]),g:F(n[2]),b:F(n[3]),format:e?"name":"hex"}:(n=q.hex4.exec(t),n?{r:F(n[1]+n[1]),g:F(n[2]+n[2]),b:F(n[3]+n[3]),a:Wt(n[4]+n[4]),format:e?"name":"hex8"}:(n=q.hex3.exec(t),n?{r:F(n[1]+n[1]),g:F(n[2]+n[2]),b:F(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function G(t){return!!q.CSS_UNIT.exec(String(t))}var Li=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var i;if(e instanceof t)return e;typeof e=="number"&&(e=Bi(e)),this.originalInput=e;var r=Di(e);this.originalInput=e,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(i=n.format)!==null&&i!==void 0?i:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,i,r,o=e.r/255,s=e.g/255,l=e.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*i+.0722*r},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=Vt(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=$t(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=$t(this.r,this.g,this.b),n=Math.round(e.h*360),i=Math.round(e.s*100),r=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(i,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(i,"%, ").concat(r,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=Ft(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=Ft(this.r,this.g,this.b),n=Math.round(e.h*360),i=Math.round(e.s*100),r=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(i,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(i,"%, ").concat(r,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),Ht(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),Ni(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(i,")"):"rgba(".concat(e,", ").concat(n,", ").concat(i,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(V(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(V(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+Ht(this.r,this.g,this.b,!1),n=0,i=Object.entries(tt);n<i.length;n++){var r=i[n],o=r[0],s=r[1];if(e===s)return o}return!1},t.prototype.toString=function(e){var n=!!e;e=e??this.format;var i=!1,r=this.a<1&&this.a>=0,o=!n&&r&&(e.startsWith("hex")||e==="name");return o?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(i=this.toRgbString()),e==="prgb"&&(i=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(i=this.toHexString()),e==="hex3"&&(i=this.toHexString(!0)),e==="hex4"&&(i=this.toHex8String(!0)),e==="hex8"&&(i=this.toHex8String()),e==="name"&&(i=this.toName()),e==="hsl"&&(i=this.toHslString()),e==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=Ne(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=Ne(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=Ne(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=Ne(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),i=(n.h+e)%360;return n.h=i<0?360+i:i,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var i=this.toRgb(),r=new t(e).toRgb(),o=n/100,s={r:(r.r-i.r)*o+i.r,g:(r.g-i.g)*o+i.g,b:(r.b-i.b)*o+i.b,a:(r.a-i.a)*o+i.a};return new t(s)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var i=this.toHsl(),r=360/n,o=[this];for(i.h=(i.h-(r*e>>1)+720)%360;--e;)i.h=(i.h+r)%360,o.push(new t(i));return o},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),i=n.h,r=n.s,o=n.v,s=[],l=1/e;e--;)s.push(new t({h:i,s:r,v:o})),o=(o+l)%1;return s},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),i=new t(e).toRgb(),r=n.a+i.a*(1-n.a);return new t({r:(n.r*n.a+i.r*i.a*(1-n.a))/r,g:(n.g*n.a+i.g*i.a*(1-n.a))/r,b:(n.b*n.a+i.b*i.a*(1-n.a))/r,a:r})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),i=n.h,r=[this],o=360/e,s=1;s<e;s++)r.push(new t({h:(i+s*o)%360,s:n.s,l:n.l}));return r},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}();function Q(t,e=20){return t.mix("#141414",e).toString()}function ji(t){const e=Lt(),n=Te("button");return a.computed(()=>{let i={};const r=t.color;if(r){const o=new Li(r),s=t.dark?o.tint(20).toString():Q(o,20);if(t.plain)i=n.cssVarBlock({"bg-color":t.dark?Q(o,90):o.tint(90).toString(),"text-color":r,"border-color":t.dark?Q(o,50):o.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":r,"hover-border-color":r,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),e.value&&(i[n.cssVarBlockName("disabled-bg-color")]=t.dark?Q(o,90):o.tint(90).toString(),i[n.cssVarBlockName("disabled-text-color")]=t.dark?Q(o,50):o.tint(50).toString(),i[n.cssVarBlockName("disabled-border-color")]=t.dark?Q(o,80):o.tint(80).toString());else{const l=t.dark?Q(o,30):o.tint(30).toString(),u=o.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(i=n.cssVarBlock({"bg-color":r,"text-color":u,"border-color":r,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":s,"active-border-color":s}),e.value){const f=t.dark?Q(o,50):o.tint(50).toString();i[n.cssVarBlockName("disabled-bg-color")]=f,i[n.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,i[n.cssVarBlockName("disabled-border-color")]=f}}}return i})}const Vi=a.defineComponent({name:"ElButton"}),Fi=a.defineComponent({...Vi,props:Qe,emits:_i,setup(t,{expose:e,emit:n}){const i=t,r=ji(i),o=Te("button"),{_ref:s,_size:l,_type:u,_disabled:f,_props:d,shouldAddSpace:c,handleClick:h}=Ei(i,n);return e({ref:s,size:l,type:u,disabled:f,shouldAddSpace:c}),(g,m)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(g.tag),a.mergeProps({ref_key:"_ref",ref:s},a.unref(d),{class:[a.unref(o).b(),a.unref(o).m(a.unref(u)),a.unref(o).m(a.unref(l)),a.unref(o).is("disabled",a.unref(f)),a.unref(o).is("loading",g.loading),a.unref(o).is("plain",g.plain),a.unref(o).is("round",g.round),a.unref(o).is("circle",g.circle),a.unref(o).is("text",g.text),a.unref(o).is("link",g.link),a.unref(o).is("has-bg",g.bg)],style:a.unref(r),onClick:a.unref(h)}),{default:a.withCtx(()=>[g.loading?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[g.$slots.loading?a.renderSlot(g.$slots,"loading",{key:0}):(a.openBlock(),a.createBlock(a.unref(Rt),{key:1,class:a.normalizeClass(a.unref(o).is("loading"))},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(g.loadingIcon)))]),_:1},8,["class"]))],64)):g.icon||g.$slots.icon?(a.openBlock(),a.createBlock(a.unref(Rt),{key:1},{default:a.withCtx(()=>[g.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(g.icon),{key:0})):a.renderSlot(g.$slots,"icon",{key:1})]),_:3})):a.createCommentVNode("v-if",!0),g.$slots.default?(a.openBlock(),a.createElementBlock("span",{key:2,class:a.normalizeClass({[a.unref(o).em("text","expand")]:a.unref(c)})},[a.renderSlot(g.$slots,"default")],2)):a.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var $i=Ze(Fi,[["__file","button.vue"]]);const Hi={size:Qe.size,type:Qe.type},Wi=a.defineComponent({name:"ElButtonGroup"}),qi=a.defineComponent({...Wi,props:Hi,setup(t){const e=t;a.provide(jt,a.reactive({size:a.toRef(e,"size"),type:a.toRef(e,"type")}));const n=Te("button");return(i,r)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(`${a.unref(n).b("group")}`)},[a.renderSlot(i.$slots,"default")],2))}});var qt=Ze(qi,[["__file","button-group.vue"]]);const Ui=Ge($i,{ButtonGroup:qt});ri(qt);const Xi={jpg:"image",jpeg:"image",png:"image",bmp:"image",gif:"image",svg:"image",webp:"image",mp4:"video",avi:"video",mov:"video",wmv:"video",flv:"video",mkv:"video",webm:"video",pdf:"pdf"},Ut=a.ref(),Yi={viewBox:"0 0 16 16",width:"1em",height:"1em"},Gi=[a.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M7.56 1h.88l6.54 12.26l-.44.74H1.44L1 13.26zM8 2.28L2.28 13H13.7zM8.625 12v-1h-1.25v1zm-1.25-2V6h1.25v4z","clip-rule":"evenodd"},null,-1)];function Ki(t,e){return a.openBlock(),a.createElementBlock("svg",Yi,[...Gi])}const Zi={name:"codicon-warning",render:Ki},Ji={viewBox:"0 0 24 24",width:"1em",height:"1em"},Qi=[a.createStaticVNode('<rect width="10" height="10" x="1" y="1" fill="currentColor" rx="1"><animate id="svgSpinnersBlocksShuffle30" fill="freeze" attributeName="x" begin="0;svgSpinnersBlocksShuffle3b.end" dur="0.2s" values="1;13"></animate><animate id="svgSpinnersBlocksShuffle31" fill="freeze" attributeName="y" begin="svgSpinnersBlocksShuffle38.end" dur="0.2s" values="1;13"></animate><animate id="svgSpinnersBlocksShuffle32" fill="freeze" attributeName="x" begin="svgSpinnersBlocksShuffle39.end" dur="0.2s" values="13;1"></animate><animate id="svgSpinnersBlocksShuffle33" fill="freeze" attributeName="y" begin="svgSpinnersBlocksShuffle3a.end" dur="0.2s" values="13;1"></animate></rect><rect width="10" height="10" x="1" y="13" fill="currentColor" rx="1"><animate id="svgSpinnersBlocksShuffle34" fill="freeze" attributeName="y" begin="svgSpinnersBlocksShuffle30.end" dur="0.2s" values="13;1"></animate><animate id="svgSpinnersBlocksShuffle35" fill="freeze" attributeName="x" begin="svgSpinnersBlocksShuffle31.end" dur="0.2s" values="1;13"></animate><animate id="svgSpinnersBlocksShuffle36" fill="freeze" attributeName="y" begin="svgSpinnersBlocksShuffle32.end" dur="0.2s" values="1;13"></animate><animate id="svgSpinnersBlocksShuffle37" fill="freeze" attributeName="x" begin="svgSpinnersBlocksShuffle33.end" dur="0.2s" values="13;1"></animate></rect><rect width="10" height="10" x="13" y="13" fill="currentColor" rx="1"><animate id="svgSpinnersBlocksShuffle38" fill="freeze" attributeName="x" begin="svgSpinnersBlocksShuffle34.end" dur="0.2s" values="13;1"></animate><animate id="svgSpinnersBlocksShuffle39" fill="freeze" attributeName="y" begin="svgSpinnersBlocksShuffle35.end" dur="0.2s" values="13;1"></animate><animate id="svgSpinnersBlocksShuffle3a" fill="freeze" attributeName="x" begin="svgSpinnersBlocksShuffle36.end" dur="0.2s" values="1;13"></animate><animate id="svgSpinnersBlocksShuffle3b" fill="freeze" attributeName="y" begin="svgSpinnersBlocksShuffle37.end" dur="0.2s" values="1;13"></animate></rect>',3)];function er(t,e){return a.openBlock(),a.createElementBlock("svg",Ji,[...Qi])}const tr={name:"svg-spinners-blocks-shuffle3",render:er};function nr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Yt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xt(Object(n),!0).forEach(function(i){nr(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function ir(t,e){if(t==null)return{};var n={},i=Object.keys(t),r,o;for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}function rr(t,e){if(t==null)return{};var n=ir(t,e),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)i=o[r],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(t,i)&&(n[i]=t[i])}return n}function or(t,e){return ar(t)||sr(t,e)||lr(t,e)||cr()}function ar(t){if(Array.isArray(t))return t}function sr(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var n=[],i=!0,r=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(i=(l=s.next()).done)&&(n.push(l.value),!(e&&n.length===e));i=!0);}catch(u){r=!0,o=u}finally{try{!i&&s.return!=null&&s.return()}finally{if(r)throw o}}return n}}function lr(t,e){if(t){if(typeof t=="string")return Gt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gt(t,e)}}function Gt(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function cr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ur(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Zt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Kt(Object(n),!0).forEach(function(i){ur(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function fr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(i){return e.reduceRight(function(r,o){return o(r)},i)}}function we(t){return function e(){for(var n=this,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return r.length>=t.length?t.apply(this,r):function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return e.apply(n,[].concat(r,l))}}}function Be(t){return{}.toString.call(t).includes("Object")}function dr(t){return!Object.keys(t).length}function xe(t){return typeof t=="function"}function hr(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function pr(t,e){return Be(e)||ee("changeType"),Object.keys(e).some(function(n){return!hr(t,n)})&&ee("changeField"),e}function gr(t){xe(t)||ee("selectorType")}function mr(t){xe(t)||Be(t)||ee("handlerType"),Be(t)&&Object.values(t).some(function(e){return!xe(e)})&&ee("handlersType")}function vr(t){t||ee("initialIsRequired"),Be(t)||ee("initialType"),dr(t)&&ee("initialContent")}function br(t,e){throw new Error(t[e]||t.default)}var yr={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},ee=we(br)(yr),De={changes:pr,selector:gr,handler:mr,initial:vr};function wr(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};De.initial(t),De.handler(e);var n={current:t},i=we(Sr)(n,e),r=we(kr)(n),o=we(De.changes)(t),s=we(xr)(n);function l(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(d){return d};return De.selector(f),f(n.current)}function u(f){fr(i,r,o,s)(f)}return[l,u]}function xr(t,e){return xe(e)?e(t.current):e}function kr(t,e){return t.current=Zt(Zt({},t.current),e),e}function Sr(t,e,n){return xe(e)?e(t.current):Object.keys(n).forEach(function(i){var r;return(r=e[i])===null||r===void 0?void 0:r.call(e,t.current[i])}),n}var Er={create:wr},_r={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Cr(t){return function e(){for(var n=this,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return r.length>=t.length?t.apply(this,r):function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return e.apply(n,[].concat(r,l))}}}function Ar(t){return{}.toString.call(t).includes("Object")}function zr(t){return t||Qt("configIsRequired"),Ar(t)||Qt("configType"),t.urls?(Tr(),{paths:{vs:t.urls.monacoBase}}):t}function Tr(){console.warn(Jt.deprecation)}function Or(t,e){throw new Error(t[e]||t.default)}var Jt={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
7
+ You are using deprecated way of configuration.
8
+
9
+ Instead of using
10
+ monaco.config({ urls: { monacoBase: '...' } })
11
+ use
12
+ monaco.config({ paths: { vs: '...' } })
13
+
14
+ For more please check the link https://github.com/suren-atoyan/monaco-loader#config
15
+ `},Qt=Cr(Or)(Jt),Nr={config:zr},Ir=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return function(r){return n.reduceRight(function(o,s){return s(o)},r)}};function en(t,e){return Object.keys(e).forEach(function(n){e[n]instanceof Object&&t[n]&&Object.assign(e[n],en(t[n],e[n]))}),Yt(Yt({},t),e)}var Br={type:"cancelation",msg:"operation is manually canceled"};function rt(t){var e=!1,n=new Promise(function(i,r){t.then(function(o){return e?r(Br):i(o)}),t.catch(r)});return n.cancel=function(){return e=!0},n}var Dr=Er.create({config:_r,isInitialized:!1,resolve:null,reject:null,monaco:null}),tn=or(Dr,2),ke=tn[0],Pe=tn[1];function Pr(t){var e=Nr.config(t),n=e.monaco,i=rr(e,["monaco"]);Pe(function(r){return{config:en(r.config,i),monaco:n}})}function Rr(){var t=ke(function(e){var n=e.monaco,i=e.isInitialized,r=e.resolve;return{monaco:n,isInitialized:i,resolve:r}});if(!t.isInitialized){if(Pe({isInitialized:!0}),t.monaco)return t.resolve(t.monaco),rt(ot);if(window.monaco&&window.monaco.editor)return nn(window.monaco),t.resolve(window.monaco),rt(ot);Ir(Mr,jr)(Vr)}return rt(ot)}function Mr(t){return document.body.appendChild(t)}function Lr(t){var e=document.createElement("script");return t&&(e.src=t),e}function jr(t){var e=ke(function(i){var r=i.config,o=i.reject;return{config:r,reject:o}}),n=Lr("".concat(e.config.paths.vs,"/loader.js"));return n.onload=function(){return t()},n.onerror=e.reject,n}function Vr(){var t=ke(function(n){var i=n.config,r=n.resolve,o=n.reject;return{config:i,resolve:r,reject:o}}),e=window.require;e.config(t.config),e(["vs/editor/editor.main"],function(n){nn(n),t.resolve(n)},function(n){t.reject(n)})}function nn(t){ke().monaco||Pe({monaco:t})}function Fr(){return ke(function(t){var e=t.monaco;return e})}var ot=new Promise(function(t,e){return Pe({resolve:t,reject:e})}),rn={config:Pr,init:Rr,__getMonacoInstance:Fr};const $r="https://unpkg.com",Hr="https://cdn.jsdelivr.net/npm",Wr="https://esm.sh",qr="https://cdnjs.cloudflare.com/ajax/libs",Ur="https://cdn.bootcdn.net/ajax/libs",Xr="https://cdn.staticfile.org";async function Yr(t,e){const{version:n,file:i}=e??{},r=[],o=`${t}${n?`@${n}`:""}`,s=i||"/package.json",l=`${$r}/${o}`,u=`${Hr}/${o}`,f=`${Wr}/${o}`;if(r.push([l,`${l}${s}`],[u,`${u}${s}`],[f,`${f}${s}`]),n){const g=`${t}/${n}`,m=`${qr}/${g}`,p=`${Ur}/${g}`,v=`${Xr}/${g}`;r.push([m,`${m}${i||""}`],[p,`${p}${i||""}`],[v,`${v}${i||""}`])}const d=new AbortController,c={method:"get",signal:d.signal},h=await Promise.any(r.map(async([g,m])=>fetch(m,c).then(p=>{if(p.ok)return g;throw new Error(g)})));return d.abort(),h}const Gr={"@floating-ui/vue":"^1.0.4","@formkit/auto-animate":"^0.8.1","@iconify/json":"^2.2.172","@mixte/snippets":"1.7.0","@mixte/use":"1.7.0","@monaco-editor/loader":"^1.4.0","@moomfe/eslint-config":"^2.7.2","@types/fs-extra":"^11.0.4","@types/lodash-es":"^4.17.12","@types/node":"^20.11.5","@types/react":"^18.2.48","@types/spark-md5":"^3.0.4","@unplugin-vue-ce/sub-style":"1.0.0-beta.17","@vitejs/plugin-react":"^4.2.1","@vitejs/plugin-vue":"^5.0.3","@vitejs/plugin-vue-jsx":"^3.1.0","@vitest/coverage-v8":"^1.2.1","@vitest/ui":"^1.2.1","@vue/compiler-sfc":"^3.4.15","@vueuse/core":"^10.7.2","@vueuse/math":"^10.7.2",axios:"^1.6.5",chalk:"^5.3.0","change-case":"^5.4.2","element-plus":"^2.5.3",eslint:"^8.56.0","fast-glob":"^3.3.2","fs-extra":"^11.2.0",jsdom:"^24.0.0","lint-staged":"^15.2.0","lodash-es":"^4.17.21","magic-string":"^0.30.5",mixte:"1.7.0","monaco-editor":"^0.45.0","naive-ui":"^2.37.3",pnpm:"^8.14.3","pretty-bytes":"^6.1.1",react:"^18.2.0","react-dom":"^18.2.0",rollup:"^4.9.6","rollup-plugin-dts":"^6.1.0",sass:"^1.70.0",shiki:"^0.14.7","simple-git-hooks":"^2.9.0",slate:"^0.101.5","slate-history":"^0.100.0","slate-react":"^0.101.5","spark-md5":"^3.0.2",tsx:"^4.7.0","type-fest":"^4.10.0",typescript:"^5.3.3",unocss:"^0.58.3","unocss-preset-extra":"^0.5.3","unocss-preset-scrollbar":"^0.3.0","unplugin-auto-import":"^0.17.3","unplugin-icons":"^0.18.2","unplugin-vue-components":"^0.26.0",veaury:"^2.3.12",viewerjs:"^1.11.6",vite:"4.5.0",vitepress:"1.0.0-rc.25",vitest:"^1.2.1",vue:"^3.4.15","vue-demi":"^0.14.6"};function Kr(t,e){let n,i,r;const o=a.ref(!0),s=()=>{o.value=!0,r()};a.watch(t,s,{flush:"sync"});const l=typeof e=="function"?e:e.get,u=typeof e=="function"?void 0:e.set,f=a.customRef((d,c)=>(i=d,r=c,{get(){return o.value&&(n=l(),o.value=!1),i(),n},set(h){u==null||u(h)}}));return Object.isExtensible(f)&&(f.trigger=s),f}function ae(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}function Zr(){const t=new Set,e=r=>{t.delete(r)};return{on:r=>{t.add(r);const o=()=>e(r);return ae(o),{off:o}},off:e,trigger:(...r)=>Promise.all(Array.from(t).map(o=>o(...r)))}}function O(t){return typeof t=="function"?t():a.unref(t)}const on=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Jr=Object.prototype.toString,an=t=>Jr.call(t)==="[object Object]",Qr=()=>{};function eo(t,e){function n(...i){return new Promise((r,o)=>{Promise.resolve(t(()=>e.apply(this,i),{fn:e,thisArg:this,args:i})).then(r).catch(o)})}return n}const to=t=>t();function sn(t,e=!1,n="Timeout"){return new Promise((i,r)=>{setTimeout(e?()=>r(n):i,t)})}function no(t){return t||a.getCurrentInstance()}function io(t,e=!0,n){no()?a.onMounted(t,n):e?t():a.nextTick(t)}function at(t,e=!1){function n(c,{flush:h="sync",deep:g=!1,timeout:m,throwOnTimeout:p}={}){let v=null;const E=[new Promise(x=>{v=a.watch(t,_=>{c(_)!==e&&(v==null||v(),x(_))},{flush:h,deep:g,immediate:!0})})];return m!=null&&E.push(sn(m,p).then(()=>O(t)).finally(()=>v==null?void 0:v())),Promise.race(E)}function i(c,h){if(!a.isRef(c))return n(_=>_===c,h);const{flush:g="sync",deep:m=!1,timeout:p,throwOnTimeout:v}=h??{};let y=null;const x=[new Promise(_=>{y=a.watch([t,c],([R,M])=>{e!==(R===M)&&(y==null||y(),_(R))},{flush:g,deep:m,immediate:!0})})];return p!=null&&x.push(sn(p,v).then(()=>O(t)).finally(()=>(y==null||y(),O(t)))),Promise.race(x)}function r(c){return n(h=>!!h,c)}function o(c){return i(null,c)}function s(c){return i(void 0,c)}function l(c){return n(Number.isNaN,c)}function u(c,h){return n(g=>{const m=Array.from(g);return m.includes(c)||m.includes(O(c))},h)}function f(c){return d(1,c)}function d(c=1,h){let g=-1;return n(()=>(g+=1,g>=c),h)}return Array.isArray(O(t))?{toMatch:n,toContains:u,changed:f,changedTimes:d,get not(){return at(t,!e)}}:{toMatch:n,toBe:i,toBeTruthy:r,toBeNull:o,toBeNaN:l,toBeUndefined:s,changed:f,changedTimes:d,get not(){return at(t,!e)}}}function ro(t){return at(t)}function oo(t,e,n){return a.watch(t,e,{...n,deep:!0})}function ln(t,e,n={}){const{eventFilter:i=to,...r}=n,o=eo(i,e);let s,l,u;if(r.flush==="sync"){const f=a.ref(!1);l=()=>{},s=d=>{f.value=!0,d(),f.value=!1},u=a.watch(t,(...d)=>{f.value||o(...d)},r)}else{const f=[],d=a.ref(0),c=a.ref(0);l=()=>{d.value=c.value},f.push(a.watch(t,()=>{c.value++},{...r,flush:"sync"})),s=h=>{const g=c.value;h(),d.value+=c.value-g},f.push(a.watch(t,(...h)=>{const g=d.value>0&&d.value===c.value;d.value=0,c.value=0,!g&&o(...h)},r)),u=()=>{f.forEach(h=>h())}}return{stop:u,ignoreUpdates:s,ignorePrevAsyncUpdates:l}}function te(t){var e;const n=O(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Re=on?window:void 0,ao=on?window.document:void 0;function L(...t){let e,n,i,r;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,i,r]=t,e=Re):[e,n,i,r]=t,!e)return Qr;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const o=[],s=()=>{o.forEach(d=>d()),o.length=0},l=(d,c,h,g)=>(d.addEventListener(c,h,g),()=>d.removeEventListener(c,h,g)),u=a.watch(()=>[te(e),O(r)],([d,c])=>{if(s(),!d)return;const h=an(c)?{...c}:c;o.push(...n.flatMap(g=>i.map(m=>l(d,g,m,h))))},{immediate:!0,flush:"post"}),f=()=>{u(),s()};return ae(f),f}function so(){const t=a.ref(!1);return a.getCurrentInstance()&&a.onMounted(()=>{t.value=!0}),t}function cn(t){const e=so();return a.computed(()=>(e.value,!!t()))}function un(t,e,n={}){const{window:i=Re,...r}=n;let o;const s=cn(()=>i&&"MutationObserver"in i),l=()=>{o&&(o.disconnect(),o=void 0)},u=a.watch(()=>te(t),c=>{l(),s.value&&i&&c&&(o=new MutationObserver(e),o.observe(c,r))},{immediate:!0}),f=()=>o==null?void 0:o.takeRecords(),d=()=>{l(),u()};return ae(d),{isSupported:s,stop:d,takeRecords:f}}function st(){const t=a.getCurrentInstance(),e=Kr(()=>null,()=>t.proxy.$el);return a.onUpdated(e.trigger),a.onMounted(e.trigger),e}function lo(t,e,n={}){const{window:i=Re,...r}=n;let o;const s=cn(()=>i&&"ResizeObserver"in i),l=()=>{o&&(o.disconnect(),o=void 0)},u=a.computed(()=>Array.isArray(t)?t.map(c=>te(c)):[te(t)]),f=a.watch(u,c=>{if(l(),s.value&&i){o=new ResizeObserver(e);for(const h of c)h&&o.observe(h,r)}},{immediate:!0,flush:"post",deep:!0}),d=()=>{l(),f()};return ae(d),{isSupported:s,stop:d}}function co(t,e={width:0,height:0},n={}){const{window:i=Re,box:r="content-box"}=n,o=a.computed(()=>{var c,h;return(h=(c=te(t))==null?void 0:c.namespaceURI)==null?void 0:h.includes("svg")}),s=a.ref(e.width),l=a.ref(e.height),{stop:u}=lo(t,([c])=>{const h=r==="border-box"?c.borderBoxSize:r==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(i&&o.value){const g=te(t);if(g){const m=i.getComputedStyle(g);s.value=Number.parseFloat(m.width),l.value=Number.parseFloat(m.height)}}else if(h){const g=Array.isArray(h)?h:[h];s.value=g.reduce((m,{inlineSize:p})=>m+p,0),l.value=g.reduce((m,{blockSize:p})=>m+p,0)}else s.value=c.contentRect.width,l.value=c.contentRect.height},n);io(()=>{const c=te(t);c&&(s.value="offsetWidth"in c?c.offsetWidth:e.width,l.value="offsetHeight"in c?c.offsetHeight:e.height)});const f=a.watch(()=>te(t),c=>{s.value=c?e.width:0,l.value=c?e.height:0});function d(){u(),f()}return{width:s,height:l,stop:d}}function lt(t,e){O(t)&&e(O(t))}function uo(t){let e=[];for(let n=0;n<t.length;++n)e=[...e,[t.start(n),t.end(n)]];return e}function ct(t){return Array.from(t).map(({label:e,kind:n,language:i,mode:r,activeCues:o,cues:s,inBandMetadataTrackDispatchType:l},u)=>({id:u,label:e,kind:n,language:i,mode:r,activeCues:o,cues:s,inBandMetadataTrackDispatchType:l}))}const fo={src:"",tracks:[]};function ho(t,e={}){e={...fo,...e};const{document:n=ao}=e,i=a.ref(0),r=a.ref(0),o=a.ref(!1),s=a.ref(1),l=a.ref(!1),u=a.ref(!1),f=a.ref(!1),d=a.ref(1),c=a.ref(!1),h=a.ref([]),g=a.ref([]),m=a.ref(-1),p=a.ref(!1),v=a.ref(!1),y=n&&"pictureInPictureEnabled"in n,E=Zr(),x=b=>{lt(t,A=>{if(b){const j=typeof b=="number"?b:b.id;A.textTracks[j].mode="disabled"}else for(let j=0;j<A.textTracks.length;++j)A.textTracks[j].mode="disabled";m.value=-1})},_=(b,A=!0)=>{lt(t,j=>{const Z=typeof b=="number"?b:b.id;A&&x(),j.textTracks[Z].mode="showing",m.value=Z})},R=()=>new Promise((b,A)=>{lt(t,async j=>{y&&(p.value?n.exitPictureInPicture().then(b).catch(A):j.requestPictureInPicture().then(b).catch(A))})});a.watchEffect(()=>{if(!n)return;const b=O(t);if(!b)return;const A=O(e.src);let j=[];A&&(typeof A=="string"?j=[{src:A}]:Array.isArray(A)?j=A:an(A)&&(j=[A]),b.querySelectorAll("source").forEach(Z=>{Z.removeEventListener("error",E.trigger),Z.remove()}),j.forEach(({src:Z,type:kt})=>{const ye=n.createElement("source");ye.setAttribute("src",Z),ye.setAttribute("type",kt||""),ye.addEventListener("error",E.trigger),b.appendChild(ye)}),b.load())}),ae(()=>{const b=O(t);b&&b.querySelectorAll("source").forEach(A=>A.removeEventListener("error",E.trigger))}),a.watch([t,s],()=>{const b=O(t);b&&(b.volume=s.value)}),a.watch([t,v],()=>{const b=O(t);b&&(b.muted=v.value)}),a.watch([t,d],()=>{const b=O(t);b&&(b.playbackRate=d.value)}),a.watchEffect(()=>{if(!n)return;const b=O(e.tracks),A=O(t);!b||!b.length||!A||(A.querySelectorAll("track").forEach(j=>j.remove()),b.forEach(({default:j,kind:Z,label:kt,src:ye,srcLang:xa},ka)=>{const ce=n.createElement("track");ce.default=j||!1,ce.kind=Z,ce.label=kt,ce.src=ye,ce.srclang=xa,ce.default&&(m.value=ka),A.appendChild(ce)}))});const{ignoreUpdates:M}=ln(i,b=>{const A=O(t);A&&(A.currentTime=b)}),{ignoreUpdates:I}=ln(f,b=>{const A=O(t);A&&(b?A.play():A.pause())});L(t,"timeupdate",()=>M(()=>i.value=O(t).currentTime)),L(t,"durationchange",()=>r.value=O(t).duration),L(t,"progress",()=>h.value=uo(O(t).buffered)),L(t,"seeking",()=>o.value=!0),L(t,"seeked",()=>o.value=!1),L(t,["waiting","loadstart"],()=>{l.value=!0,I(()=>f.value=!1)}),L(t,"loadeddata",()=>l.value=!1),L(t,"playing",()=>{l.value=!1,u.value=!1,I(()=>f.value=!0)}),L(t,"ratechange",()=>d.value=O(t).playbackRate),L(t,"stalled",()=>c.value=!0),L(t,"ended",()=>u.value=!0),L(t,"pause",()=>I(()=>f.value=!1)),L(t,"play",()=>I(()=>f.value=!0)),L(t,"enterpictureinpicture",()=>p.value=!0),L(t,"leavepictureinpicture",()=>p.value=!1),L(t,"volumechange",()=>{const b=O(t);b&&(s.value=b.volume,v.value=b.muted)});const Y=[],ne=a.watch([t],()=>{const b=O(t);b&&(ne(),Y[0]=L(b.textTracks,"addtrack",()=>g.value=ct(b.textTracks)),Y[1]=L(b.textTracks,"removetrack",()=>g.value=ct(b.textTracks)),Y[2]=L(b.textTracks,"change",()=>g.value=ct(b.textTracks)))});return ae(()=>Y.forEach(b=>b())),{currentTime:i,duration:r,waiting:l,seeking:o,ended:u,stalled:c,buffered:h,playing:f,rate:d,volume:s,muted:v,tracks:g,selectedTrack:m,enableTrack:_,disableTrack:x,supportsPictureInPicture:y,togglePictureInPicture:R,isPictureInPicture:p,onSourceError:E.on}}function ut(t){const e=a.ref(),n=()=>{e.value&&URL.revokeObjectURL(e.value),e.value=void 0};return a.watch(()=>O(t),i=>{n(),i&&(e.value=URL.createObjectURL(i))},{immediate:!0}),ae(n),a.readonly(e)}function po(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}function ft(){const t=new Set,e=r=>{t.delete(r)};return{on:r=>{t.add(r);const o=()=>e(r);return po(o),{off:o}},off:e,trigger:r=>Promise.all(Array.from(t).map(o=>r?o(r):o()))}}function dt(t){return typeof t=="function"?t():a.unref(t)}function go(t){if(!a.isRef(t))return a.reactive(t);const e=new Proxy({},{get(n,i,r){return a.unref(Reflect.get(t.value,i,r))},set(n,i,r){return a.isRef(t.value[i])&&!a.isRef(r)?t.value[i].value=r:t.value[i]=r,!0},deleteProperty(n,i){return Reflect.deleteProperty(t.value,i)},has(n,i){return Reflect.has(t.value,i)},ownKeys(){return Object.keys(t.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return a.reactive(e)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Me(t,e){return Math.floor(Math.random()*(e-t+1)+t)}function mo(){return String.fromCharCode(Me(97,122))}function vo(){return String.fromCharCode(Me(65,90))}function fn(t=12,e={}){const{lowercase:n=!0,uppercase:i=!1,number:r=!1}=e,o=[];let s;if(n&&o.push("l"),i&&o.push("u"),r&&o.push("n"),!(s=o.length))throw new Error("???");let l="";for(;t-- >0;){const u=s>1?Me(0,s-1):0,f=o[u];f==="l"?l+=mo():f==="u"?l+=vo():f==="n"&&(l+=Me(0,9))}return l}function bo(){return fn(1,{uppercase:!0})+fn(17,{uppercase:!0,number:!0})}const yo=typeof window<"u";function wo(t,e,n){let i;const r=()=>{i==null||i.stop(),i=void 0},o=a.watch(t,(s,l,u)=>{s?(i&&r(),i=a.effectScope(),i.run(()=>e(s,l,u))):r()},n);return()=>{r(),o()}}function Le(t,e,n){return wo(t,e,{...n,immediate:!0})}function xo(t,e={}){const{initialData:n,immediate:i=!1,shallow:r=!1}=e,o=ft(),s=ft(),l=ft(),u=a.shallowRef(),f=(r?a.shallowRef:a.ref)(),d=a.shallowRef(),c=a.ref(!1),h=a.ref(!1),g=a.ref(!1),m=a.ref(!1),p=a.ref(0);function v(){p.value=0}let y=0;async function E(...R){const M=++y;c.value=!0,h.value=!0,g.value=!1,m.value=!1,(dt(e.resetOnExecute)??!0)&&(u.value=void 0,f.value=dt(n),d.value=void 0);try{const I=await t(...R);return M!==y||(u.value=I,f.value=I==null?void 0:I.data,h.value=!1,g.value=!0,m.value=!0,p.value++,o.trigger(I),l.trigger()),I}catch(I){throw M!==y||(h.value=!1,g.value=!0,m.value=!1,d.value=I,s.trigger(I),l.trigger()),I}}f.value=dt(n),i&&E();const x={response:u,data:f,error:d,isExecuted:c,isLoading:h,isFinished:g,isSuccess:m,successCount:p,clearSuccessCount:v,execute:E,onSuccess:o.on,onError:s.on,onFinally:l.on},_=go(a.computed(()=>({...x,response:a.computed(()=>a.shallowRef(u.value)),data:a.computed(()=>a.shallowRef(f.value)),error:a.computed(()=>a.shallowRef(d.value))})));return{...x,reactive:_}}function ko(t,e={}){return xo(t,e).reactive}const So={"size-full":"",flex:"~ justify-center items-center",pos:"absolute top-0 left-0","c-neutral":"","bg-dark":""},Eo={key:0,flex:"~ col gap-2 items-center"},_o={key:0,"text-sm":""},Co={flex:"~ col justify-center items-center gap-3","c-gray":""},Ao=a.defineComponent({__name:"Code",props:{file:{type:null},fileExt:{type:String}},setup(t){const e=t,n=a.ref(),{width:i,height:r}=co(n),o=a.ref(!1),s=a.ref(!1),l=a.ref(!1),u=a.shallowRef(),f=a.shallowRef(),d=a.shallowRef(),c=a.ref(),h=a.ref(),g=a.ref(0),m=ko(()=>Yr("monaco-editor",{version:Gr["monaco-editor"].replace(/^\^/g,""),file:"/min/vs/basic-languages/css/css.js"}),{immediate:!0});async function p(){var y,E;(y=f.value)==null||y.dispose(),s.value=!0,l.value=!1,await ro(()=>m.isSuccess).toBeTruthy(),rn.config({"vs/nls":{availableLanguages:{"*":"zh-cn"}},paths:{vs:`${m.response}/min/vs`}});try{u.value=await rn.init(),d.value??(d.value=u.value.languages.getLanguages()),c.value=(E=d.value.find(x=>{var _;return(_=x.extensions)==null?void 0:_.includes(`.${e.fileExt}`)}))==null?void 0:E.id,s.value=!1,(l.value=!c.value)||v()}catch{s.value=!1}}async function v(){l.value=!1,await a.nextTick(),f.value=u.value.editor.create(n.value,{value:h.value,language:c.value||"plaintext",tabSize:2,multiCursorModifier:"ctrlCmd",minimap:{showSlider:"always"},padding:{top:10},wordWrap:"on",theme:"vs-dark",readOnly:!0})}return Le(()=>e.file,(y,E,x)=>{o.value=!0;const _=new FileReader;_.onprogress=R=>{g.value=Math.round(R.loaded/R.total*100)},_.onload=async R=>{var M;o.value=!1,h.value=(M=R.target)==null?void 0:M.result,p()},_.readAsText(y),x(()=>{_.abort()})}),Le(Ut,y=>{const E='[data-name^="vs/editor"]';function x(){y.querySelectorAll(E).forEach(_=>{y.removeChild(_)}),Array.from(document.querySelectorAll(E)).forEach(_=>{y.appendChild(_.cloneNode(!0))})}un(document.head,x,{childList:!0}),x()}),oo(()=>({width:i.value,height:r.value}),y=>{var E;(E=f.value)==null||E.layout(y)}),a.onUnmounted(()=>{var y;(y=f.value)==null||y.dispose()}),(y,E)=>{const x=tr,_=Zi,R=Ui;return a.openBlock(),a.createElementBlock("div",So,[a.createCommentVNode(" 加载中 "),a.unref(o)||a.unref(s)?(a.openBlock(),a.createElementBlock("div",Eo,[a.createVNode(x),a.unref(o)?(a.openBlock(),a.createElementBlock("div",_o,"文件读取中, 当前进度 "+a.toDisplayString(a.unref(g))+"%",1)):a.createCommentVNode("v-if",!0)])):a.unref(l)?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createCommentVNode(" 不支持的文件 "),a.createElementVNode("div",Co,[a.createVNode(_,{class:"text-5xl text-yellow"}),a.createTextVNode(" 此文件类型暂不支持预览 "),a.createVNode(R,{class:"rounded-sm",color:"#3177d3",onClick:E[0]||(E[0]=M=>v())},{default:a.withCtx(()=>[a.createTextVNode("仍然打开")]),_:1})])],2112)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createCommentVNode(" 编辑器 "),a.createElementVNode("div",{ref_key:"editorRef",ref:n,"size-full":""},null,512)],2112))])}}}),zo=`*[data-v-3e5cdc11],[data-v-3e5cdc11]:before,[data-v-3e5cdc11]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-3e5cdc11]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.absolute[data-v-3e5cdc11],[pos~=absolute][data-v-3e5cdc11]{position:absolute}.left-0[data-v-3e5cdc11],[pos~=left-0][data-v-3e5cdc11]{left:0}.top-0[data-v-3e5cdc11],[pos~=top-0][data-v-3e5cdc11]{top:0}[flex~="~"][data-v-3e5cdc11]{display:flex}[flex~=col][data-v-3e5cdc11]{flex-direction:column}.items-center[data-v-3e5cdc11],[flex~=items-center][data-v-3e5cdc11]{align-items:center}.justify-center[data-v-3e5cdc11],[flex~=justify-center][data-v-3e5cdc11]{justify-content:center}.gap-2[data-v-3e5cdc11],[flex~=gap-2][data-v-3e5cdc11]{gap:.5rem}.gap-3[data-v-3e5cdc11],[flex~=gap-3][data-v-3e5cdc11]{gap:.75rem}.rounded-sm[data-v-3e5cdc11]{border-radius:.125rem}[bg-dark=""][data-v-3e5cdc11]{--un-bg-opacity:1;background-color:rgb(34 34 34 / var(--un-bg-opacity))}.text-5xl[data-v-3e5cdc11]{font-size:3rem;line-height:1}[text-sm=""][data-v-3e5cdc11]{font-size:.875rem;line-height:1.25rem}.text-yellow[data-v-3e5cdc11]{--un-text-opacity:1;color:rgb(250 204 21 / var(--un-text-opacity))}.c-neutral[data-v-3e5cdc11],[c-neutral=""][data-v-3e5cdc11]{--un-text-opacity:1;color:rgb(163 163 163 / var(--un-text-opacity))}[c-gray=""][data-v-3e5cdc11]{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}[color~="#3177d3"][data-v-3e5cdc11]{--un-text-opacity:1;color:rgb(49 119 211 / var(--un-text-opacity))}.size-full[data-v-3e5cdc11],[size-full=""][data-v-3e5cdc11]{width:100%;height:100%}
16
+ `,Se=(t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n},To=Se(Ao,[["styles",[zo]],["__scopeId","data-v-3e5cdc11"]]);/*!
17
+ * Viewer.js v1.11.6
18
+ * https://fengyuanchen.github.io/viewerjs
19
+ *
20
+ * Copyright 2015-present Chen Fengyuan
21
+ * Released under the MIT license
22
+ *
23
+ * Date: 2023-09-17T03:16:38.052Z
24
+ */function dn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function ht(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dn(Object(n),!0).forEach(function(i){Io(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dn(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function pt(t){"@babel/helpers - typeof";return pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pt(t)}function Oo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hn(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,pn(i.key),i)}}function No(t,e,n){return e&&hn(t.prototype,e),n&&hn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Io(t,e,n){return e=pn(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bo(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function pn(t){var e=Bo(t,"string");return typeof e=="symbol"?e:String(e)}var gn={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},Do='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>',je=typeof window<"u"&&typeof window.document<"u",K=je?window:{},ue=je&&K.document.documentElement?"ontouchstart"in K.document.documentElement:!1,gt=je?"PointerEvent"in K:!1,S="viewer",Ve="move",mn="switch",Ee="zoom",Fe="".concat(S,"-active"),Po="".concat(S,"-close"),$e="".concat(S,"-fade"),mt="".concat(S,"-fixed"),Ro="".concat(S,"-fullscreen"),vn="".concat(S,"-fullscreen-exit"),se="".concat(S,"-hide"),Mo="".concat(S,"-hide-md-down"),Lo="".concat(S,"-hide-sm-down"),jo="".concat(S,"-hide-xs-down"),H="".concat(S,"-in"),_e="".concat(S,"-invisible"),fe="".concat(S,"-loading"),Vo="".concat(S,"-move"),bn="".concat(S,"-open"),de="".concat(S,"-show"),D="".concat(S,"-transition"),he="click",vt="dblclick",yn="dragstart",wn="focusin",xn="keydown",W="load",le="error",Fo=ue?"touchend touchcancel":"mouseup",$o=ue?"touchmove":"mousemove",Ho=ue?"touchstart":"mousedown",kn=gt?"pointerdown":Ho,Sn=gt?"pointermove":$o,En=gt?"pointerup pointercancel":Fo,_n="resize",U="transitionend",Cn="wheel",An="ready",zn="show",Tn="shown",On="hide",Nn="hidden",In="view",Ce="viewed",Bn="move",Dn="moved",Pn="rotate",Rn="rotated",Mn="scale",Ln="scaled",jn="zoom",Vn="zoomed",Fn="play",$n="stop",He="".concat(S,"Action"),bt=/\s\s*/,We=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function Ae(t){return typeof t=="string"}var Wo=Number.isNaN||K.isNaN;function B(t){return typeof t=="number"&&!Wo(t)}function pe(t){return typeof t>"u"}function ge(t){return pt(t)==="object"&&t!==null}var qo=Object.prototype.hasOwnProperty;function me(t){if(!ge(t))return!1;try{var e=t.constructor,n=e.prototype;return e&&n&&qo.call(n,"isPrototypeOf")}catch{return!1}}function z(t){return typeof t=="function"}function N(t,e){if(t&&z(e))if(Array.isArray(t)||B(t.length)){var n=t.length,i;for(i=0;i<n&&e.call(t,t[i],i,t)!==!1;i+=1);}else ge(t)&&Object.keys(t).forEach(function(r){e.call(t,t[r],r,t)});return t}var $=Object.assign||function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return ge(e)&&i.length>0&&i.forEach(function(o){ge(o)&&Object.keys(o).forEach(function(s){e[s]=o[s]})}),e},Uo=/^(?:width|height|left|top|marginLeft|marginTop)$/;function X(t,e){var n=t.style;N(e,function(i,r){Uo.test(r)&&B(i)&&(i+="px"),n[r]=i})}function Xo(t){return Ae(t)?t.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):t}function ve(t,e){return!t||!e?!1:t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function w(t,e){if(!(!t||!e)){if(B(t.length)){N(t,function(i){w(i,e)});return}if(t.classList){t.classList.add(e);return}var n=t.className.trim();n?n.indexOf(e)<0&&(t.className="".concat(n," ").concat(e)):t.className=e}}function C(t,e){if(!(!t||!e)){if(B(t.length)){N(t,function(n){C(n,e)});return}if(t.classList){t.classList.remove(e);return}t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,""))}}function ze(t,e,n){if(e){if(B(t.length)){N(t,function(i){ze(i,e,n)});return}n?w(t,e):C(t,e)}}var Yo=/([a-z\d])([A-Z])/g;function yt(t){return t.replace(Yo,"$1-$2").toLowerCase()}function be(t,e){return ge(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(yt(e)))}function wt(t,e,n){ge(n)?t[e]=n:t.dataset?t.dataset[e]=n:t.setAttribute("data-".concat(yt(e)),n)}var Hn=function(){var t=!1;if(je){var e=!1,n=function(){},i=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(o){e=o}});K.addEventListener("test",n,i),K.removeEventListener("test",n,i)}return t}();function T(t,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;e.trim().split(bt).forEach(function(o){if(!Hn){var s=t.listeners;s&&s[o]&&s[o][n]&&(r=s[o][n],delete s[o][n],Object.keys(s[o]).length===0&&delete s[o],Object.keys(s).length===0&&delete t.listeners)}t.removeEventListener(o,r,i)})}function k(t,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;e.trim().split(bt).forEach(function(o){if(i.once&&!Hn){var s=t.listeners,l=s===void 0?{}:s;r=function(){delete l[o][n],t.removeEventListener(o,r,i);for(var f=arguments.length,d=new Array(f),c=0;c<f;c++)d[c]=arguments[c];n.apply(t,d)},l[o]||(l[o]={}),l[o][n]&&t.removeEventListener(o,l[o][n],i),l[o][n]=r,t.listeners=l}t.addEventListener(o,r,i)})}function P(t,e,n,i){var r;return z(Event)&&z(CustomEvent)?r=new CustomEvent(e,ht({bubbles:!0,cancelable:!0,detail:n},i)):(r=document.createEvent("CustomEvent"),r.initCustomEvent(e,!0,!0,n)),t.dispatchEvent(r)}function Go(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}function qe(t){var e=t.rotate,n=t.scaleX,i=t.scaleY,r=t.translateX,o=t.translateY,s=[];B(r)&&r!==0&&s.push("translateX(".concat(r,"px)")),B(o)&&o!==0&&s.push("translateY(".concat(o,"px)")),B(e)&&e!==0&&s.push("rotate(".concat(e,"deg)")),B(n)&&n!==1&&s.push("scaleX(".concat(n,")")),B(i)&&i!==1&&s.push("scaleY(".concat(i,")"));var l=s.length?s.join(" "):"none";return{WebkitTransform:l,msTransform:l,transform:l}}function Ko(t){return Ae(t)?decodeURIComponent(t.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var xt=K.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(K.navigator.userAgent);function Wn(t,e,n){var i=document.createElement("img");if(t.naturalWidth&&!xt)return n(t.naturalWidth,t.naturalHeight),i;var r=document.body||document.documentElement;return i.onload=function(){n(i.width,i.height),xt||r.removeChild(i)},N(e.inheritedAttributes,function(o){var s=t.getAttribute(o);s!==null&&i.setAttribute(o,s)}),i.src=t.src,xt||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",r.appendChild(i)),i}function Ue(t){switch(t){case 2:return jo;case 3:return Lo;case 4:return Mo;default:return""}}function Zo(t){var e=ht({},t),n=[];return N(t,function(i,r){delete e[r],N(e,function(o){var s=Math.abs(i.startX-o.startX),l=Math.abs(i.startY-o.startY),u=Math.abs(i.endX-o.endX),f=Math.abs(i.endY-o.endY),d=Math.sqrt(s*s+l*l),c=Math.sqrt(u*u+f*f),h=(c-d)/d;n.push(h)})}),n.sort(function(i,r){return Math.abs(i)<Math.abs(r)}),n[0]}function Xe(t,e){var n=t.pageX,i=t.pageY,r={endX:n,endY:i};return e?r:ht({timeStamp:Date.now(),startX:n,startY:i},r)}function Jo(t){var e=0,n=0,i=0;return N(t,function(r){var o=r.startX,s=r.startY;e+=o,n+=s,i+=1}),e/=i,n/=i,{pageX:e,pageY:n}}var Qo={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var e=this.element.ownerDocument,n=e.body||e.documentElement;this.body=n,this.scrollbarWidth=window.innerWidth-e.documentElement.clientWidth,this.initialBodyPaddingRight=n.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(n).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var e=this.options,n=this.parent,i;e.inline&&(i={width:Math.max(n.offsetWidth,e.minWidth),height:Math.max(n.offsetHeight,e.minHeight)},this.parentData=i),(this.fulled||!i)&&(i=this.containerData),this.viewerData=$({},i)},renderViewer:function(){this.options.inline&&!this.fulled&&X(this.viewer,this.viewerData)},initList:function(){var e=this,n=this.element,i=this.options,r=this.list,o=[];r.innerHTML="",N(this.images,function(s,l){var u=s.src,f=s.alt||Ko(u),d=e.getImageURL(s);if(u||d){var c=document.createElement("li"),h=document.createElement("img");N(i.inheritedAttributes,function(g){var m=s.getAttribute(g);m!==null&&h.setAttribute(g,m)}),i.navbar&&(h.src=u||d),h.alt=f,h.setAttribute("data-original-url",d||u),c.setAttribute("data-index",l),c.setAttribute("data-viewer-action","view"),c.setAttribute("role","button"),i.keyboard&&c.setAttribute("tabindex",0),c.appendChild(h),r.appendChild(c),o.push(c)}}),this.items=o,N(o,function(s){var l=s.firstElementChild,u,f;wt(l,"filled",!0),i.loading&&w(s,fe),k(l,W,u=function(c){T(l,le,f),i.loading&&C(s,fe),e.loadImage(c)},{once:!0}),k(l,le,f=function(){T(l,W,u),i.loading&&C(s,fe)},{once:!0})}),i.transition&&k(n,Ce,function(){w(r,D)},{once:!0})},renderList:function(){var e=this.index,n=this.items[e];if(n){var i=n.nextElementSibling,r=parseInt(window.getComputedStyle(i||n).marginLeft,10),o=n.offsetWidth,s=o+r;X(this.list,$({width:s*this.length-r},qe({translateX:(this.viewerData.width-o)/2-s*e})))}},resetList:function(){var e=this.list;e.innerHTML="",C(e,D),X(e,qe({translateX:0}))},initImage:function(e){var n=this,i=this.options,r=this.image,o=this.viewerData,s=this.footer.offsetHeight,l=o.width,u=Math.max(o.height-s,s),f=this.imageData||{},d;this.imageInitializing={abort:function(){d.onload=null}},d=Wn(r,i,function(c,h){var g=c/h,m=Math.max(0,Math.min(1,i.initialCoverage)),p=l,v=u;n.imageInitializing=!1,u*g>l?v=l/g:p=u*g,m=B(m)?m:.9,p=Math.min(p*m,c),v=Math.min(v*m,h);var y=(l-p)/2,E=(u-v)/2,x={left:y,top:E,x:y,y:E,width:p,height:v,oldRatio:1,ratio:p/c,aspectRatio:g,naturalWidth:c,naturalHeight:h},_=$({},x);i.rotatable&&(x.rotate=f.rotate||0,_.rotate=0),i.scalable&&(x.scaleX=f.scaleX||1,x.scaleY=f.scaleY||1,_.scaleX=1,_.scaleY=1),n.imageData=x,n.initialImageData=_,e&&e()})},renderImage:function(e){var n=this,i=this.image,r=this.imageData;if(X(i,$({width:r.width,height:r.height,marginLeft:r.x,marginTop:r.y},qe(r))),e)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&ve(i,D)){var o=function(){n.imageRendering=!1,e()};this.imageRendering={abort:function(){T(i,U,o)}},k(i,U,o,{once:!0})}else e()},resetImage:function(){var e=this.image;e&&(this.viewing&&this.viewing.abort(),e.parentNode.removeChild(e),this.image=null,this.title.innerHTML="")}},ea={bind:function(){var e=this.options,n=this.viewer,i=this.canvas,r=this.element.ownerDocument;k(n,he,this.onClick=this.click.bind(this)),k(n,yn,this.onDragStart=this.dragstart.bind(this)),k(i,kn,this.onPointerDown=this.pointerdown.bind(this)),k(r,Sn,this.onPointerMove=this.pointermove.bind(this)),k(r,En,this.onPointerUp=this.pointerup.bind(this)),k(r,xn,this.onKeyDown=this.keydown.bind(this)),k(window,_n,this.onResize=this.resize.bind(this)),e.zoomable&&e.zoomOnWheel&&k(n,Cn,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleOnDblclick&&k(i,vt,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var e=this.options,n=this.viewer,i=this.canvas,r=this.element.ownerDocument;T(n,he,this.onClick),T(n,yn,this.onDragStart),T(i,kn,this.onPointerDown),T(r,Sn,this.onPointerMove),T(r,En,this.onPointerUp),T(r,xn,this.onKeyDown),T(window,_n,this.onResize),e.zoomable&&e.zoomOnWheel&&T(n,Cn,this.onWheel,{passive:!1,capture:!0}),e.toggleOnDblclick&&T(i,vt,this.onDblclick)}},ta={click:function(e){var n=this.options,i=this.imageData,r=e.target,o=be(r,He);switch(!o&&r.localName==="img"&&r.parentElement.localName==="li"&&(r=r.parentElement,o=be(r,He)),ue&&e.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),o){case"mix":this.played?this.stop():n.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(be(r,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(n.loop);break;case"play":this.play(n.fullscreen);break;case"next":this.next(n.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-i.scaleX||-1);break;case"flip-vertical":this.scaleY(-i.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(e){e.preventDefault(),this.viewed&&e.target===this.image&&(ue&&e.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(e.isTrusted?e:e.detail&&e.detail.originalEvent))},load:function(){var e=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var n=this.element,i=this.options,r=this.image,o=this.index,s=this.viewerData;C(r,_e),i.loading&&C(this.canvas,fe),r.style.cssText="height:0;"+"margin-left:".concat(s.width/2,"px;")+"margin-top:".concat(s.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){ze(r,Vo,i.movable),ze(r,D,i.transition),e.renderImage(function(){e.viewed=!0,e.viewing=!1,z(i.viewed)&&k(n,Ce,i.viewed,{once:!0}),P(n,Ce,{originalImage:e.images[o],index:o,image:r},{cancelable:!1})})})},loadImage:function(e){var n=e.target,i=n.parentNode,r=i.offsetWidth||30,o=i.offsetHeight||50,s=!!be(n,"filled");Wn(n,this.options,function(l,u){var f=l/u,d=r,c=o;o*f>r?s?d=o*f:c=r/f:s?c=r/f:d=o*f,X(n,$({width:d,height:c},qe({translateX:(r-d)/2,translateY:(o-c)/2})))})},keydown:function(e){var n=this.options;if(n.keyboard){var i=e.keyCode||e.which||e.charCode;switch(i){case 13:this.viewer.contains(e.target)&&this.click(e);break}if(this.fulled)switch(i){case 27:this.played?this.stop():n.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(n.loop);break;case 38:e.preventDefault(),this.zoom(n.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(n.loop);break;case 40:e.preventDefault(),this.zoom(-n.zoomRatio,!0);break;case 48:case 49:e.ctrlKey&&(e.preventDefault(),this.toggle());break}}},dragstart:function(e){e.target.localName==="img"&&e.preventDefault()},pointerdown:function(e){var n=this.options,i=this.pointers,r=e.buttons,o=e.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||(e.type==="mousedown"||e.type==="pointerdown"&&e.pointerType==="mouse")&&(B(r)&&r!==1||B(o)&&o!==0||e.ctrlKey))){e.preventDefault(),e.changedTouches?N(e.changedTouches,function(l){i[l.identifier]=Xe(l)}):i[e.pointerId||0]=Xe(e);var s=n.movable?Ve:!1;n.zoomOnTouch&&n.zoomable&&Object.keys(i).length>1?s=Ee:n.slideOnTouch&&(e.pointerType==="touch"||e.type==="touchstart")&&this.isSwitchable()&&(s=mn),n.transition&&(s===Ve||s===Ee)&&C(this.image,D),this.action=s}},pointermove:function(e){var n=this.pointers,i=this.action;!this.viewed||!i||(e.preventDefault(),e.changedTouches?N(e.changedTouches,function(r){$(n[r.identifier]||{},Xe(r,!0))}):$(n[e.pointerId||0]||{},Xe(e,!0)),this.change(e))},pointerup:function(e){var n=this,i=this.options,r=this.action,o=this.pointers,s;e.changedTouches?N(e.changedTouches,function(l){s=o[l.identifier],delete o[l.identifier]}):(s=o[e.pointerId||0],delete o[e.pointerId||0]),r&&(e.preventDefault(),i.transition&&(r===Ve||r===Ee)&&w(this.image,D),this.action=!1,ue&&r!==Ee&&s&&Date.now()-s.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),i.toggleOnDblclick&&this.viewed&&e.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){P(n.image,vt,{originalEvent:e})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,i.backdrop&&i.backdrop!=="static"&&e.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){P(n.canvas,he,{originalEvent:e})},50)))))},resize:function(){var e=this;if(!(!this.isShown||this.hiding)&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){this.stop();return}N(this.player.getElementsByTagName("img"),function(n){k(n,W,e.loadImage.bind(e),{once:!0}),P(n,W)})}},wheel:function(e){var n=this;if(this.viewed&&(e.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){n.wheeling=!1},50);var i=Number(this.options.zoomRatio)||.1,r=1;e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*i,!0,null,e)}}},na={show:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.element,i=this.options;if(i.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(e),this;if(z(i.show)&&k(n,zn,i.show,{once:!0}),P(n,zn)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var r=this.viewer;if(C(r,se),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("aria-hidden"),i.transition&&!e){var o=this.shown.bind(this);this.transitioning={abort:function(){T(r,U,o),C(r,H)}},w(r,D),r.initialOffsetWidth=r.offsetWidth,k(r,U,o,{once:!0}),w(r,H)}else w(r,H),this.shown();return this},hide:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.element,r=this.options;if(r.inline||this.hiding||!(this.isShown||this.showing))return this;if(z(r.hide)&&k(i,On,r.hide,{once:!0}),P(i,On)===!1)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var o=this.viewer,s=this.image,l=function(){C(o,H),e.hidden()};if(r.transition&&!n){var u=function d(c){c&&c.target===o&&(T(o,U,d),e.hidden())},f=function(){ve(o,D)?(k(o,U,u),C(o,H)):l()};this.transitioning={abort:function(){e.viewed&&ve(s,D)?T(s,U,f):ve(o,D)&&T(o,U,u)}},this.viewed&&ve(s,D)?(k(s,U,f,{once:!0}),this.zoomTo(0,!1,null,null,!0)):f()}else l();return this},view:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.initialViewIndex;if(n=Number(n)||0,this.hiding||this.played||n<0||n>=this.length||this.viewed&&n===this.index)return this;if(!this.isShown)return this.index=n,this.show();this.viewing&&this.viewing.abort();var i=this.element,r=this.options,o=this.title,s=this.canvas,l=this.items[n],u=l.querySelector("img"),f=be(u,"originalUrl"),d=u.getAttribute("alt"),c=document.createElement("img");if(N(r.inheritedAttributes,function(v){var y=u.getAttribute(v);y!==null&&c.setAttribute(v,y)}),c.src=f,c.alt=d,z(r.view)&&k(i,In,r.view,{once:!0}),P(i,In,{originalImage:this.images[n],index:n,image:c})===!1||!this.isShown||this.hiding||this.played)return this;var h=this.items[this.index];h&&(C(h,Fe),h.removeAttribute("aria-selected")),w(l,Fe),l.setAttribute("aria-selected",!0),r.focus&&l.focus(),this.image=c,this.viewed=!1,this.index=n,this.imageData={},w(c,_e),r.loading&&w(s,fe),s.innerHTML="",s.appendChild(c),this.renderList(),o.innerHTML="";var g=function(){var y=e.imageData,E=Array.isArray(r.title)?r.title[1]:r.title;o.innerHTML=Xo(z(E)?E.call(e,c,y):"".concat(d," (").concat(y.naturalWidth," × ").concat(y.naturalHeight,")"))},m,p;return k(i,Ce,g,{once:!0}),this.viewing={abort:function(){T(i,Ce,g),c.complete?e.imageRendering?e.imageRendering.abort():e.imageInitializing&&e.imageInitializing.abort():(c.src="",T(c,W,m),e.timeout&&clearTimeout(e.timeout))}},c.complete?this.load():(k(c,W,m=function(){T(c,le,p),e.load()},{once:!0}),k(c,le,p=function(){T(c,W,m),e.timeout&&(clearTimeout(e.timeout),e.timeout=!1),C(c,_e),r.loading&&C(e.canvas,fe)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){C(c,_e),e.timeout=!1},1e3)),this},prev:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.index-1;return n<0&&(n=e?this.length-1:0),this.view(n),this},next:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.length-1,i=this.index+1;return i>n&&(i=e?0:n),this.view(i),this},move:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,i=this.imageData;return this.moveTo(pe(e)?e:i.x+Number(e),pe(n)?n:i.y+Number(n)),this},moveTo:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=this.element,s=this.options,l=this.imageData;if(e=Number(e),i=Number(i),this.viewed&&!this.played&&s.movable){var u=l.x,f=l.y,d=!1;if(B(e)?d=!0:e=u,B(i)?d=!0:i=f,d){if(z(s.move)&&k(o,Bn,s.move,{once:!0}),P(o,Bn,{x:e,y:i,oldX:u,oldY:f,originalEvent:r})===!1)return this;l.x=e,l.y=i,l.left=e,l.top=i,this.moving=!0,this.renderImage(function(){n.moving=!1,z(s.moved)&&k(o,Dn,s.moved,{once:!0}),P(o,Dn,{x:e,y:i,oldX:u,oldY:f,originalEvent:r},{cancelable:!1})})}}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e)),this},rotateTo:function(e){var n=this,i=this.element,r=this.options,o=this.imageData;if(e=Number(e),B(e)&&this.viewed&&!this.played&&r.rotatable){var s=o.rotate;if(z(r.rotate)&&k(i,Pn,r.rotate,{once:!0}),P(i,Pn,{degree:e,oldDegree:s})===!1)return this;o.rotate=e,this.rotating=!0,this.renderImage(function(){n.rotating=!1,z(r.rotated)&&k(i,Rn,r.rotated,{once:!0}),P(i,Rn,{degree:e,oldDegree:s},{cancelable:!1})})}return this},scaleX:function(e){return this.scale(e,this.imageData.scaleY),this},scaleY:function(e){return this.scale(this.imageData.scaleX,e),this},scale:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=this.element,o=this.options,s=this.imageData;if(e=Number(e),i=Number(i),this.viewed&&!this.played&&o.scalable){var l=s.scaleX,u=s.scaleY,f=!1;if(B(e)?f=!0:e=l,B(i)?f=!0:i=u,f){if(z(o.scale)&&k(r,Mn,o.scale,{once:!0}),P(r,Mn,{scaleX:e,scaleY:i,oldScaleX:l,oldScaleY:u})===!1)return this;s.scaleX=e,s.scaleY=i,this.scaling=!0,this.renderImage(function(){n.scaling=!1,z(o.scaled)&&k(r,Ln,o.scaled,{once:!0}),P(r,Ln,{scaleX:e,scaleY:i,oldScaleX:l,oldScaleY:u},{cancelable:!1})})}}return this},zoom:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,o=this.imageData;return e=Number(e),e<0?e=1/(1-e):e=1+e,this.zoomTo(o.width*e/o.naturalWidth,n,i,r),this},zoomTo:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,l=this.element,u=this.options,f=this.pointers,d=this.imageData,c=d.x,h=d.y,g=d.width,m=d.height,p=d.naturalWidth,v=d.naturalHeight;if(e=Math.max(0,e),B(e)&&this.viewed&&!this.played&&(s||u.zoomable)){if(!s){var y=Math.max(.01,u.minZoomRatio),E=Math.min(100,u.maxZoomRatio);e=Math.min(Math.max(e,y),E)}if(o)switch(o.type){case"wheel":u.zoomRatio>=.055&&e>.95&&e<1.05&&(e=1);break;case"pointermove":case"touchmove":case"mousemove":e>.99&&e<1.01&&(e=1);break}var x=p*e,_=v*e,R=x-g,M=_-m,I=d.ratio;if(z(u.zoom)&&k(l,jn,u.zoom,{once:!0}),P(l,jn,{ratio:e,oldRatio:I,originalEvent:o})===!1)return this;if(this.zooming=!0,o){var Y=Go(this.viewer),ne=f&&Object.keys(f).length>0?Jo(f):{pageX:o.pageX,pageY:o.pageY};d.x-=R*((ne.pageX-Y.left-c)/g),d.y-=M*((ne.pageY-Y.top-h)/m)}else me(r)&&B(r.x)&&B(r.y)?(d.x-=R*((r.x-c)/g),d.y-=M*((r.y-h)/m)):(d.x-=R/2,d.y-=M/2);d.left=d.x,d.top=d.y,d.width=x,d.height=_,d.oldRatio=I,d.ratio=e,this.renderImage(function(){n.zooming=!1,z(u.zoomed)&&k(l,Vn,u.zoomed,{once:!0}),P(l,Vn,{ratio:e,oldRatio:I,originalEvent:o},{cancelable:!1})}),i&&this.tooltip()}return this},play:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.isShown||this.played)return this;var i=this.element,r=this.options;if(z(r.play)&&k(i,Fn,r.play,{once:!0}),P(i,Fn)===!1)return this;var o=this.player,s=this.loadImage.bind(this),l=[],u=0,f=0;if(this.played=!0,this.onLoadWhenPlay=s,n&&this.requestFullscreen(n),w(o,de),N(this.items,function(h,g){var m=h.querySelector("img"),p=document.createElement("img");p.src=be(m,"originalUrl"),p.alt=m.getAttribute("alt"),p.referrerPolicy=m.referrerPolicy,u+=1,w(p,$e),ze(p,D,r.transition),ve(h,Fe)&&(w(p,H),f=g),l.push(p),k(p,W,s,{once:!0}),o.appendChild(p)}),B(r.interval)&&r.interval>0){var d=function h(){clearTimeout(e.playing.timeout),C(l[f],H),f-=1,f=f>=0?f:u-1,w(l[f],H),e.playing.timeout=setTimeout(h,r.interval)},c=function h(){clearTimeout(e.playing.timeout),C(l[f],H),f+=1,f=f<u?f:0,w(l[f],H),e.playing.timeout=setTimeout(h,r.interval)};u>1&&(this.playing={prev:d,next:c,timeout:setTimeout(c,r.interval)})}return this},stop:function(){var e=this;if(!this.played)return this;var n=this.element,i=this.options;if(z(i.stop)&&k(n,$n,i.stop,{once:!0}),P(n,$n)===!1)return this;var r=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,N(r.getElementsByTagName("img"),function(o){T(o,W,e.onLoadWhenPlay)}),C(r,de),r.innerHTML="",this.exitFullscreen(),this},full:function(){var e=this,n=this.options,i=this.viewer,r=this.image,o=this.list;return!this.isShown||this.played||this.fulled||!n.inline?this:(this.fulled=!0,this.open(),w(this.button,vn),n.transition&&(C(o,D),this.viewed&&C(r,D)),w(i,mt),i.setAttribute("role","dialog"),i.setAttribute("aria-labelledby",this.title.id),i.setAttribute("aria-modal",!0),i.removeAttribute("style"),X(i,{zIndex:n.zIndex}),n.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=$({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage(function(){n.transition&&setTimeout(function(){w(r,D),w(o,D)},0)})}),this)},exit:function(){var e=this,n=this.options,i=this.viewer,r=this.image,o=this.list;return!this.isShown||this.played||!this.fulled||!n.inline?this:(this.fulled=!1,this.close(),C(this.button,vn),n.transition&&(C(o,D),this.viewed&&C(r,D)),n.focus&&this.clearEnforceFocus(),i.removeAttribute("role"),i.removeAttribute("aria-labelledby"),i.removeAttribute("aria-modal"),C(i,mt),X(i,{zIndex:n.zIndexInline}),this.viewerData=$({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage(function(){n.transition&&setTimeout(function(){w(r,D),w(o,D)},0)})}),this)},tooltip:function(){var e=this,n=this.options,i=this.tooltipBox,r=this.imageData;return!this.viewed||this.played||!n.tooltip?this:(i.textContent="".concat(Math.round(r.ratio*100),"%"),this.tooltipping?clearTimeout(this.tooltipping):n.transition?(this.fading&&P(i,U),w(i,de),w(i,$e),w(i,D),i.removeAttribute("aria-hidden"),i.initialOffsetWidth=i.offsetWidth,w(i,H)):(w(i,de),i.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){n.transition?(k(i,U,function(){C(i,de),C(i,$e),C(i,D),i.setAttribute("aria-hidden",!0),e.fading=!1},{once:!0}),C(i,H),e.fading=!0):(C(i,de),i.setAttribute("aria-hidden",!0)),e.tooltipping=!1},1e3),this)},toggle:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.imageData.ratio===1?this.zoomTo(this.imageData.oldRatio,!0,null,e):this.zoomTo(1,!0,null,e),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=$({},this.initialImageData),this.renderImage()),this},update:function(){var e=this,n=this.element,i=this.options,r=this.isImg;if(r&&!n.parentNode)return this.destroy();var o=[];if(N(r?[n]:n.querySelectorAll("img"),function(f){z(i.filter)?i.filter.call(e,f)&&o.push(f):e.getImageURL(f)&&o.push(f)}),!o.length)return this;if(this.images=o,this.length=o.length,this.ready){var s=[];if(N(this.items,function(f,d){var c=f.querySelector("img"),h=o[d];h&&c?(h.src!==c.src||h.alt!==c.alt)&&s.push(d):s.push(d)}),X(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var l=s.indexOf(this.index);if(l>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-l,this.length-1),0));else{var u=this.items[this.index];w(u,Fe),u.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var e=this.element,n=this.options;return e[S]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),n.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):n.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),n.inline||T(e,he,this.onStart),e[S]=void 0,this):this}},ia={getImageURL:function(e){var n=this.options.url;return Ae(n)?n=e.getAttribute(n):z(n)?n=n.call(this,e):n="",n},enforceFocus:function(){var e=this;this.clearEnforceFocus(),k(document,wn,this.onFocusin=function(n){var i=e.viewer,r=n.target;if(!(r===document||r===i||i.contains(r))){for(;r;){if(r.getAttribute("tabindex")!==null||r.getAttribute("aria-modal")==="true")return;r=r.parentElement}i.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(T(document,wn,this.onFocusin),this.onFocusin=null)},open:function(){var e=this.body;w(e,bn),this.scrollbarWidth>0&&(e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var e=this.body;C(e,bn),this.scrollbarWidth>0&&(e.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var e=this.element,n=this.options,i=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,n.focus&&(i.focus(),this.enforceFocus()),z(n.shown)&&k(e,Tn,n.shown,{once:!0}),P(e,Tn)!==!1&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var e=this.element,n=this.options,i=this.viewer;n.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),w(i,se),i.removeAttribute("role"),i.removeAttribute("aria-labelledby"),i.removeAttribute("aria-modal"),i.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(z(n.hidden)&&k(e,Nn,n.hidden,{once:!0}),P(e,Nn,null,{cancelable:!1}))},requestFullscreen:function(e){var n=this.element.ownerDocument;if(this.fulled&&!(n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement)){var i=n.documentElement;i.requestFullscreen?me(e)?i.requestFullscreen(e):i.requestFullscreen():i.webkitRequestFullscreen?i.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):i.mozRequestFullScreen?i.mozRequestFullScreen():i.msRequestFullscreen&&i.msRequestFullscreen()}},exitFullscreen:function(){var e=this.element.ownerDocument;this.fulled&&(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())},change:function(e){var n=this.options,i=this.pointers,r=i[Object.keys(i)[0]];if(r){var o=r.endX-r.startX,s=r.endY-r.startY;switch(this.action){case Ve:(o!==0||s!==0)&&(this.pointerMoved=!0,this.move(o,s,e));break;case Ee:this.zoom(Zo(i),!1,null,e);break;case mn:{this.action="switched";var l=Math.abs(o);l>1&&l>Math.abs(s)&&(this.pointers={},o>1?this.prev(n.loop):o<-1&&this.next(n.loop));break}}N(i,function(u){u.startX=u.endX,u.startY=u.endY})}},isSwitchable:function(){var e=this.imageData,n=this.viewerData;return this.length>1&&e.x>=0&&e.y>=0&&e.width<=n.width&&e.height<=n.height}},ra=K.Viewer,oa=function(t){return function(){return t+=1,t}}(-1),qn=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Oo(this,t),!e||e.nodeType!==1)throw new Error("The first argument is required and must be an element.");this.element=e,this.options=$({},gn,me(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=oa(),this.init()}return No(t,[{key:"init",value:function(){var n=this,i=this.element,r=this.options;if(!i[S]){i[S]=this,r.focus&&!r.keyboard&&(r.focus=!1);var o=i.localName==="img",s=[];if(N(o?[i]:i.querySelectorAll("img"),function(f){z(r.filter)?r.filter.call(n,f)&&s.push(f):n.getImageURL(f)&&s.push(f)}),this.isImg=o,this.length=s.length,this.images=s,this.initBody(),pe(document.createElement(S).style.transition)&&(r.transition=!1),r.inline){var l=0,u=function(){if(l+=1,l===n.length){var d;n.initializing=!1,n.delaying={abort:function(){clearTimeout(d)}},d=setTimeout(function(){n.delaying=!1,n.build()},0)}};this.initializing={abort:function(){N(s,function(d){d.complete||(T(d,W,u),T(d,le,u))})}},N(s,function(f){if(f.complete)u();else{var d,c;k(f,W,d=function(){T(f,le,c),u()},{once:!0}),k(f,le,c=function(){T(f,W,d),u()},{once:!0})}})}else k(i,he,this.onStart=function(f){var d=f.target;d.localName==="img"&&(!z(r.filter)||r.filter.call(n,d))&&n.view(n.images.indexOf(d))})}}},{key:"build",value:function(){if(!this.ready){var n=this.element,i=this.options,r=n.parentNode,o=document.createElement("div");o.innerHTML=Do;var s=o.querySelector(".".concat(S,"-container")),l=s.querySelector(".".concat(S,"-title")),u=s.querySelector(".".concat(S,"-toolbar")),f=s.querySelector(".".concat(S,"-navbar")),d=s.querySelector(".".concat(S,"-button")),c=s.querySelector(".".concat(S,"-canvas"));if(this.parent=r,this.viewer=s,this.title=l,this.toolbar=u,this.navbar=f,this.button=d,this.canvas=c,this.footer=s.querySelector(".".concat(S,"-footer")),this.tooltipBox=s.querySelector(".".concat(S,"-tooltip")),this.player=s.querySelector(".".concat(S,"-player")),this.list=s.querySelector(".".concat(S,"-list")),s.id="".concat(S).concat(this.id),l.id="".concat(S,"Title").concat(this.id),w(l,i.title?Ue(Array.isArray(i.title)?i.title[0]:i.title):se),w(f,i.navbar?Ue(i.navbar):se),ze(d,se,!i.button),i.keyboard&&d.setAttribute("tabindex",0),i.backdrop&&(w(s,"".concat(S,"-backdrop")),!i.inline&&i.backdrop!=="static"&&wt(c,He,"hide")),Ae(i.className)&&i.className&&i.className.split(bt).forEach(function(x){w(s,x)}),i.toolbar){var h=document.createElement("ul"),g=me(i.toolbar),m=We.slice(0,3),p=We.slice(7,9),v=We.slice(9);g||w(u,Ue(i.toolbar)),N(g?i.toolbar:We,function(x,_){var R=g&&me(x),M=g?yt(_):x,I=R&&!pe(x.show)?x.show:x;if(!(!I||!i.zoomable&&m.indexOf(M)!==-1||!i.rotatable&&p.indexOf(M)!==-1||!i.scalable&&v.indexOf(M)!==-1)){var Y=R&&!pe(x.size)?x.size:x,ne=R&&!pe(x.click)?x.click:x,b=document.createElement("li");i.keyboard&&b.setAttribute("tabindex",0),b.setAttribute("role","button"),w(b,"".concat(S,"-").concat(M)),z(ne)||wt(b,He,M),B(I)&&w(b,Ue(I)),["small","large"].indexOf(Y)!==-1?w(b,"".concat(S,"-").concat(Y)):M==="play"&&w(b,"".concat(S,"-large")),z(ne)&&k(b,he,ne),h.appendChild(b)}}),u.appendChild(h)}else w(u,se);if(!i.rotatable){var y=u.querySelectorAll('li[class*="rotate"]');w(y,_e),N(y,function(x){u.appendChild(x)})}if(i.inline)w(d,Ro),X(s,{zIndex:i.zIndexInline}),window.getComputedStyle(r).position==="static"&&X(r,{position:"relative"}),r.insertBefore(s,n.nextSibling);else{w(d,Po),w(s,mt),w(s,$e),w(s,se),X(s,{zIndex:i.zIndex});var E=i.container;Ae(E)&&(E=n.ownerDocument.querySelector(E)),E||(E=this.body),E.appendChild(s)}if(i.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,z(i.ready)&&k(n,An,i.ready,{once:!0}),P(n,An)===!1){this.ready=!1;return}this.ready&&i.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=ra,t}},{key:"setDefaults",value:function(n){$(gn,me(n)&&n)}}]),t}();$(qn.prototype,Qo,ea,ta,na,ia);const aa={"size-full":""},sa=["src"],la=Se(a.defineComponent({__name:"Image",props:{file:{type:null}},setup(t){const e=t,n=a.ref(),i=ut(()=>e.file);return Le(()=>n.value&&i.value,(r,o,s)=>{const l=new qn(n.value,{inline:!0,navbar:!1,title:!1,transition:!1,toolbar:{reset:!0,rotateLeft:!0,rotateRight:!0,zoomIn:!0,zoomOut:!0,flipHorizontal:!0,flipVertical:!0}});s(()=>{l.destroy()})}),(r,o)=>(a.openBlock(),a.createElementBlock("div",aa,[a.createElementVNode("div",{ref_key:"rootRef",ref:n,"size-full":""},[a.unref(i)?(a.openBlock(),a.createElementBlock("img",{key:0,src:a.unref(i),hidden:""},null,8,sa)):a.createCommentVNode("v-if",!0)],512)]))}}),[["styles",[`/*!
25
+ * Viewer.js v1.11.6
26
+ * https://fengyuanchen.github.io/viewerjs
27
+ *
28
+ * Copyright 2015-present Chen Fengyuan
29
+ * Released under the MIT license
30
+ *
31
+ * Date: 2023-09-17T03:16:35.830Z
32
+ */.viewer-zoom-in:before,.viewer-zoom-out:before,.viewer-one-to-one:before,.viewer-reset:before,.viewer-prev:before,.viewer-play:before,.viewer-next:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen:before,.viewer-fullscreen-exit:before,.viewer-close:before{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC);background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{bottom:0;direction:ltr;font-size:0;left:0;line-height:0;overflow:hidden;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container *::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container *::selection{background-color:transparent}.viewer-container:focus{outline:0}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-footer{bottom:0;left:0;overflow:hidden;position:absolute;right:0;text-align:center}.viewer-navbar{background-color:#00000080;overflow:hidden}.viewer-list{box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;transition:opacity .15s;width:30px}.viewer-list>li:focus,.viewer-list>li:hover{opacity:.75}.viewer-list>li:focus{outline:0}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:focus,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;bottom:0;cursor:none;display:none;left:0;position:absolute;right:0;top:0;z-index:1}.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:6px 3px}.viewer-toolbar>ul>li{background-color:#00000080;border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:focus,.viewer-toolbar>ul>li:hover{background-color:#000c}.viewer-toolbar>ul>li:focus{box-shadow:0 0 3px #fff;outline:0;position:relative;z-index:1}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:#000c;border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{color:#ccc;display:inline-block;font-size:12px;line-height:1.2;margin:5px 5%;max-width:90%;min-height:14px;opacity:.8;overflow:hidden;text-overflow:ellipsis;transition:opacity .15s;white-space:nowrap}.viewer-title:hover{opacity:1}.viewer-button{-webkit-app-region:no-drag;background-color:#00000080;border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:#000c}.viewer-button:focus{box-shadow:0 0 3px #fff;outline:0}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:#00000080}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{transition:all .3s}@keyframes viewer-spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.viewer-loading:after{animation:viewer-spinner 1s linear infinite;border:4px solid rgba(255,255,255,.1);border-left-color:#ffffff80;border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media (max-width: 767px){.viewer-hide-xs-down{display:none}}@media (max-width: 991px){.viewer-hide-sm-down{display:none}}@media (max-width: 1199px){.viewer-hide-md-down{display:none}}.viewer-button.viewer-fullscreen{display:none}
33
+ `,`*[data-v-76ef470f],[data-v-76ef470f]:before,[data-v-76ef470f]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-76ef470f]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.inline[data-v-76ef470f]{display:inline}[hidden=""][data-v-76ef470f]{display:none}.transition[data-v-76ef470f]{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[size-full=""][data-v-76ef470f]{width:100%;height:100%}
34
+ `]],["__scopeId","data-v-76ef470f"]]),ca=["src"],ua=Se(a.defineComponent({__name:"Pdf",props:{file:{type:null}},setup(t){const e=t,n=ut(()=>e.file);return(i,r)=>(a.openBlock(),a.createElementBlock("iframe",{"size-full":"",frameborder:"0",src:a.unref(n)},null,8,ca))}}),[["styles",[`*[data-v-a8464349],[data-v-a8464349]:before,[data-v-a8464349]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-a8464349]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.size-full[data-v-a8464349],[size-full=""][data-v-a8464349]{width:100%;height:100%}
35
+ `]],["__scopeId","data-v-a8464349"]]),fa=Se(a.defineComponent({__name:"Video",props:{file:{type:null}},setup(t){const e=t,n=a.ref(),i=ut(()=>e.file);return Le(i,()=>{const{playing:r}=ho(n,{src:()=>i.value});a.nextTick(()=>{r.value=!0})}),(r,o)=>(a.openBlock(),a.createElementBlock("video",{ref_key:"videoRef",ref:n,class:"size-full absolute top-0 left-0",controls:""},null,512))}}),[["styles",[`*[data-v-9e308ade],[data-v-9e308ade]:before,[data-v-9e308ade]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-9e308ade]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.absolute[data-v-9e308ade]{position:absolute}.left-0[data-v-9e308ade]{left:0}.top-0[data-v-9e308ade]{top:0}.size-full[data-v-9e308ade]{width:100%;height:100%}
36
+ `]],["__scopeId","data-v-9e308ade"]]);function da(t){const e=t.split(".");return{name:e.length>1?e.slice(0,-1).join("."):t,ext:e.length>1?e.reverse()[0].toLowerCase():""}}const ha="1.7.0-beta.0";function pa(t=bo()){const e=st(),n=`style[cssr-id^="${t}-"]`;return a.onMounted(()=>{function i(){const r=e.value.parentNode;r.querySelectorAll(n).forEach(o=>{r.removeChild(o)}),Array.from(document.querySelectorAll(n)).forEach(o=>{r.appendChild(o.cloneNode()).textContent=o.textContent})}un(document.head,i,{childList:!0}),i()}),t}function ga(){const t=st();return a.onMounted(()=>{var r;const e=t.value.parentNode,{tailwindResetStyle:n,elementPlusStyle:i}=((r=globalThis.SmartCore)==null?void 0:r[ha])??{};if(n&&(e.appendChild(document.createElement("style")).textContent=n),i){const o=document.createElement("style");o.setAttribute("namespace","smart"),e.appendChild(o).textContent=i,document.querySelector('style[namespace="smart"]')||(document.head.appendChild(o.cloneNode()).textContent=i)}}),{classPrefix:pa()}}const ma={"size-full":"",relative:""},va=Se(a.defineComponent({__name:"index",setup(t,{expose:e}){const n=a.useAttrs(),i=a.shallowRef(),r=a.ref(),o=a.ref(),s=a.computed(()=>Xi[o.value]),l={image:la,pdf:ua,video:fa},u=(f,d)=>{const{name:c,ext:h}=da(f);i.value=d,r.value=c,o.value=h};return ga(),a.onMounted(()=>{const f=st();Ut.value=f.value.parentNode}),e({previewFile:u}),(f,d)=>{const c=vi;return a.openBlock(),a.createBlock(c,{namespace:"smart"},{default:a.withCtx(()=>[a.createElementVNode("div",ma,[a.createCommentVNode(" File / Blob 文件打开 "),a.unref(i)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(l[a.unref(s)]||To),a.mergeProps({key:0,file:a.unref(i),fileName:a.unref(r),fileExt:a.unref(o)},a.unref(n)),null,16,["file","fileName","fileExt"])):a.createCommentVNode("v-if",!0)])]),_:1})}}}),[["styles",[`*[data-v-f8443614],[data-v-f8443614]:before,[data-v-f8443614]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-f8443614]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[relative=""][data-v-f8443614]{position:relative}.size-full[data-v-f8443614],[size-full=""][data-v-f8443614]{width:100%;height:100%}
37
+ `]],["__scopeId","data-v-f8443614"]]),ba="smart-file-preview";function ya(t,e){var n;yo&&!customElements.get(t)&&customElements.define(t,(n=e.prototype)!=null&&n.connectedCallback?e:a.defineCustomElement(e))}function wa(t,e){return t._instance.exposed[e]}const Un=a.defineCustomElement(va);Object.assign(Un.prototype,{previewFile(...t){return wa(this,"previewFile")(...t)}}),ya(ba,Un)})((Xn=SmartCore["1.7.0-beta.0"])==null?void 0:Xn.Vue);
@@ -0,0 +1,2 @@
1
+
2
+ export { }