(()=>{"use strict";var e={800:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=t.localize=t.format=t.setPseudo=t.isPseudo=t.isDefined=t.BundleFormat=t.MessageFormat=void 0;var s,r,n,o=i(926);function a(e){return void 0!==e}function c(e,i){return t.isPseudo&&(e="["+e.replace(/[aouei]/g,"$&$&")+"]"),0===i.length?e:e.replace(/\{(\d+)\}/g,(function(e,t){var s=t[0],r=i[s],n=e;return"string"==typeof r?n=r:"number"!=typeof r&&"boolean"!=typeof r&&null!=r||(n=String(r)),n}))}(n=t.MessageFormat||(t.MessageFormat={})).file="file",n.bundle="bundle",n.both="both",(r=t.BundleFormat||(t.BundleFormat={})).standalone="standalone",r.languagePack="languagePack",function(e){e.is=function(e){var t=e;return t&&a(t.key)&&a(t.comment)}}(s||(s={})),t.isDefined=a,t.isPseudo=!1,t.setPseudo=function(e){t.isPseudo=e},t.format=c,t.localize=function(e,t){for(var i=[],s=2;s{var i;function s(){if(void 0===i)throw new Error("No runtime abstraction layer installed");return i}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");i=e}}(s||(s={})),t.default=s},472:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.loadMessageBundle=t.BundleFormat=t.MessageFormat=void 0;var s=i(622),r=i(747),n=i(926),o=i(800),a=i(800);Object.defineProperty(t,"MessageFormat",{enumerable:!0,get:function(){return a.MessageFormat}}),Object.defineProperty(t,"BundleFormat",{enumerable:!0,get:function(){return a.BundleFormat}});var c,u,l=Object.prototype.toString;function d(e){return"[object Number]"===l.call(e)}function h(e){return"[object String]"===l.call(e)}function v(e){return JSON.parse(r.readFileSync(e,"utf8"))}function g(e){return function(t,i){for(var s=[],r=2;r=e.length?void console.error("Broken localize call found. Index out of bounds. Stacktrace is\n: ".concat(new Error("").stack)):(0,o.format)(e[t],s):h(i)?(console.warn("Message ".concat(i," didn't get externalized correctly.")),(0,o.format)(i,s)):void console.error("Broken localize call found. Stacktrace is\n: ".concat(new Error("").stack))}}function p(e,t){return c[e]=t,t}function w(e){try{return function(e){var t=v(s.join(e,"nls.metadata.json")),i=Object.create(null);for(var r in t){var n=t[r];i[r]=n.messages}return i}(e)}catch(e){return void console.log("Generating default bundle from meta data failed.",e)}}function m(e,t){var i;if(!0===u.languagePackSupport&&void 0!==u.cacheRoot&&void 0!==u.languagePackId&&void 0!==u.translationsConfigFile&&void 0!==u.translationsConfig)try{i=function(e,t){var i,n,o,a=s.join(u.cacheRoot,"".concat(e.id,"-").concat(e.hash,".json")),c=!1,l=!1;try{return i=JSON.parse(r.readFileSync(a,{encoding:"utf8",flag:"r"})),n=a,o=new Date,r.utimes(n,o,o,(function(){})),i}catch(e){if("ENOENT"===e.code)l=!0;else{if(!(e instanceof SyntaxError))throw e;console.log("Syntax error parsing message bundle: ".concat(e.message,".")),r.unlink(a,(function(e){e&&console.error("Deleting corrupted bundle ".concat(a," failed."))})),c=!0}}if(!(i=function(e,t){var i=u.translationsConfig[e.id];if(i){var r=v(i).contents,n=v(s.join(t,"nls.metadata.json")),o=Object.create(null);for(var a in n){var c=n[a],l=r["".concat(e.outDir,"/").concat(a)];if(l){for(var d=[],g=0;g0?t.substring(0,n):void 0}if(void 0===t&&(i=s.join(e,"nls.bundle.json"),r.existsSync(i)))return i}(t);if(n)try{return v(n)}catch(e){console.log("Loading in the box message bundle failed.",e)}i=w(t)}return i}function f(e){if(!e)return o.localize;var t=s.extname(e);if(t&&(e=e.substr(0,e.length-t.length)),u.messageFormat===o.MessageFormat.both||u.messageFormat===o.MessageFormat.bundle){var i=function(e){for(var t,i=s.dirname(e);t=s.join(i,"nls.metadata.header.json"),!r.existsSync(t);){var n=s.dirname(i);if(n===i){t=void 0;break}i=n}return t}(e);if(i){var n=s.dirname(i),a=c[n];if(void 0===a)try{var l=JSON.parse(r.readFileSync(i,"utf8"));try{var d=m(l,n);a=p(n,d?{header:l,nlsBundle:d}:null)}catch(e){console.error("Failed to load nls bundle",e),a=p(n,null)}}catch(e){console.error("Failed to read header file",e),a=p(n,null)}if(a){var h=e.substr(n.length+1).replace(/\\/g,"/"),w=a.nlsBundle[h];return void 0===w?(console.error("Messages for file ".concat(e," not found. See console for details.")),function(){return"Messages not found."}):g(w)}}}if(u.messageFormat===o.MessageFormat.both||u.messageFormat===o.MessageFormat.file)try{var f=v(function(e){var t;if(u.cacheLanguageResolution&&t)t=t;else{if(o.isPseudo||!u.language)t=".nls.json";else for(var i=u.language;i;){var s=".nls."+i+".json";if(r.existsSync(e+s)){t=s;break}var n=i.lastIndexOf("-");n>0?i=i.substring(0,n):(t=".nls.json",i=null)}u.cacheLanguageResolution&&(t=t)}return e+t}(e));return Array.isArray(f)?g(f):(0,o.isDefined)(f.messages)&&(0,o.isDefined)(f.keys)?g(f.messages):(console.error("String bundle '".concat(e,"' uses an unsupported format.")),function(){return"File bundle has unsupported format. See console for details"})}catch(e){"ENOENT"!==e.code&&console.error("Failed to load single file bundle",e)}return console.error("Failed to load message bundle for file ".concat(e)),function(){return"Failed to load message bundle. See console for details."}}function y(e){return e&&(h(e.locale)&&(u.locale=e.locale.toLowerCase(),u.language=u.locale,c=Object.create(null)),void 0!==e.messageFormat&&(u.messageFormat=e.messageFormat),e.bundleFormat===o.BundleFormat.standalone&&!0===u.languagePackSupport&&(u.languagePackSupport=!1)),(0,o.setPseudo)("pseudo"===u.locale),f}!function(){if(u={locale:void 0,language:void 0,languagePackSupport:!1,cacheLanguageResolution:!0,messageFormat:o.MessageFormat.bundle},h(process.env.VSCODE_NLS_CONFIG))try{var e=JSON.parse(process.env.VSCODE_NLS_CONFIG),t=void 0;if(e.availableLanguages){var i=e.availableLanguages["*"];h(i)&&(t=i)}if(h(e.locale)&&(u.locale=e.locale.toLowerCase()),void 0===t?u.language=u.locale:"en"!==t&&(u.language=t),function(e){return!0===e||!1===e}(e._languagePackSupport)&&(u.languagePackSupport=e._languagePackSupport),h(e._cacheRoot)&&(u.cacheRoot=e._cacheRoot),h(e._languagePackId)&&(u.languagePackId=e._languagePackId),h(e._translationsConfigFile)){u.translationsConfigFile=e._translationsConfigFile;try{u.translationsConfig=v(u.translationsConfigFile)}catch(t){if(e._corruptedFile){var n=s.dirname(e._corruptedFile);r.exists(n,(function(t){t&&r.writeFile(e._corruptedFile,"corrupted","utf8",(function(e){console.error(e)}))}))}}}}catch(e){}(0,o.setPseudo)("pseudo"===u.locale),c=Object.create(null)}(),t.loadMessageBundle=f,t.config=y,n.default.install(Object.freeze({loadMessageBundle:f,config:y}))},410:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.registerAudioPreviewSupport=void 0;const s=i(549),r=i(472),n=i(857),o=i(297),a=r.loadMessageBundle(i(622).join(__dirname,"audioPreview.ts"));class c{constructor(e,t){this.extensionRoot=e,this.binarySizeStatusBarEntry=t}async openCustomDocument(e){return{uri:e,dispose:()=>{}}}async resolveCustomEditor(e,t){new u(this.extensionRoot,e.uri,t,this.binarySizeStatusBarEntry)}}c.viewType="vscode.audioPreview";class u extends n.MediaPreview{constructor(e,t,i,s){super(e,t,i,s),this.extensionRoot=e,this._register(i.webview.onDidReceiveMessage((e=>{switch(e.type){case"reopen-as-text":(0,n.reopenAsText)(t,i.viewColumn)}}))),this.updateBinarySize(),this.render(),this.updateState()}async getWebviewContents(){const e=Date.now().toString(),t={src:await this.getResourcePath(this.webviewEditor,this.resource,e)},i=(0,o.getNonce)(),s=this.webviewEditor.webview.cspSource;return`\n\n\n\t\n\t\x3c!-- Disable pinch zooming --\x3e\n\t\n\tAudio Preview\n\t\n\t\n\t\n\n\n\t
\n\t
\n\t\t

${a(0,null)}

\n\t\t${a(1,null)}\n\t
\n\t