System.register(["./index-legacy-b5b2d9a0.js"],(function(e,n){"use strict";var t;return{setters:[function(e){t=e.B}],execute:function(){e("a",(function(e){return new Promise((function(n,t){var r=new FileReader;r.readAsDataURL(e),r.onload=function(){n(r.result)},r.onerror=function(e){t(e)}}))}));var n=e("f",(function(e){if(0===e)return"-";if(-1===e)return"未知";var n=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,n)).toFixed(2)+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][n]})),r=(e("c",(function(e,t,r){return"BACK"===e.type?"":"ROOT"===e.type?"-":"FOLDER"!==e.type||e.size?0===r?"0 B":-1===r?"未知":n(r):"-"})),e("g",(function(e){if("BACK"===e.type||"FOLDER"===e.type||"ROOT"===e.type)return e.type.toLowerCase();var n=r(e.name),a=i(e.name);return-1!==t.iconFileType.indexOf(n)?n:a||"file"})),e("d",(function(e){var n=e.lastIndexOf(".");return-1===n?"other":e.substring(n+1).toLowerCase()}))),i=(e("h",(function(e){var n=e.lastIndexOf("/");return-1===n?e:e.substring(n+1)})),e("e",(function(e){var n=e.lastIndexOf(".");return-1===n?"":e.substring(0,n)})),e("b",(function(e){var n;for(var i in t.fileTypeMap){var a=r(e);if(-1!==t.fileTypeMap[i].indexOf(a)){n=i;break}}return n})))}}}));
