var tC=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},pU={exports:{}};(function(nC){(function(){var hc=function(e){if(e===null)return"null";if(e===void 0)return"undefined";var t=typeof e;return t==="object"&&(Array.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="Array")?"array":t==="object"&&(String.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="String")?"string":t},rC=function(e){return["undefined","boolean","number","string","function","xml","null"].indexOf(e)!==-1},aC=function(e,t){var n=Array.prototype.slice.call(e);return n.sort(t)},iC=function(e,t){return Pa(function(n,r){return e.eq(t(n),t(r))})},Pa=function(e){return{eq:e}},oC=Pa(function(e,t){return e===t}),uC=oC,yc=function(e){return Pa(function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,a=0;a-1},gt=function(e,t){for(var n=0,r=e.length;n=0;n--){var r=e[n];t(r,n)}},yC=function(e,t){for(var n=[],r=[],a=0,i=e.length;a=0&&t=t.length&&e.substr(n,n+t.length)===t},UC=function(e,t){return Ur(e,t)?FC(e,t.length):e},ut=function(e,t){return e.indexOf(t)!==-1},Ur=function(e,t){return MC(e,t,0)},Xu=function(e){return function(t){return t.replace(e,"")}},Yu=Xu(/^\s+|\s+$/g),zC=Xu(/^\s+/g),Lc=Xu(/\s+$/g),Ic=function(e){return e.length>0},Qu=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,bn=function(e){return function(t){return ut(t,e)}},HC=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return ut(e,"edge/")&&ut(e,"chrome")&&ut(e,"safari")&&ut(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Qu],search:function(e){return ut(e,"chrome")&&!ut(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return ut(e,"msie")||ut(e,"trident")}},{name:"Opera",versionRegexes:[Qu,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:bn("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:bn("firefox")},{name:"Safari",versionRegexes:[Qu,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(ut(e,"safari")||ut(e,"mobile/"))&&ut(e,"applewebkit")}}],VC=[{name:"Windows",search:bn("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return ut(e,"iphone")||ut(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:bn("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:bn("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:bn("linux"),versionRegexes:[]},{name:"Solaris",search:bn("sunos"),versionRegexes:[]},{name:"FreeBSD",search:bn("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:bn("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],$c={browsers:Z(HC),oses:Z(VC)},Fc="Edge",Mc="Chrome",Uc="IE",zc="Opera",Hc="Firefox",Vc="Safari",qC=function(){return qc({current:void 0,version:_i.unknown()})},qc=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isEdge:r(Fc),isChrome:r(Mc),isIE:r(Uc),isOpera:r(zc),isFirefox:r(Hc),isSafari:r(Vc)}},Wc={unknown:qC,nu:qc,edge:Z(Fc),chrome:Z(Mc),ie:Z(Uc),opera:Z(zc),firefox:Z(Hc),safari:Z(Vc)},jc="Windows",Kc="iOS",Gc="Android",Xc="Linux",Yc="OSX",Qc="Solaris",Zc="FreeBSD",Jc="ChromeOS",WC=function(){return ev({current:void 0,version:_i.unknown()})},ev=function(e){var t=e.current,n=e.version,r=function(a){return function(){return t===a}};return{current:t,version:n,isWindows:r(jc),isiOS:r(Kc),isAndroid:r(Gc),isOSX:r(Yc),isLinux:r(Xc),isSolaris:r(Qc),isFreeBSD:r(Zc),isChromeOS:r(Jc)}},tv={unknown:WC,nu:ev,windows:Z(jc),ios:Z(Kc),android:Z(Gc),linux:Z(Xc),osx:Z(Yc),solaris:Z(Qc),freebsd:Z(Zc),chromeos:Z(Jc)},jC=function(e,t){var n=$c.browsers(),r=$c.oses(),a=_c.detectBrowser(n,e).fold(Wc.unknown,Wc.nu),i=_c.detectOs(r,e).fold(tv.unknown,tv.nu),o=PC(i,a,e,t);return{browser:a,os:i,deviceType:o}},KC={detect:jC},GC=function(e){return window.matchMedia(e).matches},XC=DC(function(){return KC.detect(navigator.userAgent,GC)}),Ht=function(){return XC()},nv=navigator.userAgent,Zu=Ht(),ft=Zu.browser,kt=Zu.os,tn=Zu.deviceType,YC=/WebKit/.test(nv)&&!ft.isEdge(),QC="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,ZC=nv.indexOf("Windows Phone")!==-1,ae={opera:ft.isOpera(),webkit:YC,ie:ft.isIE()||ft.isEdge()?ft.version.major:!1,gecko:ft.isFirefox(),mac:kt.isOSX()||kt.isiOS(),iOS:tn.isiPad()||tn.isiPhone(),android:kt.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:ft.isIE()?document.documentMode||7:10,fileApi:QC,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!ft.isIE(),desktop:tn.isDesktop(),windowsPhone:ZC,browser:{current:ft.current,version:ft.version,isChrome:ft.isChrome,isEdge:ft.isEdge,isFirefox:ft.isFirefox,isIE:ft.isIE,isOpera:ft.isOpera,isSafari:ft.isSafari},os:{current:kt.current,version:kt.version,isAndroid:kt.isAndroid,isChromeOS:kt.isChromeOS,isFreeBSD:kt.isFreeBSD,isiOS:kt.isiOS,isLinux:kt.isLinux,isOSX:kt.isOSX,isSolaris:kt.isSolaris,isWindows:kt.isWindows},deviceType:{isDesktop:tn.isDesktop,isiPad:tn.isiPad,isiPhone:tn.isiPhone,isPhone:tn.isPhone,isTablet:tn.isTablet,isTouch:tn.isTouch,isWebView:tn.isWebView}},JC=/^\s*|\s*$/g,rv=function(e){return e==null?"":(""+e).replace(JC,"")},av=function(e,t){return t?t==="array"&&Wu(e)?!0:typeof e===t:e!==void 0},e0=function(e,t,n){var r;for(e=e||[],t=t||",",typeof e=="string"&&(e=e.split(t)),n=n||{},r=e.length;r--;)n[e[r]]={};return n},t0=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n0=function(e,t,n){var r=this,a,i,o,u=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var f=e[3].match(/(^|\.)(\w+)$/i)[2],s=r.createNS(e[3].replace(/\.\w+$/,""),n);if(!s[f]){if(e[2]==="static"){s[f]=t,this.onCreate&&this.onCreate(e[2],e[3],s[f]);return}t[f]||(t[f]=function(){},u=1),s[f]=t[f],r.extend(s[f].prototype,t),e[5]&&(a=r.resolve(e[5]).prototype,i=e[5].match(/\.(\w+)$/i)[1],o=s[f],u?s[f]=function(){return a[i].apply(this,arguments)}:s[f]=function(){return this.parent=a[i],o.apply(this,arguments)},s[f].prototype[f]=s[f],r.each(a,function(c,l){s[f].prototype[l]=a[l]}),r.each(t,function(c,l){a[l]?s[f].prototype[l]=function(){return this.parent=a[l],c.apply(this,arguments)}:l!==f&&(s[f].prototype[l]=c)})),r.each(t.static,function(c,l){s[f][l]=c})}},r0=function(e){for(var t=[],n=1;n1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return Ma(r.childNodes[0])},s0=function(e,t){var n=t||document,r=n.createElement(e);return Ma(r)},l0=function(e,t){var n=t||document,r=n.createTextNode(e);return Ma(r)},Ma=function(e){if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},c0=function(e,t,n){return b.from(e.dom.elementFromPoint(t,n)).map(Ma)},x={fromHtml:f0,fromTag:s0,fromText:l0,fromDom:Ma,fromPoint:c0},ov=function(e,t){var n=[],r=function(i){return n.push(i),t(i)},a=t(e);do a=a.bind(r);while(a.isSome());return n},v0=function(e,t,n){return(e.compareDocumentPosition(t)&n)!==0},d0=function(e,t){return v0(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},p0=8,uv=9,fv=11,Ju=1,m0=3,zr=function(e,t){var n=e.dom;if(n.nodeType!==Ju)return!1;var r=n;if(r.matches!==void 0)return r.matches(t);if(r.msMatchesSelector!==void 0)return r.msMatchesSelector(t);if(r.webkitMatchesSelector!==void 0)return r.webkitMatchesSelector(t);if(r.mozMatchesSelector!==void 0)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},sv=function(e){return e.nodeType!==Ju&&e.nodeType!==uv&&e.nodeType!==fv||e.childElementCount===0},g0=function(e,t){var n=t===void 0?document:t.dom;return sv(n)?[]:ke(n.querySelectorAll(e),x.fromDom)},h0=function(e,t){var n=t===void 0?document:t.dom;return sv(n)?b.none():b.from(n.querySelector(e)).map(x.fromDom)},Se=function(e,t){return e.dom===t.dom},y0=function(e,t){var n=e.dom,r=t.dom;return n===r?!1:n.contains(r)},b0=function(e,t){return d0(e.dom,t.dom)},Pn=function(e,t){return Ht().browser.isIE()?b0(e,t):y0(e,t)};typeof window!="undefined"||Function("return this;")();var Oe=function(e){var t=e.dom.nodeName;return t.toLowerCase()},lv=function(e){return e.dom.nodeType},Li=function(e){return function(t){return lv(t)===e}},C0=function(e){return lv(e)===p0||Oe(e)==="#comment"},nn=Li(Ju),Lt=Li(m0),w0=Li(uv),E0=Li(fv),cv=function(e){return x.fromDom(e.dom.ownerDocument)},Hr=function(e){return w0(e)?e:cv(e)},S0=function(e){return x.fromDom(Hr(e).dom.documentElement)},vv=function(e){return x.fromDom(Hr(e).dom.defaultView)},Vt=function(e){return b.from(e.dom.parentNode).map(x.fromDom)},x0=function(e,t){for(var n=We(t)?t:he,r=e.dom,a=[];r.parentNode!==null&&r.parentNode!==void 0;){var i=r.parentNode,o=x.fromDom(i);if(a.push(o),n(o)===!0)break;r=i}return a},k0=function(e){var t=function(n){return ve(n,function(r){return!Se(e,r)})};return Vt(e).map(Nt).map(t).getOr([])},or=function(e){return b.from(e.dom.previousSibling).map(x.fromDom)},Ua=function(e){return b.from(e.dom.nextSibling).map(x.fromDom)},dv=function(e){return Pi(ov(e,or))},pv=function(e){return ov(e,Ua)},Nt=function(e){return ke(e.dom.childNodes,x.fromDom)},Ii=function(e,t){var n=e.dom.childNodes;return b.from(n[t]).map(x.fromDom)},mv=function(e){return Ii(e,0)},ef=function(e){return Ii(e,e.dom.childNodes.length-1)},N0=function(e){return e.dom.childNodes.length},A0=function(e){var t=e.dom.head;if(t==null)throw new Error("Head is not available yet");return x.fromDom(t)},gv=function(e){return E0(e)&&mt(e.dom.host)},hv=We(Element.prototype.attachShadow)&&We(Node.prototype.getRootNode),T0=Z(hv),ur=hv?function(e){return x.fromDom(e.dom.getRootNode())}:Hr,tf=function(e){return gv(e)?e:A0(Hr(e))},R0=function(e){var t=ur(e);return gv(t)?b.some(t):b.none()},B0=function(e){return x.fromDom(e.dom.host)},D0=function(e){if(T0()&&mt(e.target)){var t=x.fromDom(e.target);if(nn(t)&&P0(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return St(n)}}return b.from(e.target)},P0=function(e){return mt(e.dom.shadowRoot)},qt=function(e,t){var n=Vt(e);n.each(function(r){r.dom.insertBefore(t.dom,e.dom)})},za=function(e,t){var n=Ua(e);n.fold(function(){var r=Vt(e);r.each(function(a){Ge(a,t)})},function(r){qt(r,t)})},yv=function(e,t){var n=mv(e);n.fold(function(){Ge(e,t)},function(r){e.dom.insertBefore(t.dom,r.dom)})},Ge=function(e,t){e.dom.appendChild(t.dom)},O0=function(e,t){qt(e,t),Ge(t,e)},_0=function(e,t){Y(t,function(n){qt(e,n)})},$i=function(e,t){Y(t,function(n){Ge(e,n)})},nf=function(e){e.dom.textContent="",Y(Nt(e),function(t){Xe(t)})},Xe=function(e){var t=e.dom;t.parentNode!==null&&t.parentNode.removeChild(t)},bv=function(e){var t=Nt(e);t.length>0&&_0(e,t),Xe(e)},Ha=function(e){var t=Lt(e)?e.dom.parentNode:e.dom;if(t==null||t.ownerDocument===null)return!1;var n=t.ownerDocument;return R0(x.fromDom(t)).fold(function(){return n.body.contains(t)},cC(Ha,B0))},Cv=function(e,t){var n=function(r,a){return Cv(e+r,t+a)};return{left:e,top:t,translate:n}},Vr=Cv,L0=function(e){var t=e.getBoundingClientRect();return Vr(t.left,t.top)},Fi=function(e,t){return e!==void 0?e:t!==void 0?t:0},I0=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,a=t.documentElement;if(n===e.dom)return Vr(n.offsetLeft,n.offsetTop);var i=Fi(r==null?void 0:r.pageYOffset,a.scrollTop),o=Fi(r==null?void 0:r.pageXOffset,a.scrollLeft),u=Fi(a.clientTop,n.clientTop),f=Fi(a.clientLeft,n.clientLeft);return rf(e).translate(o-f,i-u)},rf=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Vr(r.offsetLeft,r.offsetTop):Ha(e)?L0(t):Vr(0,0)},af=function(e){var t=e!==void 0?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Vr(n,r)},wv=function(e,t,n){var r=n!==void 0?n.dom:document,a=r.defaultView;a&&a.scrollTo(e,t)},Ev=function(e,t){var n=Ht().browser.isSafari();n&&We(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},$0=function(e){var t=e===void 0?window:e;return b.from(t.visualViewport)},Sv=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},xv=function(e){var t=e===void 0?window:e,n=t.document,r=af(x.fromDom(n));return $0(t).fold(function(){var a=t.document.documentElement,i=a.clientWidth,o=a.clientHeight;return Sv(r.left,r.top,i,o)},function(a){return Sv(Math.max(a.pageLeft,r.left),Math.max(a.pageTop,r.top),a.width,a.height)})},Va=function(e){return function(t){return!!t&&t.nodeType===e}},Mi=function(e){return!!e&&!Object.getPrototypeOf(e)},ie=Va(1),It=function(e){var t=e.map(function(n){return n.toLowerCase()});return function(n){if(n&&n.nodeName){var r=n.nodeName.toLowerCase();return ze(t,r)}return!1}},Ui=function(e,t){var n=t.toLowerCase().split(" ");return function(r){var a,i;if(ie(r))for(a=0;a0})},Dv=function(e){var t={},n=e.dom;if(zi(n))for(var r=0;r1)for(var I=1;I=0&&(g._idleTimeoutId=setTimeout(function(){g._onTimeout&&g._onTimeout()},d))},o.setImmediate=typeof u=="function"?u:function(g){var d=p++,y=arguments.length<2?!1:l.call(arguments,1);return v[d]=!0,s(function(){v[d]&&(y?g.apply(null,y):g.call(null),o.clearImmediate(d))}),d},o.clearImmediate=typeof f=="function"?f:function(g){delete v[g]}}).call(this,a("timers").setImmediate,a("timers").clearImmediate)},{"process/browser.js":1,timers:3}],4:[function(a,i,o){var u=a("promise-polyfill"),f=function(){return typeof window!="undefined"?window:Function("return this;")()}();i.exports={boltExport:f.Promise||u}},{"promise-polyfill":2}]},{},[4])(4)})})(void 0,_v,Lv,void 0);var Iv=Lv.exports.boltExport,lf=function(e){var t=b.none(),n=[],r=function(s){return lf(function(c){a(function(l){c(s(l))})})},a=function(s){o()?f(s):n.push(s)},i=function(s){o()||(t=b.some(s),u(n),n=[])},o=function(){return t.isSome()},u=function(s){Y(s,f)},f=function(s){t.each(function(c){setTimeout(function(){s(c)},0)})};return e(i),{get:a,map:r,isReady:o}},Y0=function(e){return lf(function(t){t(e)})},Q0={nu:lf,pure:Y0},Z0=function(e){setTimeout(function(){throw e},0)},jr=function(e){var t=function(f){e().then(f,Z0)},n=function(f){return jr(function(){return e().then(f)})},r=function(f){return jr(function(){return e().then(function(s){return f(s).toPromise()})})},a=function(f){return jr(function(){return e().then(function(){return f.toPromise()})})},i=function(){return Q0.nu(t)},o=function(){var f=null;return jr(function(){return f===null&&(f=e()),f})},u=e;return{map:n,bind:r,anonBind:a,toLazy:i,toCached:o,toPromise:u,get:t}},J0=function(e){return jr(function(){return new Iv(e)})},ew=function(e){return jr(function(){return Iv.resolve(e)})},$v={nu:J0,pure:ew},tw=function(e,t){return t(function(n){var r=[],a=0,i=function(o){return function(u){r[o]=u,a++,a>=e.length&&n(r)}};e.length===0?n([]):Y(e,function(o,u){o.get(i(u))})})},nw=function(e){return tw(e,$v.nu)},Kr=function(e){var t=function(v){return e===v},n=function(v){return Kr(e)},r=function(v){return Kr(e)},a=function(v){return Kr(v(e))},i=function(v){return Kr(e)},o=function(v){v(e)},u=function(v){return v(e)},f=function(v,p){return p(e)},s=function(v){return v(e)},c=function(v){return v(e)},l=function(){return b.some(e)};return{is:t,isValue:je,isError:he,getOr:Z(e),getOrThunk:Z(e),getOrDie:Z(e),or:n,orThunk:r,fold:f,map:a,mapError:i,each:o,bind:u,exists:s,forall:c,toOptional:l}},Wa=function(e){var t=function(s){return s()},n=function(){return Ec(String(e))()},r=function(s){return s},a=function(s){return s()},i=function(s){return Wa(e)},o=function(s){return Wa(s(e))},u=function(s){return Wa(e)},f=function(s,c){return s(e)};return{is:he,isValue:he,isError:je,getOr:Ut,getOrThunk:t,getOrDie:n,or:r,orThunk:a,fold:f,map:i,mapError:o,each:fe,bind:u,exists:he,forall:je,toOptional:b.none}},rw=function(e,t){return e.fold(function(){return Wa(t)},Kr)},Fv={value:Kr,error:Wa,fromOption:rw},aw=function(e){if(!_t(e))throw new Error("cases must be an array");if(e.length===0)throw new Error("there must be at least one case");var t=[],n={};return Y(e,function(r,a){var i=ir(r);if(i.length!==1)throw new Error("one and only one name per case");var o=i[0],u=r[o];if(n[o]!==void 0)throw new Error("duplicate key detected:"+o);if(o==="cata")throw new Error("cannot have a case named cata (sorry)");if(!_t(u))throw new Error("case arguments must be an array");t.push(o),n[o]=function(){for(var f=[],s=0;s0?h(w.fail.map(Mv)):y(w.pass.map(Mv))})},m=function(d){var y=B._addCacheSuffix(d);xt(r,y).each(function(h){var C=--h.count;C===0&&(delete r[y],s(h.id))})},g=function(d){Y(d,function(y){m(y)})};return{load:l,loadAll:p,unload:m,unloadAll:g,_setReferrerPolicy:u}},cw=function(){var e=new WeakMap,t=function(n,r){var a=ur(n),i=a.dom;return b.from(e.get(i)).getOrThunk(function(){var o=Vv(i,r);return e.set(i,o),o})};return{forElement:t}},qv=cw(),Ie=function(){function e(t,n){this.node=t,this.rootNode=n,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return e.prototype.current=function(){return this.node},e.prototype.next=function(t){return this.node=this.findSibling(this.node,"firstChild","nextSibling",t),this.node},e.prototype.prev=function(t){return this.node=this.findSibling(this.node,"lastChild","previousSibling",t),this.node},e.prototype.prev2=function(t){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",t),this.node},e.prototype.findSibling=function(t,n,r,a){var i,o;if(t){if(!a&&t[n])return t[n];if(t!==this.rootNode){if(i=t[r],i)return i;for(o=t.parentNode;o&&o!==this.rootNode;o=o.parentNode)if(i=o[r],i)return i}}},e.prototype.findPreviousNode=function(t,n,r,a){var i,o,u;if(t){if(i=t[r],this.rootNode&&i===this.rootNode)return;if(i){if(!a){for(u=i[n];u;u=u[n])if(!u[n])return u}return i}if(o=t.parentNode,o&&o!==this.rootNode)return o}},e}(),vw=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],dw=["td","th"],pw=["thead","tbody","tfoot"],mw=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],gw=["h1","h2","h3","h4","h5","h6"],hw=["li","dd","dt"],yw=["ul","ol","dl"],bw=["pre","script","textarea","style"],Ln=function(e){var t;return function(n){return t=t||wC(e,je),t.hasOwnProperty(Oe(n))}},Cw=Ln(gw),an=Ln(vw),ww=function(e){return Oe(e)==="table"},pf=function(e){return nn(e)&&!an(e)},Gr=function(e){return nn(e)&&Oe(e)==="br"},Wv=Ln(mw),mf=Ln(yw),Ka=Ln(hw),Ew=Ln(pw),Wi=Ln(dw),ji=Ln(bw),Sw=function(e,t,n){return Vi(e,t,n).isSome()},gf="\uFEFF",ht="\xA0",xw=function(e){return e===gf},kw=function(e){return e.replace(/\uFEFF/g,"")},Ve=gf,hf=xw,In=kw,Nw=ie,Xr=Q,Yr=function(e){return Xr(e)&&(e=e.parentNode),Nw(e)&&e.hasAttribute("data-mce-caret")},Qr=function(e){return Xr(e)&&hf(e.data)},At=function(e){return Yr(e)||Qr(e)},jv=function(e){return e.firstChild!==e.lastChild||!De(e.firstChild)},Aw=function(e,t){var n,r=e.ownerDocument,a=r.createTextNode(Ve),i=e.parentNode;if(t){if(n=e.previousSibling,Xr(n)){if(At(n))return n;if(Gi(n))return n.splitText(n.data.length-1)}i.insertBefore(a,e)}else{if(n=e.nextSibling,Xr(n)){if(At(n))return n;if(Ki(n))return n.splitText(1),n}e.nextSibling?i.insertBefore(a,e.nextSibling):i.appendChild(a)}return a},yf=function(e){var t=e.container();return Q(t)?t.data.charAt(e.offset())===Ve||e.isAtStart()&&Qr(t.previousSibling):!1},bf=function(e){var t=e.container();return Q(t)?t.data.charAt(e.offset()-1)===Ve||e.isAtEnd()&&Qr(t.nextSibling):!1},Tw=function(){var e=document.createElement("br");return e.setAttribute("data-mce-bogus","1"),e},Rw=function(e,t,n){var r=t.ownerDocument,a=r.createElement(e);a.setAttribute("data-mce-caret",n?"before":"after"),a.setAttribute("data-mce-bogus","all"),a.appendChild(Tw());var i=t.parentNode;return n?i.insertBefore(a,t):t.nextSibling?i.insertBefore(a,t.nextSibling):i.appendChild(a),a},Ki=function(e){return Xr(e)&&e.data[0]===Ve},Gi=function(e){return Xr(e)&&e.data[e.data.length-1]===Ve},Bw=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];qr(n)&&n.parentNode.removeChild(n)},Cf=function(e){return e&&e.hasAttribute("data-mce-caret")?(Bw(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},Dw=function(e){return Yr(e.startContainer)},Kv=rn,Pw=xe,Ow=De,_w=Q,Lw=It(["script","style","textarea"]),Gv=It(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Iw=It(["table"]),$w=At,on=function(e){return $w(e)?!1:_w(e)?!Lw(e.parentNode):Gv(e)||Ow(e)||Iw(e)||wf(e)},Fw=function(e){return ie(e)&&e.getAttribute("unselectable")==="true"},wf=function(e){return Fw(e)===!1&&Pw(e)},Mw=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(wf(e))return!1;if(Kv(e))return!0}return!0},Uw=function(e){return wf(e)?zt(Bn(e.getElementsByTagName("*")),function(t,n){return t||Kv(n)},!1)!==!0:!1},zw=function(e){return Gv(e)||Uw(e)},Xi=function(e,t){return on(e)&&Mw(e,t)},Hw=/^[ \t\r\n]*$/,sr=function(e){return Hw.test(e)},Vw=function(e,t){var n=x.fromDom(t),r=x.fromDom(e);return Sw(r,"pre,code",j(Se,n))},qw=function(e,t){return Q(e)&&sr(e.data)&&Vw(e,t)===!1},Ww=function(e){return ie(e)&&e.nodeName==="A"&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id"))},Yi=function(e,t){return on(e)&&qw(e,t)===!1||Ww(e)||jw(e)},jw=kv("data-mce-bookmark"),Kw=kv("data-mce-bogus"),Gw=F0("data-mce-bogus","all"),Xw=function(e,t){var n,r=0;if(Yi(e,e))return!1;if(n=e.firstChild,!n)return!0;var a=new Ie(n,e);do{if(t){if(Gw(n)){n=a.next(!0);continue}if(Kw(n)){n=a.next();continue}}if(De(n)){r++,n=a.next();continue}if(Yi(n,e))return!1;n=a.next()}while(n);return r<=1},yt=function(e,t){return t===void 0&&(t=!0),Xw(e.dom,t)},Yw=function(e){return e.nodeName.toLowerCase()==="span"},Xv=function(e,t){return mt(e)&&(Yi(e,t)||pf(x.fromDom(e)))},Qw=function(e,t){var n=new Ie(e,t).prev(!1),r=new Ie(e,t).next(!1),a=Oa(n)||Xv(n,t),i=Oa(r)||Xv(r,t);return a&&i},Yv=function(e){return Yw(e)&&e.getAttribute("data-mce-type")==="bookmark"},Zw=function(e,t){return Q(e)&&e.data.length>0&&Qw(e,t)},Jw=function(e){return ie(e)?e.childNodes.length>0:!1},eE=function(e){return ff(e)||uf(e)},Ef=function(e,t,n){var r=n||t;if(ie(t)&&Yv(t))return t;for(var a=t.childNodes,i=a.length-1;i>=0;i--)Ef(e,a[i],r);if(ie(t)){var o=t.childNodes;o.length===1&&Yv(o[0])&&t.parentNode.insertBefore(o[0],t)}return!eE(t)&&!Yi(t,r)&&!Jw(t)&&!Zw(t,r)&&e.remove(t),t},tE=B.makeMap,Qi=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zi=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,nE=/[<>&\"\']/g,rE=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,aE={128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"},lr={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},iE={"<":"<",">":">","&":"&",""":'"',"'":"'"},oE=function(e){var t=x.fromTag("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e},Qv=function(e,t){var n,r,a,i={};if(e){for(e=e.split(","),t=t||10,n=0;n1?"&#"+((n.charCodeAt(0)-55296)*1024+(n.charCodeAt(1)-56320)+65536)+";":lr[n]||"&#"+n.charCodeAt(0)+";"})},xf=function(e,t,n){return n=n||Sf,e.replace(t?Qi:Zi,function(r){return lr[r]||n[r]||r})},fE=function(e,t){var n=Qv(t)||Sf,r=function(o,u){return o.replace(u?Qi:Zi,function(f){return lr[f]!==void 0?lr[f]:n[f]!==void 0?n[f]:f.length>1?"&#"+((f.charCodeAt(0)-55296)*1024+(f.charCodeAt(1)-56320)+65536)+";":"&#"+f.charCodeAt(0)+";"})},a=function(o,u){return xf(o,u,n)},i=tE(e.replace(/\+/g,","));return i.named&&i.numeric?r:i.named?t?a:xf:i.numeric?Jv:Zv},sE=function(e){return e.replace(rE,function(t,n){return n?(n.charAt(0).toLowerCase()==="x"?n=parseInt(n.substr(1),16):n=parseInt(n,10),n>65535?(n-=65536,String.fromCharCode(55296+(n>>10),56320+(n&1023))):aE[n]||String.fromCharCode(n)):iE[t]||Sf[t]||oE(t)})},cr={encodeRaw:Zv,encodeAllRaw:uE,encodeNumeric:Jv,encodeNamed:xf,getEncodeFunc:fE,decode:sE},$n={},lE={},Zr=B.makeMap,et=B.each,kf=B.extend,ed=B.explode,cE=B.inArray,qe=function(e,t){return e=B.trim(e),e?e.split(t||" "):[]},vE=function(e){var t={},n,r,a,i,o,u,f=function(c,l,v){var p,m,g,d=function(h,C){var w={},S,R;for(S=0,R=h.length;S