| Current Path : /var/www/surf/TYPO3/public/_assets/1ee1d3e909b58d32e30dcea666dd3224/JavaScript/ |
| Current File : /var/www/surf/TYPO3/public/_assets/1ee1d3e909b58d32e30dcea666dd3224/JavaScript/requirejs-loader.js |
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
"use strict";!function(t){const e=function(t,e,n,o){const r="undefined"!=typeof XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");r.onreadystatechange=function(){if(4===this.readyState)try{200===this.status?n(JSON.parse(r.responseText)):o(this.status,new Error(r.statusText))}catch(t){o(this.status,t)}},r.open("GET",t.typo3BaseUrl+(-1===t.typo3BaseUrl.indexOf("?")?"?":"&")+"name="+encodeURIComponent(e)),r.send()},n=t.load;let o=!1;const r=t=>o?window.importShim(t):import(t).catch((()=>(o=!0,r(t)))),i=(()=>{try{return JSON.parse(document.querySelector('script[type="importmap"]').innerHTML).imports||{}}catch(t){return{}}})();t.load=function(o,c,s){const a=c in i?c:c.replace(/^TYPO3\/CMS\//,"@typo3/").replace(/[A-Z]+/g,(t=>"-"+t.toLowerCase())).replace(/(\/|^)-/g,"$1")+".js";if((t=>{if(t in i)return!0;const e=t.split("/");for(let t=1;t<e.length;++t)if(e.slice(0,t).join("/")+"/"in i)return!0;return!1})(a)){const t=r(a);return t.catch((function(t){const e=new Error("Failed to load ES6 module "+a);e.contextName=o.contextName,e.requireModules=[c],e.originalError=t,o.onError(e)})),void t.then((function(t){define(c,(function(){return"object"==typeof t&&"default"in t?t.default:t})),o.completeLoad(c)}))}!function(t,e){let n,o,r;const i=t.paths,c=e.split("/");for(n=c.length;n>0;n-=1)if(o=c.slice(0,n).join("/"),r=i[o],r)return!0;return!1}(o.config,c)&&"/"!==s.charAt(0)&&!1!==o.config.typo3BaseUrl?e(o.config,c,(function(e){!function(t,e,n){e.shim&&e.shim instanceof Object&&(void 0===t.shim&&(t.shim={}),Object.keys(e.shim).forEach((function(n){t.shim[n]=e.shim[n]}))),e.paths&&e.paths instanceof Object&&(void 0===t.paths&&(t.paths={}),Object.keys(e.paths).forEach((function(n){t.paths[n]=e.paths[n]}))),e.packages&&e.packages instanceof Array&&(void 0===t.packages&&(t.packages=[]),e.packages.forEach((function(e){t.packages.push(e)}))),n.configure(t)}(o.config,e,o),s=o.nameToUrl(c),n.call(t,o,c,s)}),(function(t,e){const n=new Error("requirejs fetchConfiguration for "+c+" failed ["+t+"]");n.contextName=o.contextName,n.requireModules=[c],n.originalError=e,o.onError(n)})):n.call(t,o,c,s)}}(window.requirejs);