System.register(["./index-legacy-BGUFxny_.js","./File-legacy-BDBS8JJW.js","./icon-legacy-fy54up3n.js","./index-legacy-CwkvHJvM.js","./Layout-legacy-BpAjKXAb.js","./useTitle-legacy-Ck1as0cr.js","./FolderTree-legacy-DAN7i0-E.js","./index-legacy-CH9QEyQP.js","./index-legacy-DgbbakiJ.js","./share-legacy-CrDD6m--.js","./index-legacy-DVBgQjo3.js"],function(e,t){"use strict";var n,r,o,c,s,l,i,a,u,f;return{setters:[e=>{n=e.dZ,r=e.bU,o=e.O,c=e.d_,s=e.e4,l=e.D,i=e.K,a=e.o,u=e.ao},e=>{f=e.F},null,null,null,null,null,null,null,null,null],execute:function(){var t,y;e("default",function(){const[e]=n(),{copy:t}=r(),y=o(()=>{try{const t=e()?.content||"",{text:n}=c(t),r=s(h.parse(n()||""));return r.internetshortcut?.url||"#"}catch(t){return console.error("Error parsing INI content:",t),"#"}}),p=a();return l(u,{get loading(){return e.loading},get children(){return l(f,{get children(){return[l(i,{colorScheme:"accent",onClick:()=>t(y()),get children(){return p("home.toolbar.copy_link")}}),l(i,{as:"a",get href(){return y()},target:"_blank",rel:"noopener noreferrer",get children(){return p("home.preview.open_in_new_window")}})]}})}})});var h=function(){if(y)return t;y=1;const{hasOwnProperty:e}=Object.prototype,n=(e,t={})=>{"string"==typeof t&&(t={section:t}),t.align=!0===t.align,t.newline=!0===t.newline,t.sort=!0===t.sort,t.whitespace=!0===t.whitespace||!0===t.align,t.platform=t.platform||"undefined"!=typeof process&&process.platform,t.bracketedArray=!1!==t.bracketedArray;const o="win32"===t.platform?"\r\n":"\n",c=t.whitespace?" = ":"=",l=[],i=t.sort?Object.keys(e).sort():Object.keys(e);let a=0;t.align&&(a=s(i.filter(t=>null===e[t]||Array.isArray(e[t])||"object"!=typeof e[t]).map(t=>Array.isArray(e[t])?`${t}[]`:t).concat([""]).reduce((e,t)=>s(e).length>=s(t).length?e:t)).length);let u="";const f=t.bracketedArray?"[]":"";for(const n of i){const t=e[n];if(t&&Array.isArray(t))for(const e of t)u+=s(`${n}${f}`).padEnd(a," ")+c+s(e)+o;else t&&"object"==typeof t?l.push(n):u+=s(n).padEnd(a," ")+c+s(t)+o}t.section&&u.length&&(u="["+s(t.section)+"]"+(t.newline?o+o:o)+u);for(const s of l){const c=r(s,".").join("\\."),l=(t.section?t.section+".":"")+c,i=n(e[s],{...t,section:l});u.length&&i.length&&(u+=o),u+=i}return u};function r(e,t){var n=0,r=0,o=0,c=[];do{if(-1!==(o=e.indexOf(t,n))){if(n=o+t.length,o>0&&"\\"===e[o-1])continue;c.push(e.slice(r,o)),r=o+t.length}}while(-1!==o);return c.push(e.slice(r)),c}const o=(t,n={})=>{n.bracketedArray=!1!==n.bracketedArray;const o=Object.create(null);let c=o,s=null;const i=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,a=t.split(/[\r\n]+/g),u={};for(const r of a){if(!r||r.match(/^\s*[;#]/)||r.match(/^\s*$/))continue;const t=r.match(i);if(!t)continue;if(void 0!==t[1]){if(s=l(t[1]),"__proto__"===s){c=Object.create(null);continue}c=o[s]=o[s]||Object.create(null);continue}const a=l(t[2]);let f;n.bracketedArray?f=a.length>2&&"[]"===a.slice(-2):(u[a]=(u?.[a]||0)+1,f=u[a]>1);const y=f&&a.endsWith("[]")?a.slice(0,-2):a;if("__proto__"===y)continue;const h=!t[3]||l(t[4]),p="true"===h||"false"===h||"null"===h?JSON.parse(h):h;f&&(e.call(c,y)?Array.isArray(c[y])||(c[y]=[c[y]]):c[y]=[]),Array.isArray(c[y])?c[y].push(p):c[y]=p}const f=[];for(const l of Object.keys(o)){if(!e.call(o,l)||"object"!=typeof o[l]||Array.isArray(o[l]))continue;const t=r(l,".");c=o;const n=t.pop(),s=n.replace(/\\\./g,".");for(const r of t)"__proto__"!==r&&(e.call(c,r)&&"object"==typeof c[r]||(c[r]=Object.create(null)),c=c[r]);c===o&&s===n||(c[s]=o[l],f.push(l))}for(const e of f)delete o[e];return o},c=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),s=e=>"string"!=typeof e||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&c(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),l=e=>{if(e=(e||"").trim(),!c(e)){let t=!1,n="";for(let r=0,o=e.length;r<o;r++){const o=e.charAt(r);if(t)-1!=="\\;#".indexOf(o)?n+=o:n+="\\"+o,t=!1;else{if(-1!==";#".indexOf(o))break;"\\"===o?t=!0:n+=o}}return t&&(n+="\\"),n.trim()}"'"===e.charAt(0)&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}return e};return t={parse:o,decode:o,stringify:n,encode:n,safe:s,unsafe:l}}()}}});
