From af82f1c2b5b2d3510239461f4d84e7cd10ae1407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20L=C3=BCth?= Date: Fri, 7 Jan 2022 09:01:53 +0100 Subject: [PATCH] fix bug in path resolution --- dist/cache/dispose.js | 2 +- dist/cache/states.js | 2 +- dist/demand.js | 4 ++-- dist/demand.js.map | 2 +- dist/handler/css.js | 2 +- dist/handler/html.js | 2 +- dist/handler/json.js | 2 +- dist/handler/legacy.js | 2 +- dist/handler/text.js | 2 +- dist/plugin/cookie.js | 2 +- dist/plugin/lzstring.js | 2 +- dist/plugin/sri.js | 2 +- package.json | 2 +- src/demand.js | 2 +- 14 files changed, 15 insertions(+), 15 deletions(-) diff --git a/dist/cache/dispose.js b/dist/cache/dispose.js index c89c4a9..62c0a3f 100644 --- a/dist/cache/dispose.js +++ b/dist/cache/dispose.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 8.0.1 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ +/**! Qoopido.demand 8.0.2 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ !function(){"use strict";provide(["/demand/function/iterate","./states"],(function(e,c){function t(e,c){return e.accessedc.accessed?1:0}return function(e){var n,s=c();for(s.sort(t);e>0&&s.length;)e-=(n=s.shift()).size,demand.cache.clear(n.id)}}))}(); //# sourceMappingURL=dispose.js.map diff --git a/dist/cache/states.js b/dist/cache/states.js index eee4f13..7805e39 100644 --- a/dist/cache/states.js +++ b/dist/cache/states.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 8.0.1 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ +/**! Qoopido.demand 8.0.2 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ !function(e){"use strict";provide(["/demand/function/iterate"],(function(t){var n=new RegExp("^\\[demand\\]\\[(.+?)\\]\\[state\\]$"),a=/^(.+?),(\d+),(\d*),(.+?),(\d+)$/;function r(t){var r,i=t.match(n);i&&(r=function(t){var n,r=e.getItem(t);if(r&&(n=r.match(a)))return Array.prototype.slice.call(n,1)}("[demand]["+i[1]+"][state]"),this.push({id:i[1],version:r[0],size:parseInt(r[1],10),expires:r[2]?new Date(parseInt(r[2],10)):null,demand:r[3],accessed:new Date(parseInt(r[4],10))}))}return function(){return t(e,r,[])}}))}(localStorage); //# sourceMappingURL=states.js.map diff --git a/dist/demand.js b/dist/demand.js index ea63e3a..1e1ed40 100644 --- a/dist/demand.js +++ b/dist/demand.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 8.0.1 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ -!function(e,t,n){"use strict";var r,i,o,a,u=e.document,c="demand"in e&&e.demand,s={version:"1.0.0",cache:{},timeout:8e3,pattern:{},modules:{},handler:"module"},f="mock:",d=null,l=void 0,h=!1,p=!0,v="undefined",m="string",g="function",y="postConfigure",w="cacheMiss",b="cacheExceed",x="preResolve",j="postResolve",q="preRequest",k="postRequest",R="preProcess",P="postProcess",E="queueEnqueue",M="provide",C="reject",T="error loading",A="error providing",S="error resolving",I="unspecified anonymous provide",O=Array.prototype,$=O.slice,H=O.concat,N=Object,D=N.create,L=N.defineProperty,B=N.getOwnPropertyNames,U=N.getOwnPropertyDescriptor,z=u.createElement("a"),F=e.requestAnimationFrame;function W(e,t){return typeof e===t}function X(e){return e&&W(e,"object")}function G(e){return W(e,"number")&&isFinite(e)&&Math.floor(e)===e&&e>=0}function J(e){return e&&W(e.then,g)}L(e.Function.prototype,"extends",{value:function(e){for(var t,n=this,r=n.prototype,i=B(r),o={constructor:{value:n}},a=0;(t=i[a])&&!o[t];a++)o[t]=U(r,t);try{n.prototype=D(e.prototype||e,o)}catch(e){}if(n.prototype===r)throw new TypeError("Unable to extend, prototype is not writable");return n},configurable:h,writable:h});var K,Q=(K=/^\bv?(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-[\da-z-]+(?:\.[\da-z-]+)*)?(?:\+[\da-z-]+(?:\.[\da-z-]+)*)?\b$/i,function(e){return W(e,m)&&K.test(e)});function V(e,t,n){for(var r,i=N.keys(e),o=0;(r=i[o])!==l&&t.call(n,r,e[r])!==h;o++);return n}var Y=function(){function e(e,t){var n,r=this[e];t!==l&&(X(t)?(n=X(r),r=t.length!==l?n&&r.length!==l?r:[]:n&&r.length===l?r:{},this[e]=Y(r,t)):this[e]=t)}return function(){for(var t,n=arguments[0],r=1;(t=arguments[r])!==l;r++)V(t,e,n);return n}}();function Z(e,t,n){return $.call(e,t,n)}var _=function(){var e=/^cache(Miss|Hit|Clear|Exceed)|queue(En|De)queue|(pre|post)(Resolve|Configure|Request|Process|Cache)|provide|reject$/,t={};function n(n,r,i){var o,a;if(W(r,m)&&W(i,g))for(r=r.split(" ");o=r.shift();)o=o.split(":"),e.test(o[0])&&((t[o[0]]||(t[o[0]]={on:[],after:[]}))[n].push({callback:i,filter:o[1]}),"on"===n&&o[0]===y&&(a=s.modules[o[1]])&&i(a))}function r(){}return r.prototype={emit:function(e,n){var r,i,o,a=t[e];if(a){for(r=Z(arguments,2),i=0;o=a.on[i];i++)o.filter&&o.filter!==n||o.callback.apply(d,r);for(i=0;o=a.after[i];i++)o.filter&&o.filter!==n||o.callback.apply(d,r)}return this},on:function(e,t){return n("on",e,t),this},after:function(e,t){return n("after",e,t),this}},new r}();function ee(){return+new Date}var te,ne,re=function(){var e=new RegExp("[xy]","g");function t(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(e,t)}}(),ie="setImmediate"in e&&"function"==typeof e.setImmediate?e.setImmediate:"MutationObserver"in e&&"function"==typeof e.MutationObserver?(te={},ne=u.createElement("div"),new MutationObserver((function(e){e.forEach((function(e){var t=e.attributeName.substr(1);te[t]&&te[t](),delete te[t]}))})).observe(ne,{attributes:p}),function(e){var t=re();te[t]=e,ne.setAttribute("i"+t,1)}):t,oe="WeakMap"in e&&!("ActiveXObject"in e)?e.WeakMap:function(e){var t=new e;function n(){t.set(this,new e)}return n.prototype={get:function(e){return t.get(this).get(e)},set:function(e,n){return t.get(this).set(e,n),this},has:function(e){return!!this.get(e)},delete:function(e){return t.get(this).delete(e)}},n}(e.WeakMap);function ae(){return W(this.uuid,v)&&L(this,"uuid",{value:re(),configurable:h,writable:h}),this}var ue=function(){var e=new oe;function t(){var t=ae.call(this);return e.set(t,[]),t}return t.prototype={enqueue:function(){var t=Z(arguments);e.set(this,e.get(this).concat(t)),_.emit(E,this.uuid,t)},dequeue:function(){var t=e.get(this).shift();return t&&_.emit("queueDequeue",this.uuid,t),t},get current(){return e.get(this)[0]},get length(){return e.get(this).length}},t.extends(ae)}(),ce=function(){var r,i="object"==typeof e.safari&&e.safari.pushNotification?"beforeunload":"visibilitychange",o=e.requestIdleCallback||function(e,n){var r=+new Date;return t((function(){e({didTimeout:h,timeRemaining:function(){return Math.max(0,50-(+new Date-r))}})}),n&&n.timeout)},a=e.cancelIdleCallback||function(e){n(e)},c=new ue;function s(){c.dequeue()(),r=c.length&&o(s)}return e.addEventListener(i,(function(e){var t;if(c.length&&("visibilitychange"!==e.type||"hidden"===u.visibilityState))for(r=a(r);t=c.dequeue();)t()}),p),function(e){c.enqueue(e),!r&&c.length&&(r=o(s))}}();function se(e){return z.href=e,z.href}var fe=/^(http(s?):)?\/\//i,de=/^\.?\.\//,le=/((?:\/\/|\/\*)#)\s*(sourceMappingURL)\s*=\s*(?!(?:http[s]?:)?\/\/)(.+?)\.map(?:\s+)?(\*\/)?/g,he=/^\//,pe=new RegExp("^"+se("/")),ve=new RegExp("^demand|provide|path|exports$"),me=/^(mock:)?([+-])?((?:[-\w]+\/?)+)?(?:@(.+?))?(?:#(\d+))?!/;function ge(e,t){var n=e.replace(me,"");return de.test(n)&&(n="/"+se((t&&se(t+"/../")||"/")+n).replace(pe,"")),n}function ye(e,t){var n=e.match(me);return(n&&n[1]?"mock:":"")+(n&&n[3]||s.handler)+"!"+ge(e,t)}var we=function(){function e(e,t){return et?1:0}function t(e){if(!Q(e))throw new TypeError('"version" must be a valid semver version string');e=function(e){var t,n=e.split("-"),r=0;for(n=n[1]?Array.prototype.concat(n[0].split("."),n[1].split(".")):n[0].split(".");t=n[r];r++)n[r]=parseInt(t,10).toString()===t?parseInt(t,10):t;return n}(e),this.major=e.shift(),this.minor=e.shift(),this.patch=e.shift(),this.identifier=e}return t.prototype={toString:function(){return this.major+"."+this.minor+"."+this.patch+(this.identifier.length?"-"+this.identifier.join("."):"")},compare:function(t){return e(this.major,t.major)||e(this.minor,t.minor)||e(this.patch,t.patch)||function(e,t){var n,r,i,o,a=0;if(e.length&&!t.length)return-1;if(!e.length&&t.length)return 1;if(!e.length&&!t.length)return 0;do{if(n=e[a],o=typeof(r=t[a]),(i=typeof n)===v&&o===v)return 0;if(o===v)return 1;if(i===v)return-1;if(n===r);else{if(i===m&&o!==m)return 1;if(i!==m&&o===m)return-1;if(n>r)return 1;if(nt.weight)&&(t=r)})),t?t.state:h)}function m(e){return c.getItem(e)}function g(e,t){c[t?"setItem":"removeItem"](e,t)}function y(e){var t,n=m(e);if(n&&(t=n.match(a)))return Z(t,1)}function x(e,t){t[4]=ee(),g(e,t.join(","))}function j(e,t,n){_.emit(e,t.id,t,n)}function q(){ce(this.clear.expired.bind(this.clear),s.delay)}return _.on(w,(function(e){ce((function(){t.clear(e.id)}))})).on(b,(function(e){r("-!/demand/cache/dispose").then((function(n){ce((function(){n(e.source.length),t.set(e)}),s.delay)}))})).on(k,(function(e){e.source&&v(e)&&(l[e.id]=p)})).after(P,(function(e){l[e.id]&&ce((function(){t.set(e)}),s.delay)})),q.prototype={get:u?function(e){var t,r;if(v(e)){if(t="[demand]["+e.id+"]",!(r=y(t+n)))return;return 1===e.version.compare(new we(r[0]))||r[2]&&e.lifetime&&r[2]<=ee()?void(e.invalid=!0):(e.source=m(t+i),ce((function(){x(t+n,r)}),s.delay),p)}}:function(){},resolve:u?function(e){this.get(e)?j("cacheHit",e):j(w,e)}:function(e){j(w,e)},set:u?function(e){var t,o,a;if(v(e)){t=[e.version,e.source.length,e.lifetime?ee()+e.lifetime:d,r.version],o="[demand]["+e.id+"]",j("preCache",e,t);try{if(a=f?c.remainingSpace:d,g(o+i,e.source),x(o+n,t),a!==d&&c.remainingSpace===a)throw new Error;j("postCache",e,t)}catch(t){j(b,e)}}}:function(){},clear:u?function(e){var t=ye(e),r="[demand]["+t+"]";m(r+n)&&(g(r+n),g(r+i),j("cacheClear",Pe.get(t)||new Pe(t,d,h)))}:function(){}},q.prototype.clear.all=u?function(){var e;V(c,(function(t){(e=t.match(o))&&this(e[1])}),this)}:function(){},q.prototype.clear.expired=u?function(){var e,t;V(c,(function(r){(e=r.match(o))&&(t=y("[demand]["+e[1]+"]"+n))&&t[2]>0&&t[2]<=ee()&&this(e[1])}),this)}:function(){},t=new q}();function J(e){return e&&W(e.then,g)}function xe(e,t,n){var r=this;return r.message=e,t&&(r.module=t),n&&(r.stack=Z(n)),r}xe.prototype={toString:function(){var e=this,t=e.message+" "+(e.module?'"'+e.module+'"':"");return e.stack&&(t=xe.traverse(e.stack,t,1)),t}},xe.traverse=function(e,t,n){for(var r,i=new Array(n+1).join(" "),o=0;r=e[o];o++)t+="\n"+i+"> "+r.message+" "+(r.module?'"'+r.module+'"':""),r.stack&&(t=xe.traverse(r.stack,t,n+1));return t};var je,qe,ke=function(){var e="pending",t="resolved",n="rejected",r=new oe;function i(){var e=this,n=arguments;ie((function(){r.get(e).handle(t,n)}))}function o(){var e=this,t=arguments;ie((function(){r.get(e).handle(n,t)}))}function a(n,i){var o,a,u=r.get(this);for(u.state===e&&(u.state=n,u.value=i);o=u[u.state].shift();)try{if(a=o.handler.apply(d,u.value),J(a)){a.then(o.dfd.resolve,o.dfd.reject);continue}if(u.state===t&&W(a,v)){o.dfd.resolve.apply(d,u.value);continue}o.dfd.resolve(a)}catch(e){o.dfd.reject(e)}u.resolved.length=0,u.rejected.length=0}function u(e,t,n){e.then((function(){n.resolved[t]=Z(arguments),n.count++,c(n)}),(function(){n.rejected.push(Z(arguments)),c(n)}))}function c(e){e.count===e.total?e.dfd.resolve.apply(d,H.apply([],e.resolved)):e.rejected.length+e.count===e.total&&e.dfd.reject.apply(d,H.apply([],e.rejected))}function s(t){var n=this;return r.set(n,{state:e,handle:a.bind(n),value:d,resolved:[],rejected:[],count:0}),t(i.bind(n),o.bind(n)),n}return s.prototype={isPending:function(){return r.get(this).state===e},isResolved:function(){return r.get(this).state===t},isRejected:function(){return r.get(this).state===n},then:function(t,n){var i=r.get(this),o=s.defer();return i.resolved.push({handler:t||s.resolve,dfd:o}),i.rejected.push({handler:n||s.reject,dfd:o}),i.state!==e&&ie(i.handle),o.pledge},catch:function(e){return this.then(l,e)},always:function(e){return this.then(e,e)}},s.prototype.finally=s.prototype.always,s.defer=function(){var e={};return e.pledge=new s((function(t,n){e.resolve=t,e.reject=n})),e},s.all=function(e){var t,n,r=s.defer(),i=0;if(e.length)for(t={dfd:r,resolved:[],rejected:[],total:e.length,count:0};n=e[i];i++)u(n,i,t);else r.resolve();return r.pledge},s.race=function(e){for(var t,n=s.defer(),r=0;t=e[r];r++)t.then(n.resolve,n.reject);return e.length||n.resolve(),n.pledge},s.resolve=function(){var e=s.defer();return e.resolve.apply(d,arguments),e.pledge},s.reject=function(){var e=s.defer();return e.reject.apply(d,arguments),e.pledge},s}(),Re=function(){var e=new oe;function t(){e.set(this,{})}return t.prototype={get:function(t){return t?e.get(this)[t]:e.get(this)},set:function(t,n){e.get(this)[t]=n},remove:function(t){delete e.get(this)[t]}},t}(),Pe=function(){var e="internal!",t=new Re,n=/^(?:mock:|internal!)/i,o=[];function c(e,t){this[e]=t}function l(e){n.test(e)||this.push(e)}function v(e,t){!n.test(e)&&t.pledge.isPending()&&this.push(e)}function m(e,t){!n.test(e)&&t.pledge.isResolved()&&this.push(e)}function g(e,t){!n.test(e)&&t.pledge.isRejected()&&this.push(e)}function y(){return V(t.get(),l,[])}function w(e,n,r){var i=this,u=e.match(me)||o;return i.path=ge(e,n),i.mock=u[1]?p:h,i.cache=u[2]?"+"===u[1]:d,i.type=u[3]||s.handler,i.version=new we(u[4]||s.version),i.lifetime=u[5]&&1e3*u[5]||s.lifetime,i.id=(i.mock?f:"")+i.type+"!"+i.path,i.uri=(i.mock?f:"")+i.type+"@"+i.version+(G(i.lifetime)&&i.lifetime>0?"#"+i.lifetime:"")+"!"+i.path,i.dfd=ke.defer(),i.pledge=i.dfd.pledge,i.invalid=!1,i.pledge.then((function(){i.value=Z(arguments)}),(function(){a.current&&a.process()})),r!==h&&t.set(i.id,i),i}return y.pending=function(){return V(t.get(),v,[])},y.resolved=function(){return V(t.get(),m,[])},y.rejected=function(){return V(t.get(),g,[])},w.prototype={enqueue:!0},w.get=function(e,n){return t.get(ye(e,n))},w.resolve=function(t,n){var o,a=n&&ve.test(t),u=a?this.get(e+n+"/"+t):this.get(t,n);if(!u)if(a){switch(u=new w(e+n+"/"+t),t){case"demand":o=V(r,c,r.bind(n));break;case"provide":o=i.bind(n);break;case"path":o=n;break;case"exports":o=this.get(n).value={}}u.dfd.resolve(o)}else u=new w(t,n),r("/demand/handler/"+u.type).then((function(e){u.handler=e,u.mock?u.dfd.resolve(e):be.resolve(u)}),(function(){u.dfd.reject(new xe(T+" (handler)",self.id))}));return u},w.remove=function(e,n,r){var i=ye(e,n),o=u.querySelector('[demand-id="'+i+'"]');t.remove(i),t.remove(f+i),o&&o.parentNode.removeChild(o),r!==h&&be.clear(i)},w.list=y,w}(),Ee=function(){var e=/(.+)\/$/;function t(t,n){this[t]={url:se(n).replace(e,"$1"),match:new RegExp("^"+n)}}function n(e,n){var r=this;r.weight=e.length,r.match=new RegExp("^"+e),r.location=[].concat(n),V(r.location,t,r.location)}return n.prototype={matches:function(e){return this.match.test(e)},process:function(e,t){var n=this.location[t];if(n)return e.replace(this.match,n.url)}},n}(),Me=function(){var e={};function t(e){return e instanceof ArrayBuffer||e instanceof MessagePort||"ImageBitmap"in self&&e instanceof ImageBitmap}return function(n){var r,i;return r="$task = "+n+"; $isTransferable = "+t+"; onmessage = "+function(e){var t,n=Array.prototype.slice,r=e.data;function i(e){t||(t=!0,postMessage([r[0],0,e.toString()]))}try{$task.apply($task,[function(){var e;t||(t=!0,e=n.call(arguments),postMessage([r[0],1,e],e.filter($isTransferable)))},i].concat(r[1]))}catch(e){i(e)}},(i=new Worker(URL.createObjectURL(new Blob([r],{type:"application/javascript"})))).onmessage=function(t){var n=t.data[0],r=n?e[n]:null;n&&r&&(t.data[1]?r.resolve.apply(null,t.data[2]):r.reject(t.data[2]),delete e[n])},function(){var n=ke.defer(),r=re(),o=Z(arguments);return e[r]=n,i.postMessage([r,o],o.filter(t)),n.pledge}}}(),Ce=(je=/^(?:\?|)$/,qe=new Me((function(e,t,n){var r,i,o=new XMLHttpRequest;r=function(){this.readyState<4&&this.abort()}.bind(o),o.ontimeout=o.onerror=o.onabort=function(){t(o.statusText)},o.onprogress=o.onreadystatechange=function(){self.clearTimeout(i),i=self.setTimeout(r,1e4)},o.onload=function(){i=self.clearTimeout(i),"status"in o&&200!==o.status?t(o.statusText):e(o.responseText,o.getResponseHeader&&o.getResponseHeader("content-type"))},o.open("GET",n,!0),o.send(),i=self.setTimeout(r,1e4)})),function(e){var t;function n(t,n){n&&e.handler.validate&&!e.handler.validate(n)?e.dfd.reject(new xe(T+" (content-type)",e.id)):(e.source=t,_.emit(k,e.type,e))}fe.test(e.path)||V(s.pattern,(function(n,r){r.matches(e.path)&&(!t||t.weight>>0}r=function(){function t(e,t){this[e]={weight:e.length,state:t}}function n(e,t){"base"!==e&&(this[e]=new Ee(e,t))}function r(e,t){var n=this[e]=this[e]||{};_.emit("preConfigure",e,n),Y(n,t),_.emit(y,e,n)}function i(){var t,n,r,i=Z(arguments),o=this!==e?this:d,a=[],u=0;for(_.emit(x,d,i,o);t=i[u];u++)W(t,m)?i[u]=Pe.resolve(t,o):(i[u]=n=ke.defer(),n.resolve(t)),a.push(i[u].pledge);return(r=i.length>1?ke.all(a):a[0]).always((function(){if(_.emit(j,d,a,o),r.isRejected())return V(i,(function(e,t){t.pledge.isRejected()&&_.emit(C,t.path,t)})),ke.reject.apply(null,arguments)}))}return i.configure=function(e){var o=e.cache,a=e.version,u=e.delay,c=e.timeout,f=e.lifetime,d=e.base,l=e.pattern,h=e.modules,p=s.modules;return W(o,"boolean")?s.cache[""]={weight:0,state:o}:X(o)&&V(o,t,s.cache),Q(a)&&(s.version=a),G(u)&&(s.delay=1e3*u),G(c)&&(s.timeout=1e3*Math.min(Math.max(c,2),20)),G(f)&&f>0&&(s.lifetime=1e3*f),W(d,m)&&""!==d&&(s.pattern.base=new Ee("",d)),X(l)&&V(l,n,s.pattern),X(h)&&V(h,r,p),i},i.version="8.0.1",i.on=_.on.bind(i),i.get=function(e,t){var n=Pe.get(e,t);return n&&n.value},i.list=Pe.list,i.remove=Pe.remove,i.cache={clear:be.clear},_.after(w,(function(e){new Ce(e)})).after(k,(function(e){var t=e.handler.onPostRequest;t&&t(e)})).after("cacheHit postRequest",(function(e){_.emit(R,e.id,e)})).after(q,(function(e){var t=e.handler.onPreRequest;t&&t(e)})).after(R,(function(e){var t=e.handler.onPreProcess;t&&t(e),e.pledge.then((function(){_.emit(P,e.id,e)})),!0===e.enqueue?o.enqueue(e):J(e.enqueue)&&e.enqueue.then((function(){o.enqueue(e)}))})),i}(),L(e,"demand",{value:r,configurable:h,writable:h}),i=function(){var t,n,i,o,u=W(arguments[0],m)?arguments[0]:d,c=this!==e?this:d,s=Te(arguments[u?1:0])?arguments[u?1:0]:d,f=s?arguments[u?2:1]:arguments[u?1:0];if(a.current&&(u=(t=a.current).uri,a.process()),u){if(t=t||new Pe(u,c),n=J(f),i=W(f,g),s&&s.length)r.apply(t.path,s).then((function(){if(i)try{o=f.apply(d,arguments),!t.value&&J(o)?o.then(t.dfd.resolve,(function(){t.dfd.reject(new xe(A,t.id,arguments))})):t.dfd.resolve(t.value||o)}catch(e){console.error(e),t.dfd.reject(new xe(A,t.id,e))}else t.dfd.resolve(f)}),(function(){t.dfd.reject(new xe(A,t.id,arguments))}));else if(n)f.then(t.dfd.resolve,t.dfd.reject);else if(i)try{t.dfd.resolve(f())}catch(e){console.error(e),t.dfd.reject(new xe(A,t.id,e))}else t.dfd.resolve(f);return t.dfd.pledge.then((function(){_.emit(M,t.path,t)})),t.dfd.pledge}throw new Error(I)},i.amd=p,L(e,"provide",{value:i,configurable:h,writable:h}),r.configure({cache:p,base:"/",pattern:{"/demand":se((c&&c.url||location.href)+"/../").slice(0,-1)}}),c&&c.settings&&r.configure(c.settings);var Se=function(){var e=new oe;function t(t){var n=this,i={queue:t,current:d};e.set(n,i),r.on("queueEnqueue:"+t.uuid,(function(){!i.current&&n.process()}))}return t.prototype={process:function(){var t,n=e.get(this);n.queue.length&&(t=n.current=n.queue.dequeue()).pledge.isPending()?t.handler.process&&t.handler.process(t):n.current=d},get current(){return e.get(this).current}},t}();function Ie(e,t){for(var n,r;n=le.exec(t);)fe.test(n[3])?r=e.protocol+"//"+e.host+n[3]:(e.pathname+="/"+n[3].replace(he,""),r=e.protocol+"//"+e.host+e.pathname),t=t.replace(n[0],n[1]+" "+n[2]+"="+r+".map"+(n[4]?" "+n[4]:""));return t}var Oe,$e,He=(Oe=performance.now(),$e=[Oe],F((function e(){Oe=performance.now(),$e.push(Oe),$e=$e.slice(-300),F(e)})),function(){return Math.floor($e.length/((Oe-$e[0])/1e3))}),Ne=function(){var e,t,n,r=new ue,i=0;function o(){e=performance.now(),t=1e3/60*(Math.min(60,He())/60*.2),n(),i+=performance.now()-e,n=n=r.dequeue(),i "+r.message+" "+(r.module?'"'+r.module+'"':""),r.stack&&(t=xe.traverse(r.stack,t,n+1));return t};var Be=function(){var e={};function t(e,t){var n,r;for(n=0;r=t[n];n++)W(r,m)&&(t[n]=ye(r))}function n(){}return r.on("postConfigure:/demand/handler/bundle",(function(n){X(n)&&V(e=n,t)})),n.prototype={validate:Le.validate,onPreProcess:function(t){var n,r,i,a,u,c=t.source,s=t.dfd,d=e[t.path];function l(){s.reject(new xe(S,t.id,arguments))}if(t.enqueue=h,d&&(n=function(t){for(var n,r,i=0;r=t[i];i++)if(r=(r=r.match(me))&&r[3]||e.handler,n){if(r!==n)return h}else n=r;return n}(d))){for(;r=le.exec(c);)c=c.replace(r[0],"");for(t.source=c,i=[],u=0;a=d[u];u++)i.push(Pe.resolve(f+a).pledge);ke.all(i).then((function(){for(i.length=0,u=0;a=d[u];u++)(a=d[u]=Pe.get(a)||new Pe(a)).handler=arguments[u],i.push(a.pledge);"module"===n?(o.enqueue.apply(o,d),Le.process(t)):(Le.process(t),o.enqueue.apply(o,d)),ke.all(i).then(s.resolve,l)}),l)}else l()}},new(n.extends(De))}(),Ue=function(){var e=/^text\/.+$/,t={suffix:".html"};function n(){}return r.on("postConfigure:/demand/handler/component",(function(e){X(e)&&Y(t,e)})),n.prototype={validate:function(t){return e.test(t)},onPreRequest:function(e,n){var r;(n=typeof n!==v?n:t.suffix)&&(r=e.url.pathname,e.url.pathname=r.slice(-n.length)!==n?r+n:r)},onPostRequest:function(e){e.source=Ie(e.url,e.source)},onPreProcess:function(e){var t,n,r,i,a=e.path,c=e.dfd,s=u.createElement("body"),f=[],d=[];function l(){c.reject(new xe(S,e.id,arguments))}for(e.enqueue=h,s.innerHTML=e.source;t=s.firstElementChild;)(n=t.getAttribute("type"))&&(i=n+"!"+a+((r=t.getAttribute("path"))?"/"+r:""),t.parentNode.removeChild(t),f.push({source:t.textContent,uri:i}),d.push(Pe.resolve("mock:"+i).pledge));ke.all(d).then((function(){var t,n,r,i=[];for(d.length=0,t=0;n=f[t];t++)(r=Pe.get(n.uri)||new Pe(n.uri)).source=Ie(r.url,n.source),r.handler=arguments[t],i.push(r),d.push(r.pledge),o.enqueue(r);ke.all(d).then((function(){var r=e.path.length+1,o={};for(t=0;n=arguments[t];t++)o[i[t].path.substr(r)||"main"]=n;c.resolve(o)}),l)}),l)}},new(n.extends(De))}(),ze=function(){var e="/demand/plugin/genie",t=[];function n(e){for(var n,r,i=0;n=t[i];i++)n.prefix.test(e)&&(!r||n.weight>r.weight)&&(r=n);return r}function i(){for(var e,t=0;e=this[t];t++)e.dfd.resolve(arguments[t])}function o(){for(var e,t=0;e=this[t];t++)e.dfd.reject(new xe(S,e.id))}function a(e,n){t.push({prefix:new RegExp("^"+e),weight:e.length,fn:n})}function u(t,n){var a,u=n.matches,c=0;if(u.length>1){for(n.id=e+"/"+Ae(JSON.stringify(n.matches));a=u[c];c++)u[c]=new Pe(a.uri);r.configure(function(e){var t,n,r=e.matches,i={pattern:{},modules:{"/demand/handler/bundle":{}}},o=0;for(i.pattern[e.id]=e.fn(r),i.modules["/demand/handler/bundle"][e.id]=t=[];n=r[o];o++)t.push(n.path);return i}(n)),r("bundle!"+n.id).then(i.bind(u),o.bind(u))}}return r.on("postConfigure:"+e,(function(e){X(e)&&(t.length=0,V(e,a))})).on(x,(function(e,t){for(var r,i,o={},a=0;r=e[a];a++)!W(r,m)||ve.test(r)||Pe.get(r,t)||"module"===(r=new Pe(r,t,h)).type&&(i=n(r.path))&&!be.get(r)&&(o[i.prefix]||(o[i.prefix]={fn:i.fn,matches:[]})).matches.push(r);V(o,u)})),p}();function Fe(e,t){i(e,(function(){return t}))}if(o=new ue,a=new Se(o),Fe("/demand/abstract/uuid",ae),Fe("/demand/abstract/handler",De),Fe("/demand/handler/module",Le),Fe("/demand/handler/bundle",Be),Fe("/demand/handler/component",Ue),Fe("/demand/plugin/genie",ze),Fe("/demand/validator/isTypeOf",W),Fe("/demand/validator/isArray",Te),Fe("/demand/validator/isObject",X),Fe("/demand/validator/isInstanceOf",(function(e,t){return e instanceof t})),Fe("/demand/validator/isSemver",Q),Fe("/demand/validator/isThenable",J),Fe("/demand/function/resolveUrl",se),Fe("/demand/function/resolveSourcemaps",Ie),Fe("/demand/function/merge",Y),Fe("/demand/function/iterate",V),Fe("/demand/function/hash",Ae),Fe("/demand/function/defer",ie),Fe("/demand/function/fps",He),Fe("/demand/function/onIdle",ce),Fe("/demand/function/onAnimationFrame",Ne),Fe("/demand/function/uuid",re),Fe("/demand/function/toArray",Z),Fe("/demand/task",Me),Fe("/demand/weakmap",oe),Fe("/demand/pledge",ke),Fe("/demand/queue",ue),Fe("/demand/failure",xe),Fe("/demand/semver",we),c&&c.main)switch(typeof c.main){case m:r(c.main);break;case g:i("main",c.main())}}("demand-loader"===this.name?parent:this,setTimeout,clearTimeout); +/**! Qoopido.demand 8.0.2 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ +!function(e,t,n){"use strict";var r,i,o,a,u=e.document,c="demand"in e&&e.demand,s={version:"1.0.0",cache:{},timeout:8e3,pattern:{},modules:{},handler:"module"},f="mock:",d=null,l=void 0,h=!1,p=!0,v="undefined",m="string",g="function",y="postConfigure",w="cacheMiss",b="cacheExceed",x="preResolve",j="postResolve",q="preRequest",k="postRequest",R="preProcess",P="postProcess",E="queueEnqueue",M="provide",C="reject",T="error loading",A="error providing",S="error resolving",I="unspecified anonymous provide",O=Array.prototype,$=O.slice,H=O.concat,N=Object,D=N.create,L=N.defineProperty,B=N.getOwnPropertyNames,U=N.getOwnPropertyDescriptor,z=u.createElement("a"),F=e.requestAnimationFrame;function W(e,t){return typeof e===t}function X(e){return e&&W(e,"object")}function G(e){return W(e,"number")&&isFinite(e)&&Math.floor(e)===e&&e>=0}function J(e){return e&&W(e.then,g)}L(e.Function.prototype,"extends",{value:function(e){for(var t,n=this,r=n.prototype,i=B(r),o={constructor:{value:n}},a=0;(t=i[a])&&!o[t];a++)o[t]=U(r,t);try{n.prototype=D(e.prototype||e,o)}catch(e){}if(n.prototype===r)throw new TypeError("Unable to extend, prototype is not writable");return n},configurable:h,writable:h});var K,Q=(K=/^\bv?(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-[\da-z-]+(?:\.[\da-z-]+)*)?(?:\+[\da-z-]+(?:\.[\da-z-]+)*)?\b$/i,function(e){return W(e,m)&&K.test(e)});function V(e,t,n){for(var r,i=N.keys(e),o=0;(r=i[o])!==l&&t.call(n,r,e[r])!==h;o++);return n}var Y=function(){function e(e,t){var n,r=this[e];t!==l&&(X(t)?(n=X(r),r=t.length!==l?n&&r.length!==l?r:[]:n&&r.length===l?r:{},this[e]=Y(r,t)):this[e]=t)}return function(){for(var t,n=arguments[0],r=1;(t=arguments[r])!==l;r++)V(t,e,n);return n}}();function Z(e,t,n){return $.call(e,t,n)}var _=function(){var e=/^cache(Miss|Hit|Clear|Exceed)|queue(En|De)queue|(pre|post)(Resolve|Configure|Request|Process|Cache)|provide|reject$/,t={};function n(n,r,i){var o,a;if(W(r,m)&&W(i,g))for(r=r.split(" ");o=r.shift();)o=o.split(":"),e.test(o[0])&&((t[o[0]]||(t[o[0]]={on:[],after:[]}))[n].push({callback:i,filter:o[1]}),"on"===n&&o[0]===y&&(a=s.modules[o[1]])&&i(a))}function r(){}return r.prototype={emit:function(e,n){var r,i,o,a=t[e];if(a){for(r=Z(arguments,2),i=0;o=a.on[i];i++)o.filter&&o.filter!==n||o.callback.apply(d,r);for(i=0;o=a.after[i];i++)o.filter&&o.filter!==n||o.callback.apply(d,r)}return this},on:function(e,t){return n("on",e,t),this},after:function(e,t){return n("after",e,t),this}},new r}();function ee(){return+new Date}var te,ne,re=function(){var e=new RegExp("[xy]","g");function t(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(e,t)}}(),ie="setImmediate"in e&&"function"==typeof e.setImmediate?e.setImmediate:"MutationObserver"in e&&"function"==typeof e.MutationObserver?(te={},ne=u.createElement("div"),new MutationObserver((function(e){e.forEach((function(e){var t=e.attributeName.substr(1);te[t]&&te[t](),delete te[t]}))})).observe(ne,{attributes:p}),function(e){var t=re();te[t]=e,ne.setAttribute("i"+t,1)}):t,oe="WeakMap"in e&&!("ActiveXObject"in e)?e.WeakMap:function(e){var t=new e;function n(){t.set(this,new e)}return n.prototype={get:function(e){return t.get(this).get(e)},set:function(e,n){return t.get(this).set(e,n),this},has:function(e){return!!this.get(e)},delete:function(e){return t.get(this).delete(e)}},n}(e.WeakMap);function ae(){return W(this.uuid,v)&&L(this,"uuid",{value:re(),configurable:h,writable:h}),this}var ue=function(){var e=new oe;function t(){var t=ae.call(this);return e.set(t,[]),t}return t.prototype={enqueue:function(){var t=Z(arguments);e.set(this,e.get(this).concat(t)),_.emit(E,this.uuid,t)},dequeue:function(){var t=e.get(this).shift();return t&&_.emit("queueDequeue",this.uuid,t),t},get current(){return e.get(this)[0]},get length(){return e.get(this).length}},t.extends(ae)}(),ce=function(){var r,i="object"==typeof e.safari&&e.safari.pushNotification?"beforeunload":"visibilitychange",o=e.requestIdleCallback||function(e,n){var r=+new Date;return t((function(){e({didTimeout:h,timeRemaining:function(){return Math.max(0,50-(+new Date-r))}})}),n&&n.timeout)},a=e.cancelIdleCallback||function(e){n(e)},c=new ue;function s(){c.dequeue()(),r=c.length&&o(s)}return e.addEventListener(i,(function(e){var t;if(c.length&&("visibilitychange"!==e.type||"hidden"===u.visibilityState))for(r=a(r);t=c.dequeue();)t()}),p),function(e){c.enqueue(e),!r&&c.length&&(r=o(s))}}();function se(e){return z.href=e,z.href}var fe=/^(http(s?):)?\/\//i,de=/^\.?\.\//,le=/((?:\/\/|\/\*)#)\s*(sourceMappingURL)\s*=\s*(?!(?:http[s]?:)?\/\/)(.+?)\.map(?:\s+)?(\*\/)?/g,he=/^\//,pe=new RegExp("^"+se("/")),ve=new RegExp("^demand|provide|path|exports$"),me=/^(mock:)?([+-])?((?:[-\w]+\/?)+)?(?:@(.+?))?(?:#(\d+))?!/;function ge(e,t){var n=e.replace(me,"");return de.test(n)&&(n="/"+se((t&&se(t+"/../")||"/")+n).replace(pe,"")),n}function ye(e,t){var n=e.match(me);return(n&&n[1]?"mock:":"")+(n&&n[3]||s.handler)+"!"+ge(e,t)}var we=function(){function e(e,t){return et?1:0}function t(e){if(!Q(e))throw new TypeError('"version" must be a valid semver version string');e=function(e){var t,n=e.split("-"),r=0;for(n=n[1]?Array.prototype.concat(n[0].split("."),n[1].split(".")):n[0].split(".");t=n[r];r++)n[r]=parseInt(t,10).toString()===t?parseInt(t,10):t;return n}(e),this.major=e.shift(),this.minor=e.shift(),this.patch=e.shift(),this.identifier=e}return t.prototype={toString:function(){return this.major+"."+this.minor+"."+this.patch+(this.identifier.length?"-"+this.identifier.join("."):"")},compare:function(t){return e(this.major,t.major)||e(this.minor,t.minor)||e(this.patch,t.patch)||function(e,t){var n,r,i,o,a=0;if(e.length&&!t.length)return-1;if(!e.length&&t.length)return 1;if(!e.length&&!t.length)return 0;do{if(n=e[a],o=typeof(r=t[a]),(i=typeof n)===v&&o===v)return 0;if(o===v)return 1;if(i===v)return-1;if(n===r);else{if(i===m&&o!==m)return 1;if(i!==m&&o===m)return-1;if(n>r)return 1;if(nt.weight)&&(t=r)})),t?t.state:h)}function m(e){return c.getItem(e)}function g(e,t){c[t?"setItem":"removeItem"](e,t)}function y(e){var t,n=m(e);if(n&&(t=n.match(a)))return Z(t,1)}function x(e,t){t[4]=ee(),g(e,t.join(","))}function j(e,t,n){_.emit(e,t.id,t,n)}function q(){ce(this.clear.expired.bind(this.clear),s.delay)}return _.on(w,(function(e){ce((function(){t.clear(e.id)}))})).on(b,(function(e){r("-!/demand/cache/dispose").then((function(n){ce((function(){n(e.source.length),t.set(e)}),s.delay)}))})).on(k,(function(e){e.source&&v(e)&&(l[e.id]=p)})).after(P,(function(e){l[e.id]&&ce((function(){t.set(e)}),s.delay)})),q.prototype={get:u?function(e){var t,r;if(v(e)){if(t="[demand]["+e.id+"]",!(r=y(t+n)))return;return 1===e.version.compare(new we(r[0]))||r[2]&&e.lifetime&&r[2]<=ee()?void(e.invalid=!0):(e.source=m(t+i),ce((function(){x(t+n,r)}),s.delay),p)}}:function(){},resolve:u?function(e){this.get(e)?j("cacheHit",e):j(w,e)}:function(e){j(w,e)},set:u?function(e){var t,o,a;if(v(e)){t=[e.version,e.source.length,e.lifetime?ee()+e.lifetime:d,r.version],o="[demand]["+e.id+"]",j("preCache",e,t);try{if(a=f?c.remainingSpace:d,g(o+i,e.source),x(o+n,t),a!==d&&c.remainingSpace===a)throw new Error;j("postCache",e,t)}catch(t){j(b,e)}}}:function(){},clear:u?function(e){var t=ye(e),r="[demand]["+t+"]";m(r+n)&&(g(r+n),g(r+i),j("cacheClear",Pe.get(t)||new Pe(t,d,h)))}:function(){}},q.prototype.clear.all=u?function(){var e;V(c,(function(t){(e=t.match(o))&&this(e[1])}),this)}:function(){},q.prototype.clear.expired=u?function(){var e,t;V(c,(function(r){(e=r.match(o))&&(t=y("[demand]["+e[1]+"]"+n))&&t[2]>0&&t[2]<=ee()&&this(e[1])}),this)}:function(){},t=new q}();function J(e){return e&&W(e.then,g)}function xe(e,t,n){var r=this;return r.message=e,t&&(r.module=t),n&&(r.stack=Z(n)),r}xe.prototype={toString:function(){var e=this,t=e.message+" "+(e.module?'"'+e.module+'"':"");return e.stack&&(t=xe.traverse(e.stack,t,1)),t}},xe.traverse=function(e,t,n){for(var r,i=new Array(n+1).join(" "),o=0;r=e[o];o++)t+="\n"+i+"> "+r.message+" "+(r.module?'"'+r.module+'"':""),r.stack&&(t=xe.traverse(r.stack,t,n+1));return t};var je,qe,ke=function(){var e="pending",t="resolved",n="rejected",r=new oe;function i(){var e=this,n=arguments;ie((function(){r.get(e).handle(t,n)}))}function o(){var e=this,t=arguments;ie((function(){r.get(e).handle(n,t)}))}function a(n,i){var o,a,u=r.get(this);for(u.state===e&&(u.state=n,u.value=i);o=u[u.state].shift();)try{if(a=o.handler.apply(d,u.value),J(a)){a.then(o.dfd.resolve,o.dfd.reject);continue}if(u.state===t&&W(a,v)){o.dfd.resolve.apply(d,u.value);continue}o.dfd.resolve(a)}catch(e){o.dfd.reject(e)}u.resolved.length=0,u.rejected.length=0}function u(e,t,n){e.then((function(){n.resolved[t]=Z(arguments),n.count++,c(n)}),(function(){n.rejected.push(Z(arguments)),c(n)}))}function c(e){e.count===e.total?e.dfd.resolve.apply(d,H.apply([],e.resolved)):e.rejected.length+e.count===e.total&&e.dfd.reject.apply(d,H.apply([],e.rejected))}function s(t){var n=this;return r.set(n,{state:e,handle:a.bind(n),value:d,resolved:[],rejected:[],count:0}),t(i.bind(n),o.bind(n)),n}return s.prototype={isPending:function(){return r.get(this).state===e},isResolved:function(){return r.get(this).state===t},isRejected:function(){return r.get(this).state===n},then:function(t,n){var i=r.get(this),o=s.defer();return i.resolved.push({handler:t||s.resolve,dfd:o}),i.rejected.push({handler:n||s.reject,dfd:o}),i.state!==e&&ie(i.handle),o.pledge},catch:function(e){return this.then(l,e)},always:function(e){return this.then(e,e)}},s.prototype.finally=s.prototype.always,s.defer=function(){var e={};return e.pledge=new s((function(t,n){e.resolve=t,e.reject=n})),e},s.all=function(e){var t,n,r=s.defer(),i=0;if(e.length)for(t={dfd:r,resolved:[],rejected:[],total:e.length,count:0};n=e[i];i++)u(n,i,t);else r.resolve();return r.pledge},s.race=function(e){for(var t,n=s.defer(),r=0;t=e[r];r++)t.then(n.resolve,n.reject);return e.length||n.resolve(),n.pledge},s.resolve=function(){var e=s.defer();return e.resolve.apply(d,arguments),e.pledge},s.reject=function(){var e=s.defer();return e.reject.apply(d,arguments),e.pledge},s}(),Re=function(){var e=new oe;function t(){e.set(this,{})}return t.prototype={get:function(t){return t?e.get(this)[t]:e.get(this)},set:function(t,n){e.get(this)[t]=n},remove:function(t){delete e.get(this)[t]}},t}(),Pe=function(){var e="internal!",t=new Re,n=/^(?:mock:|internal!)/i,o=[];function c(e,t){this[e]=t}function l(e){n.test(e)||this.push(e)}function v(e,t){!n.test(e)&&t.pledge.isPending()&&this.push(e)}function m(e,t){!n.test(e)&&t.pledge.isResolved()&&this.push(e)}function g(e,t){!n.test(e)&&t.pledge.isRejected()&&this.push(e)}function y(){return V(t.get(),l,[])}function w(e,n,r){var i=this,u=e.match(me)||o;return i.path=ge(e,n),i.mock=u[1]?p:h,i.cache=u[2]?"+"===u[1]:d,i.type=u[3]||s.handler,i.version=new we(u[4]||s.version),i.lifetime=u[5]&&1e3*u[5]||s.lifetime,i.id=(i.mock?f:"")+i.type+"!"+i.path,i.uri=(i.mock?f:"")+i.type+"@"+i.version+(G(i.lifetime)&&i.lifetime>0?"#"+i.lifetime:"")+"!"+i.path,i.dfd=ke.defer(),i.pledge=i.dfd.pledge,i.invalid=!1,i.pledge.then((function(){i.value=Z(arguments)}),(function(){a.current&&a.process()})),r!==h&&t.set(i.id,i),i}return y.pending=function(){return V(t.get(),v,[])},y.resolved=function(){return V(t.get(),m,[])},y.rejected=function(){return V(t.get(),g,[])},w.prototype={enqueue:!0},w.get=function(e,n){return t.get(ye(e,n))},w.resolve=function(t,n){var o,a=n&&ve.test(t),u=a?this.get(e+n+"/"+t):this.get(t,n);if(!u)if(a){switch(u=new w(e+n+"/"+t),t){case"demand":o=V(r,c,r.bind(n));break;case"provide":o=i.bind(n);break;case"path":o=n;break;case"exports":o=this.get(n).value={}}u.dfd.resolve(o)}else u=new w(t,n),r("/demand/handler/"+u.type).then((function(e){u.handler=e,u.mock?u.dfd.resolve(e):be.resolve(u)}),(function(){u.dfd.reject(new xe(T+" (handler)",self.id))}));return u},w.remove=function(e,n,r){var i=ye(e,n),o=u.querySelector('[demand-id="'+i+'"]');t.remove(i),t.remove(f+i),o&&o.parentNode.removeChild(o),r!==h&&be.clear(i)},w.list=y,w}(),Ee=function(){var e=/(.+)\/$/;function t(t,n){this[t]={url:se(n).replace(e,"$1"),match:new RegExp("^"+n)}}function n(e,n){var r=this;r.weight=e.length,r.match=new RegExp("^"+e),r.location=[].concat(n),V(r.location,t,r.location)}return n.prototype={matches:function(e){return this.match.test(e)},process:function(e,t){var n=this.location[t];if(n)return e.replace(this.match,n.url)}},n}(),Me=function(){var e={};function t(e){return e instanceof ArrayBuffer||e instanceof MessagePort||"ImageBitmap"in self&&e instanceof ImageBitmap}return function(n){var r,i;return r="$task = "+n+"; $isTransferable = "+t+"; onmessage = "+function(e){var t,n=Array.prototype.slice,r=e.data;function i(e){t||(t=!0,postMessage([r[0],0,e.toString()]))}try{$task.apply($task,[function(){var e;t||(t=!0,e=n.call(arguments),postMessage([r[0],1,e],e.filter($isTransferable)))},i].concat(r[1]))}catch(e){i(e)}},(i=new Worker(URL.createObjectURL(new Blob([r],{type:"application/javascript"})))).onmessage=function(t){var n=t.data[0],r=n?e[n]:null;n&&r&&(t.data[1]?r.resolve.apply(null,t.data[2]):r.reject(t.data[2]),delete e[n])},function(){var n=ke.defer(),r=re(),o=Z(arguments);return e[r]=n,i.postMessage([r,o],o.filter(t)),n.pledge}}}(),Ce=(je=/^(?:\?|)$/,qe=new Me((function(e,t,n){var r,i,o=new XMLHttpRequest;r=function(){this.readyState<4&&this.abort()}.bind(o),o.ontimeout=o.onerror=o.onabort=function(){t(o.statusText)},o.onprogress=o.onreadystatechange=function(){self.clearTimeout(i),i=self.setTimeout(r,1e4)},o.onload=function(){i=self.clearTimeout(i),"status"in o&&200!==o.status?t(o.statusText):e(o.responseText,o.getResponseHeader&&o.getResponseHeader("content-type"))},o.open("GET",n,!0),o.send(),i=self.setTimeout(r,1e4)})),function(e){var t;function n(t,n){n&&e.handler.validate&&!e.handler.validate(n)?e.dfd.reject(new xe(T+" (content-type)",e.id)):(e.source=t,_.emit(k,e.type,e))}fe.test(e.path)||V(s.pattern,(function(n,r){r.matches(e.path)&&(!t||t.weight>>0}r=function(){function t(e,t){this[e]={weight:e.length,state:t}}function n(e,t){"base"!==e&&(this[e]=new Ee(e,t))}function r(e,t){var n=this[e]=this[e]||{};_.emit("preConfigure",e,n),Y(n,t),_.emit(y,e,n)}function i(){var t,n,r,i=Z(arguments),o=this!==e?this:d,a=[],u=0;for(_.emit(x,d,i,o);t=i[u];u++)W(t,m)?i[u]=Pe.resolve(t,o):(i[u]=n=ke.defer(),n.resolve(t)),a.push(i[u].pledge);return(r=i.length>1?ke.all(a):a[0]).always((function(){if(_.emit(j,d,a,o),r.isRejected())return V(i,(function(e,t){t.pledge.isRejected()&&_.emit(C,t.path,t)})),ke.reject.apply(null,arguments)}))}return i.configure=function(e){var o=e.cache,a=e.version,u=e.delay,c=e.timeout,f=e.lifetime,d=e.base,l=e.pattern,h=e.modules,p=s.modules;return W(o,"boolean")?s.cache[""]={weight:0,state:o}:X(o)&&V(o,t,s.cache),Q(a)&&(s.version=a),G(u)&&(s.delay=1e3*u),G(c)&&(s.timeout=1e3*Math.min(Math.max(c,2),20)),G(f)&&f>0&&(s.lifetime=1e3*f),W(d,m)&&""!==d&&(s.pattern.base=new Ee("",d)),X(l)&&V(l,n,s.pattern),X(h)&&V(h,r,p),i},i.version="8.0.2",i.on=_.on.bind(i),i.get=function(e,t){var n=Pe.get(e,t);return n&&n.value},i.list=Pe.list,i.remove=Pe.remove,i.cache={clear:be.clear},_.after(w,(function(e){new Ce(e)})).after(k,(function(e){var t=e.handler.onPostRequest;t&&t(e)})).after("cacheHit postRequest",(function(e){_.emit(R,e.id,e)})).after(q,(function(e){var t=e.handler.onPreRequest;t&&t(e)})).after(R,(function(e){var t=e.handler.onPreProcess;t&&t(e),e.pledge.then((function(){_.emit(P,e.id,e)})),!0===e.enqueue?o.enqueue(e):J(e.enqueue)&&e.enqueue.then((function(){o.enqueue(e)}))})),i}(),L(e,"demand",{value:r,configurable:h,writable:h}),i=function(){var t,n,i,o,u=W(arguments[0],m)?arguments[0]:d,c=this!==e?this:d,s=Te(arguments[u?1:0])?arguments[u?1:0]:d,f=s?arguments[u?2:1]:arguments[u?1:0];if(a.current&&(u=(t=a.current).uri,a.process()),u){if(t=t||new Pe(u,c),n=J(f),i=W(f,g),s&&s.length)r.apply(t.path,s).then((function(){if(i)try{o=f.apply(d,arguments),!t.value&&J(o)?o.then(t.dfd.resolve,(function(){t.dfd.reject(new xe(A,t.id,arguments))})):t.dfd.resolve(t.value||o)}catch(e){console.error(e),t.dfd.reject(new xe(A,t.id,e))}else t.dfd.resolve(f)}),(function(){t.dfd.reject(new xe(A,t.id,arguments))}));else if(n)f.then(t.dfd.resolve,t.dfd.reject);else if(i)try{t.dfd.resolve(f())}catch(e){console.error(e),t.dfd.reject(new xe(A,t.id,e))}else t.dfd.resolve(f);return t.dfd.pledge.then((function(){_.emit(M,t.path,t)})),t.dfd.pledge}throw new Error(I)},i.amd=p,L(e,"provide",{value:i,configurable:h,writable:h}),r.configure({cache:p,base:"/",pattern:{"/demand":se((c&&c.url||location.pathname)+"/../").slice(0,-1)}}),c&&c.settings&&r.configure(c.settings);var Se=function(){var e=new oe;function t(t){var n=this,i={queue:t,current:d};e.set(n,i),r.on("queueEnqueue:"+t.uuid,(function(){!i.current&&n.process()}))}return t.prototype={process:function(){var t,n=e.get(this);n.queue.length&&(t=n.current=n.queue.dequeue()).pledge.isPending()?t.handler.process&&t.handler.process(t):n.current=d},get current(){return e.get(this).current}},t}();function Ie(e,t){for(var n,r;n=le.exec(t);)fe.test(n[3])?r=e.protocol+"//"+e.host+n[3]:(e.pathname+="/"+n[3].replace(he,""),r=e.protocol+"//"+e.host+e.pathname),t=t.replace(n[0],n[1]+" "+n[2]+"="+r+".map"+(n[4]?" "+n[4]:""));return t}var Oe,$e,He=(Oe=performance.now(),$e=[Oe],F((function e(){Oe=performance.now(),$e.push(Oe),$e=$e.slice(-300),F(e)})),function(){return Math.floor($e.length/((Oe-$e[0])/1e3))}),Ne=function(){var e,t,n,r=new ue,i=0;function o(){e=performance.now(),t=1e3/60*(Math.min(60,He())/60*.2),n(),i+=performance.now()-e,n=n=r.dequeue(),i "+r.message+" "+(r.module?'"'+r.module+'"':""),r.stack&&(t=xe.traverse(r.stack,t,n+1));return t};var Be=function(){var e={};function t(e,t){var n,r;for(n=0;r=t[n];n++)W(r,m)&&(t[n]=ye(r))}function n(){}return r.on("postConfigure:/demand/handler/bundle",(function(n){X(n)&&V(e=n,t)})),n.prototype={validate:Le.validate,onPreProcess:function(t){var n,r,i,a,u,c=t.source,s=t.dfd,d=e[t.path];function l(){s.reject(new xe(S,t.id,arguments))}if(t.enqueue=h,d&&(n=function(t){for(var n,r,i=0;r=t[i];i++)if(r=(r=r.match(me))&&r[3]||e.handler,n){if(r!==n)return h}else n=r;return n}(d))){for(;r=le.exec(c);)c=c.replace(r[0],"");for(t.source=c,i=[],u=0;a=d[u];u++)i.push(Pe.resolve(f+a).pledge);ke.all(i).then((function(){for(i.length=0,u=0;a=d[u];u++)(a=d[u]=Pe.get(a)||new Pe(a)).handler=arguments[u],i.push(a.pledge);"module"===n?(o.enqueue.apply(o,d),Le.process(t)):(Le.process(t),o.enqueue.apply(o,d)),ke.all(i).then(s.resolve,l)}),l)}else l()}},new(n.extends(De))}(),Ue=function(){var e=/^text\/.+$/,t={suffix:".html"};function n(){}return r.on("postConfigure:/demand/handler/component",(function(e){X(e)&&Y(t,e)})),n.prototype={validate:function(t){return e.test(t)},onPreRequest:function(e,n){var r;(n=typeof n!==v?n:t.suffix)&&(r=e.url.pathname,e.url.pathname=r.slice(-n.length)!==n?r+n:r)},onPostRequest:function(e){e.source=Ie(e.url,e.source)},onPreProcess:function(e){var t,n,r,i,a=e.path,c=e.dfd,s=u.createElement("body"),f=[],d=[];function l(){c.reject(new xe(S,e.id,arguments))}for(e.enqueue=h,s.innerHTML=e.source;t=s.firstElementChild;)(n=t.getAttribute("type"))&&(i=n+"!"+a+((r=t.getAttribute("path"))?"/"+r:""),t.parentNode.removeChild(t),f.push({source:t.textContent,uri:i}),d.push(Pe.resolve("mock:"+i).pledge));ke.all(d).then((function(){var t,n,r,i=[];for(d.length=0,t=0;n=f[t];t++)(r=Pe.get(n.uri)||new Pe(n.uri)).source=Ie(r.url,n.source),r.handler=arguments[t],i.push(r),d.push(r.pledge),o.enqueue(r);ke.all(d).then((function(){var r=e.path.length+1,o={};for(t=0;n=arguments[t];t++)o[i[t].path.substr(r)||"main"]=n;c.resolve(o)}),l)}),l)}},new(n.extends(De))}(),ze=function(){var e="/demand/plugin/genie",t=[];function n(e){for(var n,r,i=0;n=t[i];i++)n.prefix.test(e)&&(!r||n.weight>r.weight)&&(r=n);return r}function i(){for(var e,t=0;e=this[t];t++)e.dfd.resolve(arguments[t])}function o(){for(var e,t=0;e=this[t];t++)e.dfd.reject(new xe(S,e.id))}function a(e,n){t.push({prefix:new RegExp("^"+e),weight:e.length,fn:n})}function u(t,n){var a,u=n.matches,c=0;if(u.length>1){for(n.id=e+"/"+Ae(JSON.stringify(n.matches));a=u[c];c++)u[c]=new Pe(a.uri);r.configure(function(e){var t,n,r=e.matches,i={pattern:{},modules:{"/demand/handler/bundle":{}}},o=0;for(i.pattern[e.id]=e.fn(r),i.modules["/demand/handler/bundle"][e.id]=t=[];n=r[o];o++)t.push(n.path);return i}(n)),r("bundle!"+n.id).then(i.bind(u),o.bind(u))}}return r.on("postConfigure:"+e,(function(e){X(e)&&(t.length=0,V(e,a))})).on(x,(function(e,t){for(var r,i,o={},a=0;r=e[a];a++)!W(r,m)||ve.test(r)||Pe.get(r,t)||"module"===(r=new Pe(r,t,h)).type&&(i=n(r.path))&&!be.get(r)&&(o[i.prefix]||(o[i.prefix]={fn:i.fn,matches:[]})).matches.push(r);V(o,u)})),p}();function Fe(e,t){i(e,(function(){return t}))}if(o=new ue,a=new Se(o),Fe("/demand/abstract/uuid",ae),Fe("/demand/abstract/handler",De),Fe("/demand/handler/module",Le),Fe("/demand/handler/bundle",Be),Fe("/demand/handler/component",Ue),Fe("/demand/plugin/genie",ze),Fe("/demand/validator/isTypeOf",W),Fe("/demand/validator/isArray",Te),Fe("/demand/validator/isObject",X),Fe("/demand/validator/isInstanceOf",(function(e,t){return e instanceof t})),Fe("/demand/validator/isSemver",Q),Fe("/demand/validator/isThenable",J),Fe("/demand/function/resolveUrl",se),Fe("/demand/function/resolveSourcemaps",Ie),Fe("/demand/function/merge",Y),Fe("/demand/function/iterate",V),Fe("/demand/function/hash",Ae),Fe("/demand/function/defer",ie),Fe("/demand/function/fps",He),Fe("/demand/function/onIdle",ce),Fe("/demand/function/onAnimationFrame",Ne),Fe("/demand/function/uuid",re),Fe("/demand/function/toArray",Z),Fe("/demand/task",Me),Fe("/demand/weakmap",oe),Fe("/demand/pledge",ke),Fe("/demand/queue",ue),Fe("/demand/failure",xe),Fe("/demand/semver",we),c&&c.main)switch(typeof c.main){case m:r(c.main);break;case g:i("main",c.main())}}("demand-loader"===this.name?parent:this,setTimeout,clearTimeout); //# sourceMappingURL=demand.js.map diff --git a/dist/demand.js.map b/dist/demand.js.map index 0cbdb8b..dd26afc 100644 --- a/dist/demand.js.map +++ b/dist/demand.js.map @@ -1 +1 @@ -{"version":3,"sources":["demand.js"],"names":["global","setTimeout","clearTimeout","demand","provide","queue","processor","document","options","settings","version","cache","timeout","pattern","modules","handler","MOCK_PREFIX","NULL","UNDEFINED","undefined","FALSE","TRUE","STRING_UNDEFINED","STRING_STRING","STRING_FUNCTION","EVENT_POST_CONFIGURE","EVENT_POSTFIX","EVENT_CACHE_MISS","EVENT_CACHE","EVENT_CACHE_EXCEED","EVENT_PRE_RESOLVE","EVENT_PREFIX","EVENT_POST_RESOLVE","EVENT_PRE_REQUEST","EVENT_POST_REQUEST","EVENT_PRE_PROCESS","EVENT_POST_PROCESS","EVENT_QUEUE_ENQUEUE","EVENT_QUEUE","EVENT_PROVIDE","EVENT_REJECT","ERROR_LOAD","ERROR_PROVIDE","ERROR_RESOLVE","ERROR_PROVIDE_ANONYMOUS","arrayPrototype","Array","prototype","arrayPrototypeSlice","slice","arrayPrototypeConcat","concat","object","Object","objectCreate","create","objectDefineProperty","defineProperty","objectGetOwnPropertyNames","getOwnPropertyNames","objectGetOwnPropertyDescriptor","getOwnPropertyDescriptor","linkElement","createElement","requestAnimationFrame","validatorIsTypeOf","type","validatorIsObject","validatorIsPositive","value","isFinite","Math","floor","validatorIsThenable","then","Function","source","property","self","this","names","properties","constructor","i","e","TypeError","configurable","writable","regexMatchSemver","validatorIsSemver","test","functionIterate","callback","context","keys","call","functionMerge","mergeProperties","targetPropertyIsObject","targetProperty","length","target","arguments","functionToArray","arrayLikeObject","start","end","singletonEvent","regexMatchEvent","listener","addListener","events","event","pointer","split","shift","on","after","push","filter","Event","emit","parameter","item","apply","functionGetTimestamp","Date","storage","element","functionUuid","regex","RegExp","randomize","character","r","random","toString","replace","functionDefer","setImmediate","MutationObserver","records","forEach","record","uuid","attributeName","substr","observe","attributes","fn","setAttribute","ClassWeakmap","WeakMap","NativeWeakMap","weakmap","set","get","key","has","delete","AbstractUuid","ClassQueue","enqueue","items","dequeue","current","extends","functionOnIdle","eventName","safari","pushNotification","requestIdleCallback","didTimeout","timeRemaining","max","cancelIdleCallback","id","process","addEventListener","visibilityState","functionResolveUrl","url","href","regexIsAbsoluteUri","regexIsRelativePath","regexMatchSourcemap","regexMatchLeadingSlash","regexMatchBaseUrl","regexMatchInternal","regexMatchParameter","functionResolvePath","uri","path","functionResolveId","match","ClassSemver","compareLevel","a","b","temp","parts","parseInt","parse","major","minor","patch","identifier","join","compare","pa","pb","tpa","tpb","compareIdentifier","singletonCache","STORAGE_SUFFIX_STATE","STORAGE_SUFFIX_VALUE","regexMatchState","regexMatchProperties","supportsLocalStorage","localStorage","exception","supportsRemainingSpace","enabled","dependency","indexOf","weight","state","getKey","getItem","setKey","getState","matches","setState","Cache","clear","expired","bind","delay","cacheDispose","STORAGE_PREFIX","lifetime","invalid","resolve","spaceBefore","remainingSpace","Error","error","ClassDependency","all","ClassFailure","message","module","stack","result","traverse","depth","indention","regexMatchEmptySearch","loadXhr","ClassPledge","PLEDGE_PENDING","PLEDGE_RESOLVED","PLEDGE_REJECTED","args","handle","reject","dfd","pledge","index","resolved","count","check","rejected","total","executor","isPending","isResolved","isRejected","resolveListener","rejectListener","defer","catch","always","finally","pledges","race","ClassRegistry","remove","PREFIX_INTERNAL","registry","matchInternal","placeholder","setProperty","add","addPending","addResolved","addRejected","list","register","mock","pending","isInternal","MODULE_PREFIX","node","querySelector","parentNode","removeChild","ClassPattern","regexMatchTrailingSlash","location","ClassTask","lookup","isTransferable","ArrayBuffer","MessagePort","ImageBitmap","task","script","worker","isSettled","toArray","data","postMessage","$task","$isTransferable","Worker","URL","createObjectURL","Blob","onmessage","ClassLoader","checkState","xhr","XMLHttpRequest","readyState","abort","ontimeout","onerror","onabort","statusText","onprogress","onreadystatechange","onload","status","responseText","getResponseHeader","open","send","response","validate","load","search","validatorIsArray","isArray","functionHash","input","charCodeAt","updateCacheSettings","updatePatternSettings","updateModuleSettings","dependencies","_","configure","base","min","onPostRequest","EVENT_CACHE_HIT","onPreRequest","onPreProcess","isThenable","isFunction","definition","console","amd","ClassProcessor","functionResolveSourcemaps","replacement","exec","protocol","host","pathname","now","frames","functionFPS","performance","functionOnAnimationFrame","budget","duration","abstractHandler","handlerModule","getElementsByTagName","regexMatchType","umd","suffix","HandlerModule","_define","async","text","DEMAND_ID","define","appendChild","handlerBundle","updateDependencies","HandlerBundle","getType","handlerComponent","HandlerComponent","container","innerHTML","firstElementChild","getAttribute","textContent","component","components","offset","pluginGenie","MODULE_PREFIX_PLUGIN","matchPattern","prefix","resolveDependencies","rejectDependencies","addPattern","resolveBundles","JSON","stringify","bundle","configuration","MODULE_PREFIX_HANDLER","generateConfiguration","bundles","assignModule","MODULE_PREFIX_ABSTRACT","MODULE_PREFIX_VALIDATOR","MODULE_PREFIX_FUNCTION","main","name","parent"],"mappings":";CAYC,SAASA,EAAQC,EAAYC,GAC7B,aAGA,IAGCC,EAAQC,EAASC,EAAOC,EAHrBC,EAAWP,EAAOO,SACrBC,EAAW,WAAYR,GAAUA,EAAOG,OACxCM,EAAW,CAAEC,QAAS,QAASC,MAAO,GAAIC,QAAS,IAAMC,QAAS,GAAIC,QAAS,GAAIC,QAAS,UAwB3FC,EAA0B,QAC1BC,EAA0B,KAC1BC,OAA0BC,EAC1BC,GAA0B,EAC1BC,GAA0B,EAC1BC,EAA0B,YAC1BC,EAA0B,SAG1BC,EAA0B,WAM1BC,EAA0BC,gBAE1BC,EAA0BC,YAG1BC,EAA0BD,cAI1BE,EAA0BC,aAC1BC,EAA0BN,cAE1BO,EAA0BF,aA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AahI,iBAA0B3C,IACvC2K,GAAahI,gBAAyB9I,IACtC8Q,GAAahI,kBAA2BrD,IACxCqL,GAAahI,iBAA0B5G,IAEpC3L,GAAWA,EAAQ2a,KACrB,cAAc3a,EAAQ2a,MACrB,KAAK5Z,EACJpB,EAAOK,EAAQ2a,MAEf,MACD,KAAK3Z,EACJpB,EAAQ,OAAQI,EAAQ2a,SAhwF7B,CAqwFgB,kBAAdpW,KAAKqW,KAA2BC,OAAStW,KAAM9E,WAAYC","file":"demand.js","sourcesContent":["/* global\n\tglobal, document, demand, provide, queue, processor, settings, setTimeout, clearTimeout,\n\tMODULE_PREFIX, MODULE_PREFIX_HANDLER, MODULE_PREFIX_VALIDATOR, MODULE_PREFIX_PLUGIN, MODULE_PREFIX_FUNCTION, MODULE_PREFIX_ABSTRACT, STRING_STRING, STRING_FUNCTION, TRUE,\n\tvalidatorIsTypeOf, validatorIsArray, validatorIsObject, validatorIsInstanceOf, validatorIsSemver, validatorIsThenable,\n\tfunctionResolveUrl, functionResolveSourcemaps, functionMerge, functionIterate, functionDefer, functionToArray, functionFPS, functionOnIdle, functionOnAnimationFrame, functionHash, functionUuid,\n\tAbstractUuid, abstractHandler,\n\tClassDependency, ClassQueue, ClassProcessor, ClassPledge, ClassFailure, ClassWeakmap, ClassTask, ClassSemver,\n\thandlerModule, handlerBundle, handlerComponent,\n \tpluginGenie\n*/\n\n/*eslint no-unused-vars: [2, { \"vars\": \"local\", \"args\": \"none\" }]*/\n(function(global, setTimeout, clearTimeout) {\n\t'use strict';\n\n\t/* eslint-disable no-unused-vars */\n\tvar document = global.document,\n\t\toptions = 'demand' in global && global.demand,\n\t\tsettings = { version: '1.0.0', cache: {}, timeout: 8000, pattern: {}, modules: {}, handler: 'module' },\n\t\tdemand, provide, queue, processor, log;\n\n\t// include inheritance\n\t\t//=require inheritance.js\n\n\t// include main components\n\t\t//=require function/demand.js\n\t\t//=require function/provide.js\n\n\t// process initial configuration\n\t\tdemand.configure({ cache: TRUE, base: '/', pattern: { '/demand': functionResolveUrl(((options && options.url) || location.href) + '/../').slice(0, -1)} });\n\t\toptions && options.settings && demand.configure(options.settings);\n\n\t// include additional components\n\t\t//=require validator/IsInstanceOf.js\n\t\t//=require function/hash.js\n\t\t//=require class/queue.js\n\t\t//=require class/processor.js\n\t\t//=require handler/module.js\n\t\t//=require handler/bundle.js\n\t\t//=require handler/component.js\n\t\t//=require plugin/genie.js\n\n\t// initialize\n\t\tqueue = new ClassQueue();\n\t\tprocessor = new ClassProcessor(queue);\n\n\t\tfunction assignModule(id, module) {\n\t\t\tprovide(id, function() { return module; });\n\t\t}\n\n\t\tassignModule(MODULE_PREFIX_ABSTRACT + 'uuid', AbstractUuid);\n\t\tassignModule(MODULE_PREFIX_ABSTRACT + 'handler', abstractHandler);\n\t\tassignModule(MODULE_PREFIX_HANDLER + 'module', handlerModule);\n\t\tassignModule(MODULE_PREFIX_HANDLER + 'bundle', handlerBundle);\n\t\tassignModule(MODULE_PREFIX_HANDLER + 'component', handlerComponent);\n\t\tassignModule(MODULE_PREFIX_PLUGIN + 'genie', pluginGenie);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isTypeOf', validatorIsTypeOf);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isArray', validatorIsArray);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isObject', validatorIsObject);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isInstanceOf', validatorIsInstanceOf);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isSemver', validatorIsSemver);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isThenable', validatorIsThenable);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'resolveUrl', functionResolveUrl);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'resolveSourcemaps', functionResolveSourcemaps);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'merge', functionMerge);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'iterate', functionIterate);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'hash', functionHash);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'defer', functionDefer);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'fps', functionFPS);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'onIdle', functionOnIdle);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'onAnimationFrame', functionOnAnimationFrame);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'uuid', functionUuid);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'toArray', functionToArray);\n\t\tassignModule(MODULE_PREFIX + 'task', ClassTask);\n\t\tassignModule(MODULE_PREFIX + 'weakmap', ClassWeakmap);\n\t\tassignModule(MODULE_PREFIX + 'pledge', ClassPledge);\n\t\tassignModule(MODULE_PREFIX + 'queue', ClassQueue);\n\t\tassignModule(MODULE_PREFIX + 'failure', ClassFailure);\n\t\tassignModule(MODULE_PREFIX + 'semver', ClassSemver);\n\n\t\tif(options && options.main) {\n\t\t\tswitch(typeof options.main) {\n\t\t\t\tcase STRING_STRING:\n\t\t\t\t\tdemand(options.main);\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase STRING_FUNCTION:\n\t\t\t\t\tprovide('main', options.main());\n\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n}(this.name === 'demand-loader' ? parent : this, setTimeout, clearTimeout));\n"]} \ No newline at end of file +{"version":3,"sources":["demand.js"],"names":["global","setTimeout","clearTimeout","demand","provide","queue","processor","document","options","settings","version","cache","timeout","pattern","modules","handler","MOCK_PREFIX","NULL","UNDEFINED","undefined","FALSE","TRUE","STRING_UNDEFINED","STRING_STRING","STRING_FUNCTION","EVENT_POST_CONFIGURE","EVENT_POSTFIX","EVENT_CACHE_MISS","EVENT_CACHE","EVENT_CACHE_EXCEED","EVENT_PRE_RESOLVE","EVENT_PREFIX","EVENT_POST_RESOLVE","EVENT_PRE_REQUEST","EVENT_POST_REQUEST","EVENT_PRE_PROCESS","EVENT_POST_PROCESS","EVENT_QUEUE_ENQUEUE","EVENT_QUEUE","EVENT_PROVIDE","EVENT_REJECT","ERROR_LOAD","ERROR_PROVIDE","ERROR_RESOLVE","ERROR_PROVIDE_ANONYMOUS","arrayPrototype","Array","prototype","arrayPrototypeSlice","slice","arrayPrototypeConcat","concat","object","Object","objectCreate","create","objectDefineProperty","defineProperty","objectGetOwnPropertyNames","getOwnPropertyNames","objectGetOwnPropertyDescriptor","getOwnPropertyDescriptor","linkElement","createElement","requestAnimationFrame","validatorIsTypeOf","type","validatorIsObject","validatorIsPositive","value","isFinite","Math","floor","validatorIsThenable","then","Function","source","property","self","this","names","properties","constructor","i","e","TypeError","configurable","writable","regexMatchSemver","validatorIsSemver","test","functionIterate","callback","context","keys","call","functionMerge","mergeProperties","targetPropertyIsObject","targetProperty","length","target","arguments","functionToArray","arrayLikeObject","start","end","singletonEvent","regexMatchEvent","listener","addListener","events","event","pointer","split","shift","on","after","push","filter","Event","emit","parameter","item","apply","functionGetTimestamp","Date","storage","element","functionUuid","regex","RegExp","randomize","character","r","random","toString","replace","functionDefer","setImmediate","MutationObserver","records","forEach","record","uuid","attributeName","substr","observe","attributes","fn","setAttribute","ClassWeakmap","WeakMap","NativeWeakMap","weakmap","set","get","key","has","delete","AbstractUuid","ClassQueue","enqueue","items","dequeue","current","extends","functionOnIdle","eventName","safari","pushNotification","requestIdleCallback","didTimeout","timeRemaining","max","cancelIdleCallback","id","process","addEventListener","visibilityState","functionResolveUrl","url","href","regexIsAbsoluteUri","regexIsRelativePath","regexMatchSourcemap","regexMatchLeadingSlash","regexMatchBaseUrl","regexMatchInternal","regexMatchParameter","functionResolvePath","uri","path","functionResolveId","match","ClassSemver","compareLevel","a","b","temp","parts","parseInt","parse","major","minor","patch","identifier","join","compare","pa","pb","tpa","tpb","compareIdentifier","singletonCache","STORAGE_SUFFIX_STATE","STORAGE_SUFFIX_VALUE","regexMatchState","regexMatchProperties","supportsLocalStorage","localStorage","exception","supportsRemainingSpace","enabled","dependency","indexOf","weight","state","getKey","getItem","setKey","getState","matches","setState","Cache","clear","expired","bind","delay","cacheDispose","STORAGE_PREFIX","lifetime","invalid","resolve","spaceBefore","remainingSpace","Error","error","ClassDependency","all","ClassFailure","message","module","stack","result","traverse","depth","indention","regexMatchEmptySearch","loadXhr","ClassPledge","PLEDGE_PENDING","PLEDGE_RESOLVED","PLEDGE_REJECTED","args","handle","reject","dfd","pledge","index","resolved","count","check","rejected","total","executor","isPending","isResolved","isRejected","resolveListener","rejectListener","defer","catch","always","finally","pledges","race","ClassRegistry","remove","PREFIX_INTERNAL","registry","matchInternal","placeholder","setProperty","add","addPending","addResolved","addRejected","list","register","mock","pending","isInternal","MODULE_PREFIX","node","querySelector","parentNode","removeChild","ClassPattern","regexMatchTrailingSlash","location","ClassTask","lookup","isTransferable","ArrayBuffer","MessagePort","ImageBitmap","task","script","worker","isSettled","toArray","data","postMessage","$task","$isTransferable","Worker","URL","createObjectURL","Blob","onmessage","ClassLoader","checkState","xhr","XMLHttpRequest","readyState","abort","ontimeout","onerror","onabort","statusText","onprogress","onreadystatechange","onload","status","responseText","getResponseHeader","open","send","response","validate","load","search","validatorIsArray","isArray","functionHash","input","charCodeAt","updateCacheSettings","updatePatternSettings","updateModuleSettings","dependencies","_","configure","base","min","onPostRequest","EVENT_CACHE_HIT","onPreRequest","onPreProcess","isThenable","isFunction","definition","console","amd","pathname","ClassProcessor","functionResolveSourcemaps","replacement","exec","protocol","host","now","frames","functionFPS","performance","functionOnAnimationFrame","budget","duration","abstractHandler","handlerModule","getElementsByTagName","regexMatchType","umd","suffix","HandlerModule","_define","async","text","DEMAND_ID","define","appendChild","handlerBundle","updateDependencies","HandlerBundle","getType","handlerComponent","HandlerComponent","container","innerHTML","firstElementChild","getAttribute","textContent","component","components","offset","pluginGenie","MODULE_PREFIX_PLUGIN","matchPattern","prefix","resolveDependencies","rejectDependencies","addPattern","resolveBundles","JSON","stringify","bundle","configuration","MODULE_PREFIX_HANDLER","generate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C7Ce,GAAaE,6BAAsChX,GACnD8W,GAAaE,4BAAqChF,IAClD8E,GAAaE,6BAAsC9W,GACnD4W,GAAaE,kCAjsBb,SAA+B7X,EAAQwM,GACtC,OAAOxM,aAAkBwM,KAisB1BmL,GAAaE,6BAAsCxV,GACnDsV,GAAaE,+BAAwCxW,GACrDsW,GAAaG,8BAAuC9P,IACpD2P,GAAaG,qCAA8CzD,IAC3DsD,GAAaG,yBAAkClV,GAC/C+U,GAAaG,2BAAoCvV,GACjDoV,GAAaG,wBAAiC/E,IAC9C4E,GAAaG,yBAAkCxS,IAC/CqS,GAAaG,uBAAgClD,IAC7C+C,GAAaG,0BAAmC3Q,IAChDwQ,GAAaG,oCAA6ChD,IAC1D6C,GAAaG,wBAAiCjT,IAC9C8S,GAAaG,2BAAoC3U,GACjDwU,GAAahI,eAAwBQ,IACrCwH,GAAahI,kBAA2BxJ,IACxCwR,GAAahI,iBAA0B3C,IACvC2K,GAAahI,gBAAyB9I,IACtC8Q,GAAahI,kBAA2BrD,IACxCqL,GAAahI,iBAA0B5G,IAEpC3L,GAAWA,EAAQ2a,KACrB,cAAc3a,EAAQ2a,MACrB,KAAK5Z,EACJpB,EAAOK,EAAQ2a,MAEf,MACD,KAAK3Z,EACJpB,EAAQ,OAAQI,EAAQ2a,SAhwF7B,CAqwFgB,kBAAdpW,KAAKqW,KAA2BC,OAAStW,KAAM9E,WAAYC","file":"demand.js","sourcesContent":["/* global\n\tglobal, document, demand, provide, queue, processor, settings, setTimeout, clearTimeout,\n\tMODULE_PREFIX, MODULE_PREFIX_HANDLER, MODULE_PREFIX_VALIDATOR, MODULE_PREFIX_PLUGIN, MODULE_PREFIX_FUNCTION, MODULE_PREFIX_ABSTRACT, STRING_STRING, STRING_FUNCTION, TRUE,\n\tvalidatorIsTypeOf, validatorIsArray, validatorIsObject, validatorIsInstanceOf, validatorIsSemver, validatorIsThenable,\n\tfunctionResolveUrl, functionResolveSourcemaps, functionMerge, functionIterate, functionDefer, functionToArray, functionFPS, functionOnIdle, functionOnAnimationFrame, functionHash, functionUuid,\n\tAbstractUuid, abstractHandler,\n\tClassDependency, ClassQueue, ClassProcessor, ClassPledge, ClassFailure, ClassWeakmap, ClassTask, ClassSemver,\n\thandlerModule, handlerBundle, handlerComponent,\n \tpluginGenie\n*/\n\n/*eslint no-unused-vars: [2, { \"vars\": \"local\", \"args\": \"none\" }]*/\n(function(global, setTimeout, clearTimeout) {\n\t'use strict';\n\n\t/* eslint-disable no-unused-vars */\n\tvar document = global.document,\n\t\toptions = 'demand' in global && global.demand,\n\t\tsettings = { version: '1.0.0', cache: {}, timeout: 8000, pattern: {}, modules: {}, handler: 'module' },\n\t\tdemand, provide, queue, processor, log;\n\n\t// include inheritance\n\t\t//=require inheritance.js\n\n\t// include main components\n\t\t//=require function/demand.js\n\t\t//=require function/provide.js\n\n\t// process initial configuration\n\t\tdemand.configure({ cache: TRUE, base: '/', pattern: { '/demand': functionResolveUrl(((options && options.url) || location.pathname) + '/../').slice(0, -1)} });\n\t\toptions && options.settings && demand.configure(options.settings);\n\n\t// include additional components\n\t\t//=require validator/IsInstanceOf.js\n\t\t//=require function/hash.js\n\t\t//=require class/queue.js\n\t\t//=require class/processor.js\n\t\t//=require handler/module.js\n\t\t//=require handler/bundle.js\n\t\t//=require handler/component.js\n\t\t//=require plugin/genie.js\n\n\t// initialize\n\t\tqueue = new ClassQueue();\n\t\tprocessor = new ClassProcessor(queue);\n\n\t\tfunction assignModule(id, module) {\n\t\t\tprovide(id, function() { return module; });\n\t\t}\n\n\t\tassignModule(MODULE_PREFIX_ABSTRACT + 'uuid', AbstractUuid);\n\t\tassignModule(MODULE_PREFIX_ABSTRACT + 'handler', abstractHandler);\n\t\tassignModule(MODULE_PREFIX_HANDLER + 'module', handlerModule);\n\t\tassignModule(MODULE_PREFIX_HANDLER + 'bundle', handlerBundle);\n\t\tassignModule(MODULE_PREFIX_HANDLER + 'component', handlerComponent);\n\t\tassignModule(MODULE_PREFIX_PLUGIN + 'genie', pluginGenie);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isTypeOf', validatorIsTypeOf);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isArray', validatorIsArray);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isObject', validatorIsObject);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isInstanceOf', validatorIsInstanceOf);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isSemver', validatorIsSemver);\n\t\tassignModule(MODULE_PREFIX_VALIDATOR + 'isThenable', validatorIsThenable);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'resolveUrl', functionResolveUrl);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'resolveSourcemaps', functionResolveSourcemaps);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'merge', functionMerge);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'iterate', functionIterate);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'hash', functionHash);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'defer', functionDefer);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'fps', functionFPS);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'onIdle', functionOnIdle);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'onAnimationFrame', functionOnAnimationFrame);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'uuid', functionUuid);\n\t\tassignModule(MODULE_PREFIX_FUNCTION + 'toArray', functionToArray);\n\t\tassignModule(MODULE_PREFIX + 'task', ClassTask);\n\t\tassignModule(MODULE_PREFIX + 'weakmap', ClassWeakmap);\n\t\tassignModule(MODULE_PREFIX + 'pledge', ClassPledge);\n\t\tassignModule(MODULE_PREFIX + 'queue', ClassQueue);\n\t\tassignModule(MODULE_PREFIX + 'failure', ClassFailure);\n\t\tassignModule(MODULE_PREFIX + 'semver', ClassSemver);\n\n\t\tif(options && options.main) {\n\t\t\tswitch(typeof options.main) {\n\t\t\t\tcase STRING_STRING:\n\t\t\t\t\tdemand(options.main);\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase STRING_FUNCTION:\n\t\t\t\t\tprovide('main', options.main());\n\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n}(this.name === 'demand-loader' ? parent : this, setTimeout, clearTimeout));\n"]} \ No newline at end of file diff --git a/dist/handler/css.js b/dist/handler/css.js index 2f3d6f1..61b7d8b 100644 --- a/dist/handler/css.js +++ b/dist/handler/css.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 8.0.1 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ +/**! Qoopido.demand 8.0.2 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ !function(e){"use strict";provide(["path","/demand/pledge","/demand/abstract/handler","/demand/function/resolveSourcemaps","/demand/validator/isObject","/demand/function/merge","/demand/function/onAnimationFrame"],(function(t,n,r,o,s,u,a){var i=e.getElementsByTagName("head")[0],c=e.createElement("a"),d=/url\s*\(\s*["']?(.+?)["']?\s*\)/gi,f=/@import\s+["'](.+?)["']/gi,m=/^\//i,l=/^data:|http(s?):|\/\//i,p=/^text\/css/,h={suffix:".css"};function g(e){return c.href=e,c}function v(e,t,n){return l.test(t[1])||(e=e.replace(t[0],n)),e}function x(){}return demand.on("postConfigure:"+t,(function(e){s(e)&&u(h,e)})),x.prototype={validate:function(e){return p.test(e)},onPreRequest:function(e,t){var n;(t="undefined"!=typeof t?t:h.suffix)&&(n=e.url.pathname,e.url.pathname=n.slice(-t.length)!==t?n+t:n)},onPostRequest:function(e){for(var t,n=g(e.url+"/.."),r=n.href,s="//"+n.host,u=e.source;t=d.exec(u);)u=v(u,t,'url("'+g(m.test(t[1])?s+t[1]:r+t[1]).href+'")');for(;t=f.exec(u);)u=v(u,t,'@import "'+g(m.test(t[1])?s+t[1]:r+t[1]).href+'"');e.source=o(e.url,u)},onPreProcess:function(e){e.enqueue=new n(a)},process:function(t){var n=e.querySelector('[demand-id="'+t.id+'"]');n||((n=e.createElement("style")).type="text/css",n.setAttribute("demand-id",t.id),i.appendChild(n)),"STYLE"===n.tagName&&(n.styleSheet?n.styleSheet.cssText=t.source:n.textContent=t.source),provide((function(){return n}))}},new(x.extends(r))}))}(document); //# sourceMappingURL=css.js.map diff --git a/dist/handler/html.js b/dist/handler/html.js index ed126c8..8e4103a 100644 --- a/dist/handler/html.js +++ b/dist/handler/html.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 8.0.1 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ +/**! Qoopido.demand 8.0.2 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ !function(){"use strict";provide(["path","/demand/abstract/handler","/demand/validator/isObject","/demand/function/merge"],(function(e,n,t,r){var o=/^text\/html/,u=document.createElement("body"),i={suffix:".html"};function a(){}return demand.on("postConfigure:"+e,(function(e){t(e)&&r(i,e)})),a.prototype={validate:function(e){return o.test(e)},onPreRequest:function(e,n){var t;(n="undefined"!=typeof n?n:i.suffix)&&(t=e.url.pathname,e.url.pathname=t.slice(-n.length)!==n?t+n:t)},process:function(e){provide((function(){return function(e){var n,t=document.createDocumentFragment();for(u.innerHTML=e;n=u.firstElementChild;)t.appendChild(n);return t}(e.source)}))}},new(a.extends(n))}))}(); //# sourceMappingURL=html.js.map diff --git a/dist/handler/json.js b/dist/handler/json.js index 0262937..c5bf61e 100644 --- a/dist/handler/json.js +++ b/dist/handler/json.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 8.0.1 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ +/**! Qoopido.demand 8.0.2 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ !function(){"use strict";provide(["path","/demand/abstract/handler","/demand/task","/demand/pledge","/demand/failure","/demand/validator/isObject","/demand/function/merge"],(function(n,e,t,a,o,d,i){var r=/^application\/json/,u={suffix:".json"},c=new t((function(n,e,t){try{n(JSON.parse(t))}catch(n){e(n)}}));function s(){}return demand.on("postConfigure:"+n,(function(n){d(n)&&i(u,n)})),s.prototype={validate:function(n){return r.test(n)},onPreRequest:function(n,e){var t;(e="undefined"!=typeof e?e:u.suffix)&&(t=n.url.pathname,n.url.pathname=t.slice(-e.length)!==e?t+e:t)},process:function(n){provide(c(n.source))}},new(s.extends(e))}))}(); //# sourceMappingURL=json.js.map diff --git a/dist/handler/legacy.js b/dist/handler/legacy.js index 15532c6..48ad01e 100644 --- a/dist/handler/legacy.js +++ b/dist/handler/legacy.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 8.0.1 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ +/**! Qoopido.demand 8.0.2 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ !function(){"use strict";provide(["path","/demand/failure","/demand/pledge","/demand/handler/module","/demand/validator/isObject","/demand/function/merge","/demand/function/onAnimationFrame"],(function(e,n,t,o,r,u,d){var i={suffix:".js"};function a(){var e,t=this,r=t.dfd,u=i[t.path]&&i[t.path].probe;o.process(t),u&&(e=u())?provide((function(){return e})):u?r.reject(new n("error probing",t.path)):provide((function(){return!0}))}function p(){}return demand.on("postConfigure:"+e,(function(e){r(e)&&u(i,e)})),p.prototype={onPreRequest:function(e,n){var t=i[e.path]&&i[e.path].dependencies;n="undefined"!=typeof n?n:i.suffix,o.onPreRequest(e,n||!1),t&&(e.enqueue=demand.apply(null,t).then)},onPreProcess:function(e){var n=i[e.path]&&i[e.path].dependencies;n&&"boolean"==typeof e.enqueue&&(e.enqueue=demand.apply(null,n).then((function(){return new t(d)})))},process:function(e){var t=a.bind(e);!0===e.enqueue?t():e.enqueue.then(t,(function(){e.dfd.reject(new n("error resolving",e.path,arguments))}))}},new(p.extends(o))}))}(); //# sourceMappingURL=legacy.js.map diff --git a/dist/handler/text.js b/dist/handler/text.js index 01a0f45..8df3dd9 100644 --- a/dist/handler/text.js +++ b/dist/handler/text.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 8.0.1 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ +/**! Qoopido.demand 8.0.2 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ !function(){"use strict";provide(["path","/demand/abstract/handler","/demand/validator/isObject","/demand/function/merge"],(function(n,e,t,r){var o=/^text\/.+/,u={};function i(){}return demand.on("postConfigure:"+n,(function(n){t(n)&&r(u,n)})),i.prototype={validate:function(n){return o.test(n)},onPreRequest:function(n,e){var t;(e="undefined"!=typeof e?e:u.suffix)&&(t=n.url.pathname,n.url.pathname=t.slice(-e.length)!==e?t+e:t)},process:function(n){provide((function(){return n.source}))}},new(i.extends(e))}))}(); //# sourceMappingURL=text.js.map diff --git a/dist/plugin/cookie.js b/dist/plugin/cookie.js index 1c97a22..3ead15f 100644 --- a/dist/plugin/cookie.js +++ b/dist/plugin/cookie.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 8.0.1 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ +/**! Qoopido.demand 8.0.2 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ !function(n){"use strict";provide(["path","/demand/function/iterate","/demand/validator/isObject","/demand/validator/isTypeOf"],(function(t,e,o,i){var a,c="Thu, 01 Jan 1970 00:00:00 GMT",r=[];function u(t,e,o){(a||function(n){for(var t,e,o=0;t=r[o];o++)0===n.indexOf(t.pattern)&&(!e||t.weight>e.weight)&&(e=t);return!!e&&e.state}(t.path))&&(n.cookie="demand["+t.type+"]["+t.path+"]="+encodeURIComponent(e)+"; expires="+o+"; path=/")}return demand.on("postConfigure:"+t,(function(n){o(n)?(r.length=0,e(n,(function(n,t){r.push({pattern:n,weight:n.length,state:t})}))):i(n,"boolean")&&(a=n)})).on("cacheMiss",(function(n){u(n,"",c)})).on("cacheClear",(function(n){u(n,"",c)})).on("postCache",(function(n,t){u(n,JSON.stringify(t),"Fri, 31 Dec 9999 23:59:59 GMT")})),!0}))}(document); //# sourceMappingURL=cookie.js.map diff --git a/dist/plugin/lzstring.js b/dist/plugin/lzstring.js index 0cb2bb3..6c98421 100644 --- a/dist/plugin/lzstring.js +++ b/dist/plugin/lzstring.js @@ -1,3 +1,3 @@ -/**! Qoopido.demand 8.0.1 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ +/**! Qoopido.demand 8.0.2 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ var LZString=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",t={};function e(n,r){if(!t[n]){t[n]={};for(var o=0;o>>8,o[2*t+1]=s%256}return o},decompressFromUint8Array:function(r){if(null==r)return i.decompress(r);for(var o=new Array(r.length/2),t=0,e=o.length;t>=1}else{for(e=1,t=0;t>=1}0==--f&&(f=Math.pow(2,h),h++),delete u[p]}else for(e=s[p],t=0;t>=1;0==--f&&(f=Math.pow(2,h),h++),s[c]=l++,p=String(a)}if(""!==p){if(Object.prototype.hasOwnProperty.call(u,p)){if(p.charCodeAt(0)<256){for(t=0;t>=1}else{for(e=1,t=0;t>=1}0==--f&&(f=Math.pow(2,h),h++),delete u[p]}else for(e=s[p],t=0;t>=1;0==--f&&(f=Math.pow(2,h),h++)}for(e=2,t=0;t>=1;for(;;){if(m<<=1,g==r-1){d.push(o(m));break}g++}return d.join("")},decompress:function(n){return null==n?"":""==n?null:i._decompress(n.length,32768,(function(r){return n.charCodeAt(r)}))},_decompress:function(r,o,t){var e,i,s,u,a,c,p,f=[],l=4,h=4,d=3,m="",g=[],v={val:t(0),position:o,index:1};for(e=0;e<3;e+=1)f[e]=e;for(s=0,a=Math.pow(2,2),c=1;c!=a;)u=v.val&v.position,v.position>>=1,0==v.position&&(v.position=o,v.val=t(v.index++)),s|=(u>0?1:0)*c,c<<=1;switch(s){case 0:for(s=0,a=Math.pow(2,8),c=1;c!=a;)u=v.val&v.position,v.position>>=1,0==v.position&&(v.position=o,v.val=t(v.index++)),s|=(u>0?1:0)*c,c<<=1;p=n(s);break;case 1:for(s=0,a=Math.pow(2,16),c=1;c!=a;)u=v.val&v.position,v.position>>=1,0==v.position&&(v.position=o,v.val=t(v.index++)),s|=(u>0?1:0)*c,c<<=1;p=n(s);break;case 2:return""}for(f[3]=p,i=p,g.push(p);;){if(v.index>r)return"";for(s=0,a=Math.pow(2,d),c=1;c!=a;)u=v.val&v.position,v.position>>=1,0==v.position&&(v.position=o,v.val=t(v.index++)),s|=(u>0?1:0)*c,c<<=1;switch(p=s){case 0:for(s=0,a=Math.pow(2,8),c=1;c!=a;)u=v.val&v.position,v.position>>=1,0==v.position&&(v.position=o,v.val=t(v.index++)),s|=(u>0?1:0)*c,c<<=1;f[h++]=n(s),p=h-1,l--;break;case 1:for(s=0,a=Math.pow(2,16),c=1;c!=a;)u=v.val&v.position,v.position>>=1,0==v.position&&(v.position=o,v.val=t(v.index++)),s|=(u>0?1:0)*c,c<<=1;f[h++]=n(s),p=h-1,l--;break;case 2:return g.join("")}if(0==l&&(l=Math.pow(2,d),d++),f[p])m=f[p];else{if(p!==h)return null;m=i+i.charAt(0)}g.push(m),f[h++]=i+m.charAt(0),i=m,0==--l&&(l=Math.pow(2,d),d++)}}};return i}();"function"==typeof define&&define.amd?define((function(){return LZString})):"undefined"!=typeof module&&null!=module?module.exports=LZString:"undefined"!=typeof angular&&null!=angular&&angular.module("LZString",[]).factory("LZString",(function(){return LZString})),function(n){"use strict";provide(["path","/demand/function/iterate","/demand/validator/isObject","/demand/validator/isTypeOf"],(function(r,o,t,e){var i=[{pattern:r,weight:r.length,state:!1}],s={};function u(n){for(var r,o,t=0;r=i[t];t++)0===n.indexOf(r.pattern)&&(!o||r.weight>o.weight)&&(o=r);return!!o&&o.state}return demand.on("postConfigure:"+r,(function(n){t(n)?(i.length=0,o(n,(function(n,r){i.push({pattern:n,weight:n.length,state:r})}))):e(n,"boolean")&&i.push({pattern:"",weight:0,state:n})})).on("cacheHit",(function(n){u(n.path)&&(s[n.id]=!0)})).on("preCache",(function(r){u(r.path)&&(r.source=n.LZString.compressToUTF16(r.source))})).on("preProcess",(function(r){s[r.id]&&(r.source=n.LZString.decompressFromUTF16(r.source))})),!0}))}(this); //# sourceMappingURL=lzstring.js.map diff --git a/dist/plugin/sri.js b/dist/plugin/sri.js index e784dee..ca90eba 100644 --- a/dist/plugin/sri.js +++ b/dist/plugin/sri.js @@ -1,4 +1,4 @@ -/**! Qoopido.demand 8.0.1 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ +/**! Qoopido.demand 8.0.2 | https://github.com/dlueth/qoopido.demand | (c) 2021 Dirk Lueth */ /** * @preserve A JavaScript implementation of the SHA family of hashes, as * defined in FIPS PUB 180-4 and FIPS PUB 202, as well as the corresponding diff --git a/package.json b/package.json index 314ed45..1ec23ff 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "qoopido.demand", "title": "Qoopido.demand", "description": "Promise like module loader using XHR requests and localStorage caching to dynamically load JavaScript and CSS + dynamic dependency resolution + support for custom handlers", - "version": "8.0.1", + "version": "8.0.2", "homepage": "https://github.com/dlueth/qoopido.demand", "author": { "name": "Dirk Lueth", diff --git a/src/demand.js b/src/demand.js index e52da33..8273e14 100644 --- a/src/demand.js +++ b/src/demand.js @@ -27,7 +27,7 @@ //=require function/provide.js // process initial configuration - demand.configure({ cache: TRUE, base: '/', pattern: { '/demand': functionResolveUrl(((options && options.url) || location.href) + '/../').slice(0, -1)} }); + demand.configure({ cache: TRUE, base: '/', pattern: { '/demand': functionResolveUrl(((options && options.url) || location.pathname) + '/../').slice(0, -1)} }); options && options.settings && demand.configure(options.settings); // include additional components