Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bumped to version 0.5 and recompiled

  • Loading branch information...
commit e43a99c026a0a602125f4ce654a9459784edc5c9 1 parent b123d2a
unscriptable authored
View
27 dist/curl-for-dojo1.6/curl.js
@@ -1,14 +1,15 @@
var r=null;
-(function(j,l,k){function e(a,b){return O.call(a).indexOf("[object "+b)==0}function i(a,b){e(a,"String")&&(a={path:n(a),main:F.f,lib:F.e});a.path=a.path||(isNaN(b)?b:a.name);a.e="lib"in a&&n(a.lib.replace(v,a.path+"/"));a.f="main"in a&&n(a.main.replace(v,a.path+"/"));return a}function s(a){var b,d,c,f=[];A=a.baseUrl||"";var h=a.paths;for(b in h)d=n(b),c=x[d]={path:n(h[b])},c.i=(c.path.match(G)||[]).length,f.push(d);h=a.packages;for(b in h)d=n(h[b].name||b),c=x[d]=i(h[b],d),c.i=(c.path.match(G)||[]).length,
-f.push(d);H=RegExp("^("+f.sort(function(a,b){return x[a].i<x[b].i}).join("|").replace(/\//g,"\\/")+")(?=\\/|$)");t=a.pluginPath||t}function C(){}function m(a){function b(a){return w(u(a.replace(v,d+"/")),A)}var d=a.substr(0,a.lastIndexOf("/")),c={baseName:d},f={};c.d={h:f,o:{id:a.replace(v,d+"/"),uri:b(a),h:f},b:function(a,b){return D(a,b||C,c)}};c.b=c.d.b;k.debug&&(c.b.curl=q);c.b.toUrl=b;return c}function p(){function a(a,b){h.push([a,b])}function b(a){c(!0,a)}function d(a){c(!1,a)}function c(c,
-f){a=c?function(a){a&&a(f)}:function(a,b){b&&b(f)};b=d=function(){throw Error("Promise already completed.");};for(var g,i=0;g=h[i++];)(g=g[c?0:1])&&g(f)}var f=this,h=[];return{c:function(b,c){a(b,c);return f},g:function(a){f.m=a;b(a)},a:function(a){f.p=a;d(a)}}}function g(a){var b=p();b.name=a;return b}function n(a){return a.charAt(a.length-1)=="/"?a.substr(0,a.length-1):a}function u(a){var b;return a.replace(H,function(d){b=x[d]||{};return b.f&&d==a?b.f:b.e?b.e:b.path})}function w(a,b){return(b&&
-!P.test(a)?(!b||b.charAt(b.length-1)=="/"?b:b+"/")+a:a)+(Q.test(a)?"":".js")}function y(a,b,d){var c=l.createElement("script");c.type="text/javascript";c.onload=c[I]=function(d){d=d||j.event;if(d.type==="load"||R[this.readyState])delete B[a.name],this.onload=this[I]=this.onerror=r,b(c)};c.onerror=function(){d(Error("Syntax error or http error: "+a.url))};c.charset=a.charset||"utf-8";c.async=!0;c.src=a.url;B[a.name]=c;J.insertBefore(c,J.firstChild)}function S(a){var b,d,c,f,h=a.length;c=a[h-1];f=e(c,
-"Function");h==2?e(a[0],"Array")?d=a[0]:b=a[0]:h==3&&(b=a[0],d=a[1]);!d&&f&&c.length>0&&(d=["require","exports","module"]);return{name:b,k:d||[],l:f?c:function(){return c}}}function K(a,b){var d=m(a.name);L(b.k,d,function(c){c=b.l.apply(d.d.h,c)||d.d.h;a.g(c)},a.a)}function M(a){y(a,function(){var b=z;z=E;a.n!==!1&&(b?b.j?a.a(Error(b.j.replace("${url}",a.url))):K(a,b):a.a(Error("define() not found or duplicates found: "+a.url)))},a.a)}function T(a,b){var d,c,f,h;d=a.indexOf("!");if(d>=0){c=a.substr(0,
-d);f=a.substr(d+1).replace(v,b.baseName+"/");d=c+"!"+f;var i=u(c);i.indexOf("/")<0&&(i=u((!t||t.charAt(t.length-1)=="/"?t:t+"/")+i));h=o[d];if(!h){var e=o[c];if(!e)e=o[c]=new g(c),e.url=w(i,A),M(e);h=new g(f);f&&(o[d]=h);e.c(function(a){var c=h.g;c.resolve=c;c.reject=h.a;a.load(h.name,b.b,c,k)},h.a)}}else if(f=d=a.replace(v,b.baseName+"/"),h=o[f],!h)h=o[f]=new g(f),h.url=w(u(f),A),M(h);return h}function L(a,b,d,c){for(var f=[],h=a.length,i=h,g=!1,e=0;e<i&&!g;e++)(function(a,e){e in b.d?(f[a]=b.d[e],
-h--):T(e,b).c(function(b){f[a]=b;--h==0&&(g=!0,d(f))},function(a){g=!0;c(a)})})(e,a[e]);h==0&&!g&&d(f)}function D(a,b,d){if(e(a,"String")){d=(d=o[a])&&d.m;if(d===E)throw Error("Module is not already resolved: "+a);return d}L(a,d,function(a){b.g?b.g(a):b.apply(r,a)},function(a){if(b.a)b.a(a);else throw a;})}function q(){var a=U.call(arguments),b,d;e(a[0],"Object")&&s(a.shift());b=a[0];a=a[1];d=m("");var c=new p,f={};f.then=function(a,b){c.c(function(b){a&&a.apply(r,b)},function(a){if(b)b(a);else throw a;
-});return f};f.next=function(a,b){var e=c;c=new p;e.c(function(){d.b(a,c,d)});b&&c.c(function(a){b.apply(this,a)});return f};a&&f.then(a);d.b(b,c,d);return f}function N(){var a=S(arguments),b=a.name;if(b==r)if(z!==E)z={j:"Multiple anonymous defines found in ${url}."};else{var d;if(!e(j.opera,"Opera"))for(var c in B)if(B[c].readyState=="interactive"){d=c;break}if(!(b=d))z=a}if(b!=r)(d=o[b])||(d=o[b]=new g(b)),d.n=!1,K(d,a,m(b))}var J=l.head||l.getElementsByTagName("head")[0],A,t="curl/plugin",x={},
-o={},z,B={},O={}.toString,E,U=[].slice,P=/^\/|^[^:]*:\/\//,v=/^\.(\/|$)/,G=/\//,Q=/\.\w+$/,H,R={loaded:1,interactive:1,complete:1},I="onreadystatechange",F={f:"./lib/main",e:"./lib"};e(k,"Function")||s(k);k.apiName?j[k.apiName]=q:j.curl=q;if(k.debug)q.cache=D.cache=o,q.cfg=D.cfg=k,q.listen=function(){eval("var orig=which;which=function(){callback.apply(null,arguments);return orig.apply(null,arguments);};")};j.define=q.define=N;q.version="0.5";N.amd={plugins:!0}})(this,document,this.curl||{});
-(function(j,l){function k(){g=!0;for(clearTimeout(y);u=w.pop();)u();p&&(l[s]="complete");for(var e;e=m.shift();)e()}function e(){!g&&C[l[s]]&&k()}function i(){e();g||(y=setTimeout(i,30))}var s="readyState",C={loaded:1,complete:1},m=[],p=typeof l[s]!="string",g=!1,n,u,w=[],y;n="addEventListener"in j?function(g,i){g.addEventListener(i,e,!1);return function(){g.removeEventListener(i,e,!1)}}:function(g,i){g.attachEvent("on"+i,e);return function(){g.detachEvent(i,e)}};l[s]=="complete"?k():(w=[n(j,"load"),
-n(l,"readystatechange"),n(j,"DOMContentLoaded")],y=setTimeout(i,30));define("curl/domReady",function(){function e(i){g?i():m.push(i)}e.then=e;e.amd=!0;return e})})(this,document);
-(function(j){define("curl/dojo16Compat",function(){function l(e){e.ready||(e.ready=function(e){k(["domReady!"],e)});e.nameToUrl||(e.nameToUrl=function(j,k){return e.toUrl(j)+(k||"")});return e}var k=j.curl||j.require,e=j.define;l(k);j.define=function(){var i,j,k,m=[],p,g;i=[].slice.call(arguments);j=i.length;k=i[j-2];p=typeof i[j-1]=="function"?i[j-1]:r;if(k&&p){for(g=k.length-1;g>=0;g--)k[g]=="require"&&m.push(g);m.length>0&&(i[j-1]=function(){var e=[].slice.call(arguments);for(g=0;g<m.length;g++)e[m[g]]=
-l(e[m[g]]);return p.apply(this,e)})}return e.apply(r,i)};return!0})})(this);define("domReady",["require"],function(j){return{load:function(l,k,e){j(["curl/domReady"],e)}}});
+(function(j,k,l){function i(a,b){return P.call(a).indexOf("[object "+b)==0}function e(a,b){i(a,"String")&&(a={path:n(a),main:G.e,lib:G.d});a.path=a.path||(isNaN(b)?b:a.name);a.d="lib"in a&&n(v(a.lib,a.path));a.e="main"in a&&n(v(a.main,a.path));return a}function s(a){var b,c,d,f=[];B=a.baseUrl||"";if(a.debug)C=!0,q.cache=o,q.cfg=a,q.undefine=function(a){delete o[a]};var g=a.paths;for(b in g)c=n(b),d=y[c]={path:n(g[b])},d.i=(d.path.match(H)||[]).length,f.push(c);g=a.packages;for(b in g)c=n(g[b].name||
+b),d=y[c]=e(g[b],c),d.i=(d.path.match(H)||[]).length,f.push(c);I=RegExp("^("+f.sort(function(a,b){return y[a].i<y[b].i}).join("|").replace(/\//g,"\\/")+")(?=\\/|$)");t=a.pluginPath||t}function E(){}function m(a){function b(a,b){return Q(a,b||E,f)}function c(a){return x(u(v(a,d)),B)}var d=a.substr(0,a.lastIndexOf("/")),f={baseName:d},g={};f.c={h:g,o:{id:v(a,d),uri:c(a),h:g}};C&&(b.curl=q);f.f=f.c.f=b;b.toUrl=c;return f}function p(){function a(a,b){g.push([a,b])}function b(a){d(!0,a)}function c(a){d(!1,
+a)}function d(d,f){a=d?function(a){a&&a(f)}:function(a,b){b&&b(f)};b=c=function(){throw Error("Promise already completed.");};for(var h,e=0;h=g[e++];)(h=h[d?0:1])&&h(f)}var f=this,g=[];this.b=function(b,c){a(b,c)};this.g=function(a){f.m=a;b(a)};this.a=function(a){f.p=a;c(a)}}function h(a){p.apply(this);this.name=a}function n(a){return a.charAt(a.length-1)=="/"?a.substr(0,a.length-1):a}function u(a){var b;return a.replace(I,function(c){b=y[c]||{};return b.e&&c==a?b.e:b.d?b.d:b.path})}function x(a,
+b){return(b&&!R.test(a)?(!b||b.charAt(b.length-1)=="/"?b:b+"/")+a:a)+(S.test(a)?"":".js")}function z(a,b,c){var d=k.createElement("script");d.type="text/javascript";d.onload=d[J]=function(c){c=c||j.event;if(c.type==="load"||T[this.readyState])delete D[a.name],this.onload=this[J]=this.onerror=r,b(d)};d.onerror=function(){c(Error("Syntax error or http error: "+a.url))};d.charset=a.charset||"utf-8";d.async=!0;d.src=a.url;D[a.name]=d;K.insertBefore(d,K.firstChild)}function U(a){var b,c,d,f,g=a.length;
+d=a[g-1];f=i(d,"Function");g==2?i(a[0],"Array")?c=a[0]:b=a[0]:g==3&&(b=a[0],c=a[1]);!c&&f&&d.length>0&&(c=["require","exports","module"]);return{name:b,k:c||[],l:f?d:function(){return d}}}function L(a,b){C&&console&&console.log("curl: resolving",a.name);var c=m(a.baseName||a.name);M(b.k,c,function(d){try{var f=b.l.apply(c.c.h,d)||c.c.h;C&&console&&console.log("curl: defined",a.name,f.toString().substr(0,50).replace(/\n/," "))}catch(g){a.a(g)}a.g(f)},a.a)}function N(a){z(a,function(){var b=A;A=F;a.n!==
+!1&&(b?b.j?a.a(Error(b.j.replace("${url}",a.url))):L(a,b):a.a(Error("define() not found or duplicates found: "+a.url)))},a.a)}function v(a,b){return a.replace(V,function(a,d,f){return(f?b.substr(0,b.lastIndexOf("/")):b)+"/"})}function W(a,b){var c,d,f,g;c=a.indexOf("!");if(c>=0){d=a.substr(0,c);f=v(a.substr(c+1),b.baseName);c=d+"!"+f;var e=u(d);e.indexOf("/")<0&&(e=u((!t||t.charAt(t.length-1)=="/"?t:t+"/")+e));g=o[c];if(!g){var w=o[d];if(!w)w=o[d]=new h(d),w.url=x(e,B),w.baseName=e,N(w);g=new h(c);
+f&&(o[c]=g);w.b(function(a){var c=g.g;c.resolve=c;c.reject=g.a;a.load(f,b.f,c,l)},g.a)}}else if(f=c=v(a,b.baseName),g=o[f],!g)g=o[f]=new h(f),g.url=x(u(f),B),N(g);return g}function M(a,b,c,d){for(var f=[],g=a.length,e=g,h=!1,i=0;i<e&&!h;i++)(function(a,e){e in b.c?(f[a]=b.c[e],g--):W(e,b).b(function(b){f[a]=b;--g==0&&(h=!0,c(f))},function(a){h=!0;d(a)})})(i,a[i]);g==0&&!h&&c(f)}function Q(a,b,c){if(i(a,"String")){c=(c=o[a])&&c.m;if(c===F)throw Error("Module is not already resolved: "+a);return c}M(a,
+c,function(a){b.g?b.g(a):b.apply(r,a)},function(a){if(b.a)b.a(a);else throw a;})}function q(){var a=X.call(arguments),b,c;i(a[0],"Object")&&(l=a.shift(),s(l));b=a[0];a=a[1];c=m("");var d=new p,f={};f.then=function(a,b){d.b(function(b){a&&a.apply(r,b)},function(a){if(b)b(a);else throw a;});return f};f.next=function(a,b){var e=d;d=new p;e.b(function(){c.f(a,d,c)},function(a){d.a(a)});b&&d.b(function(a){b.apply(this,a)});return f};a&&f.then(a);c.f(b,d,c);return f}function O(){var a=U(arguments),b=a.name;
+if(b==r)if(A!==F)A={j:"Multiple anonymous defines found in ${url}."};else{var c;if(!i(j.opera,"Opera"))for(var d in D)if(D[d].readyState=="interactive"){c=d;break}if(!(b=c))A=a}if(b!=r)(c=o[b])||(c=o[b]=new h(b)),c.n=!1,"resolved"in c||L(c,a,m(b))}var K=k.head||k.getElementsByTagName("head")[0],B,t="curl/plugin",y={},o={},A,D={},P={}.toString,F,X=[].slice,R=/^\/|^[^:]*:\/\//,V=/^(\.)(\.)?(\/|$)/,H=/\//,S=/\.\w+$/,I,T={loaded:1,interactive:1,complete:1},J="onreadystatechange",G={e:"./lib/main",d:"./lib"},
+C;i(l,"Function")||s(l);l.apiName?j[l.apiName]=q:j.curl=q;j.define=q.define=O;q.version="0.5";O.amd={plugins:!0}})(this,document,this.curl||{});
+(function(j,k){function l(){h=!0;for(clearTimeout(z);u=x.pop();)u();p&&(k[s]="complete");for(var e;e=m.shift();)e()}function i(){!h&&E[k[s]]&&l()}function e(){i();h||(z=setTimeout(e,30))}var s="readyState",E={loaded:1,complete:1},m=[],p=typeof k[s]!="string",h=!1,n,u,x=[],z;n="addEventListener"in j?function(e,h){e.addEventListener(h,i,!1);return function(){e.removeEventListener(h,i,!1)}}:function(e,h){e.attachEvent("on"+h,i);return function(){e.detachEvent(h,i)}};k[s]=="complete"?l():(x=[n(j,"load"),
+n(k,"readystatechange"),n(j,"DOMContentLoaded")],z=setTimeout(e,30));define("curl/domReady",function(){function e(i){h?i():m.push(i)}e.then=e;e.amd=!0;return e})})(this,document);
+(function(j){define("curl/dojo16Compat",["./domReady"],function(k){function l(e){e.ready||(e.ready=function(e){k(e)});e.nameToUrl||(e.nameToUrl=function(i,j){return e.toUrl(i+(j||""))});return e}var i=j.define;l(j.curl||j.require);j.define=function(){var e,j,k,m=[],p,h;e=[].slice.call(arguments);j=e.length;k=e[j-2];p=typeof e[j-1]=="function"?e[j-1]:r;if(k&&p){for(h=k.length-1;h>=0;h--)k[h]=="require"&&m.push(h);m.length>0&&(e[j-1]=function(){var e=[].slice.call(arguments);for(h=0;h<m.length;h++)e[m[h]]=
+l(e[m[h]]);return p.apply(this,e)})}return i.apply(r,e)};return!0})})(this);define("domReady",["../domReady"],function(j){return{load:function(k,l,i){j(i)}}});
View
55 dist/curl-kitchen-sink/curl.js
@@ -1,27 +1,28 @@
-var v=null;
-(function(e,i,j){function h(c,p){return k.call(c).indexOf("[object "+p)==0}function d(c,p){h(c,"String")&&(c={path:b(c),main:N.h,lib:N.g});c.path=c.path||(isNaN(p)?p:c.name);c.g="lib"in c&&b(c.lib.replace(G,c.path+"/"));c.h="main"in c&&b(c.main.replace(G,c.path+"/"));return c}function q(c){var p,a,g,f=[];F=c.baseUrl||"";var A=c.paths;for(p in A)a=b(p),g=n[a]={path:b(A[p])},g.j=(g.path.match(O)||[]).length,f.push(a);A=c.packages;for(p in A)a=b(A[p].name||p),g=n[a]=d(A[p],a),g.j=(g.path.match(O)||[]).length,
-f.push(a);P=RegExp("^("+f.sort(function(c,p){return n[c].j<n[p].j}).join("|").replace(/\//g,"\\/")+")(?=\\/|$)");r=c.pluginPath||r}function x(){}function m(c){function p(c){return B(C(c.replace(G,a+"/")),F)}var a=c.substr(0,c.lastIndexOf("/")),g={baseName:a},f={};g.e={i:f,v:{id:c.replace(G,a+"/"),uri:p(c),i:f},b:function(c,a){return I(c,a||x,g)}};g.b=g.e.b;j.debug&&(g.b.curl=y);g.b.toUrl=p;return g}function s(){function c(c,a){A.push([c,a])}function a(c){f(!0,c)}function g(c){f(!1,c)}function f(w,
-k){c=w?function(c){c&&c(k)}:function(c,a){a&&a(k)};a=g=function(){throw Error("Promise already completed.");};for(var l,b=0;l=A[b++];)(l=l[w?0:1])&&l(k)}var k=this,A=[];return{c:function(a,g){c(a,g);return k},d:function(c){k.q=c;a(c)},a:function(c){k.z=c;g(c)}}}function a(c){var a=s();a.name=c;return a}function b(c){return c.charAt(c.length-1)=="/"?c.substr(0,c.length-1):c}function C(c){var a;return c.replace(P,function(g){a=n[g]||{};return a.h&&g==c?a.h:a.g?a.g:a.path})}function B(c,a){return(a&&
-!R.test(c)?(!a||a.charAt(a.length-1)=="/"?a:a+"/")+c:c)+(S.test(c)?"":".js")}function D(c,a,g){var w=i.createElement("script");w.type="text/javascript";w.onload=w[Q]=function(g){g=g||e.event;if(g.type==="load"||z[this.readyState])delete f[c.name],this.onload=this[Q]=this.onerror=v,a(w)};w.onerror=function(){g(Error("Syntax error or http error: "+c.url))};w.charset=c.charset||"utf-8";w.async=!0;w.src=c.url;f[c.name]=w;E.insertBefore(w,E.firstChild)}function K(c){var a,g,f,k,l=c.length;f=c[l-1];k=h(f,
-"Function");l==2?h(c[0],"Array")?g=c[0]:a=c[0]:l==3&&(a=c[0],g=c[1]);!g&&k&&f.length>0&&(g=["require","exports","module"]);return{name:a,n:g||[],p:k?f:function(){return f}}}function L(c,a){var g=m(c.name);J(a.n,g,function(f){f=a.p.apply(g.e.i,f)||g.e.i;c.d(f)},c.a)}function H(a){D(a,function(){var f=g;g=l;a.r!==!1&&(f?f.k?a.a(Error(f.k.replace("${url}",a.url))):L(a,f):a.a(Error("define() not found or duplicates found: "+a.url)))},a.a)}function M(c,g){var f,k,l,b;f=c.indexOf("!");if(f>=0){k=c.substr(0,
-f);l=c.substr(f+1).replace(G,g.baseName+"/");f=k+"!"+l;var e=C(k);e.indexOf("/")<0&&(e=C((!r||r.charAt(r.length-1)=="/"?r:r+"/")+e));b=o[f];if(!b){var d=o[k];if(!d)d=o[k]=new a(k),d.url=B(e,F),H(d);b=new a(l);l&&(o[f]=b);d.c(function(a){var c=b.d;c.resolve=c;c.reject=b.a;a.load(b.name,g.b,c,j)},b.a)}}else if(l=f=c.replace(G,g.baseName+"/"),b=o[l],!b)b=o[l]=new a(l),b.url=B(C(l),F),H(b);return b}function J(a,g,f,k){for(var l=[],b=a.length,e=b,d=!1,h=0;h<e&&!d;h++)(function(a,c){c in g.e?(l[a]=g.e[c],
-b--):M(c,g).c(function(c){l[a]=c;--b==0&&(d=!0,f(l))},function(a){d=!0;k(a)})})(h,a[h]);b==0&&!d&&f(l)}function I(a,g,f){if(h(a,"String")){f=(f=o[a])&&f.q;if(f===l)throw Error("Module is not already resolved: "+a);return f}J(a,f,function(a){g.d?g.d(a):g.apply(v,a)},function(a){if(g.a)g.a(a);else throw a;})}function y(){var a=T.call(arguments),g,f;h(a[0],"Object")&&q(a.shift());g=a[0];a=a[1];f=m("");var l=new s,k={};k.then=function(a,g){l.c(function(g){a&&a.apply(v,g)},function(a){if(g)g(a);else throw a;
-});return k};k.next=function(a,g){var c=l;l=new s;c.c(function(){f.b(a,l,f)});g&&l.c(function(a){g.apply(this,a)});return k};a&&k.then(a);f.b(g,l,f);return k}function t(){var c=K(arguments),k=c.name;if(k==v)if(g!==l)g={k:"Multiple anonymous defines found in ${url}."};else{var b;if(!h(e.opera,"Opera"))for(var d in f)if(f[d].readyState=="interactive"){b=d;break}if(!(k=b))g=c}if(k!=v)(b=o[k])||(b=o[k]=new a(k)),b.r=!1,L(b,c,m(k))}var E=i.head||i.getElementsByTagName("head")[0],F,r="curl/plugin",n={},
-o={},g,f={},k={}.toString,l,T=[].slice,R=/^\/|^[^:]*:\/\//,G=/^\.(\/|$)/,O=/\//,S=/\.\w+$/,P,z={loaded:1,interactive:1,complete:1},Q="onreadystatechange",N={h:"./lib/main",g:"./lib"};h(j,"Function")||q(j);j.apiName?e[j.apiName]=y:e.curl=y;if(j.debug)y.cache=I.cache=o,y.cfg=I.cfg=j,y.listen=function(){eval("var orig=which;which=function(){callback.apply(null,arguments);return orig.apply(null,arguments);};")};e.define=y.define=t;y.version="0.5";t.amd={plugins:!0}})(this,document,this.curl||{});
-(function(e,i){function j(){a=!0;for(clearTimeout(D);C=B.pop();)C();s&&(i[q]="complete");for(var b;b=m.shift();)b()}function h(){!a&&x[i[q]]&&j()}function d(){h();a||(D=setTimeout(d,30))}var q="readyState",x={loaded:1,complete:1},m=[],s=typeof i[q]!="string",a=!1,b,C,B=[],D;b="addEventListener"in e?function(a,b){a.addEventListener(b,h,!1);return function(){a.removeEventListener(b,h,!1)}}:function(a,b){a.attachEvent("on"+b,h);return function(){a.detachEvent(b,h)}};i[q]=="complete"?j():(B=[b(e,"load"),
-b(i,"readystatechange"),b(e,"DOMContentLoaded")],D=setTimeout(d,30));define("curl/domReady",function(){function b(d){a?d():m.push(d)}b.then=b;b.amd=!0;return b})})(this,document);
-(function(e){define("curl/dojo16Compat",function(){function i(d){d.ready||(d.ready=function(d){j(["domReady!"],d)});d.nameToUrl||(d.nameToUrl=function(e,h){return d.toUrl(e)+(h||"")});return d}var j=e.curl||e.require,h=e.define;i(j);e.define=function(){var d,e,j,m=[],s,a;d=[].slice.call(arguments);e=d.length;j=d[e-2];s=typeof d[e-1]=="function"?d[e-1]:v;if(j&&s){for(a=j.length-1;a>=0;a--)j[a]=="require"&&m.push(a);m.length>0&&(d[e-1]=function(){var b=[].slice.call(arguments);for(a=0;a<m.length;a++)b[m[a]]=
-i(b[m[a]]);return s.apply(this,b)})}return h.apply(v,d)};return!0})})(this);
-(function(e,i){function j(a,b,d){var h=i.createElement("script");h.type=a.l||"text/javascript";h.onload=h.onreadystatechange=function(a){a=a||e.event;if(a.type=="load"||x[this.readyState])this.onload=this.onreadystatechange=this.onerror=v,b(h)};h.onerror=function(){d&&d(Error("Script error or http error: "+a.url))};h.charset=a.charset||"utf-8";h.async=a.async;h.src=a.url;m.insertBefore(h,m.firstChild)}function h(a,b){j(a,function(a){var e=d.shift();s=d.length>0;e&&h.apply(v,e);b.resolve(a)},function(a){b.reject(a)})}
-var d=[],q=i.createElement("script").async==!0,x={loaded:1,interactive:1,complete:1},m=i.head||i.getElementsByTagName("head")[0],s;define("js",{load:function(a,b,e,m){var i,x;i=a.indexOf("!order")>=0;x=a.indexOf("!noexec")>=0;m="jsPrefetch"in m?m.jsPrefetch:!0;a=i||x?a.substr(0,a.indexOf("!")):a;a={name:a,url:b.toUrl(a),async:!i,w:i};b=e.resolve?e:{resolve:function(a){e(a)},reject:function(a){throw a;}};if(x||i&&!q&&s){if(x||d.push([a,b]),m)a.l="text/cache",j(a,function(a){a.parentNode.removeChild(a)}),
-a.l=""}else s=s||i,h(a,b)}})})(this,document);
-define("text",function(){function e(){if(typeof XMLHttpRequest!=="undefined")e=function(){return new XMLHttpRequest};else for(var h=e=function(){throw Error("getXhr(): XMLHttpRequest not available");};d.length>0&&e===h;)(function(d){try{new ActiveXObject(d),e=function(){return new ActiveXObject(d)}}catch(h){}})(d.shift());return e()}function i(d,h,j){var a=e();a.open("GET",d,!0);a.onreadystatechange=function(){a.readyState===4&&(a.status<400?h(a.responseText):j(Error("fetchText() failed. status: "+
-a.statusText)))};a.send(v)}function j(d){console&&(console.error?console.error(d):console.log(d.message))}function h(d){var e={34:'\\"',13:"\\r",12:"\\f",10:"\\n",9:"\\t",8:"\\b"};return d.replace(/(["|\n|\f|\t|\r|\b])/g,function(d){return e[d.charCodeAt(0)]})}var d=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],q={};return{load:function(d,e,h){var a=h.d||h,h=h.a||j;i(e.toUrl(d),a,h)},t:function(d,e){return function(j,a,b){var i;i=b.toUrl(a.lastIndexOf(".")<=a.lastIndexOf("/")?a+".html":
-a);a=b.toAbsMid(a);a in q||(q[a]=!0,i=h(e(i)),d('define("'+j+"!"+a+'", function () {\n\treturn "'+i+'";\n});\n'))}}}});define(function(){return{load:function(e,i,j){i(e,function(e){typeof e.c=="function"?e.c(function(d){j(arguments.length>0?d:e)}):j(e)})},analyze:function(e,i,j){j(e)}}});
-(function(e){function i(a,f){var b=a.link;b[B]=b[D]=function(){if(!b.readyState||b.readyState=="complete")J["event-link-onload"]=!0,m(a),f()}}function j(a){for(var a=a.split("!"),f,b=1;f=a[b++];)f=f.split("=",2),a[f[0]]=f.length==2?f[1]:!0;return a}function h(a){if(document.createStyleSheet&&(r||(r=document.createStyleSheet()),document.styleSheets.length>=30)){var f,b,d,e=0;d=r;r=v;for(b=document.getElementsByTagName("link");f=b[e];)f.getAttribute("_curl_movable")?(d.addImport(f.href),f.parentNode&&
-f.parentNode.removeChild(f)):e++}a=a[K]("link");a.rel="stylesheet";a.type="text/css";a.setAttribute("_curl_movable",!0);return a}function d(a){var f,b,d=!1;try{if(f=a.sheet||a.styleSheet,(d=(b=f.cssRules||f.rules)?b.length>0:b!==H)&&{}.toString.call(window.u)=="[object Chrome]"){f.insertRule("#_cssx_load_test{margin-top:-5px;}",0);if(!n)n=t[K]("div"),n.id="_cssx_load_test",E.appendChild(n);d=t.defaultView.getComputedStyle(n,v).marginTop=="-5px";f.deleteRule(0)}}catch(e){d=e.code==1E3||e.message.match(/security|denied/i)}return d}
-function q(a,f){d(a.link)?(m(a),f()):L||setTimeout(function(){q(a,f)},a.s)}function x(a,f){function b(){d||(d=!0,f())}var d;i(a,b);J["event-link-onload"]||q(a,b)}function m(a){a=a.link;a[B]=a[D]=v}function s(a,f){return a.replace(y,function(a,g){var b=g;I.test(b)||(b=f+b);return'url("'+b+'")'})}function a(b){clearTimeout(a.m);a.f?a.f.push(b):(a.f=[b],o=t.createStyleSheet?t.createStyleSheet():E.appendChild(t.createElement("style")));a.m=setTimeout(function(){var b,g;b=o;o=H;g=a.f.join("\n");a.f=H;
-"cssText"in b?b.cssText=g:b.appendChild(t.createTextNode(g))},0);return o}function b(a){return{cssRules:function(){return a.cssRules||a.rules},insertRule:a.insertRule||function(b,d){var e=b.split(/\{|\}/g);a.addRule(e[0],e[1],d);return d},deleteRule:a.deleteRule||function(b){a.removeRule(b);return b},sheet:function(){return a}}}function C(a){var b={34:'\\"',13:"\\r",12:"\\f",10:"\\n",9:"\\t",8:"\\b"};return a.replace(/(["|\n|\f|\t|\r|\b])/g,function(a){return b[a.charCodeAt(0)]})}var B="onreadystatechange",
-D="onload",K="createElement",L=!1,H,M={},J={},I=/^\/|^[^:]*:\/\//,y=/url\s*\(['"]?([^'"\)]*)['"]?\)/g,t=e.document,E,F={};if(t)E=t.o||(t.o=t.getElementsByTagName("head")[0]);var r,n,o;define({load:function(g,f,d,e){function i(){--q==0&&setTimeout(function(){d(b(z.sheet||z.styleSheet))},0)}var m=(g||"").split(","),q=m.length;if(g)for(var o=m.length-1,r;o>=0;o--,r=!0){var g=m[o],g=j(g),n=g.shift(),n=f.toUrl(n.lastIndexOf(".")<=n.lastIndexOf("/")?n+".css":n),z=h(t),y={link:z,url:n,s:e.cssWatchPeriod||
-50};("nowait"in g?g.nowait!="false":e.cssDeferLoad)?d(b(z.sheet||z.styleSheet)):x(y,i);z.href=n;r?E.insertBefore(z,M[r].previousSibling):E.appendChild(z);M[n]=z}else d({translateUrls:function(a,b){var d;d=f.toUrl(b);d=d.substr(0,d.lastIndexOf("/")+1);return s(a,d)},injectStyle:function(b){return a(b)},proxySheet:function(a){if(a.sheet)a=a.sheet;return b(a)}})},build:function(a,b){return function(d,e,h){e=j(e).shift();e=h.toAbsMid(e);e in F||(F[e]=!0,h=h.toUrl(e.lastIndexOf(".")<=e.lastIndexOf("/")?
-e+".css":e),h=C(b(h)),a('define("'+d+"!"+e+'", ["'+d+'!"], function (api) {\n\tvar cssText = "'+h+'";\n\tcssText = api.translateUrls(cssText, "'+e+'");\n\treturn api.proxySheet(api.injectStyle(cssText));\n});\n'))}}})})(this);define("domReady",["require"],function(e){return{load:function(i,j,h){e(["curl/domReady"],h)}}});
+var x=null;
+(function(b,g,f){function l(c,w){return i.call(c).indexOf("[object "+w)==0}function m(c,w){l(c,"String")&&(c={path:d(c),main:P.g,lib:P.f});c.path=c.path||(isNaN(w)?w:c.name);c.f="lib"in c&&d(A(c.lib,c.path));c.g="main"in c&&d(A(c.main,c.path));return c}function r(c){var w,a,p,e=[];z=c.baseUrl||"";if(c.debug)I=!0,q.cache=j,q.cfg=c,q.undefine=function(c){delete j[c]};var k=c.paths;for(w in k)a=d(w),p=s[a]={path:d(k[w])},p.j=(p.path.match(Q)||[]).length,e.push(a);k=c.packages;for(w in k)a=d(k[w].name||
+w),p=s[a]=m(k[w],a),p.j=(p.path.match(Q)||[]).length,e.push(a);y=RegExp("^("+e.sort(function(c,a){return s[c].j<s[a].j}).join("|").replace(/\//g,"\\/")+")(?=\\/|$)");t=c.pluginPath||t}function v(){}function n(c){function a(c,w){return N(c,w||v,e)}function j(c){return B(C(A(c,p)),z)}var p=c.substr(0,c.lastIndexOf("/")),e={baseName:p},k={};e.d={i:k,v:{id:A(c,p),uri:j(c),i:k}};I&&(a.curl=q);e.h=e.d.h=a;a.toUrl=j;return e}function o(){function c(c,a){k.push([c,a])}function a(c){e(!0,c)}function j(c){e(!1,
+c)}function e(p,h){c=p?function(c){c&&c(h)}:function(c,a){a&&a(h)};a=j=function(){throw Error("Promise already completed.");};for(var H,i=0;H=k[i++];)(H=H[p?0:1])&&H(h)}var h=this,k=[];this.b=function(a,j){c(a,j);return h};this.c=function(c){h.q=c;a(c)};this.a=function(c){h.z=c;j(c)}}function a(c){o.apply(this);this.name=c}function d(c){return c.charAt(c.length-1)=="/"?c.substr(0,c.length-1):c}function C(c){var a;return c.replace(y,function(j){a=s[j]||{};return a.g&&j==c?a.g:a.f?a.f:a.path})}function B(c,
+a){return(a&&!S.test(c)?(!a||a.charAt(a.length-1)=="/"?a:a+"/")+c:c)+(T.test(c)?"":".js")}function D(c,a,j){var e=g.createElement("script");e.type="text/javascript";e.onload=e[R]=function(j){j=j||b.event;if(j.type==="load"||U[this.readyState])delete h[c.name],this.onload=this[R]=this.onerror=x,a(e)};e.onerror=function(){j(Error("Syntax error or http error: "+c.url))};e.charset=c.charset||"utf-8";e.async=!0;e.src=c.url;h[c.name]=e;G.insertBefore(e,G.firstChild)}function J(c){var a,j,e,h,k=c.length;
+e=c[k-1];h=l(e,"Function");k==2?l(c[0],"Array")?j=c[0]:a=c[0]:k==3&&(a=c[0],j=c[1]);!j&&h&&e.length>0&&(j=["require","exports","module"]);return{name:a,n:j||[],p:h?e:function(){return e}}}function K(c,a){I&&console&&console.log("curl: resolving",c.name);var j=n(c.baseName||c.name);L(a.n,j,function(e){try{var h=a.p.apply(j.d.i,e)||j.d.i;I&&console&&console.log("curl: defined",c.name,h.toString().substr(0,50).replace(/\n/," "))}catch(k){c.a(k)}c.c(h)},c.a)}function F(c){D(c,function(){var a=e;e=O;c.r!==
+!1&&(a?a.k?c.a(Error(a.k.replace("${url}",c.url))):K(c,a):c.a(Error("define() not found or duplicates found: "+c.url)))},c.a)}function A(c,a){return c.replace(V,function(c,j,e){return(e?a.substr(0,a.lastIndexOf("/")):a)+"/"})}function M(c,e){var h,p,i,k;h=c.indexOf("!");if(h>=0){p=c.substr(0,h);i=A(c.substr(h+1),e.baseName);h=p+"!"+i;var d=C(p);d.indexOf("/")<0&&(d=C((!t||t.charAt(t.length-1)=="/"?t:t+"/")+d));k=j[h];if(!k){var b=j[p];if(!b)b=j[p]=new a(p),b.url=B(d,z),b.baseName=d,F(b);k=new a(h);
+i&&(j[h]=k);b.b(function(c){var a=k.c;a.resolve=a;a.reject=k.a;c.load(i,e.h,a,f)},k.a)}}else if(i=h=A(c,e.baseName),k=j[i],!k)k=j[i]=new a(i),k.url=B(C(i),z),F(k);return k}function L(a,j,e,h){for(var i=[],k=a.length,b=k,d=!1,m=0;m<b&&!d;m++)(function(a,c){c in j.d?(i[a]=j.d[c],k--):M(c,j).b(function(c){i[a]=c;--k==0&&(d=!0,e(i))},function(a){d=!0;h(a)})})(m,a[m]);k==0&&!d&&e(i)}function N(a,e,h){if(l(a,"String")){h=(h=j[a])&&h.q;if(h===O)throw Error("Module is not already resolved: "+a);return h}L(a,
+h,function(a){e.c?e.c(a):e.apply(x,a)},function(a){if(e.a)e.a(a);else throw a;})}function q(){var a=W.call(arguments),j,e;l(a[0],"Object")&&(f=a.shift(),r(f));j=a[0];a=a[1];e=n("");var h=new o,i={};i.then=function(a,c){h.b(function(c){a&&a.apply(x,c)},function(a){if(c)c(a);else throw a;});return i};i.next=function(a,c){var j=h;h=new o;j.b(function(){e.h(a,h,e)},function(a){h.a(a)});c&&h.b(function(a){c.apply(this,a)});return i};a&&i.then(a);e.h(j,h,e);return i}function E(){var c=J(arguments),i=c.name;
+if(i==x)if(e!==O)e={k:"Multiple anonymous defines found in ${url}."};else{var d;if(!l(b.opera,"Opera"))for(var m in h)if(h[m].readyState=="interactive"){d=m;break}if(!(i=d))e=c}if(i!=x)(d=j[i])||(d=j[i]=new a(i)),d.r=!1,"resolved"in d||K(d,c,n(i))}var G=g.head||g.getElementsByTagName("head")[0],z,t="curl/plugin",s={},j={},e,h={},i={}.toString,O,W=[].slice,S=/^\/|^[^:]*:\/\//,V=/^(\.)(\.)?(\/|$)/,Q=/\//,T=/\.\w+$/,y,U={loaded:1,interactive:1,complete:1},R="onreadystatechange",P={g:"./lib/main",f:"./lib"},
+I;l(f,"Function")||r(f);f.apiName?b[f.apiName]=q:b.curl=q;b.define=q.define=E;q.version="0.5";E.amd={plugins:!0}})(this,document,this.curl||{});
+(function(b,g){function f(){a=!0;for(clearTimeout(D);C=B.pop();)C();o&&(g[r]="complete");for(var d;d=n.shift();)d()}function l(){!a&&v[g[r]]&&f()}function m(){l();a||(D=setTimeout(m,30))}var r="readyState",v={loaded:1,complete:1},n=[],o=typeof g[r]!="string",a=!1,d,C,B=[],D;d="addEventListener"in b?function(a,d){a.addEventListener(d,l,!1);return function(){a.removeEventListener(d,l,!1)}}:function(a,d){a.attachEvent("on"+d,l);return function(){a.detachEvent(d,l)}};g[r]=="complete"?f():(B=[d(b,"load"),
+d(g,"readystatechange"),d(b,"DOMContentLoaded")],D=setTimeout(m,30));define("curl/domReady",function(){function d(b){a?b():n.push(b)}d.then=d;d.amd=!0;return d})})(this,document);
+(function(b){define("curl/dojo16Compat",["./domReady"],function(g){function f(b){b.ready||(b.ready=function(b){g(b)});b.nameToUrl||(b.nameToUrl=function(l,f){return b.toUrl(l+(f||""))});return b}var l=b.define;f(b.curl||b.require);b.define=function(){var b,g,v,n=[],o,a;b=[].slice.call(arguments);g=b.length;v=b[g-2];o=typeof b[g-1]=="function"?b[g-1]:x;if(v&&o){for(a=v.length-1;a>=0;a--)v[a]=="require"&&n.push(a);n.length>0&&(b[g-1]=function(){var d=[].slice.call(arguments);for(a=0;a<n.length;a++)d[n[a]]=
+f(d[n[a]]);return o.apply(this,d)})}return l.apply(x,b)};return!0})})(this);
+(function(b,g){function f(a,d,l){var f=g.createElement("script");f.type=a.l||"text/javascript";f.onload=f.onreadystatechange=function(a){a=a||b.event;if(a.type=="load"||v[this.readyState])this.onload=this.onreadystatechange=this.onerror=x,d(f)};f.onerror=function(){l&&l(Error("Script error or http error: "+a.url))};f.charset=a.charset||"utf-8";f.async=a.async;f.src=a.url;n.insertBefore(f,n.firstChild)}function l(a,d){f(a,function(a){var b=m.shift();o=m.length>0;b&&l.apply(x,b);d.resolve(a)},function(a){d.reject(a)})}
+var m=[],r=g.createElement("script").async==!0,v={loaded:1,interactive:1,complete:1},n=g.head||g.getElementsByTagName("head")[0],o;define("js",{load:function(a,d,b,g){var n,v;n=a.indexOf("!order")>=0;v=a.indexOf("!noexec")>=0;g="jsPrefetch"in g?g.jsPrefetch:!0;a=n||v?a.substr(0,a.indexOf("!")):a;a={name:a,url:d.toUrl(a),async:!n,w:n};d=b.resolve?b:{resolve:function(a){b(a)},reject:function(a){throw a;}};if(v||n&&!r&&o){if(v||m.push([a,d]),g)a.l="text/cache",f(a,function(a){a.parentNode.removeChild(a)}),
+a.l=""}else o=o||n,l(a,d)}})})(this,document);
+define("text",function(){function b(){if(typeof XMLHttpRequest!=="undefined")b=function(){return new XMLHttpRequest};else for(var f=b=function(){throw Error("getXhr(): XMLHttpRequest not available");};m.length>0&&b===f;)(function(f){try{new ActiveXObject(f),b=function(){return new ActiveXObject(f)}}catch(g){}})(m.shift());return b()}function g(f,g,l){var a=b();a.open("GET",f,!0);a.onreadystatechange=function(){a.readyState===4&&(a.status<400?g(a.responseText):l(Error("fetchText() failed. status: "+
+a.statusText)))};a.send(x)}function f(b){console&&(console.error?console.error(b):console.log(b.message))}function l(b){var f={34:'\\"',13:"\\r",12:"\\f",10:"\\n",9:"\\t",8:"\\b"};return b.replace(/(["|\n|\f|\t|\r|\b])/g,function(b){return f[b.charCodeAt(0)]})}var m=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],r={};return{load:function(b,l,o){var a=o.c||o,o=o.a||f;g(l.toUrl(b),a,o)},t:function(b,f){return function(g,a,d){var m;m=d.toUrl(a.lastIndexOf(".")<=a.lastIndexOf("/")?a+".html":
+a);a=d.toAbsMid(a);a in r||(r[a]=!0,m=l(f(m)),b('define("'+g+"!"+a+'", function () {\n\treturn "'+m+'";\n});\n'))}}}});define(function(){return{load:function(b,g,f){g(b,function(b){typeof b.b=="function"?b.b(function(g){f(arguments.length>0?g:b)}):f(b)})},analyze:function(b,g,f){f(b)}}});
+(function(b){function g(a,e){var b=a.link;b[B]=b[D]=function(){if(!b.readyState||b.readyState=="complete")M["event-link-onload"]=!0,n(a),e()}}function f(a){for(var a=a.split("!"),e,b=1;e=a[b++];)e=e.split("=",2),a[e[0]]=e.length==2?e[1]:!0;return a}function l(a){if(document.createStyleSheet&&(z||(z=document.createStyleSheet()),document.styleSheets.length>=30)){var e,b,d,f=0;d=z;z=x;for(b=document.getElementsByTagName("link");e=b[f];)e.getAttribute("_curl_movable")?(d.addImport(e.href),e.parentNode&&
+e.parentNode.removeChild(e)):f++}a=a[J]("link");a.rel="stylesheet";a.type="text/css";a.setAttribute("_curl_movable",!0);return a}function m(a){var e,b,d=!1;try{if(e=a.sheet||a.styleSheet,(d=(b=e.cssRules||e.rules)?b.length>0:b!==F)&&{}.toString.call(window.u)=="[object Chrome]"){e.insertRule("#_cssx_load_test{margin-top:-5px;}",0);if(!t)t=q[J]("div"),t.id="_cssx_load_test",E.appendChild(t);d=q.defaultView.getComputedStyle(t,x).marginTop=="-5px";e.deleteRule(0)}}catch(f){d=f.code==1E3||f.message.match(/security|denied/i)}return d}
+function r(a,e){m(a.link)?(n(a),e()):K||setTimeout(function(){r(a,e)},a.s)}function v(a,e){function b(){d||(d=!0,e())}var d;g(a,b);M["event-link-onload"]||r(a,b)}function n(a){a=a.link;a[B]=a[D]=x}function o(a,e){return a.replace(N,function(a,b){var d=b;L.test(d)||(d=e+d);return'url("'+d+'")'})}function a(b){clearTimeout(a.m);a.e?a.e.push(b):(a.e=[b],s=q.createStyleSheet?q.createStyleSheet():E.appendChild(q.createElement("style")));a.m=setTimeout(function(){var b,d;b=s;s=F;d=a.e.join("\n");a.e=F;
+d=d.replace(/.+charset[^;]+;/g,"");"cssText"in b?b.cssText=d:b.appendChild(q.createTextNode(d))},0);return s}function d(a){return{cssRules:function(){return a.cssRules||a.rules},insertRule:a.insertRule||function(b,d){var f=b.split(/\{|\}/g);a.addRule(f[0],f[1],d);return d},deleteRule:a.deleteRule||function(b){a.removeRule(b);return b},sheet:function(){return a}}}function C(a){var b={34:'\\"',13:"\\r",12:"\\f",10:"\\n",9:"\\t",8:"\\b"};return a.replace(/(["|\n|\f|\t|\r|\b])/g,function(a){return b[a.charCodeAt(0)]})}
+var B="onreadystatechange",D="onload",J="createElement",K=!1,F,A={},M={},L=/^\/|^[^:]*:\/\//,N=/url\s*\(['"]?([^'"\)]*)['"]?\)/g,q=b.document,E,G={};if(q)E=q.o||(q.o=q.getElementsByTagName("head")[0]);var z,t,s;define({load:function(b,e,h,i){function g(){--n==0&&setTimeout(function(){h(d(y.sheet||y.styleSheet))},0)}var m=(b||"").split(","),n=m.length;if(b)for(var r=m.length-1,t;r>=0;r--,t=!0){var b=m[r],b=f(b),s=b.shift(),s=e.toUrl(s.lastIndexOf(".")<=s.lastIndexOf("/")?s+".css":s),y=l(q),z={link:y,
+url:s,s:i.cssWatchPeriod||50};("nowait"in b?b.nowait!="false":i.cssDeferLoad)?h(d(y.sheet||y.styleSheet)):v(z,g);y.href=s;t?E.insertBefore(y,A[t].previousSibling):E.appendChild(y);A[s]=y}else h({translateUrls:function(a,b){var d;d=e.toUrl(b);d=d.substr(0,d.lastIndexOf("/")+1);return o(a,d)},injectStyle:function(b){return a(b)},proxySheet:function(a){if(a.sheet)a=a.sheet;return d(a)}})},build:function(a,b){return function(d,i,g){i=f(i).shift();i=g.toAbsMid(i);i in G||(G[i]=!0,g=g.toUrl(i.lastIndexOf(".")<=
+i.lastIndexOf("/")?i+".css":i),g=C(b(g)),a('define("'+d+"!"+i+'", ["'+d+'!"], function (api) {\n\tvar cssText = "'+g+'";\n\tcssText = api.translateUrls(cssText, "'+i+'");\n\treturn api.proxySheet(api.injectStyle(cssText));\n});\n'))}}})})(this);define("domReady",["../domReady"],function(b){return{load:function(g,f,l){b(l)}}});
View
29 dist/curl-with-js-and-domReady/curl.js
@@ -1,15 +1,16 @@
var u=null;
-(function(k,l,m){function j(a,b){return P.call(a).indexOf("[object "+b)==0}function s(a,b){j(a,"String")&&(a={path:f(a),main:G.f,lib:G.e});a.path=a.path||(isNaN(b)?b:a.name);a.e="lib"in a&&f(a.lib.replace(x,a.path+"/"));a.f="main"in a&&f(a.main.replace(x,a.path+"/"));return a}function q(a){var b,e,d,h=[];C=a.baseUrl||"";var i=a.paths;for(b in i)e=f(b),d=y[e]={path:f(i[b])},d.i=(d.path.match(H)||[]).length,h.push(e);i=a.packages;for(b in i)e=f(i[b].name||b),d=y[e]=s(i[b],e),d.i=(d.path.match(H)||[]).length,
-h.push(e);I=RegExp("^("+h.sort(function(a,b){return y[a].i<y[b].i}).join("|").replace(/\//g,"\\/")+")(?=\\/|$)");v=a.pluginPath||v}function z(){}function r(a){function b(a){return g(w(a.replace(x,e+"/")),C)}var e=a.substr(0,a.lastIndexOf("/")),d={baseName:e},h={};d.d={h:h,p:{id:a.replace(x,e+"/"),uri:b(a),h:h},b:function(a,b){return E(a,b||z,d)}};d.b=d.d.b;m.debug&&(d.b.curl=t);d.b.toUrl=b;return d}function o(){function a(a,b){i.push([a,b])}function b(a){d(!0,a)}function e(a){d(!1,a)}function d(d,
-h){a=d?function(a){a&&a(h)}:function(a,b){b&&b(h)};b=e=function(){throw Error("Promise already completed.");};for(var c,g=0;c=i[g++];)(c=c[d?0:1])&&c(h)}var h=this,i=[];return{c:function(b,d){a(b,d);return h},g:function(a){h.n=a;b(a)},a:function(a){h.r=a;e(a)}}}function c(a){var b=o();b.name=a;return b}function f(a){return a.charAt(a.length-1)=="/"?a.substr(0,a.length-1):a}function w(a){var b;return a.replace(I,function(e){b=y[e]||{};return b.f&&e==a?b.f:b.e?b.e:b.path})}function g(a,b){return(b&&
-!Q.test(a)?(!b||b.charAt(b.length-1)=="/"?b:b+"/")+a:a)+(R.test(a)?"":".js")}function A(a,b,e){var d=l.createElement("script");d.type="text/javascript";d.onload=d[J]=function(e){e=e||k.event;if(e.type==="load"||S[this.readyState])delete D[a.name],this.onload=this[J]=this.onerror=u,b(d)};d.onerror=function(){e(Error("Syntax error or http error: "+a.url))};d.charset=a.charset||"utf-8";d.async=!0;d.src=a.url;D[a.name]=d;K.insertBefore(d,K.firstChild)}function n(a){var b,e,d,h,i=a.length;d=a[i-1];h=j(d,
-"Function");i==2?j(a[0],"Array")?e=a[0]:b=a[0]:i==3&&(b=a[0],e=a[1]);!e&&h&&d.length>0&&(e=["require","exports","module"]);return{name:b,l:e||[],m:h?d:function(){return d}}}function L(a,b){var e=r(a.name);M(b.l,e,function(d){d=b.m.apply(e.d.h,d)||e.d.h;a.g(d)},a.a)}function N(a){A(a,function(){var b=B;B=F;a.o!==!1&&(b?b.j?a.a(Error(b.j.replace("${url}",a.url))):L(a,b):a.a(Error("define() not found or duplicates found: "+a.url)))},a.a)}function T(a,b){var e,d,h,i;e=a.indexOf("!");if(e>=0){d=a.substr(0,
-e);h=a.substr(e+1).replace(x,b.baseName+"/");e=d+"!"+h;var f=w(d);f.indexOf("/")<0&&(f=w((!v||v.charAt(v.length-1)=="/"?v:v+"/")+f));i=p[e];if(!i){var n=p[d];if(!n)n=p[d]=new c(d),n.url=g(f,C),N(n);i=new c(h);h&&(p[e]=i);n.c(function(a){var d=i.g;d.resolve=d;d.reject=i.a;a.load(i.name,b.b,d,m)},i.a)}}else if(h=e=a.replace(x,b.baseName+"/"),i=p[h],!i)i=p[h]=new c(h),i.url=g(w(h),C),N(i);return i}function M(a,b,e,d){for(var h=[],i=a.length,c=i,f=!1,g=0;g<c&&!f;g++)(function(a,c){c in b.d?(h[a]=b.d[c],
-i--):T(c,b).c(function(b){h[a]=b;--i==0&&(f=!0,e(h))},function(a){f=!0;d(a)})})(g,a[g]);i==0&&!f&&e(h)}function E(a,b,e){if(j(a,"String")){e=(e=p[a])&&e.n;if(e===F)throw Error("Module is not already resolved: "+a);return e}M(a,e,function(a){b.g?b.g(a):b.apply(u,a)},function(a){if(b.a)b.a(a);else throw a;})}function t(){var a=U.call(arguments),b,e;j(a[0],"Object")&&q(a.shift());b=a[0];a=a[1];e=r("");var d=new o,c={};c.then=function(a,b){d.c(function(b){a&&a.apply(u,b)},function(a){if(b)b(a);else throw a;
-});return c};c.next=function(a,b){var f=d;d=new o;f.c(function(){e.b(a,d,e)});b&&d.c(function(a){b.apply(this,a)});return c};a&&c.then(a);e.b(b,d,e);return c}function O(){var a=n(arguments),b=a.name;if(b==u)if(B!==F)B={j:"Multiple anonymous defines found in ${url}."};else{var e;if(!j(k.opera,"Opera"))for(var d in D)if(D[d].readyState=="interactive"){e=d;break}if(!(b=e))B=a}if(b!=u)(e=p[b])||(e=p[b]=new c(b)),e.o=!1,L(e,a,r(b))}var K=l.head||l.getElementsByTagName("head")[0],C,v="curl/plugin",y={},
-p={},B,D={},P={}.toString,F,U=[].slice,Q=/^\/|^[^:]*:\/\//,x=/^\.(\/|$)/,H=/\//,R=/\.\w+$/,I,S={loaded:1,interactive:1,complete:1},J="onreadystatechange",G={f:"./lib/main",e:"./lib"};j(m,"Function")||q(m);m.apiName?k[m.apiName]=t:k.curl=t;if(m.debug)t.cache=E.cache=p,t.cfg=E.cfg=m,t.listen=function(){eval("var orig=which;which=function(){callback.apply(null,arguments);return orig.apply(null,arguments);};")};k.define=t.define=O;t.version="0.5";O.amd={plugins:!0}})(this,document,this.curl||{});
-(function(k,l){function m(){c=!0;for(clearTimeout(A);w=g.pop();)w();o&&(l[q]="complete");for(var f;f=r.shift();)f()}function j(){!c&&z[l[q]]&&m()}function s(){j();c||(A=setTimeout(s,30))}var q="readyState",z={loaded:1,complete:1},r=[],o=typeof l[q]!="string",c=!1,f,w,g=[],A;f="addEventListener"in k?function(c,f){c.addEventListener(f,j,!1);return function(){c.removeEventListener(f,j,!1)}}:function(c,f){c.attachEvent("on"+f,j);return function(){c.detachEvent(f,j)}};l[q]=="complete"?m():(g=[f(k,"load"),
-f(l,"readystatechange"),f(k,"DOMContentLoaded")],A=setTimeout(s,30));define("curl/domReady",function(){function f(g){c?g():r.push(g)}f.then=f;f.amd=!0;return f})})(this,document);
-(function(k,l){function m(c,f,j){var g=l.createElement("script");g.type=c.k||"text/javascript";g.onload=g.onreadystatechange=function(c){c=c||k.event;if(c.type=="load"||z[this.readyState])this.onload=this.onreadystatechange=this.onerror=u,f(g)};g.onerror=function(){j&&j(Error("Script error or http error: "+c.url))};g.charset=c.charset||"utf-8";g.async=c.async;g.src=c.url;r.insertBefore(g,r.firstChild)}function j(c,f){m(c,function(c){var g=s.shift();o=s.length>0;g&&j.apply(u,g);f.resolve(c)},function(c){f.reject(c)})}
-var s=[],q=l.createElement("script").async==!0,z={loaded:1,interactive:1,complete:1},r=l.head||l.getElementsByTagName("head")[0],o;define("js",{load:function(c,f,l,g){var k,n;k=c.indexOf("!order")>=0;n=c.indexOf("!noexec")>=0;g="jsPrefetch"in g?g.jsPrefetch:!0;c=k||n?c.substr(0,c.indexOf("!")):c;c={name:c,url:f.toUrl(c),async:!k,q:k};f=l.resolve?l:{resolve:function(c){l(c)},reject:function(c){throw c;}};if(n||k&&!q&&o){if(n||s.push([c,f]),g)c.k="text/cache",m(c,function(c){c.parentNode.removeChild(c)}),
-c.k=""}else o=o||k,j(c,f)}})})(this,document);define("domReady",["require"],function(k){return{load:function(l,m,j){k(["curl/domReady"],j)}}});
+(function(k,l,n){function j(a,b){return P.call(a).indexOf("[object "+b)==0}function s(a,b){j(a,"String")&&(a={path:g(a),main:G.e,lib:G.d});a.path=a.path||(isNaN(b)?b:a.name);a.d="lib"in a&&g(x(a.lib,a.path));a.e="main"in a&&g(x(a.main,a.path));return a}function q(a){var b,c,e,f=[];C=a.baseUrl||"";if(a.debug)D=!0,t.cache=o,t.cfg=a,t.undefine=function(a){delete o[a]};var h=a.paths;for(b in h)c=g(b),e=y[c]={path:g(h[b])},e.i=(e.path.match(H)||[]).length,f.push(c);h=a.packages;for(b in h)c=g(h[b].name||
+b),e=y[c]=s(h[b],c),e.i=(e.path.match(H)||[]).length,f.push(c);I=RegExp("^("+f.sort(function(a,b){return y[a].i<y[b].i}).join("|").replace(/\//g,"\\/")+")(?=\\/|$)");v=a.pluginPath||v}function z(){}function r(a){function b(a,b){return Q(a,b||z,f)}function c(a){return i(w(x(a,e)),C)}var e=a.substr(0,a.lastIndexOf("/")),f={baseName:e},h={};f.c={h:h,p:{id:x(a,e),uri:c(a),h:h}};D&&(b.curl=t);f.f=f.c.f=b;b.toUrl=c;return f}function p(){function a(a,b){h.push([a,b])}function b(a){e(!0,a)}function c(a){e(!1,
+a)}function e(e,f){a=e?function(a){a&&a(f)}:function(a,b){b&&b(f)};b=c=function(){throw Error("Promise already completed.");};for(var d,i=0;d=h[i++];)(d=d[e?0:1])&&d(f)}var f=this,h=[];this.b=function(b,c){a(b,c)};this.g=function(a){f.n=a;b(a)};this.a=function(a){f.r=a;c(a)}}function d(a){p.apply(this);this.name=a}function g(a){return a.charAt(a.length-1)=="/"?a.substr(0,a.length-1):a}function w(a){var b;return a.replace(I,function(c){b=y[c]||{};return b.e&&c==a?b.e:b.d?b.d:b.path})}function i(a,
+b){return(b&&!R.test(a)?(!b||b.charAt(b.length-1)=="/"?b:b+"/")+a:a)+(S.test(a)?"":".js")}function A(a,b,c){var e=l.createElement("script");e.type="text/javascript";e.onload=e[J]=function(c){c=c||k.event;if(c.type==="load"||T[this.readyState])delete E[a.name],this.onload=this[J]=this.onerror=u,b(e)};e.onerror=function(){c(Error("Syntax error or http error: "+a.url))};e.charset=a.charset||"utf-8";e.async=!0;e.src=a.url;E[a.name]=e;K.insertBefore(e,K.firstChild)}function m(a){var b,c,e,f,h=a.length;
+e=a[h-1];f=j(e,"Function");h==2?j(a[0],"Array")?c=a[0]:b=a[0]:h==3&&(b=a[0],c=a[1]);!c&&f&&e.length>0&&(c=["require","exports","module"]);return{name:b,l:c||[],m:f?e:function(){return e}}}function L(a,b){D&&console&&console.log("curl: resolving",a.name);var c=r(a.baseName||a.name);M(b.l,c,function(e){try{var f=b.m.apply(c.c.h,e)||c.c.h;D&&console&&console.log("curl: defined",a.name,f.toString().substr(0,50).replace(/\n/," "))}catch(h){a.a(h)}a.g(f)},a.a)}function N(a){A(a,function(){var b=B;B=F;a.o!==
+!1&&(b?b.j?a.a(Error(b.j.replace("${url}",a.url))):L(a,b):a.a(Error("define() not found or duplicates found: "+a.url)))},a.a)}function x(a,b){return a.replace(U,function(a,e,f){return(f?b.substr(0,b.lastIndexOf("/")):b)+"/"})}function V(a,b){var c,e,f,h;c=a.indexOf("!");if(c>=0){e=a.substr(0,c);f=x(a.substr(c+1),b.baseName);c=e+"!"+f;var g=w(e);g.indexOf("/")<0&&(g=w((!v||v.charAt(v.length-1)=="/"?v:v+"/")+g));h=o[c];if(!h){var m=o[e];if(!m)m=o[e]=new d(e),m.url=i(g,C),m.baseName=g,N(m);h=new d(c);
+f&&(o[c]=h);m.b(function(a){var c=h.g;c.resolve=c;c.reject=h.a;a.load(f,b.f,c,n)},h.a)}}else if(f=c=x(a,b.baseName),h=o[f],!h)h=o[f]=new d(f),h.url=i(w(f),C),N(h);return h}function M(a,b,c,e){for(var f=[],h=a.length,d=h,g=!1,m=0;m<d&&!g;m++)(function(a,d){d in b.c?(f[a]=b.c[d],h--):V(d,b).b(function(b){f[a]=b;--h==0&&(g=!0,c(f))},function(a){g=!0;e(a)})})(m,a[m]);h==0&&!g&&c(f)}function Q(a,b,c){if(j(a,"String")){c=(c=o[a])&&c.n;if(c===F)throw Error("Module is not already resolved: "+a);return c}M(a,
+c,function(a){b.g?b.g(a):b.apply(u,a)},function(a){if(b.a)b.a(a);else throw a;})}function t(){var a=W.call(arguments),b,c;j(a[0],"Object")&&(n=a.shift(),q(n));b=a[0];a=a[1];c=r("");var e=new p,f={};f.then=function(a,b){e.b(function(b){a&&a.apply(u,b)},function(a){if(b)b(a);else throw a;});return f};f.next=function(a,b){var d=e;e=new p;d.b(function(){c.f(a,e,c)},function(a){e.a(a)});b&&e.b(function(a){b.apply(this,a)});return f};a&&f.then(a);c.f(b,e,c);return f}function O(){var a=m(arguments),b=a.name;
+if(b==u)if(B!==F)B={j:"Multiple anonymous defines found in ${url}."};else{var c;if(!j(k.opera,"Opera"))for(var e in E)if(E[e].readyState=="interactive"){c=e;break}if(!(b=c))B=a}if(b!=u)(c=o[b])||(c=o[b]=new d(b)),c.o=!1,"resolved"in c||L(c,a,r(b))}var K=l.head||l.getElementsByTagName("head")[0],C,v="curl/plugin",y={},o={},B,E={},P={}.toString,F,W=[].slice,R=/^\/|^[^:]*:\/\//,U=/^(\.)(\.)?(\/|$)/,H=/\//,S=/\.\w+$/,I,T={loaded:1,interactive:1,complete:1},J="onreadystatechange",G={e:"./lib/main",d:"./lib"},
+D;j(n,"Function")||q(n);n.apiName?k[n.apiName]=t:k.curl=t;k.define=t.define=O;t.version="0.5";O.amd={plugins:!0}})(this,document,this.curl||{});
+(function(k,l){function n(){d=!0;for(clearTimeout(A);w=i.pop();)w();p&&(l[q]="complete");for(var g;g=r.shift();)g()}function j(){!d&&z[l[q]]&&n()}function s(){j();d||(A=setTimeout(s,30))}var q="readyState",z={loaded:1,complete:1},r=[],p=typeof l[q]!="string",d=!1,g,w,i=[],A;g="addEventListener"in k?function(d,g){d.addEventListener(g,j,!1);return function(){d.removeEventListener(g,j,!1)}}:function(d,g){d.attachEvent("on"+g,j);return function(){d.detachEvent(g,j)}};l[q]=="complete"?n():(i=[g(k,"load"),
+g(l,"readystatechange"),g(k,"DOMContentLoaded")],A=setTimeout(s,30));define("curl/domReady",function(){function g(i){d?i():r.push(i)}g.then=g;g.amd=!0;return g})})(this,document);
+(function(k,l){function n(d,g,j){var i=l.createElement("script");i.type=d.k||"text/javascript";i.onload=i.onreadystatechange=function(d){d=d||k.event;if(d.type=="load"||z[this.readyState])this.onload=this.onreadystatechange=this.onerror=u,g(i)};i.onerror=function(){j&&j(Error("Script error or http error: "+d.url))};i.charset=d.charset||"utf-8";i.async=d.async;i.src=d.url;r.insertBefore(i,r.firstChild)}function j(d,g){n(d,function(d){var i=s.shift();p=s.length>0;i&&j.apply(u,i);g.resolve(d)},function(d){g.reject(d)})}
+var s=[],q=l.createElement("script").async==!0,z={loaded:1,interactive:1,complete:1},r=l.head||l.getElementsByTagName("head")[0],p;define("js",{load:function(d,g,l,i){var k,m;k=d.indexOf("!order")>=0;m=d.indexOf("!noexec")>=0;i="jsPrefetch"in i?i.jsPrefetch:!0;d=k||m?d.substr(0,d.indexOf("!")):d;d={name:d,url:g.toUrl(d),async:!k,q:k};g=l.resolve?l:{resolve:function(d){l(d)},reject:function(d){throw d;}};if(m||k&&!q&&p){if(m||s.push([d,g]),i)d.k="text/cache",n(d,function(d){d.parentNode.removeChild(d)}),
+d.k=""}else p=p||k,j(d,g)}})})(this,document);define("domReady",["../domReady"],function(k){return{load:function(l,n,j){k(j)}}});
View
20 dist/curl/curl.js
@@ -1,10 +1,10 @@
-(function(p,x,j){function l(a,b){return N.call(a).indexOf("[object "+b)==0}function O(a,b){l(a,"String")&&(a={path:n(a),main:D.f,lib:D.e});a.path=a.path||(isNaN(b)?b:a.name);a.e="lib"in a&&n(a.lib.replace(o,a.path+"/"));a.f="main"in a&&n(a.main.replace(o,a.path+"/"));return a}function E(a){var b,d,c,e=[];s=a.baseUrl||"";var f=a.paths;for(b in f)d=n(b),c=q[d]={path:n(f[b])},c.i=(c.path.match(F)||[]).length,e.push(d);f=a.packages;for(b in f)d=n(f[b].name||b),c=q[d]=O(f[b],d),c.i=(c.path.match(F)||[]).length,
-e.push(d);G=RegExp("^("+e.sort(function(a,b){return q[a].i<q[b].i}).join("|").replace(/\//g,"\\/")+")(?=\\/|$)");m=a.pluginPath||m}function P(){}function y(a){function b(a){return z(u(a.replace(o,d+"/")),s)}var d=a.substr(0,a.lastIndexOf("/")),c={baseName:d},e={};c.d={h:e,o:{id:a.replace(o,d+"/"),uri:b(a),h:e},b:function(a,b){return A(a,b||P,c)}};c.b=c.d.b;j.debug&&(c.b.curl=k);c.b.toUrl=b;return c}function B(){function a(a,b){f.push([a,b])}function b(a){c(!0,a)}function d(a){c(!1,a)}function c(c,
-e){a=c?function(a){a&&a(e)}:function(a,b){b&&b(e)};b=d=function(){throw Error("Promise already completed.");};for(var i,g=0;i=f[g++];)(i=i[c?0:1])&&i(e)}var e=this,f=[];return{c:function(b,c){a(b,c);return e},g:function(a){e.m=a;b(a)},a:function(a){e.p=a;d(a)}}}function v(a){var b=B();b.name=a;return b}function n(a){return a.charAt(a.length-1)=="/"?a.substr(0,a.length-1):a}function u(a){var b;return a.replace(G,function(d){b=q[d]||{};return b.f&&d==a?b.f:b.e?b.e:b.path})}function z(a,b){return(b&&
-!Q.test(a)?(!b||b.charAt(b.length-1)=="/"?b:b+"/")+a:a)+(R.test(a)?"":".js")}function S(a,b,d){var c=x.createElement("script");c.type="text/javascript";c.onload=c[H]=function(d){d=d||p.event;if(d.type==="load"||T[this.readyState])delete w[a.name],this.onload=this[H]=this.onerror=null,b(c)};c.onerror=function(){d(Error("Syntax error or http error: "+a.url))};c.charset=a.charset||"utf-8";c.async=!0;c.src=a.url;w[a.name]=c;I.insertBefore(c,I.firstChild)}function U(a){var b,d,c,e,f=a.length;c=a[f-1];
-e=l(c,"Function");f==2?l(a[0],"Array")?d=a[0]:b=a[0]:f==3&&(b=a[0],d=a[1]);!d&&e&&c.length>0&&(d=["require","exports","module"]);return{name:b,k:d||[],l:e?c:function(){return c}}}function J(a,b){var d=y(a.name);K(b.k,d,function(c){c=b.l.apply(d.d.h,c)||d.d.h;a.g(c)},a.a)}function L(a){S(a,function(){var b=r;r=C;a.n!==!1&&(b?b.j?a.a(Error(b.j.replace("${url}",a.url))):J(a,b):a.a(Error("define() not found or duplicates found: "+a.url)))},a.a)}function V(a,b){var d,c,e,f;d=a.indexOf("!");if(d>=0){c=
-a.substr(0,d);e=a.substr(d+1).replace(o,b.baseName+"/");d=c+"!"+e;var t=u(c);t.indexOf("/")<0&&(t=u((!m||m.charAt(m.length-1)=="/"?m:m+"/")+t));f=g[d];if(!f){var h=g[c];if(!h)h=g[c]=new v(c),h.url=z(t,s),L(h);f=new v(e);e&&(g[d]=f);h.c(function(a){var c=f.g;c.resolve=c;c.reject=f.a;a.load(f.name,b.b,c,j)},f.a)}}else if(e=d=a.replace(o,b.baseName+"/"),f=g[e],!f)f=g[e]=new v(e),f.url=z(u(e),s),L(f);return f}function K(a,b,d,c){for(var e=[],f=a.length,g=f,h=!1,i=0;i<g&&!h;i++)(function(a,g){g in b.d?
-(e[a]=b.d[g],f--):V(g,b).c(function(b){e[a]=b;--f==0&&(h=!0,d(e))},function(a){h=!0;c(a)})})(i,a[i]);f==0&&!h&&d(e)}function A(a,b,d){if(l(a,"String")){d=(d=g[a])&&d.m;if(d===C)throw Error("Module is not already resolved: "+a);return d}K(a,d,function(a){b.g?b.g(a):b.apply(null,a)},function(a){if(b.a)b.a(a);else throw a;})}function k(){var a=W.call(arguments),b,d;l(a[0],"Object")&&E(a.shift());b=a[0];a=a[1];d=y("");var c=new B,e={};e.then=function(a,b){c.c(function(b){a&&a.apply(null,b)},function(a){if(b)b(a);
-else throw a;});return e};e.next=function(a,b){var g=c;c=new B;g.c(function(){d.b(a,c,d)});b&&c.c(function(a){b.apply(this,a)});return e};a&&e.then(a);d.b(b,c,d);return e}function M(){var a=U(arguments),b=a.name;if(b==null)if(r!==C)r={j:"Multiple anonymous defines found in ${url}."};else{var d;if(!l(p.opera,"Opera"))for(var c in w)if(w[c].readyState=="interactive"){d=c;break}if(!(b=d))r=a}if(b!=null)(d=g[b])||(d=g[b]=new v(b)),d.n=!1,J(d,a,y(b))}var I=x.head||x.getElementsByTagName("head")[0],s,m=
-"curl/plugin",q={},g={},r,w={},N={}.toString,C,W=[].slice,Q=/^\/|^[^:]*:\/\//,o=/^\.(\/|$)/,F=/\//,R=/\.\w+$/,G,T={loaded:1,interactive:1,complete:1},H="onreadystatechange",D={f:"./lib/main",e:"./lib"};l(j,"Function")||E(j);j.apiName?p[j.apiName]=k:p.curl=k;if(j.debug)k.cache=A.cache=g,k.cfg=A.cfg=j,k.listen=function(){eval("var orig=which;which=function(){callback.apply(null,arguments);return orig.apply(null,arguments);};")};p.define=k.define=M;k.version="0.5";M.amd={plugins:!0}})(this,document,
-this.curl||{});
+(function(p,y,k){function l(a,b){return N.call(a).indexOf("[object "+b)==0}function O(a,b){l(a,"String")&&(a={path:n(a),main:D.e,lib:D.d});a.path=a.path||(isNaN(b)?b:a.name);a.d="lib"in a&&n(o(a.lib,a.path));a.e="main"in a&&n(o(a.main,a.path));return a}function E(a){var b,c,d,e=[];t=a.baseUrl||"";if(a.debug)u=!0,j.cache=g,j.cfg=a,j.undefine=function(a){delete g[a]};var f=a.paths;for(b in f)c=n(b),d=r[c]={path:n(f[b])},d.i=(d.path.match(F)||[]).length,e.push(c);f=a.packages;for(b in f)c=n(f[b].name||
+b),d=r[c]=O(f[b],c),d.i=(d.path.match(F)||[]).length,e.push(c);G=RegExp("^("+e.sort(function(a,b){return r[a].i<r[b].i}).join("|").replace(/\//g,"\\/")+")(?=\\/|$)");m=a.pluginPath||m}function P(){}function z(a){function b(a,b){return Q(a,b||P,e)}function c(a){return A(v(o(a,d)),t)}var d=a.substr(0,a.lastIndexOf("/")),e={baseName:d},f={};e.c={h:f,o:{id:o(a,d),uri:c(a),h:f}};u&&(b.curl=j);e.f=e.c.f=b;b.toUrl=c;return e}function B(){function a(a,b){f.push([a,b])}function b(a){d(!0,a)}function c(a){d(!1,
+a)}function d(d,e){a=d?function(a){a&&a(e)}:function(a,b){b&&b(e)};b=c=function(){throw Error("Promise already completed.");};for(var i,g=0;i=f[g++];)(i=i[d?0:1])&&i(e)}var e=this,f=[];this.b=function(b,c){a(b,c)};this.g=function(a){e.m=a;b(a)};this.a=function(a){e.p=a;c(a)}}function w(a){B.apply(this);this.name=a}function n(a){return a.charAt(a.length-1)=="/"?a.substr(0,a.length-1):a}function v(a){var b;return a.replace(G,function(c){b=r[c]||{};return b.e&&c==a?b.e:b.d?b.d:b.path})}function A(a,
+b){return(b&&!R.test(a)?(!b||b.charAt(b.length-1)=="/"?b:b+"/")+a:a)+(S.test(a)?"":".js")}function T(a,b,c){var d=y.createElement("script");d.type="text/javascript";d.onload=d[H]=function(c){c=c||p.event;if(c.type==="load"||U[this.readyState])delete x[a.name],this.onload=this[H]=this.onerror=null,b(d)};d.onerror=function(){c(Error("Syntax error or http error: "+a.url))};d.charset=a.charset||"utf-8";d.async=!0;d.src=a.url;x[a.name]=d;I.insertBefore(d,I.firstChild)}function V(a){var b,c,d,e,f=a.length;
+d=a[f-1];e=l(d,"Function");f==2?l(a[0],"Array")?c=a[0]:b=a[0]:f==3&&(b=a[0],c=a[1]);!c&&e&&d.length>0&&(c=["require","exports","module"]);return{name:b,k:c||[],l:e?d:function(){return d}}}function J(a,b){u&&console&&console.log("curl: resolving",a.name);var c=z(a.baseName||a.name);K(b.k,c,function(d){try{var e=b.l.apply(c.c.h,d)||c.c.h;u&&console&&console.log("curl: defined",a.name,e.toString().substr(0,50).replace(/\n/," "))}catch(f){a.a(f)}a.g(e)},a.a)}function L(a){T(a,function(){var b=s;s=C;a.n!==
+!1&&(b?b.j?a.a(Error(b.j.replace("${url}",a.url))):J(a,b):a.a(Error("define() not found or duplicates found: "+a.url)))},a.a)}function o(a,b){return a.replace(W,function(a,d,e){return(e?b.substr(0,b.lastIndexOf("/")):b)+"/"})}function X(a,b){var c,d,e,f;c=a.indexOf("!");if(c>=0){d=a.substr(0,c);e=o(a.substr(c+1),b.baseName);c=d+"!"+e;var q=v(d);q.indexOf("/")<0&&(q=v((!m||m.charAt(m.length-1)=="/"?m:m+"/")+q));f=g[c];if(!f){var h=g[d];if(!h)h=g[d]=new w(d),h.url=A(q,t),h.baseName=q,L(h);f=new w(c);
+e&&(g[c]=f);h.b(function(a){var c=f.g;c.resolve=c;c.reject=f.a;a.load(e,b.f,c,k)},f.a)}}else if(e=c=o(a,b.baseName),f=g[e],!f)f=g[e]=new w(e),f.url=A(v(e),t),L(f);return f}function K(a,b,c,d){for(var e=[],f=a.length,g=f,h=!1,i=0;i<g&&!h;i++)(function(a,g){g in b.c?(e[a]=b.c[g],f--):X(g,b).b(function(b){e[a]=b;--f==0&&(h=!0,c(e))},function(a){h=!0;d(a)})})(i,a[i]);f==0&&!h&&c(e)}function Q(a,b,c){if(l(a,"String")){c=(c=g[a])&&c.m;if(c===C)throw Error("Module is not already resolved: "+a);return c}K(a,
+c,function(a){b.g?b.g(a):b.apply(null,a)},function(a){if(b.a)b.a(a);else throw a;})}function j(){var a=Y.call(arguments),b,c;l(a[0],"Object")&&(k=a.shift(),E(k));b=a[0];a=a[1];c=z("");var d=new B,e={};e.then=function(a,b){d.b(function(b){a&&a.apply(null,b)},function(a){if(b)b(a);else throw a;});return e};e.next=function(a,b){var g=d;d=new B;g.b(function(){c.f(a,d,c)},function(a){d.a(a)});b&&d.b(function(a){b.apply(this,a)});return e};a&&e.then(a);c.f(b,d,c);return e}function M(){var a=V(arguments),
+b=a.name;if(b==null)if(s!==C)s={j:"Multiple anonymous defines found in ${url}."};else{var c;if(!l(p.opera,"Opera"))for(var d in x)if(x[d].readyState=="interactive"){c=d;break}if(!(b=c))s=a}if(b!=null)(c=g[b])||(c=g[b]=new w(b)),c.n=!1,"resolved"in c||J(c,a,z(b))}var I=y.head||y.getElementsByTagName("head")[0],t,m="curl/plugin",r={},g={},s,x={},N={}.toString,C,Y=[].slice,R=/^\/|^[^:]*:\/\//,W=/^(\.)(\.)?(\/|$)/,F=/\//,S=/\.\w+$/,G,U={loaded:1,interactive:1,complete:1},H="onreadystatechange",D={e:"./lib/main",
+d:"./lib"},u;l(k,"Function")||E(k);k.apiName?p[k.apiName]=j:p.curl=j;p.define=j.define=M;j.version="0.5";M.amd={plugins:!0}})(this,document,this.curl||{});
Please sign in to comment.
Something went wrong with that request. Please try again.