????
Current Path : /proc/self/cwd/wp-content/plugins/presto-player/dist/components/esm/polyfills/ |
Current File : //proc/self/cwd/wp-content/plugins/presto-player/dist/components/esm/polyfills/system.js |
!function(){var e,n,t=(n="undefined"!=typeof self)?self:global;"undefined"!=typeof document&&(n=document.querySelector("base[href]"))&&(e=n.href),e||"undefined"==typeof location||-1!==(n=(e=location.href.split("#")[0].split("?")[0]).lastIndexOf("/"))&&(e=e.slice(0,n+1));var r="undefined"!=typeof Symbol,i=r&&Symbol.toStringTag,o=r?Symbol():"@";function u(){this[o]={}}var f,c=u.prototype;c.import=function(e,n){var t=this;return Promise.resolve(t.resolve(e,n)).then((function(e){var n=function e(n,t,r){var u=n[o][t];if(u)return u;var f=[],c=Object.create(null);i&&Object.defineProperty(c,i,{value:"Module"});var l=Promise.resolve().then((function(){return n.instantiate(t,r)})).then((function(e){if(!e)throw Error("Module "+t+" did not instantiate");var r=e[1]((function(e,n){u.h=!0;var t=!1;if("object"!=typeof e)e in c&&c[e]===n||(c[e]=n,t=!0);else for(var n in e){var r=e[n];n in c&&c[n]===r||(c[n]=r,t=!0)}if(t)for(e=0;e<f.length;e++)f[e](c);return n}),2===e[1].length?{import:function(e){return n.import(e,t)},meta:n.createContext(t)}:void 0);return u.e=r.execute||function(){},[e[0],r.setters||[]]})),s=l.then((function(r){return Promise.all(r[0].map((function(i,o){var u=r[1][o];return Promise.resolve(n.resolve(i,t)).then((function(r){var i=e(n,r,t);return Promise.resolve(i.I).then((function(){return u&&(i.i.push(u),!i.h&&i.I||u(i.n)),i}))}))}))).then((function(e){u.d=e}))}));return s.catch((function(e){u.e=null,u.er=e})),u=n[o][t]={id:t,i:f,n:c,I:l,L:s,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0}}(t,e);return n.C||function(e,n){return n.C=function e(n,t,r){if(!r[t.id])return r[t.id]=!0,Promise.resolve(t.L).then((function(){return Promise.all(t.d.map((function(t){return e(n,t,r)})))}))}(e,n,{}).then((function(){return function e(n,t,r){if(!r[t.id]){if(r[t.id]=!0,!t.e){if(t.er)throw t.er;return t.E?t.E:void 0}var i;return t.d.forEach((function(t){var o=e(n,t,r);o&&(i=i||[]).push(o)})),i?Promise.all(i).then(o):o()}function o(){try{var e=t.e.call(l);if(e)return e=e.then((function(){t.C=t.n,t.E=null})),t.E=t.E||e;t.C=t.n}catch(e){throw t.er=e,e}finally{t.L=t.I=void 0,t.e=null}}}(e,n,{})})).then((function(){return n.n}))}(t,n)}))},c.createContext=function(e){return{url:e}},c.register=function(e,n){f=[e,n]},c.getRegister=function(){var e=f;return f=void 0,e};var l=Object.freeze(Object.create(null));t.System=t.System||new u;var s=c.register;c.register=function(e,n){s.call(this,e,n)},c.instantiate=function(e,n){var t=this;return".json"===e.substr(-5)?fetch(e).then((function(e){return e.text()})).then((function(e){return[[],function(n){return{execute:function(){n("default",JSON.parse(e))}}}]})):new Promise((function(r,i){var o;function u(n){n.filename===e&&(o=n.error)}window.addEventListener("error",u);var f=document.createElement("script");f.charset="utf-8",f.async=!0,f.addEventListener("error",(function(){window.removeEventListener("error",u),i(Error("Error loading "+e+(n?" from "+n:"")))})),f.addEventListener("load",(function(){window.removeEventListener("error",u),document.head.removeChild(f),o?i(o):r(t.getRegister())})),f.src=e,document.head.appendChild(f)}))},n&&"function"==typeof importScripts&&(c.instantiate=function(e){var n=this;return new Promise((function(t,r){try{importScripts(e)}catch(e){r(e)}t(n.getRegister())}))}),c.resolve=function(n,t){var r=function(e,n){if(-1!==e.indexOf("\\")&&(e=e.replace(t,"/")),"/"===e[0]&&"/"===e[1])return n.slice(0,n.indexOf(":")+1)+e;if("."===e[0]&&("/"===e[1]||"."===e[1]&&("/"===e[2]||2===e.length&&(e+="/"))||1===e.length&&(e+="/"))||"/"===e[0]){var t,r=n.slice(0,n.indexOf(":")+1);if(t="/"===n[r.length+1]?"file:"!==r?(t=n.slice(r.length+2)).slice(t.indexOf("/")+1):n.slice(8):n.slice(r.length+("/"===n[r.length])),"/"===e[0])return n.slice(0,n.length-t.length-1)+e;var i=t.slice(0,t.lastIndexOf("/")+1)+e,o=[],u=-1;for(e=0;e<i.length;e++)-1!==u?"/"===i[e]&&(o.push(i.slice(u,e+1)),u=-1):"."===i[e]?"."!==i[e+1]||"/"!==i[e+2]&&e+2!==i.length?"/"===i[e+1]||e+1===i.length?e+=1:u=e:(o.pop(),e+=2):u=e;return-1!==u&&o.push(i.slice(u)),n.slice(0,n.length-t.length)+o.join("")}}(n,t||e);if(!r){if(-1!==n.indexOf(":"))return Promise.resolve(n);throw Error('Cannot resolve "'+n+(t?'" from '+t:'"'))}return Promise.resolve(r)}}();