Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* Little update of document.getItems function

* ES5-DOM-SHIM update
  • Loading branch information...
commit 490a7e28c229ad6b0ba11fc73d6f66524ed3b51e 1 parent 1cb011a
@termi authored
Showing with 63 additions and 59 deletions.
  1. +8 −5 __SRC/microdata-js.js
  2. +44 −43 libs/a.js
  3. +11 −11 microdata-js.js
View
13 __SRC/microdata-js.js
@@ -565,8 +565,7 @@ function fixPrototypes(global) {
* @this {Document|DocumentFragment}
*/
document["getItems"] = function(itemTypes) {
- itemTypes = (itemTypes || "").trim();//default value
-
+
/*
var selector=itemTypes.split(" ").map(function(t){
return '[itemtype~="'+t.replace(/"/g, '\\"')+'"]'
@@ -599,18 +598,22 @@ function fixPrototypes(global) {
(accept = !~_itemTypes.indexOf(_curType)) &&
matches.push(node);
}*/
+
+
+ var isitemTypes = !!itemTypes;
+ itemTypes = (itemTypes || "").trim().split(/\s+/);
+
var items =
//Не работает в ie6!!! (browser.msie && browser.msie < 8) ? $$(".__ielt8_css_class_itemscope__", this) ://Only for IE < 8 for increase performance //requared microdata-js.ielt8.htc
$$("[itemscope]", this),
- matches = [],
- _itemTypes = (itemTypes || "").trim().split(/\s+/);
+ matches = [];
for(var i = 0, l = items.length ; i < l ; ++i) {
var node = items[i],
type = node.getAttribute('itemtype');
- if((!itemTypes || ~_itemTypes.indexOf(type)) &&
+ if((!isitemTypes || ~itemTypes.indexOf(type)) &&
!node.getAttribute("itemprop") && //Item can't contain itemprop attribute
(!("itemScope" in node) || node["itemScope"])) {//writing to the itemScope property must affect whether the element is returned by getItems
matches.push(node);
View
87 libs/a.js
@@ -1,44 +1,45 @@
-(function(d){
+(function(e){
"use strict";
-function l(d){throw d;}var m=void 0,n=!0,o=null,q=!1;
-function C(a,b){for(var c=0,h=a.length;c<h;c++){var g=a[c],d=b(g);if(d)return d;if(g.childNodes&&0<g.childNodes.length&&(d=C(g.childNodes,b)))return d}}function D(a){try{return Object.defineProperty(a,"sentinel",{}),"sentinel"in a}catch(b){}}function x(a,b,c){var b=!b?[E]:Array.isArray(b)?b:[b],h=[],g,d=-1;if(document.querySelector){var f,j=q,r;e.R&&(a=a.replace(/=([^\]]+)/,'="$1"'));","==a.charAt(0)&&(a=a.substr(1));for(f=/[>\+\~]/.test(a.charAt(0));g=b[++d];){if(f)if(g==document)j=
-n;else{if(!g.id)g.id=x.G+x.J++;r="#"+g.id+a;g=g.parentNode}else r=a;j||(c?h.push(g.querySelector(r)):h=h.concat(y(g.querySelectorAll(r))))}return h}l(Error("querySelector not supported"))}var E=document;if(!Function.prototype.bind)Function.prototype.bind=function(a,b){var c=this,h=Array.prototype.slice.call(arguments,1);return function(){return c.apply(a,h.concat(Array.prototype.slice.call(arguments,0)))}};var z=Function.prototype.call.bind(Object.prototype.hasOwnProperty),e=d.browser={p:navigator.userAgent.toLowerCase()};
-e.m=e.p.match(/(mozilla|compatible|webkit|safari|opera|msie|iphone|ipod|ipad)/gi);for(var f=e.m.length;0<f--;)e[e.m[f]]=n;e.q=e.mozilla;e.t=e.webkit;e.F=e.safari;e.opera=e.opera;e.a=e.msie;e.N=e.iphone;e.O=e.ipod;e.M=e.ipad;e.A=m;if(e.compatible||e.t)e.q=q,delete e.mozilla;else if(e.opera)e.a=q,delete e.msie;if(e.a)for(f=6;11>f;f++)if(RegExp("msie "+f).test(e.p)){e.a=f;e.A=e.a;break}e.msie=e.a;e.g=document.createElement("div");e.P="undefined"!=typeof document.createElement("INPUT").placeholder;e.cssPrefix=
-e.q?"Moz":e.t||e.F?"Webkit":e.opera?"O":e.a?"ms":"";if(!document.readyState)e.n=n;if(e.n)document.readyState="uninitialized";document.head||(document.head=document.getElementsByTagName("head")[0]);d.Utils||(d.Utils={});d.Utils.Dom||(d.Utils.Dom={});var A=d.Utils.Dom.DOMException=function(a){this.code=this[a];this.message=a+": DOM Exception "+this.code},f=A.prototype=Error();f.INDEX_SIZE_ERR=1;f.DOMSTRING_SIZE_ERR=2;f.HIERARCHY_REQUEST_ERR=3;f.WRONG_DOCUMENT_ERR=4;f.INVALID_CHARACTER_ERR=5;f.NO_DATA_ALLOWED_ERR=
-6;f.NO_MODIFICATION_ALLOWED_ERR=7;f.NOT_FOUND_ERR=8;f.NOT_SUPPORTED_ERR=9;f.INUSE_ATTRIBUTE_ERR=10;f.INVALID_STATE_ERR=11;f.SYNTAX_ERR=12;f.INVALID_MODIFICATION_ERR=13;f.NAMESPACE_ERR=14;f.INVALID_ACCESS_ERR=15;f.VALIDATION_ERR=16;f.TYPE_MISMATCH_ERR=17;var f=d.Utils.Dom.DOMStringCollection=function(a,b){this.e=b;this.length=0;this.b=[];this.value="";this.update(a)},i={j:function(a){""===a&&l(new A("SYNTAX_ERR"));-1<(a+"").indexOf(" ")&&l(new A("INVALID_CHARACTER_ERR"))},add:function(a){this.j(a);
-var b=this.value;if(-1===this.b.indexOf(a))this.value+=(b&&!RegExp("\\s+$","g").test(b)?" ":"")+a,this.b.push(a),this[(this.length=this.b.length)-1]=a,this.e&&this.e.call(this)},remove:function(a){this.j(a);for(var b;-1!==(b=this.b.indexOf(a));)delete this.b[b],this.b.splice(b,1);b=0;for(var c=this.b.length;b<c;++b)this[b]=this.b[b];for(;b<this.length;++b)delete this[b];this.length=this.b.length;this.value=this.value.replace(RegExp("((?: +)?"+a+"(?: +)?)","g"),function(a,b,c,d){return c&&a.length+
-c<d.length?" ":""});this.e&&this.e.call(this)},contains:function(a){this.j(a);return-1!=this.b.indexOf(a)},item:function(a){return this[a]||o},toggle:function(a){this.j(a);var b=-1==this.b.indexOf(a);this[b?"add":"remove"](a);return b},update:function(a){var a=a||"",b=!!this.length;if(b){for(var c=0;c<this.length;++c)delete thisObj[c];this.length=0;this.b=[];thisObj.value=""}a&&(a=a.trim())&&a.split(RegExp("\\s+","g")).forEach(this.add.bind(this));b&&this.e&&this.e.call(this);return this}},k;for(k in i)f.prototype[k]=
-i[k];f.prototype.toString=function(){return this.value||""};if(!Object.getOwnPropertyNames)Object.getOwnPropertyNames=function(a){var b=[],c;for(c in a)b.push(c);return b};Object.keys=Object.keys||function(){var a="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),b=!{toString:o}.propertyIsEnumerable(a[0]),c=a.length;return function(h){("object"!=typeof h&&"function"!=typeof h||h===o)&&l(new TypeError("Object.keys called on a non-object"));var g=
-[],d;for(d in h)z(h,d)&&g.push(d);if(b)for(d=0;d<c;d++)z(h,a[d])&&g.push(a[d]);return g}}();if(!Object.seal)Object.seal=function(a){return a};if(!Object.freeze)Object.freeze=function(a){return a};if(!Object.getPrototypeOf)Object.getPrototypeOf=function(a){return a.__proto__||(a.constructor?a.constructor.prototype:Object.prototype)};if(!Object.create)Object.create=function(a,b){var c;a===o?c={__proto__:o}:("object"!=typeof a&&l(new TypeError("typeof prototype["+typeof a+"] != 'object'")),c=function(){},
-c.prototype=a,c=new c,c.__proto__=a);b&&Object.defineProperties(c,b);return c};if(Object.defineProperty&&(k=D({}),f="undefined"==typeof document||D(document.createElement("div")),!k||!f))var B=Object.defineProperty;if(!Object.defineProperty||B)Object.defineProperty=function(a,b,c){("object"!=typeof a&&"function"!=typeof a||a===o)&&l(new TypeError("Object.defineProperty called on non-object: "+a));("object"!=typeof c&&"function"!=typeof c||c===o)&&l(new TypeError("Property description must be an object: "+
-c));if(B)try{return B.call(Object,a,b,c)}catch(h){}if(c.value!==m)if(a.__defineGetter__&&(a.__lookupGetter__(b)||a.__lookupGetter__(b))){var g=a.__proto__;a.__proto__=prototypeOfObject;delete a[b];a[b]=c.value;a.__proto__=g}else a[b]=c.value;else a.__defineGetter__?(c.get!==m&&a.__defineGetter__(b,c.get),c.set!==m&&a.__defineSetter__(b,c.set)):c.ielt8?(a["get"+b]=c.get,a["set"+b]=c.set):l(new TypeError("getters & setters not supported"));return a};if(!Object.defineProperties)Object.defineProperties=
-function(a,b){for(var c in b)z(b,c)&&Object.defineProperty(a,c,b[c]);return a};if(!Array.prototype.reduce)Array.prototype.reduce=function(a,b){"function"!==typeof a&&l(new TypeError("First argument is not callable"));var c=this.length,h=0;(0===c||c===o)&&1>=arguments.length&&l(new TypeError("Array length is 0 and no second argument"));for(b||(b=(h++,this[0]));h<c;++h)h in this&&(b=a.call(m,b,this[h],h,this));return b};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=function(a,b){"function"!==
-typeof a&&l(new TypeError("First argument is not callable"));var c=this.length>>>0,h=c-1;(0===c||c===o)&&1>=arguments.length&&l(new TypeError("Array length is 0 and no second argument"));if(!b){do{if(h in this){b=this[h--];break}0>--h&&l(new TypeError)}while(1)}for(;0<=h;--h)h in this&&(b=a.call(m,b,this[h],h,t));return b};if(!Array.prototype.filter)Array.prototype.filter=function(a,b){var c=this.length>>>0;"function"!=typeof a&&l(new TypeError);for(var h=[],g=0;g<c;g++)if(g in this){var d=this[g];
-a.call(b,d,g,this)&&h.push(d)}return h};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,b){for(var c in this)this.hasOwnProperty(c)&&a.call(b,this[c],parseInt(c,10),this)};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a,b){for(var c=b||0,h=this.length;c<h;c++)if(this[c]===a)return c;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a,b){return this.slice(0).reverse().indexOf(a,b)};if(!Array.prototype.every)Array.prototype.every=function(a,
-b,c){c===m&&(c=n);var h=c;this.forEach(function(g,d){h==c&&(h=!!a.call(b,g,d,this))});return h};if(!Array.prototype.some)Array.prototype.some=function(a,b){return Array.prototype.every(a,b,q)};if(!Array.prototype.map)Array.prototype.map=function(a,b){var c,h,g;this==o&&l(new TypeError(" this is null or not defined"));var d=Object(this),e=d.length>>>0;"[object Function]"!={}.toString.call(a)&&l(new TypeError(a+" is not a function"));b&&(c=b);h=Array(e);for(g=0;g<e;){var f;g in d&&(f=d[g],f=a.call(c,
-f,g,d),h[g]=f);g++}return h};Array.isArray=Array.isArray||function(a){return!(!a||!a.concat||!a.unshift||a.callee)};if(e.a&&9>e.a)String.prototype.u=String.prototype.substr,String.prototype.substr=function(a,b){return this.u(0>a?0>(a=this.length+a,a)?0:a:a,b)};if(!String.prototype.trim)String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};k=d.HTMLElement&&d.HTMLElement.prototype||d.Element&&d.Element.prototype||(d._ielt8_Element_proto={});"classList"in e.g||Object.defineProperty(k,
-"classList",{get:function(){var a=this,b=e.a&&8>e.a&&(a.i||(a.i={}))||a;b.__ccl_00lh__||(b.__ccl_00lh__=new d.Utils.Dom.DOMStringCollection(a.getAttribute("class"),function(){a.setAttribute("class",this.value);if(a.className!=this.value)a.className=this.value}));return b.__ccl_00lh__},ielt8:n});(!("children"in e.g)||e.a&&9>e.a)&&Object.defineProperty(k,"children",{get:function(){for(var a=[],b=this.firstChild;b;)1==b.nodeType&&a.push(b),b=b.nextSibling;return a},ielt8:n});"undefined"!=typeof e.g.childElementCount&&
-Object.defineProperties(k,{firstElementChild:{get:function(){var a;for(a=this.firstChild;a&&1!=a.nodeType;)a=a.nextSibling;return a},ielt8:n},lastElementChild:{get:function(){var a;for(a=this.lastChild;a&&1!=a.nodeType;)a=a.previousSibling;return a},ielt8:n},nextElementSibling:{get:function(){for(var a=this;(a=a.nextSibling)&&!(1==a.nodeType););return a},ielt8:n},previousElementSibling:{get:function(){for(var a=this;(a=a.previousSibling)&&!(1==a.nodeType););return a},ielt8:n},childElementCount:{get:function(){if(this.children)return this.children.length},
-ielt8:n}});"getElementsByClassName"in e.g||(k.getElementsByClassName=function(a){var b=[];a&&C(this.childNodes,function(c){1==c.nodeType&&c.classList.contains(a)&&b.push(c)});return b});"insertAfter"in e.g||(k.insertAfter=function(a,b){return this.insertBefore(a,b.nextSibling)});if(!("compareDocumentPosition"in document))f=d.Node&&d.Node.prototype||k,document.compareDocumentPosition=f.compareDocumentPosition=function(a){return this.contains?(this!=a&&this.contains(a)&&16)+(this!=a&&a.contains(this)&&
-8)+(0<=this.sourceIndex&&0<=a.sourceIndex?(this.sourceIndex<a.sourceIndex&&4)+(this.sourceIndex>a.sourceIndex&&2):1)+0:0},i="DOCUMENT_POSITION_DISCONNECTED",document[i]=f[i]=1,i="DOCUMENT_POSITION_PRECEDING",document[i]=f[i]=2,i="DOCUMENT_POSITION_FOLLOWING",document[i]=f[i]=4,i="DOCUMENT_POSITION_CONTAINS",document[i]=f[i]=8,i="DOCUMENT_POSITION_CONTAINED_BY",document[i]=f[i]=16;if((!d.HTMLTimeElement||!d.HTMLTimeElement.prototype)&&(!e.a||7<e.a))Object.defineProperty((d.HTMLUnknownElement||d.HTMLElement).prototype,
-"dateTime",{get:function(){return"TIME"==this.tagName.toUpperCase()?this.getAttribute("datetime")||"":m},set:function(a){return"TIME"==this.tagName.toUpperCase()?(this.setAttribute("datetime",a),a):o}});(function(){var a=document.createElement("div");try{document.importNode(a)}catch(b){if(-2147418113===b.B||2153185281===b.result||6===b.code){var c=document.importNode;document.importNode=function(a,b){b===m&&(b=n);return c.call(this,a,b)}}}})();Object.append=function(a){for(var b=1;b<arguments.length;b++){var c=
-arguments[b],d;for(d in c)if(!c.hasOwnProperty||c.hasOwnProperty(d))a[d]=c[d]}return a};d.extend=function(a,b){(a.prototype=Object.create(a.H=b.prototype)).constructor=a};d.inherit=function(a,b){(a.prototype=Object.create(a.H=b.prototype)).constructor=a};d.append=function(a,b){for(var c in b)a.prototype[c]=b[c]};if(!d.XMLHttpRequest)d.XMLHttpRequest=ActiveXObject.bind(d,"Microsoft.XMLHTTP");var p=d.SendRequest=function(a,b,c,h,g){g=g||{};if(!p.h||p.r)p.h=o,p.r=q,p.h=new d.XMLHttpRequest,d.k=q;if(!p.l)d.l=
-[];setTimeout(function(){p.r=n},3E5);var e=g.s?"POST":"GET",f=g.T||d.k;if(!d.k&&p.h||f){var j=f?p.l[p.d]=new d.XMLHttpRequest:p.h,r=f?p.d++:o;!g.s&&0<b.length&&(a+="?"+b);j.open(e,a,n);j.onreadystatechange=function(){4==j.readyState?(200==j.status?c&&c(j):h&&h(j),f?delete p.l[r]:d.k=q):g.D&&g.D()};if(!f)d.k=n;try{g.s?(j.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8"),j.send(b)):j.send(o)}catch(i){}}if(!p.h)return q};p.d=0;(function(){function a(){this.cancelBubble=
-n}function b(){this.returnValue=q}function c(c){var d=this.i,h=[],e=[];if(d){d=d[g][c.type];if(!(c=c||window.event).z){c.z=n;c.preventDefault||(c.preventDefault=b);c.stopPropagation||(c.stopPropagation=a);c.target||(c.target=c.srcElement||document);if(c.relatedTarget===m&&c.fromElement)c.relatedTarget=c.fromElement==c.target?c.toElement:c.fromElement;if(c.pageX==o&&c.clientX!=o){var f=document.documentElement,w=document.body;c.pageX=c.clientX+(window.pageXOffset||f.scrollLeft||w.scrollLeft||0)-(f.clientLeft||
-0);c.pageY=c.clientY+(window.pageYOffset||f.scrollTop||w.scrollTop||0)-(f.clientTop||0)}c.which||c.button&&(c.which=c.button&1?1:c.button&2?3:c.button&4?2:0);if(!c.attrName&&c.propertyName)c.attrName=c.propertyName.split(".")[0]}for(var j in d)if(d.hasOwnProperty(j)){f=d[j];try{if((c.result=f.call(this,c))===q)c.preventDefault(),c.stopPropagation()}catch(i){h.push(i),e.push(i.message)}if(c.S)break}1==h.length&&l(h[0]);if(1<h.length)e=Error("Multiple errors thrown : "+c.type+" : : "+e.join("|")),
-e.L=h,l(e)}}var h=0,g="_e_8vj";if(!document.addEventListener)d.addEventListener=document.addEventListener=function(a,b){if("function"==typeof b){if("DOMContentLoaded"==a)document.write('<script id="__ie_onload" defer="defer" src="javascript:void(0)"><\/script>'),document.getElementById("__ie_onload").onreadystatechange=function(){"complete"==this.readyState&&c.call(this,{type:a})};var e=this,f=e.i;if(!f)f=e.i={};e.setInterval&&e!=d&&!e.frameElement&&(e=d);if(!b.d)b.d=++h;if(!f[g])f[g]={},f._h_9e2=
-function(a){if(a!==m)return c.call(e,a)};f[g][a]||(f[g][a]={},e.attachEvent("on"+a,f._h_9e2));f[g][a][b.d]=b}};if(!document.removeEventListener)d.removeEventListener=document.removeEventListener=function(a,b){var c=this.i;if(!("function"!=typeof b||!b.d||!c)){var d=c[g]&&c[g][a];delete d[b.d];for(var h in d)if(d.hasOwnProperty(h))return;this.detachEvent("on"+a,c._h_9e2);delete c[g][a];for(h in c[g])if(c[g].hasOwnProperty(h))return;delete c._h_9e2;delete c[g]}};if(!document.dispatchEvent)d.dispatchEvent=
-document.dispatchEvent=function(a){try{this.fireEvent("on"+a.type,a)}catch(b){-2147024809===b.B?(a.K=n,c.call(this,a)):l(b)}};if(!document.createEvent){var e=function(a,b,c){(a==m||b==m||c==m)&&l(Error("WRONG_ARGUMENTS_ERR"));this.type=a;this.cancelBubble=!(this.bubbles=b);this.cancelable=c;this.Q=q;this.target=o},f=function(a,b,c,d){e.call(this,a,b,c);this.detail=d},j=function(a,b,c,d,g){f.call(this,a,b,g);this.view=d},r=function(a,b,c,d,g,h,e,f,w,i,r,k,F,p,G){j.call(this,a,b,0,c);this.screenX=h;
-this.screenY=e;this.clientX=f;this.clientY=w;this.ctrlKey=i;this.altKey=r;this.shiftKey=k;this.metaKey=F;this.button=p;this.relatedTarget=G},i=function(a,b,c,d,g,h,f,j){e.call(this,a,b,c);this.relatedNode=d;this.prevValue=g;this.newValue=h;this.attrName=f;this.attrChange=j};document.createEvent=function(){var a;a=document.createEventObject();a.returnValue=n;a.initEvent=e;a.initCustomEvent=f;a.initUIEvent=j;a.initMouseEvent=r;a.initMutationEvent=i;return a}}})();f=d.Events=function(){return{X:{},W:[],
-add:function(a,b,c){a.addEventListener(b,c,q)},remove:function(a,b,c){a.addEventListener(b,c,q)}}}();(function(){function a(a,b){var c=document.createEvent("Events"),b=b||{};b.bubbles=b.bubbles||q;b.f=b.f||q;c.initEvent(a,b.bubbles,b.f);return c}var b;try{b=Event.prototype,new Event("click")}catch(c){if(d.Event=a,b)a.prototype=b}})();(function(){function a(a,b){var c=document.createEvent("CustomEvent"),b=b||{};b.detail=b.detail||o;b.bubbles=b.bubbles||q;b.f=b.f||q;c.initCustomEvent?c.initCustomEvent(a,
-b.bubbles,b.f,b.detail):(c.initEvent(a,b.bubbles,b.f),c.detail=b.detail);return c}var b;try{b=(d.CustomEvent||Event).prototype,new CustomEvent("magic")}catch(c){if(d.CustomEvent=a,b)a.prototype=b}})();d.forEach=function(a,b,c){for(var d in a)if(z(a,d)&&b.call(c,a[d],d,a)===q)break;return a};d.repeatString=function(a,b){return Array(++b).join(a)};var i=d.randomString=function(a){return Math.round(Math.random()*parseInt(Array(++a).join("z"),36)).toString(36)},y=d.$A=function(a,b,c,d){if(!a||0===b+c)return[];
-if(b==c==m&&Array.isArray(a))return a;var b=b||0,g=typeof a,f,i=n,j=[b];c&&j.push(c);"number"==g&&(a+="");if(9>e.a&&("number"==g||"string"==g))i=q;if("number"==typeof a.length){d=a.length;g=0>b&&0>(b=d+b,b)?0:b;b=c==o?d:0>c&&0>(c=d+c,c)?0:c;d=b-g;if(i)try{if(f=Array.prototype.slice.apply(a,j),f.length===d)return f}catch(r){}for(f=[];g<b;++g)f.push(a.charAt?a.charAt(g):a[g]);return f}f=[];if("object"==g){for(var k in a)(d||!a.hasOwnProperty||a.hasOwnProperty(k))&&f.push(a[k]);return!b&&!c&&f||f.slice.apply(f,
-j)}return f};d.$K=function(a,b){var c=typeof a,d;if("object"==c){e.a&&a.length&&!(a instanceof Array)&&(a=y(a));if(b){var c=[],f;for(f in a)c.push(f);return c}return Object.keys(a)}"number"==c||"string"==c?d=(a+"").length:"number"==typeof a.length?d=a.length:l(new TypeError("$K:non-iterable"));c=[];if(d!=m)for(f=0;f<d;++f)c.push(f);return c};if(!d.JSON)d.JSON={parse:function(a){return a&&!/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(a.replace(/"(\\.|[^"\\])*"/g,""))&&eval("("+a+")")||o}};d.bubbleEventListener=
-function(a,b,c,d){var e=Array.isArray(a)?a[0]:a;return function(f){var i=f.target||(f.target=f.srcElement),j,r;do if((j=i.getAttribute(e)||d&2&&i[e])!=o){var k=[f,i,j];if(Array.isArray(a)&&1<a.length)for(var p=1,s=a.length;p<s;++p)k.push(i.getAttribute(a[p]));"function"==typeof b?r=b.apply(c||this,k):(j=b[j])&&(r=j.apply(c||this,k));if(!(d&1))break}while(i!=this&&(i=i.parentNode));return r}};if(!d.addEventListener&&document.addEventListener)d.addEventListener=document.addEventListener.bind(document),
-d.removeEventListener=document.removeEventListener.bind(document),d.dispatchEvent=document.dispatchEvent.bind(document);d.$=function(a){"string"==typeof a&&(a=document.getElementById(a));return a};x.G="r"+i(6);x.J=0;var H=d.$$=function(a,b,c){b=b||document;if(document.querySelector){if(!Array.isArray(b))return y(b.querySelectorAll(a));for(var d=[],e,f=-1;e=b[++f]&&(!c||!d.length);)y(e.querySelectorAll(a));return d}l(Error("querySelector not supported"))};d.$$0=function(a,b){return H(a,b,n)[0]};if(!d.getComputedStyle)d.getComputedStyle=
-function(a){return a.currentStyle};if(e.a&&9>e.a){var v=function(){var a=v.o.call?v.o.call(this):(this.__fake__cdf=v.o)();if(!a.querySelector)a.querySelector=document.querySelector;if(!a.querySelectorAll)a.querySelectorAll=document.querySelectorAll;for(var b="abbr article aside audio canvas command datalist details figure figcaption footer header hgroup keygen mark meter nav output progress section source summary time video".split(" "),c=-1;++c<b.length;)a.createElement&&a.createElement(b[c]);return a};
-v.o=document.createDocumentFragment;document.createDocumentFragment=v}var s=d.cloneElement=function(a,b,c){if(document.createDocumentFragment!==s.C&&s.c!=q)s.c=e.a&&9>e.a?(s.C=document.createDocumentFragment)().appendChild(document.createElement("div")):q;b===m&&(b=q);c===m&&(c=q);var d;if(s.c)if(s.c.innerHTML="",b&&/td|tr/gi.test(a.tagName))if("TR"==a.tagName.toUpperCase())s.c.innerHTML="<table><tbody>"+a.outerHTML+"</tbody></table>",d=s.c.firstChild.firstChild.firstChild;else{if("TD"==a.tagName.toUpperCase())s.c.innerHTML=
-"<table><tbody><tr>"+a.outerHTML+"</tr></tbody></table>",d=s.c.firstChild.firstChild.firstChild.firstChild}else s.c.innerHTML=b?a.outerHTML:a.outerHTML.replace(a.innerHTML,""),d=s.c.firstChild;else d=a.cloneNode(b);if(c&&d.id)d.id="";return d};e.a&&9>e.a&&(k.cloneNode=function(a){return s(this,a)});if(!e.g.addEventListener&&(!e.a||7<e.a))k.addEventListener=d.addEventListener,k.removeEventListener=d.removeEventListener,k.createEvent=d.createEvent,k.dispatchEvent=d.dispatchEvent;(function(a){function b(){}
-function c(a,b){return function(){return f.call(b,a,arguments)}}var e,f=Function.prototype.apply,i="assert,count,debug,dir,dirxml,error,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,table,time,timeEnd,trace,warn".split(","),k={},j;for(e=i.length;e--;)k[i[e]]=b;if(a){if(!a.I)a.U=j={},a.I=function(a,b){if(a){var c=+new Date,d="KEY"+a.toString();if(b||!j[d])j[d]=c}},a.V=function(b){var c,d=+new Date,e="KEY"+b.toString(),f=j[e];f&&(c=d-f,a.info(b+": "+c+"ms"),delete j[e]);return c};
-for(e=i.length;e--;)a[i[e]]=i[e]in a?c(a,a[i[e]]):b;a.disable=function(){d.console=k};k.enable=function(){d.console=a};k.disable=a.enable=b}else a=d.console=k,a.disable=a.enable=b})("undefined"===typeof console?o:console);d.Log=o;var u=d.Site={title:document.title,path:location.protocol+"//"+location.host+location.pathname,inits:[],afterLoads:[],v:function(){if(e.n)document.readyState="complete";for(var a in u.afterLoads)u.afterLoads.hasOwnProperty(a)&&"function"==typeof(a=u.afterLoads[a])&&a()},
-w:function(){if(e.n)document.readyState="interactive";document.documentElement.className+=" "+e.m.join(" ");for(var a in u.inits)u.inits.hasOwnProperty(a)&&"function"==typeof(a=u.inits[a])&&a()}};f.add(d,"DOMContentLoaded",u.w);f.add(d,"load",u.v)})(window);
+function l(e){throw e;}var m=void 0,n=!0,o=null,p=!1;
+function E(a){try{return Object.defineProperty(a,"sentinel",{}),"sentinel"in a}catch(b){}}function F(a,b){for(var c=0,g=a.length;c<g;c++){var h=a[c],d=b(h);if(d)return d;if(h.childNodes&&0<h.childNodes.length&&(d=F(h.childNodes,b)))return d}}function w(a,b,c){var b=!b?[I]:Array.isArray(b)?b:[b],g=[],h,d=-1;if(document.querySelector){var e,f=p,r;","==a.charAt(0)&&(a=a.substr(1));for(e=/[>\+\~]/.test(a.charAt(0));h=b[++d];){if(e)if(h==document)f=n;else{if(!h.id)h.id=w.B+w.D++;r="#"+h.id+
+a;h=h.parentNode}else r=a;f||(c?g.push(h.querySelector(r)):g=g.concat(y(h.querySelectorAll(r))))}return g}l(Error("querySelector not supported"))}var I=document;if(!Function.prototype.bind)Function.prototype.bind=function(a,b){var c=this,g=Array.prototype.slice.call(arguments,1);return function(){return c.apply(a,g.concat(Array.prototype.slice.call(arguments,0)))}};var z=Function.prototype.call.bind(Object.prototype.hasOwnProperty),d=e.browser={o:navigator.userAgent.toLowerCase()};d.l=d.o.match(/(mozilla|compatible|webkit|safari|opera|msie|iphone|ipod|ipad)/gi);
+for(var f=d.l.length;0<f--;)d[d.l[f]]=n;d.p=d.mozilla;d.r=d.webkit;d.A=d.safari;d.opera=d.opera;d.a=d.msie;d.H=d.iphone;d.I=d.ipod;d.G=d.ipad;d.w=m;if(d.compatible||d.r)d.p=p,delete d.mozilla;else if(d.opera)d.a=p,delete d.msie;if(d.a)for(f=6;11>f;f++)if(RegExp("msie "+f).test(d.o)){d.a=f;d.w=d.a;break}d.msie=d.a;d.d=document.createElement("div");d.J="undefined"!=typeof document.createElement("INPUT").placeholder;d.cssPrefix=d.p?"Moz":d.r||d.A?"Webkit":d.opera?"O":d.a?"ms":"";if(!document.readyState)d.m=
+n;if(d.m)document.readyState="uninitialized";document.head||(document.head=document.getElementsByTagName("head")[0]);e.Utils||(e.Utils={});e.Utils.Dom||(e.Utils.Dom={});var A=e.Utils.Dom.DOMException=function(a){this.code=this[a];this.message=a+": DOM Exception "+this.code},f=A.prototype=Error();f.INDEX_SIZE_ERR=1;f.DOMSTRING_SIZE_ERR=2;f.HIERARCHY_REQUEST_ERR=3;f.WRONG_DOCUMENT_ERR=4;f.INVALID_CHARACTER_ERR=5;f.NO_DATA_ALLOWED_ERR=6;f.NO_MODIFICATION_ALLOWED_ERR=7;f.NOT_FOUND_ERR=8;f.NOT_SUPPORTED_ERR=
+9;f.INUSE_ATTRIBUTE_ERR=10;f.INVALID_STATE_ERR=11;f.SYNTAX_ERR=12;f.INVALID_MODIFICATION_ERR=13;f.NAMESPACE_ERR=14;f.INVALID_ACCESS_ERR=15;f.VALIDATION_ERR=16;f.TYPE_MISMATCH_ERR=17;var f=e.Utils.Dom.DOMStringCollection=function(a,b){this.f=b;this.length=0;this.b=[];this.value="";this.update(a)},G={i:function(a){""===a&&l(new A("SYNTAX_ERR"));-1<(a+"").indexOf(" ")&&l(new A("INVALID_CHARACTER_ERR"))},add:function(a){this.i(a);var b=this.value;if(-1===this.b.indexOf(a))this.value+=(b&&!RegExp("\\s+$",
+"g").test(b)?" ":"")+a,this.b.push(a),this[(this.length=this.b.length)-1]=a,this.f&&this.f.call(this)},remove:function(a){this.i(a);for(var b;-1!==(b=this.b.indexOf(a));)delete this.b[b],this.b.splice(b,1);b=0;for(var c=this.b.length;b<c;++b)this[b]=this.b[b];for(;b<this.length;++b)delete this[b];this.length=this.b.length;this.value=this.value.replace(RegExp("((?: +)?"+a+"(?: +)?)","g"),function(a,b,c,d){return c&&a.length+c<d.length?" ":""});this.f&&this.f.call(this)},contains:function(a){this.i(a);
+return-1!=this.b.indexOf(a)},item:function(a){return this[a]||o},toggle:function(a){this.i(a);var b=-1==this.b.indexOf(a);this[b?"add":"remove"](a);return b},update:function(a){var a=a||"",b=!!this.length;if(b){for(var c=0;c<this.length;++c)delete thisObj[c];this.length=0;this.b=[];thisObj.value=""}a&&(a=a.trim())&&a.split(RegExp("\\s+","g")).forEach(this.add.bind(this));b&&this.f&&this.f.call(this);return this}},i;for(i in G)f.prototype[i]=G[i];f.prototype.toString=function(){return this.value||
+""};if(!Object.getOwnPropertyNames)Object.getOwnPropertyNames=function(a){var b=[],c;for(c in a)b.push(c);return b};Object.keys=Object.keys||function(){var a="toString,toLocaleString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,constructor".split(","),b=!{toString:o}.propertyIsEnumerable(a[0]),c=a.length;return function(g){("object"!=typeof g&&"function"!=typeof g||g===o)&&l(new TypeError("Object.keys called on a non-object"));var h=[],d;for(d in g)z(g,d)&&h.push(d);if(b)for(d=0;d<c;d++)z(g,
+a[d])&&h.push(a[d]);return h}}();if(!Object.seal)Object.seal=function(a){return a};if(!Object.freeze)Object.freeze=function(a){return a};if(!Object.getPrototypeOf)Object.getPrototypeOf=function(a){return a.__proto__||(a.constructor?a.constructor.prototype:Object.prototype)};if(!Object.create)Object.create=function(a,b){var c;a===o?c={__proto__:o}:("object"!=typeof a&&l(new TypeError("typeof prototype["+typeof a+"] != 'object'")),c=function(){},c.prototype=a,c=new c,c.__proto__=a);b&&Object.defineProperties(c,
+b);return c};if(Object.defineProperty&&(i=E({}),f="undefined"==typeof document||E(document.createElement("div")),!i||!f))var B=Object.defineProperty,C=Object.defineProperties;if(!Object.defineProperty||B)Object.defineProperty=function(a,b,c){("object"!=typeof a&&"function"!=typeof a||a===o)&&l(new TypeError("Object.defineProperty called on non-object: "+a));("object"!=typeof c&&"function"!=typeof c||c===o)&&l(new TypeError("Property description must be an object: "+c));if(B)try{return B.call(Object,
+a,b,c)}catch(g){}if(c.value!==m)if(a.__defineGetter__&&(a.__lookupGetter__(b)||a.__lookupGetter__(b))){var h=a.__proto__;a.__proto__=prototypeOfObject;delete a[b];a[b]=c.value;a.__proto__=h}else a[b]=c.value;else a.__defineGetter__?(c.get!==m&&a.__defineGetter__(b,c.get),c.set!==m&&a.__defineSetter__(b,c.set)):c.ielt8?(c.get!==m&&(a["get"+b]=c.get),c.set!==m&&(a["set"+b]=c.set)):l(new TypeError("getters & setters not supported"));return a};if(!Object.defineProperties||C)Object.defineProperties=function(a,
+b){if(C)try{return C.call(Object,a,b)}catch(c){}for(var g in b)z(b,g)&&Object.defineProperty(a,g,b[g]);return a};if(!Array.prototype.reduce)Array.prototype.reduce=function(a,b){"function"!==typeof a&&l(new TypeError("First argument is not callable"));var c=this.length,g=0;(0===c||c===o)&&1>=arguments.length&&l(new TypeError("Array length is 0 and no second argument"));for(b||(b=(g++,this[0]));g<c;++g)g in this&&(b=a.call(m,b,this[g],g,this));return b};if(!Array.prototype.reduceRight)Array.prototype.reduceRight=
+function(a,b){"function"!==typeof a&&l(new TypeError("First argument is not callable"));var c=this.length>>>0,g=c-1;(0===c||c===o)&&1>=arguments.length&&l(new TypeError("Array length is 0 and no second argument"));if(!b){do{if(g in this){b=this[g--];break}0>--g&&l(new TypeError)}while(1)}for(;0<=g;--g)g in this&&(b=a.call(m,b,this[g],g,t));return b};if(!Array.prototype.filter)Array.prototype.filter=function(a,b){var c=this.length>>>0;"function"!=typeof a&&l(new TypeError);for(var g=[],h=0;h<c;h++)if(h in
+this){var d=this[h];a.call(b,d,h,this)&&g.push(d)}return g};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,b){for(var c in this)this.hasOwnProperty(c)&&a.call(b,this[c],parseInt(c,10),this)};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a,b){for(var c=b||0,g=this.length;c<g;c++)if(this[c]===a)return c;return-1};if(!Array.prototype.lastIndexOf)Array.prototype.lastIndexOf=function(a,b){return this.slice(0).reverse().indexOf(a,b)};if(!Array.prototype.every)Array.prototype.every=
+function(a,b,c){c===m&&(c=n);var g=c;this.forEach(function(h,d){g==c&&(g=!!a.call(b,h,d,this))});return g};if(!Array.prototype.some)Array.prototype.some=function(a,b){return Array.prototype.every(a,b,p)};if(!Array.prototype.map)Array.prototype.map=function(a,b){var c,g,h;this==o&&l(new TypeError(" this is null or not defined"));var d=Object(this),e=d.length>>>0;"[object Function]"!={}.toString.call(a)&&l(new TypeError(a+" is not a function"));b&&(c=b);g=Array(e);for(h=0;h<e;){var f;h in d&&(f=d[h],
+f=a.call(c,f,h,d),g[h]=f);h++}return g};Array.isArray=Array.isArray||function(a){return!(!a||!a.concat||!a.unshift||a.callee)};if(d.a&&9>d.a)String.prototype.s=String.prototype.substr,String.prototype.substr=function(a,b){return this.s(0>a?0>(a=this.length+a,a)?0:a:a,b)};if(!String.prototype.trim)String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};(function(){function a(){this.cancelBubble=n}function b(){this.returnValue=p}function c(c){var g=this.h,d=[],e=[];if(g){g=g[h][c.type];
+if(!(c=c||window.event).v){c.v=n;c.preventDefault||(c.preventDefault=b);c.stopPropagation||(c.stopPropagation=a);c.target||(c.target=c.srcElement||document);if(c.relatedTarget===m&&c.fromElement)c.relatedTarget=c.fromElement==c.target?c.toElement:c.fromElement;if(c.pageX==o&&c.clientX!=o){var f=document.documentElement,v=document.body;c.pageX=c.clientX+(window.pageXOffset||f.scrollLeft||v.scrollLeft||0)-(f.clientLeft||0);c.pageY=c.clientY+(window.pageYOffset||f.scrollTop||v.scrollTop||0)-(f.clientTop||
+0)}c.which||c.button&&(c.which=c.button&1?1:c.button&2?3:c.button&4?2:0);if(!c.attrName&&c.propertyName)c.attrName=c.propertyName.split(".")[0]}for(var j in g)if(g.hasOwnProperty(j)){f=g[j];try{if((c.result=f.call(this,c))===p)c.preventDefault(),c.stopPropagation()}catch(x){d.push(x),e.push(x.message)}if(c.M)break}1==d.length&&l(d[0]);if(1<d.length)e=Error("Multiple errors thrown : "+c.type+" : : "+e.join("|")),e.F=d,l(e)}}var g=0,h="_e_8vj";if(!document.addEventListener)e.addEventListener=document.addEventListener=
+function(a,b){if("function"==typeof b){var d=this;if("DOMContentLoaded"==a)document.write('<script id="__ie_onload" defer="defer" src="javascript:void(0)"><\/script>'),document.getElementById("__ie_onload").onreadystatechange=function(){"complete"==this.readyState&&c.call(d,{type:a})};var f=d.h;if(!f)f=d.h={};d.setInterval&&d!=e&&!d.frameElement&&(d=e);if(!b.e)b.e=++g;if(!f[h])f[h]={},f._h_9e2=function(a){if(a!==m)return c.call(d,a)};f[h][a]||(f[h][a]={},d.attachEvent("on"+a,f._h_9e2));f[h][a][b.e]=
+b}};if(!document.removeEventListener)e.removeEventListener=document.removeEventListener=function(a,b){var c=this.h;if(!("function"!=typeof b||!b.e||!c)){var d=c[h]&&c[h][a];delete d[b.e];for(var g in d)if(d.hasOwnProperty(g))return;this.detachEvent("on"+a,c._h_9e2);delete c[h][a];for(g in c[h])if(c[h].hasOwnProperty(g))return;delete c._h_9e2;delete c[h]}};if(!document.dispatchEvent)e.dispatchEvent=document.dispatchEvent=function(a){try{this.fireEvent("on"+a.type,a)}catch(b){if(-2147024809===b.number)for(var d=
+this;!a.cancelBubble&&d;)c.call(d,a),d=a.bubbles?d.parentNode:o;else l(b)}};if(!document.createEvent){var d=function(a,b,c){(a==m||b==m||c==m)&&l(Error("WRONG_ARGUMENTS_ERR"));this.type=a;this.bubbles=b;this.cancelable=c;this.K=p;this.target=o},f=function(a,b,c,g){d.call(this,a,b,c);this.detail=g},j=function(a,b,c,d,g){f.call(this,a,b,g);this.view=d},r=function(a,b,c,d,g,h,e,f,v,x,r,i,k,H,q){j.call(this,a,b,0,c);this.screenX=h;this.screenY=e;this.clientX=f;this.clientY=v;this.ctrlKey=x;this.altKey=
+r;this.shiftKey=i;this.metaKey=k;this.button=H;this.relatedTarget=q},i=function(a,b,c,g,h,e,f,j){d.call(this,a,b,c);this.relatedNode=g;this.prevValue=h;this.newValue=e;this.attrName=f;this.attrChange=j};document.createEvent=function(){var a;a=document.createEventObject();a.returnValue=n;a.initEvent=d;a.initCustomEvent=f;a.initUIEvent=j;a.initMouseEvent=r;a.initMutationEvent=i;return a}}})();(function(){function a(a,b){var c=document.createEvent("Events"),b=b||{};c.initEvent(a,b.bubbles||p,b.cancelable||
+p);return c}var b;try{b=Event.prototype,new Event("click")}catch(c){if(e.Event=a,b)a.prototype=b}})();(function(){function a(a,b){var c=document.createEvent("CustomEvent"),b=b||{};b.detail=b.detail!==m?b.detail:o;(c.initCustomEvent||(c.detail=b.detail,c.initEvent)).call(c,a,b.bubbles||p,b.cancelable||p,b.detail);return c}var b;try{b=(e.CustomEvent||Event).prototype,new CustomEvent("magic")}catch(c){if(e.CustomEvent=a,b)a.prototype=b}})();i=e.Node&&e.Node.prototype||e.Element&&e.Element.prototype||
+(e._ielt8_Element_proto={});"classList"in d.d||Object.defineProperty(i,"classList",{get:function(){var a=this,b=d.a&&8>d.a&&(a.h||(a.h={}))||a;b.__ccl_00lh__||(b.__ccl_00lh__=new e.Utils.Dom.DOMStringCollection(a.getAttribute("class"),function(){a.setAttribute("class",this.value);if(a.className!=this.value)a.className=this.value}));return b.__ccl_00lh__},ielt8:n});(!("children"in d.d)||d.a&&9>d.a)&&Object.defineProperty(i,"children",{get:function(){for(var a=[],b=this.firstChild;b;)1==b.nodeType&&
+a.push(b),b=b.nextSibling;return a},ielt8:n});"undefined"!=typeof d.d.childElementCount&&Object.defineProperties(i,{firstElementChild:{get:function(){var a;for(a=this.firstChild;a&&1!=a.nodeType;)a=a.nextSibling;return a},ielt8:n},lastElementChild:{get:function(){var a;for(a=this.lastChild;a&&1!=a.nodeType;)a=a.previousSibling;return a},ielt8:n},nextElementSibling:{get:function(){for(var a=this;(a=a.nextSibling)&&!(1==a.nodeType););return a},ielt8:n},previousElementSibling:{get:function(){for(var a=
+this;(a=a.previousSibling)&&!(1==a.nodeType););return a},ielt8:n},childElementCount:{get:function(){if(this.children)return this.children.length},ielt8:n}});"getElementsByClassName"in d.d||(i.getElementsByClassName=function(a){var b=[];a&&F(this.childNodes,function(c){1==c.nodeType&&c.classList.contains(a)&&b.push(c)});return b});"insertAfter"in d.d||(i.insertAfter=function(a,b){return this.insertBefore(a,b.nextSibling)});if(!("compareDocumentPosition"in document))document.compareDocumentPosition=
+i.compareDocumentPosition=function(a){return this.contains?(this!=a&&this.contains(a)&&16)+(this!=a&&a.contains(this)&&8)+(0<=this.sourceIndex&&0<=a.sourceIndex?(this.sourceIndex<a.sourceIndex&&4)+(this.sourceIndex>a.sourceIndex&&2):1)+0:0},f="DOCUMENT_POSITION_DISCONNECTED",document[f]=i[f]=1,f="DOCUMENT_POSITION_PRECEDING",document[f]=i[f]=2,f="DOCUMENT_POSITION_FOLLOWING",document[f]=i[f]=4,f="DOCUMENT_POSITION_CONTAINS",document[f]=i[f]=8,f="DOCUMENT_POSITION_CONTAINED_BY",document[f]=i[f]=16;
+if(!e.HTMLTimeElement||!e.HTMLTimeElement.prototype)Object.defineProperty(e.HTMLUnknownElement&&e.HTMLUnknownElement.prototype||i,"dateTime",{get:function(){return"TIME"==this.tagName.toUpperCase()?this.getAttribute("datetime")||"":m},set:function(a){return"TIME"==this.tagName.toUpperCase()?(this.setAttribute("datetime",a),a):o},ielt8:n});try{document.importNode(d.d)}catch(D){if(-2147418113===D.number||2153185281===D.result||6===D.code){var J=document.importNode;document.importNode=function(a,b){b===
+m&&(b=n);return J.call(this,a,b)}}}(function(){function a(){}var b=e.Element.prototype;try{document.addEventListener("click",a)}catch(c){var d=document.addEventListener;window.addEventListener=document.addEventListener=b.addEventListener=function(a,b,c){return d.call(this,a,b,c||p)}}finally{try{document.removeEventListener("click",a)}catch(h){var f=document.removeEventListener;window.removeEventListener=document.removeEventListener=b.removeEventListener=function(a,b,c){return f.call(this,a,b,c||p)}}finally{document.removeEventListener("click",
+a)}}})();Object.append=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],h;for(h in d)if(!d.hasOwnProperty||d.hasOwnProperty(h))a[h]=d[h]}return a};e.inherit=function(a,b){(a.prototype=Object.create(a.superclass=b.prototype)).constructor=a};if(!e.XMLHttpRequest)e.XMLHttpRequest=ActiveXObject.bind(e,"Microsoft.XMLHTTP");var k=e.SendRequest=function(a,b,c,d,h){h=h||{};if(!k.g||k.q)k.g=o,k.q=p,k.g=new e.XMLHttpRequest,e.j=p;if(!k.k)k.k=[];setTimeout(function(){k.q=n},3E5);var f=h.post?
+"POST":"GET",i=h.temporary||e.j;if(!e.j&&k.g||i){var j=i?k.k[k.e]=new e.XMLHttpRequest:k.g,r=i?k.e++:o;!h.post&&0<b.length&&(a+="?"+b);j.open(f,a,n);j.onreadystatechange=function(){if(4==j.readyState)200==j.status?c&&c(j):d&&d(j),i?delete k.k[r]:e.j=p;else if(h.onProccess)h.onProccess()};if(!i)e.j=n;try{h.post?(j.setRequestHeader("X-Requested-With","HTTPRequest"),j.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8"),j.send(b)):j.send(o)}catch(H){}}if(!k.g)return p};
+k.e=0;e.isHTMLElement=function(a){try{if(a instanceof Element)return n}catch(b){try{if(1==a.nodeType)return n}catch(c){}}return p};e.forEach=function(a,b,c){for(var d in a)if(z(a,d)&&b.call(c,a[d],d,a)===p)break;return a};e.repeatString=function(a,b){return Array(++b).join(a)};var f=e.randomString=function(a){return Math.round(Math.random()*parseInt(Array(++a).join("z"),36)).toString(36)},y=e.$A=function(a,b,c,g){if(!a||0===b+c)return[];if(b==c==m&&Array.isArray(a))return a;var b=b||0,h=typeof a,
+e,f=n,j=[b];c&&j.push(c);"number"==h&&(a+="");if(9>d.a&&("number"==h||"string"==h))f=p;if("number"==typeof a.length){g=a.length;h=0>b&&0>(b=g+b,b)?0:b;b=c==o?g:0>c&&0>(c=g+c,c)?0:c;g=b-h;if(f)try{if(e=Array.prototype.slice.apply(a,j),e.length===g)return e}catch(i){}for(e=[];h<b;++h)e.push(a.charAt?a.charAt(h):a[h]);return e}e=[];if("object"==h){for(var k in a)(g||!a.hasOwnProperty||a.hasOwnProperty(k))&&e.push(a[k]);return!b&&!c&&e||e.slice.apply(e,j)}return e};e.$K=function(a,b){var c=typeof a,g;
+if("object"==c){d.a&&a.length&&!(a instanceof Array)&&(a=y(a));if(b){var c=[],e;for(e in a)c.push(e);return c}return Object.keys(a)}"number"==c||"string"==c?g=(a+"").length:"number"==typeof a.length?g=a.length:l(new TypeError("$K:non-iterable"));c=[];if(g!=m)for(e=0;e<g;++e)c.push(e);return c};if(!e.JSON)e.JSON={parse:function(a){return a&&!/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(a.replace(/"(\\.|[^"\\])*"/g,""))&&eval("("+a+")")||o}};e.bubbleEventListener=function(a,b,c,d){var e=Array.isArray(a)?
+a[0]:a;return function(f){var i=f.target||(f.target=f.srcElement),j,r;do if(j=i.getAttribute(e)||(d&2?i[e]:o),j!=o){var k=[f,i,j];if(Array.isArray(a)&&1<a.length)for(var q=1,s=a.length;q<s;++q)k.push(i.getAttribute(a[q]));"function"==typeof b?r=b.apply(c||this,k):(j=b[j])&&(r=j.apply(c||this,k));if(!(d&1))break}while(i!=this&&(i=i.parentNode));return r}};if(!e.addEventListener&&document.addEventListener)e.addEventListener=document.addEventListener.bind(document),e.removeEventListener=document.removeEventListener.bind(document),
+e.dispatchEvent=document.dispatchEvent.bind(document);e.$=function(a){"string"==typeof a&&(a=document.getElementById(a));return a};w.B="r"+f(6);w.D=0;var K=e.$$=function(a,b,c){b=b||document;d.L&&(a=a.replace(/=([^\]]+)/,'="$1"'));if(document.querySelector){if(!Array.isArray(b))return y(b.querySelectorAll(a));for(var e=[],f,i=-1;f=b[++i]&&(!c||!e.length);)y(f.querySelectorAll(a));return e}l(Error("querySelector not supported"))};e.$$0=function(a,b){return K(a,b,n)[0]};(function(){if(e.getComputedStyle)try{e.getComputedStyle(d.d)}catch(a){var b=
+e.getComputedStyle;e.getComputedStyle=function(a,d){return b(a,d||o)}}else e.getComputedStyle=function(a){return a.currentStyle}})();if(d.a&&9>d.a){var u=function(){var a=u.n.call?u.n.call(this):(this.__fake__cdf=u.n)();if(!a.querySelector)a.querySelector=document.querySelector;if(!a.querySelectorAll)a.querySelectorAll=document.querySelectorAll;for(var b="abbr article aside audio canvas command datalist details figure figcaption footer header hgroup keygen mark meter nav output progress section source summary time video".split(" "),
+c=-1;++c<b.length;)a.createElement&&a.createElement(b[c]);return a};u.n=document.createDocumentFragment;document.createDocumentFragment=u}var q=e.cloneElement=function(a,b,c){if(document.createDocumentFragment!==q.z&&q.c!=p)q.c=d.a&&9>d.a?(q.z=document.createDocumentFragment)().appendChild(document.createElement("div")):p;b===m&&(b=p);c===m&&(c=p);var e;if(q.c)if(q.c.innerHTML="",b&&/td|tr/gi.test(a.tagName))if("TR"==a.tagName.toUpperCase())q.c.innerHTML="<table><tbody>"+a.outerHTML+"</tbody></table>",
+e=q.c.firstChild.firstChild.firstChild;else{if("TD"==a.tagName.toUpperCase())q.c.innerHTML="<table><tbody><tr>"+a.outerHTML+"</tr></tbody></table>",e=q.c.firstChild.firstChild.firstChild.firstChild}else q.c.innerHTML=b?a.outerHTML:a.outerHTML.replace(a.innerHTML,""),e=q.c.firstChild;else e=a.cloneNode(b);if(c&&e.id)e.id="";return e};d.a&&9>d.a&&(i.cloneNode=function(a){return q(this,a)});if(!d.d.addEventListener&&(!d.a||7<d.a))i.addEventListener=e.addEventListener,i.removeEventListener=e.removeEventListener,
+i.createEvent=e.createEvent,i.dispatchEvent=e.dispatchEvent;(function(a){function b(){}function c(a,b){return function(){return f.call(b,a,arguments)}}var d,f=Function.prototype.apply,i="assert,count,debug,dir,dirxml,error,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,table,time,timeEnd,trace,warn".split(","),k={},j;for(d=i.length;d--;)k[i[d]]=b;if(a){if(!a.C)a.N=j={},a.C=function(a,b){if(a){var c=+new Date,d="KEY"+a.toString();if(b||!j[d])j[d]=c}},a.O=function(b){var c,d=
++new Date,e="KEY"+b.toString(),f=j[e];f&&(c=d-f,a.info(b+": "+c+"ms"),delete j[e]);return c};for(d=i.length;d--;)a[i[d]]=i[d]in a?c(a,a[i[d]]):b;a.disable=function(){e.console=k};k.enable=function(){e.console=a};k.disable=a.enable=b}else a=e.console=k,a.disable=a.enable=b})("undefined"===typeof console?o:console);e.Log=o;var s=e.Site={title:document.title,path:location.protocol+"//"+location.host+location.pathname,inits:[],afterLoads:[],t:function(){if(d.m)document.readyState="complete";for(var a in s.afterLoads)s.afterLoads.hasOwnProperty(a)&&
+"function"==typeof(a=s.afterLoads[a])&&a()},u:function(){if(d.m)document.readyState="interactive";document.documentElement.className+=" "+d.l.join(" ");for(var a in s.inits)s.inits.hasOwnProperty(a)&&"function"==typeof(a=s.inits[a])&&a()}};e.addEventListener("DOMContentLoaded",s.u,p);e.addEventListener("load",s.t,p)})(window);
View
22 microdata-js.js
@@ -1,15 +1,15 @@
-(function(i,d,l){
-var g=null;
+(function(h,d,l){
"use strict";
-function h(a){function i(f){var a,c=-1,e;if(void 0!==f.length){for(a={items:[]};e=f[++c];)e.getAttribute("itemscope")!==g&&a.items.push(i(e));return a}if(f.getAttribute("itemscope")!==g){a={};if(c=f.getAttribute("itemid"))a.id=c;if(c=f.getAttribute("itemtype"))a.type=c;a.properties=f.properties.toJSON()}return a}if(!h.e){if(!h.d){var c;if((c=a.DocumentFragment)&&(c=c.prototype))c.getItems=document.getItems;else{var d=function(){var a=d.g.call(document);a.getItems=document.getItems;return a};
-d.g=document.createDocumentFragment;document.createDocumentFragment=d}h.d=!0}if(c=a.PropertyNodeList){"values"in(c=c.prototype)||c.__defineGetter__("values",function(){return this.getValues()});var k=a.PropertyNodeList;if(!(c=k.prototype).toJSON)c.toJSON=function(){for(var a=[],c=this.values,d=-1,e;e=c[++d];)e instanceof Element&&(e=i(e)),e&&a.push(e);return a};c=a.HTMLPropertiesCollection;if(!(c=c.prototype).toJSON)c.toJSON=function(){for(var a={},c=this.names,d=-1,e;e=c[++d];)this[e]instanceof k&&
-(a[e]=this[e].toJSON());return a};h.e=!0}else a.addEventListener("DOMContentLoaded",h.bind(a,a),!1),a.addEventListener("load",h.bind(a,a),!1)}}(!document.getItems?function(a,d,c){var i=a.Utils.Dom.DOMException,k=a.Utils.Dom.DOMStringCollection;if(!a.PropertyNodeList){var f=a.PropertyNodeList=function(){this.length=0;this.values=[]};f.prototype._push=function(b,a){this[this.length++]=b;this.values.push(a)};f.prototype.namedItem=function(){};f.prototype.values=void 0;f.prototype.getValues=function(){return this.values};
-f.prototype.toString=function(){return"[object PropertyNodeList]"}}if(!a.HTMLPropertiesCollection){var j=a.HTMLPropertiesCollection=function(){this.length=0;this.names=[]};j.prototype.c=function(){for(var b in this)this[b]instanceof f&&(this[b]=g,delete this[b]);this.length=0;this.names=[]};j.prototype._push=function(b,a,c){this[this.length++]=b;~this.names.indexOf(c)||this.names.push(c);(this[c]||(this[c]=new f))._push(b,a)};j.prototype.namedItem=function(b){return this[b]instanceof f?this[b]:new f};
-j.prototype.toString=function(){return"[object HTMLPropertiesCollection]"};j.prototype.item=f.prototype.item=function(b){isNaN(b)&&(b=0);return this[b]||g}}var m=a.HTMLElement&&a.HTMLElement.prototype||a.Element&&a.Element.prototype;m&&Object.defineProperties(m,{itemValue:{get:function(){var b=this.nodeName;return this.getAttribute("itemscope")!==g?this:this.getAttribute("itemprop")===g?g:"META"===b?this.content:~"AUDIO,EMBED,IFRAME,IMG,SOURCE,TRACK,VIDEO".split(",").indexOf(b)?this.src:~["A","AREA",
-"LINK"].indexOf(b)?this.href:"OBJECT"===b?this.data:"TIME"===b&&this.getAttribute("datetime")?this.dateTime:"textContent"in this?this.textContent:this.innerText},set:function(b){var a=this.nodeName;if(this.getAttribute("itemprop")===g)throw new i("INVALID_ACCESS_ERR");return this["META"===a?"content":~"AUDIO,EMBED,IFRAME,IMG,SOURCE,TRACK,VIDEO".split(",").indexOf(a)?"src":~["A","AREA","LINK"].indexOf(a)?"href":"OBJECT"===a?"data":"TIME"===a&&this.getAttribute("datetime")?"dateTime":"innerHTML"]=b}},
+var g=null;
+function j(a){function h(f){var a,c=-1,e;if(void 0!==f.length){for(a={items:[]};e=f[++c];)e.getAttribute("itemscope")!==g&&a.items.push(h(e));return a}if(f.getAttribute("itemscope")!==g){a={};if(c=f.getAttribute("itemid"))a.id=c;if(c=f.getAttribute("itemtype"))a.type=c;a.properties=f.properties.toJSON()}return a}if(!j.e){if(!j.d){var c;if((c=a.DocumentFragment)&&(c=c.prototype))c.getItems=document.getItems;else{var d=function(){var a=d.g.call(document);a.getItems=document.getItems;return a};
+d.g=document.createDocumentFragment;document.createDocumentFragment=d}j.d=!0}if(c=a.PropertyNodeList){"values"in(c=c.prototype)||c.__defineGetter__("values",function(){return this.getValues()});var k=a.PropertyNodeList;if(!(c=k.prototype).toJSON)c.toJSON=function(){for(var a=[],c=this.values,d=-1,e;e=c[++d];)e instanceof Element&&(e=h(e)),e&&a.push(e);return a};c=a.HTMLPropertiesCollection;if(!(c=c.prototype).toJSON)c.toJSON=function(){for(var a={},c=this.names,d=-1,e;e=c[++d];)this[e]instanceof k&&
+(a[e]=this[e].toJSON());return a};j.e=!0}else a.addEventListener("DOMContentLoaded",j.bind(a,a),!1),a.addEventListener("load",j.bind(a,a),!1)}}(!document.getItems?function(a,d,c){var h=a.Utils.Dom.DOMException,k=a.Utils.Dom.DOMStringCollection;if(!a.PropertyNodeList){var f=a.PropertyNodeList=function(){this.length=0;this.values=[]};f.prototype._push=function(b,a){this[this.length++]=b;this.values.push(a)};f.prototype.namedItem=function(){};f.prototype.values=void 0;f.prototype.getValues=function(){return this.values};
+f.prototype.toString=function(){return"[object PropertyNodeList]"}}if(!a.HTMLPropertiesCollection){var i=a.HTMLPropertiesCollection=function(){this.length=0;this.names=[]};i.prototype.c=function(){for(var b in this)this[b]instanceof f&&(this[b]=g,delete this[b]);this.length=0;this.names=[]};i.prototype._push=function(b,a,c){this[this.length++]=b;~this.names.indexOf(c)||this.names.push(c);(this[c]||(this[c]=new f))._push(b,a)};i.prototype.namedItem=function(b){return this[b]instanceof f?this[b]:new f};
+i.prototype.toString=function(){return"[object HTMLPropertiesCollection]"};i.prototype.item=f.prototype.item=function(b){isNaN(b)&&(b=0);return this[b]||g}}var m=a.HTMLElement&&a.HTMLElement.prototype||a.Element&&a.Element.prototype;m&&Object.defineProperties(m,{itemValue:{get:function(){var b=this.nodeName;return this.getAttribute("itemscope")!==g?this:this.getAttribute("itemprop")===g?g:"META"===b?this.content:~"AUDIO,EMBED,IFRAME,IMG,SOURCE,TRACK,VIDEO".split(",").indexOf(b)?this.src:~["A","AREA",
+"LINK"].indexOf(b)?this.href:"OBJECT"===b?this.data:"TIME"===b&&this.getAttribute("datetime")?this.dateTime:"textContent"in this?this.textContent:this.innerText},set:function(b){var a=this.nodeName;if(this.getAttribute("itemprop")===g)throw new h("INVALID_ACCESS_ERR");return this["META"===a?"content":~"AUDIO,EMBED,IFRAME,IMG,SOURCE,TRACK,VIDEO".split(",").indexOf(a)?"src":~["A","AREA","LINK"].indexOf(a)?"href":"OBJECT"===a?"data":"TIME"===a&&this.getAttribute("datetime")?"dateTime":"innerHTML"]=b}},
itemProp:{get:function(){var b=this.getAttribute("itemprop"),a=this;a.a?b!==g&&a.a+""!==b&&a.a.update(b):a.a=new k(b,function(){a.setAttribute("itemprop",this+"")});return a.a},set:function(b){return this.setAttribute("itemprop",b)}},itemScope:{get:function(){return this.getAttribute("itemscope")!==g},set:function(b){b?this.setAttribute("itemscope",""):this.removeAttribute("itemscope");return b}},itemId:{get:function(){var b=(this.getAttribute("itemid")||"").trim();b&&!/\w+:(\/\/)?[\w][\w.\/]*/.test(b)&&
(b=location.href.replace(/\/[^\/]*$/,"/"+escape(b)));return b},set:function(b){return this.setAttribute("itemid",b+"")}},itemType:{get:function(){return this.getAttribute("itemtype")||""},set:function(b){return this.setAttribute("itemtype",b+"")}},itemRef:{get:function(){var b=this.getAttribute("itemref"),a=this;a.b?b!==g&&a.b+""!==b&&a.b.update(b):a.b=new k(b,function(){a.setAttribute("itemref",this+"")});return a.b},set:function(a){return this.setAttribute("itemref",a+"")}},properties:{get:function(){var b=
-this.__properties_CACHE__;if(b)if(a.microdata_liveProperties)b.c();else return b;else b=this.__properties_CACHE__=new j;var e=[],f=[],d=[];c(this.childNodes).forEach(function(a){1===a.nodeType&&e.push(a)});this.getAttribute("itemref")&&(d=this.getAttribute("itemref").trim().split(/\s+/),d.forEach(function(a){(a=document.getElementById(a))&&e.push(a)}));e=e.filter(function(a,b){var c=g,d=a,f=[];if(e.indexOf(a)!==b&&-1!==e.indexOf(a,b))return!1;for(;(d=d.parentNode)!==g&&1===d.nodeType;)if(f.push(d),
+this.__properties_CACHE__;if(b)if(a.microdata_liveProperties)b.c();else return b;else b=this.__properties_CACHE__=new i;var e=[],f=[],d=[];c(this.childNodes).forEach(function(a){1===a.nodeType&&e.push(a)});this.getAttribute("itemref")&&(d=this.getAttribute("itemref").trim().split(/\s+/),d.forEach(function(a){(a=document.getElementById(a))&&e.push(a)}));e=e.filter(function(a,b){var c=g,d=a,f=[];if(e.indexOf(a)!==b&&-1!==e.indexOf(a,b))return!1;for(;(d=d.parentNode)!==g&&1===d.nodeType;)if(f.push(d),
d.getAttribute("itemscope")!==g){c=d;break}return c!==g?-1!==e.indexOf(c)?!1:!f.some(function(a){var b=-1,d=g;if(-1!==(b=e.indexOf(a))){for(a=e[b];(a=a.parentNode)!==g&&1===a.nodeType;)if(a.getAttribute("itemscope")!==g){d=a;break}if(d===c)return!0}return!1}):!0});for(e.sort(function(a,b){return 3-(b.compareDocumentPosition(a)&6)});d=e.pop();)d.getAttribute("itemprop")&&f.push(d),d.getAttribute("itemscope")===g&&(d=c(d.childNodes).reverse(),d.forEach(function(a){1===a.nodeType&&e.push(a)}));f.forEach(function(a){$A(a.itemProp).forEach(b._push.bind(b,
-a,a.itemValue))});return b}}});try{var e=document.createElement("EMBED");e.f+="123"}catch(l){}document.getItems=function(a){for(var a=(a||"").trim(),c=d("[itemscope]",this),e=[],a=(a||"").trim().split(/\s+/),f,i=-1;f=c[++i];){var h=f.getAttribute("itemtype")||"",j=h.split(/\s+/),h=!(h&&!f.getAttribute("itemprop")&&(!("itemScope"in f)||f.itemScope));for(;h=j.pop()&&!h;)(h=!~a.indexOf(h))&&e.push(f)}return e};h(a)}:h)(i,d,l)})(window,function(i,d){d=d||document;return window.$$?window.$$(i,d):Array.prototype.slice.apply(d.querySelectorAll(i))},
-function(i){return window.$A?window.$A(i):Array.prototype.slice.apply(i)});
+a,a.itemValue))});return b}}});try{var e=document.createElement("EMBED");e.f+="123"}catch(l){}document.getItems=function(a){for(var c=!!a,a=(a||"").trim().split(/\s+/),e=d("[itemscope]",this),f=[],h=0,j=e.length;h<j;++h){var i=e[h],k=i.getAttribute("itemtype");(!c||~a.indexOf(k))&&!i.getAttribute("itemprop")&&(!("itemScope"in i)||i.itemScope)&&f.push(i)}return f};j(a)}:j)(h,d,l)})(window,function(h,d){d=d||document;return window.$$?window.$$(h,d):Array.prototype.slice.apply(d.querySelectorAll(h))},
+function(h){return window.$A?window.$A(h):Array.prototype.slice.apply(h)});
Please sign in to comment.
Something went wrong with that request. Please try again.