Comparing version 1.0.10 to 1.0.11
/*! | ||
* Aris JavaScript Library v1.0.10 | ||
* @author Benjamin Kang Yue Sheng | ||
* Aris JavaScript Library v1.0.11 | ||
* @author vectorized.eth | ||
* MIT license | ||
@@ -658,3 +658,3 @@ * | ||
for (j = 0; j < n; ++j) | ||
v[j] = context[o](v[j]); | ||
v[j] = context[o](v[j], j); | ||
for (j = 0; j < n; ++j) | ||
@@ -661,0 +661,0 @@ r += HTML(v[j]); |
@@ -1,1 +0,1 @@ | ||
!function(n,r){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=r(n,1):r(n)}("undefined"!=typeof window?window:this,function(c,n){"use strict";function l(n){return"undefined"==typeof n}function p(n){for(var r={},e=(n=n[u](","))[j];e--;)r[n[e]]=1;return r}function d(n){return n}function y(n){for(var r,e=[];r=a.exec(n);)e.push(r[0]);return e}function r(r){return function(n){return n&&Object.prototype.toString.call(n)=="[object "+r+"]"}}function w(n){return String.prototype.trim?n.trim():n[v](i,"")}var e,g=c.document,u="split",j="length",$="toLowerCase",v="replace",h="createElement",s="toUpperCase",m="appendChild",S="hasOwnProperty",k="match",t=l(g),x=p("column-count,fill-opacity,font-weight,line-height,opacity,orphans,widows,z-index,zoom"),A=p("area,base,br,col,embed,hr,img,input,keygen,link,meta,param,source,track,wbr"),b=/((?:\\.|("|')(?:\\.|.)*?\2|[^{}])*)([{}])/g,z=/(?:^|\{|\s|;)([A-Za-z0-9\-]+)\s*\:\s*?((?:\\.|("|')(?:\\.|.)*?\3|[^;}])*)/g,o=/url\(\s*?["']?(.*?)["']?\s*?\)/g,f=/^\s*?(data\:|.{1,6}\:\/\/)/,C=/\/\*[\s\S]*?\*\//g,E=/\.([A-Za-z0-9]+)(?:[\?#]|$)/,T=/^(?:\s*?(js|css)\s*?\:)?\s*?(\S[\S\s]*)/i,i=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,a=/(?:(?:^|[A-Z])[a-z]+|[0-9]+|[A-Za-z]+)/g,F=/((^|\/)[^\/]*)$/,L=/^[\w]+$/,O=t?d:g.head,M=r("Array"),R=r("Object"),H=r("Function"),Z=t?[]:(e=g.documentElement,c.getComputedStyle(e)),q=t?[]:g[h]("div").style,G=[],I={},P="",V=0,N=p("-webkit-,-moz-,-ms-,-o-");if(t&&(N={}),Z&&0<Z[j])G=Z;else{var U=/[A-Z]/g,B=function(n){return"-"+n[$]()};for(X in Z)G.push(X[v](U,B))}for(var W,X,_,D,J=0;J<2;++J)for(W=G[j];W--;)if(X=G[W][u]("-"),J<1&&""!=X[0])for(;1<=X[j];X.pop()){for(_=X[0],D=1;D<X[j];++D)_+=X[D][0][s]()+X[D].substring(1);_ in q&&(I[X.join("-")]=1)}else if(J<2&&""==X[0]&&(K="-"+X[1]+"-",N[K])){for(X=X.slice(2);1<=X[j];X.pop())delete I[X.join("-")];N[K]++}for(var K in N)N[K]>V&&(V=N[K],P=K);function Q(r,n,e,t){var o=RegExp(n+"("+r.join("|")+")"+e,"g");return function(n){return r[j]?n[v](o,t):n}}function Y(n){var r,e,t,o,i,u,f="",a=0;if(R(n)){for(i in u={},n)if(n[S](i)){if(r=n[i],i=w(i),"number"!=typeof r||x[i]||(r+="px"),r=un(r),!I[i])for(o in N)u[o+i]=r;u[i]=r}return u}for(n=n[v](C,"");t=b.exec(n);){var c=t[3];if("{"==c)f+=""+t[1]+c,++a;else if("}"==c){for(u={};e=z.exec(t[1]);){if(!I[e[1]])for(o in N)u[o+e[1]]=e[2];u[e[1]]=e[2]}for(i in u)f+=i+":"+u[i]+";";f+=""+c,a=0<a?a-1:0}}return fn(un(f))}function nn(i,n){return"/"!=(i=w(i))[0]&&(i=c.location.pathname[v](F,"")+"/"+i),i=i[v](F,""),n[v](o,function(n,r){if(r[k](f))return n;var e,t=i[u]("/"),o=r[u]("/");for(e=0;e<o[j];++e)".."==o[e]?t.pop():t.push(o[e]);return"url('"+t.join("/")+"')"})}function rn(t,o,i,u){return function(){if(4==t.readyState){var n=t.status,r="",e=t.getResponseHeader("Last-Modified");200<=n&&n<300?an[i[0]]=[e,r=t.responseText]:304==n&&(r=an[i[0]][1]),u.push([o,i,r])}u.c()}}function en(e,t,o,i){return function(){function n(){i.push(r),i.c()}var r=[t,o,""];e.naturalWidth?n():setTimeout(n,100)}}function tn(n,r){var e,t=n[r].slice(),o=r+1,i=t[j],u="";for(o=r+1;H(n[o]);++o)for(e=0;e<i;++e)t[e]=n[o](t[e]);for(e=0;e<i;++e)u+=sn(t[e]);return{r:u,i:o-1}}function on(n){return l(n)||null===n}var un=t?d:function(){var n,r="backgroundImage",e="-gradient",t="cursor",o="display",i="width",u=[],f=[],a={calc:[i,"1px + 5%"],element:[r,"#foo"],"cross-fade":[r,"url(a.png), url(b.png), 50%"],"image-set":[r,"url(a.png) 1x, url(b.png) 2x"]};function c(n,r){return q[r]="",q[r]=n,!!q[r]}for(n in a["repeating-linear"+e]=a["repeating-radial"+e]=a["radial"+e]=a["linear"+e]=[r,"red, teal"],a){var s=a[n],l=s[0],p=n+"("+s[1]+")";!c(p,l)&&c(P+p,l)&&u.push(n)}var d=Q(u,"(\\s|:|,)","\\s*\\(","$1"+P+"$2("),g={initial:"color",grab:t,grabbing:t,"zoom-in":t,"zoom-out":t,box:o,flexbox:o,"inline-flexbox":o,flex:o,"inline-flex":o,grid:o,"inline-grid":o,"max-content":i,"min-content":i,"fit-content":i,"fill-available":i,"contain-floats":i};for(n in g)!c(n,l=g[n])&&c(P+n,l)&&f.push(n);var h=Q(f,"(\\s|:)","(\\s|;|\\}|$)","$1"+P+"$2$3");return function(n){for(var r=u[j],o="linear-gradient";r--;)u[r]==o&&(n=n[v](/(\s|:|,)(repeating-)?linear-gradient\(\s*(-?\d*\.?\d*)deg/gi,function(n,r,e,t){return r+(e||"")+o+"("+(90-t)+"deg"}),r=0);return n=d(n),h(n)}}(),fn=t?d:function(){function n(n){return c.textContent=n+"{}",!!c.sheet.cssRules[j]}var r,e,t=[],o=[],i=":placeholder",u={":any-link":0,"::backdrop":0,":fullscreen":0,":full-screen":":fullscreen","::placeholder":0,":placeholder":i+"-shown","::input-placeholder":":"+i,":input-placeholder":i+"-shown",":read-only":0,":read-write":0,"::selection":0},f={keyframes:"name",viewport:0,document:'regexp(".")'},a={},c=O[m](g[h]("style"));for(r in u){var s=u[r]||r,l=r[v](/::?/,function(n){return n+P});!n(s)&&n(l)&&(t.push(s),a[s]=l)}for(r in f)!n("@"+(e=r+" "+(f[r]||"")))&&n("@"+P+e)&&o.push(r);var p=Q(t,"","\\b",function(n){return a[n]||n}),d=Q(o,"@","\\b","@"+P+"$1");return O.removeChild(c),function(n){return d(p(n))}}(),an={},cn=function(n,r){for(var e=0;e<n[j];e++)M(n[e])?cn(n[e],r):r.push(n[e])},sn=function(n){if(on(n))return"";var r,e,t,o,i,u,f,a,c,s,l,p,d,g,h=arguments,v="",m={};if(1<h[j]){for(v=[],e=0;e<h[j];++e)v.push(h[e]);return sn(v)}if(!M(n))return""+n;var x=n[j],b=n[0]+"";if(!x)return"";if(x&&(M(n[0])||on(n[0])||!b[k](L))){for(r="",e=0;e<x;e++)H(n[e+1])?(r+=(l=tn(n,e)).r,e=l.i):r+=sn(n[e]);return r}for(e=1;e<x;e++)if(!on(n[e]))if(t=n[e],M(t))H(n[e+1])?(v+=(l=tn(n,e)).r,e=l.i):v+=sn(t);else if(R(t))for(o in t){if(f=t[o],"style"==(u=w(o)[$]())&&!R(f)){for(f+="",a={};c=z.exec(f);)a[c[1]]=c[2];f=a}if(t[S](o)&&!on(f))if(R(f))for(i in m[S](o)&&R(m[o])||(m[o]={}),f)f[S](i)&&(m[o][i]=f[i]);else"class"==u&&m[S](o)?m[o]+=" "+f:m[o]=f}else on(t)||(v+=t);for(r="<"+b,m=function(n){var r,e,t,o={};for(r in n)t=n[r],1<(e=y(r))[j]&&(o[e.join("-")[$]()]=o[e.join("_")[$]()]=t),o[r]=t;return o}(m),p=(f=Object.keys)(m).sort(),e=0;e<p[j];++e){if(o=p[e],u="",g=1,R(m[o]))for(d=f(a=Y(m[o])).sort(),s=0;s<d[j];++s)u+=(i=d[s])+":"+a[i]+";";else if(M(m[o])){for(s=0;g&&s<m[o][j];++s)m[o][s]&&(r+=" "+o,g=0);g=0}else u+=m[o];g&&(r+=" "+o+'="'+sn.escape(u)+'"')}return A[w(b)[$]()]&&!v?r+=">":r+=">"+v+"</"+b+">",r};function ln(n){return pn[n]}sn.bool=function(n,r){var e={};return r&&(e[n]=n),e},sn.hash=function(){var n,r,e,t=arguments,o=0;for(e=0;e<t[j];++e)for(n=sn(t[e]),r=0;r<n[j];++r)o=(o<<5)-o+n.charCodeAt(r)|0;return o};var pn={"&":"&","<":"<",">":">",'"':""","'":"'"},dn=/[&<>"']/g;sn.escape=function(n){return n[v](dn,ln)},sn.SVG=function(n,r){var e,t=arguments,o=["svg",{width:n+"px",height:r+"px",viewBox:"0 0 "+n+" "+r,xmlns:"http://www.w3.org/2000/svg"}];for(e=2;e<t[j];e++)o.push(t[e]);return o};var gn="mlhvcsqtaz";function hn(){function n(e){return function(){o.d+=e;for(var n=arguments,r=0;r<n[j];++r)o.d+=n[r]+", "[1&r];return i}}var r,e,t,o={d:""},i=["path",o],u=arguments;for(r=0;r<u[j];r++){if(R(e=u[r]))for(t in e={},u[r])"d"==t?o.d+=u[r][t]+" ":e[t]=u[r][t];i.push(e)}for(t in gn)i[t]=n(t);return i}function vn(n){return function(){return hn()[n].apply(null,arguments)}}for(var mn in gn=p((gn+gn[s]())[u]("").join(",")))hn[mn]=vn(mn);function xn(n,r,e){return bn[n]?(H(e)&&e(),!1):(bn[n]=1,H(r)&&r(),!0)}sn.SVG.Path=hn;var bn={};function yn(n){for(var r=1;r;)r=n!=(n=n[v](Sn,"$1$2"));return n}function wn(){return c.location.hash}function jn(){if(!Cn){Cn=1;for(var r,e,n,t,o,i=yn(wn()),u="",f="addEventListener",a=function(n){for(r=En&&n.target;r;r=r.parentElement)if("A"==r.tagName[s]()&&(e=r.getAttribute("href"))&&(e=(""+e)[k]("#(.*)"))&&(e=Fn(e[1],1))==Fn(wn(),1)&&(e=An[e]))return void e()};n=kn.exec(i);)u+=n[1]+(zn[u]=n[3]);"onhashchange"in c?c[f]("hashchange",function(){Fn(wn())}):(t=wn(),setInterval(function(){(o=wn())!=t&&Fn(t=o)},100)),g[f]?g[f]("click",a,!1):g.attachEvent("onclick",a)}}xn.clear=function(n){return delete bn[n],xn},sn.once=xn;var $n=/(?:(^\/)|\/)[^\/]+[\/]*$/,Sn=/^#?\/?|(\/)(?:\.?\/)+|(?:(?!\.\.?)[^\/])+\/\.\.(?:\/|$)|([^\^])\/+$/,kn=/(?:(^|\/)(:?)([^\/]+))/g,An={},zn={},Cn=0,En=0,Tn=[],Fn=function(n,r){for(var e,t,o,i="",u=yn(n),f=n[j];o=kn.exec(u);)i+=o[1],t=o[3],o[2]&&(e=zn[i])&&(t=e),r||(zn[i]=t),i+=t;for(e=i;e&&0<f;e=e[v]($n,"$1"))An[e]&&(i=e,e=""),--f;if(!r&&H(t=An[i]))if(Tn.indexOf(i)<0)c=i,Tn[j]<1&&setTimeout(function(){Tn=[]},60),Tn.push(c),t();else{var a=n[v]("/:","/");a!=n&&Tn.indexOf(a)<0&&Fn(a)}var c;return i};if(!t){sn.autoFixCSS=Y,sn.load=function(){var n=[];return cn(arguments,n),function(n){var r,e,t,o,i,u,f=[],a=[],c={done:function(n){return a.d=H(n)?n:d,c}},s=p("png,bmp,gif,jpg,jpeg,svg,webp");for(a.c=function(){if(a[j]==a.n&&a.n){var n,r,e,t,o,i;for(a.n=0,a.sort(function(n,r){return n[0]-r[0]}),n=0;n<a[j];++n)o=(r=a[n])[1][1],i=r[1][2],!o&&(e=i[k](E))&&(o=e[1][$]()),"css"==o&&((t=g[h]("style")).type="text/css",t.innerText=Y(nn(i,r[2])[v](/[\r\n]/g,"")),O[m](t)),"js"==o&&((t=g[h]("script")).text="//# sourceURL="+i+"\n"+r[2],O[m](t).parentNode.removeChild(t));a.d()}},a.d=d,r=0;r<n[j];++r)(i=T.exec(n[r]))[0]=(l(i[1])?"":i[1])+":"+i[2],f.push(i);for(a.n=f[j],r=0;r<a.n;++r)"img"==(""+(e=f[r])[1])[$]()||(i=(""+e[2])[k](E))&&s[i[1][$]()]?((u=new Image).onload=u.onerror=en(u,r,e,a),u.src=e[2]):((o=new XMLHttpRequest).onreadystatechange=rn(o,r,e,a),t=-1<e[2].indexOf("?")?"&":"?",o.open("GET",e[2]+t+Math.random(),1),(t=an[e[0]])&&o.setRequestHeader("If-Modified-Since",t[0]),o.responseType="text",o.send());return a.n||setTimeout(a.d,10),c}(n)};var Ln=function(n,r){return jn(),l(n)?yn(wn()):r?(An[yn(n)]=r,sn):An[Fn(yn(n),1)]};Ln.path=function(n){return l(n)?yn(wn()):Fn(n,1)},Ln.go=function(n){return jn(),n=Fn(l(n)?wn():n),!!An[n]&&n},Ln.refreshable=function(n){return jn(),l(n)?!!En:(En=n,sn)},sn.route=Ln}if(!n){l(c.HTML)&&(c.HTML=sn);var On=sn;On.svg=On.SVG,On.svg.path=On.svg.Path,c.aris=On}return sn}); | ||
!function(n,r){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=r(n,1):r(n)}("undefined"!=typeof window?window:this,function(c,n){"use strict";function l(n){return"undefined"==typeof n}function p(n){for(var r={},e=(n=n[u](","))[j];e--;)r[n[e]]=1;return r}function d(n){return n}function y(n){for(var r,e=[];r=a.exec(n);)e.push(r[0]);return e}function r(r){return function(n){return n&&Object.prototype.toString.call(n)=="[object "+r+"]"}}function w(n){return String.prototype.trim?n.trim():n[v](i,"")}var e,g=c.document,u="split",j="length",$="toLowerCase",v="replace",h="createElement",s="toUpperCase",m="appendChild",S="hasOwnProperty",k="match",t=l(g),x=p("column-count,fill-opacity,font-weight,line-height,opacity,orphans,widows,z-index,zoom"),A=p("area,base,br,col,embed,hr,img,input,keygen,link,meta,param,source,track,wbr"),b=/((?:\\.|("|')(?:\\.|.)*?\2|[^{}])*)([{}])/g,z=/(?:^|\{|\s|;)([A-Za-z0-9\-]+)\s*\:\s*?((?:\\.|("|')(?:\\.|.)*?\3|[^;}])*)/g,o=/url\(\s*?["']?(.*?)["']?\s*?\)/g,f=/^\s*?(data\:|.{1,6}\:\/\/)/,C=/\/\*[\s\S]*?\*\//g,E=/\.([A-Za-z0-9]+)(?:[\?#]|$)/,T=/^(?:\s*?(js|css)\s*?\:)?\s*?(\S[\S\s]*)/i,i=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,a=/(?:(?:^|[A-Z])[a-z]+|[0-9]+|[A-Za-z]+)/g,F=/((^|\/)[^\/]*)$/,L=/^[\w]+$/,O=t?d:g.head,M=r("Array"),R=r("Object"),H=r("Function"),Z=t?[]:(e=g.documentElement,c.getComputedStyle(e)),q=t?[]:g[h]("div").style,G=[],I={},P="",V=0,N=p("-webkit-,-moz-,-ms-,-o-");if(t&&(N={}),Z&&0<Z[j])G=Z;else{var U=/[A-Z]/g,B=function(n){return"-"+n[$]()};for(X in Z)G.push(X[v](U,B))}for(var W,X,_,D,J=0;J<2;++J)for(W=G[j];W--;)if(X=G[W][u]("-"),J<1&&""!=X[0])for(;1<=X[j];X.pop()){for(_=X[0],D=1;D<X[j];++D)_+=X[D][0][s]()+X[D].substring(1);_ in q&&(I[X.join("-")]=1)}else if(J<2&&""==X[0]&&(K="-"+X[1]+"-",N[K])){for(X=X.slice(2);1<=X[j];X.pop())delete I[X.join("-")];N[K]++}for(var K in N)N[K]>V&&(V=N[K],P=K);function Q(r,n,e,t){var o=RegExp(n+"("+r.join("|")+")"+e,"g");return function(n){return r[j]?n[v](o,t):n}}function Y(n){var r,e,t,o,i,u,f="",a=0;if(R(n)){for(i in u={},n)if(n[S](i)){if(r=n[i],i=w(i),"number"!=typeof r||x[i]||(r+="px"),r=un(r),!I[i])for(o in N)u[o+i]=r;u[i]=r}return u}for(n=n[v](C,"");t=b.exec(n);){var c=t[3];if("{"==c)f+=""+t[1]+c,++a;else if("}"==c){for(u={};e=z.exec(t[1]);){if(!I[e[1]])for(o in N)u[o+e[1]]=e[2];u[e[1]]=e[2]}for(i in u)f+=i+":"+u[i]+";";f+=""+c,a=0<a?a-1:0}}return fn(un(f))}function nn(i,n){return"/"!=(i=w(i))[0]&&(i=c.location.pathname[v](F,"")+"/"+i),i=i[v](F,""),n[v](o,function(n,r){if(r[k](f))return n;var e,t=i[u]("/"),o=r[u]("/");for(e=0;e<o[j];++e)".."==o[e]?t.pop():t.push(o[e]);return"url('"+t.join("/")+"')"})}function rn(t,o,i,u){return function(){if(4==t.readyState){var n=t.status,r="",e=t.getResponseHeader("Last-Modified");200<=n&&n<300?an[i[0]]=[e,r=t.responseText]:304==n&&(r=an[i[0]][1]),u.push([o,i,r])}u.c()}}function en(e,t,o,i){return function(){function n(){i.push(r),i.c()}var r=[t,o,""];e.naturalWidth?n():setTimeout(n,100)}}function tn(n,r){var e,t=n[r].slice(),o=r+1,i=t[j],u="";for(o=r+1;H(n[o]);++o)for(e=0;e<i;++e)t[e]=n[o](t[e],e);for(e=0;e<i;++e)u+=sn(t[e]);return{r:u,i:o-1}}function on(n){return l(n)||null===n}var un=t?d:function(){var n,r="backgroundImage",e="-gradient",t="cursor",o="display",i="width",u=[],f=[],a={calc:[i,"1px + 5%"],element:[r,"#foo"],"cross-fade":[r,"url(a.png), url(b.png), 50%"],"image-set":[r,"url(a.png) 1x, url(b.png) 2x"]};function c(n,r){return q[r]="",q[r]=n,!!q[r]}for(n in a["repeating-linear"+e]=a["repeating-radial"+e]=a["radial"+e]=a["linear"+e]=[r,"red, teal"],a){var s=a[n],l=s[0],p=n+"("+s[1]+")";!c(p,l)&&c(P+p,l)&&u.push(n)}var d=Q(u,"(\\s|:|,)","\\s*\\(","$1"+P+"$2("),g={initial:"color",grab:t,grabbing:t,"zoom-in":t,"zoom-out":t,box:o,flexbox:o,"inline-flexbox":o,flex:o,"inline-flex":o,grid:o,"inline-grid":o,"max-content":i,"min-content":i,"fit-content":i,"fill-available":i,"contain-floats":i};for(n in g)!c(n,l=g[n])&&c(P+n,l)&&f.push(n);var h=Q(f,"(\\s|:)","(\\s|;|\\}|$)","$1"+P+"$2$3");return function(n){for(var r=u[j],o="linear-gradient";r--;)u[r]==o&&(n=n[v](/(\s|:|,)(repeating-)?linear-gradient\(\s*(-?\d*\.?\d*)deg/gi,function(n,r,e,t){return r+(e||"")+o+"("+(90-t)+"deg"}),r=0);return n=d(n),h(n)}}(),fn=t?d:function(){function n(n){return c.textContent=n+"{}",!!c.sheet.cssRules[j]}var r,e,t=[],o=[],i=":placeholder",u={":any-link":0,"::backdrop":0,":fullscreen":0,":full-screen":":fullscreen","::placeholder":0,":placeholder":i+"-shown","::input-placeholder":":"+i,":input-placeholder":i+"-shown",":read-only":0,":read-write":0,"::selection":0},f={keyframes:"name",viewport:0,document:'regexp(".")'},a={},c=O[m](g[h]("style"));for(r in u){var s=u[r]||r,l=r[v](/::?/,function(n){return n+P});!n(s)&&n(l)&&(t.push(s),a[s]=l)}for(r in f)!n("@"+(e=r+" "+(f[r]||"")))&&n("@"+P+e)&&o.push(r);var p=Q(t,"","\\b",function(n){return a[n]||n}),d=Q(o,"@","\\b","@"+P+"$1");return O.removeChild(c),function(n){return d(p(n))}}(),an={},cn=function(n,r){for(var e=0;e<n[j];e++)M(n[e])?cn(n[e],r):r.push(n[e])},sn=function(n){if(on(n))return"";var r,e,t,o,i,u,f,a,c,s,l,p,d,g,h=arguments,v="",m={};if(1<h[j]){for(v=[],e=0;e<h[j];++e)v.push(h[e]);return sn(v)}if(!M(n))return""+n;var x=n[j],b=n[0]+"";if(!x)return"";if(x&&(M(n[0])||on(n[0])||!b[k](L))){for(r="",e=0;e<x;e++)H(n[e+1])?(r+=(l=tn(n,e)).r,e=l.i):r+=sn(n[e]);return r}for(e=1;e<x;e++)if(!on(n[e]))if(t=n[e],M(t))H(n[e+1])?(v+=(l=tn(n,e)).r,e=l.i):v+=sn(t);else if(R(t))for(o in t){if(f=t[o],"style"==(u=w(o)[$]())&&!R(f)){for(f+="",a={};c=z.exec(f);)a[c[1]]=c[2];f=a}if(t[S](o)&&!on(f))if(R(f))for(i in m[S](o)&&R(m[o])||(m[o]={}),f)f[S](i)&&(m[o][i]=f[i]);else"class"==u&&m[S](o)?m[o]+=" "+f:m[o]=f}else on(t)||(v+=t);for(r="<"+b,m=function(n){var r,e,t,o={};for(r in n)t=n[r],1<(e=y(r))[j]&&(o[e.join("-")[$]()]=o[e.join("_")[$]()]=t),o[r]=t;return o}(m),p=(f=Object.keys)(m).sort(),e=0;e<p[j];++e){if(o=p[e],u="",g=1,R(m[o]))for(d=f(a=Y(m[o])).sort(),s=0;s<d[j];++s)u+=(i=d[s])+":"+a[i]+";";else if(M(m[o])){for(s=0;g&&s<m[o][j];++s)m[o][s]&&(r+=" "+o,g=0);g=0}else u+=m[o];g&&(r+=" "+o+'="'+sn.escape(u)+'"')}return A[w(b)[$]()]&&!v?r+=">":r+=">"+v+"</"+b+">",r};function ln(n){return pn[n]}sn.bool=function(n,r){var e={};return r&&(e[n]=n),e},sn.hash=function(){var n,r,e,t=arguments,o=0;for(e=0;e<t[j];++e)for(n=sn(t[e]),r=0;r<n[j];++r)o=(o<<5)-o+n.charCodeAt(r)|0;return o};var pn={"&":"&","<":"<",">":">",'"':""","'":"'"},dn=/[&<>"']/g;sn.escape=function(n){return n[v](dn,ln)},sn.SVG=function(n,r){var e,t=arguments,o=["svg",{width:n+"px",height:r+"px",viewBox:"0 0 "+n+" "+r,xmlns:"http://www.w3.org/2000/svg"}];for(e=2;e<t[j];e++)o.push(t[e]);return o};var gn="mlhvcsqtaz";function hn(){function n(e){return function(){o.d+=e;for(var n=arguments,r=0;r<n[j];++r)o.d+=n[r]+", "[1&r];return i}}var r,e,t,o={d:""},i=["path",o],u=arguments;for(r=0;r<u[j];r++){if(R(e=u[r]))for(t in e={},u[r])"d"==t?o.d+=u[r][t]+" ":e[t]=u[r][t];i.push(e)}for(t in gn)i[t]=n(t);return i}function vn(n){return function(){return hn()[n].apply(null,arguments)}}for(var mn in gn=p((gn+gn[s]())[u]("").join(",")))hn[mn]=vn(mn);function xn(n,r,e){return bn[n]?(H(e)&&e(),!1):(bn[n]=1,H(r)&&r(),!0)}sn.SVG.Path=hn;var bn={};function yn(n){for(var r=1;r;)r=n!=(n=n[v](Sn,"$1$2"));return n}function wn(){return c.location.hash}function jn(){if(!Cn){Cn=1;for(var r,e,n,t,o,i=yn(wn()),u="",f="addEventListener",a=function(n){for(r=En&&n.target;r;r=r.parentElement)if("A"==r.tagName[s]()&&(e=r.getAttribute("href"))&&(e=(""+e)[k]("#(.*)"))&&(e=Fn(e[1],1))==Fn(wn(),1)&&(e=An[e]))return void e()};n=kn.exec(i);)u+=n[1]+(zn[u]=n[3]);"onhashchange"in c?c[f]("hashchange",function(){Fn(wn())}):(t=wn(),setInterval(function(){(o=wn())!=t&&Fn(t=o)},100)),g[f]?g[f]("click",a,!1):g.attachEvent("onclick",a)}}xn.clear=function(n){return delete bn[n],xn},sn.once=xn;var $n=/(?:(^\/)|\/)[^\/]+[\/]*$/,Sn=/^#?\/?|(\/)(?:\.?\/)+|(?:(?!\.\.?)[^\/])+\/\.\.(?:\/|$)|([^\^])\/+$/,kn=/(?:(^|\/)(:?)([^\/]+))/g,An={},zn={},Cn=0,En=0,Tn=[],Fn=function(n,r){for(var e,t,o,i="",u=yn(n),f=n[j];o=kn.exec(u);)i+=o[1],t=o[3],o[2]&&(e=zn[i])&&(t=e),r||(zn[i]=t),i+=t;for(e=i;e&&0<f;e=e[v]($n,"$1"))An[e]&&(i=e,e=""),--f;if(!r&&H(t=An[i]))if(Tn.indexOf(i)<0)c=i,Tn[j]<1&&setTimeout(function(){Tn=[]},60),Tn.push(c),t();else{var a=n[v]("/:","/");a!=n&&Tn.indexOf(a)<0&&Fn(a)}var c;return i};if(!t){sn.autoFixCSS=Y,sn.load=function(){var n=[];return cn(arguments,n),function(n){var r,e,t,o,i,u,f=[],a=[],c={done:function(n){return a.d=H(n)?n:d,c}},s=p("png,bmp,gif,jpg,jpeg,svg,webp");for(a.c=function(){if(a[j]==a.n&&a.n){var n,r,e,t,o,i;for(a.n=0,a.sort(function(n,r){return n[0]-r[0]}),n=0;n<a[j];++n)o=(r=a[n])[1][1],i=r[1][2],!o&&(e=i[k](E))&&(o=e[1][$]()),"css"==o&&((t=g[h]("style")).type="text/css",t.innerText=Y(nn(i,r[2])[v](/[\r\n]/g,"")),O[m](t)),"js"==o&&((t=g[h]("script")).text="//# sourceURL="+i+"\n"+r[2],O[m](t).parentNode.removeChild(t));a.d()}},a.d=d,r=0;r<n[j];++r)(i=T.exec(n[r]))[0]=(l(i[1])?"":i[1])+":"+i[2],f.push(i);for(a.n=f[j],r=0;r<a.n;++r)"img"==(""+(e=f[r])[1])[$]()||(i=(""+e[2])[k](E))&&s[i[1][$]()]?((u=new Image).onload=u.onerror=en(u,r,e,a),u.src=e[2]):((o=new XMLHttpRequest).onreadystatechange=rn(o,r,e,a),t=-1<e[2].indexOf("?")?"&":"?",o.open("GET",e[2]+t+Math.random(),1),(t=an[e[0]])&&o.setRequestHeader("If-Modified-Since",t[0]),o.responseType="text",o.send());return a.n||setTimeout(a.d,10),c}(n)};var Ln=function(n,r){return jn(),l(n)?yn(wn()):r?(An[yn(n)]=r,sn):An[Fn(yn(n),1)]};Ln.path=function(n){return l(n)?yn(wn()):Fn(n,1)},Ln.go=function(n){return jn(),n=Fn(l(n)?wn():n),!!An[n]&&n},Ln.refreshable=function(n){return jn(),l(n)?!!En:(En=n,sn)},sn.route=Ln}if(!n){l(c.HTML)&&(c.HTML=sn);var On=sn;On.svg=On.SVG,On.svg.path=On.svg.Path,c.aris=On}return sn}); |
{ | ||
"name": "aris", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "Write HTML in JS easily.", | ||
@@ -22,3 +22,3 @@ "main": "aris.js", | ||
], | ||
"author": "Benjamin Kang Yue Sheng", | ||
"author": "Vectorized", | ||
"license": "MIT", | ||
@@ -25,0 +25,0 @@ "bugs": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72027