(function(e){"use strict";functiont(e,t,n){this.root=this.currentNode=e,this.nodeType=t,this.filter=n}functionn(e,t){for(varn=e.length;n--;)if(!t(e[n]))return!1;return!0}functionr(e,t,n){if(e.nodeName!==t)return!1;for(varrinn)if(e.getAttribute(r)!==n[r])return!1;return!0}functiono(e,t){returne.nodeType===t.nodeType&&e.nodeName===t.nodeName&&e.className===t.className&&(!e.style&&!t.style||e.style.cssText===t.style.cssText)}functioni(e){returne.nodeType===x&&!!et[e.nodeName]}functiona(e){returnJ.test(e.nodeName)}functiond(e){returne.nodeType===x&&!a(e)&&n(e.childNodes,a)}functionl(e){returne.nodeType===x&&!a(e)&&!d(e)}functions(e){returnd(e)?I:L}functionf(e){varn=e.ownerDocument,r=newt(n.body,B,s,!1);returnr.currentNode=e,r}functionc(e){returnf(e).previousNode()}functionu(e){returnf(e).nextNode()}functionp(e,t,n){doif(r(e,t,n))returne;while(e=e.parentNode);returnnull}functionh(e){vart,n,r,o,i=e.parentNode;returni&&e.nodeType===x?(t=h(i),t+=(t?">":"")+e.nodeName,(n=e.id)&&(t+="#"+n),(r=e.className.trim())&&(o=r.split(/\s\s*/),o.sort(),t+=".",t+=o.join("."))):t=i?h(i):"",t}functionN(e){vart=e.nodeType;returnt===x?e.childNodes.length:e.length||0}functionC(e){vart=e.parentNode;returnt&&t.removeChild(e),e}functionv(e,t){varn=e.parentNode;n&&n.replaceChild(t,e)}functionm(e){for(vart=e.ownerDocument.createDocumentFragment(),n=e.childNodes,r=n?n.length:0;r--;)t.appendChild(e.firstChild);returnt}functiong(e){vart,n,r=e.ownerDocument,o=e;if("BODY"===e.nodeName&&((n=e.firstChild)&&"BR"!==n.nodeName||(t=r.createElement("DIV"),n?e.replaceChild(t,n):e.appendChild(t),e=t,t=null)),a(e))e.firstChild||(j?(t=r.createTextNode(""),kt(t)):t=r.createTextNode(""));elseif($){for(;e.nodeType!==D&&!i(e);){if(n=e.firstChild,!n){t=r.createTextNode("");break}e=n}e.nodeType===D?/^ +$/.test(e.data)&&(e.data=""):i(e)&&e.parentNode.insertBefore(r.createTextNode(""),e)}elseif(!e.querySelector("BR"))for(t=r.createElement("BR");(n=e.lastElementChild)&&!a(n);)e=n;returnt&&e.appendChild(t),o}functiony(e,t,n){varr,o,i,a=e.nodeType;if(a===D&&e!==n)returny(e.parentNode,e.splitText(t),n);if(a===x){if("number"==typeoft&&(t=e.childNodes.length>t?e.childNodes[t]:null),e===n)returnt;for(r=e.parentNode,o=e.cloneNode(!1);t;)i=t.nextSibling,o.appendChild(t),t=i;returng(e),g(o),(i=e.nextSibling)?r.insertBefore(o,i):r.appendChild(o),y(r,o,n)}returnt}functionT(e,t){if(e.nodeType===x)for(varn,r,i,d=e.childNodes,l=d.length,s=[];l--;)if(n=d[l],r=l&&d[l-1],l&&a(n)&&o(n,r)&&!et[n.nodeName])t.startContainer===n&&(t.startContainer=r,t.startOffset+=N(r)),t.endContainer===n&&(t.endContainer=r,t.endOffset+=N(r)),t.startContainer===e&&(t.startOffset>l?t.startOffset-=1:t.startOffset===l&&(t.startContainer=r,t.startOffset=N(r))),t.endContainer===e&&(t.endOffset>l?t.endOffset-=1:t.endOffset===l&&(t.endContainer=r,t.endOffset=N(r))),C(n),n.nodeType===D?r.appendData(n.data.replace(/\u200B/g,"")):s.push(m(n));elseif(n.nodeType===x){for(i=s.length;i--;)n.appendChild(s.pop());T(n,t)}}functionS(e,t,n){for(varr,o,i,a=t;1===a.parentNode.childNodes.length;)a=a.parentNode;C(a),o=e.childNodes.length,r=e.lastChild,r&&"BR"===r.nodeName&&(e.removeChild(r),o-=1),i={startContainer:e,startOffset:o,endContainer:e,endOffset:o},e.appendChild(m(t)),T(e,i),n.setStart(i.startContainer,i.startOffset),n.collapse(!0),G&&(r=e.lastChild)&&"BR"===r.nodeName&&e.removeChild(r)}functionO(e){vart=e.previousSibling,n=e.firstChild;t&&o(t,e)&&l(t)&&(C(e),t.appendChild(m(e)),n&&O(n))}functionb(t,n,r){varo,i,a,d=e.createElement(t);if(ninstanceofArray&&(r=n,n=null),n)for(oinn)d.setAttribute(o,n[o]);if(r)for(i=0,a=r.length;a>i;i+=1)d.appendChild(r[i]);returnd}varE=2,x=1,D=3,B=1,A=4,I=1,L=3,R=0,w=1,P=2,U=3,k=e.defaultView,V=e.body,H=navigator.userAgent,z=/iP(?:ad|hone|od)/.test(H),M=/Mac OS X/.test(H),F=/Gecko\//.test(H),K=/Trident\//.test(H),q=8===k.ie,G=!!k.opera,Q=/WebKit\//.test(H),Y=M?"meta-":"ctrl-",$=K||G,j=K||Q,W=K,X=/\S/,Z=Array.prototype.indexOf,_={1:1,2:2,3:4,8:128,9:256,11:1024};t.prototype.nextNode=function(){for(vare,t=this.currentNode,n=t