Skip to content
Browse files

updated to 0.7.2

  • Loading branch information...
1 parent caf56ba commit 1abdc2bab87e277b4b00ae8cf8832b423fd02d8e @unscriptable unscriptable committed
View
5 README.md
@@ -26,6 +26,11 @@ IE10 compatibility: the following commits are compatible with IE10 (and Safari 6
* [0.6.8](https://github.com/cujojs/curl/tree/3568bea941a6a6068995bfbeb56fa72c65835056)
* [0.6.2a](https://github.com/cujojs/curl/tree/2683057e4cdf45eec44dd69dfd814ece75b7ae70)
+* 0.7.2
+ * css! plugin now works everywhere (closed an Opera-XDomain issue).
+ * css! plugin now returns the stylesheet created (as it used to, but for
+ all browsers).
+ * curl() error handler is called even if no success handler is specified.
* 0.7.1
* fixed inability to load non-anonymous "main" modules (packages) (also #138)
* restored ability to use urls in place of module ids as dependencies
View
38 dist/curl-for-dojo1.6/curl.js
@@ -1,22 +1,22 @@
(function(){/*
MIT License (c) copyright B Cavalier & J Hann */
-var h=!0,k=!1,l=this.window||global;function m(){}function p(a,b){return 0==aa.call(a).indexOf("[object "+b)}function r(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function s(a,b){var c,d,e,g;c=1;d=a;"."==d.charAt(0)&&(e=h,d=d.replace(ba,function(a,b,d,e){d&&c++;return e||""}));if(e){e=b.split("/");g=e.length-c;if(0>g)return a;e.splice(g,c);return e.concat(d||[]).join("/")}return d}function t(a){var b=a.indexOf("!");return{m:a.substr(b+1),j:0<=b&&a.substr(0,b)}}function u(){}
-function v(a,b){u.prototype=a||w;var c=new u;u.prototype=w;for(var d in b)c[d]=b[d];return c}function y(){function a(a,b,e){d.push([a,b,e])}function b(a,b){for(var e,c=0;e=d[c++];)(e=e[a])&&e(b)}var c,d,e;c=this;d=[];e=function(c,f){a=c?function(a){a&&a(f)}:function(a,b){b&&b(f)};e=m;b(c?0:1,f);b=m;d=z};this.X=function(b,d,e){a(b,d,e)};this.g=function(a){c.ba=a;e(h,a)};this.f=function(a){c.aa=a;e(k,a)};this.q=function(a){b(2,a)}}function A(a,b,c,d){a instanceof y?a.X(b,c,d):b(a)}
-function B(a,b,c){var d;return function(){0<=--a&&b&&(d=b.apply(z,arguments));0==a&&c&&c(d);return d}}function C(){function a(b,e,c,f){var i;i=D.d(G,z,[].concat(b));this.then=b=function(a,b){A(i,function(b){a&&a.apply(z,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(b,d,e){return new a(b,d,e,i)};e&&b(e,c);A(f,function(){D.i(i)})}var b=[].slice.call(arguments),c;p(b[0],"Object")&&(c=b.shift(),G=D.a(c,G),D.t(c));return new a(b[0],b[1],b[2])}
-function H(a){var b,c;b=a.id;if(b==z)if(I!==z)I={A:"Multiple anonymous defines in url"};else if(!(b=D.R()))I=a;if(b!=z){c=J[b];b in J||(c=D.l(b,G),c=D.v(c.a,b),J[b]=c);if(!(c instanceof y))throw Error("duplicate define: "+b);c.Y=k;D.w(c,a)}}
-var G,K,L,M=l.document,N=M&&(M.head||M.getElementsByTagName("head")[0]),ca=N&&N.getElementsByTagName("base")[0]||null,O={},da={},P={},ea="addEventListener"in l?{}:{loaded:1,complete:1},w={},aa=w.toString,z,J={},Q={},R=k,I,fa=/\?/,ga=/^\/|^[^:]+:\/\//,ba=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,ha=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,ia=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,S,D;
-D={h:function(a,b,c){var d,a=s(a,b);if("."==a.charAt(0))return a;d=t(a);a=(b=d.j)||d.m;a in c.c&&(a=c.c[a].U||a);b&&(0>b.indexOf("/")&&!(b in c.c)&&(a=r(c.W)+"/"+b),a=a+"!"+d.m);return a},d:function(a,b,c,d){function e(b){return D.h(b,f.id,a)}function g(b,c,g){var j;j=c&&function(a){c.apply(z,a)};if(p(b,"String")){if(j)throw Error("require(id, callback) not allowed");g=e(b);b=J[g];if(!(g in J))throw Error("Module not resolved: "+g);return(g=b instanceof y&&b.b)||b}A(D.i(D.d(a,f.id,b,d)),j,g)}var f;
-f=new y;f.id=b||"";f.S=d;f.z=c;f.a=a;f.k=g;g.toUrl=function(b){return D.l(e(b),a).url};f.h=e;return f},v:function(a,b,c){var d,e,g;d=D.d(a,b,z,c);e=d.g;g=B(1,function(a){d.o=a;try{return D.K(d)}catch(b){d.f(b)}});d.g=function(a){A(c||R,function(){e(J[d.id]=Q[d.url]=g(a))})};d.B=function(a){A(c||R,function(){d.b&&(g(a),d.q(da))})};return d},I:function(a,b,c,d){return D.d(a,c,z,d)},Q:function(a){return a.k},C:function(a){return a.b||(a.b={})},P:function(a){var b=a.p;b||(b=a.p={id:a.id,uri:D.D(a),exports:D.C(a),
-config:function(){return a.a}},b.b=b.exports);return b},D:function(a){return a.url||(a.url=D.u(a.k.toUrl(a.id),a.a))},a:function(a){var b,c,d,e,g,f;b=!a;a&&(D.a=D.F);a||(a={});d=a.apiName||"curl";e=a.apiContext||l;g=a.defineName||"define";f=a.defineContext||l;c=a.overwriteApi;!b&&K&&(l.curl=K,K=k);if(!b&&!c&&e[d]&&e[d]!=C)throw Error(d+" already exists");e[d]=C;if(!b||!l.define){if(!b&&!c&&g in f&&f[g]!=L)throw Error(g+" already exists");f[g]=L=function(){var a=D.O(arguments);H(a)};L.amd={plugins:h,
-jQuery:h,curl:"0.7.1"}}return D.F(a)},F:function(a,b){function c(a,b){var d,c,f,i,E;for(E in a){f=a[E];p(f,"String")&&(f={path:a[E]});f.name=f.name||E;i=e;c=t(r(D.h(f.name,"",e)));d=c.m;if(c=c.j)i=g[c],i||(i=g[c]=v(e),i.c=v(e.c),i.e=[]),delete a[E];if(b){c=f;var F=void 0;c.path=r(c.path||c.location||"");F=c.main||"./main";"."==F.charAt(0)||(F="./"+F);c.U=s(F,c.name+"/");c.a=c.config;c.a&&(c.a=v(e,c.a))}else c={path:r(f.path)};c.H=d.split("/").length;d?(i.c[d]=c,i.e.push(d)):i.s=D.G(f.path,e)}}function d(a){var b=
-a.c;a.V=RegExp("^("+a.e.sort(function(a,c){return b[c].H-b[a].H}).join("|").replace(/\/|\./g,"\\$&")+")(?=\\/|$)");delete a.e}var e,g,f,i;b||(b={});e=v(b,a);e.s=e.baseUrl||"";e.W=e.pluginPath||"curl/plugin";e.J=RegExp(e.dontAddFileExt||fa);e.c=v(b.c);g=a.plugins||{};e.plugins=v(b.plugins);e.e=[];c(a.packages,h);c(a.paths,k);for(f in g)i=D.h(f+"!","",e),e.plugins[i.substr(0,i.length-1)]=g[f];g=e.plugins;for(f in g)if(g[f]=v(e,g[f]),i=g[f].e)g[f].e=i.concat(e.e),d(g[f]);d(e);return e},t:function(a){var b;
-(b=a&&a.preloads)&&0<b.length&&A(R,function(){R=D.i(D.d(G,z,b,h))})},l:function(a,b){var c,d,e,g;c=b.c;e=ga.test(a)?a:a.replace(b.V,function(a){d=c[a]||{};g=d.a;return d.path||""});return{a:g||G,url:D.G(e,b)}},G:function(a,b){var c=b.s;return c&&!ga.test(a)?r(c)+"/"+a:a},u:function(a,b){return a+((b||G).J.test(a)?"":".js")},T:function(a,b,c){var d=M.createElement("script");d.onload=d.onreadystatechange=function(c){c=c||l.event;if("load"==c.type||ea[d.readyState])delete P[a.id],d.onload=d.onreadystatechange=
-d.onerror="",b()};d.onerror=function(){c(Error("Syntax or http error: "+a.url))};d.type=a.Z||"text/javascript";d.charset="utf-8";d.async=!a.$;d.src=a.url;P[a.id]=d;N.insertBefore(d,ca);return d},L:function(a){var b=[],c;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(ha,"").replace(ia,function(a,e,g){g?c=c==g?z:c:c||b.push(e);return""});return b},O:function(a){var b,c,d,e,g,f;g=a.length;d=a[g-1];e=p(d,"Function")?d.length:-1;2==g?p(a[0],"Array")?c=a[0]:b=a[0]:3==g&&(b=a[0],c=a[1]);
-!c&&0<e&&(f=h,c=["require","exports","module"].slice(0,e).concat(D.L(d)));return{id:b,o:c||[],r:0<=e?d:function(){return d},n:f}},K:function(a){var b;b=a.r.apply(a.n?a.b:z,a.o);b===z&&a.b&&(b=a.p?a.b=a.p.b:a.b);return b},w:function(a,b){a.r=b.r;a.n=b.n;a.z=b.o;D.i(a)},i:function(a){function b(a,b,c){f[b]=a;c&&q(a,b)}function c(b,c){var d,e,g,f;d=B(1,function(a){e(a);j(a,c)});e=B(1,function(a){q(a,c)});g=D.M(b,a);(f=g instanceof y&&g.b)&&e(f);A(g,d,a.f,a.b&&function(a){g.b&&(a==O?e(g.b):a==da&&d(g.b))})}
-function d(){a.g(f)}var e,g,f,i,n,q,j;f=[];g=a.z;i=g.length;0==g.length&&d();q=B(i,b,function(){a.B&&a.B(f)});j=B(i,b,d);for(e=0;e<i;e++)n=g[e],n in S?(j(S[n](a),e,h),a.b&&a.q(O)):n?c(n,e):j(z,e,h);return a},N:function(a){D.D(a);D.T(a,function(){var b=I;I=z;a.Y!==k&&(!b||b.A?a.f(Error(b&&b.A||"define() missing or duplicated: "+a.url)):D.w(a,b))},a.f);return a},M:function(a,b){var c,d,e,g,f,i,n,q,j,x,U;c=b.h;d=b.S;e=b.a||G;g=t(c(a));n=g.m;f=g.j||n;q=D.l(f,e);if(g.j)i=f;else if(i=q.a.moduleLoader)n=
-f,f=i,q=D.l(i,e);f in J?j=J[f]:q.url in Q?j=J[f]=Q[q.url]:(j=D.v(q.a,f,d),j.url=D.u(q.url,q.a),J[f]=Q[q.url]=j,D.N(j));f==i&&(x=new y,U=e.plugins[i]||e,A(j,function(a){var b,e,g;g=a.dynamic;n="normalize"in a?a.normalize(n,c,j.a)||"":c(n);e=i+"!"+n;b=J[e];if(!(e in J)){b=D.I(U,e,n,d);g||(J[e]=b);var f=function(a){b.g(a);g||(J[e]=a)};f.resolve=f;f.reject=f.error=b.f;a.load(n,b.k,f,U)}x!=b&&A(b,x.g,x.f,x.q)},x.f));return x||j},R:function(){var a;if(!p(l.opera,"Opera"))for(var b in P)if("interactive"==
-P[b].readyState){a=b;break}return a}};S={require:D.Q,exports:D.C,module:D.P};C.version="0.7.1";G=l.curl;"function"==typeof G?(K=G,G=k):l.curl=z;G=D.a(G);D.t(G);J.curl=C;J["curl/_privileged"]={core:D,cache:J,config:function(){return G},_define:H,_curl:C,Promise:y};var T=this.document;function ja(){if(!T.body)return k;V||(V=T.createTextNode(""));try{return T.body.removeChild(T.body.appendChild(V)),V=ka,h}catch(a){return k}}
-function W(){var a;a=la[T[X]]&&ja();if(!Y&&a){Y=h;for(clearTimeout(Z);ma=na.pop();)ma();oa&&(T[X]="complete");for(var b;b=pa.shift();)b()}return a}function qa(){W();Y||(Z=setTimeout(qa,ra))}var X="readyState",la={loaded:1,interactive:1,complete:1},pa=[],oa=T&&"string"!=typeof T[X],Y=k,ra=10,$,ma,na=[],Z,ka,V;$="addEventListener"in this?function(a,b){a.addEventListener(b,W,k);return function(){a.removeEventListener(b,W,k)}}:function(a,b){a.attachEvent("on"+b,W);return function(){a.detachEvent(b,W)}};
-T&&!W()&&(na=[$(this,"load"),$(T,"readystatechange"),$(this,"DOMContentLoaded")],Z=setTimeout(qa,ra));define("curl/domReady",function(){function a(a){Y?a():pa.push(a)}a.then=a;a.amd=h;return a});var sa;
-define("curl/shim/dojo16",["curl/_privileged","curl/domReady"],function(a,b){function c(a){a.ready||(a.ready=function(a){b(a)});a.nameToUrl||(a.nameToUrl=function(b,c){return a.toUrl(b+(c||""))});a.cache||(a.cache={})}var d=a._curl,e=a.core.d;c(d);"undefined"==typeof sa&&(sa=d);a.core.d=function(){var a=e.apply(this,arguments);c(a.k);return a};return h});define("curl/plugin/domReady",["../domReady"],function(a){return{load:function(b,c,d){a(d)}}});
+var h=!0,k=!1,l=this.window||global;function m(){}function p(a,b){return 0==aa.call(a).indexOf("[object "+b)}function r(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function s(a,b){var c,d,e,f;c=1;d=a;"."==d.charAt(0)&&(e=h,d=d.replace(ba,function(a,b,d,f){d&&c++;return f||""}));if(e){e=b.split("/");f=e.length-c;if(0>f)return a;e.splice(f,c);return e.concat(d||[]).join("/")}return d}function t(a){var b=a.indexOf("!");return{m:a.substr(b+1),j:0<=b&&a.substr(0,b)}}function u(){}
+function v(a,b){u.prototype=a||w;var c=new u;u.prototype=w;for(var d in b)c[d]=b[d];return c}function y(){function a(a,b,e){d.push([a,b,e])}function b(a,b){for(var e,c=0;e=d[c++];)(e=e[a])&&e(b)}var c,d,e;c=this;d=[];e=function(f,c){a=f?function(a){a&&a(c)}:function(a,b){b&&b(c)};e=m;b(f?0:1,c);b=m;d=z};this.X=function(b,d,e){a(b,d,e)};this.g=function(a){c.ba=a;e(h,a)};this.f=function(a){c.aa=a;e(k,a)};this.q=function(a){b(2,a)}}function A(a,b,c,d){a instanceof y?a.X(b,c,d):b(a)}
+function B(a,b,c){var d;return function(){0<=--a&&b&&(d=b.apply(z,arguments));0==a&&c&&c(d);return d}}function C(){var a=[].slice.call(arguments),b;p(a[0],"Object")&&(b=a.shift(),D=G.a(b,D),G.t(b));return new H(a[0],a[1],a[2])}function H(a,b,c,d){var e;e=G.d(D,z,[].concat(a));this.then=a=function(a,b){A(e,function(b){a&&a.apply(z,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(a,b,d){return new H(a,b,d,e)};(b||c)&&a(b,c);A(d,function(){G.i(e)})}
+function I(a){var b,c;b=a.id;if(b==z)if(J!==z)J={A:"Multiple anonymous defines in url"};else if(!(b=G.R()))J=a;if(b!=z){c=K[b];b in K||(c=G.l(b,D),c=G.v(c.a,b),K[b]=c);if(!(c instanceof y))throw Error("duplicate define: "+b);c.Y=k;G.w(c,a)}}
+var D,L,M,N=l.document,O=N&&(N.head||N.getElementsByTagName("head")[0]),ca=O&&O.getElementsByTagName("base")[0]||null,da={},ea={},P={},fa="addEventListener"in l?{}:{loaded:1,complete:1},w={},aa=w.toString,z,K={},Q={},R=k,J,ga=/\?/,ha=/^\/|^[^:]+:\/\//,ba=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,ia=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,ja=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,S,G;
+G={h:function(a,b,c){var d,a=s(a,b);if("."==a.charAt(0))return a;d=t(a);a=(b=d.j)||d.m;a in c.c&&(a=c.c[a].U||a);b&&(0>b.indexOf("/")&&!(b in c.c)&&(a=r(c.W)+"/"+b),a=a+"!"+d.m);return a},d:function(a,b,c,d){function e(b){return G.h(b,g.id,a)}function f(b,c,f){var j;j=c&&function(a){c.apply(z,a)};if(p(b,"String")){if(j)throw Error("require(id, callback) not allowed");f=e(b);b=K[f];if(!(f in K))throw Error("Module not resolved: "+f);return(f=b instanceof y&&b.b)||b}A(G.i(G.d(a,g.id,b,d)),j,f)}var g;
+g=new y;g.id=b||"";g.S=d;g.z=c;g.a=a;g.k=f;f.toUrl=function(b){return G.l(e(b),a).url};g.h=e;return g},v:function(a,b,c){var d,e,f;d=G.d(a,b,z,c);e=d.g;f=B(1,function(a){d.o=a;try{return G.K(d)}catch(b){d.f(b)}});d.g=function(a){A(c||R,function(){e(K[d.id]=Q[d.url]=f(a))})};d.B=function(a){A(c||R,function(){d.b&&(f(a),d.q(ea))})};return d},I:function(a,b,c,d){return G.d(a,c,z,d)},Q:function(a){return a.k},C:function(a){return a.b||(a.b={})},P:function(a){var b=a.p;b||(b=a.p={id:a.id,uri:G.D(a),exports:G.C(a),
+config:function(){return a.a}},b.b=b.exports);return b},D:function(a){return a.url||(a.url=G.u(a.k.toUrl(a.id),a.a))},a:function(a){var b,c,d,e,f,g;b=!a;a&&(G.a=G.F);a||(a={});d=a.apiName||"curl";e=a.apiContext||l;f=a.defineName||"define";g=a.defineContext||l;c=a.overwriteApi;!b&&L&&(l.curl=L,L=k);if(!b&&!c&&e[d]&&e[d]!=C)throw Error(d+" already exists");e[d]=C;if(!b||!l.define){if(!b&&!c&&f in g&&g[f]!=M)throw Error(f+" already exists");g[f]=M=function(){var a=G.O(arguments);I(a)};M.amd={plugins:h,
+jQuery:h,curl:"0.7.2"}}return G.F(a)},F:function(a,b){function c(a,b){var d,c,g,i,E;for(E in a){g=a[E];p(g,"String")&&(g={path:a[E]});g.name=g.name||E;i=e;c=t(r(G.h(g.name,"",e)));d=c.m;if(c=c.j)i=f[c],i||(i=f[c]=v(e),i.c=v(e.c),i.e=[]),delete a[E];if(b){c=g;var F=void 0;c.path=r(c.path||c.location||"");F=c.main||"./main";"."==F.charAt(0)||(F="./"+F);c.U=s(F,c.name+"/");c.a=c.config;c.a&&(c.a=v(e,c.a))}else c={path:r(g.path)};c.H=d.split("/").length;d?(i.c[d]=c,i.e.push(d)):i.s=G.G(g.path,e)}}function d(a){var b=
+a.c;a.V=RegExp("^("+a.e.sort(function(a,c){return b[c].H-b[a].H}).join("|").replace(/\/|\./g,"\\$&")+")(?=\\/|$)");delete a.e}var e,f,g,i;b||(b={});e=v(b,a);e.s=e.baseUrl||"";e.W=e.pluginPath||"curl/plugin";e.J=RegExp(e.dontAddFileExt||ga);e.c=v(b.c);f=a.plugins||{};e.plugins=v(b.plugins);e.e=[];c(a.packages,h);c(a.paths,k);for(g in f)i=G.h(g+"!","",e),e.plugins[i.substr(0,i.length-1)]=f[g];f=e.plugins;for(g in f)if(f[g]=v(e,f[g]),i=f[g].e)f[g].e=i.concat(e.e),d(f[g]);d(e);return e},t:function(a){var b;
+(b=a&&a.preloads)&&0<b.length&&A(R,function(){R=G.i(G.d(D,z,b,h))})},l:function(a,b){var c,d,e,f;c=b.c;e=ha.test(a)?a:a.replace(b.V,function(a){d=c[a]||{};f=d.a;return d.path||""});return{a:f||D,url:G.G(e,b)}},G:function(a,b){var c=b.s;return c&&!ha.test(a)?r(c)+"/"+a:a},u:function(a,b){return a+((b||D).J.test(a)?"":".js")},T:function(a,b,c){var d=N.createElement("script");d.onload=d.onreadystatechange=function(c){c=c||l.event;if("load"==c.type||fa[d.readyState])delete P[a.id],d.onload=d.onreadystatechange=
+d.onerror="",b()};d.onerror=function(){c(Error("Syntax or http error: "+a.url))};d.type=a.Z||"text/javascript";d.charset="utf-8";d.async=!a.$;d.src=a.url;P[a.id]=d;O.insertBefore(d,ca);return d},L:function(a){var b=[],c;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(ia,"").replace(ja,function(a,e,f){f?c=c==f?z:c:c||b.push(e);return""});return b},O:function(a){var b,c,d,e,f,g;f=a.length;d=a[f-1];e=p(d,"Function")?d.length:-1;2==f?p(a[0],"Array")?c=a[0]:b=a[0]:3==f&&(b=a[0],c=a[1]);
+!c&&0<e&&(g=h,c=["require","exports","module"].slice(0,e).concat(G.L(d)));return{id:b,o:c||[],r:0<=e?d:function(){return d},n:g}},K:function(a){var b;b=a.r.apply(a.n?a.b:z,a.o);b===z&&a.b&&(b=a.p?a.b=a.p.b:a.b);return b},w:function(a,b){a.r=b.r;a.n=b.n;a.z=b.o;G.i(a)},i:function(a){function b(a,b,c){g[b]=a;c&&q(a,b)}function c(b,c){var d,e,f,g;d=B(1,function(a){e(a);j(a,c)});e=B(1,function(a){q(a,c)});f=G.M(b,a);(g=f instanceof y&&f.b)&&e(g);A(f,d,a.f,a.b&&function(a){f.b&&(a==da?e(f.b):a==ea&&d(f.b))})}
+function d(){a.g(g)}var e,f,g,i,n,q,j;g=[];f=a.z;i=f.length;0==f.length&&d();q=B(i,b,function(){a.B&&a.B(g)});j=B(i,b,d);for(e=0;e<i;e++)n=f[e],n in S?(j(S[n](a),e,h),a.b&&a.q(da)):n?c(n,e):j(z,e,h);return a},N:function(a){G.D(a);G.T(a,function(){var b=J;J=z;a.Y!==k&&(!b||b.A?a.f(Error(b&&b.A||"define() missing or duplicated: "+a.url)):G.w(a,b))},a.f);return a},M:function(a,b){var c,d,e,f,g,i,n,q,j,x,U;c=b.h;d=b.S;e=b.a||D;f=t(c(a));n=f.m;g=f.j||n;q=G.l(g,e);if(f.j)i=g;else if(i=q.a.moduleLoader)n=
+g,g=i,q=G.l(i,e);g in K?j=K[g]:q.url in Q?j=K[g]=Q[q.url]:(j=G.v(q.a,g,d),j.url=G.u(q.url,q.a),K[g]=Q[q.url]=j,G.N(j));g==i&&(x=new y,U=e.plugins[i]||e,A(j,function(a){var b,e,f;f=a.dynamic;n="normalize"in a?a.normalize(n,c,j.a)||"":c(n);e=i+"!"+n;b=K[e];if(!(e in K)){b=G.I(U,e,n,d);f||(K[e]=b);var g=function(a){b.g(a);f||(K[e]=a)};g.resolve=g;g.reject=g.error=b.f;a.load(n,b.k,g,U)}x!=b&&A(b,x.g,x.f,x.q)},x.f));return x||j},R:function(){var a;if(!p(l.opera,"Opera"))for(var b in P)if("interactive"==
+P[b].readyState){a=b;break}return a}};S={require:G.Q,exports:G.C,module:G.P};C.version="0.7.2";D=l.curl;"function"==typeof D?(L=D,D=k):l.curl=z;D=G.a(D);G.t(D);K.curl=C;K["curl/_privileged"]={core:G,cache:K,config:function(){return D},_define:I,_curl:C,Promise:y};var T=this.document;function ka(){if(!T.body)return k;V||(V=T.createTextNode(""));try{return T.body.removeChild(T.body.appendChild(V)),V=la,h}catch(a){return k}}
+function W(){var a;a=ma[T[X]]&&ka();if(!Y&&a){Y=h;for(clearTimeout(Z);na=oa.pop();)na();pa&&(T[X]="complete");for(var b;b=qa.shift();)b()}return a}function ra(){W();Y||(Z=setTimeout(ra,sa))}var X="readyState",ma={loaded:1,interactive:1,complete:1},qa=[],pa=T&&"string"!=typeof T[X],Y=k,sa=10,$,na,oa=[],Z,la,V;$="addEventListener"in this?function(a,b){a.addEventListener(b,W,k);return function(){a.removeEventListener(b,W,k)}}:function(a,b){a.attachEvent("on"+b,W);return function(){a.detachEvent(b,W)}};
+T&&!W()&&(oa=[$(this,"load"),$(T,"readystatechange"),$(this,"DOMContentLoaded")],Z=setTimeout(ra,sa));define("curl/domReady",function(){function a(a){Y?a():qa.push(a)}a.then=a;a.amd=h;return a});var ta;
+define("curl/shim/dojo16",["curl/_privileged","curl/domReady"],function(a,b){function c(a){a.ready||(a.ready=function(a){b(a)});a.nameToUrl||(a.nameToUrl=function(b,c){return a.toUrl(b+(c||""))});a.cache||(a.cache={})}var d=a._curl,e=a.core.d;c(d);"undefined"==typeof ta&&(ta=d);a.core.d=function(){var a=e.apply(this,arguments);c(a.k);return a};return h});define("curl/plugin/domReady",["../domReady"],function(a){return{load:function(b,c,d){a(d)}}});
}).call(this);
View
42 dist/curl-for-jQuery/curl.js
@@ -1,25 +1,25 @@
(function(){/*
MIT License (c) copyright B Cavalier & J Hann */
var h=!0,l=!1,m=this.window||global;function n(){}function p(a,b){return 0==aa.call(a).indexOf("[object "+b)}function t(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function ba(a,b){var d,c,e,g;d=1;c=a;"."==c.charAt(0)&&(e=h,c=c.replace(ca,function(a,b,c,e){c&&d++;return e||""}));if(e){e=b.split("/");g=e.length-d;if(0>g)return a;e.splice(g,d);return e.concat(c||[]).join("/")}return c}function u(a){var b=a.indexOf("!");return{l:a.substr(b+1),j:0<=b&&a.substr(0,b)}}
-function v(){}function w(a,b){v.prototype=a||z;var d=new v;v.prototype=z;for(var c in b)d[c]=b[c];return d}function A(){function a(a,b,e){c.push([a,b,e])}function b(a,b){for(var e,d=0;e=c[d++];)(e=e[a])&&e(b)}var d,c,e;d=this;c=[];e=function(d,f){a=d?function(a){a&&a(f)}:function(a,b){b&&b(f)};e=n;b(d?0:1,f);b=n;c=B};this.t=function(b,c,e){a(b,c,e)};this.f=function(a){d.s=a;e(h,a)};this.d=function(a){d.ca=a;e(l,a)};this.p=function(a){b(2,a)}}function D(a,b,d,c){a instanceof A?a.t(b,d,c):b(a)}
-function E(a,b,d){var c;return function(){0<=--a&&b&&(c=b.apply(B,arguments));0==a&&d&&d(c);return c}}function F(){function a(b,e,d,f){var i;i=G.g(H,B,[].concat(b));this.then=b=function(a,b){D(i,function(b){a&&a.apply(B,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(b,c,e){return new a(b,c,e,i)};e&&b(e,d);D(f,function(){G.i(i)})}var b=[].slice.call(arguments),d;p(b[0],"Object")&&(d=b.shift(),H=G.b(d,H),G.v(d));return new a(b[0],b[1],b[2])}
-function da(a){var b,d;b=a.id;if(b==B)if(I!==B)I={C:"Multiple anonymous defines in url"};else if(!(b=G.V()))I=a;if(b!=B){d=J[b];b in J||(d=G.k(b,H),d=G.z(d.b,b),J[b]=d);if(!(d instanceof A))throw Error("duplicate define: "+b);d.ba=l;G.A(d,a)}}
-var H,K,L,M=m.document,N=M&&(M.head||M.getElementsByTagName("head")[0]),ea=N&&N.getElementsByTagName("base")[0]||null,ga={},ha={},P={},ia="addEventListener"in m?{}:{loaded:1,complete:1},z={},aa=z.toString,B,J={},Q={},R=l,I,ja=/\?/,ka=/^\/|^[^:]+:\/\//,ca=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,la=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,ma=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,S,G;
-G={h:function(a,b,d){var c,a=ba(a,b);if("."==a.charAt(0))return a;c=u(a);a=(b=c.j)||c.l;a in d.c&&(a=d.c[a].X||a);b&&(0>b.indexOf("/")&&!(b in d.c)&&(a=t(d.$)+"/"+b),a=a+"!"+c.l);return a},g:function(a,b,d,c){function e(b){return G.h(b,f.id,a)}function g(b,d,g){var j;j=d&&function(a){d.apply(B,a)};if(p(b,"String")){if(j)throw Error("require(id, callback) not allowed");g=e(b);b=J[g];if(!(g in J))throw Error("Module not resolved: "+g);return(g=b instanceof A&&b.a)||b}D(G.i(G.g(a,f.id,b,c)),j,g)}var f;
-f=new A;f.id=b||"";f.W=c;f.B=d;f.b=a;f.q=g;g.toUrl=function(b){return G.k(e(b),a).url};f.h=e;return f},z:function(a,b,d){var c,e,g;c=G.g(a,b,B,d);e=c.f;g=E(1,function(a){c.n=a;try{return G.O(c)}catch(b){c.d(b)}});c.f=function(a){D(d||R,function(){e(J[c.id]=Q[c.url]=g(a))})};c.D=function(a){D(d||R,function(){c.a&&(g(a),c.p(ha))})};return c},M:function(a,b,d,c){return G.g(a,d,B,c)},U:function(a){return a.q},F:function(a){return a.a||(a.a={})},T:function(a){var b=a.o;b||(b=a.o={id:a.id,uri:G.G(a),exports:G.F(a),
-config:function(){return a.b}},b.a=b.exports);return b},G:function(a){return a.url||(a.url=G.w(a.q.toUrl(a.id),a.b))},b:function(a){var b,d,c,e,g,f;b=!a;a&&(G.b=G.J);a||(a={});c=a.apiName||"curl";e=a.apiContext||m;g=a.defineName||"define";f=a.defineContext||m;d=a.overwriteApi;!b&&K&&(m.curl=K,K=l);if(!b&&!d&&e[c]&&e[c]!=F)throw Error(c+" already exists");e[c]=F;if(!b||!m.define){if(!b&&!d&&g in f&&f[g]!=L)throw Error(g+" already exists");f[g]=L=function(){var a=G.S(arguments);da(a)};L.amd={plugins:h,
-jQuery:h,curl:"0.7.1"}}return G.J(a)},J:function(a,b){function d(a,b){var c,d,f,s,i;for(i in a){f=a[i];p(f,"String")&&(f={path:a[i]});f.name=f.name||i;s=e;d=u(t(G.h(f.name,"",e)));c=d.l;if(d=d.j)s=g[d],s||(s=g[d]=w(e),s.c=w(e.c),s.e=[]),delete a[i];if(b){d=f;var x=void 0;d.path=t(d.path||d.location||"");x=d.main||"./main";"."==x.charAt(0)||(x="./"+x);d.X=ba(x,d.name+"/");d.b=d.config;d.b&&(d.b=w(e,d.b))}else d={path:t(f.path)};d.L=c.split("/").length;c?(s.c[c]=d,s.e.push(c)):s.u=G.K(f.path,e)}}function c(a){var b=
-a.c;a.Z=RegExp("^("+a.e.sort(function(a,c){return b[c].L-b[a].L}).join("|").replace(/\/|\./g,"\\$&")+")(?=\\/|$)");delete a.e}var e,g,f,i;b||(b={});e=w(b,a);e.u=e.baseUrl||"";e.$=e.pluginPath||"curl/plugin";e.N=RegExp(e.dontAddFileExt||ja);e.c=w(b.c);g=a.plugins||{};e.plugins=w(b.plugins);e.e=[];d(a.packages,h);d(a.paths,l);for(f in g)i=G.h(f+"!","",e),e.plugins[i.substr(0,i.length-1)]=g[f];g=e.plugins;for(f in g)if(g[f]=w(e,g[f]),i=g[f].e)g[f].e=i.concat(e.e),c(g[f]);c(e);return e},v:function(a){var b;
-(b=a&&a.preloads)&&0<b.length&&D(R,function(){R=G.i(G.g(H,B,b,h))})},k:function(a,b){var d,c,e,g;d=b.c;e=ka.test(a)?a:a.replace(b.Z,function(a){c=d[a]||{};g=c.b;return c.path||""});return{b:g||H,url:G.K(e,b)}},K:function(a,b){var d=b.u;return d&&!ka.test(a)?t(d)+"/"+a:a},w:function(a,b){return a+((b||H).N.test(a)?"":".js")},H:function(a,b,d){var c=M.createElement("script");c.onload=c.onreadystatechange=function(d){d=d||m.event;if("load"==d.type||ia[c.readyState])delete P[a.id],c.onload=c.onreadystatechange=
-c.onerror="",b()};c.onerror=function(){d(Error("Syntax or http error: "+a.url))};c.type=a.I||"text/javascript";c.charset="utf-8";c.async=!a.Y;c.src=a.url;P[a.id]=c;N.insertBefore(c,ea);return c},P:function(a){var b=[],d;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(la,"").replace(ma,function(a,e,g){g?d=d==g?B:d:d||b.push(e);return""});return b},S:function(a){var b,d,c,e,g,f;g=a.length;c=a[g-1];e=p(c,"Function")?c.length:-1;2==g?p(a[0],"Array")?d=a[0]:b=a[0]:3==g&&(b=a[0],d=a[1]);
-!d&&0<e&&(f=h,d=["require","exports","module"].slice(0,e).concat(G.P(c)));return{id:b,n:d||[],r:0<=e?c:function(){return c},m:f}},O:function(a){var b;b=a.r.apply(a.m?a.a:B,a.n);b===B&&a.a&&(b=a.o?a.a=a.o.a:a.a);return b},A:function(a,b){a.r=b.r;a.m=b.m;a.B=b.n;G.i(a)},i:function(a){function b(a,b,d){f[b]=a;d&&k(a,b)}function d(b,d){var c,e,f,g;c=E(1,function(a){e(a);j(a,d)});e=E(1,function(a){k(a,d)});f=G.Q(b,a);(g=f instanceof A&&f.a)&&e(g);D(f,c,a.d,a.a&&function(a){f.a&&(a==ga?e(f.a):a==ha&&c(f.a))})}
-function c(){a.f(f)}var e,g,f,i,q,k,j;f=[];g=a.B;i=g.length;0==g.length&&c();k=E(i,b,function(){a.D&&a.D(f)});j=E(i,b,c);for(e=0;e<i;e++)q=g[e],q in S?(j(S[q](a),e,h),a.a&&a.p(ga)):q?d(q,e):j(B,e,h);return a},R:function(a){G.G(a);G.H(a,function(){var b=I;I=B;a.ba!==l&&(!b||b.C?a.d(Error(b&&b.C||"define() missing or duplicated: "+a.url)):G.A(a,b))},a.d);return a},Q:function(a,b){var d,c,e,g,f,i,q,k,j,r,C;d=b.h;c=b.W;e=b.b||H;g=u(d(a));q=g.l;f=g.j||q;k=G.k(f,e);if(g.j)i=f;else if(i=k.b.moduleLoader)q=
-f,f=i,k=G.k(i,e);f in J?j=J[f]:k.url in Q?j=J[f]=Q[k.url]:(j=G.z(k.b,f,c),j.url=G.w(k.url,k.b),J[f]=Q[k.url]=j,G.R(j));f==i&&(r=new A,C=e.plugins[i]||e,D(j,function(a){var b,e,f;f=a.dynamic;q="normalize"in a?a.normalize(q,d,j.b)||"":d(q);e=i+"!"+q;b=J[e];if(!(e in J)){b=G.M(C,e,q,c);f||(J[e]=b);var g=function(a){b.f(a);f||(J[e]=a)};g.resolve=g;g.reject=g.error=b.d;a.load(q,b.q,g,C)}r!=b&&D(b,r.f,r.d,r.p)},r.d));return r||j},V:function(){var a;if(!p(m.opera,"Opera"))for(var b in P)if("interactive"==
-P[b].readyState){a=b;break}return a}};S={require:G.U,exports:G.F,module:G.T};F.version="0.7.1";H=m.curl;"function"==typeof H?(K=H,H=l):m.curl=B;H=G.b(H);G.v(H);J.curl=F;J["curl/_privileged"]={core:G,cache:J,config:function(){return H},_define:da,_curl:F,Promise:A};var T=this.document;function na(){if(!T.body)return l;U||(U=T.createTextNode(""));try{return T.body.removeChild(T.body.appendChild(U)),U=oa,h}catch(a){return l}}
-function V(){var a;a=pa[T[W]]&&na();if(!X&&a){X=h;for(clearTimeout(Y);qa=ra.pop();)qa();sa&&(T[W]="complete");for(var b;b=ta.shift();)b()}return a}function ua(){V();X||(Y=setTimeout(ua,va))}var W="readyState",pa={loaded:1,interactive:1,complete:1},ta=[],sa=T&&"string"!=typeof T[W],X=l,va=10,Z,qa,ra=[],Y,oa,U;Z="addEventListener"in this?function(a,b){a.addEventListener(b,V,l);return function(){a.removeEventListener(b,V,l)}}:function(a,b){a.attachEvent("on"+b,V);return function(){a.detachEvent(b,V)}};
-T&&!V()&&(ra=[Z(this,"load"),Z(T,"readystatechange"),Z(this,"DOMContentLoaded")],Y=setTimeout(ua,va));define("curl/domReady",function(){function a(a){X?a():ta.push(a)}a.then=a;a.amd=h;return a});var wa=this.document;function xa(a){try{return eval(a)}catch(b){}}
-define("curl/plugin/js",["curl/_privileged"],function(a){function b(b,d,c){function e(){g||(f<new Date?c():setTimeout(e,10))}var f,g,i;f=(new Date).valueOf()+(b.aa||3E5);c&&b.a&&setTimeout(e,10);i=a.core.H(b,function(){g=h;b.a&&(b.s=xa(b.a));!b.a||b.s?d(i):c()},function(a){g=h;c(a)})}function d(a,c){b(a,function(){var b=e.shift();i=0<e.length;b&&d.apply(null,b);c.f(a.s||h)},function(a){c.d(a)})}var c={},e=[],g=wa&&wa.createElement("script").async==h,f,i;f=a.Promise;return{dynamic:h,normalize:function(a,
-b){var c=a.indexOf("!");return 0<=c?b(a.substr(0,c))+a.substr(c):b(a)},load:function(a,k,j,r){function C(a){(j.error||function(a){throw a;})(a)}var s,O,x,fa,y;s=0<a.indexOf("!order");O=a.indexOf("!exports=");x=0<O&&a.substr(O+9);fa="prefetch"in r?r.prefetch:h;a=s||0<O?a.substr(0,a.indexOf("!")):a;k=k.toUrl(a);y=k.lastIndexOf(".")<=k.lastIndexOf("/")?k+".js":k;y in c?c[y]instanceof f?c[y].t(j,C):j(c[y]):(a={name:a,url:y,Y:s,a:x,aa:r.timeout},c[y]=r=new f,r.t(function(a){c[y]=a;j(a)},C),s&&!g&&i?(e.push([a,
-r]),fa&&(a.I="text/cache",b(a,function(a){a&&a.parentNode.removeChild(a)},function(){}),a.I="")):(i=i||s,d(a,r)))}}});var $=this.document,ya=/^\/\//,za;$&&(za=$.head||($.head=$.getElementsByTagName("head")[0]));
-define("curl/plugin/link",{load:function(a,b,d,c){a=b.toUrl(a);a=a.lastIndexOf(".")<=a.lastIndexOf("/")?a+".css":a;c=a=(c="fixSchemalessUrls"in c?c.fixSchemalessUrls:$.location.protocol)?a.replace(ya,c+"//"):a;a=$.createElement("link");a.rel="stylesheet";a.type="text/css";a.href=c;za.appendChild(a);d(a.sheet||a.styleSheet)}});define("curl/plugin/domReady",["../domReady"],function(a){return{load:function(b,d,c){a(c)}}});
+function w(){}function x(a,b){w.prototype=a||A;var d=new w;w.prototype=A;for(var c in b)d[c]=b[c];return d}function B(){function a(a,b,e){c.push([a,b,e])}function b(a,b){for(var e,d=0;e=c[d++];)(e=e[a])&&e(b)}var d,c,e;d=this;c=[];e=function(d,f){a=d?function(a){a&&a(f)}:function(a,b){b&&b(f)};e=n;b(d?0:1,f);b=n;c=C};this.t=function(b,c,e){a(b,c,e)};this.f=function(a){d.s=a;e(h,a)};this.d=function(a){d.ca=a;e(l,a)};this.p=function(a){b(2,a)}}function E(a,b,d,c){a instanceof B?a.t(b,d,c):b(a)}
+function F(a,b,d){var c;return function(){0<=--a&&b&&(c=b.apply(C,arguments));0==a&&d&&d(c);return c}}function G(){var a=[].slice.call(arguments),b;p(a[0],"Object")&&(b=a.shift(),H=I.b(b,H),I.v(b));return new da(a[0],a[1],a[2])}function da(a,b,d,c){var e;e=I.g(H,C,[].concat(a));this.then=a=function(a,b){E(e,function(b){a&&a.apply(C,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(a,b,c){return new da(a,b,c,e)};(b||d)&&a(b,d);E(c,function(){I.i(e)})}
+function ea(a){var b,d;b=a.id;if(b==C)if(J!==C)J={C:"Multiple anonymous defines in url"};else if(!(b=I.V()))J=a;if(b!=C){d=K[b];b in K||(d=I.k(b,H),d=I.z(d.b,b),K[b]=d);if(!(d instanceof B))throw Error("duplicate define: "+b);d.ba=l;I.A(d,a)}}
+var H,L,M,N=m.document,O=N&&(N.head||N.getElementsByTagName("head")[0]),fa=O&&O.getElementsByTagName("base")[0]||null,ha={},ia={},P={},ja="addEventListener"in m?{}:{loaded:1,complete:1},A={},aa=A.toString,C,K={},Q={},R=l,J,ka=/\?/,la=/^\/|^[^:]+:\/\//,ca=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,ma=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,na=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,S,I;
+I={h:function(a,b,d){var c,a=ba(a,b);if("."==a.charAt(0))return a;c=u(a);a=(b=c.j)||c.l;a in d.c&&(a=d.c[a].X||a);b&&(0>b.indexOf("/")&&!(b in d.c)&&(a=t(d.$)+"/"+b),a=a+"!"+c.l);return a},g:function(a,b,d,c){function e(b){return I.h(b,f.id,a)}function g(b,d,g){var j;j=d&&function(a){d.apply(C,a)};if(p(b,"String")){if(j)throw Error("require(id, callback) not allowed");g=e(b);b=K[g];if(!(g in K))throw Error("Module not resolved: "+g);return(g=b instanceof B&&b.a)||b}E(I.i(I.g(a,f.id,b,c)),j,g)}var f;
+f=new B;f.id=b||"";f.W=c;f.B=d;f.b=a;f.q=g;g.toUrl=function(b){return I.k(e(b),a).url};f.h=e;return f},z:function(a,b,d){var c,e,g;c=I.g(a,b,C,d);e=c.f;g=F(1,function(a){c.n=a;try{return I.O(c)}catch(b){c.d(b)}});c.f=function(a){E(d||R,function(){e(K[c.id]=Q[c.url]=g(a))})};c.D=function(a){E(d||R,function(){c.a&&(g(a),c.p(ia))})};return c},M:function(a,b,d,c){return I.g(a,d,C,c)},U:function(a){return a.q},F:function(a){return a.a||(a.a={})},T:function(a){var b=a.o;b||(b=a.o={id:a.id,uri:I.G(a),exports:I.F(a),
+config:function(){return a.b}},b.a=b.exports);return b},G:function(a){return a.url||(a.url=I.w(a.q.toUrl(a.id),a.b))},b:function(a){var b,d,c,e,g,f;b=!a;a&&(I.b=I.J);a||(a={});c=a.apiName||"curl";e=a.apiContext||m;g=a.defineName||"define";f=a.defineContext||m;d=a.overwriteApi;!b&&L&&(m.curl=L,L=l);if(!b&&!d&&e[c]&&e[c]!=G)throw Error(c+" already exists");e[c]=G;if(!b||!m.define){if(!b&&!d&&g in f&&f[g]!=M)throw Error(g+" already exists");f[g]=M=function(){var a=I.S(arguments);ea(a)};M.amd={plugins:h,
+jQuery:h,curl:"0.7.2"}}return I.J(a)},J:function(a,b){function d(a,b){var c,d,f,s,v;for(v in a){f=a[v];p(f,"String")&&(f={path:a[v]});f.name=f.name||v;s=e;d=u(t(I.h(f.name,"",e)));c=d.l;if(d=d.j)s=g[d],s||(s=g[d]=x(e),s.c=x(e.c),s.e=[]),delete a[v];if(b){d=f;var y=void 0;d.path=t(d.path||d.location||"");y=d.main||"./main";"."==y.charAt(0)||(y="./"+y);d.X=ba(y,d.name+"/");d.b=d.config;d.b&&(d.b=x(e,d.b))}else d={path:t(f.path)};d.L=c.split("/").length;c?(s.c[c]=d,s.e.push(c)):s.u=I.K(f.path,e)}}function c(a){var b=
+a.c;a.Z=RegExp("^("+a.e.sort(function(a,c){return b[c].L-b[a].L}).join("|").replace(/\/|\./g,"\\$&")+")(?=\\/|$)");delete a.e}var e,g,f,i;b||(b={});e=x(b,a);e.u=e.baseUrl||"";e.$=e.pluginPath||"curl/plugin";e.N=RegExp(e.dontAddFileExt||ka);e.c=x(b.c);g=a.plugins||{};e.plugins=x(b.plugins);e.e=[];d(a.packages,h);d(a.paths,l);for(f in g)i=I.h(f+"!","",e),e.plugins[i.substr(0,i.length-1)]=g[f];g=e.plugins;for(f in g)if(g[f]=x(e,g[f]),i=g[f].e)g[f].e=i.concat(e.e),c(g[f]);c(e);return e},v:function(a){var b;
+(b=a&&a.preloads)&&0<b.length&&E(R,function(){R=I.i(I.g(H,C,b,h))})},k:function(a,b){var d,c,e,g;d=b.c;e=la.test(a)?a:a.replace(b.Z,function(a){c=d[a]||{};g=c.b;return c.path||""});return{b:g||H,url:I.K(e,b)}},K:function(a,b){var d=b.u;return d&&!la.test(a)?t(d)+"/"+a:a},w:function(a,b){return a+((b||H).N.test(a)?"":".js")},H:function(a,b,d){var c=N.createElement("script");c.onload=c.onreadystatechange=function(d){d=d||m.event;if("load"==d.type||ja[c.readyState])delete P[a.id],c.onload=c.onreadystatechange=
+c.onerror="",b()};c.onerror=function(){d(Error("Syntax or http error: "+a.url))};c.type=a.I||"text/javascript";c.charset="utf-8";c.async=!a.Y;c.src=a.url;P[a.id]=c;O.insertBefore(c,fa);return c},P:function(a){var b=[],d;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(ma,"").replace(na,function(a,e,g){g?d=d==g?C:d:d||b.push(e);return""});return b},S:function(a){var b,d,c,e,g,f;g=a.length;c=a[g-1];e=p(c,"Function")?c.length:-1;2==g?p(a[0],"Array")?d=a[0]:b=a[0]:3==g&&(b=a[0],d=a[1]);
+!d&&0<e&&(f=h,d=["require","exports","module"].slice(0,e).concat(I.P(c)));return{id:b,n:d||[],r:0<=e?c:function(){return c},m:f}},O:function(a){var b;b=a.r.apply(a.m?a.a:C,a.n);b===C&&a.a&&(b=a.o?a.a=a.o.a:a.a);return b},A:function(a,b){a.r=b.r;a.m=b.m;a.B=b.n;I.i(a)},i:function(a){function b(a,b,c){f[b]=a;c&&k(a,b)}function d(b,c){var d,e,f,g;d=F(1,function(a){e(a);j(a,c)});e=F(1,function(a){k(a,c)});f=I.Q(b,a);(g=f instanceof B&&f.a)&&e(g);E(f,d,a.d,a.a&&function(a){f.a&&(a==ha?e(f.a):a==ia&&d(f.a))})}
+function c(){a.f(f)}var e,g,f,i,q,k,j;f=[];g=a.B;i=g.length;0==g.length&&c();k=F(i,b,function(){a.D&&a.D(f)});j=F(i,b,c);for(e=0;e<i;e++)q=g[e],q in S?(j(S[q](a),e,h),a.a&&a.p(ha)):q?d(q,e):j(C,e,h);return a},R:function(a){I.G(a);I.H(a,function(){var b=J;J=C;a.ba!==l&&(!b||b.C?a.d(Error(b&&b.C||"define() missing or duplicated: "+a.url)):I.A(a,b))},a.d);return a},Q:function(a,b){var d,c,e,g,f,i,q,k,j,r,D;d=b.h;c=b.W;e=b.b||H;g=u(d(a));q=g.l;f=g.j||q;k=I.k(f,e);if(g.j)i=f;else if(i=k.b.moduleLoader)q=
+f,f=i,k=I.k(i,e);f in K?j=K[f]:k.url in Q?j=K[f]=Q[k.url]:(j=I.z(k.b,f,c),j.url=I.w(k.url,k.b),K[f]=Q[k.url]=j,I.R(j));f==i&&(r=new B,D=e.plugins[i]||e,E(j,function(a){var b,e,f;f=a.dynamic;q="normalize"in a?a.normalize(q,d,j.b)||"":d(q);e=i+"!"+q;b=K[e];if(!(e in K)){b=I.M(D,e,q,c);f||(K[e]=b);var g=function(a){b.f(a);f||(K[e]=a)};g.resolve=g;g.reject=g.error=b.d;a.load(q,b.q,g,D)}r!=b&&E(b,r.f,r.d,r.p)},r.d));return r||j},V:function(){var a;if(!p(m.opera,"Opera"))for(var b in P)if("interactive"==
+P[b].readyState){a=b;break}return a}};S={require:I.U,exports:I.F,module:I.T};G.version="0.7.2";H=m.curl;"function"==typeof H?(L=H,H=l):m.curl=C;H=I.b(H);I.v(H);K.curl=G;K["curl/_privileged"]={core:I,cache:K,config:function(){return H},_define:ea,_curl:G,Promise:B};var T=this.document;function oa(){if(!T.body)return l;U||(U=T.createTextNode(""));try{return T.body.removeChild(T.body.appendChild(U)),U=pa,h}catch(a){return l}}
+function V(){var a;a=qa[T[W]]&&oa();if(!X&&a){X=h;for(clearTimeout(Y);ra=sa.pop();)ra();ta&&(T[W]="complete");for(var b;b=ua.shift();)b()}return a}function va(){V();X||(Y=setTimeout(va,wa))}var W="readyState",qa={loaded:1,interactive:1,complete:1},ua=[],ta=T&&"string"!=typeof T[W],X=l,wa=10,Z,ra,sa=[],Y,pa,U;Z="addEventListener"in this?function(a,b){a.addEventListener(b,V,l);return function(){a.removeEventListener(b,V,l)}}:function(a,b){a.attachEvent("on"+b,V);return function(){a.detachEvent(b,V)}};
+T&&!V()&&(sa=[Z(this,"load"),Z(T,"readystatechange"),Z(this,"DOMContentLoaded")],Y=setTimeout(va,wa));define("curl/domReady",function(){function a(a){X?a():ua.push(a)}a.then=a;a.amd=h;return a});var xa=this.document;function ya(a){try{return eval(a)}catch(b){}}
+define("curl/plugin/js",["curl/_privileged"],function(a){function b(b,c,d){function e(){g||(f<new Date?d():setTimeout(e,10))}var f,g,i;f=(new Date).valueOf()+(b.aa||3E5);d&&b.a&&setTimeout(e,10);i=a.core.H(b,function(){g=h;b.a&&(b.s=ya(b.a));!b.a||b.s?c(i):d()},function(a){g=h;d(a)})}function d(a,c){b(a,function(){var b=e.shift();i=0<e.length;b&&d.apply(null,b);c.f(a.s||h)},function(a){c.d(a)})}var c={},e=[],g=xa&&xa.createElement("script").async==h,f,i;f=a.Promise;return{dynamic:h,normalize:function(a,
+b){var c=a.indexOf("!");return 0<=c?b(a.substr(0,c))+a.substr(c):b(a)},load:function(a,k,j,r){function D(a){(j.error||function(a){throw a;})(a)}var s,v,y,ga,z;s=0<a.indexOf("!order");v=a.indexOf("!exports=");y=0<v&&a.substr(v+9);ga="prefetch"in r?r.prefetch:h;a=s||0<v?a.substr(0,a.indexOf("!")):a;k=k.toUrl(a);z=k.lastIndexOf(".")<=k.lastIndexOf("/")?k+".js":k;z in c?c[z]instanceof f?c[z].t(j,D):j(c[z]):(a={name:a,url:z,Y:s,a:y,aa:r.timeout},c[z]=r=new f,r.t(function(a){c[z]=a;j(a)},D),s&&!g&&i?(e.push([a,
+r]),ga&&(a.I="text/cache",b(a,function(a){a&&a.parentNode.removeChild(a)},function(){}),a.I="")):(i=i||s,d(a,r)))}}});var $=this.document,za=/^\/\//,Aa;$&&(Aa=$.head||($.head=$.getElementsByTagName("head")[0]));
+define("curl/plugin/link",{load:function(a,b,d,c){a=b.toUrl(a);a=a.lastIndexOf(".")<=a.lastIndexOf("/")?a+".css":a;c=a=(c="fixSchemalessUrls"in c?c.fixSchemalessUrls:$.location.protocol)?a.replace(za,c+"//"):a;a=$.createElement("link");a.rel="stylesheet";a.type="text/css";a.href=c;Aa.appendChild(a);d(a.sheet||a.styleSheet)}});define("curl/plugin/domReady",["../domReady"],function(a){return{load:function(b,d,c){a(c)}}});
}).call(this);
View
52 dist/curl-for-ssjs/curl.js
@@ -13,7 +13,7 @@
(function (global) {
//"use strict"; don't restore this until the config routine is refactored
var
- version = '0.7.1',
+ version = '0.7.2',
curlName = 'curl',
userCfg,
prevCurl,
@@ -1094,35 +1094,35 @@
core.checkPreloads(cfg);
}
- // thanks to Joop Ringelberg for helping troubleshoot the API
- function CurlApi (ids, callback, errback, waitFor) {
- var then, ctx;
- ctx = core.createContext(userCfg, undef, [].concat(ids));
- this['then'] = then = function (resolved, rejected) {
- when(ctx,
- // return the dependencies as arguments, not an array
- function (deps) {
- if (resolved) resolved.apply(undef, deps);
- },
- // just throw if the dev didn't specify an error handler
- function (ex) {
- if (rejected) rejected(ex); else throw ex;
- }
- );
- return this;
- };
- this['next'] = function (ids, cb, eb) {
- // chain api
- return new CurlApi(ids, cb, eb, ctx);
- };
- if (callback) then(callback, errback);
- when(waitFor, function () { core.getDeps(ctx); });
- }
-
return new CurlApi(args[0], args[1], args[2]);
}
+ // thanks to Joop Ringelberg for helping troubleshoot the API
+ function CurlApi (ids, callback, errback, waitFor) {
+ var then, ctx;
+ ctx = core.createContext(userCfg, undef, [].concat(ids));
+ this['then'] = then = function (resolved, rejected) {
+ when(ctx,
+ // return the dependencies as arguments, not an array
+ function (deps) {
+ if (resolved) resolved.apply(undef, deps);
+ },
+ // just throw if the dev didn't specify an error handler
+ function (ex) {
+ if (rejected) rejected(ex); else throw ex;
+ }
+ );
+ return this;
+ };
+ this['next'] = function (ids, cb, eb) {
+ // chain api
+ return new CurlApi(ids, cb, eb, ctx);
+ };
+ if (callback || errback) then(callback, errback);
+ when(waitFor, function () { core.getDeps(ctx); });
+ }
+
_curl['version'] = version;
function _define (args) {
View
71 dist/curl-kitchen-sink/curl.js
@@ -1,39 +1,38 @@
(function(){/*
MIT License (c) copyright B Cavalier & J Hann */
-var i=!0,m=!1,p=this.window||global;function aa(){}function q(a,b){return 0==ba.call(a).indexOf("[object "+b)}function r(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function ca(a,b){var d,c,e,f;d=1;c=a;"."==c.charAt(0)&&(e=i,c=c.replace(da,function(a,b,c,e){c&&d++;return e||""}));if(e){e=b.split("/");f=e.length-d;if(0>f)return a;e.splice(f,d);return e.concat(c||[]).join("/")}return c}function s(a){var b=a.indexOf("!");return{p:a.substr(b+1),m:0<=b&&a.substr(0,b)}}
-function u(){}function v(a,b){u.prototype=a||x;var d=new u;u.prototype=x;for(var c in b)d[c]=b[c];return d}function y(){function a(a,b,e){c.push([a,b,e])}function b(a,b){for(var e,d=0;e=c[d++];)(e=e[a])&&e(b)}var d,c,e;d=this;c=[];e=function(d,g){a=d?function(a){a&&a(g)}:function(a,b){b&&b(g)};e=aa;b(d?0:1,g);b=aa;c=C};this.h=function(b,c,e){a(b,c,e);return d};this.g=function(a){d.z=a;e(i,a)};this.d=function(a){d.ia=a;e(m,a)};this.v=function(a){b(2,a)}}
-function D(a,b,d,c){a instanceof y?a.h(b,d,c):b(a)}function E(a,b,d){var c;return function(){0<=--a&&b&&(c=b.apply(C,arguments));0==a&&d&&d(c);return c}}
-function F(){function a(b,e,d,g){var h;h=G.e(H,C,[].concat(b));this.then=b=function(a,b){D(h,function(b){a&&a.apply(C,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(b,c,e){return new a(b,c,e,h)};e&&b(e,d);D(g,function(){G.l(h)})}var b=[].slice.call(arguments),d;q(b[0],"Object")&&(d=b.shift(),H=G.b(d,H),G.A(d));return new a(b[0],b[1],b[2])}
-function ea(a){var b,d;b=a.id;if(b==C)if(I!==C)I={G:"Multiple anonymous defines in url"};else if(!(b=G.Z()))I=a;if(b!=C){d=J[b];b in J||(d=G.o(b,H),d=G.C(d.b,b),J[b]=d);if(!(d instanceof y))throw Error("duplicate define: "+b);d.fa=m;G.D(d,a)}}
-var H,K,L,M=p.document,fa=M&&(M.head||M.getElementsByTagName("head")[0]),ha=fa&&fa.getElementsByTagName("base")[0]||null,ia={},ja={},N={},ka="addEventListener"in p?{}:{loaded:1,complete:1},x={},ba=x.toString,C,J={},O={},P=m,I,la=/\?/,ma=/^\/|^[^:]+:\/\//,da=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,oa=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,pa=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,qa,G;
-G={i:function(a,b,d){var c,a=ca(a,b);if("."==a.charAt(0))return a;c=s(a);a=(b=c.m)||c.p;a in d.c&&(a=d.c[a].aa||a);b&&(0>b.indexOf("/")&&!(b in d.c)&&(a=r(d.da)+"/"+b),a=a+"!"+c.p);return a},e:function(a,b,d,c){function e(b){return G.i(b,g.id,a)}function f(b,d,f){var k;k=d&&function(a){d.apply(C,a)};if(q(b,"String")){if(k)throw Error("require(id, callback) not allowed");f=e(b);b=J[f];if(!(f in J))throw Error("Module not resolved: "+f);return(f=b instanceof y&&b.a)||b}D(G.l(G.e(a,g.id,b,c)),k,f)}var g;
-g=new y;g.id=b||"";g.$=c;g.F=d;g.b=a;g.n=f;f.toUrl=function(b){return G.o(e(b),a).url};g.i=e;return g},C:function(a,b,d){var c,e,f;c=G.e(a,b,C,d);e=c.g;f=E(1,function(a){c.r=a;try{return G.T(c)}catch(b){c.d(b)}});c.g=function(a){D(d||P,function(){e(J[c.id]=O[c.url]=f(a))})};c.H=function(a){D(d||P,function(){c.a&&(f(a),c.v(ja))})};return c},Q:function(a,b,d,c){return G.e(a,d,C,c)},Y:function(a){return a.n},J:function(a){return a.a||(a.a={})},X:function(a){var b=a.t;b||(b=a.t={id:a.id,uri:G.K(a),exports:G.J(a),
-config:function(){return a.b}},b.a=b.exports);return b},K:function(a){return a.url||(a.url=G.B(a.n.toUrl(a.id),a.b))},b:function(a){var b,d,c,e,f,g;b=!a;a&&(G.b=G.M);a||(a={});c=a.apiName||"curl";e=a.apiContext||p;f=a.defineName||"define";g=a.defineContext||p;d=a.overwriteApi;!b&&K&&(p.curl=K,K=m);if(!b&&!d&&e[c]&&e[c]!=F)throw Error(c+" already exists");e[c]=F;if(!b||!p.define){if(!b&&!d&&f in g&&g[f]!=L)throw Error(f+" already exists");g[f]=L=function(){var a=G.W(arguments);ea(a)};L.amd={plugins:i,
-jQuery:i,curl:"0.7.1"}}return G.M(a)},M:function(a,b){function d(a,b){var c,d,g,h,t;for(t in a){g=a[t];q(g,"String")&&(g={path:a[t]});g.name=g.name||t;h=e;d=s(r(G.i(g.name,"",e)));c=d.p;if(d=d.m)h=f[d],h||(h=f[d]=v(e),h.c=v(e.c),h.f=[]),delete a[t];if(b){d=g;var A=void 0;d.path=r(d.path||d.location||"");A=d.main||"./main";"."==A.charAt(0)||(A="./"+A);d.aa=ca(A,d.name+"/");d.b=d.config;d.b&&(d.b=v(e,d.b))}else d={path:r(g.path)};d.O=c.split("/").length;c?(h.c[c]=d,h.f.push(c)):h.j=G.N(g.path,e)}}function c(a){var b=
-a.c;a.ca=RegExp("^("+a.f.sort(function(a,c){return b[c].O-b[a].O}).join("|").replace(/\/|\./g,"\\$&")+")(?=\\/|$)");delete a.f}var e,f,g,h;b||(b={});e=v(b,a);e.j=e.baseUrl||"";e.da=e.pluginPath||"curl/plugin";e.R=RegExp(e.dontAddFileExt||la);e.c=v(b.c);f=a.plugins||{};e.plugins=v(b.plugins);e.f=[];d(a.packages,i);d(a.paths,m);for(g in f)h=G.i(g+"!","",e),e.plugins[h.substr(0,h.length-1)]=f[g];f=e.plugins;for(g in f)if(f[g]=v(e,f[g]),h=f[g].f)f[g].f=h.concat(e.f),c(f[g]);c(e);return e},A:function(a){var b;
-(b=a&&a.preloads)&&0<b.length&&D(P,function(){P=G.l(G.e(H,C,b,i))})},o:function(a,b){var d,c,e,f;d=b.c;e=ma.test(a)?a:a.replace(b.ca,function(a){c=d[a]||{};f=c.b;return c.path||""});return{b:f||H,url:G.N(e,b)}},N:function(a,b){var d=b.j;return d&&!ma.test(a)?r(d)+"/"+a:a},B:function(a,b){return a+((b||H).R.test(a)?"":".js")},s:function(a,b,d){var c=M.createElement("script");c.onload=c.onreadystatechange=function(d){d=d||p.event;if("load"==d.type||ka[c.readyState])delete N[a.id],c.onload=c.onreadystatechange=
-c.onerror="",b()};c.onerror=function(){d(Error("Syntax or http error: "+a.url))};c.type=a.L||"text/javascript";c.charset="utf-8";c.async=!a.ba;c.src=a.url;N[a.id]=c;fa.insertBefore(c,ha);return c},I:function(a){var b=[],d;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(oa,"").replace(pa,function(a,e,f){f?d=d==f?C:d:d||b.push(e);return""});return b},W:function(a){var b,d,c,e,f,g;f=a.length;c=a[f-1];e=q(c,"Function")?c.length:-1;2==f?q(a[0],"Array")?d=a[0]:b=a[0]:3==f&&(b=a[0],d=
-a[1]);!d&&0<e&&(g=i,d=["require","exports","module"].slice(0,e).concat(G.I(c)));return{id:b,r:d||[],w:0<=e?c:function(){return c},q:g}},T:function(a){var b;b=a.w.apply(a.q?a.a:C,a.r);b===C&&a.a&&(b=a.t?a.a=a.t.a:a.a);return b},D:function(a,b){a.w=b.w;a.q=b.q;a.F=b.r;G.l(a)},l:function(a){function b(a,b,c){g[b]=a;c&&j(a,b)}function d(b,c){var d,e,f,g;d=E(1,function(a){e(a);k(a,c)});e=E(1,function(a){j(a,c)});f=G.U(b,a);(g=f instanceof y&&f.a)&&e(g);D(f,d,a.d,a.a&&function(a){f.a&&(a==ia?e(f.a):a==
-ja&&d(f.a))})}function c(){a.g(g)}var e,f,g,h,l,j,k;g=[];f=a.F;h=f.length;0==f.length&&c();j=E(h,b,function(){a.H&&a.H(g)});k=E(h,b,c);for(e=0;e<h;e++)l=f[e],l in qa?(k(qa[l](a),e,i),a.a&&a.v(ia)):l?d(l,e):k(C,e,i);return a},V:function(a){G.K(a);G.s(a,function(){var b=I;I=C;a.fa!==m&&(!b||b.G?a.d(Error(b&&b.G||"define() missing or duplicated: "+a.url)):G.D(a,b))},a.d);return a},U:function(a,b){var d,c,e,f,g,h,l,j,k,n,z;d=b.i;c=b.$;e=b.b||H;f=s(d(a));l=f.p;g=f.m||l;j=G.o(g,e);if(f.m)h=g;else if(h=
-j.b.moduleLoader)l=g,g=h,j=G.o(h,e);g in J?k=J[g]:j.url in O?k=J[g]=O[j.url]:(k=G.C(j.b,g,c),k.url=G.B(j.url,j.b),J[g]=O[j.url]=k,G.V(k));g==h&&(n=new y,z=e.plugins[h]||e,D(k,function(a){var b,e,f;f=a.dynamic;l="normalize"in a?a.normalize(l,d,k.b)||"":d(l);e=h+"!"+l;b=J[e];if(!(e in J)){b=G.Q(z,e,l,c);f||(J[e]=b);var g=function(a){b.g(a);f||(J[e]=a)};g.resolve=g;g.reject=g.error=b.d;a.load(l,b.n,g,z)}n!=b&&D(b,n.g,n.d,n.v)},n.d));return n||k},Z:function(){var a;if(!q(p.opera,"Opera"))for(var b in N)if("interactive"==
-N[b].readyState){a=b;break}return a}};qa={require:G.Y,exports:G.J,module:G.X};F.version="0.7.1";H=p.curl;"function"==typeof H?(K=H,H=m):p.curl=C;H=G.b(H);G.A(H);J.curl=F;J["curl/_privileged"]={core:G,cache:J,config:function(){return H},_define:ea,_curl:F,Promise:y};var Q=this.document;function ra(){if(!Q.body)return m;R||(R=Q.createTextNode(""));try{return Q.body.removeChild(Q.body.appendChild(R)),R=sa,i}catch(a){return m}}
-function S(){var a;a=ta[Q[ua]]&&ra();if(!T&&a){T=i;for(clearTimeout(va);wa=xa.pop();)wa();ya&&(Q[ua]="complete");for(var b;b=za.shift();)b()}return a}function Aa(){S();T||(va=setTimeout(Aa,Ba))}var ua="readyState",ta={loaded:1,interactive:1,complete:1},za=[],ya=Q&&"string"!=typeof Q[ua],T=m,Ba=10,U,wa,xa=[],va,sa,R;
-U="addEventListener"in this?function(a,b){a.addEventListener(b,S,m);return function(){a.removeEventListener(b,S,m)}}:function(a,b){a.attachEvent("on"+b,S);return function(){a.detachEvent(b,S)}};Q&&!S()&&(xa=[U(this,"load"),U(Q,"readystatechange"),U(this,"DOMContentLoaded")],va=setTimeout(Aa,Ba));define("curl/domReady",function(){function a(a){T?a():za.push(a)}a.then=a;a.amd=i;return a});var Ca;
-define("curl/shim/dojo16",["curl/_privileged","curl/domReady"],function(a,b){function d(a){a.ready||(a.ready=function(a){b(a)});a.nameToUrl||(a.nameToUrl=function(b,c){return a.toUrl(b+(c||""))});a.cache||(a.cache={})}var c=a._curl,e=a.core.e;d(c);"undefined"==typeof Ca&&(Ca=c);a.core.e=function(){var a=e.apply(this,arguments);d(a.n);return a};return i});var Da=this.document;function Ea(a){try{return eval(a)}catch(b){}}
-define("curl/plugin/js",["curl/_privileged"],function(a){function b(b,c,d){function e(){g||(f<new Date?d():setTimeout(e,10))}var f,g,h;f=(new Date).valueOf()+(b.ea||3E5);d&&b.a&&setTimeout(e,10);h=a.core.s(b,function(){g=i;b.a&&(b.z=Ea(b.a));!b.a||b.z?c(h):d()},function(a){g=i;d(a)})}function d(a,c){b(a,function(){var b=e.shift();h=0<e.length;b&&d.apply(null,b);c.g(a.z||i)},function(a){c.d(a)})}var c={},e=[],f=Da&&Da.createElement("script").async==i,g,h;g=a.Promise;return{dynamic:i,normalize:function(a,
-b){var c=a.indexOf("!");return 0<=c?b(a.substr(0,c))+a.substr(c):b(a)},load:function(a,j,k,n){function z(a){(k.error||function(a){throw a;})(a)}var w,t,A,na,B;w=0<a.indexOf("!order");t=a.indexOf("!exports=");A=0<t&&a.substr(t+9);na="prefetch"in n?n.prefetch:i;a=w||0<t?a.substr(0,a.indexOf("!")):a;j=j.toUrl(a);B=j.lastIndexOf(".")<=j.lastIndexOf("/")?j+".js":j;B in c?c[B]instanceof g?c[B].h(k,z):k(c[B]):(a={name:a,url:B,ba:w,a:A,ea:n.timeout},c[B]=n=new g,n.h(function(a){c[B]=a;k(a)},z),w&&!f&&h?(e.push([a,
-n]),na&&(a.L="text/cache",b(a,function(a){a&&a.parentNode.removeChild(a)},function(){}),a.L="")):(h=h||w,d(a,n)))}}});
-define("curl/plugin/text",function(){function a(){if("undefined"!==typeof XMLHttpRequest)a=function(){return new XMLHttpRequest};else for(var b=a=function(){throw Error("getXhr(): XMLHttpRequest not available");};0<d.length&&a===b;)(function(b){try{new ActiveXObject(b),a=function(){return new ActiveXObject(b)}}catch(c){}})(d.shift());return a()}function b(a){throw a;}var d=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];return{load:function(c,d,f){var c=d.toUrl(c),g=f.error||b,h=a();h.open("GET",
-c,i);h.onreadystatechange=function(){4===h.readyState&&(400>h.status?f(h.responseText):g(Error("fetchText() failed. status: "+h.statusText)))};h.send(null)},"plugin-builder":"./builder/text"}});define("curl/plugin/async",function(){return{load:function(a,b,d){function c(a){"function"==typeof d.error&&d.error(a)}b([a],function(a){"function"==typeof a.h?a.h(function(b){0==arguments.length&&(b=a);d(b)},c):d(a)},d.error||function(a){throw a;})},analyze:function(a,b,d){d(a)}}});
-function Fa(){var a;a=V[Ga]("link");a.rel="stylesheet";a.type="text/css";return a}function Ha(a,b,d){Ia.push({url:a,P:b,S:function(){d(Error(Ja))}});a=Ka.shift();!a&&La.length<Ma&&(a=V.createElement("style"),La.push(a),W.appendChild(a));a&&Na(a)}function Na(a){var b;(b=Ia.shift())?(a.onload=function(){b.P();Na(a)},a.onerror=function(){b.S();Na(a)},a.styleSheet.addImport(b.url)):(a.onload=a.onerror=X,Ka.push(a))}
-function Oa(a,b,d){if(!Y.load){var c;var e,f;if(!a.href||V.readyState&&"complete"!=V.readyState)c=m;else{c=m;try{if(e=a.sheet)f=e.cssRules,c=null===f,!c&&"length"in f&&(e.insertRule("-curl-css-test {}",0),e.deleteRule(0),c=i)}catch(g){c=/security|denied/i.test(g.message)}}c?d():a.onload==X||!a.onload||Pa(function(){Oa(a,b,d)},b)}}
-function Qa(a,b,d,c){function e(){if(f.onload!=X&&f.onload){f.onload=f.onerror=X;var a=function(){!V.readyState||"complete"==V.readyState?b():Pa(a,10)};a()}}var f;f=Fa();f.onload=function(){Y.load=Y.load||i;e()};Oa(f,c,e);f.onerror=function(){Y.error=Y.error||i;f.onload!=X&&f.onload&&(f.onload=f.onerror=X,d(Error(Ja)))};f.href=a;W.appendChild(f)}function X(){}
-var Ga="createElement",Pa=this.setTimeout,V=this.document,W,Ra=V&&V.createStyleSheet&&!(10<=V.documentMode),La=[],Ka=[],Ia=[],Ma=12,Sa,Ja="HTTP or network error.",Y={};V&&(W=V.head||V.getElementsByTagName("head")[0],Sa=Ra?Ha:Qa);
-define("curl/plugin/css",{normalize:function(a,b){var d,c;if(!a)return a;d=a.split(",");c=[];for(var e=0,f=d.length;e<f;e++)c.push(b(d[e]));return c.join(",")},load:function(a,b,d,c){function e(){0==--l&&d()}function f(a){(d.d||function(a){throw a;})(a)}var g,h,l,j;g=(a||"").split(",");h=c.cssWatchPeriod||50;c=c.cssNoWait;l=g.length;for(j=0;j<g.length;j++){var a=g[j],k,a=b.toUrl(a),a=a.lastIndexOf(".")<=a.lastIndexOf("/")?a+".css":a;c?(k=Fa(),k.href=a,W.appendChild(k),e()):Sa(a,e,f,h)}},"plugin-builder":"./builder/css",
-pluginBuilder:"./builder/css"});var Z=this.document,Ta=/^\/\//,Ua;Z&&(Ua=Z.head||(Z.head=Z.getElementsByTagName("head")[0]));define("curl/plugin/link",{load:function(a,b,d,c){a=b.toUrl(a);a=a.lastIndexOf(".")<=a.lastIndexOf("/")?a+".css":a;c=a=(c="fixSchemalessUrls"in c?c.fixSchemalessUrls:Z.location.protocol)?a.replace(Ta,c+"//"):a;a=Z.createElement("link");a.rel="stylesheet";a.type="text/css";a.href=c;Ua.appendChild(a);d(a.sheet||a.styleSheet)}});
-define("curl/plugin/domReady",["../domReady"],function(a){return{load:function(b,d,c){a(c)}}});var $=this.document;function Va(a){eval(a)}
-define("curl/loader/cjsm11",function(){function a(b,d){a="text"in b?function(a,b){a.text=b}:function(a,b){a.appendChild($.createTextNode(b))};a(b,d)}var b,d;d=(b=$&&($.head||$.getElementsByTagName("head")[0]))&&b.getElementsByTagName("base")[0]||null;return{load:function(c,e,f,g){e(["text!"+c+".js","curl/_privileged"],function(h,l){var j;j=l.core.I(h);e(j,function(){var k=h,j=g.injectSourceUrl!==m&&e.ka(c),j=j?"////@ sourceURL="+j.replace(/\s/g,"%20")+".js":"";h="define('"+c+"',['require','exports','module'],function(require,exports,module){"+
-k+"\n});\n"+j+"\n";g.injectScript?(k=h,j=$.createElement("script"),a(j,k),j.charset="utf-8",b.insertBefore(j,d)):Va(h);f(e(c))},f.error||function(a){throw a;})})}}});define.amd.ja=i;
-(function(a,b){define("curl/shim/ssjs",function(d){function c(a,d,c){try{b(a.url),d()}catch(e){c(e)}}function e(b,d,c){var e;try{e=b.url.replace(/\.js$/,""),a(e),d()}catch(f){c(f)}}function f(b,d,c){var e,b=a("url").parse(b.url,m,i);e="";z.get(b,function(a){a.u("data",function(a){e+=a}).u("end",function(){h(e);d()}).u("error",c)}).u("error",c)}function g(a){throw Error("ssjs: unable to load module in current environment: "+a.url);}function h(a){eval(a)}var l,j,k,n,z,w,t;if(!("object"==typeof window&&
-(window.ga||window.navigator))){d=d("curl/_privileged");l=d.b();j=/^\w+:/;k=/(^\w+:)?.*$/;n=(l.k&&":"!=l.k[l.k.length-1]?l.k+":":l.k)||l.j&&l.j.replace(k,function(a,b){return b})||"http:";if(b)w=t=c;else if(a){w=e;try{z=a("http"),t=f}catch(A){t=g}}else w=t=g;d.ha.s=function(a,b,c){/^\/\//.test(a.url)&&(a.url=n+a.url);return j.test(a.url)?t(a,b,c):w(a,b,c)}}})})(Ca,void 0);
+var i=!0,n=!1,p=this.window||global;function aa(){}function q(a,b){return 0==ba.call(a).indexOf("[object "+b)}function r(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function ca(a,b){var c,d,e,f;c=1;d=a;"."==d.charAt(0)&&(e=i,d=d.replace(da,function(a,b,d,f){d&&c++;return f||""}));if(e){e=b.split("/");f=e.length-c;if(0>f)return a;e.splice(f,c);return e.concat(d||[]).join("/")}return d}function s(a){var b=a.indexOf("!");return{p:a.substr(b+1),m:0<=b&&a.substr(0,b)}}
+function u(){}function v(a,b){u.prototype=a||x;var c=new u;u.prototype=x;for(var d in b)c[d]=b[d];return c}function y(){function a(a,b,e){d.push([a,b,e])}function b(a,b){for(var e,c=0;e=d[c++];)(e=e[a])&&e(b)}var c,d,e;c=this;d=[];e=function(c,g){a=c?function(a){a&&a(g)}:function(a,b){b&&b(g)};e=aa;b(c?0:1,g);b=aa;d=C};this.h=function(b,d,e){a(b,d,e);return c};this.g=function(a){c.z=a;e(i,a)};this.d=function(a){c.ja=a;e(n,a)};this.v=function(a){b(2,a)}}
+function D(a,b,c,d){a instanceof y?a.h(b,c,d):b(a)}function E(a,b,c){var d;return function(){0<=--a&&b&&(d=b.apply(C,arguments));0==a&&c&&c(d);return d}}function F(){var a=[].slice.call(arguments),b;q(a[0],"Object")&&(b=a.shift(),G=H.b(b,G),H.A(b));return new ea(a[0],a[1],a[2])}
+function ea(a,b,c,d){var e;e=H.e(G,C,[].concat(a));this.then=a=function(a,b){D(e,function(b){a&&a.apply(C,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(a,b,d){return new ea(a,b,d,e)};(b||c)&&a(b,c);D(d,function(){H.l(e)})}function fa(a){var b,c;b=a.id;if(b==C)if(I!==C)I={G:"Multiple anonymous defines in url"};else if(!(b=H.Z()))I=a;if(b!=C){c=J[b];b in J||(c=H.o(b,G),c=H.C(c.b,b),J[b]=c);if(!(c instanceof y))throw Error("duplicate define: "+b);c.ga=n;H.D(c,a)}}
+var G,K,L,M=p.document,ga=M&&(M.head||M.getElementsByTagName("head")[0]),ia=ga&&ga.getElementsByTagName("base")[0]||null,ja={},ka={},N={},la="addEventListener"in p?{}:{loaded:1,complete:1},x={},ba=x.toString,C,J={},O={},P=n,I,ma=/\?/,na=/^\/|^[^:]+:\/\//,da=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,pa=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,qa=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,ra,H;
+H={i:function(a,b,c){var d,a=ca(a,b);if("."==a.charAt(0))return a;d=s(a);a=(b=d.m)||d.p;a in c.c&&(a=c.c[a].aa||a);b&&(0>b.indexOf("/")&&!(b in c.c)&&(a=r(c.da)+"/"+b),a=a+"!"+d.p);return a},e:function(a,b,c,d){function e(b){return H.i(b,g.id,a)}function f(b,c,f){var j;j=c&&function(a){c.apply(C,a)};if(q(b,"String")){if(j)throw Error("require(id, callback) not allowed");f=e(b);b=J[f];if(!(f in J))throw Error("Module not resolved: "+f);return(f=b instanceof y&&b.a)||b}D(H.l(H.e(a,g.id,b,d)),j,f)}var g;
+g=new y;g.id=b||"";g.$=d;g.F=c;g.b=a;g.n=f;f.toUrl=function(b){return H.o(e(b),a).url};g.i=e;return g},C:function(a,b,c){var d,e,f;d=H.e(a,b,C,c);e=d.g;f=E(1,function(a){d.r=a;try{return H.T(d)}catch(b){d.d(b)}});d.g=function(a){D(c||P,function(){e(J[d.id]=O[d.url]=f(a))})};d.H=function(a){D(c||P,function(){d.a&&(f(a),d.v(ka))})};return d},Q:function(a,b,c,d){return H.e(a,c,C,d)},Y:function(a){return a.n},J:function(a){return a.a||(a.a={})},X:function(a){var b=a.t;b||(b=a.t={id:a.id,uri:H.K(a),exports:H.J(a),
+config:function(){return a.b}},b.a=b.exports);return b},K:function(a){return a.url||(a.url=H.B(a.n.toUrl(a.id),a.b))},b:function(a){var b,c,d,e,f,g;b=!a;a&&(H.b=H.M);a||(a={});d=a.apiName||"curl";e=a.apiContext||p;f=a.defineName||"define";g=a.defineContext||p;c=a.overwriteApi;!b&&K&&(p.curl=K,K=n);if(!b&&!c&&e[d]&&e[d]!=F)throw Error(d+" already exists");e[d]=F;if(!b||!p.define){if(!b&&!c&&f in g&&g[f]!=L)throw Error(f+" already exists");g[f]=L=function(){var a=H.W(arguments);fa(a)};L.amd={plugins:i,
+jQuery:i,curl:"0.7.2"}}return H.M(a)},M:function(a,b){function c(a,b){var d,c,g,h,t;for(t in a){g=a[t];q(g,"String")&&(g={path:a[t]});g.name=g.name||t;h=e;c=s(r(H.i(g.name,"",e)));d=c.p;if(c=c.m)h=f[c],h||(h=f[c]=v(e),h.c=v(e.c),h.f=[]),delete a[t];if(b){c=g;var A=void 0;c.path=r(c.path||c.location||"");A=c.main||"./main";"."==A.charAt(0)||(A="./"+A);c.aa=ca(A,c.name+"/");c.b=c.config;c.b&&(c.b=v(e,c.b))}else c={path:r(g.path)};c.O=d.split("/").length;d?(h.c[d]=c,h.f.push(d)):h.j=H.N(g.path,e)}}function d(a){var b=
+a.c;a.ca=RegExp("^("+a.f.sort(function(a,d){return b[d].O-b[a].O}).join("|").replace(/\/|\./g,"\\$&")+")(?=\\/|$)");delete a.f}var e,f,g,h;b||(b={});e=v(b,a);e.j=e.baseUrl||"";e.da=e.pluginPath||"curl/plugin";e.R=RegExp(e.dontAddFileExt||ma);e.c=v(b.c);f=a.plugins||{};e.plugins=v(b.plugins);e.f=[];c(a.packages,i);c(a.paths,n);for(g in f)h=H.i(g+"!","",e),e.plugins[h.substr(0,h.length-1)]=f[g];f=e.plugins;for(g in f)if(f[g]=v(e,f[g]),h=f[g].f)f[g].f=h.concat(e.f),d(f[g]);d(e);return e},A:function(a){var b;
+(b=a&&a.preloads)&&0<b.length&&D(P,function(){P=H.l(H.e(G,C,b,i))})},o:function(a,b){var c,d,e,f;c=b.c;e=na.test(a)?a:a.replace(b.ca,function(a){d=c[a]||{};f=d.b;return d.path||""});return{b:f||G,url:H.N(e,b)}},N:function(a,b){var c=b.j;return c&&!na.test(a)?r(c)+"/"+a:a},B:function(a,b){return a+((b||G).R.test(a)?"":".js")},s:function(a,b,c){var d=M.createElement("script");d.onload=d.onreadystatechange=function(c){c=c||p.event;if("load"==c.type||la[d.readyState])delete N[a.id],d.onload=d.onreadystatechange=
+d.onerror="",b()};d.onerror=function(){c(Error("Syntax or http error: "+a.url))};d.type=a.L||"text/javascript";d.charset="utf-8";d.async=!a.ba;d.src=a.url;N[a.id]=d;ga.insertBefore(d,ia);return d},I:function(a){var b=[],c;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(pa,"").replace(qa,function(a,e,f){f?c=c==f?C:c:c||b.push(e);return""});return b},W:function(a){var b,c,d,e,f,g;f=a.length;d=a[f-1];e=q(d,"Function")?d.length:-1;2==f?q(a[0],"Array")?c=a[0]:b=a[0]:3==f&&(b=a[0],c=
+a[1]);!c&&0<e&&(g=i,c=["require","exports","module"].slice(0,e).concat(H.I(d)));return{id:b,r:c||[],w:0<=e?d:function(){return d},q:g}},T:function(a){var b;b=a.w.apply(a.q?a.a:C,a.r);b===C&&a.a&&(b=a.t?a.a=a.t.a:a.a);return b},D:function(a,b){a.w=b.w;a.q=b.q;a.F=b.r;H.l(a)},l:function(a){function b(a,b,d){g[b]=a;d&&m(a,b)}function c(b,d){var c,e,f,g;c=E(1,function(a){e(a);j(a,d)});e=E(1,function(a){m(a,d)});f=H.U(b,a);(g=f instanceof y&&f.a)&&e(g);D(f,c,a.d,a.a&&function(a){f.a&&(a==ja?e(f.a):a==
+ka&&c(f.a))})}function d(){a.g(g)}var e,f,g,h,l,m,j;g=[];f=a.F;h=f.length;0==f.length&&d();m=E(h,b,function(){a.H&&a.H(g)});j=E(h,b,d);for(e=0;e<h;e++)l=f[e],l in ra?(j(ra[l](a),e,i),a.a&&a.v(ja)):l?c(l,e):j(C,e,i);return a},V:function(a){H.K(a);H.s(a,function(){var b=I;I=C;a.ga!==n&&(!b||b.G?a.d(Error(b&&b.G||"define() missing or duplicated: "+a.url)):H.D(a,b))},a.d);return a},U:function(a,b){var c,d,e,f,g,h,l,m,j,k,z;c=b.i;d=b.$;e=b.b||G;f=s(c(a));l=f.p;g=f.m||l;m=H.o(g,e);if(f.m)h=g;else if(h=
+m.b.moduleLoader)l=g,g=h,m=H.o(h,e);g in J?j=J[g]:m.url in O?j=J[g]=O[m.url]:(j=H.C(m.b,g,d),j.url=H.B(m.url,m.b),J[g]=O[m.url]=j,H.V(j));g==h&&(k=new y,z=e.plugins[h]||e,D(j,function(a){var b,e,f;f=a.dynamic;l="normalize"in a?a.normalize(l,c,j.b)||"":c(l);e=h+"!"+l;b=J[e];if(!(e in J)){b=H.Q(z,e,l,d);f||(J[e]=b);var g=function(a){b.g(a);f||(J[e]=a)};g.resolve=g;g.reject=g.error=b.d;a.load(l,b.n,g,z)}k!=b&&D(b,k.g,k.d,k.v)},k.d));return k||j},Z:function(){var a;if(!q(p.opera,"Opera"))for(var b in N)if("interactive"==
+N[b].readyState){a=b;break}return a}};ra={require:H.Y,exports:H.J,module:H.X};F.version="0.7.2";G=p.curl;"function"==typeof G?(K=G,G=n):p.curl=C;G=H.b(G);H.A(G);J.curl=F;J["curl/_privileged"]={core:H,cache:J,config:function(){return G},_define:fa,_curl:F,Promise:y};var Q=this.document;function sa(){if(!Q.body)return n;R||(R=Q.createTextNode(""));try{return Q.body.removeChild(Q.body.appendChild(R)),R=ta,i}catch(a){return n}}
+function S(){var a;a=ua[Q[va]]&&sa();if(!T&&a){T=i;for(clearTimeout(wa);xa=ya.pop();)xa();za&&(Q[va]="complete");for(var b;b=Aa.shift();)b()}return a}function Ba(){S();T||(wa=setTimeout(Ba,Ca))}var va="readyState",ua={loaded:1,interactive:1,complete:1},Aa=[],za=Q&&"string"!=typeof Q[va],T=n,Ca=10,U,xa,ya=[],wa,ta,R;
+U="addEventListener"in this?function(a,b){a.addEventListener(b,S,n);return function(){a.removeEventListener(b,S,n)}}:function(a,b){a.attachEvent("on"+b,S);return function(){a.detachEvent(b,S)}};Q&&!S()&&(ya=[U(this,"load"),U(Q,"readystatechange"),U(this,"DOMContentLoaded")],wa=setTimeout(Ba,Ca));define("curl/domReady",function(){function a(a){T?a():Aa.push(a)}a.then=a;a.amd=i;return a});var Da;
+define("curl/shim/dojo16",["curl/_privileged","curl/domReady"],function(a,b){function c(a){a.ready||(a.ready=function(a){b(a)});a.nameToUrl||(a.nameToUrl=function(b,d){return a.toUrl(b+(d||""))});a.cache||(a.cache={})}var d=a._curl,e=a.core.e;c(d);"undefined"==typeof Da&&(Da=d);a.core.e=function(){var a=e.apply(this,arguments);c(a.n);return a};return i});var Ea=this.document;function Fa(a){try{return eval(a)}catch(b){}}
+define("curl/plugin/js",["curl/_privileged"],function(a){function b(b,d,c){function e(){g||(f<new Date?c():setTimeout(e,10))}var f,g,h;f=(new Date).valueOf()+(b.fa||3E5);c&&b.a&&setTimeout(e,10);h=a.core.s(b,function(){g=i;b.a&&(b.z=Fa(b.a));!b.a||b.z?d(h):c()},function(a){g=i;c(a)})}function c(a,d){b(a,function(){var b=e.shift();h=0<e.length;b&&c.apply(null,b);d.g(a.z||i)},function(a){d.d(a)})}var d={},e=[],f=Ea&&Ea.createElement("script").async==i,g,h;g=a.Promise;return{dynamic:i,normalize:function(a,
+b){var d=a.indexOf("!");return 0<=d?b(a.substr(0,d))+a.substr(d):b(a)},load:function(a,m,j,k){function z(a){(j.error||function(a){throw a;})(a)}var w,t,A,oa,B;w=0<a.indexOf("!order");t=a.indexOf("!exports=");A=0<t&&a.substr(t+9);oa="prefetch"in k?k.prefetch:i;a=w||0<t?a.substr(0,a.indexOf("!")):a;m=m.toUrl(a);B=m.lastIndexOf(".")<=m.lastIndexOf("/")?m+".js":m;B in d?d[B]instanceof g?d[B].h(j,z):j(d[B]):(a={name:a,url:B,ba:w,a:A,fa:k.timeout},d[B]=k=new g,k.h(function(a){d[B]=a;j(a)},z),w&&!f&&h?(e.push([a,
+k]),oa&&(a.L="text/cache",b(a,function(a){a&&a.parentNode.removeChild(a)},function(){}),a.L="")):(h=h||w,c(a,k)))}}});
+define("curl/plugin/text",function(){function a(){if("undefined"!==typeof XMLHttpRequest)a=function(){return new XMLHttpRequest};else for(var b=a=function(){throw Error("getXhr(): XMLHttpRequest not available");};0<c.length&&a===b;)(function(b){try{new ActiveXObject(b),a=function(){return new ActiveXObject(b)}}catch(d){}})(c.shift());return a()}function b(a){throw a;}var c=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];return{load:function(d,c,f){var d=c.toUrl(d),g=f.error||b,h=a();h.open("GET",
+d,i);h.onreadystatechange=function(){4===h.readyState&&(400>h.status?f(h.responseText):g(Error("fetchText() failed. status: "+h.statusText)))};h.send(null)},"plugin-builder":"./builder/text"}});define("curl/plugin/async",function(){return{load:function(a,b,c){function d(a){"function"==typeof c.error&&c.error(a)}b([a],function(a){"function"==typeof a.h?a.h(function(b){0==arguments.length&&(b=a);c(b)},d):c(a)},c.error||function(a){throw a;})},analyze:function(a,b,c){c(a)}}});
+function Ga(){var a;a=V[Ha]("link");a.rel="stylesheet";a.type="text/css";return a}function Ia(a,b,c){Ja.push({url:a,P:b,S:function(){c(Error(Ka))}});a=La.shift();!a&&Ma.length<Na&&(a=V.createElement("style"),Ma.push(a),W.appendChild(a));a&&Oa(a)}function Oa(a){var b,c;b=Ja.shift();c=a.styleSheet;b?(a.onload=function(){b.P(b.ea);Oa(a)},a.onerror=function(){b.S();Oa(a)},b.ea=c.imports[c.addImport(b.url)]):(a.onload=a.onerror=X,La.push(a))}
+function Pa(a,b,c){if(!Y.load){var d;var e,f;if(!a.href||V.readyState&&"complete"!=V.readyState)d=n;else{d=n;try{if(e=a.sheet)f=e.cssRules,d=null===f,!d&&f&&(e.insertRule("-curl-css-test {}",0),e.deleteRule(0),d=i)}catch(g){d="[object Opera]"!=window.opera.toString()&&/security|denied/i.test(g.message)}}d?c(a.sheet):a.onload==X||!a.onload||Qa(function(){Pa(a,b,c)},b)}}
+function Ra(a,b,c,d){function e(){if(f.onload!=X&&f.onload){f.onload=f.onerror=X;var a=function(){!V.readyState||"complete"==V.readyState?b(f.sheet):Qa(a,10)};a()}}var f;f=Ga();f.onload=function(){Y.load=Y.load||i;e()};Pa(f,d,e);f.onerror=function(){Y.error=Y.error||i;f.onload!=X&&f.onload&&(f.onload=f.onerror=X,c(Error(Ka)))};f.href=a;W.appendChild(f)}function X(){}
+var Ha="createElement",Qa=this.setTimeout,V=this.document,W,Sa=V&&V.createStyleSheet&&!(10<=V.documentMode),Ma=[],La=[],Ja=[],Na=12,Ta,Ka="HTTP or network error.",Y={};V&&(W=V.head||V.getElementsByTagName("head")[0],Ta=Sa?Ia:Ra);
+define("curl/plugin/css",{normalize:function(a,b){var c,d;if(!a)return a;c=a.split(",");d=[];for(var e=0,f=c.length;e<f;e++)d.push(b(c[e]));return d.join(",")},load:function(a,b,c,d){function e(a){1<h.length&&g.push(a);0==--m&&c(1==h.length?a:g)}function f(a){(c.d||function(a){throw a;})(a)}var g,h,l,m,j;g=[];h=(a||"").split(",");l=d.cssWatchPeriod||50;d=d.cssNoWait;m=h.length;for(j=0;j<h.length;j++){var a=h[j],k,a=b.toUrl(a),a=a.lastIndexOf(".")<=a.lastIndexOf("/")?a+".css":a;d?(k=Ga(),k.href=a,
+W.appendChild(k),e(k.sheet||k.styleSheet)):Ta(a,e,f,l)}},"plugin-builder":"./builder/css",pluginBuilder:"./builder/css"});var Z=this.document,Ua=/^\/\//,Va;Z&&(Va=Z.head||(Z.head=Z.getElementsByTagName("head")[0]));
+define("curl/plugin/link",{load:function(a,b,c,d){a=b.toUrl(a);a=a.lastIndexOf(".")<=a.lastIndexOf("/")?a+".css":a;d=a=(d="fixSchemalessUrls"in d?d.fixSchemalessUrls:Z.location.protocol)?a.replace(Ua,d+"//"):a;a=Z.createElement("link");a.rel="stylesheet";a.type="text/css";a.href=d;Va.appendChild(a);c(a.sheet||a.styleSheet)}});define("curl/plugin/domReady",["../domReady"],function(a){return{load:function(b,c,d){a(d)}}});var $=this.document;function Wa(a){eval(a)}
+define("curl/loader/cjsm11",function(){function a(b,c){a="text"in b?function(a,b){a.text=b}:function(a,b){a.appendChild($.createTextNode(b))};a(b,c)}var b,c;c=(b=$&&($.head||$.getElementsByTagName("head")[0]))&&b.getElementsByTagName("base")[0]||null;return{load:function(d,e,f,g){e(["text!"+d+".js","curl/_privileged"],function(h,l){var m;m=l.core.I(h);e(m,function(){var j=h,k=g.injectSourceUrl!==n&&e.la(d),k=k?"////@ sourceURL="+k.replace(/\s/g,"%20")+".js":"";h="define('"+d+"',['require','exports','module'],function(require,exports,module){"+
+j+"\n});\n"+k+"\n";g.injectScript?(j=h,k=$.createElement("script"),a(k,j),k.charset="utf-8",b.insertBefore(k,c)):Wa(h);f(e(d))},f.error||function(a){throw a;})})}}});define.amd.ka=i;
+(function(a,b){define("curl/shim/ssjs",function(c){function d(a,d,c){try{b(a.url),d()}catch(e){c(e)}}function e(b,d,c){var e;try{e=b.url.replace(/\.js$/,""),a(e),d()}catch(f){c(f)}}function f(b,d,c){var e,b=a("url").parse(b.url,n,i);e="";z.get(b,function(a){a.u("data",function(a){e+=a}).u("end",function(){h(e);d()}).u("error",c)}).u("error",c)}function g(a){throw Error("ssjs: unable to load module in current environment: "+a.url);}function h(a){eval(a)}var l,m,j,k,z,w,t;if(!("object"==typeof window&&
+(window.ha||window.navigator))){c=c("curl/_privileged");l=c.b();m=/^\w+:/;j=/(^\w+:)?.*$/;k=(l.k&&":"!=l.k[l.k.length-1]?l.k+":":l.k)||l.j&&l.j.replace(j,function(a,b){return b})||"http:";if(b)w=t=d;else if(a){w=e;try{z=a("http"),t=f}catch(A){t=g}}else w=t=g;c.ia.s=function(a,b,c){/^\/\//.test(a.url)&&(a.url=k+a.url);return m.test(a.url)?t(a,b,c):w(a,b,c)}}})})(Da,void 0);
}).call(this);
View
42 dist/curl-with-js-and-domReady/curl.js
@@ -1,24 +1,24 @@
(function(){/*
MIT License (c) copyright B Cavalier & J Hann */
-var h=!0,l=!1,m=this.window||global;function n(){}function p(a,b){return 0==aa.call(a).indexOf("[object "+b)}function t(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function u(a,b){var c,d,e,g;c=1;d=a;"."==d.charAt(0)&&(e=h,d=d.replace(ba,function(a,b,d,e){d&&c++;return e||""}));if(e){e=b.split("/");g=e.length-c;if(0>g)return a;e.splice(g,c);return e.concat(d||[]).join("/")}return d}function v(a){var b=a.indexOf("!");return{l:a.substr(b+1),j:0<=b&&a.substr(0,b)}}function w(){}
-function z(a,b){w.prototype=a||A;var c=new w;w.prototype=A;for(var d in b)c[d]=b[d];return c}function B(){function a(a,b,e){d.push([a,b,e])}function b(a,b){for(var e,c=0;e=d[c++];)(e=e[a])&&e(b)}var c,d,e;c=this;d=[];e=function(c,f){a=c?function(a){a&&a(f)}:function(a,b){b&&b(f)};e=n;b(c?0:1,f);b=n;d=D};this.t=function(b,d,e){a(b,d,e)};this.f=function(a){c.s=a;e(h,a)};this.d=function(a){c.ca=a;e(l,a)};this.p=function(a){b(2,a)}}function E(a,b,c,d){a instanceof B?a.t(b,c,d):b(a)}
-function F(a,b,c){var d;return function(){0<=--a&&b&&(d=b.apply(D,arguments));0==a&&c&&c(d);return d}}function G(){function a(b,e,c,f){var i;i=H.g(I,D,[].concat(b));this.then=b=function(a,b){E(i,function(b){a&&a.apply(D,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(b,d,e){return new a(b,d,e,i)};e&&b(e,c);E(f,function(){H.i(i)})}var b=[].slice.call(arguments),c;p(b[0],"Object")&&(c=b.shift(),I=H.b(c,I),H.v(c));return new a(b[0],b[1],b[2])}
-function ca(a){var b,c;b=a.id;if(b==D)if(J!==D)J={C:"Multiple anonymous defines in url"};else if(!(b=H.V()))J=a;if(b!=D){c=K[b];b in K||(c=H.k(b,I),c=H.z(c.b,b),K[b]=c);if(!(c instanceof B))throw Error("duplicate define: "+b);c.ba=l;H.A(c,a)}}
-var I,L,M,O=m.document,P=O&&(O.head||O.getElementsByTagName("head")[0]),da=P&&P.getElementsByTagName("base")[0]||null,fa={},ga={},Q={},ha="addEventListener"in m?{}:{loaded:1,complete:1},A={},aa=A.toString,D,K={},R={},S=l,J,ia=/\?/,ja=/^\/|^[^:]+:\/\//,ba=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,ka=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,la=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,T,H;
-H={h:function(a,b,c){var d,a=u(a,b);if("."==a.charAt(0))return a;d=v(a);a=(b=d.j)||d.l;a in c.c&&(a=c.c[a].X||a);b&&(0>b.indexOf("/")&&!(b in c.c)&&(a=t(c.$)+"/"+b),a=a+"!"+d.l);return a},g:function(a,b,c,d){function e(b){return H.h(b,f.id,a)}function g(b,c,g){var j;j=c&&function(a){c.apply(D,a)};if(p(b,"String")){if(j)throw Error("require(id, callback) not allowed");g=e(b);b=K[g];if(!(g in K))throw Error("Module not resolved: "+g);return(g=b instanceof B&&b.a)||b}E(H.i(H.g(a,f.id,b,d)),j,g)}var f;
-f=new B;f.id=b||"";f.W=d;f.B=c;f.b=a;f.q=g;g.toUrl=function(b){return H.k(e(b),a).url};f.h=e;return f},z:function(a,b,c){var d,e,g;d=H.g(a,b,D,c);e=d.f;g=F(1,function(a){d.n=a;try{return H.O(d)}catch(b){d.d(b)}});d.f=function(a){E(c||S,function(){e(K[d.id]=R[d.url]=g(a))})};d.D=function(a){E(c||S,function(){d.a&&(g(a),d.p(ga))})};return d},M:function(a,b,c,d){return H.g(a,c,D,d)},U:function(a){return a.q},F:function(a){return a.a||(a.a={})},T:function(a){var b=a.o;b||(b=a.o={id:a.id,uri:H.G(a),exports:H.F(a),
-config:function(){return a.b}},b.a=b.exports);return b},G:function(a){return a.url||(a.url=H.w(a.q.toUrl(a.id),a.b))},b:function(a){var b,c,d,e,g,f;b=!a;a&&(H.b=H.J);a||(a={});d=a.apiName||"curl";e=a.apiContext||m;g=a.defineName||"define";f=a.defineContext||m;c=a.overwriteApi;!b&&L&&(m.curl=L,L=l);if(!b&&!c&&e[d]&&e[d]!=G)throw Error(d+" already exists");e[d]=G;if(!b||!m.define){if(!b&&!c&&g in f&&f[g]!=M)throw Error(g+" already exists");f[g]=M=function(){var a=H.S(arguments);ca(a)};M.amd={plugins:h,
-jQuery:h,curl:"0.7.1"}}return H.J(a)},J:function(a,b){function c(a,b){var d,c,f,s,i;for(i in a){f=a[i];p(f,"String")&&(f={path:a[i]});f.name=f.name||i;s=e;c=v(t(H.h(f.name,"",e)));d=c.l;if(c=c.j)s=g[c],s||(s=g[c]=z(e),s.c=z(e.c),s.e=[]),delete a[i];if(b){c=f;var x=void 0;c.path=t(c.path||c.location||"");x=c.main||"./main";"."==x.charAt(0)||(x="./"+x);c.X=u(x,c.name+"/");c.b=c.config;c.b&&(c.b=z(e,c.b))}else c={path:t(f.path)};c.L=d.split("/").length;d?(s.c[d]=c,s.e.push(d)):s.u=H.K(f.path,e)}}function d(a){var b=
-a.c;a.Z=RegExp("^("+a.e.sort(function(a,c){return b[c].L-b[a].L}).join("|").replace(/\/|\./g,"\\$&")+")(?=\\/|$)");delete a.e}var e,g,f,i;b||(b={});e=z(b,a);e.u=e.baseUrl||"";e.$=e.pluginPath||"curl/plugin";e.N=RegExp(e.dontAddFileExt||ia);e.c=z(b.c);g=a.plugins||{};e.plugins=z(b.plugins);e.e=[];c(a.packages,h);c(a.paths,l);for(f in g)i=H.h(f+"!","",e),e.plugins[i.substr(0,i.length-1)]=g[f];g=e.plugins;for(f in g)if(g[f]=z(e,g[f]),i=g[f].e)g[f].e=i.concat(e.e),d(g[f]);d(e);return e},v:function(a){var b;
-(b=a&&a.preloads)&&0<b.length&&E(S,function(){S=H.i(H.g(I,D,b,h))})},k:function(a,b){var c,d,e,g;c=b.c;e=ja.test(a)?a:a.replace(b.Z,function(a){d=c[a]||{};g=d.b;return d.path||""});return{b:g||I,url:H.K(e,b)}},K:function(a,b){var c=b.u;return c&&!ja.test(a)?t(c)+"/"+a:a},w:function(a,b){return a+((b||I).N.test(a)?"":".js")},H:function(a,b,c){var d=O.createElement("script");d.onload=d.onreadystatechange=function(c){c=c||m.event;if("load"==c.type||ha[d.readyState])delete Q[a.id],d.onload=d.onreadystatechange=
-d.onerror="",b()};d.onerror=function(){c(Error("Syntax or http error: "+a.url))};d.type=a.I||"text/javascript";d.charset="utf-8";d.async=!a.Y;d.src=a.url;Q[a.id]=d;P.insertBefore(d,da);return d},P:function(a){var b=[],c;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(ka,"").replace(la,function(a,e,g){g?c=c==g?D:c:c||b.push(e);return""});return b},S:function(a){var b,c,d,e,g,f;g=a.length;d=a[g-1];e=p(d,"Function")?d.length:-1;2==g?p(a[0],"Array")?c=a[0]:b=a[0]:3==g&&(b=a[0],c=a[1]);
-!c&&0<e&&(f=h,c=["require","exports","module"].slice(0,e).concat(H.P(d)));return{id:b,n:c||[],r:0<=e?d:function(){return d},m:f}},O:function(a){var b;b=a.r.apply(a.m?a.a:D,a.n);b===D&&a.a&&(b=a.o?a.a=a.o.a:a.a);return b},A:function(a,b){a.r=b.r;a.m=b.m;a.B=b.n;H.i(a)},i:function(a){function b(a,b,c){f[b]=a;c&&k(a,b)}function c(b,c){var d,e,f,g;d=F(1,function(a){e(a);j(a,c)});e=F(1,function(a){k(a,c)});f=H.Q(b,a);(g=f instanceof B&&f.a)&&e(g);E(f,d,a.d,a.a&&function(a){f.a&&(a==fa?e(f.a):a==ga&&d(f.a))})}
-function d(){a.f(f)}var e,g,f,i,q,k,j;f=[];g=a.B;i=g.length;0==g.length&&d();k=F(i,b,function(){a.D&&a.D(f)});j=F(i,b,d);for(e=0;e<i;e++)q=g[e],q in T?(j(T[q](a),e,h),a.a&&a.p(fa)):q?c(q,e):j(D,e,h);return a},R:function(a){H.G(a);H.H(a,function(){var b=J;J=D;a.ba!==l&&(!b||b.C?a.d(Error(b&&b.C||"define() missing or duplicated: "+a.url)):H.A(a,b))},a.d);return a},Q:function(a,b){var c,d,e,g,f,i,q,k,j,r,C;c=b.h;d=b.W;e=b.b||I;g=v(c(a));q=g.l;f=g.j||q;k=H.k(f,e);if(g.j)i=f;else if(i=k.b.moduleLoader)q=
-f,f=i,k=H.k(i,e);f in K?j=K[f]:k.url in R?j=K[f]=R[k.url]:(j=H.z(k.b,f,d),j.url=H.w(k.url,k.b),K[f]=R[k.url]=j,H.R(j));f==i&&(r=new B,C=e.plugins[i]||e,E(j,function(a){var b,e,f;f=a.dynamic;q="normalize"in a?a.normalize(q,c,j.b)||"":c(q);e=i+"!"+q;b=K[e];if(!(e in K)){b=H.M(C,e,q,d);f||(K[e]=b);var g=function(a){b.f(a);f||(K[e]=a)};g.resolve=g;g.reject=g.error=b.d;a.load(q,b.q,g,C)}r!=b&&E(b,r.f,r.d,r.p)},r.d));return r||j},V:function(){var a;if(!p(m.opera,"Opera"))for(var b in Q)if("interactive"==
-Q[b].readyState){a=b;break}return a}};T={require:H.U,exports:H.F,module:H.T};G.version="0.7.1";I=m.curl;"function"==typeof I?(L=I,I=l):m.curl=D;I=H.b(I);H.v(I);K.curl=G;K["curl/_privileged"]={core:H,cache:K,config:function(){return I},_define:ca,_curl:G,Promise:B};var U=this.document;function ma(){if(!U.body)return l;V||(V=U.createTextNode(""));try{return U.body.removeChild(U.body.appendChild(V)),V=na,h}catch(a){return l}}
-function W(){var a;a=oa[U[X]]&&ma();if(!Y&&a){Y=h;for(clearTimeout(Z);pa=qa.pop();)pa();ra&&(U[X]="complete");for(var b;b=sa.shift();)b()}return a}function ta(){W();Y||(Z=setTimeout(ta,ua))}var X="readyState",oa={loaded:1,interactive:1,complete:1},sa=[],ra=U&&"string"!=typeof U[X],Y=l,ua=10,$,pa,qa=[],Z,na,V;$="addEventListener"in this?function(a,b){a.addEventListener(b,W,l);return function(){a.removeEventListener(b,W,l)}}:function(a,b){a.attachEvent("on"+b,W);return function(){a.detachEvent(b,W)}};
-U&&!W()&&(qa=[$(this,"load"),$(U,"readystatechange"),$(this,"DOMContentLoaded")],Z=setTimeout(ta,ua));define("curl/domReady",function(){function a(a){Y?a():sa.push(a)}a.then=a;a.amd=h;return a});var va=this.document;function wa(a){try{return eval(a)}catch(b){}}
-define("curl/plugin/js",["curl/_privileged"],function(a){function b(b,c,d){function e(){g||(f<new Date?d():setTimeout(e,10))}var f,g,i;f=(new Date).valueOf()+(b.aa||3E5);d&&b.a&&setTimeout(e,10);i=a.core.H(b,function(){g=h;b.a&&(b.s=wa(b.a));!b.a||b.s?c(i):d()},function(a){g=h;d(a)})}function c(a,d){b(a,function(){var b=e.shift();i=0<e.length;b&&c.apply(null,b);d.f(a.s||h)},function(a){d.d(a)})}var d={},e=[],g=va&&va.createElement("script").async==h,f,i;f=a.Promise;return{dynamic:h,normalize:function(a,
-b){var c=a.indexOf("!");return 0<=c?b(a.substr(0,c))+a.substr(c):b(a)},load:function(a,k,j,r){function C(a){(j.error||function(a){throw a;})(a)}var s,N,x,ea,y;s=0<a.indexOf("!order");N=a.indexOf("!exports=");x=0<N&&a.substr(N+9);ea="prefetch"in r?r.prefetch:h;a=s||0<N?a.substr(0,a.indexOf("!")):a;k=k.toUrl(a);y=k.lastIndexOf(".")<=k.lastIndexOf("/")?k+".js":k;y in d?d[y]instanceof f?d[y].t(j,C):j(d[y]):(a={name:a,url:y,Y:s,a:x,aa:r.timeout},d[y]=r=new f,r.t(function(a){d[y]=a;j(a)},C),s&&!g&&i?(e.push([a,
-r]),ea&&(a.I="text/cache",b(a,function(a){a&&a.parentNode.removeChild(a)},function(){}),a.I="")):(i=i||s,c(a,r)))}}});define("curl/plugin/domReady",["../domReady"],function(a){return{load:function(b,c,d){a(d)}}});
+var h=!0,l=!1,m=this.window||global;function n(){}function p(a,b){return 0==aa.call(a).indexOf("[object "+b)}function t(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function u(a,b){var d,c,e,g;d=1;c=a;"."==c.charAt(0)&&(e=h,c=c.replace(ba,function(a,b,c,e){c&&d++;return e||""}));if(e){e=b.split("/");g=e.length-d;if(0>g)return a;e.splice(g,d);return e.concat(c||[]).join("/")}return c}function w(a){var b=a.indexOf("!");return{l:a.substr(b+1),j:0<=b&&a.substr(0,b)}}function x(){}
+function A(a,b){x.prototype=a||B;var d=new x;x.prototype=B;for(var c in b)d[c]=b[c];return d}function C(){function a(a,b,e){c.push([a,b,e])}function b(a,b){for(var e,d=0;e=c[d++];)(e=e[a])&&e(b)}var d,c,e;d=this;c=[];e=function(d,f){a=d?function(a){a&&a(f)}:function(a,b){b&&b(f)};e=n;b(d?0:1,f);b=n;c=E};this.t=function(b,c,e){a(b,c,e)};this.f=function(a){d.s=a;e(h,a)};this.d=function(a){d.ca=a;e(l,a)};this.p=function(a){b(2,a)}}function F(a,b,d,c){a instanceof C?a.t(b,d,c):b(a)}
+function G(a,b,d){var c;return function(){0<=--a&&b&&(c=b.apply(E,arguments));0==a&&d&&d(c);return c}}function H(){var a=[].slice.call(arguments),b;p(a[0],"Object")&&(b=a.shift(),I=J.b(b,I),J.v(b));return new ca(a[0],a[1],a[2])}function ca(a,b,d,c){var e;e=J.g(I,E,[].concat(a));this.then=a=function(a,b){F(e,function(b){a&&a.apply(E,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(a,b,c){return new ca(a,b,c,e)};(b||d)&&a(b,d);F(c,function(){J.i(e)})}
+function da(a){var b,d;b=a.id;if(b==E)if(K!==E)K={C:"Multiple anonymous defines in url"};else if(!(b=J.V()))K=a;if(b!=E){d=L[b];b in L||(d=J.k(b,I),d=J.z(d.b,b),L[b]=d);if(!(d instanceof C))throw Error("duplicate define: "+b);d.ba=l;J.A(d,a)}}
+var I,M,N,O=m.document,P=O&&(O.head||O.getElementsByTagName("head")[0]),ea=P&&P.getElementsByTagName("base")[0]||null,ga={},ha={},Q={},ia="addEventListener"in m?{}:{loaded:1,complete:1},B={},aa=B.toString,E,L={},R={},S=l,K,ja=/\?/,ka=/^\/|^[^:]+:\/\//,ba=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,la=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,ma=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,T,J;
+J={h:function(a,b,d){var c,a=u(a,b);if("."==a.charAt(0))return a;c=w(a);a=(b=c.j)||c.l;a in d.c&&(a=d.c[a].X||a);b&&(0>b.indexOf("/")&&!(b in d.c)&&(a=t(d.$)+"/"+b),a=a+"!"+c.l);return a},g:function(a,b,d,c){function e(b){return J.h(b,f.id,a)}function g(b,d,g){var j;j=d&&function(a){d.apply(E,a)};if(p(b,"String")){if(j)throw Error("require(id, callback) not allowed");g=e(b);b=L[g];if(!(g in L))throw Error("Module not resolved: "+g);return(g=b instanceof C&&b.a)||b}F(J.i(J.g(a,f.id,b,c)),j,g)}var f;
+f=new C;f.id=b||"";f.W=c;f.B=d;f.b=a;f.q=g;g.toUrl=function(b){return J.k(e(b),a).url};f.h=e;return f},z:function(a,b,d){var c,e,g;c=J.g(a,b,E,d);e=c.f;g=G(1,function(a){c.n=a;try{return J.O(c)}catch(b){c.d(b)}});c.f=function(a){F(d||S,function(){e(L[c.id]=R[c.url]=g(a))})};c.D=function(a){F(d||S,function(){c.a&&(g(a),c.p(ha))})};return c},M:function(a,b,d,c){return J.g(a,d,E,c)},U:function(a){return a.q},F:function(a){return a.a||(a.a={})},T:function(a){var b=a.o;b||(b=a.o={id:a.id,uri:J.G(a),exports:J.F(a),
+config:function(){return a.b}},b.a=b.exports);return b},G:function(a){return a.url||(a.url=J.w(a.q.toUrl(a.id),a.b))},b:function(a){var b,d,c,e,g,f;b=!a;a&&(J.b=J.J);a||(a={});c=a.apiName||"curl";e=a.apiContext||m;g=a.defineName||"define";f=a.defineContext||m;d=a.overwriteApi;!b&&M&&(m.curl=M,M=l);if(!b&&!d&&e[c]&&e[c]!=H)throw Error(c+" already exists");e[c]=H;if(!b||!m.define){if(!b&&!d&&g in f&&f[g]!=N)throw Error(g+" already exists");f[g]=N=function(){var a=J.S(arguments);da(a)};N.amd={plugins:h,
+jQuery:h,curl:"0.7.2"}}return J.J(a)},J:function(a,b){function d(a,b){var c,d,f,s,v;for(v in a){f=a[v];p(f,"String")&&(f={path:a[v]});f.name=f.name||v;s=e;d=w(t(J.h(f.name,"",e)));c=d.l;if(d=d.j)s=g[d],s||(s=g[d]=A(e),s.c=A(e.c),s.e=[]),delete a[v];if(b){d=f;var y=void 0;d.path=t(d.path||d.location||"");y=d.main||"./main";"."==y.charAt(0)||(y="./"+y);d.X=u(y,d.name+"/");d.b=d.config;d.b&&(d.b=A(e,d.b))}else d={path:t(f.path)};d.L=c.split("/").length;c?(s.c[c]=d,s.e.push(c)):s.u=J.K(f.path,e)}}function c(a){var b=
+a.c;a.Z=RegExp("^("+a.e.sort(function(a,c){return b[c].L-b[a].L}).join("|").replace(/\/|\./g,"\\$&")+")(?=\\/|$)");delete a.e}var e,g,f,i;b||(b={});e=A(b,a);e.u=e.baseUrl||"";e.$=e.pluginPath||"curl/plugin";e.N=RegExp(e.dontAddFileExt||ja);e.c=A(b.c);g=a.plugins||{};e.plugins=A(b.plugins);e.e=[];d(a.packages,h);d(a.paths,l);for(f in g)i=J.h(f+"!","",e),e.plugins[i.substr(0,i.length-1)]=g[f];g=e.plugins;for(f in g)if(g[f]=A(e,g[f]),i=g[f].e)g[f].e=i.concat(e.e),c(g[f]);c(e);return e},v:function(a){var b;
+(b=a&&a.preloads)&&0<b.length&&F(S,function(){S=J.i(J.g(I,E,b,h))})},k:function(a,b){var d,c,e,g;d=b.c;e=ka.test(a)?a:a.replace(b.Z,function(a){c=d[a]||{};g=c.b;return c.path||""});return{b:g||I,url:J.K(e,b)}},K:function(a,b){var d=b.u;return d&&!ka.test(a)?t(d)+"/"+a:a},w:function(a,b){return a+((b||I).N.test(a)?"":".js")},H:function(a,b,d){var c=O.createElement("script");c.onload=c.onreadystatechange=function(d){d=d||m.event;if("load"==d.type||ia[c.readyState])delete Q[a.id],c.onload=c.onreadystatechange=
+c.onerror="",b()};c.onerror=function(){d(Error("Syntax or http error: "+a.url))};c.type=a.I||"text/javascript";c.charset="utf-8";c.async=!a.Y;c.src=a.url;Q[a.id]=c;P.insertBefore(c,ea);return c},P:function(a){var b=[],d;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(la,"").replace(ma,function(a,e,g){g?d=d==g?E:d:d||b.push(e);return""});return b},S:function(a){var b,d,c,e,g,f;g=a.length;c=a[g-1];e=p(c,"Function")?c.length:-1;2==g?p(a[0],"Array")?d=a[0]:b=a[0]:3==g&&(b=a[0],d=a[1]);
+!d&&0<e&&(f=h,d=["require","exports","module"].slice(0,e).concat(J.P(c)));return{id:b,n:d||[],r:0<=e?c:function(){return c},m:f}},O:function(a){var b;b=a.r.apply(a.m?a.a:E,a.n);b===E&&a.a&&(b=a.o?a.a=a.o.a:a.a);return b},A:function(a,b){a.r=b.r;a.m=b.m;a.B=b.n;J.i(a)},i:function(a){function b(a,b,d){f[b]=a;d&&k(a,b)}function d(b,d){var c,e,f,g;c=G(1,function(a){e(a);j(a,d)});e=G(1,function(a){k(a,d)});f=J.Q(b,a);(g=f instanceof C&&f.a)&&e(g);F(f,c,a.d,a.a&&function(a){f.a&&(a==ga?e(f.a):a==ha&&c(f.a))})}
+function c(){a.f(f)}var e,g,f,i,q,k,j;f=[];g=a.B;i=g.length;0==g.length&&c();k=G(i,b,function(){a.D&&a.D(f)});j=G(i,b,c);for(e=0;e<i;e++)q=g[e],q in T?(j(T[q](a),e,h),a.a&&a.p(ga)):q?d(q,e):j(E,e,h);return a},R:function(a){J.G(a);J.H(a,function(){var b=K;K=E;a.ba!==l&&(!b||b.C?a.d(Error(b&&b.C||"define() missing or duplicated: "+a.url)):J.A(a,b))},a.d);return a},Q:function(a,b){var d,c,e,g,f,i,q,k,j,r,D;d=b.h;c=b.W;e=b.b||I;g=w(d(a));q=g.l;f=g.j||q;k=J.k(f,e);if(g.j)i=f;else if(i=k.b.moduleLoader)q=
+f,f=i,k=J.k(i,e);f in L?j=L[f]:k.url in R?j=L[f]=R[k.url]:(j=J.z(k.b,f,c),j.url=J.w(k.url,k.b),L[f]=R[k.url]=j,J.R(j));f==i&&(r=new C,D=e.plugins[i]||e,F(j,function(a){var b,e,f;f=a.dynamic;q="normalize"in a?a.normalize(q,d,j.b)||"":d(q);e=i+"!"+q;b=L[e];if(!(e in L)){b=J.M(D,e,q,c);f||(L[e]=b);var g=function(a){b.f(a);f||(L[e]=a)};g.resolve=g;g.reject=g.error=b.d;a.load(q,b.q,g,D)}r!=b&&F(b,r.f,r.d,r.p)},r.d));return r||j},V:function(){var a;if(!p(m.opera,"Opera"))for(var b in Q)if("interactive"==
+Q[b].readyState){a=b;break}return a}};T={require:J.U,exports:J.F,module:J.T};H.version="0.7.2";I=m.curl;"function"==typeof I?(M=I,I=l):m.curl=E;I=J.b(I);J.v(I);L.curl=H;L["curl/_privileged"]={core:J,cache:L,config:function(){return I},_define:da,_curl:H,Promise:C};var U=this.document;function na(){if(!U.body)return l;V||(V=U.createTextNode(""));try{return U.body.removeChild(U.body.appendChild(V)),V=oa,h}catch(a){return l}}
+function W(){var a;a=pa[U[X]]&&na();if(!Y&&a){Y=h;for(clearTimeout(Z);qa=ra.pop();)qa();sa&&(U[X]="complete");for(var b;b=ta.shift();)b()}return a}function ua(){W();Y||(Z=setTimeout(ua,va))}var X="readyState",pa={loaded:1,interactive:1,complete:1},ta=[],sa=U&&"string"!=typeof U[X],Y=l,va=10,$,qa,ra=[],Z,oa,V;$="addEventListener"in this?function(a,b){a.addEventListener(b,W,l);return function(){a.removeEventListener(b,W,l)}}:function(a,b){a.attachEvent("on"+b,W);return function(){a.detachEvent(b,W)}};
+U&&!W()&&(ra=[$(this,"load"),$(U,"readystatechange"),$(this,"DOMContentLoaded")],Z=setTimeout(ua,va));define("curl/domReady",function(){function a(a){Y?a():ta.push(a)}a.then=a;a.amd=h;return a});var wa=this.document;function xa(a){try{return eval(a)}catch(b){}}
+define("curl/plugin/js",["curl/_privileged"],function(a){function b(b,d,c){function e(){g||(f<new Date?c():setTimeout(e,10))}var f,g,i;f=(new Date).valueOf()+(b.aa||3E5);c&&b.a&&setTimeout(e,10);i=a.core.H(b,function(){g=h;b.a&&(b.s=xa(b.a));!b.a||b.s?d(i):c()},function(a){g=h;c(a)})}function d(a,c){b(a,function(){var b=e.shift();i=0<e.length;b&&d.apply(null,b);c.f(a.s||h)},function(a){c.d(a)})}var c={},e=[],g=wa&&wa.createElement("script").async==h,f,i;f=a.Promise;return{dynamic:h,normalize:function(a,
+b){var c=a.indexOf("!");return 0<=c?b(a.substr(0,c))+a.substr(c):b(a)},load:function(a,k,j,r){function D(a){(j.error||function(a){throw a;})(a)}var s,v,y,fa,z;s=0<a.indexOf("!order");v=a.indexOf("!exports=");y=0<v&&a.substr(v+9);fa="prefetch"in r?r.prefetch:h;a=s||0<v?a.substr(0,a.indexOf("!")):a;k=k.toUrl(a);z=k.lastIndexOf(".")<=k.lastIndexOf("/")?k+".js":k;z in c?c[z]instanceof f?c[z].t(j,D):j(c[z]):(a={name:a,url:z,Y:s,a:y,aa:r.timeout},c[z]=r=new f,r.t(function(a){c[z]=a;j(a)},D),s&&!g&&i?(e.push([a,
+r]),fa&&(a.I="text/cache",b(a,function(a){a&&a.parentNode.removeChild(a)},function(){}),a.I="")):(i=i||s,d(a,r)))}}});define("curl/plugin/domReady",["../domReady"],function(a){return{load:function(b,d,c){a(c)}}});
}).call(this);
View
32 dist/curl/curl.js
@@ -1,19 +1,19 @@
(function(){/*
MIT License (c) copyright B Cavalier & J Hann */
-var h=!0,k=!1,l=this.window||global;function m(){}function q(a,b){return 0==r.call(a).indexOf("[object "+b)}function s(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function t(a,b){var c,d,e,g;c=1;d=a;"."==d.charAt(0)&&(e=h,d=d.replace(u,function(a,b,d,e){d&&c++;return e||""}));if(e){e=b.split("/");g=e.length-c;if(0>g)return a;e.splice(g,c);return e.concat(d||[]).join("/")}return d}function v(a){var b=a.indexOf("!");return{l:a.substr(b+1),j:0<=b&&a.substr(0,b)}}function x(){}
-function y(a,b){x.prototype=a||z;var c=new x;x.prototype=z;for(var d in b)c[d]=b[d];return c}function A(){function a(a,b,e){d.push([a,b,e])}function b(a,b){for(var e,c=0;e=d[c++];)(e=e[a])&&e(b)}var c,d,e;c=this;d=[];e=function(c,f){a=c?function(a){a&&a(f)}:function(a,b){b&&b(f)};e=m;b(c?0:1,f);b=m;d=B};this.X=function(b,d,e){a(b,d,e)};this.g=function(a){c.ba=a;e(h,a)};this.e=function(a){c.aa=a;e(k,a)};this.p=function(a){b(2,a)}}function E(a,b,c,d){a instanceof A?a.X(b,c,d):b(a)}
-function F(a,b,c){var d;return function(){0<=--a&&b&&(d=b.apply(B,arguments));0==a&&c&&c(d);return d}}function G(){function a(b,e,c,f){var i;i=H.f(I,B,[].concat(b));this.then=b=function(a,b){E(i,function(b){a&&a.apply(B,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(b,d,e){return new a(b,d,e,i)};e&&b(e,c);E(f,function(){H.i(i)})}var b=[].slice.call(arguments),c;q(b[0],"Object")&&(c=b.shift(),I=H.a(c,I),H.t(c));return new a(b[0],b[1],b[2])}
-function J(a){var b,c;b=a.id;if(b==B)if(K!==B)K={A:"Multiple anonymous defines in url"};else if(!(b=H.R()))K=a;if(b!=B){c=L[b];b in L||(c=H.k(b,I),c=H.v(c.a,b),L[b]=c);if(!(c instanceof A))throw Error("duplicate define: "+b);c.Y=k;H.w(c,a)}}
-var I,M,N,O=l.document,Q=O&&(O.head||O.getElementsByTagName("head")[0]),R=Q&&Q.getElementsByTagName("base")[0]||null,S={},T={},U={},V="addEventListener"in l?{}:{loaded:1,complete:1},z={},r=z.toString,B,L={},W={},X=k,K,Y=/\?/,Z=/^\/|^[^:]+:\/\//,u=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,aa=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,ba=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,$,H;
-H={h:function(a,b,c){var d,a=t(a,b);if("."==a.charAt(0))return a;d=v(a);a=(b=d.j)||d.l;a in c.c&&(a=c.c[a].U||a);b&&(0>b.indexOf("/")&&!(b in c.c)&&(a=s(c.W)+"/"+b),a=a+"!"+d.l);return a},f:function(a,b,c,d){function e(b){return H.h(b,f.id,a)}function g(b,c,g){var j;j=c&&function(a){c.apply(B,a)};if(q(b,"String")){if(j)throw Error("require(id, callback) not allowed");g=e(b);b=L[g];if(!(g in L))throw Error("Module not resolved: "+g);return(g=b instanceof A&&b.b)||b}E(H.i(H.f(a,f.id,b,d)),j,g)}var f;
-f=new A;f.id=b||"";f.S=d;f.z=c;f.a=a;f.q=g;g.toUrl=function(b){return H.k(e(b),a).url};f.h=e;return f},v:function(a,b,c){var d,e,g;d=H.f(a,b,B,c);e=d.g;g=F(1,function(a){d.n=a;try{return H.K(d)}catch(b){d.e(b)}});d.g=function(a){E(c||X,function(){e(L[d.id]=W[d.url]=g(a))})};d.B=function(a){E(c||X,function(){d.b&&(g(a),d.p(T))})};return d},I:function(a,b,c,d){return H.f(a,c,B,d)},Q:function(a){return a.q},C:function(a){return a.b||(a.b={})},P:function(a){var b=a.o;b||(b=a.o={id:a.id,uri:H.D(a),exports:H.C(a),
-config:function(){return a.a}},b.b=b.exports);return b},D:function(a){return a.url||(a.url=H.u(a.q.toUrl(a.id),a.a))},a:function(a){var b,c,d,e,g,f;b=!a;a&&(H.a=H.F);a||(a={});d=a.apiName||"curl";e=a.apiContext||l;g=a.defineName||"define";f=a.defineContext||l;c=a.overwriteApi;!b&&M&&(l.curl=M,M=k);if(!b&&!c&&e[d]&&e[d]!=G)throw Error(d+" already exists");e[d]=G;if(!b||!l.define){if(!b&&!c&&g in f&&f[g]!=N)throw Error(g+" already exists");f[g]=N=function(){var a=H.O(arguments);J(a)};N.amd={plugins:h,
-jQuery:h,curl:"0.7.1"}}return H.F(a)},F:function(a,b){function c(a,b){var d,c,f,i,C;for(C in a){f=a[C];q(f,"String")&&(f={path:a[C]});f.name=f.name||C;i=e;c=v(s(H.h(f.name,"",e)));d=c.l;if(c=c.j)i=g[c],i||(i=g[c]=y(e),i.c=y(e.c),i.d=[]),delete a[C];if(b){c=f;var D=void 0;c.path=s(c.path||c.location||"");D=c.main||"./main";"."==D.charAt(0)||(D="./"+D);c.U=t(D,c.name+"/");c.a=c.config;c.a&&(c.a=y(e,c.a))}else c={path:s(f.path)};c.H=d.split("/").length;d?(i.c[d]=c,i.d.push(d)):i.s=H.G(f.path,e)}}function d(a){var b=
-a.c;a.V=RegExp("^("+a.d.sort(function(a,c){return b[c].H-b[a].H}).join("|").replace(/\/|\./g,"\\$&")+")(?=\\/|$)");delete a.d}var e,g,f,i;b||(b={});e=y(b,a);e.s=e.baseUrl||"";e.W=e.pluginPath||"curl/plugin";e.J=RegExp(e.dontAddFileExt||Y);e.c=y(b.c);g=a.plugins||{};e.plugins=y(b.plugins);e.d=[];c(a.packages,h);c(a.paths,k);for(f in g)i=H.h(f+"!","",e),e.plugins[i.substr(0,i.length-1)]=g[f];g=e.plugins;for(f in g)if(g[f]=y(e,g[f]),i=g[f].d)g[f].d=i.concat(e.d),d(g[f]);d(e);return e},t:function(a){var b;
-(b=a&&a.preloads)&&0<b.length&&E(X,function(){X=H.i(H.f(I,B,b,h))})},k:function(a,b){var c,d,e,g;c=b.c;e=Z.test(a)?a:a.replace(b.V,function(a){d=c[a]||{};g=d.a;return d.path||""});return{a:g||I,url:H.G(e,b)}},G:function(a,b){var c=b.s;return c&&!Z.test(a)?s(c)+"/"+a:a},u:function(a,b){return a+((b||I).J.test(a)?"":".js")},T:function(a,b,c){var d=O.createElement("script");d.onload=d.onreadystatechange=function(c){c=c||l.event;if("load"==c.type||V[d.readyState])delete U[a.id],d.onload=d.onreadystatechange=
-d.onerror="",b()};d.onerror=function(){c(Error("Syntax or http error: "+a.url))};d.type=a.Z||"text/javascript";d.charset="utf-8";d.async=!a.$;d.src=a.url;U[a.id]=d;Q.insertBefore(d,R);return d},L:function(a){var b=[],c;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(aa,"").replace(ba,function(a,e,g){g?c=c==g?B:c:c||b.push(e);return""});return b},O:function(a){var b,c,d,e,g,f;g=a.length;d=a[g-1];e=q(d,"Function")?d.length:-1;2==g?q(a[0],"Array")?c=a[0]:b=a[0]:3==g&&(b=a[0],c=a[1]);
-!c&&0<e&&(f=h,c=["require","exports","module"].slice(0,e).concat(H.L(d)));return{id:b,n:c||[],r:0<=e?d:function(){return d},m:f}},K:function(a){var b;b=a.r.apply(a.m?a.b:B,a.n);b===B&&a.b&&(b=a.o?a.b=a.o.b:a.b);return b},w:function(a,b){a.r=b.r;a.m=b.m;a.z=b.n;H.i(a)},i:function(a){function b(a,b,c){f[b]=a;c&&p(a,b)}function c(b,c){var d,e,f,g;d=F(1,function(a){e(a);j(a,c)});e=F(1,function(a){p(a,c)});f=H.M(b,a);(g=f instanceof A&&f.b)&&e(g);E(f,d,a.e,a.b&&function(a){f.b&&(a==S?e(f.b):a==T&&d(f.b))})}
-function d(){a.g(f)}var e,g,f,i,n,p,j;f=[];g=a.z;i=g.length;0==g.length&&d();p=F(i,b,function(){a.B&&a.B(f)});j=F(i,b,d);for(e=0;e<i;e++)n=g[e],n in $?(j($[n](a),e,h),a.b&&a.p(S)):n?c(n,e):j(B,e,h);return a},N:function(a){H.D(a);H.T(a,function(){var b=K;K=B;a.Y!==k&&(!b||b.A?a.e(Error(b&&b.A||"define() missing or duplicated: "+a.url)):H.w(a,b))},a.e);return a},M:function(a,b){var c,d,e,g,f,i,n,p,j,w,P;c=b.h;d=b.S;e=b.a||I;g=v(c(a));n=g.l;f=g.j||n;p=H.k(f,e);if(g.j)i=f;else if(i=p.a.moduleLoader)n=
-f,f=i,p=H.k(i,e);f in L?j=L[f]:p.url in W?j=L[f]=W[p.url]:(j=H.v(p.a,f,d),j.url=H.u(p.url,p.a),L[f]=W[p.url]=j,H.N(j));f==i&&(w=new A,P=e.plugins[i]||e,E(j,function(a){var b,e,f;f=a.dynamic;n="normalize"in a?a.normalize(n,c,j.a)||"":c(n);e=i+"!"+n;b=L[e];if(!(e in L)){b=H.I(P,e,n,d);f||(L[e]=b);var g=function(a){b.g(a);f||(L[e]=a)};g.resolve=g;g.reject=g.error=b.e;a.load(n,b.q,g,P)}w!=b&&E(b,w.g,w.e,w.p)},w.e));return w||j},R:function(){var a;if(!q(l.opera,"Opera"))for(var b in U)if("interactive"==
-U[b].readyState){a=b;break}return a}};$={require:H.Q,exports:H.C,module:H.P};G.version="0.7.1";I=l.curl;"function"==typeof I?(M=I,I=k):l.curl=B;I=H.a(I);H.t(I);L.curl=G;L["curl/_privileged"]={core:H,cache:L,config:function(){return I},_define:J,_curl:G,Promise:A};
+var h=!0,k=!1,l=this.window||global;function m(){}function q(a,b){return 0==r.call(a).indexOf("[object "+b)}function s(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function u(a,b){var c,d,e,g;c=1;d=a;"."==d.charAt(0)&&(e=h,d=d.replace(v,function(a,b,d,e){d&&c++;return e||""}));if(e){e=b.split("/");g=e.length-c;if(0>g)return a;e.splice(g,c);return e.concat(d||[]).join("/")}return d}function w(a){var b=a.indexOf("!");return{l:a.substr(b+1),j:0<=b&&a.substr(0,b)}}function y(){}
+function z(a,b){y.prototype=a||A;var c=new y;y.prototype=A;for(var d in b)c[d]=b[d];return c}function B(){function a(a,b,e){d.push([a,b,e])}function b(a,b){for(var e,c=0;e=d[c++];)(e=e[a])&&e(b)}var c,d,e;c=this;d=[];e=function(c,f){a=c?function(a){a&&a(f)}:function(a,b){b&&b(f)};e=m;b(c?0:1,f);b=m;d=C};this.X=function(b,d,e){a(b,d,e)};this.g=function(a){c.ba=a;e(h,a)};this.e=function(a){c.aa=a;e(k,a)};this.p=function(a){b(2,a)}}function F(a,b,c,d){a instanceof B?a.X(b,c,d):b(a)}
+function G(a,b,c){var d;return function(){0<=--a&&b&&(d=b.apply(C,arguments));0==a&&c&&c(d);return d}}function H(){var a=[].slice.call(arguments),b;q(a[0],"Object")&&(b=a.shift(),I=J.a(b,I),J.t(b));return new K(a[0],a[1],a[2])}function K(a,b,c,d){var e;e=J.f(I,C,[].concat(a));this.then=a=function(a,b){F(e,function(b){a&&a.apply(C,b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(a,b,d){return new K(a,b,d,e)};(b||c)&&a(b,c);F(d,function(){J.i(e)})}
+function L(a){var b,c;b=a.id;if(b==C)if(M!==C)M={A:"Multiple anonymous defines in url"};else if(!(b=J.R()))M=a;if(b!=C){c=N[b];b in N||(c=J.k(b,I),c=J.v(c.a,b),N[b]=c);if(!(c instanceof B))throw Error("duplicate define: "+b);c.Y=k;J.w(c,a)}}
+var I,O,P,R=l.document,S=R&&(R.head||R.getElementsByTagName("head")[0]),T=S&&S.getElementsByTagName("base")[0]||null,U={},V={},W={},aa="addEventListener"in l?{}:{loaded:1,complete:1},A={},r=A.toString,C,N={},X={},Y=k,M,ba=/\?/,Z=/^\/|^[^:]+:\/\//,v=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,ca=/\/\*[\s\S]*?\*\/|(?:[^\\])\/\/.*?[\n\r]/g,da=/require\s*\(\s*["']([^"']+)["']\s*\)|(?:[^\\]?)(["'])/g,$,J;
+J={h:function(a,b,c){var d,a=u(a,b);if("."==a.charAt(0))return a;d=w(a);a=(b=d.j)||d.l;a in c.c&&(a=c.c[a].U||a);b&&(0>b.indexOf("/")&&!(b in c.c)&&(a=s(c.W)+"/"+b),a=a+"!"+d.l);return a},f:function(a,b,c,d){function e(b){return J.h(b,f.id,a)}function g(b,c,g){var j;j=c&&function(a){c.apply(C,a)};if(q(b,"String")){if(j)throw Error("require(id, callback) not allowed");g=e(b);b=N[g];if(!(g in N))throw Error("Module not resolved: "+g);return(g=b instanceof B&&b.b)||b}F(J.i(J.f(a,f.id,b,d)),j,g)}var f;
+f=new B;f.id=b||"";f.S=d;f.z=c;f.a=a;f.q=g;g.toUrl=function(b){return J.k(e(b),a).url};f.h=e;return f},v:function(a,b,c){var d,e,g;d=J.f(a,b,C,c);e=d.g;g=G(1,function(a){d.n=a;try{return J.K(d)}catch(b){d.e(b)}});d.g=function(a){F(c||Y,function(){e(N[d.id]=X[d.url]=g(a))})};d.B=function(a){F(c||Y,function(){d.b&&(g(a),d.p(V))})};return d},I:function(a,b,c,d){return J.f(a,c,C,d)},Q:function(a){return a.q},C:function(a){return a.b||(a.b={})},P:function(a){var b=a.o;b||(b=a.o={id:a.id,uri:J.D(a),exports:J.C(a),
+config:function(){return a.a}},b.b=b.exports);return b},D:function(a){return a.url||(a.url=J.u(a.q.toUrl(a.id),a.a))},a:function(a){var b,c,d,e,g,f;b=!a;a&&(J.a=J.F);a||(a={});d=a.apiName||"curl";e=a.apiContext||l;g=a.defineName||"define";f=a.defineContext||l;c=a.overwriteApi;!b&&O&&(l.curl=O,O=k);if(!b&&!c&&e[d]&&e[d]!=H)throw Error(d+" already exists");e[d]=H;if(!b||!l.define){if(!b&&!c&&g in f&&f[g]!=P)throw Error(g+" already exists");f[g]=P=function(){var a=J.O(arguments);L(a)};P.amd={plugins:h,
+jQuery:h,curl:"0.7.2"}}return J.F(a)},F:function(a,b){function c(a,b){var d,c,f,t,D;for(D in a){f=a[D];q(f,"String")&&(f={path:a[D]});f.name=f.name||D;t=e;c=w(s(J.h(f.name,"",e)));d=c.l;if(c=c.j)t=g[c],t||(t=g[c]=z(e),t.c=z(e.c),t.d=[]),delete a[D];if(b){c=f;var E=void 0;c.path=s(c.path||c.location||"");E=c.main||"./main";"."==E.charAt(0)||(E="./"+E);c.U=u(E,c.name+"/");c.a=c.config;c.a&&(c.a=z(e,c.a))}else c={path:s(f.path)};c.H=d.split("/").length;d?(t.c[d]=c,t.d.push(d)):t.s=J.G(f.path,e)}}function d(a){var b=
+a.c;a.V=RegExp("^("+a.d.sort(function(a,c){return b[c].H-b[a].H}).join("|").replace(/\/|\./g,"\\$&")+")(?=\\/|$)");delete a.d}var e,g,f,i;b||(b={});e=z(b,a);e.s=e.baseUrl||"";e.W=e.pluginPath||"curl/plugin";e.J=RegExp(e.dontAddFileExt||ba);e.c=z(b.c);g=a.plugins||{};e.plugins=z(b.plugins);e.d=[];c(a.packages,h);c(a.paths,k);for(f in g)i=J.h(f+"!","",e),e.plugins[i.substr(0,i.length-1)]=g[f];g=e.plugins;for(f in g)if(g[f]=z(e,g[f]),i=g[f].d)g[f].d=i.concat(e.d),d(g[f]);d(e);return e},t:function(a){var b;
+(b=a&&a.preloads)&&0<b.length&&F(Y,function(){Y=J.i(J.f(I,C,b,h))})},k:function(a,b){var c,d,e,g;c=b.c;e=Z.test(a)?a:a.replace(b.V,function(a){d=c[a]||{};g=d.a;return d.path||""});return{a:g||I,url:J.G(e,b)}},G:function(a,b){var c=b.s;return c&&!Z.test(a)?s(c)+"/"+a:a},u:function(a,b){return a+((b||I).J.test(a)?"":".js")},T:function(a,b,c){var d=R.createElement("script");d.onload=d.onreadystatechange=function(c){c=c||l.event;if("load"==c.type||aa[d.readyState])delete W[a.id],d.onload=d.onreadystatechange=
+d.onerror="",b()};d.onerror=function(){c(Error("Syntax or http error: "+a.url))};d.type=a.Z||"text/javascript";d.charset="utf-8";d.async=!a.$;d.src=a.url;W[a.id]=d;S.insertBefore(d,T);return d},L:function(a){var b=[],c;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(ca,"").replace(da,function(a,e,g){g?c=c==g?C:c:c||b.push(e);return""});return b},O:function(a){var b,c,d,e,g,f;g=a.length;d=a[g-1];e=q(d,"Function")?d.length:-1;2==g?q(a[0],"Array")?c=a[0]:b=a[0]:3==g&&(b=a[0],c=a[1]);
+!c&&0<e&&(f=h,c=["require","exports","module"].slice(0,e).concat(J.L(d)));return{id:b,n:c||[],r:0<=e?d:function(){return d},m:f}},K:function(a){var b;b=a.r.apply(a.m?a.b:C,a.n);b===C&&a.b&&(b=a.o?a.b=a.o.b:a.b);return b},w:function(a,b){a.r=b.r;a.m=b.m;a.z=b.n;J.i(a)},i:function(a){function b(a,b,c){f[b]=a;c&&p(a,b)}function c(b,c){var d,e,f,g;d=G(1,function(a){e(a);j(a,c)});e=G(1,function(a){p(a,c)});f=J.M(b,a);(g=f instanceof B&&f.b)&&e(g);F(f,d,a.e,a.b&&function(a){f.b&&(a==U?e(f.b):a==V&&d(f.b))})}
+function d(){a.g(f)}var e,g,f,i,n,p,j;f=[];g=a.z;i=g.length;0==g.length&&d();p=G(i,b,function(){a.B&&a.B(f)});j=G(i,b,d);for(e=0;e<i;e++)n=g[e],n in $?(j($[n](a),e,h),a.b&&a.p(U)):n?c(n,e):j(C,e,h);return a},N:function(a){J.D(a);J.T(a,function(){var b=M;M=C;a.Y!==k&&(!b||b.A?a.e(Error(b&&b.A||"define() missing or duplicated: "+a.url)):J.w(a,b))},a.e);return a},M:function(a,b){var c,d,e,g,f,i,n,p,j,x,Q;c=b.h;d=b.S;e=b.a||I;g=w(c(a));n=g.l;f=g.j||n;p=J.k(f,e);if(g.j)i=f;else if(i=p.a.moduleLoader)n=
+f,f=i,p=J.k(i,e);f in N?j=N[f]:p.url in X?j=N[f]=X[p.url]:(j=J.v(p.a,f,d),j.url=J.u(p.url,p.a),N[f]=X[p.url]=j,J.N(j));f==i&&(x=new B,Q=e.plugins[i]||e,F(j,function(a){var b,e,f;f=a.dynamic;n="normalize"in a?a.normalize(n,c,j.a)||"":c(n);e=i+"!"+n;b=N[e];if(!(e in N)){b=J.I(Q,e,n,d);f||(N[e]=b);var g=function(a){b.g(a);f||(N[e]=a)};g.resolve=g;g.reject=g.error=b.e;a.load(n,b.q,g,Q)}x!=b&&F(b,x.g,x.e,x.p)},x.e));return x||j},R:function(){var a;if(!q(l.opera,"Opera"))for(var b in W)if("interactive"==
+W[b].readyState){a=b;break}return a}};$={require:J.Q,exports:J.C,module:J.P};H.version="0.7.2";I=l.curl;"function"==typeof I?(O=I,I=k):l.curl=C;I=J.a(I);J.t(I);N.curl=H;N["curl/_privileged"]={core:J,cache:N,config:function(){return I},_define:L,_curl:H,Promise:B};
}).call(this);
View
2 package.json
@@ -1,6 +1,6 @@
{
"name": "curl",
- "version": "0.7.1",
+ "version": "0.7.2",
"description": "A small, fast module and resource loader with dependency management. (AMD, CommonJS Modules/1.1, CSS, HTML, etc.)",
"keywords": ["curl", "cujo", "amd", "loader", "module"],
"licenses": [
View
2 src/curl.js
@@ -13,7 +13,7 @@
(function (global) {
//"use strict"; don't restore this until the config routine is refactored
var
- version = '0.7.1',
+ version = '0.7.2',
curlName = 'curl',
userCfg,
prevCurl,

0 comments on commit 1abdc2b

Please sign in to comment.
Something went wrong with that request. Please try again.